# US 11,119,907 B1 · Techniques for tracking and testing code modifications using semantic catalogue

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

- Number: US 11,119,907 B1
- Document ID: US11119907B1
- Status: Granted
- Kind: B1
- Application number: 16/997,680
- Filed: 2020-08-19
- Granted: 2021-09-14
- Earliest claimed: 2020-08-19
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Karthikeyan Gopal
- Web page: https://patentgrep.com/patent/US11119907B1

## CPC

- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 8/70: Software maintenance or management
- G06F 8/75: Structural analysis for program understanding
- G06F 11/362: Debugging of software
- G06F 11/3692: {for test results analysis}
- G06F 11/3624: {by performing operations on the source code, e.g. via a compiler}
- G06F 11/368: {for test version control, e.g. updating test cases to a new software version}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are described for building a semantic catalogue including a set of semantic objects. A semantic object may be used to map a granularity (e.g., a level of abstraction) and a semantic characteristic (e.g., a meaning or interpretation) to one or more code segments (e.g., a range of lines of code) of executable source code. An application development system may track modifications to the executable source code in terms of semantics using the semantic catalogue. Additionally, the application development system may execute test suites designed based on the semantic catalogue to detect semantic-related errors, semantic relationships between multiple semantic objects, or inconsistencies with semantic objects.

## Claims

### Claim 1

A computer-implemented method comprising:
accessing executable source code of an application, the executable source code including one or more code segments, each code segment of the one or more code segments being defined at a location within the executable source code;
identifying a code segment of the one or more code segments included in the executable source code;
defining a semantic object mapped to the location of the code segment, the definition of the semantic object including attributing a granularity and a semantic characteristic to the semantic object,
the semantic characteristic being attributed from amongst a plurality of semantic characteristics, and the granularity representing a level of abstraction of the semantic object;
building a semantic catalogue using the defined semantic object, the semantic catalogue including a set of semantic objects associated with the application;
detecting a modification made to at least a portion of the code segment of the executable source code;
identifying the semantic object associated with the modified code segment, from amongst the set of semantic objects included in the semantic catalogue;
tracking the modification made to the code segment by storing the modification in a repository corresponding to the semantic object;
accessing a test suite including a plurality of test cases; and
executing each test case of the plurality of test cases included in the test suite.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, the plurality of test cases include a first test case mapped to a first semantic object and a second test case mapped to a second semantic object, and each of the first semantic object and the second semantic object being included in the semantic catalogue,
wherein the method further comprises:
detecting that, upon executing the first test case, an outcome of the second test case indicates a failure; and
in response to the detection, defining a semantic relationship between the first semantic object and the second semantic object.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, further comprising:
defining a semantic relationship map including the defined semantic relationship between the first semantic object and the second semantic object and another semantic relationship exposed by executing the test suite.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising:
detecting a bug within the executable source code, wherein the bug is detected when:
executing the code segment results in an inconsistency associated with the semantic characteristic assigned to the code segment; or
an input parameter passed into the code segment is inconsistent with the set of semantic objects included in the semantic catalogue.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the plurality of semantic characteristics includes any combination from a group comprising of: a spatial semantic, a temporal semantic, a data semantic, a design element semantic, or a security semantic, wherein the spatial semantic represents logic of a function defined at a particular location within the executable source code, wherein the temporal semantic associates a first semantic object with a second semantic object when an output of the first semantic object affects an input of the second semantic object, wherein the design element semantic represents a design feature of a portion of the executable source code, wherein the data semantic represents a semantic of an input parameter to a given code segment attributed as the spatial semantic, and wherein the security semantic represents logic of a security function.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
defining a hierarchy associated with a subset of semantic objects of the set of semantic objects included in the semantic catalogue, wherein the subset of semantic objects includes a parent semantic object and one or more child semantic objects, and wherein each child semantic object of the one or more child semantic objects further defines a feature of the parent semantic object.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the defined semantic object is also mapped to another location of another code segment included in another executable source code, and
wherein the other code segment shares a feature with the code segment defined within the executable source code.

### Claim 8

A system, comprising:
one or more processors; and
a non-transitory computer-readable storage medium containing instructions which, when executed on the one or more processors, cause the one or more processors to perform operations including:
accessing executable source code of an application, the executable source code including one or more code segments, each code segment of the one or more code segments being defined at a location within the executable source code;
identifying a code segment of the one or more code segments included in the executable source code;
defining a semantic object mapped to the location of the code segment, the definition of the semantic object including attributing a granularity and a semantic characteristic to the semantic object,
the semantic characteristic being attributed from amongst a plurality of semantic characteristics, and the granularity representing a level of abstraction of the semantic object;
building a semantic catalogue using the defined semantic object, the semantic catalogue including a set of semantic objects associated with the application;
detecting a modification made to at least a portion of the code segment of the executable source code;
identifying the semantic object associated with the modified code segment, from amongst the set of semantic objects included in the semantic catalogue;
tracking the modification made to the code segment by storing the modification in a repository corresponding to the semantic object;
accessing a test suite including a plurality of test cases; and
executing each test case of the plurality of test cases included in the test suite.

### Claim 9 (depends on 8)

The system of claim 8, wherein
the plurality of test cases including a first test case mapped to a first semantic object and a second test case mapped to a second semantic object, and each of the first semantic object and the second semantic object being included in the semantic catalogue,
wherein the operations further comprise:
detecting that, upon executing the first test case, an outcome of the second test case indicates a failure; and
in response to the detection, defining a semantic relationship between the first semantic object and the second semantic object.

### Claim 10 (depends on 9)

The system of claim 9, wherein the operations further comprise:
defining a semantic relationship map including the defined semantic relationship between the first semantic object and the second semantic object and another semantic relationship exposed by executing the test suite.

### Claim 11 (depends on 8)

The system of claim 8, wherein the operations further comprise:
detecting a bug within the executable source code, wherein the bug is detected when:
executing the code segment results in an inconsistency associated with the semantic characteristic assigned to the code segment; or
an input parameter passed into the code segment is inconsistent with the set of semantic objects included in the semantic catalogue.

### Claim 12 (depends on 8)

The system of claim 8, wherein the plurality of semantic characteristics includes any combination from a group comprising of: a spatial semantic, a temporal semantic, a data semantic, a design element semantic, or a security semantic, wherein the spatial semantic represents logic of a function defined at a particular location within the executable source code, wherein the temporal semantic associates a first semantic object with a second semantic object when an output of the first semantic object affects an input of the second semantic object, wherein the design element semantic represents a design feature of a portion of the executable source code, wherein the data semantic represents a semantic of an input parameter to a given code segment attributed as the spatial semantic, and wherein the security semantic represents logic of a security function.

### Claim 13 (depends on 8)

The system of claim 8, wherein the operations further comprise:
defining a hierarchy associated with a subset of semantic objects of the set of semantic objects included in the semantic catalogue, wherein the subset of semantic objects includes a parent semantic object and one or more child semantic objects, and wherein each child semantic object of the one or more child semantic objects further defines a feature of the parent semantic object.

### Claim 14 (depends on 8)

The system of claim 8, wherein the defined semantic object is also mapped to another location of another code segment included in another executable source code, wherein the other code segment shares a feature with the code segment defined within the executable source code.

### Claim 15

A computer-program product tangibly embodied in a non-transitory machine-readable storage medium, including instructions configured to cause a processing apparatus to perform operations including:
accessing executable source code of an application, the executable source code including one or more code segments, each code segment of the one or more code segments being defined at a location within the executable source code;
identifying a code segment of the one or more code segments included in the executable source code;
defining a semantic object mapped to the location of the code segment, the definition of the semantic object including attributing a granularity and a semantic characteristic to the semantic object,
the semantic characteristic being attributed from amongst a plurality of semantic characteristics, and the granularity representing a level of abstraction of the semantic object;
building a semantic catalogue using the defined semantic object, the semantic catalogue including a set of semantic objects associated with the application;
detecting a modification made to at least a portion of the code segment of the executable source code;
identifying the semantic object associated with the modified code segment, from amongst the set of semantic objects included in the semantic catalogue;
tracking the modification made to the code segment by storing the modification in a repository corresponding to the semantic object;
accessing a test suite including a plurality of test cases; and
executing each test case of the plurality of test cases included in the test suite.

### Claim 16 (depends on 15)

The computer-program product tangibly embodied in a non-transitory machine-readable storage medium of claim 15, wherein
the plurality of test cases including a first test case mapped to a first semantic object and a second test case mapped to a second semantic object, and each of the first semantic object and the second semantic object being included in the semantic catalogue;
wherein the operations further comprise:
detecting that, upon executing the first test case, an outcome of the second test case indicates a failure; and
in response to the detection, defining a semantic relationship between the first semantic object and the second semantic object.

### Claim 17 (depends on 16)

The computer-program product tangibly embodied in a non-transitory machine-readable storage medium of claim 16, wherein the operations further comprise:
defining a semantic relationship map including the defined semantic relationship between the first semantic object and the second semantic object and another semantic relationship exposed by executing the test suite.

### Claim 18 (depends on 15)

The computer-program product tangibly embodied in a non-transitory machine-readable storage medium of claim 15, wherein the operations further comprise:
detecting a bug within the executable source code, wherein the bug is detected when:
executing the code segment results in an inconsistency associated with the semantic characteristic assigned to the code segment; or
an input parameter passed into the code segment is inconsistent with the set of semantic objects included in the semantic catalogue.

### Claim 19 (depends on 15)

The computer-program product tangibly embodied in a non-transitory machine-readable storage medium of claim 15, wherein the plurality of semantic characteristics includes any combination from a group comprising of: a spatial semantic, a temporal semantic, a data semantic, a design element semantic, or a security semantic, wherein the spatial semantic represents logic of a function defined at a particular location within the executable source code, wherein the temporal semantic associates a first semantic object with a second semantic object when an output of the first semantic object affects an input of the second semantic object, wherein the design element semantic represents a design feature of a portion of the executable source code, wherein the data semantic represents a semantic of an input parameter to a given code segment attributed as the spatial semantic, and wherein the security semantic represents logic of a security function.

### Claim 20 (depends on 15)

The computer-program product tangibly embodied in a non-transitory machine-readable storage medium of claim 15, wherein the operations further comprise:
defining a hierarchy associated with a subset of semantic objects of the set of semantic objects included in the semantic catalogue, wherein the subset of semantic objects includes a parent semantic object and one or more child semantic objects, and wherein each child semantic object of the one or more child semantic objects further defines a feature of the parent semantic object.
