2024-03-02 19:22:37 -06:00
|
|
|
// MIR for `single_switchint` after SimplifyCfg-initial
|
|
|
|
|
|
|
|
fn single_switchint() -> () {
|
|
|
|
let mut _0: ();
|
|
|
|
let _1: i32;
|
|
|
|
let mut _2: (i32, bool);
|
|
|
|
|
|
|
|
bb0: {
|
|
|
|
StorageLive(_1);
|
|
|
|
StorageLive(_2);
|
|
|
|
_2 = (const 1_i32, const true);
|
|
|
|
PlaceMention(_2);
|
2024-08-18 16:26:34 -05:00
|
|
|
switchInt(copy (_2.0: i32)) -> [1: bb2, 2: bb4, otherwise: bb1];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2024-08-18 16:26:34 -05:00
|
|
|
switchInt(copy (_2.0: i32)) -> [3: bb8, 4: bb8, otherwise: bb7];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2024-08-18 16:26:34 -05:00
|
|
|
switchInt(copy (_2.1: bool)) -> [0: bb6, otherwise: bb3];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2024-06-23 08:54:42 -05:00
|
|
|
falseEdge -> [real: bb12, imaginary: bb4];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb4: {
|
2024-08-18 16:26:34 -05:00
|
|
|
switchInt(copy (_2.1: bool)) -> [0: bb5, otherwise: bb6];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb5: {
|
2024-06-23 08:54:42 -05:00
|
|
|
falseEdge -> [real: bb11, imaginary: bb6];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb6: {
|
2024-06-23 08:54:42 -05:00
|
|
|
falseEdge -> [real: bb10, imaginary: bb1];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb7: {
|
2024-03-20 09:57:51 -05:00
|
|
|
_1 = const 5_i32;
|
|
|
|
goto -> bb13;
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb8: {
|
2024-06-23 08:54:42 -05:00
|
|
|
falseEdge -> [real: bb9, imaginary: bb7];
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb9: {
|
2024-06-23 08:54:42 -05:00
|
|
|
_1 = const 4_i32;
|
2024-03-20 09:57:51 -05:00
|
|
|
goto -> bb13;
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
2024-03-20 09:57:51 -05:00
|
|
|
bb10: {
|
2024-06-23 08:54:42 -05:00
|
|
|
_1 = const 3_i32;
|
2024-03-20 09:57:51 -05:00
|
|
|
goto -> bb13;
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
2024-03-20 09:57:51 -05:00
|
|
|
bb11: {
|
2024-06-23 08:54:42 -05:00
|
|
|
_1 = const 2_i32;
|
2024-03-20 09:57:51 -05:00
|
|
|
goto -> bb13;
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
2024-03-20 09:57:51 -05:00
|
|
|
bb12: {
|
2024-06-23 08:54:42 -05:00
|
|
|
_1 = const 1_i32;
|
2024-03-20 09:57:51 -05:00
|
|
|
goto -> bb13;
|
2024-03-02 19:22:37 -06:00
|
|
|
}
|
|
|
|
|
2024-03-20 09:57:51 -05:00
|
|
|
bb13: {
|
2024-03-02 19:22:37 -06:00
|
|
|
StorageDead(_2);
|
|
|
|
StorageDead(_1);
|
|
|
|
_0 = const ();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|