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

30 lines
622 B
Plaintext
Raw Normal View History

2018-10-11 15:14:59 +00:00
{
function f(a, b, c) -> x {
x := add(a, b)
x := mul(x, c)
}
let y := add(mload(1), add(f(mload(2), mload(3), mload(4)), mload(5)))
}
// ----
// fullInliner
// {
// {
2018-10-02 08:46:59 +00:00
// let _2 := mload(5)
// let _4 := mload(4)
// let _6 := mload(3)
2018-10-11 15:14:59 +00:00
// let f_a := mload(2)
2018-10-02 08:46:59 +00:00
// let f_b := _6
// let f_c := _4
2018-10-11 15:14:59 +00:00
// let f_x
2018-10-02 08:46:59 +00:00
// f_x := add(f_a, f_b)
// f_x := mul(f_x, f_c)
// let _10 := add(f_x, _2)
// let y := add(mload(1), _10)
2018-10-11 15:14:59 +00:00
// }
// function f(a, b, c) -> x
// {
// x := add(a, b)
// x := mul(x, c)
// }
// }