mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
53 lines
908 B
Rust
53 lines
908 B
Rust
// MIR for `main` after SimplifyCfg-initial
|
|
|
|
fn main() -> () {
|
|
let mut _0: ();
|
|
let mut _1: bool;
|
|
let mut _2: ();
|
|
let _3: ();
|
|
let mut _4: bool;
|
|
let mut _5: !;
|
|
scope 1 {
|
|
debug should_break => _1;
|
|
}
|
|
|
|
bb0: {
|
|
StorageLive(_1);
|
|
_1 = const false;
|
|
FakeRead(ForLet(None), _1);
|
|
goto -> bb1;
|
|
}
|
|
|
|
bb1: {
|
|
falseUnwind -> [real: bb2, unwind: bb5];
|
|
}
|
|
|
|
bb2: {
|
|
StorageLive(_3);
|
|
StorageLive(_4);
|
|
_4 = _1;
|
|
switchInt(move _4) -> [0: bb4, otherwise: bb3];
|
|
}
|
|
|
|
bb3: {
|
|
_0 = const ();
|
|
StorageDead(_4);
|
|
StorageDead(_3);
|
|
StorageDead(_1);
|
|
return;
|
|
}
|
|
|
|
bb4: {
|
|
_3 = const ();
|
|
StorageDead(_4);
|
|
StorageDead(_3);
|
|
_1 = const true;
|
|
_2 = const ();
|
|
goto -> bb1;
|
|
}
|
|
|
|
bb5 (cleanup): {
|
|
resume;
|
|
}
|
|
}
|