projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d039293
)
fix to inequality rewrite
author
lianah
<lianahady@gmail.com>
Sat, 14 Jun 2014 18:18:45 +0000
(14:18 -0400)
committer
lianah
<lianahady@gmail.com>
Sat, 14 Jun 2014 18:18:45 +0000
(14:18 -0400)
src/theory/bv/theory_bv_rewrite_rules_simplification.h
patch
|
blob
|
history
diff --git
a/src/theory/bv/theory_bv_rewrite_rules_simplification.h
b/src/theory/bv/theory_bv_rewrite_rules_simplification.h
index 1569fb00825ce6a7d1c0edd8403284b2385bb6e7..a8a7d112785530fcd75b46d09354d0f3a9b7aebe 100644
(file)
--- 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<UltPlusOne>::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;