[PATCH] D110913: [analyzer][solver] Handle simplification to ConcreteInt
Denys Petrov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 8 05:26:47 PDT 2021
ASDenysPetrov added inline comments.
================
Comment at: clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp:2104
+ const llvm::APSInt &SV = CI->getValue();
+ const RangeSet *ClassConstraint = getConstraint(State, Class);
+ // We have found a contradiction.
----------------
We usually use `R` or `RS`. It gets readability better IMO.
================
Comment at: clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp:2107-2109
+ return nullptr;
+ } else {
+ SimplifiedMemberSym = SimplifiedMemberVal.getAsSymbol();
----------------
What prevents you to not put this stuff inside `ento::simplify`. I think it should perfectly fit in there.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110913/new/
https://reviews.llvm.org/D110913
More information about the cfe-commits
mailing list