+
     þÎjUv  ã            0       óT  € R t ^ RIt^ RIHtHtHtHtHt ^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHtHtHt ]^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ 3/R l4       t ! R R	]]4      t ! R
 R]]4      t ! R R]]4      t]R8X  d   ]P.                  ! 4        R# R# )z0
Test bytecode fixes provided in interpreter.py
N)ÚjitÚnjitÚobjmodeÚtypeofÚ	literally)Úoverload)Útypes)ÚUnsupportedBytecodeError)ÚTestCaseÚMemoryLeakMixinÚskip_unless_py10_or_laterc/                 óŠ  € V V,           V,           V,           V,           V,           V,           V,           V,           V	,           V
,           V,           V,           V,           V,           V,           V,           V,           V,           V,           V,           V,           V,           V,           V,           V,           V,           V,           V,           V,           V,           V,           V ,           V!,           V",           V#,           V$,           V%,           V&,           V',           V(,           V),           V*,           V+,           V,,           V-,           V.,           # ©N© )/Úarg0Úarg1Úarg2Úarg3Úarg4Úarg5Úarg6Úarg7Úarg8Úarg9Úarg10Úarg11Úarg12Úarg13Úarg14Úarg15Úarg16Úarg17Úarg18Úarg19Úarg20Úarg21Úarg22Úarg23Úarg24Úarg25Úarg26Úarg27Úarg28Úarg29Úarg30Úarg31Úarg32Úarg33Úarg34Úarg35Úarg36Úarg37Úarg38Úarg39Úarg40Úarg41Úarg42Úarg43Úarg44Úarg45Úarg46s/   &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&ÚR/opt/data/home/.local/lib/python3.14/site-packages/numba/tests/test_interpreter.pyÚsum_jit_funcr@      só  € ðf 	Ø
õ	à
õ	ð õ	ð õ		ð
 õ	ð õ	ð õ	ð õ	ð õ		ð õ
	ð õ	ð õ	ð õ	ð õ	ð õ	ð  õ!	ð" õ#	ð$ õ%	ð& õ'	ð( õ)	ð* õ+	ð, õ-	ð. õ/	ð0 õ1	ð2 õ3	ð4 õ5	ð6 õ7	ð8 õ9	ð: õ;	ð< õ=	ð> õ?	ð@ õA 	ðB õC!	ðD õE"	ðF õG#	ðH õI$	ðJ õK%	ðL õM&	ðN õO'	ðP õQ(	ðR õS)	ðT õU*	ðV õW+	ðX õY,	ðZ õ[-	ð\ õ].	ð0ó    c                   ó  a € ] tR t^ut o Rt^t^tR t]R 4       t	]R 4       t
]R 4       t]R 4       t]R 4       t]R 4       t]R	 4       t]R
 4       t]R 4       t]R 4       t]R 4       t]R 4       t]R 4       tRtV tR# )ÚTestCallFunctionExPeepHoleaz  
gh #7812

Tests that check a peephole optimization for Function calls
in Python 3.10. The bytecode changes when
(n_args / 2) + n_kws > 15, which moves the arguments from
the stack into a tuple and dictionary.

This peephole optimization updates the IR to use the original format.
There are different paths when n_args > 30 and n_args <= 30 and when
n_kws > 15 and n_kws <= 15.
c                ó  € \        W,           4       Uu. uF  pRV 2NK
  	  pp. p\        W,           4       F.  pV^,          ^ 8X  d   RV R2pMRV 2pVP                  V4       K0  	  RP                  V4      pRV R2pVR,          p\        V4       F  pVRWS,           R	2,          pK  	  \        WV,           4       F  pVRWC,           R
WS,           R	2,          pK!  	  VR,          p/ p	\        VR\        /V	4       V	R,          # u upi )zW
Generates a function that calls sum_jit_func
with the desired number of args and kws.
Úargzpow(argz, 2)z, z	def impl(z):
z    return sum_jit_func(
z        z,
Ú=z    )
r@   Úimpl)ÚrangeÚappendÚjoinÚexecr@   )
ÚselfÚn_argsÚn_kwsÚiÚ
param_listÚ	args_listÚarg_valÚtotal_paramsÚ	func_textÚ
local_varss
   &&&       r?   Úgen_funcÚ#TestCallFunctionExPeepHole.gen_func…   s  € ô
 */¨v­~Ô)>Ó?Ñ)> A˜˜A˜3“iÑ)>ˆ
Ð?Øˆ	Ü�v•~Ö&ˆAð �1�u˜ŒzØ# A 3 dÐ+‘à ˜s˜)�Ø×Ñ˜WÖ%ñ 'ð —y‘y Ó,ˆØ ˜~¨TÐ2ˆ	ØÐ1Õ1ˆ	Ü�v–ˆAØ˜8 I¥L >°Ð5Õ5ŠIñ ä�v¨�~Ö.ˆAØ˜8 J¥M ?°!°IµL°>ÀÐEÕEŠIñ /à�YÕˆ	Øˆ
ÜˆY˜¬Ð6¸
ÔCØ˜&Õ!Ð!ùò) @s   ”D
c                óì   € \        V P                  4       Uu. uF  qNK  	  ppV P                  V P                  ^ 4      pTp\        4       ! V4      pV! V!  pV! V!  pV P	                  Wg4       R# u upi )zx
Tests calling a function when n_args > 30 and
n_kws = 0. This shouldn't use the peephole, but
it should still succeed.
N)rH   ÚTHRESHOLD_ARGSrV   r   ÚassertEqual©rL   rO   Ú
total_argsÚfÚpy_funcÚcfuncÚaÚbs   &       r?   Útest_all_argsÚ(TestCallFunctionExPeepHole.test_all_args    sr   € ô "' t×':Ñ':Ô!;Ó<Ñ!;˜A’aÑ!;ˆ
Ð<Ø�M‰M˜$×-Ñ-¨qÓ1ˆØˆÜ”�q“	ˆÙ�ZÑ ˆÙ�:ÑˆØ×Ñ˜Öùò =ó   ˜
A1c                óì   € \        V P                  4       Uu. uF  qNK  	  ppV P                  ^ V P                  4      pTp\        4       ! V4      pV! V!  pV! V!  pV P	                  Wg4       R# u upi )z:
Tests calling a function when n_kws > 15 and
n_args = 0.
N)rH   ÚTHRESHOLD_KWSrV   r   rZ   r[   s   &       r?   Útest_all_kwsÚ'TestCallFunctionExPeepHole.test_all_kws¯   sr   € ô "' t×'9Ñ'9Ô!:Ó;Ñ!:˜A’aÑ!:ˆ
Ð;Ø�M‰M˜!˜T×/Ñ/Ó0ˆØˆÜ”�q“	ˆÙ�ZÑ ˆÙ�:ÑˆØ×Ñ˜Öùò <rd   c                ó  € V P                   ^,
          pV P                  ^,
          p\        W,           4       Uu. uF  q3NK  	  ppV P                  W4      pTp\	        4       ! V4      pV! V!  pV! V!  p	V P                  W‰4       R# u upi )z[
Tests calling a function when (n_args / 2) + n_kws > 15,
but n_args <= 30 and n_kws <= 15
N©rY   rf   rH   rV   r   rZ   ©
rL   Ú	used_argsÚused_kwsrO   r\   r]   r^   r_   r`   ra   s
   &         r?   Útest_small_args_small_kwsÚ4TestCallFunctionExPeepHole.test_small_args_small_kws½   sˆ   € ð ×'Ñ'¨!Õ+ˆ	Ø×%Ñ%¨Õ)ˆÜ!&¨	Õ'?Ô!@ÓAÑ!@˜A’aÑ!@ˆ
ÐAØ�M‰M˜)Ó.ˆØˆÜ”�q“	ˆÙ�ZÑ ˆÙ�:ÑˆØ×Ñ˜Öùò Bs   º
Bc                ó  € V P                   ^,
          pV P                  p\        W,           4       Uu. uF  q3NK  	  ppV P                  W4      pTp\	        4       ! V4      pV! V!  pV! V!  p	V P                  W‰4       R# u upi )zZ
Tests calling a function when (n_args / 2) + n_kws > 15,
but n_args <= 30 and n_kws > 15
Nrj   rk   s
   &         r?   Útest_small_args_large_kwsÚ4TestCallFunctionExPeepHole.test_small_args_large_kwsÍ   sƒ   € ð ×'Ñ'¨!Õ+ˆ	Ø×%Ñ%ˆÜ!&¨	Õ'?Ô!@ÓAÑ!@˜A’aÑ!@ˆ
ÐAØ�M‰M˜)Ó.ˆØˆÜ”�q“	ˆÙ�ZÑ ˆÙ�:ÑˆØ×Ñ˜Öùò Bó   ³
Bc                ó  € V P                   pV P                  ^,
          p\        W,           4       Uu. uF  q3NK  	  ppV P                  W4      pTp\	        4       ! V4      pV! V!  pV! V!  p	V P                  W‰4       R# u upi )zZ
Tests calling a function when (n_args / 2) + n_kws > 15,
but n_args > 30 and n_kws <= 15
Nrj   rk   s
   &         r?   Útest_large_args_small_kwsÚ4TestCallFunctionExPeepHole.test_large_args_small_kwsÝ   sƒ   € ð ×'Ñ'ˆ	Ø×%Ñ%¨Õ)ˆÜ!&¨	Õ'?Ô!@ÓAÑ!@˜A’aÑ!@ˆ
ÐAØ�M‰M˜)Ó.ˆØˆÜ”�q“	ˆÙ�ZÑ ˆÙ�:ÑˆØ×Ñ˜Öùò Brs   c                óþ   € V P                   pV P                  p\        W,           4       Uu. uF  q3NK  	  ppV P                  W4      pTp\	        4       ! V4      pV! V!  pV! V!  p	V P                  W‰4       R# u upi )zY
Tests calling a function when (n_args / 2) + n_kws > 15,
but n_args > 30 and n_kws > 15
Nrj   rk   s
   &         r?   Útest_large_args_large_kwsÚ4TestCallFunctionExPeepHole.test_large_args_large_kwsí   s~   € ð ×'Ñ'ˆ	Ø×%Ñ%ˆÜ!&¨	Õ'?Ô!@ÓAÑ!@˜A’aÑ!@ˆ
ÐAØ�M‰M˜)Ó.ˆØˆÜ”�q“	ˆÙ�ZÑ ˆÙ�:ÑˆØ×Ñ˜Öùò Bs   ¬
A:c                óŽ   a€ R o\         V3R l4       p\        \        S! 4       4      4      pV! 4       pV P                  W#4       R# )z?
Tests calling an objectmode function with > 15 return values.
c                  ó   € R# )é    )r|   é   é   é   é   é   é   é   é   é	   é
   é   é   é   é   é   r   r   rA   r?   r^   ÚBTestCallFunctionExPeepHole.test_large_kws_objmode.<locals>.py_func  s   € ðð rA   c                 óÄ  <€ \        R/ RRbRRbRRbRRbRRbRRbRRbR	RbR
RbRRbRRbRRbRRbRRbRRbRRb ;_uu_ 4        S! 4       w  p ppppppppp	p
pppppRRR4       X X,           X,           X,           X,           X,           X,           X,           X,           X	,           X
,           X,           X,           X,           X,           X,           #   + '       g   i     L{; i)z–
Wrapper to call py_func from objmode. This tests
large kws with objmode. If the definition for the
call is not properly updated this test will fail.
r`   Úint64ra   ÚcÚdÚer]   ÚgÚhrO   ÚjÚkÚlÚmÚnÚoÚpNr   )r   )r`   ra   r�   r�   r‘   r]   r’   r“   rO   r”   r•   r–   r—   r˜   r™   rš   r^   s                   €r?   Úobjmode_funcÚGTestCallFunctionExPeepHole.test_large_kws_objmode.<locals>.objmode_func  sš  ø€ ô ò Ùðáðñ ðñ ð	ñ
 ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ  ÷!ò ñF “Iñ#ØØØØØØØØØØØØØØØØ÷EðJ Øõàõð õð õ	ð
 õð õð õð õð õ	ð õ
ð õð õð õð õð õð÷I÷ ús   ÁCÃC	N)r   ÚsumÚlistrZ   )rL   r›   r`   ra   r^   s   &   @r?   Útest_large_kws_objmodeÚ1TestCallFunctionExPeepHole.test_large_kws_objmodeý   sD   ø€ ò
	ô( 
ô;	ó 
ð;	ôz ”‘W“Y“Ó ˆÙ‹NˆØ×Ñ˜ÖrA   c                óô   € R pV P                  \        4      ;_uu_ 4       p\        4       ! V4      ! R4       RRR4       V P                  R\	        XP
                  4      4       R#   + '       g   i     L7; i)zM
Tests generating large args when one of the inputs
has inlined controlflow.
c                 ó¾   € \        . ^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^NV '       d   ^M^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N5R^/ # ©r}   r9   ©r@   ©Úflags   &r?   Úinline_funcÚRTestCallFunctionExPeepHole.test_large_args_inline_controlflow.<locals>.inline_func^  s�  € Üð &Øð&àð&ð ð&ð ð	&ð
 ð&ð ð&ð ð&ð ð&ð ð&ð ð&ð ð&ð ð&ð ð&ð ð&ð ð&ð  ð!&ð" ð#&ð$ ð%&ð& ð'&ð( ð)&ð* ð+&÷, ‘˜qð-&ð. ð/&ð0 ð1&ð2 ð3&ð4 ð5&ð6 ð7&ð8 ð9&ð: ð;&ð< ð=&ð> ð?&ð@ ðA&ðB ðC&ðD ðE&ðF ðG&ðH òI&ðJ ñK&ð &rA   FNú9You can resolve this issue by moving the control flow out©ÚassertRaisesr	   r   ÚassertInÚstrÚ	exception©rL   r§   Úraisess   &  r?   Ú"test_large_args_inline_controlflowÚ=TestCallFunctionExPeepHole.test_large_args_inline_controlflowX  sX   € ò'	ðR ×ÑÔ7×8Ô8¸FÜŒF�;Ô Ô&÷ 9à�‰ØGÜ�× Ñ Ó!ö	
÷ 9×8úó   ¡A'Á'A7	c                ór   € R pTp\        4       ! V4      pV! R4      pV! R4      pV P                  WE4       R# )ú|
Tests generating large args when one of the inputs
has the change suggested in the error message
for inlined control flow.
c                 óÂ   € V '       d   ^M^p\        . ^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^NVN^N^N^N^N^N^N^N^N^N^N^N^N^N^N5R^/ # r£   r¤   ©r¦   Úa_vals   & r?   r§   ÚVTestCallFunctionExPeepHole.test_large_args_noninlined_controlflow.<locals>.inline_func•  s’  € ß‘A 1ˆEÜð &Øð&àð&ð ð&ð ð	&ð
 ð&ð ð&ð ð&ð ð&ð ð&ð ð&ð ð&ð ð&ð ð&ð ð&ð ð&ð  ð!&ð" ð#&ð$ ð%&ð& ð'&ð( ð)&ð* ð+&ð, ð-&ð. ð/&ð0 ð1&ð2 ð3&ð4 ð5&ð6 ð7&ð8 ð9&ð: ð;&ð< ð=&ð> ð?&ð@ ðA&ðB ðC&ðD ðE&ðF ðG&ðH òI&ðJ ñK&ð &rA   FN©r   rZ   ©rL   r§   r^   r_   r`   ra   s   &     r?   Ú&test_large_args_noninlined_controlflowÚATestCallFunctionExPeepHole.test_large_args_noninlined_controlflowŽ  s;   € ò(	ðT ˆÜ”�{Ó#ˆÙ�E‹NˆÙ�%‹LˆØ×Ñ˜ÖrA   c                óô   € R pV P                  \        4      ;_uu_ 4       p\        4       ! V4      ! R4       RRR4       V P                  R\	        XP
                  4      4       R#   + '       g   i     L7; i)zÑ
Tests generating only large args when one of the inputs
has inlined controlflow. This requires a special check
inside peep_hole_call_function_ex_to_call_function_kw
because it usually only handles varkwargs.
c                 óº   € \        . ^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^NV '       d   ^M^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N5!  # ©r}   r¤   r¥   s   &r?   r§   ÚPTestCallFunctionExPeepHole.test_all_args_inline_controlflow.<locals>.inline_funcÍ  s�  € Üð %Øð%àð%ð ð%ð ð	%ð
 ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð  ð!%ð" ð#%ð$ ð%%ð& ð'%ð( ð)%ð* ð+%÷, ‘˜qð-%ð. ð/%ð0 ð1%ð2 ð3%ð4 ð5%ð6 ð7%ð8 ð9%ð: ð;%ð< ð=%ð> ð?%ð@ ðA%ðB ðC%ðD ðE%ðF ðG%ðH óI%ð %rA   FNr©   rª   r¯   s   &  r?   Ú test_all_args_inline_controlflowÚ;TestCallFunctionExPeepHole.test_all_args_inline_controlflowÅ  sX   € ò&	ðP ×ÑÔ7×8Ô8¸FÜŒF�;Ô Ô&÷ 9à�‰ØGÜ�× Ñ Ó!ö	
÷ 9×8úr³   c                ór   € R pTp\        4       ! V4      pV! R4      pV! R4      pV P                  WE4       R# )rµ   c                 ó¾   € V '       d   ^M^p\        . ^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^N^NVN^N^N^N^N^N^N^N^N^N^N^N^N^N^N5!  # rÀ   r¤   r·   s   & r?   r§   ÚTTestCallFunctionExPeepHole.test_all_args_noninlined_controlflow.<locals>.inline_func  s†  € ß‘A 1ˆEÜð %Øð%àð%ð ð%ð ð	%ð
 ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð ð%ð  ð!%ð" ð#%ð$ ð%%ð& ð'%ð( ð)%ð* ð+%ð, ð-%ð. ð/%ð0 ð1%ð2 ð3%ð4 ð5%ð6 ð7%ð8 ð9%ð: ð;%ð< ð=%ð> ð?%ð@ ðA%ðB ðC%ðD ðE%ðF ðG%ðH óI%ð %rA   FNrº   r»   s   &     r?   Ú$test_all_args_noninlined_controlflowÚ?TestCallFunctionExPeepHole.test_all_args_noninlined_controlflowü  s;   € ò'	ðR ˆÜ”�{Ó#ˆÙ�E‹NˆÙ�%‹LˆØ×Ñ˜ÖrA   c                óô   € R pV P                  \        4      ;_uu_ 4       p\        4       ! V4      ! R4       RRR4       V P                  R\	        XP
                  4      4       R#   + '       g   i     L7; i)zL
Tests generating large kws when one of the inputs
has inlined controlflow.
c                 óŒ   € \        R/ R ^bR^bR^bR^bR^bR^bR^bR^bR^bR	^bR
^bR^bR^bR^bR^bRV '       d   ^b # ^b # )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r¤   r¥   s   &r?   r§   ÚQTestCallFunctionExPeepHole.test_large_kws_inline_controlflow.<locals>.inline_func8  s¼   € Üò Ùðáðñ ðñ ð	ñ
 ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ð÷   ‘að!ð ñ  &'ð!ð rA   FNr©   rª   r¯   s   &  r?   Ú!test_large_kws_inline_controlflowÚ<TestCallFunctionExPeepHole.test_large_kws_inline_controlflow2  sW   € ò	ð( ×ÑÔ7×8Ô8¸FÜŒF�;Ô Ô&÷ 9à�‰ØGÜ�× Ñ Ó!ö	
÷ 9×8úr³   c                ór   € R pTp\        4       ! V4      pV! R4      pV! R4      pV P                  WE4       R# )z{
Tests generating large kws when one of the inputs
has the change suggested in the error message
for inlined control flow.
c                 óŒ   € V '       d   ^M^p\        R/ R^bR^bR^bR^bR^bR^bR^bR^bR	^bR
^bR^bR^bR^bR^bR^bRVb # )r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r¤   r·   s   & r?   r§   ÚUTestCallFunctionExPeepHole.test_large_kws_noninlined_controlflow.<locals>.inline_funcZ  s´   € ß‘A 1ˆEÜò Ùðáðñ ðñ ð	ñ
 ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ  ð!ð rA   FNrº   r»   s   &     r?   Ú%test_large_kws_noninlined_controlflowÚ@TestCallFunctionExPeepHole.test_large_kws_noninlined_controlflowS  s:   € ò	ð* ˆÜ”�{Ó#ˆÙ�E‹NˆÙ�%‹LˆØ×Ñ˜ÖrA   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__rY   rf   rV   r   rb   rg   rn   rq   ru   rx   rŸ   r±   r¼   rÂ   rÇ   rÌ   rÑ   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r?   rC   rC   u   s'  ø‡ € ñð €NØ€Mò"ð6 ñó ðð ñó ðð ñó ðð ñó ðð ñó ðð ñó ðð ñXó ðXðt ñ3
ó ð3
ðj ñ4ó ð4ðl ñ4
ó ð4
ðl ñ3ó ð3ðj ñ
ó ð
ð@ ñó örA   rC   c                   ó¤   a € ] tR tRt o Rt]R 4       t]R 4       t]R 4       t]R 4       t	]R 4       t
]R 4       t]R	 4       t]R
 4       tRtV tR# )ÚTestLargeConstDictiv  aÄ  
gh #7894

Tests that check a peephole optimization for constant
dictionaries in Python 3.10. The bytecode changes when
number of elements > 15, which splits the constant dictionary
into multiple dictionaries that are joined by a DICT_UPDATE
bytecode instruction.

This optimization modifies the IR to rejoin dictionaries
and remove the DICT_UPDATE generated code. This then allows
code that depends on literal dictionaries or literal keys
to succeed.
c                ón   € R pTp\        4       ! V4      pV! 4       pV! 4       pV P                  WE4       R# )úZ
Tests that a function with a large heterogeneous constant
dictionary remains a constant.
c                  óŠ   € / R ^bR^bR^bR^bR^bR^bR^bR^bR^bR	^bR
^bR^bR^bR^bR^bR^bR^bR^RR/Cp V R,          # )ÚAÚBÚCÚDÚEÚFÚGÚHÚIÚJÚKÚLÚMÚNÚOÚPÚQÚRÚSr`   r   ©r�   s    r?   Ú
const_funcÚJTestLargeConstDict.test_large_heterogeneous_const_dict.<locals>.const_funcŒ  sí   € ðØ�Qðà�Qðð �Qðð �Qð	ð
 �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð  �Qð!ð" �Qð#ð$ �QØ�Sñ'ˆAð* �S•6ˆMrA   Nrº   )rL   rõ   r^   r_   r`   ra   s   &     r?   Ú#test_large_heterogeneous_const_dictÚ6TestLargeConstDict.test_large_heterogeneous_const_dict†  s6   € ò	ð6 ˆÜ”�zÓ"ˆÙ‹IˆÙ‹GˆØ×Ñ˜ÖrA   c                ód   a a€ R o\        S4      V 3R l4       p\        V3R l4       pV! 4        R# )zfCheck the literal values for a LiteralStrKeyDict requiring
optimizations because it is heterogeneous.
c                 ó   € R # r   r   rô   s   &r?   ÚbarÚYTestLargeConstDict.test_large_heterogeneous_LiteralStrKeyDict_literal_values.<locals>.bar³  ó   € ÙrA   c                 óÐ  <€ / R ^bR^bR^bR^bR^bR^bR^bR^bR^bR	^bR
^bR^bR^bR^bR^bR^bR^bR^RR/CpR pVP                  4        UUu/ uF"  w  r4\        P                  ! V4      V! V4      bK$  	  pppSP                  \	        V \        P
                  4      4       SP                  V P                  V4       SP                  \        V R4      R4       R # u uppi )rá   râ   rã   rä   rå   ræ   rç   rè   ré   rê   rë   rì   rí   rî   rï   rð   rñ   rò   ró   r`   c                 ó|   € \         P                  ! V 4      '       d   \         P                  ! V 4      # \        V 4      # r   )r   Úmaybe_literalÚliteralr   )Úzs   &r?   Úspecific_tyÚqTestLargeConstDict.test_large_heterogeneous_LiteralStrKeyDict_literal_values.<locals>.ol_bar.<locals>.specific_tyÎ  s*   € Ü+0×+>Ò+>¸q×+AÒ+A”u—}’} QÓ'ÐPÄvÈaÃyÐPrA   Úinitial_valueFc                 ó   € V # r   r   rô   s   &r?   Ú<lambda>ÚnTestLargeConstDict.test_large_heterogeneous_LiteralStrKeyDict_literal_values.<locals>.ol_bar.<locals>.<lambda>Ô  ó   € ™QrA   )	Úitemsr   r  Ú
assertTrueÚ
isinstanceÚLiteralStrKeyDictrZ   Úliteral_valueÚhasattr)r�   r`   r  ÚxÚyÚexpectedrL   s   &     €r?   Úol_barÚ\TestLargeConstDict.test_large_heterogeneous_LiteralStrKeyDict_literal_values.<locals>.ol_bar¶  sg  ø€ ðØ�Qðà�Qðð �Qðð �Qð	ð
 �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð  �Qð!ð" �Qð#ð$ �QØ�Sñ'ˆAò,QàEFÇWÁWÄYÔOÁY¹T¸QœŸš aÓ(©+°a«.Ò8ÁYˆHÑOØ�O‰OœJ q¬%×*AÑ*AÓBÔCØ×Ñ˜QŸ_™_¨hÔ7Ø×ÑœW Q¨Ó8¸%Ô@ÙÐùó	 Ps   Á(C"c                  óŽ   <€ / R ^bR^bR^bR^bR^bR^bR^bR^bR^bR	^bR
^bR^bR^bR^bR^bR^bR^bR^RR/Cp S! V 4       R# )rá   râ   rã   rä   rå   ræ   rç   rè   ré   rê   rë   rì   rí   rî   rï   rð   rñ   rò   ró   r`   Nr   ©r�   rû   s    €r?   ÚfooÚYTestLargeConstDict.test_large_heterogeneous_LiteralStrKeyDict_literal_values.<locals>.fooÖ  sì   ø€ ð
Ø�Qðà�Qðð �Qðð �Qð	ð
 �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð  �Qð!ð" �Qð#ð$ �QØ�Sñ'ˆAñ* �ŽFrA   N©r   r   ©rL   r  r  rû   s   f  @r?   Ú9test_large_heterogeneous_LiteralStrKeyDict_literal_valuesÚLTestLargeConstDict.test_large_heterogeneous_LiteralStrKeyDict_literal_values­  s;   ù€ ò	ô 
�#‹ô	ó 
ð	ô> 
ô	ó 
ð	ñ6 	ŽrA   c                óv   € R pTp\        4       ! V4      pRpV! V4      pV! V4      pV P                  WV4       R# )rß   c                 óŠ   € / R ^bR^bR^bR^bR^bR^bR^bR^bR^bR	^bR
^bR^bR^bR^bR^bR^bR^bR^RV /CpVR,          # ©rá   râ   rã   rä   rå   ræ   rç   rè   ré   rê   rë   rì   rí   rî   rï   rð   rñ   rò   ró   r   )r`   r�   s   & r?   Úconst_keys_funcÚTTestLargeConstDict.test_large_heterogeneous_const_keys_dict.<locals>.const_keys_funcú  sí   € ðØ�Qðà�Qðð �Qðð �Qð	ð
 �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð  �Qð!ð" �Qð#ð$ �QØ�Qñ'ˆAð* �S•6ˆMrA   Úa_stringNrº   )rL   r   r^   r_   Úvaluer`   ra   s   &      r?   Ú(test_large_heterogeneous_const_keys_dictÚ;TestLargeConstDict.test_large_heterogeneous_const_keys_dictô  s?   € ò	ð6 "ˆÜ”�Ó'ˆàˆÙ�E‹NˆÙ�%‹LˆØ×Ñ˜ÖrA   c                ód   a a€ R o\        S4      V 3R l4       p\        V3R l4       pV! 4        R# )zuChecks that the optimization for large dictionaries
do not incorrectly update initial values due to other
mutations.
c                 ó   € R # r   r   rô   s   &r?   rû   ÚDTestLargeConstDict.test_large_dict_mutation_not_carried.<locals>.bar#  rý   rA   c                 ó,  <€ / R ^bR^bR^bR^bR^bR^bR^bR^bR^bR	^bR
^bR^bR^bR^bR^bR^bR^bR^R^/CpV P                   f   R # SP                  \        V \        P                  4      4       SP                  V P                   V4       R # )rá   râ   rã   rä   rå   ræ   rç   rè   ré   rê   rë   rì   rí   rî   rï   rð   rñ   rò   ró   c                 ó   € \        V 4      # r   ©r   rô   s   &r?   r  ÚYTestLargeConstDict.test_large_dict_mutation_not_carried.<locals>.ol_bar.<locals>.<lambda>>  ó   € ¤¨1¤rA   c                 ó   € V # r   r   rô   s   &r?   r  r,  A  r	  rA   ©r  r  r  r   ÚDictTyperZ   ©r�   r`   rL   s   & €r?   r  ÚGTestLargeConstDict.test_large_dict_mutation_not_carried.<locals>.ol_bar&  s&  ø€ ðØ�Qðà�Qðð �Qðð �Qð	ð
 �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð  �Qð!ð" �Qð#ð$ �QØ�Qñ'ˆAð* �‰Ò&Ù-Ð-Ø�O‰OœJ q¬%¯.©.Ó9Ô:Ø×Ñ˜QŸ_™_¨aÔ0ÙÐrA   c                  ó˜   <€ / R ^bR^bR^bR^bR^bR^bR^bR^bR^bR	^bR
^bR^bR^bR^bR^bR^bR^bR^R^/Cp ^V R&   S! V 4       R# )rá   râ   rã   rä   rå   ræ   rç   rè   ré   rê   rë   rì   rí   rî   rï   rð   rñ   rò   ró   ÚXNr   r  s    €r?   r  ÚDTestLargeConstDict.test_large_dict_mutation_not_carried.<locals>.fooC  sõ   ø€ ðØ�Qðà�Qðð �Qðð �Qð	ð
 �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð  �Qð!ð" �Qð#ð$ �QØ�Qñ'ˆAð* ˆAˆc‰FÙ�ŽFrA   Nr  r  s   f  @r?   Ú$test_large_dict_mutation_not_carriedÚ7TestLargeConstDict.test_large_dict_mutation_not_carried  s;   ù€ ò	ô 
�#‹ô	ó 
ð	ô8 
ô	ó 
ð	ñ6 	ŽrA   c                óð   a aa	a
a€ R o	R oRoRo
\        S	RR7      VV 3R l4       p\        SRR7      V
V 3R l4       pVV	3R lpTp\        4       ! V4      pV! 4       pV! 4       pS P                  Wg4       R	# )
zN
Tests an example using a regular update is
not modified by the optimization.
c                 ó   € R # r   r   ©r  s   &r?   Úcheck_beforeÚDTestLargeConstDict.test_usercode_update_use_d2.<locals>.check_beforeh  ó   € ÙrA   c                 ó   € R # r   r   r:  s   &r?   Úcheck_afterÚCTestLargeConstDict.test_usercode_update_use_d2.<locals>.check_afterk  r=  rA   FT)Úprefer_literalc                 ó¸   <€ S'       gP   R oR^R^R^/pSP                  \        V \        P                  4      4       SP	                  V P
                  V4       R # )Tr`   ra   r�   c                 ó   € R # r   r   rô   s   &r?   r  ÚYTestLargeConstDict.test_usercode_update_use_d2.<locals>.ol_check_before.<locals>.<lambda>�  ó   € ™TrA   )r  r  r   r0  rZ   r  )r�   r`   Úchecked_beforerL   s   & €€r?   Úol_check_beforeÚGTestLargeConstDict.test_usercode_update_use_d2.<locals>.ol_check_beforeq  sV   ø€ ÷ "Ø!%�à˜Ø˜Ø˜ð�ð
 —‘¤
¨1¬e¯n©nÓ =Ô>Ø× Ñ  §¡°!Ô4á!Ð!rA   c                 óª   <€ S'       gI   R oSP                  \        V \        P                  4      4       SP                  V P                  RJ 4       R # )TNc                 ó   € R # r   r   rô   s   &r?   r  ÚXTestLargeConstDict.test_usercode_update_use_d2.<locals>.ol_check_after.<locals>.<lambda>Ž  rE  rA   )r  r  r   r0  r  )r�   Úchecked_afterrL   s   &€€r?   Úol_check_afterÚFTestLargeConstDict.test_usercode_update_use_d2.<locals>.ol_check_afterƒ  s?   ø€ ÷ !Ø $�Ø—‘¤
¨1¬e¯n©nÓ =Ô>Ø—‘ §¡°4Ð 7Ô8á!Ð!rA   c                 óŠ   <€ R^R^R^/p R^R^/pS! V 4       V P                  V4       S! V 4       \        V 4      ^8”  d   V# V # )zh
Dictionary update between two constant
dictionaries. This verifies d2 doesn't
get incorrectly removed.
r`   ra   r�   r�   r‘   )ÚupdateÚlen)Úd1Úd2r?  r;  s     €€r?   Úconst_dict_funcÚGTestLargeConstDict.test_usercode_update_use_d2.<locals>.const_dict_func�  s_   ø€ ð �QØ�QØ�QðˆBð �QØ�QðˆBñ ˜ÔØ�I‰I�bŒMÙ˜ŒOä�2‹w˜Œ{Ø�	ØˆIrA   N)r   r   rZ   )rL   rG  rM  rT  r^   r_   r`   ra   r?  r;  rL  rF  s   f       @@@@r?   Útest_usercode_update_use_d2Ú.TestLargeConstDict.test_usercode_update_use_d2a  s�   ü€ ò	ò	ð ˆØˆä	�,¨tÔ	4õ	"ó 
5ð	"ô" 
�+¨dÔ	3õ
	"ó 
4ð
	"ö	ð. "ˆÜ”�Ó'ˆÙ‹IˆÙ‹GˆØ×Ñ˜ÖrA   c                óö   € R pV P                  \        4      ;_uu_ 4       p\        4       ! V4      ! RR4       RRR4       V P                  R\	        XP
                  4      4       R#   + '       g   i     L7; i)z¡
Tests generating a large dictionary when one of
the inputs requires inline control flow
has the change suggested in the error message
for inlined control flow.
c                 óž   € / R ^bR^bR^bR^bR^bR^bR^bRV'       d   ^M^bR^bR	^bR
^bR^bR^bR^bR^bR^bR^bR^RV /CpVR,          # r  r   )r`   r¦   r�   s   && r?   r§   ÚPTestLargeConstDict.test_large_const_dict_inline_controlflow.<locals>.inline_funcµ  sñ   € ðØ�Qðà�Qðð �Qðð �Qð	ð
 �Qðð �Qðð �Qðð Ÿ$‘Q Aðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð  �Qð!ð" �Qð#ð$ �QØ�Qñ'ˆAð* �S•6ˆMrA   r"  FNr©   rª   r¯   s   &  r?   Ú(test_large_const_dict_inline_controlflowÚ;TestLargeConstDict.test_large_const_dict_inline_controlflow­  sY   € ò	ð6 ×ÑÔ7×8Ô8¸FÜŒF�;Ô 
¨EÔ2÷ 9à�‰ØGÜ�× Ñ Ó!ö	
÷ 9×8ús   ¡A(Á(A8	c                óz   € R pTp\        4       ! V4      pRpV! VR4      pV! VR4      pV P                  WV4       R# )z…
Tests generating large constant dict when one of the
inputs has the change suggested in the error message
for inlined control flow.
c                 ó¢   € V'       d   ^M^p/ R^bR^bR^bR^bR^bR^bR^bRVbR	^bR
^bR^bR^bR^bR^bR^bR^bR^bR^RV /CpVR,          # )r}   rá   râ   rã   rä   rå   ræ   rç   rè   ré   rê   rë   rì   rí   rî   rï   rð   rñ   rò   ró   r   )r`   r¦   Úvalr�   s   &&  r?   Únon_inline_funcÚWTestLargeConstDict.test_large_const_dict_noninline_controlflow.<locals>.non_inline_funcÞ  sø   € ÷ ‘! ˆCðØ�Qðà�Qðð �Qðð �Qð	ð
 �Qðð �Qðð �Qðð �Sðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð �Qðð  �Qð!ð" �Qð#ð$ �QØ�Qñ'ˆAð* �S•6ˆMrA   r"  FNrº   )rL   r`  r^   r_   r#  r`   ra   s   &      r?   Ú+test_large_const_dict_noninline_controlflowÚ>TestLargeConstDict.test_large_const_dict_noninline_controlflow×  sE   € ò	ð8 "ˆÜ”�Ó'ˆØˆÙ�E˜5Ó!ˆÙ�%˜ÓˆØ×Ñ˜ÖrA   c                ód   a a€ R o\        S4      V 3R l4       p\        V3R l4       pV! 4        R# )zŽ
Tests that the correct literal values are generated
for a dictionary that produces two DICT_UPDATE
bytecode entries for the same dictionary.
c                 ó   € R # r   r   rô   s   &r?   rû   Ú>TestLargeConstDict.test_fuse_twice_literal_values.<locals>.bar  rý   rA   c                 ó’  <€ / R ^bR^bR^bR^bR^bR^bR^bR^bR^	bR	^
bR
^bR^bR^bR^bR^bR^bR^b/ R^bR^bR^bR^bR^bR^bR^bR^bR^bR^bR^bR^bR^bR^bR^ bR ^!bR!^"bCR"^#/CpV P                   f   R# # SP                  \        V \        P                  4      4       SP                  V P                   V4       R$ # )%Úa1Úa2Úa3Úa4Úa5Úa6Úa7Úa8Úa9Úa10Úa11Úa12Úa13Úa14Úa15Úa16Úa17Úa18Úa19Úa20Úa21Úa22Úa23Úa24Úa25Úa26Úa27Úa28Úa29Úa30Úa31Úa32Úa33Úa34Úa35c                 ó   € \        V 4      # r   r+  rô   s   &r?   r  ÚSTestLargeConstDict.test_fuse_twice_literal_values.<locals>.ol_bar.<locals>.<lambda>4  r-  rA   c                 ó   € V # r   r   rô   s   &r?   r  rŒ  7  r	  rA   r/  r1  s   & €r?   r  ÚATestLargeConstDict.test_fuse_twice_literal_values.<locals>.ol_bar  sö  ø€ ð%Ø�qð%à�qð%ð �qð%ð �qð	%ð
 �qð%ð �qð%ð �qð%ð �qð%ð �qð%ð ˜ð%ð ˜ð%ð ˜ð%ð ˜ð%ð ˜ð%ð ˜ð%ð  ˜ð!%ð" ˜ñ#%ð$ ˜ð%%ð& ˜ð'%ð( ˜ð)%ð* ˜ð+%ð, ˜ð-%ð. ˜ð/%ð0 ˜ð1%ð2 ˜ð3%ð4 ˜ð5%ð6 ˜ð7%ð8 ˜ð9%ð: ˜ð;%ð< ˜ð=%ð> ˜ð?%ð@ ˜ðA%ðB ˜ðC%ðD ˜ñE%ðH ˜ñI%ˆAðL �‰Ò&Ù-Ð-Ø�O‰OœJ q¬%¯.©.Ó9Ô:Ø×Ñ˜QŸ_™_¨aÔ0ÙÐrA   c                  óô   <€ / R ^bR^bR^bR^bR^bR^bR^bR^bR^	bR	^
bR
^bR^bR^bR^bR^bR^bR^b/ R^bR^bR^bR^bR^bR^bR^bR^bR^bR^bR^bR^bR^bR^bR^ bR ^!bR!^"bCR"^#/Cp S! V 4       R## )$rh  ri  rj  rk  rl  rm  rn  ro  rp  rq  rr  rs  rt  ru  rv  rw  rx  ry  rz  r{  r|  r}  r~  r  r€  r�  r‚  rƒ  r„  r…  r†  r‡  rˆ  r‰  rŠ  Nr   r  s    €r?   r  Ú>TestLargeConstDict.test_fuse_twice_literal_values.<locals>.foo9  s¼  ø€ ð%Ø�qð%à�qð%ð �qð%ð �qð	%ð
 �qð%ð �qð%ð �qð%ð �qð%ð �qð%ð ˜ð%ð ˜ð%ð ˜ð%ð ˜ð%ð ˜ð%ð ˜ð%ð  ˜ð!%ð" ˜ñ#%ð$ ˜ð%%ð& ˜ð'%ð( ˜ð)%ð* ˜ð+%ð, ˜ð-%ð. ˜ð/%ð0 ˜ð1%ð2 ˜ð3%ð4 ˜ð5%ð6 ˜ð7%ð8 ˜ð9%ð: ˜ð;%ð< ˜ð=%ð> ˜ð?%ð@ ˜ðA%ðB ˜ðC%ðD ˜ñE%ðH ˜ñI%ˆAñL �ŽFrA   Nr  r  s   f  @r?   Útest_fuse_twice_literal_valuesÚ1TestLargeConstDict.test_fuse_twice_literal_values  s=   ù€ ò	ô 
�#‹ô+	ó 
ð+	ôZ 
ô)	ó 
ð)	ñV 	ŽrA   r   N)rÓ   rÔ   rÕ   rÖ   r×   r   r÷   r  r$  r6  rV  r[  rb  r‘  rØ   rÙ   rÚ   s   @r?   rÝ   rÝ   v  s¹   ø‡ € ñð ñ$ó ð$ðL ñDó ðDðL ñ&ó ð&ðP ñAó ðAðF ñIó ðIðV ñ'
ó ð'
ðR ñ'ó ð'ðR ñcó öcrA   rÝ   c                   ó*   a € ] tR tRt o RtR tRtV tR# )Ú'TestListExtendInStarArgNonTupleIterableih  aF  Test `fn(pos_arg0, pos_arg1, *args)` where args is a non-tuple iterable.

Python 3.9+ will generate LIST_EXTEND bytecode to combine the positional
arguments with the `*args`.

See #8059

NOTE: At the moment, there are no meaningful tests for NoPython because the
lack of support for `tuple(iterable)` for most iterable types.
c                ó°   a€ R  o\        RR7      V3R l4       pV! R4      pVP                  R4      pV P                  VR4       V P                  W#4       R# )c                  ó   € V # r   r   r:  s   *r?   ÚconsumerÚSTestListExtendInStarArgNonTupleIterable.test_list_extend_forceobj.<locals>.consumert  s   € ØˆHrA   T)Úforceobjc                 ó   <€ S! ^^.V O5!  # rÀ   r   )r  r—  s   &€r?   r  ÚNTestListExtendInStarArgNonTupleIterable.test_list_extend_forceobj.<locals>.foow  s   ø€ á˜A˜qÐ% 1Ó%Ð%rA   ÚijoN)r}   r~   rO   r”   r™   )r   r^   rZ   )rL   r  ÚgotÚexpectr—  s   &   @r?   Útest_list_extend_forceobjÚATestListExtendInStarArgNonTupleIterable.test_list_extend_forceobjs  sY   ø€ ò	ô 
�dÔ	ô	&ó 
ð	&ñ �%‹jˆØ—‘˜UÓ#ˆØ×Ñ˜Ð3Ô4Ø×Ñ˜Ö%rA   r   N)rÓ   rÔ   rÕ   rÖ   r×   rŸ  rØ   rÙ   rÚ   s   @r?   r”  r”  h  s   ø‡ € ñ	÷&ð &rA   r”  Ú__main__)r×   ÚunittestÚnumbar   r   r   r   r   Únumba.extendingr   Ú
numba.corer   Únumba.core.errorsr	   Únumba.tests.supportr
   r   r   r@   rC   rÝ   r”  rÓ   Úmainr   rA   r?   Ú<module>r©     s  ðñó ß 7Õ 7Ý $Ý Ý 6÷ñ ð à	
Ø	
Ø	
Ø	
Ø	
Ø	
Ø	
Ø	
Ø	
Ø	
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
ó_aó ðaôH~ °(ô ~ôBo˜ ?ô oôd&¨o¸xô &ð2 ˆzÔØ‡M‚M†Oñ rA   