def test_basic23a(self):
        """rel idx, dead code should not impact rel idx"""
        def kernel(a):
            x = np.sin(10 + a[2, 1]) # noqa: F841 # dead code expected
            return a[1 + 0, 0] + a[0, 0]
        # ----------------------------------------------------------------------
        # Autogenerated kernel

        def __kernel(a, neighborhood):
            self.check_stencil_arrays(a, neighborhood=neighborhood)
            __retdtype = kernel(a)
            __b0 = np.full(a.shape, 0, dtype=type(__retdtype))
            for __b in range(0, a.shape[1] - 1):
                for __a in range(0, a.shape[0] - 2):
                    x = np.sin(10 + a[__a + 2, __b + 1]) # noqa: F841
                    __b0[__a, __b] = a[__a + 1, __b + 0] + a[__a + 0, __b + 0]
            return __b0
        # ----------------------------------------------------------------------

        a = np.arange(12.).reshape(3, 4)
        expected = __kernel(a, None)
        self.check_against_expected(kernel, expected, a)
rel idx, dead code should not impact rel idx
numba/tests/test_stencils.py