Preprocessor conditional removal by simple partial evaluation
Ira D. Baxter, Michael Mehlich · Proceedings - Working Conference on Reverse Engineering · 2002
Preprocessors with conditionals are often used as software configuration management tools, with preprocessor variables naming configuration aspects. The preprocessor conditionals found in large systems often have complex enabling Boolean equations and nesting. Over long periods, some configuration aspects lose all utility. Removal of all traces of a configuration variable and code dependent on that aspect becomes a significant task if performed manually. An industrial-strength transformation system can remove such configuration aspects in a much shorter period of time, by symbolically simplifying away the configuration aspect. The paper sketches the problem and the required transforms, and discusses a case study involving over a million lines of source code.
Cited by 116 works. doi:10.1109/wcre.2001.957833
Authors
References
- Clone detection using abstract syntax trees
- Partial evaluation and automatic program generation
- Efficient Parsing for Natural Language
- Software change through design maintenance
- Design maintenance systems
- Current parsing techniques in software renovation considered harmful
- Reverse engineering is reverse forward engineering
- Reverse engineering is reverse forward engineering
- C/C++ conditional compilation analysis using symbolic execution
- A rigorous approach to support the maintenance of large portable software