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
关键词
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 条
  • [1] How are functionally similar code clones syntactically different? An empirical study and a benchmark
    Wagner, Stefan
    Abdulkhaleq, Asim
    Bogicevic, Ivan
    Ostberg, Jan-Peter
    Ramadani, Jasmin
    PEERJ COMPUTER SCIENCE, 2016,
  • [2] Identifying Functionally Similar Code in Complex Codebases
    Su, Fang-Hsiang
    Bell, Jonathan
    Kaiser, Gail
    Sethumadhavan, Simha
    2016 IEEE 24TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC), 2016,
  • [3] Challenges of the Dynamic Detection of Functionally Similar Code Fragments
    Deissenboeck, Florian
    Heinemann, Lars
    Hummel, Benjamin
    Wagner, Stefan
    2012 16TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING (CSMR), 2012, : 297 - +
  • [4] Detecting Functionally Similar Code within the Same Project
    Tajima, Ryo
    Nagura, Masataka
    Takada, Shingo
    2018 IEEE 12TH INTERNATIONAL WORKSHOP ON SOFTWARE CLONES (IWSC), 2018, : 51 - 57
  • [5] XIAO: Tuning Code Clones at Hands of Engineers in Practice
    Dang, Yingnong
    Zhang, Dongmei
    Ge, Song
    Chu, Chengyun
    Qiu, Yingjun
    Xie, Tao
    28TH ANNUAL COMPUTER SECURITY APPLICATIONS CONFERENCE (ACSAC 2012), 2012, : 369 - 378
  • [6] Finding Bugs Using Your Own Code: Detecting Functionally-similar yet Inconsistent Code
    Ahmadi, Mansour
    Farkhani, Reza Mirzazade
    Williams, Ryan
    Lu, Long
    PROCEEDINGS OF THE 30TH USENIX SECURITY SYMPOSIUM, 2021, : 2025 - 2040
  • [7] A comparative study of test code clones and production code clones?
    van Bladel, Brent
    Demeyer, Serge
    JOURNAL OF SYSTEMS AND SOFTWARE, 2021, 176
  • [8] Functionally similar species have similar dynamics
    Rocha, Marcia R.
    Gaedke, Ursula
    Vasseur, David A.
    JOURNAL OF ECOLOGY, 2011, 99 (06) : 1453 - 1459
  • [9] A code obfuscation framework using code clones
    Kulkarni, Aniket
    Metta, Ravindra
    22nd International Conference on Program Comprehension, ICPC 2014 - Proceedings, 2014, : 295 - 299
  • [10] Some functionally complete minimal clones
    Palfy, Peter P.
    ACTA SCIENTIARUM MATHEMATICARUM, 2007, 73 (3-4): : 487 - 495