paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Nemo

Nemo:多准则测试套件最小化框架
ICSE Proceedings of the 40th International Conference on Software Engineering2018匹配度 2/10 · 该论文研究多准则测试套件最小化的整数非线性规划建模与求解,属于软件测试与约束优化方向,不涉及 PL/AI 交叉、静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析等用户核心研究方向。虽与逻辑与约束编程、形式化优化有轻微关联,但整体匹配度很低。引用 18 inbox
Jun-Wei Lin, Reyhaneh Jabbarvand, Joshua Garcia, Sam Malek
crossref: 2026-09-12

AI 速览

一句话:将多准则测试套件最小化建模为整数非线性规划并转换为线性规划,以高效求最优解。

多准则测试套件最小化旨在按代码覆盖率等准则删除冗余测试用例,同时尽可能保持故障检测等能力。现有基于整数线性规划的方法声称最优,但测试用例在准则上常相互依赖,问题本质非线性。本文提出将多准则测试套件最小化形式化为整数非线性规划问题,并通过程序化变换将其转化为线性问题,再用现代线性求解器求解。作者实现工具 Nemo,支持多种现代线性与非线性求解器,并在公开数据集上评估,考虑语句覆盖、故障揭示能力和测试执行时间等准则。实验表明,Nemo 能借助现代求解器高效找到最优解,且最优解在所考虑准则上比次优解最高提升 164.29%。

问题
多准则测试套件最小化需在多个准则间权衡,且测试用例在准则上相互依赖,使问题本质上是非线性的;现有基于整数线性规划的方法难以保证最优。
方法
将问题形式化为整数非线性规划,并通过程序化变换将其转化为等价的线性问题,再借助现代线性与非线性求解器求解;实现为工具 Nemo。
评估
在公开数据集上,针对语句覆盖、故障揭示能力和测试执行时间等多准则最小化问题进行评估。结果表明 Nemo 能高效求得最优解,且最优解相比次优解在所考虑准则上最高提升 164.29%。
原文摘要(Abstract)

Multi-criteria test-suite minimization aims to remove redundant test cases from a test suite based on some criteria such as code coverage, while trying to optimally maintain the capability of the reduced suite based on other criteria such as fault-detection effectiveness. Existing techniques addressing this problem with integer linear programming claim to produce optimal solutions. However, the multi-criteria test-suite minimization problem is inherently nonlinear, due to the fact that test cases are often dependent on each other in terms of test-case criteria. In this paper, we propose a framework that formulates the multi-criteria test-suite minimization problem as an integer nonlinear programming problem. To solve this problem optimally, we programmatically transform this nonlinear problem into a linear one and then solve the problem using modern linear solvers. We have implemented our framework as a tool, called Nemo, that supports a number of modern linear and nonlinear solvers. We have evaluated Nemo with a publicly available dataset and minimization problems involving multiple criteria including statement coverage, fault-revealing capability, and test execution time. The experimental results show that Nemo can be used to efficiently find an optimal solution for multi-criteria test-suite minimization problems with modern solvers, and the optimal solutions outperform the suboptimal ones by up to 164.29% in terms of the criteria considered in the problem.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot4510,
  title = {Nemo},
  author = {Jun-Wei Lin and Reyhaneh Jabbarvand and Joshua Garcia and Sam Malek},
  booktitle = {ICSE},
  year = {2018},
  doi = {10.1145/3180155.3180174}
}