about summary refs log tree commit diff homepage
path: root/test/Replay/libkleeruntest/replay_klee_prefer_cex.c
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2018-03-26 16:33:23 +0100
committerMartinNowack <martin.nowack@gmail.com>2018-05-01 21:23:45 +0200
commit871fef8da228270f2d57fc76e4d93bb082f4d046 (patch)
tree7eb08e9be3b343c100b5fc610f61c054485f8d2a /test/Replay/libkleeruntest/replay_klee_prefer_cex.c
parent37321de9d86ff45049eec83a069a10d4836b06f0 (diff)
downloadklee-871fef8da228270f2d57fc76e4d93bb082f4d046.tar.gz
Ensured program reliably has 3 paths to be explored, and removed unnecessary options. Make klee_abort() call abort() in replay, and removed trivial test which cannot be easily integrated into the test suite.
Diffstat (limited to 'test/Replay/libkleeruntest/replay_klee_prefer_cex.c')
-rw-r--r--test/Replay/libkleeruntest/replay_klee_prefer_cex.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Replay/libkleeruntest/replay_klee_prefer_cex.c b/test/Replay/libkleeruntest/replay_klee_prefer_cex.c
index de494975..df441ea8 100644
--- a/test/Replay/libkleeruntest/replay_klee_prefer_cex.c
+++ b/test/Replay/libkleeruntest/replay_klee_prefer_cex.c
@@ -1,6 +1,6 @@
-// RUN: %llvmgcc -DPREFER_VALUE=33 %s -emit-llvm -g -O0 -c -o %t.bc
+// RUN: %llvmgcc %s -emit-llvm -g -O0 -c -o %t.bc
 // RUN: rm -rf %t.klee-out
-// RUN: %klee --output-dir=%t.klee-out --search=dfs %t.bc
+// RUN: %klee --output-dir=%t.klee-out %t.bc
 
 // This should produce three test cases.
 // RUN: test -f %t.klee-out/test000001.ktest
@@ -32,10 +32,12 @@ int main(int argc, char** argv) {
       // It's fine if the prefered value cannot be used
       // CHECK_3: x=1, y=0
     } else {
+      printf("x is allowed to be 33\n");
       // The prefered value should be used if it can be
       // CHECK_2: x=33
     }
   } else {
+    printf("x is not allowed to be 33\n");
     // CHECK_1-NOT: x=33
   }