JP2022045948A5 - - Google Patents
Download PDFInfo
- Publication number
- JP2022045948A5 JP2022045948A5 JP2020151724A JP2020151724A JP2022045948A5 JP 2022045948 A5 JP2022045948 A5 JP 2022045948A5 JP 2020151724 A JP2020151724 A JP 2020151724A JP 2020151724 A JP2020151724 A JP 2020151724A JP 2022045948 A5 JP2022045948 A5 JP 2022045948A5
- Authority
- JP
- Japan
- Prior art keywords
- sorting
- correction candidate
- condition
- attribute
- search
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 claims 33
- 238000011835 investigation Methods 0.000 claims 1
Claims (12)
前記プロセッサは、
ソースコード内の修正候補箇所を検索するための候補条件に基づいて、前記ソースコードから前記修正候補箇所を検索する検索処理と、
前記候補条件とのプログラム上の依存関係に関する仕分条件に基づいて、前記検索処理によって検索された前記修正候補箇所を、仕分けの種類を示す複数の属性のいずれかに仕分ける仕分処理と、
前記仕分処理による仕分結果を出力する出力処理と、
を実行することを特徴とする検索装置。 A search device comprising a processor and a storage device accessible by the processor,
The processor
a search process for searching the correction candidate portion from the source code based on candidate conditions for searching for the correction candidate portion in the source code;
a sorting process for sorting the correction candidate parts retrieved by the search process into one of a plurality of attributes indicating sorting types, based on a sorting condition related to a programmatic dependency relationship with the candidate condition;
an output process for outputting the sorting result of the sorting process;
A search device characterized by executing
前記候補条件と、前記候補条件から順次適用される前記依存関係が異なる一連の仕分条件と、により構成される検索条件にアクセス可能であり、
前記仕分処理では、前記プロセッサは、前記一連の仕分条件のうち前段の仕分条件による仕分結果にしたがった後段の仕分条件に基づいて、前記修正候補箇所を前記複数の属性のいずれかに仕分ける、
ことを特徴とする検索装置。 The search device according to claim 1,
Accessible to a search condition composed of the candidate condition and a series of sorting conditions with different dependencies sequentially applied from the candidate condition,
In the sorting process, the processor sorts the correction candidate part into one of the plurality of attributes based on the latter sorting condition according to the sorting result of the former sorting condition among the series of sorting conditions,
A search device characterized by :
前記複数の属性は、前記修正候補箇所が修正対象であることを示す第1属性、修正対象外であることを示す第2属性、または、前記修正候補箇所について個別調査が必要であることを示す第3属性のうち少なくとも1つを含み、
前記仕分処理では、前記プロセッサは、前記仕分結果が前記第1属性、前記第2属性または前記第3属性となった修正候補箇所を仕分けしない、
ことを特徴とする検索装置。 The search device according to claim 2,
The plurality of attributes are a first attribute indicating that the correction candidate portion is to be corrected, a second attribute indicating that the correction candidate portion is not to be corrected, or indicating that individual investigation is required for the correction candidate portion. including at least one of the third attributes,
In the sorting process, the processor does not sort the correction candidate parts for which the sorting result is the first attribute, the second attribute, or the third attribute.
A search device characterized by :
前記複数の属性は、前記修正候補箇所について詳細な仕分けが必要であることを示す第4属性を含み、
前記仕分処理では、前記プロセッサは、前記前段の仕分条件により前記第4属性を前記仕分結果とした場合の前記後段の仕分条件に基づいて、前記仕分結果が前記第4属性となった修正候補箇所を前記複数の属性のいずれかに仕分ける、
ことを特徴とする検索装置。 The search device according to claim 2,
The plurality of attributes include a fourth attribute indicating that detailed sorting is required for the correction candidate location,
In the sorting process, the processor, based on the latter sorting condition when the sorting result is the fourth attribute according to the sorting condition of the preceding stage, corrects the candidate portion for which the sorting result is the fourth attribute. into one of the plurality of attributes,
A search device characterized by :
前記ソースコードは、前記ソースコード内の文の位置情報を含み、
前記出力処理では、前記プロセッサは、前記修正候補箇所の位置情報を含む前記仕分結果を出力する、
ことを特徴とする検索装置。 The search device according to claim 1,
the source code includes position information of sentences in the source code;
In the output process, the processor outputs the sorting result including the position information of the correction candidate location.
A search device characterized by:
前記プロセッサは、
前記候補条件とのプログラム上の依存関係と、前記候補条件に一致した修正候補箇所または不一致な修正候補箇所に付与すべき属性と、の入力を受け付ける入力処理を実行し、
前記仕分処理では、前記プロセッサは、前記入力処理によって入力された依存関係に関する仕分条件に一致した修正候補箇所については、前記仕分条件に一致した修正候補箇所に付与すべき属性が入力されていれば当該属性を付与し、前記入力処理によって入力された依存関係に関する仕分条件に不一致な修正候補箇所については、前記仕分条件に不一致な修正候補箇所に付与すべき属性が入力されていれば当該属性を付与する、
ことを特徴とする検索装置。 The search device according to claim 1,
The processor
executing an input process for receiving input of a programmatic dependency with the candidate condition and an attribute to be given to the correction candidate portion that matches the candidate condition or the correction candidate portion that does not match the candidate condition;
In the sorting process, if an attribute to be given to a correction candidate part that matches the sorting condition is input, the processor performs If the attribute is given and the attribute to be given to the correction candidate part that does not match the sorting condition is input for the correction candidate part that does not match the sorting condition related to the dependency relationship input by the input process, the attribute is added. Give,
A search device characterized by:
前記プロセッサは、
前記候補条件とのプログラム上の依存関係と、前記仕分条件に一致した修正候補箇所または不一致な修正候補箇所に付与すべき属性と、の入力を受け付ける入力処理を実行し、
前記仕分処理では、前記プロセッサは、前記入力処理によって入力された依存関係に関する仕分条件に一致した修正候補箇所については、前記仕分条件に一致した修正候補箇所に付与すべき属性が入力されていれば当該属性を付与し、前記入力処理によって入力された依存関係に関する仕分条件に不一致な修正候補箇所については、前記仕分条件に不一致な修正候補箇所に付与すべき属性が入力されていれば当該属性を付与する、
ことを特徴とする検索装置。 The search device according to claim 1,
The processor
executing an input process for receiving input of a programmatic dependency with the candidate condition and an attribute to be given to the correction candidate part that matches the sorting condition or the correction candidate part that does not match the sorting condition;
In the sorting process, if an attribute to be given to a correction candidate part that matches the sorting condition is input, the processor performs If the attribute is given and the attribute to be given to the correction candidate part that does not match the sorting condition is input for the correction candidate part that does not match the sorting condition related to the dependency relationship input by the input process, the attribute is added. Give,
A search device characterized by:
前記入力処理では、前記プロセッサは、前記依存関係として、着目対象となる前記修正候補箇所と、前記着目対象からの前記ソースコード上の検索方向と、構文要素の種別と、の入力を受け付ける、
ことを特徴とする検索装置。 The search device according to claim 6,
In the input process, the processor receives, as the dependency relationship, the correction candidate portion to be focused on, a search direction in the source code from the focused target, and a type of syntactic element.
A search device characterized by:
前記入力処理では、前記プロセッサは、前記依存関係として、着目対象となる前記修正候補箇所と、前記着目対象からの前記ソースコード上の検索方向と、検索文字列と、の入力を受け付ける、
ことを特徴とする検索装置。 The search device according to claim 6,
In the input process, the processor receives, as the dependency relationship, the correction candidate location to be focused on, a search direction on the source code from the focused target, and a search character string.
A search device characterized by:
前記入力処理では、前記プロセッサは、前記ソースコードの構文木に関する仕分条件の入力を受け付け、
前記仕分処理では、前記プロセッサは、前記入力処理によって入力された依存関係および構文木に関する仕分条件に一致した修正候補箇所については、前記仕分条件に一致した修正候補箇所に付与すべき属性が入力されていれば当該属性を付与し、前記入力処理によって入力された依存関係および構文木に関する仕分条件に不一致な修正候補箇所については、前記仕分条件に不一致な修正候補箇所に付与すべき属性が入力されていれば当該属性を付与する、
ことを特徴とする検索装置。 The search device according to claim 6,
In the input processing, the processor receives input of sorting conditions related to the syntax tree of the source code,
In the sorting process, the processor inputs an attribute to be given to the correction candidate part that matches the sorting condition for the correction candidate part that matches the dependency relation and the sorting condition regarding the syntax tree input by the input process. If there is, the attribute is given, and for the correction candidate parts that do not match the sorting conditions related to the dependencies and syntax trees input by the input process, the attributes that should be given to the correction candidate parts that do not match the sorting conditions are input. If there is, give the attribute,
A search device characterized by:
前記検索方法は、
前記プロセッサが、
ソースコード内の修正候補箇所を検索するための候補条件に基づいて、前記ソースコードから前記修正候補箇所を検索する検索処理と、
前記候補条件とのプログラム上の依存関係に関する仕分条件に基づいて、前記検索処理によって検索された前記修正候補箇所を、仕分けの種類を示す複数の属性のいずれかに仕分ける仕分処理と、
前記仕分処理による仕分結果を出力する出力処理と、
を実行することを特徴とする検索方法。 A search method executed by a search device having a processor and a storage device accessible by the processor,
The search method is
the processor
a search process for searching the correction candidate portion from the source code based on candidate conditions for searching for the correction candidate portion in the source code;
a sorting process for sorting the correction candidate parts retrieved by the search process into one of a plurality of attributes indicating sorting types, based on a sorting condition related to a programmatic dependency relationship with the candidate condition;
an output process for outputting the sorting result of the sorting process;
A search method characterized by executing
ソースコード内の修正候補箇所を検索するための候補条件に基づいて、前記ソースコードから前記修正候補箇所を検索する検索処理と、
前記候補条件とのプログラム上の依存関係に関する仕分条件に基づいて、前記検索処理によって検索された前記修正候補箇所を、仕分けの種類を示す複数の属性のいずれかに仕分ける仕分処理と、
前記仕分処理による仕分結果を出力する出力処理と、
を実行させることを特徴とする検索プログラム。 to the processor,
a search process for searching the correction candidate portion from the source code based on candidate conditions for searching for the correction candidate portion in the source code;
a sorting process for sorting the correction candidate parts retrieved by the search process into one of a plurality of attributes indicating sorting types, based on a sorting condition related to a programmatic dependency relationship with the candidate condition;
an output process for outputting the sorting result of the sorting process;
A search program characterized by executing
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020151724A JP7469999B2 (en) | 2020-09-10 | 2020-09-10 | Search device, search method, and search program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020151724A JP7469999B2 (en) | 2020-09-10 | 2020-09-10 | Search device, search method, and search program |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2022045948A JP2022045948A (en) | 2022-03-23 |
JP2022045948A5 true JP2022045948A5 (en) | 2023-02-10 |
JP7469999B2 JP7469999B2 (en) | 2024-04-17 |
Family
ID=80779629
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020151724A Active JP7469999B2 (en) | 2020-09-10 | 2020-09-10 | Search device, search method, and search program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7469999B2 (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3910831B2 (en) | 2000-11-27 | 2007-04-25 | 富士通株式会社 | Program development support device, recording medium, and program |
IN2013MU03461A (en) | 2013-10-31 | 2015-07-17 | Tata Consultancy Services Ltd | |
JP7068752B2 (en) | 2018-03-22 | 2022-05-17 | 三菱電機株式会社 | Source code analyzer and source code analysis program |
-
2020
- 2020-09-10 JP JP2020151724A patent/JP7469999B2/en active Active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7131199B2 (en) | Automatic identification of related software projects for cross-project learning | |
Higo et al. | Incremental code clone detection: A PDG-based approach | |
US8185878B2 (en) | Program maintenance support device, program maintenance supporting method, and program for the same | |
US20130179863A1 (en) | Bug variant detection using program analysis and pattern identification | |
Semura et al. | Ccfindersw: Clone detection tool with flexible multilingual tokenization | |
CN112364024A (en) | Control method and device for batch automatic comparison of table data | |
CN113901474A (en) | Vulnerability detection method based on function-level code similarity | |
CN111159268B (en) | Method and device for running ETL (extract-transform-load) process in Spark cluster | |
CN115373737B (en) | Code clone detection method based on feature fusion | |
JP2016177359A (en) | Search device and program | |
Stengel-Eskin et al. | Regal: Refactoring programs to discover generalizable abstractions | |
US10496519B2 (en) | Method invocation synthesis for software program repair | |
US9727635B2 (en) | Combined code searching and automatic code navigation | |
CN117851101A (en) | Warehouse level code defect automatic repairing method based on large language model | |
JP2022045948A5 (en) | ||
Anderson et al. | Supporting analysis of SQL queries in PHP AiR | |
US11366742B2 (en) | Automated identification of lines of code related to errors field | |
US8661061B2 (en) | Data structure, data structure generation method, information processing apparatus, information processing system, and computer-readable storage medium having stored therein information processing program | |
JP2011113147A (en) | Source analysis program, preprocessor, lexer and syntax tree analysis program | |
CN114676155A (en) | Code prompt information determining method, data set determining method and electronic equipment | |
US7305373B1 (en) | Incremental reduced error pruning | |
Muhlgay et al. | Value-based search in execution space for mapping instructions to programs | |
KR20050065015A (en) | System and method for checking program plagiarism | |
JP6665029B2 (en) | Language analysis device, language analysis method, and program | |
US20060095900A1 (en) | Semantic processor for a hardware database management system |