期刊文献+

引用未初始化变量故障静态测试方法研究 被引量:1

Research on the Static Testing Method of Referencing Uninitialized Variables
下载PDF
导出
摘要 引用未初始化变量故障往往存在于C/C++程序中,该类故障常常会导致系统崩溃.鉴于传统测试方法、编译器和现有静态测试工具检测这类故障的局限性,本文提出了基于引用未初始化变量故障模型的静态测试方法.首先给出了引用未初始化变量的形式化定义,作为研究引用未初始化变量的基础;分析了变量状态及其变化,建立了变量状态集产生模型,作为静态识别引用未初始化变量的前提基础;建立了引用未初始化变量故障模型,作为静态识别引用未初始化变量的依据;提出了引用未初始化变量自动测试算法.实验结果表明,基于引用未初始化变量故障模型的静态测试方法具有较高的故障检测准确率和测试效率,这说明建立的故障模型和自动测试方法是有效的. Referencing uninitialized variables usually exist in C/C+ + programs, and often lead to system crash. Since the limitation of traditional testing methods, compilers and existing static testing tools in detecting referencing uninitialized variables, a static testing method based on the fault model of referencing uninitialized variables is proposed in this paper. Formal definition of referencing uninitialized variables is given firstly, as the basis of investigating referencing uninitialized variables. Variable's state and its transformations are analyzed, and the generation model of variables' states set is established, as the preconditions of identifying referencing uninitialized variables statically. Fault model of referencing uninitialized variables is established, as the basis of identifying referencing uninitialized variables statically. The automatic testing algorithm of referencing uninitialized variables is proposed. The experimental result shows that the static testing method could detect referencing uninitialized variables with higher accuracy and efficiency, which means that the fault model and the automatic testing method are valid.
出处 《小型微型计算机系统》 CSCD 北大核心 2007年第5期948-951,共4页 Journal of Chinese Computer Systems
基金 总装备部十五预研基金(41315050107)资助
关键词 软件测试 引用未初始化变量 故障模型 静态测试方法 software testing referencing uninitialized variables fault model static testing method
  • 相关文献

参考文献1

二级参考文献7

  • 1[1]Musa J D, lannino A, Okumoto K. Software reliability measurement prediction application [M]. McGraw-Hill, 1987.ISBN 0-07-044093-X.
  • 2[2]Voas J. PIE: A dynamic failure-based technique. IEEE Transactions on software Engineering [A]. 1992,18 (8):717~727.
  • 3[3]Voas J, Morell L J. Applying sensitivity analysis estimates to a minimum failure probability for software testing [A]. In Proceedings of the 8th Pacific Northwest Software Quality Conference, Portland, OR, 1990.362~371.
  • 4[4]Gutjahr W J. Partition testing vs. random testing: The influence of uncertainty. IEEE Transactions. on Software Engineering [J]. 1999,25 (5): 661~674.
  • 5[5]Vos J, Morell L, Miller K. Predicting where faults can be hide from testing [J]. IEEE Software, 1991.41~48.
  • 6[6]Lipow M. Number of fault per line of code [A]. IEEE Transactions on software Engineering, 1982, 8 (4): 437~ 439.
  • 7[7]Goel A L, kumoto K. A time dependent error detection rate for a large scale software system [A], Proceedings of the 3rd USA_ Japan Computer Conference, 1978.35~40.

共引文献17

同被引文献12

  • 1张威,卢庆龄,万琳,肖庆.空指针引用故障模型与测试方法研究[J].计算机工程与应用,2006,42(4):71-72. 被引量:5
  • 2赵鹏宇,万琳,宫云战.未初始化变量的一种静态测试方法[J].计算机工程与设计,2007,28(4):751-754. 被引量:2
  • 3夏玉辉,张威,李鸣,万琳.变量定义未使用故障的一种静态测试方法[J].计算机工程与设计,2007,28(3):515-516. 被引量:3
  • 4Clarke E M,Grumberg O,Peled D A.Model ehecking[M].[S.l.]: The MIT Press,2000.
  • 5Aho A V, Lain M S, Sethi R, et al.Compilers:principles, tech- niques,and tools[M].2nd ed.[S.l.]:Addison Wesley,2006.
  • 6Huang J C.Detection of data flow anomaly through program in. strumentation[J].IEEE Transactions on Software Engineering, 1979,5 (3): 226-236.
  • 7Schonberg C, Jaksic M, Weitl F, et al.Verification of Web-con- tent:a case study on technical documentation[R].2009.
  • 8Weitl F.Document verification with temporal description logics[D]. Passau: Fakultat fur Informatik and Mathematic University, 2007:114-145.
  • 9Bundell G A,Lee G,Morris J, et al.A software component veri- fication tool[C]//Proeeedings of International Conference on Software Methods and Tools, Wollongong, Australia, 2000, 22 (11):78-83.
  • 10叶俊民,魏鹏,金聪,王敬华,张清国,张维.内存泄漏故障静态分析研究[J].计算机科学,2010,37(6):171-175. 被引量:5

引证文献1

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部