Fingerprinting Logic Programs
Abstract
In this work we present work in progress on functionality duplication detection in logic programs. Eliminating duplicated functionality recently became prominent in context of refactoring. We describe a quantitative approach that allows to measure the ``similarity'' between two predicate definitions. Moreover, we show how to compute a so-called ``fingerprint'' for every predicate. Fingerprints capture those characteristics of the predicate that are significant when searching for duplicated functionality. Since reasoning on fingerprints is much easier than reasoning on predicate definitions, comparing the fingerprints is a promising direction in automated code duplication in logic programs.
- Publication:
-
arXiv e-prints
- Pub Date:
- January 2007
- DOI:
- 10.48550/arXiv.cs/0701081
- arXiv:
- arXiv:cs/0701081
- Bibcode:
- 2007cs........1081S
- Keywords:
-
- Computer Science - Programming Languages;
- Computer Science - Software Engineering
- E-Print:
- Paper presented at the 16th Workshop on Logic-based methods in Programming Languages (WLPE2006)