A Formally Verified Compiler for Lustre

Timothy Bourke 1 Lélio Brun 1 Pierre-Evariste Dagand 2 Xavier Leroy 3 Marc Pouzet 1 Lionel Rieg 4, 5
1 Parkas - Parallélisme de Kahn Synchrone
Inria de Paris, DI-ENS - Département d'informatique de l'École normale supérieure, CNRS - Centre National de la Recherche Scientifique
2 Whisper - Well Honed Infrastructure Software for Programming Environments and Runtimes
Inria de Paris, LIP6 - Laboratoire d'Informatique de Paris 6
Abstract : The correct compilation of block diagram languages like Lustre, Scade, and a discrete subset of Simulink is important since they are used to program critical embedded control software. We describe the specification and verification in an Interactive Theorem Prover of a compilation chain that treats the key aspects of Lustre: sampling, nodes, and delays. Building on CompCert, we show that repeated execution of the generated assembly code faithfully implements the dataflow semantics of source programs. We resolve two key technical challenges. The first is the change from a synchronous dataflow semantics, where programs manipulate streams of values, to an imperative one, where computations manipulate memory sequentially. The second is the verified compilation of an imperative language with encapsulated state to C code where the state is realized by nested records. We also treat a standard control optimization that eliminates unnecessary conditional statements.
Complete list of metadatas

Cited literature [58 references]  Display  Hide  Download

https://hal.inria.fr/hal-01512286
Contributor : Timothy Bourke <>
Submitted on : Saturday, April 22, 2017 - 6:49:47 AM
Last modification on : Thursday, March 21, 2019 - 2:29:49 PM
Long-term archiving on : Sunday, July 23, 2017 - 12:19:14 PM

File

velus-pldi17.pdf
Files produced by the author(s)

Identifiers

  • HAL Id : hal-01512286, version 1

Citation

Timothy Bourke, Lélio Brun, Pierre-Evariste Dagand, Xavier Leroy, Marc Pouzet, et al.. A Formally Verified Compiler for Lustre. PLDI 2017 - 38th ACM SIGPLAN Conference on Programming Language Design and Implementation, ACM, Jun 2017, Barcelone, Spain. ⟨hal-01512286⟩

Share

Metrics

Record views

1801

Files downloads

1227