solidity/test/libyul/yulOptimizerTests/fullInliner/multi_return.yul
2018-12-13 16:51:10 +01:00

27 lines
448 B
Plaintext

{
function f(a) -> x, y {
x := mul(a, a)
y := add(a, x)
}
let r, s := f(mload(0))
mstore(r, s)
}
// ----
// fullInliner
// {
// {
// let f_a := mload(0)
// let f_x := 0
// let f_y := 0
// f_x := mul(f_a, f_a)
// f_y := add(f_a, f_x)
// let r := f_x
// mstore(r, f_y)
// }
// function f(a) -> x, y
// {
// x := mul(a, a)
// y := add(a, x)
// }
// }