2020-07-18 17:43:51 -05:00
|
|
|
- // MIR for `test` before ConstProp
|
|
|
|
+ // MIR for `test` after ConstProp
|
|
|
|
|
|
|
|
fn test(_1: bool, _2: bool) -> bool {
|
2022-07-27 13:47:42 -05:00
|
|
|
debug x => _1; // in scope 0 at $DIR/boolean_identities.rs:+0:13: +0:14
|
|
|
|
debug y => _2; // in scope 0 at $DIR/boolean_identities.rs:+0:22: +0:23
|
|
|
|
let mut _0: bool; // return place in scope 0 at $DIR/boolean_identities.rs:+0:34: +0:38
|
|
|
|
let mut _3: bool; // in scope 0 at $DIR/boolean_identities.rs:+1:5: +1:15
|
|
|
|
let mut _4: bool; // in scope 0 at $DIR/boolean_identities.rs:+1:6: +1:7
|
|
|
|
let mut _5: bool; // in scope 0 at $DIR/boolean_identities.rs:+1:18: +1:29
|
|
|
|
let mut _6: bool; // in scope 0 at $DIR/boolean_identities.rs:+1:19: +1:20
|
2020-07-18 17:43:51 -05:00
|
|
|
|
|
|
|
bb0: {
|
2022-07-27 13:47:42 -05:00
|
|
|
StorageLive(_3); // scope 0 at $DIR/boolean_identities.rs:+1:5: +1:15
|
2023-01-12 12:23:48 -06:00
|
|
|
- _3 = BitOr(_2, const true); // scope 0 at $DIR/boolean_identities.rs:+1:5: +1:15
|
2022-07-27 13:47:42 -05:00
|
|
|
+ _3 = const true; // scope 0 at $DIR/boolean_identities.rs:+1:5: +1:15
|
|
|
|
StorageLive(_5); // scope 0 at $DIR/boolean_identities.rs:+1:18: +1:29
|
2023-01-12 12:23:48 -06:00
|
|
|
- _5 = BitAnd(_1, const false); // scope 0 at $DIR/boolean_identities.rs:+1:18: +1:29
|
2022-07-27 13:47:42 -05:00
|
|
|
- _0 = BitAnd(move _3, move _5); // scope 0 at $DIR/boolean_identities.rs:+1:5: +1:29
|
2023-01-12 12:23:48 -06:00
|
|
|
+ _5 = const false; // scope 0 at $DIR/boolean_identities.rs:+1:18: +1:29
|
2022-07-27 13:47:42 -05:00
|
|
|
+ _0 = const false; // scope 0 at $DIR/boolean_identities.rs:+1:5: +1:29
|
|
|
|
StorageDead(_5); // scope 0 at $DIR/boolean_identities.rs:+1:28: +1:29
|
|
|
|
StorageDead(_3); // scope 0 at $DIR/boolean_identities.rs:+1:28: +1:29
|
|
|
|
return; // scope 0 at $DIR/boolean_identities.rs:+2:2: +2:2
|
2020-07-18 17:43:51 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|