mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
33 lines
544 B
Plaintext
33 lines
544 B
Plaintext
{
|
|
let a
|
|
let b
|
|
let i := 0
|
|
for {} lt(i, 10) {i := add(a, b)} {
|
|
a := origin()
|
|
b := origin()
|
|
b := caller()
|
|
// a=origin, b=caller
|
|
if callvalue() { break }
|
|
// a=origin, b=caller
|
|
a := caller()
|
|
}
|
|
mstore(a, b)
|
|
}
|
|
// ----
|
|
// step: rematerialiser
|
|
//
|
|
// {
|
|
// let a
|
|
// let b
|
|
// let i := 0
|
|
// for { } lt(i, 10) { i := add(caller(), caller()) }
|
|
// {
|
|
// a := origin()
|
|
// b := origin()
|
|
// b := caller()
|
|
// if callvalue() { break }
|
|
// a := caller()
|
|
// }
|
|
// mstore(a, b)
|
|
// }
|