Ë
    èÿæiÐ  ã                   ó®   — d dl Z d dlZd dlmZ d dlmZ  G d„ de j                  «      Z G d„ de j                  «      Z	e
dk(  r e j                  «        yy)	é    N)Újit)Úoverride_configc                   ó   — e Zd Zd„ Zd„ Zy)ÚTestJITMethodc                 óÆ  —  G d„ dt         «      } |d«      }t        j                  j                  |j	                  d«      t        j
                  g d¢t        j                  ¬«      «       |j                  j                  j                  «       \  }|j                  d   }|j                  j                  «       \  }| j                  |j                  j                  «       y )Nc                   ó0   — e Zd Zd„ Z ed¬«      d„ «       Zy)úETestJITMethod.test_bound_jit_method_with_loop_lift.<locals>.Somethingc                 ó   — || _         y ©N©Úx0©Úselfr   s     úo/Volumes/fast/ai/experiments/voice-extract-mac/.venv/lib/python3.12/site-packages/numba/tests/test_jitmethod.pyÚ__init__zNTestJITMethod.test_bound_jit_method_with_loop_lift.<locals>.Something.__init__   ó	   € Ø�•ó    T©Úforceobjc                 ó²   — t        j                  dt         j                  ¬«      }| j                  }t	        |j
                  d   «      D ]
  }||z  ||<   Œ |S )Né   )ÚshapeÚdtyper   )ÚnpÚemptyÚfloat32r   Úranger   )r   ÚxÚar   Úis        r   ÚmethodzLTestJITMethod.test_bound_jit_method_with_loop_lift.<locals>.Something.method   sJ   € ä—H‘H 1¬B¯J©JÔ7�Ø—W‘W�ä˜qŸw™w q™zÖ*�AØ ™6�A�a’Dð +ð �r   N©Ú__name__Ú
__module__Ú__qualname__r   r   r!   © r   r   Ú	Somethingr	      s    „ òñ ˜$Ôñó  ñr   r'   é   r   )é   r)   r)   r)   r)   )r   r   )Úobjectr   ÚtestingÚassert_array_equalr!   Úarrayr   Ú	overloadsÚvaluesÚliftedÚ
assertTrueÚfndescÚnative)r   r'   Ú	somethingÚcresÚjitloopÚloopcress         r   Ú$test_bound_jit_method_with_loop_liftz2TestJITMethod.test_bound_jit_method_with_loop_lift
   s¢   € ô	œô 	ñ ˜a“Lˆ	Ü
�
‰
×%Ñ% i×&6Ñ&6°qÓ&9Ü�H‰HÒ)´·±Ô<ô	>ð ×!Ñ!×+Ñ+×2Ñ2Ó4‰ˆØ—+‘+˜a‘.ˆØ×&Ñ&×-Ñ-Ó/‰
ˆØ�‰˜Ÿ™×.Ñ.Õ/r   c                 ót   —  G d„ dt         «      } |d«      }| j                  |j                  |«      d«       y )Nc                   ó0   — e Zd Zd„ Z ed¬«      d„ «       Zy)ú8TestJITMethod.test_unbound_jit_method.<locals>.Somethingc                 ó   — || _         y r   r   r   s     r   r   zATestJITMethod.test_unbound_jit_method.<locals>.Something.__init__%   r   r   Tr   c                 ó   — | j                   S r   r   )r   s    r   r!   z?TestJITMethod.test_unbound_jit_method.<locals>.Something.method(   s   € à—w‘w�r   Nr"   r&   r   r   r'   r;   $   s    „ òñ ˜$Ôñó  ñr   r'   r(   )r*   ÚassertEqualr!   )r   r'   r4   s      r   Útest_unbound_jit_methodz%TestJITMethod.test_unbound_jit_method#   s4   € ô	œô 	ñ ˜a“Lˆ	Ø×Ñ˜×)Ñ)¨)Ó4°aÕ8r   N)r#   r$   r%   r8   r?   r&   r   r   r   r   	   s   „ ò0ó2
9r   r   c                   ó   — e Zd Zd„ Zd„ Zy)ÚTestDisabledJITc                 óæ   — t        dd«      5  d„ }t        |«      }d d d «       | j                  «       | j                  d |d«      «       | j                  d |d«      «       y # 1 sw Y   ŒLxY w)NÚDISABLE_JITTc                 ó   — | S r   r&   ©r   s    r   r!   z7TestDisabledJIT.test_decorated_function.<locals>.method3   ó   € Ø�r   é
   ©r   r   r>   ©r   r!   Újitteds      r   Útest_decorated_functionz'TestDisabledJIT.test_decorated_function1   sb   € Ü˜]¨DÕ1òä˜“[ˆF÷ 2ð
 	×Ñ˜ Ô(Ø×Ñ˜™V B›ZÔ(Ø×Ñ˜™V B›ZÕ(÷ 2Ð1ús   �A'Á'A0c                 óô   — t        dd«      5  d„ } t        d¬«      |«      }d d d «       | j                  «       | j                  d |d«      «       | j                  d |d«      «       y # 1 sw Y   ŒLxY w)NrC   Tc                 ó   — | S r   r&   rE   s    r   r!   zCTestDisabledJIT.test_decorated_function_with_kwargs.<locals>.method=   rF   r   )ÚnopythonrG   rH   rI   s      r   Ú#test_decorated_function_with_kwargsz3TestDisabledJIT.test_decorated_function_with_kwargs;   sj   € Ü˜]¨DÕ1òà'”S $Ô'¨Ó/ˆF÷ 2ð
 	×Ñ˜ Ô(Ø×Ñ˜™V B›ZÔ(Ø×Ñ˜™V B›ZÕ(÷ 2Ð1ús   �A.Á.A7N)r#   r$   r%   rK   rO   r&   r   r   rA   rA   0   s   „ ò)ó)r   rA   Ú__main__)ÚunittestÚnumpyr   Únumbar   Únumba.tests.supportr   ÚTestCaser   rA   r#   Úmainr&   r   r   Ú<module>rW      sP   ðÛ ã å Ý /ô$9�H×%Ñ%ô $9ôN)�h×'Ñ'ô )ð* ˆzÒØ€H‡M�M…Oð r   