...
首页> 外文期刊>Journal of Automated Reasoning >Relational Program Reasoning Using Compiler IR Combining Static Verification and Dynamic Analysis
【24h】

Relational Program Reasoning Using Compiler IR Combining Static Verification and Dynamic Analysis

机译:结合静态验证和动态分析的编译器IR进行关系程序推理

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

获取外文期刊封面封底 >>

       

摘要

AbstractRelational program reasoning is concerned with formally comparing pairs of executions of programs. Prominent examples of relational reasoning are program equivalence checking (which considers executions from different programs) and detecting illicit information flow (which considers two executions of the same program). The abstract logical foundations of relational reasoning are, by now, sufficiently well understood. In this paper, we address some of the challenges that remain to make the reasoningpracticable. Two major ones are dealing with the feature richness of programming languages such as C and with the weakly structured control flow that many real-world programs exhibit. A popular approach to control this complexity is to define the analyses on the level of an intermediate program representation (IR) such as one generated by modern compilers. In this paper we describe the ideas and insights behind IR-based relational verification. We present a program equivalence checker for C programs that operates on LLVM IR. To extend the reach of the approach and to make it more efficient, we show how dynamic analyses can be employed to support and strengthen the static verification. The effectiveness of the approach is demonstrated by automatically verifying equivalence of functions from different implementations of the standard C library.
机译: Abstract 关系程序推理与形式上比较程序执行对有关。关系推理的突出示例是程序等效性检查(考虑到来自不同程序的执行)和检测非法信息流(考虑到同一程序的两次执行)。到目前为止,已经充分理解了关系推理的抽象逻辑基础。在本文中,我们解决了使推理可行仍然存在的一些挑战。有两个主要的方面正在处理诸如C之类的编程语言的功能丰富性,以及许多现实世界程序所表现出的结构较弱的控制流。控制这种复杂性的一种流行方法是在诸如现代编译器生成的中间程序表示(IR)级别上定义分析。在本文中,我们描述了基于IR的关系验证背后的想法和见解。我们介绍了在LLVM IR上运行的C程序的程序等效检查器。为了扩展方法的范围并使其更有效,我们展示了如何使用动态分析来支持和加强静态验证。通过自动验证来自标准C库的不同实现的功能的等效性,证明了该方法的有效性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号