summaryrefslogtreecommitdiff
path: root/test/regress
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-08-01 12:22:09 -0500
committerAndres Noetzli <andres.noetzli@gmail.com>2018-08-01 10:22:09 -0700
commit0aa6e039827750757941751e0829575a55601ace (patch)
tree25e21dfd16e232e07615791935bfc6c32fc5bcab /test/regress
parentb721666fd7a2dafaaeb112059c2588c99e8020ec (diff)
Fix issues with bv2nat (#2219)
This includes: - A missing case in the smt2 printer, - A bug in an inference of int2bv applied to bv2nat where the types are different.
Diffstat (limited to 'test/regress')
-rw-r--r--test/regress/Makefile.tests1
-rw-r--r--test/regress/regress1/bv/bv2nat-types.smt27
2 files changed, 8 insertions, 0 deletions
diff --git a/test/regress/Makefile.tests b/test/regress/Makefile.tests
index c15e3d045..0b9e415fa 100644
--- a/test/regress/Makefile.tests
+++ b/test/regress/Makefile.tests
@@ -1045,6 +1045,7 @@ REG1_TESTS = \
regress1/bv/bv-proof00.smt \
regress1/bv/bv2nat-ground.smt2 \
regress1/bv/bv2nat-simp-range-sat.smt2 \
+ regress1/bv/bv2nat-types.smt2 \
regress1/bv/cmu-rdk-3.smt2 \
regress1/bv/decision-weight00.smt2 \
regress1/bv/divtest.smt2 \
diff --git a/test/regress/regress1/bv/bv2nat-types.smt2 b/test/regress/regress1/bv/bv2nat-types.smt2
new file mode 100644
index 000000000..e75ffb3ca
--- /dev/null
+++ b/test/regress/regress1/bv/bv2nat-types.smt2
@@ -0,0 +1,7 @@
+(set-logic QF_ALL)
+(set-info :status sat)
+(declare-fun x () (_ BitVec 8))
+(assert
+(= (concat #b000000000000000000000000 x) ((_ int2bv 32) (bv2nat x)))
+)
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback