Lune

POPL2022Top-tier venue

The decidability and complexity of interleaved bidirected Dyck reachability

Adam Husted Kjelstrøm, Andreas Pavlogiannis

Abstract

Dyck reachability is the standard formulation of a large domain of static analyses, as it achieves the sweet spot between precision and efficiency, and has thus been studied extensively. Interleaved Dyck reachability (denoted D k ⊙ D k ) uses two Dyck languages for increased precision (e.g., context and field sensitivity) but is well-known to be undecidable. As many static analyses yield a certain type of bidirected graphs, they give rise to interleaved bidirected Dyck reachability problems. Although these problems have seen numerous applications, their decidability and complexity has largely remained open. In a recent work, Li et al. made the first steps in this direction, showing that (i) D 1 ⊙ D 1 reachability (i.e., when both Dyck languages are over a single parenthesis and act as counters) is computable in O ( n 7 ) time, while (ii) D k ⊙ D k reachability is NP-hard. However, despite this recent progress, most natural questions about this intricate problem are open. In this work we address the decidability and complexity of all variants of interleaved bidirected Dyck reachability. First, we show that D 1 ⊙ D 1 reachability can be computed in O ( n 3 · α( n )) time, significantly improving over the existing O ( n 7 ) bound. Second, we show that D k ⊙ D 1 reachability (i.e., when one language acts as a counter) is decidable, in contrast to the non-bidirected case where decidability is open. We further consider D k ⊙ D 1 reachability where the counter remains linearly bounded. Our third result shows that this bounded variant can be solved in O ( n 2 · α( n )) time, while our fourth result shows that the problem has a (conditional) quadratic lower bound, and thus our upper bound is essentially optimal. Fifth, we show that full D k ⊙ D k reachability is undecidable. This improves the recent NP-hardness lower-bound, and shows that the problem is equivalent to the non-bidirected case. Our experiments on standard benchmarks show that the new algorithms are very fast in practice, offering many orders-of-magnitude speedups over previous methods.

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

  • Subcubic certificates for CFL reachability cites The fine-grained and parallel complexity of andersen's pointer analysis
  • Verifying correct usage of context-free API protocols cites Fast graph simplification for interleaved Dyck-reachability
  • FlowCFL: generalized type-based reachability analysis: graph reduction and equivalence of CFL-based and type-based reachability cites Fast graph simplification for interleaved Dyck-reachability
  • The Complexity of Bidirected Reachability in Valence Systems cites Fast graph simplification for interleaved Dyck-reachability
  • On-the-Fly Static Analysis via Dynamic Bidirected Dyck Reachability cites Subcubic certificates for CFL reachability
  • On-the-Fly Static Analysis via Dynamic Bidirected Dyck Reachability cites FlowCFL: generalized type-based reachability analysis: graph reduction and equivalence of CFL-based and type-based reachability
  • On-the-Fly Static Analysis via Dynamic Bidirected Dyck Reachability cites The fine-grained and parallel complexity of andersen's pointer analysis
  • On-the-Fly Static Analysis via Dynamic Bidirected Dyck Reachability cites The Complexity of Bidirected Reachability in Valence Systems
  • On-the-Fly Static Analysis via Dynamic Bidirected Dyck Reachability cites Fast graph simplification for interleaved Dyck-reachability
  • On-the-Fly Static Analysis via Dynamic Bidirected Dyck Reachability cites The Fine-Grained Complexity of CFL Reachability
  • Single-Source-Single-Target Interleaved-Dyck Reachability via Integer Linear Programming cites Fast graph simplification for interleaved Dyck-reachability
  • The Fine-Grained Complexity of CFL Reachability cites Subcubic certificates for CFL reachability
  • The Fine-Grained Complexity of CFL Reachability cites The fine-grained and parallel complexity of andersen's pointer analysis
  • The Fine-Grained Complexity of CFL Reachability cites Fast graph simplification for interleaved Dyck-reachability
  • Indexing the extended Dyck-CFL reachability for context-sensitive program analysis cites FlowCFL: generalized type-based reachability analysis: graph reduction and equivalence of CFL-based and type-based reachability
  • Indexing the extended Dyck-CFL reachability for context-sensitive program analysis cites Fast graph simplification for interleaved Dyck-reachability
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Indexing the extended Dyck-CFL reachability for context-sensitive program analysisQingkai Shi, Yongchao Wang, Peisen Yao, Charles ZhangOOPSLA 2022 · 11 citations
  2. The Complexity of Bidirected Reachability in Valence SystemsMoses Ganardi, Rupak Majumdar, Georg ZetzscheLICS 2022 · 7 citations
  3. On-the-Fly Static Analysis via Dynamic Bidirected Dyck ReachabilityShankaranarayanan Krishna, Aniket Lal, Andreas Pavlogiannis, Omkar TuppePOPL 2024 · 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 on7

  1. Fast graph simplification for interleaved Dyck-reachabilityYuanbo Li, Qirun Zhang, Thomas W. RepsPLDI 2020 · 30 citations
  2. The fine-grained and parallel complexity of andersen's pointer analysisAnders Alnor Mathiasen, Andreas PavlogiannisPOPL 2021 · 22 citations
  3. Subcubic certificates for CFL reachabilityDmitry Chistikov, Rupak Majumdar, Philipp SchepperPOPL 2022 · 17 citations
  4. FlowCFL: generalized type-based reachability analysis: graph reduction and equivalence of CFL-based and type-based reachabilityAna L. MilanovaOOPSLA 2020 · 15 citations
  5. Verifying correct usage of context-free API protocolsKostas Ferles, Jon Stephens, Isil DilligPOPL 2021 · 12 citations

Related papers

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