A Method of Building Software Defect Prediction Model Based on Compiler Intermediate Representation

A software defect prediction and intermediate representation technology, applied in software testing/debugging, instrumentation, error detection/correction, etc., can solve the problems of low utilization rate of defect samples and difficulty for researchers to obtain, so as to get rid of excessive dependence and expand the breadth and depth effects

Active Publication Date: 2022-06-03
NANJING AUDIT UNIV
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the collected samples are classified and analyzed according to the programming language and system architecture, the correlation between defect samples will be segmented, so that the utilization rate of the originally limited defect samples will be greatly reduced
At the same time, limited by commercial privacy, it is still difficult for researchers to obtain source codes in practical applications, and software defects in these commercial applications are extremely important sample data

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Method of Building Software Defect Prediction Model Based on Compiler Intermediate Representation
  • A Method of Building Software Defect Prediction Model Based on Compiler Intermediate Representation
  • A Method of Building Software Defect Prediction Model Based on Compiler Intermediate Representation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The present invention will be further described below in conjunction with the accompanying drawings.

[0059] Wherein, in side te, u represents the starting node of the te edge, and k represents the termination node of the te edge;

[0063] Specifically, the DDG node uses the data structure {defvar:deftype, opcode, [opvar

[0070] (F1), convert all the nodes of the DDG into token strings to represent, and simplify the DDG according to the token, that is, the token

[0072]

[0079] Using the LLVM compiler, the source code or binary program is converted into an intermediate representation of the LLVM compiler, as shown in Figure 3

[0084]

[0085]

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for constructing a software defect prediction model based on a compiler intermediate representation, comprising the following steps: step (A), using a compiler to convert a source code or a binary program into a compiler intermediate representation, that is, an IR instruction sequence ; Step (B), constructing a program control flow graph CFG (CV, CE) based on the IR instruction sequence through semantic analysis of the IR instruction sequence. The present invention builds a software defect prediction model based on the intermediate representation of the compiler. On the one hand, it can get rid of the excessive dependence of sample data on source programs. On the other hand, it can combine different types of source programs for analysis, greatly expanding the breadth and depth of sample data. , which is extremely important for the construction of a big data-driven software defect prediction model. Building a software defect prediction model based on compiler intermediate representation will hopefully replace the source code-based software defect prediction model and become an important research field of software defect prediction. breaking point.

Description

A method for building software defect prediction model based on compiler intermediate representation technical field The present invention relates to software engineering and software defect prediction technical field, be specifically related to a kind of intermediate table based on compiler The software defect prediction model construction method shown. Background technique As people's demand for software is increasing day by day, its functions are more and more, and the complexity is also higher and higher. While benefiting people's lives, it also brings many hidden dangers. Software defects have become many system errors, failures, crashes and even Potential root cause of machine crashes. Software defect prediction technology associates software defects with various software by building a software defect model. The metric vector is correlated to realize the preliminary positioning of the modules that may have defects in the software, so as to optimize the softwar...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3608G06F11/3624Y02D10/00
Inventor 陈勇徐超沈凡凡
Owner NANJING AUDIT UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products