Are There Functionally Similar Code Clones in Practice?

被引:0
|
作者
Kaefer, Verena [1 ]
Wagner, Stefan [1 ]
Koschke, Rainer [2 ]
机构
[1] Univ Stuttgart, Stuttgart, Germany
[2] Univ Bremen, Bremen, Germany
来源
2018 IEEE 12TH INTERNATIONAL WORKSHOP ON SOFTWARE CLONES (IWSC) | 2018年
关键词
code clones; survey;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Having similar code fragments, also called clones, in software systems can lead to unnecessary comprehension, review and change efforts. Syntactically similar clones can often be encountered in practice. The same is not clear for only functionally similar clones (FSC). We conducted an exploratory survey among developers to investigate whether they encounter functionally similar clones in practice and whether there is a difference in their inclination to remove them to syntactically similar clones. Of the 34 developers answering the survey, 31 have experienced FSC in their professional work, and 24 have experienced problems caused by FSCs. We found no difference in the inclination and reasoning for removing FSCs and syntactically similar clones. FSCs exist in practice and should be investigated to bring clone detectors to the same quality as for syntactically similar clones, because being able to detect them allows developers to manage and potentially remove them.
引用
收藏
页码:2 / 8
页数:7
相关论文
共 50 条
  • [21] Scalable and accurate detection of code clones
    S. Sargsyan
    Sh. Kurmangaleev
    A. Belevantsev
    A. Avetisyan
    Programming and Computer Software, 2016, 42 : 27 - 33
  • [22] Tracking code clones in evolving software
    Duala-Ekoko, Ekwa
    Robillard, Martin P.
    ICSE 2007: 29TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2007, : 158 - +
  • [23] Code Clone Graph Metrics for Detecting Diffused Code Clones
    Fukushima, Yoshihiko
    Kula, Raula
    Kawaguchi, Shinji
    Fushida, Kyohei
    Nagura, Masataka
    Iida, Hajimu
    APSEC 09: SIXTEENTH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE, PROCEEDINGS, 2009, : 373 - 380
  • [24] Relation of code clones and change couplings
    Geiger, R
    Fluri, B
    Gall, HC
    Pinzger, M
    FUNDAMENTAL APPROACHES TO SOFTWARE ENGINEERING, PROCEEDINGS, 2006, 3922 : 411 - 425
  • [25] RepliComment: Identifying clones in code comments
    Blasi, Arianna
    Stulova, Nataliia
    Gorla, Alessandra
    Nierstrasz, Oscar
    JOURNAL OF SYSTEMS AND SOFTWARE, 2021, 182
  • [26] Detecting and Analyzing Code Clones in HDL
    Uemura, Kyohei
    Mori, Akira
    Fujiwara, Kenji
    Choi, Eunjong
    Iida, Hajimu
    2017 IEEE 11TH INTERNATIONAL WORKSHOP ON SOFTWARE CLONES (IWSC), 2017, : 1 - 7
  • [27] Detecting Code Clones in Binary Executables
    Saebjornsen, Andreas
    Willcock, Jeremiah
    Panas, Thomas
    Quinlan, Daniel
    Su, Zhendong
    ISSTA 2009: INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, 2009, : 117 - 127
  • [28] BinClone: Detecting Code Clones in Malware
    Farhadi, Mohammad Reza
    Fung, Benjamin C. M.
    Charland, Philippe
    2014 EIGHTH INTERNATIONAL CONFERENCE ON SOFTWARE SECURITY AND RELIABILITY, 2014, : 78 - 87
  • [29] Towards a Curated Collection of Code Clones
    Tempero, Ewan
    2013 7TH INTERNATIONAL WORKSHOP ON SOFTWARE CLONES (IWSC), 2013, : 53 - 59
  • [30] RepliComment: Identifying Clones in Code Comments
    Blasi, Arianna
    Gorla, Alessandra
    2018 IEEE/ACM 26TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC 2018), 2018, : 320 - 323