about summary refs log tree commit diff homepage
path: root/test
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-05 08:03:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-05 08:03:19 +0000
commitd5102295ea7f5780119108f0b8cf118ad7c04311 (patch)
treedf5b078bea3f9f5bdc0cc2272039afbdca821590 /test
parente5620b87e1227fb97d08abe85b2f47c14ceae3cc (diff)
downloadklee-d5102295ea7f5780119108f0b8cf118ad7c04311.tar.gz
Add evaluation support to kleaver (now the default).
 - Currently only handles validity queries.


git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Expr/Evaluate.pc13
-rw-r--r--test/Expr/dg.exp2
2 files changed, 14 insertions, 1 deletions
diff --git a/test/Expr/Evaluate.pc b/test/Expr/Evaluate.pc
new file mode 100644
index 00000000..354b0489
--- /dev/null
+++ b/test/Expr/Evaluate.pc
@@ -0,0 +1,13 @@
+# RUN: %kleaver -evaluate %s > %t.log
+
+# RUN: grep "Query 0:	INVALID" %t.log
+# Query 0
+(query [] (Not (Ult (ReadLSB w32 0 arr65)
+                    16)))
+
+# RUN: grep "Query 1:	VALID" %t.log
+# Query 1
+(query [(Eq N0:(ReadLSB w32 0 arr1) 10)
+        (Eq N1:(ReadLSB w32 4 arr1) 20)]
+       (Eq (Add w32 N0 N1)
+           30))
\ No newline at end of file
diff --git a/test/Expr/dg.exp b/test/Expr/dg.exp
index 879685ca..94fc4df8 100644
--- a/test/Expr/dg.exp
+++ b/test/Expr/dg.exp
@@ -1,3 +1,3 @@
 load_lib llvm.exp
 
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{pc}]]