Skip to content

CyclomaticComplexity calculation incorrect when faced with CFG with multiple exit points #74

Description

@fstarnaud

For example, the CC of this CFG currently calculates to 1 (e =10, n = 11, components = 1) in features/graph.py: (e - n + 2 * components)
However, if this CFG was normalized to have a single exit point, its value would be 6, which is the value we would expect.

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions