]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/issue_49232.main.mir_map.0.mir
Rollup merge of #99864 - klensy:bootstrap-art-dupe, r=jyn514
[rust.git] / src / test / mir-opt / issue_49232.main.mir_map.0.mir
1 // MIR for `main` 0 mir_map
2
3 fn main() -> () {
4     let mut _0: ();                      // return place in scope 0 at $DIR/issue-49232.rs:+0:11: +0:11
5     let mut _1: ();                      // in scope 0 at $DIR/issue-49232.rs:+0:1: +10:2
6     let _2: i32;                         // in scope 0 at $DIR/issue-49232.rs:+2:13: +2:19
7     let mut _3: bool;                    // in scope 0 at $DIR/issue-49232.rs:+3:19: +3:23
8     let mut _4: !;                       // in scope 0 at $DIR/issue-49232.rs:+5:25: +5:30
9     let _5: ();                          // in scope 0 at $DIR/issue-49232.rs:+8:9: +8:22
10     let mut _6: &i32;                    // in scope 0 at $DIR/issue-49232.rs:+8:14: +8:21
11     scope 1 {
12         debug beacon => _2;              // in scope 1 at $DIR/issue-49232.rs:+2:13: +2:19
13     }
14
15     bb0: {
16         goto -> bb1;                     // scope 0 at $DIR/issue-49232.rs:+1:5: +9:6
17     }
18
19     bb1: {
20         falseUnwind -> [real: bb2, cleanup: bb11]; // scope 0 at $DIR/issue-49232.rs:+1:5: +9:6
21     }
22
23     bb2: {
24         StorageLive(_2);                 // scope 0 at $DIR/issue-49232.rs:+2:13: +2:19
25         StorageLive(_3);                 // scope 0 at $DIR/issue-49232.rs:+3:19: +3:23
26         _3 = const true;                 // scope 0 at $DIR/issue-49232.rs:+3:19: +3:23
27         FakeRead(ForMatchedPlace(None), _3); // scope 0 at $DIR/issue-49232.rs:+3:19: +3:23
28         switchInt(_3) -> [false: bb3, otherwise: bb4]; // scope 0 at $DIR/issue-49232.rs:+3:13: +3:23
29     }
30
31     bb3: {
32         falseEdge -> [real: bb5, imaginary: bb4]; // scope 0 at $DIR/issue-49232.rs:+4:17: +4:22
33     }
34
35     bb4: {
36         _0 = const ();                   // scope 0 at $DIR/issue-49232.rs:+5:25: +5:30
37         goto -> bb10;                    // scope 0 at $DIR/issue-49232.rs:+5:25: +5:30
38     }
39
40     bb5: {
41         _2 = const 4_i32;                // scope 0 at $DIR/issue-49232.rs:+4:26: +4:27
42         goto -> bb8;                     // scope 0 at $DIR/issue-49232.rs:+4:26: +4:27
43     }
44
45     bb6: {
46         unreachable;                     // scope 0 at $DIR/issue-49232.rs:+5:25: +5:30
47     }
48
49     bb7: {
50         goto -> bb8;                     // scope 0 at $DIR/issue-49232.rs:+6:13: +6:14
51     }
52
53     bb8: {
54         FakeRead(ForLet(None), _2);      // scope 0 at $DIR/issue-49232.rs:+2:13: +2:19
55         StorageDead(_3);                 // scope 0 at $DIR/issue-49232.rs:+7:10: +7:11
56         StorageLive(_5);                 // scope 1 at $DIR/issue-49232.rs:+8:9: +8:22
57         StorageLive(_6);                 // scope 1 at $DIR/issue-49232.rs:+8:14: +8:21
58         _6 = &_2;                        // scope 1 at $DIR/issue-49232.rs:+8:14: +8:21
59         _5 = std::mem::drop::<&i32>(move _6) -> [return: bb9, unwind: bb11]; // scope 1 at $DIR/issue-49232.rs:+8:9: +8:22
60                                          // mir::Constant
61                                          // + span: $DIR/issue-49232.rs:13:9: 13:13
62                                          // + literal: Const { ty: fn(&i32) {std::mem::drop::<&i32>}, val: Value(<ZST>) }
63     }
64
65     bb9: {
66         StorageDead(_6);                 // scope 1 at $DIR/issue-49232.rs:+8:21: +8:22
67         StorageDead(_5);                 // scope 1 at $DIR/issue-49232.rs:+8:22: +8:23
68         _1 = const ();                   // scope 0 at $DIR/issue-49232.rs:+1:10: +9:6
69         StorageDead(_2);                 // scope 0 at $DIR/issue-49232.rs:+9:5: +9:6
70         goto -> bb1;                     // scope 0 at $DIR/issue-49232.rs:+1:5: +9:6
71     }
72
73     bb10: {
74         StorageDead(_3);                 // scope 0 at $DIR/issue-49232.rs:+7:10: +7:11
75         StorageDead(_2);                 // scope 0 at $DIR/issue-49232.rs:+9:5: +9:6
76         return;                          // scope 0 at $DIR/issue-49232.rs:+10:2: +10:2
77     }
78
79     bb11 (cleanup): {
80         resume;                          // scope 0 at $DIR/issue-49232.rs:+0:1: +10:2
81     }
82 }