]> granicus.if.org Git - clang/commit
[Analyzer] Skip symbolic regions based on conjured symbols in comparison of the conta...
authorAdam Balogh <adam.balogh@ericsson.com>
Wed, 13 Mar 2019 13:55:11 +0000 (13:55 +0000)
committerAdam Balogh <adam.balogh@ericsson.com>
Wed, 13 Mar 2019 13:55:11 +0000 (13:55 +0000)
commitec9dd97583f7356ee12ff2227fb8de15a4770755
tree5b5d96ee34968ab1da5d4ae4d0c1eff1a1bd8306
parent849c257a9b781ca898bc807b97f4494b9a8de218
[Analyzer] Skip symbolic regions based on conjured symbols in comparison of the containers of iterators

Checking whether two regions are the same is a partially decidable problem:
either we know for sure that they are the same or we cannot decide. A typical
case for this are the symbolic regions based on conjured symbols. Two
different conjured symbols are either the same or they are different. Since
we cannot decide this and want to reduce false positives as much as possible
we exclude these regions whenever checking whether two containers are the
same at iterator mismatch check.

Differential Revision: https://reviews.llvm.org/D53754

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356049 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/IteratorChecker.cpp
test/Analysis/mismatched-iterator.cpp