2018-10-11 13:13:42 +00:00
|
|
|
{
|
|
|
|
let x := calldataload(0)
|
|
|
|
if mul(add(x, 2), 3) {
|
|
|
|
for { let a := 2 } lt(a, mload(a)) { a := add(a, mul(a, 2)) } {
|
|
|
|
let b := mul(add(a, 2), 4)
|
|
|
|
sstore(b, mul(b, 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 := 0
|
|
|
|
// let x := calldataload(_1)
|
|
|
|
// let _2 := 3
|
|
|
|
// let _3 := 2
|
|
|
|
// let _4 := add(x, _3)
|
|
|
|
// let _5 := mul(_4, _2)
|
|
|
|
// if _5
|
2018-10-11 13:13:42 +00:00
|
|
|
// {
|
2019-05-08 10:41:19 +00:00
|
|
|
// for { let a := 2 }
|
2018-10-11 13:13:42 +00:00
|
|
|
// lt(a, mload(a))
|
|
|
|
// {
|
2018-10-11 19:20:04 +00:00
|
|
|
// let _6 := 2
|
|
|
|
// let _7 := mul(a, _6)
|
|
|
|
// a := add(a, _7)
|
2018-10-11 13:13:42 +00:00
|
|
|
// }
|
|
|
|
// {
|
2018-10-11 19:20:04 +00:00
|
|
|
// let _8 := 4
|
|
|
|
// let _9 := 2
|
|
|
|
// let _10 := add(a, _9)
|
|
|
|
// let b := mul(_10, _8)
|
|
|
|
// let _11 := 2
|
|
|
|
// let _12 := mul(b, _11)
|
|
|
|
// sstore(b, _12)
|
2018-10-11 13:13:42 +00:00
|
|
|
// }
|
|
|
|
// }
|
2019-05-08 10:41:19 +00:00
|
|
|
// }
|