|
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: 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 |
| 7 | + let mut _2: bool; // in scope 0 at $DIR/matches_reduce_branches.rs:41:24: 41:28 |
| 8 | ++ let mut _3: bool; // in scope 0 at $DIR/matches_reduce_branches.rs:41:24: 41:28 |
13 | 9 | scope 1 {
|
14 | 10 | debug val => _1; // in scope 1 at $DIR/matches_reduce_branches.rs:40:9: 40:12
|
15 | 11 | }
|
16 | 12 |
|
17 | 13 | bb0: {
|
18 | 14 | StorageLive(_1); // scope 0 at $DIR/matches_reduce_branches.rs:40:9: 40:12
|
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 |
| 15 | + StorageLive(_2); // scope 0 at $DIR/matches_reduce_branches.rs:41:24: 41:28 |
| 16 | + _2 = const true; // scope 0 at $DIR/matches_reduce_branches.rs:41:24: 41:28 |
| 17 | +- switchInt(move _2) -> [false: bb2, otherwise: bb1]; // scope 0 at $DIR/matches_reduce_branches.rs:41:24: 41:28 |
24 | 18 | - }
|
25 | 19 | -
|
26 | 20 | - bb1: {
|
27 |
| -- _3 = const true; // scope 0 at $DIR/matches_reduce_branches.rs:41:31: 41:35 |
28 |
| -- goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:41:21: 41:52 |
29 |
| -- } |
30 |
| -- |
31 |
| -- bb2: { |
32 |
| -- _3 = const false; // scope 0 at $DIR/matches_reduce_branches.rs:41:45: 41:50 |
33 |
| -- goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:41:21: 41:52 |
34 |
| -- } |
35 |
| -- |
36 |
| -- bb3: { |
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 |
43 |
| -- } |
44 |
| -- |
45 |
| -- bb4: { |
46 |
| -- _2 = const true; // scope 0 at $DIR/matches_reduce_branches.rs:41:55: 41:59 |
47 |
| -- goto -> bb6; // scope 0 at $DIR/matches_reduce_branches.rs:41:18: 41:76 |
48 |
| -- } |
49 |
| -- |
50 |
| -- bb5: { |
51 |
| -- _2 = const false; // scope 0 at $DIR/matches_reduce_branches.rs:41:69: 41:74 |
52 |
| -- goto -> bb6; // scope 0 at $DIR/matches_reduce_branches.rs:41:18: 41:76 |
53 |
| -- } |
54 |
| -- |
55 |
| -- bb6: { |
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 |
62 |
| -- } |
63 |
| -- |
64 |
| -- bb7: { |
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 |
| 21 | ++ StorageLive(_3); // scope 0 at $DIR/matches_reduce_branches.rs:41:24: 41:28 |
| 22 | ++ _3 = move _2; // scope 0 at $DIR/matches_reduce_branches.rs:41:24: 41:28 |
| 23 | + StorageDead(_2); // scope 0 at $DIR/matches_reduce_branches.rs:41:51: 41:52 |
68 | 24 | - _1 = const true; // scope 0 at $DIR/matches_reduce_branches.rs:47:13: 47:17
|
69 |
| -- goto -> bb9; // scope 0 at $DIR/matches_reduce_branches.rs:47:13: 47:17 |
| 25 | +- goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:47:13: 47:17 |
70 | 26 | - }
|
71 | 27 | -
|
72 |
| -- bb8: { |
73 |
| -- StorageDead(_2); // scope 0 at $DIR/matches_reduce_branches.rs:45:9: 45:10 |
| 28 | +- bb2: { |
| 29 | +- StorageDead(_2); // scope 0 at $DIR/matches_reduce_branches.rs:41:51: 41:52 |
74 | 30 | - _1 = const false; // 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 |
| 31 | +- goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:49:14: 49:19 |
76 | 32 | - }
|
77 | 33 | -
|
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 |
| 34 | +- bb3: { |
| 35 | ++ _1 = Ne(_3, const false); // scope 0 at $DIR/matches_reduce_branches.rs:49:14: 49:19 |
| 36 | ++ StorageDead(_3); // scope 0 at $DIR/matches_reduce_branches.rs:41:24: 41:28 |
81 | 37 | _0 = _1; // scope 1 at $DIR/matches_reduce_branches.rs:51:5: 51:8
|
82 | 38 | StorageDead(_1); // scope 0 at $DIR/matches_reduce_branches.rs:52:1: 52:2
|
83 | 39 | return; // scope 0 at $DIR/matches_reduce_branches.rs:52:2: 52:2
|
|
0 commit comments