blob: c1bed208aca6a33c4b3762da3c5f02d2713abaaa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// An earlier version of the inliner produced
// pop(...) statements and explicitly removed them.
// This used to test that they are removed.
{
function f(a) -> x {
let r := mul(a, a)
x := add(r, r)
}
pop(add(f(7), 2))
}
// ----
// fullInliner
// {
// {
// let _1 := 2
// let f_a := 7
// let f_x := 0
// let f_r := mul(f_a, f_a)
// f_x := add(f_r, f_r)
// pop(add(f_x, _1))
// }
// function f(a) -> x
// {
// let r := mul(a, a)
// x := add(r, r)
// }
// }
|