solidity/test/libyul/yulOptimizerTests/fullSuite/remove_redundant_assignments_in_switch.yul

21 lines
318 B
Plaintext
Raw Normal View History

2019-11-27 10:51:06 +00:00
{
let x := 0
switch mload(x)
case 0 { x := x }
case 1 { x := 1 }
default { invalid() }
mstore(1, 1)
}
// ====
// step: fullSuite
// ----
// {
// {
// switch mload(0)
// case 0 { }
// case 1 { }
// default { invalid() }
// mstore(1, 1)
// }
// }