Identifying similar code with program dependence graphs
Jens Krinke · Proceedings - Working Conference on Reverse Engineering · 2002
We present an approach to identifying similar code in programs based on finding similar subgraphs in attributed directed graphs. This approach is used on program dependence graphs and therefore considers not only the syntactic structure of programs but also the data flow within (as an abstraction of the semantics). As a result, there is no tradeoff between precision and recall; our approach is very good in both. An evaluation of our prototype implementation shows that the approach is feasible and gives very good results despite the non polynomial complexity of the problem.
Cited by 616 works. doi:10.1109/wcre.2001.957835
Authors
References
- Interprocedural slicing using dependence graphs
- Clone detection using abstract syntax trees
- On finding duplication and near-duplication in large software systems
- Integrating noninterfering versions of programs
- Experiment on the automatic detection of function clones in a software system using metrics
- A language independent approach for detecting duplicated code
- Using Slicing to Identify Duplication in Source Code
- The use of program dependence graphs in software engineering
- GXL: toward a standard exchange format
- Evaluation experiments on the detection of programming patterns using software metrics