• DocumentCode
    2191906
  • Title

    An execution-semantic and content-and-context-based code-clone detection and analysis

  • Author

    Kamiya, Toshihiro

  • Author_Institution
    Dept. of Media Archit., Future Univ. Hakodate, Hakodate, Japan
  • fYear
    2015
  • fDate
    6-6 March 2015
  • Firstpage
    1
  • Lastpage
    7
  • Abstract
    This paper presents a code-clone detection and its analysis method, based on an execution-semantic and arbitrary-granularity model[8] of code fragments. The principal goal of introducing the proposed detection method is to provide a code-clone detection method suitable for programming languages, where software developers can define their own “control sentences” with such as lambda or lazy evaluation. Code clones detected with the proposed method are a kind of type-3 clone, where code fragments exist across boundaries of procedures or modules. The model also seems useful as clone metrics (for a clone triage) based on the contents and contexts of code fragments in a clone class and extensible to a unified method of code-clone detection and code search. This paper introduces an execution-semantic and content-and-context based code clone, describes its definition, a detection method, an analysis method, and a prototype implementation of a tool chain, which was applied to two open-source products as an preliminary empirical evaluation.
  • Keywords
    program diagnostics; programming languages; public domain software; software metrics; source code (software); arbitrary-granularity model; clone metrics; code search; content-and-context-based code-clone detection; control sentences; execution semantic; execution-semantic-based code-clone detection; lambda; lazy evaluation; open-source products; programming languages; Cloning; Computer languages; Context; Heuristic algorithms; Object oriented modeling; Prototypes; Visualization;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Clones (IWSC), 2015 IEEE 9th International Workshop on
  • Conference_Location
    Montreal, QC
  • Type

    conf

  • DOI
    10.1109/IWSC.2015.7069882
  • Filename
    7069882