297297 Base. Cartesian. @nexprs ($ N, i -> cumulator_i = cumulators[i])
298298 @inbounds @simd for j in eachindex (cumulator_1)
299299 cumulator_1[j] = Base. Cartesian. @ncall ($ N, op, i -> cumulator_i[j]):: T
300- end
300+ end # COV_EXCL_LINE
301301 return ResultOk (cumulator_1, true )
302302 end
303303end
375375 cs = get_children (tree, Val ($ degree))
376376 Base. Cartesian. @nexprs (
377377 $ degree,
378- i -> begin
378+ i -> begin # COV_EXCL_LINE
379379 result_i = _eval_tree_array (cs[i], cX, operators, eval_options)
380380 ! result_i. ok && return result_i
381381 @return_on_nonfinite_array (eval_options, result_i. x)
@@ -385,10 +385,10 @@ end
385385 cumulators = Base. Cartesian. @ntuple ($ degree, i -> result_i. x)
386386 Base. Cartesian. @nif (
387387 $ nops,
388- i -> i == op_idx,
389- i -> degn_eval (
390- cumulators, get_op (operators, Val ($ degree), Val (i)), eval_options
391- )
388+ i -> i == op_idx, # COV_EXCL_LINE
389+ i -> begin # COV_EXCL_LINE
390+ degn_eval ( cumulators, get_op (operators, Val ($ degree), Val (i)), eval_options)
391+ end ,
392392 )
393393 end
394394end
405405 degree = tree. degree
406406 return Base. Cartesian. @nif (
407407 $ D,
408- d -> d == degree,
409- d -> inner_dispatch_degn_eval (tree, cX, Val (d), operators, eval_options)
408+ d -> d == degree, # COV_EXCL_LINE
409+ d -> begin # COV_EXCL_LINE
410+ inner_dispatch_degn_eval (tree, cX, Val (d), operators, eval_options)
411+ end ,
410412 )
411413 end
412414end
434436 return quote
435437 return Base. Cartesian. @nif (
436438 $ nbin,
437- i -> i == op_idx,
438- i -> let op = operators. binops[i]
439+ i -> i == op_idx, # COV_EXCL_LINE
440+ i -> let op = operators. binops[i] # COV_EXCL_LINE
439441 if get_child (tree, 1 ). degree == 0 && get_child (tree, 2 ). degree == 0
440442 deg2_l0_r0_eval (tree, cX, op, eval_options)
441443 elseif get_child (tree, 2 ). degree == 0
488490 return quote
489491 Base. Cartesian. @nif (
490492 $ nuna,
491- i -> i == op_idx,
492- i -> let op = operators. unaops[i]
493+ i -> i == op_idx, # COV_EXCL_LINE
494+ i -> let op = operators. unaops[i] # COV_EXCL_LINE
493495 if get_child (tree, 1 ). degree == 2 &&
494496 get_child (get_child (tree, 1 ), 1 ). degree == 0 &&
495497 get_child (get_child (tree, 1 ), 2 ). degree == 0
530532 quote
531533 Base. Cartesian. @nif (
532534 $ nbin,
533- j -> j == l_op_idx,
534- j -> let op_l = binops[j]
535+ j -> j == l_op_idx, # COV_EXCL_LINE
536+ j -> let op_l = binops[j] # COV_EXCL_LINE
535537 deg1_l2_ll0_lr0_eval (tree, cX, op, op_l, eval_options)
536538 end ,
537539 )
549551 quote
550552 Base. Cartesian. @nif (
551553 $ nuna,
552- j -> j == l_op_idx,
553- j -> let op_l = unaops[j]
554+ j -> j == l_op_idx, # COV_EXCL_LINE
555+ j -> let op_l = unaops[j] # COV_EXCL_LINE
554556 deg1_l1_ll0_eval (tree, cX, op, op_l, eval_options)
555557 end ,
556558 )
@@ -752,8 +754,10 @@ over an entire array when the values are all the same.
752754 deg == 0 && return deg0_eval_constant (tree)
753755 Base. Cartesian. @nif (
754756 $ D,
755- i -> i == deg,
756- i -> inner_dispatch_degn_eval_constant (tree, Val (i), operators)
757+ i -> i == deg, # COV_EXCL_LINE
758+ i -> begin # COV_EXCL_LINE
759+ inner_dispatch_degn_eval_constant (tree, Val (i), operators)
760+ end ,
757761 )
758762 end
759763end
767771 cs = get_children (tree, Val ($ degree))
768772 Base. Cartesian. @nexprs (
769773 $ degree,
770- i -> begin
774+ i -> begin # COV_EXCL_LINE
771775 input_i = let result = dispatch_constant_tree (cs[i], operators)
772776 ! result. ok && return result
773777 result. x
@@ -788,10 +792,12 @@ end
788792 op_idx = tree. op
789793 Base. Cartesian. @nif (
790794 $ nops,
791- i -> i == op_idx,
792- i -> degn_eval_constant (
793- inputs, get_op (operators, Val ($ degree), Val (i))
794- ):: ResultOk{T}
795+ i -> i == op_idx, # COV_EXCL_LINE
796+ i -> begin # COV_EXCL_LINE
797+ degn_eval_constant (
798+ inputs, get_op (operators, Val ($ degree), Val (i))
799+ ):: ResultOk{T}
800+ end ,
795801 )
796802 end
797803 end
828834 deg = tree. degree
829835 Base. Cartesian. @nif (
830836 $ D,
831- i -> i == deg,
832- i -> dispatch_degn_diff_eval (tree, cX, op_idx, Val (i), operators)
837+ i -> i == deg, # COV_EXCL_LINE
838+ i -> begin # COV_EXCL_LINE
839+ dispatch_degn_diff_eval (tree, cX, op_idx, Val (i), operators)
840+ end ,
833841 )
834842 end
835843end
861869 cs = get_children (tree, Val ($ degree))
862870 Base. Cartesian. @nexprs (
863871 $ degree,
864- i -> begin
872+ i -> begin # COV_EXCL_LINE
865873 cumulator_i =
866874 let result = _differentiable_eval_tree_array (cs[i], cX, operators)
867875 ! result. ok && return result
872880 cumulators = Base. Cartesian. @ntuple ($ degree, i -> cumulator_i)
873881 Base. Cartesian. @nif (
874882 $ nops,
875- i -> i == op_idx,
876- i -> degn_diff_eval (cumulators, get_op (operators, Val ($ degree), Val (i)))
883+ i -> i == op_idx, # COV_EXCL_LINE
884+ i -> begin # COV_EXCL_LINE
885+ degn_diff_eval (cumulators, get_op (operators, Val ($ degree), Val (i)))
886+ end ,
877887 )
878888 end
879889end
@@ -964,10 +974,12 @@ end
964974 deg = tree. degree
965975 Base. Cartesian. @nif (
966976 $ D,
967- i -> i == deg,
968- i -> dispatch_degn_eval_generic (
969- tree, cX, op_idx, Val (i), operators, Val (throw_errors)
970- )
977+ i -> i == deg, # COV_EXCL_LINE
978+ i -> begin # COV_EXCL_LINE
979+ dispatch_degn_eval_generic (
980+ tree, cX, op_idx, Val (i), operators, Val (throw_errors)
981+ )
982+ end ,
971983 )
972984 end
973985end
@@ -1017,7 +1029,7 @@ end
10171029 cs = get_children (tree, Val ($ degree))
10181030 Base. Cartesian. @nexprs (
10191031 $ degree,
1020- i -> begin
1032+ i -> begin # COV_EXCL_LINE
10211033 cumulator_i =
10221034 let (x, complete) = _eval_tree_array_generic (
10231035 cs[i], cX, operators, Val (throw_errors)
@@ -1030,13 +1042,15 @@ end
10301042 cumulators = Base. Cartesian. @ntuple ($ degree, i -> cumulator_i)
10311043 Base. Cartesian. @nif (
10321044 $ nops,
1033- i -> i == op_idx,
1034- i -> degn_eval_generic (
1035- cumulators,
1036- get_op (operators, Val ($ degree), Val (i)),
1037- Val (N),
1038- Val (throw_errors),
1039- )
1045+ i -> i == op_idx, # COV_EXCL_LINE
1046+ i -> begin # COV_EXCL_LINE
1047+ degn_eval_generic (
1048+ cumulators,
1049+ get_op (operators, Val ($ degree), Val (i)),
1050+ Val (N),
1051+ Val (throw_errors),
1052+ )
1053+ end ,
10401054 )
10411055 end
10421056end
0 commit comments