solidity/test/libyul/yulOptimizerTests/controlFlowSimplifier/switch_remove_empty_all.yul

21 lines
243 B
Plaintext
Raw Normal View History

2019-03-06 10:33:27 +00:00
{
let y := 200
switch add(y, 4)
case 0 { }
case 1 { }
default { }
switch mload(4)
2019-03-06 10:33:27 +00:00
case 0 { }
case 1 { }
default { }
}
// ----
// step: controlFlowSimplifier
//
2019-03-06 10:33:27 +00:00
// {
// let y := 200
// pop(add(y, 4))
// pop(mload(4))
2019-03-06 10:33:27 +00:00
// }