2023-04-30 09:53:24 -05:00
|
|
|
// MIR for `checked_shl` after PreCodegen
|
|
|
|
|
|
|
|
fn checked_shl(_1: u32, _2: u32) -> Option<u32> {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug x => _1;
|
|
|
|
debug rhs => _2;
|
|
|
|
let mut _0: std::option::Option<u32>;
|
|
|
|
scope 1 (inlined core::num::<impl u32>::checked_shl) {
|
|
|
|
debug self => _1;
|
|
|
|
debug rhs => _2;
|
2023-02-07 13:24:21 -06:00
|
|
|
let mut _6: bool;
|
2023-04-30 09:53:24 -05:00
|
|
|
scope 2 {
|
2023-02-07 13:24:21 -06:00
|
|
|
debug a => _4;
|
|
|
|
debug b => _5;
|
2023-04-30 09:53:24 -05:00
|
|
|
}
|
2023-06-06 08:47:00 -05:00
|
|
|
scope 3 (inlined core::num::<impl u32>::overflowing_shl) {
|
|
|
|
debug self => _1;
|
|
|
|
debug rhs => _2;
|
2023-02-07 13:24:21 -06:00
|
|
|
let mut _4: u32;
|
|
|
|
let mut _5: bool;
|
2023-06-06 08:47:00 -05:00
|
|
|
scope 4 (inlined core::num::<impl u32>::wrapping_shl) {
|
|
|
|
debug self => _1;
|
|
|
|
debug rhs => _2;
|
|
|
|
let mut _3: u32;
|
2023-04-30 09:53:24 -05:00
|
|
|
scope 5 {
|
2023-06-06 08:47:00 -05:00
|
|
|
scope 6 (inlined core::num::<impl u32>::unchecked_shl) {
|
|
|
|
debug self => _1;
|
2023-02-07 13:24:21 -06:00
|
|
|
debug rhs => _3;
|
2023-04-30 09:53:24 -05:00
|
|
|
scope 7 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_4);
|
2023-02-07 13:24:21 -06:00
|
|
|
StorageLive(_5);
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_3);
|
2023-02-07 13:24:21 -06:00
|
|
|
_3 = BitAnd(_2, const 31_u32);
|
|
|
|
_4 = ShlUnchecked(_1, _3);
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_3);
|
2023-02-07 13:24:21 -06:00
|
|
|
_5 = Ge(_2, const _);
|
|
|
|
StorageLive(_6);
|
|
|
|
_6 = unlikely(move _5) -> [return: bb1, unwind unreachable];
|
2023-04-30 09:53:24 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-02-07 13:24:21 -06:00
|
|
|
switchInt(move _6) -> [0: bb2, otherwise: bb3];
|
2023-04-30 09:53:24 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-02-07 13:24:21 -06:00
|
|
|
_0 = Option::<u32>::Some(_4);
|
2023-06-03 02:41:50 -05:00
|
|
|
goto -> bb4;
|
2023-04-30 09:53:24 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2023-05-21 05:33:03 -05:00
|
|
|
_0 = const Option::<u32>::None;
|
2023-06-03 02:41:50 -05:00
|
|
|
goto -> bb4;
|
2023-04-30 09:53:24 -05:00
|
|
|
}
|
|
|
|
|
2023-06-03 02:41:50 -05:00
|
|
|
bb4: {
|
2023-06-16 17:21:34 -05:00
|
|
|
StorageDead(_6);
|
2023-06-03 02:41:50 -05:00
|
|
|
StorageDead(_5);
|
2023-02-07 13:24:21 -06:00
|
|
|
StorageDead(_4);
|
2023-06-06 08:47:00 -05:00
|
|
|
return;
|
2023-04-30 09:53:24 -05:00
|
|
|
}
|
|
|
|
}
|
2023-05-21 05:33:03 -05:00
|
|
|
|
|
|
|
ALLOC0 (size: 8, align: 4) {
|
|
|
|
00 00 00 00 __ __ __ __ │ ....░░░░
|
|
|
|
}
|