summaryrefslogtreecommitdiff
path: root/src/theory/arith/arith_rewriter.cpp
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 /src/theory/arith/arith_rewriter.cpp
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 '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 5aa904aed..1d9abc38b 100644
--- a/src/theory/arith/arith_rewriter.cpp
+++ b/src/theory/arith/arith_rewriter.cpp
@@ -355,6 +355,9 @@ RewriteResponse ArithRewriter::postRewriteAtom(TNode atom){
Polynomial pleft = Polynomial::parsePolynomial(left);
Polynomial pright = Polynomial::parsePolynomial(right);
+ Debug("arith::rewriter") << "pleft " << pleft.getNode() << std::endl;
+ Debug("arith::rewriter") << "pright " << pright.getNode() << std::endl;
+
Comparison cmp = Comparison::mkComparison(atom.getKind(), pleft, pright);
Assert(cmp.isNormalForm());
return RewriteResponse(REWRITE_DONE, cmp.getNode());
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback