Impossible Types, Supernatural Guarantees
summary
Claims a Clang plugin called DTT (Dependent Type Tracking) turns assumptions into compile time proofs, using a Clang plugin with Z3 theorem prover to auto annotate the standard C and C++ libraries and flag bugs like vector front on empty vectors, memcpy overruns (Heartbleed pattern), use after move and unsanitized SQL inputs. It runs per translation unit, reports proofs as errors or warnings, has mild compile time overhead and enforces zero runtime cost guarantees for many safety properties.
AI-written summary · about
chapters (22)
- 0:00Introduction and motivation
- 1:06Heartbleed and compile-time bugs
- 2:12Dependently typed languages in C++
- 3:55Tracking compile-time proofs
- 6:00Runtime vs compile-time checks
- 8:50Introducing DTT tool
- 9:55Compile-time vector access checks
- 12:43Tracking vector state changes
- 14:28Buffer bounds and Heartbleed pattern
- 17:03Tracking integral and boolean states
- 17:25Undefined behavior detection
- 19:31State machines and session types
- 20:54SQL injection prevention
- 21:39Ghost state and phantom variables
- 24:53Linear types in C++
- 26:00Using DTT as Clang plugin
- 28:46Cross-compilation unit support
- 30:13DTT limitations and future
- 31:17Ghost in the Shell and AI development
- 32:42Security implications and Heartbleed
- 33:25Live demo and resources
- 33:45Q&A session
