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

通过直接状态操作的程序修复

Program Repair via Direct State Manipulation

Qinheping Hu, Isaac Evavold, Roopsha Samanta, Rishabh Singh, Loris D'Antoni

摘要:

程序修复的目标是自动修复程序以满足规范。我们提出了一个新的规范机制,直接操纵,在其中程序员可以可视化的痕迹错误的程序上失败的输入,并传达预期的程序行为通过操纵变量值在某些位置。修复问题是找到一个程序,在同一输入,到达由程序员标识的位置,变量值等于操纵的值。由于一个单一的程序执行下指定的整体程序的行为,我们增加我们的修复问题的定量目标,找到符合规范的程序,是最接近原始的一个相对于一定的距离。我们正式的修复问题,建立一个程序修复工具JDial的基础上的草图合成器,并显示JDial的有效性,从介绍性的编程作业的代表性的bug基准。

英文摘要:

The goal of program repair is to automatically fix programs to meet a specification. We propose a new specification mechanism, direct manipulation, in which the programmer can visualize the trace of a buggy program on a failing input and convey the intended program behavior by manipulating variable values at some location. The repair problem is to find a program that, on the same input, reaches the location identified by the programmer with variable values equal to the manipulated ones. Since a single program execution under-specifies the overall program behavior, we augment our repair problem with quantitative objectives to find the program that agrees with the specification and is closest to the original one with respect to some distance. We formalize the repair problem, build a program repair tool JDial based on the Sketch synthesizer, and show the effectiveness of JDial on representative buggy benchmarks from introductory programming assignments.

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

↑