Activities per year
Abstract
Deciding whether two code fragments are semantic clones, or type-4 clones, is a problem with many ramifications. Current research often focuses on the problem in an imperative or object-oriented setting and most existing work uses abstract syntax trees, program dependency graphs, program metrics or text-based, token-based and machine learning-based approaches to identify semantic clones. In this work, we adopt a fundamentally different point of view and express clone detection as a search problem in a logic programming setting. Due to their restricted syntax and semantics, (constraint) logic programs are by nature simple and elegant candidates for automated analysis. After having formalized the clone detection problem at the level of predicates, we develop a study of the different parameters that come into play in the resulting framework. We try and identify the complexity issues involved in a general semantic clone detection procedure that essentially computes so-called most specific generalizations for predicates written in constraint logic programming (CLP). Even though well-known for basic structures such as literals and terms, generalization (or anti-unification) of more complex structures such as clauses and predicates has received very little attention. We show that the anti-unification allows both to control the search and guide the detection of cloned predicates. We pinpoint where efficient approximations are needed in order to be able to identify semantic code clones in a manageable time frame.
Original language | English |
---|---|
Title of host publication | Proceedings - 2022 IEEE 16th International Workshop on Software Clones, IWSC 2022 |
Subtitle of host publication | Proceedings |
Publisher | IEEE Computer Society |
Pages | 32 - 38 |
Number of pages | 7 |
ISBN (Electronic) | 978-1-6654-8447-3 |
ISBN (Print) | 978-1-6654-8448-0 |
DOIs | |
Publication status | Published - 14 Dec 2022 |
Event | 2022 IEEE 16th International Workshop on Software Clones - Limassol, Cyprus Duration: 2 Oct 2022 → 2 Oct 2022 https://iwsc2022.github.io/ |
Publication series
Name | Proceedings - 2022 IEEE 16th International Workshop on Software Clones, IWSC 2022 |
---|
Conference
Conference | 2022 IEEE 16th International Workshop on Software Clones |
---|---|
Abbreviated title | IWSC 2022 |
Country/Territory | Cyprus |
City | Limassol |
Period | 2/10/22 → 2/10/22 |
Internet address |
Keywords
- Semantic Clone Detection
- Constraint Logic Programming
- Anti-unification
- Complexity
Fingerprint
Dive into the research topics of 'On Detecting Semantic Clones in Constraint Logic Programs'. Together they form a unique fingerprint.Activities
- 1 Oral presentation
-
On Detecting Semantic Clones in Constraint Logic Programs
Yernaux, G. (Speaker)
2 Oct 2022Activity: Talk or presentation types › Oral presentation
Student theses
-
Equivalence algorithmique par transformations de programmes logiques avec contraintes
Yernaux, G. (Author), Cleve, A. (President), Vanhoof, W. (Supervisor) & Schobbens, P.-Y. (Jury), 23 Jun 2017Student thesis: Master types › Master in Computer science
File