diff options
author | Tim King <taking@cs.nyu.edu> | 2012-09-10 20:38:35 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2012-09-10 20:38:35 +0000 |
commit | 586b07613702027fc685e55994e2a325961ca5b7 (patch) | |
tree | a990485f228033e2335c8b5e0f30ecc46a2a3e31 /src | |
parent | 28a413e59f035841cf61c8ba1e3d1b575d1d89d1 (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')
-rw-r--r-- | src/theory/arith/arith_rewriter.cpp | 2 |
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()); } |