fixed faulty bv rewrite rule
authorLiana Hadarean <lianahady@gmail.com>
Wed, 28 Mar 2012 02:47:50 +0000 (02:47 +0000)
committerLiana Hadarean <lianahady@gmail.com>
Wed, 28 Mar 2012 02:47:50 +0000 (02:47 +0000)
src/theory/bv/theory_bv_rewrite_rules_simplification.h

index 3b813d1fa2307a33d01874bb2c56b60b3ca6b2aa..507f98c9127e95f23b84070e0e2434e4efc2511b 100644 (file)
@@ -558,7 +558,7 @@ Node RewriteRule<UleSelf>::apply(Node node) {
 template<>
 bool RewriteRule<ZeroUle>::applies(Node node) {
   return (node.getKind() == kind::BITVECTOR_ULE &&
-          node[1] == utils::mkConst(BitVector(utils::getSize(node[0]), Integer(0))));
+          node[0] == utils::mkConst(BitVector(utils::getSize(node[0]), Integer(0))));
 }
 
 template<>