-
Notifications
You must be signed in to change notification settings - Fork 34
Check State Machine Definitions
This algorithm traverses the source model and checks state machine 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 state machine 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.
Each method accepts an analysis data structure a as input and yields either an updated analysis data structure a' or an error as output.
For each translation unit tu, visit each state machine definition appearing in tu.
For each state machine definition d
-
Use the state machine analysis data structure sma resulting from step 1 to create a new state machine m.
-
Construct the unique state machine symbol s for d.
-
Map s to m in the state machine map of a.
-
Return a as the result.