fork/rust

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

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

master
1.3 KiB79 linesraw
1// MIR for `main` after built
2
3fn main() -> () {
4    let mut _0: ();
5    let mut _1: ();
6    let _2: i32;
7    let mut _3: bool;
8    let mut _4: !;
9    let _5: ();
10    let mut _6: &i32;
11    scope 1 {
12        debug beacon => _2;
13    }
14
15    bb0: {
16        goto -> bb1;
17    }
18
19    bb1: {
20        falseUnwind -> [real: bb2, unwind: bb11];
21    }
22
23    bb2: {
24        StorageLive(_2);
25        StorageLive(_3);
26        _3 = const true;
27        FakeRead(ForMatchedPlace(None), _3);
28        switchInt(_3) -> [0: bb3, otherwise: bb4];
29    }
30
31    bb3: {
32        falseEdge -> [real: bb5, imaginary: bb4];
33    }
34
35    bb4: {
36        _0 = const ();
37        goto -> bb10;
38    }
39
40    bb5: {
41        _2 = const 4_i32;
42        goto -> bb8;
43    }
44
45    bb6: {
46        unreachable;
47    }
48
49    bb7: {
50        goto -> bb8;
51    }
52
53    bb8: {
54        FakeRead(ForLet(None), _2);
55        StorageDead(_3);
56        StorageLive(_5);
57        StorageLive(_6);
58        _6 = &_2;
59        _5 = std::mem::drop::<&i32>(move _6) -> [return: bb9, unwind: bb11];
60    }
61
62    bb9: {
63        StorageDead(_6);
64        StorageDead(_5);
65        _1 = const ();
66        StorageDead(_2);
67        goto -> bb1;
68    }
69
70    bb10: {
71        StorageDead(_3);
72        StorageDead(_2);
73        return;
74    }
75
76    bb11 (cleanup): {
77        resume;
78    }
79}