Question & Answer
Question
What is Pseudocode and how can I view it?
Answer
Pseudocode is a textual representation of the control graph of a function. Each line of the pseudo code will correspond to one node in the control graph.
For instance:
void skipline(int nb)
/******************************************/
/* function: skips lines */
/* */
/* Parameters: */
/* nb: IN number of lines to skip */
/******************************************/
{
int i = 0;
while (MIN(i,i) < nb)
{
printf("\n");
i++;
}
}
Will present the following pseudo code:
void { ==> Beginning of function node
while MIN(i,i) < nb { ==> Beginning of while node
2 statements ==> Body of while node
} ==> End of while node
} ==> End of function node
It is not possible to go back from pseudo code to C code, mainly because a set of sequential statements gives only one line (in the example "2 statements").
Following are the steps to access and view the pseudo code of a given function:
- Open a Logiscope Audit Project.
- Open the Viewer.
- Select Control graph: the control graph window is active.
- Select Windows->Split.
- Then use the cursor to split the control graph window in 2 parts.
On the left side appears the pseudo code of the function, on the right side remains the control graph.
Note that the "Windows -> Split" command always allows getting the textual description of the current result displayed. Hence the pseudo code is a textual representation of the Control graph.
6.1, 6.2, 6.3AnswerProduct versionPartner ContentInternal ContentCategoryReference ID
[{"Product":{"code":"SSYQHS","label":"Rational Logiscope"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General Information","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Historical Number
10016
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21323455