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)
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
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.

More Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R2012b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!