Sindbad~EG File Manager

Current Path : /proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/
Upload File :
Current File : //proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/test_compiler_codegen.cpython-312.pyc

�

'Μg���&�ddlmZGd�de�Zy)�)�CodegenTestCasec��eZdZd�Zd�Zd�Zy)�IsolatedCodeGenTestsc�x�ddl}|j|dd�}|j|�}|j||�y)Nrz
my_file.py�exec)�ast�parse�
generate_code�assertInstructionsMatch)�self�snippet�expected_instsr�a�instss      �7/usr/local/lib/python3.12/test/test_compiler_codegen.py�codegen_testz!IsolatedCodeGenTests.codegen_test	s7����I�I�g�|�V�4���"�"�1�%���$�$�U�N�;�c��d}|j�}ddd|j�x}dfdd|j�x}f|d|d	d
dg}|j||�y)Nz42 if True else 24��RESUMErr)�
LOAD_CONSTr��POP_JUMP_IF_FALSEr)rrr�JUMP)r�r��POP_TOPN)r���RETURN_VALUEN��Labelr)rr
�	false_lbl�exit_lbl�expecteds     r�test_if_expressionz'IsolatedCodeGenTests.test_if_expressionsn��&���J�J�L�	�� �
 �t�z�z�|�";�)�Q�?� �
�����-�X�.�� ����"�
��	
���'�8�,rc��d}|j�}ddd|j�x}d|j�x}dfddd	d
ddd
d|f|dddg}|j||�y)Nzfor x in l:
	print(x)r)�	LOAD_NAMErr)�GET_ITERNr�FOR_ITERr)�NOPNrr)�
STORE_NAMErr)�	PUSH_NULLNr)r(rr)r(rr)�CALLrrrr)�END_FORN)rrrr!)rr
r#�loop_lblr$r%s      r�
test_for_loopz"IsolatedCodeGenTests.test_for_loop!s���+���J�J�L�	���!��
�
��$�H�
�T�Z�Z�\�1��1�5�� �"�����
�X�����"�#
��&	
���'�8�,rN)�__name__�
__module__�__qualname__rr&r1�rrrrs��<�-�$-rrN)�test.support.bytecode_helperrrr5rr�<module>r7s��8�
0-�?�0-r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists