summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2010-05-21 19:27:18 +0000
committerTim King <taking@cs.nyu.edu>2010-05-21 19:27:18 +0000
commit4ba56dc24c972afae6137e4dd6a05f3957e48bf5 (patch)
tree45bde947434108368092d09a355108469b58d524 /test
parent5321d62fce6c747fa9d11e9df5b2ef8c4e25de21 (diff)
Small fixes to TheoryArith. Added a hack to make Integers a subtype of Real. See Bug 127 for a discussion of the hack. I am also adding a regression test that does not work (bug 128). It is not enabled so make check should still be fine.
Diffstat (limited to 'test')
-rw-r--r--test/regress/regress0/ite_arith.smt26
-rw-r--r--test/regress/regress0/ite_real_int_type.smt8
2 files changed, 14 insertions, 0 deletions
diff --git a/test/regress/regress0/ite_arith.smt2 b/test/regress/regress0/ite_arith.smt2
new file mode 100644
index 000000000..0e171666f
--- /dev/null
+++ b/test/regress/regress0/ite_arith.smt2
@@ -0,0 +1,6 @@
+(set-logic QF_LRA)
+(set-info :status unsat)
+(declare-fun x () Real)
+(declare-fun y () Real)
+(assert (not (= x (ite true x y))))
+(check-sat)
diff --git a/test/regress/regress0/ite_real_int_type.smt b/test/regress/regress0/ite_real_int_type.smt
new file mode 100644
index 000000000..5141a0b42
--- /dev/null
+++ b/test/regress/regress0/ite_real_int_type.smt
@@ -0,0 +1,8 @@
+(benchmark ite_real_int_type
+:logic QF_LRA
+:status sat
+:extrafuns ((x Real))
+:extrafuns ((y Real))
+:formula
+ (and (= 0 (ite true x 1)) (= 0 (ite (= x 0) 0 1)) (= x (ite true y 0)) (= 0 (ite true 0 0)) )
+)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback