Diff/TS: A Tool for Fine-Grained Structural Change Analysis
- 1 October 2008
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 10951350,p. 279-288
Abstract
This paper reports on a tool for fine-grained analysis of structural changes made between revisions of programs. The tool, called Diff/TS, calculates, visualizes and classifies edit operations including "moves'' that will change one revision into another by means of detailed tree structural analysis on source code. Such analysis tends to be time consuming and inflexible. We have extended a general tree comparison algorithm with heuristics driven control configurable for multiple programming languages and have achieved both processing speed and analysis precision needed for investigating large-scale software projects. The tool is capable of processing Python, Java, C and C++ projects. We present several applications including software "archaeology'' on a widely known open source software project and automated "phylogenetic'' malware classification based on control flows. These examples suggest that tree differencing is useful for measuring distance or dissimilarity between tree structured artifacts, and offer good precision tests of the method.Keywords
This publication has 17 references indexed in Scilit:
- Property Testing of Regular Tree LanguagesAlgorithmica, 2007
- A tool for analyzing and detecting malicious mobile code2006
- Mining version histories to guide software changesIEEE Transactions on Software Engineering, 2005
- Dex: a semantic-graph differencing tool for studying changes in large code bases2004
- Change detection in hierarchically structured informationACM SIGMOD Record, 1996
- Identifying syntactic differences between two programsSoftware: Practice and Experience, 1991
- Simple Fast Algorithms for the Editing Distance between Trees and Related ProblemsSIAM Journal on Computing, 1989
- AnO(ND) difference algorithm and its variationsAlgorithmica, 1986
- The Tree-to-Tree Correction ProblemJournal of the ACM, 1979
- The tree-to-tree editing problemInformation Processing Letters, 1977