Variability-Aware Detection and Repair of Compilation Errors Using Foundation Models in Configurable Systems
Rohit Gheyi, Lucas Albuquerque, M\'arcio Ribeiro, Eduardo Almeida, Danyllo Albuquerque, Mirko Perkusich

TL;DR
This study demonstrates that foundation models like GPT-OSS-20B can effectively detect and repair variability-induced compilation errors in configurable C systems, outperforming traditional tools and offering a practical low-effort solution.
Contribution
It introduces the use of foundation models for variability-aware detection and repair of compilation errors, showing their effectiveness compared to existing variability-aware tools.
Findings
Foundation models achieve high precision and recall in detecting errors.
GPT-OSS-20B repairs over 70% of compilation errors successfully.
Models detect real-world faults and identify potential bugs in large codebases.
Abstract
Modern software systems often rely on conditional compilation to support optional features and multiple deployment scenarios. In configurable systems, compilation errors may arise only under specific combinations of features, remaining hidden during development and testing. Such variability-induced errors are difficult to detect in practice, as traditional compilers analyze only a single configuration at a time, while existing variability-aware tools typically require complex setup and incur high analysis costs. In this article, we present an empirical study on the use of foundation models to detect and fix compilation errors caused by feature variability in configurable C systems. We evaluate GPT-OSS-20B and GEMINI 3 PRO, and compare them with TYPECHEF, a state-of-the-art variability-aware parser. Our evaluation considers two complementary settings: 5,000 small configurable systems…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Advanced Software Engineering Methodologies · Software Engineering Research
