Cyclomatic Complexity

Generating cyclomatic complexity metrics with Polyspace

Cyclomatic complexity metrics are an important aspect of determining the quality of software. They provide insight into the overall code complexity of functions or software components by quantifying the number of linearly independent paths or decision logic. Cyclomatic complexity metrics are an important indicator of your source code’s readability, maintainability, and portability.

Static code analysis tools are typically used to calculate cyclomatic complexity and other code complexity metrics.

For more information, see Polyspace® products, which support these cyclomatic complexity calculation tasks: