Lune

OOPSLA2022Top-tier venue

Indexing the extended Dyck-CFL reachability for context-sensitive program analysis

Qingkai Shi, Yongchao Wang, Peisen Yao, Charles Zhang

Abstract

Many context-sensitive dataflow analyses can be formulated as an extended Dyck-CFL reachability problem, where function calls and returns are modeled as partially matched parentheses. Unfortunately, despite many works on the standard Dyck-CFL reachability problem, solving the extended version is still of quadratic space complexity and nearly cubic time complexity, significantly limiting the scalability of program analyses. This paper, for the first time to the best of our knowledge, presents a cheap approach to transforming the extended Dyck-CFL reachability problem to conventional graph reachability, a much easier and well-studied problem. This transformation allows us to benefit from recent advances in reachability indexing schemes, making it possible to answer any reachability query in a context-sensitive dataflow analysis within almost constant time plus only a few extra spaces. We have implemented our approach in two common context-sensitive dataflow analyses, one determines pointer alias relations and the other tracks information flows. Experimental results demonstrate that, compared to their original analyses, we can achieve orders of magnitude (10 2 × to 10 5 ×) speedup at the cost of only a moderate space overhead. Our implementation is publicly available.

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.

4 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

  • PSPC: Efficient Parallel Shortest Path Counting on Large-Scale Graphs cites Answering Billion-Scale Label-Constrained Reachability Queries within Microsecond
  • PSPC: Efficient Parallel Shortest Path Counting on Large-Scale Graphs cites Efficiently Answering Quality Constrained Shortest Distance Queries in Large Graphs
  • 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
  • Boosting the Performance of Alias-Aware IFDS Analysis with CFL-Based Environment Transformers cites Fast graph simplification for interleaved Dyck-reachability
  • The decidability and complexity of interleaved bidirected Dyck reachability cites FlowCFL: generalized type-based reachability analysis: graph reduction and equivalence of CFL-based and type-based reachability
  • The decidability and complexity of interleaved bidirected Dyck reachability cites Fast graph simplification for interleaved Dyck-reachability
  • The decidability and complexity of interleaved bidirected Dyck reachability cites On the complexity of bidirected interleaved Dyck-reachability
  • On the complexity of bidirected interleaved Dyck-reachability cites Fast graph simplification for interleaved Dyck-reachability
  • Efficiently Answering Quality Constrained Shortest Distance Queries in Large Graphs cites Answering Billion-Scale Label-Constrained Reachability Queries within Microsecond
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Efficiently Answering Quality Constrained Shortest Distance Queries in Large GraphsYou Peng, Zhuo Ma, Wenjie Zhang, Xuemin Lin et al.ICDE 2023 · 12 citations
  2. PSPC: Efficient Parallel Shortest Path Counting on Large-Scale GraphsYou Peng, Jeffrey Xu Yu, Sibo WangICDE 2023 · 7 citations
  3. Boosting the Performance of Alias-Aware IFDS Analysis with CFL-Based Environment TransformersHaofeng Li, Chenghang Shi, Jie Lu, Lian Li et al.OOPSLA 2024 · 6 citations
  4. LibAlchemy: A Two-Layer Persistent Summary Design for Taming Third-Party Libraries in Static Bug-Finding SystemsRongxin Wu, Yuxuan He, Jiafeng Huang, Chengpeng Wang et al.ICSE 2024 · 5 citations

Builds on5

  1. Answering Billion-Scale Label-Constrained Reachability Queries within MicrosecondYou Peng, Ying Zhang, Xuemin Lin, Lu Qin et al.VLDB 2020 · 65 citations
  2. Fast graph simplification for interleaved Dyck-reachabilityYuanbo Li, Qirun Zhang, Thomas W. RepsPLDI 2020 · 30 citations
  3. The decidability and complexity of interleaved bidirected Dyck reachabilityAdam Husted Kjelstrøm, Andreas PavlogiannisPOPL 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. On the complexity of bidirected interleaved Dyck-reachabilityYuanbo Li, Qirun Zhang, Thomas W. RepsPOPL 2021 · 12 citations

Related papers

  1. Better Not Together: Staged Solving for Context-Free Language ReachabilityChenghang Shi, Haofeng Li, Jie Lu, Lian LiISSTA 2024 · 2 citations
  2. On-the-Fly Static Analysis via Dynamic Bidirected Dyck ReachabilityShankaranarayanan Krishna, Aniket Lal, Andreas Pavlogiannis, Omkar TuppePOPL 2024 · 7 citations
  3. Efficient algorithms for dynamic bidirected Dyck-reachabilityYuanbo Li, Kris Satya, Qirun ZhangPOPL 2022 · 8 citations
  4. Context-Free Language Reachability via Efficient Relation ChainingChenghang Shi, Haofeng Li, Jie Lu, Lian LiOOPSLA 2026
  5. Two Birds with One Stone: Multi-Derivation for Fast Context-Free Language Reachability AnalysisChenghang Shi, Haofeng Li, Yulei Sui, Jie Lu et al.ASE 2023 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines