[PATCH] D97874: [analyzer] Improve SVal cast from integer to bool using known RangeSet
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 3 15:46:47 PST 2021
NoQ added inline comments.
================
Comment at: clang/lib/StaticAnalyzer/Core/SValBuilder.cpp:877-879
+ std::tie(IsZero, IsNotZero) =
+ getStateManager().getConstraintManager().isSymValWithinOrOutsideRange(
+ State, SE, Zero, Zero);
----------------
What was wrong with `State->assume(V)`? Why make a new function? Is this for optimization only?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97874/new/
https://reviews.llvm.org/D97874
More information about the cfe-commits
mailing list