summaryrefslogtreecommitdiff
path: root/test/regress/regress0
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2015-09-28 16:18:32 +0200
committerajreynol <andrew.j.reynolds@gmail.com>2015-09-28 16:18:32 +0200
commitef7b7bba7bc9b207d5a2198518f21b13490caa32 (patch)
tree43867e7dcab54bd77bc07167e096cc518b0be035 /test/regress/regress0
parent187e5d57adeda59c8899321c882db1d5b9a6f2ba (diff)
Improve quantifiers engine wrt incremental presolve. Add regressions.
Diffstat (limited to 'test/regress/regress0')
-rw-r--r--test/regress/regress0/push-pop/Makefile.am3
-rw-r--r--test/regress/regress0/push-pop/inc-double-u.smt216
-rw-r--r--test/regress/regress0/strings/Makefile.am3
-rw-r--r--test/regress/regress0/strings/norn-360.smt225
4 files changed, 45 insertions, 2 deletions
diff --git a/test/regress/regress0/push-pop/Makefile.am b/test/regress/regress0/push-pop/Makefile.am
index 649cbee90..6d50cc39f 100644
--- a/test/regress/regress0/push-pop/Makefile.am
+++ b/test/regress/regress0/push-pop/Makefile.am
@@ -42,7 +42,8 @@ BUG_TESTS = \
quant-fun-proc-unfd.smt2 \
bug654-dd.smt2 \
bug-fmf-fun-skolem.smt2 \
- bug674.smt2
+ bug674.smt2 \
+ inc-double-u.smt2
TESTS = $(SMT_TESTS) $(SMT2_TESTS) $(CVC_TESTS) $(BUG_TESTS)
diff --git a/test/regress/regress0/push-pop/inc-double-u.smt2 b/test/regress/regress0/push-pop/inc-double-u.smt2
new file mode 100644
index 000000000..a01643df3
--- /dev/null
+++ b/test/regress/regress0/push-pop/inc-double-u.smt2
@@ -0,0 +1,16 @@
+; COMMAND-LINE: --incremental
+(set-logic UFLIA)
+(declare-fun P (Int) Bool)
+(declare-fun R (Int) Bool)
+(assert (forall ((x Int)) (=> (R x) (not (P x)))))
+; EXPECT: unknown
+(check-sat)
+(assert (R 0))
+; EXPECT: unknown
+(check-sat)
+(assert (forall ((x Int)) (P x)))
+; EXPECT: unsat
+(check-sat)
+(push 1)
+; EXPECT: unsat
+(check-sat)
diff --git a/test/regress/regress0/strings/Makefile.am b/test/regress/regress0/strings/Makefile.am
index 716d41365..09dbdf08f 100644
--- a/test/regress/regress0/strings/Makefile.am
+++ b/test/regress/regress0/strings/Makefile.am
@@ -58,7 +58,8 @@ TESTS = \
bug613.smt2 \
idof-triv.smt2 \
chapman150408.smt2 \
- pierre150331.smt2
+ pierre150331.smt2 \
+ norn-360.smt2
FAILING_TESTS =
diff --git a/test/regress/regress0/strings/norn-360.smt2 b/test/regress/regress0/strings/norn-360.smt2
new file mode 100644
index 000000000..573dcbe01
--- /dev/null
+++ b/test/regress/regress0/strings/norn-360.smt2
@@ -0,0 +1,25 @@
+(set-logic QF_SLIA)
+(set-option :strings-exp true)
+(set-info :status sat)
+
+(declare-fun var_0 () String)
+(declare-fun var_1 () String)
+(declare-fun var_2 () String)
+(declare-fun var_3 () String)
+(declare-fun var_4 () String)
+(declare-fun var_5 () String)
+(declare-fun var_6 () String)
+(declare-fun var_7 () String)
+(declare-fun var_8 () String)
+(declare-fun var_9 () String)
+(declare-fun var_10 () String)
+(declare-fun var_11 () String)
+(declare-fun var_12 () String)
+
+(assert (str.in.re (str.++ var_3 "z" var_4 ) (re.++ (re.* (re.union (re.union (str.to.re "z") (str.to.re "b")) (re.++ (str.to.re "a") (re.union (re.union (str.to.re "z") (str.to.re "b")) (str.to.re "a"))))) (str.to.re "a"))))
+(assert (str.in.re (str.++ var_3 "z" var_4 ) (re.++ (re.* (re.union (re.union (str.to.re "z") (str.to.re "b")) (re.++ (str.to.re "a") (re.union (str.to.re "z") (str.to.re "a"))))) (str.to.re "a"))))
+(assert (str.in.re (str.++ var_3 "z" var_4 ) (re.++ (re.* (re.union (str.to.re "z") (re.++ (re.union (str.to.re "b") (str.to.re "a")) (re.union (str.to.re "z") (str.to.re "b"))))) (re.union (str.to.re "b") (str.to.re "a")))))
+(assert (str.in.re var_4 (re.* (re.range "a" "u"))))
+(assert (str.in.re var_3 (re.* (re.range "a" "u"))))
+(assert (<= 0 (str.len var_4)))
+(check-sat) \ No newline at end of file
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback