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

12 lines
169 B
Plaintext
Raw Normal View History

{
switch calldataload(0) case 2 { mstore(0, 0) }
}
// ----
// structuralSimplifier
// {
// if eq(2, calldataload(0))
// {
// mstore(0, 0)
// }
// }