rust/tests/mir-opt/building/enum_cast.offsetty.built.after.mir

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
602 B
Rust
Raw Normal View History

// MIR for `offsetty` after built
fn offsetty(_1: NotStartingAtZero) -> u32 {
2023-06-06 08:47:00 -05:00
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: {
2023-06-06 08:47:00 -05:00
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;
}
}