summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2018-05-03 22:50:41 -0700
committerAndres Noetzli <andres.noetzli@gmail.com>2018-05-03 22:50:41 -0700
commitcbfcc24f0da280e21de5118cc2c0c6a18a71a629 (patch)
tree649c5f5c49aec6565e76df2a8e9c46f04e9bb5ee /test
parent8a3f9efe5856fc07fbc99b9b606397a5079ddd78 (diff)
Refactor bv-intro-pow2 preprocessing pass. (#1851)
Diffstat (limited to 'test')
-rw-r--r--test/regress/Makefile.tests1
-rw-r--r--test/regress/regress0/bv/test-bv_intro_pow2.smt214
2 files changed, 15 insertions, 0 deletions
diff --git a/test/regress/Makefile.tests b/test/regress/Makefile.tests
index 70cb56b8f..0a0732753 100644
--- a/test/regress/Makefile.tests
+++ b/test/regress/Makefile.tests
@@ -308,6 +308,7 @@ REG0_TESTS = \
regress0/bv/mult-pow2-negative.smt2 \
regress0/bv/sizecheck.cvc \
regress0/bv/smtcompbug.smt \
+ regress0/bv/test-bv_intro_pow2.smt2 \
regress0/bv/unsound1-reduced.smt2 \
regress0/chained-equality.smt2 \
regress0/constant-rewrite.smt \
diff --git a/test/regress/regress0/bv/test-bv_intro_pow2.smt2 b/test/regress/regress0/bv/test-bv_intro_pow2.smt2
new file mode 100644
index 000000000..96779d3a6
--- /dev/null
+++ b/test/regress/regress0/bv/test-bv_intro_pow2.smt2
@@ -0,0 +1,14 @@
+; COMMAND-LINE: --bv-intro-pow2 --no-check-proofs --no-check-unsat-cores
+(set-info :smt-lib-version 2.6)
+(set-logic QF_BV)
+(set-info :status unsat)
+(declare-fun x () (_ BitVec 32))
+(declare-fun y () (_ BitVec 32))
+(declare-fun z () (_ BitVec 32))
+(assert (= z (bvadd x y)))
+(assert (distinct x y))
+(assert (and (distinct x (_ bv0 32)) (= (bvand x (bvsub x (_ bv1 32))) (_ bv0 32))))
+(assert (and (distinct y (_ bv0 32)) (= (bvand y (bvsub y (_ bv1 32))) (_ bv0 32))))
+(assert (and (distinct z (_ bv0 32)) (= (bvand z (bvsub z (_ bv1 32))) (_ bv0 32))))
+(check-sat)
+(exit)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback