Skip to Main content Skip to Navigation
Conference papers

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
LIP6 - Laboratoire d'Informatique de Paris 6, Inria de Paris
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
Contributor : Timothy Bourke <>
Submitted on : Saturday, April 22, 2017 - 6:49:47 AM
Last modification on : Tuesday, January 12, 2021 - 9:42:02 AM
Long-term archiving on: : Sunday, July 23, 2017 - 12:19:14 PM


Files produced by the author(s)


  • HAL Id : hal-01512286, version 1


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⟩



Record views


Files downloads