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 条
  • [31] Identifying Source Code Reuse across Repositories using LCS-based Source Code Similarity
    Kawamitsu, Naohiro
    Ishio, Takashi
    Kanda, Tetsuya
    Kula, Raula Gaikovina
    De Roover, Coen
    Inoue, Katsuro
    2014 14TH IEEE INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION (SCAM 2014), 2014, : 305 - 314
  • [32] Poisoned source code detection in code models
    Ghannoum, Ehab
    Ghafari, Mohammad
    JOURNAL OF SYSTEMS AND SOFTWARE, 2025, 226
  • [33] Retrieval on Source Code: A Neural Code Search
    Sachdev, Saksham
    Li, Hongyu
    Luan, Sifei
    Kim, Seohyun
    Sen, Koushik
    Chandra, Satish
    MAPL'18: PROCEEDINGS OF THE 2ND ACM SIGPLAN INTERNATIONAL WORKSHOP ON MACHINE LEARNING AND PROGRAMMING LANGUAGES, 2018, : 31 - 41
  • [34] Source Code Classification Using Neural Networks
    Gilda, Shlok
    PROCEEDINGS OF 2017 14TH INTERNATIONAL JOINT CONFERENCE ON COMPUTER SCIENCE AND SOFTWARE ENGINEERING (JCSSE), 2017,
  • [35] Source Code Retrieval on StackOverflow Using LDA
    Arwan, Achmad
    Rochimah, Siti
    Akbar, Rizky Januar
    2015 3RD INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGY (ICOICT), 2015, : 295 - 299
  • [36] Generic Source Code Migration Using Decompilation
    Durfina, Lukas
    Kroustek, Jakub
    Zemek, Petr
    10TH INTERNATIONAL INDUSTRIAL SIMULATION CONFERENCE 2012 (ISC 2012), 2012, : 38 - 42
  • [37] Using slicing to identify duplication in source code
    Komondoor, R
    Horwitz, S
    STATIC ANALYSIS, PROCEEDINGS, 2001, 2126 : 40 - 56
  • [38] Using Structured Queries for Source Code Search
    Eddy, Brian P.
    Kraft, Nicholas A.
    2014 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2014, : 431 - 435
  • [39] Language Composition Using Source Code Annotations
    Nosal', Milan
    Sulir, Matus
    Juhar, Jan
    COMPUTER SCIENCE AND INFORMATION SYSTEMS, 2016, 13 (03) : 707 - 729
  • [40] Source code optimization using equivalent mutants
    Lopez, Jorge
    Kushik, Natalia
    Yevtushenko, Nina
    INFORMATION AND SOFTWARE TECHNOLOGY, 2018, 103 : 138 - 141