TU Darmstadt / ULB / TUbiblio

PEQtest: Testing Functional Equivalence

Jakobs, Marie-Christine ; Wiesner, Maik
Hrsg.: Johnsen, Einar Broch ; Wimmer, Manuel (2022)
PEQtest: Testing Functional Equivalence.
25th International Conference on Fundamental Approaches to Software Engineering. Munich, Germany (02.04.2022-07.04.2022)
doi: 10.1007/978-3-030-99429-7_11
Konferenzveröffentlichung, Bibliographie

Kurzbeschreibung (Abstract)

Refactoring a program without changing the program’s functional behavior is challenging. To prevent that behavioral changes remain undetected, one may apply approaches that compare the functional behavior of original and refactored programs. Difference detection approaches often use dedicated test generators and may be inefficient (i.e., execute (some of) the non-modified code twice). In contrast, proving functional equivalence often requires expensive verification. Therefore, we propose PEQtest, which aims at localized functional equivalence testing thereby relying on existing tests or test generators. To this end, PEQtest derives a test program from the original program by replacing each code segment being refactored with program code that encodes the equivalence of the original and its refactored code segment. The encoding is similar to program encodings used by some verification-based equivalence checkers. Furthermore, we prove that the test program derived by PEQtest indeed checks functional equivalence. Moreover, we implemented PEQtest in a prototype and evaluate it on several examples. Our evaluation shows that PEQtest successfully detects refactored programs that change the program behavior and that it often performs better than the state-of-the-art equivalence checker PEQcheck.

Typ des Eintrags: Konferenzveröffentlichung
Erschienen: 2022
Herausgeber: Johnsen, Einar Broch ; Wimmer, Manuel
Autor(en): Jakobs, Marie-Christine ; Wiesner, Maik
Art des Eintrags: Bibliographie
Titel: PEQtest: Testing Functional Equivalence
Sprache: Englisch
Publikationsjahr: 29 März 2022
Verlag: Springer
Buchtitel: Fundamental Approaches to Software Engineering
Reihe: Lecture Notes in Computer Science
Band einer Reihe: 13241
Veranstaltungstitel: 25th International Conference on Fundamental Approaches to Software Engineering
Veranstaltungsort: Munich, Germany
Veranstaltungsdatum: 02.04.2022-07.04.2022
DOI: 10.1007/978-3-030-99429-7_11
Kurzbeschreibung (Abstract):

Refactoring a program without changing the program’s functional behavior is challenging. To prevent that behavioral changes remain undetected, one may apply approaches that compare the functional behavior of original and refactored programs. Difference detection approaches often use dedicated test generators and may be inefficient (i.e., execute (some of) the non-modified code twice). In contrast, proving functional equivalence often requires expensive verification. Therefore, we propose PEQtest, which aims at localized functional equivalence testing thereby relying on existing tests or test generators. To this end, PEQtest derives a test program from the original program by replacing each code segment being refactored with program code that encodes the equivalence of the original and its refactored code segment. The encoding is similar to program encodings used by some verification-based equivalence checkers. Furthermore, we prove that the test program derived by PEQtest indeed checks functional equivalence. Moreover, we implemented PEQtest in a prototype and evaluate it on several examples. Our evaluation shows that PEQtest successfully detects refactored programs that change the program behavior and that it often performs better than the state-of-the-art equivalence checker PEQcheck.

Zusätzliche Informationen:

Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2022

Fachbereich(e)/-gebiet(e): 20 Fachbereich Informatik
20 Fachbereich Informatik > Semantik und Verifikation paralleler Systeme
Hinterlegungsdatum: 31 Mär 2022 08:03
Letzte Änderung: 31 Mär 2022 08:03
PPN:
Export:
Suche nach Titel in: TUfind oder in Google
Frage zum Eintrag Frage zum Eintrag

Optionen (nur für Redakteure)
Redaktionelle Details anzeigen Redaktionelle Details anzeigen