about summary refs log tree commit diff homepage
path: root/test/Feature
diff options
context:
space:
mode:
authorCristian Cadar <cristic@cs.stanford.edu>2012-10-24 15:02:10 +0000
committerCristian Cadar <cristic@cs.stanford.edu>2012-10-24 15:02:10 +0000
commite8c6be312a3e74f158fe11ff3e67f70189a167de (patch)
tree3dad7c679d727ec1229e70601bb2d50d21b3bd33 /test/Feature
parentadf4ee6671f790c7f9ca9301dce27cb903a50ca4 (diff)
downloadklee-e8c6be312a3e74f158fe11ff3e67f70189a167de.tar.gz
Patch by Dan Liew: "Added primitive test that checks kleaver's new
-print-smt option.   Improved Feature/ExprLogging.c test:
- Now (primitive) checks the result of -write-smt2s
- Now (primitive) checks the result of -write-pcs
- Now (primitive) checks the result of -write-cvcs"



git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@166569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature')
-rw-r--r--test/Feature/ExprLogging.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Feature/ExprLogging.c b/test/Feature/ExprLogging.c
index 6a996d38..d8dfe4b4 100644
--- a/test/Feature/ExprLogging.c
+++ b/test/Feature/ExprLogging.c
@@ -1,8 +1,13 @@
 // RUN: %llvmgcc %s -emit-llvm -g -O0 -c -o %t1.bc
-// RUN: %klee --use-query-log=all:pc --write-pcs --write-cvcs %t1.bc 2> %t2.log
+// RUN: %klee --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
+// RUN: %kleaver -print-ast klee-last/solver-queries.pc > %t3.log
+// RUN: %kleaver -print-ast %t3.log > %t4.log
+// RUN: diff %t3.log %t4.log
+// RUN: grep "^;SMTLIBv2 Query" klee-last/all-queries.smt2 | wc -l | grep -q 17
+// RUN: grep "^;SMTLIBv2 Query" klee-last/solver-queries.smt2 | wc -l | grep -q 10
 
 #include <assert.h>