连接程序合成和可达性:使用测试输入生成的自动程序修复
Connecting Program Synthesis and Reachability: Automatic Program Repair using Test-Input Generation
摘要:
证明了程序合成和可达性的某些公式是等价的。具体来说,我们的建设性证明显示基于模板的合成问题,它生成一个程序在一个预先指定的形式,和可达性问题,这决定了可达性的程序位置之间的减少。这在两个研究领域之间建立了联系,并允许在它们之间转移技术和成果。为了证明等价性,我们使用可达性工具开发了一个程序修复原型。我们将一个有缺陷的程序和它所需的规格到一个特定的程序,包含一个位置可达只有当原始程序可以修复,然后应用现成的测试输入生成工具上的转换程序,找到测试值,以达到所需的位置。这些测试值对应于原始程序的修复。初步结果表明,我们的方法与其他修复方法相比是有利的。
英文摘要:
We prove that certain formulations of program synthesis and reachability are equivalent. Specifically, our constructive proof shows the reductions between the template-based synthesis problem, which generates a program in a pre-specified form, and the reachability problem, which decides the reachability of a program location. This establishes a link between the two research fields and allows for the transfer of techniques and results between them. To demonstrate the equivalence, we develop a program repair prototype using reachability tools. We transform a buggy program and its required specification into a specific program containing a location reachable only when the original program can be repaired, and then apply an off-the-shelf test-input generation tool on the transformed program to find test values to reach the desired location. Those test values correspond to repairs for the original programm. Preliminary results suggest that our approach compares favorably to other repair methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。