solidity/test/libyul/yulOptimizerTests/conditionalUnsimplifier/opt_switch.yul

23 lines
356 B
Plaintext
Raw Normal View History

2019-11-01 13:07:25 +00:00
{
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
//
2019-11-01 13:07:25 +00:00
// {
// let x := calldataload(0)
// switch x
// case 0 { }
// case 1 { }
// case 2 { x := 8 }
// default { }
// pop(x)
// }