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

A Global Optimization Method for Numerical Programs

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

Active Publication Date: 2020-03-17
NANJING UNIV
View PDF2 Cites 0 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
  • A Global Optimization Method for Numerical Programs
  • A Global Optimization Method for Numerical Programs
  • A Global Optimization Method for Numerical Programs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0042] The method extracts the global algebraic representation of the numerical program calculation process through symbolic execution technology, and continuously finds the algebraic representation with smaller numerical error, so as to optimize the numerical calculation. 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;

[0...

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 a global optimization technology for numerical programs. Generate more accurate and efficient optimization programs than the original 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, they can actually represent limited values. and discontinuous. Therefore, for most programs, floating-point numbers inevitably introduce numerical errors because they can only represent approximations of real numbers. In a source program, a large number of floating-point operations may be involved, and the errors of these floating-point operations will accumulate as the program progresses, eventually resulting in progr...

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): G06F8/41
CPCG06F8/42G06F8/443G06F8/447
Inventor 王协肖安祥汤恩义王林章马骏李宣东
Owner NANJING UNIV
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