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 条
  • [41] Recording concerns in source code using annotations
    Sulir, Matus
    Nosal', Milan
    Poruban, Jaroslav
    COMPUTER LANGUAGES SYSTEMS & STRUCTURES, 2016, 46 : 44 - 65
  • [42] Source code analysis of flight software using a sonarqube based code quality platform
    Martignano, Maurizio
    Jung, Andraes
    Lehmann, Tobias
    Schmidt, Christian
    Ada User Journal, 2015, 36 (02): : 99 - 103
  • [43] Third-party Source Code Compliance using Early Static Code Analysis
    Takhma, Youness
    Rachid, Tajjeeddine
    Harroud, Hamid
    Abid, Mohamed Riduan
    Assem, Nasser
    PROCEEDINGS OF THE 2015 INTERNATIONAL CONFERENCE ON COLLABORATION TECHNOLOGIES AND SYSTEMS, 2015, : 132 - 139
  • [44] Duplicated Code Pattern Mining in Visual Programming Languages
    Terra-Neves, Miguel
    Nadkarni, Joao
    Ventura, Miguel
    Resende, Pedro
    Veiga, Hugo
    Alegria, Antonio
    PROCEEDINGS OF THE 29TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '21), 2021, : 1348 - 1359
  • [45] A AST AND CONTEXT BASED DUPLICATED CODE DETECTING METHOD
    Liu, Wei
    Liu, Chuanchang
    Gong, Yunzhan
    Chen, Junliang
    CIICT 2008: PROCEEDINGS OF CHINA-IRELAND INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATIONS TECHNOLOGIES 2008, 2008, : 1 - 5
  • [46] Code flows: Visualizing structural evolution of source code
    Telea, Alexandru
    Auber, David
    COMPUTER GRAPHICS FORUM, 2008, 27 (03) : 831 - 838
  • [47] Practices in Code Discoverability: Astrophysics Source Code Library
    Allen, Alice
    Teuben, Peter
    Nemiroff, Robert J.
    Shamir, Lior
    ASTRONOMICAL DATA ANALYSIS SOFTWARE AND SYSTEMS XXI, 2012, 461 : 627 - +
  • [48] ChatGPT Code Detection: Techniques for Uncovering the Source of Code
    Oedingen, Marc
    Engelhardt, Raphael C.
    Denz, Robin
    Hammer, Maximilian
    Konen, Wolfgang
    AI, 2024, 5 (03) : 1066 - 1094
  • [49] Learning to Align the Source Code to the Compiled Object Code
    Levy, Dor
    Wolf, Lior
    INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 70, 2017, 70
  • [50] Code Comments: A Way of Identifying Similarities in the Source Code
    Folea, Rares
    Slusanschi, Emil
    MATHEMATICS, 2024, 12 (07)