MATLAB: Is the cyclomatic complexity metric generated for S-functions when using Simulink Verification and Validation 2.3 (R2008a)

Simulink Check

I would like to know if the cyclomatic complexity metric is applied to legacy C code, for instance, in an S-function. There is an option to "Include cyclomatic complexity numbers in block details".

Best Answer

Cyclomatic complexity is calculated per subsystem and it works with
Simulink, Stateflow and Embedded MATLAB only. It will not be reported for the legacy code in S-Functions.
Related Question