mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
36 lines
629 B
Plaintext
36 lines
629 B
Plaintext
{
|
|
function userNot(x) -> y {
|
|
y := iszero(x)
|
|
}
|
|
|
|
function funcWithLoop(x) {
|
|
for {} userNot(x) { mstore(0, 0) } {}
|
|
}
|
|
|
|
mstore(0, 1337)
|
|
funcWithLoop(42)
|
|
sstore(0, mload(0))
|
|
}
|
|
// ====
|
|
// step: loadResolver
|
|
// ----
|
|
// {
|
|
// function userNot(x) -> y
|
|
// { y := iszero(x) }
|
|
// function funcWithLoop(x_1)
|
|
// {
|
|
// for { }
|
|
// userNot(x_1)
|
|
// {
|
|
// let _1 := 0
|
|
// mstore(_1, _1)
|
|
// }
|
|
// { }
|
|
// }
|
|
// let _3 := 1337
|
|
// let _4 := 0
|
|
// mstore(_4, _3)
|
|
// funcWithLoop(42)
|
|
// sstore(_4, mload(_4))
|
|
// }
|