Towards the formalization of SPARK 2014 semantics with explicit run-time checks using coq

Author:

Courtieu Pierre1,Aponte Maria Virginia1,Crolard Tristan1,Zhang Zhi2,Robby Fnu2,Belt Jason3,Hatcliff John3,Guitton Jerome4,Jennings Trevor5

Affiliation:

1. Conservatoire National des Arts et Metiers, Paris, France

2. Kansas State University, Manhattan, KS, USA

3. Kansas State University, Manhattan, USA

4. AdaCore, Paris, France

5. Altran, Bath, England UK

Abstract

We present the first steps of a broad effort to develop a formal representation of SPARK 2014 suitable for supporting machine-verified static analyses and translations. In our initial work, we have developed technology for translating the GNAT compiler's abstract syntax trees into the Coq proof assistant, and we have formalized in Coq the dynamic semantics for a toy subset of the SPARK 2014 language. SPARK 2014 programs must ensure the absence of certain run-time errors (for example, those arising while performing division by zero, accessing non existing array cells, overflow on integer computation). The main novelty in our semantics is the encoding of (a small part of) the run-time checks performed by the compiler to ensure that any well-formed terminating SPARK programs do not lead to erroneous execution. This and other results are mechanically proved using the Coq proof assistant. The modeling of on-the-fly run-time checks within the semantics lays the foundation for future work on mechanical reasoning about SPARK 2014 program correctness (in the particular area of robustness) and for studying the correctness of compiler optimizations concerning run-time checks, among others.

Publisher

Association for Computing Machinery (ACM)

Reference11 articles.

1. Ada reference manual. http://www.ada-auth.org/standards/ada12.html. Ada reference manual. http://www.ada-auth.org/standards/ada12.html.

2. Adacore Gnatprove tool. http://www.open-do.org/projects/hi-lite/gnatprove/. Adacore Gnatprove tool. http://www.open-do.org/projects/hi-lite/gnatprove/.

3. Adacore Hi-Lite project. http://www.open-do.org/projects/hi-lite/. Adacore Hi-Lite project. http://www.open-do.org/projects/hi-lite/.

4. Jago translation tool. https://github.com/sireum/bakar/tree/master/sireum-bakarjago. Jago translation tool. https://github.com/sireum/bakar/tree/master/sireum-bakarjago.

5. Sireum software analysis platform. http://www.sireum.org. Sireum software analysis platform. http://www.sireum.org.

Cited by 2 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. HOL4P4: Mechanized Small-Step Semantics for P4;Proceedings of the ACM on Programming Languages;2024-04-29

2. Focused Certification of an Industrial Compilation and Static Verification Toolchain;Software Engineering and Formal Methods;2017

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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