solidity/test/libyul/yulOptimizerTests/redundantAssignEliminator/for.yul

28 lines
408 B
Plaintext
Raw Normal View History

2018-10-23 13:55:48 +00:00
{
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
}
}
2019-04-01 14:33:46 +00:00
// ====
// step: redundantAssignEliminator
2018-10-23 13:55:48 +00:00
// ----
// {
// for {
// let a := 2
// a := 3
// }
// a
// {
// a := add(a, 1)
// }
// {
// a := 7
// }
// }