Abstract Interpretation with Unfoldings

Marcelo Sousa, César Rodríguez, Vijay Victor D'Silva, Daniel Kroening

Abstract

Static analysis of concurrent programs often struggles with the "interleaving explosion" of global fixed-point analysis or the imprecision of thread-modular approaches. This paper introduces Abstract Unfoldings, a technique that combines abstract interpretation with partial-order reduction. By mapping analyzer actions into a compact event structure and utilizing a novel "weak independence" relation for abstract transformers, the authors achieve significant precision gains. Their tool, APOET, demonstrates an order of magnitude fewer false alarms than state-of-the-art abstract interpreters while maintaining superior performance over solver-based verification tools.

Introduction: The Concurrency Analysis Dilemma

Analyzing concurrent software presents a fundamental trade-off. Global fixed-point analysis, which considers every possible thread interleaving, is precise but fails to scale due to the exponential number of states. Conversely, thread-modular analysis scales well by analyzing threads in isolation but loses critical path sensitivity, leading to numerous false alarms. These false positives occur when the analyzer cannot distinguish between feasible and impossible thread interactions.

The proposed Abstract Unfolding method aims to bridge this gap, providing a scalable framework that retains the flow- and path-sensitivity necessary to verify complex concurrent systems.

The Abstract Unfolding Framework

The core of the approach is the Abstract Unfolding algorithm, which adapts Petri net unfolding techniques to the domain of abstract interpretation.

1. Unfolding Analyzer Actions

Rather than unfolding the program's concrete state space, the algorithm unfolds the actions of the abstract interpreter itself. It constructs an "event structure" where each event represents the application of an abstract transformer (corresponding to a program statement) within a specific execution history.

Overview of the unfolding process: (a) concurrent code, (b) unfolding tree, and (c) resulting event structure.

2. Transformer Independence and Thread-Local Analysis

A key innovation is the definition of "weak independence" between abstract transformers. This allows the analyzer to identify when operations in different threads do not interfere (e.g., writing to distinct local variables), enabling it to bypass redundant interleavings. Furthermore, a thread-local fixed-point procedure (tla) compresses the search space by merging sequences of local operations into single steps.

3. Subsumption and Cutoffs

To ensure termination, the algorithm employs subsumption-based cutoffs. If the analyzer reaches an abstract state that is already "covered" by a previously explored state (using the lattice partial order $\sqsubseteq$), it marks the branch as a cutoff and ceases exploration.

Theoretical mapping between different levels of abstraction and independence relations.

Evaluation and Results

The authors implemented their technique in a tool called APOET and evaluated it against mature tools like AstreeA (abstract interpreter) and solver-based verifiers like CBMC and IMPARA using SVCOMP’17 and custom parametric benchmarks.

  • Precision: APOET significantly outperformed AstreeA, producing only 5 false positives compared to AstreeA's 32—a nearly 10x improvement in precision.
  • Performance and Scalability: APOET successfully completed all benchmarks, whereas solver-based tools often timed out (CBMC finished 46%, IMPARA only 17%). APOET handled unfoldings with up to 33,000 events in an average of 81 seconds.

Discussion and Future Work

While APOET demonstrates the power of Abstract Unfoldings, it remains a prototype with limited support for complex C features like structures or non-integer types. Future work includes integrating "local widenings" to further accelerate convergence and exploring more nuanced precision/performance trade-offs in data-race detection. By staying precise about causality through event structures, Abstract Unfoldings provide a robust path forward for verifying concurrent software at scale.

Summary updated

BibTeX
@inproceedings{sousa2017abstract,
  author = {Marcelo Sousa and César Rodríguez and Vijay Victor D'Silva and Daniel Kroening},
  title = {{Abstract Interpretation with Unfoldings}},
  booktitle = {CAV},
  year = {2017},
  url = {https://openreview.net/forum?id=05zt62kyYdM},
}
Figure