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
相关论文
共 14 条
  • [1] Challenges of the Dynamic Detection of Functionally Similar Code Fragments
    Deissenboeck, Florian
    Heinemann, Lars
    Hummel, Benjamin
    Wagner, Stefan
    [J]. 2012 16TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING (CSMR), 2012, : 297 - +
  • [2] Gabel M, 2008, ICSE'08 PROCEEDINGS OF THE THIRTIETH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, P321, DOI 10.1145/1368088.1368132
  • [3] Jiang LX, 2009, ISSTA 2009: INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, P81
  • [4] Code Similarities Beyond Copy & Paste
    Juergens, Elmar
    Deissenboeck, Florian
    Hummel, Benjamin
    [J]. 14TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING (CSMR 2010), 2010, : 78 - 87
  • [5] Do Code Clones Matter?
    Juergens, Elmar
    Deissenboeck, Florian
    Hummel, Benjamin
    Wagner, Stefan
    [J]. 2009 31ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2009, : 485 - 495
  • [6] Kafer V., 2018, QUESTIONNAIRE R SCRI, DOI [10.5281/zenodo.1183309, DOI 10.5281/ZENODO.1183309]
  • [7] Kim H, 2011, 2011 33RD INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), P301, DOI 10.1145/1985793.1985835
  • [8] Komondoor Raghavan, 2001, P 8 INT S STAT AN SA, V1, P40
  • [9] Identifying similar code with program dependence graphs
    Krinke, J
    [J]. EIGHTH WORKING CONFERENCE ON REVERSE ENGINEERING, PROCEEDINGS, 2001, : 301 - 309
  • [10] Krutz DE, 2013, WORK CONF REVERSE EN, P489, DOI 10.1109/WCRE.2013.6671332