2022-09-04 22:00:31 -05:00
|
|
|
// MIR for `main` after built
|
2020-04-02 16:09:01 -05:00
|
|
|
|
|
|
|
fn main() -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: ();
|
|
|
|
let mut _1: ();
|
|
|
|
let _2: i32;
|
|
|
|
let mut _3: bool;
|
|
|
|
let mut _4: !;
|
|
|
|
let _5: ();
|
|
|
|
let mut _6: &i32;
|
2020-04-02 16:09:01 -05:00
|
|
|
scope 1 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug beacon => _2;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
goto -> bb1;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
falseUnwind -> [real: bb2, unwind: bb11];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_2);
|
|
|
|
StorageLive(_3);
|
|
|
|
_3 = const true;
|
2022-10-15 04:00:32 -05:00
|
|
|
PlaceMention(_3);
|
2023-06-06 08:47:00 -05:00
|
|
|
switchInt(_3) -> [0: bb3, otherwise: bb4];
|
2020-06-04 10:29:10 -05:00
|
|
|
}
|
|
|
|
|
2020-10-02 15:11:24 -05:00
|
|
|
bb3: {
|
2023-06-06 08:47:00 -05:00
|
|
|
falseEdge -> [real: bb5, imaginary: bb4];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2020-10-02 15:11:24 -05:00
|
|
|
bb4: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = const ();
|
|
|
|
goto -> bb10;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2020-10-02 15:11:24 -05:00
|
|
|
bb5: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_2 = const 4_i32;
|
|
|
|
goto -> bb8;
|
2020-06-04 10:29:10 -05:00
|
|
|
}
|
|
|
|
|
2020-10-02 15:11:24 -05:00
|
|
|
bb6: {
|
2023-06-06 08:47:00 -05:00
|
|
|
unreachable;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2020-10-02 15:11:24 -05:00
|
|
|
bb7: {
|
2023-06-06 08:47:00 -05:00
|
|
|
goto -> bb8;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2020-10-02 15:11:24 -05:00
|
|
|
bb8: {
|
2023-06-06 08:47:00 -05:00
|
|
|
FakeRead(ForLet(None), _2);
|
|
|
|
StorageDead(_3);
|
|
|
|
StorageLive(_5);
|
|
|
|
StorageLive(_6);
|
|
|
|
_6 = &_2;
|
|
|
|
_5 = std::mem::drop::<&i32>(move _6) -> [return: bb9, unwind: bb11];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2020-10-02 15:11:24 -05:00
|
|
|
bb9: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_6);
|
|
|
|
StorageDead(_5);
|
|
|
|
_1 = const ();
|
|
|
|
StorageDead(_2);
|
|
|
|
goto -> bb1;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2020-10-02 15:11:24 -05:00
|
|
|
bb10: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_3);
|
|
|
|
StorageDead(_2);
|
|
|
|
return;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
2020-10-02 15:11:24 -05:00
|
|
|
|
|
|
|
bb11 (cleanup): {
|
2023-06-06 08:47:00 -05:00
|
|
|
resume;
|
2020-10-02 15:11:24 -05:00
|
|
|
}
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|