aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/disambiguator/switch_statement.yul
blob: 340ecccf8bec6138d8af70aee87f13a19c9b0b1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// yul
{
    { let a:u256, b:u256, c:u256 }
    {
        let a:u256
        switch a
        case 0:u256 { let b:u256 := a }
        default { let c:u256 := a }
    }
}
// ----
// disambiguator
// {
//     {
//         let a:u256, b:u256, c:u256
//     }
//     {
//         let a_1:u256
//         switch a_1
//         case 0:u256 {
//             let b_1:u256 := a_1
//         }
//         default {
//             let c_1:u256 := a_1
//         }
//     }
// }