summaryrefslogtreecommitdiff
path: root/src/theory/arith/arith_rewriter.cpp
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2012-09-10 20:38:35 +0000
committerTim King <taking@cs.nyu.edu>2012-09-10 20:38:35 +0000
commit586b07613702027fc685e55994e2a325961ca5b7 (patch)
treea990485f228033e2335c8b5e0f30ecc46a2a3e31 /src/theory/arith/arith_rewriter.cpp
parent28a413e59f035841cf61c8ba1e3d1b575d1d89d1 (diff)
Fixed an error in the rewriter Pascal pointed out. This was in effectively dead code. (Nobody internally made minus nodes.)
Diffstat (limited to 'src/theory/arith/arith_rewriter.cpp')
-rw-r--r--src/theory/arith/arith_rewriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/theory/arith/arith_rewriter.cpp b/src/theory/arith/arith_rewriter.cpp
index 6b38dacce..345109c5b 100644
--- a/src/theory/arith/arith_rewriter.cpp
+++ b/src/theory/arith/arith_rewriter.cpp
@@ -61,7 +61,7 @@ RewriteResponse ArithRewriter::rewriteMinus(TNode t, bool pre){
}
}else{
Polynomial minuend = Polynomial::parsePolynomial(t[0]);
- Polynomial subtrahend = Polynomial::parsePolynomial(t[0]);
+ Polynomial subtrahend = Polynomial::parsePolynomial(t[1]);
Polynomial diff = minuend - subtrahend;
return RewriteResponse(REWRITE_DONE, diff.getNode());
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback