基于路径的程序修复
Path-Based Program Repair
摘要:
我们提出了一个基于路径的方法来修复程序的命令式程序。我们的修复框架作为输入的一个错误的程序,逻辑规范,被驳回,并提示故障可能位于。然后使用迭代抽象细化循环来修复程序:在每次迭代中,考虑符号反例重新合成错误的程序部分,其中控制流保持具体,但数据流是符号的。这个想法的吸引力是双重的:1)该方法懒洋洋地考虑候选修复,2)修复直接来自逻辑规范。与以前的工作相比,我们的方法是完整的程序与许多控制流路径,即,当且仅当程序可以在指定的故障位置处被修复时,才修复该程序。小程序的初步结果表明,该方法是有用的调试程序在实践中。
英文摘要:
We propose a path-based approach to program repair for imperative programs. Our repair framework takes as input a faulty program, a logic specification that is refuted, and a hint where the fault may be located. An iterative abstraction refinement loop is then used to repair the program: in each iteration, the faulty program part is re-synthesized considering a symbolic counterexample, where the control-flow is kept concrete but the data-flow is symbolic. The appeal of the idea is two-fold: 1) the approach lazily considers candidate repairs and 2) the repairs are directly derived from the logic specification. In contrast to prior work, our approach is complete for programs with finitely many control-flow paths, i.e., the program is repaired if and only if it can be repaired at the specified fault location. Initial results for small programs indicate that the approach is useful for debugging programs in practice.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。