The reviewed record of science sign in
Pith

arxiv: 2101.09042 · v2 · pith:OAXHCLYG · submitted 2021-01-22 · cs.LO · cs.PL

PEQcheck: Localized and Context-aware Checking of Functional Equivalence (Technical Report)

Reviewed by Pithpith:OAXHCLYGopen to challenge →

classification cs.LO cs.PL
keywords peqcheckprogramcheckingcodeequivalenceoriginalrefactoredalter
0
0 comments X
read the original abstract

Refactorings must not alter the program's functionality. However, not all refactorings fulfill this requirement. Hence, one must explicitly check that a refactoring does not alter the functionality. Since one rarely has a formal specification of the program's behavior, we utilize the original program as functional specification. Then, we check whether the original and refactored program are functionally equivalent. To this end, we apply a common idea and reduce equivalence checking to program verification. To increase efficiency, our equivalence checker PEQcheck constructs one verification task per refactored code segment instead of one per function as typically done by prior work. In addition, PEQcheck considers the context of the code segments. For instance, only variables that are modified and live are required to be equivalent and read-only variables may be shared between original and refactored code segments. We show that PEQcheck is sound.Moreover, our evaluation testifies that the localized and context-aware checking performed by \peqcheck can indeed be beneficial.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.