一种简单可扩展的边界分析和分摊复杂性分析的静态分析
A Simple and Scalable Static Analysis for Bound Analysis and Amortized Complexity Analysis
摘要:
我们提出了第一个可扩展的边界分析,实现摊销的复杂性分析。与早期的工作相比,我们的约束分析不是基于通用推理机,如抽象解释器,软件模型检查器或计算机代数工具。相反,我们直接从抽象的程序模型,我们从程序中获得的相对简单的不变生成和符号执行技术的界限。因此,我们获得了比早期方法更可预测和更可扩展的分析。我们的实验表明,我们的分析是快速的,同时能够计算在一个大型的现实世界的基准挑战循环的界限。从技术上讲,我们的方法是基于有损矢量加法系统(VASS)。我们的边界分析首先计算一个字典排序函数,证明终止的VASS,然后从这个排序函数推导出一个边界。我们的方法实现了摊还分析的基础上,一个新的见解如何字典排序功能可以用于边界分析。
英文摘要:
We present the first scalable bound analysis that achieves amortized complexity analysis. In contrast to earlier work, our bound analysis is not based on general purpose reasoners such as abstract interpreters, software model checkers or computer algebra tools. Rather, we derive bounds directly from abstract program models, which we obtain from programs by comparatively simple invariant generation and symbolic execution techniques. As a result, we obtain an analysis that is more predictable and more scalable than earlier approaches. Our experiments demonstrate that our analysis is fast and at the same time able to compute bounds for challenging loops in a large real-world benchmark. Technically, our approach is based on lossy vector addition systems (VASS). Our bound analysis first computes a lexicographic ranking function that proves the termination of a VASS, and then derives a bound from this ranking function. Our methodology achieves amortized analysis based on a new insight how lexicographic ranking functions can be used for bound analysis.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。