Fast Zone-Based Algorithms for Reachability in Pushdown Timed Automata

S. Akshay, Paul Gastin, Karthik R. Prakash

TL;DR

Timed automata are widely used to verify real-time systems, but adding a stack to them (creating Pushdown Timed Automata) makes verification notoriously slow. This paper introduces the first sound, complete, and terminating zone-based algorithm for pushdown timed automata, achieving massive speedups over previous methods and paving the way for practical model-checking of recursive timed systems.

What Problem Does This Paper Address?

In computer science, Timed Automata (TA) are a standard mathematical model for verifying real-time systems (like pacemakers or cyber-physical systems). They use real-valued variables called "clocks" to track time. A common question is the reachability problem: Can the system reach a specific critical state without violating any timing constraints?

To model more complex, recursive systems, researchers add an unbounded memory stack to TA, creating Pushdown Timed Automata (PDTA). However, this introduces two sources of infinity: continuous time and an endless stack.

Standard TA verification tools (like UPPAAL or TChecker) solve reachability incredibly fast using zones (groupings of clock values) and simulations (a clever way to prune redundant paths so the search doesn't run forever). But here is the catch: if you naively apply this fast "zone + simulation" trick to a PDTA, the algorithm breaks. It becomes unsound, meaning it might falsely claim a state is reachable when it isn't, because it loses track of how timing constraints interact with the stack. Because of this, previous PDTA tools had to rely on "region-based" abstractions, which are mathematically safe but practically sluggish and memory-hungry.

Methods

The authors set out to fix the zone-based approach so it works safely with PDTAs.

  • Inductive Rewrite Rules: Instead of viewing the search as a standard graph traversal, they modeled the algorithm as a set of inductive rewrite rules (Start, Internal, Push, Pop). This reframing made it much easier to isolate exactly where the stack operations were breaking the logic.
  • Hybrid Pruning (Simulation + Equivalence): The authors discovered that using standard "simulation" (where you stop exploring a path if it's subsumed by a broader, previously visited path) is dangerous right after a push operation. To fix this, they use a stricter equivalence relation when creating new "root" nodes (contexts after a push), but retain the faster simulation relation for internal steps and pop operations.
  • Custom Data Structures: To implement this efficiently, they built a custom Two-Level Map (TLM) data structure to store and query these sets of nodes, integrating it into the open-source TChecker tool.

Datasets

The authors evaluated their algorithm on a suite of 10 parameterized benchmarks (B1 to B10).

  • Some benchmarks were adapted from prior region-based PDTA papers to allow for direct performance comparisons.
  • Others were newly designed to stress-test specific edge cases, such as heavy interplay between pushes/pops and clock constraints, or the use of "open" guards (e.g., $x > 1$ instead of $x \geq 1$).

Key Insights and Ideas

  • The Danger of Naive Simulation: In standard TA, if Zone A is "subsumed" by Zone B, you can safely stop exploring A. In PDTA, this is dangerous: Zone B might allow a path, but the stack contents might not match up correctly later on. This mismatch is what causes false positives.
  • Hybrid Pruning is the Sweet Spot: Using strict equivalence everywhere is safe but incredibly slow. Using simulation everywhere is fast but unsafe. By pinpointing the exact structural moments (pushes vs. pops) where each relation should be applied, the authors achieved the "holy grail": an algorithm that is terminating, sound, complete, and fast.
  • Rules Make Proofs Easier: By defining the algorithm as a least fixed-point computation of inductive rules, the authors bypassed the notoriously messy proofs usually associated with zone-graph traversals.

Key Results

  • Massive Speedups: The new zone-based approach absolutely obliterates the older region-based (RB) approach. For example, on benchmark B2(100), the RB approach timed out after 120 seconds. The new zone-based algorithm finished in just 20 milliseconds.
  • Memory Efficiency: The region-based approach frequently hit Out-of-Memory (OoM) errors on larger models (like B5). The zone-based approach handled these comfortably.
  • Simulation vs. Equivalence: The authors compared their hybrid simulation approach ($\preceq_{LU}$) against a strict equivalence-only approach ($\sim_{LU}$). On complex models, the hybrid approach won by miles. On benchmark B6(5,4,10000), the hybrid approach took 0.3 ms, while the equivalence approach took over 60,000 ms.

Limitations and Future Work

  • Well-Nested Reachability: Currently, the algorithm specifically checks for "well-nested" reachability—meaning it checks if a target state can be reached with an empty stack at the end. The authors note that extending this to general control-state reachability (reaching the target with any stack content) is a straightforward next step.
  • Ages in the Stack: The current model does not track the "age" of symbols while they sit on the stack. Handling models with stack ages is possible but currently causes an exponential blowup in complexity; avoiding this blowup is an open question.
  • Liveness Properties: The authors suggest future work could adapt these techniques to check for liveness (e.g., does the system do something good infinitely often?), which shares similar theoretical hurdles regarding simulation relations.

Summary updated

BibTeX
@inproceedings{akshay2021fast,
  author = {S. Akshay and Paul Gastin and Karthik R. Prakash},
  title = {{Fast Zone-Based Algorithms for Reachability in Pushdown Timed Automata}},
  booktitle = {CAV},
  year = {2021},
  url = {https://openreview.net/forum?id=S2KR8nBiYN},
}

Loading related content...

Figure