Checking Array Bounds by Abstract Interpretation and Symbolic Expressions - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2018

Checking Array Bounds by Abstract Interpretation and Symbolic Expressions

Résumé

Array access out of bounds is a typical programming error. From the '70s, static analysis has been used to identify where such errors actually occur at runtime, through abstract interpretation into linear constraints. However, feasibility and scalability to modern object-oriented code has not been established yet. This article builds on previous work on linear constraints and shows that the result does not scale, when polyhedra implement the linear constraints, while the more abstract zones scale to the analysis of medium-size applications. Moreover, this article formalises the inclusion of symbolic expressions in the constraints and shows that this improves its precision. Expressions are automatically selected on-demand. The resulting analysis applies to code with dynamic memory allocation and arrays held in expressions. It is sound, also in the presence of arbitrary side-effects. It is fully defined in the abstract interpretation framework and does not use any code instrumen-tation. Its proof of correctness, its implementation inside the commercial Julia analyzer and experiments on third-party code complete the work.
Fichier principal
Vignette du fichier
ijcar18.pdf (371.04 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01921666 , version 1 (14-11-2018)

Identifiants

Citer

Fausto Spoto, Etienne Payet. Checking Array Bounds by Abstract Interpretation and Symbolic Expressions. 9th International Joint Conference on Automated Reasoning (IJCAR'18), Jul 2018, Oxford, United Kingdom. pp.706-722, ⟨10.1007/978-3-319-94205-6_46⟩. ⟨hal-01921666⟩
85 Consultations
446 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More