A Method for Generating Process-Oriented High-level Language Source Program Flowchart

A high-level language and source program technology, applied in the direction of program control devices, etc., can solve the problems of unsightly appearance, unable to display the flow chart structure in the center, single language variety, etc.

Active Publication Date: 2014-07-02
SHANGHAI INST OF ELECTROMECHANICAL ENG
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

There are several defects in the process diagram, one is that it can only analyze a certain high-level language, and the language variety analyzed is single, and the other

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 Method for Generating Process-Oriented High-level Language Source Program Flowchart
  • A Method for Generating Process-Oriented High-level Language Source Program Flowchart

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The present invention is based on the BNF paradigm, driven by the LR algorithm. The present invention consists of "LR algorithm", "creating flow chart nodes and

[0048] Here in conjunction with the example of the following section of C code, according to the steps in Fig. 1, the specific implementation method is described.

[0049] Voidexample (doublenum)

[0050] 2{

[0052] 4{

[0054] 6if (num!=0)

[0055] 7{printf("positive");}

[0056] 8else

[0057] 9{printf("zero");}

[0058] 10}

[0059] 11else

[0060] 12{printf("negative");}

[0061] 13}

[0062] Step 1 to step 5 is "LR algorithm part", which involves two concepts, BNF paradigm and LR algorithm.

[0063] The BNF paradigm is a language used to represent context-free grammars, consisting of terminal symbols and non-terminal symbols. most of

[0065] The specific steps are to input the C code in units of characters from step 1. Go to step 2 to judge whether to input

[0067]

[0069] Steps 6 to 18 are "creating flow...

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 present invention is aimed at high-level languages, based on the BNF paradigm, driven by the LR algorithm in the compiling principle or other bottom-up compiling algorithms, and generates corresponding flowcharts through grammatical analysis, flowchart splicing, and structural adjustment. The generated flow chart has a beautiful structure, a good description of various logical structures, and is suitable for many high-level languages.

Description

A method for generating a process-oriented high-level language source program flowchart Technical field The present invention relates to software reverse engineering, particularly relate to a kind of process-oriented high-level language source program flowchart generate method. Background technique Software reverse engineering can assist users to understand the system, and the conversion from source code to flow chart can be applied to software design Design, software testing, documentation writing and many other aspects. [0003] At present similar technology has a semantic flowchart based on assembly language program construction. But assembly language is a low-level language language, the grammatical structure is quite different from the high-level language, so this method cannot be applied to the more popular C, Basic, Delphi, etc. High-level language flow chart conversion. Flowcharts generated by high-level language source flowchart generation tools in the curre...

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): G06F9/44
Inventor 殷文雄周莹莹郑丹力丁洁
Owner SHANGHAI INST OF ELECTROMECHANICAL ENG
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