]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/instrument_coverage.main.InstrumentCoverage.diff
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / mir-opt / instrument_coverage.main.InstrumentCoverage.diff
1 - // MIR for `main` before InstrumentCoverage
2 + // MIR for `main` after InstrumentCoverage
3   
4   fn main() -> () {
5       let mut _0: ();                      // return place in scope 0 at /the/src/instrument_coverage.rs:+0:11: +0:11
6       let mut _1: ();                      // in scope 0 at /the/src/instrument_coverage.rs:+0:1: +6:2
7       let mut _2: bool;                    // in scope 0 at /the/src/instrument_coverage.rs:+2:12: +2:17
8       let mut _3: !;                       // in scope 0 at /the/src/instrument_coverage.rs:+2:18: +4:10
9   
10       bb0: {
11 +         Coverage::Counter(1) for /the/src/instrument_coverage.rs:11:1 - 11:11; // scope 0 at /the/src/instrument_coverage.rs:+1:5: +5:6
12           goto -> bb1;                     // scope 0 at /the/src/instrument_coverage.rs:+1:5: +5:6
13       }
14   
15       bb1: {
16 +         Coverage::Expression(4294967295) = 1 + 2 for /the/src/instrument_coverage.rs:12:5 - 13:17; // scope 0 at /the/src/instrument_coverage.rs:+1:5: +5:6
17           falseUnwind -> [real: bb2, cleanup: bb6]; // scope 0 at /the/src/instrument_coverage.rs:+1:5: +5:6
18       }
19   
20       bb2: {
21           StorageLive(_2);                 // scope 0 at /the/src/instrument_coverage.rs:+2:12: +2:17
22           _2 = bar() -> [return: bb3, unwind: bb6]; // scope 0 at /the/src/instrument_coverage.rs:+2:12: +2:17
23                                            // mir::Constant
24                                            // + span: /the/src/instrument_coverage.rs:13:12: 13:15
25                                            // + literal: Const { ty: fn() -> bool {bar}, val: Value(<ZST>) }
26       }
27   
28       bb3: {
29           switchInt(move _2) -> [0: bb5, otherwise: bb4]; // scope 0 at /the/src/instrument_coverage.rs:+2:12: +2:17
30       }
31   
32       bb4: {
33 +         Coverage::Expression(4294967293) = 4294967294 + 0 for /the/src/instrument_coverage.rs:17:1 - 17:2; // scope 0 at /the/src/instrument_coverage.rs:+6:2: +6:2
34 +         Coverage::Expression(4294967294) = 4294967295 - 2 for /the/src/instrument_coverage.rs:14:13 - 14:18; // scope 0 at /the/src/instrument_coverage.rs:+6:2: +6:2
35           _0 = const ();                   // scope 0 at /the/src/instrument_coverage.rs:+3:13: +3:18
36           StorageDead(_2);                 // scope 0 at /the/src/instrument_coverage.rs:+4:9: +4:10
37           return;                          // scope 0 at /the/src/instrument_coverage.rs:+6:2: +6:2
38       }
39   
40       bb5: {
41 +         Coverage::Counter(2) for /the/src/instrument_coverage.rs:15:10 - 15:11; // scope 0 at /the/src/instrument_coverage.rs:+1:5: +5:6
42           _1 = const ();                   // scope 0 at /the/src/instrument_coverage.rs:+4:10: +4:10
43           StorageDead(_2);                 // scope 0 at /the/src/instrument_coverage.rs:+4:9: +4:10
44           goto -> bb1;                     // scope 0 at /the/src/instrument_coverage.rs:+1:5: +5:6
45       }
46   
47       bb6 (cleanup): {
48           resume;                          // scope 0 at /the/src/instrument_coverage.rs:+0:1: +6:2
49       }
50   }
51