2020-04-02 16:09:01 -05:00
|
|
|
// MIR for `match_tuple` after SimplifyCfg-initial
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
fn match_tuple(_1: (u32, bool, Option<i32>, u32)) -> u32 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug x => _1;
|
|
|
|
let mut _0: u32;
|
|
|
|
let mut _2: isize;
|
|
|
|
let mut _3: bool;
|
|
|
|
let mut _4: bool;
|
|
|
|
let mut _5: bool;
|
|
|
|
let mut _6: bool;
|
|
|
|
let _7: u32;
|
|
|
|
let _8: u32;
|
|
|
|
let mut _9: u32;
|
|
|
|
let mut _10: u32;
|
2020-04-02 16:09:01 -05:00
|
|
|
scope 1 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug y => _7;
|
|
|
|
debug z => _8;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
FakeRead(ForMatchedPlace(None), _1);
|
|
|
|
switchInt((_1.0: u32)) -> [1: bb2, 4: bb2, otherwise: bb1];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = const 0_u32;
|
|
|
|
goto -> bb10;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_2 = discriminant((_1.2: std::option::Option<i32>));
|
|
|
|
switchInt(move _2) -> [0: bb4, 1: bb3, otherwise: bb1];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2023-06-06 08:47:00 -05:00
|
|
|
switchInt((((_1.2: std::option::Option<i32>) as Some).0: i32)) -> [1: bb4, 8: bb4, otherwise: bb1];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb4: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_5 = Le(const 6_u32, (_1.3: u32));
|
|
|
|
switchInt(move _5) -> [0: bb6, otherwise: bb5];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb5: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_6 = Le((_1.3: u32), const 9_u32);
|
|
|
|
switchInt(move _6) -> [0: bb6, otherwise: bb8];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb6: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_3 = Le(const 13_u32, (_1.3: u32));
|
|
|
|
switchInt(move _3) -> [0: bb1, otherwise: bb7];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb7: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_4 = Le((_1.3: u32), const 16_u32);
|
|
|
|
switchInt(move _4) -> [0: bb1, otherwise: bb8];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb8: {
|
2023-06-06 08:47:00 -05:00
|
|
|
falseEdge -> [real: bb9, imaginary: bb1];
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb9: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_7);
|
|
|
|
_7 = (_1.0: u32);
|
|
|
|
StorageLive(_8);
|
|
|
|
_8 = (_1.3: u32);
|
|
|
|
StorageLive(_9);
|
|
|
|
_9 = _7;
|
|
|
|
StorageLive(_10);
|
|
|
|
_10 = _8;
|
|
|
|
_0 = BitXor(move _9, move _10);
|
|
|
|
StorageDead(_10);
|
|
|
|
StorageDead(_9);
|
|
|
|
StorageDead(_8);
|
|
|
|
StorageDead(_7);
|
|
|
|
goto -> bb10;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb10: {
|
2023-06-06 08:47:00 -05:00
|
|
|
return;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
}
|