Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method for formally verifying bytecode intermediate representation program module by module

A formal verification and intermediate representation technology, which is applied in electrical digital data processing, instrumentation, software testing/debugging, etc., can solve the complexity of bytecode intermediate representation program abstract control stack, cannot effectively solve block verification, and control flow structure Insufficient information and other issues to achieve the effect of enhancing credibility

Active Publication Date: 2012-11-14
TSINGHUA UNIV
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Due to the complexity of the program abstract control stack in the middle of the bytecode and the lack of control flow structure information, previous methods cannot effectively solve the block verification of such programs, and there are a lot of demands in reality, so an effective and automatic checkable formalization is designed The verification scheme has important practical significance and application value

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 for formally verifying bytecode intermediate representation program module by module
  • Method for formally verifying bytecode intermediate representation program module by module
  • Method for formally verifying bytecode intermediate representation program module by module

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the purpose, technical solution and advantages of the present invention clearer, the following will further describe the implementation of the present invention in detail in conjunction with the accompanying drawings.

[0043] figure 1 It shows a flow chart of performing formal verification of bytecode intermediate representation program code according to the present invention. like figure 1 As shown, first in step 101, a bytecode intermediate representation program function facor that adopts a circular method to calculate the factorial of the number n is rewritten as figure 2 In the second half, the corresponding C language program is as follows figure 2 In the upper part, is the specification of the function, where p0 represents the condition that the state S must meet before the function call, the condition includes: there are more than 2 available units on the top of the calculation stack; there is one available unit on the top of the function ...

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 formally verifying a bytecode intermediate representation program module by module, which relates to the technical field of program security. The method is executed in a virtual machine with a dual-stack structure, and comprises the following steps of: formally rewriting the bytecode program to be verified in a way of taking a function as a unit and giving the formal specifications of the bytecode program; dividing the functions into instruction sequences and giving the specifications of the instruction sequences; formally certifying that each instruction sequence accords with the corresponding specifications; and connecting the certificates of all the instruction sequences in the functions to form the certificates of the functions, and connecting the certificates of all the functions to obtain the certificate of the whole program. Storage characteristics and a part of accuracy characteristics described in the specifications are met, so the aim of enhancing the credibility of the bytecode program is fulfilled. The method can be combined with the conventional methods for test, static and dynamic checking and the like, is applied to the checking of key security programs in the fields of aviation, nuclear industrial control and the like, and has the characteristics of high credibility, automatic checking and the like.

Description

technical field [0001] The invention relates to the field of program credibility, in particular to a sub-module formalized verification method for bytecode intermediate representation programs. Background technique [0002] The bytecode intermediate representation can not only run on a virtual machine, but also serve as a well-defined program representation in the compilation process. It is an important technology widely used in today's network software and computing devices. Bytecode intermediate representation program verification can improve the credibility of related software, and at the same time provide intermediate representation support for constructing proof-keeping compilers, which has important practical and theoretical values. [0003] The main research work of traditional bytecode intermediate representation program verification focuses on JVM internal checkers, and the goal is type correctness, so as to ensure storage safety. With the deepening of research wor...

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): G06F21/00G06F11/36G06F21/57
Inventor 董渊王生原张丽伟
Owner TSINGHUA UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More