###
DOI:
计算机系统应用英文版:2012,21(11):198-201,207
本文二维码信息
码上扫一扫!
基于程序行为特征比较的谓词切换排序
(湖南大学 信息科学与工程学院, 长沙 410082)
Predicate Switching Ordering Based on Branch Spectra Comparison
(College of Information Science and Engineering, Hunan University, Changsha 410082, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 1342次   下载 2502
Received:April 11, 2012    Revised:May 22, 2012
中文摘要: 谓词切换(Predicate Switching)通过动态改变程序中的谓词判断语句状态观察程序运行结果的变化, 分析可能与错误相关的关键谓词判断语句, 从而实现辅助错误定位. 谓词判断语句排序算法决定了谓词切换定位关键谓词判断语句的效率. 已有的排序算法如LEFS 算法定位效率较低; PRIOR 算法虽然提高了定位效率, 但必须首先做程序动态切片找寻与错误相关的谓词判断语句集合, 而后建立程序依赖图以定义谓词判断语句的优先级,这个过程需要花费大量的时间, 且算法复杂度较高. 在这两种算法基础上提出一种新的
中文关键词: 谓词切换  动态切片  程序特征
Abstract:Predicate Switching locates and analyses the critical predicate to locate fault through dynamically changing the branch predicate outcomes at runtime and observes the changes in the program results. Predicate Switching Ordering algorithm determines the efficiency of locating the critical predicate. Existing ordering algorithms, such as the LEFS (Last Executed First Switched Ordering, LEFS) algorithm with lower efficiency and the PRIOR (Prioritization-based Ordering, PRIOR) algorithm with higher efficiency, the latter time consuming and complexity of algorithm, are defective. In this paper, we propose a novel and improved algorithm, which first determines the priority of the predicate by comparing different program spectra between the success and failure of test cases, then orders priorities of predicate, according to the reverse order of the predicate executions. To evaluate it, we tested our technique on Siemens Suite. The results have shown that the ordering algorithm is more efficient in locating the critical predicate than the LEFS, and less consuming but more implemented than the PRIOR.
文章编号:     中图分类号:    文献标志码:
基金项目:湖南大学“青年教师成长计划”
引用文本:
苏欣,缪力.基于程序行为特征比较的谓词切换排序.计算机系统应用,2012,21(11):198-201,207
SU Xin,MIAO Li.Predicate Switching Ordering Based on Branch Spectra Comparison.COMPUTER SYSTEMS APPLICATIONS,2012,21(11):198-201,207