Research and Application for Object-Oritented Program Equivalence Transformation Technology

Author
WangHuan
Advisor
WuWeiMin
School
Guangdong University of Technology
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2008
Downloads
45
Citations
3

Request the full text

Abstract

The program equivalence conversion technology has wide application in the analysis and evaluation of the program. Program analysis and evaluation to stay in the program output comparison stage, not in depth to the structure of the program-level analysis to discover semantic differences exist between the procedures. In addition, in existing relevant aspects of the study, the program analyzes the evaluation of the target language is limited to the functional language or an imperative language, not related to the object-oriented language equivalent conversion research. In this paper, based on object-oriented programming equivalent conversion technology and its applications in program analysis and evaluation. Program equivalence conversion technology is based on program semantic equivalence as the theoretical basis, including the implementation of a semantically equivalent program semantic equivalence, structured semantic equivalence and structure-like semantic equivalence. Have the equivalent mutual conversion between similar structure semantics of the source. Program has the hierarchical design of object-oriented languages, equivalent conversion of such programs, the following three levels: the program level equivalent conversion the class level equivalence conversion method level equivalent conversion . Program level equivalent conversion procedures for the program, class inheritance relationship exists between the standardization process, through the elimination of the inheritance relationship, you can explicitly express all of the information contained in each class. Class level equivalent conversion program call the relationship between the members of each class standardization process, the call relationship eliminate, can visually express the information contained in each member method, while , also need to eliminate redundant class method to simplify the composition of the class. Method-level equivalent conversion program for the diversification of the program in a statement expressing standardization process by the statement in the program assignment standardized expression standardization and control structure standardization to eliminate each method statement expression diversification. A JAVA program evaluation system framework based on object-oriented programming equivalent conversion technology, and system prototype. In this system, the use of ANTLRWORKS construct an AST for the intermediate code is the JAVA language parser. The program structure is based on the AST, and the introduction of well-known object-oriented such as CK and MOOD metric system to measure the program, and generates a variety of graphical representation for the analytical procedures. Then press the program-level semantic equivalence conversion retained the class-level semantic equivalence conversion method level reserved reserved semantic equivalence conversion to a total of three levels of the program reserved semantic equivalence conversion, the resulting semantic comparison The program dependence graph, the application algorithm comparison and evaluation of the program.

Table of contents

Abstract 4-6 ABSTRACT 6-14 first chapter 14-21 1.1 This paper studies the background 14-18 the 1.1.1 program evaluation technology status 15-16 1.1.2 program the conversion technology status quo 16-17 1.1.3 related technology status 17-18 1.2 this study points 18-20 1.2.1 program parser constructor 18-19 1.2.2 object-oriented programming information extraction 19 1.2.3 object-oriented programming metrics 19 1.2.4 object-oriented program is equivalent conversion 19-20 1.3 subject objectives 20-21 the equivalent conversion technology overview 21-26 2.1 program equivalence 21-22 2.2 has been the basis for the work 22-23 2.3 equivalent conversion process 23-26 2.3.1 abstract syntax tree generated 24 2.3.2 Structural Analysis 24-25 2.3.3 equivalent conversion 25-26 Chapter Program Structure Analysis 26-39 3.1 object-oriented programming features 26-27 3.1.1 encapsulation 26 3.1.2 inheritance 26 3.1.3 polymorphism 26-27 3.2 object-oriented software metrics 27-31 3.2.1 C K metric 27-28 3.2.2 MOOD metrics 28-31 3.2.3 Other Metrics 31 3.3 structure analysis 31-39 3.3.1 program-level analysis 31-35 3.3.2 class-level analysis 35-37 3.3.3 method level analysis 37-39 the reserved semantic equivalence conversion 39-53 4.1 program level reserved semantic equivalence conversion 40-44 4.1.1 Overview 41-42 4.1.2 conversion rules 42-43 4.1.3 conversion algorithm 43-44 4.2 class-level reserved semantic equivalence conversion 44-46 4.2.1 call relationship delete 44-46 4.2.2 redundancy methods delete 46 The 4.3 method grade retention semantic equivalence conversion 46-53 4.3.1 Assignment standardized 47 4.3.2 expression standardized 47-50 4.3.3 control structure standardization 50-51 4.3.4 optimized conversion 51-53 Chapter JAVA automated assessment system design and realization 53-75 5.1 system overall framework 53-54 5.2 program parser 54-61 5.2.1 lexical parser 54-55 5.2.2 parser 55-56 5.2.3 syntax tree parser 56-57 5.2.4 code information tree 57-61 5.3 Program Structure Analyzer 61-64 5.4 Semantic converter 64-66 5.5 program comparator 66-67 5.6 example analysis 67-75 concluded 75-76 the References 76-80 studying for a master's degree during the thesis 80-82 Acknowledgements 82

Related dissertations

  1. Software Design for Control System of Electro-hydraulic Three-axis Flight Simulator
    KongJie ·Harbin Institute of Technology ·2012 ·Master's thesis
  2. The Design and Implementation of Website Construction Based on OpenCms Technology
  3. Design and Implementation of Materials Management System of Multi-level Educational Institutions
    PeiZhiChao ·Northeastern University ·2013 ·Master's thesis
  4. Design and Implementation of Ji’nan Waterconservancy Bureau Covers Security Information System
    MaShiTao ·Shandong University ·2013 ·Master's thesis
  5. The Design and Implementation of Sinopec Sales Co.,Ltd Personnel Management System
    LinYan ·Dalian University of Technology ·2013 ·Master's thesis
  6. Design and Implementation of Tianhua College Office System
    JieJian ·Dalian University of Technology ·2013 ·Master's thesis
  7. Universities Fixed Asset Lifecycle Management System Design
    JiangChuanLin ·Dalian University of Technology ·2013 ·Master's thesis
  8. Analysis and design of engineering project management system
    XuXianJun ·Yunnan University ·2013 ·Master's thesis
  9. The Design and Implementation of Vehicle Tracking Management System
  10. Design and Implementation of the Management System of the Service Area
  11. The Design and Realization of Campus Blog System Based on ASP
  12. The Design and Implementation of the Ship Agency Management System
  13. Design and Implementation of Supermarket Chain Chongqing Chongkelong Co Information System
  14. Design and Implementation of Network Curriculum Teaching Platform for Middle School
  15. Analysis and design of student information management system
    WuShaSha ·Yunnan University ·2013 ·Master's thesis
  16. Design and Implementation of Community Management Sub-System on Police Mobile System
    LiuYang ·Xi'an University of Petroleum ·2012 ·Master's thesis
  17. Chengdu Jinjian Finance Bureau Financial Approval System Design and Implementation
  18. Chengdu Jinpeng Company’s Human Resource Management System Design and Implementation of Master Dissertation
  19. The Design and Realization of the Financial Approval System
  20. The Design and Implementation of Member Management System for Technical Title Evaluation Committee of WeiFang City
    LiQing ·Shandong University ·2013 ·Master's thesis