I would like to calculate the cyclomatic complexity of the code given below. However, I have problem while drawing its CGF (control flow graph). How to draw the code's CGF?
1: int a=10;
2: for (int i = 0; i < 10; i ++)
3: {
4: a++;
5: }
6: print a;
I would like to calculate the cyclomatic complexity of the code given below. However, I have problem while drawing its CGF (control flow graph). How to draw the code's CGF?
1: int a=10;
2: for (int i = 0; i < 10; i ++)
3: {
4: a++;
5: }
6: print a;