Automatic Program Conversion via Instruction Pattern Frequency Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional automatic program conversion techniques lack the ability to distinguish which instruction patterns need conversion when migrating a program to a different operating environment, leading to inefficient and potentially buggy conversions.

Innovation Solution

An automatic program conversion method that analyzes the frequency of instruction patterns in a source program and selectively converts those appearing multiple times to corresponding patterns in a new program, while allowing manual modification of patterns appearing fewer times, ensuring efficient migration and visual differentiation of converted code.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If automatic conversion is performed on every instruction pattern in the source program, then conversion completeness is improved, but conversion efficiency deteriorates due to inability to distinguish which patterns need conversion

Engineering Contradiction:
Improveconversion completenessVSAvoidconversion efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent segments the conversion process into two distinct phases: automatic conversion for instruction patterns appearing multiple times, and manual conversion for patterns appearing once. This segmentation allows the system to apply different conversion strategies to different subsets of instruction patterns, thereby improving overall conversion efficiency while maintaining completeness.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a frequency parameter (appearance count) to distinguish between different instruction patterns. By changing the parameter from binary (convert/don't convert) to multi-level (automatic/manual based on count), the system can optimize conversion efficiency for frequent patterns while preserving the ability to handle all patterns comprehensively.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If all instruction patterns are converted automatically, then conversion speed is improved, but conversion accuracy deteriorates due to lack of manual verification for infrequent patterns

Engineering Contradiction:
Improveconversion speedVSAvoidconversion accuracy
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent divides the instruction patterns into two segments based on their appearance frequency: high-frequency patterns (converted automatically with high speed) and low-frequency patterns (converted manually with high accuracy). This segmentation resolves the contradiction by allowing each segment to be processed with the most appropriate method for its specific requirements.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies automatic conversion partially - only to instruction patterns that appear multiple times. This partial application of automation achieves the majority of conversion needs efficiently while leaving the remaining critical cases for manual handling, thus balancing speed and accuracy.

Inventive Principle:
Principle #16Partial or excessive action

3Device complexity

If program migration is performed without distinguishing instruction pattern frequency, then simplicity of process is maintained, but program reliability deteriorates due to undetected conversion issues

Engineering Contradiction:
Improveprocess simplicityVSAvoidprogram reliability
Core Design Contradiction:
Device complexityVSReliability

Solution Approach 1:

The patent performs a preliminary analysis step before conversion to count the appearance frequency of each instruction pattern. This preliminary action enables the system to automatically determine the appropriate conversion method for each pattern, thereby improving program reliability without significantly complicating the overall process.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent uses feedback from the frequency analysis to dynamically adjust the conversion strategy. The system counts pattern occurrences and uses this feedback information to decide whether to apply automatic or manual conversion, creating a closed-loop process that improves reliability while maintaining reasonable simplicity.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS7831964B2Program automatic converting method and program automatic converting device
Publication Date: 2010.11.09 SYSTEM S CO LTD
  • US7831964B2 patent drawing
  • US7831964B2 patent drawing
  • US7831964B2 patent drawing

AI summary

Automatic program conversion method: An analysis step analyzes the number of times that first instruction pattern information elements appear in an old source program; an analysis results output step outputs the analysis results; an instruction pattern conversion step converts old source program descriptions that correspond to the first instruction pattern information elements analyzed to appear a specified number of times or more, so as to correspond to second instruction pattern information elements; a new program output step outputs a new program resulting from the old source program converted in the instruction pattern conversion step; and an input receiving step receives user-entered manual input regarding the descriptions in the old source program that correspond to the first instruction pattern information elements analyzed to appear less than the specified number of times, so that such descriptions are modified for a new source program. Thus, program migration is achieved efficiently, reducing bugs.