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

27 lines
438 B
Plaintext
Raw Normal View History

2018-10-11 15:14:59 +00:00
{
function f(a) -> x, y {
x := mul(a, a)
y := add(a, x)
}
2018-10-02 08:46:59 +00:00
let r, s := f(mload(0))
mstore(r, s)
2018-10-11 15:14:59 +00:00
}
// ----
// fullInliner
// {
// {
2018-10-02 08:46:59 +00:00
// let f_a := mload(0)
// let f_x
// let f_y
// f_x := mul(f_a, f_a)
// f_y := add(f_a, f_x)
// let r := f_x
// mstore(r, f_y)
2018-10-11 15:14:59 +00:00
// }
// function f(a) -> x, y
// {
// x := mul(a, a)
// y := add(a, x)
// }
// }