Example: structure of nested programs
The following example shows a nested structure with some
contained programs that are identified as COMMON.
The following table describes the calling hierarchy for the
structure that is shown in the example above. Programs A12, A2, and
A3 are identified as COMMON, and the calls associated with them differ.
| This program | Can call these programs | And can be called by these programs |
|---|---|---|
| A | A1, A2, A3 | None |
| A1 | A11, A12, A2, A3 | A |
| A11 | A111, A12, A2, A3 | A1 |
| A111 | A12, A2, A3 | A11 |
| A12 | A2, A3 | A1, A11, A111 |
| A2 | A3 | A, A1, A11, A111, A12, A3 |
| A3 | A2 | A, A1, A11, A111, A12, A2 |
In this example, note that:
- A2 cannot call A1 because A1 is not common and is not contained in A2.
- A1 can call A2 because A2 is common.