Scalable Source Code Similarity Detection in Large Code Repositories

Alomari, Firas and Harbi, Muhammed (2019) Scalable Source Code Similarity Detection in Large Code Repositories. EAI Endorsed Transactions on Scalable Information Systems, 6 (22): e3. ISSN 2032-9407

[img]
Preview
Text
eai.13-7-2018.159353.pdf - Published Version
Available under License Creative Commons Attribution No Derivatives.

Download (2MB) | Preview

Abstract

Source code similarity are increasingly used in application development to identify clones, isolate bugs, and find copy-rights violations. Similar code fragments can be very problematic due to the fact that errors in the original code must be fixed in every copy. Other maintenance changes, such as extensions or patches, must be applied multiple times. Furthermore, the diversity of coding styles and flexibility of modern languages makes it difficult and cost ineffective to manually inspect large code repositories. Therefore, detection is only feasible by automatic techniques. We present an efficient and scalable approach for similar code fragment identification based on source code control flow graphs fingerprinting. The source code is processed to generate control flow graphs that are then hashed to create a unique fingerprint of the code capturing semantics as well as syntax similarity. The fingerprints can then be efficiently stored and retrieved to perform similarity search between code fragments. Experimental results from our prototype implementation supports the validity of our approach and show its effectiveness and efficiency in comparison with other solutions.

Item Type: Article
Uncontrolled Keywords: clones, software similarity, Control Flow Graphs, Fingerprints
Subjects: Q Science > QA Mathematics > QA75 Electronic computers. Computer science
QA75 Electronic computers. Computer science
Depositing User: EAI Editor II.
Date Deposited: 08 Oct 2020 13:54
Last Modified: 08 Oct 2020 13:54
URI: https://eprints.eudl.eu/id/eprint/699

Actions (login required)

View Item View Item