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)
|
2019-04-04 15:48:29 +00:00
|
|
|
function f(t, v) -> w, z {}
|
2019-04-03 18:16:30 +00:00
|
|
|
}
|
|
|
|
// ----
|
2020-03-17 22:31:56 +00:00
|
|
|
// step: ssaTransform
|
|
|
|
//
|
2019-04-03 18:16:30 +00:00
|
|
|
// {
|
2019-04-04 15:48:29 +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)
|
2019-04-04 15:48:29 +00:00
|
|
|
// function f(t, v) -> w, z
|
2019-05-08 10:41:19 +00:00
|
|
|
// { }
|
2019-04-03 18:16:30 +00:00
|
|
|
// }
|