-
Notifications
You must be signed in to change notification settings - Fork 31
Check Signal Uses
Rob Bocchino edited this page Sep 4, 2024
·
2 revisions
This algorithm traverses a state machine definition and checks that, within each state definition, each transition uses a unique signal.
-
A state machine definition smd.
-
A state machine analysis data structure sma representing the results of analysis so far.
Visit each state definition d that is a transitive member of smd and do the following:
-
Initialize a set S of signal symbols to an empty map.
-
Visit each state transition specifier sts that is a member of d and do the following:
-
Use the use-def map of sma to look up the symbol s referred to in the
on
clause of sts. -
If S contains a mapping from s to sts', then use sts' to report the error.
-
Otherwise map s to sts in S.
-