[PATCH] D104844: [Analyzer][solver] Fix crashes during symbol simplification
Valeriy Savchenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 24 04:04:52 PDT 2021
vsavchenko added inline comments.
================
Comment at: clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp:2314-2315
+ if (SymbolRef SimplifiedSym = simplify(St, Sym))
+ Sym = SimplifiedSym;
+
----------------
I don't like the idea of duplicating it into every `assume` method. This way we drastically increase our chances to forget it (like you did with `assumeSymGE` and `assumeSymLE`).
I think the better place for it is in `RangedConstraintManager::assumeSymRel` and neighboring methods, though still not perfect.
I don't really get why we get not simplified symbol to begin with.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104844/new/
https://reviews.llvm.org/D104844
More information about the cfe-commits
mailing list