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

C source code-oriented automatic formal verification tool and method

A formal verification and automated verification technology, applied in the field of automated formal verification tools for C source code, can solve the problems of low verification efficiency and large workload of traditional formal verification, and achieve the effect of reducing manual participation and improving efficiency

Pending Publication Date: 2021-04-20
UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide an automated formal verification tool and method for C source code, which solves the security problems faced by the above-mentioned C language code and the problems of large workload and low verification efficiency of traditional formal verification

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
  • C source code-oriented automatic formal verification tool and method
  • C source code-oriented automatic formal verification tool and method
  • C source code-oriented automatic formal verification tool and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0040] Such as figure 1 As shown, the automatic formal verification tool and method for C source code of the present invention, the automatic formal verification tool for C source code developed by the present invention, verifies the functional correctness of the C source code and whether there are logical loopholes. In order to make it easier for those skilled in the art to understand, the following will use figure 2 The formal verification of the simple C source code shown is taken as an example for illustration. It does not constitute any limitation on the present invention. Those skilled in the art can apply it to formal verification in other languages, such as java, Go, etc., under the inspiration of the technical content disclosed in the present invention. In this example with figure 2 The formal verification of the simple C source code shown as an example, combined with figure 1, using the tool of the present invention to carry out a detailed description of the pr...

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 C source code-oriented automatic formal verification tool and method, and the method comprises the steps: inserting a compiled code function specification into a C source code, automatically converting the function specification and the C source code into an intermediate representation which can be processed by a program verifier, converting the intermediate representation into an intermediate verification language code through the program verifier for formal verification input; by the adoption of the formalization method, automatic formalization verification can be conducted on the converted source code so as to verify the functionality and safety of the source code. On the basis that each interface function passes code function correctness verification, an abstract model is constructed by utilizing a behavior modeling language and a combined verification technology; and then an interaction behavior is simulated by utilizing a model simulation engine and an attribute detection engine, a security attribute is verified, and whether the code meets a security attribute specification or not is judged. According to the invention, formalized verification of the C source code can be realized in an automatic form, the used intermediate representation generator can automatically generate the intermediate representation, the program verifier can automatically generate the intermediate verification language code, and the model simulation engine and the attribute detection engine can automatically verify the security attribute. The measures can greatly improve the C source code verification efficiency and reduce the manual participation degree.

Description

technical field [0001] The invention relates to the technical field of C language source code security, in particular to an automatic formal verification tool and method for C source code. Background technique [0002] Formal verification methods use mathematical formulas, theorems and systems to verify the correctness of a system. The formal verification process can prove that a system does not exist a certain defect or conforms to a certain property or properties. Software testing cannot prove that a system is free from defects, nor that it conforms to certain properties. A system cannot be proven or tested to be defect-free because it is impossible to formally specify what is "defect-free". All that can be done is to prove that a system is free of every conceivable defect and satisfies all functional specifications and safety properties. [0003] C language is a general-purpose programming language. Because of its high efficiency, flexibility, rich functions, strong ex...

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/30
Inventor 杨霞郭文生张冯博卢秀台高扬熊宇万俊闫哲林珍珍任超郑旭东
Owner UNIV OF ELECTRONICS SCI & TECH OF CHINA
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