2018-10-11 13:13:42 +00:00
|
|
|
{
|
|
|
|
let x := mul(f(0, mload(7)), 3)
|
|
|
|
function f(a, b) -> c {
|
|
|
|
c := mul(a, mload(add(b, c)))
|
|
|
|
}
|
|
|
|
sstore(x, f(mload(2), mload(2)))
|
|
|
|
}
|
|
|
|
// ----
|
2020-03-17 22:31:56 +00:00
|
|
|
// step: expressionSplitter
|
|
|
|
//
|
2018-10-11 13:13:42 +00:00
|
|
|
// {
|
2018-10-11 19:20:04 +00:00
|
|
|
// let _1 := 3
|
|
|
|
// let _2 := 7
|
|
|
|
// let _3 := mload(_2)
|
|
|
|
// let _4 := 0
|
|
|
|
// let _5 := f(_4, _3)
|
|
|
|
// let x := mul(_5, _1)
|
2018-10-11 13:13:42 +00:00
|
|
|
// function f(a, b) -> c
|
|
|
|
// {
|
2018-10-11 19:20:04 +00:00
|
|
|
// let _6 := add(b, c)
|
|
|
|
// let _7 := mload(_6)
|
|
|
|
// c := mul(a, _7)
|
2018-10-11 13:13:42 +00:00
|
|
|
// }
|
2018-10-11 19:20:04 +00:00
|
|
|
// let _8 := 2
|
|
|
|
// let _9 := mload(_8)
|
|
|
|
// let _10 := 2
|
|
|
|
// let _11 := mload(_10)
|
|
|
|
// let _12 := f(_11, _9)
|
|
|
|
// sstore(x, _12)
|
2018-10-11 13:13:42 +00:00
|
|
|
// }
|