solidity/test/libyul/yulOptimizerTests/controlFlowSimplifier/switch_remove_empty_all.yul

21 lines
248 B
Plaintext
Raw Normal View History

2019-03-06 10:33:27 +00:00
{
let y := 200
switch add(y, 4)
case 0 { }
case 1 { }
default { }
switch mload(4)
2019-03-06 10:33:27 +00:00
case 0 { }
case 1 { }
default { }
}
2019-04-01 14:33:46 +00:00
// ====
2019-05-09 20:01:18 +00:00
// step: controlFlowSimplifier
2019-03-06 10:33:27 +00:00
// ----
// {
// let y := 200
// pop(add(y, 4))
// pop(mload(4))
2019-03-06 10:33:27 +00:00
// }