a. control flow graph
b.
c.n=2
d.
node coverage:
TR={1,2,3,4,5,6,7,8,9,10,11,12,13}
edge coverage:
TR={(1,2),(2,3),(3,4),(4,5),(5,6),(6,4),(5,7),(7,8),(4,8),
(8,9),(9,2),(8.2),(2,10),(10,11),(11,12),(12,11),(11,13)}
prime coverage:
TR={
(4,5,6,4)
(6,4,5,6)
(5,6,4,5)
(5,6,4,,8,,2,3)
(5,6,4,8,2,10,11,12,11)
(5,6,4,8,2,10,11,13)
(3,4,5,7,8,9,2,3)
(3,4,5,7,8,2,3)
(3,4,8,9,2,3)
(3,4,8,2,3)
(3,4,5,7,8,9,2,10,11,12)
(3,4,5,7,8,9,2,10,11,13)
(3,4,5,7,8,2,10,11,12)
(3,4,5,7,8,2,10,11,13)
(3,4,8,2,10,11,13)
(3,4,8,2,10,11,12)
(4,5,7,8,9,2,3,4)
(4,5,7,8,2,3,4)
(4,8,9,2,3,4)
(4,8,2,3,4)
(1,2,3,4,8)
(1,2,3,4,5,6)
(1,2,3,4,5,7,8,9)
(1,2,10,11,12)
(1,2,10,11,13)
(11,12,11)
(12,11,12)
(12,11,13)
}
e. test path:
[1,2,3,4,5,6,4,5,7,8,9,2,10,11,12,13]
f. test path:
[1,2,3,4,5,6,4,5,7,8,9,2,10,11,12]
[1,2,3,4,8,2,10,11,12,11,13]