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.

83 lines
3.8 KiB
Rust
Raw Normal View History

// MIR for `main` after built
2020-04-02 16:09:01 -05:00
fn main() -> () {
2022-11-02 16:54:49 -05:00
let mut _0: (); // return place in scope 0 at $DIR/issue_49232.rs:+0:11: +0:11
let mut _1: (); // in scope 0 at $DIR/issue_49232.rs:+0:1: +10:2
let _2: i32; // in scope 0 at $DIR/issue_49232.rs:+2:13: +2:19
let mut _3: bool; // in scope 0 at $DIR/issue_49232.rs:+3:19: +3:23
let mut _4: !; // in scope 0 at $DIR/issue_49232.rs:+5:25: +5:30
let _5: (); // in scope 0 at $DIR/issue_49232.rs:+8:9: +8:22
let mut _6: &i32; // in scope 0 at $DIR/issue_49232.rs:+8:14: +8:21
2020-04-02 16:09:01 -05:00
scope 1 {
2022-11-02 16:54:49 -05:00
debug beacon => _2; // in scope 1 at $DIR/issue_49232.rs:+2:13: +2:19
2020-04-02 16:09:01 -05:00
}
bb0: {
2022-11-02 16:54:49 -05:00
goto -> bb1; // scope 0 at $DIR/issue_49232.rs:+1:5: +9:6
2020-04-02 16:09:01 -05:00
}
bb1: {
2022-11-02 16:54:49 -05:00
falseUnwind -> [real: bb2, cleanup: bb11]; // scope 0 at $DIR/issue_49232.rs:+1:5: +9:6
2020-04-02 16:09:01 -05:00
}
bb2: {
2022-11-02 16:54:49 -05:00
StorageLive(_2); // scope 0 at $DIR/issue_49232.rs:+2:13: +2:19
StorageLive(_3); // scope 0 at $DIR/issue_49232.rs:+3:19: +3:23
_3 = const true; // scope 0 at $DIR/issue_49232.rs:+3:19: +3:23
FakeRead(ForMatchedPlace(None), _3); // scope 0 at $DIR/issue_49232.rs:+3:19: +3:23
switchInt(_3) -> [0: bb3, otherwise: bb4]; // scope 0 at $DIR/issue_49232.rs:+3:13: +3:23
}
2020-10-02 15:11:24 -05:00
bb3: {
2022-11-02 16:54:49 -05:00
falseEdge -> [real: bb5, imaginary: bb4]; // scope 0 at $DIR/issue_49232.rs:+4:17: +4:22
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb4: {
2022-11-02 16:54:49 -05:00
_0 = const (); // scope 0 at $DIR/issue_49232.rs:+5:25: +5:30
goto -> bb10; // scope 0 at $DIR/issue_49232.rs:+5:25: +5:30
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb5: {
2022-11-02 16:54:49 -05:00
_2 = const 4_i32; // scope 0 at $DIR/issue_49232.rs:+4:26: +4:27
goto -> bb8; // scope 0 at $DIR/issue_49232.rs:+4:26: +4:27
}
2020-10-02 15:11:24 -05:00
bb6: {
2022-11-02 16:54:49 -05:00
unreachable; // scope 0 at $DIR/issue_49232.rs:+5:25: +5:30
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb7: {
2022-11-02 16:54:49 -05:00
goto -> bb8; // scope 0 at $DIR/issue_49232.rs:+6:13: +6:14
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb8: {
2022-11-02 16:54:49 -05:00
FakeRead(ForLet(None), _2); // scope 0 at $DIR/issue_49232.rs:+2:13: +2:19
StorageDead(_3); // scope 0 at $DIR/issue_49232.rs:+7:10: +7:11
StorageLive(_5); // scope 1 at $DIR/issue_49232.rs:+8:9: +8:22
StorageLive(_6); // scope 1 at $DIR/issue_49232.rs:+8:14: +8:21
_6 = &_2; // scope 1 at $DIR/issue_49232.rs:+8:14: +8:21
_5 = std::mem::drop::<&i32>(move _6) -> [return: bb9, unwind: bb11]; // scope 1 at $DIR/issue_49232.rs:+8:9: +8:22
2020-04-02 16:09:01 -05:00
// mir::Constant
2022-11-02 16:54:49 -05:00
// + span: $DIR/issue_49232.rs:13:9: 13:13
2022-07-06 09:14:46 -05:00
// + literal: Const { ty: fn(&i32) {std::mem::drop::<&i32>}, val: Value(<ZST>) }
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb9: {
2022-11-02 16:54:49 -05:00
StorageDead(_6); // scope 1 at $DIR/issue_49232.rs:+8:21: +8:22
StorageDead(_5); // scope 1 at $DIR/issue_49232.rs:+8:22: +8:23
_1 = const (); // scope 0 at $DIR/issue_49232.rs:+1:10: +9:6
StorageDead(_2); // scope 0 at $DIR/issue_49232.rs:+9:5: +9:6
goto -> bb1; // scope 0 at $DIR/issue_49232.rs:+1:5: +9:6
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb10: {
2022-11-02 16:54:49 -05:00
StorageDead(_3); // scope 0 at $DIR/issue_49232.rs:+7:10: +7:11
StorageDead(_2); // scope 0 at $DIR/issue_49232.rs:+9:5: +9:6
return; // scope 0 at $DIR/issue_49232.rs:+10:2: +10:2
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb11 (cleanup): {
2022-11-02 16:54:49 -05:00
resume; // scope 0 at $DIR/issue_49232.rs:+0:1: +10:2
2020-10-02 15:11:24 -05:00
}
2020-04-02 16:09:01 -05:00
}