IP Library › Granted Patent US 10,176,083
Granted Patent B2
US 10,176,083 · App. 15/876,450 · Granted Jan 8, 2019

Code coverage through overlay hooks

Inventors: Michael S. Fulton (Squamish, CA); Kevin A. Stoodley (Richmond Hill, CA)
Assignee: International Business Machines Corporation
G06F11/3676G06F11/302G06F11/36G06F11/362G06F11/3624G06F11/3644G06F11/3688
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,176,083
App. No.
15/876,450
Granted
Jan 8, 2019
Kind
B2
Abstract

In an approach for utilizing overlay hooks to increase code coverage, a processor inserts an overlay hook in program code at a location within the program code corresponding to a condition statement. A processor executes the program code. Upon reaching the overlay hook, a processor branches to a set of instructions operative to document an outcome of the condition statement. A processor executes the condition statement. A processor records the outcome of the condition statement.

Claims (14)

1. A computer program product for utilizing overlay hooks to increase code coverage, the computer program product comprising:

one or more computer readable storage media and program instructions stored on the one or more computer readable storage media, the program instructions comprising:

program instructions to compile a program code with branches broken apart to test only one possible condition state at each condition statement;

program instructions to analyze debug information to identify a location within the program code corresponding to a condition statement;

program instructions to exchange the condition statement for an overlay hook at the location within the program code;

program instructions to execute the program code;

upon reaching the overlay hook, program instructions to branch to a set of instructions operative to document an outcome state of the condition statement, wherein the outcome state of the condition statement is selected from the group consisting of true, false, less than, equal to, and greater than;

program instructions to execute the condition statement;

program instructions to record the outcome state of the condition statement and the location of the condition statement within the program code in a table;

program instructions to access the table;

program instructions to determine whether each possible outcome state of the condition statement has been recorded in the table;

responsive to determining that each possible outcome state of the condition statement has not been recorded in the table, program instructions to continue to execute the program code;

responsive to determining that each possible outcome state of the condition statement has been recorded in the table, program instructions to remove the overlay hook; and

program instructions to generate a report, wherein the report includes the recorded outcome state of the condition statement and the location within the program code corresponding to the condition statement.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 22, 2018
From: FULTON, MICHAEL S.; STOODLEY, KEVIN A.
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 044687/0127 →
Continuity (3)
Continuation 15671392 · Aug 8, 2017
Continuation 15268670 · Sep 19, 2016
Related Publication 20180121334A1 · May 3, 2018