Report R3: Defect Analysis

To understand the density and types of defects introduced and found while developing the initial programs, and to demonstrate the importance of collecting and reporting process data, analyze the defects in the first three programs and produce a report giving defects in new/changed LOC, defects/LOC, defects found in the compile/test phase, and a matrix relating defects found in phases to defects fixed in phases

Table 3-9. Defect Densities

Program NumberNew and Changed LOCNumber of DefectsDefects/KLOC
C++   
1A8212146
2A2331773
3A2631972
Eiffel   
1A70686
2A8217207
3A14919128

Table 3-10. Compile and Test defects

Program numberNew/Changed LOCDefects found in compileDefects found in testCompile defects per KLOCTest defects per KLOC
C++     
1A82758561
2A2331194739
3A2638123046
Eiffel     
1A70334343
2A8211513461
3A1491096760

Table 3-11. Defect Fix Times

C++   
 Defects found in compileDefects found in testTotal Defects found
Defects injected in design
Total Fix Time:0
Total defects:0
Average fix time:0
Total Fix Time:2.8
Total defects:1
Average fix time:2.8
Total Fix Time:2.8
Total defects:1
Average fix time:2.8
Defects injected in code
Total Fix Time:10.9
Total defects:24
Average fix time:0.45
Total Fix Time:123
Total defects:21
Average fix time:5.9
Total Fix Time:133.9
Total defects:45
Average fix time:3
Total defects injected
Total Fix Time:10.9
Total defects:24
Average fix time:0.45
Total Fix Time:125.8
Total defects:22
Average fix time:5.7
Total Fix Time:136.7
Total defects:46
Average fix time:3
Eiffel   
 Defects found in compileDefects found in testTotal Defects found
Defects injected in design
Total Fix Time:2.5
Total defects:2
Average fix time:1.25
Total Fix Time:4.7
Total defects:1
Average fix time:4.7
Total Fix Time:7.2
Total defects:3
Average fix time:2.4
Defects injected in code
Total Fix Time:21.4
Total defects:22
Average fix time:0.97
Total Fix Time:54.8
Total defects:16
Average fix time:3.4
Total Fix Time:76.2
Total defects:38
Average fix time:2
Total defects injected
Total Fix Time:23.9
Total defects:24
Average fix time:1
Total Fix Time:59.5
Total defects:17
Average fix time:3.5
Total Fix Time:83.4
Total defects:41
Average fix time:2