]> granicus.if.org Git - clang/commit
[analyzer; new edges] add simplifySimpleBranches() to reduce edges for branches.
authorTed Kremenek <kremenek@apple.com>
Fri, 31 May 2013 16:56:54 +0000 (16:56 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 31 May 2013 16:56:54 +0000 (16:56 +0000)
commitf94cb007d03031bcf3d1b02f6a683a189e934953
treeae8f0cc77ea04495f65b0eb6d038837ead8b0a03
parentc89f02afb018316a0c36bf62b2cb75d420f2fff3
[analyzer; new edges] add simplifySimpleBranches() to reduce edges for branches.

In many cases, the edge from the "if" to the condition, followed by an edge from the branch condition to the target code, is uninteresting.

In such cases, we should fold the two edges into one from the "if" to the target.

This also applies to loops.

Implements <rdar://problem/14034763>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183018 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/BugReporter.cpp
test/Analysis/edges-new.mm