Program repair by stepwise correctness enhancement
Document Type
Conference Proceeding
Publication Date
5-25-2016
Abstract
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.
Identifier
84991678446 (Scopus)
Publication Title
Electronic Proceedings in Theoretical Computer Science Eptcs
External Full Text Location
https://doi.org/10.4204/EPTCS.208.1
ISSN
20752180
First Page
1
Last Page
15
Volume
208
Recommended Citation
Diallo, Nafi; Ghardallou, Wided; and Mili, Ali, "Program repair by stepwise correctness enhancement" (2016). Faculty Publications. 10497.
https://digitalcommons.njit.edu/fac_pubs/10497
