Source code enhancement using reduction of duplicated code

被引:0
|
作者
Nasehi, Seyyed Mehdi [1 ]
Sotudeh, Gholam Reza [2 ]
Gomrokchi, Maziar [2 ]
机构
[1] Shiraz Univ Technol, Dept IT, Modarres Blvd, Shiraz, Iran
[2] Shiraz Azad Univ, Dept Engn, Shiraz, Iran
关键词
duplicated code; code smell detection; refactoring;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In this paper a novel method is proposed which is capable of detecting code smell incidents of duplicated code in a source code. The proposed method is superior to other methods since it is capable of detecting subtle duplicates of code (or code clones) which is hard to detect using those methods. The proposed method first transforms source code into a middle language format. Being in this middle format each instruction represents an atomic simple operation. Then these instructions are compared and perceived matches are aggregated to form the largest possible code clone. Finally we have compared the results of our proposed method with some other methods and have shown that the results of those methods are subsets of the result set which is developed by our new method.
引用
收藏
页码:192 / +
页数:2
相关论文
共 50 条
  • [21] SOURCE CODE
    Pedroni, Federico
    CINEFORUM, 2011, 51 (04): : 9 - 13
  • [22] Source Code
    Kind, Amy
    TPM-THE PHILOSOPHERS MAGAZINE, 2011, (55): : 112 - 113
  • [23] Source Code
    Miller, Henry K.
    SIGHT AND SOUND, 2011, 21 (06): : 77 - 77
  • [24] Source Code
    Nesin, Kate
    ARTFORUM INTERNATIONAL, 2015, 54 (03): : 282 - 287
  • [25] On Development of a Framework for Massive Source Code Analysis Using Static Code Analyzers
    Chistyakov, Alexander
    Pripadchev, Artem
    Radchenko, Irina
    CEE-SECR'17: PROCEEDINGS OF THE 13TH CENTRAL & EASTERN EUROPEAN SOFTWARE ENGINEERING CONFERENCE IN RUSSIA, 2017,
  • [26] Generating Pseudo-Code from Source Code Using Deep Learning
    Alhefdhi, Abdulaziz
    Dam, Hoa Khanh
    Hata, Hideaki
    Ghose, Aditya
    2018 25TH AUSTRALASIAN SOFTWARE ENGINEERING CONFERENCE (ASWEC), 2018, : 21 - 25
  • [27] Analyzing Source Code Identifiers for Code Reuse using NLP Techniques and WordNet
    Pirapuraj, P.
    Perera, Indika
    2017 3RD INTERNATIONAL MORATUWA ENGINEERING RESEARCH CONFERENCE (MERCON), 2017, : 105 - 110
  • [28] Source code based function point analysis for enhancement projects
    Klusener, S
    INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE, PROCEEDINGS, 2003, : 373 - 376
  • [29] Summarizing source code with hierarchical code representation
    Zhou, Ziyi
    Yu, Huiqun
    Fan, Guisheng
    Huang, Zijie
    Yang, Xingguang
    INFORMATION AND SOFTWARE TECHNOLOGY, 2022, 143
  • [30] Seamless Code Reuse with Source Code Corpus
    Yamamoto, Tetsuo
    Yoshida, Norihiro
    Higo, Yoshiki
    2013 20TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2013), VOL 2, 2013, : 31 - 36