~/talk

Vellvm: Formalizing the Informal

Talkat CoqPL 2025 · on Saturday, 2025-01-25· [compilers-and-language-design]
links:none on file
links:none on file
slides:none on file

Formal Coq semantics for a large subset of LLVM IR uses interaction trees (coinductive freemonads) plus event handlers to capture nondeterminism and a published memory model; an executable interpreter is extracted and supports printf/args and differential testing. A custom generator GenLVM (QuickChick) produces 10,000+ programs and finds real bugs — e.g., an extractvalue off‑by‑one when compiling a packed struct with a vector. The development is large (about 50,000 lines of spec and 100,000 lines of proof), with Coq extraction, type-system and coinduction/Prop-elimination constraints as pain points.

AI-written summary · about

  1. 0:00Vellvm project introduction
  2. 1:02What is LLVM and IR
  3. 2:04Complexities of LLVM undef
  4. 4:08Goal of formalizing LLVM
  5. 5:11Vellvm’s event-based semantics
  6. 7:58Vellvm’s supported features
  7. 8:41Scale of Vellvm proof
  8. 9:24Edge cases uncovered
  9. 11:35Experience with Rock
  10. 13:41Rock’s constraints
  11. 14:24Differential testing in Vellvm
  12. 15:48Generating LLVM IR
  13. 17:32Why not existing generators
  14. 18:16Bug in GenLVM
  15. 19:18Takeaways and future work
  16. 19:59Q&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.