Affiliation:
1. Seoul National University, South Korea
2. Massachusetts Institute of Technology, USA
Abstract
Production compilers such as GCC and LLVM are large complex software systems, for which achieving a high level of reliability is hard. Although testing is an effective method for finding bugs, it alone cannot guarantee a high level of reliability. To provide a higher level of reliability, many approaches that examine compilers' internal logics have been proposed. However, none of them have been successfully applied to major optimizations of production compilers.
This paper presents Crellvm: a verified credible compilation framework for LLVM, which can be used as a systematic way of providing a high level of reliability for major optimizations in LLVM. Specifically, we augment an LLVM optimizer to generate translation results together with their correctness proofs, which can then be checked by a proof checker formally verified in Coq. As case studies, we applied our approach to two major optimizations of LLVM: register promotion mem2reg and global value numbering gvn, having found four new miscompilation bugs (two in each).
Funder
Samsung Research Funding Center of Samsung Electronics
Publisher
Association for Computing Machinery (ACM)
Subject
Computer Graphics and Computer-Aided Design,Software
Reference48 articles.
1. Supplementary material for this paper available at http://sf.snu.ac.kr/ crellvm/ . Supplementary material for this paper available at http://sf.snu.ac.kr/ crellvm/ .
2. Andrew W. Appel. 2001. Foundational Proof-Carrying Code (LICS ’01). Andrew W. Appel. 2001. Foundational Proof-Carrying Code (LICS ’01).
3. The Coq Proof Assistant. https://coq.inria.fr/ . The Coq Proof Assistant. https://coq.inria.fr/ .
4. Formal Verification of an SSA-Based Middle-End for CompCert
Cited by
2 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Alive2: bounded translation validation for LLVM;Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation;2021-06-18
2. A Self-certifying Compilation Framework for WebAssembly;Lecture Notes in Computer Science;2021