aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/blockFlattener/switch_stmt.yul
blob: 2df4f9d09e28317bfd7237c400e3e50b11f240c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
    let a := 1
    switch calldataload(0)
    case 0 { { { mstore(0, 1) } } a := 8 }
    default { a := 3 { a := 4 } }
    a := 5
}
// ----
// blockFlattener
// {
//     let a := 1
//     switch calldataload(0)
//     case 0 {
//         mstore(0, 1)
//         a := 8
//     }
//     default {
//         a := 3
//         a := 4
//     }
//     a := 5
// }