Title of article
Viewing functions as token sequences to highlight similarities in source code
Author/Authors
Michel Chilowicz، نويسنده , , Etienne Duris، نويسنده , , Gilles Roussel، نويسنده ,
Issue Information
ماهنامه با شماره پیاپی سال 2013
Pages
21
From page
1871
To page
1891
Abstract
The detection of similarities in source code has applications not only in software re-engineering (to eliminate redundancies) but also in software plagiarism detection. This later can be a challenging problem since more or less extensive edits may have been performed on the original copy: insertion or removal of useless chunks of code, rewriting of expressions, transposition of code, inlining and outlining of functions, etc. In this paper, we propose a new similarity detection technique not only based on token sequence matching but also on the factorization of the function call graphs. The factorization process merges shared chunks (factors) of codes to cope, in particular, with inlining and outlining. The resulting call graph offers a view of the similarities with their nesting relations. It is useful to infer metrics quantifying similarity at a function level.
Keywords
Clones , Source code , Duplication , Similarity , Factorization , Inlining , call graph , Suffix indexation , Outlining
Journal title
Science of Computer Programming
Serial Year
2013
Journal title
Science of Computer Programming
Record number
1080415
Link To Document