[Paper Review] Interpolation and SAT-Based Model Checking Revisited: Adoption to Software Verification
This paper revisits McMillan's 2003 interpolation-based model checking (IMC) algorithm—previously limited to hardware verification—and successfully adapts it for software verification using large-block encoding and SMT solving. Evaluated on the largest public C verification benchmark, IMC outperforms other interpolation-based approaches, solving 7 unique tasks that others failed on, proving its competitiveness and complementarity in software verification.
The article "Interpolation and SAT-Based Model Checking" (McMillan, 2003) describes a formal-verification algorithm, which was originally devised to verify safety properties of finite-state transition systems. It derives interpolants from unsatisfiable BMC queries and collects them to construct an overapproximation of the set of reachable states. Although 20 years old, the algorithm is still state-of-the-art in hardware model checking. Unlike other formal-verification algorithms, such as k-induction or PDR, which have been extended to handle infinite-state systems and investigated for program analysis, McMillan's interpolation-based model-checking algorithm from 2003 has not been used to verify programs so far. Our contribution is to close this significant, two decades old gap in knowledge by adopting the algorithm to software verification. We implemented it in the verification framework CPAchecker and evaluated the implementation against other state-of-the-art software-verification techniques on the largest publicly available benchmark suite of C safety-verification tasks. The evaluation demonstrates that McMillan's interpolation-based model-checking algorithm from 2003 is competitive among other algorithms in terms of both the number of solved verification tasks and the run-time efficiency. Our results are important for the area of software verification, because researchers and developers now have one more approach to choose from.
Motivation & Objective
- To close a 20-year gap in formal verification by adapting McMillan's 2003 interpolation-based model checking (IMC) algorithm to software verification.
- To evaluate whether the classical IMC algorithm, originally designed for finite-state hardware systems, remains viable and effective for infinite-state software systems.
- To demonstrate that advanced SMT solving enables scalable application of IMC to real-world C programs.
- To compare IMC’s performance and effectiveness against state-of-the-art software verification techniques on a large benchmark suite.
- To provide a new, open-source implementation in CPACHECKER that serves as a baseline for future research.
Proposed method
- Adopted McMillan’s original IMC algorithm by using large-block encoding to extract transition relations from C programs without symbolic program counters.
- Constructed interpolants from unsatisfiable BMC queries to overapproximate reachable states, reusing previous interpolants to improve generalization.
- Integrated the algorithm into the CPACHECKER framework to ensure fair comparison with other state-of-the-art verification techniques.
- Used SMT solvers to handle complex formulas from unrolled program paths, leveraging modern solver performance for scalability.
- Applied systematic benchmarking on the SV-COMP ’22 C safety verification suite to evaluate effectiveness and efficiency.
- Employed BENCHEXEC for accurate CPU time and memory usage measurements to ensure reproducibility.
Experimental results
Research questions
- RQ1Can McMillan’s 2003 interpolation-based model checking (IMC) algorithm be effectively adapted to software verification despite its original design for finite-state systems?
- RQ2How does the performance of IMC compare to other state-of-the-art SMT-based software verification techniques in terms of solved tasks and runtime efficiency?
- RQ3Does IMC’s use of interpolants from both initial states and prior interpolants lead to higher-quality abstractions and better generalization than path-wise approaches like IMPACT?
- RQ4Are there programs that IMC can verify but other interpolation-based approaches cannot, due to resource constraints?
- RQ5Can the integration of IMC into CPACHECKER provide a stable, reusable, and open-source baseline for future research in interpolation-based software verification?
Key findings
- IMC achieved competitive performance in both effectiveness and efficiency, solving a comparable number of verification tasks to other state-of-the-art approaches on the SV-COMP ’22 benchmark suite.
- IMC uniquely solved 7 C verification tasks that all other approaches failed to solve within 15 minutes CPU time or 15 GB memory, demonstrating its unique capability to handle challenging programs.
- IMC spent less effort on interpolation than IMPACT, indicating that it generates higher-quality interpolants and better generalizes across program paths.
- The use of large-block encoding enabled effective extraction of transition relations without explicit symbolic program counters, simplifying the encoding while preserving correctness.
- The implementation in CPACHECKER is stable and reusable, with all software, inputs, and results publicly available for reproducibility and further research.
- The results show that McMillan’s 2003 algorithm remains relevant and effective for modern software verification, offering a valuable complement to existing techniques.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.