2021 · 15 citations · 41 references
ComputingComputer ScienceCompilersNatural Language ProcessingSyntaxAbstract Syntax TreesCode GenerationCompiler ConstructionSoftware TestingSyntactic AnalysisSyntax AnalysisCode CoverageCorpus MinimizationCoverage-guided FuzzingGeneration-based FuzzingGrammar-based FuzzingTest Cases
This paper presents a coverage-guided grammar-based fuzzing technique for automatically synthesizing a corpus of concise test inputs. We walk-through a case study of a compiler designed for education and the corresponding problem of generating meaningful test cases to provide to students. The prior state-of-the-art solution is a combination of fuzzing and test-case reduction techniques such as variants of delta-debugging. Our key insight is that instead of attempting to minimize convoluted fuzzer-generated test inputs, we can instead grow concise test inputs by construction using a form of iterative deepening. We call this approach bonsai fuzzing. Experimental results show that bonsai fuzzing can generate test corpora having inputs that are 16-45% smaller in size on average as compared to a fuzz-then-reduce approach, while achieving approximately the same code coverage and fault-detection capability.
41
Symbolic execution and program testing
James C. King · Communications of the ACM · 1976 · 3K citations · Full text
Depth-first iterative-deepening
Richard E. Korf · Artificial Intelligence · 1985 · 1.6K citations
Software abstractions: logic, language and analysis
Choice Reviews Online · 2007 · 1.5K citations