solidity/test/libyul/yulOptimizerTests/ssaAndBack/multi_assign_switch.yul
2019-05-16 12:30:05 +02:00

26 lines
413 B
Plaintext

{
let a := mload(0)
switch mload(1)
case 0 {
a := mload(1)
a := mload(2)
a := mload(3)
}
default {
a := mload(4)
a := mload(5)
a := mload(6)
}
mstore(a, 0)
}
// ====
// step: ssaAndBack
// ----
// {
// let a := mload(0)
// switch mload(1)
// case 0 { a := mload(3) }
// default { a := mload(6) }
// mstore(a, 0)
// }