Skip to content

Commit fbe76fa

Browse files
committed
Fix typo in simplify_byte_extract
As the comment says, only simplify when byte_extract_id() matches the current configuration (and not on a mismatch!).
1 parent 5e27d28 commit fbe76fa

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
@@ -1720,7 +1720,7 @@ bool simplify_exprt::simplify_byte_extract(byte_extract_exprt &expr)
17201720
// bytes need to be swapped
17211721
if(offset==0 &&
17221722
base_type_eq(expr.type(), expr.op().type(), ns) &&
1723-
byte_extract_id()!=expr.id())
1723+
byte_extract_id() == expr.id())
17241724
{
17251725
exprt tmp=expr.op();
17261726
expr.swap(tmp);

0 commit comments

Comments
 (0)