paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Towards optimal concolic testing

迈向最优的 concolic 测试
ICSE Proceedings of the 40th International Conference on Software Engineering2018匹配度 3/10 · 该论文研究 concolic testing 的最优策略,属于程序分析与软件测试领域,并使用 MDP 建模和贪心近似,形式上与用户对程序分析的兴趣有一定交集;但它不涉及 LLM/Agent、静态分析、浮点程序分析或贝叶斯程序分析,与用户当前核心研究方向(PL 与 AI 的交叉)匹配度较低。引用 74 inbox
Xinyu Wang, Jun Sun, Zhenbang Chen, Peixin Zhang, Jingyi Wang, Yun Lin
crossref: 2026-09-12

AI 速览

一句话:将最优 concolic 测试策略归约为带代价马尔可夫决策过程,并提出贪心近似算法。

concolic 测试结合具体执行与符号执行生成测试用例,但其策略(何时随机测试、何时符号执行及选择哪条路径)多依赖启发式,最优策略仍是开放问题。本文首先证明最优策略可由程序路径概率与约束求解代价定义,并将寻找最优策略归约为带代价的马尔可夫决策过程(MDP with Costs)的模型检测问题。由于精确求解该问题复杂,作者进一步设计贪心算法以近似最优策略。评估包含随机生成模型和一组 C 程序两组实验,结果表明现有启发式仍有较大改进空间,且所提贪心算法通常优于现有启发式。

问题
如何定义并求解 concolic 测试的最优策略,即何时选择随机测试或符号执行以及符号执行哪条路径。
方法
从路径概率与约束求解代价刻画最优策略,将问题归约为带代价 MDP 的模型检测,并提出贪心近似算法。
评估
在随机生成模型和一组 C 程序上实验,比较现有启发式,显示其改进空间及贪心算法通常更优。
原文摘要(Abstract)

Concolic testing integrates concrete execution (e.g., random testing) and symbolic execution for test case generation. It is shown to be more cost-effective than random testing or symbolic execution sometimes. A concolic testing strategy is a function which decides when to apply random testing or symbolic execution, and if it is the latter case, which program path to symbolically execute. Many heuristics-based strategies have been proposed. It is still an open problem what is the optimal concolic testing strategy. In this work, we make two contributions towards solving this problem. First, we show the optimal strategy can be defined based on the probability of program paths and the cost of constraint solving. The problem of identifying the optimal strategy is then reduced to a model checking problem of Markov Decision Processes with Costs. Secondly, in view of the complexity in identifying the optimal strategy, we design a greedy algorithm for approximating the optimal strategy. We conduct two sets of experiments. One is based on randomly generated models and the other is based on a set of C programs. The results show that existing heuristics have much room to improve and our greedy algorithm often outperforms existing heuristics.

链接与引用

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

BibTeX
@inproceedings{paperbot4501,
  title = {Towards optimal concolic testing},
  author = {Xinyu Wang and Jun Sun and Zhenbang Chen and Peixin Zhang and Jingyi Wang and Yun Lin},
  booktitle = {ICSE},
  year = {2018},
  doi = {10.1145/3180155.3180177}
}