~/talk

Fast Constraint Synthesis for C++ Function Templates

Talkat OOPSLA 2025 · 2025-10-16..10-18· [compilers-and-language-design]
name:Shuo Ding
links:none on file
links:none on file
slides:none on file

A Clang frontend implements a lightweight interprocedural static analysis that encodes uses in a function body as constraints, composes them with conjunctions and disjunctions to model overloading, and applies a linear-time minimizer to keep synthesis fast. The tool processes 110k lines in <1.5s, synthesizes nontrivial constraints for 30–40% of function templates in STL algorithms and Boost special functions, and shortens compiler error output by about 56.6% and 63.8% respectively.

AI-written summary · about

  1. 0:00Constraint synthesis for C++ templates
  2. 1:50Manual constraints in C++20 limits
  3. 3:17Three-step constraint synthesis
  4. 5:44Minimizing constraints fast
  5. 6:25Implementation on standard libraries
  6. 7:48Compiler error message length
  7. 9:16Speed versus precision trade-offs
  8. 10:17Conclusion and future work
  9. 11: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.