arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0701081cs.PLcs.SE
收藏

指纹识别逻辑程序

Fingerprinting Logic Programs

Alexander Serebrenik, Wim Vanhoof

摘要:

在这项工作中,我们提出了正在进行的工作在逻辑程序中的功能重复检测。消除重复的功能最近在重构的上下文中变得突出起来。我们描述了一种定量的方法,允许测量两个谓词定义之间的“相似性”。此外,我们展示了如何为每个谓词计算所谓的“指纹”。指纹捕获谓词的那些特征,这些特征在搜索重复功能时很重要。由于指纹上的推理比谓词定义上的推理容易得多,比较指纹是逻辑程序中自动代码复制的一个有前途的方向。

英文摘要:

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.

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

↑