Lune

POPL2023Top-tier venue

The Fine-Grained Complexity of CFL Reachability

Paraschos Koutris, Shaleen Deep

Abstract

Many problems in static program analysis can be modeled as the context-free language (CFL) reachability problem on directed labeled graphs. The CFL reachability problem can be generally solved in time O ( n 3 ), where n is the number of vertices in the graph, with some specific cases that can be solved faster. In this work, we ask the following question: given a specific CFL, what is the exact exponent in the monomial of the running time? In other words, for which cases do we have linear, quadratic or cubic algorithms, and are there problems with intermediate runtimes? This question is inspired by recent efforts to classify classic problems in terms of their exact polynomial complexity, known as fine-grained complexity. Although recent efforts have shown some conditional lower bounds (mostly for the class of combinatorial algorithms), a general picture of the fine-grained complexity landscape for CFL reachability is missing. Our main contribution is lower bound results that pinpoint the exact running time of several classes of CFLs or specific CFLs under widely believed lower bound conjectures (e.g., Boolean Matrix Multiplication, k -Clique, APSP, 3SUM). We particularly focus on the family of Dyck- k languages (which are strings with well-matched parentheses), a fundamental class of CFL reachability problems. Remarkably, we are able to show a Ω( n 2.5 ) lower bound for Dyck-2 reachability, which to the best of our knowledge is the first super-quadratic lower bound that applies to all algorithms, and shows that CFL reachability is strictly harder that Boolean Matrix Multiplication. We also present new lower bounds for the case of sparse input graphs where the number of edges m is the input parameter, a common setting in the database literature. For this setting, we show a cubic lower bound for Andersen’s Pointer Analysis which significantly strengthens prior known results.

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.

3 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

  • Fixed Parameter Tractable Linearizability Monitoring cites The Complexity of Dynamic Data Race Prediction
  • Fixed Parameter Tractable Linearizability Monitoring cites Program Analysis via Multiple Context Free Language Reachability
  • Program Analysis via Multiple Context Free Language Reachability cites Subcubic certificates for CFL reachability
  • Program Analysis via Multiple Context Free Language Reachability cites The fine-grained and parallel complexity of andersen's pointer analysis
  • Subcubic certificates for CFL reachability cites The fine-grained and parallel complexity of andersen's pointer analysis
  • The decidability and complexity of interleaved bidirected Dyck reachability cites Subcubic certificates for CFL reachability
  • The decidability and complexity of interleaved bidirected Dyck reachability cites The fine-grained and parallel complexity of andersen's pointer analysis
  • The decidability and complexity of interleaved bidirected Dyck reachability 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 The fine-grained and parallel complexity of andersen's pointer analysis
  • 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 decidability and complexity of interleaved bidirected Dyck reachability
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. On-the-Fly Static Analysis via Dynamic Bidirected Dyck ReachabilityShankaranarayanan Krishna, Aniket Lal, Andreas Pavlogiannis, Omkar TuppePOPL 2024 · 7 citations
  2. Program Analysis via Multiple Context Free Language ReachabilityGiovanna Kobus Conrado, Adam Husted Kjelstrøm, Jaco van de Pol, Andreas PavlogiannisPOPL 2025 · 2 citations
  3. Fixed Parameter Tractable Linearizability MonitoringLee Zheng Han, Umang MathurPLDI 2026

Builds on8

  1. Fast graph simplification for interleaved Dyck-reachabilityYuanbo Li, Qirun Zhang, Thomas W. RepsPLDI 2020 · 30 citations
  2. The Complexity of Dynamic Data Race PredictionUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanLICS 2020 · 27 citations
  3. The fine-grained and parallel complexity of andersen's pointer analysisAnders Alnor Mathiasen, Andreas PavlogiannisPOPL 2021 · 22 citations
  4. Subcubic certificates for CFL reachabilityDmitry Chistikov, Rupak Majumdar, Philipp SchepperPOPL 2022 · 17 citations
  5. The decidability and complexity of interleaved bidirected Dyck reachabilityAdam Husted Kjelstrøm, Andreas PavlogiannisPOPL 2022 · 17 citations

Related papers

  1. Indexing the extended Dyck-CFL reachability for context-sensitive program analysisQingkai Shi, Yongchao Wang, Peisen Yao, Charles ZhangOOPSLA 2022 · 11 citations
  2. On the complexity of bidirected interleaved Dyck-reachabilityYuanbo Li, Qirun Zhang, Thomas W. RepsPOPL 2021 · 12 citations
  3. Better Not Together: Staged Solving for Context-Free Language ReachabilityChenghang Shi, Haofeng Li, Jie Lu, Lian LiISSTA 2024 · 2 citations
  4. Fredman's Trick Meets Dominance Product: Fine-Grained Complexity of Unweighted APSP, 3SUM Counting, and MoreTimothy M. Chan, Virginia Vassilevska Williams, Yinzhan XuSTOC 2023 · 4 citations
  5. Pushdown Model Checking above the Cubic BottleneckA. R. Balasubramanian, Dmitry Chistikov, Rupak MajumdarLICS 2025
Dusk over the sea between two cliffs drawn in fine vertical lines