jeudi 21 avril 2016

Control flow graph & cyclometric complexity for given function

I have to find the control flow graph and cyclometric complexity for this code and then suggest some white box test cases and black box test cases. But I am having trouble making a CFG for the code.

Would appreciate some help on test cases as well.

Thanks a bunch in advance!

funct(int i,int j)
{
if(i>10&&i<20&&j>0)
{
print("cccc");
}
else
{
if(i>30||i<60)
{
print("zzz");
}
if(j<0)
{
print("kkkk");
}
}
}

Aucun commentaire:

Enregistrer un commentaire