+
     þÎjt  ã                   óJ  € ^ RI t ^ RIHt ^ RIt^ RIHt ^ RIHtHt ^ RIH	t	H
t
 ^ RIt ^ RIt ^ RIt]P                  ! ]RJ R4       ! R R]
4      4       t ! R	 R
]P                  4      t]R8X  d   ]P&                  ! 4        R# R#   ] d    Rt Ldi ; i  ] d    Rt Lni ; i)é    N)ÚStringIO)Útypes)ÚjitÚnjit)Úoverride_configÚTestCasez#please install the 'jinja2' packagec                   óÂ   a € ] tR t^t o ]P
                  R 4       t]P
                  R 4       t]P
                  R 4       t]	P                  ! ]RJ R4      R 4       tRtV tR# )ÚTestAnnotationc                ód  € R p\        \        P                  \        P                  34      ! V4      pVP                  VP                  ^ ,          ,          pVP
                  p\        4       pVP                  V4       VP                  4       pVP                  4        V P                  RV4       R# )z$
Ensures template.html is available
c                 ó>   € Tp\        V 4       F  pW#,          pK  	  V# ©N©Úrange)ÚnÚaÚsÚis   &&  ÚR/opt/data/home/.local/lib/python3.14/site-packages/numba/tests/test_annotations.pyÚfooÚ3TestAnnotation.test_exercise_code_path.<locals>.foo   s!   € ØˆAÜ˜1–X�Ø•’ñ àˆHó    r   N)r   r   Úint32Ú	overloadsÚ
signaturesÚtype_annotationr   Úhtml_annotateÚgetvalueÚcloseÚassertIn)Úselfr   ÚcfuncÚcresÚtaÚbufÚoutputs   &      r   Útest_exercise_code_pathÚ&TestAnnotation.test_exercise_code_path   s€   € ò	ô ”e—k‘k¤5§;¡;Ð/Ô0°Ó5ˆØ�‰˜u×/Ñ/°Õ2Õ3ˆØ×!Ñ!ˆä‹jˆØ
×Ñ˜ÔØ—‘“ˆØ�	‰	ŒØ�‰�e˜VÖ$r   c                ó¢  a€ R oV3R lp\        \        P                  3RRR7      ! V4      pVP                  VP                  ^ ,          ,          pVP
                  p\        4       pVP                  V4       VP                  4       pVP                  4        V P                  RV4       V P                  RV4       V P                  RV4       R# )	z=
Ensures that lifted loops are handled correctly in obj mode
c                 ó   € V # r   © )Úxs   &r   ÚbarÚDTestAnnotation.test_exercise_code_path_with_lifted_loop.<locals>.bar4   s   € ØˆHr   c                 ó¢   <€ R p\        V 4       F  pW,           pK  	  \        V 4       F  pW,           pK  	  V '       d   VS! V 4      ,
          pV# )g        r   )r+   Úhr   Úkr,   s   &   €r   r   ÚDTestAnnotation.test_exercise_code_path_with_lifted_loop.<locals>.foo7   sG   ø€ ØˆAÜ˜1–X�Ø•E’ñ ä˜1–X�Ø•E’ñ çØ™˜A›•J�ØˆHr   T)ÚforceobjÚloopliftr,   r   Ú
LiftedLoopN)r   r   Úintpr   r   r   r   r   r   r   r   )r    r   r!   r"   r#   r$   r%   r,   s   &      @r   Ú(test_exercise_code_path_with_lifted_loopÚ7TestAnnotation.test_exercise_code_path_with_lifted_loop.   sŸ   ø€ ò	õ	ô ”U—Z‘Z�M¨D¸4Õ@ÀÓEˆØ�‰˜u×/Ñ/°Õ2Õ3ˆà×!Ñ!ˆä‹jˆØ
×Ñ˜ÔØ—‘“ˆØ�	‰	ŒØ�‰�e˜VÔ$Ø�‰�e˜VÔ$Ø�‰�l FÖ+r   c                óè  € \         P                  ! RR7      R 4       p\        P                  ! R\        P                  4      p\
        P                  3pVP                  V4       VP                  V,          p\        4       pVP                  P                  V4       VP                  4       pVP                  4        V P                  VP                  R4      ^4       RpV P                  VP                  VP                  V4      4      ^4       V P                  \!        \        P"                  ! W&4      4      ^V: RV: 2R7       \
        P$                  3pVP                  V4       VP                  V,          p\        4       pVP                  P                  V4       VP                  4       pVP                  4        V P                  VP                  R4      ^4       V P                  VP                  VP                  V4      4      ^4       V P                  VP                  VP                  V4      4      ^4       V P                  \!        \        P"                  ! W&4      4      ^4       R	# )
zG
Test some format and behavior of the html annotation with lifted loop
T)r2   c                 óR   € \        4        ^ p\        V 4       F  pW,          pK  	  V# )r   )Úobjectr   )r+   Úzr   s   &  r   ÚudtÚ=TestAnnotation.test_html_output_with_lifted_loop.<locals>.udtT   s&   € äŒHØˆAÜ˜1–X�Ø•’ñ àˆHr   z<td class="lifted_tag">\s*\s*<details>\s*<summary>\s*<code>\s*[0-9]+:\s*[&nbsp;]+for i in range\(x\):  # this line is tagged\s*zFunction name: udtz!with signature: {} -&gt; pyobjectz not found in )ÚmsgN)Únumbar   ÚreÚcompileÚ	MULTILINEr   Úint64r   r   r   r   r   r   ÚassertEqualÚcountÚformatÚlenÚfindallÚfloat64)	r    r<   Úre_lifted_tagÚsig_i64r"   r$   r%   ÚsigfmtÚsig_f64s	   &        r   Ú!test_html_output_with_lifted_loopÚ0TestAnnotation.test_html_output_with_lifted_loopO   sÞ  € ô
 
�Š˜DÔ	!ñ	ó 
"ð	ô Ÿ
š
ðJô �L‰Lóˆô —;‘;�.ˆØ�‰�GÔØ�}‰}˜WÕ%ˆô ‹jˆØ×Ñ×*Ñ*¨3Ô/Ø—‘“ˆØ�	‰	Œð 	×Ñ˜Ÿ™Ð&:Ó;¸QÔ?à4ˆØ×Ñ˜Ÿ™ f§m¡m°GÓ&<Ó=¸qÔAà×ÑœœRŸZšZ¨Ó>Ó?ÀÛ5BÂFÐKð 	ô 	Mô —=‘=Ð"ˆØ�‰�GÔØ�}‰}˜WÕ%ˆô ‹jˆØ×Ñ×*Ñ*¨3Ô/Ø—‘“ˆØ�	‰	Œð 	×Ñ˜Ÿ™Ð&:Ó;¸QÔ?Ø×Ñ˜Ÿ™ f§m¡m°GÓ&<Ó=¸qÔAØ×Ñ˜Ÿ™ f§m¡m°GÓ&<Ó=¸qÔAà×ÑœœRŸZšZ¨Ó>Ó?ÀÖCr   Nz%please install the 'pygments' packagec                óJ  € \         P                  R  4       pV! ^^4       VP                  RR7       V P                  \        4      ;_uu_ 4       pVP                  RRR7       RRR4       V P                  R\        XP                  4      4       R#   + '       g   i     L7; i)c                 ó   € W3# r   r*   )r+   Úys   &&r   r   Ú-TestAnnotation.test_pretty_print.<locals>.foo�   s	   € à�4ˆKr   T)Úprettyzshould be None)rT   ÚfileNz$`file` must be None if `pretty=True`)r?   r   Úinspect_typesÚassertRaisesÚ
ValueErrorr   ÚstrÚ	exception)r    r   Úraisess   &  r   Útest_pretty_printÚ TestAnnotation.test_pretty_printŒ   sŠ   € ô 
�‰ñ	ó 
ð	ñ 	ˆAˆqŒ	à×Ñ ÐÔ&ð ×Ñœz×*Ô*¨fØ×Ñ TÐ0@ÐÔA÷ +à�‰Ð<Ü˜&×*Ñ*Ó+ö	-÷ +×*ús   ÁBÂB"	r*   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   Úrun_test_in_subprocessr&   r6   rN   ÚunittestÚskipIfÚpygmentsr\   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r
   r
      s}   ø‡ € ð ×$Ñ$ñ%ó %ð%ð* ×$Ñ$ñ,ó %ð,ð@ ×$Ñ$ñ:Dó %ð:Dðx ‡_‚_�X Ð%Ð'NÓOñ-ó Pö-r   r
   c                   óD   a € ] tR t^žt o R tR tR tR tR tR t	Rt
V tR# )	ÚTestTypeAnnotationc                ór   € \        V4       F  w  r4W$9   g   K  Vu # 	  \        R P                  V4      4      h)zcan't find {!r})Ú	enumeraterX   rF   )r    ÚlinesÚpatr   Úlns   &&&  r   Ú
findpatlocÚTestTypeAnnotation.findpatloc    s6   € Ü˜uÖ%‰EˆAØŽyØ’ñ &ô Ð*×1Ñ1°#Ó6Ó7Ð7r   c                ót   € \        4       pVP                  V4       VP                  4       P                  4       # r   )r   rV   r   Ú
splitlines)r    ÚfuncÚstrbufs   && r   ÚgetlinesÚTestTypeAnnotation.getlines¦   s-   € Ü“ˆØ×Ñ˜6Ô"Ø�‰Ó ×+Ñ+Ó-Ð-r   c                ó:  € \         P                  R  4       pV! ^^4       V P                  V4      pV P                  VR4      pV P                  VR4      pV P                  VR4      pV P                  VR4      pV P	                  W54       V P	                  WF4       R# )c                 ó   € W,           # r   r*   )ÚappleorangeÚberrycherrys   &&r   r   Ú+TestTypeAnnotation.test_delete.<locals>.foo¬   s   € àÕ,Ð,r   z&appleorange = arg(0, name=appleorange)z&berrycherry = arg(1, name=berrycherry)zdel appleorangezdel berrycherryN)r?   r   rw   rq   Ú
assertLess)r    r   rn   ÚsaÚsbÚeaÚebs   &      r   Útest_deleteÚTestTypeAnnotation.test_delete«   s�   € Ü	�‰ñ	-ó 
ð	-ñ 	ˆAˆqŒ	à—‘˜cÓ"ˆð �_‰_˜UÐ$LÓMˆØ�_‰_˜UÐ$LÓMˆà�_‰_˜UÐ$5Ó6ˆØ�_‰_˜UÐ$5Ó6ˆà�‰˜ÔØ�‰˜Ör   c                ó�  € \        R V4      ;_uu_ 4        \        R 4       p^
pV! V4      pV P                  WC4       RRR4       V P                  X4      pV P	                  VR4      pV P	                  VR4      pV P	                  VR4      pV P	                  VR4      p	V P	                  VR4      p
WgW‰V
3#   + '       g   i     L€; i)ÚEXTEND_VARIABLE_LIFETIMESc                 ó
   € T pV# r   r*   )r   Úbs   & r   r   Ú/TestTypeAnnotation._lifetimes_impl.<locals>.fooÀ   s   € à�Ø�r   Nza = arg(0, name=a)zb = azcast(value=b)zdel azdel b)r   r   rD   rw   rq   )r    Úextendr   r+   rˆ   rn   r   r€   Úcast_retÚdelaÚdelbs   &&         r   Ú_lifetimes_implÚ"TestTypeAnnotation._lifetimes_impl¾   s¾   € ÜÐ8¸&×AÕAÜñó ðð ˆAÙ�A“ˆAØ×Ñ˜QÔ"÷ Bð —‘˜cÓ"ˆà�_‰_˜UÐ$8Ó9ˆØ�_‰_˜U GÓ,ˆà—?‘? 5¨/Ó:ˆà�‰˜u gÓ.ˆØ�‰˜u gÓ.ˆà�x tÐ+Ð+÷' B×Aús   •(B5Â5C	c                óº   € V P                  ^ R7      w  rr4pV P                  W4       V P                  W%4       V P                  WC4       V P                  WS4       R# )r   ©rŠ   N©rŽ   r~   ÚassertGreater©r    r   r€   r‹   rŒ   r�   s   &     r   Útest_delete_standard_lifetimesÚ1TestTypeAnnotation.test_delete_standard_lifetimesÔ   sP   € ð (,×';Ñ';À1Ð';Ó'EÑ$ˆ� à�‰˜Ô!Ø�‰˜Ô!à�‰˜Ô'Ø×Ñ˜4Ö*r   c                óº   € V P                  ^R7      w  rr4pV P                  W4       V P                  W%4       V P                  WC4       V P                  WS4       R# )é   r‘   Nr’   r”   s   &     r   Útest_delete_extended_lifetimesÚ1TestTypeAnnotation.test_delete_extended_lifetimesç   sR   € ð (,×';Ñ';À1Ð';Ó'EÑ$ˆ� à�‰˜Ô!Ø�‰˜Ô!à×Ñ˜4Ô*Ø×Ñ˜4Ö*r   r*   N)r^   r_   r`   ra   rq   rw   rƒ   rŽ   r•   r™   rf   rg   rh   s   @r   rk   rk   ž   s(   ø‡ € ò8ò.ò
 ò&,ò,+÷&+ð +r   rk   Ú__main__)r@   Úior   r?   Ú
numba.corer   r   r   Únumba.tests.supportr   r   rc   Újinja2ÚImportErrorre   rd   r
   rk   r^   Úmainr*   r   r   Ú<module>r¢      s³   ðÛ 	Ý ã Ý ß ß 9Û ðÛðÛð
 
‡‚�˜4�Ð!FÓGôE-�Xó E-ó HðE-ôPZ+˜×*Ñ*ô Z+ðz ˆzÔØ‡M‚M†Oñ øð_ ô Ø‚Fðûð
 ô Ø‚Hðús"   ªB ¯B Â	BÂBÂ	B"Â!B"