Method for automatic extraction of designs from standard source code
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.
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.
2. The method of claim 1 , wherein the extracted process kernels and the extracted control kernels are together treated as an algorithm.