# US 2004/0073892 A1 · Event-driven observability enhanced coverage analysis

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2004/0073892 A1
- Document ID: US20040073892A1
- Status: Published application
- Kind: A1
- Application number: 10/270,835
- Filed: 2002-10-14
- Published: 2004-04-15
- Earliest claimed: 2002-10-14
- Assignees: Fujitsu Limited
- Inventors: Farzan Fallah; Indradeep Ghosh
- Web page: https://patentgrep.com/patent/US20040073892A1

## CPC

- G06F 11/3676: {for coverage analysis}
- Y10S 707/99943: Generating database or data structure, e.g. via user interface
- Y10S 707/99945: Object-oriented database structure processing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y10S: TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS

## Abstract

A method for event-driven observability enhanced coverage analysis of a program parses a program into variables and data dependencies, wherein the data dependencies comprise assignments and operations. The method builds a data structure having multiple records, with each record having at least one data dependency, a parent node, and a child node. Each node is linked to a variable. The method computes the value of each variable using the data structure. The method performs tag propagation based, at least in part, on the data dependencies and computed values.

## Claims

### Claim 1

A method for event-driven observability enhanced coverage analysis of a program, comprising:
parsing a program into variables and data dependencies, wherein the data dependencies comprise assignments and operations;
loading a data structure based on the parsed program, wherein the data structure comprises a plurality of records and wherein each record comprises at least one of the data dependencies, a parent node, and a child node, wherein each node is linked to one of the variables;
computing the value of each variable using the data structure; and
performing tag propagation based, at least in part, on the data dependencies and computed values.

### Claim 2 (depends on 1)

The method of claim 1, wherein the data structure comprises a control/data flowgraph data structure and each record further comprises a line number and an edge type.

### Claim 3 (depends on 2)

The method of claim 2, wherein the data dependencies further comprise pointers, recursive functions, expressions, and type casting.

### Claim 4 (depends on 3)

The method of claim 3, wherein performing tag propagation comprises:
selecting a first variable from the parsed program;
linking a tag to the selected first variable;
selecting a first set of records, wherein the child node of each record is linked to the first variable;
adding the variable linked to the parent node of each selected record to a variable list;
topologically sorting the variable list based, at least in part, on the line number;
selecting a second variable from the variable list; and
performing tag simulation on the second variable.

### Claim 5 (depends on 4)

The method of claim 4, wherein the selected second variable is the highest in the topologically sorted variable list.

### Claim 6 (depends on 4)

The method of claim 4, wherein the tag comprises a line number and a magnitude.

### Claim 7 (depends on 6)

The method of claim 6, wherein the tag is selected from a group consisting of the following:
a positive tag;
a negative tag; and
a sign ambiguous tag.

### Claim 8 (depends on 7)

The method of claim 7, wherein the tag linked to the first variable comprises a first tag and wherein performing tag simulation on the second variable comprises:
selecting a first record from the first set of records, wherein the child node is linked to the first variable and the parent node is linked to the second variable;
determining the existence of a second tag linked to the second variable based, at least in part, on the computed values of the first and second variables, the first tag, and the data dependency from the selected record; and
in response to the second tag linked the second variable:
selecting a second set of records wherein the child node is linked to the second variable; and
adding the variable linked to the parent node of each selected record in the second set of records to the variable list.

### Claim 9 (depends on 8)

The method of claim 8, wherein the data dependency from the selected first record is a floating point operation and determining the existence of the second tag on the second variable comprises:
determining the magnitude of the first variable; and
linking the second tag to the second variable in response to the magnitude of the second variable and the magnitude of the first variable being equal.

### Claim 10 (depends on 8)

The method of claim 8, wherein the data dependency from the selected first record is a pointer and determining the existence of the second tag linked to the second variable comprises linking the second tag to the second variable in response to the second variable residing in the memory location pointed to by the first variable.

### Claim 11 (depends on 1)

The method of claim 1, wherein computing the value of each variable using the data structure comprises using simulation to compute the value of each variable.

### Claim 12

Logic for event-driven observability enhanced coverage analysis of a program, the logic encoded in media and operable when executed to:
parse a program into variables and data dependencies, wherein the data dependencies comprise assignments and operations;
build a data structure, wherein the data structure comprises a plurality of records and wherein each record comprises at least one of the data dependencies, a parent node, and a child node, wherein each node is linked to one of the variables;
compute the value of each variable using the data structure; and
perform tag propagation based, at least in part, on the data dependencies and computed values.

### Claim 13 (depends on 12)

The logic of claim 12, wherein the data structure comprises a control/data flowgraph data structure and each record further comprises a line number and an edge type.

### Claim 14 (depends on 13)

The logic of claim 13, wherein the data dependencies further comprise pointers, recursive functions, expressions, and type casting.

### Claim 15 (depends on 13)

The logic of claim 13, wherein the logic operable when executed to perform tag propagation comprises the logic operable when executed to:
select a first variable from the parsed program;
link a tag to the selected first variable;
select a first set of records, wherein the child node of each record is linked to the first variable;
add the variable linked to the parent node of each selected record to a variable list;
topologically sort the variable list based, at least in part, on the line number;
select a second variable from the variable list; and
perform tag simulation on the second variable.

### Claim 16 (depends on 15)

The logic of claim 15, wherein the selected second variable is the highest in the topologically sorted variable list.

### Claim 17 (depends on 15)

The logic of claim 15, wherein the tag comprises a line number.

### Claim 18 (depends on 17)

The logic of claim 17, wherein the tag is selected from a group consisting of the following:
a positive tag;
a negative tag; and
a sign ambiguous tag.

### Claim 19 (depends on 18)

The logic of claim 18, wherein the tag linked to the first variable comprises a first tag and wherein the logic operable when executed to perform tag simulation on the second variable comprises the logic operable when executed to:
select a first record from the first set of records, wherein the child node is linked to the first variable and the parent node is linked to the second variable;
determine the existence of a second tag linked to the second variable based, at least in part, on the computed values of the first and second variables, the first tag, and the data dependency from the selected record; and
in response to the second tag linked the second variable:
select a second set of records wherein the child node is linked to the second variable; and
add the variable linked to the parent node of each selected record in the second set of records to the variable list.

### Claim 20 (depends on 19)

The logic of claim 19, wherein the data dependency from the selected first record is a floating point operation and the logic operable when executed to determine the existence of the second tag on the second variable comprises the logic operable when executed to:
determine the magnitude of the first variable; and
link the second tag to the second variable in response to the magnitude of the second variable and the magnitude of the first variable being equal.

### Claim 21 (depends on 19)

The logic of claim 19, wherein the data dependency from the selected first record is a pointer and the logic operable when executed to determine the existence of the second tag linked to the second variable comprises the logic operable when executed to link the second tag to the second variable in response to the second variable residing in the memory location pointed to by the first variable.

### Claim 22 (depends on 12)

The logic of claim 12, wherein the logic operable when executed to compute the value of each variable using the data structure comprises the logic operable when executed to use simulation to compute the value of each variable.
