Automatic extraction of implicit rules and counter case detection method

Author
YuZhen
Advisor
SuXiaoHong
School
Harbin Institute of Technology
Major
Computer Science and Technology
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2011
Downloads
9
Citations
0

Request the full text

Abstract

There are many large-scale program implicit programming rules , they express the inherent characteristics of the program and the specific requirements ; if the programmer forgot or did not realize that these rules , then it is easy to introduce procedural defect . Implicit programming rules varied shapes , may contain more than one type of program elements , scattered locations across the various components may function , cross- document distribution , manual review is very difficult to find these rules. Therefore it is necessary to study how to automatically extract from the program and the formation of the implicit rules of documentation . However, the existing research results can only be extracted based on a simple function of procedural rules , but not excavated contain functions, variables and data types , and other program elements implicit rules ; And for the realization of rule extraction , they also need to program members provide rules template, require a higher degree of human involvement . To extract more from the program different types of rules , while reducing the extent of human involvement , we propose a general and efficient procedure implicit rules to automatically extract and anti case detection methods. This method uses the frequent closed itemsets mining techniques from large software source code contains a variety of program elements digging programming mode, and then generate the programming mode programming rules ; introducing positive sequence rules (PSDRule) concept , in order to avoid from the same generation programming mode multiple redundant rules . On this basis , also proposed an efficient counter-example detection algorithm to detect violations of the rules of program fragments , which is likely to contain bugs . Entire rule extraction and counter-example is automated detection process , the programmer does not need to provide any preset information , do not need to have any prior knowledge of the target program . In a number of large open -source projects on the experimental results show that the proposed rule extraction and detection model counter-example exists in the program can automatically extract implicit programming rules , and based on the rules extracted quickly and efficiently detect program code in violation of these rules clips. Through analysis of the experimental results and confirmation by artificial found this method to extract meaningful multiple rules and detected some real flaws.

Table of contents

Abstract 4-5 Abstract 5-8 Chapter 1 Introduction 8-13 1.1 research purpose and meaning 8-9 1.2 research status and Analysis 9-12 1.3 The main research contents and innovation 12 1.4 dissertation chapters arranged 12-13 Chapter 2 Data mining extraction and counter-examples in the rule Detection Research and Application 13-31 2.1 Data Mining Overview 13-14 2.1 .1 basic concepts of data mining 13 2.1.2 Data Mining System general model 13-14 2.1.3 Correlation Analysis and sequence analysis 14 2.2 introduces data mining technical reasons 14-15 2.3 rules based on data mining extraction and detection methods counterexample basic flow 15-16 2.4 based on data mining methods research classification 16-30 2.4.1 frequent itemsets mining based approach 16-19 2.4.2 based on frequent sequence mining methods 19 - 22 2.4.3 based on frequent partial order mining method 22-24 2.4.4 based on frequent subgraph mining method 24-30 2.5 based on data mining methods to extract the application of the rules 30 2.6 Chapter Summary 30-31 Chapter 3 Frequent Itemsets Mining Algorithm 31-43 3.1 Frequent Itemsets Mining Algorithms 31 3.2 frequent itemset mining problem description 31-33 3.2.1 Basic Concepts 31-33 3.2.2 Problem Definition 33 3.3 FP-growth algorithm 33-39 3.3.1 FP-growth algorithm basic idea 33 3.3 .2 FP-growth algorithm specific steps 33-39 3.4 CLOSET algorithm 39-42 3.4.1 CLOSET The basic idea 39-40 < br /> 3.4.2 CLOSET algorithm specific steps 40-42 3.5 Summary 42-43 Chapter 4 frequent closed itemsets based on the implicit rules to automatically Extraction and Anti case detection model 43-71 4.1 overall design of the model framework 43-44 4.2 Implicit rule example 44-45 4.3 selection interested grammatical 45-46 4.4 database generation 46-57 4.4.1 database to generate the basic idea 46-47 4.4 .2 overall flow generated by the database and algorithm framework 47-49 4.4.3 pretreatment and build a syntax tree 49-52 4.4.4 based on partial abstract syntax tree symbol table generation algorithm 52-54 4.4.5 algorithms to extract two kinds of grammatical elements 54-56 4.4.6 Digital itemsets database generation algorithm 56 4.4.7 pruning and merging algorithm 56-57 4.5 Improved algorithm for mining frequent itemsets 57-65 4.5.1 FPclose algorithm 58-62 4.5.2 IFPclose algorithm 62-65 4.6 rules to generate test cases and anti- 65-70 4.6.1 Closed rule generation algorithm compression format 65-68 4.6.2 Positive sequence rule generation and reverse case detection algorithm 68-70 4.7 Chapter Summary 70-71 Chapter 5 Experimental results and analysis 71-80 5.1 open source code on the experimental 71-76 5.2 Comparison of two methods 76 5.3 false detection analysis 76-78 5.4 and counter-case detection rule extraction and analysis of simulation experiments 78 5.5 Chapter Summary 78-80 Conclusion 80-81 References 81-86 papers published during the master's degree and other outcomes 86-88 Thanks 88

Related dissertations

  1. Incremental Detection Method for Memory Access Overrun in Multi-loop Programs
  2. Design and Development of a High-speed Heavy-load Palletizing Robot
    CaoJiaZuo ·Tianjin University ·2012 ·Master's thesis
  3. The Design and Analysis of Octahedral Module Deployable Mast
    LiCheng ·Harbin Engineering University ·2013 ·Master's thesis
  4. Research on Mechanical Properties Of the Elastic Body of a Six-Axis Force Sensor Based on Strain Gauge
    WangZhiHong ·Anhui University of Engineering ·2013 ·Master's thesis
  5. Compiler-directed Static Analysis and Code Transformation
  6. Static Security Detection of C Applications
  7. The Research of Exploiting Software Security Vulnerabilities Based on Android Platforms
    TangYuJing ·Hebei University of Engineering ·2013 ·Master's thesis
  8. The Finite Element Analysis and Optimization of the Key Components of FP2500A Type Stack-Turning Machine for Organic Fertilizer
    WangZeMin ·Nanjing Agricultural College ·2013 ·Master's thesis
  9. Design and Analysis of PF1In-cryostat-feeder Support for ITER Poloidal Field
    ZhangJunLong ·Hefei University of Technology ·2013 ·Master's thesis
  10. Research on Steel Structure Optimization and Dynamic Characteristics of HZS240Concrete Mixing Station
  11. Mechanical Performance Analysis of Semi-rigid Steel Frames Filled Profild Steel Plate Wall
    LiuYing ·Harbin Institute of Technology ·2012 ·Master's thesis
  12. Large Steel Structure Natural Draft Cooling Tower of Force Analysis
    WangJin ·East China Jiaotong University ·2013 ·Master's thesis
  13. The Wind Resistance Study of the Steel Frame Structural Main Factory Building of Large Thermal Power Plant
    WanShunLu ·Guangxi University ·2012 ·Master's thesis
  14. The Analysis of the Structure Stability of Zhongding International Mansion
    WangLi ·Shenyang University ·2012 ·Master's thesis
  15. Research on the Mechanical Behaviors of Concrete-filled Double Skin Steel Tubular Column
    PengCaiJie ·Hunan University ·2013 ·Master's thesis
  16. The Analysis and Comparison for Different Forms of T Fence in the Wiggins Gas Holder
    ZhangZuo ·Tianjin University ·2012 ·Master's thesis
  17. The Research on the Use of Composite Structure in Three-dimensional Garage
    XuZhaoFeng ·Hunan University ·2013 ·Master's thesis
  18. Static Analysis of the Ground-supported Flat-bottomed Cylindrical Steel-concrete Composite Silo
    GaoCongChao ·Hebei University of Engineering ·2013 ·Master's thesis
  19. Mechanical Behavior Analysis of Large Silos Storage for High Temperature Stored Materials
    SongJing ·Zhejiang University ·2014 ·Master's thesis
  20. Structure Performance Analysis and Optimization on a Bus Frame
    MuBiao ·Hefei University of Technology ·2013 ·Master's thesis