2018-09-25 14:29:46 +00:00
|
|
|
{
|
|
|
|
let x := f(0)
|
|
|
|
function f(y) -> r {
|
|
|
|
r := mload(mul(6, add(y, 0x20)))
|
|
|
|
}
|
|
|
|
for { let a := 2 } lt(a, mload(a)) { a := add(a, mul(a, 2)) } {
|
|
|
|
let b := mul(add(a, f(a)), 4)
|
|
|
|
sstore(b, mul(b, 2))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-03-17 22:31:56 +00:00
|
|
|
// step: splitJoin
|
|
|
|
//
|
2018-09-25 14:29:46 +00:00
|
|
|
// {
|
|
|
|
// let x := f(0)
|
|
|
|
// function f(y) -> r
|
|
|
|
// {
|
|
|
|
// r := mload(mul(6, add(y, 0x20)))
|
|
|
|
// }
|
2019-05-08 10:41:19 +00:00
|
|
|
// for { let a := 2 } lt(a, mload(a)) { a := add(a, mul(a, 2)) }
|
2018-09-25 14:29:46 +00:00
|
|
|
// {
|
|
|
|
// let b := mul(add(a, f(a)), 4)
|
|
|
|
// sstore(b, mul(b, 2))
|
|
|
|
// }
|
|
|
|
// }
|