计算机系统应用
計算機繫統應用
계산궤계통응용
APPLICATIONS OF THE COMPUTER SYSTEMS
2014年
10期
112-118
,共7页
周艺%易秋萍%刘剑%淮晓永
週藝%易鞦萍%劉劍%淮曉永
주예%역추평%류검%회효영
错误定位%最弱前置条件%可满足性理论%动态分析%自动化测试
錯誤定位%最弱前置條件%可滿足性理論%動態分析%自動化測試
착오정위%최약전치조건%가만족성이론%동태분석%자동화측시
fault localization%weakest pre-condition computation%satisfiability modulo theories%dynamic analysis%automated testing
当程序在测试中发生错误时,将形成一条错误的程序执行路径,程序员将会花费很多精力去检测程序代码和定位最终的程序错误。提出一种基于单条程序执行路径的错误定位方法,该方法通过对程序进行反向执行,计算出多个最弱前置条件及其相对应的疑似错误语句集,并生成错误定位树,来辅助程序员进行快速错误定位。对西门子测试数据集进行的实验表明了该方法具有良好的效果。
噹程序在測試中髮生錯誤時,將形成一條錯誤的程序執行路徑,程序員將會花費很多精力去檢測程序代碼和定位最終的程序錯誤。提齣一種基于單條程序執行路徑的錯誤定位方法,該方法通過對程序進行反嚮執行,計算齣多箇最弱前置條件及其相對應的疑似錯誤語句集,併生成錯誤定位樹,來輔助程序員進行快速錯誤定位。對西門子測試數據集進行的實驗錶明瞭該方法具有良好的效果。
당정서재측시중발생착오시,장형성일조착오적정서집행로경,정서원장회화비흔다정력거검측정서대마화정위최종적정서착오。제출일충기우단조정서집행로경적착오정위방법,해방법통과대정서진행반향집행,계산출다개최약전치조건급기상대응적의사착오어구집,병생성착오정위수,래보조정서원진행쾌속착오정위。대서문자측시수거집진행적실험표명료해방법구유량호적효과。
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.