diff options
Diffstat (limited to 'test')
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) |