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
来源
PROCEEDINGS OF THE IASTED INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING | 2007年
关键词
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
相关论文
共 6 条
  • [1] Clone detection using abstract syntax trees
    Baxter, ID
    Yahin, A
    Moura, L
    Sant'Anna, M
    Bier, L
    [J]. INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE, PROCEEDINGS, 1998, : 368 - 377
  • [2] Cormen T. H., 2001, Introduction to Algorithms, V2nd
  • [3] Ducasse S., 1999, Proceedings IEEE International Conference on Software Maintenance - 1999 (ICSM'99). `Software Maintenance for Business Change' (Cat. No.99CB36360), P109, DOI 10.1109/ICSM.1999.792593
  • [4] Fowler M., 1999, Refactoring: improving the design of existing code
  • [5] CCFinder: A multilinguistic token-based code clone detection system for large scale source code
    Kamiya, T
    Kusumoto, S
    Inoue, K
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2002, 28 (07) : 654 - 670
  • [6] KERIEVSKY J, 2005, REFACTORING PATTERNS