Free courses from frontend to fullstack and AI
Gain a Splash of New Skills - Coursera+ Annual Just ₹7,999
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
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