Verification of Hierarchical State/Event Systems Using Reusability and Compositionality

Gerd Behrmann, Kim Guldstrand Larsen, Henrik Reif Andersen, Henrik Hulgaard, Jørn Lind-NielsenTACAS 1999

Overview

This research introduces a novel verification technique for hierarchical state/event systems that effectively turns the "curse of dimensionality" into a computational advantage. By integrating reusability—leveraging reachability results from parent states to verify children—with compositionality—analyzing only minimal, relevant subsystems—the authors developed a tool that scales efficiently with nesting depth. Unlike traditional "flattening" methods, this hierarchical approach performs better as system complexity increases, outperforming conventional model checkers by orders of magnitude.

The Challenge: The State-Explosion Problem

Embedded reactive systems, such as those found in automotive cruise controls or flight management systems, are typically modeled using finite state machines. To manage the inherent complexity of these systems, engineers use Hierarchical State/Event Machines (HSEMs), where states can be nested within other states.

The conventional approach to verifying these systems (e.g., checking reachability or deadlock) involves "flattening" the hierarchy into a massive, non-hierarchical concurrent system. However, this process is computationally expensive. As nesting depth grows, the number of potential configurations explodes, leading to the "state-explosion problem."

Comparison between a hierarchical system (a) and its flattened counterpart (b).

The authors argue that hierarchy should be exploited as a roadmap for verification rather than being stripped away. As shown in Figure 3, the structured hierarchical model (a) provides clear boundaries that are lost when the system is flattened (b) for traditional model checking.

Methodology: Reusability and Compositionality

The proposed "hierarchical checker" employs a two-pronged strategy to navigate the state space:

  1. Reusability: The algorithm performs a preorder traversal of the state tree. It first verifies if a "superstate" (parent) is reachable. If the parent is unreachable, all its children are automatically pruned from the search. If it is reachable, that result is reused to constrain the search space for its substates.
  2. Compositionality: Utilizing Reduced Ordered Binary Decision Diagrams (ROBDDs), the tool identifies a "sort"—the minimal subset of components required to answer a specific reachability query. If the initial sort is insufficient, the algorithm incrementally adds only the most relevant neighboring components based on dependency analysis.

By focusing on these local "bubbles" of the hierarchy, the tool avoids the need to process the entire flattened state space simultaneously.

Key Results and Insights

The approach was evaluated using both industrial models from visualSTATE™ and synthetic scalable models with nesting depths up to 12 levels.

  • Performance Inversion: A critical finding is that while "flat checkers" suffer from exponential runtime growth as depth increases, the hierarchical checker remains stable or even shows decreased runtime for deeper systems. In one test case with 399 serial states at a depth of 12, the hierarchical checker finished in 26 seconds, compared to 497 seconds for the flat checker.
  • Locality of Concern: The algorithm exploits the fact that in well-engineered systems, dependencies are usually local. A state deep in one branch rarely depends on a state deep in another, allowing for efficient compositional analysis.
  • Scalability: The tool successfully handled state spaces with up to $10^{240}$ configurations, a scale far beyond the reach of exhaustive flat searching.

Limitations and Future Directions

The efficiency of this method relies on the assumption of local dependencies; "spaghetti" models with global dependencies would likely see degraded performance. Currently, the tool focuses on reachability and local deadlock detection. Future work aims to extend these hierarchical techniques to more complex temporal logic properties, such as Linear Temporal Logic (LTL) or Computation Tree Logic (CTL).

Summary updated

BibTeX
@inproceedings{behrmann1999verification,
  author = {Gerd Behrmann and Kim Guldstrand Larsen and Henrik Reif Andersen and Henrik Hulgaard and Jørn Lind-Nielsen},
  title = {{Verification of Hierarchical State/Event Systems Using Reusability and Compositionality}},
  booktitle = {TACAS},
  year = {1999},
  doi = {10.1007/3-540-49059-0\_12},
}
Figure