Skip to content

Commit

Permalink
Fix zero types in the new STL custom derivatives test
Browse files Browse the repository at this point in the history
  • Loading branch information
gojakuch authored and vgvassilev committed Sep 3, 2024
1 parent fad4a69 commit 685bcbf
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions test/Gradient/STLCustomDerivatives.C
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ int main() {
// CHECK-NEXT: std::vector<double> _t9 = vec;
// CHECK-NEXT: {{.*}}ValueAndAdjoint<double &, double &> _t10 = {{.*}}class_functions::operator_subscript_reverse_forw(&vec, 1, &_d_vec, _r2);
// CHECK-NEXT: {
// CHECK-NEXT: size_type _r1 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r1 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::operator_subscript_pullback(&_t7, 0, 1, &_d_vec, &_r1);
// CHECK-NEXT: size_type _r2 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r2 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::operator_subscript_pullback(&_t9, 1, 1, &_d_vec, &_r2);
// CHECK-NEXT: }
// CHECK-NEXT: {
Expand All @@ -186,7 +186,7 @@ int main() {
// CHECK-NEXT: *_d_u += _r_d0;
// CHECK-NEXT: }
// CHECK-NEXT: {
// CHECK-NEXT: size_type _r0 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r0 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::operator_subscript_pullback(&_t4, 0, 0., &_d_vec, &_r0);
// CHECK-NEXT: }
// CHECK-NEXT: {
Expand Down Expand Up @@ -282,9 +282,9 @@ int main() {
// CHECK-NEXT: {
// CHECK-NEXT: res = _t25;
// CHECK-NEXT: double _r_d6 = _d_res;
// CHECK-NEXT: size_type _r10 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r10 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::operator_subscript_pullback(&_t26, 0, _r_d6, &_d_vec, &_r10);
// CHECK-NEXT: size_type _r11 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r11 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::operator_subscript_pullback(&_t28, 1, _r_d6, &_d_vec, &_r11);
// CHECK-NEXT: }
// CHECK-NEXT: {
Expand All @@ -301,28 +301,28 @@ int main() {
// CHECK-NEXT: *_d_u += _r_d4;
// CHECK-NEXT: }
// CHECK-NEXT: {
// CHECK-NEXT: size_type _r9 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r9 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::operator_subscript_pullback(&_t21, 1, 0., &_d_vec, &_r9);
// CHECK-NEXT: }
// CHECK-NEXT: {
// CHECK-NEXT: size_type _r8 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r8 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::operator_subscript_pullback(&_t19, 0, 0., &_d_vec, &_r8);
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: {
// CHECK-NEXT: size_type _r7 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r7 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::resize_pullback(&_t18, 2, &_d_vec, &_r7);
// CHECK-NEXT: }
// CHECK-NEXT: clad::custom_derivatives::class_functions::clear_pullback(&_t17, &_d_vec);
// CHECK-NEXT: {
// CHECK-NEXT: res = _t10;
// CHECK-NEXT: double _r_d3 = _d_res;
// CHECK-NEXT: _d_res = 0.;
// CHECK-NEXT: size_type _r4 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r4 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::operator_subscript_pullback(&_t11, 0, _r_d3, &_d_vec, &_r4);
// CHECK-NEXT: size_type _r5 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r5 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::operator_subscript_pullback(&_t13, 1, _r_d3, &_d_vec, &_r5);
// CHECK-NEXT: size_type _r6 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r6 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::operator_subscript_pullback(&_t15, 2, _r_d3, &_d_vec, &_r6);
// CHECK-NEXT: }
// CHECK-NEXT: {
Expand All @@ -346,20 +346,20 @@ int main() {
// CHECK-NEXT: *_d_u += _r_d0;
// CHECK-NEXT: }
// CHECK-NEXT: {
// CHECK-NEXT: size_type _r3 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r3 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::operator_subscript_pullback(&_t5, 2, 0., &_d_vec, &_r3);
// CHECK-NEXT: }
// CHECK-NEXT: {
// CHECK-NEXT: size_type _r2 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r2 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::operator_subscript_pullback(&_t3, 1, 0., &_d_vec, &_r2);
// CHECK-NEXT: }
// CHECK-NEXT: {
// CHECK-NEXT: size_type _r1 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r1 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::operator_subscript_pullback(&_t1, 0, 0., &_d_vec, &_r1);
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: {
// CHECK-NEXT: size_type _r0 = {{0U|0UL}};
// CHECK-NEXT: {{.*}} _r0 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}class_functions::resize_pullback(&_t0, 3, &_d_vec, &_r0);
// CHECK-NEXT: }
// CHECK-NEXT: }
Expand Down Expand Up @@ -408,17 +408,17 @@ int main() {
// CHECK-NEXT: std::vector<double> _t7 = a;
// CHECK-NEXT: clad::ValueAndAdjoint<double &, double &> _t8 = {{.*}}operator_subscript_reverse_forw(&a, 1, &_d_a, _r1);
// CHECK-NEXT: {
// CHECK-NEXT: {{.*}} _r1 = 0;
// CHECK-NEXT: {{.*}} _r1 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}operator_subscript_pullback(&_t7, 1, 1, &_d_a, &_r1);
// CHECK-NEXT: }
// CHECK-NEXT: {
// CHECK-NEXT: _t5.value = _t6;
// CHECK-NEXT: double _r_d0 = _t5.adjoint;
// CHECK-NEXT: _t5.adjoint = 0;
// CHECK-NEXT: _t5.adjoint = 0.;
// CHECK-NEXT: *_d_x += _r_d0 * x;
// CHECK-NEXT: *_d_x += x * _r_d0;
// CHECK-NEXT: {{.*}} _r0 = 0;
// CHECK-NEXT: {{.*}}operator_subscript_pullback(&_t4, 1, 0, &_d_a, &_r0);
// CHECK-NEXT: {{.*}} _r0 = {{0U|0UL}};
// CHECK-NEXT: {{.*}}operator_subscript_pullback(&_t4, 1, 0., &_d_a, &_r0);
// CHECK-NEXT: }
// CHECK-NEXT: {
// CHECK-NEXT: x = _t2;
Expand Down

0 comments on commit 685bcbf

Please sign in to comment.