Skip to content

Commit 93b83cf

Browse files
committed
Simplifier: As we now assert type equality we can remove a safety net
If the simplifier receives an expression that isn't type-consistent it might produce a type-inconsistent result, but we will now fail an invariant in that case.
1 parent 010deea commit 93b83cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/util/simplify_expr_struct.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ bool simplify_exprt::simplify_member(exprt &expr)
270270
if(
271271
equivalent_member.is_not_nil() &&
272272
equivalent_member.id() != ID_byte_extract_little_endian &&
273-
equivalent_member.id() != ID_byte_extract_big_endian &&
274-
type_eq(equivalent_member.type(), expr.type(), ns))
273+
equivalent_member.id() != ID_byte_extract_big_endian)
275274
{
276275
expr = equivalent_member;
277276
simplify_rec(expr);

0 commit comments

Comments
 (0)