Program creation assistance system and computer readable medium
AssigneeMitsubishi Electric Corporation
InventorsKenzo Yamamoto, Satoshi Noguchi
Life of this patent
Estimating the term…
Abstract
A program fragmentation unit (131) divides a target program into fragments according to groups of processing. A fragment group extraction unit (132) extracts, from among sets of fragments, each set in which instruction groups match between fragments, as a fragment group. A functionalization candidate extraction unit (136) extracts, from among sets of fragment groups, a set in which instruction groups match between fragment groups, usage patterns of a variable group match between the fragment groups, and types of variables match between the fragment groups, as a functionalization candidate. An output unit (140) outputs information on the functionalization candidate.
Claims11
A program creation assistance system comprising
- processing circuitry to:
- divide a target program into fragments according to groups of processing;
- extract, from among sets of fragments, each set in which instruction groups match between fragments, as a fragment group;
- extract, from among sets of fragment groups, a set in which instruction groups match between fragment groups, usage patterns of a variable group match between the fragment groups, and types of variables match between the fragment groups, as a functionalization candidate;
- and
- output information on the functionalization candidate,
- wherein the processing circuitry extracts, from among sets of fragment groups, each set in which instruction groups match between fragment groups, as a fragment group pair,
- determines, for each fragment group pair, whether usage patterns of a variable group match between fragment groups, and
- generates, for each fragment group included in the fragment group pair, a string by sequentially arranging each instruction and each variable name in the fragment group, replaces each variable name in the string with a predetermined variable name according to a sequence for each fragment group included in the fragment group pair, compares the strings between the fragment groups, and determines that usage patterns of the variable group match between the fragment groups when strings match between the fragment groups.
A non-transitory computer readable medium storing a program creation assistance program to cause a computer to execute:
- a program fragmentation process of dividing a target program into fragments according to groups of processing;
- a fragment group extraction process of extracting, from among sets of fragments, each set in which instruction groups match between fragments, as a fragment group;
- a functionalization candidate extraction process of extracting, from among sets of fragment groups, a set in which instruction groups match between fragment groups, usage patterns of a variable group match between the fragment groups, and types of variables match between the fragment groups, as a functionalization candidate;
- and
- an output process of outputting information on the functionalization candidate,
- wherein the a program creation assistance program also causes the computer to:
- extract, from among sets of fragment groups, each set in which instruction groups match between fragment groups, as a fragment group pair,
- determine, for each fragment group pair, whether usage patterns of a variable group match between fragment groups, and
- generate, for each fragment group included in the fragment group pair, a string by sequentially arranging each instruction and each variable name in the fragment group, replaces each variable name in the string with a predetermined variable name according to a sequence for each fragment group included in the fragment group pair, compares the strings between the fragment groups, and determines that usage patterns of the variable group match between the fragment groups when strings match between the fragment groups.
Dependencies are inferred from the claim text.