SOURCE CODE CORRECTION APPARATUS, SOURCE CODE CORRECTION METHOD, AND PROGRAM
To reduce computational complexity required for correction and reduce correction time, in automatic repair of a source code.SOLUTION: A source code correction apparatus includes: a detection unit for detecting a bug by applying a plurality of test cases to a source code to execute a test; a specifyi...
Saved in:
Main Authors | , , |
---|---|
Format | Patent |
Language | English Japanese |
Published |
27.09.2021
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | To reduce computational complexity required for correction and reduce correction time, in automatic repair of a source code.SOLUTION: A source code correction apparatus includes: a detection unit for detecting a bug by applying a plurality of test cases to a source code to execute a test; a specifying unit which specifies, when a bug is detected, candidates of an area to be corrected in the source code on the basis of a result of the test; and a correction unit which repeatedly corrects each of lines included in the candidate areas. The specifying unit extracts lines satisfying a predetermined condition based on modification history information of the source code, as a priority area, out of the lines included in the candidate areas. The correction unit corrects the lines extracted as the priority area, preferentially.SELECTED DRAWING: Figure 1
【課題】ソースコードの自動修復において、修正に要する処理量の低減、修正時間の短縮を図る。【解決手段】ソースコード修正装置は、対象ソースコードに対し、複数のテストケースを適用してテストを実行することで、バグの有無を検出する検出部と、前記バグが検出された場合に、前記テストの結果に基づいて前記対象ソースコードのうち修正すべき領域の候補である候補領域を特定する特定部と、前記候補領域に含まれる各行に対して繰り返し修正を行う修正部と、を備え、前記特定部は、前記候補領域に含まれる行のうち、前記対象ソースコードの変更履歴情報に基づく所定の条件を満たす行を優先領域として抽出し、前記修正部は、前記優先領域として抽出された行を優先して前記修正を行う。【選択図】図1 |
---|---|
Bibliography: | Application Number: JP20200045483 |