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

由(有条件)终止证明驱动的资源分析

Resource Analysis driven by (Conditional) Termination Proofs

Elvira Albert, Miquel Bofill, Cristina Borralleras, Enrique Martin-Martin, Albert Rubio

摘要:

当程序具有复杂的控制流时,现有的资源分析技术产生成本关系系统(CRS),其成本函数保留程序的复杂流,因此可能无法求解为封闭形式的上界。本文提出了一种新的方法,资源分析,是由终止分析的结果驱动。其基本思想是,终止证明封装的流程的程序,这是相关的成本计算,以便,通过驱动的CRS使用终止证明的生成,我们产生一个线性有界的CRS(LB-CRS)。一个LB-CRS是由成本函数,保证是局部有界的线性排序函数,从而大大简化了CRS的解决过程。我们已经构建了一个新的资源分析工具,名为MaxCore,它由VeryMax终止分析器指导,并使用CoFloCo和PUBS作为CRS求解器。我们对2019年C语言程序复杂性和终止性竞赛的基准测试的实验结果表明,MaxCore优于所有其他资源分析工具。正在考虑接受TPLP。

英文摘要:

When programs feature a complex control flow, existing techniques for resource analysis produce cost relation systems (CRS) whose cost functions retain the complex flow of the program and, consequently, might not be solvable into closed-form upper bounds. This paper presents a novel approach to resource analysis that is driven by the result of a termination analysis. The fundamental idea is that the termination proof encapsulates the flows of the program which are relevant for the cost computation so that, by driving the generation of the CRS using the termination proof, we produce a linearly-bounded CRS (LB-CRS). A LB-CRS is composed of cost functions that are guaranteed to be locally bounded by linear ranking functions and thus greatly simplify the process of CRS solving. We have built a new resource analysis tool, named MaxCore, that is guided by the VeryMax termination analyzer and uses CoFloCo and PUBS as CRS solvers. Our experimental results on the set of benchmarks from the Complexity and Termination Competition 2019 for C Integer programs show that MaxCore outperforms all other resource analysis tools. Under consideration for acceptance in TPLP.

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

↑