# US 2026/0310428 A1 · Identifying Coding Patterns via a Control Flow Graph

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

- Number: US 2026/0310428 A1
- Document ID: US20260310428A1
- Status: Published application
- Kind: A1
- Application number: 19/169,811
- Filed: 2025-04-03
- Published: 2026-10-08
- Earliest claimed: 2025-04-03
- Assignees: Dell Products L.P.
- Applicants: Dell Products L.P.
- Inventors: Andrea Roggerone; Mauro Silva; Brian Rochford; Steven Soumpholphakdy
- Web page: https://patentgrep.com/patent/US20260310428A1

## CPC

- G06F 8/433: {Dependency analysis; Data or control flow analysis}
- G06F 8/4435: {Detection or removal of dead or redundant code}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system can create a dependency graph that represents dependencies within computer code. The system can generate respective control flow graphs for respective code blocks of the computer code that are stored in the respective files. The system can for the respective files that correspond to the respective control flow graphs, associate the respective control flow graphs with respective nodes that correspond to the respective files. The system can create order embeddings from the dependency graph. The system can store the order embeddings in a graph database. The system can, based on receiving an inquiry associated with a user account regarding the computer code, query the graph database with a query based on the inquiry to produce an output that indicates a coding pattern similarity. The system can prompt a large language model with the coding pattern similarity and the inquiry to produce an answer to the inquiry.

## Claims

### Claim 1

A system, comprising:
at least one processor; and
at least one memory that stores executable instructions that, when executed by the at least one processor, facilitate performance of operations, comprising:
creating a dependency graph that represents dependencies within computer code, wherein nodes of the dependency graph represent files of the computer code, and wherein edges of the dependency graph represent respective relationships between respective files of the files;
generating respective control flow graphs for respective code blocks of the computer code that are stored in the respective files;
for the respective files that correspond to the respective control flow graphs, associating the respective control flow graphs with respective nodes of the nodes that correspond to the respective files;
creating order embeddings from the dependency graph, wherein the order embeddings preserve an order of the respective control flow graphs;
storing the order embeddings in a graph database that stores the dependency graph;
based on receiving an inquiry associated with a user account regarding the computer code, querying the graph database with a query based on the inquiry to produce an output that indicates a coding pattern similarity;
prompting a large language model with the coding pattern similarity and the inquiry to produce an answer to the inquiry; and
making the answer to the inquiry available via the user account.

### Claim 2 (depends on 1)

The system of claim 1, wherein the nodes are first nodes, wherein the edges are first edges, wherein the respective control flow graphs for the respective code blocks comprise respective directed graphs, wherein respective second nodes of the respective directed graphs correspond to the respective code blocks, and wherein respective second edges of the respective directed graphs correspond to respective flow paths between the respective code blocks.

### Claim 3 (depends on 1)

The system of claim 1, wherein the creating of the order embeddings comprises:
applying a monotone function to the dependency graph, wherein the monotone function maps elements from a first partially ordered set to a second partially ordered set, wherein the second partially ordered set preserves an order relationship of the first partially ordered set.

### Claim 4 (depends on 1)

The system of claim 1, wherein the nodes are first nodes, wherein the edges are first edges, wherein the relationships are first relationships, wherein respective second nodes of the graph database correspond to the order embeddings, and wherein respective second edges of the graph database represent respective second relationships between the respective control flow graphs.

### Claim 5 (depends on 1)

The system of claim 1, wherein the graph database and the large language model comprise a retrieval-augmented generation system.

### Claim 6 (depends on 1)

The system of claim 1, wherein the operations further comprise:
accessing the computer code via a repository in which the computer code is stored before the performing of the creating of the dependency graph that represents dependencies within the computer code.

### Claim 7 (depends on 6)

The system of claim 6, wherein the accessing is performed based on receiving user input data.

### Claim 8

A method, comprising:
creating, by a system comprising at least one processor, a dependency graph that represents dependencies within computer code, wherein nodes of the dependency graph represent files of the computer code, and wherein edges of the dependency graph represent respective relationships between respective files of the files;
associating, by the system, respective control flow graphs with respective nodes of the nodes that correspond to the respective files that correspond to the respective control flow graphs, wherein the respective control flow graphs correspond to respective code blocks of the computer code that are stored in the respective files;
storing, by the system, order embeddings in a graph database that stores the dependency graph, wherein the order embeddings are based on the dependency graph, and wherein the order embeddings preserve an order of the respective control flow graphs;
responding, by the system, to an inquiry associated with a user account regarding the computer code with a response that comprises an output of a retrieval-augmented generation system that comprises the graph database and a large language model.

### Claim 9 (depends on 8)

The method of claim 8, wherein respective order embeddings of the order embeddings comprise respective labels that identify the respective files that correspond to the respective order embeddings, and wherein the respective order embeddings comprise respective embeddings that comprise respective vectors of respective numeric values.

### Claim 10 (depends on 8)

The method of claim 8, wherein the response comprises a visualization of the order embeddings in a space having a first number of first dimensions, wherein the order embeddings have a second number of second dimensions, wherein the first number is less than the second number, and wherein the first dimensions satisfy an order-and-structure criterion with respect to the second dimensions.

### Claim 11 (depends on 8)

The method of claim 8, wherein the nodes of the dependency graph correspond to software components of the computer code, wherein at least one node of the nodes corresponds to two of the files, and wherein the edges of the dependency graph correspond to relationships between the software components.

### Claim 12 (depends on 11)

The method of claim 11, wherein the nodes are first nodes, wherein the edges are first edges, wherein a first level of the dependency graph comprises the first nodes and the first edges, wherein a second level of the dependency graph comprises second nodes and second edges, wherein the second nodes correspond to the files, and wherein the second edges correspond to relationships between the files.

### Claim 13 (depends on 11)

The method of claim 11, wherein the dependency graph comprises a third level, and wherein the third level comprises the control flow graphs.

### Claim 14 (depends on 8)

The method of claim 8, wherein the computer code is first computer code expressed in a first programming language, wherein the response is based on a comparison between the first computer code and second computer code expressed in a second programming language, and wherein the first programming language differs from the second programming language.

### Claim 15

A non-transitory computer-readable medium comprising instructions that, in response to execution, cause a system comprising at least one processor to perform operations, comprising:
creating a dependency graph from computer code, wherein nodes of the dependency graph correspond to files of the computer code;
associating respective control flow graphs of the respective files with respective nodes of the nodes, wherein the respective control flow graphs correspond to respective code blocks of the computer code;
storing order embeddings in a graph database that stores the dependency graph, wherein the order embeddings are based on the dependency graph; and
responding to an inquiry associated with a user account regarding the computer code with a response that comprises an output of a retrieval-augmented generation system that comprises the graph database and a large language model.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the response identifies a recommendation about an impact of a change to the computer code, a migration order for the computer code, a coding pattern of the computer code, a security vulnerability of the computer code, a summarization of the computer code, a duplicate within the computer code, a performance optimization of the computer code, an automation testing of the computer code, a program verification of the computer code, or a dead code identification of the computer code.

### Claim 17 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the output of the retrieval-augmented generation system is based on performing a query on the retrieval-augmented generation system that is processed based on performing a similarity search between at least part of the query and data of the graph database.

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the similarity search is based on a cosine similarity criterion.

### Claim 19 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the similarity search returns a defined number of results, and wherein results of the defined number of results is ranked according to a similarity criterion.

### Claim 20 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the inquiry indicates a first inquiry regarding coding patterns of the computer code, a second inquiry regarding functions of the computer code leveraging a code library, a third inquiry regarding a first impact of a change to the computer code, or a fourth inquiry regarding a second impact of removing part of the computer code.
