作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2008, Vol. 34 ›› Issue (8): 50-52. doi: 10.3969/j.issn.1000-3428.2008.08.017

• 软件技术与数据库 • 上一篇    下一篇

一种分析异常传播路径的方法

闫大顺1,姜淑娟2   

  1. (1. 仲恺农业技术学院计算机科学与工程学院,广州 510225;2. 中国矿业大学计算机科学与技术学院,徐州 221008)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-04-20 发布日期:2008-04-20

Approach to Analyzing Exception Propagation Path

YAN Da-shun1, JIANG Shu-juan2   

  1. (1. College of Computer Science and Engineering, Zhongkai University of Agricultural and Technology, Guangzhou 510225; 2. School of Computer Science & Technology, China University of Mining & Technology, Xuzhou 221008)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-04-20 Published:2008-04-20

摘要: 异常的传播会给程序的分析、理解、测试和维护工作带来很多困难。为了解决目前在分析异常传播路径中表示方法过于复杂的问题,该文针对C++的异常机制建立异常控制流图模型,在分析异常在传播过程中各种关系的基础上建立异常传播图模型,并对异常传播图在结构测试中的应用进行讨论。使用该模型可以准确清晰地表示出异常传播的路径,大大简化异常传播路径的分析。

关键词: 异常处理, 程序分析, 异常传播, 控制流图

Abstract: Exception propagation will bring a lot of difficulties in analyzing, understanding, testing and maintaining programs. To solve the problem that the representation is too complex in describing exception propagation path, based on C++ exception handling, this paper proposes an exception control flow graph model. It constructs an exception propagation graph model based on analyzing various relationships in the course of exception propagation, and discusses the application of the exception propagation graph in the structure testing. Using this graph can show a clear and precise exception propagation path and greatly simplify the analysis.

Key words: exception handling, program analysis, exception propagation, control flow graph

中图分类号: