summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/enum_cast.offsetty.built.after.mir
blob: 282859d7cd0142bbc03727c6a24f999bc8ba8f8e (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
// MIR for `offsetty` after built

fn offsetty(_1: NotStartingAtZero) -> u32 {
    debug x => _1;
    let mut _0: u32;
    let _2: NotStartingAtZero;
    let mut _3: isize;
    let mut _4: u8;
    let mut _5: bool;
    let mut _6: bool;
    let mut _7: bool;

    bb0: {
        StorageLive(_2);
        _2 = move _1;
        _3 = discriminant(_2);
        _4 = _3 as u8 (IntToInt);
        _5 = Ge(_4, const 4_u8);
        _6 = Le(_4, const 8_u8);
        _7 = BitAnd(move _5, move _6);
        assume(move _7);
        _0 = move _3 as u32 (IntToInt);
        StorageDead(_2);
        return;
    }
}