Design and Implementation of Path-sensitiye Interprpcedural Alias Analysis

Author
XuLei
Advisor
LiuJian
School
Xi'an University of Electronic Science and Technology
Major
Computer Software and Theory
Classification
TP311.11 Programming method
Degree
Master's thesis
Year
2011
Downloads
8
Citations
0

Request the full text

Abstract

Alias analysis plays an important role in improving the accuracy of data-flow analysis and constructing more powerful program analyzing tools. Based on analyzing the former framework of alias analysis, a path-sensitive way of interprocedual alias analysis is presented and implemented in this thesis.Firstly, a memorial analysis approach based on alias patterns is designed and implemented by comparing and analyzing different methods of interprocedual alias analysis. This approach uses expanded variables to solve the problem of the abstract presentation of the function alias pattern, and then works out the alias pattern and designs its corresponding compatibility determination strategy by constructing an expression mapping table. Secondly, according to the features of path-sensitivity for alias analysis, a method of detecting unfeasible paths in a control-flow diagram is proposed and implemented. With this method can statically calculating the boolean value of branch statement expression by parsering its abstract syntax tree with the tree parser provided by ANTLR. Finally, experiments about function alias patterns and unfeasible paths detection are conducted, and experimental results illustrate that the methods implemented in this thesis can conduct an interprocedual alias analysis efficiently, inspect out unfeasible paths effectually in the analyzing process, and thus guide an accurate analysis of data-flow.

Table of contents

Summary 3-4 Abstract 4-7 first chapter 7-13 1.1 Background 7-9 1.1.1 program analysis and static checking related work 7-8 1.1.2 alias analysis 8-9 1.2 C / C static security checking tool 9-11 1.3 This work and content organization 11-13 Chapter II technologies and related tools alias analysis framework 13-21 2.1 related tools and techniques 13-17 2.1.1 ANTLR Overview 13-14 2.1.2 abstract syntax tree 14 2.1.3 symbol Table 14-15 2.1.4 binary Decision Diagrams 15-17 2.2 alias analysis framework and methodology 17-21 2.2.1 alias analytical framework 17-18 expressed 2.2.2 alias information alias analysis process within 18-19 2.2.3 19-20 2.2 .4 inter alias analysis process 20-21 Chapter III cross- process analysis of the design and implementation of 21-43 3.1 cross- process analysis of the overall design 21 three methods -23 3.1.1 cross- process analysis 21-22 3.1.2 cross- process memory -based style analysis framework 22-23 3.2 memory-based model design type alias 23-35 foundation nbsp 3.2.1 alias mode ; 23-25 ?? 3.2.2 alias pattern indicates 25-27 3.2.3 factors affecting the alias mode calculation 27-28 3.2.4 alias mode 28-34 3.2.5 compatibility mode aliases determination processing 34-35 3.3 interprocedural analysis related issues 35-40 3.3.1 called function to the calling point shot alias information reflects 35-37 3.3.2 function return value processing 37 3.3.3 recursive function calls and function pointers processing 37-39 3.3.4 class processing member functions interfaces nbsp 39-40 3.4 alias analysis provided ; 40-41 3.5 Summary 41-43 Chapter IV route design and Implementation of sensitivity analysis 43-59 4.1 unreachable paths research foundation 43-47 4.1.1 three solution data flow analysis 43 -45 4.1.2 unreachable path definition and classification 45-46 4.1.3 significance of detection of unreachable paths and related work comparing 46-47 <br / > 4.2 detects unreachable path design and implementation 47-57 4.2.1 detects unreachable path design framework 47-48 4.2.2 false branch AST weight configuration and optimization 48-51 detection strategies nbsp 4.2.3 conditional expressions ; 51-53 4.2.4 detects unreachable achieve semantic path 53 - 55 4.2.5 path optimization strategy 55-57 4.3 Summary 57-59 Chapter case study 59-65 <br / > 5.1 compatibility mode function instance alias analysis 59-62 5.2 unreachable path analysis to detect instances 62-65 Chapter VI Conclusion 65 -67 Thanks 67-69 References 69-72