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

SMT solver fault positioning method based on search

A fault location and solver technology, applied in genetic models, program code conversion, code compilation, etc., can solve problems such as no control flow, time-consuming, adaptation difficulties, etc., to facilitate debugging work and improve quality.

Pending Publication Date: 2022-08-09
DALIAN UNIV OF TECH
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although the existing invention patents have proposed some fault location methods, these methods still have problems such as difficulty in adapting to the fault location problem of the SMT solver
For example, a spectrum-based software fault location method (patent number: CN201910205209.4) obtains the program spectrum information of each statement by executing the test case, and then selects several existing fault location sub-technologies to calculate the program spectrum of each statement The information generates multiple sentence suspicious value rankings, and finally generates a comprehensive suspicious value ranking through FA algorithm calculation; but the SMT solver is a large software system, making it very complicated and time-consuming to perform static or dynamic analysis on it
Compiler defect location method based on reinforcement learning (patent number: CN202010880640.1) uses structural variation and reinforcement learning to generate a successfully compiled mutated program, thereby locating the compiler by comparing the difference in the execution path of the mutated program and the fault trigger program Fault; but the language used by the SMT solver is a declarative grammar, and there is no structure such as control flow

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
  • SMT solver fault positioning method based on search
  • SMT solver fault positioning method based on search
  • SMT solver fault positioning method based on search

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings and technical solutions.

[0046] The workflow of the present invention is as follows figure 1 As shown, the method of the present invention is deployed on a computer equipped with a Linux operating system, and the specific configuration of the computer is shown in Table 1. Choose to use Z3 and CVC5 solvers according to the experimental requirements, and install the corresponding software according to the steps.

[0047] Table 1 Computer configuration information table

[0048] Processor model Memory operating system Intel Core i5-4570 2T Ubuntu20.04.2LTS

[0049] like figure 1 As shown, the SMT solver fault is located as follows. In SMT solver fault location, in addition to the deterministic factors specified in the compilation environment, other factors, such as population size, iteration termination conditions, cr...

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 belongs to the field of software testing, and particularly relates to an SMT solver fault positioning method based on search. Firstly, a genetic algorithm is used for searching a variation rule list to perform variation on a test program to obtain a group of variation test programs which do not trigger faults; then, ranking the suspicious files by comparing the execution paths of the test programs which trigger the faults with the execution paths of the variation test programs which do not trigger the faults by using a frequency spectrum-based method, so as to obtain a file ranking list; according to the method, the fault of the SMT solver can be positioned and analyzed, so that a developer can be helped to quickly find the fault reason of the SMT solver, the debugging work is facilitated, and the quality of the solver is improved.

Description

technical field [0001] The invention belongs to the field of software testing, and relates to a technology for locating an SMT solver, in particular to a search-based SMT solver fault location method. Background technique [0002] SMT (The Satisfiability Modulo Theories) solver is a tool for verifying whether first-order logic formulas can be satisfied. It has been widely used in the fields of formal methods, programming languages, software engineering, and computer security. However, as a software, SMT solvers inevitably have bugs, such as the solver incorrectly reporting satisfiable programs as unsatisfiable, which makes it difficult for other tools that rely on SMT solvers to output reliable results. According to statistics, the median time for developers to fix a Z3 fault is 22 hours, of which about 2,000 faults cannot be fixed within two days; the median time for developers to fix a CVC5 fault is 6.3 days, of which about 800 A fault cannot be fixed within two days. Th...

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/36G06F8/41G06N3/12
CPCG06F11/3676G06F11/3684G06F11/3688G06F8/41G06N3/126
Inventor 任志磊王笑爽江贺周志德
Owner DALIAN UNIV OF TECH
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