Skip to content

Commit

Permalink
disable pow2 rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
yoni206 committed Apr 24, 2024
1 parent f38e940 commit 76b1236
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/theory/arith/arith_rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,19 +341,6 @@ RewriteResponse ArithRewriter::postRewriteTerm(TNode t){
}
}
}
else if (t[0].isConst()
&& t[0].getConst<Rational>().getNumerator().toUnsignedInt()
== 2
&& t[1].getType().isInteger())
{
Node ret = nodeManager()->mkNode(Kind::POW2, t[1]);
// ensure type is preserved
if (t.getType().isReal())
{
ret = rewriter::ensureReal(ret);
}
return RewriteResponse(REWRITE_AGAIN, ret);
}
return RewriteResponse(REWRITE_DONE, t);
}
case Kind::PI: return RewriteResponse(REWRITE_DONE, t);
Expand Down

0 comments on commit 76b1236

Please sign in to comment.