首页> 外文期刊>Theory and Practice of Logic Programming >Control-Flow Refinement by Partial Evaluation,and its Application to Termination and Cost Analysis
【24h】

Control-Flow Refinement by Partial Evaluation,and its Application to Termination and Cost Analysis

机译:部分评估细化控制流及其在终止和成本分析中的应用

获取原文
获取原文并翻译 | 示例
           

摘要

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.
机译:控制流改进是指程序转换,其目的是使隐式控制流显式化,并在程序分析的上下文中使用以提高精度。对于不同的编程模型,已经提出了几种技术,这些技术通常是为提高特定分析的精度而定制的。在本文中,我们探讨了使用Horn子句的部分求值作为通用技术对整数转换系统进行控制流细化的方法。这些是控制流图,其中的边缘带有描述相应节点之间过渡的线性约束注释,并且它们在许多程序分析工具中使用。与其他方法相比,使用部分评估进行控制流优化具有明显的优势,因为稳健性源于部分评估的一般属性。特别是保留了诸如终止和复杂性之类的属性。我们使用结合了基于属性的抽象的部分评估算法,并展示了正确选择属性如何使我们能够证明终止并推断出尖端工具无法处理的有挑战性的程序的复杂性。我们报告了该技术在端接分析仪中的集成情况,并将其用作多个成本分析仪的预处理步骤。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号