diff options
Diffstat (limited to 'test/regress/regress0/bv/bool-to-bv-all-array-bool.smt2')
-rw-r--r-- | test/regress/regress0/bv/bool-to-bv-all-array-bool.smt2 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/regress/regress0/bv/bool-to-bv-all-array-bool.smt2 b/test/regress/regress0/bv/bool-to-bv-all-array-bool.smt2 new file mode 100644 index 000000000..2a0c9d7b1 --- /dev/null +++ b/test/regress/regress0/bv/bool-to-bv-all-array-bool.smt2 @@ -0,0 +1,21 @@ +; COMMAND-LINE: --bool-to-bv=all --simplification=none +; EXPECT: sat +; checks that bool-to-bv pass handles arrays over booleans correctly +(set-logic QF_ABV) + +(declare-const A (Array Bool Bool)) +(declare-const B (Array Bool Bool)) +(declare-const b1 Bool) +(declare-const b2 Bool) +(declare-const b3 Bool) +(declare-const b4 Bool) + +(assert (= A (store B b1 b2))) +(assert (= b3 (select A (select B b2)))) +(assert (=> b1 b2)) +(assert (not (and b2 (ite b3 b1 b2)))) +(assert (=> b3 b1)) +(assert (= b4 (select B b2))) +(assert (xor b4 b2)) + +(check-sat)
\ No newline at end of file |