Synthesizing Program Input Grammars

Osbert Bastani, Rahul Sharma, Alex Aiken, Percy Liang
8/5/2016
206 citations
cs.PL

Official code: obastani/glade (47 stars, Java, Apache-2.0, last commit 2020-04-28).

Abstract

We present an algorithm for synthesizing a context-free grammar encoding the language of valid program inputs from a set of input examples and blackbox access to the program. Our algorithm addresses shortcomings of existing grammar inference algorithms, which both severely overgeneralize and are prohibitively slow.

Show full abstract

Our implementation, GLADE, leverages the grammar synthesized by our algorithm to fuzz test programs with structured inputs. We show that GLADE substantially increases the incremental coverage on valid inputs compared to two baseline fuzzers.

View on arXivView PDF

Code Implementations(1)

obastani/gladeOfficial100%
Apache-2.0
4711Java, PythonSep 2, 20166 years agoApache-2.0

Similar Papers

Cite this paper

@article{bastani2016synthesizing,
  title  = {Synthesizing Program Input Grammars},
  author = {Osbert Bastani and Rahul Sharma and Alex Aiken and Percy Liang},
  year   = {2016},
  eprint = {1608.01723},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1608.01723}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1608.01723.svg)](https://codeofpaper.com/paper/1608.01723)

Discussion