Liveness-Driven Random Program Generation

Abstract : Randomly generated programs are popular for testing compilers and program analysis tools, with hundreds of bugs in real-world C compilers found by random testing. However, existing random program generators may generate large amounts of dead code (computations whose result is never used). This leaves relatively little code to exercise a target compiler's more complex optimizations. To address this shortcoming, we introduce liveness-driven random program generation. In this approach the random program is constructed bottom-up, guided by a simultaneous structural data-ow analysis to ensure that the generator never generates dead code. The algorithm is implemented as a plugin for the Frama-C framework. We evaluate it in comparison to Csmith, the standard random C program generator. Our tool generates programs that compile to more machine code with a more complex instruction mix.
Type de document :
Pré-publication, Document de travail
Pre-proceedings paper presented at the 27th International Symposium on Logic-Based Program Synthe.. 2017
Liste complète des métadonnées

Littérature citée [13 références]  Voir  Masquer  Télécharger

https://hal.inria.fr/hal-01658563
Contributeur : Gergö Barany <>
Soumis le : jeudi 7 décembre 2017 - 16:58:47
Dernière modification le : jeudi 26 avril 2018 - 10:28:43

Fichier

lopstr2017.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

  • HAL Id : hal-01658563, version 1
  • ARXIV : 1709.04421

Collections

Citation

Gergö Barany. Liveness-Driven Random Program Generation. Pre-proceedings paper presented at the 27th International Symposium on Logic-Based Program Synthe.. 2017. 〈hal-01658563〉

Partager

Métriques

Consultations de la notice

85

Téléchargements de fichiers

47