]> granicus.if.org Git - clang/commit
BasicConstraintManager:
authorTed Kremenek <kremenek@apple.com>
Wed, 3 Dec 2008 19:06:30 +0000 (19:06 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 3 Dec 2008 19:06:30 +0000 (19:06 +0000)
commitd7ff4874cbb99b5a8a92121af18792204b210dbb
treeca3ad47675764eaae944bee2a5c1c5695e1c4f86
parent73abd133aeda75971212176b1b4f7f251976d7cf
BasicConstraintManager:
- Fix nonsensical logic in AssumeSymGE. When comparing 'sym >= constant' and the
  constant is the maximum integer value, add the constraint that 'sym ==
  constant' when the path is deemed feasible.  All other cases are feasible.
- Improve AssumeSymGT. When comparing 'sym > constant' and constant is the
  maximum integer value we know the path is infeasible.
- Add test case for this enhancement to AssumeSymGT.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60490 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/BasicConstraintManager.cpp
test/Analysis/null-deref-ps.c