An Improvement Method for Program Structure Using Code Clone Detection, Impact Analysis, and Refactoring Formats

Autor: Masakazu Takahashi, Reiji Nanba, Yunarso Anang, Yoshimichi Watanabe
Jazyk: angličtina
Rok vydání: 2017
Předmět:
Zdroj: SICE Journal of Control, Measurement, and System Integration, Vol 10, Iss 3, Pp 184-191 (2017)
Druh dokumentu: article
ISSN: 1884-9970
DOI: 10.9746/jcmsi.10.184
Popis: This paper proposes a method that aggregates similar portions (code clones) in the developed program and redesigns the current program structure to an adequate program structure. The procedure of the proposed method is the following: Code clones are detected, and their characteristics are extracted, the design methods that code clones are aggregated are proposed, the program is modified, and the affected portions in the program are clarified and retested. Furthermore, a tool that supports the proposed method is created. As a result of applying the proposed method and the tool, it is found that 45% CCs are aggregated and 13% instructions of the program are deleted. Additionally, it is found that an adequate program structure is realized by using the proposed method and the tool.
Databáze: Directory of Open Access Journals