llvm-project/llvm/test/tools/llvm-cov/Inputs/mcdc-const-folding.proftext
NAKAMURA Takumi 71f8b441ed Reapply: [MC/DC][Coverage] Loosen the limit of NumConds from 6 (#82448)
By storing possible test vectors instead of combinations of conditions,
the restriction is dramatically relaxed.

This introduces two options to `cc1`:

* `-fmcdc-max-conditions=32767`
* `-fmcdc-max-test-vectors=2147483646`

This change makes coverage mapping, profraw, and profdata incompatible
with Clang-18.

- Bitmap semantics changed. It is incompatible with previous format.
- `BitmapIdx` in `Decision` points to the end of the bitmap.
- Bitmap is packed per function.
- `llvm-cov` can understand `profdata` generated by `llvm-profdata-18`.

RFC:
https://discourse.llvm.org/t/rfc-coverage-new-algorithm-and-file-format-for-mc-dc/76798

--
Change(s) since llvmorg-19-init-14288-g7ead2d8c7e91

- Update compiler-rt/test/profile/ContinuousSyncMode/image-with-mcdc.c
2024-06-14 19:31:56 +09:00

401 lines
3.0 KiB
Plaintext

_Z5case0b
# Func Hash:
1550
# Num Counters:
3
# Counter Values:
4
0
0
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x1
_Z5case1b
# Func Hash:
1550
# Num Counters:
3
# Counter Values:
4
3
0
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x3
_Z5case2b
# Func Hash:
1550
# Num Counters:
3
# Counter Values:
4
4
3
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x6
_Z5case3b
# Func Hash:
1550
# Num Counters:
3
# Counter Values:
4
3
3
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x5
_Z5case4b
# Func Hash:
1551
# Num Counters:
3
# Counter Values:
4
0
0
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x1
_Z5case5b
# Func Hash:
1551
# Num Counters:
3
# Counter Values:
4
1
0
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x5
_Z5case6b
# Func Hash:
1551
# Num Counters:
3
# Counter Values:
4
4
1
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x6
_Z5case7b
# Func Hash:
1551
# Num Counters:
3
# Counter Values:
4
1
1
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x3
_Z5case8bb
# Func Hash:
99214
# Num Counters:
5
# Counter Values:
4
0
0
0
0
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x1
_Z5case9bb
# Func Hash:
99214
# Num Counters:
5
# Counter Values:
4
0
0
3
0
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x3
_Z5caseabb
# Func Hash:
99214
# Num Counters:
5
# Counter Values:
4
3
2
4
3
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0xe
_Z5casebbb
# Func Hash:
99214
# Num Counters:
5
# Counter Values:
4
3
2
3
3
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0xd
_Z5casecbb
# Func Hash:
99279
# Num Counters:
5
# Counter Values:
4
0
0
0
0
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x1
_Z5casedbb
# Func Hash:
99279
# Num Counters:
5
# Counter Values:
4
0
0
1
0
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x3
_Z5caseebb
# Func Hash:
99279
# Num Counters:
5
# Counter Values:
4
1
0
4
1
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0xa
_Z5casefbb
# Func Hash:
99279
# Num Counters:
5
# Counter Values:
4
1
0
1
1
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x9
_Z5casegbb
# Func Hash:
99214
# Num Counters:
5
# Counter Values:
4
2
0
3
2
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x7
_Z5casehbb
# Func Hash:
99214
# Num Counters:
5
# Counter Values:
4
0
0
3
0
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x3
_Z5caseibb
# Func Hash:
99214
# Num Counters:
5
# Counter Values:
4
2
2
3
2
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0xb
_Z5casejbb
# Func Hash:
99214
# Num Counters:
5
# Counter Values:
4
3
2
3
3
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0xd
_Z5casekbb
# Func Hash:
99279
# Num Counters:
5
# Counter Values:
4
0
0
1
0
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x3
_Z5caselbb
# Func Hash:
99279
# Num Counters:
5
# Counter Values:
4
0
0
1
0
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x3
_Z5casembb
# Func Hash:
99279
# Num Counters:
5
# Counter Values:
4
0
0
1
0
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x3
_Z5casenbb
# Func Hash:
99279
# Num Counters:
5
# Counter Values:
4
1
0
1
1
# Num Bitmap Bytes:
$1
# Bitmap Byte Values:
0x9
main
# Func Hash:
24
# Num Counters:
1
# Counter Values:
4