1 // MIR for `main` after SimplifyCfg-initial
4 let mut _0: (); // return place in scope 0 at $DIR/match_test.rs:6:11: 6:11
5 let _1: i32; // in scope 0 at $DIR/match_test.rs:7:9: 7:10
6 let _3: i32; // in scope 0 at $DIR/match_test.rs:12:5: 17:6
7 let mut _4: bool; // in scope 0 at $DIR/match_test.rs:14:9: 14:16
8 let mut _5: bool; // in scope 0 at $DIR/match_test.rs:14:9: 14:16
9 let mut _6: bool; // in scope 0 at $DIR/match_test.rs:13:9: 13:14
10 let mut _7: bool; // in scope 0 at $DIR/match_test.rs:13:9: 13:14
11 let mut _8: &i32; // in scope 0 at $DIR/match_test.rs:12:11: 12:12
12 let mut _9: bool; // in scope 0 at $DIR/match_test.rs:13:18: 13:19
14 debug x => _1; // in scope 1 at $DIR/match_test.rs:7:9: 7:10
15 let _2: bool; // in scope 1 at $DIR/match_test.rs:8:9: 8:10
17 debug b => _2; // in scope 2 at $DIR/match_test.rs:8:9: 8:10
22 StorageLive(_1); // scope 0 at $DIR/match_test.rs:7:9: 7:10
23 _1 = const 3_i32; // scope 0 at $DIR/match_test.rs:7:13: 7:14
24 FakeRead(ForLet(None), _1); // scope 0 at $DIR/match_test.rs:7:9: 7:10
25 StorageLive(_2); // scope 1 at $DIR/match_test.rs:8:9: 8:10
26 _2 = const true; // scope 1 at $DIR/match_test.rs:8:13: 8:17
27 FakeRead(ForLet(None), _2); // scope 1 at $DIR/match_test.rs:8:9: 8:10
28 StorageLive(_3); // scope 2 at $DIR/match_test.rs:12:5: 17:6
29 FakeRead(ForMatchedPlace(None), _1); // scope 2 at $DIR/match_test.rs:12:11: 12:12
30 _6 = Le(const 0_i32, _1); // scope 2 at $DIR/match_test.rs:13:9: 13:14
31 switchInt(move _6) -> [false: bb4, otherwise: bb1]; // scope 2 at $DIR/match_test.rs:13:9: 13:14
35 _7 = Lt(_1, const 10_i32); // scope 2 at $DIR/match_test.rs:13:9: 13:14
36 switchInt(move _7) -> [false: bb4, otherwise: bb2]; // scope 2 at $DIR/match_test.rs:13:9: 13:14
40 falseEdge -> [real: bb9, imaginary: bb6]; // scope 2 at $DIR/match_test.rs:13:9: 13:14
44 _3 = const 3_i32; // scope 2 at $DIR/match_test.rs:16:14: 16:15
45 goto -> bb14; // scope 2 at $DIR/match_test.rs:16:14: 16:15
49 _4 = Le(const 10_i32, _1); // scope 2 at $DIR/match_test.rs:14:9: 14:16
50 switchInt(move _4) -> [false: bb7, otherwise: bb5]; // scope 2 at $DIR/match_test.rs:14:9: 14:16
54 _5 = Le(_1, const 20_i32); // scope 2 at $DIR/match_test.rs:14:9: 14:16
55 switchInt(move _5) -> [false: bb7, otherwise: bb6]; // scope 2 at $DIR/match_test.rs:14:9: 14:16
59 falseEdge -> [real: bb12, imaginary: bb8]; // scope 2 at $DIR/match_test.rs:14:9: 14:16
63 switchInt(_1) -> [-1_i32: bb8, otherwise: bb3]; // scope 2 at $DIR/match_test.rs:12:5: 12:12
67 falseEdge -> [real: bb13, imaginary: bb3]; // scope 2 at $DIR/match_test.rs:15:9: 15:11
71 _8 = &shallow _1; // scope 2 at $DIR/match_test.rs:12:11: 12:12
72 StorageLive(_9); // scope 2 at $DIR/match_test.rs:13:18: 13:19
73 _9 = _2; // scope 2 at $DIR/match_test.rs:13:18: 13:19
74 switchInt(move _9) -> [false: bb11, otherwise: bb10]; // scope 2 at $DIR/match_test.rs:13:18: 13:19
78 StorageDead(_9); // scope 2 at $DIR/match_test.rs:13:18: 13:19
79 FakeRead(ForMatchGuard, _8); // scope 2 at $DIR/match_test.rs:13:18: 13:19
80 _3 = const 0_i32; // scope 2 at $DIR/match_test.rs:13:23: 13:24
81 goto -> bb14; // scope 2 at $DIR/match_test.rs:13:23: 13:24
85 StorageDead(_9); // scope 2 at $DIR/match_test.rs:13:18: 13:19
86 falseEdge -> [real: bb3, imaginary: bb6]; // scope 2 at $DIR/match_test.rs:13:18: 13:19
90 _3 = const 1_i32; // scope 2 at $DIR/match_test.rs:14:20: 14:21
91 goto -> bb14; // scope 2 at $DIR/match_test.rs:14:20: 14:21
95 _3 = const 2_i32; // scope 2 at $DIR/match_test.rs:15:15: 15:16
96 goto -> bb14; // scope 2 at $DIR/match_test.rs:15:15: 15:16
100 StorageDead(_3); // scope 2 at $DIR/match_test.rs:17:6: 17:7
101 _0 = const (); // scope 0 at $DIR/match_test.rs:6:11: 18:2
102 StorageDead(_2); // scope 1 at $DIR/match_test.rs:18:1: 18:2
103 StorageDead(_1); // scope 0 at $DIR/match_test.rs:18:1: 18:2
104 return; // scope 0 at $DIR/match_test.rs:18:2: 18:2