Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/test/__pycache__/test__opcode.cpython-38.pyc
U

>��g#�@sVddlZddlmZddlZed�ZddlmZGdd�dej�ZedkrRe�	�dS)�N)�
import_module�_opcode)�stack_effectc@seZdZdd�Zdd�ZdS)�OpcodeTestsc
Csp|�ttjd�d�|�ttjd�d�|�ttjdd�d�|�ttjdd�d�|�ttjdd�d	�|�ttd
�|�tttjd�|�tttjdd�tj��D]\\}}|j|d��B|tjkr�t|�|�tt|d�nt|d�|�tt|�W5QRXq�t	t
d��t	tj���D]<}|j|d
��$|�tt|�|�tt|d�W5QRX�q.dS)NZPOP_TOP���ZDUP_TOP_TWO�ZBUILD_SLICEr�����i0u��opname�)Zopcode)�assertEqualr�dis�opmapZassertRaises�
ValueError�items�subTest�
HAVE_ARGUMENT�set�range�values)�self�name�code�r�0/opt/cppython/lib/python3.8/test/test__opcode.py�test_stack_effects&

zOpcodeTests.test_stack_effectc

Cs�tjd}|�t|d�d�|�t|ddd�d�|�t|ddd�d�tjd}|�t|d�d�|�t|ddd�d�|�t|ddd�d�tjd	}|�t|d�d�|�t|ddd�d�|�t|ddd�d�tjtj}tj��D]�\}}|j|d
���|tjk�r2t|�}t|dd�}t|dd�}	n&t|d�}t|ddd�}t|ddd�}	||k�rv|�|t	||	��n|�||�|�|	|�W5QRXq�dS)N�JUMP_IF_TRUE_OR_POPrT)�jumpFr�FOR_ITERr�JUMP_FORWARDr)
rrrrZhasjabsZhasjrelrrr�max)
rrr r!Zhas_jumprr�commonrZnojumprrr�test_stack_effect_jump#s4




z"OpcodeTests.test_stack_effect_jumpN)�__name__�
__module__�__qualname__rr$rrrrr	sr�__main__)
rZtest.supportrZunittestrrZTestCaserr%�mainrrrr�<module>s:

F1le Man4ger