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

计算机工程 ›› 2010, Vol. 36 ›› Issue (7): 47-49. doi: 10.3969/j.issn.1000-3428.2010.07.016

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

代码缺陷模式的概念及形式化表示

胡 璇,刘 斌,王轶辰   

  1. (北京航空航天大学工程系统工程系软件工程教研室,北京 100191)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2010-04-05 发布日期:2010-04-05

Concept and Formalization Description of Code Error Pattern

HU Xuan, LIU Bin, WANG Yi-chen   

  1. (Faculty of Software Engineering, Department of System Engineering of Engineering Technology, Beihang University, Beijing 100191)
  • Received:1900-01-01 Revised:1900-01-01 Online:2010-04-05 Published:2010-04-05

摘要: 针对代码缺陷研究中存在的缺陷产生场景不明确以及形式化程度较低等问题,基于模式的定义给出代码缺陷模式定义,以其核心三要素为基础,对代码缺陷模式形式化表示进行研究,采用基于扩展模式描述语言的形式化表示法,将直接场景和缺陷代码结构共同反映于同一概念下。实例验证了代码缺陷模式概念的合理性及其形式化表示法的有效性。

关键词: 代码缺陷, 模式, 形式化表示

Abstract: Aiming at the problems that many defects, e.g., obscure error generation-scenario and lacking of formalization exist in field of code error research, this paper represents definition of code error pattern based on definition of pattern. It investigates the formalization description of code error pattern based on the three key elements of the code error pattern. It adopts extended pattern description language-based formalization description method. This method reflects both the direct scenario and the error code structure in the same concept. This paper represents a case study and confirms the rationality of the code error pattern concept and the effectiveness of the formalization description method.

Key words: code error, pattern, formalization description

中图分类号: