1 - // MIR for `main` before SimplifyArmIdentity
2 + // MIR for `main` after SimplifyArmIdentity
5 let mut _0: (); // return place in scope 0 at $DIR/issue-73223.rs:1:11: 1:11
6 let _1: i32; // in scope 0 at $DIR/issue-73223.rs:2:9: 2:14
7 let mut _2: std::option::Option<i32>; // in scope 0 at $DIR/issue-73223.rs:2:23: 2:30
8 let mut _3: isize; // in scope 0 at $DIR/issue-73223.rs:3:9: 3:16
9 let _4: i32; // in scope 0 at $DIR/issue-73223.rs:3:14: 3:15
10 let mut _5: !; // in scope 0 at $DIR/issue-73223.rs:4:17: 4:23
11 let mut _7: i32; // in scope 0 at $DIR/issue-73223.rs:7:22: 7:27
12 let _8: (); // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
13 let mut _9: (&i32, &i32); // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
14 let mut _10: &i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
15 let mut _11: &i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
16 let _12: i32; // in scope 0 at $DIR/issue-73223.rs:8:23: 8:24
17 let mut _15: bool; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
18 let mut _16: bool; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
19 let mut _17: i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
20 let mut _18: i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
21 let mut _19: !; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
22 let _21: !; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
23 let mut _22: core::panicking::AssertKind; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
24 let mut _23: &i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
25 let _24: &i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
26 let mut _25: &i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
27 let _26: &i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
28 let mut _27: std::option::Option<std::fmt::Arguments>; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
30 debug split => _1; // in scope 1 at $DIR/issue-73223.rs:2:9: 2:14
31 let _6: std::option::Option<i32>; // in scope 1 at $DIR/issue-73223.rs:7:9: 7:14
33 debug _prev => _6; // in scope 3 at $DIR/issue-73223.rs:7:9: 7:14
34 let _13: &i32; // in scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
35 let _14: &i32; // in scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
36 let mut _28: &i32; // in scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
38 debug left_val => _13; // in scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
39 debug right_val => _14; // in scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
40 let _20: core::panicking::AssertKind; // in scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
42 debug kind => _20; // in scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
48 debug v => _4; // in scope 2 at $DIR/issue-73223.rs:3:14: 3:15
52 StorageLive(_1); // scope 0 at $DIR/issue-73223.rs:2:9: 2:14
53 StorageLive(_2); // scope 0 at $DIR/issue-73223.rs:2:23: 2:30
54 ((_2 as Some).0: i32) = const 1_i32; // scope 0 at $DIR/issue-73223.rs:2:23: 2:30
55 discriminant(_2) = 1; // scope 0 at $DIR/issue-73223.rs:2:23: 2:30
56 _3 = const 1_isize; // scope 0 at $DIR/issue-73223.rs:2:23: 2:30
57 goto -> bb2; // scope 0 at $DIR/issue-73223.rs:2:17: 2:30
61 nop; // scope 0 at $DIR/issue-73223.rs:4:17: 4:23
62 StorageDead(_2); // scope 0 at $DIR/issue-73223.rs:5:6: 5:7
63 StorageDead(_1); // scope 0 at $DIR/issue-73223.rs:9:1: 9:2
64 return; // scope 0 at $DIR/issue-73223.rs:9:2: 9:2
68 StorageLive(_4); // scope 0 at $DIR/issue-73223.rs:3:14: 3:15
69 _4 = ((_2 as Some).0: i32); // scope 0 at $DIR/issue-73223.rs:3:14: 3:15
70 _1 = _4; // scope 2 at $DIR/issue-73223.rs:3:20: 3:21
71 StorageDead(_4); // scope 0 at $DIR/issue-73223.rs:3:20: 3:21
72 StorageDead(_2); // scope 0 at $DIR/issue-73223.rs:5:6: 5:7
73 StorageLive(_6); // scope 1 at $DIR/issue-73223.rs:7:9: 7:14
74 StorageLive(_7); // scope 1 at $DIR/issue-73223.rs:7:22: 7:27
75 _7 = _1; // scope 1 at $DIR/issue-73223.rs:7:22: 7:27
76 ((_6 as Some).0: i32) = move _7; // scope 1 at $DIR/issue-73223.rs:7:17: 7:28
77 discriminant(_6) = 1; // scope 1 at $DIR/issue-73223.rs:7:17: 7:28
78 StorageDead(_7); // scope 1 at $DIR/issue-73223.rs:7:27: 7:28
79 StorageLive(_8); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
80 StorageLive(_9); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
81 StorageLive(_10); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
82 _10 = &_1; // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
83 StorageLive(_11); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
84 _28 = const main::promoted[0]; // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
86 // + span: $SRC_DIR/core/src/macros/mod.rs:LL:COL
87 // + literal: Const { ty: &i32, val: Unevaluated(main, [], Some(promoted[0])) }
88 _11 = _28; // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
89 (_9.0: &i32) = move _10; // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
90 (_9.1: &i32) = move _11; // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
91 StorageDead(_11); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
92 StorageDead(_10); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
93 StorageLive(_13); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
94 _13 = (_9.0: &i32); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
95 StorageLive(_14); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
96 _14 = (_9.1: &i32); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
97 StorageLive(_15); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
98 StorageLive(_16); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
99 StorageLive(_17); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
100 _17 = (*_13); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
101 StorageLive(_18); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
102 _18 = const 1_i32; // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
103 _16 = Eq(move _17, const 1_i32); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
104 StorageDead(_18); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
105 StorageDead(_17); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
106 _15 = Not(move _16); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
107 StorageDead(_16); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
108 switchInt(move _15) -> [false: bb4, otherwise: bb3]; // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
112 StorageLive(_20); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
113 discriminant(_20) = 0; // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
114 StorageLive(_21); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
115 StorageLive(_22); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
116 _22 = const core::panicking::AssertKind::Eq; // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
118 // + span: $SRC_DIR/core/src/macros/mod.rs:LL:COL
119 // + literal: Const { ty: core::panicking::AssertKind, val: Value(Scalar(0x00)) }
120 StorageLive(_23); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
121 StorageLive(_24); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
122 _24 = _13; // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
123 _23 = _24; // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
124 StorageLive(_25); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
125 StorageLive(_26); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
126 _26 = _14; // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
127 _25 = _26; // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
128 StorageLive(_27); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
129 discriminant(_27) = 0; // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
130 core::panicking::assert_failed::<i32, i32>(const core::panicking::AssertKind::Eq, move _23, move _25, move _27); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
132 // + span: $SRC_DIR/core/src/macros/mod.rs:LL:COL
133 // + literal: Const { ty: for<'r, 's, 't0> fn(core::panicking::AssertKind, &'r i32, &'s i32, Option<Arguments<'t0>>) -> ! {core::panicking::assert_failed::<i32, i32>}, val: Value(Scalar(<ZST>)) }
135 // + span: $SRC_DIR/core/src/macros/mod.rs:LL:COL
136 // + literal: Const { ty: core::panicking::AssertKind, val: Value(Scalar(0x00)) }
140 nop; // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
141 StorageDead(_15); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
142 StorageDead(_14); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
143 StorageDead(_13); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
144 StorageDead(_9); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
145 StorageDead(_8); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
146 nop; // scope 0 at $DIR/issue-73223.rs:1:11: 9:2
147 StorageDead(_6); // scope 1 at $DIR/issue-73223.rs:9:1: 9:2
148 StorageDead(_1); // scope 0 at $DIR/issue-73223.rs:9:1: 9:2
149 return; // scope 0 at $DIR/issue-73223.rs:9:2: 9:2