×

System for determining the code coverage of a tested program based upon static and dynamic analysis recordings

  • US 4,853,851 A
  • Filed: 12/16/1986
  • Issued: 08/01/1989
  • Est. Priority Date: 12/30/1985
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method of measuring the ratio between the number of functions executed in a computer program during testing of said computer program with a test program, and the total number of functions in said program to be tested, comprising:

  • executing said test program in said computer where said number of functions are executed;

    determining from each instruction address of said computer program which is called for during execution of said test program a dynamic instruction flow indicator pattern, based on the address of a current and previous executed instruction, said pattern identifying;

    (a) no branch instruction, NBR;

    (b) branch instruction, BR;

    (c) sequential instruction, SE;

    (d) non-sequential instruction, NSE;

    logging said dynamic instruction flow indicator patterns as they are developed in a logging device, each pattern representing an address of an instruction which produced said pattern;

    determining a static instruction flow indicator pattern for each called instruction during testing from an operational code of said called instruction, said static instruction flow indicator pattern indicating whether said instruction is;

    (a) no branch instruction, NBR;

    (b) branch instruction, BR;

    (c) instruction reached by an internal entry (ILBL);

    (d) instruction reached by an external entry (ELBL); and

    comparing said static instruction flow indicator pattern with said dynamic instruction flow indicator pattern to determine a portion of all instructions of said computer program which have been tested.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×