Skip to content

Commit bb48aa4

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 019981b commit bb48aa4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/util/simplify_expr_struct.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,7 @@ bool simplify_exprt::simplify_member(exprt &expr)
265265
if(
266266
equivalent_member.has_value() &&
267267
equivalent_member.value().id() != ID_byte_extract_little_endian &&
268-
equivalent_member.value().id() != ID_byte_extract_big_endian &&
269-
equivalent_member.value().type() == expr.type())
268+
equivalent_member.value().id() != ID_byte_extract_big_endian)
270269
{
271270
expr = equivalent_member.value();
272271
simplify_rec(expr);

0 commit comments

Comments
 (0)