+
    :if                        ^ RI HtHt ^ RIHtHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIt ! R R]! 4       4      t ! R	 R
]! 4       4      t ! R R]! 4       4      t ! R R]! 4       4      t ! R R]! 4       4      t ! R R]! 4       4      t ! R R]! 4       4      t ! R R]! 4       4      t ! R R]! 4       4      t ! R R]! 4       4      t ! R R]! 4       4      t ! R R]! 4       4      t ! R R ]! 4       4      t ! R! R"]! 4       4      t ! R# R$]! 4       4      t ! R% R&]! 4       4      t ! R' R(]! 4       4      t ! R) R*]! 4       4      t ! R+ R,]! 4       4      t  ! R- R.]! 4       4      t! ! R/ R0]! 4       4      t" ! R1 R2]! 4       4      t# ! R3 R4]PH                  4      t% ! R5 R6]PH                  4      t& ! R7 R8]PH                  4      t' ! R9 R:]PH                  4      t(])R;8X  d   ]PT                  ! 4        R# R# )<    )irbinding)types	datamodel)test_factory)DataModelManager)OpaqueModelNc                   .    ] tR t^
t]P
                  tRtR# )TestBool N)__name__
__module____qualname____firstlineno__r   booleanfe_type__static_attributes__r       X/var/www/html/photoedit/myenv/lib/python3.14/site-packages/numba/tests/test_datamodel.pyr   r   
       mmGr   r   c                   .    ] tR t^t]P
                  tRtR# )TestPyObjectr   N)r   r   r   r   r   pyobjectr   r   r   r   r   r   r      s    nnGr   r   c                   .    ] tR t^t]P
                  tRtR# )TestInt8r   N)r   r   r   r   r   int8r   r   r   r   r   r   r      s    jjGr   r   c                   .    ] tR t^t]P
                  tRtR# )	TestInt16r   N)r   r   r   r   r   int16r   r   r   r   r   r   r          kkGr   r   c                   .    ] tR t^t]P
                  tRtR# )	TestInt32r   N)r   r   r   r   r   int32r   r   r   r   r   r"   r"      r    r   r"   c                   .    ] tR t^t]P
                  tRtR# )	TestInt64r   N)r   r   r   r   r   int64r   r   r   r   r   r%   r%      r    r   r%   c                   .    ] tR t^"t]P
                  tRtR# )	TestUInt8r   N)r   r   r   r   r   uint8r   r   r   r   r   r(   r(   "   r    r   r(   c                   .    ] tR t^&t]P
                  tRtR# )
TestUInt16r   N)r   r   r   r   r   uint16r   r   r   r   r   r+   r+   &       llGr   r+   c                   .    ] tR t^*t]P
                  tRtR# )
TestUInt32r   N)r   r   r   r   r   uint32r   r   r   r   r   r/   r/   *   r-   r   r/   c                   .    ] tR t^.t]P
                  tRtR# )
TestUInt64r   N)r   r   r   r   r   uint64r   r   r   r   r   r2   r2   .   r-   r   r2   c                   .    ] tR t^2t]P
                  tRtR# )	TestFloatr   N)r   r   r   r   r   float32r   r   r   r   r   r5   r5   2   r   r   r5   c                   .    ] tR t^6t]P
                  tRtR# )
TestDoubler   N)r   r   r   r   r   float64r   r   r   r   r   r8   r8   6   r   r   r8   c                   .    ] tR t^:t]P
                  tRtR# )TestComplexr   N)r   r   r   r   r   	complex64r   r   r   r   r   r;   r;   :   s    ooGr   r;   c                   .    ] tR t^>t]P
                  tRtR# )TestDoubleComplexr   N)r   r   r   r   r   
complex128r   r   r   r   r   r>   r>   >   s    Gr   r>   c                   N    ] tR t^Bt]P
                  ! ]P                  4      tRtR# )TestPointerOfInt32r   N)	r   r   r   r   r   CPointerr#   r   r   r   r   r   rA   rA   B   s    nnU[[)Gr   rA   c                   P    ] tR t^Ft]P
                  ! ]P                  ^4      tRtR# )TestUniTupleOf2xInt32r   N	r   r   r   r   r   UniTupler#   r   r   r   r   r   rD   rD   F       nnU[[!,Gr   rD   c                   P    ] tR t^Jt]P
                  ! ]P                  ^ 4      tRtR# )TestUniTupleEmptyr   NrE   r   r   r   rI   rI   J   rG   r   rI   c                   f    ] tR t^Nt]P
                  ! ]P                  ]P                  .4      tRt	R# )TestTupleInt32Float32r   N)
r   r   r   r   r   Tupler#   r6   r   r   r   r   r   rK   rK   N   s    kk5;;67Gr   rK   c                   :    ] tR t^Rt]P
                  ! . 4      tRtR# )TestTupleEmptyr   N)r   r   r   r   r   rL   r   r   r   r   r   rN   rN   R   s    kk"oGr   rN   c                   R    ] tR t^Vt]P
                  ! ]P                  ^R4      tRtR# )Test1DArrayOfInt32Cr   N	r   r   r   r   r   Arrayr#   r   r   r   r   r   rP   rP   V       kk%++q#.Gr   rP   c                   R    ] tR t^Zt]P
                  ! ]P                  ^R4      tRtR# )Test2DArrayOfComplex128rQ   r   N)	r   r   r   r   r   rS   r?   r   r   r   r   r   rV   rV   Z   s    kk%**As3Gr   rV   c                   R    ] tR t^^t]P
                  ! ]P                  ^ R4      tRtR# )Test0DArrayOfInt32rQ   r   NrR   r   r   r   rX   rX   ^   rT   r   rX   c                   J   a  ] tR t^bt o R tR tR tR tR tR t	R t
RtV tR	# )
TestArgInfoc                |   \         P                  p\         P                  ! W!4      p\        P                  ! 4       p\        P
                  ! \        P                  ! 4       . 4      p\        P                  ! WERR7      p\        P                  ! 4       pVP                  VP                  4       4       V Uu. uF7  p\        P                  ! VP                  V4      P                  4       R4      NK9  	  p	pVP                  Wy4      p
VP                  Wz4      pV P!                  \#        V4      \#        V4      4       \%        V
 Uu. uF  qP&                  NK  	  up4      pV P!                  WP(                  4       V	 Uu. uF  qP&                  NK  	  ppV Uu. uF  qP&                  NK  	  ppV P!                  VV4       TP+                  T
\-        \#        V4      4       Uu. uF  pRNK  	  up4       VP/                  4        \0        P2                  ! \5        V4      4       R# u upi u upi u upi u upi u upi )zo
Test round-tripping types *fe_args* through the default data model's
argument conversion and unpacking logic.
test_arguments)nameNzarg%i)r   default_manager	ArgPackerr   ModuleFunctionTypeVoidTypeFunction	IRBuilderposition_at_endappend_basic_blockConstantlookupget_value_typeas_argumentsfrom_argumentsassertEquallentupletypeargument_typesassign_namesrangeret_voidllparse_assemblystr)selffe_argsdmmfimodulefntyfunctionbuildertargsvaluesasargsvvaltysaexpect_types	got_typesis   &&                r   _test_as_argumentsTestArgInfo._test_as_argumentsd   s   
 ''  .r{{}b1;;v2BC,,. ; ; => !" A CJJqM88:DA  	 " /""73Vc'l3/1/0!2!23(,-1-%+,VVVV	,y1 	%G2E F2EQ2E FG
#f+&+" 0 .,
 !Gs   6=H%H*>H/H4"H9
c                    \         P                  \         P                  ! \         P                  ^R4      \         P                  .pV P	                  V4       R#    rQ   N)r   r#   rS   r<   r   rw   rx   s   & r   test_int32_array_complex$TestArgInfo.test_int32_array_complex   s;    ;;;;u{{As3??$ 	(r   c                    \         P                  ! \         P                  ^R4      .^,          pV P                  V4       R# r   r   rS   r#   r   r   s   & r   test_two_arraysTestArgInfo.test_two_arrays   .    ;;u{{As34q8(r   c                    \         P                  ! \         P                  ^ R4      .^,          pV P                  V4       R# )r   rQ   Nr   r   s   & r   test_two_0d_arraysTestArgInfo.test_two_0d_arrays   r   r   c                   \         P                  ! \         P                  ^4      \         P                  ! \         P                  ^4      .pV P                  V4       \         P                  ! \         P                  ^R4      p\         P                  ! V^4      \         P                  ! V^4      .pV P                  V4       \         P                  ! \         P                  ! \         P                  ^4      ^4      .pV P                  V4       R# )   rQ   N)r   rF   r#   r   rS   )rw   rx   arrtys   &  r   test_tuplesTestArgInfo.test_tuples   s    >>%++q1>>%++q13(EKKC0>>%+>>%+-(>>%..a"@!DE(r   c                    \         P                  ! \         P                  ^ 4      \         P                  ! R4      \         P                  .pV P                  V4       R# )r   Nr   )r   rF   r   rL   r#   r   r   s   & r   test_empty_tuplesTestArgInfo.test_empty_tuples   s=    >>%++q1;;r?;;  	(r   c                    \         P                  \         P                  ! \         P                  ! R4      ^4      \         P                  .pV P                  V4       R# )r   Nr   )r   r#   rF   rL   r&   r   r   s   & r   test_nested_empty_tuples$TestArgInfo.test_nested_empty_tuples   s=    ;;>>%++b/15;;  	(r   r   N)r   r   r   r   r   r   r   r   r   r   r   r   __classdictcell____classdict__s   @r   rZ   rZ   b   s.     #'J)))))) )r   rZ   c                   >   a  ] tR t^t o R tR tR tR tR tRt	V t
R# )TestMemInfoc                0    \         P                  V n        R # N)r   r^   ry   )rw   s   &r   setUpTestMemInfo.setUp   s    ,,r   c                    \         P                  pV P                  V,          pV P                  VP	                  4       4       R # r   )r   r#   ry   assertFalsecontains_nrt_meminforw   tydms   &  r   test_numberTestMemInfo.test_number   s/    [[XXb\0023r   c                    \         P                  R ,          pV P                  V,          pV P                  VP	                  4       4       R# )NNNN)r   r#   ry   
assertTruer   r   s   &  r   
test_arrayTestMemInfo.test_array   s1    [[^XXb\//12r   c                    \         P                  ! \         P                  ^R7      pV P                  V,          pV P	                  VP                  4       4       R# )r   dtypecountN)r   rF   r#   ry   r   r   r   s   &  r   test_tuple_of_number TestMemInfo.test_tuple_of_number   s:    ^^%++Q7XXb\0023r   c                    \         P                  ! \         P                  R ,          ^R7      pV P                  V,          pV P	                  VP                  4       4       R# )r   r   N)r   rF   r#   ry   r   r   r   s   &  r   test_tuple_of_arrayTestMemInfo.test_tuple_of_array   s<    ^^%++a.:XXb\//12r   )ry   N)r   r   r   r   r   r   r   r   r   r   r   r   s   @r   r   r      s#     -4
3
4
3 3r   r   c                   &   a  ] tR t^t o R tRtV tR# )TestMiscc                   ^ RI p^ RIHp VR 4       pVP                  ^VP                  R7      P                  VP                  4      pVP                  V4      pV! WT4       VP                  P                  WQP                  R4      4       R# )r   N)njitc                 `    \        V P                  ^ ,          4       F  pW,          W&   K  	  R# )r   N)rr   shape)r   br   s   && r   copy%TestMisc.test_issue2921.<locals>.copy   s"    1771:&t 'r   )r   )FTTTT)numpynumbar   aranger)   viewbool_
zeros_liketestingassert_equalarray)rw   npr   r   r   r   s   &     r   test_issue2921TestMisc.test_issue2921   sr    		 
	 IIarxxI(--bhh7MM!Q



88,B#CDr   r   N)r   r   r   r   r   r   r   r   s   @r   r   r      s     E Er   r   c                   &   a  ] tR t^t o R tRtV tR# )TestDMMChainingc                P   \        4       p ! R  R\        4      p ! R R\        4      pVP                  \        P                  V4       VP                  \        P
                  V4       \        4       p ! R R\        4      pVP                  \        P                  V4       VP                  V4      pV P                  VP                  \        P                  4      V4       V P                  VP                  \        P                  4      V4       V P                  VP                  \        P                  4      V4       V P                  VP                  \        P                  4      V4       V P                  VP                  \        P                  4      V4       V P                  VP                  \        P                  4      V4       V P                  \        4      ;_uu_ 4        VP                  \        P                  4       RRR4       R#   + '       g   i     R# ; i)c                       ] tR t^tRtR# )/TestDMMChaining.test_basic.<locals>.int_handlerr   Nr   r   r   r   r   r   r   r   int_handlerr          r   r   c                       ] tR t^tRtR# )1TestDMMChaining.test_basic.<locals>.float_handlerr   Nr   r   r   r   float_handlerr      r   r   r   c                       ] tR t^tRtR# )3TestDMMChaining.test_basic.<locals>.new_int_handlerr   Nr   r   r   r   new_int_handlerr      r   r   r   N)r   r	   registerr   IntegerFloatchainassertIsInstancerh   intpassertNotIsInstancer6   assertRaisesKeyError)rw   ry   r   r   	inter_dmmr   chained_dmms   &      r   
test_basicTestDMMChaining.test_basic   sj    	+ 		K 	 	U]]K0U[[-0$&		k 	 	5==/:ooc* 	k00<oN  !3!3EJJ!?Mcjj4kBk00?Ocjj7Gi..uzz:OLx((U]]+ )(((s   * HH%	r   N)r   r   r   r   r   r   r   r   s   @r   r   r      s      ,  ,r   r   __main__)+llvmliter   r   rt   
numba.corer   r   numba.core.datamodel.testingr   numba.core.datamodel.managerr   numba.core.datamodel.modelsr	   unittestr   r   r   r   r"   r%   r(   r+   r/   r2   r5   r8   r;   r>   rA   rD   rI   rK   rN   rP   rV   rX   TestCaserZ   r   r   r   r   mainr   r   r   <module>r      s   & ' 5 9 3 |~ <> |~          ,.  * *-LN -- -8LN 8\^ / /4ln 4/ /M)(## M)`3(## 32Ex   E"!,h'' !,H zMMO r   