JavaScript静态切片工具  被引量:1

JavaScript Static Slicing Tool

在线阅读下载全文

作  者:田生[1] 

机构地区:[1]上海交通大学软件学院,上海200240

出  处:《计算机与现代化》2016年第8期46-51,共6页Computer and Modernization

摘  要:程序切片是一种传统的程序分析方法:通过去掉无关代码,获取可能影响某行代码的子集。程序切片在程序理解、软件测试和程序调试等众多领域有着广泛的应用。随着互联网技术的发展,JavaScript语言得到广泛应用,但针对该语言的切片工具非常有限。本文针对JavaScript语言的特殊性,提出一种基于程序依赖图的JavaScript程序切片算法,并基于WALA程序分析框架实现了该切片算法。试验结果表明,本文的切片算法可以得到较为理想的切片结果。试验中切片平均大小约为原程序代码的70%,较手工切片仅有约19%冗余。Program slicing is a traditional decomposition technique in program analysis. Program slicing is aimed to get relative codes for some target by removing unrelated codes. Program slicing is widely used in many software engineering activities such as code understanding,software testing,and program debugging. As the development of network technology,Java Script has been widely used. However,there are few slicing tools for Java Script. This paper proposes an algorithm for slicing Java Script programs based on program dependence graphs,which focuses on specific features of Java Script language. This paper also discusses the implementation of the proposed algorithm by using WALA program analysis framework. The experimental result shows the effectiveness of the proposed algorithm in the sense that the slicing tool can generate slicing codes with 70% size of original code,and also only 19% larger than the slicing generated by hand writing.

关 键 词:程序切片 静态分析 程序调试 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象