Publication Details

Programs with Lists are Counter Automata

BOUAJJANI Ahmed, BOZGA Marius, HABERMEHL Peter, IOSIF Radu, MORO Pierre and VOJNAR Tomáš. Programs with Lists are Counter Automata. Formal Methods in System Design, vol. 38, no. 2, 2011, pp. 158-192. ISSN 0925-9856.
Czech title
Programy nad seznamy odpovídají automatům s čítači
Type
journal article
Language
english
Authors
Bouajjani Ahmed (UPAR7)
Bozga Marius (VERIMAG)
Habermehl Peter (UPAR7)
Iosif Radu (VERIMAG)
Moro Pierre (LIAFA UP7/CNRS)
Vojnar Tomáš, prof. Ing., Ph.D. (DITS FIT BUT)
URL
Keywords

formal verification, model checking, programs with linked lists, counter automata, bisimulation

Abstract

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 decidable 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.

Published
2011
Pages
158-192
Journal
Formal Methods in System Design, vol. 38, no. 2, ISSN 0925-9856
Publisher
Springer Verlag
BibTeX
@ARTICLE{FITPUB9565,
   author = "Ahmed Bouajjani and Marius Bozga and Peter Habermehl and Radu Iosif and Pierre Moro and Tom\'{a}\v{s} Vojnar",
   title = "Programs with Lists are Counter Automata",
   pages = "158--192",
   journal = "Formal Methods in System Design",
   volume = 38,
   number = 2,
   year = 2011,
   ISSN = "0925-9856",
   language = "english",
   url = "https://www.fit.vut.cz/research/publication/9565"
}
Back to top