summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2017-10-11 17:58:33 -0700
committerGitHub <noreply@github.com>2017-10-11 17:58:33 -0700
commitd6d8cd9e46e4e3ac39f468e45b107ec4a0e5b9a2 (patch)
treedd634a60e67807dcf51477508f99bb0f8fa2f48a /test
parent435d9f0118914c634defa509e6c54a57c7b954ce (diff)
Add side conditions for UDIV_TOTAL, SHL, CONCAT. (#1224)
Diffstat (limited to 'test')
-rw-r--r--test/regress/regress0/quantifiers/Makefile.am5
-rw-r--r--test/regress/regress0/quantifiers/qbv-test-invert-concat-0.smt210
-rw-r--r--test/regress/regress0/quantifiers/qbv-test-invert-concat-1.smt210
-rw-r--r--test/regress/regress0/quantifiers/qbv-test-invert-shl.smt210
-rw-r--r--test/regress/regress0/quantifiers/qbv-test-invert-udiv-0.smt211
-rw-r--r--test/regress/regress0/quantifiers/qbv-test-invert-udiv-1.smt211
6 files changed, 57 insertions, 0 deletions
diff --git a/test/regress/regress0/quantifiers/Makefile.am b/test/regress/regress0/quantifiers/Makefile.am
index eb33e2c82..e045ad44c 100644
--- a/test/regress/regress0/quantifiers/Makefile.am
+++ b/test/regress/regress0/quantifiers/Makefile.am
@@ -92,6 +92,11 @@ TESTS = \
bug822.smt2 \
qbv-test-invert-mul.smt2 \
qbv-simple-2vars-vo.smt2 \
+ qbv-test-invert-concat-0.smt2 \
+ qbv-test-invert-concat-1.smt2 \
+ qbv-test-invert-shl.smt2 \
+ qbv-test-invert-udiv-0.smt2 \
+ qbv-test-invert-udiv-1.smt2 \
qbv-test-urem-rewrite.smt2
# regression can be solved with --finite-model-find --fmf-inst-engine
diff --git a/test/regress/regress0/quantifiers/qbv-test-invert-concat-0.smt2 b/test/regress/regress0/quantifiers/qbv-test-invert-concat-0.smt2
new file mode 100644
index 000000000..f4e19fc52
--- /dev/null
+++ b/test/regress/regress0/quantifiers/qbv-test-invert-concat-0.smt2
@@ -0,0 +1,10 @@
+; COMMAND-LINE: --cbqi-bv
+; EXPECT: sat
+(set-logic BV)
+(set-info :status sat)
+(declare-fun a () (_ BitVec 32))
+(declare-fun b () (_ BitVec 64))
+
+(assert (forall ((x (_ BitVec 32))) (not (= (concat x a) b))))
+
+(check-sat)
diff --git a/test/regress/regress0/quantifiers/qbv-test-invert-concat-1.smt2 b/test/regress/regress0/quantifiers/qbv-test-invert-concat-1.smt2
new file mode 100644
index 000000000..827e74605
--- /dev/null
+++ b/test/regress/regress0/quantifiers/qbv-test-invert-concat-1.smt2
@@ -0,0 +1,10 @@
+; COMMAND-LINE: --cbqi-bv
+; EXPECT: sat
+(set-logic BV)
+(set-info :status sat)
+(declare-fun a () (_ BitVec 32))
+(declare-fun b () (_ BitVec 64))
+
+(assert (forall ((x (_ BitVec 32))) (not (= (concat a x) b))))
+
+(check-sat)
diff --git a/test/regress/regress0/quantifiers/qbv-test-invert-shl.smt2 b/test/regress/regress0/quantifiers/qbv-test-invert-shl.smt2
new file mode 100644
index 000000000..97a0662eb
--- /dev/null
+++ b/test/regress/regress0/quantifiers/qbv-test-invert-shl.smt2
@@ -0,0 +1,10 @@
+; COMMAND-LINE: --cbqi-bv
+; EXPECT: sat
+(set-logic BV)
+(set-info :status sat)
+(declare-fun a () (_ BitVec 32))
+(declare-fun b () (_ BitVec 32))
+
+(assert (forall ((x (_ BitVec 32))) (not (= (bvshl x a) b))))
+
+(check-sat)
diff --git a/test/regress/regress0/quantifiers/qbv-test-invert-udiv-0.smt2 b/test/regress/regress0/quantifiers/qbv-test-invert-udiv-0.smt2
new file mode 100644
index 000000000..becfc5315
--- /dev/null
+++ b/test/regress/regress0/quantifiers/qbv-test-invert-udiv-0.smt2
@@ -0,0 +1,11 @@
+; COMMAND-LINE: --cbqi-bv --bv-div-zero-const
+; EXPECT: sat
+(set-logic BV)
+(set-info :status sat)
+(declare-fun a () (_ BitVec 16))
+(declare-fun b () (_ BitVec 16))
+
+(assert (distinct a b (_ bv0 16)))
+(assert (forall ((x (_ BitVec 16))) (not (= (bvudiv x a) b))))
+
+(check-sat)
diff --git a/test/regress/regress0/quantifiers/qbv-test-invert-udiv-1.smt2 b/test/regress/regress0/quantifiers/qbv-test-invert-udiv-1.smt2
new file mode 100644
index 000000000..0373cf8f3
--- /dev/null
+++ b/test/regress/regress0/quantifiers/qbv-test-invert-udiv-1.smt2
@@ -0,0 +1,11 @@
+; COMMAND-LINE: --cbqi-bv --bv-div-zero-const
+; EXPECT: sat
+(set-logic BV)
+(set-info :status sat)
+(declare-fun a () (_ BitVec 16))
+(declare-fun b () (_ BitVec 16))
+
+(assert (distinct a b (_ bv0 16)))
+(assert (forall ((x (_ BitVec 16))) (not (= (bvudiv a x) b))))
+
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback