Number of Faults per Line of Code
- 1 July 1982
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. SE-8 (4) , 437-439
- https://doi.org/10.1109/tse.1982.235579
Abstract
In this note, the number of faults or "bugs" per line of code is estimated based upon Halstead's software science relationships. This number is shown to be an increasing function of the number of lines of code in a program, a result in agreement with intuition and some current theories of complexity. The form of this function is investigated and an easy-to-use approximation is developed. An application to a moderately large software project is shown in which the predicted number of faults for program modules of various sizes agrees fairly well with the actual numbers of faults discovered.Keywords
This publication has 4 references indexed in Scilit:
- Quantitative Estimates of Debugging RequirementsIEEE Transactions on Software Engineering, 1979
- An analysis of errors and their causes in system programsPublished by Association for Computing Machinery (ACM) ,1975
- Types, distribution, and test and correction times for programming errorsPublished by Association for Computing Machinery (ACM) ,1975
- A THEORY OF SYSTEM COMPLEXITYInternational Journal of General Systems, 1974