首页> 外文会议> >Type-Based Amortized Resource Analysis with Integers and Arrays
【24h】

Type-Based Amortized Resource Analysis with Integers and Arrays

机译:带整数和数组的基于类型的摊余资源分析

获取原文

摘要

Proving bounds on the resource consumption of a program by statically analyzing its source code is an important and well-studied problem. Automatic approaches for numeric programs with side effects usually apply abstract interpretation-based invariant generation to derive bounds on loops and recursion depths of function calls. This paper presents an alternative approach to resource-bound analysis for numeric, heap-manipulating programs that uses type-based amortized resource analysis. As a first step towards the analysis of imperative code, the technique is developed for a first-order ML-like language with unsigned integers and arrays. The analysis automatically derives bounds that are multivariate polynomials in the numbers and the lengths of the arrays in the input. Experiments with example programs demonstrate two main advantages of amortized analysis over current abstract interpretation-based techniques. For one thing, amortized analysis can handle programs with non-linear intermediate values like f((n + m)~2). For another thing, amortized analysis is compositional and works naturally for compound programs like f(g(x)).
机译:通过静态分析程序的源代码来证明程序资源消耗的界限是一个重要且需要充分研究的问题。具有副作用的数字程序的自动方法通常应用基于抽象解释的不变式生成来得出循环的边界和函数调用的递归深度。本文为使用基于类型的摊销资源分析的数字堆操作程序提供了一种替代方法,以进行资源绑定分析。作为分析命令性代码的第一步,该技术是针对具有无符号整数和数组的一阶ML类语言而开发的。分析会自动得出边界,边界是输入中数组的数量和长度的多元多项式。通过示例程序进行的实验证明了与当前基于抽象解释的技术相比,摊销分析的两个主要优点。一方面,摊销分析可以处理具有非线性中间值(例如f((n + m)〜2))的程序。另一方面,摊销分析是组合的,对于f(g(x))之类的复合程序很自然地起作用。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号