首页> 外文会议>Software quality days conferenceSWQD >Validating Converted Java Code via Symbolic Execution
【24h】

Validating Converted Java Code via Symbolic Execution

机译:通过符号执行验证转换后的Java代码

获取原文

摘要

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.
机译:这里描述的测试方法已经增加了旨在将COBOL或PL / 1中的程序程序转换为面向对象的Java代码的迁移项目。代码转换本身现在是自动化的,但并非完全。人类reennineer仍然必须对自动生成的代码进行一些调整,并且可能导致错误。这些也可能是自动转换中的微妙误差。因此,必须测试转换的代码以证明它在功能上等同于原始代码。直到现在转换的程序已经手动测试了他们的结果,但这是一种非常劳动的密集方法。此外,它只显示哪些结果不同,而不是代码的不同之处。将结果中的差异追溯到代码中的差异可能是极其困难的。此类回归测试推动了迁移的成本,导致用户忽略这种替代方案。如果他们必须在测试转换时花在测试中,他们可能也可以重新开发软件。本文介绍了如何通过象征性地执行它并将执行路径进行更低的成本验证转换代码。这种方法背后的理论是,无论统计如何重新排序,动态地都必须以相同的顺序执行,以产生相同的结果。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号