From: lianah Date: Sat, 14 Jun 2014 18:18:45 +0000 (-0400) Subject: fix to inequality rewrite X-Git-Tag: cvc5-1.0.0~6814 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61e3aa5a2483aeb02ec76380725f842471451927;p=cvc5.git fix to inequality rewrite --- diff --git a/src/theory/bv/theory_bv_rewrite_rules_simplification.h b/src/theory/bv/theory_bv_rewrite_rules_simplification.h index 1569fb008..a8a7d1127 100644 --- a/src/theory/bv/theory_bv_rewrite_rules_simplification.h +++ b/src/theory/bv/theory_bv_rewrite_rules_simplification.h @@ -1168,6 +1168,10 @@ bool RewriteRule::applies(TNode node) { if (y1[0].getKind() != kind::CONST_BITVECTOR && y1[1].getKind() != kind::CONST_BITVECTOR) return false; + + if (y1.getNumChildren() != 2) + return false; + TNode one = y1[0].getKind() == kind::CONST_BITVECTOR ? y1[0] : y1[1]; if (one != utils::mkConst(utils::getSize(one), 1)) return false; return true;