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

无测试用例的自动修复:LLM如何修复大型工业嵌入式代码中的编译错误

Auto-repair without test cases: How LLMs fix compilation errors in large industrial embedded code

Mälardalen University(马来西亚大学)

Han Fu, Sigrid Eldh, Kristian Wiklund, Andreas Ermedahl, Philipp Haller, Cyrille Artho

AI总结:

本研究利用LLM自动修复工业嵌入式系统编译错误,在超4万提交数据上,解决63%错误且83%修复合理,大幅缩短调试时间。

摘要:

在工业嵌入式系统中,硬件和软件的协同开发经常导致持续集成(CI)过程中出现编译错误。对此类故障的自动修复前景广阔,但现有技术依赖于测试用例,而不可编译的代码无法提供测试用例。我们采用了一种由大型语言模型(LLM)驱动的编译错误自动修复方法。我们的研究收集了产品源代码中超过40000个提交。我们评估了由四种最先进的LLM增强的工业CI系统的性能,并将其结果与人类程序员提供的手动修正进行了比较。配备LLM的CI系统在我们的基线数据集中能够解决高达63%的编译错误。在与成功CI构建相关的修复中,83%被认为是合理的。此外,LLM显著减少了调试时间,大多数成功案例在8分钟内完成,而手动调试通常需要数小时。

英文摘要:

The co-development of hardware and software in industrial embedded systems frequently leads to compilation errors during continuous integration (CI). Automated repair of such failures is promising, but existing techniques rely on test cases, which are not available for non-compilable code. We employ an automated repair approach for compilation errors driven by large language models (LLMs). Our study encompasses the collection of more than 40000 commits from the product's source code. We assess the performance of an industrial CI system enhanced by four state-of-the-art LLMs, comparing their outcomes with manual corrections provided by human programmers. LLM-equipped CI systems can resolve up to 63 % of the compilation errors in our baseline dataset. Among the fixes associated with successful CI builds, 83 % are deemed reasonable. Moreover, LLMs significantly reduce debugging time, with the majority of successful cases completed within 8 minutes, compared to hours typically required for manual debugging.

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

↑