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

19 lines
233 B
Plaintext
Raw Normal View History

2018-10-23 13:55:48 +00:00
{
let a := 2
a := 3
2018-10-23 13:55:48 +00:00
for {
} a { a := add(a, 1) }
{
a := 7
}
}
// ----
2021-11-23 09:42:18 +00:00
// step: unusedAssignEliminator
//
2018-10-23 13:55:48 +00:00
// {
// let a := 2
// a := 3
// for { } a { a := add(a, 1) }
// { a := 7 }
2018-10-23 13:55:48 +00:00
// }