|
3 | 3 |
|
4 | 4 | fn main() -> () {
|
5 | 5 | let mut _0: (); // return place in scope 0 at $DIR/if.rs:+0:11: +0:11
|
6 |
| - let _1: i32; // in scope 0 at $DIR/if.rs:+2:9: +2:10 |
7 |
| - let mut _3: bool; // in scope 0 at $DIR/if.rs:+3:16: +3:24 |
8 |
| - let mut _4: i32; // in scope 0 at $DIR/if.rs:+3:16: +3:19 |
9 |
| - let mut _5: &i32; // in scope 0 at $DIR/if.rs:+3:17: +3:19 |
10 |
| - let mut _7: i32; // in scope 0 at $DIR/if.rs:+4:13: +4:14 |
11 |
| - let mut _9: bool; // in scope 0 at $DIR/if.rs:+6:16: +6:24 |
12 |
| - let mut _10: i32; // in scope 0 at $DIR/if.rs:+6:16: +6:19 |
13 |
| - let mut _11: &i32; // in scope 0 at $DIR/if.rs:+6:17: +6:19 |
14 |
| - let mut _12: i32; // in scope 0 at $DIR/if.rs:+6:38: +6:39 |
15 |
| - let mut _14: i32; // in scope 0 at $DIR/if.rs:+7:13: +7:14 |
| 6 | + let _1: i32; // in scope 0 at $DIR/if.rs:+1:9: +1:10 |
| 7 | + let mut _3: bool; // in scope 0 at $DIR/if.rs:+2:16: +2:24 |
| 8 | + let mut _4: i32; // in scope 0 at $DIR/if.rs:+2:16: +2:19 |
| 9 | + let mut _5: &i32; // in scope 0 at $DIR/if.rs:+2:17: +2:19 |
| 10 | + let mut _7: i32; // in scope 0 at $DIR/if.rs:+3:13: +3:14 |
| 11 | + let mut _9: bool; // in scope 0 at $DIR/if.rs:+5:16: +5:24 |
| 12 | + let mut _10: i32; // in scope 0 at $DIR/if.rs:+5:16: +5:19 |
| 13 | + let mut _11: &i32; // in scope 0 at $DIR/if.rs:+5:17: +5:19 |
| 14 | + let mut _12: i32; // in scope 0 at $DIR/if.rs:+5:38: +5:39 |
| 15 | + let mut _14: i32; // in scope 0 at $DIR/if.rs:+6:13: +6:14 |
16 | 16 | scope 1 {
|
17 |
| - debug a => _1; // in scope 1 at $DIR/if.rs:+2:9: +2:10 |
18 |
| - let _2: i32; // in scope 1 at $DIR/if.rs:+3:9: +3:10 |
| 17 | + debug a => _1; // in scope 1 at $DIR/if.rs:+1:9: +1:10 |
| 18 | + let _2: i32; // in scope 1 at $DIR/if.rs:+2:9: +2:10 |
19 | 19 | scope 2 {
|
20 |
| - debug b => _2; // in scope 2 at $DIR/if.rs:+3:9: +3:10 |
21 |
| - let _6: i32; // in scope 2 at $DIR/if.rs:+4:9: +4:10 |
| 20 | + debug b => _2; // in scope 2 at $DIR/if.rs:+2:9: +2:10 |
| 21 | + let _6: i32; // in scope 2 at $DIR/if.rs:+3:9: +3:10 |
22 | 22 | scope 3 {
|
23 |
| - debug c => _6; // in scope 3 at $DIR/if.rs:+4:9: +4:10 |
24 |
| - let _8: i32; // in scope 3 at $DIR/if.rs:+6:9: +6:10 |
| 23 | + debug c => _6; // in scope 3 at $DIR/if.rs:+3:9: +3:10 |
| 24 | + let _8: i32; // in scope 3 at $DIR/if.rs:+5:9: +5:10 |
25 | 25 | scope 4 {
|
26 |
| - debug d => _8; // in scope 4 at $DIR/if.rs:+6:9: +6:10 |
27 |
| - let _13: i32; // in scope 4 at $DIR/if.rs:+7:9: +7:10 |
| 26 | + debug d => _8; // in scope 4 at $DIR/if.rs:+5:9: +5:10 |
| 27 | + let _13: i32; // in scope 4 at $DIR/if.rs:+6:9: +6:10 |
28 | 28 | scope 5 {
|
29 |
| - debug e => _13; // in scope 5 at $DIR/if.rs:+7:9: +7:10 |
| 29 | + debug e => _13; // in scope 5 at $DIR/if.rs:+6:9: +6:10 |
30 | 30 | }
|
31 | 31 | }
|
32 | 32 | }
|
33 | 33 | }
|
34 | 34 | }
|
35 | 35 |
|
36 | 36 | bb0: {
|
37 |
| - StorageLive(_1); // scope 0 at $DIR/if.rs:+2:9: +2:10 |
38 |
| - _1 = const 1_i32; // scope 0 at $DIR/if.rs:+2:13: +2:14 |
39 |
| - StorageLive(_2); // scope 1 at $DIR/if.rs:+3:9: +3:10 |
40 |
| - StorageLive(_3); // scope 1 at $DIR/if.rs:+3:16: +3:24 |
41 |
| - StorageLive(_4); // scope 1 at $DIR/if.rs:+3:16: +3:19 |
42 |
| - StorageLive(_5); // scope 1 at $DIR/if.rs:+3:17: +3:19 |
43 |
| - _5 = &_1; // scope 1 at $DIR/if.rs:+3:17: +3:19 |
44 |
| -- _4 = (*_5); // scope 1 at $DIR/if.rs:+3:16: +3:19 |
45 |
| -- _3 = Eq(move _4, const 1_i32); // scope 1 at $DIR/if.rs:+3:16: +3:24 |
46 |
| -+ _4 = const 1_i32; // scope 1 at $DIR/if.rs:+3:16: +3:19 |
47 |
| -+ _3 = const true; // scope 1 at $DIR/if.rs:+3:16: +3:24 |
48 |
| - StorageDead(_5); // scope 1 at $DIR/if.rs:+3:23: +3:24 |
49 |
| - StorageDead(_4); // scope 1 at $DIR/if.rs:+3:23: +3:24 |
50 |
| -- switchInt(move _3) -> [false: bb2, otherwise: bb1]; // scope 1 at $DIR/if.rs:+3:16: +3:24 |
51 |
| -+ switchInt(const true) -> [false: bb2, otherwise: bb1]; // scope 1 at $DIR/if.rs:+3:16: +3:24 |
| 37 | + StorageLive(_1); // scope 0 at $DIR/if.rs:+1:9: +1:10 |
| 38 | + _1 = const 1_i32; // scope 0 at $DIR/if.rs:+1:13: +1:14 |
| 39 | + StorageLive(_2); // scope 1 at $DIR/if.rs:+2:9: +2:10 |
| 40 | + StorageLive(_3); // scope 1 at $DIR/if.rs:+2:16: +2:24 |
| 41 | + StorageLive(_4); // scope 1 at $DIR/if.rs:+2:16: +2:19 |
| 42 | + StorageLive(_5); // scope 1 at $DIR/if.rs:+2:17: +2:19 |
| 43 | + _5 = &_1; // scope 1 at $DIR/if.rs:+2:17: +2:19 |
| 44 | +- _4 = (*_5); // scope 1 at $DIR/if.rs:+2:16: +2:19 |
| 45 | +- _3 = Eq(move _4, const 1_i32); // scope 1 at $DIR/if.rs:+2:16: +2:24 |
| 46 | ++ _4 = const 1_i32; // scope 1 at $DIR/if.rs:+2:16: +2:19 |
| 47 | ++ _3 = const true; // scope 1 at $DIR/if.rs:+2:16: +2:24 |
| 48 | + StorageDead(_5); // scope 1 at $DIR/if.rs:+2:23: +2:24 |
| 49 | + StorageDead(_4); // scope 1 at $DIR/if.rs:+2:23: +2:24 |
| 50 | +- switchInt(move _3) -> [false: bb2, otherwise: bb1]; // scope 1 at $DIR/if.rs:+2:16: +2:24 |
| 51 | ++ switchInt(const true) -> [false: bb2, otherwise: bb1]; // scope 1 at $DIR/if.rs:+2:16: +2:24 |
52 | 52 | }
|
53 | 53 |
|
54 | 54 | bb1: {
|
55 |
| - _2 = const 2_i32; // scope 1 at $DIR/if.rs:+3:27: +3:28 |
56 |
| - goto -> bb3; // scope 1 at $DIR/if.rs:+3:13: +3:41 |
| 55 | + _2 = const 2_i32; // scope 1 at $DIR/if.rs:+2:27: +2:28 |
| 56 | + goto -> bb3; // scope 1 at $DIR/if.rs:+2:13: +2:41 |
57 | 57 | }
|
58 | 58 |
|
59 | 59 | bb2: {
|
60 |
| - _2 = const 3_i32; // scope 1 at $DIR/if.rs:+3:38: +3:39 |
61 |
| - goto -> bb3; // scope 1 at $DIR/if.rs:+3:13: +3:41 |
| 60 | + _2 = const 3_i32; // scope 1 at $DIR/if.rs:+2:38: +2:39 |
| 61 | + goto -> bb3; // scope 1 at $DIR/if.rs:+2:13: +2:41 |
62 | 62 | }
|
63 | 63 |
|
64 | 64 | bb3: {
|
65 |
| - StorageDead(_3); // scope 1 at $DIR/if.rs:+3:40: +3:41 |
66 |
| - StorageLive(_6); // scope 2 at $DIR/if.rs:+4:9: +4:10 |
67 |
| - StorageLive(_7); // scope 2 at $DIR/if.rs:+4:13: +4:14 |
68 |
| -- _7 = _2; // scope 2 at $DIR/if.rs:+4:13: +4:14 |
69 |
| -- _6 = Add(move _7, const 1_i32); // scope 2 at $DIR/if.rs:+4:13: +4:18 |
70 |
| -+ _7 = const 2_i32; // scope 2 at $DIR/if.rs:+4:13: +4:14 |
71 |
| -+ _6 = const 3_i32; // scope 2 at $DIR/if.rs:+4:13: +4:18 |
72 |
| - StorageDead(_7); // scope 2 at $DIR/if.rs:+4:17: +4:18 |
73 |
| - StorageLive(_8); // scope 3 at $DIR/if.rs:+6:9: +6:10 |
74 |
| - StorageLive(_9); // scope 3 at $DIR/if.rs:+6:16: +6:24 |
75 |
| - StorageLive(_10); // scope 3 at $DIR/if.rs:+6:16: +6:19 |
76 |
| - StorageLive(_11); // scope 3 at $DIR/if.rs:+6:17: +6:19 |
77 |
| - _11 = &_1; // scope 3 at $DIR/if.rs:+6:17: +6:19 |
78 |
| -- _10 = (*_11); // scope 3 at $DIR/if.rs:+6:16: +6:19 |
79 |
| -- _9 = Eq(move _10, const 1_i32); // scope 3 at $DIR/if.rs:+6:16: +6:24 |
80 |
| -+ _10 = const 1_i32; // scope 3 at $DIR/if.rs:+6:16: +6:19 |
81 |
| -+ _9 = const true; // scope 3 at $DIR/if.rs:+6:16: +6:24 |
82 |
| - StorageDead(_11); // scope 3 at $DIR/if.rs:+6:23: +6:24 |
83 |
| - StorageDead(_10); // scope 3 at $DIR/if.rs:+6:23: +6:24 |
84 |
| -- switchInt(move _9) -> [false: bb5, otherwise: bb4]; // scope 3 at $DIR/if.rs:+6:16: +6:24 |
85 |
| -+ switchInt(const true) -> [false: bb5, otherwise: bb4]; // scope 3 at $DIR/if.rs:+6:16: +6:24 |
| 65 | + StorageDead(_3); // scope 1 at $DIR/if.rs:+2:40: +2:41 |
| 66 | + StorageLive(_6); // scope 2 at $DIR/if.rs:+3:9: +3:10 |
| 67 | + StorageLive(_7); // scope 2 at $DIR/if.rs:+3:13: +3:14 |
| 68 | +- _7 = _2; // scope 2 at $DIR/if.rs:+3:13: +3:14 |
| 69 | +- _6 = Add(move _7, const 1_i32); // scope 2 at $DIR/if.rs:+3:13: +3:18 |
| 70 | ++ _7 = const 2_i32; // scope 2 at $DIR/if.rs:+3:13: +3:14 |
| 71 | ++ _6 = const 3_i32; // scope 2 at $DIR/if.rs:+3:13: +3:18 |
| 72 | + StorageDead(_7); // scope 2 at $DIR/if.rs:+3:17: +3:18 |
| 73 | + StorageLive(_8); // scope 3 at $DIR/if.rs:+5:9: +5:10 |
| 74 | + StorageLive(_9); // scope 3 at $DIR/if.rs:+5:16: +5:24 |
| 75 | + StorageLive(_10); // scope 3 at $DIR/if.rs:+5:16: +5:19 |
| 76 | + StorageLive(_11); // scope 3 at $DIR/if.rs:+5:17: +5:19 |
| 77 | + _11 = &_1; // scope 3 at $DIR/if.rs:+5:17: +5:19 |
| 78 | +- _10 = (*_11); // scope 3 at $DIR/if.rs:+5:16: +5:19 |
| 79 | +- _9 = Eq(move _10, const 1_i32); // scope 3 at $DIR/if.rs:+5:16: +5:24 |
| 80 | ++ _10 = const 1_i32; // scope 3 at $DIR/if.rs:+5:16: +5:19 |
| 81 | ++ _9 = const true; // scope 3 at $DIR/if.rs:+5:16: +5:24 |
| 82 | + StorageDead(_11); // scope 3 at $DIR/if.rs:+5:23: +5:24 |
| 83 | + StorageDead(_10); // scope 3 at $DIR/if.rs:+5:23: +5:24 |
| 84 | +- switchInt(move _9) -> [false: bb5, otherwise: bb4]; // scope 3 at $DIR/if.rs:+5:16: +5:24 |
| 85 | ++ switchInt(const true) -> [false: bb5, otherwise: bb4]; // scope 3 at $DIR/if.rs:+5:16: +5:24 |
86 | 86 | }
|
87 | 87 |
|
88 | 88 | bb4: {
|
89 |
| -- _8 = _1; // scope 3 at $DIR/if.rs:+6:27: +6:28 |
90 |
| -+ _8 = const 1_i32; // scope 3 at $DIR/if.rs:+6:27: +6:28 |
91 |
| - goto -> bb6; // scope 3 at $DIR/if.rs:+6:13: +6:45 |
| 89 | +- _8 = _1; // scope 3 at $DIR/if.rs:+5:27: +5:28 |
| 90 | ++ _8 = const 1_i32; // scope 3 at $DIR/if.rs:+5:27: +5:28 |
| 91 | + goto -> bb6; // scope 3 at $DIR/if.rs:+5:13: +5:45 |
92 | 92 | }
|
93 | 93 |
|
94 | 94 | bb5: {
|
95 |
| - StorageLive(_12); // scope 3 at $DIR/if.rs:+6:38: +6:39 |
96 |
| - _12 = _1; // scope 3 at $DIR/if.rs:+6:38: +6:39 |
97 |
| - _8 = Add(move _12, const 1_i32); // scope 3 at $DIR/if.rs:+6:38: +6:43 |
98 |
| - StorageDead(_12); // scope 3 at $DIR/if.rs:+6:42: +6:43 |
99 |
| - goto -> bb6; // scope 3 at $DIR/if.rs:+6:13: +6:45 |
| 95 | + StorageLive(_12); // scope 3 at $DIR/if.rs:+5:38: +5:39 |
| 96 | + _12 = _1; // scope 3 at $DIR/if.rs:+5:38: +5:39 |
| 97 | + _8 = Add(move _12, const 1_i32); // scope 3 at $DIR/if.rs:+5:38: +5:43 |
| 98 | + StorageDead(_12); // scope 3 at $DIR/if.rs:+5:42: +5:43 |
| 99 | + goto -> bb6; // scope 3 at $DIR/if.rs:+5:13: +5:45 |
100 | 100 | }
|
101 | 101 |
|
102 | 102 | bb6: {
|
103 |
| - StorageDead(_9); // scope 3 at $DIR/if.rs:+6:44: +6:45 |
104 |
| - StorageLive(_13); // scope 4 at $DIR/if.rs:+7:9: +7:10 |
105 |
| - StorageLive(_14); // scope 4 at $DIR/if.rs:+7:13: +7:14 |
106 |
| -- _14 = _8; // scope 4 at $DIR/if.rs:+7:13: +7:14 |
107 |
| -- _13 = Add(move _14, const 1_i32); // scope 4 at $DIR/if.rs:+7:13: +7:18 |
108 |
| -+ _14 = const 1_i32; // scope 4 at $DIR/if.rs:+7:13: +7:14 |
109 |
| -+ _13 = const 2_i32; // scope 4 at $DIR/if.rs:+7:13: +7:18 |
110 |
| - StorageDead(_14); // scope 4 at $DIR/if.rs:+7:17: +7:18 |
111 |
| - _0 = const (); // scope 0 at $DIR/if.rs:+0:11: +8:2 |
112 |
| - StorageDead(_13); // scope 4 at $DIR/if.rs:+8:1: +8:2 |
113 |
| - StorageDead(_8); // scope 3 at $DIR/if.rs:+8:1: +8:2 |
114 |
| - StorageDead(_6); // scope 2 at $DIR/if.rs:+8:1: +8:2 |
115 |
| - StorageDead(_2); // scope 1 at $DIR/if.rs:+8:1: +8:2 |
116 |
| - StorageDead(_1); // scope 0 at $DIR/if.rs:+8:1: +8:2 |
117 |
| - return; // scope 0 at $DIR/if.rs:+8:2: +8:2 |
| 103 | + StorageDead(_9); // scope 3 at $DIR/if.rs:+5:44: +5:45 |
| 104 | + StorageLive(_13); // scope 4 at $DIR/if.rs:+6:9: +6:10 |
| 105 | + StorageLive(_14); // scope 4 at $DIR/if.rs:+6:13: +6:14 |
| 106 | +- _14 = _8; // scope 4 at $DIR/if.rs:+6:13: +6:14 |
| 107 | +- _13 = Add(move _14, const 1_i32); // scope 4 at $DIR/if.rs:+6:13: +6:18 |
| 108 | ++ _14 = const 1_i32; // scope 4 at $DIR/if.rs:+6:13: +6:14 |
| 109 | ++ _13 = const 2_i32; // scope 4 at $DIR/if.rs:+6:13: +6:18 |
| 110 | + StorageDead(_14); // scope 4 at $DIR/if.rs:+6:17: +6:18 |
| 111 | + _0 = const (); // scope 0 at $DIR/if.rs:+0:11: +7:2 |
| 112 | + StorageDead(_13); // scope 4 at $DIR/if.rs:+7:1: +7:2 |
| 113 | + StorageDead(_8); // scope 3 at $DIR/if.rs:+7:1: +7:2 |
| 114 | + StorageDead(_6); // scope 2 at $DIR/if.rs:+7:1: +7:2 |
| 115 | + StorageDead(_2); // scope 1 at $DIR/if.rs:+7:1: +7:2 |
| 116 | + StorageDead(_1); // scope 0 at $DIR/if.rs:+7:1: +7:2 |
| 117 | + return; // scope 0 at $DIR/if.rs:+7:2: +7:2 |
118 | 118 | }
|
119 | 119 | }
|
120 | 120 |
|
0 commit comments