Proceedings article
Amadéo Gilliéron, Nga Nguyen, Youssef Souissi,, Guillaume Guérard
Framework for Automated C Code Correction Using Generative AI (opens in a new tab)
Source: RESSI 2026: Conference on Research and Education in Information Systems Security, Clervaux, Luxembourg
MISRA-C is a set of rules and recommendations designed to guide the use of the C programming language in order to improve the reliability and maintainability of software. In particular, it is adopted in critical embedded systems where failures resulting from ambiguous or undefined behavior of the language can lead to severe consequences. This standard is widely used and referenced in high-level frameworks and standards such as ISO 26262 (up to ASIL-D) for the automotive industry, as well as by organizations and authorities such as ANSSI in the context of secure software development in the C language. In the current state of the art, the detection of MISRA-C rule violations has been the subject of extensive research, notably through mature static analysis tools capable of effectively identifying non-conformities. However, the automatic correction of these violations remains a largely open issue: existing approaches are incomplete and often limited to simple rules, or require significant human intervention. This makes it a research area that is currently being structured and explored in greater depth. It is in this context that this paper presents work in progress, conducted as part of the CIFRE thesis “AI-Enhanced Static Analysis for the Detection and Correction of Vulnerabilities,” focusing on a framework for the automatic correction of MISRA-C violations. The framework aims to integrate generative artificial intelligence into the software compliance process. It leverages large language models (LLMs) to iteratively generate and refine fixes in the C programming language. An extraction method is used to specifically identify the portions of the code relevant to the correction, allowing interventions to be focused on the elements actually affected by the violations. Furthermore, this approach is combined with static analysis and immediate feedback mechanisms, which ensure compliance with MISRA-C rules while preserving the code’s functional behavior.
@conference{gillieron_4283,
title = {Framework for Automated C Code Correction Using Generative AI},
author = {Amadéo Gilliéron, Nga Nguyen, Youssef Souissi, and Guillaume Guérard},
url = {https://ressi2026.sciencesconf.org/},
year = {2026},
date = {2026-05-01},
booktitle = {RESSI 2026: Conference on Research and Education in Information Systems Security},
address = {Clervaux, Luxembourg},
abstract = {MISRA-C is a set of rules and recommendations designed to guide the use of the C language in order to improve software reliability and maintainability. In particular, it is adopted in critical embedded systems where failures resulting from ambiguous and undefined behavior of the language can lead to severe consequences. This standard is widely used and referenced in high-level frameworks and standards such as ISO 26262 (up to ASIL-D) for the automotive industry, as well as by organizations and authorities such as ANSSI in the context of secure software development in the C language. In the current state of the art, the detection of MISRA-C rule violations has been the subject of extensive research, notably through mature static analysis tools capable of effectively identifying non-conformities. However, the automatic correction of these violations remains a largely open issue: existing approaches are incomplete and often limited to simple rules, or require significant human intervention. This makes it a research area that is currently being structured and explored in greater depth. It is in this context that this paper presents work in progress, conducted as part of the CIFRE thesis “AI-Enhanced Static Analysis for the Detection and Correction of Vulnerabilities,” focusing on a framework for the automatic correction of MISRA-C violations. The framework aims to integrate generative artificial intelligence into the software compliance process. It leverages large language models (LLMs) to iteratively generate and refine fixes in the C programming language. An extraction method is used to specifically identify the portions of the code relevant to the correction, allowing interventions to be focused on the elements actually affected by the violations. Furthermore, this approach is combined with static analysis and immediate feedback mechanisms, which ensure compliance with MISRA-C rules while preserving the code’s functional behavior.},
note = {May 27–29, 2026},
keywords = {Automated Program Repair, Safety standards, Large Language Model, MISRA-C},
pubstate = {published},
tppubtype = {conference}
}
