Introduction
In safety-critical domains like automotive engineering, the reliability of embedded software is non-negotiable. Bounded Model Checking (BMC) has emerged as a powerful formal verification technique to detect bugs or prove the absence of errors within a defined execution depth. However, traditional BMC faces a significant scalability hurdle: it is inherently redundant. This paper presents an incremental approach to BMC that dramatically reduces computational overhead, enabling formal verification to scale to complex industrial systems.
The Challenge: Redundancy in Bounded Model Checking
Standard BMC operates iteratively, checking for errors at increasing loop unwinding depths ($k=1, 2, 3, \dots$). The primary bottleneck is that for every increment of $k$, the tool typically re-parses the code, re-performs symbolic execution, and restarts the SAT solver from scratch. This "start-from-zero" approach wastes significant resources; research shows that in non-incremental BMC, solving the final iteration often accounts for only ~24% of total time, while the remaining 76% is spent redundantly re-solving previous iterations.
Methods: An Incremental Workflow
To address this, the authors extended the C Bounded Model Checker (CBMC) into an incremental framework. The core innovation lies in maintaining logical "monotonicity," ensuring that as the SAT formula grows with each unwinding, the solver can retain and reuse its learned knowledge rather than discarding it.
Key technical pillars of this approach include:
- Incremental SAT Solving with Assumptions: By using "assumption variables" as logical switches, the solver can ignore previous error checks while keeping the "learned clauses" that accelerate future searches.
- Incremental Slicing: This technique removes program segments irrelevant to the property being checked. The authors developed a method to calculate these slices incrementally, preventing the input formula from exploding in size as $k$ increases.
- Refinement Loops: The tool initially uses simple approximations for complex bitwise or array operations. If a counterexample is found to be a result of the approximation (a "fake" bug), the tool incrementally adds mathematical detail until the result is sound.
Industrial Application and Readiness
Unlike many academic prototypes, this incremental BMC approach was designed for real-world deployment. It has been integrated into BTC EMBEDDEDTESTER, a commercial tool used extensively in the automotive industry. This integration demonstrates the practical viability of the method within standard development lifecycles.
Key Results and Performance
The incremental approach was evaluated against industrial automotive benchmarks and standard competition sets (SV-COMP), yielding impressive results:
- 10x Speedup: On medium-to-hard industrial benchmarks, the incremental method consistently outperformed the standard approach by an order of magnitude.
- Memory Efficiency: Peak memory consumption was reduced by approximately 30% for instances where no bugs were found (UNSAT).
- Deep Unwinding: The tool successfully reached unwinding depths exceeding 100 iterations, a feat previously impossible within standard time limits.
- Competitive Edge: The implementation outperformed the 2014 Software Verification Competition winner by an order of magnitude on relevant benchmarks.
Conclusion and Future Work
By eliminating the redundancy of iterative re-solving, incremental BMC provides a scalable path for verifying complex embedded software. While highly effective for reactive loops typical of automotive systems, future work aims to extend these benefits to multi-threaded software and recursive function calls, further broadening the reach of formal verification in industry.
Summary updated