Why is the cyclomatic complexity measure for an If Action Subsystem block 0 in Simulink Verification and Validation 3.4 (R2012b)?
1 view (last 30 days)
Show older comments
The cyclomatic complexity returned for an Atomic susbsytem is 1. However, the same measure is 0 for an If Action Subsystem block, which is also an atomic subsystem.
Accepted Answer
MathWorks Support Team
on 25 Mar 2013
For a subsystem, the complexity measure returns an extra 1 when the 'treat as atomic unit' option is checked. This is because it is considered as a function call and it represents an implicit decision. There is an inconsistency in the way that complexity measure returned for an If Action Subsystem block is 0 as it is an atomic subsystem. There are no workarounds.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!