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