2024-03-17 18:36:55 +00:00
|
|
|
- // MIR for `main` before SimplifyCfg-post-analysis
|
|
|
|
+ // MIR for `main` after SimplifyCfg-post-analysis
|
2020-04-02 21:09:01 +00:00
|
|
|
|
|
|
|
fn main() -> () {
|
2023-06-06 13:47:00 +00:00
|
|
|
let mut _0: ();
|
|
|
|
let mut _1: ();
|
|
|
|
let mut _2: bool;
|
|
|
|
let mut _3: !;
|
2020-04-02 21:09:01 +00:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 13:47:00 +00:00
|
|
|
goto -> bb1;
|
2021-09-18 00:00:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 13:47:00 +00:00
|
|
|
- goto -> bb2;
|
|
|
|
+ StorageLive(_2);
|
|
|
|
+ _2 = bar() -> [return: bb2, unwind: bb5];
|
2020-04-02 21:09:01 +00:00
|
|
|
}
|
|
|
|
|
2023-06-06 13:47:00 +00:00
|
|
|
bb2: {
|
|
|
|
- StorageLive(_2);
|
|
|
|
- _2 = bar() -> [return: bb3, unwind: bb6];
|
|
|
|
+ switchInt(move _2) -> [0: bb4, otherwise: bb3];
|
2021-09-18 00:00:00 +00:00
|
|
|
}
|
|
|
|
|
2023-06-06 13:47:00 +00:00
|
|
|
bb3: {
|
|
|
|
- switchInt(move _2) -> [0: bb5, otherwise: bb4];
|
|
|
|
- }
|
|
|
|
-
|
2021-09-18 00:00:00 +00:00
|
|
|
- bb4: {
|
2023-06-06 13:47:00 +00:00
|
|
|
_0 = const ();
|
|
|
|
StorageDead(_2);
|
|
|
|
return;
|
2020-04-09 10:58:36 +00:00
|
|
|
}
|
|
|
|
|
2021-09-18 00:00:00 +00:00
|
|
|
- bb5: {
|
|
|
|
+ bb4: {
|
2023-06-06 13:47:00 +00:00
|
|
|
_1 = const ();
|
|
|
|
StorageDead(_2);
|
|
|
|
goto -> bb1;
|
2021-08-02 15:15:13 +00:00
|
|
|
}
|
|
|
|
|
2021-09-18 00:00:00 +00:00
|
|
|
- bb6 (cleanup): {
|
|
|
|
+ bb5 (cleanup): {
|
2023-06-06 13:47:00 +00:00
|
|
|
resume;
|
2020-04-02 21:09:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|