solidity/test/libyul/yulOptimizerTests/structuralSimplifier/switch_remove_empty_cases.yul

15 lines
206 B
Plaintext
Raw Normal View History

2019-03-05 18:49:34 +00:00
{
let y := 200
switch calldataload(0)
2019-03-05 18:49:34 +00:00
case 0 { }
case 1 { y := 9 }
default { }
}
2019-04-01 14:33:46 +00:00
// ====
// step: structuralSimplifier
2019-03-05 18:49:34 +00:00
// ----
// {
// let y := 200
// if eq(1, calldataload(0)) { y := 9 }
2019-03-05 18:49:34 +00:00
// }