
    sh                         S SK r S SKrS SKJr  S SKJr   " S S\ R                  5      r " S S\ R                  5      r	\
S:X  a  \ R                  " 5         gg)	    N)jit)override_configc                        \ rS rSrS rS rSrg)TestJITMethod	   c                     " S S[         5      nU" S5      n[        R                  R                  UR	                  S5      [        R
                  " / SQ[        R                  S95        UR                  R                  R                  5       u  nUR                  S   nUR                  R                  5       u  nU R                  UR                  R                  5        g )Nc                   2    \ rS rSrS r\" SS9S 5       rSrg)ETestJITMethod.test_bound_jit_method_with_loop_lift.<locals>.Something   c                     Xl         g Nx0selfr   s     n/Users/tiagomarins/Projetos/claudeai/copy_bank/venv/lib/python3.13/site-packages/numba/tests/test_jitmethod.py__init__NTestJITMethod.test_bound_jit_method_with_loop_lift.<locals>.Something.__init__           Tforceobjc                     [         R                  " S[         R                  S9nU R                  n[	        UR
                  S   5       H	  nX1-  X$'   M     U$ )N   )shapedtyper   )npemptyfloat32r   ranger   )r   xar   is        r   methodLTestJITMethod.test_bound_jit_method_with_loop_lift.<locals>.Something.method   sF    HH1BJJ7WWqwwqz*A6AD + r   r   N__name__
__module____qualname____firstlineno__r   r   r$   __static_attributes__ 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_lift2TestJITMethod.test_bound_jit_method_with_loop_lift
   s    	 	 aL	


%%i&6&6q&9HH)<	> !!++224++a.&&--/
../r   c                 t     " S S[         5      nU" S5      nU R                  UR                  U5      S5        g )Nc                   2    \ rS rSrS r\" SS9S 5       rSrg)8TestJITMethod.test_unbound_jit_method.<locals>.Something$   c                     Xl         g r   r   r   s     r   r   ATestJITMethod.test_unbound_jit_method.<locals>.Something.__init__%   r   r   Tr   c                     U R                   $ r   r   )r   s    r   r$   ?TestJITMethod.test_unbound_jit_method.<locals>.Something.method(   s    wwr   r   Nr&   r,   r   r   r-   rB   $   s      $  r   r-   r.   )r0   assertEqualr$   )r   r-   r:   s      r   test_unbound_jit_method%TestJITMethod.test_unbound_jit_method#   s4    	 	 aL	)))4a8r   r,   N)r'   r(   r)   r*   r>   rI   r+   r,   r   r   r   r   	   s    02
9r   r   c                        \ rS rSrS rS rSrg)TestDisabledJIT0   c                     [        SS5         S n[        U5      nS S S 5        U R                  WW5        U R                  SU" S5      5        U R                  SU" S5      5        g ! , (       d  f       NQ= f)NDISABLE_JITTc                     U $ r   r,   r!   s    r   r$   7TestDisabledJIT.test_decorated_function.<locals>.method3       r   
   r   r   rH   r   r$   jitteds      r   test_decorated_function'TestDisabledJIT.test_decorated_function1   sb    ]D1[F 2
 	(VBZ(VBZ( 21s   A''
A5c                     [        SS5         S n[        SS9" U5      nS S S 5        U R                  WW5        U R                  SU" S5      5        U R                  SU" S5      5        g ! , (       d  f       NQ= f)NrO   Tc                     U $ r   r,   rQ   s    r   r$   CTestDisabledJIT.test_decorated_function_with_kwargs.<locals>.method=   rS   r   )nopythonrT   rU   rV   s      r   #test_decorated_function_with_kwargs3TestDisabledJIT.test_decorated_function_with_kwargs;   sh    ]D1$'/F 2
 	(VBZ(VBZ( 21s   A++
A9r,   N)r'   r(   r)   r*   rX   r^   r+   r,   r   r   rL   rL   0   s    ))r   rL   __main__)unittestnumpyr   numbar   numba.tests.supportr   TestCaser   rL   r'   mainr,   r   r   <module>rg      sN       /$9H%% $9N)h'' )* zMMO r   