Main Content

Check usage of unconditional transitions in flow charts

Check ID: mathworks.jmaab.jc_0773

Guideline: jc_0773: Unconditional transition of a flow chart


Identifies unconditional transitions in flow charts.

This check requires Simulink® Check™ and Stateflow® licenses.

Check Parameterization

This check contains sub-checks that correspond to the sub IDs specified in the MAB and JMAAB modeling guidelines. You can use the Model Advisor Configuration Editor to specify which sub IDs (one or multiple) to execute.

For reference, the MAB guideline sub ID(s) that are recommended for use by the NA-MAAB and JMAAB modeling standards organizations are:

  • NA-MAAB — a, b

  • JMAAB — a, b

Results and Recommended Actions

Guideline Sub IDConditionRecommended Action
jc_0773_a: Check for the presence of unconditional transition originating from a Stateflow junction with conditional transition.One or more Stateflow junctions do not have unconditional transitions originating from them.Consider adding an unconditional transition to the junction.
jc_0773_b: Check execution order of unconditional transitions.One or more Stateflow junctions have unconditional transitions that are not executed last.Consider setting the order of execution of the unconditional transition from the junction to the highest value.

Capabilities and Limitations

  • Runs on library models.

  • Supports exclusions of blocks or charts.

  • Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to on.

  • Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to graphical.

  • The check fails in Stateflow truth table with C as the action language but passes when the action language is set to MATLAB®. For more information on differences between MATLAB and C as action language, see Differences Between MATLAB and C as Action Language Syntax (Stateflow).