On-the-Fly Static Analysis via Dynamic Bidirected Dyck Reachability
Shankaranarayanan Krishna, Aniket Lal, Andreas Pavlogiannis, Omkar Tuppe
摘要
Dyck reachability is a principled, graph-based formulation of a plethora of static analyses. Bidirected graphs are used for capturing dataflow through mutable heap data, and are usual formalisms of demand-driven points-to and alias analyses. The best (offline) algorithm runs in 𝑂 (𝑚 + 𝑛 • 𝛼 (𝑛)) time, where 𝑛 is the number of nodes and 𝑚 is the number of edges in the flow graph, which becomes 𝑂 (𝑛 2 ) in the worst case.
In the everyday practice of program analysis, the analyzed code is subject to continuous change, with source code being added and removed. On-the-fly static analysis under such continuous updates gives rise to dynamic Dyck reachability, where reachability queries run on a dynamically changing graph, following program updates. Naturally, executing the offline algorithm in this online setting is inadequate, as the time required to process a single update is prohibitively large.
In this work we develop a novel dynamic algorithm for bidirected Dyck reachability that has 𝑂 (𝑛 • 𝛼 (𝑛)) worst-case performance per update, thus beating the 𝑂 (𝑛 2 ) bound, and is also optimal in certain settings. We also implement our algorithm and evaluate its performance on on-the-fly data-dependence and alias analyses, and compare it with two best known alternatives, namely (i) the optimal offline algorithm, and (ii) a fully dynamic Datalog solver. Our experiments show that our dynamic algorithm is consistently, and by far, the top performing algorithm, exhibiting speedups in the order of 1000X. The running time of each update is almost always unnoticeable to the human eye, making it ideal for the on-the-fly analysis setting.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Bounded Treewidth, Multiple Context-Free Grammars, and Downward Closures 引用了 Efficient algorithms for dynamic bidirected Dyck-reachability
- Bounded Treewidth, Multiple Context-Free Grammars, and Downward Closures 引用了 The decidability and complexity of interleaved bidirected Dyck reachability
- Subcubic certificates for CFL reachability 引用了 The fine-grained and parallel complexity of andersen's pointer analysis
- Efficient algorithms for dynamic bidirected Dyck-reachability 引用了 Fast graph simplification for interleaved Dyck-reachability
- The decidability and complexity of interleaved bidirected Dyck reachability 引用了 Subcubic certificates for CFL reachability
- The decidability and complexity of interleaved bidirected Dyck reachability 引用了 The fine-grained and parallel complexity of andersen's pointer analysis
- The decidability and complexity of interleaved bidirected Dyck reachability 引用了 Fast graph simplification for interleaved Dyck-reachability
引用它的顶会 Paper2
它引用的 Paper10
- Fast graph simplification for interleaved Dyck-reachabilityYuanbo Li, Qirun Zhang, Thomas W. RepsPLDI 2020 · 30 次引用
- The fine-grained and parallel complexity of andersen's pointer analysisAnders Alnor Mathiasen, Andreas PavlogiannisPOPL 2021 · 22 次引用
- Fixpoints for the masses: programming with first-class Datalog constraintsMagnus Madsen, Ondrej LhotákOOPSLA 2020 · 22 次引用
- Subcubic certificates for CFL reachabilityDmitry Chistikov, Rupak Majumdar, Philipp SchepperPOPL 2022 · 17 次引用
- The decidability and complexity of interleaved bidirected Dyck reachabilityAdam Husted Kjelstrøm, Andreas PavlogiannisPOPL 2022 · 17 次引用
相关 Paper
- Indexing the extended Dyck-CFL reachability for context-sensitive program analysisQingkai Shi, Yongchao Wang, Peisen Yao, Charles ZhangOOPSLA 2022 · 11 次引用
- Iterative-Epoch Online Cycle Elimination for Context-Free Language ReachabilityPei Xu, Yuxiang Lei, Yulei Sui, Jingling XueOOPSLA 2024 · 3 次引用
- On the complexity of bidirected interleaved Dyck-reachabilityYuanbo Li, Qirun Zhang, Thomas W. RepsPOPL 2021 · 12 次引用
- Context-Free Language Reachability via Skewed TabulationYuxiang Lei, Camille Bossut, Yulei Sui, Qirun ZhangPLDI 2024 · 5 次引用
- Exploiting the Sparseness of Control-Flow and Call Graphs for Efficient and On-Demand Algebraic Program AnalysisGiovanna Kobus Conrado, Amir Kafshdar Goharshady, Kerim Kochekov, Yun Chen Tsai 等OOPSLA 2023 · 12 次引用
