计算机与现代化

• 应用与开发 • 上一篇    下一篇

基于LLVM的程序关注点影响分析

  

  1. 上海交通大学软件学院,上海200240
  • 收稿日期:2013-12-12 出版日期:2014-04-17 发布日期:2014-04-23
  • 作者简介:作者简介:陈泓旭(1989),男,江苏大丰人,上海交通大学软件学院硕士研究生,研究方向:程序语言分析,软件工程。

 LLVMbased Impact Analysis on Program Concerns

  1. School of Software, Shanghai Jiaotong University, Shanghai 200240, China
  • Received:2013-12-12 Online:2014-04-17 Published:2014-04-23

摘要:  

摘要: 在LLVM中间形式上,得到影响某特定程序关注点的程序片段,削减不相关部分。基于Andersen指向分析算法构建准确的调用图,得到程序执行中可能到达给定程序节点的基本块;根据指向分析、调用图及调用点处的修改信息,得到了影响关注点的程序片段。实验结果表明,本方法可高效计算出影响程序关注点的程序子集并得到正确的削减片段。

关键词: LLVM中间形式, 影响分析, 可达性分析, 程序切片

Abstract:  

 Abstract:  At LLVM intermediate representation level, we obtained program snippets that have influences on special program concerns and pruned those unrelated parts. By building accurate call graphs based on Andersen’s pointsto analysis, we got the basic blocks that reach the specific program node during execution; with the help of call graph and the modification information, we generated slices affecting the program point. Experimental result shows that this applied approach can compute subset that has impact on the program point efficiently and correctly.

Key words:

中图分类号: