STATIC ANALYSIS OF EXCEPTION HANDLING IN ADA

被引:19
作者
SCHAEFER, CF
BUNDY, GN
机构
[1] MITRE Corporation, Mclean, Virginia, 22102
关键词
STATIC ANALYSIS; EXCEPTION HANDLING; ADA;
D O I
10.1002/spe.4380231007
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Since the signature of an Ada subprogram does not specify the set of exceptions that the subprogram can propagate, computing the set of exceptions that a subprogram may encounter is not a trivial task. This is a source of error in large Ada systems: for example, a subprogram may not be prepared to handle an exception propagated from another subprogram several layers lower in the call-tree. In a large system, the number of paths in exceptional processing is so great that it is unlikely that testing will uncover all errors in inter-procedural exception handling. Nor are compilers or code inspections likely to locate all such errors. Exception handling is an area where static analysis has a high potential payoff for systems with high reliability requirements. We discuss fundamental notions in computing exception propagation and describe an analysis tool that has proved to be effective in detecting inconsistencies in the exception-handling code of Ada applications.
引用
收藏
页码:1157 / 1174
页数:18
相关论文
共 11 条