mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
eb2d4cb541
When we extract coverage spans from MIR, we try to "un-expand" them back to spans that are inside the function's body span. In cases where that doesn't succeed, the current code just swaps in the entire body span instead. But that tends to result in coverage spans that are completely unrelated to the control flow of the affected code, so it's better to just discard those spans.
79 lines
3.0 KiB
Plaintext
79 lines
3.0 KiB
Plaintext
Function name: inline::display::<char>
|
|
Raw bytes (33): 0x[01, 01, 02, 01, 05, 03, 05, 05, 01, 29, 01, 00, 22, 05, 01, 09, 00, 0a, 03, 00, 0e, 00, 10, 05, 00, 11, 02, 06, 06, 03, 05, 01, 02]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 2
|
|
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
|
|
- expression 1 operands: lhs = Expression(0, Add), rhs = Counter(1)
|
|
Number of file 0 mappings: 5
|
|
- Code(Counter(0)) at (prev + 41, 1) to (start + 0, 34)
|
|
- Code(Counter(1)) at (prev + 1, 9) to (start + 0, 10)
|
|
- Code(Expression(0, Add)) at (prev + 0, 14) to (start + 0, 16)
|
|
= (c0 + c1)
|
|
- Code(Counter(1)) at (prev + 0, 17) to (start + 2, 6)
|
|
- Code(Expression(1, Sub)) at (prev + 3, 5) to (start + 1, 2)
|
|
= ((c0 + c1) - c1)
|
|
|
|
Function name: inline::error
|
|
Raw bytes (9): 0x[01, 01, 00, 01, 01, 31, 01, 01, 14]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 1
|
|
- Code(Counter(0)) at (prev + 49, 1) to (start + 1, 20)
|
|
|
|
Function name: inline::length::<char>
|
|
Raw bytes (9): 0x[01, 01, 00, 01, 01, 1e, 01, 02, 02]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 1
|
|
- Code(Counter(0)) at (prev + 30, 1) to (start + 2, 2)
|
|
|
|
Function name: inline::main
|
|
Raw bytes (9): 0x[01, 01, 00, 01, 01, 05, 01, 02, 02]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 1
|
|
- Code(Counter(0)) at (prev + 5, 1) to (start + 2, 2)
|
|
|
|
Function name: inline::permutate::<char>
|
|
Raw bytes (52): 0x[01, 01, 04, 01, 05, 02, 0d, 05, 0f, 09, 0d, 08, 01, 0f, 01, 02, 0e, 05, 02, 0f, 02, 06, 02, 02, 0f, 00, 14, 11, 01, 0d, 00, 0e, 06, 00, 12, 00, 16, 11, 00, 17, 04, 0a, 0d, 05, 0c, 02, 06, 0b, 03, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 4
|
|
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
|
|
- expression 1 operands: lhs = Expression(0, Sub), rhs = Counter(3)
|
|
- expression 2 operands: lhs = Counter(1), rhs = Expression(3, Add)
|
|
- expression 3 operands: lhs = Counter(2), rhs = Counter(3)
|
|
Number of file 0 mappings: 8
|
|
- Code(Counter(0)) at (prev + 15, 1) to (start + 2, 14)
|
|
- Code(Counter(1)) at (prev + 2, 15) to (start + 2, 6)
|
|
- Code(Expression(0, Sub)) at (prev + 2, 15) to (start + 0, 20)
|
|
= (c0 - c1)
|
|
- Code(Counter(4)) at (prev + 1, 13) to (start + 0, 14)
|
|
- Code(Expression(1, Sub)) at (prev + 0, 18) to (start + 0, 22)
|
|
= ((c0 - c1) - c3)
|
|
- Code(Counter(4)) at (prev + 0, 23) to (start + 4, 10)
|
|
- Code(Counter(3)) at (prev + 5, 12) to (start + 2, 6)
|
|
- Code(Expression(2, Add)) at (prev + 3, 1) to (start + 0, 2)
|
|
= (c1 + (c2 + c3))
|
|
|
|
Function name: inline::permutations::<char>
|
|
Raw bytes (9): 0x[01, 01, 00, 01, 01, 0a, 01, 03, 02]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 1
|
|
- Code(Counter(0)) at (prev + 10, 1) to (start + 3, 2)
|
|
|
|
Function name: inline::swap::<char>
|
|
Raw bytes (9): 0x[01, 01, 00, 01, 01, 23, 01, 04, 02]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 1
|
|
- Code(Counter(0)) at (prev + 35, 1) to (start + 4, 2)
|
|
|