"Synthesizing input grammars": a replication study
Abstract
When producing test inputs for a program, test generators (łfuzzersž) can greatly profit from grammars that formally describe the language of expected inputs. In recent years, researchers thus have studied means to recover input grammars from programs and their executions. The GLADE algorithm by Bastani et al., published at PLDI 2017, was the first blackbox approach to claim context-free approximation of input specification for non-trivial languages such as XML, Lisp, URLs, and more.
Prompted by recent observations that the GLADE algorithm may show lower performance than reported in the original paper, we have reimplemented the GLADE algorithm from scratch. Our evaluation confirms that the effectiveness score (F1) reported in the GLADE paper is overly optimistic, and in some cases, based on the wrong language. Furthermore, GLADE fares poorly in several real-world languages evaluated, producing grammars that spend megabytes to enumerate inputs.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Learning Highly Recursive Input Grammars cites Mining input grammars from dynamic control flow
- V-Star: Learning Visibly Pushdown Grammars from Program Inputs cites Learning Highly Recursive Input Grammars
- Static Inference of Regular Grammars for Ad Hoc Parsers cites Learning Highly Recursive Input Grammars
- Static Inference of Regular Grammars for Ad Hoc Parsers cites Mining input grammars from dynamic control flow
- Static Inference of Regular Grammars for Ad Hoc Parsers cites Fast Deterministic Black-box Context-free Grammar Inference
- ELFuzz: Efficient Input Generation via LLM-driven Synthesis Over Fuzzer Space cites Learning Highly Recursive Input Grammars
- ELFuzz: Efficient Input Generation via LLM-driven Synthesis Over Fuzzer Space cites Mining input grammars from dynamic control flow
- Fast Deterministic Black-box Context-free Grammar Inference cites Learning Highly Recursive Input Grammars
- Fast Deterministic Black-box Context-free Grammar Inference cites Mining input grammars from dynamic control flow
- ParDiff: Practical Static Differential Analysis of Network Protocol Parsers cites Mining input grammars from dynamic control flow
Cited by top-tier papers5
- ParDiff: Practical Static Differential Analysis of Network Protocol ParsersMingwei Zheng, Qingkai Shi, Xuwei Liu, Xiangzhe Xu et al.OOPSLA 2024 · 9 citations
- V-Star: Learning Visibly Pushdown Grammars from Program InputsXiaodong Jia, Gang TanPLDI 2024 · 4 citations
- Fast Deterministic Black-box Context-free Grammar InferenceMohammad Rifat Arefin, Suraj Shetiya, Zili Wang, Christoph CsallnerICSE 2024 · 4 citations
- Static Inference of Regular Grammars for Ad Hoc ParsersMichael Schröder, Jürgen CitoOOPSLA 2025 · 1 citation
- ELFuzz: Efficient Input Generation via LLM-driven Synthesis Over Fuzzer SpaceChuyang Chen, Brendan Dolan-Gavitt, Zhiqiang LinUSENIX Security 2025
Builds on2
Related papers
- How Good are Input Grammar Miners? An Empirical StudyLeon Bettscheider, Andreas ZellerICSE 2026
- Input invariantsDominic Steinhöfel, Andreas ZellerFSE 2022 · 47 citations
- NAUTILUS: Fishing for Deep Bugs with GrammarsCornelius Aschermann, Tommaso Frassetto, Thorsten Holz, Patrick Jauernig et al.NDSS 2019 · 291 citations
- FANDANGO: Evolving Language-Based TestingJosé Antonio Zamudio Amaya, Marius Smytzek, Andreas ZellerISSTA 2025 · 1 citation
- Towards Better Semantics Exploration for Browser FuzzingChijin Zhou, Quan Zhang, Lihua Guo, Mingzhe Wang et al.OOPSLA 2023 · 15 citations
