Skip to content

Commit a7e7d83

Browse files
committed
Simplifier: do not create extractbits with pointer or floatbv type
This is a fix-up for 525c23d: we must not remove typecasts towards pointers (or floatbv) when the operand is extractbits as our back-ends do not support extractbits with pointer type and casts towards floatbv are non-trivial.
1 parent 062962c commit a7e7d83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/simplify_expr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,7 @@ simplify_exprt::simplify_typecast(const typecast_exprt &expr)
13421342
else if(auto extractbits = expr_try_dynamic_cast<extractbits_exprt>(operand))
13431343
{
13441344
if(
1345+
expr_type_id != ID_floatbv && expr_type_id != ID_pointer &&
13451346
can_cast_type<bitvector_typet>(expr_type) &&
13461347
can_cast_type<bitvector_typet>(operand.type()) &&
13471348
to_bitvector_type(expr_type).get_width() ==

0 commit comments

Comments
 (0)