Code Continuity Preservation via Generation Records

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In model-based development, maintaining code continuity is challenging when modifications are made to a model, as it requires re-validating newly generated code, which is time-consuming and inefficient.

Innovation Solution

A client device generates code while preserving continuity by using a generation record that includes decision steps and optimization techniques from previous code generation, allowing it to recreate code that maintains consistency with previous versions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If code is regenerated after model modifications, then code reflects updated model, but extensive re-validation is required which is time-consuming

Engineering Contradiction:
Improvecode update capabilityVSAvoidvalidation time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The system performs preliminary actions by capturing decision records and optimization techniques during initial code generation. These records are stored and subsequently used to guide code regeneration, allowing the system to maintain continuity without performing complete re-validation from scratch.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system utilizes feedback mechanisms by storing decision records from previous generation steps and using them as input for subsequent generation. This feedback loop enables the system to leverage historical information to reduce redundant validation work while maintaining code accuracy.

Inventive Principle:
Principle #23Feedback

2Manufacturing precision

If code generation uses multiple decision steps and optimization techniques, then code quality improves, but complexity of generation process increases

Engineering Contradiction:
Improvecode qualityVSAvoidgeneration process complexity
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The complex code generation process is segmented into distinct decision steps, each with its own optimization techniques. By breaking down the generation process into manageable segments and capturing decisions at each stage, the system manages complexity while maintaining high code quality through structured approach.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system introduces intermediary decision records that mediate between the complex generation process and the final code output. These records serve as intermediaries that capture essential decisions and optimization choices, simplifying the overall process management while preserving code quality information.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Productivity

If code continuity is maintained from previous versions, then validation requirements reduce, but ability to apply new optimizations may be limited

Engineering Contradiction:
Improvegeneration efficiencyVSAvoidoptimization application
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The system implements dynamic code generation by allowing the degree of continuity to be adjusted based on model modification severity. The system can operate in different modes: maintaining full continuity for minor changes, applying partial continuity for moderate changes, and performing complete regeneration for major changes, thus balancing efficiency with optimization capability.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes parameters of code generation based on the context. By modifying generation parameters such as continuity level, optimization applicability, and validation scope according to the specific model modification scenario, the system achieves both efficiency and adaptability.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS9891894B1Code continuity preservation during automatic code generation
Publication Date: 2018.02.13 MATHWORKS INC
  • US9891894B1 patent drawing
  • US9891894B1 patent drawing
  • US9891894B1 patent drawing

AI summary

A device may receive a model for code generation. The device may determine to preserve continuity with a first generated code associated with the model. The device may receive, based on determining to preserve continuity, a first generation record associated with the first generated code. The first generation record may include information associated with generation of the first code. The device may generate second code based on the model and the first generation record. The device may create a second generation record based on the second generated code. The second generation record may include information associated with generation of the second code. The device may provide the second generated code.