Skip to content

Commit 14d35cc

Browse files
Merge pull request #6311 from peterschrammel/fix-simplify-byte-update
Fix applicability condition of simplify_byte_update
2 parents d0eee83 + bbdfdb1 commit 14d35cc

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
@@ -1880,7 +1880,7 @@ simplify_exprt::simplify_byte_update(const byte_update_exprt &expr)
18801880
if(
18811881
root_size.has_value() && *root_size >= 0 && val_size.has_value() &&
18821882
*val_size >= 0 && offset_int.has_value() && *offset_int >= 0 &&
1883-
*offset_int + *val_size <= *root_size)
1883+
*offset_int * 8 + *val_size <= *root_size)
18841884
{
18851885
auto root_bits =
18861886
expr2bits(root, expr.id() == ID_byte_update_little_endian, ns);

0 commit comments

Comments
 (0)