轨迹引导的效果测试生成器合成
Trace-Guided Synthesis of Effectful Test Generators
AI总结:
本文提出利用轨迹引导合成效果测试生成器,通过捕捉效果操作的下近似行为,提升测试效率,实验表明其优于默认策略并可与高级手写方案竞争。
摘要:
近年来提出的几种程序逻辑已将下近似概念纳入设计,使其能够推断可达性而非安全性。本文探讨如何将类似思想整合到表达性强的类型和效果系统中。我们利用由此产生的下近似类型规范来指导合成测试生成器,以探测效果性黑盒系统的行为。我们类型语言的关键创新在于能通过符号轨迹捕捉效果操作的下近似行为,这些轨迹暴露了潜在的数据和控制依赖性,生成器输出的测试序列必须保持这些约束。我们实现这一方法于名为Clouseau的工具中,并通过将Clouseau合成的生成器整合到QCheck等属性测试框架和P等模型检查工具中,评估其在多种应用中的效果。在两种设置中,Clouseau合成的生成器均显著优于默认测试策略,并与最先进的手写方案竞争。
英文摘要:
Several recently proposed program logics have incorporated notions of underapproximation into their design, enabling them to reason about reachability rather than safety. In this paper, we explore how similar ideas can be integrated into an expressive type and effect system. We use the resulting underapproximate type specifications to guide the synthesis of test generators that probe the behavior of effectful black-box systems. A key novelty of our type language is its ability to capture underapproximate behaviors of effectful operations using symbolic traces that expose latent data and control dependencies, constraints that must be preserved by the test sequences the generator outputs. We implement this approach in a tool called Clouseau, and evaluate it on a diverse range of applications by integrating Clouseau's synthesized generators into property-based testing frameworks like QCheck and model-checking tools like P. In both settings, the generators synthesized by Clouseau are significantly more effective than the default testing strategy, and are competitive with state-of-the-art, handwritten solutions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。