JSEA  Vol.8 No.4 , April 2015
Reusable Function Discovery by Call-Graph Analysis
ABSTRACT
Nowadays, one of the IT challenges faced by many enterprises is the maintenance of their legacy system and migration of those systems to modern and flexible platform. In this paper, we study the network properties of software call graphs, and utilize the network theories to understand the business logic of legacy system. The call graphs turn out approximately scale-free and small world network properties. This finding provides new insight to understand the business logic of legacy system: the methods in a program can be naturedly partitioned into the business methods group and supportive methods group. Moreover, the result is also very helpful in reusing valuable functionality and identifying what services should be to expose in the migration from legacy to modern SOA context.

Cite this paper
Zhao, D. , Miao, L. and Zhang, D. (2015) Reusable Function Discovery by Call-Graph Analysis. Journal of Software Engineering and Applications, 8, 184-191. doi: 10.4236/jsea.2015.84019.
References
[1]   Heckel, R., Correia, R., Matos, C., EI-Ramly, M., Koutsoukos, G. and Andrade, L. (2008) Software Evolution. Chapter Architectual Transformations: From Legacy to Three-Tier and Service, Springer, Berlin, 139-170.

[2]   Papazoglou, M., Traverso, P., Dustdar, S. and Leymann, F. (2007) Service-Oriented Computing: State of the Art and Research Challenges. Computer, 40, 38-45. http://dx.doi.org/10.1109/MC.2007.400

[3]   Khadka, R., Saeidi, A., Idu, A., Hage, J. and Jansen, S. (2012) Legacy to SOA Evolution-A Systematic Literature Review. In: Ionita, A.D., Litoiu, M. and Lewis, G., Eds., Migrating Legacy Applications: Challenges in Service Oriented Architecture and Cloud Computing Environments, IGI Global, 40-71.

[4]   Binkley, D. (2007) Source Code Analysis: A Roadmap. 2007 Future of Software Engineering, Minnesota, 23-25 May 2007, 104-119.

[5]   Ali, K. and Lhoták, O. (2012) Application-Only Call Graph Construction. Proceedings of the 26th European conference on Object-Oriented Programming, Beijing, 11-16 June 2012, 688-712.
http://dx.doi.org/10.1007/978-3-642-31057-7_30

[6]   Dean, J., Grove, D. and Chambers, C. (1995) Optimization of Object-Oriented Programs Using Static Class Hierarchy Analysis. Proceedings of the 9th European Conference on Object-Oriented Programming (ECOOP'95), arhus Denmark, 7-11 August 1995, 77-101.

[7]   JBPM. http://www.jboss.com/products/jbpm

[8]   SableCC. http://www.sable.mcgill.ca/software/

[9]   JUNG. http://jung.sourceforge.net/index.html

[10]   JGraph. http://www.jgraph.com/

[11]   Azureus. http://sourceforge.net/projects/azureus/

[12]   Apache James. http://james.apache.org/download.cgi

[13]   Java Pet Store. http://java.sun.com/developer/releases/petstore/

[14]   Damls Matcher. http://kbs.cs.tu-berlin.de/ivs/Projekte/damlsmatcher/download.html

[15]   JTB. http://compilers.cs.ucla.edu/jtb/

[16]   LGMA. http://121.37.58.35:8080/LGMA.jar

[17]   WALA. http://wala.sourceforge.net/wiki/index.php/Main_Page

[18]   Rosen, K.H. (2000) Handbook of Discrete and Combinatorial Mathematics. CRC Press, Boca Raton.

[19]   Barabási, A.L. and Albert, R. (1999) Emergence of Scaling in Random Networks. Science, 286, 509-512. http://dx.doi.org/10.1126/science.286.5439.509

[20]   Baccaletti, S., Latora, V., Moreno, Y., Chavezf, M. and Hwanga, D. (2006) Complex Networks: Structure and Dynamics. Physics Reports, 424, 175-308.
http://dx.doi.org/10.1016/j.physrep.2005.10.009

[21]   Milgram, S. (1967) The Small World Problem. Psychology Today, 1, 61-67.

[22]   Watts, D.J. and Strogatz, S.H. (1998) Collective Dynamics of “Small-World” Networks. Nature, 393, 440-442. http://dx.doi.org/10.1038/30918

[23]   Brin, S. and Page, L. (1998) The Anatomy of a Large-Scale Hypertextual Web Search Engine. In: Seventh International World-Wide Web Conference (WWW 1998), Brisbane, 14-18 April 1998, 107-117.

[24]   Karp, P.D., Riley, M., Saier, M., Paulsen, I.T., Paley, S.M. and Pellegrini-Toole, A. (2000) The EcoCyc and MetaCyc Databases. Nucleic Acids Research, 28, 56-59. http://dx.doi.org/10.1093/nar/28.1.56

[25]   Wasserman, S. and Faust, K. (1994) Social Network Analysis: Methods and Applications. Cambridge University, Cambridge.

[26]   Broder, A., Kumar, R., Maghoul, F., Raghavan, P., Rajagopalan, S., Stata, R., et al. (2000) Graph Structure in the Web. Computer Networks, 33, 309-320.
http://dx.doi.org/10.1016/S1389-1286(00)00083-9

[27]   de Moura, A.P.S., Lai, Y.C. and Motter, A.E. (2003) Signatures of Small-World and Scale-Free Properties in Large Computer Programs. Physical Review E, 68, Article ID: 017102.

 
 
Top