2023-04-23 04:38:37 -05:00
|
|
|
// MIR for `range_iter_next` after PreCodegen
|
|
|
|
|
|
|
|
fn range_iter_next(_1: &mut std::ops::Range<u32>) -> Option<u32> {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug it => _1;
|
|
|
|
let mut _0: std::option::Option<u32>;
|
|
|
|
scope 1 (inlined iter::range::<impl Iterator for std::ops::Range<u32>>::next) {
|
|
|
|
scope 2 (inlined <std::ops::Range<u32> as iter::range::RangeIteratorImpl>::spec_next) {
|
2024-04-14 20:22:35 -05:00
|
|
|
let mut _4: bool;
|
|
|
|
let _5: u32;
|
|
|
|
let mut _6: u32;
|
2023-05-29 14:29:36 -05:00
|
|
|
scope 3 {
|
|
|
|
}
|
2024-02-27 05:57:52 -06:00
|
|
|
scope 4 (inlined std::cmp::impls::<impl PartialOrd for u32>::lt) {
|
2024-04-14 20:22:35 -05:00
|
|
|
let mut _2: u32;
|
|
|
|
let mut _3: u32;
|
2023-06-03 07:23:32 -05:00
|
|
|
}
|
2023-05-29 14:29:36 -05:00
|
|
|
}
|
2023-04-23 04:38:37 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2024-04-14 20:22:35 -05:00
|
|
|
StorageLive(_5);
|
|
|
|
StorageLive(_4);
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_2);
|
2024-04-14 20:22:35 -05:00
|
|
|
_2 = copy ((*_1).0: u32);
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_3);
|
2024-04-14 20:22:35 -05:00
|
|
|
_3 = copy ((*_1).1: u32);
|
|
|
|
_4 = Lt(move _2, move _3);
|
|
|
|
StorageDead(_3);
|
|
|
|
StorageDead(_2);
|
|
|
|
switchInt(move _4) -> [0: bb1, otherwise: bb2];
|
2023-05-29 14:29:36 -05:00
|
|
|
}
|
|
|
|
|
2023-06-03 07:23:32 -05:00
|
|
|
bb1: {
|
2023-05-21 05:33:03 -05:00
|
|
|
_0 = const Option::<u32>::None;
|
2023-06-06 08:47:00 -05:00
|
|
|
goto -> bb4;
|
2023-05-29 14:29:36 -05:00
|
|
|
}
|
|
|
|
|
2023-06-03 07:23:32 -05:00
|
|
|
bb2: {
|
2024-04-14 20:22:35 -05:00
|
|
|
_5 = copy ((*_1).0: u32);
|
|
|
|
StorageLive(_6);
|
|
|
|
_6 = <u32 as Step>::forward_unchecked(copy _5, const 1_usize) -> [return: bb3, unwind continue];
|
2023-05-29 14:29:36 -05:00
|
|
|
}
|
|
|
|
|
2023-06-03 07:23:32 -05:00
|
|
|
bb3: {
|
2024-04-14 20:22:35 -05:00
|
|
|
((*_1).0: u32) = move _6;
|
|
|
|
StorageDead(_6);
|
|
|
|
_0 = Option::<u32>::Some(copy _5);
|
2023-06-06 08:47:00 -05:00
|
|
|
goto -> bb4;
|
2023-05-29 14:29:36 -05:00
|
|
|
}
|
|
|
|
|
2023-06-03 07:23:32 -05:00
|
|
|
bb4: {
|
2024-04-14 20:22:35 -05:00
|
|
|
StorageDead(_4);
|
|
|
|
StorageDead(_5);
|
2023-06-06 08:47:00 -05:00
|
|
|
return;
|
2023-04-23 04:38:37 -05:00
|
|
|
}
|
|
|
|
}
|
2023-05-21 05:33:03 -05:00
|
|
|
|
|
|
|
ALLOC0 (size: 8, align: 4) {
|
|
|
|
00 00 00 00 __ __ __ __ │ ....░░░░
|
|
|
|
}
|