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

基于大语言模型的混合协同测试用于引导路径探索

Hybrid Concolic Testing with Large Language Models for Guided Path Exploration

Quandary Peak Research(夸德里峰研究)

Mahdi Eslamimehr

AI总结:

本文提出一种结合大语言模型与协同执行的混合测试方法,通过引导路径探索提升程序状态空间探索效率和缺陷检测能力。

摘要:

协同测试作为一种强大的混合软件测试技术,历史上一直受到路径爆炸和约束求解成本高等根本限制,阻碍了其在大规模、现实世界软件系统中的实际应用。本文介绍了一种新的算法框架,该框架协同整合协同执行与大语言模型(LLMs),以克服这些挑战。我们的混合方法利用LLMs的语义推理能力来引导路径探索,优先选择有趣的执行路径,并协助约束求解。我们正式定义了构成这一新范式的系统架构和算法。通过在合成和现实世界金融科技应用上的系列实验,我们证明了我们的方法在分支覆盖率、路径覆盖率和覆盖时间方面显著优于传统协同测试、随机测试和基于遗传算法的方法。结果表明,通过结合协同执行和LLMs的优势,我们的方法实现了对程序状态空间更高效和有效的探索,从而提高了缺陷检测能力。

英文摘要:

Concolic testing, a powerful hybrid software testing technique, has historically been plagued by fundamental limitations such as path explosion and the high cost of constraint solving, which hinder its practical application in large-scale, real-world software systems. This paper introduces a novel algorithmic framework that synergistically integrates concolic execution with Large Language Models (LLMs) to overcome these challenges. Our hybrid approach leverages the semantic reasoning capabilities of LLMs to guide path exploration, prioritize interesting execution paths, and assist in constraint solving. We formally define the system architecture and algorithms that constitute this new paradigm. Through a series of experiments on both synthetic and real-world Fintech applications, we demonstrate that our approach significantly outperforms traditional concolic testing, random testing, and genetic algorithm-based methods in terms of branch coverage, path coverage, and time-to-coverage. The results indicate that by combining the strengths of both concolic execution and LLMs, our method achieves a more efficient and effective exploration of the program state space, leading to improved bug detection capabilities.

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

↑