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

25 lines
455 B
Plaintext
Raw Normal View History

2018-10-11 15:14:59 +00:00
{
function f(a) -> x {
let r := mul(a, a)
x := add(r, r)
}
let y := add(f(sload(mload(2))), mload(7))
}
// ----
// fullInliner
// {
// {
2018-10-02 08:46:59 +00:00
// let _2 := mload(7)
2018-10-11 15:14:59 +00:00
// let f_a := sload(mload(2))
2018-12-13 14:38:14 +00:00
// let f_x := 0
2018-10-02 08:46:59 +00:00
// let f_r := mul(f_a, f_a)
// f_x := add(f_r, f_r)
// let y := add(f_x, _2)
2018-10-11 15:14:59 +00:00
// }
// function f(a) -> x
// {
// let r := mul(a, a)
// x := add(r, r)
// }
// }