[PATCH] D97874: [analyzer] Improve SVal cast from integer to bool using known RangeSet
Denys Petrov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 3 10:08:57 PST 2021
ASDenysPetrov created this revision.
ASDenysPetrov added reviewers: steakhal, NoQ, xazax.hun, vsavchenko, Eugene.Zelenko.
ASDenysPetrov added a project: clang.
Herald added subscribers: martong, Charusso, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, rnkovacs, szepet, baloghadamsoftware.
ASDenysPetrov requested review of this revision.
Herald added a subscriber: cfe-commits.
Improve `SValBuilder::evalCast` function in a part of **integer **to **bool **cast. Сonvert known `SymbolVal` `RangeSet` to `ConcreteInt` if possible.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D97874
Files:
clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h
clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp
clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
clang/test/Analysis/cast_symbolic_ints_to_bool.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97874.327842.patch
Type: text/x-patch
Size: 5696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210303/9d666794/attachment.bin>
More information about the cfe-commits
mailing list