~/talk

Path coverage in gcc

Talkat NDC TechTown 2025 · 2025-09-22..09-25· [rust]
links:none on file
slides:none on file

Implements prime path coverage in GCC and lands in GCC 15 with a new -fpath-coverage instrumenter that emits .gcno and human- and machine-readable reports; prime paths subsume statement, branch, condition, MCDC and def‑use metrics. Enumeration uses a component-graph algorithm plus a suffix-tree filter so each exercised path sets one bit of compact state; practical results show a binary-search example with 20 prime paths (24 reported paths total) and heavy costs — compile time rises from ~170ms to >500ms and a worst-case 32 MB binary.

AI-written summary · about

  1. 0:00Prime path coverage in GCC
  2. 1:09History of GCC coverage
  3. 3:39Condition and MCDC coverage
  4. 6:08Data flow and def-use pairs
  5. 11:09Graphs and basic blocks
  6. 13:18Prime path examples
  7. 17:59Prime vs simple paths and cycles
  8. 19:51Demo: GCC 15 prime paths
  9. 22:29Why prime path coverage matters
  10. 24:58Reading GCC reports
  11. 27:22Output formats
  12. 28:28Subsumption of coverage criteria
  13. 30:56Coverage in testing
  14. 32:23Limitations and performance
  15. 33:48Algorithms for prime paths
  16. 36:00Q&A
~/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.