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

ASAP-Repair:基于 API 使用图的 API 特定自动化程序修复

ASAP-Repair: API-Specific Automated Program Repair Based on API Usage Graphs

Sebastian Nielebock, Paul Blockhaus, Jacob Krüger, Frank Ortmeier

AI总结:

本文提出 ASAP-Repair 技术,利用最先进检测器的 API 使用模板,基于 API 使用图 (AUGs) 自动修复 API 误用,并验证了其在成熟数据集上的适用性及未来挑战。

摘要:

现代软件开发依赖于通过 Application Programming Interfaces (APIs) 复用代码。这种复用使开发者无需重新学习和开发已有的算法与数据结构,从而能够专注于手头的问题。然而,由于缺乏理解或适当的文档,也存在误用 API 的风险。虽然许多技术致力于 API 误用检测,但在自动修复 API 误用方面的努力仍然有限。在本文中,我们展示了我们的技术 API 特定自动化程序修复 (ASAP-Repair) 的进展。ASAP-Repair 旨在通过利用最先进 API 误用检测器的 API 使用模板,基于 API 使用图 (AUGs) 来修复 API 误用。我们证明 ASAP-Repair 原则上适用于一个成熟的 API 误用数据集。此外,我们讨论了将 ASAP-Repair 发展为成熟的自动化程序修复 (APR) 技术的后续步骤与挑战。

英文摘要:

Modern software development relies on the reuse of code via Application Programming Interfaces (APIs). Such reuse relieves developers from learning and developing established algorithms and data structures anew, enabling them to focus on their problem at hand. However, there is also the risk of misusing an API due to a lack of understanding or proper documentation. While many techniques target API misuse detection, only limited efforts have been put into automatically repairing API misuses. In this paper, we present our advances on our technique API-Specific Automated Program Repair (ASAP-Repair). ASAP-Repair is intended to fix API misuses based on API Usage Graphs (AUGs) by leveraging API usage templates of state-of-the-art API misuse detectors. We demonstrate that ASAP-Repair is in principle applicable on an established API misuse dataset. Moreover, we discuss next steps and challenges to evolve ASAP-Repair towards a full-fledged Automatic Program Repair (APR) technique.

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

↑