JPH04229324A - Generation and execution system for error evaluation program - Google Patents

Generation and execution system for error evaluation program

Info

Publication number
JPH04229324A
JPH04229324A JP2414735A JP41473590A JPH04229324A JP H04229324 A JPH04229324 A JP H04229324A JP 2414735 A JP2414735 A JP 2414735A JP 41473590 A JP41473590 A JP 41473590A JP H04229324 A JPH04229324 A JP H04229324A
Authority
JP
Japan
Prior art keywords
calculation
error evaluation
error
program
evaluation
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
JP2414735A
Other languages
Japanese (ja)
Inventor
Hidemasa Sugawara
菅原 英征
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 JP2414735A priority Critical patent/JPH04229324A/en
Publication of JPH04229324A publication Critical patent/JPH04229324A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To evaluate the calculation error of a calculation expression in a numeric calculation program for optional input data and analyze the calculation error efficiently. CONSTITUTION:An error evaluation subprogram 6 has a function for evaluating a calculation error due to information absence and a calculation error due to cancelling as to an addition/subtraction pattern according to the numeric data expression of an object computer. A calculation structure analytic part 1 extracts all addition/subtraction patterns included in a calculation expression specified with an evaluation indication statement in the numeric calculation program 4, an error evaluation program generation part 2 generates an error evaluation program 5 for making the error evaluation subprogram 6 evaluates calculation errors of the extracted addition/subtraction patterns, and an error evaluation program execution part 3 translates, merges, and executes the error evaluation program 5 and error evaluation subprogram 6.

Description

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

【0001】0001

【産業上の利用分野】本発明は数値計算プログラムの性
能評価に関し、特に数値計算プログラムにおける計算誤
差を評価するプログラムを自動的に生成し実行する誤差
評価プログラム生成実行方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to performance evaluation of numerical calculation programs, and more particularly to an error evaluation program generation/execution method for automatically generating and executing a program for evaluating calculation errors in numerical calculation programs.

【0002】0002

【従来の技術】従来、数値計算プログラムにおける計算
誤差の評価方式では、ある計算式について理論的な値が
分かっている入力データについて、計算値と理論値とを
比較することによって、その計算式全体の計算誤差が人
間により評価される方式が採られていた。
[Prior Art] Conventionally, in a method for evaluating calculation errors in numerical calculation programs, the entire calculation formula is evaluated by comparing the calculated value with the theoretical value for input data whose theoretical value is known for a certain calculation formula. A method was adopted in which calculation errors were evaluated by humans.

【0003】0003

【発明が解決しようとする課題】上述した従来の数値計
算プログラムにおける計算誤差の評価方式では、ある計
算式についてあらかじめ理論値が分かっている入力デー
タに対して計算値と理論値とを比較することによってそ
の計算式全体の計算誤差が人間により評価されているだ
けなので、任意の入力データに対しての計算誤差の評価
を行うことができず、「計算式中のどの計算での計算誤
差がどの程度計算式全体の計算誤差に寄与しているか」
といった計算誤差の分析(効率的な計算誤差の分析)を
行うことができないという欠点がある。
[Problem to be Solved by the Invention] In the method for evaluating calculation errors in the conventional numerical calculation program described above, the calculated value and the theoretical value are compared for input data whose theoretical value is known in advance for a certain calculation formula. Since the calculation error of the entire calculation formula is only evaluated by humans, it is not possible to evaluate the calculation error for arbitrary input data. Does it contribute to the calculation error of the entire degree calculation formula?”
It has the disadvantage that it is not possible to perform calculation error analysis (efficient calculation error analysis).

【0004】本発明の目的は、上述の点に鑑み、数値計
算プログラム中の計算式について、任意の入力データに
対しての計算誤差の評価および効率的な計算誤差の分析
を可能とする誤差評価プログラム生成実行方式を提供す
ることにある。
[0004] In view of the above-mentioned points, an object of the present invention is to provide an error evaluation method that enables evaluation of calculation errors for arbitrary input data and efficient analysis of calculation errors for calculation formulas in a numerical calculation program. The objective is to provide a program generation and execution method.

【0005】[0005]

【課題を解決するための手段】本発明の誤差評価プログ
ラム生成実行方式は、加減算パターンについて対象計算
機の数値データ表現に従って情報落ちによる計算誤差お
よびケタ落ちによる計算誤差を評価する誤差評価副プロ
グラムと、数値計算プログラム中の評価指示文で指定さ
れた計算式に含まれる全ての加減算パターンを抽出する
計算構造解析部と、この計算構造解析部で抽出された加
減算パターンについての計算誤差を前記誤差評価副プロ
グラムに評価させる誤差評価プログラムを生成する誤差
評価プログラム生成部と、この誤差評価プログラム生成
部により生成された誤差評価プログラムと前記誤差評価
副プログラムとを翻訳し結合し実行する誤差評価プログ
ラム実行部とを有する。
[Means for Solving the Problems] The error evaluation program generation/execution method of the present invention includes an error evaluation subprogram that evaluates calculation errors due to information loss and calculation errors due to digit loss for addition/subtraction patterns according to the numerical data representation of the target computer; A calculation structure analysis section that extracts all addition and subtraction patterns included in the calculation formula specified by the evaluation instruction statement in the numerical calculation program, and a calculation error evaluation subsystem for the addition and subtraction patterns extracted by this calculation structure analysis section. an error evaluation program generation unit that generates an error evaluation program to be evaluated by the program; and an error evaluation program execution unit that translates, combines, and executes the error evaluation program generated by the error evaluation program generation unit and the error evaluation subprogram. has.

【0006】[0006]

【作用】本発明の誤差評価プログラム生成実行方式では
、誤差評価副プログラムが加減算パターンについて対象
計算機の数値データ表現に従って情報落ちによる計算誤
差およびケタ落ちによる計算誤差を評価し、計算構造解
析部が数値計算プログラム中の評価指示文で指定された
計算式に含まれる全ての加減算パターンを抽出し、誤差
評価プログラム生成部が計算構造解析部で抽出された加
減算パターンについての計算誤差を誤差評価副プログラ
ムに評価させる誤差評価プログラムを生成し、誤差評価
プログラム実行部が誤差評価プログラム生成部により生
成された誤差評価プログラムと上述の誤差評価副プログ
ラムとを翻訳し結合し実行する。
[Operation] In the error evaluation program generation/execution method of the present invention, the error evaluation subprogram evaluates the calculation error due to information loss and the calculation error due to digit loss with respect to the addition/subtraction pattern according to the numerical data expression of the target computer, and the calculation structure analysis section The error evaluation program generation section extracts all the addition/subtraction patterns included in the calculation formula specified by the evaluation instruction statement in the calculation program, and the error evaluation program generation section generates the calculation errors for the addition/subtraction patterns extracted by the calculation structure analysis section into the error evaluation subprogram. An error evaluation program to be evaluated is generated, and the error evaluation program execution section translates, combines, and executes the error evaluation program generated by the error evaluation program generation section and the above-mentioned error evaluation subprogram.

【0007】[0007]

【実施例】次に、本発明について図面を参照して詳細に
説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained in detail with reference to the drawings.

【0008】図1は、本発明の誤差評価プログラム生成
実行方式の一実施例の構成を示すブロック図である。本
実施例の誤差評価プログラム生成実行方式は、計算構造
解析部1と、誤差評価プログラム生成部2と、誤差評価
プログラム実行部3と、数値計算プログラム4と、誤差
評価プログラム5と、誤差評価副プログラム6と、評価
データ7とを含んで構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of an error evaluation program generation/execution method according to the present invention. The error evaluation program generation/execution method of this embodiment includes a calculation structure analysis section 1, an error evaluation program generation section 2, an error evaluation program execution section 3, a numerical calculation program 4, an error evaluation program 5, and an error evaluation subsystem. It is configured to include a program 6 and evaluation data 7.

【0009】図2は、数値計算プログラム4の一例(こ
の数値計算プログラム4はFORTRANで記述されて
いる)の一部を示す図である。
FIG. 2 is a diagram showing a part of an example of the numerical calculation program 4 (this numerical calculation program 4 is written in FORTRAN).

【0010】図3は、誤差評価プログラム5の一例(図
2に示す数値計算プログラム4に基づく誤差評価プログ
ラム5)の一部を示す図である。
FIG. 3 is a diagram showing a part of an example of the error evaluation program 5 (error evaluation program 5 based on the numerical calculation program 4 shown in FIG. 2).

【0011】図4は、評価データ7の一例(図2に示す
数値計算プログラム4に対する評価データ7)の一部を
示す図である。
FIG. 4 is a diagram showing a part of an example of the evaluation data 7 (evaluation data 7 for the numerical calculation program 4 shown in FIG. 2).

【0012】次に、このように構成された本実施例の誤
差評価プログラム生成実行方式の動作について説明する
Next, the operation of the error evaluation program generation/execution system of this embodiment configured as described above will be explained.

【0013】図2に示すように、数値計算プログラム4
中の計算誤差を評価したい計算式の直前には評価指示文
(「*          ERREST」)が挿入さ
れている。
As shown in FIG. 2, the numerical calculation program 4
An evaluation instruction sentence ("*ERREST") is inserted immediately before the calculation formula whose calculation error is to be evaluated.

【0014】このような評価指示文が挿入された数値計
算プログラム4は、計算構造解析部1に入力される。
The numerical calculation program 4 into which such evaluation instructions have been inserted is input to the calculation structure analysis section 1.

【0015】計算構造解析部1は、数値計算プログラム
4中の評価指示文を見つけ出し、評価指示文の次の計算
式における全ての加減算パターンを演算順序に従って抽
出し、誤差評価プログラム生成部2に送る。ここで、加
減算パターンとは、加減算を行う2つの項と加減算演算
子との組み合わせをいい、{加減算を行う前の項,加減
算演算子,加減算を行う後の項}で表されるパターンを
いう。
The calculation structure analysis unit 1 finds the evaluation instruction sentence in the numerical calculation program 4, extracts all the addition and subtraction patterns in the calculation formula following the evaluation instruction sentence according to the order of calculation, and sends them to the error evaluation program generation unit 2. . Here, the addition/subtraction pattern refers to a combination of two terms to be added/subtracted and an addition/subtraction operator, and is a pattern expressed by {term before addition/subtraction, addition/subtraction operator, term after addition/subtraction}. .

【0016】誤差評価プログラム生成部2は、計算構造
解析部1から送られた加減算パターンについての情報落
ちによる計算誤差およびケタ落ちによる計算誤差を誤差
評価副プログラム6に評価させる誤差評価プログラム5
を生成する。具体的には、数値計算プログラム4中に誤
差評価副プログラム6のCALL文(「CALL  E
RREST(加減算パターン)」)等を挿入する形式で
誤差評価プログラム5を生成する(図3参照)。
The error evaluation program generation unit 2 generates an error evaluation program 5 that causes the error evaluation sub-program 6 to evaluate calculation errors due to missing information and calculation errors due to dropped digits regarding the addition/subtraction pattern sent from the calculation structure analysis unit 1.
generate. Specifically, the CALL statement (“CALL E
RREST (addition/subtraction pattern)), etc., is generated in the error evaluation program 5 (see FIG. 3).

【0017】誤差評価プログラム実行部3は、誤差評価
プログラム5と誤差評価副プログラム6との翻訳,結合
および実行を行い、数値計算プログラム4中の評価指示
文で指定された計算式における加減算パターンについて
の計算誤差の評価結果を有する評価データ7を出力する
The error evaluation program execution unit 3 translates, combines, and executes the error evaluation program 5 and the error evaluation subprogram 6, and calculates the addition/subtraction pattern in the calculation formula specified by the evaluation instruction statement in the numerical calculation program 4. The evaluation data 7 having the evaluation result of the calculation error is output.

【0018】ここで、誤差評価プログラム実行部3によ
って実行される誤差評価副プログラム6の機能について
説明する。
The functions of the error evaluation subprogram 6 executed by the error evaluation program execution section 3 will now be explained.

【0019】誤差評価副プログラム6は、その誤差評価
副プログラム6が実行される計算機(以下、対象計算機
という)の数値データ表現(対象計算機で数値データが
何進法で表され有効桁数が何桁であるかということ)を
調べる。調べる方法は、次のようなものである。
The error evaluation subprogram 6 expresses numerical data of the computer on which the error evaluation subprogram 6 is executed (hereinafter referred to as the target computer) (in what base system the numerical data is expressed in the target computer and how many significant digits does it have)? Find out if there is one. The method of investigation is as follows.

【0020】■  2のn(正整数)乗を計算し、その
数に1を加算しても結果が変わらないような2n を求
める。すなわち、対象計算機で2n と2n +1とが
同じ値となる2n の値を求める。
■ Calculate 2 to the power of n (a positive integer) and find 2n such that the result does not change even if 1 is added to that number. That is, the value of 2n such that 2n and 2n +1 are the same value in the target computer is determined.

【0021】■  その2n に1から順番に2,3,
4,…と加算する値を増加させて加算を行った場合に、
加算結果が初めて2n と違った値となるときの加算値
を求める。さらに、同様の加算を続けて加算結果が再び
違った値になるときの加算値を求め、両方の加算値の差
を求める。すなわち、2n と2n +i(i=1,2
,3,…)とが違った値になる最小のiを求め、さらに
2n +iと2n +j(j=i+1,i+2,i+3
,…)とが違った値になる最小のjを求め、jとiとの
差を求める。これにより、対象計算機で数値データが何
進法で表されているかを求めることができる。
[0021] ■ 2n, in order from 1 to 2, 3,
When adding by increasing the value to be added as 4,...,
Find the added value when the addition result becomes a value different from 2n for the first time. Furthermore, when the same addition is continued and the addition result becomes a different value again, the added value is determined, and the difference between the two added values is determined. That is, 2n and 2n +i (i=1, 2
, 3, ...), and further calculate 2n +i and 2n +j (j=i+1, i+2, i+3
,...) is a different value, and find the difference between j and i. With this, it is possible to find out what base system the numerical data is expressed in on the target computer.

【0022】■  数値データが何進法で表されている
かが分かったところで(ここではK進法であるものとす
る)、次にその値Kのm(正整数)乗を計算し、その数
に1を加算しても結果が変わらないようなKm を求め
る。すなわち、対象計算機でKmとKm +1とが同じ
値となるようなmを求める。これにより、対象計算機で
の数値データの有効桁数を求めることができる。
[0022] Once you know what base system the numerical data is expressed in (assuming it is K base system here), next calculate the value K to the m (positive integer) power, and multiply that number by 1. Find Km such that the result does not change even if added. That is, m is determined such that Km and Km +1 are the same value in the target computer. This makes it possible to determine the number of effective digits of numerical data on the target computer.

【0023】さらに、誤差評価副プログラム6は、上述
のようにして調べた数値データ表現(本実施例では「1
6進法7桁」であるものとする)に従って、以下に示す
ような処理(計算誤差の評価等)を行う。
Furthermore, the error evaluation subprogram 6 is configured to express the numerical data examined as described above (in this embodiment,
7-digit hexadecimal system), the following processing (evaluation of calculation errors, etc.) is performed.

【0024】■  誤差評価プログラム5から引数とし
て渡された加減算パターンの2つの項を仮数部と指数部
とに分けて表す。ただし、仮数部については、1より小
さく、小数点第1桁目が0ではないように正規化する(
もし、項が0の場合には、指数部および仮数部を0とす
る)。例えば、10進数で4368.0という値の項が
引数として渡されたとすると、以下のような仮数部およ
び指数部を持つ有効桁数7桁の16進数で表現する。 {仮数部  0.1110000    指数部  4
(2) The two terms of the addition/subtraction pattern passed as arguments from the error evaluation program 5 are expressed separately into a mantissa part and an exponent part. However, the mantissa part is normalized so that it is smaller than 1 and the first digit of the decimal point is not 0 (
If the term is 0, the exponent and mantissa parts are set to 0). For example, if a term with a decimal value of 4368.0 is passed as an argument, it will be expressed as a hexadecimal number with 7 significant digits and a mantissa and an exponent as shown below. {mantissa part 0.1110000 exponent part 4
}

【0025】■  加減算パターンの2つの項を比較
して指数部が同じときには、加減算演算子に従って仮数
部の加減算を行い、計算結果の仮数部の有効桁からケタ
落ちによる計算誤差を評価する。
[0025] When the two terms of the addition/subtraction pattern are compared and the exponent parts are the same, the mantissa part is added or subtracted according to the addition/subtraction operator, and the calculation error due to the dropping of digits from the significant digits of the mantissa part of the calculation result is evaluated.

【0026】■  加減算パターンの2つの項を比較し
て指数部が違うときには、指数部の大きい方に指数部の
大きさを合わせ、加減算演算子に従って仮数部の加減算
を行い、ケタ落ちによる計算誤差を評価する。また、指
数部を合わせたことによって一方の仮数部で加減算され
なかった数値を情報落ちによる計算誤差として評価する
■ If two terms in an addition/subtraction pattern are compared and the exponent parts are different, the size of the exponent part is adjusted to the larger exponent part, and the mantissa part is added or subtracted according to the addition/subtraction operator to eliminate calculation errors due to dropped digits. Evaluate. Furthermore, a numerical value that is not added or subtracted in one mantissa part by combining the exponent parts is evaluated as a calculation error due to information loss.

【0027】■  以上のようにして評価したケタ落ち
による計算誤差および情報落ちによる計算誤差を、対象
計算機の数値データ表現に従って10進数の数値に変換
して出力する(この出力に基づいて、誤差評価プログラ
ム実行部3は評価データ7を出力する)。
■ Convert the calculation errors due to missing digits and calculation errors due to information loss evaluated as described above to decimal numbers according to the numerical data representation of the target computer and output them (based on this output, perform error evaluation. The program execution unit 3 outputs evaluation data 7).

【0028】次に、誤差評価副プログラム6による計算
誤差の評価を、具体的な数値を挙げて以下に説明する。
Next, the evaluation of calculation errors by the error evaluation subprogram 6 will be explained below using specific numerical values.

【0029】図2に示す数値計算プログラム4中の評価
指示文で指定された計算式「Y(3)  =  2.0
D0*(Y(2)  −  Y(1))  −  C*
Y(2)」からは、以下の2つの加減算パターンが抽出
される。 {Y(2),’−’,Y(1)} {2.0D0*(Y(2)  −  Y(1)),’−
’,C*Y(2)}
The calculation formula "Y(3) = 2.0" specified in the evaluation instruction statement in the numerical calculation program 4 shown in FIG.
D0*(Y(2) − Y(1)) − C*
The following two addition/subtraction patterns are extracted from "Y(2)". {Y(2),'-',Y(1)} {2.0D0*(Y(2) - Y(1)),'-
',C*Y(2)}

【0030】ここで、対象計算機の数値データ表現が「
16進法7桁」でありY(2)およびY(1)が以下の
値である場合の計算誤差の評価を考える。 Y(2)=1.129918515682220Y(1
)=1.129917442798615
[0030] Here, the numerical data representation of the target computer is "
Consider the evaluation of the calculation error when Y(2) and Y(1) are the following values. Y(2)=1.129918515682220Y(1
)=1.129917442798615

【0031】
■  {Y(2),’−’,Y(1)}に関する計算誤
差 Y(2)およびY(1)を対象計算機の数値データ表現
に合わせて表現すると、それぞれ以下の値となる(「H
」は16進数であることを示す)。 Y(2)=0.1214257H×161Y(1)=0
.1214245H×161
[0031]
■ When the calculation errors Y(2) and Y(1) regarding {Y(2), '-', Y(1)} are expressed in accordance with the numerical data representation of the target computer, the respective values are as follows (``H
” indicates a hexadecimal number). Y(2)=0.1214257H×161Y(1)=0
.. 1214245H×161

【0032】したがって、
「Y(2)  −  Y(1)」は以下のようになる。 0.12H×16−4=1.072883605957
031×10−6
[0032] Therefore,
“Y(2) − Y(1)” is as follows. 0.12H×16-4=1.072883605957
031×10-6

【0033】そこで、ケタ落ちによる計算誤差は次のよ
うに評価される。 16−2×16−4=16−6=5.96046447
7539062×10−8
Therefore, calculation errors due to missing digits are evaluated as follows. 16-2×16-4=16-6=5.96046447
7539062×10-8

【0034】なお、このときには、情報落ちによる計算
誤差は0である。
Note that at this time, the calculation error due to information loss is 0.

【0035】■  {2.0D0*(Y(2)  − 
 Y(1)),’−’,C*Y(2)}に関する計算誤
[0035]■ {2.0D0*(Y(2) −
Calculation error regarding Y(1)), '-', C*Y(2)}

【0036】C=16であるので、「2.0D0*(
Y(2)  −  Y(1))−  C*Y(2)」は
以下のようになる。 0.00000024H×162 −0.121425
7H×162
Since C=16, “2.0D0*(
Y(2) − Y(1)) − C*Y(2)” is as follows. 0.00000024H×162 -0.121425
7H x 162

【0037】そこで、ケタ落ちによる計算誤差は次のよ
うに評価される。 16−7×162 =16−5=9.53674316
4062500D−07
Therefore, calculation errors due to missing digits are evaluated as follows. 16-7×162 =16-5=9.53674316
4062500D-07

【0038】また、情報落ちによる計算誤差は次のよう
に評価される。 0.4H×16−5=2.3841857910156
25D−07
Furthermore, calculation errors due to information loss are evaluated as follows. 0.4H×16-5=2.3841857910156
25D-07

【0039】図4は、以上のような評価結果を有する評
価データ7(評価データ7の一部)を示している。なお
、同図中の「ERR」はケタ落ちによる計算誤差を示し
ており、「OCH」は情報落ちによる計算誤差を示して
いる。
FIG. 4 shows the evaluation data 7 (part of the evaluation data 7) having the evaluation results as described above. Note that "ERR" in the figure indicates a calculation error due to missing digits, and "OCH" indicates a calculation error due to missing information.

【0040】[0040]

【発明の効果】以上説明したように本発明は、数値計算
プログラム中の計算式の計算誤差を評価する際に、ある
計算式中の全ての加減算パターンに関する計算誤差を誤
差評価副プログラムに評価させる誤差評価プログラムを
自動的に生成して実行することにより、任意の入力デー
タに対しての計算誤差の評価を可能とし、効率的に計算
誤差を分析することができるという効果がある。
[Effects of the Invention] As explained above, when evaluating the calculation error of a calculation formula in a numerical calculation program, the present invention causes the error evaluation subprogram to evaluate calculation errors regarding all addition/subtraction patterns in a certain calculation formula. By automatically generating and executing the error evaluation program, calculation errors can be evaluated for arbitrary input data, and calculation errors can be efficiently analyzed.

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

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】図1中の数値計算プログラムの一例の一部を示
す図である。
FIG. 2 is a diagram showing a part of an example of the numerical calculation program in FIG. 1;

【図3】図1中の誤差評価プログラムの一例の一部を示
す図である。
FIG. 3 is a diagram showing a part of an example of the error evaluation program in FIG. 1;

【図4】図1中の評価データの一例の一部を示す図であ
る。
FIG. 4 is a diagram showing a part of an example of evaluation data in FIG. 1;

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

1  計算構造解析部 2  誤差評価プログラム生成部 3  誤差評価プログラム実行部 4  数値計算プログラム 5  誤差評価プログラム 6  誤差評価副プログラム 7  評価データ 1. Computational structure analysis department 2 Error evaluation program generation unit 3 Error evaluation program execution unit 4 Numerical calculation program 5 Error evaluation program 6 Error evaluation subprogram 7 Evaluation data

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  加減算パターンについて対象計算機の
数値データ表現に従って情報落ちによる計算誤差および
ケタ落ちによる計算誤差を評価する誤差評価副プログラ
ムと、数値計算プログラム中の評価指示文で指定された
計算式に含まれる全ての加減算パターンを抽出する計算
構造解析部と、この計算構造解析部で抽出された加減算
パターンについての計算誤差を前記誤差評価副プログラ
ムに評価させる誤差評価プログラムを生成する誤差評価
プログラム生成部と、この誤差評価プログラム生成部に
より生成された誤差評価プログラムと前記誤差評価副プ
ログラムとを翻訳し結合し実行する誤差評価プログラム
実行部とを有することを特徴とする誤差評価プログラム
生成実行方式。
[Claim 1] An error evaluation subprogram that evaluates calculation errors due to information loss and calculation errors due to digit loss according to the numerical data representation of the target computer for addition and subtraction patterns, and a calculation formula specified by an evaluation instruction statement in the numerical calculation program. a calculation structure analysis unit that extracts all included addition and subtraction patterns; and an error evaluation program generation unit that generates an error evaluation program that causes the error evaluation subprogram to evaluate calculation errors for the addition and subtraction patterns extracted by the calculation structure analysis unit. and an error evaluation program execution unit that translates, combines, and executes the error evaluation program generated by the error evaluation program generation unit and the error evaluation subprogram.
JP2414735A 1990-12-27 1990-12-27 Generation and execution system for error evaluation program Pending JPH04229324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2414735A JPH04229324A (en) 1990-12-27 1990-12-27 Generation and execution system for error evaluation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2414735A JPH04229324A (en) 1990-12-27 1990-12-27 Generation and execution system for error evaluation program

Publications (1)

Publication Number Publication Date
JPH04229324A true JPH04229324A (en) 1992-08-18

Family

ID=18523184

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2414735A Pending JPH04229324A (en) 1990-12-27 1990-12-27 Generation and execution system for error evaluation program

Country Status (1)

Country Link
JP (1) JPH04229324A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007213402A (en) * 2006-02-10 2007-08-23 Denso Corp Program code generation system
JP2007272629A (en) * 2006-03-31 2007-10-18 Casio Comput Co Ltd Calculator and calculation program
JP2013201855A (en) * 2012-03-26 2013-10-03 Nippon Telegraph & Telephone East Corp Method and device for confirming induction voltage calculation accuracy
JP2023047128A (en) * 2021-09-24 2023-04-05 東芝情報システム株式会社 Calculation error warning device and calculation error warning program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5848141A (en) * 1981-09-16 1983-03-22 Fujitsu Ltd Automatic detection system for digit cancelling

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5848141A (en) * 1981-09-16 1983-03-22 Fujitsu Ltd Automatic detection system for digit cancelling

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007213402A (en) * 2006-02-10 2007-08-23 Denso Corp Program code generation system
JP2007272629A (en) * 2006-03-31 2007-10-18 Casio Comput Co Ltd Calculator and calculation program
JP2013201855A (en) * 2012-03-26 2013-10-03 Nippon Telegraph & Telephone East Corp Method and device for confirming induction voltage calculation accuracy
JP2023047128A (en) * 2021-09-24 2023-04-05 東芝情報システム株式会社 Calculation error warning device and calculation error warning program

Similar Documents

Publication Publication Date Title
JP3053092B2 (en) Parallel compilation method
Braun et al. Cuda flux: A lightweight instruction profiler for cuda applications
Wang et al. Accurate source-level simulation of embedded software with respect to compiler optimizations
US8056064B2 (en) Method for recognition of acyclic instruction patterns
US20040210615A1 (en) Programming environment
JPH04229324A (en) Generation and execution system for error evaluation program
US6256776B1 (en) Digital signal processing code development with fixed point and floating point libraries
You et al. Translating AArch64 floating-point instruction set to the x86-64 platform
Pryanishnikov et al. Pointer alignment analysis for processors with SIMD instructions
Ince et al. An empirical and theoretical analysis of an information flow-based system design metric
Stucki A prototype automatic program testing tool
JP2001325100A (en) Program-analyzing device
Schulte et al. The interval-enhanced GNU Fortran compiler
Bjorn Multiresolution methods for financial time series prediction
Miao et al. Expression Isolation of Compiler-Induced Numerical Inconsistencies in Heterogeneous Code
Hao et al. Profpred: A compiler-level ir based performance prediction framework for mpi industrial applications
Hanebutte et al. Pre-Quantized Deep Learning Models Codified in ONNX to Enable Hardware/Software Co-Design
Vujicic et al. Predetermination of the quantization error in digital measurement systems
JP3295853B2 (en) Compile processing unit
JPH01128136A (en) Compiling process system
Kirner et al. Consideration of optimizing compilers in the context of WCET analysis
JP3658771B2 (en) Compiler device
Bohlender et al. Floating-point systems for theorem proving
JPH0520135A (en) Execution time performance measuring system for target program
JP2864589B2 (en) Function value difference output system