1 - // MIR for `main` before Derefer
2 + // MIR for `main` after Derefer
5 let mut _0: (); // return place in scope 0 at $DIR/derefer_terminator_test.rs:+0:11: +0:11
6 let _1: bool; // in scope 0 at $DIR/derefer_terminator_test.rs:+1:9: +1:10
7 let _3: (); // in scope 0 at $DIR/derefer_terminator_test.rs:+3:5: +6:6
8 let mut _4: &&&&bool; // in scope 0 at $DIR/derefer_terminator_test.rs:+3:15: +3:22
9 let _5: &&&bool; // in scope 0 at $DIR/derefer_terminator_test.rs:+3:17: +3:21
10 let _6: &&bool; // in scope 0 at $DIR/derefer_terminator_test.rs:+3:18: +3:21
11 let _7: &bool; // in scope 0 at $DIR/derefer_terminator_test.rs:+3:19: +3:21
12 + let mut _10: &&&bool; // in scope 0 at $DIR/derefer_terminator_test.rs:+3:15: +3:22
13 + let mut _11: &&bool; // in scope 0 at $DIR/derefer_terminator_test.rs:+3:15: +3:22
14 + let mut _12: &bool; // in scope 0 at $DIR/derefer_terminator_test.rs:+3:15: +3:22
16 debug b => _1; // in scope 1 at $DIR/derefer_terminator_test.rs:+1:9: +1:10
17 let _2: bool; // in scope 1 at $DIR/derefer_terminator_test.rs:+2:9: +2:10
19 debug d => _2; // in scope 2 at $DIR/derefer_terminator_test.rs:+2:9: +2:10
20 let _8: i32; // in scope 2 at $DIR/derefer_terminator_test.rs:+4:22: +4:23
21 let _9: i32; // in scope 2 at $DIR/derefer_terminator_test.rs:+7:9: +7:10
23 debug x => _8; // in scope 3 at $DIR/derefer_terminator_test.rs:+4:22: +4:23
26 debug y => _9; // in scope 4 at $DIR/derefer_terminator_test.rs:+7:9: +7:10
32 StorageLive(_1); // scope 0 at $DIR/derefer_terminator_test.rs:+1:9: +1:10
33 _1 = foo() -> bb1; // scope 0 at $DIR/derefer_terminator_test.rs:+1:13: +1:18
35 // + span: $DIR/derefer_terminator_test.rs:6:13: 6:16
36 // + literal: Const { ty: fn() -> bool {foo}, val: Value(<ZST>) }
40 StorageLive(_2); // scope 1 at $DIR/derefer_terminator_test.rs:+2:9: +2:10
41 _2 = foo() -> bb2; // scope 1 at $DIR/derefer_terminator_test.rs:+2:13: +2:18
43 // + span: $DIR/derefer_terminator_test.rs:7:13: 7:16
44 // + literal: Const { ty: fn() -> bool {foo}, val: Value(<ZST>) }
48 StorageLive(_3); // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +6:6
49 StorageLive(_4); // scope 2 at $DIR/derefer_terminator_test.rs:+3:15: +3:22
50 StorageLive(_5); // scope 2 at $DIR/derefer_terminator_test.rs:+3:17: +3:21
51 StorageLive(_6); // scope 2 at $DIR/derefer_terminator_test.rs:+3:18: +3:21
52 StorageLive(_7); // scope 2 at $DIR/derefer_terminator_test.rs:+3:19: +3:21
53 _7 = &_1; // scope 2 at $DIR/derefer_terminator_test.rs:+3:19: +3:21
54 _6 = &_7; // scope 2 at $DIR/derefer_terminator_test.rs:+3:18: +3:21
55 _5 = &_6; // scope 2 at $DIR/derefer_terminator_test.rs:+3:17: +3:21
56 _4 = &_5; // scope 2 at $DIR/derefer_terminator_test.rs:+3:15: +3:22
57 - switchInt((*(*(*(*_4))))) -> [false: bb3, otherwise: bb4]; // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
58 + _10 = deref_copy (*_4); // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
59 + _11 = deref_copy (*_10); // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
60 + _12 = deref_copy (*_11); // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
61 + switchInt((*_12)) -> [false: bb3, otherwise: bb4]; // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
65 _3 = const (); // scope 2 at $DIR/derefer_terminator_test.rs:+5:18: +5:20
66 goto -> bb5; // scope 2 at $DIR/derefer_terminator_test.rs:+5:18: +5:20
70 StorageLive(_8); // scope 2 at $DIR/derefer_terminator_test.rs:+4:22: +4:23
71 _8 = const 5_i32; // scope 2 at $DIR/derefer_terminator_test.rs:+4:26: +4:27
72 _3 = const (); // scope 2 at $DIR/derefer_terminator_test.rs:+4:17: +4:29
73 StorageDead(_8); // scope 2 at $DIR/derefer_terminator_test.rs:+4:28: +4:29
74 goto -> bb5; // scope 2 at $DIR/derefer_terminator_test.rs:+4:28: +4:29
78 StorageDead(_7); // scope 2 at $DIR/derefer_terminator_test.rs:+6:5: +6:6
79 StorageDead(_6); // scope 2 at $DIR/derefer_terminator_test.rs:+6:5: +6:6
80 StorageDead(_5); // scope 2 at $DIR/derefer_terminator_test.rs:+6:5: +6:6
81 StorageDead(_4); // scope 2 at $DIR/derefer_terminator_test.rs:+6:5: +6:6
82 StorageDead(_3); // scope 2 at $DIR/derefer_terminator_test.rs:+6:5: +6:6
83 StorageLive(_9); // scope 2 at $DIR/derefer_terminator_test.rs:+7:9: +7:10
84 _9 = const 42_i32; // scope 2 at $DIR/derefer_terminator_test.rs:+7:13: +7:15
85 _0 = const (); // scope 0 at $DIR/derefer_terminator_test.rs:+0:11: +8:2
86 StorageDead(_9); // scope 2 at $DIR/derefer_terminator_test.rs:+8:1: +8:2
87 StorageDead(_2); // scope 1 at $DIR/derefer_terminator_test.rs:+8:1: +8:2
88 StorageDead(_1); // scope 0 at $DIR/derefer_terminator_test.rs:+8:1: +8:2
89 return; // scope 0 at $DIR/derefer_terminator_test.rs:+8:2: +8:2