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

27 lines
422 B
Plaintext
Raw Normal View History

2019-12-29 14:16:54 +00:00
{
let i := 0
for {} lt(i, 2) { i := add(i, 1) }
{
let x
x := 1337
if lt(i,1) {
x := 42
break
}
mstore(0, x)
}
}
// ----
// step: redundantAssignEliminator
//
2019-12-29 14:16:54 +00:00
// {
// let i := 0
// for { } lt(i, 2) { i := add(i, 1) }
// {
// let x
// x := 1337
// if lt(i, 1) { break }
// mstore(0, x)
// }
// }