Weilei Zhang, B. Ryder
{"title":"Automatic construction of accurate application call graph with library call abstraction for Java","authors":"Weilei Zhang, B. Ryder","doi":"10.1002/smr.351","DOIUrl":null,"url":null,"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.","PeriodicalId":383619,"journal":{"name":"J. Softw. Maintenance Res. Pract.","volume":"43 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2007-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"20","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"J. Softw. Maintenance Res. Pract.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1002/smr.351","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 20
基于Java库调用抽象的精确应用程序调用图的自动构建
调用图被广泛用于表示方法之间的调用关系。然而,在许多软件工程应用程序中,对库方法之间的调用关系没有太大的兴趣,例如程序理解和测试,特别是当库非常大并且调用关系不是微不足道的时候。本文探讨了为Java生成更精确的应用程序调用图的方法。提出了一种新的数据可达性算法,并对其进行了优化,以准确地解析库回调。与通过遍历整个程序调用图来解决库回调的算法相比,经过微调的数据可达性算法减少了假回调边。在实证研究中,新算法显著减少了伪回调边的数量。在此基础上,可以自动计算库抽象,并将其应用于平摊切片和数据流测试中。版权所有©2007 John Wiley & Sons, Ltd
本文章由计算机程序翻译,如有差异,请以英文原文为准。