kirancodes.me
To Proof Maintenance & Beyond!

Morpheus: Variability-Aware Refactoring in the Wild

Jörg Liebig, Andreas Janker, Florian Garbe, Sven Apel, Christian Lengauer

Abstract

Today, many software systems are configurable with conditional compilation. Just like any software system, configurable systems need to be refactored in their evolution, but their inherent variability induces an additional dimension of complexity that is not addressed well by current academic and industrial refactoring engines. To improve the state of the art, we propose a variability-aware refactoring approach that relies on a canonical variability representation and recent work on variability-aware analysis. The goal is to preserve the behavior of all variants of a configurable system, without compromising general applicability and scalability. To demonstrate practicality, we developed Morpheus, a sound, variability-aware refactoring engine for C code with preprocessor directives. We applied Morpheus to three substantial real-world systems (Busybox, OpenSSL, and SQLite) showing that it scales reasonably well, despite of its heavy reliance on satisfiability solvers. By extending a standard approach of testing refactoring engines with support for variability, we provide evidence for the correctness of the refactorings implemented.

BibTeX
@inproceedings{Liebig-al:ICSE15,
  author    = {J{\"{o}}rg Liebig and
               Andreas Janker and
               Florian Garbe and
               Sven Apel and
               Christian Lengauer},
  title     = {Morpheus: {Variability-Aware} Refactoring in the Wild},
  booktitle = {ICSE (Part I)},
  pages     = {380--391},
  publisher = {{IEEE} Computer Society},
  year      = {2015},
}

Related papers