diff --git a/docs/source/developer/repomap.rst b/docs/source/developer/repomap.rst
index 47a414a2e..b27e4acfe 100644
--- a/docs/source/developer/repomap.rst
+++ b/docs/source/developer/repomap.rst
@@ -393,6 +393,8 @@ typing and implementation to be specified together.
   needed to link generated code
 - :ghfile:`numba/core/fastmathpass.py` - Rewrite pass to add fastmath
   attributes to function call sites and binary operations
+- :ghfile:`numba/core/removerefctpass.py` - Rewrite pass to remove
+  unnecessary incref/decref pairs
 - :ghfile:`numba/core/descriptors.py` - empty base class for all target
   descriptors (is this needed?)
 - :ghfile:`numba/cpython/builtins.py` - Python builtin functions and
diff --git a/numba/core/callconv.py b/numba/core/callconv.py
index faf1455f1..ec1541288 100644
--- a/numba/core/callconv.py
+++ b/numba/core/callconv.py
@@ -503,6 +503,27 @@ class CPUCallConv(BaseCallConv):
                 if isinstance(a.type, ir.PointerType):
                     a.add_attribute("nocapture")
                     a.add_attribute("noalias")
+
+        # Add metadata to mark functions that may need NRT
+        # thus disabling aggressive refct pruning in removerefctpass.py
+        def type_may_always_need_nrt(ty):
+            # Returns True if it's a non-Array type that is contains MemInfo
+            if not isinstance(ty, types.Array):
+                dmm = self.context.data_model_manager
+                if dmm[ty].contains_nrt_meminfo():
+                    return True
+            return False
+
+        args_may_always_need_nrt = any(
+            map(type_may_always_need_nrt, fe_argtypes)
+        )
+
+        if args_may_always_need_nrt:
+            nmd = fn.module.add_named_metadata(
+                'numba_args_may_always_need_nrt',
+            )
+            nmd.add(fn.module.add_metadata([fn]))
+
         return fn
 
     def get_arguments(self, func):
diff --git a/numba/core/lowering.py b/numba/core/lowering.py
index 04e1ed68e..a8da51e71 100644
--- a/numba/core/lowering.py
+++ b/numba/core/lowering.py
@@ -7,7 +7,7 @@ from llvmlite.llvmpy.core import Constant, Type, Builder
 
 from numba import _dynfunc
 from numba.core import (typing, utils, types, ir, debuginfo, funcdesc,
-                        generators, config, ir_utils, cgutils)
+                        generators, config, ir_utils, cgutils, removerefctpass)
 from numba.core.errors import (LoweringError, new_error_context, TypingError,
                                LiteralTypingError, UnsupportedError)
 from numba.core.funcdesc import default_mangler
@@ -204,6 +204,12 @@ class BaseLower(object):
                 print(self.module)
             print('=' * 80)
 
+        # Special optimization to remove NRT on functions that do not need it.
+        if self.context.enable_nrt and self.generator_info is None:
+            removerefctpass.remove_unnecessary_nrt_usage(self.function,
+                                                         context=self.context,
+                                                         fndesc=self.fndesc)
+
         # Run target specific post lowering transformation
         self.context.post_lowering(self.module, self.library)
 
diff --git a/numba/core/removerefctpass.py b/numba/core/removerefctpass.py
new file mode 100644
index 000000000..e22343aa1
--- /dev/null
+++ b/numba/core/removerefctpass.py
@@ -0,0 +1,121 @@
+"""
+Implement a rewrite pass on a LLVM module to remove unnecessary 
+refcount operations.
+"""
+
+from llvmlite.ir.transforms import CallVisitor
+
+from numba.core import types
+
+
+class _MarkNrtCallVisitor(CallVisitor):
+    """
+    A pass to mark all NRT_incref and NRT_decref.
+    """
+    def __init__(self):
+        self.marked = set()
+
+    def visit_Call(self, instr):
+        if getattr(instr.callee, 'name', '') in _accepted_nrtfns:
+            self.marked.add(instr)
+
+
+def _rewrite_function(function):
+    # Mark NRT usage
+    markpass = _MarkNrtCallVisitor()
+    markpass.visit_Function(function)
+    # Remove NRT usage
+    for bb in function.basic_blocks:
+        for inst in list(bb.instructions):
+            if inst in markpass.marked:
+                bb.instructions.remove(inst)
+
+
+_accepted_nrtfns = 'NRT_incref', 'NRT_decref'
+
+
+def _legalize(module, dmm, fndesc):
+    """
+    Legalize the code in the module.
+    Returns True if the module is legal for the rewrite pass that removes
+    unnecessary refcounts.
+    """
+
+    def valid_output(ty):
+        """
+        Valid output are any type that does not need refcount
+        """
+        model = dmm[ty]
+        return not model.contains_nrt_meminfo()
+
+    def valid_input(ty):
+        """
+        Valid input are any type that does not need refcount except Array.
+        """
+        return valid_output(ty) or isinstance(ty, types.Array)
+
+
+    # Ensure no reference to function marked as
+    # "numba_args_may_always_need_nrt"
+    try:
+        nmd = module.get_named_metadata("numba_args_may_always_need_nrt")
+    except KeyError:
+        # Nothing marked
+        pass
+    else:
+        # Has functions marked as "numba_args_may_always_need_nrt"
+        if len(nmd.operands) > 0:
+            # The pass is illegal for this compilation unit.
+            return False
+
+    # More legalization base on function type
+    argtypes = fndesc.argtypes
+    restype = fndesc.restype
+    calltypes = fndesc.calltypes
+
+    # Legalize function arguments
+    for argty in argtypes:
+        if not valid_input(argty):
+            return False
+
+    # Legalize function return
+    if not valid_output(restype):
+        return False
+
+    # Legalize all called functions
+    for callty in calltypes.values():
+        if callty is not None and not valid_output(callty.return_type):
+            return False
+
+    # Ensure no allocation
+    for fn in module.functions:
+        if fn.name.startswith("NRT_"):
+            if fn.name not in _accepted_nrtfns:
+                return False
+
+    return True
+
+
+def remove_unnecessary_nrt_usage(function, context, fndesc):
+    """
+    Remove unnecessary NRT incref/decref in the given LLVM function.
+    It uses highlevel type info to determine if the function does not need NRT.
+    Such a function does not:
+
+    - return array object(s);
+    - take arguments that need refcounting except array;
+    - call function(s) that return refcounted object.
+
+    In effect, the function will not capture or create references that extend
+    the lifetime of any refcounted objects beyound the lifetime of the
+    function.
+
+    The rewrite is performed in place.
+    If rewrite has happened, this function returns True, otherwise, it returns False.
+    """
+    dmm = context.data_model_manager
+    if _legalize(function.module, dmm, fndesc):
+        _rewrite_function(function)
+        return True
+    else:
+        return False

Fix up the removed refcount pruner for arrays, make it more strict but still work!
Do as title.

Fixes #5746 #5743 
diff --git a/numba/tests/test_array_reductions.py b/numba/tests/test_array_reductions.py
index 05822eaaf..4c648a6d9 100644
--- a/numba/tests/test_array_reductions.py
+++ b/numba/tests/test_array_reductions.py
@@ -992,7 +992,6 @@ class TestArrayReductionsExceptions(MemoryLeakMixin, TestCase):
         with self.assertRaises(ValueError) as e:
             cfunc(self.zero_size)
         self.assertIn(msg, str(e.exception))
-        self.disable_leak_check()
 
     @classmethod
     def install(cls):

pip install -e .
parse_log_pytest
requirements.txt
pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio pytest
apt-get update apt-get install -y gcc g++
3.7
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
certifi @ file:///croot/certifi_1671487769961/work/certifi
coverage==7.2.7
exceptiongroup==1.2.2
execnet==2.0.2
importlib-metadata==6.7.0
iniconfig==2.0.0
llvmlite==0.33.0
-e git+https://github.com/numba/numba.git@f7b793d14e947390aaf39523bfbc6b95c1da1168#egg=numba
numpy==1.21.6
packaging==24.0
pluggy==1.2.0
pytest==7.4.4
pytest-asyncio==0.21.2
pytest-cov==4.1.0
pytest-mock==3.11.1
pytest-xdist==3.5.0
tomli==2.0.1
typing_extensions==4.7.1
zipp==3.15.0

name: numba
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - argparse==1.4.0
      - coverage==7.2.7
      - exceptiongroup==1.2.2
      - execnet==2.0.2
      - importlib-metadata==6.7.0
      - iniconfig==2.0.0
      - llvmlite==0.33.0
      - numpy==1.21.6
      - packaging==24.0
      - pluggy==1.2.0
      - pytest==7.4.4
      - pytest-asyncio==0.21.2
      - pytest-cov==4.1.0
      - pytest-mock==3.11.1
      - pytest-xdist==3.5.0
      - tomli==2.0.1
      - typing-extensions==4.7.1
      - zipp==3.15.0
prefix: /opt/conda/envs/numba

numba/tests/test_array_reductions.py::TestArrayReductionsExceptions::test_zero_size_array_array_argmax numba/tests/test_array_reductions.py::TestArrayReductionsExceptions::test_zero_size_array_array_argmax_global numba/tests/test_array_reductions.py::TestArrayReductionsExceptions::test_zero_size_array_array_argmin numba/tests/test_array_reductions.py::TestArrayReductionsExceptions::test_zero_size_array_array_argmin_global numba/tests/test_array_reductions.py::TestArrayReductionsExceptions::test_zero_size_array_array_max numba/tests/test_array_reductions.py::TestArrayReductionsExceptions::test_zero_size_array_array_min
numba/tests/test_array_reductions.py::TestArrayReductions::test_nanpercentile_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_nanquantile_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_percentile_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_quantile_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_argmax_npdatetime numba/tests/test_array_reductions.py::TestArrayReductions::test_argmin_npdatetime numba/tests/test_array_reductions.py::TestArrayReductions::test_max_npdatetime numba/tests/test_array_reductions.py::TestArrayReductions::test_median_npdatetime numba/tests/test_array_reductions.py::TestArrayReductions::test_min_npdatetime
numba/tests/test_array_reductions.py::TestArrayReductions::test_all_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_any_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_argmax_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_argmin_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_global_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_global_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_global_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_global_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_global_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_global_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_global_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_global_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_global_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_global_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_global_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_global_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_all_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_global_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_global_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_global_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_global_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_global_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_global_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_global_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_global_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_global_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_global_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_global_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_global_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_any_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_global_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_global_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_global_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_global_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_global_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_global_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_global_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_global_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_global_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmax_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_global_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_global_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_global_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_global_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_global_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_global_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_global_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_global_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_global_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_argmin_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_cumprod numba/tests/test_array_reductions.py::TestArrayReductions::test_array_cumprod_global numba/tests/test_array_reductions.py::TestArrayReductions::test_array_cumsum numba/tests/test_array_reductions.py::TestArrayReductions::test_array_cumsum_global numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_global_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_global_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_global_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_global_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_global_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_global_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_global_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_global_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_global_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_global_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_global_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_global_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_max_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_global_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_global_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_global_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_global_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_global_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_global_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_global_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_global_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_global_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_global_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_global_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_global_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_mean_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_global_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_global_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_global_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_global_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_global_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_global_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_global_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_global_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_global_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_global_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_global_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_global_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_min_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmax_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmax_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmax_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmax_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmax_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmax_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmax_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmax_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmax_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmax_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmax_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmax_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmean_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmean_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmean_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmean_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmean_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmean_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmean_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmean_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmean_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmean_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmean_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmean_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanprod_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanprod_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanprod_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanprod_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanprod_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanprod_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanprod_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanprod_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanprod_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanprod_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanprod_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanprod_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanstd_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanstd_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanstd_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanstd_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanstd_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanstd_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanstd_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanstd_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanstd_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanstd_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanstd_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanstd_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nansum_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nansum_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nansum_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nansum_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nansum_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nansum_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nansum_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nansum_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nansum_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nansum_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nansum_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nansum_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanvar_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanvar_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanvar_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanvar_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanvar_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanvar_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanvar_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanvar_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanvar_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanvar_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanvar_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_nanvar_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_float_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_global numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_global_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_global_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_global_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_global_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_global_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_global_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_global_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_global_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_global_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_global_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_global_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_global_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_prod_int_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_global_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_global_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_global_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_global_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_global_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_global_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_global_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_global_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_global_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_global_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_global_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_global_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_std_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_global numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_global_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_global_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_global_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_global_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_global_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_global_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_global_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_global_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_global_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_global_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_global_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_global_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_sum_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_global_bool_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_global_bool_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_global_bool_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_global_complex64_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_global_complex64_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_global_complex64_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_global_float32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_global_float32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_global_float32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_global_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_global_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_global_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_int32_1d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_int32_2d numba/tests/test_array_reductions.py::TestArrayReductions::test_array_var_int32_3d numba/tests/test_array_reductions.py::TestArrayReductions::test_cumprod_magnitude numba/tests/test_array_reductions.py::TestArrayReductions::test_cumsum_magnitude numba/tests/test_array_reductions.py::TestArrayReductions::test_cumsum_npdatetime numba/tests/test_array_reductions.py::TestArrayReductions::test_max_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_mean_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_mean_magnitude numba/tests/test_array_reductions.py::TestArrayReductions::test_mean_npdatetime numba/tests/test_array_reductions.py::TestArrayReductions::test_median_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_min_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_min_max_complex_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_nancumprod_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_nancumprod_magnitude numba/tests/test_array_reductions.py::TestArrayReductions::test_nancumsum_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_nancumsum_magnitude numba/tests/test_array_reductions.py::TestArrayReductions::test_nanmax_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_nanmean_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_nanmedian_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_nanmin_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_nanmin_nanmax_complex_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_nanmin_nanmax_non_array_inputs numba/tests/test_array_reductions.py::TestArrayReductions::test_nanprod_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_nanstd_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_nansum_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_nanvar_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_prod_magnitude numba/tests/test_array_reductions.py::TestArrayReductions::test_ptp_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_ptp_complex numba/tests/test_array_reductions.py::TestArrayReductions::test_ptp_exceptions numba/tests/test_array_reductions.py::TestArrayReductions::test_std_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_std_magnitude numba/tests/test_array_reductions.py::TestArrayReductions::test_sum_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_sum_magnitude numba/tests/test_array_reductions.py::TestArrayReductions::test_sum_npdatetime numba/tests/test_array_reductions.py::TestArrayReductions::test_var_basic numba/tests/test_array_reductions.py::TestArrayReductions::test_var_magnitude
numba/core/lowering.py numba/core/callconv.py numba/core/removerefctpass.py docs/source/developer/repomap.rst
numba/core/lowering.py numba/core/callconv.py numba/core/removerefctpass.py docs/source/developer/repomap.rst