V(G)=5 Path # 1 2 3 4 5 Path 1-2-11-12-16 1-2-11-12-13-12-16 1-2-4-5-8-9-16 1-2-4-5-6-8-9-16 1-2-4-5-8-4-5-8-9-16 Legend: T = true, F = false, X = irrelevant C1 F F T T T C2 3 X X F T F C3 X X LL F LL F T/F C4 F T/F X X X
Construct the basis set, that is, a set of required number of independent paths through the source code fragment. Construct a path predicate for each independent path. Problem 2: 1 void Q2() { 2 if(C1&&C2) { 3 S1; 4 }else{ 5 if(C3){ 6 S2; 7 }else{ 8 53; 9} 10 while (C4) { 11 54;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!