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-flow 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.
Complete list of metadatas

Cited literature [21 references]  Display  Hide  Download

https://hal.inria.fr/hal-01860621
Contributor : Gergö Barany <>
Submitted on : Thursday, August 23, 2018 - 3:02:24 PM
Last modification on : Monday, August 27, 2018 - 10:18:15 AM
Long-term archiving on : Saturday, November 24, 2018 - 2:00:28 PM

File

lopstr2017.pdf
Files produced by the author(s)

Identifiers

  • HAL Id : hal-01860621, version 1

Collections

Citation

Gergö Barany. Liveness-Driven Random Program Generation. Logic-Based Program Synthesis and Transformation. LOPSTR 2017, Oct 2017, Namur, Belgium. ⟨hal-01860621⟩

Share

Metrics

Record views

282

Files downloads

45