solidity/test/libyul/yulOptimizerTests/fullInliner/pop_result.yul

28 lines
542 B
Plaintext
Raw Normal View History

2018-10-02 08:46:59 +00:00
// An earlier version of the inliner produced
// pop(...) statements and explicitly removed them.
// This used to test that they are removed.
2018-10-11 15:14:59 +00:00
{
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
2018-10-02 08:46:59 +00:00
// let f_r := mul(f_a, f_a)
// f_x := add(f_r, f_r)
// pop(add(f_x, _1))
2018-10-11 15:14:59 +00:00
// }
// function f(a) -> x
// {
// let r := mul(a, a)
// x := add(r, r)
// }
// }