summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/issue_38669.main.SimplifyCfg-initial.after.mir
blob: b0d5b291b6cb55c734a24f0f43c19eed94c4b341 (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// MIR for `main` after SimplifyCfg-initial

fn main() -> () {
    let mut _0: ();                      // return place in scope 0 at $DIR/issue_38669.rs:+0:11: +0:11
    let mut _1: bool;                    // in scope 0 at $DIR/issue_38669.rs:+1:9: +1:25
    let mut _2: ();                      // in scope 0 at $DIR/issue_38669.rs:+0:1: +8:2
    let _3: ();                          // in scope 0 at $DIR/issue_38669.rs:+3:9: +5:10
    let mut _4: bool;                    // in scope 0 at $DIR/issue_38669.rs:+3:12: +3:24
    let mut _5: !;                       // in scope 0 at $DIR/issue_38669.rs:+3:25: +5:10
    scope 1 {
        debug should_break => _1;        // in scope 1 at $DIR/issue_38669.rs:+1:9: +1:25
    }

    bb0: {
        StorageLive(_1);                 // scope 0 at $DIR/issue_38669.rs:+1:9: +1:25
        _1 = const false;                // scope 0 at $DIR/issue_38669.rs:+1:28: +1:33
        FakeRead(ForLet(None), _1);      // scope 0 at $DIR/issue_38669.rs:+1:9: +1:25
        goto -> bb1;                     // scope 1 at $DIR/issue_38669.rs:+2:5: +7:6
    }

    bb1: {
        falseUnwind -> [real: bb2, cleanup: bb5]; // scope 1 at $DIR/issue_38669.rs:+2:5: +7:6
    }

    bb2: {
        StorageLive(_3);                 // scope 1 at $DIR/issue_38669.rs:+3:9: +5:10
        StorageLive(_4);                 // scope 1 at $DIR/issue_38669.rs:+3:12: +3:24
        _4 = _1;                         // scope 1 at $DIR/issue_38669.rs:+3:12: +3:24
        switchInt(move _4) -> [0: bb4, otherwise: bb3]; // scope 1 at $DIR/issue_38669.rs:+3:12: +3:24
    }

    bb3: {
        _0 = const ();                   // scope 1 at $DIR/issue_38669.rs:+4:13: +4:18
        StorageDead(_4);                 // scope 1 at $DIR/issue_38669.rs:+5:9: +5:10
        StorageDead(_3);                 // scope 1 at $DIR/issue_38669.rs:+5:9: +5:10
        StorageDead(_1);                 // scope 0 at $DIR/issue_38669.rs:+8:1: +8:2
        return;                          // scope 0 at $DIR/issue_38669.rs:+8:2: +8:2
    }

    bb4: {
        _3 = const ();                   // scope 1 at $DIR/issue_38669.rs:+5:10: +5:10
        StorageDead(_4);                 // scope 1 at $DIR/issue_38669.rs:+5:9: +5:10
        StorageDead(_3);                 // scope 1 at $DIR/issue_38669.rs:+5:9: +5:10
        _1 = const true;                 // scope 1 at $DIR/issue_38669.rs:+6:9: +6:28
        _2 = const ();                   // scope 1 at $DIR/issue_38669.rs:+2:10: +7:6
        goto -> bb1;                     // scope 1 at $DIR/issue_38669.rs:+2:5: +7:6
    }

    bb5 (cleanup): {
        resume;                          // scope 0 at $DIR/issue_38669.rs:+0:1: +8:2
    }
}