|国家预印本平台
首页|Active Learning of Input Grammars

Active Learning of Input Grammars

Active Learning of Input Grammars

来源:Arxiv_logoArxiv
英文摘要

Knowing the precise format of a program's input is a necessary prerequisite for systematic testing. Given a program and a small set of sample inputs, we (1) track the data flow of inputs to aggregate input fragments that share the same data flow through program execution into lexical and syntactic entities; (2) assign these entities names that are based on the associated variable and function identifiers; and (3) systematically generalize production rules by means of membership queries. As a result, we need only a minimal set of sample inputs to obtain human-readable context-free grammars that reflect valid input structure. In our evaluation on inputs like URLs, spreadsheets, or configuration files, our AUTOGRAM prototype obtains input grammars that are both accurate and very readable - and that can be directly fed into test generators for comprehensive automated testing.

Andreas Zeller、Matthias H?schele、Alexander Kampmann

计算技术、计算机技术

Andreas Zeller,Matthias H?schele,Alexander Kampmann.Active Learning of Input Grammars[EB/OL].(2017-08-29)[2025-05-28].https://arxiv.org/abs/1708.08731.点此复制

评论