2020-08-20 14:56:25 +00:00
|
|
|
{
|
|
|
|
sstore(f(1), 1)
|
|
|
|
sstore(f(2), 1)
|
|
|
|
sstore(f(3), 1)
|
|
|
|
function f(a) -> x {
|
|
|
|
for {let b := 10} iszero(b) { b := sub(b, 1) }
|
|
|
|
{
|
|
|
|
a := calldataload(0)
|
|
|
|
mstore(a, x)
|
2020-09-14 15:59:50 +00:00
|
|
|
// to prevent f from getting inlined
|
|
|
|
if iszero(a) { leave }
|
2020-08-20 14:56:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
|
|
|
// step: fullSuite
|
|
|
|
//
|
|
|
|
// {
|
|
|
|
// {
|
2020-09-14 15:59:50 +00:00
|
|
|
// f()
|
|
|
|
// sstore(0, 1)
|
|
|
|
// f()
|
|
|
|
// f()
|
|
|
|
// }
|
|
|
|
// function f()
|
|
|
|
// {
|
2020-08-20 14:56:25 +00:00
|
|
|
// let b := 10
|
2020-09-09 13:07:38 +00:00
|
|
|
// let _1 := 0
|
|
|
|
// let a := calldataload(_1)
|
2020-09-14 15:59:50 +00:00
|
|
|
// let _2 := iszero(a)
|
2020-08-20 14:56:25 +00:00
|
|
|
// for { } iszero(b) { b := add(b, not(0)) }
|
2020-09-14 15:59:50 +00:00
|
|
|
// {
|
|
|
|
// mstore(a, _1)
|
|
|
|
// if _2 { leave }
|
|
|
|
// }
|
2020-08-20 14:56:25 +00:00
|
|
|
// }
|
|
|
|
// }
|