Source Code Enhancement Using Reduction of Duplicated Code

  • Nasehi S
  • Sotudeh G
  • Gomrokchi M
  • 10

    Readers

    Mendeley users who have this article in their library.
  • 5

    Citations

    Citations of this article.

Abstract

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.

Author-supplied keywords

  • code smell detection
  • duplicated code
  • refactoring

Get free article suggestions today

Mendeley saves you time finding and organizing research

Sign up here
Already have an account ?Sign in

Find this document

  • PUI: 352680856
  • ISBN: 9780889866416
  • SCOPUS: 2-s2.0-56149091812
  • SGR: 56149091812

Authors

  • Seyyed Mehdi Nasehi

  • Gholam Reza Sotudeh

  • Maziar Gomrokchi

Cite this document

Choose a citation style from the tabs below

Save time finding and organizing research with Mendeley

Sign up for free