Design and Implementation of Points-To Analysis Tool for Aspect-Oriented Program

Author
SunQiang
Advisor
ZhaoJianJun
School
Shanghai Jiaotong University
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2009
Downloads
38
Citations
1

Request the full text

Abstract

Aspect-oriented programming (AOP) has been proposed as a programming paradigm for improving separation of concerns in software design and implementation. AOP works by providing explicit mechanisms for capturing the structure of crosscutting concerns such as exception handling, synchronization, performance optimizations, and resource sharing, which are usually difficult to express clearly in source code using existing programming techniques. AOP can also control the code tangling problem, making the underlying concerns more apparent, and enable the software more easy to develop, maintain, and evolve.AspectJ, one of the most widely used AOP languages, is a seamless aspect-oriented extension to Java by adding some new constructs such as join point, advice, and aspect. An AspectJ program can be divided into two parts: base code which includes classes, interfaces, and other language constructs as in Java, and aspect code which includes aspects for modeling crosscutting concerns in the program. With the inclusion of join points, an aspect woven into the base code is solely responsible for a particular crosscutting concern, which raises the system’s modularity.Points-to analysis is a fundamental analysis technique whose results are useful in compiler optimization and software engineering tools. Although many points-to analysis algorithms have been proposed for procedural and object-oriented languages like C and Java, there is no points-to analysis for aspect-oriented languages until now.Based on Andersen-style points-to analysis for Java, we propose a flow- and context-insensitive points-to analysis for AspectJ. The main idea is to perform the analysis crossing the boundary between aspects and classes. Therefore, our technique is able to handle the unique aspectual features. To investigate the effectiveness of our technique, we implement our analysis approach on top of the ajc AspectJ compiler and evaluate it on nine AspectJ benchmarks. The experimental result indicates that, compared to existing Java approaches, the proposed technique can achieve a significant higher precision and run in practical time and space.The main contributions of this thesis are threefold. First, we define general-purpose flow-insensitive and context-insensitive points-to analysis for AspectJ which extends the semantics of Rountev et al.’s points-to analysis for Java. Second, we implement a points-to analysis tool AJPTAT for AspectJ programs based on the ajc compiler. Third, we perform an empirical evaluation on nine AspectJ benchmarks for our points-to technique. The experimental result indicates that a significant higher precision can be achieved compared to the existing Java approach.

Table of contents

Abstract 3-5 ABSTRACT 5-11 first chapter 11-20 1.1 Background 11-16 1.1.1 object-oriented programming and the problems 11-12 1.1.2 aspect-oriented programming Commentary 12-14 1.1.3 ASPECTJ Language Overview 14-15 1.1.4 point to analyze the basic concepts 15-16 1.2 topics motivation 16-17 1.3 paper the basic ideas and results 17-18 1.4 papers organizational structure 18-20 Chapter II point analysis Overview 20-30 2.1 point analysis method of classification 20-21 2.2 point to the status of the analytical techniques 21-25 2.3 Java language semantic point analysis 25-29 2.4 Summary 29-30 the third chapter of the semantics of aspect-oriented program 30-35 3.1 Overview 30 3.2 ASPECTJ linguistic characteristics of 30-31 3.3 ASPECTJ language of the call graph affect the elemental analysis 31-34 3.3.1 Overview 31-32 3.3.2 POINTCUT language element analysis and solution 32-33 3.3.3 ADVICE language element analysis and solution 33-34 3.4 Summary 34-35 the fourth chapter of aspect-oriented programs pointing to the analysis of semantic 35-49 4.1 aspect-oriented point to the basic representation of the graph 35-37 4.2 processing entry point parameter passing 37-38 4.3 deal with notification parameter passing 38-42 4.4 extension in the calling point semantic 42-43 4.5 notification call tree 43-48 4.6 Summary 48-49 point analysis tools AJPTAT aspect-oriented program design and 49-65 the the 5.1 AJPTAT system is the overall structure 49-50 5.2 ASPECTJ program call graph 50-51 5.3 for the analysis of some of the basic data structures 51-52 5.3.1 aspects of table 51 5.3.2 domain access table 51-52 5.3.3 Summary 52 5.4 ASPECTJ pointer assignment in Figure 52-55 5.5 ASPECTJ pointer assignment graph generation module 55-62 5.5.1 initialization module 55-56 5.5.2 within the analysis module 56-60 5.5.3 process analysis module 60-62 5.6 point diagram generation module 62-63 5.7 Summary 63-65 the sixth chapter of the Experimental assessment 65-71 6.1 Overview 65-67 6.2 The experimental design 67 6.3 Accuracy Analysis of 67-68 6.4 Performance Analysis 68-69 6.5 Conclusion 69 6.6 Summary 69-71 Chapter VII point to map applications: virtual call to resolve 71-74 7.1 Overview 71-72 7.2 The implementation of virtual call to resolve and result analysis 72-73 7.3 Conclusion 73 7.4 Summary 73-74 summarized in chapter 8 74-76 8.1 In this paper, the contribution 74 8.2 Research Prospects 74-76 References 76-81 during the master's degree has been published or accepted papers 81-82 thank 82-85 Shanghai Jiaotong University Master's degree thesis resolution book 85

Related dissertations

  1. Research of Aspect-Oriented Refactoring Technique
    HouXiaoYu ·Harbin Engineering University ·2012 ·Master's thesis
  2. Research on Points-to Analysis for Java
    LiZuo ·Nanjing University ·2012 ·Doctoral dissertation
  3. Design and Implementation of Testing Aspects Interaction Tool for Aspect-Oriented Programs
    ZhuangXuJie ·Shanghai Jiaotong University ·2007 ·Master's thesis
  4. Dynamic Coupling Measurement for Aspect-Oriented Software
    YangZuo ·Shanghai Jiaotong University ·2008 ·Master's thesis
  5. Study and Implementation of Pipa and Its Runtime Assertion Checking Compiler
    WangDai ·Shanghai Jiaotong University ·2008 ·Master's thesis
  6. The Design and Implementation of Software Comprehension Aid System Based on Program Slicing
    SunHongHao ·Dalian University of Technology ·2007 ·Master's thesis
  7. Research on AOP-Based Design by Contract and the Language and Tool to Support It
    XuZuoYing ·East China Normal University ·2008 ·Master's thesis
  8. Research and Application of Design Pattern Based on AOP
    DengHao ·Wuhan University of Technology ·2007 ·Master's thesis
  9. A Web Application Security Enhancement Method Design and Implemention
  10. Design and Implementation of Call Graph Analysis Tool for Aspect-Oriented Program
    LiZuo ·Shanghai Jiaotong University ·2007 ·Master's thesis
  11. Static Construction of Control Flow Graph for Aspect-Oriented Programs
    FengBin ·Shanghai Jiaotong University ·2007 ·Master's thesis
  12. Aspect-oriented software development method and its application in distributed systems Application Development
    JiaYangLi ·Wuhan University of Technology ·2006 ·Master's thesis
  13. JAAS security aspect-oriented design and implementation
  14. The Design and Realization of Java Program Slicing System Using AspectJ
  15. Research on Software Refactoring in AspectJ Programs
    LiRui ·Jilin University ·2005 ·Master's thesis
  16. Aspect-oriented software technology based security framework for research
    XiongJunFeng ·Chongqing University ·2004 ·Master's thesis
  17. Research on Aspect Conflict of Aspect-Oriented Software Development
  18. Based on J2EE technology and AOP Digital Library Research
  19. Design and Implementation of AspectJ Source Weaver for Incremental AOSD
    LiuZuoXia ·Jinan University ·2010 ·Master's thesis
  20. The Description and Tool Implementation of Time Features Based on AOP