Skip to content

Commit 98c80dc

Browse files
committed
Use binary_overflow_exprt in simplify_exprt::simplify_node
1 parent 7936b57 commit 98c80dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/simplify_expr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,10 +2547,10 @@ simplify_exprt::resultt<> simplify_exprt::simplify_node(exprt node)
25472547
r = simplify_complex(to_unary_expr(expr));
25482548
}
25492549
else if(
2550-
expr.id() == ID_overflow_plus || expr.id() == ID_overflow_minus ||
2551-
expr.id() == ID_overflow_mult || expr.id() == ID_overflow_shl)
2550+
const auto binary_overflow =
2551+
expr_try_dynamic_cast<binary_overflow_exprt>(expr))
25522552
{
2553-
r = simplify_overflow_binary(to_binary_overflow_expr(expr));
2553+
r = simplify_overflow_binary(*binary_overflow);
25542554
}
25552555
else if(expr.id() == ID_overflow_unary_minus)
25562556
{

0 commit comments

Comments
 (0)