// This test checks that under using the under-approximate external call policy, the symbolic arguments are left unconstrained by the external call // RUN: %clang %s -emit-llvm %O0opt -g -c -o %t.bc // RUN: rm -rf %t.klee-out // RUN: %klee --output-dir=%t.klee-out --external-calls=all %t.bc 2>&1 | FileCheck %s #include "klee/klee.h" #include #include #include int main() { int x; klee_make_symbolic(&x, sizeof(x), "x"); printf("%d\n", x); // CHECK: calling external: printf if (x > 0) { printf("Yes\n"); // CHECK-DAG: Yes } else { printf("No\n"); // CHECK-DAG: No } }