Inferring contracts by abstract interpretation with application to pointer nullness analysis
International Journal on Software Tools for Technology Transfer · 2026-06 · 28 (3) · 303-316
DOI: 10.1007/s10009-026-00846-0 ↗Kurz gefasst
Fachartikel in der Zeitschrift International Journal on Software Tools for Technology Transfer, online erschienen am 16.03.2026. Verfasst von Paul Robert und 2 weiteren Autor:innen. Die Arbeit wurde bisher 1-mal zitiert (Crossref) und nennt 18 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Université Paris-Saclay.
Abstract (Originalsprache)
This paper proposes a semantic static analysis for inferring nullable or non-null pointer annotations in low level programs. The analysis is formulated on a minimalistic imperative language and it is expressed as a least fixpoint computation over pointer annotations calling a sound type-checking algorithm. Therefore, this analysis may be used for more general annotations than pointer nullability. We prove two main properties for this approach: (1) when using a sound and precise type-checker (i.e., without false alarms), it will find an annotation that guarantees the absence of run-time errors due to pointer deference, if such an annotation exists, (2) when the type-checker is only sound, the errors singled out by the analysis are real errors. We report on the implementation of this method in Codex , a static analyzer for C and binary code. Codex already provides an abstract interpretation based type-checker for a rich dependent type systems. The evaluation of our implementation on a benchmark of challenging programs shows that the inference is better than manual annotations obtained by code inspection.
Förderung
- Université Paris-Saclay
Zitieren
APA
Robert, P., Lemerre, M., & Sighireanu, M. (2026). Inferring contracts by abstract interpretation with application to pointer nullness analysis. International Journal on Software Tools for Technology Transfer, 28(3), 303-316. https://doi.org/10.1007/s10009-026-00846-0
Vancouver
Robert P, Lemerre M, Sighireanu M. Inferring contracts by abstract interpretation with application to pointer nullness analysis. International Journal on Software Tools for Technology Transfer. 2026;28(3):303-316. doi:10.1007/s10009-026-00846-0
BibTeX
@article{Robert2026,
author = {Robert, Paul and Lemerre, Matthieu and Sighireanu, Mihaela},
title = {Inferring contracts by abstract interpretation with application to pointer nullness analysis},
journal = {International Journal on Software Tools for Technology Transfer},
year = {2026},
volume = {28},
number = {3},
pages = {303--316},
doi = {10.1007/s10009-026-00846-0}
}
EUVIMED