JP2007179488A - Program for predicting source code problem - Google Patents

Program for predicting source code problem Download PDF

Info

Publication number
JP2007179488A
JP2007179488A JP2005380256A JP2005380256A JP2007179488A JP 2007179488 A JP2007179488 A JP 2007179488A JP 2005380256 A JP2005380256 A JP 2005380256A JP 2005380256 A JP2005380256 A JP 2005380256A JP 2007179488 A JP2007179488 A JP 2007179488A
Authority
JP
Japan
Prior art keywords
function
source code
information
execution frequency
call
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
Application number
JP2005380256A
Other languages
Japanese (ja)
Other versions
JP4914609B2 (en
Inventor
Satoru Nakajima
哲 中島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2005380256A priority Critical patent/JP4914609B2/en
Publication of JP2007179488A publication Critical patent/JP2007179488A/en
Application granted granted Critical
Publication of JP4914609B2 publication Critical patent/JP4914609B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technique for predicting source code problems, capable of improving detection accuracy of the problems in software static analysis. <P>SOLUTION: In the source code problem prediction program 20, function calling string information 31 to an exception processing information table 34 and a detection result table 36 are generated from a source code 40 and a detection function list 41 by a word/syntax analysis part 21, a detection part 22, a function calling string extraction part 23 to an exception processing information extraction part 26, and a function calling relation information 35 is generated from them by a function calling relation information generation part 27. An execution frequency information table 37 is generated from function calling relation information 35 and a weight definition table 42 by an execution frequency prediction part 28, and a detection result report 50 is generated from the detection result table 36, the execution frequency information table 37 and a rank definition table 43 by an execution frequency prediction part 28. Functions of problem are effectively narrowed using the detection function list 41, the weight definition table 43 and the rank definition table 43, and ranked and displayed. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、ソースコード問題予測技術に関し、たとえば、ソフトウェアレビュー工程におけるソースコード品質の検証、管理、評価作業等に適用して有効な技術に関する。   The present invention relates to a source code problem prediction technique, for example, a technique effective when applied to verification, management, evaluation work, etc. of source code quality in a software review process.

近年、様々なソフトウェア開発において、ソフトウェアの大規模化・多様化に伴い、低コストで高品質を確保したいという要求が強まっている。
低コストでソフトウェアを高品質化する技術としては、ソフトウェア静的解析がある。ソフトウェア静的解析は、ソースコード(以下ソース)を解析し様々な問題検出を行うものである。
In recent years, in various software developments, with the increasing scale and diversification of software, there is an increasing demand for ensuring high quality at a low cost.
Software static analysis is a technique for improving software quality at low cost. In software static analysis, source code (hereinafter referred to as source) is analyzed to detect various problems.

プロファイラ、デバッガ、その他、一般のテスト技術では、プログラム実行時の情報(動作ログ等)を必要とする。
これらのテスト技術とは異なり、ソフトウェア静的解析では、ソースを対象とするため、開発工程のより上流の設計・コーディング工程での問題検出作業に利用できる。すなわち、シミュレーションや実機テスト前に問題の発見が可能である。このように早期にプログラムの問題を発見できる分、修正コストを削減でき、ソフトウェアの低コスト化、高性能化が見込める。
A profiler, a debugger, and other general test techniques require information at the time of program execution (such as operation logs).
Unlike these test techniques, software static analysis targets the source and can be used for problem detection work in the design and coding process upstream of the development process. In other words, it is possible to find problems before simulation or actual machine test. As the problem of the program can be discovered early in this way, the correction cost can be reduced, and the cost and performance of the software can be reduced.

しかしながら、ソフトウェア静的解析では実行時情報を使わない分、実行時に起きる問題の予測をどう高精度で実現するかが技術的課題となるが、従来の製品はいずれも低い予測精度に留まっている。   However, software static analysis does not use run-time information, so it is a technical issue how to accurately predict problems that occur at run time. However, all of the conventional products have low prediction accuracy. .

すなわち、従来製品はいずれも、問題の可能性がある対象(関数呼出し等)を定義しておき、それらをソース中から一律に検索して出力する。このため、実際には問題にならないものも多く検出してしまい低精度となる。   That is, all the conventional products define objects (function calls, etc.) that may be problematic, and search and output them uniformly from the source. For this reason, many things that are not actually a problem are detected, resulting in low accuracy.

この結果、問題の軽重に関係なく多数の関数をレビューする必要があり、ソフトウェア開発のソースレビユー工程における工数が増大する。
さらに、肝心の問題部分の出力結果が、大量の問題にならない部分の出力情報に埋もれてしまい、視認性や操作性が低下するため、支援プログラム自体の利用率も低くなる。
As a result, it is necessary to review a large number of functions regardless of the weight of the problem, and the man-hour in the source review process of software development increases.
Furthermore, the output result of the important problem part is buried in a large amount of output information that does not cause a problem, and the visibility and operability are lowered, so the utilization rate of the support program itself is also lowered.

なお、特許文献1には、オブジェクト指向プログラムの実行性能を劣化させる可能性のあるクラス名、処理名、処理パターンを実行環境毎に性能劣化情報として予め蓄積し、この性能劣化情報に基づいてソースコードを静的に解析し、ソースコード中で実行性能を劣化させる可能性のある箇所を表示する技術が開示されている。   In Patent Document 1, a class name, a process name, and a processing pattern that may degrade the execution performance of an object-oriented program are accumulated in advance as performance degradation information for each execution environment, and a source based on this performance degradation information is stored. A technique for statically analyzing a code and displaying a portion in the source code that has a possibility of degrading execution performance is disclosed.

しかし、この特許文献1の場合には、ソースに含まれる条件分岐構造等の制御構造をきめ細かく分析するものではないため、問題部分の検出精度が比較的低くなる懸念がある。
特開2002−73369号公報
However, in the case of Patent Document 1, since the control structure such as the conditional branch structure included in the source is not analyzed in detail, there is a concern that the detection accuracy of the problem portion may be relatively low.
JP 2002-73369 A

本発明の目的は、ソフトウェア静的解析における問題箇所の検出精度を向上させることが可能なソースコード問題予測技術を提供することにある。
本発明の他の目的は、ソフトウェア開発の設計工程およびレビュー工程における工数の削減を実現することが可能なソースコード問題予測技術を提供することにある。
An object of the present invention is to provide a source code problem prediction technique capable of improving the detection accuracy of a problem location in software static analysis.
Another object of the present invention is to provide a source code problem prediction technique capable of reducing man-hours in the design process and review process of software development.

本発明の他の目的は、ソフトウェア開発の設計工程およびレビュー工程において、ユーザの評価や過去の経験に基づいて問題箇所の検出方法の最適化を行うことが可能なソースコード問題予測技術を提供することにある。   Another object of the present invention is to provide a source code problem prediction technique capable of optimizing a method for detecting a problem location based on user evaluation and past experience in a software development design process and a review process. There is.

本発明の他の目的は、ソフトウェア開発の設計工程およびレビュー工程を支援するソースコード問題予測プログラムの視認性や操作性を向上させることにある。   Another object of the present invention is to improve the visibility and operability of a source code problem prediction program that supports the design process and review process of software development.

本発明の第1の観点は、プログラムのソースコードに含まれる関数の呼出し関係、繰返し構造、条件分岐構造の少なくとも一つに関する制御構造情報を抽出する処理と、
前記制御構造情報から前記プログラムの実行時に高頻度で繰返し実行される特定領域を予測する処理と、
前記特定領域について、予め与えられた特定の関数の呼出しが存在するか調べ、存在した前記特定の関数を予測された当該特定領域の実行頻度に基づいてランク付けして表示する処理と、
をコンピュータに実行させるソースコード問題予測プログラムを提供する。
A first aspect of the present invention is a process for extracting control structure information related to at least one of a function calling relationship, a repetition structure, and a conditional branch structure included in a source code of a program;
A process of predicting a specific area that is repeatedly executed at a high frequency when the program is executed from the control structure information;
A process for checking whether there is a call to a specific function given in advance for the specific area, and ranking and displaying the specific function that has existed based on the predicted execution frequency of the specific area;
A source code problem prediction program for causing a computer to execute the program is provided.

本発明の第2の観点は、プログラムのソースコードに含まれる関数の呼出し関係、繰返し構造、条件分岐構造の少なくとも一つに関する制御構造情報を抽出するステップと、
前記制御構造情報から前記プログラムの実行時に高頻度で繰返し実行される特定領域を予測するステップと、
前記特定領域について、予め与えられた特定の関数の呼出しが存在するか調べ、存在した前記特定の関数を予測された当該特定領域の実行頻度に基づいてランク付けして表示するステップを、
含むソースコード問題予測方法を提供する。
According to a second aspect of the present invention, there is provided a step of extracting control structure information related to at least one of a function calling relationship, a repetition structure, and a conditional branch structure included in a program source code
Predicting a specific region that is repeatedly executed at a high frequency when the program is executed from the control structure information;
Checking whether there is a call to a specific function given in advance for the specific area, and ranking and displaying the existing specific function based on the predicted execution frequency of the specific area,
Provide a source code problem prediction method including.

本発明の第3の観点は、プログラムのソースコードに含まれる関数の呼出し関係、繰返し構造、条件分岐構造の少なくとも一つに関する制御構造情報を抽出する第1手段と、
前記制御構造情報から前記プログラムの実行時に高頻度で繰返し実行される特定領域を予測する第2手段と、
前記特定領域について、予め与えられた特定の関数の呼出しが存在するか調べ、存在した前記特定の関数を予測された当該特定領域の実行頻度に基づいてランク付けして表示する第3手段と、
を含むソースコード問題予測装置を提供する。
According to a third aspect of the present invention, there is provided a first means for extracting control structure information related to at least one of a function calling relationship, a repetition structure, and a conditional branch structure included in a program source code;
A second means for predicting a specific area that is repeatedly executed at a high frequency when the program is executed from the control structure information;
A third means for checking whether there is a call to a specific function given in advance for the specific area, and ranking and displaying the specific function that has existed based on the predicted execution frequency of the specific area;
A source code problem prediction apparatus including

本発明では、ソース中で、実行時にボトルネックになりやすい部分(高頻度で実行される部分)を推定し、その部分に絞り込んだ検索を行うことで、問題部分の検出精度を向上させる。   In the present invention, a portion that is likely to become a bottleneck at the time of execution (a portion that is frequently executed) is estimated in the source, and a search narrowed down to that portion is performed to improve the detection accuracy of the problem portion.

たとえば高頻度で実行される部分の予測は、以下のようにして行う。関数間の呼出し関係と、各関数内のループや条件分岐等の制御構文(if文等)の関係をソースコードから抽出し、それらに対して、制御構文の性質を表す重みを付ける。この重みに基づき、関係する重みの合計が高い関数を、実行頻度が高い関数と予測する。   For example, the prediction of the part executed frequently is performed as follows. A call relationship between functions and a control syntax (such as an if statement) such as a loop or conditional branch in each function are extracted from the source code, and a weight indicating the nature of the control syntax is given to them. Based on this weight, a function having a high sum of related weights is predicted as a function having a high execution frequency.

これにより、問題検出の観点から重要な関数が選択的に検出結果として出力され、問題箇所の指摘精度が向上する。この場合、実行頻度の高い順に順位付けして出力してもよい。重要でない関数は出力されないので問題箇所の検出結果の視認性も向上する。また、たとえば外部から経験的に知られた各関数の重要度に応じて重み付けを行うことで、ユーザの評価や経験に則して問題箇所の検出の最適化を実現できる。この結果、高精度の問題指摘を行うことが可能になり、操作性も向上する。   Thereby, an important function from the viewpoint of problem detection is selectively output as a detection result, and the problem point indication accuracy is improved. In this case, the data may be ranked and output in descending order of execution frequency. Since the unimportant function is not output, the visibility of the detection result of the problem portion is improved. Further, for example, by performing weighting according to the importance of each function that is empirically known from the outside, it is possible to optimize the detection of the problem location according to the user's evaluation and experience. As a result, it becomes possible to point out problems with high accuracy and improve operability.

本発明によれば、ソフトウェア静的解析における問題箇所の検出精度を向上させることが可能となる。
また、ソフトウェア開発の設計工程およびレビュー工程における工数の削減を実現することが可能となる。
According to the present invention, it is possible to improve the detection accuracy of a problem location in software static analysis.
In addition, it is possible to reduce man-hours in the software development design process and review process.

また、ソフトウェア開発の設計工程およびレビュー工程において、ユーザの評価や過去の経験に基づいて問題箇所の検出方法の最適化を行うことができる。
また、ソフトウェア開発の設計工程およびレビュー工程を支援するソースコード問題予測プログラムの視認性や操作性を向上させることができる。
Further, in the design process and review process of software development, it is possible to optimize the method for detecting a problem location based on user evaluation and past experience.
Further, the visibility and operability of the source code problem prediction program that supports the design process and review process of software development can be improved.

以下、図面を参照しながら、本発明の実施の形態について詳細に説明する。
図1Aは、本発明の一実施の形態であるソースコード問題予測プログラムおよび方法の作用の一例を示す概念図である。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1A is a conceptual diagram showing an example of the operation of a source code problem prediction program and method according to an embodiment of the present invention.

図1Bは、本発明の一実施の形態であるソースコード問題予測プログラムおよび方法を実施するソースコード問題予測装置の構成の一例を示す概念図である。
図2は、本発明の一実施の形態であるソースコード問題予測プログラムおよび方法の作用の一例を示すフローチャートである。
FIG. 1B is a conceptual diagram showing an example of the configuration of a source code problem prediction apparatus that implements a source code problem prediction program and method according to an embodiment of the present invention.
FIG. 2 is a flowchart showing an example of the operation of the source code problem prediction program and method according to an embodiment of the present invention.

図3は、本実施の形態のソースコード問題予測プログラムで処理されるソースコードの一例を示す説明図である。
まず、図1Bを参照して、本実施の形態のソースコード問題予測装置を構成する情報処理装置10(コンピュータ)の一例について説明する。
FIG. 3 is an explanatory diagram showing an example of source code processed by the source code problem prediction program of the present embodiment.
First, an example of the information processing apparatus 10 (computer) that constitutes the source code problem prediction apparatus according to the present embodiment will be described with reference to FIG. 1B.

本実施の形態の情報処理装置10は、中央処理装置11、主記憶12、外部記憶装置13、ディスプレイ14、情報入力装置15、ネットワークインタフェース16、を含んでいる。   The information processing apparatus 10 according to the present embodiment includes a central processing unit 11, a main memory 12, an external storage device 13, a display 14, an information input device 15, and a network interface 16.

中央処理装置11は、たとえばマイクロプロセッサ等で構成され、主記憶12に実装されたプログラムを実行することで所望の情報処理を行う。
主記憶12は、たとえば半導体メモリで構成され、中央処理装置11が実行するソフトウェアやデータが格納される。
The central processing unit 11 is composed of, for example, a microprocessor and performs desired information processing by executing a program installed in the main memory 12.
The main memory 12 is composed of, for example, a semiconductor memory, and stores software and data executed by the central processing unit 11.

本実施の形態の場合、主記憶12には、オペレーティングシステム18、ソースコード問題予測プログラム20、関数呼出し列情報31、ループ情報表32、条件分岐情報表33、例外処理情報表34、関数呼出し関係情報35、検出結果表36、実行頻度情報表37が格納される。   In the case of the present embodiment, the main memory 12 has an operating system 18, a source code problem prediction program 20, a function call sequence information 31, a loop information table 32, a conditional branch information table 33, an exception handling information table 34, and a function call relationship. Information 35, a detection result table 36, and an execution frequency information table 37 are stored.

中央処理装置11はオペレーティングシステム18を実行することで、情報処理装置10の全体の動作を制御する。
ソースコード問題予測プログラム20は、オペレーティングシステム18の配下で稼働するアプリケーションプログラムである。
The central processing unit 11 controls the overall operation of the information processing apparatus 10 by executing the operating system 18.
The source code problem prediction program 20 is an application program that runs under the operating system 18.

関数呼出し列情報31〜実行頻度情報表37は、ソースコード問題予測プログラム20が実行中に出力する情報である。
外部記憶装置13は、不揮発性の記憶媒体で構成される記憶装置からなる。
The function call sequence information 31 to the execution frequency information table 37 are information that the source code problem prediction program 20 outputs during execution.
The external storage device 13 is composed of a storage device composed of a nonvolatile storage medium.

本実施の形態の場合、この外部記憶装置13には、ソースコード40、検出関数一覧表41、重み定義表42、ランク定義表43、関数重み定義表44、等の情報が保持される。   In the case of the present embodiment, the external storage device 13 holds information such as the source code 40, the detection function list 41, the weight definition table 42, the rank definition table 43, and the function weight definition table 44.

なお、特に図示しないが、この外部記憶装置13には、オペレーティングシステム18、ソースコード問題予測プログラム20も持久的に保持され、必要に応じて主記憶12にロードされて実行される。   Although not particularly illustrated, the external storage device 13 also permanently holds an operating system 18 and a source code problem prediction program 20, and is loaded into the main memory 12 and executed as necessary.

ディスプレイ14には、ソースコード問題予測プログラム20から出力される検出結果レポート50が表示される。
情報入力装置15は、たとえば、キーボード、マウス等のユーザ入力機器からなる。本実施の形態の場合には、ソースコード問題予測プログラム20を制御するための各種情報が必要に応じてユーザから入力される。
A detection result report 50 output from the source code problem prediction program 20 is displayed on the display 14.
The information input device 15 includes user input devices such as a keyboard and a mouse, for example. In the case of the present embodiment, various information for controlling the source code problem prediction program 20 is input from the user as necessary.

ネットワークインタフェース16は、情報処理装置10と、外部の情報ネットワーク17との間における情報の授受を制御する。
たとえば、外部記憶装置13に格納される情報は、必要に応じて、ネットワークインタフェース16を介して情報ネットワーク17から取得するようにしてもよい。
The network interface 16 controls the exchange of information between the information processing apparatus 10 and the external information network 17.
For example, the information stored in the external storage device 13 may be acquired from the information network 17 via the network interface 16 as necessary.

また、ディスプレイ14に出力される検出結果レポート50を情報ネットワーク17に出力することも可能である。
一方、図1Aに例示されるように、本実施の形態のソースコード問題予測プログラム20は、字句・構文解析部21、検出部22、関数呼出し列抽出部23、ループ情報抽出部24、条件分岐抽出部25、例外処理情報抽出部26、関数呼出し関係情報生成部27、実行頻度予測部28、レポート出力部29、の各機能ブロックを含んでいる。
It is also possible to output the detection result report 50 output to the display 14 to the information network 17.
On the other hand, as illustrated in FIG. 1A, the source code problem prediction program 20 of the present embodiment includes a lexical / syntax analyzing unit 21, a detecting unit 22, a function call sequence extracting unit 23, a loop information extracting unit 24, a conditional branch. Each functional block includes an extraction unit 25, an exception processing information extraction unit 26, a function call relation information generation unit 27, an execution frequency prediction unit 28, and a report output unit 29.

字句・構文解析部21は、ソースコード40を解析して後述のソースコード解析情報30を出力する。
検出部22は、ソースコード解析情報30と、検出関数一覧表41から検出結果表36を出力する。
The lexical / syntax analyzing unit 21 analyzes the source code 40 and outputs source code analysis information 30 described later.
The detection unit 22 outputs the detection result table 36 from the source code analysis information 30 and the detection function list 41.

関数呼出し列抽出部23は、ソースコード解析情報30を解析して関数呼出し列情報31を出力する。
ループ情報抽出部24は、ソースコード解析情報30を解析してループ情報表32を出力する。
The function call sequence extraction unit 23 analyzes the source code analysis information 30 and outputs function call sequence information 31.
The loop information extraction unit 24 analyzes the source code analysis information 30 and outputs a loop information table 32.

条件分岐抽出部25は、ソースコード解析情報30を解析して条件分岐情報表33を出力する。
例外処理情報抽出部26は、ソースコード解析情報30を解析して例外処理情報表34を出力する。
The conditional branch extraction unit 25 analyzes the source code analysis information 30 and outputs a conditional branch information table 33.
The exception processing information extraction unit 26 analyzes the source code analysis information 30 and outputs an exception processing information table 34.

関数呼出し関係情報生成部27は、関数呼出し列情報31、ループ情報表32、条件分岐情報表33、例外処理情報表34と、検出結果表36を入力して関数呼出し関係情報35を出力する。   The function call relationship information generation unit 27 inputs the function call sequence information 31, the loop information table 32, the conditional branch information table 33, the exception handling information table 34, and the detection result table 36, and outputs the function call relationship information 35.

実行頻度予測部28は、重み定義表42(および/または関数重み定義表44)と、関数呼出し関係情報35を入力して、実行頻度情報表37を出力する。
レポート出力部29は、検出結果表36、実行頻度情報表37と、ランク定義表43を入力して検出結果レポート50を出力する。
The execution frequency prediction unit 28 inputs the weight definition table 42 (and / or the function weight definition table 44) and the function call relation information 35 and outputs the execution frequency information table 37.
The report output unit 29 inputs the detection result table 36, the execution frequency information table 37, and the rank definition table 43 and outputs a detection result report 50.

本実施の形態のソースコード問題予測プログラム20は、図2に例示されるフローチャートのように動作する。
まず、字句・構文解析部21によってソースコード40を解析して図4に例示されるソースコード解析情報30を出力する(ステップ100)。
The source code problem prediction program 20 of this embodiment operates as shown in the flowchart illustrated in FIG.
First, the lexical / syntax analyzing unit 21 analyzes the source code 40 and outputs the source code analysis information 30 illustrated in FIG. 4 (step 100).

次に、検出部22によって、ソースコード解析情報30から、検出関数一覧表41に記述された関数の呼出しを検出し、検出結果表36に記録する(ステップ200)。
次に、関数呼出し列抽出部23によって、ソースコード解析情報30から、関数呼出し列情報31を抽出する(ステップ300)。
Next, the detection unit 22 detects the function call described in the detection function list 41 from the source code analysis information 30 and records it in the detection result table 36 (step 200).
Next, the function call sequence extraction unit 23 extracts the function call sequence information 31 from the source code analysis information 30 (step 300).

次に、ループ情報抽出部24(条件分岐抽出部25)(例外処理情報抽出部26)によって、ソースコード解析情報30からループ情報表32(条件分岐情報表33)(例外処理情報表34)を出力する(ステップ400)。   Next, the loop information extraction unit 24 (conditional branch extraction unit 25) (exception processing information extraction unit 26) converts the loop information table 32 (conditional branch information table 33) (exception processing information table 34) from the source code analysis information 30. Output (step 400).

次に、関数呼出し関係情報生成部27によって、検出結果表36、関数呼出し列情報31、ループ情報表32(条件分岐情報表33)(例外処理情報表34)から、関数呼出し関係情報35を生成する(ステップ500)。   Next, the function call relationship information generation unit 27 generates function call relationship information 35 from the detection result table 36, the function call sequence information 31, and the loop information table 32 (conditional branch information table 33) (exception processing information table 34). (Step 500).

次に、実行頻度予測部28によって、重み定義表42(関数重み定義表44)により、関数呼出し関係情報35から実行頻度情報表37を生成する(ステップ600)。
最後に、実行頻度情報表37、検出結果表36、ランク定義表43から、検出結果レポート50を出力する(ステップ700)。
Next, the execution frequency prediction unit 28 generates the execution frequency information table 37 from the function call relation information 35 by using the weight definition table 42 (function weight definition table 44) (step 600).
Finally, the detection result report 50 is output from the execution frequency information table 37, the detection result table 36, and the rank definition table 43 (step 700).

以下、上述のステップ100〜ステップ700の各々について詳細に説明する。
まず、上述のステップ100では、字句・構文解析部21によって、ソースコード40を解析する。字句・構文解析自体は、ソースコード40に記述されたプログラム言語のパーサ等の解析技術を用いることができる。
Hereinafter, each of step 100 to step 700 described above will be described in detail.
First, in step 100 described above, the lexical / syntax analyzing unit 21 analyzes the source code 40. For the lexical / syntax analysis itself, an analysis technique such as a program language parser described in the source code 40 can be used.

解析の結果、図4に例示されるソースコード解析情報30が作られる。このソースコード解析情報30は、ROOTノードを起点として、各々が、プログラムの関数名、変数名、宣言、等記述要素を保持する複数のノード30aが木構造をなすように記述されている。   As a result of the analysis, source code analysis information 30 illustrated in FIG. 4 is created. The source code analysis information 30 is described so that a plurality of nodes 30a each holding a description element such as a program function name, variable name, declaration, etc. form a tree structure starting from a ROOT node.

[ステップ200の詳細]
図5は、本実施の形態における検出関数一覧表41の構成例を示す概念図である。検出関数一覧表41には、クラス名41a、メソッド名41b、引数型41cが対応付けて格納される。この検出関数一覧表41には、後述のような非推奨関数が設定される。
[Details of Step 200]
FIG. 5 is a conceptual diagram showing a configuration example of the detection function list 41 in the present embodiment. In the detection function list 41, a class name 41a, a method name 41b, and an argument type 41c are stored in association with each other. In the detection function list 41, a deprecated function as described later is set.

次に、検出関数一覧表41と、上述のソースコード解析情報30を入力とし、検出関数一覧表41に記述された関数の呼出しを検索する。図6は、本処理のフローチャートである。   Next, using the detection function list 41 and the above-described source code analysis information 30 as inputs, a function call described in the detection function list 41 is searched. FIG. 6 is a flowchart of this processing.

ここで、図3のJavaソースコード(擬似コード)では、複数の関数が定義されており、それらの関数中では別の関数を呼び出している。f100、f101等の関数は、その中でLinkedListクラスのget関数、Vectorクラスのinsert関数を呼んでいる。それらは一般に、高頻度で呼ぶと性能劣化を引き起こす関数として知られている。検出関数一覧表41は、そのような問題となる非推奨の関数を事前にユーザが定義したものである。   Here, in the Java source code (pseudo code) of FIG. 3, a plurality of functions are defined, and other functions are called in these functions. The functions such as f100 and f101 call the get function of the LinkedList class and the insert function of the Vector class. They are generally known as functions that cause performance degradation when called frequently. The detection function list 41 is a table in which a user defines a deprecated function that causes such a problem in advance.

図6に例示されるように、本処理では、空の検出結果表36を生成し(ステップ201)、検出関数一覧表41を読み込む(ステップ202)。
そして、検出関数一覧表41の中で未処理の検出関数が存在する場合(ステップ203)、その未処理の関数を処理対象として選択し(ステップ204)、ソースコード解析情報30の中から対象関数の呼出しを検索し(ステップ205)、対象関数の呼出しが存在するか判別する(ステップ206)。
As illustrated in FIG. 6, in this process, an empty detection result table 36 is generated (step 201), and the detection function list 41 is read (step 202).
If an unprocessed detection function exists in the detection function list 41 (step 203), the unprocessed function is selected as a processing target (step 204), and the target function is selected from the source code analysis information 30. Is called (step 205), and it is determined whether there is a call to the target function (step 206).

対象関数の呼出しが存在する場合には、検出された呼出しに連番でID(呼出しID36a)を割り当て(ステップ208)、検出結果表36に、ID、関数名、呼出しの存在箇所(行番号)を登録する(ステップ209)。   If there is a call to the target function, an ID (call ID 36a) is assigned to the detected call with a serial number (step 208), and the ID, function name, call location (line number) is assigned to the detection result table 36. Is registered (step 209).

そして、当該関数を処理済みとして(ステップ207)、ステップ203に戻って、検出関数一覧表41に登録された全ての関数について反復する。
この図6に示すフローチャートの処理により、図7に例示される検出結果表36の情報が得られる。
Then, assuming that the function has been processed (step 207), the process returns to step 203 and is repeated for all functions registered in the detection function list 41.
Information of the detection result table 36 illustrated in FIG. 7 is obtained by the processing of the flowchart shown in FIG.

検出結果表36には、呼出しID36a、存在箇所36b、検出関数36cが対応付けられて格納されている。
呼出しID36aは検出した関数に順に割当てた識別子である。検出関数36cで特定される各関数には、その呼出しの存在位置(ファイル中の行番号)も抽出し、存在箇所36bとして検出結果表36に記憶している。
In the detection result table 36, a call ID 36a, an existing location 36b, and a detection function 36c are stored in association with each other.
The call ID 36a is an identifier assigned in order to the detected function. For each function specified by the detection function 36c, the presence position (line number in the file) of the call is also extracted and stored in the detection result table 36 as the presence location 36b.

[ステップ300の詳細]
次に、ステップ300では、ソースコード解析情報30から、関数呼出し列情報31を抽出する。図8は、本処理のフローチャートである。
[Details of Step 300]
Next, in step 300, function call sequence information 31 is extracted from the source code analysis information 30. FIG. 8 is a flowchart of this process.

未処理の関数が存在するか判別し(ステップ301)、存在する場合は、ソースコード解析情報30から未処理関数(@1)を取得し(ステップ302)、当該関数を示すノード31aを作成する(ステップ303)。   It is determined whether or not an unprocessed function exists (step 301). If there is, an unprocessed function (@ 1) is acquired from the source code analysis information 30 (step 302), and a node 31a indicating the function is created. (Step 303).

当該関数内にさらに関数呼出しが存在するか判別し(ステップ304)、存在する場合には、さらに、呼び出す関数のノード31aが作成済みか判別する(ステップ305)。
作成済みの場合には、呼び出す関数(@2)を取得し(ステップ306)、上述の関数(@1)から関数(@2)へのリンク31bを作成して(ステップ307)、ステップ301に戻る。
It is determined whether or not there is a function call in the function (step 304). If there is a function call, it is further determined whether or not the function function node 31a has been created (step 305).
If it has been created, the function to be called (@ 2) is acquired (step 306), and the link 31b from the function (@ 1) to the function (@ 2) is created (step 307). Return.

上述のステップ305で、作成済みでなかった場合には、呼び出す関数(@2)のノード31aを作成し、上述の関数(@1)から関数(@2)へのリンク31bを作成して(ステップ307)、ステップ301に戻る。   If it has not been created in step 305, a node 31a of the function (@ 2) to be called is created, and a link 31b from the function (@ 1) to the function (@ 2) is created ( Step 307), returning to Step 301.

上述のステップ304で関数呼出しが存在しなかった場合にはステップ301に戻る。
これにより図9に例示される関数呼出し列情報31が得られる。この関数呼出し列情報31は、ソースコード40に含まれる関数の呼出し関係を、検出結果表36の各検出関数に注目して生成したものである。例えば、呼出しID36aが#3の呼出しは、それに至る関数の呼出し関係のリンク31bをたどっていくと、図9のような形で、「f0→f1→f102→#3」と「f2→f102→#3」の二本の呼出し列となる。
[ステップ400の詳細]
ステップ400により、ソースコード解析情報30からは、ループ情報表32や条件分岐情報表33も抽出する。図10は、ステップ400の詳細を示す本処理のフローチャートである。
If there is no function call in step 304, the process returns to step 301.
Thereby, the function call sequence information 31 illustrated in FIG. 9 is obtained. The function call sequence information 31 is generated by paying attention to each detection function in the detection result table 36 as a function call relationship included in the source code 40. For example, when the call with the call ID 36a of # 3 follows the link 31b related to the call of the function that reaches it, “f0 → f1 → f102 → # 3” and “f2 → f102 → # 3 "is the two call queues.
[Details of Step 400]
In step 400, the loop information table 32 and the conditional branch information table 33 are also extracted from the source code analysis information 30. FIG. 10 is a flowchart of this process showing details of step 400.

まず、空のループ情報表32を生成し(ステップ401)、未処理の関数が存在するか判別する(ステップ402)。
存在する場合には、ソースコード解析情報30から未処理の関数(@1)を取得し(ステップ403)、当該関数内にさらに関数呼出しが存在するか判別する(ステップ404)。
First, an empty loop information table 32 is generated (step 401), and it is determined whether an unprocessed function exists (step 402).
If it exists, an unprocessed function (@ 1) is acquired from the source code analysis information 30 (step 403), and it is determined whether there is a further function call in the function (step 404).

存在する場合には、さらに、呼び出す関数(@2)を取得し(ステップ405)、関数(@1)の中で関数(@2)の呼出しを含むループ構造(たとえば、for文,while文)が存在するか判別する(ステップ406)。   If it exists, the function (@ 2) to be called is further acquired (step 405), and the loop structure including the function (@ 2) call in the function (@ 1) (for example, for statement, while statement) Is determined (step 406).

存在する場合には、ループ構造の情報(ループ構文種別、数)を取得し(ステップ407)、さらに、二つの関数(@1)、関数(@1)をキーとして、抽出したループ構造の情報をループ情報表32に登録して(ステップ408)、ステップ402に戻る。   If it exists, the loop structure information (loop syntax type, number) is acquired (step 407), and further, the extracted loop structure information using two functions (@ 1) and function (@ 1) as keys. Is registered in the loop information table 32 (step 408), and the process returns to step 402.

上述のステップ406、ステップ404で判定条件が不成立の場合はステップ402に戻る。
この処理により、得られるループ情報表32および条件分岐情報表33は、図11および図12のようになる。
If the determination condition is not satisfied in the above-described step 406 and step 404, the process returns to step 402.
By this processing, the loop information table 32 and the conditional branch information table 33 obtained are as shown in FIGS.

すなわち、図11のループ情報表32は、関数ペア32aと種別32bとを対応つけて保持している。たとえば、最初のエントリでは、関数f0の定義中にwhile文があり、その中で関数f1を呼び出していることを表現している。   That is, the loop information table 32 in FIG. 11 holds the function pair 32a and the type 32b in association with each other. For example, the first entry expresses that there is a while statement in the definition of the function f0 and that the function f1 is called in the statement.

図12の条件分岐情報表33は、関数ペア33aと種別33bを対応付けて格納している。意味はループ情報表32の場合と同様である。
このようにループ情報表32、条件分岐情報表33は、関数の呼出しにおいて、関数間に存在するループ(for文やwhile文)や、条件分岐(if文やswitch文)の有無・数を表したものである。
[ステップ500の詳細]
上述のステップ500の処理では、関数呼出し列情報31に対して、ループ情報や条件分岐情報を追加し、図14に例示される関数呼出し関係情報35を生成する。
The conditional branch information table 33 in FIG. 12 stores a function pair 33a and a type 33b in association with each other. The meaning is the same as in the case of the loop information table 32.
Thus, the loop information table 32 and the conditional branch information table 33 indicate the presence / absence / number of loops (for statements and while statements) and conditional branches (if statements and switch statements) existing between functions. It is a thing.
[Details of Step 500]
In the process of step 500 described above, loop information and conditional branch information are added to the function call sequence information 31 to generate function call relationship information 35 illustrated in FIG.

図13は、本処理の一例を示すフローチャートである。ここで生成される関数呼出し関係情報35は、関数の呼出し列に加え、呼出し列内に含まれるループや条件分岐を表現したものになる。関数呼出し関係情報35は、ノード35a、リンク35b、ノード35cを含む。   FIG. 13 is a flowchart illustrating an example of this process. The function call relation information 35 generated here represents a loop or a conditional branch included in the call sequence in addition to the function call sequence. The function call relation information 35 includes a node 35a, a link 35b, and a node 35c.

まず、ループ情報表32に未取得のキー(関数ペア)が存在するか判別し(ステップ501)、存在する場合は、ループ情報表32から未取得のキーを取得し(ステップ502)、ループ情報表32からキーの該当するループ情報を取得する(ステップ503)。   First, it is determined whether or not an unacquired key (function pair) exists in the loop information table 32 (step 501). If there is an unacquired key, an unacquired key is obtained from the loop information table 32 (step 502). The loop information corresponding to the key is obtained from the table 32 (step 503).

そして、関数呼出し関係情報35において、キーが表す二つの関数のノード35aの間にループ情報を表すノード35cを挿入して(ステップ505)、ステップ501に戻る。   Then, in the function call relation information 35, a node 35c representing loop information is inserted between the nodes 35a of the two functions represented by the keys (step 505), and the process returns to step 501.

ステップ501で未取得の関数ペアがないと判定された場合には、条件分岐情報表33に未取得のキー(関数ペア)が存在するか判定する(ステップ506)。
そして、存在する場合は、条件分岐情報表33から未取得のキーを取得し(ステップ507)、条件分岐情報表33からキーの該当する条件分岐情報を取得する(ステップ508)。
If it is determined in step 501 that there is no unacquired function pair, it is determined whether an unacquired key (function pair) exists in the conditional branch information table 33 (step 506).
If it exists, an unacquired key is acquired from the conditional branch information table 33 (step 507), and conditional branch information corresponding to the key is acquired from the conditional branch information table 33 (step 508).

そして、関数呼出し関係情報35において、キーが表す二つの関数のノード35aの間に条件分岐情報を表すノード35cを挿入して(ステップ509)、ステップ506に戻る。   Then, in the function call relation information 35, a node 35c representing conditional branch information is inserted between the nodes 35a of the two functions represented by the keys (step 509), and the process returns to step 506.

ステップ506で未取得のキーが存在しなくなったら終了する。
[ステップ600の詳細]
上述のステップ600では、上記の関数呼出し関係情報35と、図15に例示される重み定義(重み定義表42)から、図16に例示されるフローチャートの処理により、図18に例示される実行頻度情報表37を生成する。各呼出し列において、含まれるループや条件分岐に対し、重み定義表42で指定された重みを付加する。図17は、この処理における関数呼出し関係情報35の状態を例示した概念図である。
If no unacquired key exists in step 506, the process ends.
[Details of Step 600]
In step 600 described above, the execution frequency illustrated in FIG. 18 is obtained from the function call relationship information 35 described above and the weight definition (weight definition table 42) illustrated in FIG. 15 by the processing of the flowchart illustrated in FIG. An information table 37 is generated. In each call sequence, the weight specified in the weight definition table 42 is added to the included loop or conditional branch. FIG. 17 is a conceptual diagram illustrating the state of the function call relationship information 35 in this process.

重みが割当てられた関数呼出し関係情報35から、それぞれの呼出し列について、呼出し列での重み合計を求める。この結果を実行頻度情報表37として生成する。
図15に例示されるように、重み定義表42は、種別42a、構文42b、重み42cを対応付けて保持する。
From the function call relation information 35 to which the weight is assigned, the total weight in the call sequence is obtained for each call sequence. This result is generated as an execution frequency information table 37.
As illustrated in FIG. 15, the weight definition table 42 holds a type 42 a, a syntax 42 b, and a weight 42 c in association with each other.

図18に例示されるように、実行頻度情報表37は、呼出し列37a、重み合計37bを対応つけて保持する。
図19に例示されるように、ランク定義表43は、ランク43a、重み合計43bを対応付けて保持する。
As illustrated in FIG. 18, the execution frequency information table 37 holds a call string 37 a and a total weight 37 b in association with each other.
As illustrated in FIG. 19, the rank definition table 43 holds a rank 43 a and a total weight 43 b in association with each other.

図16の実行頻度予測では、まず、関数呼出し関係情報35と重み定義表42を読み込み(ステップ601)、未処理の末端呼出しが存在するか判定する(ステップ602)。ここで、「末端呼出し」とは、図14の関数呼出し関係情報35において#nで表した呼出しを意味し、たとえば、#1、#2等のノード35aである。   In the execution frequency prediction of FIG. 16, first, the function call relation information 35 and the weight definition table 42 are read (step 601), and it is determined whether there is an unprocessed terminal call (step 602). Here, the “terminal call” means a call represented by #n in the function call relation information 35 of FIG. 14, and is, for example, a node 35a such as # 1, # 2, etc.

そして、未処理の末端呼出しが存在する場合には、未処理の「末端呼出し」を処理対象とし(ステップ603)、重み合計(@2)を0に初期化する(ステップ604)。
そして、未処理の「末端呼出しに至る呼出し列」が存在するか判別する(ステップ605)。ここで、「末端呼出しに至る呼出し列」とは、図14の関数呼出し関係情報35で、#nで示した呼出しが最後に来る呼出し列を意味する。たとえば、図14の例では、#3の場合は、f0→while→f1→for→f102→#3、とf2→for→f102→#3、の二つである。
If there is an unprocessed end call, the unprocessed “end call” is set as the processing target (step 603), and the total weight (@ 2) is initialized to 0 (step 604).
Then, it is determined whether or not there is an unprocessed “call sequence leading to a terminal call” (step 605). Here, the “call sequence leading to the end call” means the call sequence in which the call indicated by #n comes last in the function call relation information 35 of FIG. For example, in the example of FIG. 14, in the case of # 3, f0 → while → f1 → for → f102 → # 3 and f2 → for → f102 → # 3.

ステップ605で未処理の「末端呼出しに至る呼出し列」が存在する場合には、その未処理の「末端呼出しに至る呼出し列」を処理対象として選択する(ステップ606)。
そして、呼出し列を先頭からたどり、重み定義表42の重み定義に従って、各ノード35cに重みを付加する(ステップ607)。
If there is an unprocessed “call sequence leading to the end call” in step 605, the unprocessed “call sequence leading to the end call” is selected as a processing target (step 606).
Then, the call sequence is traced from the top, and a weight is added to each node 35c in accordance with the weight definition in the weight definition table 42 (step 607).

次に、各ノードの重みを合計し、その呼出し列(枝)全体での値(@1)を得る(ステップ608)。
各呼出し列の値(@1)を、重み合計(@2)に加算した後(ステップ609)、ステップ605に戻る。
Next, the weights of the respective nodes are summed up to obtain the value (@ 1) in the entire call sequence (branch) (step 608).
After the value (@ 1) of each call sequence is added to the total weight (@ 2) (step 609), the process returns to step 605.

ステップ605で、未処理の「末端呼出しに至る呼出し列」がないと判定された場合には、処理対象の末端呼出しと、その重み合計(@2)を、実行頻度情報表37に登録して(ステップ610)、ステップ602に戻る。   If it is determined in step 605 that there is no unprocessed “call sequence leading to the end call”, the end call to be processed and its total weight (@ 2) are registered in the execution frequency information table 37. (Step 610), the process returns to Step 602.

ステップ602で、未処理の末端呼出しがなくなったら終了する。
[ステップ700の詳細]
最後に、上述のステップ700では、図19に例示されるランク定義表43のランク定義を用いて、実行頻度情報表37の実行頻度情報と、検出結果表36の関数検出結果(図7)から、図21に例示される検出結果レポート50を生成する。
At step 602, if there are no outstanding end calls, the process ends.
[Details of Step 700]
Finally, in step 700 described above, from the execution frequency information of the execution frequency information table 37 and the function detection result (FIG. 7) of the detection result table 36 using the rank definition of the rank definition table 43 illustrated in FIG. The detection result report 50 illustrated in FIG. 21 is generated.

図19に例示されるように、ランク定義表43は、ランク43aと重み合計43bを対応つけて保持している。本実施の形態の場合、ランク43aは、重み合計43bの大小に応じて、A〜Eの5段階に分類されている。   As illustrated in FIG. 19, the rank definition table 43 holds ranks 43 a and weight sums 43 b in association with each other. In the case of the present embodiment, the rank 43a is classified into five stages A to E according to the size of the total weight 43b.

図20に、本処理フローを示す。ここでは、実行頻度情報表37の値と、ランク定義表43のランク定義を照合し、該当するランク(A〜E)を得る。そのランクと関数検出結果を統合して、検出結果レポート50として出力する。   FIG. 20 shows this processing flow. Here, the value of the execution frequency information table 37 and the rank definition of the rank definition table 43 are collated to obtain the corresponding rank (A to E). The rank and the function detection result are integrated and output as a detection result report 50.

検出結果表36、ランク定義表43、実行頻度情報表37を読み込み(ステップ701)、検出結果表36の各行に対して、以下のステップ703、ステップ704を反復する(ステップ702、ステップ705)。   The detection result table 36, rank definition table 43, and execution frequency information table 37 are read (step 701), and the following steps 703 and 704 are repeated for each row of the detection result table 36 (steps 702 and 705).

すなわち、検出結果表36の関数の呼出しID36aを、実行頻度情報表37で検索し、実行頻度(重み合計37b)を取得する(ステップ703)。
求めた実行頻度について、ランク定義表43の重み合計43bを検索し、該当するランクを取得する(ステップ704)。
That is, the function call ID 36a in the detection result table 36 is searched from the execution frequency information table 37, and the execution frequency (weight total 37b) is acquired (step 703).
For the obtained execution frequency, the total weight 43b in the rank definition table 43 is searched to obtain the corresponding rank (step 704).

その後、取得した各情報をランクでソートして検出結果レポート50を生成する(ステップ706)。
生成された検出結果レポート50は、たとえばディスプレイ14に表示される。
Thereafter, the obtained information is sorted by rank to generate a detection result report 50 (step 706).
The generated detection result report 50 is displayed on the display 14, for example.

図21に例示されるように、検出結果レポート50には、検出ID50a、問題ランク50b、存在箇所50c、検出関数50d、が対応つけて表示されている。
このように、本実施の形態の場合には、検出結果レポート50には、検出関数一覧表41で指定した関数の中から、実行頻度の高い(問題のありそうな)ものが自動的に選択され、ランク付けされて表示されるため、検出結果レポート50の視認性は極めて高い。
As illustrated in FIG. 21, the detection result report 50 displays detection IDs 50a, problem ranks 50b, existing locations 50c, and detection functions 50d in association with each other.
As described above, in the case of the present embodiment, the detection result report 50 is automatically selected from the functions specified in the detection function list 41 with a high execution frequency (probably problematic). Since the ranking is displayed, the visibility of the detection result report 50 is extremely high.

実行頻度の評価方法の変形例について、以下に説明する。
再帰呼出し(関数が自身を内部で呼出す形)は、プログラムの実行が繰返し起きる点で、for文やwhile文と同様に、ループの一種としてみなすことができる。
A modification of the execution frequency evaluation method will be described below.
A recursive call (a form in which a function calls itself internally) can be regarded as a kind of loop in the same way as a for statement and a while statement in that a program is repeatedly executed.

図22(a)に例示されるようにソースコード40中に再帰呼出しがあった場合、一例として、関数呼出し列情報31は、図22(b)のようになる。ここで、関数呼出し関係情報35は、図23のように、再帰呼出しを示すノード35cを挿入して作られる。以降の実行頻度情報表37を生成する処理は、前記と同様になる。   When there is a recursive call in the source code 40 as exemplified in FIG. 22A, as an example, the function call sequence information 31 is as shown in FIG. Here, the function call relation information 35 is created by inserting a node 35c indicating a recursive call as shown in FIG. The subsequent processing for generating the execution frequency information table 37 is the same as described above.

図24(a)〜(c)はこの再帰呼出しの場合における実行頻度情報表37の生成処理の例を示している。
図24(a)のように、関数f10が末端呼出し#6に連なる場合、関数呼出し関係情報35では、再帰呼出しを示す“RC”のノード35cが設定される。
FIGS. 24A to 24C show an example of generation processing of the execution frequency information table 37 in the case of this recursive call.
As shown in FIG. 24A, when the function f10 is connected to the terminal call # 6, the function call relation information 35 is set to the “RC” node 35c indicating the recursive call.

この場合、図24(b)に示すように、重み定義表42の構文42bには、ループの構文として、再帰呼出しを示す“RC”が設定される。
この結果、図24(c)に例示されるように、呼出し列37aが#6に連なる実行頻度は、“RC”の重みを反映した値となる。
In this case, as shown in FIG. 24B, “RC” indicating recursive call is set in the syntax 42b of the weight definition table 42 as the syntax of the loop.
As a result, as illustrated in FIG. 24C, the execution frequency at which the call sequence 37a continues to # 6 is a value reflecting the weight of “RC”.

Java(登録商標)などのオブジェクト指向型プログラミング言語では、継承という仕組みがある。継承を使ったソースコード40−1の例を図25に示す。継承はあるクラス(スーパークラス)を再利用して別のクラス(サブクラス)を作るものである。   In an object-oriented programming language such as Java (registered trademark), there is a mechanism called inheritance. An example of source code 40-1 using inheritance is shown in FIG. Inheritance is the reuse of one class (superclass) to create another class (subclass).

一般にスーパークラスが1つ、サブクラスが複数となることが多い。継承の特徴として、ソースコード40−1の例にあるように、同名の関数が各クラスで定義される。これにより、コード例ではf20という関数を呼んでいるが、これはスーパークラス及び3つのサブクラスのf20のいずれかを呼ぶことになる(どれが実際に呼ばれるかはプログラム実行時に決定される)。   In general, there is often one superclass and multiple subclasses. As a feature of inheritance, a function with the same name is defined in each class, as in the example of the source code 40-1. As a result, in the code example, a function called f20 is called, and this calls one of f20 of the superclass and the three subclasses (which is actually called is determined at the time of program execution).

すなわち、SuperCのf20だけでなく、SubC1〜SubC3のf20が呼ばれる可能性がある(4つのf20のいずれかが呼ばれる)。
従って、継承を使ったクラスの関数呼出しは、一種の分岐処理ともみなすことができる。ここでは、前記のif文やswitch文と同様に、重み付けを行う。本処理を図26、図27、図28に示す。
That is, not only SuperC f20 but also SubC1 to SubC3 f20 may be called (any one of the four f20s is called).
Therefore, a class function call using inheritance can be regarded as a kind of branch processing. Here, weighting is performed in the same manner as the above-mentioned if sentence and switch sentence. This processing is shown in FIG. 26, FIG. 27, and FIG.

図26は、この場合の関数呼出し列情報31を示しており、図27は、この場合の関数呼出し関係情報35を示している。
この関数呼出し関係情報35では、f20それ自身のノード35aの他に承継に該当するノード35dとして、3つの“Inh”が追加されている。
FIG. 26 shows function call sequence information 31 in this case, and FIG. 27 shows function call relation information 35 in this case.
In the function call relation information 35, three "Inh" are added as a node 35d corresponding to succession in addition to the node 35a of f20 itself.

図28(b)に例示される重み定義表42においては、承継に対応する種別42aとして“分岐”が設定され、構文42bには“Inn”が設定され、重み42cには、たとえば−0.2が設定され、図28(a)に例示されるように関数呼出し列情報31のノード35dの“Inn”には対応した重みが付与される。   In the weight definition table 42 illustrated in FIG. 28B, “branch” is set as the type 42a corresponding to inheritance, “Inn” is set in the syntax 42b, and −0. 2 is set, and a corresponding weight is given to “Inn” of the node 35d of the function call sequence information 31 as illustrated in FIG.

この結果、図28(c)のように、実行頻度情報表37においては、末端呼出しの#7では、承継の重みを反映して、実行頻度は、−.6となる。
条件分岐の条件値を実行頻度予測の重み付けに用いることもできる。すなわち、if文やswitch文の条件値も考慮した重み付けを行う。
As a result, as shown in FIG. 28C, in the execution frequency information table 37, in the terminal call # 7, the execution frequency reflects-. 6
The condition value of the conditional branch can also be used for weighting the execution frequency prediction. That is, weighting is performed in consideration of the condition values of the if sentence and the switch sentence.

例えば、エラー処理部分の実行頻度は通常小さい。エラー処理部分は、図29(a)に例示されたソースコード40−2のような表現がされることが多いため、条件値(文字列定数、この場合、“FILE_IO_ERROR”)を見ることで、その分岐がエラー処理であるか否かを予測できる。   For example, the execution frequency of the error processing part is usually small. Since the error processing part is often expressed as in the source code 40-2 illustrated in FIG. 29A, by looking at the condition value (character string constant, in this case “FILE_IO_ERROR”), It can be predicted whether or not the branch is error processing.

このソースコード40−2に対応する関数呼出し列情報31は、図29(b)のようになり、#8の「末端呼出し」の実行頻度の予測に、条件値の判定が寄与する。
この条件分岐がエラー処理部分か否かの判定には、ソースコード解析情報30から、条件値の変数名または定数名を取得する。そして、“ERR”や“ERROR”などの文字列とのマッチングを行う。このマッチングで条件値が類似の文字列と判断した場合は、上述の図29(b)の関数呼出し列情報31に対応して、図30のように関数呼出し関係情報35を生成する。この場合、関数呼出し関係情報35には、評価対象となる条件値に対応した“Val”のノード35dが追加されている。
The function call sequence information 31 corresponding to the source code 40-2 is as shown in FIG. 29B, and the determination of the condition value contributes to the prediction of the execution frequency of “end call” of # 8.
To determine whether or not this conditional branch is an error processing part, the variable name or constant name of the condition value is acquired from the source code analysis information 30. Then, matching with a character string such as “ERR” or “ERROR” is performed. When it is determined by matching that the character string has a similar condition value, function call relation information 35 is generated as shown in FIG. 30 corresponding to the function call string information 31 of FIG. In this case, a “Val” node 35 d corresponding to the condition value to be evaluated is added to the function call relation information 35.

以降は、図31(b)に例示されるように、重み定義表42に、種別42aが条件分岐で、構文42bが“Val”のエントリを設けて、重み42cを設定し、図31(a)に示されるように、関数呼出し関係情報35の“Val”のノード35dに対応した重み値を付与して、上述の処理と同様に、#8の「末端呼出し」に対して、図31(c)に例示される実行頻度情報表37を得る。   Thereafter, as illustrated in FIG. 31B, the weight definition table 42 is provided with an entry in which the type 42a is a conditional branch and the syntax 42b is “Val”, and the weight 42c is set. ), A weight value corresponding to the “Val” node 35d of the function call relation information 35 is assigned, and the “end call” of # 8 is applied to FIG. An execution frequency information table 37 exemplified in c) is obtained.

同様な例として、catch節で表される例外処理も、エラー処理と同様、実行頻度は通常小さい。従って、catch節内の関数呼出しには、実行頻度を下げる重みを付ける。この例を図32に示す。   As a similar example, the exception processing represented by the catch clause is usually less frequently executed as is the case with error processing. Therefore, a function call in the catch clause is given a weight that decreases the execution frequency. This example is shown in FIG.

図32(a)のソースコード40−3の例のように、catch節を含む場合、関数呼出し列情報31は、図32(b)のようになり、例外処理情報表34は、図32(c)のようになり、関数呼出し関係情報35は、図32(d)のようになる。例外処理情報表34は、関数ペア34aと、種別34bを含む。   When the catch clause is included as in the example of the source code 40-3 in FIG. 32A, the function call sequence information 31 is as shown in FIG. 32B, and the exception handling information table 34 is shown in FIG. c), and the function call relation information 35 is as shown in FIG. The exception processing information table 34 includes a function pair 34a and a type 34b.

これにより、上述の条件値の場合と同様に、重み合計として実行頻度を得ることができる。
一般に、たとえば、過去の経験やプログラムの用途等から、プログラム中で高頻度で実行される関数がどれか、ユーザが事前に分かっているケースがある。
As a result, the execution frequency can be obtained as the total weight as in the case of the condition value described above.
In general, for example, there are cases in which the user knows in advance which function is frequently executed in a program based on past experience or the use of the program.

このような場合、以下のように、ユーザが既知の当該関数に関する情報をソースコード問題予測プログラム20に与えることで、上記までの実行頻度の予測処理をより高精度化することができる。   In such a case, the execution frequency prediction processing up to the above can be made more accurate by providing the source code problem prediction program 20 with information related to the function known by the user as described below.

まず、図33(a)に例示されるように関数重み定義表44を用いて、高頻度で実行される関数とその重みをユーザが指定する。この場合、関数重み定義表44は、関数名44aと、対応する重み44bを含む。   First, as shown in FIG. 33A, the user designates a function to be executed frequently and its weight using the function weight definition table 44. In this case, the function weight definition table 44 includes a function name 44a and a corresponding weight 44b.

この関数重み定義表44の重み定義を入力として、図33(b)に例示されるように、関数呼出し関係情報35において、指定された関数にその重みを付加する。以降は、前記と同じ処理を行うことにより、図33(c)に例示されるように、実行頻度情報表37を生成して、重み合計から、実行頻度の予測を行う。   Using the weight definition in the function weight definition table 44 as an input, the weight is added to the specified function in the function call relation information 35 as illustrated in FIG. Thereafter, by performing the same processing as described above, the execution frequency information table 37 is generated as shown in FIG. 33C, and the execution frequency is predicted from the total weight.

図34に本実施の形態の場合の効果と、従来の参考技術の場合とを比較対照して示す。
従来の参考技術の場合は、ソースコード中から一律で関数呼出しを検出するため、それを用いた設計レビューでは、全ての関数を同様にレビューする必要があり、多大な工数を必要とする。また、結果の視認性も劣る。
FIG. 34 compares and contrasts the effects of the present embodiment and the conventional reference technique.
In the case of the conventional reference technique, function calls are detected uniformly from the source code. Therefore, in the design review using the same, it is necessary to review all the functions in the same way, which requires a large number of man-hours. Moreover, the visibility of a result is also inferior.

これに対して、本実施の形態の場合には、重み付けにより、問題の関数を高精度に検出(すなわち本質的な問題を重点的に検出)できるため、それらの関数に絞ったレビューを行えば良い。これにより、設計レビューの工数を大幅に削減できる。   On the other hand, in the case of the present embodiment, problem functions can be detected with high accuracy by weighting (that is, essential problems are detected intensively). good. Thereby, the man-hour for the design review can be greatly reduced.

たとえば、既存のコンピュータで実行される一般のプログラムと異なり、組み込みソフトウェアの開発では、ソフトウェアと実機の開発とが並行して行われることが多いため、実際に実機でソフトウェアを実行して試験する動的試験を開発の早期に実施することが困難な場合が多い。   For example, unlike general programs executed on existing computers, embedded software development often involves parallel development of software and actual equipment. Often, it is difficult to conduct a static test early in development.

このとき、本実施の形態の場合には、上述のような、問題の関数等を高精度で予測して検出することにより、開発工程の早期に効果的なレビューを実施して、有効なソースコードの改善、修正を実現できる、という利点がある。   At this time, in the case of the present embodiment, effective reviews can be performed at an early stage of the development process by predicting and detecting the problem function or the like with high accuracy as described above. There is an advantage that the code can be improved and corrected.

図35は、本実施の形態のソースコード問題予測プログラム20においてディスプレイ14に表示される操作画面と、それに基づく評価処理の作用の一例を示す説明図である。
本実施の形態の場合、単に、ディスプレイ14に検出結果レポート50を表示するだけでなく、ユーザが当該検出結果レポート50を評価し、その評価結果を各種の重みの設定にフィードバックして、一層、ソースコード40における問題の検出精度を向上させることができる。
FIG. 35 is an explanatory diagram showing an example of the operation screen displayed on the display 14 in the source code problem prediction program 20 of the present embodiment and the operation of the evaluation process based on the operation screen.
In the case of the present embodiment, not only the detection result report 50 is simply displayed on the display 14, but also the user evaluates the detection result report 50 and feeds back the evaluation result to various weight settings. The detection accuracy of the problem in the source code 40 can be improved.

すなわち、操作画面には、検出結果レポート50とともにユーザ評価入力領域60を表示させる。このユーザ評価入力領域60には、検出結果レポート50の側の検出ID50aの各行に対応したチェック欄61とコメント欄62が設けられている。   That is, the user evaluation input area 60 is displayed together with the detection result report 50 on the operation screen. This user evaluation input area 60 is provided with a check column 61 and a comment column 62 corresponding to each row of the detection ID 50a on the detection result report 50 side.

チェック欄61は、検出結果レポート50の結果に基づいて、改善が必要な場合を示す「改善」のチェック項目61aと、現在のままでも可を示す「実害なし」のチェック項目61bが設けられている。   Based on the result of the detection result report 50, the check column 61 is provided with an “improvement” check item 61a indicating that improvement is necessary, and a “no actual harm” check item 61b indicating that the present state is acceptable. Yes.

チェック項目61bの「改善」がチェックされた場合には、コメント欄62には、対応する対策が記載される。
チェック項目61aの「実害なし」がチェックされた場合には、検出結果レポート50の側における検出ID50aの関数は、現在のままでも実害がないと判定され、問題検出の観点からは、検出結果レポート50におけるノイズとみなすことができる。
When “improvement” of the check item 61b is checked, a corresponding countermeasure is described in the comment column 62.
When “no actual harm” in the check item 61a is checked, the function of the detection ID 50a on the detection result report 50 side is determined to have no actual harm even if it is present. From the viewpoint of problem detection, the detection result report 50 can be regarded as noise.

そこで、本実施の形態の場合には、チェック項目61aがチェックされた検出ID50aの関数に関係する重み定義表42、関数重み定義表44等における重み値を変更して、問題として検出される可能性やランクを下げる。   Therefore, in the case of the present embodiment, the weight value in the weight definition table 42 and the function weight definition table 44 related to the function of the detection ID 50a for which the check item 61a is checked can be changed and detected as a problem. Lower sex and rank.

すなわち、図35の例では、チェック項目61a「実害なし」がチェックされた項目(この場合、検出ID50aが#2と#1)を抽出し、さらに検出修正対象を絞り込む。この場合、#1は、すでに最低ランク「E」であり、重みの変更は不要と判断して検出ID50aが#2の関数を、重み調整の対象と決定する。   That is, in the example of FIG. 35, the items for which the check item 61a “no actual damage” is checked (in this case, the detection ID 50a is # 2 and # 1) are extracted, and the detection correction targets are further narrowed down. In this case, # 1 is already at the lowest rank “E”, and it is determined that the weight change is unnecessary, and the function whose detection ID 50a is # 2 is determined as a weight adjustment target.

そして、こうして決定された#2について、問題ランク50bの「問題の可能性」のランクが低下するように、重み定義表42、関数重み定義表44等における重みの設定値を変更する。この変更に際しては、他の検出結果の検出精度への影響がより少ない重み設定項目を選択して変更を行う。   Then, for # 2 determined in this way, the weight setting values in the weight definition table 42, the function weight definition table 44, etc. are changed so that the “probability of problem” rank of the problem rank 50b decreases. In this change, the weight setting item that has less influence on the detection accuracy of other detection results is selected and changed.

図35の例では、重み定義表42におけるif文の条件分岐に対する重みを減らす例が示されている。
この結果、図36に例示されるように、実行頻度情報表37は、変更の前後で、図36(a)から図36(b)に変化する。そして、これに応じて、出力される検出結果レポート50においては、検出ID50aが#2の問題ランク50bが、Dから最低のEに変化する。
The example of FIG. 35 shows an example in which the weight for the conditional branch of the “if” sentence in the weight definition table 42 is reduced.
As a result, as illustrated in FIG. 36, the execution frequency information table 37 changes from FIG. 36 (a) to FIG. 36 (b) before and after the change. In response to this, in the output detection result report 50, the problem rank 50b with the detection ID 50a of # 2 changes from D to the lowest E.

これにより、たとえば、問題ランク50bをランクの降順にして検出結果レポート50に表示すれば、「実害なし」の#2は、最後のほうに表示され、問題検出におけるノイズとして目立たなくなり、視認性が向上する。   Thus, for example, if the problem rank 50b is displayed in the descending order of the rank and displayed on the detection result report 50, “No actual harm” # 2 is displayed at the end and becomes inconspicuous as noise in problem detection. improves.

図35の例では、検出結果レポート50における関数の数は、5個であるが、実際のソースコードの評価では、抽出される関数が1000個を超える場合もあり、本実施の形態のように、問題の可能性のある関数に絞り込んで、しかもランク付けして出力することによる視認性や操作性の向上の効果は非常に大きい。   In the example of FIG. 35, the number of functions in the detection result report 50 is 5. However, in actual evaluation of the source code, the number of functions to be extracted may exceed 1000, as in the present embodiment. The effect of improving the visibility and operability by narrowing down to functions that may be problematic and ranking the output is very large.

このように、本実施の形態の場合には、検出結果レポート50として出力された結果に、ユーザの評価を加味して、さらにソースコード40の問題部分の検出精度や、検出結果レポート50の視認性、操作性を向上させることができる。
なお、本発明は、上述の実施の形態に例示した構成に限らず、その趣旨を逸脱しない範囲で種々変更可能であることは言うまでもない。
As described above, in the case of the present embodiment, the user's evaluation is added to the result output as the detection result report 50, and the detection accuracy of the problem portion of the source code 40 and the visual recognition of the detection result report 50 are further added. And operability can be improved.
Needless to say, the present invention is not limited to the configuration exemplified in the above-described embodiment, and various modifications can be made without departing from the spirit of the present invention.

(付記1)
プログラムのソースコードに含まれる関数の呼出し関係、繰返し構造、条件分岐構造の少なくとも一つに関する制御構造情報を抽出する処理と、
前記制御構造情報から前記プログラムの実行時に高頻度で繰返し実行される特定領域を予測する処理と、
前記特定領域について、予め与えられた特定の関数の呼出しが存在するか調べ、存在した前記特定の関数を予測された当該特定領域の実行頻度に基づいてランク付けして表示する処理と、
をコンピュータに実行させることを特徴とするソースコード問題予測プログラム。
(付記2)
付記1記載のソースコード問題予測プログラムにおいて、
前記関数の呼出し列中に含まれる前記繰返し構造と前記条件分岐構造の各々の数を計測し、予め定義された重み定義情報に基づき、各々の前記数の計測値に重みを乗算することで予測される前記実行頻度を計算する処理を、さらに前記コンピュータに実行させることを特徴とするソースコード問題予測プログラム。
(付記3)
付記1記載のソースコード問題予測プログラムにおいて、
再帰呼出しを行う前記関数を抽出し、当該関数内の処理を実行頻度が高い前記特定領域として予測する処理、
オブジェクト指向型プログラムにおける継承の関係にあるクラス群を抽出し、各クラスに宣言されている同一名の前記関数について、クラス数に反比例する実行頻度を割当てる処理、
前記条件分岐構造の条件値となっている変数及び定数について、前記変数及び定数の文字列表現を予め定義されたエラー処理を表す文字列と照合し、類似性が高ければ条件一致時に実行される処理領域に対して低い実行頻度を割当てる処理、
前記関数の呼出し列中に含まれる例外処理の数を計測し、前記例外処理の数に反比例する実行頻度を個々の前記関数に割当てる処理、
特定の前記関数に対するユーザからの重み定義を受け付け、前記重み定義も用いて実行頻度を個々の前記関数に割当てる処理、
の少なくとも一つを、さらに前記コンピュータに実行させることを特徴とするソースコード問題予測プログラム。
(付記4)
プログラムのソースコードに含まれる関数の呼出し関係、繰返し構造、条件分岐構造の少なくとも一つに関する制御構造情報を抽出するステップと、
前記制御構造情報から前記プログラムの実行時に高頻度で繰返し実行される特定領域を予測するステップと、
前記特定領域について、予め与えられた特定の関数の呼出しが存在するか調べ、存在した前記特定の関数を予測された当該特定領域の実行頻度に基づいてランク付けして表示するステップを、
含むことを特徴とするソースコード問題予測方法。
(付記5)
プログラムのソースコードに含まれる関数の呼出し関係、繰返し構造、条件分岐構造の少なくとも一つに関する制御構造情報を抽出する第1手段と、
前記制御構造情報から前記プログラムの実行時に高頻度で繰返し実行される特定領域を予測する第2手段と、
前記特定領域について、予め与えられた特定の関数の呼出しが存在するか調べ、存在した前記特定の関数を予測された当該特定領域の実行頻度に基づいてランク付けして表示する第3手段と、
を含むことを特徴とするソースコード問題予測装置。
(付記6)
付記5記載のソースコード問題予測装置において、
前記第2手段では、前記関数の呼出し列中に含まれる前記繰返し構造と前記条件分岐構造の各々の数を計測し、予め定義された重み定義情報に基づき、各々の前記数の計測値に重みを乗算することで予測される前記実行頻度を計算することを特徴とするソースコード問題予測装置。
(付記7)
付記5記載のソースコード問題予測装置において、
前記第2手段では、再帰呼出しを行う前記関数を抽出し、当該関数内の処理を実行頻度が高い前記特定領域として予測することを特徴とするソースコード問題予測装置。
(付記8)
付記5記載のソースコード問題予測装置において、
前記第2手段では、オブジェクト指向型プログラムにおける継承の関係にあるクラス群を抽出し、各クラスに宣言されている同一名の前記関数について、クラス数に反比例する実行頻度を割当てることを特徴とするソースコード問題予測装置。
(付記9)
付記5記載のソースコード問題予測装置において、
前記第2手段では、前記条件分岐構造の条件値となっている変数及び定数について、前記変数及び定数の文字列表現を予め定義されたエラー処理を表す文字列と照合し、類似性が高ければ条件一致時に実行される処理領域に対して低い実行頻度を割当てることを特徴とするソースコード問題予測装置。
(付記10)
付記5記載のソースコード問題予測装置において、
前記第2手段では、前記関数の呼出し列中に含まれる例外処理の数を計測し、前記例外処理の数に反比例する実行頻度を個々の前記関数に割当てることを特徴とするソースコード問題予測装置。
(付記11)
付記5記載のソースコード問題予測装置において、
特定の前記関数に対するユーザからの重み定義を受け付け、前記第2手段は前記重み定義も用いて実行頻度を個々の前記関数に割当てることを特徴とするソースコード問題予測装置。
(Appendix 1)
A process of extracting control structure information related to at least one of a function calling relationship, a repetition structure, and a conditional branch structure included in a program source code;
A process of predicting a specific area that is repeatedly executed at a high frequency when the program is executed from the control structure information;
A process for checking whether there is a call to a specific function given in advance for the specific area, and ranking and displaying the specific function that has existed based on the predicted execution frequency of the specific area;
A source code problem prediction program that causes a computer to execute.
(Appendix 2)
In the source code problem prediction program described in Appendix 1,
Predicting by measuring the number of each of the repeated structure and the conditional branch structure included in the function call sequence, and multiplying the measured value of each number by a weight based on predefined weight definition information The computer program further causes the computer to execute a process for calculating the execution frequency.
(Appendix 3)
In the source code problem prediction program described in Appendix 1,
Extracting the function that performs recursive call, and predicting the processing within the function as the specific region with high execution frequency,
A process of extracting a class group having an inheritance relationship in an object-oriented program and assigning an execution frequency inversely proportional to the number of classes for the function having the same name declared in each class;
For variables and constants that are the condition values of the conditional branch structure, the character string representation of the variables and constants is compared with a character string that represents a predefined error process. A process that assigns a low execution frequency to the processing area,
A process of measuring the number of exception processes included in the function call sequence and assigning an execution frequency inversely proportional to the number of exception processes to each of the functions;
A process of accepting a weight definition from a user for a specific function and assigning an execution frequency to each of the functions using the weight definition;
A source code problem prediction program that causes the computer to execute at least one of the following.
(Appendix 4)
Extracting control structure information relating to at least one of a function calling relationship, a repetition structure, and a conditional branch structure included in a program source code;
Predicting a specific region that is repeatedly executed at a high frequency when the program is executed from the control structure information;
Checking whether there is a call to a specific function given in advance for the specific area, and ranking and displaying the existing specific function based on the predicted execution frequency of the specific area,
A source code problem prediction method comprising:
(Appendix 5)
First means for extracting control structure information related to at least one of a function calling relationship, a repetition structure, and a conditional branch structure included in a program source code;
A second means for predicting a specific area that is repeatedly executed at a high frequency when the program is executed from the control structure information;
A third means for checking whether there is a call to a specific function given in advance for the specific area, and ranking and displaying the specific function that has existed based on the predicted execution frequency of the specific area;
A source code problem prediction apparatus comprising:
(Appendix 6)
In the source code problem prediction apparatus according to attachment 5,
In the second means, the number of each of the repetitive structure and the conditional branch structure included in the function call sequence is measured, and the measured value of each number is weighted based on predefined weight definition information. A source code problem prediction apparatus characterized by calculating the execution frequency predicted by multiplying.
(Appendix 7)
In the source code problem prediction apparatus according to attachment 5,
The source code problem prediction apparatus characterized in that the second means extracts the function that performs recursive calls and predicts the processing in the function as the specific area with high execution frequency.
(Appendix 8)
In the source code problem prediction apparatus according to attachment 5,
In the second means, a class group having an inheritance relationship in the object-oriented program is extracted, and an execution frequency inversely proportional to the number of classes is assigned to the function having the same name declared in each class. Source code problem prediction device.
(Appendix 9)
In the source code problem prediction apparatus according to attachment 5,
In the second means, for the variables and constants that are the condition values of the conditional branch structure, the character string representation of the variables and constants is collated with a character string representing a predefined error process, and if the similarity is high A source code problem prediction apparatus, wherein a low execution frequency is assigned to a processing area executed when a condition is matched.
(Appendix 10)
In the source code problem prediction apparatus according to attachment 5,
In the second means, the number of exception processes included in the function call sequence is measured, and an execution frequency inversely proportional to the number of exception processes is allocated to each of the functions. .
(Appendix 11)
In the source code problem prediction apparatus according to attachment 5,
An apparatus for predicting source code problems, wherein a weight definition from a user for a specific function is received, and the second means assigns an execution frequency to each function using the weight definition.

本発明の一実施の形態であるソースコード問題予測プログラムおよび方法の作用の一例を示す概念図である。It is a conceptual diagram which shows an example of an effect | action of the source code problem prediction program and method which are one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムおよび方法を実施するソースコード問題予測装置の構成の一例を示す概念図である。It is a conceptual diagram which shows an example of a structure of the source code problem prediction apparatus which implements the source code problem prediction program and method which are one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムおよび方法の作用の一例を示すフローチャートである。It is a flowchart which shows an example of an effect | action of the source code problem prediction program and method which are one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムで処理されるソースコードの一例を示す説明図である。It is explanatory drawing which shows an example of the source code processed with the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムで生成されるソースコード解析情報の一例を示す説明図である。It is explanatory drawing which shows an example of the source code analysis information produced | generated with the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムに入力される検出関数一覧表の構成例を示す概念図である。It is a conceptual diagram which shows the structural example of the detection function table entered into the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムにおける関数検出処理の一例を示すフローチャートである。It is a flowchart which shows an example of the function detection process in the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムで出力される検出結果表の一例を示す概念図である。It is a conceptual diagram which shows an example of the detection result table output with the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムにおける関数呼出し列情報の抽出処理の一例を示すフローチャートである。It is a flowchart which shows an example of the extraction process of the function call sequence information in the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムにて抽出された関数呼出し列情報の一例を示す概念図である。It is a conceptual diagram which shows an example of the function call sequence information extracted in the source code problem prediction program which is one embodiment of the present invention. 本発明の一実施の形態であるソースコード問題予測プログラムにおけるループ情報の抽出処理の一例を示すフローチャートである。It is a flowchart which shows an example of the extraction process of the loop information in the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムにおいて出力されるループ情報表の一例を示す概念図である。It is a conceptual diagram which shows an example of the loop information table output in the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムにおいて出力される条件分岐情報表の一例を示す概念図である。It is a conceptual diagram which shows an example of the conditional branch information table output in the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムにおける関数呼出し関係情報の抽出処理の一例を示すフローチャートである。It is a flowchart which shows an example of the extraction process of the function call related information in the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムにおいて出力される関数呼出し関係情報の一例を示す概念図である。It is a conceptual diagram which shows an example of the function call relationship information output in the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムに入力される重み定義表の一例を示す概念図である。It is a conceptual diagram which shows an example of the weight definition table input into the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムにおける実行頻度予測処理の一例を示すフローチャートである。It is a flowchart which shows an example of the execution frequency prediction process in the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムの実行頻度予測処理における関数呼出し関係情報の状態を例示した概念図である。It is the conceptual diagram which illustrated the state of the function call relation information in the execution frequency prediction process of the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムにおいて出力される実行頻度情報表の一例を示す概念図である。It is a conceptual diagram which shows an example of the execution frequency information table output in the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムに入力されるランク定義表の一例を示す概念図である。It is a conceptual diagram which shows an example of the rank definition table input into the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムにおける検出結果レポートの出力処理の一例を示すフローチャートである。It is a flowchart which shows an example of the output process of the detection result report in the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムにおいて出力される検出結果レポートの一例を示す概念図である。It is a conceptual diagram which shows an example of the detection result report output in the source code problem prediction program which is one embodiment of this invention. (a)および(b)は、本発明の一実施の形態であるソースコード問題予測プログラムにおいて処理される、再帰呼出しを含むソースコード例と対応する関数呼出し関係情報の一例を示す概念図である。(A) And (b) is a conceptual diagram which shows an example of the function call relationship information corresponding to the example of a source code including a recursive call processed in the source code problem prediction program which is one embodiment of the present invention. . 本発明の一実施の形態であるソースコード問題予測プログラムにおいて出力される関数呼出し関係情報の一例を示す概念図である。It is a conceptual diagram which shows an example of the function call relationship information output in the source code problem prediction program which is one embodiment of this invention. (a)〜(c)は、関数の再帰呼出しの場合における実行頻度情報表の生成処理の例を示す概念図である。(A)-(c) is a conceptual diagram which shows the example of the production | generation process of the execution frequency information table in the case of a function recursive call. 本発明の一実施の形態であるソースコード問題予測プログラムに入力される、継承を含むソースコードの一例を示す概念図である。It is a conceptual diagram which shows an example of the source code containing the inheritance input into the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測プログラムにおいて、継承を含むソースコードに対応して出力される関数呼出し列情報の一例を示す概念図である。It is a conceptual diagram which shows an example of the function call sequence information output corresponding to the source code containing inheritance in the source code problem prediction program which is one embodiment of the present invention. 本発明の一実施の形態であるソースコード問題予測プログラムにおいて、継承を含むソースコードに対応して出力される関数呼出し関係情報の一例を示す概念図である。In the source code problem prediction program which is one embodiment of this invention, it is a conceptual diagram which shows an example of the function call relationship information output corresponding to the source code including inheritance. (a)〜(c)は、継承を含むソースコードに対する重み付け処理の一例を示す概念図である。(A)-(c) is a conceptual diagram which shows an example of the weighting process with respect to the source code containing inheritance. (a)、(b)は、本発明の一実施の形態であるソースコード問題予測プログラムにおいて、条件分岐の条件値を実行頻度予測に用いる場合の概念図である。(A), (b) is a conceptual diagram in the case of using the condition value of a conditional branch for execution frequency prediction in the source code problem prediction program which is one embodiment of the present invention. 本発明の一実施の形態であるソースコード問題予測プログラムにおいて出力される、条件値を含む関数呼出し関係情報の一例を示す概念図である。It is a conceptual diagram which shows an example of the function call relationship information containing a condition value output in the source code problem prediction program which is one embodiment of this invention. (a)〜(c)は、本発明の一実施の形態であるソースコード問題予測プログラムにおける、条件値を含む関数呼出し関係情報の重み付け処理の一例を示す概念図である。(A)-(c) is a conceptual diagram which shows an example of the weighting process of the function call related information containing a condition value in the source code problem prediction program which is one embodiment of this invention. (a)〜(d)は、本発明の一実施の形態であるソースコード問題予測プログラムにおける、例外処理を含むソースコードにおける関数呼出し関係情報の生成例を示す概念図である。(A)-(d) is a conceptual diagram which shows the example of generation | occurrence | production of the function call relationship information in the source code containing exception processing in the source code problem prediction program which is one embodiment of this invention. (a)〜(c)は、本発明の一実施の形態であるソースコード問題予測プログラムにおける、ユーザによる関数の重み付けの処理例を示す概念図である。(A)-(c) is a conceptual diagram which shows the example of a function weighting process by the user in the source code problem prediction program which is one embodiment of this invention. 本発明の一実施の形態であるソースコード問題予測技術の場合と、従来の参考技術の場合の効果を比較対照して示す説明図である。It is explanatory drawing which compares and contrasts the effect in the case of the source code problem prediction technique which is one embodiment of this invention, and the case of the conventional reference technique. 本発明の一実施の形態であるソースコード問題予測プログラムにおける操作画面と、それを用いた重み調整の作用の一例を示す説明図であるIt is explanatory drawing which shows an example of the operation | movement screen in the source code problem prediction program which is one embodiment of this invention, and the effect | action of weight adjustment using the same (a)〜(c)は、重み調整による検出結果の最適化の一例を示す概念図である。(A)-(c) is a conceptual diagram which shows an example of the optimization of the detection result by weight adjustment.

符号の説明Explanation of symbols

10 情報処理装置
11 中央処理装置
12 主記憶
13 外部記憶装置
14 ディスプレイ
15 情報入力装置
16 ネットワークインタフェース
17 情報ネットワーク
18 オペレーティングシステム
20 ソースコード問題予測プログラム
21 字句・構文解析部
22 検出部
23 関数呼出し列抽出部
24 ループ情報抽出部
25 条件分岐抽出部
26 例外処理情報抽出部
27 関数呼出し関係情報生成部
28 実行頻度予測部
29 レポート出力部
30 ソースコード解析情報
30a ノード
31 関数呼出し列情報
31a ノード
31b リンク
32 ループ情報表
32a 関数ペア
32b 種別
33 条件分岐情報表
33a 関数ペア
33b 種別
34 例外処理情報表
34a 関数ペア
34b 種別
35 関数呼出し関係情報
35a ノード
35b リンク
35c ノード

35d ノード
36 検出結果表
36a 呼出しID
36b 存在箇所
36c 検出関数
37 実行頻度情報表
37a 呼出し列
37b 重み合計
40 ソースコード
40−1 ソースコード
40−2 ソースコード
40−3 ソースコード
41 検出関数一覧表
41a クラス名
41b メソッド名
41c 引数型
42 重み定義表
42a 種別
42b 構文
42c 重み
43 ランク定義表
43a ランク
43b 重み合計
44 関数重み定義表
44a 関数名
44b 重み
50 検出結果レポート
50a 検出ID
50b 問題ランク
50c 存在箇所
50d 検出関数
60 ユーザ評価入力領域
61 チェック欄
61a チェック項目
61b チェック項目
62 コメント欄
DESCRIPTION OF SYMBOLS 10 Information processing apparatus 11 Central processing unit 12 Main memory 13 External storage device 14 Display 15 Information input device 16 Network interface 17 Information network 18 Operating system 20 Source code problem prediction program 21 Lexical and syntax analysis unit 22 Detection unit 23 Function call sequence extraction Unit 24 loop information extraction unit 25 conditional branch extraction unit 26 exception processing information extraction unit 27 function call relation information generation unit 28 execution frequency prediction unit 29 report output unit 30 source code analysis information 30a node 31 function call sequence information 31a node 31b link 32 Loop information table 32a Function pair 32b Type 33 Conditional branch information table 33a Function pair 33b Type 34 Exception handling information table 34a Function pair 34b Type 35 Function call relation information 35a Node 35b Link 35c node

35d Node 36 Detection result table 36a Call ID
36b Location 36c Detection function 37 Execution frequency information table 37a Call sequence 37b Total weight 40 Source code 40-1 Source code 40-2 Source code 40-3 Source code 41 Detection function list 41a Class name 41b Method name 41c Argument type 42 Weight definition table 42a Type 42b Syntax 42c Weight 43 Rank definition table 43a Rank 43b Total weight 44 Function weight definition table 44a Function name 44b Weight 50 Detection result report 50a Detection ID
50b Problem rank 50c Location 50d Detection function 60 User evaluation input area 61 Check field 61a Check item 61b Check item 62 Comment field

Claims (3)

プログラムのソースコードに含まれる関数の呼出し関係、繰返し構造、条件分岐構造の少なくとも一つに関する制御構造情報を抽出する処理と、
前記制御構造情報から前記プログラムの実行時に高頻度で繰返し実行される特定領域を予測する処理と、
前記特定領域について、予め与えられた特定の関数の呼出しが存在するか調べ、存在した前記特定の関数を予測された当該特定領域の実行頻度に基づいてランク付けして表示する処理と、
をコンピュータに実行させることを特徴とするソースコード問題予測プログラム。
A process of extracting control structure information related to at least one of a function calling relationship, a repetition structure, and a conditional branch structure included in a program source code;
A process of predicting a specific area that is repeatedly executed at a high frequency when the program is executed from the control structure information;
A process for checking whether there is a call to a specific function given in advance for the specific area, and ranking and displaying the specific function that has existed based on the predicted execution frequency of the specific area;
A source code problem prediction program that causes a computer to execute.
請求項1記載のソースコード問題予測プログラムにおいて、
前記関数の呼出し列中に含まれる前記繰返し構造と前記条件分岐構造の各々の数を計測し、予め定義された重み定義情報に基づき、各々の前記数の計測値に重みを乗算することで予測される前記実行頻度を計算する処理を、さらに前記コンピュータに実行させることを特徴とするソースコード問題予測プログラム。
The source code problem prediction program according to claim 1,
Predicting by measuring the number of each of the repeated structure and the conditional branch structure included in the function call sequence, and multiplying the measured value of each number by a weight based on predefined weight definition information The computer program further causes the computer to execute a process for calculating the execution frequency.
請求項1記載のソースコード問題予測プログラムにおいて、
再帰呼出しを行う前記関数を抽出し、当該関数内の処理を実行頻度が高い前記特定領域として予測する処理、
オブジェクト指向型プログラムにおける継承の関係にあるクラス群を抽出し、各クラスに宣言されている同一名の前記関数について、クラス数に反比例する実行頻度を割当てる処理、
前記条件分岐構造の条件値となっている変数及び定数について、前記変数及び定数の文字列表現を予め定義されたエラー処理を表す文字列と照合し、類似性が高ければ条件一致時に実行される処理領域に対して低い実行頻度を割当てる処理、
前記関数の呼出し列中に含まれる例外処理の数を計測し、前記例外処理の数に反比例する実行頻度を個々の前記関数に割当てる処理、
特定の前記関数に対するユーザからの重み定義を受け付け、前記重み定義も用いて実行頻度を個々の前記関数に割当てる処理、
の少なくとも一つを、さらに前記コンピュータに実行させることを特徴とするソースコード問題予測プログラム。
The source code problem prediction program according to claim 1,
Extracting the function that performs recursive call, and predicting the processing within the function as the specific region with high execution frequency,
A process of extracting a class group having an inheritance relationship in an object-oriented program and assigning an execution frequency inversely proportional to the number of classes for the function having the same name declared in each class;
For variables and constants that are the condition values of the conditional branch structure, the character string representation of the variables and constants is compared with a character string that represents a predefined error process. A process that assigns a low execution frequency to the processing area,
A process of measuring the number of exception processes included in the function call sequence and assigning an execution frequency inversely proportional to the number of exception processes to each of the functions;
A process of accepting a weight definition from a user for a specific function and assigning an execution frequency to each of the functions using the weight definition;
A source code problem prediction program that causes the computer to execute at least one of the following.
JP2005380256A 2005-12-28 2005-12-28 Source code problem prediction program Expired - Fee Related JP4914609B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005380256A JP4914609B2 (en) 2005-12-28 2005-12-28 Source code problem prediction program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005380256A JP4914609B2 (en) 2005-12-28 2005-12-28 Source code problem prediction program

Publications (2)

Publication Number Publication Date
JP2007179488A true JP2007179488A (en) 2007-07-12
JP4914609B2 JP4914609B2 (en) 2012-04-11

Family

ID=38304579

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005380256A Expired - Fee Related JP4914609B2 (en) 2005-12-28 2005-12-28 Source code problem prediction program

Country Status (1)

Country Link
JP (1) JP4914609B2 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011164954A (en) * 2010-02-10 2011-08-25 Exa Corp Program and system for checking cobol source code
JP2013117803A (en) * 2011-12-02 2013-06-13 Hitachi Ltd Computer for calculating number of pieces of trace information, method of calculating number of pieces of trace information and program for calculating number of pieces of trace information
JP2015526820A (en) * 2012-08-20 2015-09-10 マイクロソフト コーポレーション Software build error prediction
CN105320591A (en) * 2014-07-25 2016-02-10 腾讯科技(深圳)有限公司 Code detection method and device
CN106293676A (en) * 2015-06-08 2017-01-04 东元电机股份有限公司 Produce the method and system of whole detection program
JP2017041196A (en) * 2015-08-21 2017-02-23 富士通株式会社 Stub object determination device, method, and program
WO2018096588A1 (en) 2016-11-22 2018-05-31 三菱電機株式会社 Information processing device, information processing method, and information processing program
JP2019168753A (en) * 2018-03-22 2019-10-03 三菱電機株式会社 Source code analysis device and source code analysis program
CN111611153A (en) * 2019-02-26 2020-09-01 阿里巴巴集团控股有限公司 Method and device for detecting excessive drawing of user interface
KR20210009143A (en) * 2019-07-16 2021-01-26 서울과학기술대학교 산학협력단 Software function analysis system using social network and data envelopment and its method
KR102295868B1 (en) * 2021-02-01 2021-09-01 (주)제스아이앤씨 Network failure prediction system
US11281566B2 (en) 2018-07-23 2022-03-22 Mitsubishi Electric Corporation Scoring device, computer readable medium, and scoring method
CN114328168A (en) * 2020-10-09 2022-04-12 腾讯科技(深圳)有限公司 Anomaly detection method and device, computer equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357733A (en) * 2017-07-17 2017-11-17 万帮充电设备有限公司 Improve the method and device of code quality

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09282173A (en) * 1996-04-10 1997-10-31 Hitachi Ltd Static analysis method for program
JP2000330782A (en) * 1999-05-25 2000-11-30 Nec Microcomputer Technology Ltd Device and method for analyzing static performance by description of hint to source
JP2001273169A (en) * 2000-03-24 2001-10-05 Toshiba Corp Device for generating program test specification
JP2002073369A (en) * 2000-06-12 2002-03-12 Fujitsu Ltd Support device for improving efficiency of object- oriented program and recording medium and program
JP2004086319A (en) * 2002-08-23 2004-03-18 Hitachi Information Systems Ltd Software quality evaluating method and quality evaluating system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09282173A (en) * 1996-04-10 1997-10-31 Hitachi Ltd Static analysis method for program
JP2000330782A (en) * 1999-05-25 2000-11-30 Nec Microcomputer Technology Ltd Device and method for analyzing static performance by description of hint to source
JP2001273169A (en) * 2000-03-24 2001-10-05 Toshiba Corp Device for generating program test specification
JP2002073369A (en) * 2000-06-12 2002-03-12 Fujitsu Ltd Support device for improving efficiency of object- oriented program and recording medium and program
JP2004086319A (en) * 2002-08-23 2004-03-18 Hitachi Information Systems Ltd Software quality evaluating method and quality evaluating system

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011164954A (en) * 2010-02-10 2011-08-25 Exa Corp Program and system for checking cobol source code
JP2013117803A (en) * 2011-12-02 2013-06-13 Hitachi Ltd Computer for calculating number of pieces of trace information, method of calculating number of pieces of trace information and program for calculating number of pieces of trace information
JP2015526820A (en) * 2012-08-20 2015-09-10 マイクロソフト コーポレーション Software build error prediction
CN105320591A (en) * 2014-07-25 2016-02-10 腾讯科技(深圳)有限公司 Code detection method and device
CN106293676A (en) * 2015-06-08 2017-01-04 东元电机股份有限公司 Produce the method and system of whole detection program
CN106293676B (en) * 2015-06-08 2019-05-10 东元电机股份有限公司 Generate the method and system of whole detection program
JP2017041196A (en) * 2015-08-21 2017-02-23 富士通株式会社 Stub object determination device, method, and program
WO2018096588A1 (en) 2016-11-22 2018-05-31 三菱電機株式会社 Information processing device, information processing method, and information processing program
JP2019168753A (en) * 2018-03-22 2019-10-03 三菱電機株式会社 Source code analysis device and source code analysis program
JP7068752B2 (en) 2018-03-22 2022-05-17 三菱電機株式会社 Source code analyzer and source code analysis program
US11281566B2 (en) 2018-07-23 2022-03-22 Mitsubishi Electric Corporation Scoring device, computer readable medium, and scoring method
CN111611153A (en) * 2019-02-26 2020-09-01 阿里巴巴集团控股有限公司 Method and device for detecting excessive drawing of user interface
CN111611153B (en) * 2019-02-26 2023-05-16 阿里巴巴集团控股有限公司 Method and device for detecting overdrawing of user interface
KR20210009143A (en) * 2019-07-16 2021-01-26 서울과학기술대학교 산학협력단 Software function analysis system using social network and data envelopment and its method
KR102245386B1 (en) 2019-07-16 2021-04-27 서울과학기술대학교 산학협력단 Software function analysis system using social network and data envelopment and its method
CN114328168A (en) * 2020-10-09 2022-04-12 腾讯科技(深圳)有限公司 Anomaly detection method and device, computer equipment and storage medium
KR102295868B1 (en) * 2021-02-01 2021-09-01 (주)제스아이앤씨 Network failure prediction system

Also Published As

Publication number Publication date
JP4914609B2 (en) 2012-04-11

Similar Documents

Publication Publication Date Title
JP4914609B2 (en) Source code problem prediction program
US9411559B2 (en) Resolution of textual code in a graphical hierarchical model of a technical computing environment
US6205555B1 (en) Processor power consumption estimating system, processor power consumption estimating method, and storage medium storing program for executing the processor power consumption estimating method
US7707386B2 (en) Program segment searching for extension instruction determination to design a processor that meets performance goal
US7353427B2 (en) Method and apparatus for breakpoint analysis of computer programming code using unexpected code path conditions
CN110287702B (en) Binary vulnerability clone detection method and device
Sandoval Alcocer et al. Learning from source code history to identify performance failures
US8881116B2 (en) Identifying and triaging software bugs through backward propagation of under-approximated values and empiric techniques
US20060005177A1 (en) Method, system and program product for optimizing java application performance through data mining
US20090249250A1 (en) Method and system for log file processing and generating a graphical user interface based thereon
US20110271250A1 (en) Software Development Tool
CN108984416B (en) Method for evaluating dependency conflict danger level in Maven environment
US20150378724A1 (en) Identifying code that exhibits ideal logging behavior
US8065565B2 (en) Statistical debugging using paths and adaptive profiling
CN111104335A (en) C language defect detection method and device based on multi-level analysis
US20130212565A1 (en) Application analysis method, analysis system and recording medium
CN116406459A (en) Code processing method, device, equipment and medium
US10839124B1 (en) Interactive compilation of software to a hardware language to satisfy formal verification constraints
US8578343B2 (en) System and method for overflow detection using partial evaluations
Park et al. A survey of parametric static analysis
Nguyen et al. Recommending exception handling code
US7647581B2 (en) Evaluating java objects across different virtual machine vendors
US20220335135A1 (en) Vulnerability analysis and reporting for embedded systems
US20150007139A1 (en) Optimizing error parsing in an integrated development environment
CN109710538B (en) Static detection method for state-related defects in large-scale system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080911

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110531

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111025

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111220

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120117

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120123

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150127

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees