Patent ID: 7530057

Claim:
A method for determining code coverage of a computer program, comprising: providing a plurality of code sections in the program; applying a plurality of test runs to the program including the plurality of code sections; wherein in a first test run of the plurality of test runs, instrumenting all code sections of the plurality of code sections by inserting a first test instruction in each of the code sections; in the first test run, after executing any particular one of the instrumented code sections, replacing the first test instruction in the particular instrumented code section with a second test instruction, wherein the second test instruction comprises an instruction selected from a group consisting of a no operation instruction and a no operation equivalent instruction, and wherein the first test instruction comprises an instruction to replace the first test instruction with the instruction selected from the group consisting of a no operation instruction and a no operation equivalent instruction; in a current test run after the first test run, instrumenting only those code sections that were not executed in any one of the test runs prior to the current test run; a code section being executed in any of one of the test runs of the plurality of test runs is considered covered by the plurality of test runs.