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

28 lines
434 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
continue
}
mstore(0, x)
}
}
// ====
// step: redundantAssignEliminator
// ----
// {
// let i := 0
// for { } lt(i, 2) { i := add(i, 1) }
// {
// let x
// x := 1337
// if lt(i, 1) { continue }
// mstore(0, x)
// }
// }