~/talk

Path coverage in gcc

Talkat NDC TechTown 2024 · 2024-09-09..09-12· [c-and-cpp]
links:none on file
slides:none on file

GCC adds a new fpath-coverage option to emit GCOV data for prime path coverage aimed at GCC 15 (NASA-funded). It computes prime/simple paths across function CFGs, reports missing path traces, and shows concrete line sequences to exercise each path; binary-search demo has 24 prime paths and runs find cases that move coverage from 0 → 12 → 13 → 16, etc. Path coverage subsumes statement/branch/condition/DU but not MCDC; costs grow (typical 3x compile time and larger objects; extreme case 2m26s build and 32 MB object).

AI-written summary · about

  1. 0:00Path coverage in GCC
  2. 1:49NASA funding path coverage
  3. 5:27Coverage metrics limitations
  4. 10:24Definition-use pairs
  5. 14:24Program graphs in compilers
  6. 16:32Path explosion and prime paths
  7. 23:05GCC 15 path coverage demo
  8. 35:00Coverage criteria subsumption
  9. 38:12Coverage and functional testing
  10. 45:21Binary search with path coverage
  11. 50:20Impossible paths handling
  12. 51:02MCDC in complex code
  13. 54:18Coverage compatibility and fuzzing
  14. 56:45Prime paths vs MCDC
  15. 58:10Optimization and coverage
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.