-
Notifications
You must be signed in to change notification settings - Fork 63
Check System Definitions
This algorithm traverses the source model and checks system definitions.
-
A list tul of translation units.
-
An analysis data structure a representing the results of analysis so far.
Visit each translation unit in tul with input a, yielding either a or an error.
Each method accepts an analysis data structure a as input and yields either a or an error as output.
For each system definition d
-
If the system map is not empty, then raise an error (duplicate system definition).
-
Otherwise
-
Look up the interface instance definition t referred to by d in the use-def map.
-
Check that t is a topology definition.
-
Look up the dictionary D for t in the dictionary map.
-
Use d, t, and D to construct a system s.
-
Construct the symbol for d and map it to s in the system map of a.
-
Return a as the result.
-