language agnostic - Upper limit of bugs in a given program -


Is there a limit on the number of bugs present in a given program? If the number of instructions is known, can someone say that the program can not be more than 'N'? For example, how many bugs might be in the following functions?

  Double Calci Interest (Double Amount) {Return- O.07 / zodiac; } A parser will count four words in the  

function, and I can count these errors:

  • Wrong number syntax
  • Inaccurate
  • Potentially divided by zero

Obviously not a number of bugs (business requirements error)

  • Incorrect calculations (should be multiplied)
  • Infinite gave a limited number of instructions, alternatively someone can say that the function accepts 2 ^ 64 inputs, and they How many tend to produce correct output. However, is there any way to formally prove the upper limit?

    If the bug was not found by the "a requirement" " program, the bug There is no limit on the number of (per line or other) number, because there is no limit on the number of requirements.

      Print "Hello World"  

    There can be one million bugs in it, it is not making a pink elephant. I leave it to 999999 to meet other requirements which are not satisfied with this program. Land.


    Comments

    Popular posts from this blog

    c++ - Linux and clipboard -

    What is expire header and how to achive them in ASP.NET and PHP? -

    sql server - How can I determine which of my SQL 2005 statistics are unused? -