Code optimizations using formally verified properties

Author:

Shi Yao1,Blackham Bernard1,Heiser Gernot1

Affiliation:

1. NICTA and University of New South Wales, Sydney, Australia

Abstract

Formal program verification offers strong assurance of correctness, backed by the strength of mathematical proof. Constructing these proofs requires humans to identify program invariants, and show that they are always maintained. These invariants are then used to prove that the code adheres to its specification. In this paper, we explore the overlap between formal verification and code optimization. We propose two approaches to reuse the invariants derived in formal proofs and integrate them into compilation. The first applies invariants extracted from the proof, while the second leverages the property of program safety (i.e., the absence of bugs). We reuse this information to improve the performance of generated object code. We evaluated these methods on seL4, a real-world formally-verified microkernel, and obtained improvements in average runtime performance (up to 28%) and in worst-case execution time (up to 25%). In macro-benchmarks, we found the performance of para-virtualized Linux running on the microkernel improved by 6-16%.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference28 articles.

1. E. Alkassar M. Hillebrand D. Leinenbach N. Schirmer and A. Starostin . The Verisoft approach to systems verification . In N. Shankar and J. Woodcock editors VSTTE 2008 volume 5295 of LNCS pages 209 -- 224 . Springer 2008. 10.1007/978-3-540-87873-5_18 E. Alkassar M. Hillebrand D. Leinenbach N. Schirmer and A. Starostin. The Verisoft approach to systems verification. In N. Shankar and J. Woodcock editors VSTTE 2008 volume 5295 of LNCS pages 209--224. Springer 2008. 10.1007/978-3-540-87873-5_18

2. J. Andronick B. Chetali and C. Paulin-Mohring . Formal Verification of Security Properties of Smart Card Embedded Source Code . In J. Fitzgerald I. J. Hayes and A. Tarlecki editors FM volume 3582 of LNCS pages 302 -- 317 Newcastle UK Jul 2005 . Springer . 10.1007/11526841_21 J. Andronick B. Chetali and C. Paulin-Mohring. Formal Verification of Security Properties of Smart Card Embedded Source Code. In J. Fitzgerald I. J. Hayes and A. Tarlecki editors FM volume 3582 of LNCS pages 302--317 Newcastle UK Jul 2005. Springer. 10.1007/11526841_21

3. A Structured Approach to Proving Compiler Optimizations Based on Dataflow Analysis

4. Timing Analysis of a Protected Operating System Kernel

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3