Semantic Clone Detection via Probabilistic Software Modeling
Hannes Thaller, Lukas Linsbauer, and Alexander Egyed

TL;DR
This paper introduces SCD-PSM, a probabilistic modeling approach that accurately detects semantic clones with 0% syntactic similarity by evaluating behavioral equivalence through likelihood ratios.
Contribution
The paper presents a novel probabilistic software modeling method for semantic clone detection that outperforms existing techniques, especially in identifying behaviorally equivalent but syntactically different code.
Findings
Achieved Matthews Correlation Coefficient > 0.9 in clone detection.
Effectively detects semantic clones with 0% syntactic similarity.
Works on complex and classical semantic clone detection problems.
Abstract
Semantic clone detection is the process of finding program elements with similar or equal runtime behavior. For example, detecting the semantic equality between the recursive and iterative implementation of the factorial computation. Semantic clone detection is the de facto technical boundary of clone detectors. In recent years, this boundary has been tested using interesting new approaches. This article contributes a semantic clone detection approach that detects clones that have 0% syntactic similarity. We present Semantic Clone Detection via Probabilistic Software Modeling (SCD-PSM) as a stable and precise solution to semantic clone detection. PSM builds a probabilistic model of a program that is capable of evaluating and generating runtime data. SCD-PSM leverages this model and its model elements for finding behaviorally equal model elements. This behavioral equality is then…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
