Drawing uniformly at random in dynamic sets of paths - Archive ouverte HAL Accéder directement au contenu
Pré-Publication, Document De Travail Année : 2019

Drawing uniformly at random in dynamic sets of paths

Résumé

In the case of coverage biased random testing of programs, random generation is used to first draw a set of paths from the control flow graph of the program. Then, some solver is used for trying to derive input values that leads the program to traverse these paths at run time. A well-known problem is that not all paths of the control flow graph correspond to feasible runs. Such paths must be rejected and other paths must be drawn. This is a severe limitation in the case of programs with a high ratio of infeasible paths. We propose a new technique that uses the information about the infea-sible prefixes already detected to prevent any of their extensions from being drawn. Based on uniform drawing from all the paths, our drawing algorithm remains uniform among the paths that do not have a known infeasible prefix. As the number of infeasible paths is often large, their elimination from the subsequent drawings is a substantial improvement w.r.t. the classical rejection method. Preliminary experiments are reported and commented.
Fichier principal
Vignette du fichier
DynamicDrawing.pdf (440.14 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-02314807 , version 1 (13-10-2019)
hal-02314807 , version 2 (02-07-2020)

Identifiants

  • HAL Id : hal-02314807 , version 1

Citer

Frédéric Voisin, M.-C Gaudel. Drawing uniformly at random in dynamic sets of paths. 2019. ⟨hal-02314807v1⟩
63 Consultations
91 Téléchargements

Partager

Gmail Mastodon Facebook X LinkedIn More