arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.12284cs.SE
收藏

断言推断突变体

Assertion Inferring Mutants

Aayush Garg, Renzo Degiovanni, Facundo Molina, Mike Papadakis, Nazareno Aguirre, Maxime Cordy, Yves Le Traon

摘要:

规范推理技术的目的是(自动)推断一组断言,通过动态测试执行和突变测试生成和过滤断言,捕获所展示的软件行为。虽然功能强大,但由于需要执行大量的断言,测试用例和变异版本,因此这些技术在计算上是昂贵的。为了克服这个问题,我们证明了一个小的子集,即,突变测试工具使用的12.95%的突变体足以用于断言推断,该子集显著不同,即,71.59%的差异,包含突变测试文献中经常引用的突变集,并可以通过基于学习的方法进行静态近似。特别是,我们提出了AIMS,一种选择断言推断突变体的方法,即,一组非常适合断言推理的突变体,具有0.58 MCC,0.79精度和0.49召回率。我们评估AIMS的46个程序,并证明它具有相当的推理能力与完整的突变分析(错过12.49%的断言),同时显着限制执行成本(运行速度快46.29倍)。与随机选择的突变体集的比较,显示了AIMS的优越性,推断36%以上的断言,同时需要大约等量的执行时间。我们还表明,AIMS的推断能力几乎是完整的,因为它推断了96. 15%的地面事实断言,(即,一套完整的断言,手动构建),而随机突变体选择推断其中的19.23%。更重要的是,AIMS使断言推理技术能够在完全突变测试过于昂贵且随机突变选择不会导致任何断言的受试者上扩展。

英文摘要:

Specification inference techniques aim at (automatically) inferring a set of assertions that capture the exhibited software behaviour by generating and filtering assertions through dynamic test executions and mutation testing. Although powerful, such techniques are computationally expensive due to a large number of assertions, test cases and mutated versions that need to be executed. To overcome this issue, we demonstrate that a small subset, i.e., 12.95% of the mutants used by mutation testing tools is sufficient for assertion inference, this subset is significantly different, i.e., 71.59% different from the subsuming mutant set that is frequently cited by mutation testing literature, and can be statically approximated through a learning based method. In particular, we propose AIMS, an approach that selects Assertion Inferring Mutants, i.e., a set of mutants that are well-suited for assertion inference, with 0.58 MCC, 0.79 Precision, and 0.49 Recall. We evaluate AIMS on 46 programs and demonstrate that it has comparable inference capabilities with full mutation analysis (misses 12.49% of assertions) while significantly limiting execution cost (runs 46.29 times faster). A comparison with randomly selected sets of mutants, shows the superiority of AIMS by inferring 36% more assertions while requiring approximately equal amount of execution time. We also show that AIMS 's inferring capabilities are almost complete as it infers 96.15% of ground truth assertions, (i.e., a complete set of assertions that were manually constructed) while Random Mutant Selection infers 19.23% of them. More importantly, AIMS enables assertion inference techniques to scale on subjects where full mutation testing is prohibitively expensive and Random Mutant Selection does not lead to any assertion.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑