Skip to content

Commit b4656e7

Browse files
committed
Fix change propagation in simplify_byte_extract
f936554 updated the interface of simplify_if, but in one case failed to propagate changes. This results in missed simplification, and thus substantially more complicated formulas.
1 parent 9e72e15 commit b4656e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/simplify_expr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1975,7 +1975,7 @@ simplify_exprt::simplify_byte_extract(const byte_extract_exprt &expr)
19751975
simplify_byte_extract(to_byte_extract_expr(if_expr.true_case()));
19761976
if_expr.false_case() =
19771977
simplify_byte_extract(to_byte_extract_expr(if_expr.false_case()));
1978-
return simplify_if(if_expr);
1978+
return changed(simplify_if(if_expr));
19791979
}
19801980

19811981
const auto el_size = pointer_offset_bits(expr.type(), ns);

0 commit comments

Comments
 (0)