[PATCH v5] Add condition coverage profiling

2023-10-04 Thread Jørgen Kvalsvik
This is an extended set of patches with both review feedback from the v4 set, as well as a few serious bug fixes and improvements, plus test cases. There has only been a small-ish adjustment to the algorithm itself, in expression isolation step. Because of gotos this might need to run multiple tim

[PATCH v5] Add condition coverage profiling

2023-10-05 Thread Jørgen Kvalsvik
This patch adds support in gcc+gcov for modified condition/decision coverage (MC/DC) with the -fprofile-conditions flag. MC/DC is a type of test/code coverage and it is particularly important in the avation and automotive industries for safety-critical applications. MC/DC it is required for or reco