diff options
author | Frank Busse <bb0xfb@gmail.com> | 2019-03-17 16:06:08 +0000 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2019-03-20 19:15:35 +0000 |
commit | 887d48856f0bbfc5adfa1caea029d938a1ecb342 (patch) | |
tree | 5aab35fb7d2e4323eec037b272d6081d6c739f10 | |
parent | 8234aca4486e03b887ee9bec9bf192339cb4b2ff (diff) | |
download | klee-887d48856f0bbfc5adfa1caea029d938a1ecb342.tar.gz |
tests: add STPDumpDebugQueries.c
-rw-r--r-- | test/Solver/STPDumpDebugQueries.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/Solver/STPDumpDebugQueries.c b/test/Solver/STPDumpDebugQueries.c new file mode 100644 index 00000000..c87d01c5 --- /dev/null +++ b/test/Solver/STPDumpDebugQueries.c @@ -0,0 +1,19 @@ +// REQUIRES: stp +// RUN: %clang %s -emit-llvm %O0opt -c -o %t1.bc +// RUN: rm -rf %t.klee-out +// RUN: %klee -solver-backend=stp --output-dir=%t.klee-out -debug-dump-stp-queries %t1.bc +// RUN: cat %t.klee-out/warnings.txt | FileCheck %s + +// Objective: test -debug-dump-stp-queries (just invocation and header in warnings.txt) + +#include "klee/klee.h" + +int main(int argc, char **argv) { + unsigned i; + klee_make_symbolic(&i, sizeof i, "i"); + if (i) + return 0; + else + return 1; + // CHECK: KLEE: WARNING: STP query: +} |