JPS62150430A - Comparing method for computer execution result - Google Patents
Comparing method for computer execution resultInfo
- Publication number
- JPS62150430A JPS62150430A JP29112585A JP29112585A JPS62150430A JP S62150430 A JPS62150430 A JP S62150430A JP 29112585 A JP29112585 A JP 29112585A JP 29112585 A JP29112585 A JP 29112585A JP S62150430 A JPS62150430 A JP S62150430A
- Authority
- JP
- Japan
- Prior art keywords
- type
- contents
- result
- files
- records
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、2つのコンピュータの実行結果の比較を行う
コンピュータ実行結果比較方法に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a computer execution result comparison method for comparing execution results of two computers.
従来、この種のコンピュータ実行結果比較方法L+ 申
石意丼↓清−1噂払ム柄争−りハ^ηマj s−ハ11
−一ドの中身をそのまま機械的に比較し、完全に一致し
たか否かを調べるものであった。Conventionally, this type of computer execution result comparison method L+
- The contents of the first card were mechanically compared as they were to determine whether they matched completely.
2つの別の種類のコンピュータの実行結果の比較を実数
値について行うときは、実用上無視ごきる程度の誤差が
存在するのが普通である。このようなとき、従来からの
コンピュータ実行結果比較方法では、実用上無視できる
程度の誤差のものと明らかに違いがあるものとが共に不
一致であるとして処理されるため、出力された結果を一
目見ても区別がつかず、一つ一つ確認して行わねばなら
ず、実用的ではないという欠点がある。When comparing the execution results of two different types of computers for real numbers, there is usually a practically negligible error. In such cases, with conventional computer execution result comparison methods, both results with negligible errors and results with obvious differences are treated as discrepancies, so it is difficult to look at the output results at a glance. However, the disadvantage is that it is difficult to distinguish between the two methods, and each must be checked one by one, which is impractical.
本発明のコンピュータ実行結果比較方法は、2つのコン
ピュータの比較すべき実行結果が収められた2つのファ
イルを入力し、ファイルのレコードの中身がFORTR
ANの場合の文字型に相当するものか、数値型に相当す
るものかを判定し、文字型のものに対してはそのまま比
較を行い、数値型のものに対しては、2つのレコードの
中身の数値の誤差を求め、外部より指定し設定された許
容値との大小によって実行結果の比較を行う。The computer execution result comparison method of the present invention inputs two files containing execution results to be compared from two computers, and the contents of the records of the files are FORTR.
In the case of AN, it is determined whether it corresponds to a character type or a numeric type, and for a character type, the comparison is performed as is, and for a numeric type, the contents of the two records are compared. The error in the numerical value is calculated, and the execution results are compared based on the magnitude with the tolerance value specified and set externally.
したがって、2つのファイルの中身がFORTRANの
数値型の場合、芙用土無理できる程度の誤差が存在する
か否かが容易にわかる。Therefore, if the contents of the two files are of the FORTRAN numerical type, it is easy to see whether there is an error that is within reason.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明のコンピュータ実行結果比較方法の一実
施例を示すブロック図、第2図はその処理の流れ図であ
る。FIG. 1 is a block diagram showing an embodiment of the computer execution result comparison method of the present invention, and FIG. 2 is a flowchart of the process.
ファイル解析部1では、比較すべき実行結果が収められ
た2つの入力ファイル5を入力し、ファイル5のレコー
ドの中身の解析を行う。許容値なし処理部2では、ファ
イル5のレコードの中身がFORTRANの場合の文字
型に相当するもののときに、2つのレコードの中身をそ
のまま比較を行う。The file analysis section 1 receives two input files 5 containing execution results to be compared, and analyzes the contents of the records in the files 5. The no-allowable-value processing unit 2 compares the contents of the two records as they are when the contents of the record in the file 5 correspond to the character type in FORTRAN.
許容値あり処理部3では、ファイルのレコードの中身が
FORTRANの場合の数値型に相当するもののときに
、2つのレコードの中身の数値の誤差を求め、外部より
指定した許容値との大小によって比較を行う。結果出力
部5は、許容値なし処理部2、許容値あり処理部3の比
較結果を出力ファイル6に出力する。The tolerance value processing unit 3 calculates the error between the numerical values of the contents of two records when the record contents of the file correspond to the numerical type in FORTRAN, and compares it with the tolerance value specified from the outside. I do. The result output unit 5 outputs the comparison results of the no tolerance processing unit 2 and the tolerance processing unit 3 to an output file 6.
次に、本実施例の動作を第2図のフローチャートを参照
して説明する。Next, the operation of this embodiment will be explained with reference to the flowchart of FIG.
まず、比較すべき実行結果が収められた2つの7アイ轟
入力する(ステップ11)。入力したファイルのレコー
ドの中身を解析する(ステップ12−こ湾き、ファイ謬
μレコードの中身がFOR−TRANの場合の数値型に
相当するとき、すなわち、許容値を使用するときは、2
つのレコードの中身の誤差を求め、外部より指定された
許容値との大小を比較する(ステップ13)。誤差が許
容値より小さいとき、実行結果が一致したものとして出
力する(ステップ15)。誤差が許容値より小さいとき
、実行結果が不一致であるものとして出力する(ステッ
プ1も)。FORTRANの場合の数値型に相当すると
き、すなわち許容値を使用するときは、2つのレコード
の中身をそのまま機械的に比較し、完全に一致したか否
かを調査する(ステップ14−)。First, two 7-eyes containing execution results to be compared are input (step 11). Analyze the contents of the records in the input file (Step 12) If the contents of the file error μ record correspond to the numeric type in the case of FOR-TRAN, that is, when using the allowed value, 2
The error in the contents of each record is determined and compared with an externally specified tolerance value (step 13). When the error is smaller than the allowable value, the execution result is output as a match (step 15). When the error is smaller than the allowable value, the execution result is output as a mismatch (also in step 1). When corresponding to the numerical type in FORTRAN, that is, when using a permissible value, the contents of the two records are mechanically compared as they are, and it is investigated whether they are a complete match (step 14-).
完全に一致したとき、実行結果が一致したものとして出
力する(ステップ17)。完全には一致しなかったとき
、実行結果が不一致であるものとして出力する(ステッ
プ18)。最後に、処理すべきデータがまだあるか否か
を調査し、以上の処理を継続す木か否かを決定する(ス
テップ19)。When they completely match, the execution results are output as matching (step 17). If they do not match completely, the execution result is output as a mismatch (step 18). Finally, it is checked whether there is any more data to be processed, and it is determined whether the tree should continue the above processing (step 19).
以上説明したように本発明は、比較すべき実行結果が収
められたファイルの中身がFORTRANの数値型か文
字型かを判定し、数値型の場合、両実行結果の誤差を求
め、許容値を比較することKより、2つのファイルのし
;−ドの中身がFORTRANの場合の数値型に相当す
るとき、それらの誤差が外部から指定された許容値より
大きいものだけを選択して表示することができる効果が
ある。As explained above, the present invention determines whether the content of the file containing the execution results to be compared is a FORTRAN numeric type or a character type, and if it is a numeric type, calculates the error between both execution results and determines the allowable value. To compare, when the contents of two files correspond to the numeric type in FORTRAN, select and display only those files whose error is greater than the externally specified tolerance value. It has the effect of
第1図は、本発明のコンピュータ実行結果比較方法の一
実施例を示す図、第2図は、第1図の実施例の処理の流
れを示すフローチャートである。
1・・・・・・ファイル解析部 2・・・・・・許容値
なし処理部8・・・・・・許容値あり処理部 4・・・
・・・結果出力部5・・・・・・入力ファイル 6・
・・・・・出力ファイル。FIG. 1 is a diagram showing an embodiment of the computer execution result comparison method of the present invention, and FIG. 2 is a flowchart showing the processing flow of the embodiment of FIG. 1...File analysis section 2...No tolerance value processing section 8...Tolerance value processing section 4...
... Result output section 5 ... Input file 6.
...Output file.
Claims (1)
2つのファイルを入力し、ファイルのレコードの中身が
FORTRANの場合の文字型に相当するものか、数値
型に相当するものかを判定し、文字型のものに対しては
そのまま比較を行い、数値型のものに対しては、2つの
レコードの中身の数値の誤差を求め、外部より指定され
た許容値との大小によって前記実行結果の比較を行うコ
ンピュータ実行結果比較方法。Input two files that contain the execution results to be compared from two computers, determine whether the contents of the records in the files correspond to the character type in FORTRAN, or the numerical type, and For numeric type items, the comparison is performed as is, and for numeric type items, the error between the numerical values in the contents of the two records is calculated, and the execution results are compared based on the magnitude of the externally specified tolerance value. How to compare computer execution results.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP29112585A JPS62150430A (en) | 1985-12-23 | 1985-12-23 | Comparing method for computer execution result |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP29112585A JPS62150430A (en) | 1985-12-23 | 1985-12-23 | Comparing method for computer execution result |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62150430A true JPS62150430A (en) | 1987-07-04 |
Family
ID=17764778
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP29112585A Pending JPS62150430A (en) | 1985-12-23 | 1985-12-23 | Comparing method for computer execution result |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62150430A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5113993A (en) * | 1991-04-01 | 1992-05-19 | Sandvik Process Systems, Inc. | Three way splitter |
-
1985
- 1985-12-23 JP JP29112585A patent/JPS62150430A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5113993A (en) * | 1991-04-01 | 1992-05-19 | Sandvik Process Systems, Inc. | Three way splitter |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5133063A (en) | Method and system for outputting program change effect information to a user | |
JPS62150430A (en) | Comparing method for computer execution result | |
JPS6336390A (en) | Check digit processing system | |
JPH01297738A (en) | Computer testing device | |
JPS60217448A (en) | Data input system | |
JPH0296864A (en) | Device and method for updating data | |
US20030142819A1 (en) | Device and method for evaluating algorithms | |
JPH0378872A (en) | Document field estimating system | |
JP2785950B2 (en) | 2D graph drawing device | |
JPH06332749A (en) | Register analysis processor | |
JPH01309125A (en) | Monitor/comparison/detection system for memory contents | |
JPH04365134A (en) | Error information output system for compiler | |
JPS62135958A (en) | Simulation system | |
JPH04273330A (en) | Calculation processor for column position of layout item | |
JP2000112747A (en) | Device for verifying equivalence of non-executable statement in program resource | |
Luibrand et al. | Enhance your spreadsheet capabilities: Frequency distribution plots and sorting | |
Pittelkow | Comments on micro computer software | |
JPH03235135A (en) | Automatic inspection system for program | |
JPH118313A (en) | Apparatus and method for layout verification | |
JPH09146807A (en) | File editing system | |
JPH11110403A (en) | Data entry device | |
Cheng et al. | A Software Tool for Automatically Verified Reasoning with Intervals and Probability Distributions | |
JPH06265446A (en) | Double definition preventer of finite element method | |
JPH06301572A (en) | Program verifying device | |
JPH01307845A (en) | Backup system for analysis of calculating program operation |