未初始化变量的一种静态测试方法  被引量:2

Static detecting method for uninitialized variable

在线阅读下载全文

作  者:赵鹏宇[1] 万琳[1] 宫云战[1] 

机构地区:[1]装甲兵工程学院信息工程系,北京100072

出  处:《计算机工程与设计》2007年第4期751-754,共4页Computer Engineering and Design

基  金:总装备部十五预研基金项目(41315050107)

摘  要:软件测试系统的研制是软件测试领域的一个研究热点。未初始化变量是C/C++程序中的常见故障,该类故障极易导致计算结果错误或系统崩溃。针对C/C++语言中常见未初始化变量故障进行了分析研究,并从面向具体故障的测试思想出发,建立了C/C++语言中未初始化变量的故障模型,结合静态测试的特点,给出了一种静态查找此类故障的方法。该方法已实现,并已应用于面向故障的软件测试系统中。Uninitialized Variable is a common kind of error in programs written in C/C++, which often causes system collapse. Firstly, the classical C/C++ uninitialized variable errors is analysed, a defect model ofuninitialized variable of C/C++ based on the defect-oriented testing strategy is established, then a detecting method of uninitialized variable errors combining the advantage of static analysis is described. This theory is implemented in a defect-oriented testing system.

关 键 词:软件测试 静态测试 未初化变量 语法树 控制流图 

分 类 号:TP302.8[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象