mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
26 lines
537 B
Plaintext
26 lines
537 B
Plaintext
|
{
|
||
|
function f() -> x { x := mload(g()) }
|
||
|
function g() -> x { x := add(sload(x), 1) }
|
||
|
|
||
|
let b := 1
|
||
|
for { let a := 1 } iszero(eq(a, 10)) { a := add(a, 1) } {
|
||
|
let t := extcodesize(f())
|
||
|
let q := g()
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// step: loopInvariantCodeMotion
|
||
|
//
|
||
|
// {
|
||
|
// function f() -> x
|
||
|
// { x := mload(g()) }
|
||
|
// function g() -> x_1
|
||
|
// { x_1 := add(sload(x_1), 1) }
|
||
|
// let b := 1
|
||
|
// let a := 1
|
||
|
// let t := extcodesize(f())
|
||
|
// let q := g()
|
||
|
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
|
||
|
// { }
|
||
|
// }
|