+
    ‰°³jA  ã                   ó0  € ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHtHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHt ]
! R^d^ 4      t]P$                  P'                  ]4      t]P$                  P-                  ]R4      t ! R	 R
]4      tR tR/ ]3R ltR tR tR# )é    N)Ú	ASTSourceÚmake_backend)Ú	GPUTarget)ÚGluonASTSource)Úcreate_function_from_signature)ÚirÚcudaÚ	FileCheckc                   ó>   a a€ ] tR t^t oV 3R ltV 3R ltRtVtV ;t# )Ú
MatchErrorc                ó2   <€ \         SV `  V4       W n        R # ©N)ÚsuperÚ__init__Ú
module_str)ÚselfÚmessager   Ú	__class__s   &&&€ÚR/home/luca/screen-checking/.venv/lib/python3.14/site-packages/triton/_filecheck.pyr   ÚMatchError.__init__   s   ø€ Ü‰Ñ˜Ô!Ø$Žó    c                ó>   <€ \         SV `  4        R V P                   2# )Ú
)r   Ú__str__r   )r   r   s   &€r   r   ÚMatchError.__str__   s!   ø€ Ü‘'‘/Ó#Ð$ B t§¡Ð&7Ð8Ð8r   )r   )	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   Ú__classdict__s   @@r   r   r      s   ù‡ € õ%÷9õ 9r   r   c           	      óæ  € \         P                  ! 4       ;_uu_ 4       p\        P                  P	                  VR 4      p\        VR4      ;_uu_ 4       pVP                  V4       RRR4       \        P                  P	                  VR4      p\        VR4      ;_uu_ 4       pVP                  V4       RRR4        \        P                  ! \        VRVR.\        P                  R7        RRR4       R#   + '       g   i     L™; i  + '       g   i     L^; i  \        P                   d,   pTP                  P                  R4      p\        T4      hRp?ii ; i  + '       g   i     R# ; i)ÚmoduleÚwNÚexpectedz--input-filez--dump-input-context=50)ÚstderrÚunicode_escape)ÚtempfileÚTemporaryDirectoryÚosÚpathÚjoinÚopenÚwriteÚ
subprocessÚcheck_outputÚfilecheck_pathÚSTDOUTÚCalledProcessErrorÚoutputÚdecodeÚ
ValueError)	Únamer   Úcheck_templateÚtempdirÚtemp_moduleÚtempÚtemp_expectedÚerrorÚdecodeds	   &&&      r   Úrun_filecheckrA   #   s  € Ü	×	$Ò	$×	&Ô	&¨'Ü—g‘g—l‘l 7¨HÓ5ˆÜ�+˜s×#Ô# tØ�J‰J�zÔ"÷ $ô Ÿ™Ÿ™ W¨jÓ9ˆÜ�- ×%Ô%¨Ø�J‰J�~Ô&÷ &ð	&Ü×#Ò#Ü °ÀÐMfÐgÜ!×(Ñ(ö*÷ 
'Ñ	&ç#×#ú÷ &×%ûô ×,Ñ,ô 	&Ø—l‘l×)Ñ)Ð*:Ó;ˆGÜ˜WÓ%Ð%ûð	&ú÷ 
'×	&Ð	&úsY   ž5EÁC6	Á%<EÂ!D		Â3EÂ</DÃ6DÄEÄ	DÄEÄEÄ1&EÅEÅEÅE0	c                 ó  € R V9  d   \        V4      pRVR &   \        V4      p\        V P                  V P                  V4      pV! V/ VB w  rgpV P                  WBWgV4      w  r‰r«V P                  4       '       d   \        M\        pV! W	W«4      p\        P                  ! 4       p\        P                  ! V4       VP                  V4       VP                  V4      pVP                  4       pVP                  W8VVV4      pV# )Úsanitize_overflowF)Údictr   r   Ú	signatureÚparamsÚ
_pack_argsÚis_gluonr   r   r   ÚcontextÚload_dialectsÚget_codegen_implementationÚget_module_mapÚmake_ir)Ú	kernel_fnÚargsÚkwargsÚtargetÚbackendÚbinderÚ
bound_argsÚspecializationÚoptionsrE   Ú
constexprsÚattrsÚ
source_clsÚsrcrI   Úcodegen_fnsÚ
module_mapr%   s   &&&&              r   Ú
run_parserr]   6   s÷   € Ø &Ô(Ü�f“ˆØ&+ˆÐ"Ñ#Ü˜6Ó"€GÜ+Ø×ÑØ×ÑØó€Fñ +1°$Ð*A¸&Ñ*AÑ'€J Ø,5×,@Ñ,@ÀÐR\ÐnuÓ,vÑ)€G˜
Ø#,×#5Ñ#5×#7Ò#7•¼Y€JÙ
�Y¨:Ó
=€Cä�jŠj‹l€GÜ×Ò�WÔØ×Ñ˜'Ô"à×4Ñ4°WÓ=€KØ×'Ñ'Ó)€JØ�[‰[˜¨+°zÀ7ÓK€FØ€Mr   c                 ó  € \        V \        P                  P                  4      '       g   Q h\        P
                  ! V P                  4      pVf   \        R4      h\        V 4      p\        RVP                  4       V4       R # )Nz=kernel function must have a docstring with FileCheck templateÚplaceholder)Ú
isinstanceÚtritonÚruntimeÚJITFunctionÚinspectÚ	getsourceÚfnr8   r]   rA   Ústr_nodebug)rN   r:   Úmlir_modules   &  r   Úrun_filecheck_testri   P   sd   € Ü�i¤§¡×!;Ñ!;×<Ò<Ð<Ð<Ü×&Ò& y§|¡|Ó4€NØÒÜÐXÓYÐYÜ˜YÓ'€Kä�- ×!8Ñ!8Ó!:¸NÖKr   c                 óF   a € \         P                  ! S 4      V 3R  l4       pV# )c                  ó   <€ \        S 4       R # r   )ri   )rf   s   €r   Útest_fnÚfilecheck_test.<locals>.test_fn\   s   ø€ ä˜2Ör   )Ú	functoolsÚwraps)rf   rl   s   f r   Úfilecheck_testrp   Z   s%   ø€ ä‡_‚_�RÓôó ðð €Nr   © )rn   r,   rd   r1   r*   ra   Útriton.compilerr   r   Útriton.backends.compilerr   Ú"triton.experimental.gluon._runtimer   Útriton.runtime.jitr   Útriton._C.libtritonr   Ústub_targetr-   ÚdirnameÚ__file__Ú
triton_dirr.   r3   r8   r   rA   r]   ri   rp   rq   r   r   Ú<module>r{      s†   ðÛ Û 	Û Û Û ã ß 3Ý .Ý =Ý =Ý "ñ ˜  RÓ(€à�W‰W�_‰_˜XÓ&€
Ø—‘—‘˜j¨+Ó6€ô9�ô 9ò&ð&  "¨"°[ô ò4Lôr   