Differential precondition checking: A lightweight, reusable analysis for refactoring tools

  • Authors:
  • Jeffrey L. Overbey;Ralph E. Johnson

  • Affiliations:
  • Department of Computer Science, University of Illinois at Urbana-Champaign, USA;Department of Computer Science, University of Illinois at Urbana-Champaign, USA

  • Venue:
  • ASE '11 Proceedings of the 2011 26th IEEE/ACM International Conference on Automated Software Engineering
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

One of the most difficult parts of building automated refactorings is ensuring that they preserve behavior. This paper proposes a new technique to check for behavior preservation; we call this technique differential precondition checking. It is simple yet expressive enough to implement the most common refactorings, and the core algorithm runs in linear time. However, the main advantage is that a differential precondition checker can be placed in a library and reused in refactoring tools for many different languages; the core algorithm can be implemented in a way that is completely language independent. We have implemented a differential precondition checker and used it in refactoring tools for Fortran (Photran), PHP, and BC.