solidity/test/libyul/yulOptimizerTests/ssaTransform/multi_decl.yul

25 lines
423 B
Plaintext
Raw Normal View History

2019-04-03 18:16:30 +00:00
{
let x, y := f(1, 2)
x := mload(y)
y := mload(x)
let a, b := f(x, y)
sstore(a, b)
function f(t, v) -> w, z {}
2019-04-03 18:16:30 +00:00
}
// ----
// step: ssaTransform
//
2019-04-03 18:16:30 +00:00
// {
// let x_1, y_2 := f(1, 2)
// let x := x_1
// let y := y_2
// let x_3 := mload(y_2)
// x := x_3
// let y_4 := mload(x_3)
// y := y_4
// let a, b := f(x_3, y_4)
2019-04-03 18:16:30 +00:00
// sstore(a, b)
// function f(t, v) -> w, z
// { }
2019-04-03 18:16:30 +00:00
// }