Skip to content

Commit 548e8e2

Browse files
committed
Simplify lambda body after instantiation
Replacing the lambda parameter by the argument value may permit further simplification, for example in case of constant arguments.
1 parent a4c39a3 commit 548e8e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/simplify_expr_array.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ bool simplify_exprt::simplify_index(exprt &expr)
5555
exprt tmp = lambda_expr.body();
5656
replace_expr(lambda_expr.arg(), expr.op1(), tmp);
5757
expr.swap(tmp);
58+
simplify_rec(expr);
5859
return false;
5960
}
6061
}

0 commit comments

Comments
 (0)