Back to results

Kent State University

srcDiff: Syntactic Differencing to Support Software Maintenance and Evolution

Abstract

dc:description

The dissertation presents the construction and evaluation of an efficient and scalable rule-based syntactic-differencing approach and its application to several software engineering research tasks. The approach, called srcDiff, is built upon the srcML infrastructure. srcML adds abstract syntactic information into the code via an XML format. A syntactic difference of srcML documents is then computed. During this process, the differences are further refined using a set of rules that model typical editing patterns of source code by developers. Thus, the resulting deltas model edits to the code that are programmer centric versus a purely syntactic tree edit view. Other syntactic differencing approaches focus on obtaining an optimal tree-edit distance with the assumption that this will produce an accurate difference. By contrast, srcDiff, purposely deviates from an optimal tree-difference in order to create a delta that is both easier to understand and better models changes between the original and modified.To evaluate the approach, a comparison study against a state-of-the-art syntactic differencing approach and two line-based differencing tools is conducted as an online within-participant study of about 70 subjects. The results show that the rule-based syntactic-differencing approach produces more accurate and understandable deltas. srcDiff is utilized to analyze the complete history of fifty open-source software systems for a number of software engineering research tasks. The first task is an investigation into the stability and consequences of changes in a method’s stereotype. The results show that a method’s stereotype is very stable and that certain classes of stereotype changes are indicators of poor method design and inappropriate changes to methods. The second task is an investigation into how often developers rewrite code and the consequences. The results show that developers frequently rewrite code at the text, expression, and statement level, and that the replacement of functions is not uncommon. The last study investigates how often developers convert code from one type to another. The results show that conversion occurs most frequently between declaration-statements, expression-statements, and return-statements. The consequence for both code replacement and code conversion is that a syntactic differencing approach must support both to arrive at meaningful and accurate deltas.

Degree

thesis:*
Name thesis:degree_name
PHD
Level thesis:degree_level
doctoral
Discipline thesis:degree_discipline
College of Arts and Sciences / Department of Computer Science
Grantor dc:publisher
Kent State University
Year dc:date
2017

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Decker, Michael John
Advisor dc:contributor.advisor
  • Maletic, Jonathan
Chair dc:contributor.committeechair
  • Ciesla, Jeffrey

Subjects

dc:subject × 10

Rights

dc:rights
Statement dc:rights
  • unrestricted
  • This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
OhioLINK
Base URL
etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Decker, Michael John. srcDiff: Syntactic Differencing to Support Software Maintenance and Evolution. doctoral thesis, Kent State University, 2017. http://rave.ohiolink.edu/etdc/view?acc_num=kent150074391000591