solidity/test/libyul/yulOptimizerTests/deadCodeEliminator/conditional_break.yul

27 lines
341 B
Plaintext
Raw Normal View History

2019-03-28 13:18:17 +00:00
{
for {
let a := 20
}
lt(a, 40)
{
a := add(a, 2)
}
{
a := a
if lt(a, 0)
{ break }
}
}
2019-04-01 14:33:46 +00:00
// ====
// step: deadCodeEliminator
2019-03-28 13:18:17 +00:00
// ----
// {
// let a := 20
// for { } lt(a, 40) { a := add(a, 2) }
2019-03-28 13:18:17 +00:00
// {
// a := a
// if lt(a, 0) { break }
2019-03-28 13:18:17 +00:00
// }
// }