summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/simple_match.match_bool.built.after.mir
blob: c89ea2b6c85bf6143f63eb9002889c91663ecf62 (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
// MIR for `match_bool` after built

fn match_bool(_1: bool) -> usize {
    debug x => _1;
    let mut _0: usize;

    bb0: {
        FakeRead(ForMatchedPlace(None), _1);
        switchInt(_1) -> [0: bb2, otherwise: bb1];
    }

    bb1: {
        falseEdge -> [real: bb3, imaginary: bb2];
    }

    bb2: {
        _0 = const 20_usize;
        goto -> bb4;
    }

    bb3: {
        _0 = const 10_usize;
        goto -> bb4;
    }

    bb4: {
        return;
    }
}