Skip to main content
QUICK REVIEW

[Paper Review] On the Completeness of Verifying Message Passing Programs under Bounded Asynchrony

Ahmed Bouajjani, Constantin Enea|arXiv (Cornell University)|Apr 18, 2018
Formal Methods in VerificationComputer Science28 references7 citations
TL;DR

This paper introduces a bounded analysis framework for verifying message-passing programs with unbounded FIFO buffers by defining $k$-synchronous computations—sequences of at most $k$ send actions followed by corresponding receives. It presents a PSPACE-complete decision procedure for $k$-synchronizability and proves decidability of existence of such $k$ for flow-bounded programs, enabling complete verification under bounded asynchrony.

ABSTRACT

We address the problem of verifying message passing programs, defined as a set of parallel processes communicating through unbounded FIFO buffers. We introduce a bounded analysis that explores a special type of computations, called k-synchronous. These computations can be viewed as (unbounded) sequences of interaction phases, each phase allowing at most k send actions (by different processes), followed by a sequence of receives corresponding to sends in the same phase. We give a procedure for deciding k-synchronizability of a program, i.e., whether every computation is equivalent (has the same happens-before relation) to one of its k-synchronous computations. We also show that reachability over k-synchronous computations and checking k-synchronizability are both PSPACE-complete. Furthermore, we introduce a class of programs called {\em flow-bounded} for which the problem of deciding whether there exists a k>0 for which the program is k-synchronizable, is decidable.

Motivation & Objective

  • To address the undecidability of verifying message-passing programs with unbounded FIFO buffers under full asynchrony.
  • To develop a bounded analysis technique that captures all relevant behaviors without exploring all interleavings.
  • To define and decide $k$-synchronizability—whether all computations are equivalent to $k$-synchronous ones.
  • To identify a decidable subclass (flow-bounded programs) where existence of a $k$-synchronizing bound is decidable.
  • To provide a complete and terminating verification method for a wide class of concurrent message-passing systems.

Proposed method

  • Introduces $k$-synchronous computations as sequences of at most $k$ send actions (by distinct processes), followed by corresponding receive actions.
  • Defines $k$-synchronizability as the property that every computation is equivalent (in happens-before relation) to some $k$-synchronous computation.
  • Proposes a decision procedure for $k$-synchronizability based on conflict-graph analysis and cycle detection in a derived dependency graph.
  • Uses instrumentation to simulate $k$-synchronous semantics via additional boolean variables to enforce phase ordering.
  • Employs monitors as auxiliary processes to observe $k$-exchange sequences and detect violations of $k$-synchronizability.
  • Reduces the problem of $k$-synchronizability and reachability over $k$-synchronous computations to state reachability under bounded channels, proving PSPACE-completeness.

Experimental results

Research questions

  • RQ1Can we decide whether every computation of a message-passing program is equivalent to a $k$-synchronous computation for some fixed $k$?
  • RQ2Is the problem of deciding $k$-synchronizability for a given $k$ decidable and efficiently solvable?
  • RQ3For which classes of message-passing programs does there exist a finite $k$ such that the program is $k$-synchronizable?
  • RQ4Can we reduce the verification of reachability under unbounded asynchrony to a bounded analysis with guaranteed completeness?
  • RQ5How does the proposed method compare in expressiveness and completeness to existing partial-order or bounded-buffer techniques?

Key findings

  • The problem of deciding $k$-synchronizability for a given $k$ is PSPACE-complete.
  • Reachability over $k$-synchronous computations is also PSPACE-complete.
  • For flow-bounded programs, the existence of a $k>0$ for which the program is $k$-synchronizable is decidable.
  • The method was evaluated on real-world examples (elevator, two-phase commit, German protocol, OSR) with $k$-values from 1 to 4, completing in 10 to 25 minutes each.
  • The experimental results confirm the feasibility of the approach using instrumentation and model checking with Spin.
  • The approach provides a complete verification method under bounded asynchrony, avoiding the undecidability of full asynchrony.

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.