基于部分求值的控制流精化及其在终止性和成本分析中的应用
Control-Flow Refinement by Partial Evaluation, and its Application to Termination and Cost Analysis
摘要:
控制流细化是指程序转换,其目的是使隐式控制流显式化,并在程序分析的上下文中使用以提高精度。已经为不同的编程模型提出了几种技术,通常是为了提高特定分析的精度而定制的。在本文中,我们将探讨使用部分评估的霍恩条款作为一种通用的技术,控制流细化整数转换系统。这些是控制流图,其中边用描述相应节点之间的转换的线性约束进行注释,并且它们用于许多程序分析工具中。使用部分求值进行控制流细化比其他方法具有明显的优势,因为部分求值的一般属性可以保证可靠性;特别是保留了终止和复杂性等属性。我们使用的部分评估算法,将基于属性的抽象,并显示如何正确选择的属性,使我们能够证明终止和推断的复杂性,具有挑战性的程序,不能处理的最先进的工具。我们报告的技术在终止分析仪的集成,其使用作为一个预处理步骤的几个成本分析仪。正在考虑接受TPLP。
英文摘要:
Control-flow refinement refers to program transformations whose purpose is to make implicit control-flow explicit, and is used in the context of program analysis to increase precision. Several techniques have been suggested for different programming models, typically tailored to improving precision for a particular analysis. In this paper we explore the use of partial evaluation of Horn clauses as a general-purpose technique for control-flow refinement for integer transitions systems. These are control-flow graphs where edges are annotated with linear constraints describing transitions between corresponding nodes, and they are used in many program analysis tools. Using partial evaluation for control-flow refinement has the clear advantage over other approaches in that soundness follows from the general properties of partial evaluation; in particular, properties such as termination and complexity are preserved. We use a partial evaluation algorithm incorporating property-based abstraction, and show how the right choice of properties allows us to prove termination and to infer complexity of challenging programs that cannot be handled by state-of-the-art tools. We report on the integration of the technique in a termination analyzer, and its use as a preprocessing step for several cost analyzers. Under consideration for acceptance in TPLP.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。