File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -779,7 +779,8 @@ simplify_exprt::simplify_typecast(const typecast_exprt &expr)
779779 // (void*)(intX)expr -> (void*)expr
780780 if (
781781 expr_type.id () == ID_pointer && expr.op ().id () == ID_typecast &&
782- (op_type.id () == ID_signedbv || op_type.id () == ID_unsignedbv) &&
782+ (op_type.id () == ID_signedbv || op_type.id () == ID_unsignedbv ||
783+ op_type.id () == ID_bv) &&
783784 to_bitvector_type (op_type).get_width () >=
784785 to_bitvector_type (expr_type).get_width ())
785786 {
@@ -1305,7 +1306,8 @@ simplify_exprt::simplify_typecast(const typecast_exprt &expr)
13051306 // where T1 has fewer bits than T2
13061307 if (
13071308 op_type_id == expr_type_id &&
1308- (expr_type_id == ID_unsignedbv || expr_type_id == ID_signedbv) &&
1309+ (expr_type_id == ID_unsignedbv || expr_type_id == ID_signedbv ||
1310+ expr_type_id == ID_bv) &&
13091311 to_bitvector_type (expr_type).get_width () <=
13101312 to_bitvector_type (operand.type ()).get_width ())
13111313 {
You can’t perform that action at this time.
0 commit comments