mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
36 lines
724 B
Solidity
36 lines
724 B
Solidity
{
|
|
let x := 0
|
|
for {} sload(0) { let t := 0 /* cannot replace this because of continue */ } {
|
|
x := 0
|
|
if calldataload(0) { x := 2 continue }
|
|
let r := 0
|
|
if calldataload(1) { x := 2 revert(0, 0) }
|
|
let s := 0
|
|
}
|
|
// cannot replace this
|
|
let u := 0
|
|
}
|
|
// ----
|
|
// step: commonSubexpressionEliminator
|
|
//
|
|
// {
|
|
// let x := 0
|
|
// for { } sload(0) { let t := 0 }
|
|
// {
|
|
// x := 0
|
|
// if calldataload(x)
|
|
// {
|
|
// x := 2
|
|
// continue
|
|
// }
|
|
// let r := x
|
|
// if calldataload(1)
|
|
// {
|
|
// x := 2
|
|
// revert(0, 0)
|
|
// }
|
|
// let s := x
|
|
// }
|
|
// let u := 0
|
|
// }
|