solidity/test/libyul/yulOptimizerTests/controlFlowSimplifier/switch_remove_empty_cases.yul
2019-05-13 10:26:57 +02:00

15 lines
207 B
Plaintext

{
let y := 200
switch calldataload(0)
case 0 { }
case 1 { y := 9 }
default { }
}
// ====
// step: controlFlowSimplifier
// ----
// {
// let y := 200
// if eq(1, calldataload(0)) { y := 9 }
// }