403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.216.115
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/optimizations/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

cR�a���F�dZddlmZddlmZddlZGd�de��ZdS)zN
RangeLoopUnfolding turns unfolded range of non unrolled loops back to range.
�)�Transformation)�isnumNc��eZdZdZd�Zd�ZdS)�RangeLoopUnfoldinga�
    Turns iteration over an incrementing list of literals into a range

    >>> import gast as ast
    >>> from pythran import passmanager, backend
    >>> node = ast.parse("for i in [1,2,3]: print(i)")
    >>> pm = passmanager.PassManager("test")
    >>> _, node = pm.apply(RangeLoopUnfolding, node)
    >>> print(pm.dump(backend.Python, node))
    for i in builtins.range(1, 4, 1):
        print(i)
    c��|sdStd�|D����sdSd�|D��}|d}t|��dkr||dzdfS|d|z
}|d|z}|tt|||����kr|||fSdS)Nc3�hK�|]-}t|��ot|jt��V��.dS�N)r�
isinstance�value�int��.0�xs  �L/usr/lib/python3/dist-packages/pythran/optimizations/range_loop_unfolding.py�	<genexpr>z-RangeLoopUnfolding.isrange.<locals>.<genexpr>sM����"�"����8�8�8�
�1�7�C� 8� 8�"�"�"�"�"�"�c��g|]	}|j��
S�)rr
s  r�
<listcomp>z.RangeLoopUnfolding.isrange.<locals>.<listcomp>s��.�.�.�A���.�.�.rr����)�all�len�list�range)�self�elts�unboxed_ints�start�step�stops      r�israngezRangeLoopUnfolding.isranges����	��4��"�"� �"�"�"�"�"�	��4�.�.��.�.�.���Q����|����!�!��%�!�)�Q�&�&���?�U�*�D���#�d�*�D��t�E�%��t�$<�$<�=�=�=�=��d�D�(�(��trc
��t|jtjtjf��r�|�|jj��}|rptjtjtj	dtj
��dd��d|jj��d�|D��g��|_d|_|�
|��S)N�builtinsrc�8�g|]}tj|d����Sr	)�ast�Constant)r�params  rrz0RangeLoopUnfolding.visit_For.<locals>.<listcomp>3s$��I�I�I�5�S�\�%��.�.�I�I�IrT)r
�iterr&�List�Tupler"r�Call�	Attribute�Name�Load�ctx�update�
generic_visit)r�node�range_paramss   r�	visit_ForzRangeLoopUnfolding.visit_For+s����d�i�#�(�C�I�!6�7�7�		#��<�<��	��7�7�L��
#��H�S�]��H�Z�����T�4�@�@���I�M�&#�&#�J�I�L�I�I�I�����	�#����!�!�$�'�'�'rN)�__name__�
__module__�__qualname__�__doc__r"r5rrrrrs<�����������$(�(�(�(�(rr)r9�pythran.passmanagerr�
pythran.utilsr�gastr&rrrr�<module>r=su����/�.�.�.�.�.�����������+(�+(�+(�+(�+(��+(�+(�+(�+(�+(r

Youez - 2016 - github.com/yon3zu
LinuXploit