• DocumentCode
    3572072
  • Title

    Semantic patch inference

  • Author

    Andersen, John ; Anh Cuong Nguyen ; Lo, Daniel ; Lawall, Julia L. ; Siau-Cheng Khoo

  • Author_Institution
    DIKU, Univ. of Copenhagen, Copenhagen, Denmark
  • fYear
    2012
  • Firstpage
    382
  • Lastpage
    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
    Linux; formal specification; inference mechanisms; operating system kernels; tree searching; Linux kernel; code fragment; depth-first search algorithm; pruning algorithm; semantic patch inference; transformation specification; Software evolution; collateral evolution; semantic patch;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Automated Software Engineering (ASE), 2012 Proceedings of the 27th IEEE/ACM International Conference on
  • Print_ISBN
    978-1-4503-1204-2
  • Type

    conf

  • DOI
    10.1145/2351676.2351753
  • Filename
    6494961