Local termination code with the reusable statechart implementation

The following sections describe how code is generated to support local termination when you use the reusable statechart implementation.

Code is generated for local termination of Or states with the reusable statechart implementation as follows:

Code is generated for local termination of And states with the reusable statechart implementation as follows:

The following example shows the code generated for a join transition with a real guard and local termination guards, where C1 and C2 are Or states with final activities and C3 is a leaf state:

if(RealGuard() && IS_COMPLETED(C1) && IS_COMPLETED(C2) && IS_IN(C3))

Feedback