Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /opt/imunify360/venv/lib/python3.11/site-packages/jinja2/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/imunify360/venv/lib/python3.11/site-packages/jinja2/__pycache__/optimizer.cpython-311.pyc
�

��Fh���D�dZddlmZddlmZd�ZGd�de��ZdS)a�The optimizer tries to constant fold expressions and modify the AST
in place so that it should be faster to evaluate.

Because the AST does not contain all the scoping information and the
compiler has to find that out, we cannot do all the optimizations we
want. For example, loop unrolling doesn't work because unrolled loops
would have a different scope. The solution would be a second syntax tree
that stored the scoping rules.
�)�nodes)�NodeTransformerc�J�t|��}|�|��S)z^The context hint can be used to perform an static optimization
    based on the context given.)�	Optimizer�visit)�node�environment�	optimizers   �p/builddir/build/BUILD/imunify360-venv-2.5.3/opt/imunify360/venv/lib/python3.11/site-packages/jinja2/optimizer.py�optimizers#���+�&�&�I��?�?�4� � � �c�$��eZdZd�Z�fd�Z�xZS)rc��||_dS)N)r	)�selfr	s  r�__init__zOptimizer.__init__s��&����r
c�B��tt|��j|g|�Ri|��}t|tj��r_	tj�|�|r|dnd��|j	|j
���S#tj$rYnwxYw|S)N�)�linenor	)�superr�
generic_visit�
isinstancer�Expr�Const�from_untrusted�as_constrr	�
Impossible)rr�args�kwargs�	__class__s    �rrzOptimizer.generic_visits����3�u�Y��%�%�3�D�J�4�J�J�J�6�J�J���d�E�J�'�'�	�
��{�1�1��M�M�T�";�$�q�'�'�t�<�<��;� $� 0�2�����
�#�
�
�
���
�����s�AB
�
B�B)�__name__�
__module__�__qualname__rr�
__classcell__)rs@rrrsG�������'�'�'���������r
rN)�__doc__�r�visitorrrr�r
r�<module>r(sx����������$�$�$�$�$�$�!�!�!�����������r

ZeroDay Forums Mini