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

基于代码的自动程序修复

Code-based Automated Program Fixing

Yu Pei, Yi Wei, Carlo A. Furia, Martin Nordio, Bertrand Meyer

摘要:

许多程序员在遇到错误时,都希望得到自动修复建议的好处--只要它们在大多数情况下是足够的。在这个方向上的最初研究通常局限于特定的领域,例如具有精心设计的接口的数据结构类,并且依赖于简单的方法。为了在广泛的适用性领域提供高质量的修复建议,目前的工作依赖于代码中合同的存在,以及动态分析的可用性,以收集从程序文本中派生的表达式所取值的证据。这些想法已经内置到AutoFix-E2自动修复生成器中。AutoFix-E2在通用软件中的应用,如用于操作文档的库,表明该方法比以前的技术,特别是纯粹基于模型的方法有所改进。

英文摘要:

Many programmers, when they encounter an error, would like to have the benefit of automatic fix suggestions---as long as they are, most of the time, adequate. Initial research in this direction has generally limited itself to specific areas, such as data structure classes with carefully designed interfaces, and relied on simple approaches. To provide high-quality fix suggestions in a broad area of applicability, the present work relies on the presence of contracts in the code, and on the availability of dynamic analysis to gather evidence on the values taken by expressions derived from the program text. The ideas have been built into the AutoFix-E2 automatic fix generator. Applications of AutoFix-E2 to general-purpose software, such as a library to manipulate documents, show that the approach provides an improvement over previous techniques, in particular purely model-based approaches.

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

↑