{"id":18,"date":"2012-04-15T07:19:04","date_gmt":"2012-04-15T07:19:04","guid":{"rendered":"http:\/\/www.codinuum.com\/en\/?p=18"},"modified":"2022-02-22T10:56:32","modified_gmt":"2022-02-22T10:56:32","slug":"wcre2008","status":"publish","type":"post","link":"https:\/\/codinuum.com\/en\/publications\/wcre2008.html","title":{"rendered":"Diff\/TS: A Tool for Fine-Grained Structural Change Analysis (WCRE2008)"},"content":{"rendered":"<p>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. <!--more--><\/p>\n<h1>Abstract<\/h1>\n<p>This paper reports on a tool for fine-grained analysis of structural changes made between revisions of programs. \u00a0The tool, called Diff\/TS, calculates, visualizes and classifies edit operations including <em>moves<\/em> that will change one revision into another by means of detailed tree structural analysis on source code. \u00a0Such\u00a0analysis tends to be time consuming and inflexible. \u00a0We have\u00a0 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. \u00a0The tool is capable of processing Python, Java, C and C++ projects. \u00a0We present several applications including software <em>archaeology<\/em> on a widely known open source software project and automated <em>phylogenetic <\/em>malware classification based on control flows. \u00a0These examples suggest that tree differencing is useful for measuring distance or dissimilarity between tree structured artifacts, and offer good precision tests of the method.<\/p>\n<h1>Reference<\/h1>\n<p>Masatomo Hashimoto and Akira Mori. Diff\/TS: A Tool for Fine-Grained Structural Change Analysis. In <em>Proceedings of the 15th Working Conference on Reverse Engineering<\/em> (WCRE &#8217;08). IEEE Computer Society, Washington, DC, USA, pp. 279-288, 2008. DOI: <a href=\"https:\/\/doi.org\/10.1109\/WCRE.2008.44\" target=\"_blank\" rel=\"noopener\">10.1109\/WCRE.2008.44<\/a><\/p>\n<p><a title=\"Download as PDF\" href=\"http:\/\/codinuum.com\/publications\/diffts-wcre2008.pdf\" target=\"_blank\" rel=\"noopener\">Download as PDF<\/a><\/p>\n<h1>Implementation<\/h1>\n<p>An implementation specialized for comparing ASTs (abstract syntax trees) is available <a title=\"CCA\" href=\"https:\/\/github.com\/codinuum\/cca\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n<h1>Demo<\/h1>\n<p>You can find several output samples of Diff\/TS <a title=\"Diff\/TS Output Samples\" href=\"https:\/\/codinuum.github.io\/gallery-cca\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-publications"],"_links":{"self":[{"href":"https:\/\/codinuum.com\/en\/wp-json\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codinuum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codinuum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codinuum.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/codinuum.com\/en\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":20,"href":"https:\/\/codinuum.com\/en\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":384,"href":"https:\/\/codinuum.com\/en\/wp-json\/wp\/v2\/posts\/18\/revisions\/384"}],"wp:attachment":[{"href":"https:\/\/codinuum.com\/en\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codinuum.com\/en\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codinuum.com\/en\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}