作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2010, Vol. 36 ›› Issue (24): 71-73. doi: 10.3969/j.issn.1000-3428.2010.24.025

• 软件技术与数据库 • 上一篇    下一篇

基于符号运算的归纳变量识别与约化

周 雷,陈克非   

  1. (上海交通大学计算机科学与工程系,上海 200240)
  • 出版日期:2010-12-20 发布日期:2010-12-14
  • 作者简介:周 雷(1982-),男,硕士研究生,主研方向:程序分析,软件安全;陈克非,教授、博士生导师
  • 基金资助:
    国家“863”计划基金资助项目(2009AA01Z418)

Induction Variable Recognition and Reduction Based on Symbolic Operation

ZHOU Lei, CHEN Ke-fei   

  1. (Department of Computer Science and Engineering, Shanghai Jiaotong University, Shanghai 200240, China)
  • Online:2010-12-20 Published:2010-12-14

摘要: 针对归纳变量的识别及归约问题提出一种基于符号运算的新算法。通过初始变量替换赋值语句中的右值,用以表达变量间的迭代与依赖关系,由此建立有向依赖图用于识别归纳变量。为归纳变量构建递归方程组并利用符号运算进行求解,获得独立的仅依赖于迭代次数的数学形式。实验结果表明,该方法适用于各种复杂的归纳变量,能够解决现有算法无法处理的一些问题。

关键词: 静态检测, 程序分析, 代码优化, 符号运算

Abstract: Based on symbolic operation, a novel approach is proposed to recognize and reduce Induction Variables(IV). It replaces all l-values in assignments by the original variables which can represent the iteration and dependence relationships among them, and constructs variable dependence digraphs to recognize IV. It establishes recursive equation sets to solve the problems based on symbolic operations, and gets their independent expressions composed of iteration number. Experimental results show that the method fits with different kinds of IV and overcomes the shortages of current methods.

Key words: static detection, program analysis, code optimization, symbolic operation

中图分类号: