Semantically Enhanced Code Clone Refinement Algorithm Based on Analysis of Multiple Detection Reports

被引:0
|
作者
Sotolongo, Ricardo [1 ]
Dong, Fangyan [1 ]
Hirota, Kaoru [1 ]
机构
[1] Tokyo Inst Technol, Dept Computat Intelligence & Syst Sci, Midori Ku, G3-49,4259 Nagatsuta, Yokohama, Kanagawa 2268502, Japan
关键词
code clones; refinement; semantic analysis; WordNet;
D O I
10.20965/jaciii.2011.p0322
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
An algorithm based on semantic analysis of multiple detection tools' reports using WordNet is proposed oriented on the refinement of code clones. It parses different detection tools' reports looking for new clone specifications, and refines the location of existing ones using semantic information contained in source code. It is applied to a real and complex software system and is compared to three other well-known detection algorithms, discovering 4888 clone pairs more than the average detected by other tools; also making the code clones 3 lines longer (for a subset of the same system the results are proportional to the size reduction). The objective is to provide higher quantity of code clones, and more appropriated localization to be used in refactoring processes.
引用
收藏
页码:322 / 328
页数:7
相关论文
共 50 条
  • [1] To Enhance the Code Clone Detection Algorithm by using Hybrid Approach for detection of code clones
    Roopam
    Singh, Gurpreet
    [J]. 2017 INTERNATIONAL CONFERENCE ON INTELLIGENT COMPUTING AND CONTROL SYSTEMS (ICICCS), 2017, : 192 - 198
  • [2] Semantic Code Clone Detection Based on Community Detection
    Wan, Zexuan
    Xie, Chunli
    Lv, Quanrun
    Fan, Yasheng
    [J]. INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2024, : 1661 - 1692
  • [3] A Method of Program Refactoring based on Code Clone Detection and Impact Analysis
    Takahashi, Masakazu
    Nanba, Reiji
    Anang, Yunarso
    Uchiyama, Tatsuya
    Watanabe, Yoshimichi
    [J]. 2016 55TH ANNUAL CONFERENCE OF THE SOCIETY OF INSTRUMENT AND CONTROL ENGINEERS OF JAPAN (SICE), 2016, : 673 - 678
  • [4] Gapped Code Clone Detection with Lightweight Source Code Analysis
    Murakami, Hiroaki
    Hotta, Keisuke
    Higo, Yoshiki
    Igaki, Hiroshi
    Kusumoto, Shinji
    [J]. 2013 IEEE 21ST INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC), 2013, : 93 - 102
  • [5] A code clone detection algorithm based on graph convolution network with AST tree edge
    Lu, Zhicheng
    Li, Ruochen
    Hu, Huamiao
    Zhou, Wen-an
    [J]. 2021 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C 2021), 2021, : 1027 - 1032
  • [6] Clone Detection with Pre-training Enhanced Code Representation
    Leng L.-S.
    Liu S.
    Tian C.-L.
    Dou S.-J.
    Wang Z.
    Zhang M.-S.
    [J]. Ruan Jian Xue Bao/Journal of Software, 2022, 33 (05): : 1758 - 1773
  • [7] A Novel Code Stylometry-based Code Clone Detection Strategy
    Dong, Wenyuan
    Feng, Zhiyong
    Wei, Hua
    Luo, Hong
    [J]. 2020 16TH INTERNATIONAL WIRELESS COMMUNICATIONS & MOBILE COMPUTING CONFERENCE, IWCMC, 2020, : 1516 - 1521
  • [8] Test-Based Clone Detection: an Initial Try on Semantically Equivalent Methods
    Li, Guangjie
    Liu, Hui
    Jiang, Yanjie
    Jin, Jiahao
    [J]. IEEE ACCESS, 2018, 6 : 77643 - 77655
  • [9] Transferring Code-Clone Detection and Analysis to Practice
    Dang, Yingnong
    Zhang, Dongmei
    Ge, Song
    Huang, Ray
    Chu, Chengyun
    Xie, Tao
    [J]. 2017 IEEE/ACM 39TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: SOFTWARE ENGINEERING IN PRACTICE TRACK (ICSE-SEIP 2017), 2017, : 53 - 62
  • [10] Code Clone Detection Model: A SWOT Analysis Perspective
    Mubarak-Ali, Al-Fahim
    Romli, Rahiwan Nazar
    Sjarif, Nilam Nur Amir
    [J]. ADVANCED SCIENCE LETTERS, 2018, 24 (10) : 7210 - 7213