summaryrefslogtreecommitdiff
path: root/test/regress/regress0/arith
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2012-11-12 23:50:29 +0000
committerTim King <taking@cs.nyu.edu>2012-11-12 23:50:29 +0000
commit79b80442e5df070fe838de3fe4c09b235f6bddf5 (patch)
tree7aed459a84a1ab94b7a6e90f2d308cd24488430b /test/regress/regress0/arith
parent8c325a4bf6888e33fb8fdc1e071a8aab4aa20b6f (diff)
Improved error reporting for improperly using non-linear division in linear arithmetic.
Diffstat (limited to 'test/regress/regress0/arith')
-rw-r--r--test/regress/regress0/arith/Makefile.am1
-rw-r--r--test/regress/regress0/arith/div.09.smt211
2 files changed, 12 insertions, 0 deletions
diff --git a/test/regress/regress0/arith/Makefile.am b/test/regress/regress0/arith/Makefile.am
index 12aa0eecd..38e7e6f4e 100644
--- a/test/regress/regress0/arith/Makefile.am
+++ b/test/regress/regress0/arith/Makefile.am
@@ -36,6 +36,7 @@ TESTS = \
div.06.smt2 \
div.07.smt2 \
div.08.smt2 \
+ div.09.smt2 \
mult.01.smt2 \
mult.02.smt2 \
bug443.delta01.smt
diff --git a/test/regress/regress0/arith/div.09.smt2 b/test/regress/regress0/arith/div.09.smt2
new file mode 100644
index 000000000..2f1bca63a
--- /dev/null
+++ b/test/regress/regress0/arith/div.09.smt2
@@ -0,0 +1,11 @@
+; EXPECT: (error "Non-linear term was asserted to arithmetic in a linear logic.")
+; EXIT: 1
+(set-logic QF_LRA)
+(set-info :status unknown)
+(declare-fun n () Real)
+
+; This example is test that LRA rejects multiplication terms
+
+(assert (= (/ n n) 1))
+
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback