Skip to main content
QUICK REVIEW

[Paper Review] Symmetry-Aware Predicate Abstraction for Shared-Variable Concurrent Programs (Extended Technical Report)

Alastair F. Donaldson, Alexander Kaiser|arXiv (Cornell University)|Feb 11, 2011
Formal Methods in VerificationComputer Science22 references4 citations
TL;DR

This paper proposes a symmetry-aware predicate abstraction technique for shared-variable concurrent C programs, enabling scalable model checking by exploiting thread symmetry. It introduces a sound method to handle mixed predicates (involving both local and shared variables) via a novel Boolean program template construction, significantly improving performance and accuracy over unsound or naive approaches on concurrent benchmarks.

ABSTRACT

Predicate abstraction is a key enabling technology for applying finite-state model checkers to programs written in mainstream languages. It has been used very successfully for debugging sequential system-level C code. Although model checking was originally designed for analyzing concurrent systems, there is little evidence of fruitful applications of predicate abstraction to shared-variable concurrent software. The goal of this paper is to close this gap. We have developed a symmetry-aware predicate abstraction strategy: it takes into account the replicated structure of C programs that consist of many threads executing the same procedure, and generates a Boolean program template whose multi-threaded execution soundly overapproximates the concurrent C program. State explosion during model checking parallel instantiations of this template can now be absorbed by exploiting symmetry. We have implemented our method in the SATABS predicate abstraction framework, and demonstrate its superior performance over alternative approaches on a large range of synchronization programs.

Motivation & Objective

  • To address the scalability bottleneck in verifying shared-variable concurrent programs due to state explosion from thread interleavings.
  • To develop a sound predicate abstraction strategy that correctly handles mixed predicates involving both local and shared variables.
  • To exploit symmetry in replicated thread structures to reduce state space explosion during model checking.
  • To demonstrate superior performance and correctness over unsound or naive abstraction techniques on real concurrent benchmarks.

Proposed method

  • Transform a C program with shared and local variables into a Boolean program template using predicate abstraction.
  • Classify predicates as local, shared, or mixed based on variable scope, and assign Boolean variables accordingly to preserve soundness.
  • Use shared Boolean variables for shared predicates and local Boolean variables for local predicates, while introducing a novel treatment for mixed predicates to avoid unsoundness.
  • Construct a multi-threaded Boolean program template whose execution overapproximates the original C program’s behavior.
  • Leverage symmetry in thread replication to reduce the state space during model checking, enabling scalability.
  • Integrate the approach into the SATABS framework with CEGAR-based refinement to handle spurious counterexamples.

Experimental results

Research questions

  • RQ1How can predicate abstraction be made sound when applied to concurrent C programs with mixed predicates involving both local and shared variables?
  • RQ2What is the impact of naive approaches (e.g., treating all mixed predicates as local or shared) on the soundness and scalability of model checking?
  • RQ3Can symmetry in replicated thread structures be exploited effectively to reduce state space explosion in concurrent program verification?
  • RQ4How does the proposed symmetry-aware abstraction compare in performance and correctness to existing predicate abstraction techniques on real concurrent benchmarks?

Key findings

  • The proposed method achieves sound abstraction for shared-variable concurrent programs by correctly handling mixed predicates, avoiding the spurious counterexamples common in unsound approaches.
  • The symmetry-aware approach enables model checking of concurrent programs with significantly higher thread counts than previously feasible.
  • On safe benchmarks, the method successfully proves correctness at larger thread counts than unsound alternatives, which fail or produce incorrect results.
  • On unsafe benchmarks, the method detects bugs at smaller thread counts than unsound methods, which may fail to refine due to spurious counterexamples.
  • The unsound approaches (mixed as local/shared) frequently produce false negatives or refinement failures, undermining their reliability for verification.
  • The implementation in SATABS demonstrates practical scalability and correctness on a wide range of synchronization benchmarks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.