about summary refs log tree commit diff homepage
path: root/test/Solver
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-16 16:10:26 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-16 16:10:26 +0000
commit5d475cf47080e97e76554a82a02fafa37d2ddbbb (patch)
tree191678446d8012742d3a765ee05198dce776d408 /test/Solver
parent5a669f7567c4ee2c54bf7d9460316afded7349b0 (diff)
downloadklee-5d475cf47080e97e76554a82a02fafa37d2ddbbb.tar.gz
Improve FastCexSolver:
 - Bug fix, unbreak Concat propogation (recent regression).

 - Also, add some simple propogation for Add.
 
 - These two knock off another 50% of the queries hitting STP from the first 30s
   of 'dd'.

 - Also, add some debugging code.


git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73488 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Solver')
-rw-r--r--test/Solver/FastCexSolver.pc12
-rw-r--r--test/Solver/dg.exp3
2 files changed, 15 insertions, 0 deletions
diff --git a/test/Solver/FastCexSolver.pc b/test/Solver/FastCexSolver.pc
new file mode 100644
index 00000000..10cdce48
--- /dev/null
+++ b/test/Solver/FastCexSolver.pc
@@ -0,0 +1,12 @@
+# RUN: %kleaver --use-fast-cex-solver --use-dummy-solver %s > %t
+# RUN: not grep FAIL %t
+
+array arr1[4] : w32 -> w8 = symbolic
+(query [] (Not (Eq 4096 (ReadLSB w32 0 arr1))))
+
+array arr2[2] : w32 -> w8 = symbolic
+(query [(Ule (Add w8 208 N0:(Read w8 0 arr2))
+             9)]
+       (Eq 52 N0))
+
+
diff --git a/test/Solver/dg.exp b/test/Solver/dg.exp
new file mode 100644
index 00000000..94fc4df8
--- /dev/null
+++ b/test/Solver/dg.exp
@@ -0,0 +1,3 @@
+load_lib llvm.exp
+
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{pc}]]