Certifying C program correctness with respect to CompCert with VeriFast

Stefan Wils, Bart Jacobs
10/21/2021
cs.LOcs.PL

No confident code implementation found for this paper.

Abstract

VeriFast is a powerful tool for verification of various correctness properties of C programs using symbolic execution. However, VeriFast itself has not been verified.

Show full abstract

We present a proof-of-concept extension which generates a correctness certificate for each successful verification run individually. This certificate takes the form of a Coq script containing two proofs which, when successfully checked by Coq, together remove the need for trusting in the correctness of VeriFast itself. The first proves a lemma expressing the correctness of the program with respect to a big step operational semantics developed by ourselves, intended to reflect VeriFast's interpretation of C. We have formalized this semantics in Coq as cbsem. This lemma is proven by symbolic execution in Coq, which in turn is implemented by transforming the exported AST of the program into a Coq proposition representing the symbolic execution performed by VeriFast itself. The second proves the correctness of the same C program with respect to CompCert's Clight big step semantics. This proof simply applies our proof of the soundness of cbsem with respect to CompCert Clight to the first proof.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wils2021certifying,
  title  = {Certifying C program correctness with respect to CompCert with VeriFast},
  author = {Stefan Wils and Bart Jacobs},
  year   = {2021},
  eprint = {2110.11034},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.11034}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2110.11034.svg)](https://codeofpaper.com/paper/2110.11034)

Discussion