Identification of potential classes in procedural code using a genetic algorithm

Author
Year of Publication
2018
Conference
Proceedings of the Genetic and Evolutionary Computation Conference Companion, GECCO 2018, Kyoto, Japan, July 15-19, 2018
Pages
314-315
Publisher
ACM
URL
http://doi.acm.org/10.1145/3205651.3205720
DOI
10.1145/3205651.3205720
Keywords
Abstract
We present a novel approach for discovering and suggesting classes/objects in legacy/procedural code, based on a genetic algorithm. Initially, a (procedures-accessing-variables) matrix is extracted from the code and converted into a square matrix. This matrix highlights the variable-relationships between procedures and is used as input to a genetic algorithm. The output of the genetic algorithm is then visually encoded using a heat-map. The developers can then (1) either manually identify objects in the presented heat-map or (2) use an automated detection algorithm that suggests objects. We compare our results with previous work.