summaryrefslogtreecommitdiff
path: root/test/regress/regress0/arith
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2014-06-06 11:45:16 -0400
committerTim King <taking@cs.nyu.edu>2014-06-06 16:26:40 -0400
commit6ec8f46e9a7315057ac8fb5c58a6b44cf5a5159e (patch)
tree9afae28a572c91b4c9f93ca137c84d1fa1808aef /test/regress/regress0/arith
parent0dce010bea47bc6a318eece2bd92ed2305b64c21 (diff)
Patch for the subtype theoryof mode to make the equalities over disequal types get sent to the theory of the type.
Adding a new test case for bug 569. Fixes to the normal form of arithmetic so that real terms are before integer terms.
Diffstat (limited to 'test/regress/regress0/arith')
-rw-r--r--test/regress/regress0/arith/Makefile.am3
-rw-r--r--test/regress/regress0/arith/bug569.smt212
2 files changed, 14 insertions, 1 deletions
diff --git a/test/regress/regress0/arith/Makefile.am b/test/regress/regress0/arith/Makefile.am
index 2bfc87fc0..2fd1925f1 100644
--- a/test/regress/regress0/arith/Makefile.am
+++ b/test/regress/regress0/arith/Makefile.am
@@ -47,7 +47,8 @@ TESTS = \
miplib4.cvc \
miplibtrick.smt \
bug547.1.smt2 \
- bug547.2.smt2
+ bug547.2.smt2 \
+ bug569.smt2
# problem__003.smt2
EXTRA_DIST = $(TESTS) \
diff --git a/test/regress/regress0/arith/bug569.smt2 b/test/regress/regress0/arith/bug569.smt2
new file mode 100644
index 000000000..acb6ffcdf
--- /dev/null
+++ b/test/regress/regress0/arith/bug569.smt2
@@ -0,0 +1,12 @@
+(set-logic QF_AUFLIRA)
+(set-info :smt-lib-version 2.0)
+(set-info :category "crafted")
+(set-info :status unsat)
+(declare-fun v1 () Int)
+(declare-fun v3 () Int)
+(declare-fun v5 () Real)
+(assert (= (to_real v1) (+ (to_real v3) v5)))
+(assert (< v5 1))
+(assert (> v5 0))
+(check-sat)
+(exit)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback