Sequential generation of structured arrays and its deductive verification - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2015

Sequential generation of structured arrays and its deductive verification

Résumé

A structured array is an array satisfying given constraints, such as being sorted or having no duplicate values. Generation of all arrays with a given structure up to some given length has many applications, including bounded exhaustive testing. A sequential generator of structured arrays can be defined by two C functions: the first one computes an initial array, and the second one steps from one array to the next one according to some total order on the set of arrays. We formally specify with ACSL annotations that the generated arrays satisfy the prescribed structural constraints (soundness property) and that the generation is in increasing lexicographic order (progress property). We refine this specification into two programming and specification patterns: one for generation in lexicographic order and one for generation by filtering the output of another generator. We distribute a library of generators instantiating these patterns. After adding suitable loop invariants we automatically prove the soundness and progress properties with the Frama-C platform.
Fichier principal
Vignette du fichier
ggp15:ip-author.pdf (205.79 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01228995 , version 1 (16-11-2015)

Identifiants

  • HAL Id : hal-01228995 , version 1

Citer

Richard Genestier, Alain Giorgetti, Guillaume Petiot. Sequential generation of structured arrays and its deductive verification. TAP 2015, 9th Int. Conf. of Tests and Proofs, 2015, L'Aquila, Italy. pp.109--128. ⟨hal-01228995⟩
372 Consultations
162 Téléchargements

Partager

Gmail Facebook X LinkedIn More