Lune

POPL2021Top-tier venue

On the complexity of bidirected interleaved Dyck-reachability

Yuanbo Li, Qirun Zhang, Thomas W. Reps

Abstract

Many program analyses need to reason about pairs of matching actions, such as call/return, lock/unlock, or set-field/get-field. The family of Dyck languages 𝐷 𝑘 , where 𝐷 𝑘 has 𝑘 kinds of parenthesis pairs, can be used to model matching actions as balanced parentheses. Consequently, many program-analysis problems can be formulated as Dyck-reachability problems on edge-labeled digraphs. Interleaved Dyck-reachability (InterDyck-reachability), denoted by 𝐷 𝑘 ⊙ 𝐷 𝑘 -reachability, is a natural extension of Dyck-reachability that allows one to formulate program-analysis problems that involve multiple kinds of matching-action pairs. Unfortunately, the general InterDyck-reachability problem is undecidable.

In this paper, we study variants of InterDyck-reachability on bidirected graphs, where for each edge ⟨𝑝, 𝑞⟩ labeled by an open parenthesis "( 𝑎 ", there is an edge ⟨𝑞, 𝑝⟩ labeled by the corresponding close parenthesis ") 𝑎 ", and vice versa. Language-reachability on a bidirected graph has proven to be useful both (i) in its own right, as a way to formalize many program-analysis problems, such as pointer analysis, and (ii) as a relaxation method that uses a fast algorithm to over-approximate language-reachability on a directed graph. However, unlike its directed counterpart, the complexity of bidirected InterDyck-reachability still remains open.

We establish the first decidable variant (i.e., 𝐷 1 ⊙ 𝐷 1 -reachability) of bidirected InterDyck-reachability. In 𝐷 1 ⊙ 𝐷 1 -reachability, each of the two Dyck languages is restricted to have only a single kind of parenthesis pair. In particular, we show that the bidirected 𝐷 1 ⊙ 𝐷 1 -reachability problem is in PTIME. We also show that when one extends each Dyck language to involve 𝑘 different kinds of parentheses (i.e., 𝐷 𝑘 ⊙ 𝐷 𝑘 -reachability with 𝑘 ≥ 2), the problem is NP-hard (and therefore much harder).

We have implemented the polynomial-time algorithm for bidirected 𝐷 1 ⊙ 𝐷 1 -reachability. 𝐷 1 ⊙ 𝐷 1reachability provides a new over-approximation method for bidirected 𝐷 𝑘 ⊙ 𝐷 𝑘 -reachability in the sense that 𝐷 𝑘 ⊙ 𝐷 𝑘 -reachability can first be relaxed to bidirected 𝐷 1 ⊙ 𝐷 1 -reachability, and then the resulting bidirected 𝐷 1 ⊙ 𝐷 1 -reachability problem is solved precisely. We compare this 𝐷 1 ⊙ 𝐷 1 -reachability-based approach against another known over-approximating 𝐷 𝑘 ⊙ 𝐷 𝑘 -reachability algorithm. Surprisingly, we found that the over-approximation approach based on bidirected 𝐷 1 ⊙ 𝐷 1 -reachability computes more precise solutions, even though the 𝐷 1 ⊙ 𝐷 1 formalism is inherently less expressive than the 𝐷 𝑘 ⊙ 𝐷 𝑘 formalism.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • The Complexity of Bidirected Reachability in Valence Systems cites Fast graph simplification for interleaved Dyck-reachability
  • The Complexity of Bidirected Reachability in Valence Systems cites The decidability and complexity of interleaved bidirected Dyck reachability
  • The decidability and complexity of interleaved bidirected Dyck reachability cites The Complexity of Bidirected Reachability in Valence Systems
  • The decidability and complexity of interleaved bidirected Dyck reachability cites Fast graph simplification for interleaved Dyck-reachability
  • Single-Source-Single-Target Interleaved-Dyck Reachability via Integer Linear Programming cites Fast graph simplification for interleaved Dyck-reachability
  • Single-Source-Single-Target Interleaved-Dyck Reachability via Integer Linear Programming cites The decidability and complexity of interleaved bidirected Dyck reachability
  • The Fine-Grained Complexity of CFL Reachability cites Fast graph simplification for interleaved Dyck-reachability
  • The Fine-Grained Complexity of CFL Reachability cites The decidability and complexity of interleaved bidirected Dyck reachability
  • Indexing the extended Dyck-CFL reachability for context-sensitive program analysis cites Fast graph simplification for interleaved Dyck-reachability
  • Indexing the extended Dyck-CFL reachability for context-sensitive program analysis cites The decidability and complexity of interleaved bidirected Dyck reachability
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. The decidability and complexity of interleaved bidirected Dyck reachabilityAdam Husted Kjelstrøm, Andreas PavlogiannisPOPL 2022 · 17 citations
  2. Indexing the extended Dyck-CFL reachability for context-sensitive program analysisQingkai Shi, Yongchao Wang, Peisen Yao, Charles ZhangOOPSLA 2022 · 11 citations
  3. The Complexity of Bidirected Reachability in Valence SystemsMoses Ganardi, Rupak Majumdar, Georg ZetzscheLICS 2022 · 7 citations
  4. Single-Source-Single-Target Interleaved-Dyck Reachability via Integer Linear ProgrammingYuanbo Li, Qirun Zhang, Thomas W. RepsPOPL 2023 · 6 citations
  5. The Fine-Grained Complexity of CFL ReachabilityParaschos Koutris, Shaleen DeepPOPL 2023 · 6 citations

Builds on1

  1. Fast graph simplification for interleaved Dyck-reachabilityYuanbo Li, Qirun Zhang, Thomas W. RepsPLDI 2020 · 30 citations

Related papers

  1. Efficient algorithms for dynamic bidirected Dyck-reachabilityYuanbo Li, Kris Satya, Qirun ZhangPOPL 2022 · 8 citations
  2. On-the-Fly Static Analysis via Dynamic Bidirected Dyck ReachabilityShankaranarayanan Krishna, Aniket Lal, Andreas Pavlogiannis, Omkar TuppePOPL 2024 · 7 citations
  3. Bounded Treewidth, Multiple Context-Free Grammars, and Downward ClosuresC. Aiswarya, Pascal Baumann, Prakash Saivasan, Lia Schütze et al.POPL 2026 · 1 citation
  4. Context-Bounded Verification of Context-Free SpecificationsPascal Baumann, Moses Ganardi, Rupak Majumdar, Ramanathan S. Thinniyam et al.POPL 2023 · 3 citations
  5. Program Analysis via Multiple Context Free Language ReachabilityGiovanna Kobus Conrado, Adam Husted Kjelstrøm, Jaco van de Pol, Andreas PavlogiannisPOPL 2025 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines