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

21 lines
287 B
Plaintext
Raw Normal View History

2019-09-11 09:42:59 +00:00
{
let x := calldataload(0)
switch x
case 0 { }
case 1 { }
default { }
pop(x)
}
// ----
// step: conditionalSimplifier
//
2019-09-11 09:42:59 +00:00
// {
// let x := calldataload(0)
// switch x
// case 0 { x := 0 }
// case 1 { x := 1 }
// default { }
// pop(x)
// }