Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for supporting automatic detection of program defects

An automatic detection and driver technology, applied in the computer field, can solve the problems of weak versatility, heavy workload, unsatisfactory test system compatibility and scalability, etc., to achieve strong versatility, reduce workload, ensure versatility and automation degree of effect

Active Publication Date: 2022-02-11
湖南泛联新安信息科技有限公司
View PDF10 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, when performing defect testing on software systems, traditional testing methods require high technical skills and heavy workload, and the support for some compiler features beyond the language standard is not perfect, and the compatibility and scalability of the test system is not satisfactory. , the existing defect finding and verification technology is not highly automated and has weak versatility, so there is an urgent need for a method that can automatically detect program defects

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
  • Method and system for supporting automatic detection of program defects

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to enable those skilled in the art to better understand the technical solutions of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0033] In one embodiment, such as figure 1 As shown, a method for supporting automatic detection of program defects, the method includes the following steps:

[0034] Step S100: Obtain the program to be tested, and configure the program to be tested with the completed program to be tested according to the preset program completion configuration principle.

[0035] Specifically, input the program to be tested, configure the macro information of the program to be tested, the header file search path, etc., to ensure that the program to be tested can be compiled normally. Preset program complete configuration principle The program to be tested can be compiled normally. The so-called normal completion of compilation means that the program to be teste...

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 and a system for supporting automatic detection of program defects. The method comprises the following steps: obtaining a to-be-tested program, and configuring information for the to-be-tested program according to a preset program complete configuration principle to obtain a complete to-be-tested program; analyzing the complete to-be-tested program, analyzing and extracting a to-be-tested function and to-be-tested function information, and compiling the complete to-be-tested program into an LLVM intermediate code; analyzing the LLVM intermediate code to obtain attached information on the intermediate code instruction, performing code instrumentation on a to-be-tested function according to the attached information and the to-be-tested function information, and generating a symbolic execution drive program; analyzing the symbolic execution driving program through an execution analysis technology, and generating trigger defect test data of the program to be tested; and enabling an interpreter to actually execute the defect test data, and outputting an execution result to obtain a defect test result of the to-be-tested program. No manual intervention is needed, the workload of defect testing is greatly reduced, and the universality and the automation degree of the system during testing are guaranteed.

Description

technical field [0001] The invention belongs to the field of computer technology, in particular to a method and system for supporting automatic detection of program defects. Background technique [0002] At present, when performing defect testing on software systems, traditional testing methods require high technical skills and heavy workload, and the support for some compiler features beyond the language standard is not perfect, and the compatibility and scalability of the test system is not satisfactory. , the existing defect finding and verification technology is not sufficiently automated and has weak versatility, so a method for automatically detecting program defects is urgently needed. Contents of the invention [0003] In view of the above technical problems, the present invention provides a method and system for supporting automatic detection of program defects. [0004] The technical scheme that the present invention solves its technical problem adopts is: [0...

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 Applications(China)
IPC IPC(8): G06F11/36G06F11/07
CPCG06F11/3684G06F11/3688G06F11/079
Inventor 任飞孙文川肖剑明
Owner 湖南泛联新安信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products