]> granicus.if.org Git - clang/commit
[analyzer] Introduce IntSymExpr, where the integer is on the lhs.
authorAnna Zaks <ganna@apple.com>
Sat, 10 Dec 2011 23:36:51 +0000 (23:36 +0000)
committerAnna Zaks <ganna@apple.com>
Sat, 10 Dec 2011 23:36:51 +0000 (23:36 +0000)
commit24d052cdb75d3c1afa5bef32eacaa224e9d0b85d
treee27747c97305835135103193ef28ca989bbe933a
parent6fcd932dfd6835f70cc00d6f7c6789793f6d7b66
[analyzer] Introduce IntSymExpr, where the integer is on the lhs.

Fix a bug in SimpleSValBuilder, where we should swap lhs and rhs when calling generateUnknownVal(), - the function which creates symbolic expressions when data is tainted. The issue is not visible when we only create the expressions for taint since all expressions are commutative from taint perspective.

Refactor SymExpr::symbol_iterator::expand() to use a switch instead of a chain of ifs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146336 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/ProgramState.cpp
lib/StaticAnalyzer/Core/SValBuilder.cpp
lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
lib/StaticAnalyzer/Core/SymbolManager.cpp