通过生成器轨迹归约实现保持有效性的 Delta 调试
Validity-Preserving Delta Debugging via Generator Trace Reduction
AI总结:
针对复杂规范下传统 delta 调试易产生无效输入的问题,提出 GReduce 通过搜索输入生成器的替代执行轨迹来生成保持有效性的归约测试,并在五类基准上优于 Perses、T-PDD 和 Hypothesis 等归约器。
摘要:
归约会触发缺陷的测试输入对于高效调试至关重要。Delta 调试是实现这一目标最流行的方法。当测试输入需要符合特定规范时,现有的 delta 调试实践会遇到有效性问题:它盲目地应用归约规则,产生大量不满足所需规范的无效测试输入。当规范超出语法结构时,这种整体上不断下降的有效性和效率会变得更加明显。我们的关键洞见是,应当利用知晓这些规范的输入生成器来生成有效的归约后输入,而不是直接对测试输入执行归约。本文提出一种基于生成器的 delta 调试方法,即 GReduce,它可导出保持有效性的归约器。具体而言,在给定一个生成器及其执行(该执行展示了诱发缺陷的测试输入是如何生成的)的情况下,GReduce 会在该生成器上搜索其他执行,以产生归约后的有效测试输入。在五个基准(即图、深度学习模型、JavaScript 程序、SymPy 和代数数据类型)上的评估结果表明,GReduce 显著优于包括 Perses 和 T-PDD 在内的最先进的基于语法的归约器,并且也优于 QuickCheck、SmartCheck 以及最先进的基于选择序列的归约器 Hypothesis,证明了 GReduce 的有效性、效率和多功能性。
英文摘要:
Reducing test inputs that trigger bugs is crucial for efficient debugging. Delta debugging is the most popular approach for this purpose. When test inputs need to conform to certain specifications, existing delta debugging practice encounters a validity problem: it blindly applies reduction rules, producing a large number of invalid test inputs that do not satisfy the required specifications. This overall diminishing effectiveness and efficiency becomes even more pronounced when the specifications extend beyond syntactical structures. Our key insight is that we should leverage input generators, which are aware of these specifications, to generate valid reduced inputs, rather than straightforwardly performing reduction on test inputs. In this paper, we propose a generator-based delta debugging method, namely GReduce, which derives validity-preserving reducers. Specifically, given a generator and its execution, demonstrating how the bug-inducing test input is generated, GReduce searches for other executions on the generator that yield reduced, valid test inputs. The evaluation results on five benchmarks (i.e., graphs, DL models, JavaScript programs, SymPy, and algebraic data types) show that GReduce substantially outperforms state-of-the-art syntax-based reducers including Perses and T-PDD, and also outperforms QuickCheck, SmartCheck, as well as the state-of-the-art choice-sequence-based reducer Hypothesis, demonstrating the effectiveness, efficiency, and versatility of GReduce.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。