JPS63247844A - Partial collation system for data - Google Patents

Partial collation system for data

Info

Publication number
JPS63247844A
JPS63247844A JP62082589A JP8258987A JPS63247844A JP S63247844 A JPS63247844 A JP S63247844A JP 62082589 A JP62082589 A JP 62082589A JP 8258987 A JP8258987 A JP 8258987A JP S63247844 A JPS63247844 A JP S63247844A
Authority
JP
Japan
Prior art keywords
data
collation
partial
matching
stored
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
JP62082589A
Other languages
Japanese (ja)
Inventor
Mitsuru Yoshida
満 吉田
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 JP62082589A priority Critical patent/JPS63247844A/en
Publication of JPS63247844A publication Critical patent/JPS63247844A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To omit the application of the mask data and to shorten the time needed for the partial collation by designating one or plural ranges of collation based on a pair of start and end points and performing the partial collation based on said designation. CONSTITUTION:A source program including the collation destination data D, the collation start data S, the total length L of the collation object data, and a partial collation sentence 11 which designates a range of collation set by a pair of a start point (ai) and an end point (bi) is stored in a source program storing means 1. Then said source program is translated into an object form by a translation means 2 and stored in a memory means 3. A collation means 4 reads out the contents stored in the means 3 and carries out the partial collation for the data on a designated collation object based on the designated start and end points. Thus it is possible to omit the application of the mask data and to shorten the time needed for the partial collation.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、情報処理システム内で試験用などに利用され
るデータの部分的照合方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION FIELD OF INDUSTRIAL APPLICATION The present invention relates to a data partial verification method used for testing purposes in an information processing system.

従来の技術 情報処理システムでは、システム動作の正常性をチェッ
クする目的などで、2個のデータについてそれらの一部
分だけを照合する部分的照合が行われる場合がある。
In conventional technical information processing systems, partial matching is sometimes performed to match only a portion of two pieces of data for the purpose of checking the normality of system operation.

従来このようなデータの部分的照合方式は、照合対象の
両データを指定し、両データ中の照合範囲を定めるマス
クデータを指定し、両データについてまずマスクデータ
との論理積を演算し、次に両輪埋積を比較することによ
って部分的照合を実行している。
Conventionally, such a partial data matching method specifies both data to be matched, specifies mask data that defines the matching range in both data, first calculates the AND of both data with the mask data, and then Partial matching is performed by comparing both wheel fills.

発明が解決しようとする問題点 上記従来の部分的照合方式では、一旦照合対象の両デー
タとマスクデータとの論理積演算を行っている。この論
理積演算は、通常、演算装置の演算幅(ワード)を単位
としてデータのワード数に対応する回数にわたって繰り
返し実行される。このため、照合対象のデータのワード
数が大きくなるにつれてマスクデータとの論理積演算に
時間がかかり、部分的照合の高速化が困難になるという
問題がある。
Problems to be Solved by the Invention In the conventional partial matching method described above, an AND operation is once performed between both data to be matched and mask data. This AND operation is normally repeatedly executed a number of times corresponding to the number of words of data, with the operation width (word) of the arithmetic device as a unit. For this reason, as the number of words of data to be matched increases, it takes more time to perform an AND operation with mask data, making it difficult to speed up partial matching.

更に、従来の部分的照合方式では照合対象データと同一
ワード数のマスクデータをメモリ領域に準備しておく必
要があるため、照合対象データのワード数が大きくなる
につれてメモリ領域が逼迫するという問題もある。
Furthermore, in the conventional partial matching method, it is necessary to prepare mask data with the same number of words as the data to be matched in the memory area, so there is a problem that the memory area becomes tight as the number of words in the data to be matched increases. be.

発明の構成 問題点を解決するための手段 本発明に係わるデータの部分的照合方式は、照合対象の
第1.第2のデータを指定し、これら第1、第2のデー
タ中に設定する1又は複数の照合範囲をその開始点と終
了点の対によって指定し、これらの指定に基づき第1.
第2のデータの部分的照合を実行することにより、マス
クデータを利用することなく直接側データの部分的照合
を実行するように構成されている。
Means for Solving the Constituent Problems of the Invention The partial data matching method according to the present invention is based on the first . Specify the second data, specify one or more matching ranges to be set in the first and second data by a pair of the start point and end point, and based on these specifications, the first...
By performing partial verification of the second data, it is configured to perform partial verification of the immediate data without using mask data.

以下、本発明の作用を実施例と共に詳細に説明する。Hereinafter, the operation of the present invention will be explained in detail together with examples.

実施例 第1図を参照すると、本発明の一実施例に係わるデータ
の部分的照合方式は、ソースプログラム格納手段1、翻
訳手段2、記憶手段3、照合手段4、出力手段5、入出
力手段6から構成されている。
Embodiment Referring to FIG. 1, the data partial collation system according to an embodiment of the present invention includes a source program storage means 1, a translation means 2, a storage means 3, a collation means 4, an output means 5, and an input/output means. It consists of 6.

まず、利用者はソースプログラム格納手段1にデータの
部分的照合文11を含むソースプログラムを格納する。
First, a user stores a source program including a data partial verification statement 11 in the source program storage means 1.

このデータの部分的照合文11では、照合先データD、
照合元データS、照合対象データの全長し、開始点a+
と終了点bi(i=1.2.3・・・−)の対(a 1
.  b 1)  (a 2゜b2)、  (a3.a
4)−による1又は複数の照合範囲が指定される。
In the partial matching statement 11 of this data, matching destination data D,
Verification source data S, total length of verification target data, starting point a+
and the pair of end points bi (i=1.2.3...-) (a 1
.. b 1) (a 2゜b2), (a3.a
4) One or more matching ranges are specified by -.

上記部分的照合文11を含むソースプログラムは、翻訳
手段2によって情報処理装置上で実行可能なオブジェク
ト形式に翻訳されたのち、記憶手段3に格納される。す
なわち、照合先データと照合元データはそれぞれアドレ
スDとSから始まる記憶領域31と32に格納され、こ
れらデータの格納開始アドレスDとSはそれぞれ記憶領
域33と34に格納され、照合対象データの全長りは記
憶領域35に格納される。また、開始点と終了点の対(
ai、bi)で表示される照合範囲の一覧は、照合表C
Tとして記憶領域36に格納され、この照合表CTの先
頭エントリのアドレスEOが記憶領域37に格納される
The source program including the partial matching statement 11 is translated into an object format executable on the information processing device by the translation means 2, and then stored in the storage means 3. That is, the comparison destination data and the comparison source data are stored in the storage areas 31 and 32 starting from addresses D and S, respectively, and the storage start addresses D and S of these data are stored in the storage areas 33 and 34, respectively, and the comparison target data The total length is stored in the storage area 35. Also, the pair of start and end points (
The list of matching ranges displayed in ai, bi) is shown in matching table C.
The address EO of the first entry of this collation table CT is stored in the storage area 37 as T.

第2図は、第1図中の照合手段4による照合処理の手順
を説明するためのフローチャートである。
FIG. 2 is a flowchart for explaining the procedure of the matching process by the matching means 4 in FIG.

照合手段4は、処理を開始すると最初のステップ41に
進み、記憶領域33.34.37のそれぞれから照合先
データと照合元データの開始アドレスDと81照合表C
T中の先頭エントリのアドレスEOを読出したのち、ス
テップ42に進む。
When the collation means 4 starts processing, it proceeds to the first step 41, and retrieves the start address D and 81 collation table C of the collation target data and collation source data from the storage areas 33, 34, and 37, respectively.
After reading the address EO of the first entry in T, the process advances to step 42.

照合手段4は、照合表CTの最新の読出し済みエントリ
 (この場合最初のエントリEO)からその内容を読出
し、これが空でないかどうかを判定する。照合照合4は
、エントリEOの内容が空でないためステップ44に進
み、照合範囲のアドレス設定を行う。すなわち、照合手
段4は、照合先データと照合元データの双方について、
最初の照合範囲の開始アドレス(])+a i)、  
(S+a i)と照合表(bi−ai)を設定する。
The collation means 4 reads the contents from the latest read entry (in this case, the first entry EO) of the collation table CT, and determines whether it is not empty. In verification verification 4, since the contents of entry EO are not empty, the process proceeds to step 44, where addresses of the verification range are set. That is, the verification means 4 performs the following on both the verification target data and the verification source data.
Start address of first matching range (]) + a i),
(S+a i) and a matching table (bi-ai) are set.

照合手段4は、次のステップ45に進み最初の照合範囲
についての照合を行い、次のステップ46で照合結果を
判定する。この照合結果が一致すれば、照合手段4は、
ステップ47に進んで照合表CTのエントリ番号を歩進
したのちステップ42に戻り、歩進済みエントリから次
の照合範囲についての開始アドレスと終了アドレスの対
を読出し、これについて上述したアドレス設定、照合及
び照合結果の判定をステップ44〜46で繰り返す。
The matching means 4 proceeds to the next step 45 and performs matching for the first matching range, and then determines the matching result in the next step 46. If the matching results match, the matching means 4
After proceeding to step 47 and incrementing the entry number of the collation table CT, the process returns to step 42 to read out the start address and end address pair for the next collation range from the incremented entry, and perform the address setting and collation described above for this pair. And the determination of the matching results is repeated in steps 44 to 46.

照合手段4は、ステップ46で照合結果の不一致を判定
するとステップ48に進み、照合先データ、照合元デー
タ、照合範囲(ai、bi)をこの照合不一致に関する
情報として保存したのちステップ47に進む。
When the matching means 4 determines that the matching results do not match in step 46, the process proceeds to step 48, and after storing the matching destination data, matching source data, and matching range (ai, bi) as information regarding this matching mismatch, the process proceeds to step 47.

照合手段4は、照合表CTから読出した内容が空である
こと、7すなわち、照合表CTの内容の読出しが最終エ
ントリまで終了したことを検出すると、ステップ44に
進み、ステップ48で保存済みの照合不一致に関する情
報を出力手段5に転送し、照合処理を終了する。
When the collation means 4 detects that the contents read from the collation table CT are empty, that is, the reading of the contents of the collation table CT has been completed up to the last entry, the process proceeds to step 44, and in step 48, the stored contents are The information regarding the matching mismatch is transferred to the output means 5, and the matching process is ended.

発明の効果 以上詳細に説明したように、本発明に係わるデータの部
分的照合方式は、照合対象の両データとこれらの中に設
定する1又は複数の照合範囲をその開始点と終了点の対
によって指定し、これらの指定に基づき両データの部分
的照合を実行する構成であるから、従来方式と異なりマ
スクデータの利用が不要となる。
Effects of the Invention As explained in detail above, the data partial matching method according to the present invention compares both data to be matched and one or more matching ranges set therein with their starting and ending points. Since the configuration is such that partial matching of both data is performed based on these specifications, there is no need to use mask data, unlike the conventional method.

このため、入出力装置、特にファイル系装置の読込みデ
ータブロックなど長いデータについての部分的照合に要
する時間が大幅に短縮される。
Therefore, the time required for partial verification of long data such as read data blocks of input/output devices, particularly file-based devices, is significantly reduced.

また、マスクデータを格納しておく必要がなくなるため
、メモリ領域を逼迫させることなく部分的照合を実行で
きるという効果が奏される。
Furthermore, since there is no need to store mask data, there is an effect that partial matching can be performed without straining the memory area.

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

第1図は本発明の一実施例に係わるデータの部分的照合
方式の構成を示すブロック図、第2図は第1図中の照合
手段4の処理手順を説明するためのフローチャートであ
る。 1・・・プログラム格納手段、11・・・データ照合文
、2・・・翻訳手段、3・・・記憶手段、4・・・照合
手段、31・・・照合先データの格納領域、32・・・
照合元データの格納領域、33・・・照合先データの先
頭アドレスの格納領域、34・・・照合元データの先頭
アドレスの格納領域、36・・・照合表CTの格納領域
、37・・・照合表CTの先頭エントリアドレスの格納
領域。
FIG. 1 is a block diagram showing the configuration of a data partial matching method according to an embodiment of the present invention, and FIG. 2 is a flowchart for explaining the processing procedure of the matching means 4 in FIG. 1. DESCRIPTION OF SYMBOLS 1... Program storage means, 11... Data verification statement, 2... Translation means, 3... Storage means, 4... Verification means, 31... Storage area for verification target data, 32.・・・
Storage area for comparison source data, 33...Storage area for the start address of the comparison target data, 34...Storage area for the start address of the comparison source data, 36...Storage area for the comparison table CT, 37... Storage area for the first entry address of the collation table CT.

Claims (1)

【特許請求の範囲】 照合対象の第1、第2のデータを指定し、 これら第1、第2のデータ中に設定する1又は複数の照
合範囲をその開始点と終了点の対によって指定し、 これらの指定に基づき第1、第2のデータについての部
分的照合を実行することを特徴とするデータの部分的照
合方式。
[Claims] First and second data to be verified are specified, and one or more verification ranges to be set in these first and second data are specified by a pair of a starting point and an ending point. , A partial data matching method characterized by performing partial matching on first and second data based on these specifications.
JP62082589A 1987-04-03 1987-04-03 Partial collation system for data Pending JPS63247844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62082589A JPS63247844A (en) 1987-04-03 1987-04-03 Partial collation system for data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62082589A JPS63247844A (en) 1987-04-03 1987-04-03 Partial collation system for data

Publications (1)

Publication Number Publication Date
JPS63247844A true JPS63247844A (en) 1988-10-14

Family

ID=13778668

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62082589A Pending JPS63247844A (en) 1987-04-03 1987-04-03 Partial collation system for data

Country Status (1)

Country Link
JP (1) JPS63247844A (en)

Similar Documents

Publication Publication Date Title
JP2664137B2 (en) IC card
JPS63247844A (en) Partial collation system for data
JP3331597B2 (en) Control device
JP2586172B2 (en) Table search device with learning function
JPH0387940A (en) File copy system
JPS61177532A (en) Area control system
JPH0573289A (en) Job control language correcting system
JPH0816382A (en) Erroneously corrected line retrieving device
JPS6123248A (en) Test system of data processor
JPS62125443A (en) Editing and output system for error information
JPS62219126A (en) Program control system
JPH04242448A (en) Simple dump retrieval system
JPH05127885A (en) Processing flow chart conversion system
JPS613272A (en) Output information determining method based upon priority
JPS62224833A (en) Suitability inspecting system of data form
JPH05158599A (en) Automatic execution device
JPH04161869A (en) Program converting method for generating test pattern
JPH0668744B2 (en) NCP load module update processing method
JPH0243632A (en) Variable size control table preparing system
JPH01293438A (en) Overlay segment information output system
JPH09223039A (en) Debug device for on-line system
JPS63238627A (en) Editing and outputting system for assemble list
JPS62251929A (en) Adding system for machine word instruction
JPH02224136A (en) Inspection system for compile unit
JPH01305431A (en) Error message insertion system