Skip to content

Commit aee5e3d

Browse files
committed
Check if operand is an index expr in simplify_function_application()
Previously the same expression was accidentally checked twice.
1 parent 41f2ad6 commit aee5e3d

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
@@ -206,7 +206,7 @@ bool simplify_exprt::simplify_function_application(exprt &expr)
206206
// things that are non-constant.
207207
if(
208208
first_address_of.object().id() != ID_index ||
209-
first_address_of.object().id() != ID_index)
209+
second_address_of.object().id() != ID_index)
210210
{
211211
return true;
212212
}

0 commit comments

Comments
 (0)