about summary refs log tree commit diff homepage
path: root/test
diff options
context:
space:
mode:
authorHristina Palikareva <h.palikareva@imperial.ac.uk>2013-10-17 17:11:22 +0100
committerHristina Palikareva <h.palikareva@imperial.ac.uk>2013-10-17 17:11:22 +0100
commit1ee4fbfcd1a8badb1e907e0cb303f02bda49e2e6 (patch)
tree1937c0024a5147449c112a4e0dc21ce371cde3d5 /test
parentc13d489873721c10f77dcb66276e8c5585e62aee (diff)
downloadklee-1ee4fbfcd1a8badb1e907e0cb303f02bda49e2e6.tar.gz
Fixed solver-related nondeterminism in test case ./test/Feature/ExprLogging.c -- using the counterexample cache affects the total number of queries issued to the solver.
Diffstat (limited to 'test')
-rw-r--r--test/Feature/ExprLogging.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Feature/ExprLogging.c b/test/Feature/ExprLogging.c
index ad671a5e..9e9df87a 100644
--- a/test/Feature/ExprLogging.c
+++ b/test/Feature/ExprLogging.c
@@ -1,5 +1,6 @@
 // RUN: %llvmgcc %s -emit-llvm -g -O0 -c -o %t1.bc
-// RUN: %klee --use-query-log=all:pc,all:smt2,solver:pc,solver:smt2 --write-pcs --write-cvcs --write-smt2s %t1.bc 2> %t2.log
+// We disable the cex-cache to eliminate nondeterminism across different solvers, in particular when counting the number of queries in the last two commands
+// RUN: %klee --use-cex-cache=false --use-query-log=all:pc,all:smt2,solver:pc,solver:smt2 --write-pcs --write-cvcs --write-smt2s %t1.bc 2> %t2.log
 // RUN: %kleaver -print-ast klee-last/all-queries.pc > %t3.log
 // RUN: %kleaver -print-ast %t3.log > %t4.log
 // RUN: diff %t3.log %t4.log
@@ -7,7 +8,7 @@
 // RUN: %kleaver -print-ast %t3.log > %t4.log
 // RUN: diff %t3.log %t4.log
 // RUN: grep "^; Query" klee-last/all-queries.smt2 | wc -l | grep -q 17
-// RUN: grep "^; Query" klee-last/solver-queries.smt2 | wc -l | grep -q 10
+// RUN: grep "^; Query" klee-last/solver-queries.smt2 | wc -l | grep -q 17
 
 #include <assert.h>