Semantic patch inference
Authors:
Open Access
- 3 September 2012
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 382-385
Abstract
We propose a tool for inferring transformation specifications from a few examples of original and updated code. These transformation specifications may contain multiple code fragments from within a single function, all of which must be present for the transformation to apply. This makes the inferred transformations context sensitive. Our algorithm is based on depth-first search, with pruning. Because it is applied locally to a collection of functions that contain related changes, it is efficient in practice. We illustrate the approach on an example drawn from recent changes to the Linux kernel.Keywords
This publication has 14 references indexed in Scilit:
- Generic Patch Inference2008
- Scalable detection of semantic clones2008
- Documenting and automating collateral evolutions in linux device drivers2008
- Change Distilling:Tree Differencing for Fine-Grained Source Code Change ExtractionIEEE Transactions on Software Engineering, 2007
- Efficient mining of iterative patterns for software specification discovery2007
- DECKARD: Scalable and Accurate Tree-Based Detection of Code Clones29th International Conference on Software Engineering (ICSE'07), 2007
- Dynamic Analysis of Software Systems using Execution Pattern Mining2006
- Understanding collateral evolution in Linux device drivers2006
- Understanding source code evolution using abstract syntax tree matchingACM SIGSOFT Software Engineering Notes, 2005
- CCFinder: a multilinguistic token-based code clone detection system for large scale source codeIEEE Transactions on Software Engineering, 2002