Seminar details

Seminar Room 1, ground floor (Building IMAG)
18 December 2026 - 09h00
Formal Verification of Advanced Optimisations for Safety Critical Embedded Systems (Phd Defense)
by Alexandre BERARD from Framatome, Verimag


Abstract: Designing software for embedded systems used in safety-critical contexts – such as an aircraft's flight control, passive automotive safety, or the instrumentation and control systems of a nuclear power plant – is an ever-evolving challenge with growing demand. To achieve this, developers often use synchronous programming, a programming paradigm well-suited to meeting response-time constraints on embedded hardware. Introducing bugs or unexpected software behaviour must absolutely be avoided. This can be verified in several ways, notably through tests conducted after development, which follow the Validation and Verification (V&V) philosophy: the software must comply with its specifications, which in turn must meet operational requirements.
However, certain aspects of critical software development are difficult to verify, in particular the use of black-box tools, even though they cannot be avoided. These include, for instance, real-time operating systems and static code analysers; however, the main focus of this manuscript is on the compilation of programs from a programming language to machine code. CompCert is a C compiler with the distinctive feature of having been verified by formal proof in Rocq, another verification method regarded as the highest level of assurance as it is based on the foundations of logic. Synchronous programs are generally automatically transpiled into the C language, which is then compiled by CompCert into an executable binary file. Prior to this research project, it was observed that automatic C program generators produce programs of an unconventional form, complicating code generation by CompCert – which consequently produces binaries that are significantly slower and larger than those generated by GCC or Clang.
In view of these findings, this work focused in particular on improving the code generation of the CompCert compiler. All these improvements were incorporated into a development fork of CompCert called Chamois-CompCert, which already offered advanced code optimisations for other architectures; we ported these pre-existing optimisations to the ARMv7 architecture and added our own contributions. We also adapted a state-of-the-art algorithm that improves instruction scheduling with a view to reducing stack-register exchanges caused by register allocation. Last, our main contribution concerns the improvement of code generation for memory copies, which are numerous in automatically generated C programs. In particular, we found that it was possible to reduce the number of operations by making the best possible formal use of the static calculation of memory block alignment – an aspect of memory copy code generation that had previously been left unproven, thereby contributing to the reduction of CompCert's trusted computing base.
Most of these improvements have benefited from the Chamois-CompCert translation validation method, which enables programs transformed by unproven oracles to be verified through symbolic execution within a reasonable compilation time. This has greatly simplified their implementation and provides certainty that, if the compiler succeeds in producing a binary without crashing, it will adhere to the semantics of the source program. Our results, obtained rigorously through simple analysis of binary file sizes and by running them repeatedly on the same industrial test suites, show performance on par with, or even exceeding, that of GCC and Clang. By following this principle, it would be possible to further adapt and improve the code generation of memory copies for architectures other than ARMv7.
---
Jury:
- Marc POUZET, Prof ENS PSL - rapporteur
- Alan SCHMITT, DR Inria Rennes - rapporteur
- Sandrine BLAZY, Prof Univ. Rennes - examinatrice
- Frédéric PETROT, Prof Grenoble INP - examinateur
- Sylvain BOULME, MdC Grenoble INP - directeur de thèse
- David MONNIAUX, DR CNRS Grenoble - co-directeur de thèse
- Richard B. KRECKEL, Senior Nuclear Safety Expert at Framatome Erlangen (Germany) - co-encadrant de thèse (invité)



Contact | Site Map | Site powered by SPIP 4.4.28 + AHUNTSIC [CC License]

info visites 57880022