arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1701.04914cs.PL
收藏

加权递归状态机的快速算法

Faster Algorithms for Weighted Recursive State Machines

Krishnendu Chatterjee, Bernhard Kragl, Samarth Mishra, Andreas Pavlogiannis

摘要:

下推系统(PDS)和递归状态机(RSM)是线性等价的,是过程间分析的标准模型。然而,RSM更方便,因为它们(a)显式地对函数调用和返回进行建模,并且(b)为算法分析指定许多自然参数,例如,入口和出口的数量。我们考虑了一个一般框架,其中RSM转换是从半环标记的,并且路径属性是代数的半环运算,它可以建模,例如,过程间可达性和可扩展性分析问题。我们的主要贡献是几个基本问题的新算法。与将RSM直接转换为PDS和PDS的最著名的现有边界相比,我们的分析算法提高了有限高度半环的复杂性(包含可达性和标准的可达性)。我们进一步考虑从我们的算法计算的表示结构中提取距离值的问题,并给出有效的算法,区分一次性预处理的复杂性从每个单独的查询的复杂性。我们的算法的另一个优点是,我们的改进结转到并发设置,在那里我们提高了最知名的并发RSM上下文有界分析的复杂性。最后,我们提供了一个原型实现,使一个显着的速度从SLAM/SDV项目的几个基准。

英文摘要:

Pushdown systems (PDSs) and recursive state machines (RSMs), which are linearly equivalent, are standard models for interprocedural analysis. Yet RSMs are more convenient as they (a) explicitly model function calls and returns, and (b) specify many natural parameters for algorithmic analysis, e.g., the number of entries and exits. We consider a general framework where RSM transitions are labeled from a semiring and path properties are algebraic with semiring operations, which can model, e.g., interprocedural reachability and dataflow analysis problems. Our main contributions are new algorithms for several fundamental problems. As compared to a direct translation of RSMs to PDSs and the best-known existing bounds of PDSs, our analysis algorithm improves the complexity for finite-height semirings (that subsumes reachability and standard dataflow properties). We further consider the problem of extracting distance values from the representation structures computed by our algorithm, and give efficient algorithms that distinguish the complexity of a one-time preprocessing from the complexity of each individual query. Another advantage of our algorithm is that our improvements carry over to the concurrent setting, where we improve the best-known complexity for the context-bounded analysis of concurrent RSMs. Finally, we provide a prototype implementation that gives a significant speed-up on several benchmarks from the SLAM/SDV project.

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

↑