Method and device for judging whether flow diagram exists in circulation loop
A loop and flow chart technology, applied in the computer field, can solve the problems of slow running speed of judgment algorithm and complicated judgment method, and achieve the effect of simple judgment method and improved running speed.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] see figure 1, the embodiment of the present invention provides a method for judging whether there is a loop in the flowchart, including:
[0047] 101: Obtain the state value of each node in the flow chart according to the state of each node in the flow chart and the preset correspondence between the node state and the state value.
[0048] 102: Determine whether the adjacent egress node of the current node can be found.
[0049] 103: If the adjacent exit nodes of the current node can be found, use one of all the adjacent exit nodes of the searched current node as the first current adjacent exit node.
[0050] 104: Perform an OR operation on the original state value of the first current adjacent exit node and the searched state value to obtain an OR operation result value of the original state value and the searched state value of the first current adjacent exit node.
[0051] 105: Determine whether the OR operation result of the original state value of the first curre...
Embodiment 2
[0081] see Figure 2a and Figure 2b , the embodiment of the present invention provides a method for judging whether there is a loop in the flowchart, including:
[0082] 201: Obtain the state value of each node in the flow chart according to the state of each node in the flow chart and the preset correspondence between the node state and the state value.
[0083] In the embodiment of the present invention, it is assumed that the node status includes unexecuted, executed, skipped and searched. And the corresponding relationship between the preset node status and the status value is as follows: the corresponding status value of unexecuted is b000, the corresponding status value of executed is b111, the corresponding status value of skipping is b010, and the corresponding status value of searched is b110. And, for the convenience of description, the state value corresponding to unexecuted is called unexecuted state value, the state value corresponding to executed is called ex...
Embodiment 3
[0124] An embodiment of the present invention provides a device for judging whether there is a loop in the flowchart, see Figure 7 , the device consists of:
[0125] Annotation module 301, configured to annotate the state of each node in the flow chart as a corresponding state value according to the preset correspondence between the node state and the state value;
[0126] The first judging module 302 is used to judge whether the adjacent exit node of the current node can be searched after the marking module 301 marks the state of each node in the flowchart as a corresponding state value;
[0127] The first processing module 303 is configured to use one of all the adjacent exit nodes of the searched current node as the first current Adjacent exit nodes;
[0128] The first computing module 304 is used for, after the first processing module 303 uses one of the adjacent exit nodes of the searched current node as the first current adjacent exit node, the first current adjacent ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com