solidity/test/libyul/yulOptimizerTests/conditionalSimplifier/opt_switch.yul
2019-11-01 14:01:56 +01:00

21 lines
292 B
Plaintext

{
let x := calldataload(0)
switch x
case 0 { }
case 1 { }
default { }
pop(x)
}
// ====
// step: conditionalSimplifier
// ----
// {
// let x := calldataload(0)
// switch x
// case 0 { x := 0 }
// case 1 { x := 1 }
// default { }
// pop(x)
// }