Execution Time Program Verification With Tight Bounds

Ana Carolina Silva, Manuel Barbosa, Mario Florido
10/20/2022
cs.PL

Official code: carolinafsilva/time-verification (2 stars, OCaml, last commit 2022-10-20).

Abstract

This paper presents a proof system for reasoning about execution time bounds for a core imperative programming language. Proof systems are defined for three different scenarios: approximations of the worst-case execution time, exact time reasoning, and less pessimistic execution time estimation using amortized analysis.

Show full abstract

We define a Hoare logic for the three cases and prove its soundness with respect to an annotated cost-aware operational semantics. Finally, we define a verification conditions (VC) generator that generates the goals needed to prove program correctness, cost, and termination. Those goals are then sent to the Easycrypt toolset for validation. The practicality of the proof system is demonstrated with an implementation in OCaml of the different modules needed to apply it to example programs. Our case studies are motivated by real-time and cryptographic software.

View on arXivView PDF

Code Implementations(1)

VCGenerator with time bounds for imperative language

20OCaml, eCJun 1, 20224 years ago

Similar Papers

Cite this paper

@article{silva2022execution,
  title  = {Execution Time Program Verification With Tight Bounds},
  author = {Ana Carolina Silva and Manuel Barbosa and Mario Florido},
  year   = {2022},
  eprint = {2210.11105},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.11105}
}

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/2210.11105.svg)](https://codeofpaper.com/paper/2210.11105)

Discussion