Formal Verification of Programs Computing the Floating-Point Average - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2015

Formal Verification of Programs Computing the Floating-Point Average

Résumé

The most well-known feature of floating-point arithmetic is the limited precision, which creates round-off errors and inaccuracies. Another important issue is the limited range, which creates underflow and overflow, even if this topic is dismissed most of the time. This article shows a very simple example: the average of two floating-point numbers. As we want to take exceptional behaviors into account, we cannot use the naive formula (x+y)/2. Based on hints given by Sterbenz, we first write an accurate program and formally prove its properties. An interesting fact is that Sterbenz did not give this program, but only specified it. We prove this specification and include a new property: a precise certified error bound. We also present and formally prove a new algorithm that computes the correct rounding of the average of two floating-point numbers. It is more accurate than the previous one and is correct whatever the inputs.
Fichier principal
Vignette du fichier
article.pdf (342.49 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01174892 , version 1 (10-07-2015)

Identifiants

  • HAL Id : hal-01174892 , version 1

Citer

Sylvie Boldo. Formal Verification of Programs Computing the Floating-Point Average. 17th International Conference on Formal Engineering Methods, Nov 2015, Paris, France. pp.17-32. ⟨hal-01174892⟩
416 Consultations
710 Téléchargements

Partager

Gmail Facebook X LinkedIn More