fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
908 B52 linesraw
1// MIR for `main` after SimplifyCfg-initial
2
3fn main() -> () {
4    let mut _0: ();
5    let mut _1: bool;
6    let mut _2: ();
7    let _3: ();
8    let mut _4: bool;
9    let mut _5: !;
10    scope 1 {
11        debug should_break => _1;
12    }
13
14    bb0: {
15        StorageLive(_1);
16        _1 = const false;
17        FakeRead(ForLet(None), _1);
18        goto -> bb1;
19    }
20
21    bb1: {
22        falseUnwind -> [real: bb2, unwind: bb5];
23    }
24
25    bb2: {
26        StorageLive(_3);
27        StorageLive(_4);
28        _4 = _1;
29        switchInt(move _4) -> [0: bb4, otherwise: bb3];
30    }
31
32    bb3: {
33        _0 = const ();
34        StorageDead(_4);
35        StorageDead(_3);
36        StorageDead(_1);
37        return;
38    }
39
40    bb4: {
41        _3 = const ();
42        StorageDead(_4);
43        StorageDead(_3);
44        _1 = const true;
45        _2 = const ();
46        goto -> bb1;
47    }
48
49    bb5 (cleanup): {
50        resume;
51    }
52}