Programs with Lists are Counter Automata - Archive ouverte HAL Accéder directement au contenu
Article Dans Une Revue Formal Methods in System Design Année : 2011

Programs with Lists are Counter Automata

Résumé

We address the problem of verifying programs manipulating one-selector linked data structures. We propose and study in detail an application of counter automata as an accurate abstract model for this problem. We let control states of the counter automata correspond to abstract heap graphs where list segments without sharing are collapsed, and use counters to keep track of the number of elements in these segments. As a significant theoretical result, we show that the obtained counter automata are bisimilar to the original programs. Moreover, from a practical point of view, our translation allows one to apply efficient automatic analysis techniques and tools developed for counter automata (integer programs) in order to verify both safety as well as termination of list-manipulating programs. As another theoretical contribution, we prove that if the control of the generated counter automata does not contain nested loops (i.e., these automata are flat), both safety and termination are de-cidable for the original programs. Subsequently, we generalise our counter-automata-based model to keep track of ordering properties over lists storing ordered data. Finally, we show effectiveness of our approach by verifying automatically safety as well as termination of several sorting programs.
Fichier principal
Vignette du fichier
Fmsd10.pdf (443.95 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01418868 , version 1 (17-12-2016)

Licence

Domaine public

Identifiants

Citer

Ahmed A Bouajjani, Marius Bozga, Peter Habermehl, Radu Iosif, Pierre Moro, et al.. Programs with Lists are Counter Automata. Formal Methods in System Design, 2011, 38 (2), pp.158-192. ⟨10.1007/s10703-011-0111-7⟩. ⟨hal-01418868⟩
319 Consultations
66 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More