首页 | 本学科首页   官方微博 | 高级检索  
     

一种基于单条程序执行路径的错误定位方法
引用本文:周艺,易秋萍,刘剑,淮晓永.一种基于单条程序执行路径的错误定位方法[J].计算机系统应用,2014,23(10):112-118.
作者姓名:周艺  易秋萍  刘剑  淮晓永
作者单位:1. 中国科学院软件研究所 总体部,北京 100190; 中国科学院大学 北京 100049
2. 中国科学院软件研究所 总体部,北京,100190
基金项目:中国科学院知识创新工程重要方向性项目(KGCX2-YW-12);国家“核高基”重大科技专项(2010ZX01036-001-002-2);国家自然科学基金青年基金(61305054)
摘    要:当程序在测试中发生错误时,将形成一条错误的程序执行路径,程序员将会花费很多精力去检测程序代码和定位最终的程序错误.提出一种基于单条程序执行路径的错误定位方法,该方法通过对程序进行反向执行,计算出多个最弱前置条件及其相对应的疑似错误语句集,并生成错误定位树,来辅助程序员进行快速错误定位.对西门子测试数据集进行的实验表明了该方法具有良好的效果.

关 键 词:错误定位  最弱前置条件  可满足性理论  动态分析  自动化测试
收稿时间:2014/2/24 0:00:00
修稿时间:2014/3/18 0:00:00

Fault Localization Method Based on Program Execution Trace
ZHOU Yi,YI Qiu-Ping,LIU Jian and HUAI Xiao-Yong.Fault Localization Method Based on Program Execution Trace[J].Computer Systems& Applications,2014,23(10):112-118.
Authors:ZHOU Yi  YI Qiu-Ping  LIU Jian and HUAI Xiao-Yong
Affiliation:General Department, Institute of Software, Chinese Academy of Sciences, Beijing 100190, China;University of Chinese Academy of Sciences, Beijing 100049, China;General Department, Institute of Software, Chinese Academy of Sciences, Beijing 100190, China;University of Chinese Academy of Sciences, Beijing 100049, China;General Department, Institute of Software, Chinese Academy of Sciences, Beijing 100190, China;General Department, Institute of Software, Chinese Academy of Sciences, Beijing 100190, China
Abstract:After a failed test is encountered and the error trace is generated, a significant amount of effort is often required for programmers to manually examine the program code and localize the failure's root cause. In this paper, we propose a fault localization method based on program execution trace. This method computes a set of possible error statements based on a combination of weakest pre-condition computation through program's reverse execution. All possible error statements are organized in a fault localization tree to help developer identify the root cause. Our experiments on SIR datasets demonstrate that our method can not only efficiently compute the possible causes, but also provide sufficient information to help programmers quickly locate the root cause.
Keywords:fault localization  weakest pre-condition computation  satisfiability modulo theories  dynamic analysis  automated testing
本文献已被 维普 万方数据 等数据库收录!
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号