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

A binary translation intermediate representation correctness test method and device based on semantic equivalence verification

An intermediate representation and semantic equivalence technology, applied in the field of computer transplantation, can solve problems such as the difficulty of implementing compilers, the inability to apply binary translation systems, and the impact on software development and testing cycle and quality, so as to improve test accuracy and efficiency and ensure software The effect of quality and reliability

Active Publication Date: 2019-04-16
PLA STRATEGIC SUPPORT FORCE INFORMATION ENG UNIV PLA SSF IEU
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, applying formal verification to a production-grade compiler such as GCC is still difficult to achieve
Hasabnis proposed a method for testing the code generation specification of the GCC compiler, which can construct special test cases to verify the functional correctness of the intermediate representation of the GCC compiler. However, this method cannot be applied to the binary translation system whose front end is machine instructions. Affect software development testing cycle and quality

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 binary translation intermediate representation correctness test method and device based on semantic equivalence verification
  • A binary translation intermediate representation correctness test method and device based on semantic equivalence verification
  • A binary translation intermediate representation correctness test method and device based on semantic equivalence verification

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the purpose, technical solution and advantages of the present invention more clear and understandable, the present invention will be further described in detail below in conjunction with the accompanying drawings and technical solutions.

[0028] In view of the low test coverage rate, easy state space explosion, incomplete test, and limited application in the testing process of the existing binary translation system intermediate representation, in the embodiments of the present invention, see figure 1 As shown, a binary translation intermediate representation correctness testing method based on semantic equivalence verification is provided, which includes the following content:

[0029] S101. Establish a mapping rule between the source platform instruction and the intermediate representation;

[0030] S102. Perform state initialization on the intermediate representation, and construct a test case;

[0031] S103. For the test case, independently execute...

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 technical field of computer transplantation, and particularly relates to a binary translation intermediate representation correctness testing method and device based on semantic equivalence verification, and the method comprises the steps: building a mapping rule between a source platform instruction and an intermediate representation; Performing state initialization on the intermediate representation, and constructing a test case; And for the test case, independently executing the source platform instruction and the intermediate representation respectively, and judging whether the semantics between the source platform instruction and the intermediate representation are equivalent or not according to an independent execution result. According to the invention,an intermediate code correctness test irrelevant to a specific system architecture can be realized; a black box and white box testing method is combined; The method can quickly, efficiently and accurately locate the problems existing in the binary translation intermediate representation, improves the test accuracy and efficiency, further shortens the software development test period, guarantees the software quality and reliability, and has a certain guiding significance for binary translation tests between different platforms and the computer software cross-platform transplantation technology.

Description

technical field [0001] The invention belongs to the technical field of computer transplantation, in particular to a method and device for testing the correctness of binary translation intermediate representations based on semantic equivalence verification. Background technique [0002] Binary translation realizes the seamless transplantation of computer cross-platform binary programs, and is widely used in the fields of system virtualization and simulator development, and is an important software transplantation technology. The principle of binary translation technology is mainly to decode the executable program of the source platform to obtain assembly instructions, then convert it into an intermediate representation, and finally generate and run the instructions of the target platform. For example, the intermediate representation adopted by the QEMU binary translation system is a simplified code generator TCG, and the intermediate representation adopted by the UQBT binary ...

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
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 岳峰庞建民单征谭捷王军梁光辉李明亮
Owner PLA STRATEGIC SUPPORT FORCE INFORMATION ENG UNIV PLA SSF IEU
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