# US 2013/0254743 A1 · Method For Automatic Extraction Of Designs From Standard Source Code

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

- Number: US 2013/0254743 A1
- Document ID: US20130254743A1
- Status: Published application
- Kind: A1
- Application number: 13/490,345
- Filed: 2012-06-06
- Published: 2013-09-26
- Earliest claimed: 2012-03-20
- Assignees: Massively Parallel Technologies, Inc.
- Inventors: Kevin D. Howard
- Web page: https://patentgrep.com/patent/US20130254743A1

## CPC

- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 8/74: Reverse engineering; Extracting design information from source code
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method for automatic code-design and file/database-design association. Existing source code is analyzed for process and control elements. The control elements are encapsulated as augmented state machines and the process elements are encapsulated as kernels. The new elements can then have meta-data attached (including, a name, I/O method, and test procedures), allowing software code sharing and automatic code/file/database upgrading, as well as allowing sub-subroutine level code blocks to be accessed directly.

## Claims

### Claim 1

A computer-implemented method for automatically extracting a design from source code comprising:
identifying branching and looping commands in a code section;
extracting process kernel code segments, connected by either branching or looping structures, from the code section;
extracting control kernels from the code section;
encapsulating the control kernels as state machines;
encapsulating the process elements as process kernels; and
associating meta-data with the control and process elements; and
wherein the meta-data is used to associate the extracted process kernels and the extracted control kernels with code other than the original code used in the extracting steps.

### Claim 2 (depends on 1)

The method of claim 1, wherein the extracted process kernels and the extracted control kernels are together treated as an algorithm.

### Claim 3

A computer-implemented method for sharing sub-subroutine level software comprising:
extracting kernel and algorithm code as components comprising separately executable code and associated kernel and algorithm code at a sub-subroutine level;
storing metadata associated with the kernel and algorithm code in a keyword list,
accessing the separately executable code by matching its keyword list to a corresponding design process, to enable the sharing of sub-subroutine level software.

### Claim 4

A computer-implemented method for sharing sub-subroutine level software comprising:
performing decomposition, of a selected section of code, to McCabe code blocks;
associating metadata with data from data flows entering and exiting each of the code blocks to describe input/output parameters thereof;
that are used to match design processes with kernel and/or algorithm code.
associating the input/output data flow information for each code block with the code block, thus allowing the code blocks to be used as sub-subroutines.

### Claim 5

A computer-implemented method for automatic association of database and search/test/design software comprising:
performing decomposition, of a selected section of code, to McCabe code blocks, each consisting of a transformation process;
generating code-associated metadata comprising a keyword list for each of the code blocks, including a database type, a database schema, and one or more database test queries;
performing a keyword search for keyword matches between a selected one of the code blocks and the keyword list to determine matching said code blocks matching said database type and said database schema of the selected one of the code blocks;
executing the test queries on the matching code blocks to determine at least one database that can be used with the selected one of the code blocks.
