]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/issue_38669.main.SimplifyCfg-initial.after.mir
Rollup merge of #106625 - Swatinem:ref/cov6, r=nagisa
[rust.git] / tests / mir-opt / issue_38669.main.SimplifyCfg-initial.after.mir
1 // MIR for `main` after SimplifyCfg-initial
2
3 fn main() -> () {
4     let mut _0: ();                      // return place in scope 0 at $DIR/issue_38669.rs:+0:11: +0:11
5     let mut _1: bool;                    // in scope 0 at $DIR/issue_38669.rs:+1:9: +1:25
6     let mut _2: ();                      // in scope 0 at $DIR/issue_38669.rs:+0:1: +8:2
7     let _3: ();                          // in scope 0 at $DIR/issue_38669.rs:+3:9: +5:10
8     let mut _4: bool;                    // in scope 0 at $DIR/issue_38669.rs:+3:12: +3:24
9     let mut _5: !;                       // in scope 0 at $DIR/issue_38669.rs:+3:25: +5:10
10     scope 1 {
11         debug should_break => _1;        // in scope 1 at $DIR/issue_38669.rs:+1:9: +1:25
12     }
13
14     bb0: {
15         StorageLive(_1);                 // scope 0 at $DIR/issue_38669.rs:+1:9: +1:25
16         _1 = const false;                // scope 0 at $DIR/issue_38669.rs:+1:28: +1:33
17         FakeRead(ForLet(None), _1);      // scope 0 at $DIR/issue_38669.rs:+1:9: +1:25
18         goto -> bb1;                     // scope 1 at $DIR/issue_38669.rs:+2:5: +7:6
19     }
20
21     bb1: {
22         falseUnwind -> [real: bb2, cleanup: bb5]; // scope 1 at $DIR/issue_38669.rs:+2:5: +7:6
23     }
24
25     bb2: {
26         StorageLive(_3);                 // scope 1 at $DIR/issue_38669.rs:+3:9: +5:10
27         StorageLive(_4);                 // scope 1 at $DIR/issue_38669.rs:+3:12: +3:24
28         _4 = _1;                         // scope 1 at $DIR/issue_38669.rs:+3:12: +3:24
29         switchInt(move _4) -> [0: bb4, otherwise: bb3]; // scope 1 at $DIR/issue_38669.rs:+3:12: +3:24
30     }
31
32     bb3: {
33         _0 = const ();                   // scope 1 at $DIR/issue_38669.rs:+4:13: +4:18
34         StorageDead(_4);                 // scope 1 at $DIR/issue_38669.rs:+5:9: +5:10
35         StorageDead(_3);                 // scope 1 at $DIR/issue_38669.rs:+5:9: +5:10
36         StorageDead(_1);                 // scope 0 at $DIR/issue_38669.rs:+8:1: +8:2
37         return;                          // scope 0 at $DIR/issue_38669.rs:+8:2: +8:2
38     }
39
40     bb4: {
41         _3 = const ();                   // scope 1 at $DIR/issue_38669.rs:+5:10: +5:10
42         StorageDead(_4);                 // scope 1 at $DIR/issue_38669.rs:+5:9: +5:10
43         StorageDead(_3);                 // scope 1 at $DIR/issue_38669.rs:+5:9: +5:10
44         _1 = const true;                 // scope 1 at $DIR/issue_38669.rs:+6:9: +6:28
45         _2 = const ();                   // scope 1 at $DIR/issue_38669.rs:+2:10: +7:6
46         goto -> bb1;                     // scope 1 at $DIR/issue_38669.rs:+2:5: +7:6
47     }
48
49     bb5 (cleanup): {
50         resume;                          // scope 0 at $DIR/issue_38669.rs:+0:1: +8:2
51     }
52 }