[Paper Review] Reverse Engineering Variability in an Industrial Product Line: Observations and Lessons Learned
This paper presents an extended feature effect analysis approach to reverse engineer non-Boolean variability constraints from heterogeneous code artifacts in Bosch's large-scale embedded product line. The method successfully extracts dependency constraints across 31.8% to 64.9% of features per product variant, enabling improved configuration guidance and variability model completeness through integration with legacy data and domain expertise.
Ideally, a variability model is a correct and complete representation of product line features and constraints among them. Together with a mapping between features and code, this ensures that only valid products can be configured and derived. However, in practice the modeled constraints might be neither complete nor correct, which causes problems in the configuration and product derivation phases. This paper presents an approach to reverse engineer variability constraints from the implementation, and thus improve the correctness and completeness of variability models. We extended the concept of feature effect analysis to extract variability constraints from code artifacts of the Bosch PS-EC large-scale product line. We present an industrial application of the approach and discuss its required modifications to handle non-Boolean variability and heterogeneous artifact types.
Motivation & Objective
- To reduce configuration effort for 2,000+ annual product variants in Bosch's PS-EC product line by reverse engineering implicit variability constraints from code.
- To improve the correctness and completeness of existing variability models by extracting constraints from implementation artifacts.
- To handle non-Boolean features and heterogeneous artifact types (e.g., C code, configuration files) beyond the scope of prior feature effect analysis.
- To integrate reverse-engineered constraints with legacy feature data and expert knowledge for a cleaner, more maintainable variability model.
- To support automated configuration tools by providing a lower bound of valid configurations, ensuring no valid code variants are excluded.
Proposed method
- Extended the feature effect analysis (Nadi et al., 2015) to handle non-Boolean features and heterogeneous artifact types such as C code and configuration files.
- Used a block-based code extractor (KernelHaven – CodeBlockExtractor) to parse presence conditions from source code, prioritizing speed and flexibility over full precision.
- Applied a product-wise impact analysis to identify constraints by evaluating feature dependencies across individual product variants.
- Combined results from multiple products to detect clustering patterns related to technical domains (e.g., gasoline vs. diesel engines).
- Planned integration with legacy configuration data and manual feature models to validate and refine extracted constraints.
- Proposed future use of TypeChef for more accurate macro- and variability-aware parsing, though performance trade-offs remain a concern.
Experimental results
Research questions
- RQ1How can feature effect analysis be adapted to extract variability constraints from non-Boolean features in industrial software product lines?
- RQ2What modifications are required to apply feature effect analysis to heterogeneous artifact types beyond standard source code?
- RQ3How do the extracted constraints compare to existing variability models in terms of completeness and consistency?
- RQ4To what extent can reverse-engineered constraints reduce configuration effort in large-scale industrial product lines?
- RQ5How can legacy configuration data and expert knowledge be integrated to improve the quality of reverse-engineered variability models?
Key findings
- The reverse-engineered constraints cover between 31.8% and 64.9% of features per product variant when analyzed in isolation, indicating substantial dependency complexity.
- The dispersion of constrained features is broad but comparable to that observed in publicly available product lines, suggesting the approach captures realistic dependency structures.
- Combining results across multiple products reveals a clustering effect related to technical domains (e.g., gasoline vs. diesel), suggesting benefits from domain-specific variability models.
- The approach successfully extracts constraints from non-Boolean features and heterogeneous artifacts, extending the applicability of feature effect analysis beyond its original scope.
- Preliminary results indicate high potential to reduce configuration effort by enabling smarter, constraint-aware configuration tools.
- Future work includes migrating to TypeChef for improved parsing accuracy, mining historical configurations, and validating results via mismatch analysis and developer workshops.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.