mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
28 lines
542 B
Plaintext
28 lines
542 B
Plaintext
// 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
|
|
// 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)
|
|
// }
|
|
// }
|