Abstract
The testing approach described here has grown out of migration projects aimed at converting procedural programs in COBOL or PL/1 to object-oriented Java code. The code conversion itself is now automated but not completely. The human reengineer still has to make some adjustments to the automatically generated code and that can lead to errors. These may also be subtle errors in the automated transformation. Therefore, converted code must be tested to prove that it is functionally equivalent to the original code. Up until now converted programs have been tested manually and their results compared, but that is a very labor intensive approach. Besides, it only shows which results differ and not where the code differs. It can be extremely difficult to trace differences in the results back to differences in the code. Such regression testing drives up the costs of migration, causing users to disregard this alternative. If they have to spend so much on testing a conversion they might as well redevelop the software. This paper describes how converted code can be validated at a much lower cost by symbolically executing it and comparting the execution paths. The theory behind this approach is that no matter how statements are statically reordered, dynamically they must still execute in the same sequence to produce the same result.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsReferences
Terekhov, A., Verhoef, C.: Realities of language conversion. IEEE Softw. 17(6), 111 (2000)
Sneed, H.: Migrating from COBOL to Java – a report from the field. In: IEEE Proceedings of 26th ICSM, p. 122. Computer Society Press, Temesvar, September 2010
Yang, H., Zedan, H.: Abstraction – a key notion for reverse engineering in a system reengineering approach. J. Softw. Maint. 12(4), 197 (2000)
Sneed, H.: Encapsulating legacy software for reuse in client-server systems. In: IEEE 3rd WCRE, p. 104. Computer Society Press, Monterey (1996)
Meyer, B.: Object-oriented Software Construction, p. 12. Prentice-Hall International, Hertfordshire (1988)
Sneed, H.: Transforming procedural program structures to object-oriented class structures. In: IEEE Proceedings of 18th ICSM, p. 286. Computer Society Press, Montreal, October 2001
Sellink, A., Sneed, H., Verhoef, C.: Restructuring of COBOL/CICS legacy systems. Sci. Comput. Program. 45(2–3), 193 (2002)
Ruhl, M., Gunn, M.: Software reengineering – a case study and lessons learned, pp. 500–193. NIST Special Publication, September 1991
Veerman, N.: Revitalizing modifiability of legacy assets. J. Softw. Maint. Evol. 16, 219 (2004)
Veerman, N.: Towards lightweight checks for mass maintenance transformations. Sci. Comput. Program. 57(2), 129–163 (2005)
Broy, M.: Zur spezifikation von programmen für die textverarbeitung. In: Wossido, P. (ed.) Textverarbeitung und Informatik. Informatik Fachberichte, vol. 30, p. 75. Springer, Heidelberg (1980)
Lano, K., Breuer, P., Haughton, H.: Reverse engineering of COBOL via formal methods. J. Softw. Maint. 5(1), 13 (1993)
Howden, W.: Symbolic testing with the DISSECT symbolic evaluation system. IEEE Trans. 1(4), 266 (1977)
Howden, W.: Functional program testing. IEEE Trans. 6(3), 162 (1980)
Rich, C., Waters, R.C.: The programmer's apprentice: a research overview. IEEE Comput. Mag. 21(11), 10–25 (1988)
Swartout, V., Balzer, R.: On the inevitable intertwining of specification and implementation. Commun. ACM 25(7), 438–440 (1982)
Basili, V., Selby, R.: Comparing the effectiveness of software testing strategies. IEEE Trans. 13(12), 1278 (1987)
El-Fakih, K., Yevtushenko, N., Bochmann, G.: FSM-based incremental conformance testing methods. IEEE Trans. 30(7), 425 (2004)
Sneed, H.: Validating functional equivalence of reengineered programs via control path, result and data flow comparison. Softw. Test. Verif. Reliab. 4(1), 33 (1994)
Sneed, H.: Risks involved in reengineering projects. In: IEEE Proceedings of 6th WCRE, p. 204. Computer Society Press, Atlanta, October 1999
Leung, N., White, L.: Insights into regression testing. In: IEEE Proceedings of 5th ICSM, p. 60. Computer Society Press, Miami, November 1989
Weyuker, E.: The cost of data flow testing – an empirical study. IEEE Trans. 16(2), 121 (1990)
Korel, B., Laski, J.: Dynamic slicing of computer programs. J. Syst. Softw. 13(3), 187 (1990)
Stevens, S.: Intelligent interactive video simulation of a code inspection. Commun. ACM 32(7), 832 (1989)
Cimitile, A., Fasolino, A.: Reuse reengineering and validation via concept assignment. In: IEEE Proceedings of 9th ICSM, p. 216. Computer Society Press, Montreal, September 1993
Howden, W.: Reliability of the path analysis testing strategy. IEEE Trans. 1(4), 208 (1976)
Peters, D., Parnas, D.: Using test oracles generated from program documentation. IEEE Trans. 24(3), 161 (1998)
Sneed, H.: Source animation as a means of program comprehension for object-oriented systems. In: Proceedings of 8th IEEE International Workshop on Program Comprehension, p. 179. Computer Society Press, Limerick, June 2000
Cornelissen, B., Zaidman, A., van Deursen, A.: A controlled experiment for program comprehension through trace visualization. IEEE Trans. 37(3), 341 (2011)
Gilb, T., Graham, D.: Software Inspection Techniques. Addison-Wesley, Wokingham (1993)
Verhoef, C.: Towards automated modification of legacy assets. Ann. Softw. Eng. 9, 315 (2000)
Klusener, S., Lämmel, R., Verhoef, C.: Architectural modifications to deployed software. Sci. Comput. Program. 54, 143 (2005)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Sneed, H.M., Verhoef, C. (2017). Validating Converted Java Code via Symbolic Execution. In: Winkler, D., Biffl, S., Bergsmann, J. (eds) Software Quality. Complexity and Challenges of Software Engineering in Emerging Technologies. SWQD 2017. Lecture Notes in Business Information Processing, vol 269. Springer, Cham. https://doi.org/10.1007/978-3-319-49421-0_6
Download citation
DOI: https://doi.org/10.1007/978-3-319-49421-0_6
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-49420-3
Online ISBN: 978-3-319-49421-0
eBook Packages: Computer ScienceComputer Science (R0)