Compiler-agnostic Translation Validation

K. Banerjee, C. Karfa
{"title":"Compiler-agnostic Translation Validation","authors":"K. Banerjee, C. Karfa","doi":"10.1145/3172871.3180078","DOIUrl":null,"url":null,"abstract":"The initial behavioral specification goes through significant optimizing transformations before being mapped to architecture during embedded system design. Establishing the validity of these transformations is crucial to ensure that the intended behavior of a system has not been faultily altered during synthesis. Although a lot of these transformations are carried out using some automated tool(s), a significant portion of such transformations are still performed by expert programmers. Thus, there is a need to devise efficient translation validation methodologies to handle diverse code transformations. Many translation validation methods exist which depend on hints provided by the compiler, such as, what transformations have been applied and in what order. However, generating such hints requires a lot of tedious probing into the compilers; the task becomes more demanding when there are humans involved. In this tutorial, we intend to present our translation validation framework to check equivalence between a source program and its transformed version, both represented using the control and data flow graph (CDFG) or Finite State Machine with Data path (FSMD) model or its extension, while being completely unaware of the underlying compiler. The tutorial will start with illustrating common compiler optimization techniques with their impact on performance in terms of power, area and timing. Next, we will discuss basic program verification techniques like Hoare logic, Theorem Proving, Model Checking, Program equivalence using SMT solvers, etc. We will show why equivalence checking method is most suitable for verifying compiler optimizations. Next, we will present our FSMD based equivalence checking method in detail. Next, we will discuss how bisimulation relations can be inferred from equivalence checkers. We conclude with discussing the future direction of research in this domain.","PeriodicalId":199550,"journal":{"name":"Proceedings of the 11th Innovations in Software Engineering Conference","volume":"106 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-02-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 11th Innovations in Software Engineering Conference","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3172871.3180078","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

The initial behavioral specification goes through significant optimizing transformations before being mapped to architecture during embedded system design. Establishing the validity of these transformations is crucial to ensure that the intended behavior of a system has not been faultily altered during synthesis. Although a lot of these transformations are carried out using some automated tool(s), a significant portion of such transformations are still performed by expert programmers. Thus, there is a need to devise efficient translation validation methodologies to handle diverse code transformations. Many translation validation methods exist which depend on hints provided by the compiler, such as, what transformations have been applied and in what order. However, generating such hints requires a lot of tedious probing into the compilers; the task becomes more demanding when there are humans involved. In this tutorial, we intend to present our translation validation framework to check equivalence between a source program and its transformed version, both represented using the control and data flow graph (CDFG) or Finite State Machine with Data path (FSMD) model or its extension, while being completely unaware of the underlying compiler. The tutorial will start with illustrating common compiler optimization techniques with their impact on performance in terms of power, area and timing. Next, we will discuss basic program verification techniques like Hoare logic, Theorem Proving, Model Checking, Program equivalence using SMT solvers, etc. We will show why equivalence checking method is most suitable for verifying compiler optimizations. Next, we will present our FSMD based equivalence checking method in detail. Next, we will discuss how bisimulation relations can be inferred from equivalence checkers. We conclude with discussing the future direction of research in this domain.
与编译器无关的翻译验证
在嵌入式系统设计期间,在映射到体系结构之前,初始行为规范要经过重要的优化转换。建立这些转换的有效性对于确保系统的预期行为在合成期间没有被错误地改变是至关重要的。尽管许多这样的转换是使用一些自动化工具来完成的,但是这些转换的很大一部分仍然是由专业程序员执行的。因此,需要设计有效的翻译验证方法来处理不同的代码转换。存在许多翻译验证方法,这些方法依赖于编译器提供的提示,例如应用了哪些转换以及以什么顺序进行转换。然而,生成这样的提示需要对编译器进行大量乏味的探查;当有人类参与时,这项任务变得更加艰巨。在本教程中,我们打算介绍我们的翻译验证框架,以检查源程序及其转换版本之间的等价性,两者都使用控制和数据流图(CDFG)或具有数据路径的有限状态机(FSMD)模型或其扩展来表示,同时完全不知道底层编译器。本教程将首先说明常见的编译器优化技术及其在功率、面积和时间方面对性能的影响。接下来,我们将讨论基本的程序验证技术,如霍尔逻辑、定理证明、模型检查、使用SMT求解器的程序等效等。我们将说明为什么等效检查方法最适合用于验证编译器优化。接下来,我们将详细介绍基于FSMD的等效性检验方法。接下来,我们将讨论如何从等价检查器中推断出双模拟关系。最后讨论了该领域未来的研究方向。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信