We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bda63c9 commit 18c6c1fCopy full SHA for 18c6c1f
src/util/simplify_expr_int.cpp
@@ -1005,8 +1005,7 @@ bool simplify_exprt::simplify_shifts(exprt &expr)
1005
if(expr.op0().type().id()==ID_unsignedbv ||
1006
expr.op0().type().id()==ID_signedbv)
1007
{
1008
- mp_integer width=
1009
- string2integer(id2string(expr.op0().type().get(ID_width)));
+ const std::size_t width = to_bitvector_type(expr.op0().type()).get_width();
1010
1011
if(expr.id()==ID_lshr)
1012
0 commit comments