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