• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2011, Vol. 33 ›› Issue (12): 78-83.

• 论文 • Previous Articles     Next Articles

A New Method of Detecting the Structural Clone

GUO Jing,WU Junhua   

  1. (School of Electronics and Information Engineering,Nanjing University of Technology,Nanjing 211816,China)
  • Received:2011-05-16 Revised:2011-09-27 Online:2011-12-24 Published:2011-12-25

Abstract:

The structural clone is a clone with a similar principle and thinking structure, which does not rigidly adhere to the order of statements and expressions. Program dependence graph can better reflect the program's internal relations, and the expression becomes more intuitive to understand. So we first detect the clone code based on the program dependence graph and the process using the  program slicing techniques.Then we summarize  the characteristics of the structural clone, quantify and generalize the characteristics of the program dependence graph to calculate the similarity. It is useful to get a better assessment of similarity and improve the rate of clone.

Key words: structural clone;program dependence graph;program slicing;similarity