paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Recovering fitness gradients for interprocedural Boolean flags in search-based testing

基于搜索的测试中恢复过程间布尔标志的适应度梯度
ISSTA Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis2020匹配度 2/10 · 论文研究搜索式软件测试中过程间布尔标志的适应度梯度恢复,属于测试生成领域;虽涉及程序分析与AI启发式搜索的交叉,但与用户画像中的LLM/Agent、静态分析、浮点程序分析、贝叶斯程序分析等核心方向无直接交集。引用 26 inbox
Yun Lin, Jun Sun, Gordon Fraser, Ziheng Xiu, Ting Liu, Jin Song Dong
crossref: 2026-09-12

AI 速览

一句话:针对过程间布尔标志导致分支距离无梯度的问题,恢复适应度梯度以指导搜索式测试生成。

基于搜索的软件测试依赖适应度函数估计测试用例距离未覆盖目标(如分支)的远近,常用分支距离衡量条件为真或为假的程度。然而,当条件读取布尔变量(如 if(x && y))时,布尔值只有真假两态,分支距离无法提供搜索梯度,即 flag 问题。已有工作可通过将单个过程中的布尔标志替换为数值比较来改善引导,但面对标志作为参数和返回值在过程间传递的情形,构造保持语义的变换十分困难,现代测试生成器尚未支持。本文聚焦于恢复过程间布尔标志的适应度梯度,目标是在过程间场景下提供有效的搜索引导;摘要未报告具体方法与实验评估结果。

问题
在基于搜索的测试中,当条件读取布尔变量时,分支距离无法为搜索提供梯度,即 flag 问题;过程间传递的布尔标志进一步使语义保持变换困难。
方法
摘要指出可用保持语义的变换将布尔标志替换为数值比较以恢复梯度;论文针对过程间布尔标志的适应度梯度恢复问题展开,但摘要未给出具体技术细节。
评估
摘要未提及评估方式与实验结果。
原文摘要(Abstract)

In Search-based Software Testing (SBST), test generation is guided by fitness functions that estimate how close a test case is to reach an uncovered test goal (e.g., branch). A popular fitness function estimates how close conditional statements are to evaluating to true or false, i.e., the branch distance. However, when conditions read Boolean variables (e.g., if(x && y)), the branch distance provides no gradient for the search, since a Boolean can either be true or false. This flag problem can be addressed by transforming individual procedures such that Boolean flags are replaced with numeric comparisons that provide better guidance for the search. Unfortunately, defining a semantics-preserving transformation that is applicable in an interprocedural case, where Boolean flags are passed around as parameters and return values, is a daunting task. Thus, it is not yet supported by modern test generators.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot6081,
  title = {Recovering fitness gradients for interprocedural Boolean flags in search-based testing},
  author = {Yun Lin and Jun Sun and Gordon Fraser and Ziheng Xiu and Ting Liu and Jin Song Dong},
  booktitle = {ISSTA},
  year = {2020},
  doi = {10.1145/3395363.3397358}
}