// MIR for `main` before PromoteTemps fn main() -> () { let mut _0: (); // return place in scope 0 at $DIR/match_false_edges.rs:32:11: 32:11 let mut _1: i32; // in scope 0 at $DIR/match_false_edges.rs:33:13: 38:6 let mut _2: std::option::Option; // in scope 0 at $DIR/match_false_edges.rs:33:19: 33:26 let mut _3: isize; // in scope 0 at $DIR/match_false_edges.rs:36:9: 36:16 let mut _4: isize; // in scope 0 at $DIR/match_false_edges.rs:34:9: 34:17 let mut _5: &std::option::Option; // in scope 0 at $DIR/match_false_edges.rs:33:19: 33:26 let _6: i32; // in scope 0 at $DIR/match_false_edges.rs:34:14: 34:16 let _7: &i32; // in scope 0 at $DIR/match_false_edges.rs:34:14: 34:16 let mut _8: bool; // in scope 0 at $DIR/match_false_edges.rs:34:21: 34:28 let _9: std::option::Option; // in scope 0 at $DIR/match_false_edges.rs:35:9: 35:11 let _10: i32; // in scope 0 at $DIR/match_false_edges.rs:36:14: 36:15 let _11: &i32; // in scope 0 at $DIR/match_false_edges.rs:36:14: 36:15 let mut _12: bool; // in scope 0 at $DIR/match_false_edges.rs:36:20: 36:29 let mut _13: i32; // in scope 0 at $DIR/match_false_edges.rs:36:27: 36:28 let _14: std::option::Option; // in scope 0 at $DIR/match_false_edges.rs:37:9: 37:11 scope 1 { } scope 2 { debug _w => _6; // in scope 2 at $DIR/match_false_edges.rs:34:14: 34:16 debug _w => _7; // in scope 2 at $DIR/match_false_edges.rs:34:14: 34:16 } scope 3 { debug _x => _9; // in scope 3 at $DIR/match_false_edges.rs:35:9: 35:11 } scope 4 { debug y => _10; // in scope 4 at $DIR/match_false_edges.rs:36:14: 36:15 debug y => _11; // in scope 4 at $DIR/match_false_edges.rs:36:14: 36:15 } scope 5 { debug _z => _14; // in scope 5 at $DIR/match_false_edges.rs:37:9: 37:11 } bb0: { StorageLive(_1); // scope 0 at $DIR/match_false_edges.rs:33:13: 38:6 StorageLive(_2); // scope 0 at $DIR/match_false_edges.rs:33:19: 33:26 _2 = Option::::Some(const 1_i32); // scope 0 at $DIR/match_false_edges.rs:33:19: 33:26 FakeRead(ForMatchedPlace(None), _2); // scope 0 at $DIR/match_false_edges.rs:33:19: 33:26 _4 = discriminant(_2); // scope 0 at $DIR/match_false_edges.rs:33:19: 33:26 switchInt(move _4) -> [1_isize: bb2, otherwise: bb1]; // scope 0 at $DIR/match_false_edges.rs:33:13: 33:26 } bb1: { falseEdge -> [real: bb9, imaginary: bb4]; // scope 0 at $DIR/match_false_edges.rs:35:9: 35:11 } bb2: { falseEdge -> [real: bb5, imaginary: bb1]; // scope 0 at $DIR/match_false_edges.rs:34:9: 34:17 } bb3: { StorageLive(_14); // scope 0 at $DIR/match_false_edges.rs:37:9: 37:11 _14 = _2; // scope 0 at $DIR/match_false_edges.rs:37:9: 37:11 _1 = const 4_i32; // scope 5 at $DIR/match_false_edges.rs:37:15: 37:16 StorageDead(_14); // scope 0 at $DIR/match_false_edges.rs:37:15: 37:16 goto -> bb14; // scope 0 at $DIR/match_false_edges.rs:37:15: 37:16 } bb4: { falseEdge -> [real: bb10, imaginary: bb3]; // scope 0 at $DIR/match_false_edges.rs:36:9: 36:16 } bb5: { StorageLive(_7); // scope 0 at $DIR/match_false_edges.rs:34:14: 34:16 _7 = &((_2 as Some).0: i32); // scope 0 at $DIR/match_false_edges.rs:34:14: 34:16 _5 = &shallow _2; // scope 0 at $DIR/match_false_edges.rs:33:19: 33:26 StorageLive(_8); // scope 0 at $DIR/match_false_edges.rs:34:21: 34:28 _8 = guard() -> [return: bb6, unwind: bb15]; // scope 0 at $DIR/match_false_edges.rs:34:21: 34:28 // mir::Constant // + span: $DIR/match_false_edges.rs:34:21: 34:26 // + literal: Const { ty: fn() -> bool {guard}, val: Value() } } bb6: { switchInt(move _8) -> [false: bb8, otherwise: bb7]; // scope 0 at $DIR/match_false_edges.rs:34:21: 34:28 } bb7: { StorageDead(_8); // scope 0 at $DIR/match_false_edges.rs:34:27: 34:28 FakeRead(ForMatchGuard, _5); // scope 0 at $DIR/match_false_edges.rs:34:27: 34:28 FakeRead(ForGuardBinding, _7); // scope 0 at $DIR/match_false_edges.rs:34:27: 34:28 StorageLive(_6); // scope 0 at $DIR/match_false_edges.rs:34:14: 34:16 _6 = ((_2 as Some).0: i32); // scope 0 at $DIR/match_false_edges.rs:34:14: 34:16 _1 = const 1_i32; // scope 2 at $DIR/match_false_edges.rs:34:32: 34:33 StorageDead(_6); // scope 0 at $DIR/match_false_edges.rs:34:32: 34:33 StorageDead(_7); // scope 0 at $DIR/match_false_edges.rs:34:32: 34:33 goto -> bb14; // scope 0 at $DIR/match_false_edges.rs:34:32: 34:33 } bb8: { StorageDead(_8); // scope 0 at $DIR/match_false_edges.rs:34:27: 34:28 StorageDead(_7); // scope 0 at $DIR/match_false_edges.rs:34:32: 34:33 falseEdge -> [real: bb1, imaginary: bb1]; // scope 0 at $DIR/match_false_edges.rs:34:21: 34:28 } bb9: { StorageLive(_9); // scope 0 at $DIR/match_false_edges.rs:35:9: 35:11 _9 = _2; // scope 0 at $DIR/match_false_edges.rs:35:9: 35:11 _1 = const 2_i32; // scope 3 at $DIR/match_false_edges.rs:35:15: 35:16 StorageDead(_9); // scope 0 at $DIR/match_false_edges.rs:35:15: 35:16 goto -> bb14; // scope 0 at $DIR/match_false_edges.rs:35:15: 35:16 } bb10: { StorageLive(_11); // scope 0 at $DIR/match_false_edges.rs:36:14: 36:15 _11 = &((_2 as Some).0: i32); // scope 0 at $DIR/match_false_edges.rs:36:14: 36:15 _5 = &shallow _2; // scope 0 at $DIR/match_false_edges.rs:33:19: 33:26 StorageLive(_12); // scope 0 at $DIR/match_false_edges.rs:36:20: 36:29 StorageLive(_13); // scope 0 at $DIR/match_false_edges.rs:36:27: 36:28 _13 = (*_11); // scope 0 at $DIR/match_false_edges.rs:36:27: 36:28 _12 = guard2(move _13) -> [return: bb11, unwind: bb15]; // scope 0 at $DIR/match_false_edges.rs:36:20: 36:29 // mir::Constant // + span: $DIR/match_false_edges.rs:36:20: 36:26 // + literal: Const { ty: fn(i32) -> bool {guard2}, val: Value() } } bb11: { switchInt(move _12) -> [false: bb13, otherwise: bb12]; // scope 0 at $DIR/match_false_edges.rs:36:20: 36:29 } bb12: { StorageDead(_13); // scope 0 at $DIR/match_false_edges.rs:36:28: 36:29 StorageDead(_12); // scope 0 at $DIR/match_false_edges.rs:36:28: 36:29 FakeRead(ForMatchGuard, _5); // scope 0 at $DIR/match_false_edges.rs:36:28: 36:29 FakeRead(ForGuardBinding, _11); // scope 0 at $DIR/match_false_edges.rs:36:28: 36:29 StorageLive(_10); // scope 0 at $DIR/match_false_edges.rs:36:14: 36:15 _10 = ((_2 as Some).0: i32); // scope 0 at $DIR/match_false_edges.rs:36:14: 36:15 _1 = const 3_i32; // scope 4 at $DIR/match_false_edges.rs:36:33: 36:34 StorageDead(_10); // scope 0 at $DIR/match_false_edges.rs:36:33: 36:34 StorageDead(_11); // scope 0 at $DIR/match_false_edges.rs:36:33: 36:34 goto -> bb14; // scope 0 at $DIR/match_false_edges.rs:36:33: 36:34 } bb13: { StorageDead(_13); // scope 0 at $DIR/match_false_edges.rs:36:28: 36:29 StorageDead(_12); // scope 0 at $DIR/match_false_edges.rs:36:28: 36:29 StorageDead(_11); // scope 0 at $DIR/match_false_edges.rs:36:33: 36:34 falseEdge -> [real: bb3, imaginary: bb3]; // scope 0 at $DIR/match_false_edges.rs:36:20: 36:29 } bb14: { StorageDead(_2); // scope 0 at $DIR/match_false_edges.rs:38:6: 38:7 StorageDead(_1); // scope 0 at $DIR/match_false_edges.rs:38:6: 38:7 _0 = const (); // scope 0 at $DIR/match_false_edges.rs:32:11: 39:2 return; // scope 0 at $DIR/match_false_edges.rs:39:2: 39:2 } bb15 (cleanup): { resume; // scope 0 at $DIR/match_false_edges.rs:32:1: 39:2 } }