1 - // MIR for `main` before ConstProp
2 + // MIR for `main` after ConstProp
5 let mut _0: (); // return place in scope 0 at $DIR/discriminant.rs:+0:11: +0:11
6 let _1: i32; // in scope 0 at $DIR/discriminant.rs:+1:9: +1:10
7 let mut _2: i32; // in scope 0 at $DIR/discriminant.rs:+1:13: +1:64
8 let mut _3: std::option::Option<bool>; // in scope 0 at $DIR/discriminant.rs:+1:34: +1:44
9 let mut _4: isize; // in scope 0 at $DIR/discriminant.rs:+1:21: +1:31
11 debug x => _1; // in scope 1 at $DIR/discriminant.rs:+1:9: +1:10
17 StorageLive(_1); // scope 0 at $DIR/discriminant.rs:+1:9: +1:10
18 StorageLive(_2); // scope 0 at $DIR/discriminant.rs:+1:13: +1:64
19 StorageLive(_3); // scope 2 at $DIR/discriminant.rs:+1:34: +1:44
20 Deinit(_3); // scope 2 at $DIR/discriminant.rs:+1:34: +1:44
21 ((_3 as Some).0: bool) = const true; // scope 2 at $DIR/discriminant.rs:+1:34: +1:44
22 discriminant(_3) = 1; // scope 2 at $DIR/discriminant.rs:+1:34: +1:44
23 - _4 = discriminant(_3); // scope 2 at $DIR/discriminant.rs:+1:21: +1:31
24 - switchInt(move _4) -> [1_isize: bb1, otherwise: bb3]; // scope 2 at $DIR/discriminant.rs:+1:21: +1:31
25 + _4 = const 1_isize; // scope 2 at $DIR/discriminant.rs:+1:21: +1:31
26 + switchInt(const 1_isize) -> [1_isize: bb1, otherwise: bb3]; // scope 2 at $DIR/discriminant.rs:+1:21: +1:31
30 switchInt(((_3 as Some).0: bool)) -> [false: bb3, otherwise: bb2]; // scope 2 at $DIR/discriminant.rs:+1:21: +1:31
34 _2 = const 42_i32; // scope 2 at $DIR/discriminant.rs:+1:47: +1:49
35 goto -> bb4; // scope 0 at $DIR/discriminant.rs:+1:13: +1:64
39 _2 = const 10_i32; // scope 0 at $DIR/discriminant.rs:+1:59: +1:61
40 goto -> bb4; // scope 0 at $DIR/discriminant.rs:+1:13: +1:64
44 _1 = Add(move _2, const 0_i32); // scope 0 at $DIR/discriminant.rs:+1:13: +1:68
45 StorageDead(_2); // scope 0 at $DIR/discriminant.rs:+1:67: +1:68
46 StorageDead(_3); // scope 0 at $DIR/discriminant.rs:+1:68: +1:69
47 nop; // scope 0 at $DIR/discriminant.rs:+0:11: +2:2
48 StorageDead(_1); // scope 0 at $DIR/discriminant.rs:+2:1: +2:2
49 return; // scope 0 at $DIR/discriminant.rs:+2:2: +2:2