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 条
  • [1] A Duplicated Code Refactoring Advisor
    Fontana, Francesca Arcelli
    Zanoni, Marco
    Zanoni, Francesco
    AGILE PROCESSES, IN SOFTWARE ENGINEERING, AND EXTREME PROGRAMMING, XP 2015, 2015, 212 : 3 - 14
  • [2] Using Fuzzy Code Search to Link Code Fragments in Discussions to Source Code
    Bettenburg, Nicolas
    Thomas, Stephen W.
    Hassan, Ahmed E.
    2012 16TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING (CSMR), 2012, : 319 - 328
  • [3] Scalable Source Code Plagiarism Detection Using Source Code Vectors Clustering
    Duracik, Michal
    Krsak, Emil
    Hrkut, Patrik
    PROCEEDINGS OF 2018 IEEE 9TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND SERVICE SCIENCE (ICSESS), 2018, : 499 - 502
  • [4] Code Coverage of Assertions Using RTL Source Code Analysis
    Athavale, Viraj
    Ma, Sai
    Hertz, Samuel
    Vasudevan, Shobha
    2014 51ST ACM/EDAC/IEEE DESIGN AUTOMATION CONFERENCE (DAC), 2014,
  • [5] Code thumbnails: Using spatial memory to navigate source code
    DeLine, Robert
    Czerwinski, Mary
    Meyers, Brian
    Venolia, Gina
    Drucker, Steven
    Robertson, George
    IEEE SYMPOSIUM ON VISUAL LANGUAGES AND HUMAN-CENTRIC COMPUTING, PROCEEDINGS, 2006, : 11 - +
  • [6] CODE2SNAPSHOT: Using Code Snapshots for Learning Representations of Source Code
    Rabin, Md Rafiqul Islam
    Alipour, Mohammad Amin
    2022 21ST IEEE INTERNATIONAL CONFERENCE ON MACHINE LEARNING AND APPLICATIONS, ICMLA, 2022, : 843 - 848
  • [7] Managing duplicated code with linked editing
    Toomim, M
    Begel, A
    Graham, SL
    2004 IEEE SYMPOSIUM ON VISUAL LANGUAGES AND HUMAN CENTRIC COMPUTING: PROCEEDINGS, 2004, : 173 - 180
  • [8] Automatic source code specialization for energy reduction
    Chung, EY
    Benini, L
    De Micheli, G
    ISLPED'01: PROCEEDINGS OF THE 2001 INTERNATIONAL SYMPOSIUM ON LOWPOWER ELECTRONICS AND DESIGN, 2001, : 80 - 83
  • [9] Tool demonstration: Finding duplicated code using program dependences
    Komondoor, R
    Horwitz, S
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2001, 2028 : 383 - 386
  • [10] Code Clone Detection Using Decentralized Architecture and Code Reduction
    Patil, Ritesh V.
    Joshi, Shashank D.
    Shinde, Sachin V.
    Ajagekar, Digvijay A.
    Bankar, Shubham D.
    2015 INTERNATIONAL CONFERENCE ON PERVASIVE COMPUTING (ICPC), 2015,