+
    þÎjk3  ã                   ój  € ^ RI t ^ RIt^ RIt^ RIHt ^ RIHtHt ^ RI	H
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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4      t&]! R 4      t']! R!4      t(]! R"4      t)]! R#4      t*]! R$4      t+]! R%4      t, ! R& R'4      t- ! R( R)4      t. ! R* R+]/4      t0 ! R, R-]/4      t1R. t2] Pf                  R/,          R:8¼  d   ]2M]Ph                  t5]0! 4       t6R0 t7R1 t8 ! R2 R3]/4      t9 ! R4 R5]/4      t:R6 t;R7 t< ! R8 R9]/4      t=R# );é    N)Ú_decode_stringÚ_is_shutting_down)Úget_library_namec                 óf   € \        V \        P                  3/ 4      p\        P                  ! V4      # ©N)ÚtypeÚctypesÚ	StructureÚPOINTER)ÚnameÚnewclss   & ÚJ/opt/data/home/.local/lib/python3.14/site-packages/llvmlite/binding/ffi.pyÚ_make_opaque_refr   
   s(   € Ü�$œ×)Ñ)Ð+¨RÓ0€FÜ�>Š>˜&Ó!Ð!ó    ÚLLVMContextÚ
LLVMModuleÚ	LLVMValueÚLLVMTypeÚLLVMExecutionEngineÚLLVMPassManagerBuilderÚLLVMPassManagerÚLLVMTargetDataÚLLVMTargetLibraryInfoÚ
LLVMTargetÚLLVMTargetMachineÚLLVMMemoryBufferÚLLVMAttributeListIteratorÚLLVMElementIteratorÚLLVMAttributeSetIteratorÚLLVMGlobalsIteratorÚLLVMFunctionsIteratorÚLLVMBlocksIteratorÚLLVMArgumentsIteratorÚLLVMInstructionsIteratorÚLLVMOperandsIteratorÚLLVMIncomingBlocksIteratorÚLLVMTypesIteratorÚLLVMObjectCacheÚLLVMObjectFileÚLLVMSectionIteratorÚLLVMOrcLLJITRefÚLLVMOrcDylibTrackerRefÚLLVMTimePassesHandlerÚLLVMPipeLineTuningOptionsÚLLVMModulePassManagerÚLLVMFunctionPassManagerÚLLVMPassBuilderc                   óB   a € ] tR t^2t o RtR tR tR tR tR t	Rt
V tR# )	Ú	_LLVMLocka"  A Lock to guarantee thread-safety for the LLVM C-API.

This class implements __enter__ and __exit__ for acquiring and releasing
the lock as a context manager.

Also, callbacks can be attached so that every time the lock is acquired
and released the corresponding callbacks will be invoked.
c                óH   € \         P                  ! 4       V n        . V n        R # r   )Ú	threadingÚRLockÚ_lockÚ_cblist©Úselfs   &r   Ú__init__Ú_LLVMLock.__init__;   s   € ô —_’_Ó&ˆŒ
ØˆŽr   c                ó>   € V P                   P                  W34       R# )z–Register callbacks that are invoked immediately after the lock is
acquired (``acq_fn()``) and immediately before the lock is released
(``rel_fn()``).
N)r8   Úappend©r:   Úacq_fnÚrel_fns   &&&r   ÚregisterÚ_LLVMLock.registerA   s   € ð
 	�‰×Ñ˜VÐ,Ö-r   c                ó>   € V P                   P                  W34       R# )z)Remove the registered callbacks.
        N)r8   Úremover?   s   &&&r   Ú
unregisterÚ_LLVMLock.unregisterH   s   € ð 	�‰×Ñ˜VÐ,Ö-r   c                ór   € V P                   P                  4        V P                   F  w  rV! 4        K  	  R # r   )r7   Úacquirer8   r?   s   &  r   Ú	__enter__Ú_LLVMLock.__enter__M   s'   € Ø�
‰
×ÑÔà"Ÿlœl‰NˆFÙŽHó +r   c                ór   € V P                    F  w  r#V! 4        K  	  V P                  P                  4        R # r   )r8   r7   Úrelease)r:   Úexc_detailsr@   rA   s   &*  r   Ú__exit__Ú_LLVMLock.__exit__S   s'   € à"Ÿlœl‰NˆFÙŽHñ +à�
‰
×ÑÖr   )r8   r7   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r;   rB   rF   rJ   rO   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r3   r3   2   s(   ø‡ € ñòò.ò.ò
÷ð r   r3   c                   ó2   a € ] tR t^Zt o R tR tR tRtV tR# )Ú_suppress_cleanup_errorsc                ó   € Wn         R # r   ©Ú_context)r:   Úcontexts   &&r   r;   Ú!_suppress_cleanup_errors.__init__[   s   € ØŽr   c                ó6   € V P                   P                  4       # r   )r^   rJ   r9   s   &r   rJ   Ú"_suppress_cleanup_errors.__enter__^   s   € Ø�}‰}×&Ñ&Ó(Ð(r   c                ó`   €  V P                   P                  WV4      #   \         d     R # i ; ir   )r^   rO   ÚPermissionError)r:   Úexc_typeÚ	exc_valueÚ	tracebacks   &&&&r   rO   Ú!_suppress_cleanup_errors.__exit__a   s0   € ð	Ø—=‘=×)Ñ)¨(¸yÓIÐIøÜô 	Úð	ús   ‚ ž-¬-r]   N)	rQ   rR   rS   rT   r;   rJ   rO   rV   rW   rX   s   @r   r[   r[   Z   s   ø‡ € ò ò)÷ð r   r[   c                   ón   a € ] tR t^ht o Rt. R
OtR tR t]R 4       t	R t
]R 4       t]R 4       tRtV tR	# )Ú_lib_wrapperzoWrap libllvmlite with a lock such that only one thread may access it at
a time.

This class duck-types a CDLL.
c                ó@   € R V n         / V n        \        4       V n        R # r   )Ú_lib_handleÚ_fntabr3   r7   r9   s   &r   r;   Ú_lib_wrapper.__init__p   s   € ØˆÔØˆŒÜ“[ˆŽ
r   c                óÌ  € R p\         P                  R4      ^ ,          p\        4       p\        \	        W#4      4      ;_uu_ 4       p \
        P                  ! \        V4      4      V n        \        V P                  V4      ! 4         RRR4       R#   \         d    RT RT R2p\        T4      h\         d    RT RT R2p\        T4      hi ; i  + '       g   i     R# ; i)	ÚLLVMPY_GetVersionInfoÚ.z(Could not find/load shared object file 'z' from resource location: 'zº'. This could mean that the library literally cannot be found, but may also mean that the permissions are incorrect or that a dependency of/a symbol in the library could not be resolved.z-During testing of symbol lookup, the symbol 'z%' could not be found in the library 'Ú'N)rQ   Ú
rpartitionr   r[   Ú_importlib_resources_pathr	   ÚCDLLÚstrrl   ÚgetattrÚOSErrorÚAttributeError)r:   Útest_symÚmod_nameÚlib_nameÚlib_pathÚmsgs   &     r   Ú	_load_libÚ_lib_wrapper._load_libu   sõ   € Ø*ˆÜ×&Ñ& sÓ+¨AÕ.ˆÜ#Ó%ˆä%Ô&?Ø&.ó':÷ ;ô ;Ø>Fð#Ü#)§;¢;¬s°8«}Ó#=�Ô ä˜×(Ñ(¨(Ô3Õ5÷;ñ ;øô ô 	#ð BÀ(Àð L3Ø3;°*ð =#ð#�ô ˜c“lÐ"Ü!ô #ðØ#˜*ð %Ø#˜* Að'�ô ˜c“lÐ"ð#ú÷!;÷ ;ð ;ús$   ÁCÁ?BÂ'CÂ9CÃCÃC#	c                ó^   € V P                   '       g   V P                  4        V P                   # r   )rl   r   r9   s   &r   Ú_libÚ_lib_wrapper._lib’   s&   € ð ××ÐØ�N‰NÔØ×ÑÐr   c                óÄ   €  V P                   V,          #   \         d     Mi ; i\        T P                  T4      p\	        T P
                  T4      pY0P                   T&   T# r   )rm   ÚKeyErrorrw   r‚   Ú_lib_fn_wrapperr7   )r:   r   ÚcfnÚwrappeds   &&  r   Ú__getattr__Ú_lib_wrapper.__getattr__™   s[   € ð	Ø—;‘;˜tÕ$Ð$øÜô 	Ùð	úô �d—i‘i Ó&ˆÜ! $§*¡*¨cÓ2ˆØ#�‰�DÑØˆs   ‚ •#¢#c                ó.   € V P                   P                  # )zWThe name of the library passed in the CDLL constructor.

For duck-typing a ctypes.CDLL
)r‚   Ú_namer9   s   &r   rŒ   Ú_lib_wrapper._name¤   s   € ð �y‰y�‰Ðr   c                ó.   € V P                   P                  # )zMThe system handle used to access the library.

For duck-typing a ctypes.CDLL
)r‚   Ú_handler9   s   &r   r�   Ú_lib_wrapper._handle¬   s   € ð �y‰y× Ñ Ð r   )rm   rl   r7   N)rl   rm   r7   )rQ   rR   rS   rT   rU   Ú	__slots__r;   r   Úpropertyr‚   r‰   rŒ   r�   rV   rW   rX   s   @r   rj   rj   h   s\   ø‡ € ñò
 3€Iò!ò
#ð: ñ ó ð ò	ð ñó ðð ñ!ó ö!r   rj   c                   ó    a € ] tR t^µt o RtRR.tR t]R 4       t]P                  R 4       t]R 4       t
]
P                  R 4       t
R	 tR
tV tR# )r†   zÞWraps and duck-types a ctypes.CFUNCTYPE to provide
automatic locking when the wrapped function is called.

TODO: we can add methods to mark the function as threadsafe
      and remove the locking-step on call when marked.
r7   Ú_cfnc                ó   € Wn         W n        R # r   ©r7   r”   )r:   Úlockr‡   s   &&&r   r;   Ú_lib_fn_wrapper.__init__¾   s   € ØŒ
ØŽ	r   c                ó.   € V P                   P                  # r   ©r”   Úargtypesr9   s   &r   r›   Ú_lib_fn_wrapper.argtypesÂ   s   € à�y‰y×!Ñ!Ð!r   c                ó&   € WP                   n        R # r   rš   )r:   r›   s   &&r   r›   rœ   Æ   s   € à%�	‰	Ör   c                ó.   € V P                   P                  # r   ©r”   Úrestyper9   s   &r   r    Ú_lib_fn_wrapper.restypeÊ   s   € à�y‰y× Ñ Ð r   c                ó&   € WP                   n        R # r   rŸ   )r:   r    s   &&r   r    r¡   Î   s   € à#�	‰	Ör   c                óŒ   € V P                   ;_uu_ 4        V P                  ! V/ VB uuR R R 4       #   + '       g   i     R # ; ir   r–   )r:   ÚargsÚkwargss   &*,r   Ú__call__Ú_lib_fn_wrapper.__call__Ò   s(   € Ø�Z�Z‹ZØ—9’9˜dÐ- fÑ-÷ �Z�Z‹Zús	   •2²A	)r”   r7   N)rQ   rR   rS   rT   rU   r‘   r;   r’   r›   Úsetterr    r¦   rV   rW   rX   s   @r   r†   r†   µ   s}   ø‡ € ñð ˜&Ð!€Iòð ñ"ó ð"ð ‡_�_ñ&ó ð&ð ñ!ó ð!ð ‡^�^ñ$ó ð$÷.ð .r   r†   c                ód   € \         P                  ! \         P                  ! V 4      V,          4      # )a  Replacement implementation of `import.resources.path` to avoid
deprecation warning following code at importlib_resources/_legacy.py
as suggested by https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy

Notes on differences from importlib.resources implementation:

The `_common.normalize_path(resource)` call is skipped because it is an
internal API and it is unnecessary for the use here. What it does is
ensuring `resource` is a str and that it does not contain path separators.
)Ú_impresÚas_fileÚfiles)ÚpackageÚresources   &&r   Ú_importlib_resources_path_replr¯   ×   s!   € ô �?Š?œ7Ÿ=š=¨Ó1°HÕ<Ó=Ð=r   :Né   Nc                óD   € \         P                  P                  W4       R# )zvRegister callback functions for lock acquire and release.
*acq_fn* and *rel_fn* are callables that take no arguments.
N)Úlibr7   rB   ©r@   rA   s   &&r   Úregister_lock_callbackr´   í   s   € ô ‡I�I×Ñ�vÖ&r   c                óD   € \         P                  P                  W4       R# )z‰Remove the registered callback functions for lock acquire and release.
The arguments are the same as used in `register_lock_callback()`.
N)r²   r7   rF   r³   s   &&r   Úunregister_lock_callbackr¶   ô   s   € ô ‡I�I×Ñ˜Ö(r   c                   ó   € ] tR t^ûtRtRtR# )Ú_DeadPointerz2
Dummy class to make error messages more helpful.
© N)rQ   rR   rS   rT   rU   rV   r¹   r   r   r¸   r¸   û   s   † õr   r¸   c                   óŠ   a € ] tR tRt o Rt]! 4       t]R 4       tRR lt	R t
R tR t]3R	 ltR
 tR t]t]R 4       tRtV tR# )ÚOutputStringi  z4
Object for managing the char* output of LLVM APIs.
c                óZ   € V ! \         P                  ! V\         P                  4      R7      # )zõConstructing from a pointer returned from the C-API.
The pointer must be allocated with LLVMPY_CreateString.

Note
----
Because ctypes auto-converts *restype* of *c_char_p* into a python
string, we must use *c_void_p* to obtain the raw pointer.
)Úinit)r	   ÚcastÚc_char_p)ÚclsÚptrs   &&r   Úfrom_returnÚOutputString.from_return  s   € ñ œŸš C¬¯©Ó9Ô:Ð:r   Nc                óž   € Ve   TM\         P                  ! R 4      V n        \         P                  ! V P                  4      V n        Wn        R # r   )r	   r¿   Ú_ptrÚbyrefÚ_as_parameter_Ú_owned)r:   Úownedr½   s   &&&r   r;   ÚOutputString.__init__  s3   € Ø Ò,‘D´&·/²/À$Ó2GˆŒ	Ü$Ÿlšl¨4¯9©9Ó5ˆÔØŽr   c                óš   € V P                   e=   V P                  '       d    \        P                  V P                   4       R V n         V =R # R # r   )rÅ   rÈ   r²   ÚLLVMPY_DisposeStringrÇ   r9   s   &r   ÚcloseÚOutputString.close  s9   € Ø�9‰9Ò Ø�{�{ˆ{Ü×(Ñ(¨¯©Ô3ØˆDŒIØÒ#ñ	 !r   c                ó   € V # r   r¹   r9   s   &r   rJ   ÚOutputString.__enter__  s   € Øˆr   c                ó&   € V P                  4        R # r   ©rÍ   ©r:   re   Úexc_valÚexc_tbs   &&&&r   rO   ÚOutputString.__exit__"  ó   € Ø�
‰
Žr   c                ód   € V! 4       '       g#   V P                   e   V P                  4        R # R # R # r   rÒ   ©r:   r   s   &&r   Ú__del__ÚOutputString.__del__%  s*   € ñ !×"Ò"Ø�z‰zÒ%Ø—
‘
–ñ &ñ #r   c                óp   € V P                   f   R# V P                   P                  pVf   Q h\        V4      # )Nz<dead OutputString>)rÅ   Úvaluer   )r:   Úss   & r   Ú__str__ÚOutputString.__str__,  s1   € Ø�9‰9ÒÙ(Ø�I‰I�O‰OˆØŠ}Ðˆ}Ü˜aÓ Ð r   c                ó,   € \        V P                  4      # r   ©ÚboolrÅ   r9   s   &r   Ú__bool__ÚOutputString.__bool__3  ó   € Ü�D—I‘I‹Ðr   c                ó.   € V P                   P                  # )z:Get the raw bytes of content of the char pointer.
        )rÅ   rÝ   r9   s   &r   ÚbytesÚOutputString.bytes8  s   € ð �y‰y�‰Ðr   )rÇ   rÈ   rÅ   )TN)rQ   rR   rS   rT   rU   r¸   rÇ   ÚclassmethodrÂ   r;   rÍ   rJ   rO   r   rÚ   rß   rä   Ú__nonzero__r’   rè   rV   rW   rX   s   @r   r»   r»     sf   ø‡ € ññ "“^€Nàñ	;ó ð	;ôò
$òòð ):ô ò!òð €Kàñó ör   r»   c                óJ   € V e   \        \        P                  V 4      4      # R# )z,To wrap string return-value from C-API.
    N)rv   r»   rÂ   ©rÁ   s   &r   Ú
ret_stringrî   ?  s$   € ð ‚Ü”<×+Ñ+¨CÓ0Ó1Ð1ñ r   c                óL   € V e    \         P                  V 4      P                  # R# )z+To wrap bytes return-value from C-API.
    N)r»   rÂ   rè   rí   s   &r   Ú	ret_bytesrð   F  s%   € ð ‚Ü×'Ñ'¨Ó,×2Ñ2Ð2ñ r   c                   ó�   a € ] tR tRt o RtRt]! 4       tRtR t	R t
R tR t]R 4       tR	 tR
 t]3R ltR tR t]tR tRtV tR# )Ú	ObjectRefiM  zB
A wrapper around a ctypes pointer to a LLVM object ("resource").
Fc                óR   € Vf   \        R4      hWn        Wn        \        V n        R # )NzNULL pointer)Ú
ValueErrorrÅ   rÇ   r²   Ú_capi)r:   rÁ   s   &&r   r;   ÚObjectRef.__init__V  s$   € ØŠ;Ü˜^Ó,Ð,ØŒ	Ø!ÔÜˆŽ
r   c                óº   €  V P                   '       g#   V P                  '       g   V P                  4        V P                  4        R#   T P                  4        i ; i)z9
Close this object and do any required clean-up actions.
N)Ú_closedrÈ   Ú_disposeÚdetachr9   s   &r   rÍ   ÚObjectRef.close]  s4   € ð	Ø—<—<�<¨¯¯¨Ø—‘”à�K‰KŽMøˆD�K‰K�Mús   ‚A ”A ¦A ÁAc                óN   € V P                   '       g   V =RV n         RV n        R# R# )z>
Detach the underlying LLVM resource without disposing of it.
TN)rø   rÇ   rÅ   r9   s   &r   rú   ÚObjectRef.detachg  s&   € ð �|�|ˆ|ØÐ#ØˆDŒLØˆDŽIñ r   c                ó   € R# )z²
Dispose of the underlying LLVM resource.  Should be overriden
by subclasses.  Automatically called by close(), __del__() and
__exit__() (unless the resource has been detached).
Nr¹   r9   s   &r   rù   ÚObjectRef._disposep  s   ‚ r   c                ó   € V P                   # )zN
Whether this object has been closed.  A closed object can't
be used anymore.
)rø   r9   s   &r   ÚclosedÚObjectRef.closedw  s   € ð �|‰|Ðr   c                ó„   € \        V R 4      '       g   Q hV P                  '       d   \        V P                  : R24      hV # )rÍ   z instance already closed)Úhasattrrø   ÚRuntimeErrorÚ	__class__r9   s   &r   rJ   ÚObjectRef.__enter__  s5   € Ü�t˜W×%Ò%Ð%Ð%Ø�<�<ˆ<Ü¸t¿~¼~ÐOÓPÐPØˆr   c                ó&   € V P                  4        R # r   rÒ   rÓ   s   &&&&r   rO   ÚObjectRef.__exit__…  r×   r   c                ód   € V! 4       '       g#   V P                   e   V P                  4        R # R # R # r   rÒ   rÙ   s   &&r   rÚ   ÚObjectRef.__del__ˆ  s(   € Ù ×"Ò"Ø�z‰zÒ%Ø—
‘
–ñ &ñ #r   c                ó,   € \        V P                  4      # r   râ   r9   s   &r   rä   ÚObjectRef.__bool__�  ræ   r   c                óÈ   € \        VR 4      '       g   R# \        P                  ! V P                  ^ ,          4      \        P                  ! VP                  ^ ,          4      8H  # )rÅ   F)r  r	   Ú	addressofrÅ   )r:   Úothers   &&r   Ú__eq__ÚObjectRef.__eq__�  sH   € Ü�u˜f×%Ò%ÙÜ×Ò §	¡	¨!¥Ó-Ü×Ò˜UŸZ™Z¨�]Ó+ñ,ð 	,r   c                ó†   € \        \        P                  ! V P                  \        P                  4      P
                  4      # r   )Úhashr	   r¾   rÅ   Úc_void_prÝ   r9   s   &r   Ú__hash__ÚObjectRef.__hash__™  s&   € Ü”F—K’K §	¡	¬6¯?©?Ó;×AÑAÓBÐBr   )rÇ   rõ   rø   rÅ   N)rQ   rR   rS   rT   rU   rø   r¸   rÇ   rÈ   r;   rÍ   rú   rù   r’   r  rJ   rO   r   rÚ   rä   r  rë   r  rV   rW   rX   s   @r   rò   rò   M  sv   ø‡ € ñð €GÙ!“^€Nà€Fòòòòð ñó ðòòð ):ô ò
ò,ð €K÷Cð Cr   rò   )é   é
   )>Úsysr	   r5   Úimportlib.resourcesÚ	resourcesrª   Úllvmlite.binding.commonr   r   Úllvmlite.utilsr   r   ÚLLVMContextRefÚLLVMModuleRefÚLLVMValueRefÚLLVMTypeRefÚLLVMExecutionEngineRefÚLLVMPassManagerBuilderRefÚLLVMPassManagerRefÚLLVMTargetDataRefÚLLVMTargetLibraryInfoRefÚLLVMTargetRefÚLLVMTargetMachineRefÚLLVMMemoryBufferRefr   r   r   r    r!   r"   r#   r$   r%   r&   r'   ÚLLVMObjectCacheRefÚLLVMObjectFileRefÚLLVMSectionIteratorRefr+   r,   ÚLLVMTimePassesHandlerRefÚLLVMPipelineTuningOptionsRefÚLLVMModulePassManagerRefÚLLVMFunctionPassManagerRefÚLLVMPassBuilderRefr3   r[   Úobjectrj   r†   r¯   Úversion_infoÚpathrt   r²   r´   r¶   r¸   r»   rî   rð   rò   r¹   r   r   Ú<module>r6     sA  ðÛ 
Û Û Ý %ç EÝ +ò"ñ
 " -Ó0€Ù  Ó.€Ù Ó,€Ù˜zÓ*€Ù)Ð*?Ó@Ð Ù,Ð-EÓFÐ Ù%Ð&7Ó8Ð Ù$Ð%5Ó6Ð Ù+Ð,CÓDÐ Ù  Ó.€Ù'Ð(;Ó<Ð Ù&Ð'9Ó:Ð Ù,Ð-HÓIÐ Ù&Ð'<Ó=Ð Ù+Ð,FÓGÐ Ù&Ð'<Ó=Ð Ù(Ð)@ÓAÐ Ù%Ð&:Ó;Ð Ù(Ð)@ÓAÐ Ù+Ð,FÓGÐ Ù'Ð(>Ó?Ð Ù-Ð.JÓKÐ Ù$Ð%8Ó9Ð Ù%Ð&7Ó8Ð Ù$Ð%5Ó6Ð Ù)Ð*?Ó@Ð Ù"Ð#4Ó5€Ù)Ð*BÓCÐ Ù+Ð,CÓDÐ Ù/Ð0KÓLÐ Ù+Ð,CÓDÐ Ù-Ð.GÓHÐ Ù%Ð&7Ó8Ð ÷%ñ %÷Pñ ôJ!�6ô J!ôZ.�fô .òD>ð !$× 0Ñ 0°Õ 4¸Ô ?ñ <à")§,¡,ð ñ
 ƒn€ò'ò)ô�6ô ô;�6ô ;ò|2ò3ôMC�ö MCr   