arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1606.00502cs.SEcs.DMcs.LOcs.PL
收藏

基于逐步正确性增强的程序修复

Program Repair by Stepwise Correctness Enhancement

Nafi Diallo, Wided Ghardallou, Ali Mili

摘要:

相对正确性是一个程序的属性,相对于给定的规范,它比另一个程序更正确。传统的(绝对)正确性定义将候选程序分为两类(正确和不正确),而相对正确性将候选程序安排在更丰富的偏序结构上。在其他地方,我们讨论的影响,相对正确性的程序推导,程序验证。在本文中,我们讨论了程序测试的相对正确性的影响,具体地说,我们认为,当我们从一个程序中删除一个错误,我们应该测试新的程序相对正确的旧程序,而不是绝对正确。我们提出的分析参数,以支持我们的立场,以及一个小程序的形式,其故障被删除,在一个逐步的方式,其相对正确性上升,每个故障删除,直到我们获得一个正确的程序的经验参数。

英文摘要:

Relative correctness is the property of a program to be more-correct than another with respect to a given specification. Whereas the traditional definition of (absolute) correctness divides candidate program into two classes (correct, and incorrect), relative correctness arranges candidate programs on the richer structure of a partial ordering. In other venues we discuss the impact of relative correctness on program derivation, and on program verification. In this paper, we discuss the impact of relative correctness on program testing; specifically, we argue that when we remove a fault from a program, we ought to test the new program for relative correctness over the old program, rather than for absolute correctness. We present analytical arguments to support our position, as well as an empirical argument in the form of a small program whose faults are removed in a stepwise manner as its relative correctness rises with each fault removal until we obtain a correct program.

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

↑