NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Interpolant-Based Transition Relation Approximation

Ranjit Jhala, Kenneth L. McMillan

Abstract

In formal software verification, predicate abstraction serves as a cornerstone for transforming infinite-state systems into manageable finite-state models. However, the computational cost of the abstract image computation—determining the set of reachable abstract states—presents a significant bottleneck. Traditional methods often oscillate between computationally expensive exact computations and overly imprecise "weak" approximations that fail to prove safety properties. This paper introduces a novel approach using Craig interpolants to approximate the transition relation. By iteratively refining the abstract model based on proofs of infeasibility for specific program paths, the proposed method achieves a balance of precision and efficiency, particularly in programs involving complex array logic and device driver interactions.

Introduction

Predicate abstraction is a widely adopted technique in the verification of software systems, particularly for proving safety properties in C programs. The process involves mapping a concrete program to a Boolean abstraction based on a set of predicates. The primary challenge in this domain is the abstract image computation: calculating the transition relation of the abstract model.

Existing tools, such as SLAM or BLAST, typically rely on Cartesian abstraction or other weak approximations to maintain performance. While these methods are fast, they often lose critical information—specifically disjunctive relationships—leading to "false alarms" where the tool cannot prove a program is safe even when it is. Conversely, exact image computation is exponentially expensive. This research addresses this gap by proposing an interpolant-based approximation that is stronger than Cartesian abstraction but significantly more efficient than exact methods.

Methodology: Interpolant-Based Refinement

The authors propose an iterative framework that constructs and strengthens the abstract transition relation on demand. The process follows a five-step refinement loop:

  1. Initial Approximation: The process begins with a coarse approximation of the program's transitions, initially assuming a highly permissive model where nearly any state transition is possible.
  2. Model Checking: A model checker searches this simplified model for paths leading to an error state.
  3. Path Validation: If a potential error path (counterexample) is identified, it is validated against the concrete program logic using Bounded Model Checking (BMC).
  4. Interpolation: If the BMC determines the path is infeasible in the real code, a mathematical proof of this infeasibility is generated. The authors then apply Craig Interpolants to this proof. An interpolant is a formula that captures the essential reason why a specific transition sequence is impossible, acting as a bridge between inconsistent program states.
  5. Model Strengthening: These interpolants are integrated back into the abstract transition relation. Because interpolants are formulated using only state-holding variables, the resulting model remains purely propositional, allowing for efficient processing using Binary Decision Diagrams (BDDs).

Key Insights

Property-Aware Refinement

Unlike earlier refinement techniques that analyze counterexamples in isolation, interpolant-based refinement is inherently driven by the property being verified. The interpolants extract only the facts necessary to rule out the current infeasible path, ignoring irrelevant program variables and logic. This "tailored" refinement prevents the state space from exploding with unnecessary detail.

Handling Disjunctions and Arrays

A significant advantage of this method is its ability to handle disjunctive logic (e.g., "either condition A or condition B is true"). Traditional Cartesian approximations struggle with such relationships, which are frequent in programs that manipulate arrays. By capturing these relationships through interpolants, the authors' tool can verify properties that were previously unreachable for standard predicate abstraction tools.

Variable Filtering

The interpolation process naturally filters out auxiliary or temporary variables. By focusing only on the "essence" of the proof, the method avoids the combinatorial explosion often caused by the inclusion of non-essential variables in the transition relation.

Experimental Results

The methodology was evaluated using 19 C programs, ranging from synthetic benchmarks designed to test array-handling logic to real-world snippets from Linux operating system device drivers.

Performance and Convergence

The results demonstrated that the interpolation-based approach required significantly fewer refinement steps to reach a proof of safety compared to established methods like the Das/Dill algorithm. In terms of raw execution time, the new method consistently outperformed its predecessors. In the most notable benchmark, the authors reported a two-order-of-magnitude (100x) speedup.

Precision

The tool successfully verified programs containing complex array assertions that the BLAST model checker, using standard approximations, could not resolve. This confirms that the interpolant-based approximation provides the necessary precision to handle data-dependent control flow that is common in systems software.

Conclusion and Future Work

This paper presents a robust middle ground for abstract image computation. By leveraging Craig interpolants, the authors provide a mechanism for property-directed refinement that is both precise and computationally efficient. While the current study focused on safety properties in relatively small-scale benchmarks (19 programs), the results suggest significant potential for scaling to larger systems.

Future research directions include extending the framework to handle liveness properties (ensuring a desired state is eventually reached) and further optimizing the interpolation algorithm. The authors noted that standard interpolants can occasionally be "too weak," necessitating specialized algorithms to generate stronger formulas that further accelerate the convergence of the verification process.

Summary updated

BibTeX
@inproceedings{jhala2005interpolant,
  author = {Ranjit Jhala and Kenneth L. McMillan},
  title = {{Interpolant-Based Transition Relation Approximation}},
  booktitle = {CAV},
  year = {2005},
  doi = {10.1007/11513988\_6},
}
Figure