论文标题

指数自动摊销资源分析

Exponential Automatic Amortized Resource Analysis

论文作者

Kahn, David M, Hoffmann, Jan

论文摘要

自动摊销资源分析(AARA)是一种基于类型的技术,用于在程序的资源使用情况下推断混凝土(非反应)界限。 AARA上的现有工作集中在输入大小的多项式上。本文介绍了AARA的和扩展到指数界的界限,以保留技术的好处,例如基于线性约束解决方案的组成性和有效的推理。一个关键的想法是将第二类的斯特林数字用作潜在函数的基础,这些函数与多项式AARA中的二项式系数起着相同的作用。为了使与现有分析的相似之处形式化,本文介绍了AARA的一般方法,该方法是由多项式版本实例化的,指数版本以及具有潜在功能的组合系统,这些功能由Stirling数字和二项式系数的产品形成。指数AARA的健全性在操作成本语义方面得到了证明,并且对代表性示例程序的分析证明了新分析的有效性。

Automatic amortized resource analysis (AARA) is a type-based technique for inferring concrete (non-asymptotic) bounds on a program's resource usage. Existing work on AARA has focused on bounds that are polynomial in the sizes of the inputs. This paper presents and extension of AARA to exponential bounds that preserves the benefits of the technique, such as compositionality and efficient type inference based on linear constraint solving. A key idea is the use of the Stirling numbers of the second kind as the basis of potential functions, which play the same role as the binomial coefficients in polynomial AARA. To formalize the similarities with the existing analyses, the paper presents a general methodology for AARA that is instantiated to the polynomial version, the exponential version, and a combined system with potential functions that are formed by products of Stirling numbers and binomial coefficients. The soundness of exponential AARA is proved with respect to an operational cost semantics and the analysis of representative example programs demonstrates the effectiveness of the new analysis.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源