File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -109,25 +109,6 @@ bvt boolbvt::convert_bitvector(const exprt &expr)
109
109
return convert_with (to_with_expr (expr));
110
110
else if (expr.id ()==ID_update)
111
111
return convert_update (to_update_expr (expr));
112
- else if (expr.id ()==ID_width)
113
- {
114
- std::size_t result_width=boolbv_width (expr.type ());
115
-
116
- if (result_width==0 )
117
- return conversion_failed (expr);
118
-
119
- if (expr.operands ().size ()!=1 )
120
- return conversion_failed (expr);
121
-
122
- std::size_t op_width = boolbv_width (to_unary_expr (expr).op ().type ());
123
-
124
- if (op_width==0 )
125
- return conversion_failed (expr);
126
-
127
- if (expr.type ().id ()==ID_unsignedbv ||
128
- expr.type ().id ()==ID_signedbv)
129
- return bv_utils.build_constant (op_width/8 , result_width);
130
- }
131
112
else if (expr.id ()==ID_case)
132
113
return convert_case (expr);
133
114
else if (expr.id ()==ID_cond)
Original file line number Diff line number Diff line change @@ -1613,17 +1613,6 @@ void smt2_convt::convert_expr(const exprt &expr)
1613
1613
INVARIANT (
1614
1614
false , " byte_update ops should be lowered in prepare_for_convert_expr" );
1615
1615
}
1616
- else if (expr.id ()==ID_width)
1617
- {
1618
- std::size_t result_width=boolbv_width (expr.type ());
1619
- CHECK_RETURN (result_width != 0 );
1620
-
1621
- std::size_t op_width = boolbv_width (to_unary_expr (expr).op ().type ());
1622
- CHECK_RETURN (op_width != 0 );
1623
-
1624
- out << " (_ bv" << op_width/8
1625
- << " " << result_width << " )" ;
1626
- }
1627
1616
else if (expr.id ()==ID_abs)
1628
1617
{
1629
1618
const abs_exprt &abs_expr = to_abs_expr (expr);
You can’t perform that action at this time.
0 commit comments