From 5d475cf47080e97e76554a82a02fafa37d2ddbbb Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 16 Jun 2009 16:10:26 +0000 Subject: 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 --- test/Solver/FastCexSolver.pc | 12 ++++++++++++ test/Solver/dg.exp | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 test/Solver/FastCexSolver.pc create mode 100644 test/Solver/dg.exp (limited to 'test') 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}]] -- cgit 1.4.1