~/talk

Theory makes beautiful programs

Talkat NDC TechTown 2022 · 2022-08-29..09-01· [c-and-cpp, software-architecture]
links:none on file
slides:none on file

An algorithm extracts MC/DC conditions from compiler control‑flow graphs rather than ASTs, using BFS/DFS and a topological sort to locate Boolean subexpressions and detect masking via graph algorithms; it’s implemented in GCC as a patch of about 3000 lines with roughly half tests. Instrumentation records per-decision bit accumulators and uses a few fast bitwise ops; runs with profile-enabled builds and g-cover to report which basic conditions independently affect decisions. It handles C, C++ and D, flags implicit checks, and currently fails on Go due to its CFG construction.

AI-written summary · about

  1. 0:00Introduction
  2. 1:54Coverage and MC/DC basics
  3. 3:16Branch coverage limits
  4. 6:46MC/DC in GCC
  5. 9:11Theory-driven programming
  6. 11:18Control flow and Boolean expressions
  7. 18:45Inferring decisions in CFG
  8. 29:26Masking in Boolean expressions
  9. 38:20Detecting masking edges
  10. 47:24Sub-expression isolation algorithm
  11. 50:15Theory-based benefits
  12. 52:21MC/DC instrumentation in GCC
  13. 58:02Q&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.