arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1410.7724cs.PLcs.DS
收藏

定树宽RSM代数路径性质的快速算法

Faster Algorithms for Algebraic Path Properties in RSMs with Constant Treewidth

Krishnendu Chatterjee, Rasmus Ibsen-Jensen, Andreas Pavlogiannis, Prateesh Goyal

摘要:

过程间分析是程序设计语言中许多应用的核心,例如别名分析、常数传播等。递归状态机(RSM)是过程间分析的标准模型。我们考虑一个一般框架与RSM的过渡标记从一个半环,和路径属性是代数与半环操作。具有代数路径属性的RSM可以建模过程间的最短路径分析问题、最短路径问题、最可能路径问题等。传统的过程间分析算法主要关注路径属性,其出发点是以\emph{fixed}作为特定方法的入口点。在这项工作中,我们考虑可能的多个查询所需的许多应用程序,如别名分析。对多个查询的研究使我们能够在\emph{one-time}预处理与\emph{each individual}查询的资源使用之间引入非常重要的算法区别。我们考虑的第二个方面是,大多数程序的控制流图具有恒定的树宽。我们的主要贡献是简单和可实现的算法,支持多个查询代数路径属性的RSM具有恒定的树宽。我们的理论研究结果表明,我们的算法有小的额外的一次性预处理,但可以回答后续查询显着更快的速度相比,目前最知名的解决方案的几个重要的问题,如程序间的可达性和最短路径,我们提供了一个原型实现程序间的可达性和程序内最短路径,给出了显着的速度在几个基准测试。

英文摘要:

Interprocedural analysis is at the heart of numerous applications in programming languages, such as alias analysis, constant propagation, etc. Recursive state machines (RSMs) are standard models for interprocedural analysis. We consider a general framework with RSMs where the transitions are labeled from a semiring, and path properties are algebraic with semiring operations. RSMs with algebraic path properties can model interprocedural dataflow analysis problems, the shortest path problem, the most probable path problem, etc. The traditional algorithms for interprocedural analysis focus on path properties where the starting point is \emph{fixed} as the entry point of a specific method. In this work, we consider possible multiple queries as required in many applications such as in alias analysis. The study of multiple queries allows us to bring in a very important algorithmic distinction between the resource usage of the \emph{one-time} preprocessing vs for \emph{each individual} query. The second aspect that we consider is that the control flow graphs for most programs have constant treewidth. Our main contributions are simple and implementable algorithms that support multiple queries for algebraic path properties for RSMs that have constant treewidth. Our theoretical results show that our algorithms have small additional one-time preprocessing, but can answer subsequent queries significantly faster as compared to the current best-known solutions for several important problems, such as interprocedural reachability and shortest path. We provide a prototype implementation for interprocedural reachability and intraprocedural shortest path that gives a significant speed-up on several benchmarks.

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

↑