From 9e8c8c79867c0dd60249cea48001a74c457564bc Mon Sep 17 00:00:00 2001 From: Vaibhav Thakkar Date: Mon, 22 Jan 2024 19:12:20 +0100 Subject: [PATCH] Fix reordering in tests and demos --- test/Arrays/ArrayInputsReverseMode.C | 12 ++++++------ test/ErrorEstimation/Assignments.C | 12 ++++++------ test/ErrorEstimation/BasicOps.C | 14 +++++++------- test/ErrorEstimation/ConditonalStatements.C | 8 ++++---- test/ErrorEstimation/LoopsAndArrays.C | 14 +++++++------- test/Misc/RunDemos.C | 6 +++--- 6 files changed, 33 insertions(+), 33 deletions(-) diff --git a/test/Arrays/ArrayInputsReverseMode.C b/test/Arrays/ArrayInputsReverseMode.C index 2719a607c..0b09a11a0 100644 --- a/test/Arrays/ArrayInputsReverseMode.C +++ b/test/Arrays/ArrayInputsReverseMode.C @@ -95,9 +95,9 @@ float func(float* a, float* b) { //CHECK-NEXT: { //CHECK-NEXT: a[i] = clad::pop(_t1); //CHECK-NEXT: float _r_d0 = _d_a[i]; +//CHECK-NEXT: _d_a[i] -= _r_d0; //CHECK-NEXT: _d_a[i] += _r_d0 * b[i]; //CHECK-NEXT: _d_b[i] += a[i] * _r_d0; -//CHECK-NEXT: _d_a[i] -= _r_d0; //CHECK-NEXT: _d_a[i]; //CHECK-NEXT: } //CHECK-NEXT: } @@ -284,8 +284,8 @@ double func5(int k) { //CHECK-NEXT: { //CHECK-NEXT: arr[i] = clad::pop(_t1); //CHECK-NEXT: double _r_d0 = _d_arr[i]; -//CHECK-NEXT: * _d_k += _r_d0; //CHECK-NEXT: _d_arr[i] -= _r_d0; +//CHECK-NEXT: * _d_k += _r_d0; //CHECK-NEXT: _d_arr[i]; //CHECK-NEXT: } //CHECK-NEXT: } @@ -386,10 +386,10 @@ double func7(double *params) { //CHECK-NEXT: { //CHECK-NEXT: out = clad::pop(_t1); //CHECK-NEXT: double _r_d0 = _d_out; +//CHECK-NEXT: _d_out -= _r_d0; //CHECK-NEXT: _d_out += _r_d0; //CHECK-NEXT: inv_square_pullback(paramsPrime, _r_d0, _d_paramsPrime); //CHECK-NEXT: clad::array _r0(_d_paramsPrime); -//CHECK-NEXT: _d_out -= _r_d0; //CHECK-NEXT: } //CHECK-NEXT: { //CHECK-NEXT: _d_params[0] += _d_paramsPrime[0]; @@ -445,6 +445,7 @@ double func8(double i, double *arr, int n) { //CHECK-NEXT: { //CHECK-NEXT: res = _t1; //CHECK-NEXT: double _r_d1 = _d_res; +//CHECK-NEXT: _d_res -= _r_d1; //CHECK-NEXT: arr = _t2; //CHECK-NEXT: double _grad0 = 0.; //CHECK-NEXT: int _grad2 = 0; @@ -454,7 +455,6 @@ double func8(double i, double *arr, int n) { //CHECK-NEXT: clad::array _r1(_d_arr); //CHECK-NEXT: int _r2 = _grad2; //CHECK-NEXT: * _d_n += _r2; -//CHECK-NEXT: _d_res -= _r_d1; //CHECK-NEXT: } //CHECK-NEXT: { //CHECK-NEXT: arr[0] = _t0; @@ -475,8 +475,8 @@ void modify(double& elem, double val) { //CHECK-NEXT: { //CHECK-NEXT: elem = _t0; //CHECK-NEXT: double _r_d0 = * _d_elem; -//CHECK-NEXT: * _d_val += _r_d0; //CHECK-NEXT: * _d_elem -= _r_d0; +//CHECK-NEXT: * _d_val += _r_d0; //CHECK-NEXT: * _d_elem; //CHECK-NEXT: } //CHECK-NEXT: } @@ -540,9 +540,9 @@ double sq(double& elem) { //CHECK-NEXT: { //CHECK-NEXT: elem = _t0; //CHECK-NEXT: double _r_d0 = * _d_elem; +//CHECK-NEXT: * _d_elem -= _r_d0; //CHECK-NEXT: * _d_elem += _r_d0 * elem; //CHECK-NEXT: * _d_elem += elem * _r_d0; -//CHECK-NEXT: * _d_elem -= _r_d0; //CHECK-NEXT: * _d_elem; //CHECK-NEXT: } //CHECK-NEXT: } diff --git a/test/ErrorEstimation/Assignments.C b/test/ErrorEstimation/Assignments.C index 011d53c2e..3325b7e60 100644 --- a/test/ErrorEstimation/Assignments.C +++ b/test/ErrorEstimation/Assignments.C @@ -29,17 +29,17 @@ float func(float x, float y) { //CHECK-NEXT: { //CHECK-NEXT: y = _t1; //CHECK-NEXT: float _r_d1 = * _d_y; -//CHECK-NEXT: * _d_x += _r_d1; //CHECK-NEXT: * _d_y -= _r_d1; +//CHECK-NEXT: * _d_x += _r_d1; //CHECK-NEXT: * _d_y; //CHECK-NEXT: } //CHECK-NEXT: { //CHECK-NEXT: x = _t0; //CHECK-NEXT: float _r_d0 = * _d_x; +//CHECK-NEXT: * _d_x -= _r_d0; //CHECK-NEXT: * _d_x += _r_d0; //CHECK-NEXT: * _d_y += _r_d0; //CHECK-NEXT: _delta_x += std::abs(_r_d0 * _EERepl_x1 * {{.+}}); -//CHECK-NEXT: * _d_x -= _r_d0; //CHECK-NEXT: * _d_x; //CHECK-NEXT: } //CHECK-NEXT: _delta_x += std::abs(* _d_x * _EERepl_x0 * {{.+}}); @@ -67,12 +67,12 @@ float func2(float x, int y) { //CHECK-NEXT: { //CHECK-NEXT: x = _t0; //CHECK-NEXT: float _r_d0 = * _d_x; +//CHECK-NEXT: * _d_x -= _r_d0; //CHECK-NEXT: * _d_y += _r_d0 * x; //CHECK-NEXT: * _d_x += y * _r_d0; //CHECK-NEXT: * _d_x += _r_d0 * x; //CHECK-NEXT: * _d_x += x * _r_d0; //CHECK-NEXT: _delta_x += std::abs(_r_d0 * _EERepl_x1 * {{.+}}); -//CHECK-NEXT: * _d_x -= _r_d0; //CHECK-NEXT: * _d_x; //CHECK-NEXT: } //CHECK-NEXT: _delta_x += std::abs(* _d_x * _EERepl_x0 * {{.+}}); @@ -94,8 +94,8 @@ float func3(int x, int y) { //CHECK-NEXT: { //CHECK-NEXT: x = _t0; //CHECK-NEXT: int _r_d0 = * _d_x; -//CHECK-NEXT: * _d_y += _r_d0; //CHECK-NEXT: * _d_x -= _r_d0; +//CHECK-NEXT: * _d_y += _r_d0; //CHECK-NEXT: * _d_x; //CHECK-NEXT: } //CHECK-NEXT: } @@ -125,10 +125,10 @@ float func4(float x, float y) { //CHECK-NEXT: { //CHECK-NEXT: x = _t0; //CHECK-NEXT: float _r_d0 = * _d_x; +//CHECK-NEXT: * _d_x -= _r_d0; //CHECK-NEXT: _d_z += _r_d0; //CHECK-NEXT: * _d_y += _r_d0; //CHECK-NEXT: _delta_x += std::abs(_r_d0 * _EERepl_x1 * {{.+}}); -//CHECK-NEXT: * _d_x -= _r_d0; //CHECK-NEXT: * _d_x; //CHECK-NEXT: } //CHECK-NEXT: * _d_y += _d_z; @@ -160,10 +160,10 @@ float func5(float x, float y) { //CHECK-NEXT: { //CHECK-NEXT: x = _t0; //CHECK-NEXT: float _r_d0 = * _d_x; +//CHECK-NEXT: * _d_x -= _r_d0; //CHECK-NEXT: _d_z += _r_d0; //CHECK-NEXT: * _d_y += _r_d0; //CHECK-NEXT: _delta_x += std::abs(_r_d0 * _EERepl_x1 * {{.+}}); -//CHECK-NEXT: * _d_x -= _r_d0; //CHECK-NEXT: * _d_x; //CHECK-NEXT: } //CHECK-NEXT: _delta_x += std::abs(* _d_x * _EERepl_x0 * {{.+}}); diff --git a/test/ErrorEstimation/BasicOps.C b/test/ErrorEstimation/BasicOps.C index 6b11d07c7..a0889138b 100644 --- a/test/ErrorEstimation/BasicOps.C +++ b/test/ErrorEstimation/BasicOps.C @@ -46,22 +46,22 @@ float func(float x, float y) { //CHECK-NEXT: { //CHECK-NEXT: y = _t1; //CHECK-NEXT: float _r_d1 = * _d_y; +//CHECK-NEXT: * _d_y -= _r_d1; //CHECK-NEXT: * _d_y += _r_d1; //CHECK-NEXT: * _d_y += _r_d1; //CHECK-NEXT: y--; //CHECK-NEXT: _delta_y += std::abs(* _d_y * _EERepl_y1 * {{.+}}); //CHECK-NEXT: * _d_y += _r_d1; //CHECK-NEXT: _delta_y += std::abs(_r_d1 * _EERepl_y2 * {{.+}}); -//CHECK-NEXT: * _d_y -= _r_d1; //CHECK-NEXT: * _d_y; //CHECK-NEXT: } //CHECK-NEXT: { //CHECK-NEXT: x = _t0; //CHECK-NEXT: float _r_d0 = * _d_x; +//CHECK-NEXT: * _d_x -= _r_d0; //CHECK-NEXT: * _d_x += _r_d0; //CHECK-NEXT: * _d_y += _r_d0; //CHECK-NEXT: _delta_x += std::abs(_r_d0 * _EERepl_x1 * {{.+}}); -//CHECK-NEXT: * _d_x -= _r_d0; //CHECK-NEXT: * _d_x; //CHECK-NEXT: } //CHECK-NEXT: _delta_x += std::abs(* _d_x * _EERepl_x0 * {{.+}}); @@ -102,12 +102,12 @@ float func2(float x, float y) { //CHECK-NEXT: { //CHECK-NEXT: x = _t0; //CHECK-NEXT: float _r_d0 = * _d_x; +//CHECK-NEXT: * _d_x -= _r_d0; //CHECK-NEXT: * _d_x += _r_d0; //CHECK-NEXT: * _d_y += -_r_d0; //CHECK-NEXT: * _d_y += -_r_d0 * y; //CHECK-NEXT: * _d_y += y * -_r_d0; //CHECK-NEXT: _delta_x += std::abs(_r_d0 * _EERepl_x1 * {{.+}}); -//CHECK-NEXT: * _d_x -= _r_d0; //CHECK-NEXT: * _d_x; //CHECK-NEXT: } //CHECK-NEXT: _delta_x += std::abs(* _d_x * _EERepl_x0 * {{.+}}); @@ -160,22 +160,22 @@ float func3(float x, float y) { //CHECK-NEXT: * _d_y += x * z * _d_t; //CHECK-NEXT: y = _t2; //CHECK-NEXT: float _r_d1 = * _d_y; +//CHECK-NEXT: * _d_y -= _r_d1; //CHECK-NEXT: * _d_x += _r_d1; //CHECK-NEXT: * _d_x += _r_d1; //CHECK-NEXT: _delta_y += std::abs(_r_d1 * _EERepl_y1 * {{.+}}); -//CHECK-NEXT: * _d_y -= _r_d1; //CHECK-NEXT: _delta_t += std::abs(_d_t * _EERepl_t0 * {{.+}}); //CHECK-NEXT: } //CHECK-NEXT: * _d_y += _d_z; //CHECK-NEXT: { //CHECK-NEXT: x = _t0; //CHECK-NEXT: float _r_d0 = * _d_x; +//CHECK-NEXT: * _d_x -= _r_d0; //CHECK-NEXT: * _d_x += _r_d0; //CHECK-NEXT: * _d_y += -_r_d0; //CHECK-NEXT: * _d_y += -_r_d0 * y; //CHECK-NEXT: * _d_y += y * -_r_d0; //CHECK-NEXT: _delta_x += std::abs(_r_d0 * _EERepl_x1 * {{.+}}); -//CHECK-NEXT: * _d_x -= _r_d0; //CHECK-NEXT: * _d_x; //CHECK-NEXT: } //CHECK-NEXT: _delta_x += std::abs(* _d_x * _EERepl_x0 * {{.+}}); @@ -232,10 +232,10 @@ float func5(float x, float y) { //CHECK-NEXT: { //CHECK-NEXT: y = _t0; //CHECK-NEXT: float _r_d0 = * _d_y; +//CHECK-NEXT: * _d_y -= _r_d0; //CHECK-NEXT: float _r0 = _r_d0 * clad::custom_derivatives{{(::std)?}}::sin_pushforward(x, 1.F).pushforward; //CHECK-NEXT: * _d_x += _r0; //CHECK-NEXT: _delta_y += std::abs(_r_d0 * _EERepl_y1 * {{.+}}); -//CHECK-NEXT: * _d_y -= _r_d0; //CHECK-NEXT: * _d_y; //CHECK-NEXT: } //CHECK-NEXT: double _delta_x = 0; @@ -360,6 +360,7 @@ float func8(float x, float y) { //CHECK-NEXT: { //CHECK-NEXT: z = _t0; //CHECK-NEXT: float _r_d0 = _d_z; +//CHECK-NEXT: _d_z -= _r_d0; //CHECK-NEXT: * _d_y += _r_d0; //CHECK-NEXT: x = _t1; //CHECK-NEXT: double _t2 = 0; @@ -367,7 +368,6 @@ float func8(float x, float y) { //CHECK-NEXT: float _r0 = * _d_x; //CHECK-NEXT: _delta_z += _t2; //CHECK-NEXT: _final_error += std::abs(_r0 * _t1 * {{.+}}); -//CHECK-NEXT: _d_z -= _r_d0; //CHECK-NEXT: } //CHECK-NEXT: double _delta_x = 0; //CHECK-NEXT: _delta_x += std::abs(* _d_x * x * {{.+}}); diff --git a/test/ErrorEstimation/ConditonalStatements.C b/test/ErrorEstimation/ConditonalStatements.C index 30b826081..ea9acae55 100644 --- a/test/ErrorEstimation/ConditonalStatements.C +++ b/test/ErrorEstimation/ConditonalStatements.C @@ -55,27 +55,27 @@ float func(float x, float y) { //CHECK-NEXT: { //CHECK-NEXT: y = _t0; //CHECK-NEXT: float _r_d0 = * _d_y; +//CHECK-NEXT: * _d_y -= _r_d0; //CHECK-NEXT: * _d_y += _r_d0 * x; //CHECK-NEXT: * _d_x += y * _r_d0; //CHECK-NEXT: _delta_y += std::abs(_r_d0 * _EERepl_y1 * {{.+}}); -//CHECK-NEXT: * _d_y -= _r_d0; //CHECK-NEXT: * _d_y; //CHECK-NEXT: } //CHECK-NEXT: } else { //CHECK-NEXT: { //CHECK-NEXT: x = _t2; //CHECK-NEXT: float _r_d2 = * _d_x; -//CHECK-NEXT: * _d_y += _r_d2; //CHECK-NEXT: * _d_x -= _r_d2; +//CHECK-NEXT: * _d_y += _r_d2; //CHECK-NEXT: * _d_x; //CHECK-NEXT: } //CHECK-NEXT: { //CHECK-NEXT: temp = _t1; //CHECK-NEXT: float _r_d1 = _d_temp; +//CHECK-NEXT: _d_temp -= _r_d1; //CHECK-NEXT: * _d_y += _r_d1 * y; //CHECK-NEXT: * _d_y += y * _r_d1; //CHECK-NEXT: _delta_temp += std::abs(_r_d1 * _EERepl_temp1 * {{.+}}); -//CHECK-NEXT: _d_temp -= _r_d1; //CHECK-NEXT: } //CHECK-NEXT: * _d_y += _d_temp; //CHECK-NEXT: } @@ -193,10 +193,10 @@ float func4(float x, float y) { //CHECK-NEXT: } else { //CHECK-NEXT: x = _t1; //CHECK-NEXT: float _r_d1 = * _d_x; +//CHECK-NEXT: * _d_x -= _r_d1; //CHECK-NEXT: * _d_x += _r_d1 * x; //CHECK-NEXT: * _d_x += x * _r_d1; //CHECK-NEXT: _delta_x += std::abs(_r_d1 * _EERepl_x2 * {{.+}}); -//CHECK-NEXT: * _d_x -= _r_d1; //CHECK-NEXT: } //CHECK-NEXT: _cond0 ? * _d_x : * _d_x; //CHECK-NEXT: } diff --git a/test/ErrorEstimation/LoopsAndArrays.C b/test/ErrorEstimation/LoopsAndArrays.C index b75bd89a5..8281ee0a0 100644 --- a/test/ErrorEstimation/LoopsAndArrays.C +++ b/test/ErrorEstimation/LoopsAndArrays.C @@ -97,11 +97,11 @@ float func2(float x) { //CHECK-NEXT: { //CHECK-NEXT: z = clad::pop(_t2); //CHECK-NEXT: float _r_d0 = _d_z; +//CHECK-NEXT: _d_z -= _r_d0; //CHECK-NEXT: _d_m += _r_d0; //CHECK-NEXT: _d_m += _r_d0; //CHECK-NEXT: float _r1 = clad::pop(_EERepl_z1); //CHECK-NEXT: _delta_z += std::abs(_r_d0 * _r1 * {{.+}}); -//CHECK-NEXT: _d_z -= _r_d0; //CHECK-NEXT: } //CHECK-NEXT: { //CHECK-NEXT: * _d_x += _d_m * x; @@ -150,31 +150,31 @@ float func3(float x, float y) { //CHECK-NEXT: { //CHECK-NEXT: arr[2] = _t2; //CHECK-NEXT: double _r_d2 = _d_arr[2]; +//CHECK-NEXT: _d_arr[2] -= _r_d2; //CHECK-NEXT: _d_arr[0] += _r_d2; //CHECK-NEXT: _d_arr[1] += _r_d2; //CHECK-NEXT: _delta_arr[2] += std::abs(_r_d2 * _EERepl_arr2 * {{.+}}); //CHECK-NEXT: _final_error += _delta_arr[2]; -//CHECK-NEXT: _d_arr[2] -= _r_d2; //CHECK-NEXT: _d_arr[2]; //CHECK-NEXT: } //CHECK-NEXT: { //CHECK-NEXT: arr[1] = _t1; //CHECK-NEXT: double _r_d1 = _d_arr[1]; +//CHECK-NEXT: _d_arr[1] -= _r_d1; //CHECK-NEXT: * _d_x += _r_d1 * x; //CHECK-NEXT: * _d_x += x * _r_d1; //CHECK-NEXT: _delta_arr[1] += std::abs(_r_d1 * _EERepl_arr1 * {{.+}}); //CHECK-NEXT: _final_error += _delta_arr[1]; -//CHECK-NEXT: _d_arr[1] -= _r_d1; //CHECK-NEXT: _d_arr[1]; //CHECK-NEXT: } //CHECK-NEXT: { //CHECK-NEXT: arr[0] = _t0; //CHECK-NEXT: double _r_d0 = _d_arr[0]; +//CHECK-NEXT: _d_arr[0] -= _r_d0; //CHECK-NEXT: * _d_x += _r_d0; //CHECK-NEXT: * _d_y += _r_d0; //CHECK-NEXT: _delta_arr[0] += std::abs(_r_d0 * _EERepl_arr0 * {{.+}}); //CHECK-NEXT: _final_error += _delta_arr[0]; -//CHECK-NEXT: _d_arr[0] -= _r_d0; //CHECK-NEXT: _d_arr[0]; //CHECK-NEXT: } //CHECK-NEXT: double _delta_x = 0; @@ -300,37 +300,37 @@ double func5(double* x, double* y, double* output) { //CHECK-NEXT: { //CHECK-NEXT: output[2] = _t2; //CHECK-NEXT: double _r_d2 = _d_output[2]; +//CHECK-NEXT: _d_output[2] -= _r_d2; //CHECK-NEXT: _d_x[0] += _r_d2 * y[1]; //CHECK-NEXT: _d_y[1] += x[0] * _r_d2; //CHECK-NEXT: _d_y[0] += -_r_d2 * x[1]; //CHECK-NEXT: _d_x[1] += y[0] * -_r_d2; //CHECK-NEXT: _delta_output[2] += std::abs(_r_d2 * _EERepl_output3 * {{.+}}); //CHECK-NEXT: _final_error += _delta_output[2]; -//CHECK-NEXT: _d_output[2] -= _r_d2; //CHECK-NEXT: _d_output[2]; //CHECK-NEXT: } //CHECK-NEXT: { //CHECK-NEXT: output[1] = _t1; //CHECK-NEXT: double _r_d1 = _d_output[1]; +//CHECK-NEXT: _d_output[1] -= _r_d1; //CHECK-NEXT: _d_x[2] += _r_d1 * y[0]; //CHECK-NEXT: _d_y[0] += x[2] * _r_d1; //CHECK-NEXT: _d_x[0] += -_r_d1 * y[2]; //CHECK-NEXT: _d_y[2] += x[0] * -_r_d1; //CHECK-NEXT: _delta_output[1] += std::abs(_r_d1 * _EERepl_output2 * {{.+}}); //CHECK-NEXT: _final_error += _delta_output[1]; -//CHECK-NEXT: _d_output[1] -= _r_d1; //CHECK-NEXT: _d_output[1]; //CHECK-NEXT: } //CHECK-NEXT: { //CHECK-NEXT: output[0] = _t0; //CHECK-NEXT: double _r_d0 = _d_output[0]; +//CHECK-NEXT: _d_output[0] -= _r_d0; //CHECK-NEXT: _d_x[1] += _r_d0 * y[2]; //CHECK-NEXT: _d_y[2] += x[1] * _r_d0; //CHECK-NEXT: _d_x[2] += -_r_d0 * y[1]; //CHECK-NEXT: _d_y[1] += x[2] * -_r_d0; //CHECK-NEXT: _delta_output[0] += std::abs(_r_d0 * _EERepl_output1 * {{.+}}); //CHECK-NEXT: _final_error += _delta_output[0]; -//CHECK-NEXT: _d_output[0] -= _r_d0; //CHECK-NEXT: _d_output[0]; //CHECK-NEXT: } //CHECK-NEXT: clad::array _delta_x(_d_x.size()); diff --git a/test/Misc/RunDemos.C b/test/Misc/RunDemos.C index f0ad8ba42..5a0ecfec3 100644 --- a/test/Misc/RunDemos.C +++ b/test/Misc/RunDemos.C @@ -131,11 +131,11 @@ //CHECK_FLOAT_SUM: { //CHECK_FLOAT_SUM: sum = clad::pop(_t1); //CHECK_FLOAT_SUM: float _r_d0 = _d_sum; +//CHECK_FLOAT_SUM: _d_sum -= _r_d0; //CHECK_FLOAT_SUM: _d_sum += _r_d0; //CHECK_FLOAT_SUM: * _d_x += _r_d0; //CHECK_FLOAT_SUM: float _r0 = clad::pop(_EERepl_sum1); //CHECK_FLOAT_SUM: _delta_sum += std::abs(_r_d0 * _r0 * 1.1920928955078125E-7); -//CHECK_FLOAT_SUM: _d_sum -= _r_d0; //CHECK_FLOAT_SUM: } //CHECK_FLOAT_SUM: } //CHECK_FLOAT_SUM: _delta_sum += std::abs(_d_sum * _EERepl_sum0 * 1.1920928955078125E-7); @@ -174,10 +174,10 @@ // CHECK_CUSTOM_MODEL_EXEC-NEXT: { // CHECK_CUSTOM_MODEL_EXEC-NEXT: z = _t0; // CHECK_CUSTOM_MODEL_EXEC-NEXT: float _r_d0 = _d_z; +// CHECK_CUSTOM_MODEL_EXEC-NEXT: _d_z -= _r_d0; // CHECK_CUSTOM_MODEL_EXEC-NEXT: * _d_x += _r_d0; // CHECK_CUSTOM_MODEL_EXEC-NEXT: * _d_y += _r_d0; // CHECK_CUSTOM_MODEL_EXEC-NEXT: _delta_z += _r_d0 * _EERepl_z1; -// CHECK_CUSTOM_MODEL_EXEC-NEXT: _d_z -= _r_d0; // CHECK_CUSTOM_MODEL_EXEC-NEXT: } // CHECK_CUSTOM_MODEL_EXEC-NEXT: double _delta_x = 0; // CHECK_CUSTOM_MODEL_EXEC-NEXT: _delta_x += * _d_x * x; @@ -216,10 +216,10 @@ // CHECK_PRINT_MODEL_EXEC-NEXT: { // CHECK_PRINT_MODEL_EXEC-NEXT: z = _t0; // CHECK_PRINT_MODEL_EXEC-NEXT: float _r_d0 = _d_z; +// CHECK_PRINT_MODEL_EXEC-NEXT: _d_z -= _r_d0; // CHECK_PRINT_MODEL_EXEC-NEXT: * _d_x += _r_d0; // CHECK_PRINT_MODEL_EXEC-NEXT: * _d_y += _r_d0; // CHECK_PRINT_MODEL_EXEC-NEXT: _delta_z += clad::getErrorVal(_r_d0, _EERepl_z1, "z"); -// CHECK_PRINT_MODEL_EXEC-NEXT: _d_z -= _r_d0; // CHECK_PRINT_MODEL_EXEC-NEXT: } // CHECK_PRINT_MODEL_EXEC-NEXT: double _delta_x = 0; // CHECK_PRINT_MODEL_EXEC-NEXT: _delta_x += clad::getErrorVal(* _d_x, x, "x");