solidity/test/libyul/yulOptimizerTests/redundantAssignEliminator/for.yul
2019-04-03 14:58:20 +02:00

28 lines
408 B
Plaintext

{
for {
let a := 2
// Should not be removed, even though you might think
// it goes out of scope
a := 3
} a { a := add(a, 1) }
{
a := 7
}
}
// ====
// step: redundantAssignEliminator
// ----
// {
// for {
// let a := 2
// a := 3
// }
// a
// {
// a := add(a, 1)
// }
// {
// a := 7
// }
// }