Lune

POPL2022顶会

Efficient algorithms for dynamic bidirected Dyck-reachability

Yuanbo Li, Kris Satya, Qirun Zhang

2022年份
8被引次数
6顶会引用

摘要

Dyck-reachability is a fundamental formulation for program analysis, which has been widely used to capture properly-matched-parenthesis program properties such as function calls/returns and field writes/reads. Bidirected Dyck-reachability is a relaxation of Dyck-reachability on bidirected graphs where each edge 𝑢 𝑖 -→ 𝑣 labeled by an open parenthesis " 𝑖 " is accompanied with an inverse edge 𝑣 𝑖 -→ 𝑢 labeled by the corresponding close parenthesis " 𝑖 ", and vice versa. In practice, many client analyses such as alias analysis adopt the bidirected Dyck-reachability formulation. Bidirected Dyck-reachability admits an optimal reachability algorithm. Specifically, given a graph with 𝑛 nodes and 𝑚 edges, the optimal bidirected Dyck-reachability algorithm computes all-pairs reachability information in 𝑂 (𝑚) time.

This paper focuses on the dynamic version of bidirected Dyck-reachability. In particular, we consider the problem of maintaining all-pairs Dyck-reachability information in bidirected graphs under a sequence of edge insertions and deletions. Dynamic bidirected Dyck-reachability can formulate many program analysis problems in the presence of code changes. Unfortunately, solving dynamic graph reachability problems is challenging. For example, even for maintaining transitive closure, the fastest deterministic dynamic algorithm requires 𝑂 (𝑛 2 ) update time to achieve 𝑂 (1) query time. All-pairs Dyck-reachability is a generalization of transitive closure. Despite extensive research on incremental computation, there is no algorithmic development on dynamic graph algorithms for program analysis with worst-case guarantees.

Our work fills the gap and proposes the first dynamic algorithm for Dyck reachability on bidirected graphs. Our dynamic algorithms can handle each graph update (i.e., edge insertion and deletion) in 𝑂 (𝑛 • 𝛼 (𝑛)) time and support any all-pairs reachability query in 𝑂 (1) time, where 𝛼 (𝑛) is the inverse Ackermann function. We have implemented and evaluated our dynamic algorithm on an alias analysis and a context-sensitive datadependence analysis for Java. We compare our dynamic algorithms against a straightforward approach based on the 𝑂 (𝑚)-time optimal bidirected Dyck-reachability algorithm and a recent incremental Datalog solver. Experimental results show that our algorithm achieves orders of magnitude speedup over both approaches.

CCS Concepts: • Theory of computation → Dynamic graph algorithms; • Software and its engineering → Automated static analysis.

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

引用它的顶会 Paper6

问问它们各自怎么用它

它引用的顶会 Paper4

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖