Model clone detection in practice
Florian Deissenboeck, Benjamin Hummel, Elmar Juergens et al. · 2010
Cloned code is considered harmful for two reasons: (1) multiple, possibly unnecessary, duplicates of code increase maintenance costs and, (2) inconsistent changes to cloned code can create faults and, hence, lead to incorrect program behavior. Likewise, duplicated parts of models are problematic in model-based development. Recently, we and other authors proposed multiple approaches to automatically identify duplicates in graphical models. While it has been demonstrated that these approaches work in principal, a number of challenges remain for application in industrial practice. Based on an industrial case study undertaken with the BMW Group, this paper details on these challenges and presents solutions to the most pressing ones, namely scalability and relevance of the results. Moreover, we present tool support that eases the evaluation of detection results and thereby helps to make clone detection a standard technique in model-based quality assurance.
Cited by 96 works. doi:10.1145/1808901.1808909
Authors
References
- Using Slicing to Identify Duplication in Source Code
- Identifying similar code with program dependence graphs
- A Survey on Software Clone Detection Research
- Do Code Clones Matter
- Do code clones matter?
- Survey of Research on Software Clones
- Clone detection in automotive model-based development
- Problems creating task-relevant clone detection reference data
- Complete and accurate clone detection in graph-based models
- A Quantitative Comparison of the Subgraph Miners MoFa, gSpan, FFSM, and Gaston