2019-03-11 15:06:43 +00:00
|
|
|
{
|
|
|
|
let a
|
|
|
|
let b
|
2019-04-05 18:38:23 +00:00
|
|
|
let i := 0
|
|
|
|
for {} lt(i, 10) {i := add(a, b)} {
|
2019-03-11 15:06:43 +00:00
|
|
|
a := origin()
|
|
|
|
b := origin()
|
|
|
|
b := caller()
|
|
|
|
// a=origin, b=caller
|
|
|
|
if callvalue() { break }
|
|
|
|
// a=origin, b=caller
|
|
|
|
a := caller()
|
|
|
|
}
|
|
|
|
mstore(a, b)
|
|
|
|
}
|
|
|
|
// ----
|
2020-03-17 22:31:56 +00:00
|
|
|
// step: rematerialiser
|
|
|
|
//
|
2019-03-11 15:06:43 +00:00
|
|
|
// {
|
|
|
|
// let a
|
|
|
|
// let b
|
2019-04-05 18:38:23 +00:00
|
|
|
// let i := 0
|
2019-05-08 10:41:19 +00:00
|
|
|
// for { } lt(i, 10) { i := add(caller(), caller()) }
|
2019-03-11 15:06:43 +00:00
|
|
|
// {
|
|
|
|
// a := origin()
|
|
|
|
// b := origin()
|
|
|
|
// b := caller()
|
2019-05-08 10:41:19 +00:00
|
|
|
// if callvalue() { break }
|
2019-03-11 15:06:43 +00:00
|
|
|
// a := caller()
|
|
|
|
// }
|
|
|
|
// mstore(a, b)
|
|
|
|
// }
|