solidity/test/libyul/yulOptimizerTests/conditionalUnsimplifier/opt_switch.yul
2019-11-01 14:07:25 +01:00

23 lines
361 B
Plaintext

{
let x := calldataload(0)
switch x
case 0 { x := 0 }
case 1 { x := 1 }
case 2 { x := 8 /* wrong literal */ }
default { }
pop(x)
}
// ====
// step: conditionalUnsimplifier
// ----
// {
// let x := calldataload(0)
// switch x
// case 0 { }
// case 1 { }
// case 2 { x := 8 }
// default { }
// pop(x)
// }