Program Dependence Net and On-demand Slicing for Property Verification of Concurrent System and Software

Zhijun Ding, Shuo Li, Cheng Chen, Cong He · DOI

Abstract

When checking concurrent software using a finite-state model, we face a formidable state explosion problem. One solution to this problem is dependence-based program slicing, whose use can effectively reduce verification time. It is orthogonal to other model-checking reduction techniques. However, when slicing concurrent programs for model checking, there are conversions between multiple irreplaceable models, and dependencies need to be found for variables irrelevant to the verified property, which results in redundant computation. To resolve this issue, we propose a Program Dependence Net (PDNet) based on Petri net theory. It is a unified model that combines a control-flow structure with dependencies to avoid conversions. For reduction, we present a PDNet slicing method to capture the relevant variables' dependencies when needed. PDNet in verifying linear temporal logic and its on-demand slicing can be used to significantly reduce computation cost. We implement a model-checking tool based on PDNet and its on-demand slicing, and validate the advantages of our proposed methods.

Introduction

Model checking is a critical technique for ensuring the reliability of concurrent software. However, the "state explosion" problem—where the number of possible thread interleavings grows exponentially—remains a significant barrier. Program slicing offers a solution by removing code segments that do not influence the specific property being verified.

Despite its benefits, traditional slicing introduces two major overheads. First, there is a model mismatch: practitioners must often convert between Program Dependence Graphs (PDGs) for slicing and Control-Flow Automata (CFAs) for verification, which is computationally expensive. Second, eager computation in standard slicers calculates all data-flow dependencies upfront, often wasting resources on variables irrelevant to the final property.

The PDNet Framework

To address these challenges, this paper introduces the Program Dependence Net (PDNet). Built on Colored Petri Net (CPN) theory, PDNet serves as a unified model that represents both execution order (control flow) and variable relationships (data flow) within a single graph. This unification eliminates the need for costly model conversions.

The transition from a concurrent program to its PDNet representation and resulting state space.

Complementing PDNet is an on-demand slicing algorithm. Rather than pre-calculating all dependencies, this method starts from the property of interest (the slicing criterion) and traverses the PDNet to capture only the necessary dependencies as they are required during the verification process.

The on-demand slicing algorithm for PDNet.

Experimental Evaluation

The proposed approach was implemented in a tool called DAMER, which translates concurrent C code into PDNets for Linear Temporal Logic (LTL) verification. The researchers evaluated DAMER using 10 multi-threaded C programs from the Software Verification Competition (SV-COMP) and classic concurrent algorithms (e.g., Dekker’s, Peterson’s).

The results demonstrate significant performance improvements:

  • Pre-processing Speed: PDNet was 18.7 times faster on average than traditional slicing methods in model preparation.
  • Verification Efficiency: Verification using PDNet was 1.27x faster than Petri net-specific slicers (TraPNSlice) and 2.19x faster than traditional program slicing.
  • State Space Reduction: In key examples, the slicer reduced the state space by nearly 50%, significantly mitigating the state explosion problem.

Conclusion and Future Work

PDNet provides a robust, unified framework for concurrent software verification. By combining control and data flow into a single Petri net-based model and employing on-demand slicing, it avoids redundant computations and model conversions. Future research will focus on incorporating dynamic heuristic information into the slicing process and integrating PDNet with other reduction techniques like partial-order reduction to further combat interleaving explosion.

Summary updated

BibTeX
@misc{ding2023program,
  author = {Zhijun Ding and Shuo Li and Cheng Chen and Cong He},
  title = {{Program Dependence Net and On-demand Slicing for Property Verification of Concurrent System and Software}},
  year = {2023},
  eprint = {2301.11723},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.11723},
}
Figure