[PATCH] D53076: [analyzer] Enhance ConditionBRVisitor to write out more information

Umann Kristóf via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 21 05:31:54 PST 2018


Szelethus added a comment.

In the meanwhile we managed to figure out where the problem lays, so if you're interested, I'm going to document it here.

The problem this patch attempts to solve is that `ConditionBRVisitor` adds event pieces to the bugpath when the state has changed from the previous state, not only when the `ConstraintManager` differs in between the changes [1]. The patch attempts to solve this by inspecting the actual condition, and tries to find out whether the symbols inside that condition has changed in between the states, but this is overkill solution, as comparing the two `ConstraintManager` objects would achieve the same thing. This should probably be executed by extending the interface of `ConstraintManager` with a comparison method.

[1] https://github.com/llvm-mirror/clang/blob/master/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp#L1808


https://reviews.llvm.org/D53076





More information about the cfe-commits mailing list