-
Notifications
You must be signed in to change notification settings - Fork 32
Check Component Instance Definitions
This algorithm traverses the source model and checks component instance definitions.
-
A list tul of translation units.
-
An analysis data structure a representing the results of analysis so far.
An updated analysis a' with the component instance map filled in if the check passes; otherwise an error.
-
Visit each translation unit in tul with input a, yielding either a or an error.
-
Check that there are no overlapping identifier ranges for any pairs of instances in the component instance map for a.
Each method accepts an analysis data structure a as input and yields either a or an error as output.
For each component instance definition d
-
Construct a component instance i from d.
-
Check that i conforms to the rules for component instances.
-
Visit each init specifier s for d.
-
Check that the phase of s is not already represented in i.
-
Map the phase of s to s in i.
-
-
Map i to d in the component instance map of a.
-
Return a as the result.