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

Automatically Refining Abstract Interpretations

Bhargav S. Gulavani, Supratik Chakraborty, Aditya V. Nori, Sriram K. RajamaniTACAS 2008

Introduction

Abstract interpretation is a powerful framework for static analysis, enabling mathematical proofs that programs are free of specific errors like buffer overflows. However, to handle infinite state spaces (e.g., loops), these tools must use a widen operator. While widen ensures termination, it often over-approximates the program state too aggressively, leading to "spurious counterexamples"—false alarms that do not correspond to real bugs.

The Challenge of Precision Loss

The fundamental challenge lies in recovering the precision lost during widening. Traditional refinement techniques often struggle with infinite refinement loops or the "path explosion" problem in complex control-flow graphs.

Figure 1: A motivating example showing a program where standard widening might fail to prove safety, and the corresponding state space exploration.

As illustrated in Figure 1, a program's state space can be complex. Standard widening might jump to an abstract state that overlaps with an error region (e.g., $x \ge 4, y \le 2$), even if the concrete states never reach it. Refinement techniques aim to "tighten" these abstractions (represented by the dotted lines in the plot) to exclude the error region while still ensuring termination.

The DAGGER Framework

The authors introduce DAGGER, a tool that employs three key innovations to automate refinement:

  1. Interpolated Widen: This is the core novelty. When the widen operator loses too much precision and causes a false error, the system analyzes the spurious trace to generate a Craig interpolant (a logical formula that succinctly explains why the error is unreachable). This interpolant is then used as a dynamic boundary for a widen up-to operation, ensuring the newly widened state is precise enough to avoid the false error in future explorations.
  2. Implicit Disjunctions: To recover precision, analyzers often need to represent multiple distinct states (disjunctions), which usually requires computationally expensive "powerset domains." The authors bypass this by keeping simple base domains (like octagons or polyhedra) and handling disjunctions implicitly by splitting nodes in the computation graph during refinement.
  3. DAG-based Refinement: To avoid the path explosion of tree-based exploration, the algorithm merges states at control-flow join points, creating a Directed Acyclic Graph (DAG). If a merge causes a spurious counterexample, the refinement step aggressively splits the merged node back into separate paths.

Evaluation and Results

DAGGER was evaluated against state-of-the-art tools like SLAM and BLAST on challenging benchmarks, including Sendmail vulnerabilities and the StInG suite.

  • Outperforming the State-of-the-Art: DAGGER successfully verified programs that caused existing heavyweights (SLAM, BLAST, ARMC) to time out (exceeding 2000 seconds) or fail entirely. On the p1-ok Sendmail benchmark, DAGGER finished in just 5.76 seconds.
  • Scaling with Array Size: Without interpolated widen, the number of refinement iterations required to prove an array bounds check typically scales linearly with the size of the array. With interpolated widen, the number of iterations remained constant, completely eliminating the dependency on array size.

Conclusion

By combining the generalization power of widening with the property-specific precision of Craig interpolants, DAGGER provides a robust solution for verifying complex C programs. While challenges remain in handling inter-procedural analysis and more complex interpolation domains, this work represents a significant step forward in automated formal verification.

Summary updated

BibTeX
@inproceedings{gulavani2008automatically,
  author = {Bhargav S. Gulavani and Supratik Chakraborty and Aditya V. Nori and Sriram K. Rajamani},
  title = {{Automatically Refining Abstract Interpretations}},
  booktitle = {TACAS},
  year = {2008},
  doi = {10.1007/978-3-540-78800-3\_33},
}
Figure