about summary refs log tree commit diff homepage
path: root/test/Expr
diff options
context:
space:
mode:
authorCristian Cadar <cristic@cs.stanford.edu>2009-07-15 05:55:33 +0000
committerCristian Cadar <cristic@cs.stanford.edu>2009-07-15 05:55:33 +0000
commitd786ba65b69c57fec0804d4a529682844ac2d411 (patch)
tree7f026e33b4088017eb6fba0c985b1e189d3f190f /test/Expr
parent751901a5bb099ed37ce571001b4cad005be80f3d (diff)
downloadklee-d786ba65b69c57fec0804d4a529682844ac2d411.tar.gz
Fixed two test cases.
The failing test case is actually (query [false] false), which 
should return VALID, but currently returns INVALID.



git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@75747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Expr')
-rw-r--r--test/Expr/Evaluate2.pc5
-rw-r--r--test/Expr/Parser/Simplify.pc5
2 files changed, 7 insertions, 3 deletions
diff --git a/test/Expr/Evaluate2.pc b/test/Expr/Evaluate2.pc
index 0b50a0bd..d62241f0 100644
--- a/test/Expr/Evaluate2.pc
+++ b/test/Expr/Evaluate2.pc
@@ -1,6 +1,5 @@
 # RUN: %kleaver -evaluate %s > %t.log
 
-# RUN: grep "Query 0:	INVALID" %t.log
+# RUN: grep "Query 0:	VALID" %t.log
 # XFAIL: *
-(query [false] true)
-
+(query [false] false)
diff --git a/test/Expr/Parser/Simplify.pc b/test/Expr/Parser/Simplify.pc
index e89d79ff..1a853b16 100644
--- a/test/Expr/Parser/Simplify.pc
+++ b/test/Expr/Parser/Simplify.pc
@@ -33,3 +33,8 @@ array a[64] : w32 -> w8 = symbolic
 # RUN: grep                       \"(Not (Eq 1 (Read w8 1 a))))\" %t2
 (query [] false [(Not (Or (Eq 0 (Read w8 0 a))
                           (Eq 1 (Read w8 1 a))))])
+
+# Check -- false == X ==> !X
+# RUN: grep -A 2 \"# Query 7\" %t > %t2
+# RUN: grep \"(query .. false .(Not (Extract 1 (Read w8 0 a))).)\" %t2
+(query [] false [(Eq (Extract w1 1 (Read w8 0 a)) false)])