A programs structure is simply represented in a control flow graph
The notation changes made in creation of control flow graphs are:
The process boxes are not really needed. There is an implied process on every line joining junctions and decisions
We don't need to know the specifics of the decisions, just the fact that a branch is needed
The specific target label names are not important, just the fact that their existence is importance. So we can replace them by simple numbers
Example:
Following is a program written in a FORTRAN like programming language called Programming Design Language (PDL)
The program corresponding flowchart and flow graph were also provided
The notation changes made in creation of control flow graphs are:
The process boxes are not really needed. There is an implied process on every line joining junctions and decisions
We don't need to know the specifics of the decisions, just the fact that a branch is needed
The specific target label names are not important, just the fact that their existence is importance. So we can replace them by simple numbers
Example:
Following is a program written in a FORTRAN like programming language called Programming Design Language (PDL)
The program corresponding flowchart and flow graph were also provided
0 comments:
Post a Comment