fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.8 KiB83 linesraw
1// MIR for `match_tuple` after SimplifyCfg-initial
2
3fn match_tuple(_1: (u32, bool, Option<i32>, u32)) -> u32 {
4    debug x => _1;
5    let mut _0: u32;
6    let mut _2: isize;
7    let mut _3: bool;
8    let mut _4: bool;
9    let mut _5: bool;
10    let mut _6: bool;
11    let _7: u32;
12    let _8: u32;
13    let mut _9: u32;
14    let mut _10: u32;
15    scope 1 {
16        debug y => _7;
17        debug z => _8;
18    }
19
20    bb0: {
21        FakeRead(ForMatchedPlace(None), _1);
22        switchInt((_1.0: u32)) -> [1: bb2, 4: bb2, otherwise: bb1];
23    }
24
25    bb1: {
26        _0 = const 0_u32;
27        goto -> bb10;
28    }
29
30    bb2: {
31        _2 = discriminant((_1.2: std::option::Option<i32>));
32        switchInt(move _2) -> [0: bb4, 1: bb3, otherwise: bb1];
33    }
34
35    bb3: {
36        switchInt((((_1.2: std::option::Option<i32>) as Some).0: i32)) -> [1: bb4, 8: bb4, otherwise: bb1];
37    }
38
39    bb4: {
40        _5 = Le(const 6_u32, (_1.3: u32));
41        switchInt(move _5) -> [0: bb6, otherwise: bb5];
42    }
43
44    bb5: {
45        _6 = Le((_1.3: u32), const 9_u32);
46        switchInt(move _6) -> [0: bb6, otherwise: bb8];
47    }
48
49    bb6: {
50        _3 = Le(const 13_u32, (_1.3: u32));
51        switchInt(move _3) -> [0: bb1, otherwise: bb7];
52    }
53
54    bb7: {
55        _4 = Le((_1.3: u32), const 16_u32);
56        switchInt(move _4) -> [0: bb1, otherwise: bb8];
57    }
58
59    bb8: {
60        falseEdge -> [real: bb9, imaginary: bb1];
61    }
62
63    bb9: {
64        StorageLive(_7);
65        _7 = (_1.0: u32);
66        StorageLive(_8);
67        _8 = (_1.3: u32);
68        StorageLive(_9);
69        _9 = _7;
70        StorageLive(_10);
71        _10 = _8;
72        _0 = BitXor(move _9, move _10);
73        StorageDead(_10);
74        StorageDead(_9);
75        StorageDead(_8);
76        StorageDead(_7);
77        goto -> bb10;
78    }
79
80    bb10: {
81        return;
82    }
83}