JPH04218833A - Program correction quantity deciding processor - Google Patents

Program correction quantity deciding processor

Info

Publication number
JPH04218833A
JPH04218833A JP2403955A JP40395590A JPH04218833A JP H04218833 A JPH04218833 A JP H04218833A JP 2403955 A JP2403955 A JP 2403955A JP 40395590 A JP40395590 A JP 40395590A JP H04218833 A JPH04218833 A JP H04218833A
Authority
JP
Japan
Prior art keywords
arrangement
program
sequence number
statement
source program
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
JP2403955A
Other languages
Japanese (ja)
Other versions
JP2595815B2 (en
Inventor
Kyoko Ishii
石井 京子
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 JP2403955A priority Critical patent/JP2595815B2/en
Publication of JPH04218833A publication Critical patent/JPH04218833A/en
Application granted granted Critical
Publication of JP2595815B2 publication Critical patent/JP2595815B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To obtain a program correction quantity deciding processor by deciding the proper quantity of correction by a source program before correction and that after correction of a computer. CONSTITUTION:A table generating part constitutes a first table 4 and a second table 5 so that first arrangement order numbers and second identification numbers indicated by second arrangement order numbers are arranged in the first table 4 and second arrangement order numbers and first identification numbers indicated by first arrangement order numbers are arranged in the second table in accordance with the arrangement order with respect to same instruction statements between first and second source programs 1 and 2 and they correspond to each other respectively. A deciding processing part 6 takes out one item from each table and obtains the differences between two taken-out items with respect to first arrangement order number and first identification number and second arrangement order number and second identification number and concludes whether the instruction statement is not changed or is deleted or is added by prescribed deciding processing based on signs and magnitudes of differences and prescribed relations between both differences, and the item of one table for conclusion is advanced to successively perform the deciding processing.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、計算機における原始プ
ログラムの修正量を、修正前及び修正後の両原始プログ
ラムを比較して判定するための、プログラム修正量判定
処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program modification amount determination processing device for determining the modification amount of a source program in a computer by comparing both a source program before and after modification.

【0002】0002

【従来の技術】計算機のプログラムを変更した場合に、
修正量の正確な把握を必要とする場合がしばしばある。
[Background Art] When changing a computer program,
It is often necessary to accurately grasp the amount of correction.

【0003】その場合に、あるプログラミング言語で記
述された原始プログラムについて、修正前及び修正後の
両プログラムを比較することにより、例えば新プログラ
ムにおいて追加され、旧プログラムから削除され、又新
旧プログラム間で変更の無い命令文の各ステップ数を修
正量として求め、又必要な場合には両プログラムの命令
文を対応させて、追加、削除、変更無しの状況を示すリ
ストを作成する。
In this case, by comparing the source program written in a certain programming language before and after the modification, it is possible to determine, for example, what was added to the new program, deleted from the old program, and what was added between the old and new programs. The number of steps for each unchanged command statement is determined as the amount of modification, and if necessary, the command statements of both programs are correlated to create a list showing additions, deletions, and no changes.

【0004】そのための、両プログラムの比較は、修正
前又は修正後何れか一方の原始プログラムを基準にして
、両方の命令文を配列順に比較し、一致すれば変更無し
として、両プログラムで次の命令文に進む。
[0004] To do this, the two programs are compared by using either the source program before or after the modification as a reference, comparing both command statements in order of arrangement, and if they match, it is assumed that there is no change, and the following is done in both programs. Proceed to the imperative sentence.

【0005】不一致の場合には、修正前を基準にする場
合であれば、修正前の命令文が削除されたものとして、
修正前プログラムのみ次の命令文に進み、修正後を基準
にする場合であれば、修正後の命令文が追加されている
ものとして、修正後プログラムのみ次の命令文に進む。
[0005] In the case of a mismatch, if the pre-amendment is used as the standard, the pre-amendment statement is assumed to have been deleted, and
Only the pre-modification program advances to the next statement; if the post-modification is used as a reference, it is assumed that the post-modification statement has been added, and only the post-modification program advances to the next statement.

【0006】このようにして比較を進めて、一方のプロ
グラムのみが先に終われば、残った方のプログラムの残
りの命令文はすべて削除又は追加されたものと判定する
。図6は、以上のような論理による修正量判定の結果を
、一例で説明する図であり、図6(a)は修正前の原始
プログラムを基準とした場合の例であり、(b)は同じ
原始プログラムを例として、修正後の原始プログラムを
基準とした場合の例である。
[0006] As the comparison progresses in this manner, if only one program ends first, it is determined that all remaining command statements of the remaining program have been deleted or added. FIG. 6 is a diagram illustrating, by way of example, the result of determining the amount of modification based on the above logic. FIG. 6(a) is an example based on the original program before modification, and FIG. 6(b) is an example. This is an example in which the same source program is taken as an example, and a modified source program is used as a reference.

【0007】図6(a)及び(b)ともに、左側に修正
前及び修正後の原始プログラムの例と、両原始プログラ
ム間で比較する命令文の対応と比較ステップとを■、■
等で示し、右側に判定の結果を示してある。
In both FIGS. 6(a) and 6(b), examples of source programs before and after modification are shown on the left, as well as the correspondence of command statements and comparison steps to be compared between the two source programs.
etc., and the judgment results are shown on the right side.

【0008】[0008]

【発明が解決しようとする課題】前記のような修正量の
判定処理によれば、図6の(a)と(b)を対照すれば
明らかなように、修正前と修正後何れの原始プログラム
を基準とするかによって結果が異なり、且つ(a)、(
b)ともに変更の有無を正当に判定できない場合がある
[Problem to be Solved by the Invention] According to the process for determining the amount of modification as described above, as is clear from comparing (a) and (b) in FIG. The results differ depending on whether (a), (
b) In some cases, it may not be possible to correctly determine whether or not there has been a change.

【0009】本発明は、修正前と修正後の原始プログラ
ムを比較して、修正量を自動判定し妥当な修正量判定結
果を得ることができるプログラム修正量判定処理装置を
目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a program modification amount determination processing device that can automatically determine the modification amount by comparing the original program before and after modification, and obtain a reasonable modification amount determination result.

【0010】0010

【課題を解決するための手段】図1は、本発明の構成を
示すブロック図である。図はプログラム修正量判定処理
装置の構成であって、計算機の第1の原始プログラム1
を修正して生成された、第2の原始プログラム2につい
て、該修正の修正量を判定する装置であって、テーブル
作成部3と判定処理部6とを有する。
Means for Solving the Problems FIG. 1 is a block diagram showing the configuration of the present invention. The figure shows the configuration of a program correction amount determination processing device, in which the first source program 1 of the computer
This device determines the amount of modification of a second source program 2 generated by modifying the second source program 2, and includes a table creation section 3 and a determination processing section 6.

【0011】テーブル作成部3は、第1及び第2の原始
プログラムの各命令文に、それぞれ各該原始プログラム
上の配列順位を表す番号を、第1配列順番号及び第2配
列順番号として付与し、第1及び第2の原始プログラム
間の同一の該命令文を、各該原始プログラム内の該命令
文ごとに配列順に対応付けて、第1テーブル4及び第2
テーブル5を作成する。
[0011] The table creation unit 3 assigns numbers representing the arrangement order in each source program to each instruction statement of the first and second source programs as a first arrangement number and a second arrangement number. Then, the same instruction statements between the first and second source programs are associated in the order of arrangement for each instruction statement in each source program, and the first table 4 and the second table
Create table 5.

【0012】第1テーブル4は第1配列順番号と、第2
配列順番号で表す第2識別番号とを並べた項により、第
2テーブル5は第2配列順番号と、第1配列順番号で表
す第1識別番号とを並べた項よって、それぞれ該対応を
示すように構成する。
[0012] The first table 4 contains the first sequence number and the second sequence number.
The second table 5 has a column in which the second identification number represented by the array sequence number and the first identification number represented by the first sequence number are arranged, respectively. Configure as shown.

【0013】判定処理部6は、第1テーブル4及び第2
テーブル5から、第1及び第2配列順番号の順に1項づ
つ取り出して判定処理を行い、第1テーブルの該項に対
応する第2識別番号が無い場合は、当該第1配列順番号
の該命令文は削除されたと結論し、第2テーブルの該項
に対応する第1識別番号が無い場合は、当該第2配列順
番号の該命令文は追加されたと結論する。
[0013] The determination processing unit 6 processes the first table 4 and the second table 4.
A determination process is performed by extracting one item from Table 5 in the order of the first and second arrangement numbers, and if there is no second identification number corresponding to the item in the first table, the first identification number corresponds to the first identification number. It is concluded that the instruction sentence has been deleted, and if there is no first identification number corresponding to the item in the second table, it is concluded that the instruction sentence with the second sequence number has been added.

【0014】該取り出した2項について、第1配列順番
号と第1識別番号、及び第2配列順番号と第2識別番号
について、それぞれ差を求めて、該差の符号と、大きさ
と、該両差相互の所定の関係とに基づく所定の判定処理
によって、第1配列順番号及び第2配列順番号に対応す
る該命令文は変更無しか、第1配列順番号の該命令文が
削除されたか、第2配列順番号の該命令文が追加された
かを結論して1回の判定処理とする。
[0014] Regarding the extracted two terms, find the difference between the first arrangement number and the first identification number, and the second arrangement number and the second identification number, and calculate the sign, magnitude, and identity of the difference. Through a predetermined determination process based on a predetermined relationship between the two differences, the instruction sentences corresponding to the first arrangement number and the second arrangement number are left unchanged, or the instruction sentence with the first arrangement number is deleted. One determination process is performed by determining whether the instruction statement with the second array order number has been added.

【0015】該結論を行った場合には判定結果7として
出力し、第1及び第2テーブルから、当該結論の対象と
なった該項の次の配列順位に相当する該項のみを取り出
して、該判定処理を繰り返す。
[0015] When the conclusion is made, it is output as judgment result 7, and only the term corresponding to the next array order of the term that is the subject of the conclusion is extracted from the first and second tables. The determination process is repeated.

【0016】[0016]

【作用】本発明の処理装置により、テーブル作成部3は
修正前のプログラムの配列順を基準にして変更後の命令
文との対応によって変更状況を示す第1テーブルと、修
正後のプログラムの配列順を基準にして変更状況を示す
第2テーブルとを作成し、判定処理部6が両テーブルを
1項目から順次取り出して、対応が無い場合は削除又は
追加の結論を出す。
[Operation] With the processing device of the present invention, the table creation unit 3 creates a first table that shows the modification status based on the arrangement order of the program before modification and the arrangement of the program after modification based on the correspondence with the command statement after modification. A second table indicating the change status is created based on the order, and the determination processing unit 6 sequentially extracts one item from both tables, and if there is no correspondence, concludes that it should be deleted or added.

【0017】両テーブルの項目とも対応がある場合は一
方のテーブルの配列順番号と、他方のテーブルの識別番
号との差を取って、差の値と符号と両差の関係を勘案し
た所定の判定論理により、例えば差が0であれば変更無
しと結論し、0でなければ所定の識別論理によって移動
量の大きい方で削除又は追加があるとする等の結論を得
る。
If there is a correspondence between the items in both tables, take the difference between the arrangement number of one table and the identification number of the other table, and calculate a predetermined value that takes into account the value and sign of the difference and the relationship between the two. Using the determination logic, for example, if the difference is 0, it is concluded that there is no change, and if the difference is not 0, a predetermined identification logic is used to conclude that there is a deletion or addition in the one with the larger amount of movement.

【0018】このようにして、一方の原始プログラムの
みを基準とする比較では無く、追加、削除によってシフ
トした命令文の対応付け等を行うので、実際の修正状況
に則した妥当な修正量の判定を行うことができる。
[0018] In this way, instead of comparing only one source program as a standard, the correspondence of instruction statements shifted by addition or deletion is performed, so it is possible to determine an appropriate amount of modification in accordance with the actual modification situation. It can be performed.

【0019】[0019]

【実施例】図2は、テーブル作成部3によって作成する
第1テーブル及び第2テーブルを例によって説明する図
であり、図2(a)は図6と同じ原始プログラム例であ
って、第1及第2配列順番号をそれぞれ付加してある。
[Embodiment] FIG. 2 is a diagram for explaining the first table and the second table created by the table creation section 3 by way of example. FIG. 2(a) is the same example of the source program as FIG. and the second sequence number are added respectively.

【0020】図2(b)は、(a)のプログラムを入力
として、図1のテーブル作成処理3によって作成される
第1テーブル4及び第2テーブル5の例である。テーブ
ル作成部3は、第1テーブル4の作成では、修正前の原
始プログラム(第1の原始プログラム)を基準にして、
第1配列順番号の順に、先ず第1配列順番号「1」の命
令文と一致する命令文を、修正後の原始プログラム(第
2の原始プログラム)を第2配列順番号の順に検索し、
第2配列順番号「1」が一致するので、第1テーブルの
第1項の第2識別番号を「1」とし、この命令文は対応
済とする。
FIG. 2(b) is an example of the first table 4 and second table 5 created by the table creation process 3 of FIG. 1 using the program of FIG. 2(a) as input. When creating the first table 4, the table creation unit 3 uses the source program before modification (first source program) as a reference.
In the order of the first array sequence number, first search the modified source program (second source program) for an instruction statement that matches the instruction statement with the first array sequence number "1", in the order of the second array sequence number,
Since the second arrangement order number "1" matches, the second identification number of the first item of the first table is set to "1", and this statement is determined to have been handled.

【0021】次に第1配列順番号「2」の命令文と一致
する命令文を、残りの修正後の原始プログラムで第2配
列順番号の順に検索し、第2配列順番号「3」が一致す
るので、第1テーブルの第2項の第2識別番号を「3」
とし、このような対応付け処理を修正前の原始プログラ
ムの最後まで行うことにより第1テーブルを作成する。 なお、この例では第1テーブルで第1配列順番号「4」
には対応が無い。
Next, the remaining modified source program is searched for an instruction statement that matches the instruction statement with the first arrangement number "2" in the order of the second arrangement number, and if the second arrangement number "3" is Since they match, set the second identification number in the second column of the first table to "3".
The first table is created by performing this correspondence processing until the end of the original program before modification. In addition, in this example, the first array number "4" in the first table
There is no response.

【0022】次に第2テーブルの作成では、修正後の原
始プログラムを基準にして、修正前の原始プログラムと
の各命令文の対応付けを前記と同様の方法で行うことに
より、第2テーブルを作成する。
Next, in creating the second table, the second table is created by using the modified source program as a reference and associating each statement with the source program before modification in the same manner as described above. create.

【0023】図3及び図4は、図1の判定処理部6の処
理の流れの一例を示す図である。図において、△で2つ
のパスに分岐している部分は、両方の処理を行う部分で
、何れを先にしても、並列に実行しても差し支えない。
FIGS. 3 and 4 are diagrams showing an example of the processing flow of the determination processing section 6 in FIG. 1. In the figure, the part that branches into two paths with △ is a part that performs both processes, and there is no problem in executing either one first or in parallel.

【0024】判定処理部6は、処理を開始すると図3の
処理ステップ9aで第1テーブルを先頭の項から1項づ
つ取り出し、処理ステップ10aで第1配列順番号に対
応する第2識別番号が記録されているか識別し、対応が
無ければその第1配列順番号で示される命令文は修正前
の原始プログラムから「削除」されたと結論する。
When the determination processing unit 6 starts processing, it extracts one entry from the first table from the first entry in processing step 9a of FIG. 3, and extracts the second identification number corresponding to the first arrangement number in processing step 10a. It is determined whether the statement has been recorded, and if there is no correspondence, it is concluded that the statement indicated by the first sequence number has been "deleted" from the source program before modification.

【0025】又第2テーブルからは、処理ステップ9b
で1項取り出し、処理ステップ10bで第2配列順番号
に対応する第1識別番号が記録されているか識別し、対
応が無ければその第2配列順番号で示される命令文は修
正後の原始プログラムに「追加」されたと結論する。
Also from the second table, processing step 9b
In step 10b, it is determined whether the first identification number corresponding to the second arrangement number is recorded, and if there is no correspondence, the statement indicated by the second arrangement number is the modified source program. conclude that it was "added" to.

【0026】処理ステップ10a及び処理ステップ10
bで対応があった場合には、処理ステップ11以下で両
テーブルから取り出した両項を併せて判別するものとし
、処理ステップ11で第2識別番号と第2配列順番号と
の差x、即ちx=(第2識別番号)−(第2配列順番号
)と、第1識別番号と第1配列順番号との差yとを求め
る。
Processing step 10a and processing step 10
If there is a correspondence in b, both terms taken out from both tables are determined together in processing step 11 and subsequent steps, and in processing step 11, the difference x between the second identification number and the second sequence number, i.e. x=(second identification number)−(second sequence number) and the difference y between the first identification number and the first sequence number are calculated.

【0027】処理ステップ12でx=0か識別し、0で
あれば、修正前の原始プログラムの命令文がそのまゝ「
変更無し」に、修正後の原始プログラムに移っていると
結論する。なお、x=0であれば、当然y=0である。
In processing step 12, it is determined whether x=0, and if it is 0, the instruction statement of the source program before modification is changed as is.
It is concluded that the program has been moved to the modified source program with no changes. Note that if x=0, then y=0 as a matter of course.

【0028】x、yが0で無い場合には、処理ステップ
13でx>0か識別し、x>0なら処理ステップ14で
y>0か識別し、y<0の場合は「追加」と判定し、y
>0なら更に処理ステップ15でx、yの大きさを比較
して、x<yなら「追加」、x>yなら「削除」とし、
x=yなら「未判定」である。
If x and y are not 0, it is determined whether x>0 in processing step 13, and if x>0, it is determined whether y>0 in processing step 14, and if y<0, "add" is performed. Judge, y
If >0, further compare the sizes of x and y in processing step 15, and if x<y, "add", if x>y, "delete",
If x=y, it is "undetermined".

【0029】又x<0の場合には、処理ステップ16で
y>0か識別し、y>0なら「削除」と判定するが、y
<0の場合は「未判定」となる。以上により「未判定」
の場合には、その項の値による処理を保留して、図4の
処理の流れにより、第1テーブル及び第2テーブルの次
以降の項を参照して判定するものとし、処理ステップ1
8aで第1テーブルの次の項を読み、処理ステップ19
aで識別して、第1テーブルが終わっている場合には処
理ステップ26を経て、「追加」と判定する。
If x<0, it is determined in processing step 16 whether y>0, and if y>0, it is determined to be "deletion";
If <0, it is "undetermined". Due to the above, “Undetermined”
In this case, the process based on the value of that term is suspended and the determination is made by referring to the subsequent terms of the first table and the second table according to the process flow of FIG.
8a, read the next item of the first table, and process step 19.
If the first table is finished, the process goes through step 26, and it is determined to be "added".

【0030】又、次項を取り出せたときは、処理ステッ
プ20aで対応があるか識別し、対応が無ければ処理ス
テップ18aに戻って次の項を取り出し、対応があれば
処理ステップ21で第2テーブルから取り出した項と併
せて処理する。
When the next term can be retrieved, it is determined whether there is a correspondence in processing step 20a. If there is no correspondence, the process returns to processing step 18a and the next term is retrieved. If there is a correspondence, the second table is extracted in processing step 21. It is processed together with the terms extracted from.

【0031】第2テーブルについても処理ステップ18
b、19b、20bで同様に処理し、但し処理ステップ
19b で識別して、第2テーブルが終わっている場合
には処理ステップ26で識別して、第2テーブルのみ終
わりの場合は、「削除」と判定する。
Processing step 18 is also performed for the second table.
b, 19b, and 20b in the same way, but identify it in process step 19b, and if the second table is finished, identify it in process step 26, and if only the second table is finished, select "delete". It is determined that

【0032】両テーブルが終わらず、取り出した両項と
もに対応があると、処理ステップ21で、前記の処理ス
テップ11と同様に定義されるxとyを算出した後、処
理ステップ22〜25の処理で前記処理ステップ13〜
16と同様に「追加」又は「削除」の判定を出し、但し
前記で「未判定」とした条件の場合には処理ステップ1
8a、18bの処理に戻る。
If both tables are not completed and there is a correspondence between the retrieved terms, in processing step 21 x and y defined in the same manner as in processing step 11 are calculated, and then processing in processing steps 22 to 25 is performed. In the processing step 13~
Judgment of "addition" or "deletion" is issued in the same way as in step 16, but in the case of the condition of "unjudgment" above, processing step 1 is issued.
The process returns to steps 8a and 18b.

【0033】このようにして、図3の処理の結果「未判
定」となった結果、図4の処理により「追加」又は「削
除」の判定(図に網かけで示す)をすると、それらの判
定を「未判定」で保留した項に関する結論とする。
In this way, when the processing in FIG. 3 results in "undetermined" and the processing in FIG. The conclusion is for the section whose judgment has been deferred as “undetermined”.

【0034】以上によって、「追加」、「削除」又は「
変更無し」の結論になると、「追加」の場合には第2テ
ーブルから取り出した項の処理を終了とし、「削除」の
場合は第1テーブルから取り出した項の処理を終了とし
、「変更無し」の場合は両テーブルから取り出した両項
の処理を終了とする。
[0034] Through the above, "addition", "deletion" or "
If the conclusion is ``no change'', then in the case of ``add'', the processing of the term taken out from the second table is finished, in the case of ``deletion'', the processing of the term taken out from the first table is finished, and the conclusion is ``no change''. '', the processing of both terms retrieved from both tables is terminated.

【0035】このようにして終了する項ができると、終
了した項のテーブルからのみ、次の項を取り出すように
処理ステップ9a、9bへ戻り、一方のみが終わった場
合は、そのテーブルから取り出す項の処理が処理ステッ
プ11まで進んだところで、残っている他方の項と結合
した処理に入る。
When the term to be terminated is created in this way, processing returns to processing steps 9a and 9b so as to extract the next term only from the table of the term to be terminated.If only one term has been completed, the term to be extracted from the table is When the processing has progressed to processing step 11, processing for combining with the other remaining term begins.

【0036】又、このように処理を進めて、一方のテー
ブルが終わった場合に、第1テーブルが残った場合には
、残る未処理の項の第1配列順番号に対応する命令文は
すべて「削除」とし、第2テーブルが残った場合には、
残る未処理の項の第2配列順番号に対応する命令文はす
べて「追加」と結論する。
[0036] Furthermore, if the processing proceeds in this way and one table is finished, but the first table remains, all the statements corresponding to the first sequence number of the remaining unprocessed terms are If you select "Delete" and the second table remains,
It is concluded that all command sentences corresponding to the second sequence number of the remaining unprocessed terms are "addition".

【0037】図5は、図2に示した原始プログラムの例
の第1及び第2テーブルによって、前記の処理を行った
場合を説明する図である。先ず両テーブルの第1項につ
いては処理ステップ12までの処理で「変更無し」の結
論を得る。
FIG. 5 is a diagram illustrating a case where the above processing is performed using the first and second tables of the example source program shown in FIG. 2. First, regarding the first term of both tables, a conclusion of "no change" is obtained through processing up to processing step 12.

【0038】そこで両テーブルとも次の項に進めると、
図5(a)のようなx、yにより、処理ステップ15で
x<yとなり、第2配列順番号「2」の命令文は追加と
結論されることになる。
[0038] Then, if we proceed to the next section for both tables, we get
Due to x and y as shown in FIG. 5A, x<y is established in processing step 15, and it is concluded that the instruction statement with the second array order number "2" is added.

【0039】従って、第2テーブルのみ項を進めて、図
5(b)の関係となり「変更無し」の結論で両テーブル
を進めると、(c)のように再び「変更無し」となる。 そこで両テーブルの項を進めると、第1テーブルの項は
第1配列順番号「4」の項で対応が無いので「削除」と
結論して、第1テーブルのみ項を進める。
Therefore, when only the second table is advanced, the relationship shown in FIG. 5(b) is reached, and when both tables are advanced with a conclusion of "no change", the result is "no change" again as shown in (c). Therefore, when advancing the terms in both tables, the term in the first table is the term with the first array order number "4" and there is no correspondence, so it is concluded to "delete" and only the terms in the first table are advanced.

【0040】その結果図5(d)のように「変更無し」
となり、第2テーブルはこれで終わるので、第1テーブ
ルに残る最後の項は「削除」とされる。以上の結果を、
図6に示した処理結果に対応させて描くと、図6(c)
のようになり、(a)、(b)と比較して妥当な修正量
判定が行われることがわかる。
As a result, "no change" is shown in FIG. 5(d).
Since this is the end of the second table, the last item remaining in the first table is "delete". The above results,
When drawn in correspondence with the processing results shown in Figure 6, Figure 6(c)
It can be seen that, compared with (a) and (b), a reasonable correction amount determination is made.

【0041】[0041]

【発明の効果】以上の説明から明らかなように本発明に
よれば、計算機の原始プログラムの修正量判定に関し、
実際の修正作業に則した妥当な修正量の判定を行うこと
ができるという著しい工業的効果がある。
[Effects of the Invention] As is clear from the above explanation, according to the present invention, regarding the determination of the amount of modification of a computer source program,
This has a significant industrial effect in that it is possible to determine an appropriate amount of correction in accordance with actual correction work.

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

【図1】  本発明の構成を示すブロック図[Figure 1] Block diagram showing the configuration of the present invention

【図2】 
 本発明の第1、第2テーブルの説明図
[Figure 2]
Explanatory diagram of the first and second tables of the present invention

【図3】  本
発明の処理の流れ図(その1)
[Figure 3] Flowchart of the process of the present invention (Part 1)

【図4】  本発明の処
理の流れ図(その2)
[Figure 4] Process flow diagram of the present invention (Part 2)

【図5】  本発明の処理例の説
明する図
[Fig. 5] Diagram illustrating a processing example of the present invention

【図6】  各種処理の判定結果を比較する図
[Figure 6] Diagram comparing the judgment results of various processes

【符号の説明】[Explanation of symbols]

1  第1の原始プログラム 2  第2の原始プログラム 3  テーブル作成部 4  第1テーブル 5  第2テーブル 6  判定処理部 7  判定結果 1 First primitive program 2 Second primitive program 3 Table creation part 4 1st table 5 Second table 6 Judgment processing unit 7 Judgment results

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  計算機の第1の原始プログラム(1)
を修正して生成された、第2の原始プログラム(2)に
ついて、該修正の修正量を判定する装置であって、テー
ブル作成部(3)と判定処理部(6)とを有し、該テー
ブル作成部(3)は、第1及び第2の原始プログラム(
1、2)の各命令文に、それぞれ各該原始プログラム上
の配列順位を表す番号を、第1配列順番号及び第2配列
順番号として付与し、第1及び第2の原始プログラム間
の同一の該命令文を、各該原始プログラム内の該命令文
ごとに配列順に対応付けて、第1テーブル(4)及び第
2テーブル(5)を作成し、第1テーブル(4)は第1
配列順番号と、第2配列順番号で表す第2識別番号とを
並べた項により、第2テーブル(5)は第2配列順番号
と、第1配列順番号で表す第1識別番号とを並べた項よ
って、それぞれ該対応を示すように構成し、該判定処理
部(6)は、第1テーブル(4)及び第2テーブル(5
)から、第1及び第2配列順番号の順に1項づつ取り出
して判定処理を行い、該判定処理は、第1テーブルの該
項に対応する第2識別番号が無い場合は、当該第1配列
順番号の該命令文は削除されたと結論し、第2テーブル
の該項に対応する第1識別番号が無い場合は、当該第2
配列順番号の該命令文は追加されたと結論し、該取り出
した2項について、第1配列順番号と第1識別番号、及
び第2配列順番号と第2識別番号について、それぞれ差
を求めて、該差の符号と、大きさと、該両差相互の所定
の関係とに基づく所定の判定処理によって、第1配列順
番号及び第2配列順番号に対応する該命令文は変更無し
か、第1配列順番号の該命令文が削除されたか、第2配
列順番号の該命令文が追加されたかを結論して1回の判
定処理とし、該結論を行った場合には、第1及び第2テ
ーブルから、当該結論の対象となった該項の次の配列順
位に相当する該項のみを取り出して、該判定処理を繰り
返すように構成されていることを特徴とするプログラム
修正量判定処理装置。
[Claim 1] First primitive program for a computer (1)
A device for determining the amount of modification of a second source program (2) generated by modifying the second source program, comprising a table creation section (3) and a determination processing section (6), The table creation unit (3) includes first and second source programs (
1 and 2), numbers representing the arrangement order on each source program are assigned as the first arrangement number and the second arrangement number, respectively, to ensure that the first and second source programs are identical. A first table (4) and a second table (5) are created by associating the instruction statements in each source program in order of arrangement, and the first table (4) is the first table (4).
The second table (5) lists the second sequence number and the first identification number represented by the first sequence number based on the column in which the sequence number and the second identification number represented by the second sequence number are arranged. The arrangement is such that the correspondence is indicated by the arranged terms, and the determination processing unit (6) uses the first table (4) and the second table (5).
), one item at a time is extracted in the order of the first and second array order numbers and a determination process is performed. If it is concluded that the instruction statement with the sequential number has been deleted, and there is no first identification number corresponding to the item in the second table, the second
Conclude that the instruction statement with the sequence number has been added, and calculate the difference between the first sequence number and the first identification number, and the second sequence number and the second identification number for the two extracted terms. , by a predetermined determination process based on the sign and magnitude of the difference, and a predetermined relationship between the two differences, the statement corresponding to the first arrangement number and the second arrangement number is unchanged or A single judgment process is performed by concluding whether the imperative statement with the 1st array order number has been deleted or whether the imperative statement with the 2nd array order number has been added. 2. A program modification amount determination processing device, characterized in that the program correction amount determination processing device is configured to extract only the term corresponding to the next array order of the term that is the subject of the conclusion from the table, and repeat the determination process. .
JP2403955A 1990-12-19 1990-12-19 Program correction amount judgment processing device Expired - Lifetime JP2595815B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2403955A JP2595815B2 (en) 1990-12-19 1990-12-19 Program correction amount judgment processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2403955A JP2595815B2 (en) 1990-12-19 1990-12-19 Program correction amount judgment processing device

Publications (2)

Publication Number Publication Date
JPH04218833A true JPH04218833A (en) 1992-08-10
JP2595815B2 JP2595815B2 (en) 1997-04-02

Family

ID=18513663

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2403955A Expired - Lifetime JP2595815B2 (en) 1990-12-19 1990-12-19 Program correction amount judgment processing device

Country Status (1)

Country Link
JP (1) JP2595815B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009211634A (en) * 2008-03-06 2009-09-17 Nec Corp Source code charging system, method, program, and source code utility calculator

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009211634A (en) * 2008-03-06 2009-09-17 Nec Corp Source code charging system, method, program, and source code utility calculator

Also Published As

Publication number Publication date
JP2595815B2 (en) 1997-04-02

Similar Documents

Publication Publication Date Title
JPH05257661A (en) Software production system
JPH04218833A (en) Program correction quantity deciding processor
JPH0528088A (en) Method for automatically generating hardware constitution information
JP7163845B2 (en) Information processing device and program
CN111581184B (en) Semantic comparison method and device based on database migration
JPH06187352A (en) Method and device for supporting job using case
JPH05158741A (en) Test verification method for computer program
CN106951577A (en) A kind of automatic immediate processing method of I/O point information based on AutoCAD
JPH08297579A (en) Punctuation word processing system for text data
JPH032923A (en) Automatic programming system
JPH04223835A (en) Tool number registering method of nc machine tool
JP2000112747A (en) Device for verifying equivalence of non-executable statement in program resource
JPH03189725A (en) Analogous word retrieving system for automatic programming device
JPS6274130A (en) Data generating system for program structure
JPH07160536A (en) Program test supporting device for interactive system
JPH04161869A (en) Program converting method for generating test pattern
JPH03223926A (en) Device for preventing double registration of program parts
JP2002073373A (en) Program verification device to extract checking program to verify peripheral and similar functions based on confirmation and inspection item for modification
JPH06222913A (en) Program analyzer
JPS60178535A (en) Execution definition type command system for processing
JPS63115235A (en) Generating system for intra-skeleton label dependent upon comparison operator
JPH0511998A (en) Variable propagation analyzing method
JPS63140339A (en) Reserved word managing system for version identification
JPH07191858A (en) Simulation interpreter
JPH03273434A (en) Program parts synthesizer

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19961105

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

Free format text: PAYMENT UNTIL: 20080109

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090109

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20100109

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20110109

Year of fee payment: 14

EXPY Cancellation because of completion of term