HEX
Server: LiteSpeed
System: Linux atali.colombiahosting.com.co 5.14.0-570.12.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 13 06:11:55 EDT 2025 x86_64
User: coopserp (1713)
PHP: 8.2.29
Disabled: dl,exec,passthru,proc_open,proc_close,shell_exec,memory_limit,system,popen,curl_multi_exec,show_source,symlink,link,leak,listen,diskfreespace,tmpfile,ignore_user_abord,highlight_file,source,show_source,fpaththru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setid,posix_times,posix_ttyname,posix_uname,proc_get_status,proc_nice,proc_terminate
Upload Files
File: //opt/cloudlinux/venv/lib/python3.11/site-packages/jinja2/__pycache__/optimizer.cpython-311.pyc
�

ڋs`�}���dZddlZddlmZddlmZejrddlm	Z	dej
dd	d
ej
fd�ZGd�d
e��ZdS)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.
�N�)�nodes)�NodeTransformer)�Environment�node�environmentr�returnc��t|��}tjtj|�|����S)z^The context hint can be used to perform an static optimization
    based on the context given.)�	Optimizer�t�castr�Node�visit)rr�	optimizers   �a/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/jinja2/optimizer.py�optimizers1���+�&�&�I��6�%�*�i�o�o�d�3�3�4�4�4�c�`��eZdZd
d�Zdejdejdejdejf�fd	�Z�xZ	S)rr�t.Optional[Environment]r	Nc��||_dS)N)r)�selfrs  r�__init__zOptimizer.__init__s��&����rr�args�kwargsc�4��t��j|g|�Ri|��}t|tj��r_	tj�|�|r|dnd��|j|j	���S#tj
$rYnwxYw|S)Nr)�linenor)�super�
generic_visit�
isinstancer�Expr�Const�from_untrusted�as_constrr�
Impossible)rrrr�	__class__s    �rrzOptimizer.generic_visits����%�u�w�w�$�T�;�D�;�;�;�F�;�;���d�E�J�'�'�	�
��{�1�1��M�M�T�";�$�q�'�'�t�<�<��;� $� 0�2�����
�#�
�
�
���
�����s�AB�B�B)rrr	N)
�__name__�
__module__�__qualname__rrrr�Anyr�
__classcell__)r%s@rrrsy�������'�'�'�'���J��'(�u��89���	�����������rr)
�__doc__�typingr�r�visitorr�
TYPE_CHECKINGrrrrr�rr�<module>r1s���������������$�$�$�$�$�$��?�)�(�(�(�(�(�(�5�5�:�5�M�5�e�j�5�5�5�5�����������r