From: Clark Barrett Date: Sun, 10 Jun 2012 15:55:31 +0000 (+0000) Subject: Fixed one more bug in rewriter X-Git-Tag: cvc5-1.0.0~8092 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2bee2773194c51a67270535b475870d31b756c7;p=cvc5.git Fixed one more bug in rewriter --- diff --git a/src/theory/bv/theory_bv_rewrite_rules_normalization.h b/src/theory/bv/theory_bv_rewrite_rules_normalization.h index 4fa96c231..f5577e2ed 100644 --- a/src/theory/bv/theory_bv_rewrite_rules_normalization.h +++ b/src/theory/bv/theory_bv_rewrite_rules_normalization.h @@ -429,8 +429,8 @@ Node RewriteRule::apply(TNode node) { // If both constants are nonzero, combine on right, otherwise leave them where they are if (rightConst != zero) { - leftConst = zero; rightConst = rightConst - leftConst; + leftConst = zero; if (rightConst != zero) { childrenRight.push_back(utils::mkConst(rightConst)); }