summaryrefslogtreecommitdiff
path: root/src/theory/arith/arith_rewriter.cpp
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 /src/theory/arith/arith_rewriter.cpp
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 'src/theory/arith/arith_rewriter.cpp')
-rw-r--r--src/theory/arith/arith_rewriter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/theory/arith/arith_rewriter.cpp b/src/theory/arith/arith_rewriter.cpp
index 13ee9183f..6f1df5958 100644
--- a/src/theory/arith/arith_rewriter.cpp
+++ b/src/theory/arith/arith_rewriter.cpp
@@ -417,6 +417,9 @@ Node ArithRewriter::rewriteTerm(TNode t){
return rewritePlus(t);
}else if(t.getKind() == kind::DIVISION){
return rewriteConstantDiv(t);
+ }else if(t.getKind() == kind::MINUS){
+ Node sub = makeSubtractionNode(t[0],t[1]);
+ return rewrite(sub);
}else{
Unreachable();
return Node::null();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback