Gesellschaft für Informatik e.V.

Lecture Notes in Informatics


10th Workshop Software Reengineering (WSR 2008) 5-7 May 2008, Bad Honnef P-126, 176-180 (2008).

Gesellschaft für Informatik, Bonn
2008


Editors

Rainer Gimnich (ed.), Uwe Kaiser (ed.), Jochen Quante (ed.), Andreas Winter (ed.)


Copyright © Gesellschaft für Informatik, Bonn

Contents

Clone detection in a product line context

Thilo Mende and Felix Beckwermert

Abstract


Software Product Lines (SPL) can be used to create and maintain different variants of software-intensive systems by explicitly managing variability. Often, SPLs are organized as an SPL core, common to all products, upon which product-specific components are built. Following the so called grow-and-prune model, SPLs may be evolved by copy\&paste at large scale. New products are created from existing ones and existing products are enhanced with functionalities specific to other products by copying and pasting code between product-specific code. To regain control of this unmanaged growth, such code may be pruned, that is, identified and refactored into core components upon success. Clone detection offers effective means to identify duplicated source code. However, variablity in product lines, especially when targeting embedded devices, is often implemented using a preprocessor. This limits the applicable clone detection techniques to ones with lower precision. We describe how information about function locations can be used to improve the results of these token-based clone detectors.


Full Text: PDF

Gesellschaft für Informatik, Bonn
ISBN 3-88579-220-8


Last changed 04.10.2013 17:52:10