lundi 29 mai 2017

Cyclomatic Complexity - Cobol

I have to calculate Cyclomatic Complexity for a Cobol program that contains only an EVALUATE like this one:

EVALUATE x
   WHEN x<0 ...
   WHEN x=0 ...
   WHEN x between 1 and 10 ...
   WHEN OTHER ...`
END EVALUATE.`

I have also to calculate Cyclomatic Complexity for a Cobol program that contains only an IF statement like this one:`

IF x<0 ...
ELSE IF x=0 ...
ELSE ...

What is the algorithm to calculate CC? Thanks for your time.

Aucun commentaire:

Enregistrer un commentaire