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

用于覆盖测试的代码插桩程序设计与实现
引用本文:郭锐.用于覆盖测试的代码插桩程序设计与实现[J].科学技术与工程,2013,13(30).
作者姓名:郭锐
基金项目:山西省高校科技研究开发项目 20091018 山西省科技厅科技攻关项目 20100321057
摘    要:设计了一种用于覆盖测试的代码插桩器,重点介绍了一种高效的词法语法分析方法:通过所读入的左右大括号是否匹配把整个代码分为函数内部和外部,根据这两部分感兴趣的关键字不同建立不同的DFA状态转换表,使每个词素能够用最少的状态转换次数判断出是否为所关注的关键字,减少状态转移的时间复杂度;使用已生成的状态转换表,消除了建立DFA的时间开销。描述了状态转换表的生成过程,插桩器的实现过程以及运行结果。

关 键 词:覆盖测试  代码插桩  词法语法分析
收稿时间:2013/5/30 0:00:00
修稿时间:2013/6/14 0:00:00

Design and implementation of instrumentor for coverage testing
guorui.Design and implementation of instrumentor for coverage testing[J].Science Technology and Engineering,2013,13(30).
Authors:guorui
Abstract:Paper designes a new instrumentor that is used to coverage test,focusing on Introducing an efficient syntax and lexical analyzer:the code divided into the inner and the external of the function by curly braces matching or not and different DFA state transition table were formulated for the different part,so that every morpheme would be made judgment on in shortest time.The instrumentor use the existing DFA state transition table to eliminate the time of formulating DFA.Paper also shows the process of formulating DFA , realizing of instrumentor and the result.
Keywords:
点击此处可从《科学技术与工程》浏览原始摘要信息
点击此处可从《科学技术与工程》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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