2024-03-02 19:22:37 -06:00
|
|
|
// MIR for `shortcut_second_or` after SimplifyCfg-initial
|
|
|
|
|
|
|
|
fn shortcut_second_or() -> () {
|
|
|
|
let mut _0: ();
|
|
|
|
let mut _1: ((i32, i32), i32);
|
|
|
|
let mut _2: (i32, i32);
|
|
|
|
let _3: (i32, i32);
|
|
|
|
let _4: i32;
|
|
|
|
scope 1 {
|
|
|
|
debug x => _3;
|
|
|
|
debug y => _4;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
|
|
|
StorageLive(_1);
|
|
|
|
StorageLive(_2);
|
|
|
|
_2 = (const 0_i32, const 0_i32);
|
|
|
|
_1 = (move _2, const 0_i32);
|
|
|
|
StorageDead(_2);
|
|
|
|
PlaceMention(_1);
|
2024-06-30 06:21:12 -05:00
|
|
|
switchInt(copy ((_1.0: (i32, i32)).0: i32)) -> [0: bb2, otherwise: bb1];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2024-06-30 06:21:12 -05:00
|
|
|
switchInt(copy ((_1.0: (i32, i32)).1: i32)) -> [1: bb4, otherwise: bb3];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2024-06-30 06:21:12 -05:00
|
|
|
switchInt(copy (_1.1: i32)) -> [2: bb5, 3: bb6, otherwise: bb3];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2024-06-30 06:21:12 -05:00
|
|
|
_0 = const ();
|
|
|
|
goto -> bb14;
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb4: {
|
2024-06-30 06:21:12 -05:00
|
|
|
switchInt(copy (_1.1: i32)) -> [2: bb7, 3: bb8, otherwise: bb3];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb5: {
|
2024-06-23 08:54:42 -05:00
|
|
|
falseEdge -> [real: bb12, imaginary: bb6];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb6: {
|
2024-06-30 06:21:12 -05:00
|
|
|
falseEdge -> [real: bb11, imaginary: bb1];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb7: {
|
2024-06-23 08:54:42 -05:00
|
|
|
falseEdge -> [real: bb10, imaginary: bb8];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb8: {
|
2024-06-23 08:54:42 -05:00
|
|
|
falseEdge -> [real: bb9, imaginary: bb3];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb9: {
|
2024-06-23 08:54:42 -05:00
|
|
|
StorageLive(_3);
|
|
|
|
_3 = copy (_1.0: (i32, i32));
|
|
|
|
StorageLive(_4);
|
|
|
|
_4 = copy (_1.1: i32);
|
|
|
|
goto -> bb13;
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb10: {
|
|
|
|
StorageLive(_3);
|
|
|
|
_3 = copy (_1.0: (i32, i32));
|
|
|
|
StorageLive(_4);
|
|
|
|
_4 = copy (_1.1: i32);
|
2024-06-23 08:54:42 -05:00
|
|
|
goto -> bb13;
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb11: {
|
|
|
|
StorageLive(_3);
|
|
|
|
_3 = copy (_1.0: (i32, i32));
|
|
|
|
StorageLive(_4);
|
|
|
|
_4 = copy (_1.1: i32);
|
2024-06-23 08:54:42 -05:00
|
|
|
goto -> bb13;
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb12: {
|
|
|
|
StorageLive(_3);
|
|
|
|
_3 = copy (_1.0: (i32, i32));
|
|
|
|
StorageLive(_4);
|
|
|
|
_4 = copy (_1.1: i32);
|
2024-06-23 08:54:42 -05:00
|
|
|
goto -> bb13;
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb13: {
|
2024-06-23 08:54:42 -05:00
|
|
|
_0 = const ();
|
|
|
|
StorageDead(_4);
|
|
|
|
StorageDead(_3);
|
|
|
|
goto -> bb14;
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb14: {
|
|
|
|
StorageDead(_1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|