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

重复结构软件的快速SAT求解(附软件测试集最小化实例研究)

Faster SAT Solving for Software with Repeated Structures (with Case Studies on Software Test Suite Minimization)

Jianfeng Chen, Xipeng Shen, Tim Menzies

摘要:

定理证明器在软件工程中被广泛用于软件测试或验证。然而,软件现在是如此的庞大和复杂,需要额外的架构来指导定理证明器,因为他们试图生成测试套件。SNAP测试套件生成器(本文介绍)结合了Z3定理证明器与以下策略:聚类一些候选测试,然后搜索有效的测试,提出小的突变的集群质心。该技术有效地去除了测试中的重复结构,因为许多重复结构可以用一个质心来替换。在实践中,SNAP非常有效。对于27个具有多达50万个变量的真实世界程序,SNAP发现的测试套件比现有技术的测试套件小10到750倍。此外,SNAP的运行速度更快,并且(与以前的工作不同)生成100%有效的测试。

英文摘要:

Theorem provers has been used extensively in software engineering for software testing or verification. However, software is now so large and complex that additional architecture is needed to guide theorem provers as they try to generate test suites. The SNAP test suite generator (introduced in this paper) combines the Z3 theorem prover with the following tactic: cluster some candidate tests, then search for valid tests by proposing small mutations to the cluster centroids. This technique effectively removes repeated structures in the tests since many repeated structures can be replaced with one centroid. In practice, SNAP is remarkably effective. For 27 real-world programs with up to half a million variables, SNAP found test suites which were 10 to 750 smaller times than those found by the prior state-of-the-art. Also, SNAP ran orders of magnitude faster and (unlike prior work) generated 100% valid tests.

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

↑