about summary refs log tree commit diff homepage
path: root/test/Expr/Parser
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/Parser
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/Parser')
-rw-r--r--test/Expr/Parser/Simplify.pc5
1 files changed, 5 insertions, 0 deletions
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)])