Automatic construction of accurate application call graph with library call abstraction for Java: Research Articles

  • Authors:
  • Weilei Zhang;Barbara G. Ryder

  • Affiliations:
  • Department of Computer Science, Rutgers University, 110 Frelinghuysen Road, Piscataway, NJ, 08854, U.S.A.;Department of Computer Science, Rutgers University, 110 Frelinghuysen Road, Piscataway, NJ, 08854, U.S.A.

  • Venue:
  • Journal of Software Maintenance and Evolution: Research and Practice - Source Code Analysis and Manipulation (SCAM 2006)
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

Call graphs are widely used to represent calling relationships among methods. However, there is not much interest in calling relationships among library methods in many software engineering applications, such as program understanding and testing, especially when the library is very big and the calling relationships are not trivial. This paper explores approaches for generating more accurate application call graphs for Java. A new data reachability algorithm is proposed and fine tuned to resolve library callbacks accurately. Compared with an algorithm that resolves library callbacks by traversing the whole-program call graph, the fine-tuned data reachability algorithm results in fewer spurious callback edges. In empirical studies, the new algorithm shows a significant reduction in the number of spurious callback edges. On the basis of the new algorithm, a library abstraction can be calculated automatically and applied in amortized slicing and dataflow testing. Copyright © 2007 John Wiley & Sons, Ltd.