首页> 外文会议>ACM SIGPLAN conference on Programming language design and implementation >Proving optimizations correct using parameterized program equivalence
【24h】

Proving optimizations correct using parameterized program equivalence

机译:使用参数化程序等效性证明优化是正确的

获取原文

摘要

Translation validation is a technique for checking that, after an optimization has run, the input and output of the optimization are equivalent. Traditionally, translation validation has been used to prove concrete, fully specified programs equivalent. In this paper we present Parameterized Equivalence Checking (PEC), a generalization of translation validation that can prove the equivalence of parameterized programs. A parameterized program is a partially specified program that can represent multiple concrete programs. For example, a parameterized program may contain a section of code whose only known property is that it does not modify certain variables. By proving parameterized programs equivalent, PEC can prove the correctness of transformation rules that represent complex optimizations once and for all, before they are ever run. We implemented our PEC technique in a tool that can establish the equivalence of two parameterized programs. To highlight the power of PEC, we designed a language for implementing complex optimizations using many-to-many rewrite rules, and used this language to implement a variety of optimizations including software pipelining, loop unrolling, loop unswitching, loop interchange, and loop fusion. Finally, to demonstrate the effectiveness of PEC, we used our PEC implementation to verify that all the optimizations we implemented in our language preserve program behavior.
机译:翻译验证是一种用于在运行优化后检查优化的输入和输出是否等效的技术。传统上,翻译验证已被用来证明具体的,完全指定的程序是等效的。在本文中,我们介绍了参数化等效性检查(PEC),它是翻译验证的概括,可以证明参数化程序的等效性。参数化程序是部分指定的程序,可以表示多个具体程序。例如,参数化程序可能包含一段代码,其唯一已知的属性是它不修改某些变量。通过证明等效的参数化程序,PEC可以在运行之前一劳永逸地证明代表复杂优化的转换规则的正确性。我们在可以建立两个参数化程序等效性的工具中实施了PEC技术。为了强调PEC的强大功能,我们设计了一种语言,用于使用多对多重写规则来实现复杂的优化,并使用该语言来实现各种优化,包括软件管道,循环展开,循环切换,循环交换和循环融合。最后,为了证明PEC的有效性,我们使用了PEC实现来验证我们用语言实现的所有优化都保留了程序行为。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号