blob: 811da172e749019fbc19583136cc245ec71e17a5 [file] [log] [blame]
// RUN: %clang_cc1 -analyze -analyzer-constraints=z3 -setup-static-analyzer \
// RUN: -analyzer-checker=core,debug.ExprInspection %s 2>&1 | FileCheck %s
//
// REQUIRES: z3
//
// Works only with the z3 constraint manager.
void clang_analyzer_printState();
void foo(int x) {
if (x == 3) {
clang_analyzer_printState();
(void)x;
// CHECK: "constraints": [
// CHECK-NEXT: { "symbol": "(reg_$[[#]]<int x>) == 3", "range": "(= reg_$[[#]] #x00000003)" }
}
}