An approach to analyzing recursive programs with exception handling constructs

被引:5
|
作者
Jiang, Shujuan [1 ]
Xu, Baowen
Shi, Liang
机构
[1] SE Univ, Dept Comp Sci & Engn, Nanjing 210096, Peoples R China
[2] Jiangsu Inst Software Qual, Nanjing 210096, Peoples R China
[3] China Univ Min & Technol, Sch Comp Sci & Technol, Xuzhou 221008, Peoples R China
[4] Natl Univ Def Technol, Comp Sch, Changsha 410073, Peoples R China
关键词
exception handling; programming language; reliability; exception propagation; recursive function; static analysis;
D O I
10.1145/1147214.1147220
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Exception handling in modem programming languages is a mechanism that can improve software reliability. Since the signature of an C++ function may not specify the set of exceptions that the function can propagate, it is necessary to figure out the exceptions that may be raised during executing program, the origins of them and their propagation paths. Unfortunately, in large programs that contain recursive functions, this exceptional information can be difficult, if not impossible, to determine. Therefore, the paper proposes a new static analysis approach to analyze C++ recursive functions with exception handling constructs. Firstly, it presents a model that can describe the exception handling information for a C++ single function. Then, it proposes a new method to compute the set of exception types that propagate from a recursive function. Finally, the limitations and the applications of the model are discussed.
引用
收藏
页码:30 / 35
页数:6
相关论文
共 50 条
  • [1] Analysis and testing of programs with exception handling constructs
    Sinha, S
    Harrold, MJ
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2000, 26 (09) : 849 - 871
  • [2] Analysis of programs with exception-handling constructs
    Sinha, S
    Harrold, MJ
    INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE, PROCEEDINGS, 1998, : 348 - 357
  • [3] An analysis approach for testing exception handling programs
    Jiang, Shujuan
    Jiang, Yuanpeng
    ACM SIGPLAN NOTICES, 2007, 42 (04) : 3 - 8
  • [4] An Exception Analyzing and Handling Approach of Composite Service Based on ECA Rule
    Zhang, Yichuan
    Liu, Ying
    Wang, Deshuai
    Zhang, Bin
    2009 WRI WORLD CONGRESS ON SOFTWARE ENGINEERING, VOL 3, PROCEEDINGS, 2009, : 387 - 391
  • [5] Visualization of Exception Handling Constructs to Support Program Understanding
    Shah, Hina
    Goerg, Carsten
    Harrold, Mary Jean
    SOFTVIS 2008: PROCEEDINGS OF THE 4TH ACM SYMPOSIUM ON SOFTWARE VISUALIZATION, 2008, : 19 - 28
  • [6] Detecting Exception Handling Bugs in C plus plus Programs
    Zhang, Hao
    Luo, Ji
    Hu, Mengze
    Yan, Jun
    Zhang, Jian
    Qiu, Zongyan
    2023 IEEE/ACM 45TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ICSE, 2023, : 1084 - 1095
  • [7] An exploratory study on exception handling bugs in Java']Java programs
    Ebert, Felipe
    Castor, Fernando
    Serebrenik, Alexander
    JOURNAL OF SYSTEMS AND SOFTWARE, 2015, 106 : 82 - 101
  • [8] Modeling and Coverage Analysis of Programs with Exception Handling
    Najumudheen, E. S. F.
    Mall, Rajib
    Samanta, Debasis
    PROCEEDINGS OF THE 12TH INNOVATIONS ON SOFTWARE ENGINEERING CONFERENCE (ISEC), 2019,
  • [9] Analyzing exception flow in Java']Java™ programs
    Robillard, MP
    Murphy, GC
    SOFTWARE ENGINEERING - ESEC/FSE '99, PROCEEDINGS, 1999, 1687 : 322 - 337
  • [10] A Reflection on "An Exploratory Study on Exception Handling Bugs in Java']Java Programs"
    Ebert, Felipe
    Castor, Fernando
    Serebrenikt, Alexander
    PROCEEDINGS OF THE 2020 IEEE 27TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER '20), 2020, : 552 - 556