Master AI and Machine Learning: From Neural Networks to Applications
NY State-Licensed Certificates in Design, Coding & AI — Online
Overview
AI, Data Science & Cloud Certificates from Google, IBM & Meta — 40% Off
One plan covers every Professional Certificate on Coursera. 40% off Coursera Plus Annual.
Unlock All Certificates
Learn how to validate C++ contracts using static analysis tools to catch bugs before runtime in this conference talk from CppCon 2025. Explore the implementation of preconditions, postconditions, and assertions introduced in the C++26 draft standard and discover how static analysis can identify contract violations during compile-time rather than waiting for runtime failures. Examine which types of contracts are suitable for static analysis validation and understand the theoretical and practical limitations of these approaches. Follow a detailed demonstration of an implementation using CodeQL, GitHub's extensible static analysis engine, combined with constraint solvers to validate specific contract types. Review real-world case study results that evaluate the effectiveness of static contract validation techniques on actual codebases and production code. Gain insights into reducing development costs by identifying faults earlier in the software development lifecycle and creating more reliable C++ programs through proactive contract verification.
Syllabus
Catching Bugs Early: Validating C++ Contracts with Static Analysis - Peter Martin & Mike Fairhurst
Taught by
CppCon