mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
d49733dfc3
FoorLoopInitRewriter needs to be run before DeadCodeEliminator.
31 lines
346 B
Plaintext
31 lines
346 B
Plaintext
{
|
|
for {
|
|
let a := 20
|
|
}
|
|
lt(a, 40)
|
|
{
|
|
a := add(a, 2)
|
|
}
|
|
{
|
|
a := a
|
|
continue
|
|
}
|
|
}
|
|
|
|
// ====
|
|
// step: deadCodeEliminator
|
|
// ----
|
|
// {
|
|
// let a := 20
|
|
// for {
|
|
// }
|
|
// lt(a, 40)
|
|
// {
|
|
// a := add(a, 2)
|
|
// }
|
|
// {
|
|
// a := a
|
|
// continue
|
|
// }
|
|
// }
|