Feature Location in Source Code by Trace-Based Impact Analysis and Information Retrieval.

Zhengong Cai,Xiaohu Yang,Xinyu Wang,Aleksander J. Kavs
DOI: https://doi.org/10.1587/transinf.e95.d.205
2012-01-01
IEICE Transactions on Information and Systems
Abstract:Feature location is to identify source code that implements a given feature. It is essential for software maintenance and evolution. A large amount of research, including static analysis, dynamic analysis and the hybrid approaches, has been done on the feature location problems. The existing approaches either need plenty of scenarios or rely on domain experts heavily. This paper proposes a new approach to locate functional feature in source code by combining the change impact analysis and information retrieval. In this approach, the source code is instrumented and executed using a single scenario to obtain the execution trace. The execution trace is extended according to the control flow to cover all the potentially relevant classes. The classes are ranked by trace-based impact analysis and information retrieval. The ranking analysis takes advantages of the semantics and structural characteristics of source code. The identified results are of higher precision than the individual approaches. Finally, two open source cases have been studied and the efficiency of the proposed approach is verified.
What problem does this paper attempt to address?