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: i32;
|
|
|
|
let mut _2: std::option::Option<i32>;
|
|
|
|
let mut _3: isize;
|
|
|
|
let mut _4: isize;
|
|
|
|
let mut _5: &std::option::Option<i32>;
|
|
|
|
let _6: i32;
|
|
|
|
let _7: &i32;
|
|
|
|
let mut _8: bool;
|
|
|
|
let _9: std::option::Option<i32>;
|
|
|
|
let _10: i32;
|
|
|
|
let _11: &i32;
|
|
|
|
let mut _12: bool;
|
|
|
|
let mut _13: i32;
|
|
|
|
let _14: std::option::Option<i32>;
|
2020-04-02 16:09:01 -05:00
|
|
|
scope 1 {
|
|
|
|
}
|
|
|
|
scope 2 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug _w => _6;
|
|
|
|
debug _w => _7;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
scope 3 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug _x => _9;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
scope 4 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug y => _10;
|
|
|
|
debug y => _11;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
scope 5 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug _z => _14;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_1);
|
|
|
|
StorageLive(_2);
|
|
|
|
_2 = Option::<i32>::Some(const 1_i32);
|
|
|
|
FakeRead(ForMatchedPlace(None), _2);
|
|
|
|
_4 = discriminant(_2);
|
|
|
|
switchInt(move _4) -> [1: bb2, otherwise: bb1];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2020-10-02 15:11:24 -05:00
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
falseEdge -> [real: bb13, imaginary: bb6];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-06-06 08:47:00 -05:00
|
|
|
falseEdge -> [real: bb8, imaginary: bb1];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2023-06-06 08:47:00 -05:00
|
|
|
goto -> bb1;
|
2022-09-04 22:00:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb4: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_3 = discriminant(_2);
|
|
|
|
switchInt(move _3) -> [1: bb6, otherwise: bb5];
|
2022-09-04 22:00:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb5: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_14);
|
|
|
|
_14 = _2;
|
|
|
|
_1 = const 4_i32;
|
|
|
|
StorageDead(_14);
|
|
|
|
goto -> bb19;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2022-09-04 22:00:31 -05:00
|
|
|
bb6: {
|
2023-06-06 08:47:00 -05:00
|
|
|
falseEdge -> [real: bb14, imaginary: bb5];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2022-09-04 22:00:31 -05:00
|
|
|
bb7: {
|
2023-06-06 08:47:00 -05:00
|
|
|
goto -> bb5;
|
2022-09-04 22:00:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb8: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_7);
|
|
|
|
_7 = &((_2 as Some).0: i32);
|
|
|
|
_5 = &shallow _2;
|
|
|
|
StorageLive(_8);
|
|
|
|
_8 = guard() -> [return: bb9, unwind: bb20];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2022-09-04 22:00:31 -05:00
|
|
|
bb9: {
|
2023-06-06 08:47:00 -05:00
|
|
|
switchInt(move _8) -> [0: bb11, otherwise: bb10];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2022-09-04 22:00:31 -05:00
|
|
|
bb10: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_8);
|
|
|
|
FakeRead(ForMatchGuard, _5);
|
|
|
|
FakeRead(ForGuardBinding, _7);
|
|
|
|
StorageLive(_6);
|
|
|
|
_6 = ((_2 as Some).0: i32);
|
|
|
|
_1 = const 1_i32;
|
|
|
|
StorageDead(_6);
|
|
|
|
StorageDead(_7);
|
|
|
|
goto -> bb19;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2022-09-04 22:00:31 -05:00
|
|
|
bb11: {
|
2023-06-06 08:47:00 -05:00
|
|
|
goto -> bb12;
|
2022-09-04 22:00:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb12: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_8);
|
|
|
|
StorageDead(_7);
|
|
|
|
falseEdge -> [real: bb3, imaginary: bb1];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2022-09-04 22:00:31 -05:00
|
|
|
bb13: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_9);
|
|
|
|
_9 = _2;
|
|
|
|
_1 = const 2_i32;
|
|
|
|
StorageDead(_9);
|
|
|
|
goto -> bb19;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2022-09-04 22:00:31 -05:00
|
|
|
bb14: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_11);
|
|
|
|
_11 = &((_2 as Some).0: i32);
|
|
|
|
_5 = &shallow _2;
|
|
|
|
StorageLive(_12);
|
|
|
|
StorageLive(_13);
|
|
|
|
_13 = (*_11);
|
|
|
|
_12 = guard2(move _13) -> [return: bb15, unwind: bb20];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2022-09-04 22:00:31 -05:00
|
|
|
bb15: {
|
2023-06-06 08:47:00 -05:00
|
|
|
switchInt(move _12) -> [0: bb17, otherwise: bb16];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2022-09-04 22:00:31 -05:00
|
|
|
bb16: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_13);
|
|
|
|
StorageDead(_12);
|
|
|
|
FakeRead(ForMatchGuard, _5);
|
|
|
|
FakeRead(ForGuardBinding, _11);
|
|
|
|
StorageLive(_10);
|
|
|
|
_10 = ((_2 as Some).0: i32);
|
|
|
|
_1 = const 3_i32;
|
|
|
|
StorageDead(_10);
|
|
|
|
StorageDead(_11);
|
|
|
|
goto -> bb19;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2022-09-04 22:00:31 -05:00
|
|
|
bb17: {
|
2023-06-06 08:47:00 -05:00
|
|
|
goto -> bb18;
|
2022-09-04 22:00:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb18: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_13);
|
|
|
|
StorageDead(_12);
|
|
|
|
StorageDead(_11);
|
|
|
|
falseEdge -> [real: bb7, imaginary: bb5];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
2022-09-04 22:00:31 -05:00
|
|
|
bb19: {
|
2023-06-06 08:47:00 -05:00
|
|
|
PlaceMention(_1);
|
|
|
|
StorageDead(_2);
|
|
|
|
StorageDead(_1);
|
|
|
|
_0 = const ();
|
|
|
|
return;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
2020-10-02 15:11:24 -05:00
|
|
|
|
2022-09-04 22:00:31 -05:00
|
|
|
bb20 (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
|
|
|
}
|