# US 2016/0253256 A1 · Code usage map

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

- Number: US 2016/0253256 A1
- Document ID: US20160253256A1
- Status: Published application
- Kind: A1
- Application number: 15/055,501
- Filed: 2016-02-26
- Published: 2016-09-01
- Earliest claimed: 2015-02-27
- Assignees: Wal-Mart Stores, Inc.
- Applicants: Wal-Mart Stores, Inc.
- Inventors: Abhishek Kumar Singh
- Web page: https://patentgrep.com/patent/US20160253256A1

## CPC

- G06F 9/45516: {Runtime code conversion or optimisation}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3692: {for test results analysis}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for dynamically enforcing a code usage policy including mapping machine code compiled from source code to identify construct interactions in the machine code, determining whether the construct interactions identified by the mapping conform to one or more construct interaction maps in a construct interaction registry associated with a code usage policy, and generating instructions to render one or more error messages within a graphical user interface of a development environment in response to a determination that one or more of the construct interactions in the machine code fails to comply with at least one of the construct interaction maps in the construct interaction registry.

## Claims

### Claim 1

A method for dynamically enforcing a code usage policy comprising:
mapping machine code compiled from source code to identify construct interactions in the machine code;
determining whether the construct interactions identified by the mapping conform to one or more construct interaction maps in a construct interaction registry associated with a code usage policy; and
generating instructions to render one or more error messages within a graphical user interface of a development environment in response to a determination that one or more of the construct interactions in the machine code fails to comply with at least one of the construct interaction maps in the construct interaction registry.

### Claim 2 (depends on 1)

The method of claim 1, wherein at least one of the construct interaction maps defines a plurality of registered construct interactions, and conformance of each of the construct interactions identified in the machine code to at least one of the plurality of registered construct interactions complies with the code usage policy.

### Claim 3 (depends on 1)

The method of claim 1, wherein at least one of the construct interaction maps defines a plurality of registered construct interactions, and a presence of any of the plurality of registered construct interactions in the machine code violates the code usage policy.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
displaying the source code within the graphical user interface of the development environment; and
rendering the error messages within the graphical user interface of the development environment as annotations embedded within the source code.

### Claim 5 (depends on 1)

The method of claim 1, further comprising executing the steps of mapping, determining, and generating in response to at least one of generation of additional source code, deletion of at least a portion of the source code, or revision of the source code within the development environment.

### Claim 6 (depends on 1)

The method of claim 1, further comprising automatically executing the steps of mapping, determining, and generating in response to saving of the source code in the development environment.

### Claim 7 (depends on 1)

The method of claim 1, further comprising executing the steps of mapping, determining, and generating in response to receiving an initiation command from a user.

### Claim 8 (depends on 1)

The method of claim 1, wherein at least one of the construct interaction maps defines a one or more registered construct interactions, the one or more registered construct interactions being prescribed by the code usage policy.

### Claim 9 (depends on 8)

The method of claim 8, wherein the code usage policy is a child policy of a parent policy and at least one of the registered construct interactions prescribed by the code usage policy is inherited from the parent policy.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
instructing a graphical user interface of a registry creation environment to interactively display a first list of constructs, a second list of constructs, and a list of operators to a user;
receiving, via the graphical user interface of the registry creation environment, a selected construct from the first list of constructs, a selected operator from the list of operators, and a selected construct from the second list of constructs;
combining the selected construct from the first list of constructs, the selected operator from the list of operators, and the selected construct from the second list of constructs to define a construct interaction; and
incorporating the defined construct interaction into at least one construct interaction map in the construct interaction registry.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
instructing a graphical user interface of a registry creation environment to interactively display a list of construct interaction registry templates, each of the construct interaction registry templates including at least one template construct interaction map;
receiving, via the graphical user interface of the registry creation environment, a selected construct interaction registry template;
incorporating the at least one template construct interaction map of the selected construct interaction registry template into the construct interaction registry.

### Claim 12 (depends on 11)

The method of claim 11, wherein the selected construct interaction registry template is editable within the registry creation environment.

### Claim 13

A system for dynamically enforcing a code usage policy comprising:
a memory; and
a processor configured to execute instructions stored in the memory, causing the system to:
map machine code compiled from source code to identify construct interactions in the machine code,
determine whether the construct interactions identified by the mapping conform to one or more construct interaction maps in a construct interaction registry associated with a code usage policy, and
generate instructions to render one or more error messages within a graphical user interface of the development environment in response to a determination that one or more of the construct interactions in the machine code fails to comply with at least one of the construct interaction maps in the construct interaction registry.

### Claim 14 (depends on 13)

The system of claim 13, wherein at least one of the construct interaction maps defines a plurality of registered construct interactions, and conformance of each of the construct interactions identified in the machine code to at least one of the plurality of registered construct interactions complies with the code usage policy.

### Claim 15 (depends on 13)

The system of claim 13, wherein at least one of the construct interaction maps defines a plurality of registered construct interactions, and a presence of any of the plurality of registered construct interactions in the machine code violates the code usage policy.

### Claim 16 (depends on 13)

The system of claim 13, the processor further configured to:
display the source code within the graphical user interface of the development environment; and
render the error messages within the graphical user interface of the development environment as annotations embedded within the source code.

### Claim 17 (depends on 13)

The system of claim 13, wherein the processor executes the instructions in response to at least one of generation of additional source code, deletion of at least a portion of the source code, or revision of the source code within the development environment.

### Claim 18 (depends on 13)

The system of claim 13, wherein the processor automatically executes the instructions in response to saving of the source code in the development environment.

### Claim 19 (depends on 13)

The system of claim 13, wherein the processor executes the instructions in response to receiving an initiation command from a user.

### Claim 20 (depends on 13)

The system of claim 13, wherein at least one of the construct interaction maps defines a one or more registered construct interactions, the one or more registered construct interactions being prescribed by the code usage policy.

### Claim 21 (depends on 20)

The system of claim 20, wherein the code usage policy is a child policy of a parent policy and at least one of the registered construct interactions prescribed by the code usage policy is inherited from the parent policy.

### Claim 22 (depends on 11)

The system of claim 11, further comprising:
a display configured to interactively display a graphical user interface of a registry creation environment including a first list of constructs, a second list of constructs, and a list of operators, the processor further configured to:
receive, via the interactive display, a selected construct from the first list of constructs, a selected operator from the list of operators, and a selected construct from the second list of constructs,
combine the selected construct from the first list of constructs, the selected operator from the list of operators, and the selected construct from the second list of constructs to define a construct interaction, and
incorporate the defined construct interaction into at least one construct interaction map in the construct interaction registry.

### Claim 23 (depends on 11)

The system of claim 11, further comprising:
a display configured to interactively display a graphical user interface of a registry creation environment including a list of construct interaction registry templates, each of the construct interaction registry templates including at least one template construct interaction map, the processor further configured to;
receive, via the interactive display, a selected construct interaction registry template, and
incorporate the at least one template construct interaction map of the selected construct interaction registry template into the construct interaction registry.

### Claim 24 (depends on 23)

The system of claim 23, wherein the selected construct interaction registry template is editable within the registry creation environment.

### Claim 25

A non-transitory computer readable medium comprising instructions that when executed cause a computational device to:
map machine code compiled from source code to identify construct interactions in the machine code;
determine whether the construct interactions identified by the mapping conform to one or more construct interaction maps in a construct interaction registry associated with a code usage policy; and
generate instructions to render one or more error messages within a graphical user interface of the development environment in response to a determination that one or more of the construct interactions in the machine code fails to comply with at least one of the construct interaction maps in the construct interaction registry.
