summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/issue_49232.main.built.after.mir
blob: ac50b38891079f81cbbb717ac8735ba369c737b7 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// MIR for `main` after built

fn main() -> () {
    let mut _0: ();
    let mut _1: ();
    let _2: i32;
    let mut _3: bool;
    let mut _4: !;
    let _5: ();
    let mut _6: &i32;
    scope 1 {
        debug beacon => _2;
    }

    bb0: {
        goto -> bb1;
    }

    bb1: {
        falseUnwind -> [real: bb2, unwind: bb11];
    }

    bb2: {
        StorageLive(_2);
        StorageLive(_3);
        _3 = const true;
        PlaceMention(_3);
        switchInt(_3) -> [0: bb3, otherwise: bb4];
    }

    bb3: {
        falseEdge -> [real: bb5, imaginary: bb4];
    }

    bb4: {
        _0 = const ();
        goto -> bb10;
    }

    bb5: {
        _2 = const 4_i32;
        goto -> bb8;
    }

    bb6: {
        unreachable;
    }

    bb7: {
        goto -> bb8;
    }

    bb8: {
        FakeRead(ForLet(None), _2);
        StorageDead(_3);
        StorageLive(_5);
        StorageLive(_6);
        _6 = &_2;
        _5 = std::mem::drop::<&i32>(move _6) -> [return: bb9, unwind: bb11];
    }

    bb9: {
        StorageDead(_6);
        StorageDead(_5);
        _1 = const ();
        StorageDead(_2);
        goto -> bb1;
    }

    bb10: {
        StorageDead(_3);
        StorageDead(_2);
        return;
    }

    bb11 (cleanup): {
        resume;
    }
}