mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 09:47:57 +00:00
Instead of trying to heuristically recover source-code spans from MIR soup, we can now take advantage of the `CoverageKind::Point` statements injected for specific HIR expressions. This is a transitional implementation that lets us remove the old MIR-soup code, but still relies heavily on the existing span-refinement heuristics, and does not take advantage of the full possibilities of HIR-aware coverage instrumentation. In order to avoid annoying never-executed spans in code that contains assertions, a heuristic has been added that ignores any expression within the arguments of a macro-expanded function call that returns `!`. Some coverage tests now require `//@ min-llvm-version: 23`, due to changes in how LLVM sorts the coverage mapping entries.
127 lines
5.8 KiB
Plaintext
127 lines
5.8 KiB
Plaintext
Function name: inline::display::<char>
|
|
Raw bytes (36): 0x[01, 01, 01, 05, 01, 06, 01, 2a, 01, 00, 21, 01, 01, 0e, 00, 10, 02, 01, 09, 00, 0f, 02, 00, 16, 00, 17, 01, 02, 05, 00, 0d, 01, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/inline.rs
|
|
Number of expressions: 1
|
|
- expression 0 operands: lhs = Counter(1), rhs = Counter(0)
|
|
Number of file 0 mappings: 6
|
|
- Code(Counter(0)) at (prev + 42, 1) to (start + 0, 33)
|
|
- Code(Counter(0)) at (prev + 1, 14) to (start + 0, 16)
|
|
- Code(Expression(0, Sub)) at (prev + 1, 9) to (start + 0, 15)
|
|
= (c1 - c0)
|
|
- Code(Expression(0, Sub)) at (prev + 0, 22) to (start + 0, 23)
|
|
= (c1 - c0)
|
|
- Code(Counter(0)) at (prev + 2, 5) to (start + 0, 13)
|
|
- Code(Counter(0)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c0
|
|
|
|
Function name: inline::error
|
|
Raw bytes (14): 0x[01, 01, 00, 02, 01, 32, 01, 00, 0b, 01, 01, 05, 00, 0b]
|
|
Number of files: 1
|
|
- file 0 => $DIR/inline.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 2
|
|
- Code(Counter(0)) at (prev + 50, 1) to (start + 0, 11)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 11)
|
|
Highest counter ID seen: c0
|
|
|
|
Function name: inline::length::<char>
|
|
Raw bytes (19): 0x[01, 01, 00, 03, 01, 1f, 01, 00, 20, 01, 01, 05, 00, 0d, 01, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/inline.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 3
|
|
- Code(Counter(0)) at (prev + 31, 1) to (start + 0, 32)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 13)
|
|
- Code(Counter(0)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c0
|
|
|
|
Function name: inline::main
|
|
Raw bytes (29): 0x[01, 01, 00, 05, 01, 06, 01, 00, 0a, 01, 01, 05, 00, 23, 01, 00, 05, 00, 11, 01, 00, 14, 00, 17, 01, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/inline.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 5
|
|
- Code(Counter(0)) at (prev + 6, 1) to (start + 0, 10)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 35)
|
|
- Code(Counter(0)) at (prev + 0, 5) to (start + 0, 17)
|
|
- Code(Counter(0)) at (prev + 0, 20) to (start + 0, 23)
|
|
- Code(Counter(0)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c0
|
|
|
|
Function name: inline::permutate::<char>
|
|
Raw bytes (113): 0x[01, 01, 0c, 01, 05, 0d, 09, 0d, 09, 0d, 09, 0d, 09, 0d, 09, 0d, 09, 0d, 09, 0d, 09, 0d, 09, 01, 2f, 05, 09, 11, 01, 10, 01, 00, 38, 01, 01, 0d, 00, 17, 01, 01, 08, 00, 0e, 05, 01, 09, 00, 14, 02, 01, 0f, 00, 14, 09, 01, 12, 00, 16, 26, 01, 0d, 00, 1b, 26, 00, 0d, 00, 11, 26, 00, 12, 00, 14, 26, 01, 0d, 00, 21, 26, 00, 0d, 00, 16, 26, 00, 17, 00, 19, 26, 01, 0d, 00, 1b, 26, 00, 0d, 00, 11, 26, 00, 12, 00, 14, 2a, 03, 09, 00, 10, 01, 02, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/inline.rs
|
|
Number of expressions: 12
|
|
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
|
|
- expression 1 operands: lhs = Counter(3), rhs = Counter(2)
|
|
- expression 2 operands: lhs = Counter(3), rhs = Counter(2)
|
|
- expression 3 operands: lhs = Counter(3), rhs = Counter(2)
|
|
- expression 4 operands: lhs = Counter(3), rhs = Counter(2)
|
|
- expression 5 operands: lhs = Counter(3), rhs = Counter(2)
|
|
- expression 6 operands: lhs = Counter(3), rhs = Counter(2)
|
|
- expression 7 operands: lhs = Counter(3), rhs = Counter(2)
|
|
- expression 8 operands: lhs = Counter(3), rhs = Counter(2)
|
|
- expression 9 operands: lhs = Counter(3), rhs = Counter(2)
|
|
- expression 10 operands: lhs = Counter(0), rhs = Expression(11, Add)
|
|
- expression 11 operands: lhs = Counter(1), rhs = Counter(2)
|
|
Number of file 0 mappings: 17
|
|
- Code(Counter(0)) at (prev + 16, 1) to (start + 0, 56)
|
|
- Code(Counter(0)) at (prev + 1, 13) to (start + 0, 23)
|
|
- Code(Counter(0)) at (prev + 1, 8) to (start + 0, 14)
|
|
- Code(Counter(1)) at (prev + 1, 9) to (start + 0, 20)
|
|
- Code(Expression(0, Sub)) at (prev + 1, 15) to (start + 0, 20)
|
|
= (c0 - c1)
|
|
- Code(Counter(2)) at (prev + 1, 18) to (start + 0, 22)
|
|
- Code(Expression(9, Sub)) at (prev + 1, 13) to (start + 0, 27)
|
|
= (c3 - c2)
|
|
- Code(Expression(9, Sub)) at (prev + 0, 13) to (start + 0, 17)
|
|
= (c3 - c2)
|
|
- Code(Expression(9, Sub)) at (prev + 0, 18) to (start + 0, 20)
|
|
= (c3 - c2)
|
|
- Code(Expression(9, Sub)) at (prev + 1, 13) to (start + 0, 33)
|
|
= (c3 - c2)
|
|
- Code(Expression(9, Sub)) at (prev + 0, 13) to (start + 0, 22)
|
|
= (c3 - c2)
|
|
- Code(Expression(9, Sub)) at (prev + 0, 23) to (start + 0, 25)
|
|
= (c3 - c2)
|
|
- Code(Expression(9, Sub)) at (prev + 1, 13) to (start + 0, 27)
|
|
= (c3 - c2)
|
|
- Code(Expression(9, Sub)) at (prev + 0, 13) to (start + 0, 17)
|
|
= (c3 - c2)
|
|
- Code(Expression(9, Sub)) at (prev + 0, 18) to (start + 0, 20)
|
|
= (c3 - c2)
|
|
- Code(Expression(10, Sub)) at (prev + 3, 9) to (start + 0, 16)
|
|
= (c0 - (c1 + c2))
|
|
- Code(Counter(0)) at (prev + 2, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c2
|
|
|
|
Function name: inline::permutations::<char>
|
|
Raw bytes (29): 0x[01, 01, 00, 05, 01, 0b, 01, 00, 2d, 01, 01, 12, 00, 1f, 01, 01, 05, 00, 1a, 01, 00, 05, 00, 0e, 01, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/inline.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 5
|
|
- Code(Counter(0)) at (prev + 11, 1) to (start + 0, 45)
|
|
- Code(Counter(0)) at (prev + 1, 18) to (start + 0, 31)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 26)
|
|
- Code(Counter(0)) at (prev + 0, 5) to (start + 0, 14)
|
|
- Code(Counter(0)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c0
|
|
|
|
Function name: inline::swap::<char>
|
|
Raw bytes (34): 0x[01, 01, 00, 06, 01, 24, 01, 00, 33, 01, 01, 0d, 00, 12, 01, 01, 05, 00, 12, 01, 00, 05, 00, 0a, 01, 01, 05, 00, 0e, 01, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/inline.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 6
|
|
- Code(Counter(0)) at (prev + 36, 1) to (start + 0, 51)
|
|
- Code(Counter(0)) at (prev + 1, 13) to (start + 0, 18)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 18)
|
|
- Code(Counter(0)) at (prev + 0, 5) to (start + 0, 10)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 14)
|
|
- Code(Counter(0)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c0
|
|
|