solidity/test/libyul/yulOptimizerTests/equivalentFunctionCombiner/switch_case_order.yul

26 lines
523 B
Plaintext

{
f(0)
g(1)
function f(x) { switch x case 0 { mstore(0, 42) } case 1 { mstore(1, 42) } }
function g(x) { switch x case 1 { mstore(1, 42) } case 0 { mstore(0, 42) } }
}
// ----
// step: equivalentFunctionCombiner
//
// {
// f(0)
// f(1)
// function f(x)
// {
// switch x
// case 0 { mstore(0, 42) }
// case 1 { mstore(1, 42) }
// }
// function g(x_1)
// {
// switch x_1
// case 1 { mstore(1, 42) }
// case 0 { mstore(0, 42) }
// }
// }