Source Code Violation Correction via Merged Candidate Rules

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing source code analysis tools require significant manual effort and user expertise to correct detected defects, making it time-consuming to address thousands to tens of thousands of defects, even simple ones.

Innovation Solution

A method for automatically correcting source code violations through detection, generation of correction information, merging of multiple correction pieces, and applying these corrections to the source code, using predetermined rules to arrange and apply the corrections efficiently.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If a static analysis tool is used to detect defects in source code, then defect detection capability is improved, but the time required to correct numerous defects increases significantly

Engineering Contradiction:
Improvedefect detection capabilityVSAvoidtime required to correct defects
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system performs preliminary actions by automatically generating multiple candidate correction information pieces for each detected defect before the user needs to correct them. This includes analyzing the defect, generating various correction options, and preparing them in advance, so when the user reviews the defects, the correction work has already been substantially completed automatically.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system enables self-service by allowing the source code analysis apparatus to automatically correct defects using the generated correction information without requiring external human intervention for each defect. The apparatus serves itself by autonomously processing defects through automated correction workflows, reducing the burden on users.

Inventive Principle:
Principle #25Self-service

2Manufacturing precision

If manual correction of defects is performed by users, then correction accuracy can be maintained, but productivity decreases due to repetitive manual work

Engineering Contradiction:
Improvecorrection accuracyVSAvoiddefect correction speed
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

The system uses copying by creating multiple candidate correction information pieces that replicate potential correction approaches for each defect. These candidate corrections are generated based on analysis of the defect and can be automatically applied to the source code, allowing rapid correction while maintaining accuracy through multiple verified options.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The system applies parameter changes by automatically modifying source code parameters and structures based on the generated correction information. The correction information includes specific changes to code parameters, variable names, and structural elements, which are automatically applied to transform the defective code into corrected code.

Inventive Principle:
Principle #35Parameter changes

3Adaptability or versatility

If multiple pieces of correction information are generated for each defect, then correction options increase, but the complexity of managing and applying these corrections increases

Engineering Contradiction:
Improvecorrection optionsVSAvoidcorrection management complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The system applies segmentation by dividing the correction process into distinct modules: defect analysis, candidate correction generation, correction information management, and automated application. Each module handles a specific aspect of the correction workflow, making the complex process of managing multiple correction options more organized and manageable through clear separation of functions.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS10261884B2Method for correcting violation of source code and computer readable recording medium having program performing the same
Publication Date: 2019.04.16 SURESOFT TECH
  • US10261884B2 patent drawing
  • US10261884B2 patent drawing
  • US10261884B2 patent drawing

AI summary

The present disclosure relates to a method for correcting violation of a source code and a computer readable recording medium having a program performing the same, and more particularly to a method for correcting violation of a source code, which automatically corrects the defect of a source code and a computer readable recording medium having a program performing the same. The method for correcting violation of a source code includes: a violation detection step in which a source code is analyzed and one or multiple violations are detected; a correction information generation step in which multiple pieces of the correction information for correcting the detected violation are generated; a correction information merging step in which the multiple pieces of the generated correction information are merged; and a correction step in which the source code is corrected on the basis of the merged correction information.