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

21 lines
247 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
// ====
// step: structuralSimplifier
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
// }