2022-04-06 02:17:41 -05:00
|
|
|
- // MIR for `match_nested_if` before ConstGoto
|
|
|
|
+ // MIR for `match_nested_if` after ConstGoto
|
|
|
|
|
|
|
|
fn match_nested_if() -> bool {
|
2022-07-27 13:47:42 -05:00
|
|
|
let mut _0: bool; // return place in scope 0 at $DIR/const_goto_storage.rs:+0:25: +0:29
|
|
|
|
let _1: bool; // in scope 0 at $DIR/const_goto_storage.rs:+1:9: +1:12
|
|
|
|
- let mut _2: (); // in scope 0 at $DIR/const_goto_storage.rs:+1:21: +1:23
|
|
|
|
- let mut _3: bool; // in scope 0 at $DIR/const_goto_storage.rs:+2:15: +6:10
|
|
|
|
- let mut _4: bool; // in scope 0 at $DIR/const_goto_storage.rs:+2:18: +2:76
|
|
|
|
- let mut _5: bool; // in scope 0 at $DIR/const_goto_storage.rs:+2:21: +2:52
|
|
|
|
- let mut _6: bool; // in scope 0 at $DIR/const_goto_storage.rs:+2:24: +2:28
|
|
|
|
+ let mut _2: bool; // in scope 0 at $DIR/const_goto_storage.rs:+2:24: +2:28
|
2022-04-06 02:17:41 -05:00
|
|
|
scope 1 {
|
2022-07-27 13:47:42 -05:00
|
|
|
debug val => _1; // in scope 1 at $DIR/const_goto_storage.rs:+1:9: +1:12
|
2022-04-06 02:17:41 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2022-07-27 13:47:42 -05:00
|
|
|
StorageLive(_1); // scope 0 at $DIR/const_goto_storage.rs:+1:9: +1:12
|
|
|
|
- StorageLive(_2); // scope 0 at $DIR/const_goto_storage.rs:+1:21: +1:23
|
2022-08-02 19:44:25 -05:00
|
|
|
- Deinit(_2); // scope 0 at $DIR/const_goto_storage.rs:+1:21: +1:23
|
2022-07-27 13:47:42 -05:00
|
|
|
- StorageLive(_3); // scope 0 at $DIR/const_goto_storage.rs:+2:15: +6:10
|
|
|
|
- StorageLive(_4); // scope 0 at $DIR/const_goto_storage.rs:+2:18: +2:76
|
|
|
|
- StorageLive(_5); // scope 0 at $DIR/const_goto_storage.rs:+2:21: +2:52
|
|
|
|
- StorageLive(_6); // scope 0 at $DIR/const_goto_storage.rs:+2:24: +2:28
|
|
|
|
- _6 = const true; // scope 0 at $DIR/const_goto_storage.rs:+2:24: +2:28
|
2022-12-03 18:03:27 -06:00
|
|
|
- switchInt(move _6) -> [0: bb2, otherwise: bb1]; // scope 0 at $DIR/const_goto_storage.rs:+2:24: +2:28
|
2022-07-27 13:47:42 -05:00
|
|
|
+ StorageLive(_2); // scope 0 at $DIR/const_goto_storage.rs:+2:24: +2:28
|
|
|
|
+ _2 = const true; // scope 0 at $DIR/const_goto_storage.rs:+2:24: +2:28
|
2022-12-03 18:03:27 -06:00
|
|
|
+ switchInt(move _2) -> [0: bb2, otherwise: bb1]; // scope 0 at $DIR/const_goto_storage.rs:+2:24: +2:28
|
2022-04-06 02:17:41 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2022-07-27 13:47:42 -05:00
|
|
|
- _5 = const true; // scope 0 at $DIR/const_goto_storage.rs:+2:31: +2:35
|
|
|
|
- goto -> bb3; // scope 0 at $DIR/const_goto_storage.rs:+2:21: +2:52
|
2022-04-06 02:17:41 -05:00
|
|
|
- }
|
|
|
|
-
|
|
|
|
- bb2: {
|
2022-07-27 13:47:42 -05:00
|
|
|
- _5 = const false; // scope 0 at $DIR/const_goto_storage.rs:+2:45: +2:50
|
|
|
|
- goto -> bb3; // scope 0 at $DIR/const_goto_storage.rs:+2:21: +2:52
|
2022-04-06 02:17:41 -05:00
|
|
|
- }
|
|
|
|
-
|
|
|
|
- bb3: {
|
2022-07-27 13:47:42 -05:00
|
|
|
- StorageDead(_6); // scope 0 at $DIR/const_goto_storage.rs:+2:51: +2:52
|
2022-12-03 18:03:27 -06:00
|
|
|
- switchInt(move _5) -> [0: bb5, otherwise: bb4]; // scope 0 at $DIR/const_goto_storage.rs:+2:21: +2:52
|
2022-04-06 02:17:41 -05:00
|
|
|
- }
|
|
|
|
-
|
|
|
|
- bb4: {
|
2022-07-27 13:47:42 -05:00
|
|
|
- _4 = const true; // scope 0 at $DIR/const_goto_storage.rs:+2:55: +2:59
|
|
|
|
- goto -> bb6; // scope 0 at $DIR/const_goto_storage.rs:+2:18: +2:76
|
2022-04-06 02:17:41 -05:00
|
|
|
- }
|
|
|
|
-
|
|
|
|
- bb5: {
|
2022-07-27 13:47:42 -05:00
|
|
|
- _4 = const false; // scope 0 at $DIR/const_goto_storage.rs:+2:69: +2:74
|
|
|
|
- goto -> bb6; // scope 0 at $DIR/const_goto_storage.rs:+2:18: +2:76
|
2022-04-06 02:17:41 -05:00
|
|
|
- }
|
|
|
|
-
|
|
|
|
- bb6: {
|
2022-07-27 13:47:42 -05:00
|
|
|
- StorageDead(_5); // scope 0 at $DIR/const_goto_storage.rs:+2:75: +2:76
|
2022-12-03 18:03:27 -06:00
|
|
|
- switchInt(move _4) -> [0: bb8, otherwise: bb7]; // scope 0 at $DIR/const_goto_storage.rs:+2:18: +2:76
|
2022-04-06 02:17:41 -05:00
|
|
|
- }
|
|
|
|
-
|
|
|
|
- bb7: {
|
2022-07-27 13:47:42 -05:00
|
|
|
- _3 = const true; // scope 0 at $DIR/const_goto_storage.rs:+3:13: +3:17
|
|
|
|
- goto -> bb9; // scope 0 at $DIR/const_goto_storage.rs:+2:15: +6:10
|
2022-04-06 02:17:41 -05:00
|
|
|
- }
|
|
|
|
-
|
|
|
|
- bb8: {
|
2022-07-27 13:47:42 -05:00
|
|
|
- _3 = const false; // scope 0 at $DIR/const_goto_storage.rs:+5:13: +5:18
|
|
|
|
- goto -> bb9; // scope 0 at $DIR/const_goto_storage.rs:+2:15: +6:10
|
2022-04-06 02:17:41 -05:00
|
|
|
- }
|
|
|
|
-
|
|
|
|
- bb9: {
|
2022-12-03 18:03:27 -06:00
|
|
|
- switchInt(move _3) -> [0: bb11, otherwise: bb10]; // scope 0 at $DIR/const_goto_storage.rs:+2:15: +6:10
|
2022-04-06 02:17:41 -05:00
|
|
|
- }
|
|
|
|
-
|
|
|
|
- bb10: {
|
2022-07-27 13:47:42 -05:00
|
|
|
- StorageDead(_4); // scope 0 at $DIR/const_goto_storage.rs:+6:9: +6:10
|
|
|
|
- StorageDead(_3); // scope 0 at $DIR/const_goto_storage.rs:+6:9: +6:10
|
|
|
|
+ StorageDead(_2); // scope 0 at $DIR/const_goto_storage.rs:+2:51: +2:52
|
|
|
|
_1 = const true; // scope 0 at $DIR/const_goto_storage.rs:+8:17: +8:21
|
|
|
|
- goto -> bb12; // scope 0 at $DIR/const_goto_storage.rs:+8:17: +8:21
|
|
|
|
+ goto -> bb3; // scope 0 at $DIR/const_goto_storage.rs:+8:17: +8:21
|
2022-04-06 02:17:41 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
- bb11: {
|
2022-07-27 13:47:42 -05:00
|
|
|
- StorageDead(_4); // scope 0 at $DIR/const_goto_storage.rs:+6:9: +6:10
|
|
|
|
- StorageDead(_3); // scope 0 at $DIR/const_goto_storage.rs:+6:9: +6:10
|
2022-04-06 02:17:41 -05:00
|
|
|
+ bb2: {
|
2022-07-27 13:47:42 -05:00
|
|
|
+ StorageDead(_2); // scope 0 at $DIR/const_goto_storage.rs:+2:51: +2:52
|
|
|
|
_1 = const false; // scope 0 at $DIR/const_goto_storage.rs:+10:14: +10:19
|
|
|
|
- goto -> bb12; // scope 0 at $DIR/const_goto_storage.rs:+10:14: +10:19
|
|
|
|
+ goto -> bb3; // scope 0 at $DIR/const_goto_storage.rs:+10:14: +10:19
|
2022-04-06 02:17:41 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
- bb12: {
|
2022-07-27 13:47:42 -05:00
|
|
|
- StorageDead(_2); // scope 0 at $DIR/const_goto_storage.rs:+11:6: +11:7
|
2022-04-06 02:17:41 -05:00
|
|
|
+ bb3: {
|
2022-07-27 13:47:42 -05:00
|
|
|
_0 = _1; // scope 1 at $DIR/const_goto_storage.rs:+12:5: +12:8
|
|
|
|
StorageDead(_1); // scope 0 at $DIR/const_goto_storage.rs:+13:1: +13:2
|
|
|
|
return; // scope 0 at $DIR/const_goto_storage.rs:+13:2: +13:2
|
2022-04-06 02:17:41 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|