+
     þÎj€  ã                   ó¶   € ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RI	t	^ RI
HtHt ^ RIHt ]P                  R 4       t ! R R]]	P"                  4      tR# )é    N)ÚStringIO)ÚSerialMixinÚcreate_temp_module)Ú
dispatcherc              #   óÈ   "  €  \        4       p\        P                  ! V4      pV P                  V4       Vx € V P	                  V4       R #   T P	                  X4       i ; i5i©N)r   ÚloggingÚStreamHandlerÚ
addHandlerÚremoveHandler)ÚlÚbufferÚhandlers   &  ÚQ/opt/data/home/.local/lib/python3.14/site-packages/numba/tests/test_jit_module.pyÚcaptured_logsr      sJ   é € ð!Ü“ˆÜ×'Ò'¨Ó/ˆØ	�‰�WÔØŠà	�‰˜Ö øˆ�‰˜Õ üs   ‚A"„5A ¹A"ÁAÁA"c                   óN   a € ] tR t^t o RtR tR tR tR tR t	R t
R tR	tV tR
# )ÚTestJitModulezí
from numba import jit_module

def inc(x):
    return x + 1

def add(x, y):
    return x + y

def inc_add(x):
    y = inc(x)
    return add(x, y)

import numpy as np
mean = np.mean

class Foo(object):
    pass

jit_module({jit_options})
c                ó¢  € \        \        P                  4      p\        \        P                  4      p\        V P                  4      ;_uu_ 4       p\        P                  P                  VP                  4      pV P                  V\        P                  ^ ,          4       V P                  \        P                  R,          V4       V P                  VP                  \        P                  9   4       RRR4       V P                  \        P                  V4       V P                  \        P                  V4       R#   + '       g   i     LR; i)r   :é   NNN)ÚlistÚsysÚpathÚdictÚmodulesr   Úsource_linesÚosÚdirnameÚ__file__ÚassertEqualÚ
assertTrueÚ__name__)ÚselfÚsys_path_originalÚsys_modules_originalÚtest_moduleÚtemp_module_dirs   &    r   Útest_create_temp_jitted_moduleÚ,TestJitModule.test_create_temp_jitted_module1   sÐ   € Ü ¤§¡›NÐÜ#¤C§K¡KÓ0ÐÜ × 1Ñ 1×2Ô2°kÜ Ÿg™gŸo™o¨k×.BÑ.BÓCˆOØ×Ñ˜_¬c¯h©h°q­kÔ:Ø×ÑœSŸX™X b�\Ð+<Ô=Ø�O‰O˜K×0Ñ0´C·K±KÑ?Ô@÷	 3ð 	×ÑœŸ™Ð#4Ô5Ø×ÑœŸ™Ð&:Ö;÷ 3×2ús   ÁB$D>Ä>E	c                ó†  €  \        \        P                  4      p\        \        P                  4      p\        V P                  4      ;_uu_ 4        \        R 4      h  + '       g   i     R# ; i  \         dE    T P                  \        P                  X4       T P                  \        P                  X4        R# i ; i)zSomething went wrong!N)	r   r   r   r   r   r   r   Ú
ValueErrorr   )r"   r#   r$   s   &  r   Ú-test_create_temp_jitted_module_with_exceptionÚ;TestJitModule.test_create_temp_jitted_module_with_exception=   sˆ   € ð	@Ü $¤S§X¡X£ÐÜ#'¬¯©Ó#4Ð Ü# D×$5Ñ$5×6Õ6Ü Ð!8Ó9Ð9÷ 7×6Ð6ûäô 	@à×ÑœSŸX™XÐ'8Ô9Ø×ÑœSŸ[™[Ð*>×?ð	@ús+   ‚AA1 ÁAÁA.	Á(A1 Á.A1 Á1AC Â?C c           	     óŒ  € \        V P                  4      ;_uu_ 4       pV P                  VP                  \        P
                  4       V P                  VP                  \        P
                  4       V P                  VP                  \        P
                  4       V P                  VP                  \        P                  J 4       V P                  \        P                  ! VP                  4      4       R Rr2V P                  VP                  V4      VP                  P                  V4      4       V P                  VP                  W#4      VP                  P                  W#4      4       V P                  VP                  V4      VP                  P                  V4      4       RRR4       R#   + '       g   i     R# ; i)g333333û?gffffff@N)r   r   ÚassertIsInstanceÚincr   Ú
DispatcherÚaddÚinc_addr    ÚmeanÚnpÚinspectÚisclassÚFoor   Úpy_func)r"   r%   ÚxÚys   &   r   Útest_jit_moduleÚTestJitModule.test_jit_moduleH   s6  € Ü × 1Ñ 1×2Ô2°kØ×!Ñ! +§/¡/´:×3HÑ3HÔIØ×!Ñ! +§/¡/´:×3HÑ3HÔIØ×!Ñ! +×"5Ñ"5´z×7LÑ7LÔMØ�O‰O˜K×,Ñ,´·±Ð7Ô8Ø�O‰OœGŸOšO¨K¯O©OÓ<Ô=ð ˜ˆqØ×Ñ˜[Ÿ_™_¨QÓ/Ø(Ÿ_™_×4Ñ4°QÓ7ô9à×Ñ˜[Ÿ_™_¨QÓ2Ø(Ÿ_™_×4Ñ4°QÓ:ô<à×Ñ˜[×0Ñ0°Ó3Ø(×0Ñ0×8Ñ8¸Ó;ô=÷ 3×2×2Ò2ús   žF
F2Æ2G	c                óÜ   € R RRRRRRR/p\        V P                  3/ VB ;_uu_ 4       pV P                  VP                  P                  V4       RRR4       R#   + '       g   i     R# ; i)ÚnopythonTÚnogilFÚerror_modelÚnumpyÚboundscheckN)r   r   r   r/   Útargetoptions)r"   Újit_optionsr%   s   &  r   Útest_jit_module_jit_optionsÚ)TestJitModule.test_jit_module_jit_optionsY   sn   € Ø! 4Ø Ø$ gØ$ eðˆô
   × 1Ñ 1ñ /Ø"-÷/ò /Ø2=Ø×Ñ˜[Ÿ_™_×:Ñ:¸KÔH÷/÷ /÷ /ò /ús   ©'AÁA+	c                ó&  € R pRRRRRR/p\        RRV/VB ;_uu_ 4       pV P                  VP                  P                  V4       V P                  VP                  P                  RRR	RRR
RR/4       R
R
R
4       R
#   + '       g   i     R
# ; i)z�
from numba import jit, jit_module

@jit(nogil=True, forceobj=True)
def inc(x):
    return x + 1

def add(x, y):
    return x + y

jit_module({jit_options})
r>   Tr@   rA   rB   Fr   r?   ÚforceobjN© )r   r   r1   rC   r/   )r"   r   rD   r%   s   &   r   Ú$test_jit_module_jit_options_overrideÚ2TestJitModule.test_jit_module_jit_options_overridec   s¦   € ðˆð " 4Ø$ gØ$ eðˆô  ñ /¨\ð /Ø"-÷/ò /Ø2=Ø×Ñ˜[Ÿ_™_×:Ñ:¸KÔHð ×Ñ˜[Ÿ_™_×:Ñ:Ø% t¨Z¸Ø+¨T°:¸uðFôG÷/÷ /÷ /ò /ús    AA?Á?B	c           
     ó^  a€ \         P                  ! R 4      pVP                  \         P                  4       RRRR/p\	        V4      ;_uu_ 4       o\        V P                  3/ VB ;_uu_ 4       pSP                  4       oRRP                  VP                  4      RP                  V4      .pT P                  \        ;QJ d    V3R lV 4       F  '       d   K   R	M	  RM! V3R lV 4       4      4       R
R
R
4       R
R
R
4       R
#   + '       g   i     L; i  + '       g   i     R
# ; i)únumba.core.decoratorsr>   Tr@   rA   zAuto decorating functionzfrom module {}zwith jit and options: {}c              3   ó,   <"  € T F	  qS9   x € K  	  R # 5ir   rI   )Ú.0ÚiÚlogss   & €r   Ú	<genexpr>Ú?TestJitModule.test_jit_module_logging_output.<locals>.<genexpr>Š   s   øé € Ð#@±x°!¨¦I³xùs   ƒFN)r	   Ú	getLoggerÚsetLevelÚDEBUGr   r   r   ÚgetvalueÚformatr!   r    Úall)r"   ÚloggerrD   r%   ÚexpectedrQ   s   &    @r   Útest_jit_module_logging_outputÚ,TestJitModule.test_jit_module_logging_output}   sé   ø€ Ü×"Ò"Ð#:Ó;ˆØ�‰œŸ™Ô&Ø! 4Ø$ gðˆô ˜6×"Ô" dÜ# D×$5Ñ$5ñ 3Ø&1÷3ò 3Ø6AØ—}‘}“�Ø6Ø,×3Ñ3°K×4HÑ4HÓIØ6×=Ñ=¸kÓJðL�ð —‘§£Ô#@±xÓ#@§§¢Ô#@±xÓ#@Ó @ÔA÷3÷ #Ñ"÷3÷ 3ú÷ #×"Ð"ús+   ÁDÁ/A(D	ÃD	Ã6DÄDÄDÄD,	c           	     ó‚  € \         P                  ! R 4      pVP                  \         P                  4       \	        V4      ;_uu_ 4       p\        V P                  4      ;_uu_ 4        V P                  VP                  4       R4       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)rM   Ú N)	r	   rT   rU   ÚINFOr   r   r   r   rW   )r"   rZ   rQ   s   &  r   Útest_jit_module_logging_levelÚ+TestJitModule.test_jit_module_logging_levelŒ   sw   € Ü×"Ò"Ð#:Ó;ˆà�‰œŸ™Ô%Ü˜6×"Ô" dÜ# D×$5Ñ$5×6Õ6Ø× Ñ  §¡£°"Ô5÷ 7÷ #Ñ"ß6×6ú÷ #×"Ð"ús$   Á	B-Á'!B	ÂB-ÂB*Â%B-Â-B>	rI   N)r!   Ú
__module__Ú__qualname__Ú__firstlineno__r   r'   r+   r;   rE   rJ   r\   ra   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s8   ø‡ € ð€Lò,
<ò	@ò=ò"IòGò4B÷6ð 6ó    r   )r   r   r5   Ú
contextlibrA   r4   r	   Úior   ÚunittestÚnumba.tests.supportr   r   Ú
numba.corer   Úcontextmanagerr   ÚTestCaser   rI   ri   r   Ú<module>rq      sS   ðÛ 	Û 
Û Û Û Û Ý ã ß ?Ý !ð ×Ññ!ó ð!ôy6�K ×!2Ñ!2ö y6ri   