+
     þÎjk_  ã                   ón  € ^ RI t ^ RIHt ^ RIt^ RIHtHt ^ RIHt ^ RI	H
t
HtHtHtHtHtHt ^ RIHtHt ^ RIHt ^ RIHtHtHtHtHt ^ R	IHtHtHtH t H!t!H"t"H#t# ^ RI$t$^ RI%t%^ RI&t& ! R
 R]'4      t(R t)R t*R t+R t,R t-]! ])4      t.R t/R t0R t1R t2R t3R t4R t5 ! R R]4      t6 ! R R]]4      t7 ! R R]]4      t8 ! R R]]&P0                  4      t9 ! R  R!]]&P0                  4      t: ! R" R#]]&P0                  4      t; ! R$ R%]]&P0                  4      t<]=R&8X  d   ]&P|                  ! 4        R# R# )'é    N)ÚStringIO)ÚnjitÚ	vectorize)Útypeof)ÚutilsÚtypesÚtypingÚirÚcompilerÚcpuÚcgutils)ÚCompilerÚFlags)Ú
cpu_target)ÚMemoryLeakMixinÚTestCaseÚtemp_directoryÚcreate_temp_moduleÚnumpy_sincos_low_precision)ÚoverloadÚmodelsÚlower_builtinÚregister_modelÚmake_attribute_wrapperÚtype_callableÚtypeof_implc                   ó2   a a€ ] tR t^t oV 3R ltRtVtV ;t# )Ú	Namespacec                óF   <€ W9   d	   W,          # \         \        V `  V4      # ©N)Úsuperr   Ú__getattr__)ÚsÚkÚ	__class__s   &&€ÚR/opt/data/home/.local/lib/python3.14/site-packages/numba/tests/test_array_exprs.pyr"   ÚNamespace.__getattr__   s    ø€ Ø”vˆq�tÐE¤5¬°AÑ#BÀ1Ó#EÐEó    © )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r"   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r%   Ú__classdict__s   @@r&   r   r      s   ù‡ € ÷Fõ Fr(   r   c                 ó    € W,          V,           # r    r)   ©ÚaÚxÚys   &&&r&   Úaxyr7       ó   € Ø�5�1�9Ðr(   c                 ó    € W,          V,           # r    r)   r3   s   &&&r&   Úax2r:   #   r8   r(   c                 óx   € V) VR ,          RV ,          V,          ,
          R,          ,           R V ,          ,          # )ç       @g      @ç      à?r)   ©ÚAsÚBsÚCss   &&&r&   Úpos_rootrB   &   s.   € ØˆC�R˜2•X " r¥'¨B¥,Õ/°CÕ7Õ8¸RÀ"½WÕEÐEr(   c                 ó„   € R V ,          pR V,          V,          pVR ,          V,
          pV) VR,          ,
          V,          # )r<   r=   r)   ©r?   r@   rA   Ú_2AsÚ_4AsCsÚ
_Bs2_4AsCss   &&&   r&   Úneg_root_common_subexprrH   )   s=   € Ø��7€DØ�$�Y˜�^€FØ˜•(˜VÕ#€JØˆC�: Õ$Õ%¨Õ-Ð-r(   c                 ó’   € R V ,          pR V,          V,          pVR ,          V,
          R,           pV) VR,          ,
          V,          # )r<   y                r=   r)   rD   s   &&&   r&   Úneg_root_complex_subexprrJ   /   sB   € Ø��7€DØ�$�Y˜�^€FØ˜•(˜VÕ# rÕ)€JØˆC�: Õ$Õ%¨Õ-Ð-r(   c                 óz   € \         P                  ! \        V \         P                  ! V4      R ,
          R 4      4      # )ç      ð?)ÚnpÚcosÚvaxyÚsin)Úa0Úa1s   &&r&   Ú
call_stuffrS   7   s&   € Ü�6Š6”$�rœ2Ÿ6š6 "›:¨�?¨BÓ/Ó0Ð0r(   c                 óD   € V^,          ^V ,          V,          ,
          ^ 8  # ©é   r)   r>   s   &&&r&   Úare_roots_imaginaryrW   :   s   € Ø�!�G�a˜"•f˜r•kÕ! QÑ&Ð&r(   c                 ó    € W,          V,           # r    r)   r>   s   &&&r&   Údiv_addrY   =   s   € Ø�7�R�<Ðr(   c                 ó   € V ^,          # )é   r)   )r?   s   &r&   Úcuber\   @   s   € Ø��7€Nr(   c                 ó\   € \         P                  ! W4       \         P                  ! W!V4      # r    )rM   rN   Úadd)r4   ÚbÚouts   &&&r&   Úexplicit_outputra   C   s   € Ü‡F‚Fˆ1„NÜ�6Š6�#˜#ÓÐr(   c                 óR   € W,           pW@V,          ,
          pWB,          V,           pV# r    r)   )r4   r_   ÚcÚdÚus   &&&& r&   Úvariable_name_reuserf   G   s$   € Ø	�€AØ	��E�	€AØ	���	€AØ€Hr(   c                 óD  € V P                   ^ ,          p\        P                  ! W3\        P                  R7      p\	        V4       FV  p\	        W14       FD  p\        P
                  ! W,          W,          ,
          ^,          4      R,          ;W#V3&   W$V3&   KF  	  KX  	  V# )r   ©Údtyper=   )ÚshaperM   ÚemptyÚfloat64ÚrangeÚsum)ÚvectorsÚ	n_vectorsÚresultÚiÚjs   &    r&   Údistance_matrixrt   O   s†   € Ø—‘˜aÕ €IÜ�XŠX�yÐ,´B·J±JÔ?€Fä�9ÖˆÜ�qÖ$ˆAÜ(*¯ªØ•˜g�jÕ(¨QÕ.ó)0Ø36õ)7ð 7ˆF�Q�3‰K˜& 1 ›+ó %ñ ð
 €Mr(   c                   óH   a € ] tR t^[t o ]RR l4       t]RR l4       tRtV tR# )ÚRewritesTesterNc           	     ó¦   € Vf   / pV'       g   \        4       pRVn        Vf   \        P                  pVf   \        P                  pV ! WgWQVW44      # ©NT)r   Únrtr   Útyping_contextÚtarget_context)ÚclsÚargsÚreturn_typeÚflagsÚlocalsÚlibraryrz   r{   s   &&&&&&&&r&   Úmk_pipelineÚRewritesTester.mk_pipeline\   sW   € ð Š>ØˆFßÜ“GˆEØˆŒ	ØÒ!Ü'×6Ñ6ˆNØÒ!Ü'×6Ñ6ˆNÙ�>°7À+Øó"ð 	"r(   c                ój   € Vf   / pV'       g   \        4       pRVn        V P                  ! WW4V3/ VB # rx   )r   Úno_rewritesr‚   )r|   r}   r~   r   r€   r�   Úkwss   &&&&&&,r&   Úmk_no_rw_pipelineÚ RewritesTester.mk_no_rw_pipelinek   s8   € ð Š>ØˆFßÜ“GˆEØ ˆÔØ�Š˜t°%ÀÑPÈCÑPÐPr(   r)   )NNNNNN)NNNN)	r*   r+   r,   r-   Úclassmethodr‚   r‡   r.   r/   ©r1   s   @r&   rv   rv   [   s-   ø‡ € Øó"ó ð"ð óQó öQr(   rv   c                   ó    a € ] tR t^vt o R tR tR tRR lt]3R lt	]
3R ltR tR	 tRR
 ltR tR tR t]3R ltR tR tR tR tRtV tR# )ÚTestArrayExpressionsc                óÒ   € \         P                  V4      pVP                  V4      pVP                  p\         P	                  V4      pVP                  V4      pVP                  pW5Wh3# )zD
Compile the given function both without and with rewrites enabled.
)rv   r‡   Úcompile_extraÚentry_pointr‚   )	ÚselfÚfnÚarg_tysÚcontrol_pipelineÚcres_0Úcontrol_cfuncÚtest_pipelineÚcres_1Ú
test_cfuncs	   &&&      r&   Ú_compile_functionÚ&TestArrayExpressions._compile_functionx   sf   € ô *×;Ñ;¸GÓDÐØ!×/Ñ/°Ó3ˆØ×*Ñ*ˆä&×2Ñ2°7Ó;ˆØ×,Ñ,¨RÓ0ˆØ×'Ñ'ˆ
à°ÐIÐIr(   c                ó�  € \         P                  ! ^ ^^
4      p\         P                  ! ^^^
4      p\         P                  ! ^^^
4      pWV3 Uu. uF  p\        V4      NK  	  ppV P                  \        V4      w  rgr‰\
        P                  V4      p
V
P                  \        4      pVP                  pV! WV4      pV	! WV4      pV! WV4      p\         P                  P                  WÞ4       \         P                  P                  Wþ4       VP                  P                  P                  pVP                  P                  P                  pV
P                  P                  P                  pV P                  \!        V4      \!        V4      4       V P                  \!        V4      \!        V4      4       V P#                  \!        V^ ,          P$                  4      \!        V^ ,          P$                  4      4       V P                  \!        V^ ,          P$                  4      \!        V^ ,          P$                  4      4       R# u upi )z^
Using a simple array expression, verify that rewriting is taking
place, and is fusing loops.
N)rM   Úlinspacer   r™   r7   rv   r‡   rŽ   r:   r�   ÚtestingÚassert_array_equalÚstateÚfunc_irÚblocksÚassertEqualÚlenÚassertGreaterÚbody)r�   ÚAÚXÚYÚargr’   r“   Únb_axy_0r–   Únb_axy_1Úcontrol_pipeline2Úcres_2Únb_ctlÚexpectedÚactualÚcontrolÚir0Úir1Úir2s   &                  r&   Útest_simple_exprÚ%TestArrayExpressions.test_simple_expr†   sµ  € ô
 �KŠK˜˜!˜BÓˆÜ�KŠK˜˜!˜BÓˆÜ�KŠK˜˜!˜BÓˆØ+,°©)Ó4©) 3”6˜#–;©)ˆÐ4ð ×"Ñ"¤3¨Ó0ñ 	<Ð Mô +×<Ñ<¸WÓEÐØ"×0Ñ0´Ó5ˆØ×#Ñ#ˆá˜A !Ó$ˆÙ˜! Ó"ˆÙ˜˜q“/ˆÜ
�
‰
×%Ñ% hÔ7Ü
�
‰
×%Ñ% gÔ6à×$Ñ$×,Ñ,×3Ñ3ˆØ×!Ñ!×)Ñ)×0Ñ0ˆØ×%Ñ%×-Ñ-×4Ñ4ˆØ×Ñœ˜S›¤3 s£8Ô,Ø×Ñœ˜S›¤3 s£8Ô,à×Ñœ3˜s 1�vŸ{™{Ó+¬S°°Qµ·±Ó-=Ô>Ø×Ñœ˜S �VŸ[™[Ó)¬3¨s°1­v¯{©{Ó+;Ö<ùò- 5s   ÁIc              #  óþ   "  € V Fr  p\        V\        P                  4      '       g   K%  \        VP                  \        P                  4      '       g   KQ  VP                  P
                  R 8X  g   Kn  Vx € Kt  	  R# 5i)Ú	arrayexprN)Ú
isinstancer
   ÚAssignÚvalueÚExprÚop)r�   ÚblockÚinstrs   && r&   Ú_get_array_exprsÚ%TestArrayExpressions._get_array_exprs¦   sJ   é € ÛˆEÜ˜%¤§¡×+Ô+Ü˜eŸk™k¬2¯7©7×3Ô3Ø—{‘{—~‘~¨Ö4Ø#œó	 ùs   ‚#A=ª'A=ÁA=Á3
A=Nc                óR  € Vf   \        4       p\        V\        4      '       g   \        RP	                  V4      4      hVw  r4. pV F=  p\        V\        4      '       d   V P                  Wb4      w  rgVP                  V4       K?  	  V\        V4      3pVP                  V4       W‚3# )z;
Convert an array expression tree into a set of operators.
z{0} not a tuple)Úsetr¹   ÚtupleÚ
ValueErrorÚformatÚ_array_expr_to_setÚappendr^   )	r�   Úexprr`   Ú	operationÚoperandsÚprocessed_operandsÚoperandÚ_Úprocessed_exprs	   &&&      r&   rÇ   Ú'TestArrayExpressions._array_expr_to_set­   s    € ð Š;Ü“%ˆCÜ˜$¤×&Ò&ÜÐ.×5Ñ5°dÓ;Ó<Ð<Ø"Ñˆ	ØÐÛˆGÜ˜'¤5×)Ò)Ø!×4Ñ4°WÓB‘
�Ø×%Ñ% gÖ.ñ  ð #¤EÐ*<Ó$=Ð=ˆØ�‰�ÔØÐ"Ð"r(   c                ó¬  € \         P                  P                  ^
4      p\         P                  P                  ^
4      R,           p\         P                  P                  ^
4      pW#V3 Uu. uF  p\        V4      NK  	  pp\        P	                  V4      pVP                  V4      pVP                  p	\        P                  V4      p
V
P                  V4      pVP                  pV! W#V4      pV	! W#V4      pV! W#V4      p\         P                  P                  WÞ4       \         P                  P                  Wï4       \        \        4       4      # u upi )é
   rL   )rM   Úrandomr   rv   r‡   rŽ   r�   r‚   r�   Úassert_array_almost_equalr   r€   )r�   r‘   r¦   ÚBÚCr©   r’   r“   Úcontrol_cresÚnb_fn_0r–   Ú	test_cresÚnb_fn_1Ú	np_resultÚnb_result_0Únb_result_1s   &&              r&   Ú_test_root_functionÚ(TestArrayExpressions._test_root_function¿   s  € Ü�I‰I×Ñ˜RÓ ˆÜ�I‰I×Ñ˜RÓ  2Õ%ˆô �I‰I×Ñ˜RÓ ˆØ+,°©)Ó4©) 3”6˜#–;©)ˆÐ4ä)×;Ñ;¸GÓDÐØ'×5Ñ5°bÓ9ˆØ×*Ñ*ˆä&×2Ñ2°7Ó;ˆØ!×/Ñ/°Ó3ˆ	Ø×'Ñ'ˆá�q˜Q“Kˆ	Ù˜a AÓ&ˆÙ˜a AÓ&ˆÜ
�
‰
×,Ñ,¨YÔDÜ
�
‰
×,Ñ,¨[ÔFäœ›Ó"Ð"ùò! 5s   Á+Ec                óÂ  € \         P                  ! ^
\         P                  R7      p\        V4      3p\        P                  V4      pVP                  V4      pVP                  p\        P                  V4      pVP                  V4      pVP                  p	V^,          p
V P                  W¦! V4      4       V P                  W©! V4      4       \        \        4       4      # )rÒ   rh   )rM   Úarangerl   r   rv   r‡   rŽ   r�   r‚   ÚassertPreciseEqualr   r€   )r�   r‘   r¦   r’   r“   r×   rØ   r–   rÙ   rÚ   r¯   s   &&         r&   Ú_test_cube_functionÚ(TestArrayExpressions._test_cube_function×   s¶   € Ü�IŠI�b¤§
¡
Ô+ˆÜ˜!“9�,ˆä)×;Ñ;¸GÓDÐØ'×5Ñ5°bÓ9ˆØ×*Ñ*ˆä&×2Ñ2°7Ó;ˆØ!×/Ñ/°Ó3ˆ	Ø×'Ñ'ˆà˜•6ˆØ×Ñ ¨'°!«*Ô5Ø×Ñ ¨'°!«*Ô5äœ›Ó"Ð"r(   c                ó~  a
a€ \         P                  ! ^
\         P                  R7      o
S
^,           o\        S
4      3^,          pV P	                  W4      w  r4rVV
V3R lp\
        '       d   ^M^pV! V4      p	V P                  W—! V4      RVR7       V P                  W—! V4      RVR7       \        \        4       4      # )zg
Test function having a (a, b, out) signature where *out* is
an output array the function writes into.
rh   c                 óH   <€ \         P                  ! S4      pV ! SSV4       V# r    )rM   Ú
zeros_like)r‘   r`   r¦   rÕ   s   & €€r&   Úrun_funcÚETestArrayExpressions._test_explicit_output_function.<locals>.run_funcõ   s!   ø€ Ü—-’- Ó"ˆCÙˆq�!�SŒMØˆJr(   Údouble)ÚprecÚulps)	rM   rá   rl   r   r™   r   râ   r   r€   )r�   r‘   r’   r“   r•   r–   r˜   rè   rì   r¯   r¦   rÕ   s   &&        @@r&   Ú_test_explicit_output_functionÚ3TestArrayExpressions._test_explicit_output_functioné   sº   ù€ ô
 �IŠI�b¤§
¡
Ô+ˆØ��EˆÜ˜!“9�, Õ"ˆð ×"Ñ" 2Ó/ñ 	CÐ¨ö	÷
 /Ó.‰q°AˆÙ˜B“<ˆØ×Ñ ¨(°=Ó*AØ%-°Dð 	 ô 	:à×Ñ ¨(°:Ó*>Ø%-°Dð 	 ô 	:ô œ›Ó"Ð"r(   c                ón   € \        \        V P                  V4      4      4      pV P                  W24       R# )zH
Assert the *block* has the expected number of array expressions
in it.
N)r£   ÚlistrÀ   r¢   )r�   r¾   Úexpected_countÚrewrite_counts   &&& r&   Ú_assert_array_exprsÚ(TestArrayExpressions._assert_array_exprs  s,   € ô
 œD ×!6Ñ!6°uÓ!=Ó>Ó?ˆØ×Ñ˜Ö7r(   c                ó>  € V P                  \        V4      \        V4      4       V^ ,          P                  pV^ ,          P                  pV P                  V^ 4       V P                  V^4       V'       g'   V P	                  \        V4      \        V4      4       R# R# )z•
Given two dictionaries of Numba IR blocks, check to make sure the
control IR has no array expressions, while the test IR
contains one and only one.
N)r¢   r£   r¥   ró   r¤   )r�   Ú
control_irÚtest_irÚtrivialÚcontrol_blockÚ
test_blocks   &&&&  r&   Ú_assert_total_rewriteÚ*TestArrayExpressions._assert_total_rewrite  s{   € ð 	×Ñœ˜Z›¬#¨g«,Ô7Ø" 1�×*Ñ*ˆØ˜Q•Z—_‘_ˆ
Ø× Ñ  °Ô2Ø× Ñ  ¨QÔ/ßð ×Ñœs =Ó1´3°z³?ÖCñ	 r(   c                óL  € V P                  \        V4      \        V4      4       VP                  4        Fk  w  r4VP                  pW#,          P                  pV P                  \        V4      \        V4      4       V P	                  V^ 4       V P	                  V^ 4       Km  	  R# )z~
Given two dictionaries of Numba IR blocks, check to make sure
the control IR and the test IR both have no array expressions.
N)r¢   r£   Úitemsr¥   ró   )r�   rö   r÷   r$   Úvrù   rú   s   &&&    r&   Ú_assert_no_rewriteÚ'TestArrayExpressions._assert_no_rewrite  s~   € ð
 	×Ñœ˜Z›¬#¨g«,Ô7à×$Ñ$Ö&‰DˆAØŸF™FˆMØ �Ÿ™ˆJØ×ÑœS Ó/´°Z³ÔAØ×$Ñ$ ]°AÔ6Ø×$Ñ$ Z°Ö3ó 'r(   c                óî   € V P                  4       pV P                  VP                  P                  P                  P
                  VP                  P                  P                  P
                  RR7       R# )zu
Ensure even a non-nested expression is rewritten, as it can enable
scalar optimizations such as rewriting `x ** 2`.
T)rø   N)rã   rû   r“   rŸ   r    r¡   r–   ©r�   Únss   & r&   Útest_trivial_exprÚ&TestArrayExpressions.test_trivial_expr+  s]   € ð
 ×%Ñ%Ó'ˆØ×"Ñ" 2×#6Ñ#6×#<Ñ#<×#DÑ#D×#KÑ#KØ#%×#3Ñ#3×#9Ñ#9×#AÑ#A×#HÑ#HØ+/ð 	#ö 	1r(   c                óê   € V P                  4       pV P                  VP                  P                  P                  P
                  VP                  P                  P                  P
                  4       R# )z”
Using the polynomial root function, ensure the full expression is
being put in the same kernel with no remnants of intermediate
array expressions.
N)rÞ   rû   r“   rŸ   r    r¡   r–   r  s   & r&   Útest_complicated_exprÚ*TestArrayExpressions.test_complicated_expr5  sV   € ð ×%Ñ%Ó'ˆØ×"Ñ" 2×#6Ñ#6×#<Ñ#<×#DÑ#D×#KÑ#KØ#%×#3Ñ#3×#9Ñ#9×#AÑ#A×#HÑ#Hö	Jr(   c           
     ó˜  a € S P                  V4      pVP                  P                  P                  P                  pVP
                  P                  P                  P                  pS P                  \        V4      \        V4      4       S P                  \        V^ ,          P                  4      \        V^ ,          P                  4      4       S P                  \        \        S P                  V^ ,          P                  4      4      4      ^ 4       \        S P                  V^ ,          P                  4      4      pS P                  \        V4      ^4       \        V 3R lV 4       4      p\        VRR VR,          4       F@  w  rxVP                  V4      p	V	'       g   K   S P                  RP                  V	4      4       KB  	  R# )zX
Attempt to verify that rewriting will incorporate user common
subexpressions properly.
c              3   ó|   <"  € T F1  pSP                  VP                  P                  4      ^,          x € K3  	  R# 5i)é   N)rÇ   r»   rÉ   )Ú.0r¿   r�   s   & €r&   Ú	<genexpr>ÚBTestArrayExpressions.test_common_subexpressions.<locals>.<genexpr>R  s5   øé € ð :Ù'8˜eð ×1Ñ1°%·+±+×2BÑ2BÓCÀA×FÒFÛ'8ùs   ƒ9<N:r  NNz9Common subexpressions detected in array expressions ({0})éÿÿÿÿ)rÞ   r“   rŸ   r    r¡   r–   r¢   r£   r¤   r¥   rð   rÀ   ÚzipÚintersectionÚfailrÆ   )
r�   r‘   r  r²   r³   Úarray_expr_instrsÚ
array_setsÚ
expr_set_0Ú
expr_set_1Úintersectionss
   f&        r&   Útest_common_subexpressionsÚ/TestArrayExpressions.test_common_subexpressions?  s]  ø€ ð
 ×%Ñ% bÓ)ˆØ×!Ñ!×'Ñ'×/Ñ/×6Ñ6ˆØ×Ñ×$Ñ$×,Ñ,×3Ñ3ˆØ×Ñœ˜S›¤3 s£8Ô,Ø×Ñœ3˜s 1�vŸ{™{Ó+¬S°°Qµ·±Ó-=Ô>Ø×ÑœœT $×"7Ñ"7¸¸A½¿¹Ó"DÓEÓFÈÔJô
 ! ×!6Ñ!6°s¸1µv·{±{Ó!CÓDÐØ×Ñœ3Ð0Ó1°1Ô5ô ô :Ù'8ó:ó :ˆ
ä&)¨*°S°b¨/¸:Àb½>Ö&JÑ"ˆJØ&×3Ñ3°JÓ?ˆMß‰}Ø—	‘	ð .ß.4©f°]Ó.CöEó 'Kr(   c                ó,   € V P                  \        4      # r    )r  rJ   )r�   s   &r&   Útest_complex_subexpressionÚ/TestArrayExpressions.test_complex_subexpressionZ  s   € Ø×.Ñ.Ô/GÓHÐHr(   c                óx  € \         P                  P                  ^
4      p\         P                  P                  ^
4      pW3 Uu. uF  p\        V4      NK  	  pp\        P                  P
                  p\        P                  VVP                  VP                  R7      pVP                  \        4      pVP                  p\        P                  VVP                  VP                  R7      p	V	P                  \        4      p
V
P                  p\        W4      pV! W4      pV! W4      p\         P                  P                  WÍ4       \         P                  P                  WÎ4       V P!                  VP"                  P$                  P&                  V	P"                  P$                  P&                  4       R# u upi )zV
Verify that ufunc and DUFunc calls are being properly included in
array expressions.
)rz   r{   N)rM   rÓ   r   rO   Ú_dispatcherÚtargetdescrrv   r‡   rz   r{   rŽ   rS   r�   r‚   r�   rÔ   rû   rŸ   r    r¡   )r�   r¦   rÕ   r©   r’   Ú
vaxy_descrr“   r”   Únb_call_stuff_0r–   r—   Únb_call_stuff_1r¯   r±   r°   s   &              r&   Útest_ufunc_and_dufunc_callsÚ0TestArrayExpressions.test_ufunc_and_dufunc_calls]  sf  € ô
 �I‰I×Ñ˜RÓ ˆÜ�I‰I×Ñ˜RÓ ˆØ+,©&Ó1©& 3”6˜#–;©&ˆÐ1ä×%Ñ%×1Ñ1ˆ
Ü)×;Ñ;ØØ%×4Ñ4Ø%×4Ñ4ð <ó 6Ðð "×/Ñ/´
Ó;ˆØ ×,Ñ,ˆä&×2Ñ2ØØ%×4Ñ4Ø%×4Ñ4ð 3ó 6ˆð ×,Ñ,¬ZÓ8ˆØ ×,Ñ,ˆä˜aÓ#ˆÙ! !Ó'ˆÙ  Ó&ˆÜ
�
‰
×,Ñ,¨XÔ?Ü
�
‰
×,Ñ,¨XÔ>à×"Ñ"Ð#3×#9Ñ#9×#AÑ#A×#HÑ#HØ#0×#6Ñ#6×#>Ñ#>×#EÑ#Eö	Gùò/ 2s   ÁF7c                óô   € V P                  \        4      pV P                  VP                  P                  P
                  P                  VP                  P                  P
                  P                  4       R# )zA
Verify that comparison operators are supported by the rewriter.
N)rÞ   rW   rû   r“   rŸ   r    r¡   r–   r  s   & r&   Útest_cmp_opÚ TestArrayExpressions.test_cmp_op~  sY   € ð ×%Ñ%Ô&9Ó:ˆØ×"Ñ" 2×#6Ñ#6×#<Ñ#<×#DÑ#D×#KÑ#KØ#%×#3Ñ#3×#9Ñ#9×#AÑ#A×#HÑ#Hö	Jr(   c                óô   € V P                  \        4      pV P                  VP                  P                  P
                  P                  VP                  P                  P
                  P                  4       R# )zA
Check that ufunc calls with explicit outputs are not rewritten.
N)rí   ra   r   r“   rŸ   r    r¡   r–   r  s   & r&   Útest_explicit_outputÚ)TestArrayExpressions.test_explicit_output†  sX   € ð ×0Ñ0´ÓAˆØ×Ñ × 3Ñ 3× 9Ñ 9× AÑ A× HÑ HØ "× 0Ñ 0× 6Ñ 6× >Ñ >× EÑ Eö	Gr(   r)   r    )F)r*   r+   r,   r-   r™   rµ   rÀ   rÇ   rB   rÞ   r\   rã   rí   ró   rû   r   r  r  rH   r  r  r$  r'  r*  r.   r/   rŠ   s   @r&   rŒ   rŒ   v   sz   ø‡ € òJò=ò@$ô#ð$ &.ô #ð0 &*ô #ò$#ò48ôDò$4ò1òJð -Dô Eò6IòGòBJ÷Gð Gr(   rŒ   c                   óJ   a € ] tR tRt o R tR tR tR tR tR t	R t
R	tV tR
# )ÚTestRewriteIssuesi�  c                óÚ   a€ ^ RI Hp ^ RIpV! RR7      R 4       oV! RR7      V3R l4       pVP                  ! ^
4      pV! V4      w  rVV P	                  WV4       V P	                  WT4       R# )r   )ÚjitNT)Únopythonc                 ó   € V # r    r)   )Úarrs   &r&   ÚfooÚ.TestRewriteIssues.test_issue_1184.<locals>.foo•  s   € àˆJr(   c                 ó*   <€ S! V 4      pS! V 4      pW3# r    r)   )r2  rc   rd   r3  s   &  €r&   ÚbarÚ.TestRewriteIssues.test_issue_1184.<locals>.bar™  s   ø€ á�C“ˆAÙ�C“ˆAØ�4ˆKr(   )Únumbar/  Únumpyrá   ÚassertIs)r�   r/  rM   r6  r2  Úout_cÚout_dr3  s   &      @r&   Útest_issue_1184Ú!TestRewriteIssues.test_issue_1184‘  sk   ø€ ÝÛá	�dÔ	ñ	ó 
ð	ñ 
�dÔ	ô	ó 
ð	ð
 �iŠi˜‹mˆÙ˜3“x‰ˆØ�‰�eÔ#Ø�‰�eÖ!r(   c                ó"  € ^dp\         P                  P                  V^,          R7      P                  V^34      p\	        V4      p\        \        4      ! V4      p\         P                  P                  W44       \        P                  ! 4        R# )éd   )ÚsizeN)
rM   rÓ   ÚuniformÚreshapert   r   r�   rÔ   ÚgcÚcollect)r�   Únr5   r¯   r°   s   &    r&   Útest_issue_1264Ú!TestRewriteIssues.test_issue_1264¤  se   € ØˆÜ�I‰I×Ñ 1 Q¥3ÐÓ'×/Ñ/°°1°Ó6ˆÜ" 1Ó%ˆÜ”oÔ& qÓ)ˆÜ
�
‰
×,Ñ,¨XÔ>ä
�
Š
Žr(   c                ó  € ^ RI Hp VR 4       p\        P                  P	                  ^
4      p\        P                  P	                  ^
4      pVP                  W44      pV! W44      p\        P                  P                  We4       R# )z*Test array expression with duplicated term)r   c                 óL   € \         P                  ! V4      pW,           V ,           # r    )rM   rP   ©r4   r_   s   &&r&   r3  Ú.TestRewriteIssues.test_issue_1372.<locals>.foo±  s   € ä—’�q“	ˆAØ•5˜1•9Ðr(   N)r8  r   rM   rÓ   rB  Úpy_funcr�   Úassert_allclose)r�   r   r3  r4   r_   ÚexpectÚgots   &      r&   Útest_issue_1372Ú!TestRewriteIssues.test_issue_1372­  sj   € åà	ñ	ó 
ð	ô �I‰I×Ñ˜bÓ!ˆÜ�I‰I×Ñ˜bÓ!ˆØ—‘˜QÓ"ˆÙ�!‹iˆÜ
�
‰
×"Ñ" 3Ö/r(   c                óÂ   € \         R 4       pRp\        P                  ! ^
\        P                  R7      pVP	                  W24      pV! W24      pV P                  WT4       R# )z@
Typing of unary array expression (np.negate) can be incorrect.
c                 ó"   € W,
          V ) ,           # r    r)   rK  s   &&r&   r3  Ú3TestRewriteIssues.test_unary_arrayexpr.<locals>.fooÀ  s   € à•5˜A˜2•:Ðr(   g      ø?rh   N)r   rM   rá   Úint32rM  râ   )r�   r3  r_   r4   rO  rP  s   &     r&   Útest_unary_arrayexprÚ&TestRewriteIssues.test_unary_arrayexpr¼  sV   € ô 
ñ	ó 
ð	ð ˆÜ�IŠI�b¤§¡Ô)ˆà—‘˜QÓ"ˆÙ�!‹iˆØ×Ñ Ö,r(   c                óÒ   € \         R 4       p\        P                  ! . RO4      p\        P                  ! . RO4      pVP                  W#4      pV! W#4      pV P	                  WT4       R# )zL
Typing of bitwise boolean array expression can be incorrect
(issue #1813).
c                 ó   € W( ,          ( # r    r)   rK  s   &&r&   r3  Ú5TestRewriteIssues.test_bitwise_arrayexpr.<locals>.fooÐ  s   € à˜"•X�;Ðr(   N)TTFF)FTFT)r   rM   ÚarrayrM  râ   )r�   r3  r4   r_   rO  rP  s   &     r&   Útest_bitwise_arrayexprÚ(TestRewriteIssues.test_bitwise_arrayexprË  s[   € ô
 
ñ	ó 
ð	ô �HŠHÒ/Ó0ˆÜ�HŠHÒ/Ó0ˆà—‘˜QÓ"ˆÙ�!‹iˆØ×Ñ Ö,r(   c                ó  € \        \        4      p\        P                  ! ^ ^^
4      pV! W"W"4       \	        4       pVP                  V4       VP                  4       pV P                  RV4       V P                  RV4       R# )zW
Type annotation of array expressions with disambiguated
variable names (issue #1466).
z
#   u.1 = z
#   u.2 = N)r   rf   rM   rœ   r   Úinspect_typesÚgetvalueÚassertIn)r�   Úcfuncr4   ÚbufÚress   &    r&   Útest_annotationsÚ"TestRewriteIssues.test_annotationsÛ  sg   € ô
 Ô(Ó)ˆä�KŠK˜˜1˜bÓ!ˆÙˆa�AÔä‹jˆØ×Ñ˜CÔ Ø�l‰l‹nˆØ�‰�l CÔ(Ø�‰�l CÖ(r(   c                óŽ   € \         R  4       pV! ^4      pVP                  ^4      p\        P                  P	                  W#4       R# )c                 ó†   € \         P                  ! V 4      p\        ^4       F  pW,          pVP                  4       pK  	  V# rU   )rM   Úonesrm   Úcopy)r5   r2  rÎ   Úvals   &   r&   ÚfÚ;TestRewriteIssues.test_issue_5599_name_collision.<locals>.fí  s6   € ä—'’'˜!“*ˆCä˜1–X�Ø•y�Ø—h‘h“j’ñ ð ˆJr(   N)r   rM  rM   r�   rž   )r�   rm  rP  rO  s   &   r&   Útest_issue_5599_name_collisionÚ0TestRewriteIssues.test_issue_5599_name_collisionë  s>   € ä	ñ	ó 
ð	ñ �‹dˆØ—‘˜1“ˆÜ
�
‰
×%Ñ% cÖ2r(   r)   N)r*   r+   r,   r-   r=  rG  rQ  rW  r]  rf  ro  r.   r/   rŠ   s   @r&   r-  r-  �  s-   ø‡ € ò"ò&ò0ò-ò-ò )÷ 3ð 3r(   r-  c                   ó&   a € ] tR tRt o R tRtV tR# )ÚTestSemanticsiû  c                ó*  € \         p\        V4      p\        P                  ! R R\	        R4      .4      p\        P                  ! . RO4      p\        P
                  ! V4      pV! W4V4      pV! W4V4      p\        P                  P                  Wg4       R# )ç        rL   ÚinfN)rt  rt  rL   )rY   r   rM   rl   ÚfloatÚ	ones_liker�   rž   )r�   Úpyfuncrc  r4   r_   rc   rO  rP  s   &       r&   Útest_division_by_zeroÚ#TestSemantics.test_division_by_zeroý  sn   € ô ˆÜ�V“ˆä�JŠJ˜˜S¤%¨£,Ð/Ó0ˆÜ�JŠJ’Ó'ˆÜ�LŠL˜‹Oˆá˜˜a“ˆÙ�A˜!‹nˆÜ
�
‰
×%Ñ% fÖ2r(   r)   N)r*   r+   r,   r-   ry  r.   r/   rŠ   s   @r&   rr  rr  û  s   ø‡ € ÷3ð 3r(   rr  c                   ó0   a € ] tR tRt o RtR tR tRtV tR# )ÚTestOptionalsi  z`Tests the arrival and correct lowering of Optional types at a arrayexpr
derived ufunc, see #3972c                óÈ  a€ \         R  4       o\         V3R l4       p\        P                  ! ^4      R3pV! V!  pVP                  ! V!  p\        P                  P                  W44       SP                  pV^ ,          ^,          pV P                  \        V\        P                  4      4       V P                  \        VP                  \        P                  4      4       R# )c                 ó   € W,           # r    r)   ©r5   r6   s   &&r&   Úarr_exprÚ9TestOptionals.test_optional_scalar_type.<locals>.arr_expr  ó	   € à•5ˆLr(   c                 ó,   <€ V^ 8”  d   RpMTpS! W4      # ©r   Nr)   ©r5   r6   Úzr€  s   && €r&   Údo_callÚ8TestOptionals.test_optional_scalar_type.<locals>.do_call  ó   ø€ à�1ŒuØ‘à�Ù˜A“>Ð!r(   Ng333333ó¿)r   rM   rá   rM  r�   rN  Ú
signaturesÚ
assertTruer¹   r   ÚOptionalÚtypeÚFloat©r�   r‡  r}   re  r¯   r#   Úotyr€  s   &      @r&   Útest_optional_scalar_typeÚ'TestOptionals.test_optional_scalar_type  s´   ø€ ä	ñ	ó 
ð	ô 
ô	"ó 
ð	"ô —	’	˜!“˜dÐ#ˆñ �t‰nˆØ—?’? DÑ)ˆÜ
�
‰
×"Ñ" 3Ô1ð ×ÑˆØ��d�1�gˆØ�‰œ
 3¬¯©Ó7Ô8Ø�‰œ
 3§8¡8¬U¯[©[Ó9Ö:r(   c                ój  a€ \         R  4       o\         V3R l4       p\        P                  ! ^4      \        P                  ! R4      3pV! V!  pVP                  ! V!  p\        P                  P                  W44       SP                  pV^ ,          ^,          pV P                  \        V\        P                  4      4       V P                  \        VP                  \        P                  4      4       V P                  \        VP                  P                  \        P                  4      4       R# )c                 ó   € W,           # r    r)   r  s   &&r&   r€  Ú8TestOptionals.test_optional_array_type.<locals>.arr_expr-  r‚  r(   c                 ó:   <€ V^ ,          ^ 8”  d   RpMTpS! W4      # r„  r)   r…  s   && €r&   r‡  Ú7TestOptionals.test_optional_array_type.<locals>.do_call1  ó"   ø€ à��t�aŒxØ‘à�Ù˜A“>Ð!r(   ç      @N)r   rM   rá   rM  r�   rN  rŠ  r‹  r¹   r   rŒ  r�  ÚArrayri   rŽ  r�  s   &      @r&   Útest_optional_array_typeÚ&TestOptionals.test_optional_array_type+  sÛ   ø€ ä	ñ	ó 
ð	ô 
ô	"ó 
ð	"ô —	’	˜!“œbŸiši¨›mÐ,ˆñ �t‰nˆØ—?’? DÑ)ˆÜ
�
‰
×"Ñ" 3Ô1ð ×ÑˆØ��d�1�gˆØ�‰œ
 3¬¯©Ó7Ô8Ø�‰œ
 3§8¡8¬U¯[©[Ó9Ô:Ø�‰œ
 3§8¡8§>¡>´5·;±;Ó?Ö@r(   r)   N)	r*   r+   r,   r-   Ú__doc__r‘  r›  r.   r/   rŠ   s   @r&   r|  r|    s   ø‡ € ñ ò;÷6Að Ar(   r|  c                   ó,   a € ] tR tRt o R tR tRtV tR# )ÚTestOptionalsExceptionsiH  c                óF  a€ V P                  4        \        R  4       o\        V3R l4       p\        P                  ! ^4      R3pV P	                  \
        4      ;_uu_ 4       pV! V!   RRR4       V P                  R\        XP                  4      4       SP                  pV^ ,          ^,          pV P                  \        V\        P                  4      4       V P                  \        VP                  \        P                  4      4       R#   + '       g   i     L¯; i)c                 ó   € W,           # r    r)   r  s   &&r&   r€  ÚUTestOptionalsExceptions.test_optional_scalar_type_exception_on_none.<locals>.arr_exprO  r‚  r(   c                 ó,   <€ V^ 8”  d   RpMTpS! W4      # r„  r)   r…  s   && €r&   r‡  ÚTTestOptionalsExceptions.test_optional_scalar_type_exception_on_none.<locals>.do_callS  r‰  r(   rL   Nzexpected float64, got None)Údisable_leak_checkr   rM   rá   ÚassertRaisesÚ	TypeErrorrb  ÚstrÚ	exceptionrŠ  r‹  r¹   r   rŒ  r�  rŽ  )r�   r‡  r}   Úraisesr#   r�  r€  s   &     @r&   Ú+test_optional_scalar_type_exception_on_noneÚCTestOptionalsExceptions.test_optional_scalar_type_exception_on_noneK  sÛ   ø€ à×ÑÔ!ä	ñ	ó 
ð	ô 
ô	"ó 
ð	"ô —	’	˜!“˜cÐ"ˆð ×Ñœy×)Ô)¨VÙ�TŠN÷ *ð 	�‰Ð2´C¸×8HÑ8HÓ4IÔJð ×ÑˆØ��d�1�gˆØ�‰œ
 3¬¯©Ó7Ô8Ø�‰œ
 3§8¡8¬U¯[©[Ó9Ö:÷ *×)ús   Á"DÄD 	c                ó  a€ V P                  4        \        R  4       o\        V3R l4       p\        P                  ! ^4      \        P                  ! RR4      3pV P	                  \
        4      ;_uu_ 4       pV! V!   RRR4       \        XP                  4      pV P                  RV4       V P                  RV4       SP                  pV^ ,          ^,          pV P                  \        V\        P                  4      4       V P                  \        VP                  \        P                  4      4       V P                  \        VP                  P                   \        P"                  4      4       R#   + '       g   i     EL; i)c                 ó   € W,           # r    r)   r  s   &&r&   r€  ÚTTestOptionalsExceptions.test_optional_array_type_exception_on_none.<locals>.arr_exprm  r‚  r(   c                 ó:   <€ V^ ,          ^ 8”  d   RpMTpS! W4      # r„  r)   r…  s   && €r&   r‡  ÚSTestOptionalsExceptions.test_optional_array_type_exception_on_none.<locals>.do_callq  r˜  r(   rL   r™  Nzexpected array(float64,zgot None)r¥  r   rM   rá   r¦  r§  r¨  r©  rb  rŠ  r‹  r¹   r   rŒ  r�  rš  ri   rŽ  )r�   r‡  r}   rª  Úexcstrr#   r�  r€  s   &      @r&   Ú*test_optional_array_type_exception_on_noneÚBTestOptionalsExceptions.test_optional_array_type_exception_on_nonei  s  ø€ à×ÑÔ!ä	ñ	ó 
ð	ô 
ô	"ó 
ð	"ô —	’	˜!“œbŸiši¨¨BÓ/Ð0ˆð ×Ñœy×)Ô)¨VÙ�TŠN÷ *ô �V×%Ñ%Ó&ˆØ�‰Ð/°Ô8Ø�‰�j &Ô)ð ×ÑˆØ��d�1�gˆØ�‰œ
 3¬¯©Ó7Ô8Ø�‰œ
 3§8¡8¬U¯[©[Ó9Ô:Ø�‰œ
 3§8¡8§>¡>´5·;±;Ó?Ö@÷ *×)Ð)ús   Á7E6Å6F	r)   N)r*   r+   r,   r-   r«  r³  r.   r/   rŠ   s   @r&   rŸ  rŸ  H  s   ø‡ € ò;÷<Að Ar(   rŸ  c                   óT   a € ] tR tRt o Rt]P                  ! R4      tR tR t	Rt
V tR# )ÚTestExternalTypesi‹  zETests RewriteArrayExprs with external (user defined) types,
see #5157z¬
        from numba.core import types

        class FooType(types.Type):
            def __init__(self):
                super(FooType, self).__init__(name='Foo')
        c                ó8  a€  ! R  R\         4      p\        S4       ! R R\        P                  4      4       p\	        SRR4       \        V4      V3R l4       p\        V\        P                  4      R 4       p\        P                  ! V4      V3R l4       pVS3# )c                   ó&   a € ] tR tRt o R tRtV tR# )Ú,TestExternalTypes.make_foo_type.<locals>.Fooi˜  c                ó   € Wn         R # r    ©r»   )r�   r»   s   &&r&   Ú__init__Ú5TestExternalTypes.make_foo_type.<locals>.Foo.__init__™  s   € Ø"–
r(   r»  N©r*   r+   r,   r-   r¼  r.   r/   rŠ   s   @r&   ÚFoor¹  ˜  s   ø‡ € ÷#ð #r(   r¿  c                   ó&   a € ] tR tRt o R tRtV tR# )Ú1TestExternalTypes.make_foo_type.<locals>.FooModeliœ  c                ól   € R \         P                  3.p\        P                  P	                  WW#4       R# )r»   N)r   Úintpr   ÚStructModelr¼  )r�   ÚdmmÚfe_typeÚmemberss   &&& r&   r¼  Ú:TestExternalTypes.make_foo_type.<locals>.FooModel.__init__ž  s)   € Ø#¤U§Z¡ZÐ0Ð1�Ü×"Ñ"×+Ñ+¨D°wÖHr(   r)   Nr¾  rŠ   s   @r&   ÚFooModelrÁ  œ  s   ø‡ € ÷Ið Ir(   rÉ  r»   c                 ó   <€ V3R  lpV# )c                 ó   <€ S! 4       # r    r)   )r»   ÚFooTypes   &€r&   ÚtyperÚ@TestExternalTypes.make_foo_type.<locals>.type_foo.<locals>.typer¦  s   ø€ Ù“yÐ r(   r)   )ÚcontextrÍ  rÌ  s   & €r&   Útype_fooÚ1TestExternalTypes.make_foo_type.<locals>.type_foo¤  s   ø€ õ!ð ˆLr(   c                 ó†   € VP                   pVw  p\        P                  ! V4      ! W4      pWVn        VP	                  4       # r    )r~   r   Úcreate_struct_proxyr»   Ú	_getvalue)rÏ  ÚbuilderÚsigr}   Útypr»   r3  s   &&&&   r&   Úimpl_fooÚ1TestExternalTypes.make_foo_type.<locals>.impl_foo«  s8   € à—/‘/ˆCØ‰GˆUÜ×-Ò-¨cÔ2°7ÓDˆCØŒIØ—=‘=“?Ð"r(   c                 ó   <€ S! 4       # r    r)   )rl  rc   rÌ  s   &&€r&   Ú
typeof_fooÚ3TestExternalTypes.make_foo_type.<locals>.typeof_foo³  s   ø€ á“9Ðr(   )Úobjectr   r   rÄ  r   r   r   r   rÃ  r   Úregister)r�   rÌ  r¿  rÉ  rÐ  rØ  rÛ  s   &f     r&   Úmake_foo_typeÚTestExternalTypes.make_foo_type—  s§   ø€ ô	#”&ô 	#ô 
˜Ó	 ô	I”v×)Ñ)ó 	Ió 
!ð	Iô
 	˜w¨°Ô9ä	�sÓ	ô	ó 
ð	ô 
�sœEŸJ™JÓ	'ñ	#ó 
(ð	#ô 
×	Ò	˜cÓ	"ô	ó 
#ð	ð �Gˆ|Ðr(   c           	     óJ  aa€ \        V P                  4      ;_uu_ 4       pV P                  VP                  4      w  oo\	        \
        P                  4      V3R  l4       p\	        \
        P                  4      V3R l4       p\	        \
        P                  4      V3R l4       p\        V3R l4       p\        V3R l4       p\        V3R l4       p\        P                  P                  V! ^ ^4      \        P                  ! ^ ^.4      4       \        P                  P                  V! ^^4      \        P                  ! ^^.4      4       \        P                  P                  V! ^4      \        P                  ! R.4      4       RRR4       R#   + '       g   i     R# ; i)c                 óz   <€ \        V S4      '       d(   \        V\        P                  4      '       d   R  pV# R# R# )c                 óT   € \         P                  ! V P                  V^ ,          .4      # )r   ©rM   r\  r»   ©ÚlhsÚrhss   &&r&   ÚimpÚKTestExternalTypes.test_external_type.<locals>.overload_foo_add.<locals>.impÂ  s   € Ü!Ÿxšx¨¯©°C¸µFÐ(;Ó<Ð<r(   N)r¹   r   rš  ©ræ  rç  rè  rÌ  s   && €r&   Úoverload_foo_addÚ>TestExternalTypes.test_external_type.<locals>.overload_foo_add¿  s5   ø€ ä˜c 7×+Ò+´
¸3ÄÇÁ×0LÒ0Lò=ð �Jñ	 1MÑ+r(   c                 ó^   <€ \        V S4      '       d   \        VS4      '       d   R  pV# R# R# )c                 óZ   € \         P                  ! V P                  VP                  .4      # r    rä  rå  s   &&r&   rè  ré  Ì  s   € Ü!Ÿxšx¨¯©°C·I±IÐ(>Ó?Ð?r(   N©r¹   rê  s   && €r&   rë  rì  É  s2   ø€ ä˜c 7×+Ò+´
¸3À×0HÒ0Hò@ð �Jñ	 1IÑ+r(   c                 ó6   <€ \        V S4      '       d   R  pV# R# )c                 óF   € \         P                  ! V P                  ) .4      # r    rä  )r5   s   &r&   rè  ÚKTestExternalTypes.test_external_type.<locals>.overload_foo_neg.<locals>.impÖ  s   € Ü!Ÿxšx¨!¯'©'¨¨
Ó3Ð3r(   Nrï  )r5   rè  rÌ  s   & €r&   Úoverload_foo_negÚ>TestExternalTypes.test_external_type.<locals>.overload_foo_negÓ  s!   ø€ ä˜a ×)Ò)ò4ð �Jñ	 *r(   c                 óL   <€ S! V 4      \         P                  ! V.4      ,           # r    )rM   r\  ©r5   r6   r¿  s   &&€r&   Úarr_expr_sum1Ú;TestExternalTypes.test_external_type.<locals>.arr_expr_sum1Û  s   ø€ á˜1“v¤§¢¨!¨£Õ-Ð-r(   c                 ó.   <€ S! V 4      S! V4      ,           # r    r)   rö  s   &&€r&   Úarr_expr_sum2Ú;TestExternalTypes.test_external_type.<locals>.arr_expr_sum2ß  s   ø€ á˜1“v¡ A£•Ð&r(   c                 ó   <€ S! V 4      ) # r    r)   )r5   r¿  s   &€r&   Úarr_expr_negÚ:TestExternalTypes.test_external_type.<locals>.arr_expr_negã  s   ø€ á˜A›�w�r(   Néüÿÿÿ)r   Úsource_linesrß  rÌ  r   Úoperatorr^   Únegr   rM   r�   rž   r\  )	r�   Útest_modulerë  ró  r÷  rú  rý  r¿  rÌ  s	   &      @@r&   Útest_external_typeÚ$TestExternalTypes.test_external_type¹  sG  ù€ Ü × 1Ñ 1×2Ô2°kØ×-Ñ-¨k×.AÑ.AÓB‰LˆC�ô ”h—l‘lÓ#ôó $ðô ”h—l‘lÓ#ôó $ðô ”h—l‘lÓ#ôó $ðô ô.ó ð.ô ô'ó ð'ô ôó ðô �J‰J×)Ñ)©-¸¸1Ó*=¼r¿xºxÈÈAÈÓ?OÔPÜ�J‰J×)Ñ)©-¸¸1Ó*=¼r¿xºxÈÈAÈÓ?OÔPÜ�J‰J×)Ñ)©,°q«/¼2¿8º8ÀRÀD»>ÔJ÷_ 3×2×2Ò2ús    E'FÆF"	r)   N)r*   r+   r,   r-   r�  ÚtextwrapÚdedentr   rß  r  r.   r/   rŠ   s   @r&   r¶  r¶  ‹  s1   ø‡ € ñð —?’?ð $ó €Lò ÷D0Kð 0Kr(   r¶  Ú__main__)?rD  Úior   r9  rM   r8  r   r   r   Ú
numba.corer   r   r	   r
   r   r   r   Únumba.core.compilerr   r   Únumba.core.registryr   Únumba.tests.supportr   r   r   r   r   Únumba.extendingr   r   r   r   r   r   r   r  r  ÚunittestÚdictr   r7   r:   rB   rH   rJ   rO   rS   rW   rY   r\   ra   rf   rt   rv   rŒ   r-  rr  r|  rŸ  r¶  r*   Úmainr)   r(   r&   Ú<module>r     sF  ðÛ 	Ý ã ç !Ý ß G× GÑ Gß /Ý *÷Qõ Q÷÷ ñ ó Û ã ôF�ô FòòòFò.ò.ñ �ƒ~€ò1ò'òòòòò	ôQ�Xô Qô6VG˜?¨Hô VGôri3˜¨ô i3ôX3�O X×%6Ñ%6ô 3ô"9A�O X×%6Ñ%6ô 9Aôx@A˜o¨x×/@Ñ/@ô @AôF^K˜¨×):Ñ):ô ^KðB ˆzÔØ‡M‚M†Oñ r(   