Detection of Clones and Related Software Defects of C Programs via Sequential Pattern Mining

Author
WangZuo
Advisor
SuXiaoHong
School
Harbin Institute of Technology
Major
Computer Science and Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2009
Downloads
39
Citations
1

Request the full text

Abstract

A series of problems caused by the large number of cloned code has become a large-scale software development and maintenance of the main obstacles . In order to more effectively detect clone code to solve the problems caused by large software , automatic detection of the clone code came into being, and their detection effect is due to different methods of application have been mixed . Studies have shown that cloned code brings software defects account for a large proportion of the number of software defects , but the current the clone code defects research has just started . Based on frequent subsequence mining code clone detection model the following improvements : Improved the header file preprocessing and lexical analysis to improve the operating efficiency of the model ; unified statement of the model program branches , limited cloning code fragments and the scope of consolidation , to improve debris merge - delete \execution efficiency and accuracy , and laid a good foundation for the subsequent cloning code defect detection . Clone code identifier inconsistency defects and context inconsistency defect detection method proposed in this paper based on the C clone sequence mining code and related software defect detection model . The model the cloning code detection model based on the improved , combined with cloning code identifier rename inconsistency concept proposed method by calculating the identifier did not change the rate of detection of two cloned code renaming identifiers inconsistency defects ; binding clones code context the inconsistency related concepts , an improved the context inconsistencies filter rules and conditions expression matching algorithm, so as to carry out the the clone code context structure category inconsistency defects and clone code context the condition predicate inconsistency defect detection . Experimental results show that this article based on the C clone sequence mining code and related software defect detection model well to make up for the shortcomings of the original clone detection model , to improve the efficiency of the implementation of the model , making the cloning code detection results are more accurate ; able to more accurately to detect and to visually locate the cloning code related defects .

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 9-12 1.2.1 Detection Technology Research cloning code 9-10 1.2.2 clone code related software Defect Detection Research 10-12 1.3 The main research contents and arrangement of the chapters 12-13 Chapter 2 clone code detection method 13-28 2.1 clone code outlining 13-15 2.1.1 clone codes are defined 13 2.1.2 cloned code causes 13-14 2.1.3 clone code hazards 14-15 2.2 based on frequent sequence mining code clone detection model 15-16 2.3 frequent sequences based on improved mining code clone detection model 16-27 2.3.1 Improved header file preprocessing and lexical analysis process 17-21 2.3.2 unified way nbsp branch statement ; 21-22 2.3.3 debris limited scope of consolidation 22-23 2.3.4 Improved debris \2.3.5 Calculation identifier mapping collision rate to eliminate false alarms 25-27 2.4 Summary 27-28 Chapter 3 clone code related software defect detection method 28-42 3.1 C clone based on sequence mining code and related software defect detection model 28 3.2 clone code related software defect detection sub-model 28-29 3.3 Identifier Renaming inconsistency defect detection method 29-32 3.3.1 clone code identifier renaming inconsistencies 29-30 3.3.2 Identifier Renaming inconsistency defect detection 30-32 3.4 Context inconsistency defect detection method 32-41 3.4.1 clone code in the context of inconsistencies 32-36 3.4.2 Context inconsistency defect detection 36-41 3.5 Summary 41-42 Chapter 4 System testing and analysis 42-55 4.1 Improved code clone detection model experimental analysis 42-44 4.1.1 Improved header file preprocessing and lexical analysis process experimental analysis 42 < br /> 4.1.2 unified statement branches way experimental analysis 42-44 4.1.3 code clone detection experiments Statistical analysis 44 4.2 Identifier Renaming inconsistency defects testing laboratory analysis 44-49 4.3 Context inconsistency defect detection experimental analysis 49-53 4.4 Summary 53-55 conclusion 55-57 References 57-60 papers published during the master's degree and other outcomes 60-62 Thanks 62

Related dissertations

  1. Incremental Detection Method for Memory Access Overrun in Multi-loop Programs
  2. Demand-driven Automated Test Generation for Software Security Defects
  3. Weights of the different characteristics of the Chinese web - based auto- summary
    LinYi ·Huaqiao University ·2007 ·Master's thesis
  4. Chinese web page classification based on genre
    HuangZhenZhen ·Huaqiao University ·2007 ·Master's thesis
  5. Research on Alerts Fusion and Corelation Technology for Intrusion Detection System
  6. Research on Frequent Subtree Mining
    LiWei ·Yanshan University ·2007 ·Master's thesis
  7. Research and Realization of an Intrusion Detection System based on Application-level Protocol
    GuXiaoGang ·Dalian University of Technology ·2006 ·Master's thesis
  8. Research on Parallel Sequential Patterns Mining Algorithm Based on Prefix Tree
    DongYuan ·Yanshan University ·2011 ·Master's thesis
  9. Research of Context Inconsistency Detection and Resolution
    ZhangZuoNan ·Shanghai Jiaotong University ·2011 ·Master's thesis
  10. Automatic extraction of implicit rules and counter case detection method
    YuZhen ·Harbin Institute of Technology ·2011 ·Master's thesis