Program redesign system and program redesign method

The program redesign system addresses the challenge of creating migration destination programs by using a trained model to divide and redesign programs into processing units, ensuring adherence to user-defined criteria and improving maintainability.

JP2026184729APending Publication Date: 2026-11-27HITACHI LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2025081250
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-14
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Conventional techniques for system environment migration fail to provide a specific method for dividing migration target programs into microservices, resulting in migration destination programs that do not always satisfy user-defined criteria.

Method used

A program redesign system that utilizes a trained model to determine class types and divide programs into processing units, generating class design information to create a migration destination program that meets user-defined criteria, using a generative AI system to assist in the process.

Benefits of technology

Ensures the creation of a migration destination program that adheres to user-defined criteria, improving maintainability and reducing the workload by dividing programs into processing units and applying class design criteria effectively.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026184729000001_ABST
    Figure 2026184729000001_ABST
Patent Text Reader

Abstract

During system environment migration, the program to be migrated is reconfigured to meet the user's intended criteria, and the destination program is created accordingly. [Solution] The program redesign system obtains the determination result of the class type of the processing unit of the first program before the transition using a trained model based on the class type definition. The program redesign system then divides the program specification into processing units for each class using the trained model based on the class type definition and the determination result of the class type of the processing unit of the first program. The program redesign system then obtains class design information using the trained model, which shows the criteria for generating classes from the processing units for each class and the program specification divided into processing units for each class, and which shows information indicating that classes have been generated by grouping the processing units for each class in order to satisfy the class design criteria.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a program redesign system and a program redesign method.

Background Art

[0002] When updating a system, the system environment may be migrated from a legacy system environment running programs written in a legacy language to a new system environment running programs written in a next-generation language. One method of system environment migration is re-architecture, in which a migration target program is restructured according to the framework of the migration destination programming language compatible with the migration destination system environment, and then described in the migration destination programming language to create a migration destination program.

[0003] For example, Patent Document 1 discloses a conventional technique for creating a migration destination program that operates in the migration destination system environment by dividing the code of the migration target program into microservices and repackaging the same as an example of re-architecture.

Prior Art Documents

Patent Documents

[0004]

Patent Document 1

Summary of Invention

Problems to be Solved by the Invention

[0005] However, the above-described conventional technique does not disclose a specific method for dividing into microservices. Therefore, there is a problem that a migration destination program in which the migration target program is restructured so as to satisfy a criterion intended by a user is not always created.

[0006] This invention has been made in consideration of the above circumstances, and one of its objectives is to ensure that, when migrating a system environment, a destination program is created in which the program to be migrated is reconfigured to satisfy the criteria intended by the user. [Means for solving the problem]

[0007] To achieve the above objective, the present invention, in one embodiment, provides a program redesign system for redesigning a program when transitioning from a first program written in a first programming language to a second program written in a second programming language, wherein the processor of the program redesign system generates a first prompt that instructs a trained model to determine the class type of the processing unit of the first program based on a class type definition indicating the definition of the class type of the second programming language and a program specification indicating the processing content of the first program, obtains the determination result of the class type of the processing unit of the first program based on the first prompt from the trained model, and based on the class type definition and the determination result of the class type of the processing unit of the first program The method is characterized by generating a second prompt to instruct the trained model to divide the program specification into processing units for each class, obtaining the program specification divided into processing units for each class based on the second prompt from the trained model, generating a third prompt to instruct the trained model to generate the class by targeting the processing units for each class in a group that satisfies the class design criteria, and the program specification divided into processing units for each class, and inputting this prompt to the trained model, and obtaining class design information from the trained model indicating the processing units for each class included in the class generated based on the third prompt. [Effects of the Invention]

[0008] According to the present invention, for example, when migrating a system environment, a destination program can be created in which the program to be migrated is reconfigured to satisfy the criteria intended by the user. [Brief explanation of the drawing]

[0009] [Figure 1] A diagram showing the configuration of the program redesign system according to the embodiment. [Figure 2] A flowchart illustrating the program redesign process according to the embodiment. [Figure 3] A diagram showing the program specifications for determining the class type according to the embodiment. [Figure 4] A diagram showing the class type definition according to the embodiment. [Figure 5] A diagram showing prompts for instructing the generating AI system to determine the class type according to the embodiment. [Figure 6] A diagram showing the class type determination results according to the embodiment. [Figure 7] A diagram showing prompts for performing section division according to the embodiment. [Figure 8] A diagram showing the program specifications (after section division) according to the embodiment. [Figure 9] A diagram showing the class type determination result (after section division) according to the embodiment. [Figure 10] A diagram showing the class design criteria according to the embodiment. [Figure 11] A diagram showing prompts for performing class design according to the embodiment. [Figure 12] A diagram showing class design information according to the embodiment. [Figure 13] A diagram showing prompts for performing class design related to Modification Example 1. [Figure 14] A diagram showing prompts for performing class design related to Modification Example 1. [Figure 15] A diagram illustrating the class design related to the second modified example. [Figure 16] A diagram showing prompts for performing class design related to the modified example 2. [Description of Embodiments]

[0010] Hereinafter, embodiments according to the present invention will be described in detail with reference to FIGS. 1 to 16. The present invention is not limited by the following embodiments.

[0011] The following embodiments illustrate program redesign during migration from a program written in COBOL (registered trademark) to a program written in Java (registered trademark). However, the following embodiments are not limited to migration from COBOL to Java (registered trademark). That is, as long as the requirements of the first language as the migration source and the requirements of the second programming language as the migration destination are satisfied, the present invention can be applied to migration from a program written in any first programming language to a program written in a second programming language. The requirement for the first language is that the program is described in units of sections (procedures, methods, etc.). The requirement for the second programming language is that the types of classes (processing units that group processes such as methods) are defined based on the framework of the second programming language.

[0012] (Configuration of Program Redesign System 1 According to Embodiment) FIG. 1 is a diagram showing a configuration of a program redesign system 1 according to an embodiment. The program redesign system 1 is a computer including a processor 11, a storage unit 12, a memory 13, an input / output unit 14, and a network I / F (Inter Face) 15.

[0013] The processor 11 is an arithmetic processing device such as a CPU, and implements a class type determination unit 111, a section division unit 112, and a class design unit 113 by executing a program read from the storage unit 12 in cooperation with the memory 13. The processing functions of the class type determination unit 111, the section division unit 112, and the class design unit 113 will be described later.

[0014] The storage unit 12 is a non-volatile storage device that stores program specifications 121, class type definitions 122, class type determination results 123, class design criteria 124, and class design information 125. The details of the program specifications 121, class type definitions 122, class type determination results 123, class design criteria 124, and class design information 125 will be described in detail in the following description of the program redesign process (Figure 2).

[0015] The memory 13 is a non-volatile storage device. The input / output unit 14 includes input devices such as a keyboard, mouse, and touch panel, and output devices such as a display and speaker. The network I / F 15 is a communication device for the program redesign system 1 to communicate with an external computer (e.g., a generative AI (Artificial Intelligence) system 4) via a network (not shown).

[0016] The generative AI system 4 includes a trained model 4M such as a large language model (LLM) or a multimodal model. The generative AI system 4 inputs text, images, and other information to the trained model 4M, and outputs text, images, and other information obtained from the trained model 4M.

[0017] (Program Redesign Process According to Embodiment) Figure 2 is a flowchart showing the program redesign process according to the embodiment. The program redesign process is executed by the program redesign system 1 in response to an instruction from a user.

[0018] (Step S11) First, in step S11, the class type determination unit 111 reads the program specification 121 (Figure 3) and the class type definition 122 (Figure 4). Then, the class type determination unit 111 creates a prompt pt1 (Figure 5) that instructs the generation AI system 4 to determine which class type each processing unit (section) included in the program specification 121 belongs to. The class type determination unit 111 then sends prompt pt1 to the generation AI system 4, receives a response to prompt pt1 from the generation AI system 4, and records it as the class type determination result 123 (Figure 6).

[0019] Figure 3 shows the program specification 121 for determining the class type according to the embodiment. The program specification 121 describes the processing content of the first program before migration, which is written in the first programming language, and can use either the program source code or the detailed design document (program design document), or both. In this embodiment, the case in which the detailed design document is used as the program specification 121 is shown. The detailed design document can also be generated from the source code using the trained model 4M.

[0020] Program specification 121 describes the processing for each program in processing units (sections). In the example shown in Figure 3, "Program A" consists of processing units SEC-A1 (Section A1) and SEC-A2 (Section A2). Processing unit SEC-A1 (Section A1) includes "1. Perform preprocessing," "2. Execute SEC-A2," etc.

[0021] Figure 4 shows a class type definition 122 according to an embodiment. The class type definition 122 defines the class type of the second programming language after migration and has columns for "Class Type" and "Description". "Class Type" is the identification information of the class. "Description" shows the content of the class identified by "Class Type". In the example shown in Figure 4, the class types "Service Class", "Repository Class", etc. are defined.

[0022] Figure 5 shows a prompt pt1 for instructing the generation AI system 4 to determine the class type according to the embodiment. Prompt pt1 is a prompt that instructs the generation AI system 4 to determine which of the class types defined in the class type definition 122 the processing unit (section) of the target program included in the program specification 121 corresponds to. Each processing unit (section) may correspond to multiple class types.

[0023] The prompt pt1, "#ClassType", refers to ClassType Definition 122 (Figure 4). The prompt pt1, "#ProgramProcessingContent", refers to Program Specification 121 (Figure 3).

[0024] Figure 6 shows the class type determination result 123 according to the embodiment. The class type determination result 123 has columns for "Program", "Processing Unit (Section)", and "Class Type". For example, in the example shown in Figure 6, it is determined that the "Processing Unit (Section)" of "SEC-A1" of "Program" "Program A" corresponds to the "Class Type" of "Service Class" "Repository Class".

[0025] (Step S12) Returning to the explanation of Figure 2, in step S12, the section division unit 112 further divides the processing units (sections) that have been determined to belong to multiple class types in the class type determination result 123, based on the class type definition 122. The section division unit 112 then creates a prompt pt2 (Figure 7) that instructs the generating AI system 4 to determine the class type of the divided processing units (sections). The section division unit 112 then sends the prompt pt2 to the generating AI system 4. The section division unit 112 then receives the response to the prompt pt2 from the generating AI system 4 and records it as the program specification (after section division) 121a (Figure 8) and the class type determination result (after section division) 123a (Figure 9).

[0026] Figure 7 shows a prompt pt2 for performing section division according to the embodiment. Prompt pt2 is a prompt that instructs the generating AI system 4 to further divide the processing unit (section) of the target program included in the program specification 121 so that it corresponds to one of the class types defined in the class type definition 122.

[0027] The prompt pt2, "#ClassType", refers to the class type definition 122 (Figure 4). The prompt pt2, "#ProgramProcessingContent", refers to the program specification 121 (Figure 3), which includes multiple class types, based on the class type determination result 123 (Figure 6).

[0028] Figure 8 shows the program specification (after section division) 121a according to the embodiment. As shown in the class type determination result 123 (Figure 6), the processing unit SEC-A1 (section A1) of "Program A" is determined to belong to two class types: "service class" and "repository class". Therefore, when section division is performed on the processing unit SEC-A1 (section A1) of "Program A", it can be seen that it becomes as shown in Figure 8. That is, it is divided into processing unit SEC-A1S (section A1: service class) and processing unit SEC-A1R (section A1: repository class).

[0029] Figure 9 shows the class type determination result (after section division) 123a according to the embodiment. The class type determination result 123a has columns for "Program", "Processing Unit (Section)", and "Class Type". For example, in the example shown in Figure 9, it is shown that the section of the processing unit SEC-A1S (Section A1: Service Class) of "Program A" was determined to correspond to the "Class Type" of "Service Class". Also, it is shown that the section of the processing unit SEC-A1R (Section A1: Repository Class) of "Program A" was determined to correspond to the "Class Type" of "Repository Class".

[0030] (Step S13) Returning to the explanation of Figure 2, in step S13, the class design unit 113 reads the program specification (after section division) 121a, the class type determination result (after section division) 123a, and the class design criteria 124 (Figure 10). The class design unit 113 then creates a prompt pt3 ​​(Figure 11) that instructs the generation AI system 4 to design a Java® class based on the information it has read. The class design unit 113 then sends the prompt pt3 ​​to the generation AI system 4, receives a response to the prompt pt3 ​​from the generation AI system 4, and records it as class design information 125 (Figure 12).

[0031] Figure 10 shows a class design criterion 124 according to an embodiment. The class design criterion 124 has columns for "Number" and "Description". The "Number" is the identification information for each class design criterion that serves as the basis for designing a class. The "Description" shows the specific content of each class design criterion.

[0032] Figure 11 shows a prompt pt3 ​​for performing class design according to the embodiment. Prompt pt3 ​​is a prompt that instructs the generation AI system 4 to generate a class from the processing units (sections) included in the program specification (after section division) 121a so as to satisfy the class design criteria defined in the class design criteria 124.

[0033] In prompt pt3, "#Class design criteria" refers to class design criterion 124 (Figure 10). In prompt pt3, "#Processing details for each section" refers to class type determination result (after section division) 123a (Figure 9).

[0034] Furthermore, in addition to class design criterion 124, various constraints can be added to prompt pt3. In the example in Figure 11, the constraints "All sections must belong to one class" and "It is acceptable for a class to have only one section" have been added.

[0035] Figure 12 shows the class design information 125 according to the embodiment. The class design information 125 has columns for "Class Type," "Class Name," and "Processing Unit." "Class Type" is the class type defined in the class type definition 122 (Figure 4). "Class Name" is the class designed by the trained model 4M based on prompt pt3 ​​to satisfy the class design criteria 124. "Processing Unit" is the processing unit (section) of the program specification (after section division) 121a (Figure 8) that is designed to belong to the class of the corresponding "Class Name." "Processing Unit" is the final product of the class design unit 113 and indicates what kind of class to create and what kind of methods (processing units) to create in each class. In the example in Figure 12, it is shown that a service class called "ProcessService" is created so that it includes processing units SEC-1A1S, SEC-A2, ... as methods.

[0036] The processor 11 may also include a program design document generation unit (not shown) that generates a program design document showing the processing content of the second program after migration from the class design information 125 generated by the class design unit 113. The program design document generation unit generates a prompt that instructs the trained model 4M to generate a program design document showing the processing content of the second program based on the class design information 125. The program design document generation unit then obtains the program design document (not shown) showing the processing content of the second program generated from the trained model 4M based on the prompt.

[0037] The processor 11 may also include a source code generation unit (not shown) that generates source code for a second program after migration from a program design document (not shown) generated by a program design document generation unit (not shown). The source code generation unit generates a prompt that instructs the trained model 4M to generate source code for the second program based on the program design document, and obtains source code (not shown) generated from the trained model 4M based on the prompt.

[0038] The program redesign system 1 can output the class type definition 122, class type determination result 123, class design criteria 124, and class design information 125 from the output device of the input / output unit 14.

[0039] (Modification of Embodiment 1) In the above embodiment, in step S13 of the program redesign process (Figure 2), the class design unit 113 uses the generation AI system 4 to perform class design based on the read class type determination result (after section division) 123a. However, depending on the trained model 4M, due to token limitations, it may not be possible to input all of the program specifications for each section of the class type determination result (after section division) 123a into the trained model 4M.

[0040] Therefore, in the modified example 1, the class design unit 113 first creates the prompt pt3-11 shown in Figure 13. Prompt pt3-11 is a prompt that instructs the generation AI system 4 to read each processing unit shown in the class type determination result (after section division) 123a from the program specification (after section division) 121a and generate a summary showing the outline of each processing unit. In the "#Program processing content" of prompt pt3-11, the program specification (after section division) 121a is referenced.

[0041] The class design unit 113 then sends prompt pt3-11 to the generation AI system 4 and receives a response to prompt pt3-11 from the generation AI system 4. The class design unit 113 then creates prompt pt13-12 by replacing "#Processing content of each section" in prompt pt3 ​​(Figure 11) with the received response. The class design unit 113 then sends prompt pt3-12 to the generation AI system 4, receives a response to prompt pt3-12 from the generation AI system 4 and records it as class design information 125 (Figure 12).

[0042] According to Modification 1, even if the trained model 4M has a limit on the number of tokens in the input prompt, the program specification descriptions for each section of the class type determination result (after section division) 123a can be appropriately summarized and made available for input.

[0043] (Modified embodiment 2) In the embodiment described above, in step S13 of the program redesign process (Figure 2), the class design unit 113 applies multiple class design criteria of the class design criteria 124 to the read class type determination result (after section division) 123a at once to perform class design. However, if multiple tasks (application of multiple class design criteria) are made to the trained model 4M at once, the accuracy of the output decreases. Therefore, in the modified example 2, class design is performed by applying multiple class design criteria one by one in a stepwise manner.

[0044] In other words, the processor 11 generates a prompt that instructs the trained model 4M to further target processing units (sections) for each class that can be grouped into the same class based on the class design information 125 obtained in the previous processing, and generate a class. The processor 11 then sequentially executes the process of obtaining the class design information 125 generated based on the prompt and making it the class design information 125 to be used in the next processing for each of the multiple criteria (# class design criteria) included in the class design criteria 124.

[0045] Figure 15 is a diagram illustrating the class design related to Modification 2. As shown in Figure 15, for example, in the first iteration, a class is designed from all sections of a certain class type (e.g., a service class) according to Class Design Criterion 124 #1. In the second iteration, a class is designed from the sections of each class designed in the first iteration, according to Class Design Criterion 124 #2. In this way, in the nth iteration (n≧2), a class is designed from the sections of each class designed in the (m-1)th iteration.

[0046] Figure 16 shows the prompt pt3-2 for performing class design according to the modified example 2. Prompt pt3-2 is a prompt that instructs the system to read each processing unit shown in the class type determination result (after section division) 123a from the program specification (after section division) 121a and perform class design by applying each class design criterion one by one.

[0047] Prompt pt3-2 has an additional input field called "#Reference Class Name" compared to prompt pt3 ​​(Figure 11). In prompt pt3-2, "#Class Design Criteria" refers to class design criterion 124 (Figure 10). In prompt pt3-2, "#Processing Content of Each Section" refers to one or more processing units (sections) that are determined to be grouped into the same class in the class design information 125 created in the previous class design. In prompt pt3-2, "#Reference Class Name" refers to the class name in the class design information 125 created in the previous class design.

[0048] Furthermore, prompt pt3-2 has an additional constraint compared to prompt pt3: "When naming a class, please name it by partially modifying the reference class name." The class design unit 113 then sends prompt pt3-2 to the generation AI system 4. The class design unit 113 then repeatedly executes the process of receiving a response to prompt pt3-2 from the generation AI system 4 for each class design criterion of the class design criterion 124, and records the final class design information 125 (Figure 12).

[0049] According to Modification 2, the accuracy of the output can be improved by sequentially performing multiple tasks (application of multiple class design criteria) on the trained model 4M. Note that, rather than applying multiple class design criteria one by one in a stepwise manner, the multiple class design criteria may be grouped together and applied to each group to perform class design.

[0050] (Effects of the embodiment) In the above embodiment, the program to be migrated is divided into processing units (sections), the class type to which the processing of each section corresponds is determined, and if processing that corresponds to multiple class types is included in one section, that section is divided according to the type. Then, by combining multiple sections according to the class design criteria, a class in the second programming language after migration is constructed. Therefore, according to this embodiment, it is possible to convert to a program structure that is highly maintainable for engineers of the second programming language, in accordance with the framework of the second language, while reducing the amount of work required.

[0051] Furthermore, in the above-described embodiment, a program design document for the second program is generated from the generated class design information of the second program using a trained model. The source code for the second program is also generated from the generated program design document using the trained model. Therefore, the program design document and source code for the second program can be generated using the trained model, and by performing these generation using a prompt separate from the prompt used for generating the class design information, the accuracy of the final output can be improved.

[0052] Furthermore, in the above-described embodiment, the program specification showing the processing content of the first program is the program design document and / or the source code of the first program. Therefore, by using the program design document and source code together or separately, it is possible to improve the accuracy of the final output produced by the trained model.

[0053] Furthermore, in the above embodiment, a summary of the program specification divided into processing units for each class is generated, and this summary is used as input to the prompt when generating a class from the program specification divided into processing units for each class based on the class design criteria. Thus, according to the above embodiment, the limitation on the number of tokens in the input prompt for the trained model is avoided, and the trained model becomes available.

[0054] Furthermore, in the above embodiment, a predetermined prompt is generated, and class design information generated based on this predetermined prompt is acquired and used as class design information for the next processing stepwise by sequentially applying multiple criteria included in the class design criteria. Here, the predetermined prompt is a prompt that instructs the trained model to further target processing units for each class that can be grouped into the same class based on the class design information acquired in the previous processing and generate a class. Therefore, according to the above embodiment, if the trained model is made to judge multiple criteria included in the class design criteria at once, the accuracy of the output decreases, but by having the trained model judge multiple criteria one by one or in groups stepwise, the judgment accuracy can be improved.

[0055] The present invention is not limited to the embodiments described above, and various modifications are included. For example, the embodiments described above are described in detail for the purpose of clearly illustrating the present invention, and are not necessarily limited to those having all the configurations described. Furthermore, it is possible to replace a part of the configuration of one embodiment with the configuration of another embodiment, and it is also possible to add the configuration of another embodiment to the configuration of one embodiment. Furthermore, it is possible to add, delete, or replace parts of the configuration of each embodiment with other configurations. In addition, some or all of the above-described configurations, functions, processing units, processing means, etc., may be realized in hardware, for example, by designing them as integrated circuits. Furthermore, the above-described configurations, functions, etc., may be realized in software by having a processor interpret and execute a program that realizes each function. [Explanation of symbols]

[0056] 1: Program redesign system, 11: Processor, 13: Memory, 121: Program specifications, 122: Class type definition, 123: Class type determination result, Class design criteria 124, 125: Class design information, 4: Generative AI system, 4M: Trained model

Claims

1. A program redesign system for performing program redesign when transitioning from a first program written in a first programming language to a second program written in a second programming language, The processor of the aforementioned program redesign system is Based on the class type definition indicating the definition of the class type of the second programming language and the program specification indicating the processing content of the first program, a first prompt is generated instructing the trained model to determine the class type of the processing unit of the first program. Obtain the determination result of the class type of the processing unit of the first program based on the first prompt from the trained model. Based on the class type definition and the determination result of the class type of the processing unit of the first program, a second prompt is generated instructing the trained model to divide the program specification into processing units for each class. The program specifications, which have been divided into processing units for each class based on the second prompt, are obtained from the trained model. Based on a class design criterion indicating the criteria for generating the class from the processing units for each class, and the program specification divided into the processing units for each class, a third prompt is generated and input to the trained model instructing it to generate the class by targeting the processing units for each class in a way that satisfies the class design criterion. Obtain class design information indicating the processing unit for each class included in the class generated from the trained model based on the third prompt. A program redesign system characterized by the following features.

2. A program redesign system according to claim 1, The aforementioned processor, Based on the class design information, a fourth prompt is generated instructing the trained model to generate a program design document showing the processing content of the second program. Obtain a program design document showing the processing content of the second program generated from the trained model based on the fourth prompt. A program redesign system characterized by the following features.

3. A program redesign system according to claim 2, The aforementioned processor, Based on the program design document, a fifth prompt is generated instructing the trained model to generate the source code for the second program. Obtain the source code generated from the trained model based on the fifth prompt. A program redesign system characterized by the following features.

4. A program redesign system according to claim 1, The program specification is the program design document and / or the source code of the first program. A program redesign system characterized by the following features.

5. A program redesign system according to claim 1, The aforementioned processor, A sixth prompt is generated and input to the trained model, instructing it to generate a summary of the program specifications divided into processing units for each class. A summary of the program specifications, divided into processing units for each class based on the sixth prompt, is obtained from the trained model. The third prompt is generated based on the class design criteria and the summary of the program specifications, which is divided into processing units for each class. A program redesign system characterized by the following features.

6. A program redesign system according to claim 1, The aforementioned processor, A third prompt is generated to instruct the trained model to further group processing units for each class that are grouped into the same class based on the class design information obtained in the previous processing, and to generate the class. The process of obtaining the class design information generated based on the third prompt and using it as the class design information for the next processing is performed stepwise by sequentially applying the multiple criteria included in the class design criteria. A program redesign system characterized by the following features.

7. A program redesign method executed by a program redesign system that performs program redesign when transitioning from a first program written in a first programming language to a second program written in a second programming language, The processor of the aforementioned program redesign system Based on the class type definition indicating the definition of the class type of the second programming language and the program specification indicating the processing content of the first program, a first prompt is generated instructing the trained model to determine the class type of the processing unit of the first program. Obtain the determination result of the class type of the processing unit of the first program based on the first prompt from the trained model. Based on the class type definition and the determination result of the class type of the processing unit of the first program, a second prompt is generated instructing the trained model to divide the program specification into processing units for each class. The program specifications, which have been divided into processing units for each class based on the second prompt, are obtained from the trained model. Based on a class design criterion indicating the criteria for generating the class from the processing units for each class, and the program specification divided into the processing units for each class, a third prompt is generated and input to the trained model instructing it to generate the class by targeting the processing units for each class in a way that satisfies the class design criterion. Obtain class design information indicating the processing unit for each class included in the class generated from the trained model based on the third prompt. A method for redesigning a program, characterized by having each of the following processes.

Citation Information

Patent Citations

  • Systems and methods for application environment migration

    JP7316461B2