I want to know the cyclic complexity of two sections of code,
IF((A>B) AND (C>D))
{ a=a+b;c=c+d;}
As far as I know, cyclomatic complexity above code = 2 + 1 = 3,
Other code
IF((A>B) OR (C>D))
{a=a+b;c=c+d;}
The complexity of the above code is = 4 + 1 = 5,
Are the indicated difficulties correct or not?
Imran source
share