Passer à la navigation principale Passer à la recherche Passer au contenu principal

How to avoid proving the absence of integer overflows

  • INRIA Saclay, Laboratoire de Recherche en Informatique (LRI), Université Paris Sud
  • INRIA

Résultats de recherche: Le chapitre dans un livre, un rapport, une anthologie ou une collectionContribution à une conférenceRevue par des pairs

Résumé

When proving safety of programs, we must show, in particular, the absence of integer overflows. Unfortunately, there are lots of situations where performing such a proof is extremely difficult, because the appropriate restrictions on function arguments are invasive and may be hard to infer. Yet, in certain cases, we can relax the desired property and only require the absence of overflow during the first n steps of execution, n being large enough for all practical purposes. It turns out that this relaxed property can be easily ensured for large classes of algorithms, so that only a minimal amount of proof is needed, if at all. The idea is to restrict the set of allowed arithmetic operations on the integer values in question, imposing a “speed limit” on their growth. For example, if we repeatedly increment a 64-bit integer, starting from zero, then we will need at least 264 steps to reach an overflow; on current hardware, this takes several hundred years. When we do not expect any single execution of our program to run that long, we have effectively proved its safety against overflows of all variables with controlled growth speed. In this paper, we give a formal explanation of this approach, prove its soundness, and show how it is implemented in the context of deductive verification.

langue originaleAnglais
titreVerified Software
Sous-titreTheories, Tools, and Experiments - 7th International Conference, VSTTE 2015, Revised Selected Papers
rédacteurs en chefSanjit A. Seshia, Arie Gurfinkel
EditeurSpringer Verlag
Pages94-109
Nombre de pages16
ISBN (imprimé)9783319296128
Les DOIs
étatPublié - 1 janv. 2016
Modification externeOui
Evénement7th International Conference on Verified Software: Theories, Tools, and Experiments, VSTTE 2015 - San Francisco, États-Unis
Durée: 18 juil. 201519 juil. 2015

Série de publications

NomLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume9593
ISSN (imprimé)0302-9743
ISSN (Electronique)1611-3349

Une conférence

Une conférence7th International Conference on Verified Software: Theories, Tools, and Experiments, VSTTE 2015
Pays/TerritoireÉtats-Unis
La villeSan Francisco
période18/07/1519/07/15

Empreinte digitale

Examiner les sujets de recherche de « How to avoid proving the absence of integer overflows ». Ensemble, ils forment une empreinte digitale unique.

Contient cette citation