arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1910.00241cs.PL
收藏

数据依赖和非线性分析的最优Dyck可达性

Optimal Dyck Reachability for Data-Dependence and Alias Analysis

Krishnendu Chatterjee, Bhavya Choudhary, Andreas Pavlogiannis

摘要:

静态分析的核心问题是Dyck可达性。输入是一个图,其中边用不同类型的开括号和闭括号标记,并且通过括号正确匹配的路径计算可达性信息。我们提出了新的结果与应用程序的别名分析和数据依赖性分析的戴克可达性问题。我们的主要贡献,包括改进的上限以及下限,建立最优性保证,如下。首先,我们考虑Dyck可达性的双向图,这是执行字段敏感点分析的标准方式。给定一个具有$n$节点和$m$边的双向图,我们给出了:(i)一个具有最坏情况运行时间的算法$O(m + n \cdot α(n))$,其中$α(n)$是逆Ackermann函数,改进了以前已知的$O(n^2)$时间界;(ii)一个匹配下界,表明我们的算法对于最坏情况复杂度是最优的;以及(iii)~ $O(m)$时间的最优平均情况上限,改进了先前已知的$O(m \cdot \log n)$界限。其次,我们考虑上下文敏感的数据依赖性分析的问题,其中的任务是获得分析摘要的库代码中存在的回调。我们的算法在几乎线性的时间内对库进行预处理,之后库在客户端分析的复杂性中的贡献仅是线性的,并且仅与调用站点的数量有关。第三,我们证明了Dyck可达性的组合算法,一般的图与真正的次立方界不能得到没有得到次立方组合算法的布尔矩阵乘法,这是一个长期的开放问题。我们还表明,相同的硬度保持不变树宽的图。

英文摘要:

A fundamental algorithmic problem at the heart of static analysis is Dyck reachability. The input is a graph where the edges are labeled with different types of opening and closing parentheses, and the reachability information is computed via paths whose parentheses are properly matched. We present new results for Dyck reachability problems with applications to alias analysis and data-dependence analysis. Our main contributions, that include improved upper bounds as well as lower bounds that establish optimality guarantees, are as follows. First, we consider Dyck reachability on bidirected graphs, which is the standard way of performing field-sensitive points-to analysis. Given a bidirected graph with $n$ nodes and $m$ edges, we present: (i)~an algorithm with worst-case running time $O(m + n \cdot α(n))$, where $α(n)$ is the inverse Ackermann function, improving the previously known $O(n^2)$ time bound; (ii)~a matching lower bound that shows that our algorithm is optimal wrt to worst-case complexity; and (iii)~an optimal average-case upper bound of $O(m)$ time, improving the previously known $O(m \cdot \log n)$ bound. Second, we consider the problem of context-sensitive data-dependence analysis, where the task is to obtain analysis summaries of library code in the presence of callbacks. Our algorithm preprocesses libraries in almost linear time, after which the contribution of the library in the complexity of the client analysis is only linear, and only wrt the number of call sites. Third, we prove that combinatorial algorithms for Dyck reachability on general graphs with truly sub-cubic bounds cannot be obtained without obtaining sub-cubic combinatorial algorithms for Boolean Matrix Multiplication, which is a long-standing open problem. We also show that the same hardness holds for graphs of constant treewidth.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑