Bugfix:一个用于研究缺陷和自动程序修复的标准语言、数据库模式与仓库
Bugfix: a standard language, database schema and repository for research on bugs and automatic program repair
AI总结:
针对自动程序修复领域缺乏统一参照框架的问题,提出Bugfix框架,包括标准语言、数据库和仓库,以支持APR社区试验和比较结果。
摘要:
自动程序修复(APR)是一个绝妙的想法:当检测到缺陷时,同时提供修正程序的建议。然而,由于缺乏一个共同的参照框架来统合众多APR思想、方法、工具、编程语言和环境,这一目标的进展受到了阻碍。\nBugfix致力于提供这样一个框架:一套标准化的符号、工具和接口,以及一个缺陷与修复的数据库,供APR研究社区用来试验想法并比较结果。\nBugfix工作中最直接可见的组成部分是Bugfix语言,这是一种人类可读的形式化体系,使得能够描述以下各类元素:一个缺陷(抽象描述,例如调用中两个参数的交换);一个缺陷示例(一个缺陷的实际发生,存在于用特定编程语言编写的特定代码中,通常记录在某个仓库中);一个修复(对某个缺陷的特定修正,例如通过交换错位的参数获得);一个应用(一个实体,展示实际代码示例如何与修复匹配);一个构造(编程机制的抽象描述,例如“while”循环,独立于其在编程语言中的实现);以及一种语言(描述特定编程语言如何包含某些构造并为每个构造提供特定的具体语法——例如Java包含循环、赋值等,并为它们各自定义了格式)。\n一个JSON API以工具可访问的形式提供这些内容。Bugfix包含一个仓库,其中含有相当数量的缺陷、示例和修复。\n注:本文的前身是2024年ICSE上的一篇短文(参考文献[1])。当前文本重用了引言和动机中的少量元素,但其余部分经过了彻底的重新编写和扩展。
英文摘要:
Automatic Program Repair (APR) is a brilliant idea: when detecting a bug, also provide suggestions for correcting the program. Progress towards that goal is hindered by the absence of a common frame of reference for the multiplicity of APR ideas, methods, tools, programming languages and environments. Bugfix is an effort at providing such a framework: a standardized set of notations, tools and interfaces, as well as a database of bugs and fixes, for use by the APR research community to try out ideas and compare results. The most directly visible component of the Bugfix effort is the Bugfix language, a human-readable formalism making it possible to describe elements of the following kinds: a bug (described abstractly, for example the permutation of two arguments in a call); a bug example (an actual occurrence of a bug, in a specific code written in a specific programming language, and usually recorded in some repository); a fix (a particular correction of a bug, obtained for example by reversing the misplaced arguments); an application (an entity that demonstrates how a actual code example matches with a fix); a construct (the abstract description of a programming mechanism, for example a ``while'' loop, independently of its realization in a programming language; and a language (a description of how a particular programming language includes certain constructs and provides specific concrete syntax for each of them -- for example Java includes loop, assignment etc. and has a defined format for each of them). A JSON API provides it in a form accessible to tools. Bugfix includes a repository containing a considerable amount of bugs, examples and fixes. Note: An early step towards this article was a short contribution (Ref [1]) to the 2024 ICSE. The present text reuses a few elements of introduction and motivation but is otherwise thoroughly reworked and extended.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。