1 // RUN: %clang_analyze_cc1 %s \
2 // RUN: -analyzer-checker=core \
3 // RUN: -analyzer-checker=debug.ExprInspection \
4 // RUN: -analyzer-config eagerly-assume=false \
7 // Here we test whether the SValBuilder is capable to simplify existing
8 // IntSym expressions based on a newly added constraint on the sub-expression.
10 void clang_analyzer_eval(bool);
12 void test_SValBuilder_simplifies_IntSym(int x
, int y
) {
13 // Most IntSym BinOps are transformed to SymInt in SimpleSValBuilder.
14 // Division is one exception.
18 clang_analyzer_eval(x
== 77); // expected-warning{{TRUE}}