期刊检索

  • 2024年第56卷
  • 2023年第55卷
  • 2022年第54卷
  • 2021年第53卷
  • 2020年第52卷
  • 2019年第51卷
  • 2018年第50卷
  • 2017年第49卷
  • 2016年第48卷
  • 2015年第47卷
  • 2014年第46卷
  • 2013年第45卷
  • 2012年第44卷
  • 2011年第43卷
  • 2010年第42卷
  • 第1期
  • 第2期

主管单位 中华人民共和国
工业和信息化部
主办单位 哈尔滨工业大学 主编 李隆球 国际刊号ISSN 0367-6234 国内刊号CN 23-1235/T

期刊网站二维码
微信公众号二维码
引用本文:龚丹丹,王甜甜,苏小红,马培军.冗余代码缺陷检测方法[J].哈尔滨工业大学学报,2012,44(7):58.DOI:10.11918/j.issn.0367-6234.2012.07.011
GONG Dan-dan,WANG Tian-tian,SU Xiao-hong,MA Pei-jun.Redundancy detection based on control structure analysis[J].Journal of Harbin Institute of Technology,2012,44(7):58.DOI:10.11918/j.issn.0367-6234.2012.07.011
【打印本页】   【HTML】   【下载PDF全文】   查看/发表评论  下载PDF阅读器  关闭
过刊浏览    高级检索
本文已被:浏览 2002次   下载 1710 本文二维码信息
码上扫一扫!
分享到: 微信 更多
冗余代码缺陷检测方法
龚丹丹, 王甜甜, 苏小红, 马培军
哈尔滨工业大学 计算机科学与技术学院,150001 哈尔滨
摘要:
为解决冗余代码缺陷检测复杂度较高且检测精度较低的问题,设计并实现了基于控制结构的冗余代码检测模型.通过对TOKEN序列建立复合语句结构信息表,精简了程序的控制依赖关系,并在此基础上对幂等操作、死代码以及冗余赋值3种冗余代码进行检测,有效降低了缺陷检测复杂度.通过分析Linux开源代码表明,本模型可以快速的检测大规模程序,并且具有较低的误报率和漏报率.因此本模型可以帮助程序员发现进而修正软件缺陷,维护软件可靠性.
关键词:  冗余代码  TOKEN序列  代码标准化
DOI:10.11918/j.issn.0367-6234.2012.07.011
分类号:TP311
基金项目:国家自然科学基金资助项目(61173021);高等学校博士学科点专项科研基金资助项目(20112302120052,20092302110040);中央高校基本科研业务费专项资金资助项目(HIT.NSRIF.201178).
Redundancy detection based on control structure analysis
GONG Dan-dan, WANG Tian-tian, SU Xiao-hong, MA Pei-jun
School of Computer Science and Technology,Harbin Institute of Technology,150001 Harbin,China
Abstract:
To deal with the problems such as high complexity and low accuracy of redundancy detection, a model of redundancy detection based on control structure analysis is proposed and implemented. This paper predigests the complexity of control structure by establishing a compound node table for tokens, which reduces the complexity of redundancy detection, and then detects the idempotent operations, dead code and redundant assignment. Experimental results of the open source code of Linux show that this model can find redundant code accurately and also has a low time-complexity. With this model, it is very convenient for developers to detect and correct these kinds of defects, and thereby to further guarantee the software quality.
Key words:  redundant code  TOKEN  code standardization

友情链接LINKS