rust/tests/mir-opt/building/issue_49232.main.built.after.mir

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

93 lines
1.4 KiB
Rust
Raw Normal View History

// 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: {
2024-02-15 19:57:24 -06:00
falseUnwind -> [real: bb2, unwind: bb14];
2020-04-02 16:09:01 -05:00
}
bb2: {
2023-06-06 08:47:00 -05:00
StorageLive(_2);
StorageLive(_3);
_3 = const true;
PlaceMention(_3);
2024-02-15 19:57:24 -06:00
switchInt(copy _3) -> [0: bb4, otherwise: bb6];
}
2020-10-02 15:11:24 -05:00
bb3: {
2024-02-11 21:56:03 -06:00
FakeRead(ForMatchedPlace(None), _3);
unreachable;
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb4: {
2024-02-15 19:57:24 -06:00
falseEdge -> [real: bb8, imaginary: bb6];
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb5: {
2024-02-15 19:57:24 -06:00
goto -> bb3;
}
2020-10-02 15:11:24 -05:00
bb6: {
2024-02-15 19:57:24 -06:00
_0 = const ();
goto -> bb13;
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb7: {
2024-02-15 19:57:24 -06:00
goto -> bb3;
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb8: {
2024-02-15 19:57:24 -06:00
_2 = const 4_i32;
goto -> bb11;
2024-02-11 21:56:03 -06:00
}
bb9: {
2024-02-15 19:57:24 -06:00
unreachable;
}
bb10: {
goto -> bb11;
}
bb11: {
2023-06-06 08:47:00 -05:00
FakeRead(ForLet(None), _2);
StorageDead(_3);
StorageLive(_5);
StorageLive(_6);
_6 = &_2;
2024-02-15 19:57:24 -06:00
_5 = std::mem::drop::<&i32>(move _6) -> [return: bb12, unwind: bb14];
2020-04-02 16:09:01 -05:00
}
2024-02-15 19:57:24 -06:00
bb12: {
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
}
2024-02-15 19:57:24 -06:00
bb13: {
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
2024-02-15 19:57:24 -06:00
bb14 (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
}