Source Code Analysis Device With Automated Correction Example Generation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional source code analysis tools only detect defects in software code but rely on user knowledge and experience for correction, lacking an automated suggestion for defect fixes.

Innovation Solution

A source code analysis device with a syntax analysis unit, defect detection unit, and correction example generation unit that extracts information from source code, detects defects, and provides specific correction examples, such as adding, replacing, or deleting code lines, to facilitate objective and improved defect correction.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of repair

If only defect detection function is provided, then the device complexity is reduced, but the ease of repair deteriorates because correction depends on user knowledge and experience

Engineering Contradiction:
Improveease of defect correctionVSAvoiddevice complexity
Core Design Contradiction:
Ease of repairVSDevice complexity

Solution Approach 1:

The system performs self-service by automatically generating correction examples for detected defects without requiring external expert intervention. The correction example generation unit creates suggested fixes based on the detected defect information, enabling the system to assist in its own repair process and reducing dependency on user expertise.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The correction example generation unit acts as an intermediary between the defect detection unit and the user. It translates detected defect information into actionable correction examples, serving as a mediator that bridges the gap between problem identification and solution implementation, thereby easing the repair process.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of repair

If correction example generation is added, then the ease of repair is improved, but the device complexity increases due to additional processing units

Engineering Contradiction:
Improveease of defect correctionVSAvoiddevice complexity
Core Design Contradiction:
Ease of repairVSDevice complexity

Solution Approach 1:

The correction example generation unit is integrated into the existing source code analysis device architecture, merging the correction generation functionality with the defect detection framework. This combining approach allows the system to provide enhanced repair capabilities while maintaining a unified and manageable device structure.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The correction example generation unit is designed to handle multiple types of defects and generate various forms of correction examples (code modifications, configuration changes, etc.). This multi-functionality allows a single unit to address diverse repair scenarios, reducing the need for multiple specialized components and thereby limiting the increase in device complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Productivity

If manual correction is required, then the device complexity is reduced, but the productivity deteriorates due to reliance on personal knowledge and experience

Engineering Contradiction:
Improvedefect correction efficiencyVSAvoiddevice complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The system enhances productivity by performing self-service through automatic correction example generation. Instead of requiring users to manually search for and apply corrections based on personal knowledge, the system autonomously generates suggested fixes, significantly improving defect correction efficiency while maintaining manageable device complexity.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The correction examples are generated in advance as part of the defect analysis process, before the actual correction is applied. This preliminary action prepares the correction solutions ahead of time, allowing users to quickly review and implement fixes without delays caused by searching for correction methods, thereby improving overall productivity.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS10496516B2Source code analysis device, computer program for same, and recording medium thereof
Publication Date: 2019.12.03 SPARROW CO LTD
  • US10496516B2 patent drawing
  • US10496516B2 patent drawing
  • US10496516B2 patent drawing

AI summary

The present invention relates to a source code analysis device, a computer program for the same, and a recording medium thereof. Disclosed is a source code analysis device including: a source code analysis module including: a syntax analysis unit for extracting and refining information required for analysis; a defect detection unit for detecting defect information; a correction example generation unit for generating correction example information or notice information or both; and an analysis result transmission unit for constructing synthesized analysis result information and transmitting the constructed information to an analysis result output module, and the analysis result output module including: a defect output unit for extracting and outputting the defect information from the synthesized analysis result information, and a correction example output unit for extracting and outputting the correction example information and or notice information or both from the synthesized analysis result information.