File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1908,13 +1908,14 @@ void smt2_convt::convert_expr(const exprt &expr)
1908
1908
" overflow check should not be performed on unsupported type" ,
1909
1909
op_type.id_string ());
1910
1910
}
1911
- else if (expr.id ()==ID_overflow_mult)
1911
+ else if (
1912
+ const auto mult_overflow = expr_try_dynamic_cast<mult_overflow_exprt>(expr))
1912
1913
{
1913
- const auto &op0 = to_binary_expr (expr). op0 ();
1914
- const auto &op1 = to_binary_expr (expr). op1 ();
1914
+ const auto &op0 = mult_overflow-> op0 ();
1915
+ const auto &op1 = mult_overflow-> op1 ();
1915
1916
1916
1917
DATA_INVARIANT (
1917
- expr. type ().id () == ID_bool,
1918
+ mult_overflow-> type ().id () == ID_bool,
1918
1919
" overflow mult expression shall be of Boolean type" );
1919
1920
1920
1921
// No better idea than to multiply with double the bits and then compare
You can’t perform that action at this time.
0 commit comments