JPS63223841A - Measuring system for program including rate - Google Patents

Measuring system for program including rate

Info

Publication number
JPS63223841A
JPS63223841A JP62057678A JP5767887A JPS63223841A JP S63223841 A JPS63223841 A JP S63223841A JP 62057678 A JP62057678 A JP 62057678A JP 5767887 A JP5767887 A JP 5767887A JP S63223841 A JPS63223841 A JP S63223841A
Authority
JP
Japan
Prior art keywords
instruction
branch
address
program
executed
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.)
Pending
Application number
JP62057678A
Other languages
Japanese (ja)
Inventor
Kenichi Murakami
健一 村上
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP62057678A priority Critical patent/JPS63223841A/en
Publication of JPS63223841A publication Critical patent/JPS63223841A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To accurately grasp the degree of evaluation of a program to be evaluated by measuring the ratio of the executed instruction number as a program including rate. CONSTITUTION:An input interpretation instructing part 2 delivers an instruction to set a branch instruction interrupting mode by a setting instruction of said interrupting mode supplied from an input device 1 and also delivers an indication for calculation of the program including rate after interpreting a range on a main memory for an evaluation subject program 5 supplied from the device 1 and the undergo the measurement of said including rate. An including rate calculating part 9 calculates the ratio of the executed instructions in a range informed when an instruction is received from the part 2 for calculation of the program including rate and outputs the result of calculation to an output device 10 after editing. An instruction word interpreting part 8 informs all instruction addresses of the program 5 to the part 9 by an instruction of the part 9.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理システムにおけるプログラム網羅率測
定方式に関し、特に評価対象プログラム内の少なくとも
1回以上実行された命令の比率を測定する方式に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for measuring program coverage in an information processing system, and particularly to a method for measuring the ratio of instructions executed at least once in a program to be evaluated.

[従来の技術〕 プログラムを新規に開発した場合などにおいては、その
プログラムが所期の目的を達成しているか否かを確認す
るために、試験データなどを用いてそのプログラムを評
価することが行なわれる。
[Prior art] When a program is newly developed, it is necessary to evaluate the program using test data, etc., in order to confirm whether the program achieves its intended purpose. It will be done.

通常、このプログラムの評価は、評価担当者が評価対象
プログラム内の全命令を網羅できるように幾つかの評価
項目を予め考え、これらの評価項目について試験を行な
い、全ての評価項目で満足する結果が得られたとき、評
価完了と認識していた。
Normally, in evaluating this program, the person in charge of evaluation considers several evaluation items in advance to cover all instructions in the program to be evaluated, conducts tests on these evaluation items, and finds results that are satisfactory in all evaluation items. When this was obtained, the evaluation was considered complete.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら、評価対象プログラム内の全命令を網羅で
きるような評価項目を挙げることは極めて困難であり、
従って、予め考えた評価項目を全て満足したことをもっ
て、評価対象プログラムの評価が済んだとは言えないと
いう問題点があった。
However, it is extremely difficult to list evaluation items that cover all instructions in the program to be evaluated.
Therefore, there is a problem in that it cannot be said that the evaluation of the program to be evaluated is complete just because all the evaluation items considered in advance are satisfied.

本発明はこのような事情に鑑みて為されたちのであり、
その目的は、評価対象プログラムの評価中に少なくとも
1回以上実行された命令の比率を測定する方式を提供す
ることにより、評価対象プログラムの評価度合を正確に
知ることができるようにすることにある。
The present invention has been made in view of these circumstances.
The purpose of this is to provide a method for measuring the ratio of instructions executed at least once during the evaluation of a program to be evaluated, thereby making it possible to accurately determine the degree of evaluation of the program to be evaluated. .

〔問題点を解決するための手段〕[Means for solving problems]

本発明は上記目的を達成するために、分岐命令割込みモ
ードの設定に応答して、プログラム中の分岐命令の実行
により、分岐後最初の命令が実行される前に少なくとも
分岐前アドレスと分岐後アドレスの通知を行なって内部
割込みを発生させる分岐命令割込機構を有する計算機シ
ステムにおいて、 前記分岐命令割込機構による内部割込みによって起動さ
れ、前記分岐命令割込機構から今回通知された分岐前ア
ドレスと、前回の起動時に分岐後アドレス記憶手段に記
憶した分岐後アドレスとで示される範囲を実行済命令領
域情報として実行済命令領域情報記憶手段に記憶すると
共に、今回通知された分岐後アドレスを前記分岐後アド
レス記憶手段に記憶させる分岐命令割込処理手段と、評
価対象プログラムのアドレス範囲内の全命令語のアドレ
スを通知する命令語アドレス通知手段と、 該命令語アドレス通知手段から得た全命令語のアドレス
と、前記実行済命令領域情報記憶手段に記憶された実行
済命令領域情報とに基づいて、実行済命令の比率をプロ
グラム網羅率として算出する網羅率算出手段と、 該網羅率算出手段で算出されたプログラム網羅率を出力
する出力手段とから構成される。
In order to achieve the above object, the present invention executes a branch instruction in a program in response to the setting of a branch instruction interrupt mode, so that at least a pre-branch address and a post-branch address are generated before the first instruction after the branch is executed. In a computer system having a branch instruction interrupt mechanism that generates an internal interrupt by notifying the branch instruction interrupt mechanism, a pre-branch address activated by an internal interrupt by the branch instruction interrupt mechanism and currently notified from the branch instruction interrupt mechanism; The range indicated by the post-branch address stored in the post-branch address storage unit at the previous startup is stored as executed instruction area information in the executed instruction area information storage unit, and the post-branch address notified this time is stored as executed instruction area information. branch instruction interrupt processing means for storing in the address storage means; instruction word address notification means for notifying the addresses of all instruction words within the address range of the program to be evaluated; a coverage rate calculation means for calculating a ratio of executed instructions as a program coverage rate based on the address and executed instruction area information stored in the executed instruction area information storage means; and a coverage rate calculation means calculated by the coverage rate calculation means. and an output means for outputting the program coverage rate obtained.

〔作用〕[Effect]

評価対象プログラムの分岐命令が実行されると、分岐命
令割込機構によって分岐前アドレスと分岐後アドレスの
通知が行なわれて内部割込みが発生され、分岐命令割込
処理手段が起動される。
When a branch instruction of the program to be evaluated is executed, the branch instruction interrupt mechanism notifies the pre-branch address and the post-branch address, generates an internal interrupt, and activates the branch instruction interrupt processing means.

分岐命令割込処理手段は起動されると、分岐命令割込機
構から今回通知された分岐前アドレスと、前回の起動時
に分岐後アドレス記憶手段に記憶した分岐後アドレスと
で示される範囲を実行済命令領域情報として実行済命令
領域情報記憶手段に記憶すると共に、今回通知された分
岐後アドレスを前記分岐後アドレス記憶手段に記憶させ
る。このような処理は評価対象プログラム中の分岐命令
が実行される毎に行なわれ、その結果、評価対象プログ
ラムの実行終了時には、評価対象プログラムの全アドレ
ス領域のうち実行済命令の領域に関する情報が実行済命
令領域情報記憶手段に記憶されることになる。
When the branch instruction interrupt processing means is activated, it has executed the range indicated by the pre-branch address notified this time by the branch instruction interrupt mechanism and the post-branch address stored in the post-branch address storage means at the time of previous activation. It is stored as instruction area information in the executed instruction area information storage means, and the currently notified post-branch address is stored in the post-branch address storage means. Such processing is performed every time a branch instruction in the program to be evaluated is executed, and as a result, at the end of execution of the program to be evaluated, information regarding the area of executed instructions out of all address areas of the program to be evaluated is It will be stored in the completed instruction area information storage means.

その後、網羅率算出手段によって、命令語アドレス通知
手段から得た全命令語のアドレスと、前記実行済命令領
域情報記憶手段に記憶された実行済命令θ■域情報とに
基づいて、実行済命令の比率がプログラム網羅率として
算出され、出力手段から出力される。
Thereafter, the coverage rate calculation means calculates the executed instructions based on the addresses of all instruction words obtained from the instruction word address notification means and the executed instruction θ area information stored in the executed instruction area information storage means. The ratio is calculated as the program coverage rate, and is output from the output means.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の実施例のブロック図であり、入力値W
L1から入力される分岐命令v1込みモードの設定指示
によって分岐命令割込みモードにする指示を与えると共
に、同じく入力装置1から人力される!in率測定の対
象となる評価対象プログラム5の主記憶上での範囲(例
えば先頭アドレスと終了アドレスとで与えられる)を解
釈して網羅率算出の指示を与える入力解釈指示部2と、
評価対象プログラム5での分岐命令の実行により、分岐
前アドレスと分岐後アドレスの通知を行なって内部割込
みである分岐命令割込みを発生させる公知の分岐命令割
込機構3と、分岐命令割込機構3によって割込まれたと
き動作する分岐命令割込処理部4と、分岐命令割込処理
部4によって分岐後アドレス(分岐命令の分岐先アドレ
ス)が記憶される分岐後アドレス記憶部7と、人力解釈
指示部2によって網羅率算出の指示を受けたとき通知さ
れた範囲の実行済命令の比率を計算して計算結果を出力
装置10に編集出力する網羅率算出部9と、網羅率算出
部9の指示によって評価対象プログラム5の全命令のア
ドレスを網羅率算出部9に通知する命令語解釈部8と、
分岐命令割込処理部4によって実行法命令記憶領域情報
が記憶され網羅率算出部9によって参照される実行済命
令領域情報記憶部6とを含んでいる。
FIG. 1 is a block diagram of an embodiment of the present invention, in which the input value W
An instruction to set the branch instruction interrupt mode is given by the setting instruction of the branch instruction v1 included mode inputted from L1, and also manually inputted from the input device 1! an input interpretation instruction unit 2 that interprets a range (for example, given by a start address and an end address) on the main memory of the evaluation target program 5 that is the target of the in rate measurement and gives an instruction to calculate the coverage rate;
A known branch instruction interrupt mechanism 3 that notifies a pre-branch address and a post-branch address and generates a branch instruction interrupt, which is an internal interrupt, by executing a branch instruction in the evaluation target program 5; a branch instruction interrupt processing unit 4 that operates when interrupted by a branch instruction interrupt processing unit 4; a post-branch address storage unit 7 in which a post-branch address (branch destination address of a branch instruction) is stored by the branch instruction interrupt processing unit 4; A coverage rate calculation unit 9 that calculates the ratio of executed instructions in the notified range when receiving an instruction to calculate the coverage rate from the instruction unit 2, and edits and outputs the calculation result to the output device 10; an instruction word interpretation unit 8 that notifies the coverage rate calculation unit 9 of the addresses of all instructions of the evaluation target program 5 according to instructions;
It includes an executed instruction area information storage unit 6 in which execution method instruction storage area information is stored by the branch instruction interrupt processing unit 4 and referenced by the coverage rate calculation unit 9.

第2図は評価対象プログラム5のアドレスPOからアド
レスP4までのルーチンを例にして、実行済命令領域情
報を実行済命令領域情報記憶部6に記tqする際の動作
を説明した図である。
FIG. 2 is a diagram illustrating the operation when writing executed instruction area information in the executed instruction area information storage section 6, using the routine from address PO to address P4 of the evaluation target program 5 as an example.

評価対象プログラム5において、アドレスPO。In evaluation target program 5, address PO.

PI、P2.P3.P4は分岐命令の分岐先アドレス(
分岐後アドレス)であり、アドレスBl。
PI, P2. P3. P4 is the branch destination address of the branch instruction (
address after branch), and address Bl.

B2.B3.B4は分岐命令自身のアドレスである。ま
ず、評価対象プログラム5のアドレスPOに分岐する分
岐命令が実行されると、分岐命令割込機構3によって分
岐命令割込みが発生し、分岐命令割込処理部4が動作す
る。分岐命令割込処理部4は分岐命令割込機構3から通
知される分岐後アドレスPOを分岐後アドレス記憶部7
に記憶する(ここでは、アドレスPOに分岐する前の実
行済命令領域情報の記憶手順の説明は省略している)。
B2. B3. B4 is the address of the branch instruction itself. First, when a branch instruction that branches to address PO of the evaluation target program 5 is executed, a branch instruction interrupt is generated by the branch instruction interrupt mechanism 3, and the branch instruction interrupt processing section 4 operates. The branch instruction interrupt processing unit 4 stores the post-branch address PO notified from the branch instruction interrupt mechanism 3 in the post-branch address storage unit 7.
(Here, a description of the procedure for storing executed instruction area information before branching to address PO is omitted.)

次に、評価対象プログラム5のアドレスB1での分岐命
令が実行され、分岐先であるアドレスP1で分岐命令割
込みが発生すると、分岐命令割込処理部4は分岐命令割
込機構3から通知される分岐前アドレスBlとこのとき
分岐後アドレス記憶部7が記憶しているアドレスPOと
の範囲(アドレスPOからアドレスB1までの範囲)を
、実行済命令領域情報M1として実行済命令領域情報記
憶部6に記憶し、その後分岐前アドレスB1とともに通
知された分岐後アドレスP1を分岐後アドレス記憶部7
に記憶する。同様に、アドレスB2゜B3.B4の分岐
命令の実行によってそれぞれアドレスP2.P3.P4
で分岐命令割込みが発生し、分岐命令割込処理部4によ
ってそれぞれ実行済命令領域情報M2.M3.M4が実
行済命令領域情報記憶部6に記憶される。
Next, when a branch instruction at address B1 of the evaluation target program 5 is executed and a branch instruction interrupt occurs at address P1, which is the branch destination, the branch instruction interrupt processing unit 4 is notified from the branch instruction interrupt mechanism 3. The range between the pre-branch address Bl and the address PO stored in the post-branch address storage unit 7 at this time (range from address PO to address B1) is stored as executed instruction area information M1 in the executed instruction area information storage unit 6. After that, the post-branch address P1 notified together with the pre-branch address B1 is stored in the post-branch address storage unit 7.
to be memorized. Similarly, address B2°B3. By executing the branch instruction of B4, addresses P2. P3. P4
A branch instruction interrupt occurs in M2., and the branch instruction interrupt processing unit 4 records the executed instruction area information M2. M3. M4 is stored in the executed instruction area information storage section 6.

第3図は実行済命令領域情報記憶部6の記憶内容の一例
を示す図である。この実施例の実行済命令領域情報記憶
部6は、主記憶の各番地と1対1で対応するビットを有
し、例えばビット番号Oのビットは主記憶上の0番地に
、とノド番号100のビットは主記憶上の100番地に
対応している。
FIG. 3 is a diagram showing an example of the stored contents of the executed instruction area information storage section 6. As shown in FIG. The executed instruction area information storage unit 6 of this embodiment has bits that correspond one-to-one with each address of the main memory. For example, the bit with bit number O is stored at address 0 on the main memory, The bit corresponds to address 100 on the main memory.

そして、実行済命令の番地に対応するビット番号のビッ
トはオンにされ、未実行命令の番地に対応するビットは
オフにされるように使用される。例えば、評価対象プロ
グラム5の主記憶上での先頭アドレスがS番地で終了ア
ドレスがE番地とすると、評価対象プログラム5の実行
済命令領域情報は、第3図の実行済命令領域情報記憶部
6のビット番号Sからビット番号Eの範囲の記憶エリア
61に記憶される。実行済命令il域情報記憶エリア6
1には、第2図の説明で示した実行済命令領域情報Ml
、M2.M3.M4が存在し、且つ実行済命令領域情報
Ml、M2.M3.M4に含まれる全てのピントはオン
である。同様に、実行済命令領域M1111記憶エリア
61のうち、評価対象プログラム5の実行された命令領
域に対応するビットは、実行済命令領域情報Ml、M2
.M3.M4と同様にオンであり、その他のビット即ち
評価対象プログラム5の未実行の命令領域に対応するピ
ノl−はオフになっている。
Then, the bit of the bit number corresponding to the address of the executed instruction is turned on, and the bit corresponding to the address of the unexecuted instruction is turned off. For example, if the start address of the program to be evaluated 5 on the main memory is address S and the end address is address E, the executed instruction area information of the program to be evaluated 5 is stored in the executed instruction area information storage unit 6 in FIG. is stored in the storage area 61 in the range from bit number S to bit number E. Executed instruction il area information storage area 6
1 includes executed instruction area information Ml shown in the explanation of FIG.
, M2. M3. M4 exists, and executed instruction area information Ml, M2 . M3. All focuses included in M4 are on. Similarly, in the executed instruction area M1111 storage area 61, the bit corresponding to the executed instruction area of the evaluation target program 5 is the executed instruction area information M1, M2.
.. M3. Like M4, it is on, and the other bits, ie, the pinot l- corresponding to the unexecuted instruction area of the evaluation target program 5, are off.

さて、評価対象プログラム5の実行終了後、入力解釈指
示部2によって網羅率算出の範囲である評価対象プログ
ラム5の先頭アドレスSと終了アドレスEが通知されて
いた網羅率算出部9は、命令語解釈部8に対してS番地
からE番地までの全命令語のアドレスを報告するように
指示する。これに応答して命令語解釈部8はS番地がら
E番地までの全命令語のアドレスを!il羅率算出部9
に逐次報告する。この後、網羅率算出部9は、命令語解
釈部8によって逐次報告される命令語のアドレスを出力
装置10に出力するが、この際、報告された命令語のア
ドレスに対応する実行済命令領域情報記憶領域61内の
ビットがオンであるが否かを判別し、オンであれば実行
法命令語のアドレスであることを示す識別語を上記出力
するアドレスに付加して編集出力し、オフであれば例え
ば命令語のアドレスだけを出力する。
Now, after the execution of the evaluation target program 5 is completed, the coverage rate calculation unit 9, which has been notified by the input interpretation instruction unit 2 of the start address S and end address E of the evaluation target program 5, which are the coverage rate calculation range, uses the instruction word The interpreter 8 is instructed to report the addresses of all instruction words from address S to address E. In response to this, the command interpreter 8 calculates the addresses of all commands from address S to address E! il ratio calculation part 9
Reports will be made one by one. Thereafter, the coverage calculation unit 9 outputs the address of the instruction word sequentially reported by the instruction word interpretation unit 8 to the output device 10, but at this time, the executed instruction area corresponding to the address of the reported instruction word is It is determined whether the bit in the information storage area 61 is on or not, and if it is on, an identification word indicating that it is the address of the execution method instruction word is added to the address to be outputted above and edited and output, and when it is off. If there is, for example, only the address of the instruction word is output.

さらに網羅率算出部9は、命令語解釈部8によって逐次
報告される命令語の個数をカウントすると共に、報告さ
れた命令語のアドレスに対応する実行済命令頻域情報記
憶領域61のビットがオンである回数つまり実行法命令
語数をカウントしており、最後に実行法命令語数の全命
令語数に対する比率(この比率は実行法命令語数を全命
令語数で除算した結果を百分率などの形式で求めても良
く、単に「実行済命令語数/全命令語数」といった形式
で求めても良い)を求め、この算出結果を評価対象プロ
グラム5に対するプログラム網羅率として出力装置10
に出力する。
Further, the coverage calculation unit 9 counts the number of instructions successively reported by the instruction interpretation unit 8, and turns on the bit of the executed instruction frequency information storage area 61 corresponding to the address of the reported instruction word. In other words, the number of execution command words is counted, and finally the ratio of the number of execution command words to the total number of command words (this ratio is calculated as a percentage by dividing the number of execution command words by the total number of command words). (or simply in the form of "number of executed instruction words/total number of instruction words"), and this calculation result is outputted to the output device 10 as the program coverage rate for the evaluation target program 5.
Output to.

なお、上記の実施例では、プログラム網羅率として全命
令語数に対する実行法命令語数の比率を用いてこれを出
力する以外に、実行済命令のアドレスか未実行命令のア
ドレスかが判別できるような形式でアドレス情報も出力
したが、単に実行法命令数の比率を知りたいシステムで
は、上記アドレスの出力を省略することができる。
In addition, in the above embodiment, in addition to outputting the ratio of the number of execution method instruction words to the total number of instruction words as the program coverage rate, a format that allows it to be determined whether the address of an executed instruction or an address of an unexecuted instruction is used. Address information was also output in , but in systems where you simply want to know the ratio of the number of execution method instructions, outputting the address can be omitted.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、分岐命令割込みを利用
して実行済命令領域情報を評価対象プログラムの実行過
程で逐次記憶し、評価対象プログラムの実行終了後、そ
の記憶された実行法領域情報をもとに、評価対象プログ
ラムの実行済命令の比率を算出するようにしたものであ
り、評価対象プログラムに何等の細工を行なうことなく
、実行法命令数の比率をプログラム網羅率として測定す
ることができる。従って、評価対象プログラムの評価度
合を正確に把握することができる効果がある。
As explained above, the present invention uses branch instruction interrupts to sequentially store executed instruction area information during the execution process of the evaluation target program, and after the execution of the evaluation target program is finished, the stored execution method area information is stored. Based on this, the ratio of executed instructions of the program to be evaluated is calculated, and the ratio of the number of executed instructions can be measured as the program coverage rate without any modification to the program to be evaluated. Can be done. Therefore, it is possible to accurately grasp the evaluation level of the program to be evaluated.

また、評価対象プログラムの実行法命令数の比率を出力
する以外に、実行済命令のアドレスと未実行命令のアド
レスとを区別して合わせて出力することにより、評価対
象プログラムのどの命令が未実行命令であるか等の判別
が容易となり、次の評価ステップでは未実行命令に着目
した評価を行なうことができ、効率良くプログラムの評
価度合を向上することができる効果がある。
In addition to outputting the ratio of the number of executable instructions in the program to be evaluated, it also distinguishes and outputs the addresses of executed instructions and the addresses of unexecuted instructions, so that it is possible to determine which instructions in the program to be evaluated are the unexecuted instructions. It becomes easy to determine whether the program is executed, and in the next evaluation step, evaluation can be performed focusing on unexecuted instructions, which has the effect of efficiently improving the degree of evaluation of the program.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の実施例のブロック図、第2図は実行済
命令領域情報を実行済命令領域情報記憶部6に記憶する
際の動作説明図および、第3図は実行済命令領域情報記
憶部6の記憶内容の一例を示す図である。 図において、1・・・入力装置、2・・・入力解釈指示
部、3・・・分岐命令割込機構、4・・・分岐命令割込
処理部、5・・・評価対象プログラム、6・・・実行済
命令領域情報記憶部、7・・・分岐後アドレス記憶部、
8・・・命令語解釈部、9・・・網羅率算出部、10・
・・出力装置。 特許出廓人 日本電気株式会社
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is an explanatory diagram of the operation when storing executed instruction area information in the executed instruction area information storage unit 6, and FIG. 3 is an explanatory diagram of executed instruction area information. FIG. 6 is a diagram showing an example of storage contents of a storage unit 6. FIG. In the figure, 1... input device, 2... input interpretation instruction unit, 3... branch instruction interrupt mechanism, 4... branch instruction interrupt processing unit, 5... program to be evaluated, 6... ... Executed instruction area information storage section, 7... Post-branch address storage section,
8... Instruction word interpretation section, 9... Coverage rate calculation section, 10.
...Output device. Patent distributor NEC Corporation

Claims (2)

【特許請求の範囲】[Claims] (1)分岐命令割込みモードの設定に応答して、プログ
ラム中の分岐命令の実行により、分岐後最初の命令が実
行される前に少なくとも分岐前アドレスと分岐後アドレ
スの通知を行なって内部割込みを発生させる分岐命令割
込機構を有する計算機システムにおいて、 前記分岐命令割込機構による内部割込みによって起動さ
れ、前記分岐命令割込機構から今回通知された分岐前ア
ドレスと、前回の起動時に分岐後アドレス記憶手段に記
憶した分岐後アドレスとで示される範囲を実行済命令領
域情報として実行済命令領域情報記憶手段に記憶すると
共に、今回通知された分岐後アドレスを前記分岐後アド
レス記憶手段に記憶させる分岐命令割込処理手段と、評
価対象プログラムのアドレス範囲内の全命令語のアドレ
スを通知する命令語アドレス通知手段と、 該命令語アドレス通知手段から得た全命令語のアドレス
と、前記実行済命令領域情報記憶手段に記憶された実行
済命令領域情報とに基づいて、実行済命令の比率をプロ
グラム網羅率として算出する網羅率算出手段と、 該網羅率算出手段で算出されたプログラム網羅率を出力
する出力手段とを含むことを特徴とするプログラム網羅
率測定方式。
(1) In response to the branch instruction interrupt mode setting, by executing a branch instruction in the program, at least the pre-branch address and post-branch address are notified and an internal interrupt is generated before the first instruction after the branch is executed. In a computer system having a branch instruction interrupt mechanism that generates a branch instruction interrupt mechanism, a pre-branch address that is activated by an internal interrupt by the branch instruction interrupt mechanism and that is notified this time from the branch instruction interrupt mechanism and a post-branch address stored at the previous activation. A branching instruction that stores a range indicated by the post-branch address stored in the means in the executed instruction area information storage means as executed instruction area information, and stores the currently notified post-branch address in the post-branch address storage means. an interrupt processing means, an instruction word address notifying means for notifying the addresses of all the instructions within the address range of the evaluation target program, the addresses of all the instructions obtained from the instruction word address notifying means, and the executed instruction area. Coverage rate calculation means for calculating the ratio of executed instructions as a program coverage rate based on the executed instruction area information stored in the information storage means; and outputting the program coverage rate calculated by the coverage rate calculation means. A program coverage measurement method characterized by comprising: an output means.
(2)特許請求の範囲第1項記載のプログラム網羅率測
定方式において、 前記網羅率算出手段は、前記プログラム網羅率と共に、
前記実行済命令のアドレスを未実行命令のアドレスと区
別して前記出力手段より出力するようにしたことを特徴
とするプログラム網羅率測定方式。
(2) In the program coverage measurement method according to claim 1, the coverage calculation means includes, together with the program coverage,
A method for measuring program coverage rate, characterized in that the address of the executed instruction is outputted from the output means while being distinguished from the address of an unexecuted instruction.
JP62057678A 1987-03-12 1987-03-12 Measuring system for program including rate Pending JPS63223841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62057678A JPS63223841A (en) 1987-03-12 1987-03-12 Measuring system for program including rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62057678A JPS63223841A (en) 1987-03-12 1987-03-12 Measuring system for program including rate

Publications (1)

Publication Number Publication Date
JPS63223841A true JPS63223841A (en) 1988-09-19

Family

ID=13062586

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62057678A Pending JPS63223841A (en) 1987-03-12 1987-03-12 Measuring system for program including rate

Country Status (1)

Country Link
JP (1) JPS63223841A (en)

Similar Documents

Publication Publication Date Title
CN109977016B (en) Test triggering method, device and equipment and test system
JPS63223841A (en) Measuring system for program including rate
JP3389745B2 (en) Apparatus and method for measuring program performance
JP2519005B2 (en) Job schedule simulation device
US6182049B1 (en) Method and apparatus for controlling product routing in a manufacturing line
JP3152178B2 (en) Lock operation measurement method
JPS59205613A (en) Sequence monitor device
JPH01118935A (en) Measurement system for program comprehension rate
JPS6324425A (en) Test comprehensive state detection system
JPH04239337A (en) Measuring system for program comprehension rate
JP2527281Y2 (en) PROM programmer controller
JPH01118938A (en) Measurement system for program comprehension rate
JPH09192713A (en) Process simulator
JPS6220579B2 (en)
JPS63300333A (en) Measurement system for number of times of instruction execution of program
JPH0452835A (en) Program test evaluation system
JPH0317749A (en) Inspecting method for test program
JPH06161516A (en) Checking method for sequence program
JPS61145665A (en) Test method of inter-device interchangeability of input output device
JPH0464143A (en) Test content informing system
JPS63300335A (en) Measurement system for number of times of instruction execution of program
JPH04275643A (en) System for testing program
JPS6220040A (en) File updating system
JPH0488426A (en) Program coverage measuring instrument
JPH03111936A (en) Branched result storing system for conditional branch instruction