Semantic foundations and inference of non-null annotations - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Rapport (Rapport De Recherche) Année : 2008

Semantic foundations and inference of non-null annotations

Thomas Jensen
  • Fonction : Auteur
  • PersonId : 831246
David Pichardie

Résumé

This paper proposes a semantics-based automatic null pointer analysis for inferring non-null annotations of fields in object-oriented programs. The analysis is formulated for a minimalistic OO language and is expressed as a constraint-based abstract interpretation of the program which for each field of a class infers whether the field is definitely non-null or possibly null after object initialization. The analysis is proved correct with respect to an operational semantics of the minimalistic OO language. This correctness proof has been machine checked using the Coq proof assistant. We also prove the analysis complete with respect to the non-null type system proposed by Fähndrich and Leino, in the sense that for every typable program the analysis is able to prove the absence of null dereferences without any hand-written annotations. Experiments with a prototype implementation of the analysis show that the inference is feasible for large programs.
Fichier principal
Vignette du fichier
RR-6482.pdf (526.66 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

inria-00266171 , version 1 (21-03-2008)
inria-00266171 , version 2 (25-03-2008)

Identifiants

  • HAL Id : inria-00266171 , version 2

Citer

Laurent Hubert, Thomas Jensen, David Pichardie. Semantic foundations and inference of non-null annotations. [Research Report] RR-6482, INRIA. 2008. ⟨inria-00266171v2⟩
353 Consultations
151 Téléchargements

Partager

Gmail Facebook X LinkedIn More