Skip to content

Commit

Permalink
redundant true condition
Browse files Browse the repository at this point in the history
  • Loading branch information
yoni206 committed Aug 22, 2024
1 parent 8b43f17 commit 0867592
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions src/theory/bv/theory_bv_rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,32 +106,29 @@ TrustNode TheoryBVRewriter::expandDefinition(Node node)
Node TheoryBVRewriter::eliminateOverflows(Node node)
{
Node res = node;
if (true)
if (RewriteRule<UaddoEliminate>::applies(node))
{
if (RewriteRule<UaddoEliminate>::applies(node))
{
res = RewriteRule<UaddoEliminate>::run<false>(node);
}
else if (RewriteRule<SaddoEliminate>::applies(node))
{
res = RewriteRule<SaddoEliminate>::run<false>(node);
}
else if (RewriteRule<UmuloEliminate>::applies(node))
{
res = RewriteRule<UmuloEliminate>::run<false>(node);
}
else if (RewriteRule<SmuloEliminate>::applies(node))
{
res = RewriteRule<SmuloEliminate>::run<false>(node);
}
else if (RewriteRule<UsuboEliminate>::applies(node))
{
res = RewriteRule<UsuboEliminate>::run<false>(node);
}
else if (RewriteRule<SsuboEliminate>::applies(node))
{
res = RewriteRule<SsuboEliminate>::run<false>(node);
}
res = RewriteRule<UaddoEliminate>::run<false>(node);
}
else if (RewriteRule<SaddoEliminate>::applies(node))
{
res = RewriteRule<SaddoEliminate>::run<false>(node);
}
else if (RewriteRule<UmuloEliminate>::applies(node))
{
res = RewriteRule<UmuloEliminate>::run<false>(node);
}
else if (RewriteRule<SmuloEliminate>::applies(node))
{
res = RewriteRule<SmuloEliminate>::run<false>(node);
}
else if (RewriteRule<UsuboEliminate>::applies(node))
{
res = RewriteRule<UsuboEliminate>::run<false>(node);
}
else if (RewriteRule<SsuboEliminate>::applies(node))
{
res = RewriteRule<SsuboEliminate>::run<false>(node);
}
return res;
}
Expand Down

0 comments on commit 0867592

Please sign in to comment.