Apsect mining based on program dependence graph

Hongbo Min,Baowen Xu,Ju Qian
DOI: https://doi.org/10.3321/j.issn:1001-0505.2008.02.011
2008-01-01
Abstract:In order to identify effectively scattering code and tangling code introduced by crosscutting concerns in legacy system, an approach based on program dependence graph (PDG) for aspect mining is proposed in this paper. According to the intrinsic attribute of crosscutting concern, the dependence relationship between crosscutting concerns and core concerns is firstly examined, followed by analyzing its structure presentation on PDG. For a single method, combining the semantic information of a program, a virtual node is firstly introduced into its PDG to represent its core functionality and all statements which impact the core functionality is virtually depended by it. Then, topology analysis on PDG is performed to figure out the core code starting from the virtual node and the cross-cutting code determining by computing connected components in PDG. As a result, all potential crosscutting code can be separated from core functionality. A case study shows that our approach can discover effectively both scattering code and tangling code in legacy code.
What problem does this paper attempt to address?