o
    7f                     @  s(  U d dl mZ d dlZd dlZd dlmZmZmZ d dlm	Z	 dZ
ded< dZded	< d
Zded< dZded< dZded< dZded< dZded< dZded< dZded< dZded< dZded< dZded< dZded< d Zded!< d"Zded#< d$Zded%< ed&Zded'< edureenejd(  d) Z ded&< ee d*kZ!ded+< e!rd*nd)Z"d$d)ee  d$  d( Z#ded,< e# d( Z$ded-< e#Z%ded.< e% d( Z&ded/< d0Z'ded1< d2Z(ded3< g d4Z)ded5< ee*ef Z+dRd9d:Z,dSd<d=Z-dTdAdBZ.dTdCdDZ/dUdHdIZ0dVdMdNZ1dWdPdQZ2dS )X    )annotationsN)AnyDictFinalunnamed_functionCPyPy_r   PREFIXCPyDef_NATIVE_PREFIX
CPyDunder_DUNDER_PREFIXcpy_r_
REG_PREFIX
CPyStatic_STATIC_PREFIXCPyType_TYPE_PREFIX
CPyModule_MODULE_PREFIX_ATTR_PREFIX__mypyc_env__ENV_ATTR_NAME__mypyc_next_label__NEXT_LABEL_ATTR_NAME__mypyc_temp__TEMP_ATTR_NAME__mypyc_lambda__LAMBDA_NAME__mypyc_setter__PROPSET_PREFIX__mypyc_self__	SELF_NAME__top_level__TOP_LEVEL_NAME   FAST_ISINSTANCE_MAX_SUBCLASSESSIZEOF_SIZE_TSIZEOF_SIZE_T_SYSCONFIG         IS_32_BIT_PLATFORMMAX_SHORT_INTMIN_SHORT_INTMAX_LITERAL_SHORT_INTMIN_LITERAL_SHORT_INTuint32_tBITMAP_TYPE    BITMAP_BITS)zinit.cz	getargs.czgetargsfast.cz	int_ops.czfloat_ops.cz	str_ops.czbytes_ops.cz
list_ops.cz
dict_ops.cz	set_ops.cztuple_ops.cz	exc_ops.cz
misc_ops.czgeneric_ops.cRUNTIME_C_FILES
group_namestrreturnc                 C  s
   |  dS )zGiven a group name, return the actual name of its extension module.

    (This just adds a suffix to the final component.)
    __mypyc )r7   r;   r;   E/home/ertert/spirit/venv/lib/python3.10/site-packages/mypyc/common.pyshared_lib_nameW   s   
r=   namec                 C  s   |  dr| dd  S | S )Nz	builtins.	   )
startswith)r>   r;   r;   r<   
short_name_   s   
rA   capi_versiontuple[int, int]boolc                 C     | dkS )N)   r+   r;   rB   r;   r;   r<   use_vectorcalle      rH   c                 C  rE   )N)rF   r?   r;   rG   r;   r;   r<   use_method_vectorcallj   rI   rJ   fullnamelineintc                 C  s   t | r| d| S |S )aj  Create a unique id for a function.

    This creates an id that is unique for any given function definition, so that it can be used as
    a dictionary key. This is usually the fullname of the function, but this is different in that
    it handles the case where the function is named '_', in which case multiple different functions
    could have the same name..r   )r>   rK   rL   r;   r;   r<   get_id_from_nameo   s   rO   	func_name	shortname
int | Nonec                 C  s.   t | r|d us
J | d| }|S |}|S )NrN   r   )rP   rQ   rL   partial_namer;   r;   r<   short_id_from_name|   s   rT   indexc                 C  s   | dkrdS d| d  S )Nr   __bitmapr*   r;   )rU   r;   r;   r<   bitmap_name   s   rW   )r7   r8   r9   r8   )r>   r8   r9   r8   )rB   rC   r9   rD   )r>   r8   rK   r8   rL   rM   r9   r8   )rP   r8   rQ   r8   rL   rR   r9   r8   )rU   rM   r9   r8   )3
__future__r   sys	sysconfigtypingr   r   r   	mypy.utilr   r	   __annotations__r   r   r   r   r   r   r   r   r   r   r   r!   r#   r%   r'   get_config_varr)   rM   maxsize
bit_lengthr(   r-   PLATFORM_SIZEr.   r/   r0   r1   r3   r5   r6   r8   JsonDictr=   rA   rH   rJ   rO   rT   rW   r;   r;   r;   r<   <module>   sV    
 





	