计算机与现代化 ›› 2013, Vol. 1 ›› Issue (9): 58-61,6.doi: 10.3969/j.issn.1006-2475.2013.09.014

• 软件工程 • 上一篇    下一篇

代码分析中的层次式静态检测方法

徐路路1,张丽萍1,郭 越2   

  1. 1.内蒙古师范大学计算机与信息工程学院,内蒙古 呼和浩特 010022;2.内蒙古大学电子信息工程学院,内蒙古 呼和浩特 010021
  • 收稿日期:2013-05-14 修回日期:1900-01-01 出版日期:2013-09-17 发布日期:2013-09-17

Hierarchical Static Test Method in Code Analysis

XU Lu-lu1, ZHANG Li-ping1, GUO Yue2   

  1. 1. College of Computer and Information Engineering, Inner Mongolia Normal University, Hohhot 010022, China;2. College of Electronic Information Engineering, Inner Mongolia University, Hohhot 010021, China
  • Received:2013-05-14 Revised:1900-01-01 Online:2013-09-17 Published:2013-09-17

摘要: 为了提高以速度为重比重的静态分析工具输出结果的精确度和可信度,提出一种层次式静态检测方法。第一层次选取速度重比重的静态分析工具并产生检测的初始输出结果;第二层次以初始检测结果的警告信息为依据提取程序切片,然后将警告程序切片形式化抽象成布尔公式通过SAT求解器求解确定警告切片的真假性,综合第一层次和第二层次的分析结果提高分析工具的精确度。实验结果表明该方法能够从一定程度上提高分析工具的精确度和可信度,并能有效减少误报。

关键词: 静态分析, 速度重比重静态分析工具, 层次式分析, 警告程序切片, SAT求解器

Abstract: To increase the accuracy and credibility of outputs for static analysis tool of speed heavy proportion, this paper proposes a hierarchical static testing method. In the first level, the static analysis tool of speed heavy proportion is selected to generate the initial outputs of detection. In the second level, the alarm messages of the initial test results are used to extract the program slices. The alarm program slices are formally abstracted into Boolean formula to determine the true-false of slices by the SAT solver. The accuracy of analysis tools is improved by integrating the results of the first level and the second level. The experimental results show that the method can improve the accuracy and credibility of analysis tools in a certainty and can also reduce the false positives effectively.

Key words: static analysis, static analysis tool of speed heavy proportion, hierarchical analysis, alarm program slice, SAT solver

中图分类号: