Global optimization method of numerical program

A global optimization and program technology, applied in the direction of program code conversion, software engineering design, electrical digital data processing, etc., can solve problems such as error-prone, cumbersome, unfavorable code correct development, etc., and achieve the effect of improving operating efficiency and ensuring correctness

Active Publication Date: 2018-06-29
NANJING UNIV
View PDF2 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Because many such detailed operations are related to the hardware platform, they are not only very cumbersome, but also extremely error-prone, resulting in the main logic of the numerical program being covered up by these detailed operations, which reduces the readability of the source code, which is not conducive to the correct development of the code. It is also not conducive to subsequent code maintenance

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
  • Global optimization method of numerical program
  • Global optimization method of numerical program
  • Global optimization method of numerical program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The numerical optimization method proposed by the present invention considers numerical calculation from a global perspective, and converts an algebraic representation with large numerical calculation errors into an algebraic representation with small numerical calculation errors by means of mathematical algebraic transformation, thereby realizing error optimization of numerical calculations.

[0042] This method uses symbolic execution technology to extract the global algebraic representation of the calculation process of numerical programs, and constantly searches for algebraic representations with smaller numerical errors, so that numerical calculations can be optimized. The specific steps are as follows:

[0043] 1-1), use symbolic execution technology to dynamically execute the original numerical program, record the structural information of the numerical program, the path constraints of each execution path, and the algebraic representation of the calculation process...

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 provides a global optimization method of a numerical program. The global optimization method of the numerical program includes the steps that a symbol execution technology is adopted toextract algebraic representations for expressing path constraint conditions and numerical calculation processes from a source program; all the algebraic representations are analyzed, and by using different algebraic transformation rules, the algebraic representations are converted to be in algebraic forms with lower numerical calculation errors; finally, all the algebraic representations are converted into corresponding code fragments, and the code fragments are combined to generate a target program. The global optimization method of the numerical program has the advantages that all the processes are automation processes, and no human intervention is needed; a program writer can better concentrate on service logic and does not need to care about detail operation related to numerical analysis. In this way, not only is the development efficiency improved, but also code logic is visual and easy to understand and maintain.

Description

technical field [0001] The invention belongs to the application field of computer numerical calculation and program analysis, and relates to the global optimization technology of numerical programs. It mainly obtains the corresponding algebraic representation by collecting the global calculation process of the numerical program, and converts it into a calculation process with smaller numerical error accumulation, so that Generate optimized programs that are more accurate and efficient than raw numerical programs. Background technique [0002] According to the IEEE745 standard, single-precision floating-point numbers occupy 32 bits, and double-precision floating-point numbers occupy 64 bits. Although many software developers regard them as real values ​​​​when developing programs, in fact, the values ​​​​that they can represent are limited. And discontinuous. Therefore, for most programs, floating-point numbers will inevitably introduce numerical errors because they can only...

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): G06F8/41
CPCG06F8/42G06F8/443G06F8/447
Inventor 王协肖安祥汤恩义王林章马骏李宣东
Owner NANJING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products