����JFIF���������
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib64
/
python3.6
/
__pycache__
/
Filename :
dis.cpython-36.opt-2.pyc
back
Copy
3 � \�F������������������@���s���d�dl�Z�d�dlZd�dlZd�dlZd�dlT�d�dlmZ�dddddd d ddd dge�Z[ejejej e eefZ ed�Zdd��ZdJdd�dd�ZdKdd�dd�Zddddddddddd� Zd d!��Zd"d#��Zd$d��Zd%d&��Zdd�d'd�Zejd(d)�Zd*ej_d+ej_d,ej_d-ej_d.ej_d/ej _d0ej!_d1ej"_G�d2d ��d e�Z#dd3�d4d�Z$d5d6��Z%d7d8��Z&dLd9d:�Z'dNdd�d<d�Z(dPdd�d=�d>d?�Z)dd�d@dA�Z*e(Z+dBdC��Z,dDd ��Z-dEd ��Z.G�dFd��d�Z/dGdH��Z0e1dIk�r�e0���dS�)Q�����N)�*)�__all__� code_info�dis�disassemble�distb�disco�findlinestarts� findlabels� show_code�get_instructions�Instruction�Bytecode�FORMAT_VALUEc�������������C���s6���yt�|�|d�}W�n �tk r0���t�|�|d�}Y�nX�|S�)N�eval�exec)�compile�SyntaxError)�source�name�c��r����/usr/lib64/python3.6/dis.py�_try_compile���s ����r���)�filec������������C���s>��|�d�krt�|d��d�S�t|�d�r&|�j}�t|�d�r6|�j}�t|�d�rF|�j}�t|�d�r�t|�jj���}x�|D�]n\}}t|t �rdt d|�|d��yt||d��W�n0�tk r��}�zt d||d��W�Y�d�d�}~X�nX�t |d��qdW�nbt|�d�r�t |�|d��nJt|�ttf��rt|�|d��n,t|�t��r(t|�|d��ntd t|��j���d�S�) N)r����__func__�__code__�gi_code�__dict__zDisassembly of %s:zSorry:�co_codez(don't know how to disassemble %s objects)r����hasattrr���r���r����sortedr����items� isinstance� _have_code�printr���� TypeErrorr����bytes� bytearray�_disassemble_bytes�str�_disassemble_str�type�__name__)�xr���r"���r���Zx1�msgr���r���r���r���"���s6���� c��������� ���C���sZ���|�d�krBy t�j}�W�n�tk r.���td��Y�nX�x|�jr@|�j}�q2W�t|�jj|�j|d��d�S�)Nz no last traceback to disassemble)r���) �sys�last_traceback�AttributeError�RuntimeError�tb_nextr����tb_frame�f_code�tb_lasti)�tbr���r���r���r���r���E���s���� � Z OPTIMIZEDZ NEWLOCALSZVARARGSZVARKEYWORDSZNESTEDZ GENERATORZNOFREEZ COROUTINEZITERABLE_COROUTINEZASYNC_GENERATOR) ��������������������� ����@�����������i���c�������������C���sb���g�}xRt�d�D�]8}d|>�}|�|@�r|jtj|t|����|�|N�}�|�sP�qW�|jt|����dj|�S�)Nr>���r9���z, )�range�append�COMPILER_FLAG_NAMES�get�hex�join)�flags�names�i�flagr���r���r����pretty_flags_���s����rL���c�������������C���sh���t�|�d�r|�j}�t�|�d�r |�j}�t�|�d�r0|�j}�t|�t�rDt|�d�}�t�|�d�rR|�S�tdt|��j ���d�S�)Nr���r���r���z <disassembly>r���z(don't know how to disassemble %s objects) r ���r���r���r���r#���r*���r���r&���r,���r-���)r.���r���r���r����_get_code_objectm���s���� rM���c�������������C���s���t�t|���S�)N)�_format_code_inforM���)r.���r���r���r���r���|���s����c�������������C���s���g�}|j�d|�j���|j�d|�j���|j�d|�j���|j�d|�j���|j�d|�j���|j�d|�j���|j�dt|�j����|�j r�|j�d��x t |�j �D�]}|j�d |���q�W�|�jr�|j�d ��x t |�j�D�]}|j�d|���q�W�|�j�r|j�d��x t |�j�D�]}|j�d|���q�W�|�j �rF|j�d ��x"t |�j �D�]}|j�d|����q.W�|�j�r||j�d��x"t |�j�D�]}|j�d|����qdW�dj|�S�)NzName: %szFilename: %szArgument count: %szKw-only arguments: %szNumber of locals: %szStack size: %szFlags: %sz Constants:z%4d: %rzNames:z%4d: %szVariable names:zFree variables:zCell variables:� )rC����co_name�co_filename�co_argcount�co_kwonlyargcount� co_nlocals�co_stacksizerL����co_flags� co_consts� enumerate�co_names�co_varnames�co_freevars�co_cellvarsrG���)�co�linesZi_cZi_nr���r���r���rN�������s:���� rN���c������������C���s���t�t|��|d��d�S�)N)r���)r%���r���)r]���r���r���r���r���r�������s�����_InstructionzBopname opcode arg argval argrepr offset starts_line is_jump_targetz!Human readable name for operationzNumeric code for operationz6Numeric argument to operation (if any), otherwise Nonez4Resolved arg value (if known), otherwise same as argz0Human readable description of operation argumentz1Start index of operation within bytecode sequencez4Line started by this opcode (if any), otherwise Nonez1True if other code jumps to here, otherwise Falsec���������������@���s���e�Zd�Zddd�ZdS�)r �������Fc�������������C���s����g�}|r:|�j�d�k r,d|�}|j||�j����n|jd|���|rJ|jd��n |jd��|�jrf|jd��n |jd��|jt|�j�jd���|j|�jjd���|�jd�k r�|jt|�j�jd ���|�j r�|jd |�j �d���dj |�j��S�)Nz%%%dd� z-->z z>>z r;������������(�))�starts_linerC����is_jump_target�repr�offset�rjust�opname�ljust�arg�argreprrG����rstrip)�self�lineno_widthZmark_as_currentZfieldsZ lineno_fmtr���r���r����_disassemble����s&���� zInstruction._disassembleN)r`���F)r-���� __module__�__qualname__rr���r���r���r���r���r �������s���)� first_linec������������C���sT���t�|��}|j|j�}tt|��}|d�k r4||j�}nd}t|j|j|j |j |||�S�)Nr���)rM���r\���r[����dictr ����co_firstlineno�_get_instructions_bytesr���rZ���rY���rW���)r.���ru���r]���� cell_names� linestarts�line_offsetr���r���r���r�������s����c�������������C���s ���|�}|d�k r||��}|t�|�fS�)N)rh���)Zconst_indexZ const_list�argvalr���r���r����_get_const_info����s����r}���c�������������C���s*���|�}|d�k r||��}|}nt�|�}||fS�)N)rh���)Z name_indexZ name_listr|���rn���r���r���r����_get_name_info��s����r~���c���������� ���c���sx��t�|��}d�}�xdt|��D��]V\} } }|d�k rH|j| d��}|d�k rH||7�}| |k}d�} d}|d�k �rT|} | tkr~t||�\} }n�| tkr�t||�\} }n�| tkr�| d�|�} dt| ��}n�| t kr�t||�\} }n�| t kr�t|�} | }nn| tkr�t||�\} }nV| t k�rTd�tttf|d@��t|d@��f} d|d@��}| d ��rT|�rL|d 7�}|d7�}tt| �| || || ||�V��qW�d�S�) N��r:���zto r`���r;���r*���rh����asciir9���z, zwith format)r���r*���rh���r����)r ����_unpack_opargsrE���Zhasconstr}���Zhasnamer~����hasjrelrh���ZhaslocalZ hascompareZcmp_opZhasfreer���r*���r�����boolr ���rk���)�code�varnamesrI���� constants�cellsrz���r{����labelsrf���ri����oprm���rg���r|���rn���r���r���r���rx�����sH���� rx���r9���c��������� ���C���s<���|�j�|�j�}tt|���}t|�j||�j|�j|�j|||d��d�S�)N)r���) r\���r[���rv���r ���r)���r���rZ���rY���rW���)r]����lastir���ry���rz���r���r���r���r���J��s����)r���r{���c��������� ���C���s|���|d�k } | rdnd} xbt�|�||||||d�D�]H}| oF|jd�k oF|jdk}|rVt|d��|j|k} t|j| | �|d��q,W�d�S�)Nr`���r���)r{���)r���)rx���rf���ri���r%���rr���)r����r����r����rI���r����r����rz���r���r{���Zshow_linenorq���ZinstrZnew_source_lineZis_current_instrr���r���r���r)���Q��s���� r)���c������������C���s���t�t|�d�|d��d�S�)Nz<dis>)r���)r���r���)r���r���r���r���r���r+���c��s����r+���c�������������c���sh���d}x^t�dt|��d�D�]J}|�|�}|tkrP|�|d��|B�}|tkrJ|d>�nd}nd�}|||fV��qW�d�S�)Nr���r:���r9���r<���)rB����lenZ HAVE_ARGUMENTZEXTENDED_ARG)r����Zextended_argrJ���r����rm���r���r���r���r����i��s����r����c�������������C���s`���g�}xVt�|��D�]J\}}}|d�k r|tkr6|d�|�}n|tkr|}nq||kr|j|��qW�|S�)Nr:���)r����r����ZhasjabsrC���)r����r����ri���r����rm���Zlabelr���r���r���r ���t��s����c�������������c���s����|�j�dd�d��}|�j�dd�d��}d�}|�j}d}xPt||�D�]B\}}|rd||kr\||fV��|}||7�}|dkrt|d8�}||7�}q:W�||kr�||fV��d�S�)Nr���r:���r9���r@���rA���)� co_lnotabrw����zip)r����Zbyte_incrementsZline_incrementsZ lastlineno�linenoZaddrZ byte_incrZ line_incrr���r���r���r ������s ���� c���������������@���sH���e�Zd�Zddd�dd�Zdd��Zdd��Zed d ���Zdd��Zd d��Z dS�)r���N)ru����current_offsetc������������C���sd���t�|��|�_}|d�kr&|j|�_d|�_n||�_||j�|�_|j|j�|�_tt |��|�_ ||�_||�_d�S�)Nr���) rM����codeobjrw���ru����_line_offsetr\���r[����_cell_namesrv���r ����_linestarts�_original_objectr����)rp���r.���ru���r����r]���r���r���r����__init__���s����zBytecode.__init__c���������� ���C���s*���|�j�}t|j|j|j|j|�j|�j|�jd�S�)N)r{���) r����rx���r���rZ���rY���rW���r����r����r����)rp���r]���r���r���r����__iter__���s ����zBytecode.__iter__c�������������C���s���dj�|�jj|�j�S�)Nz{}({!r}))�format� __class__r-���r����)rp���r���r���r����__repr__���s���� zBytecode.__repr__c�������������C���s$���x|j�r|j�}qW�|�|jj|jd�S�)N)r����)r4���r5���r6���r7���)�clsr8���r���r���r����from_traceback���s���� zBytecode.from_tracebackc�������������C���s ���t�|�j�S�)N)rN���r����)rp���r���r���r����info���s����z Bytecode.infoc�������������C���s`���|�j�}|�jd�k r|�j}nd}tj���2}t|j|j|j|j|�j |�j |�j||d� �|j��S�Q�R�X�d�S�)Nr9���)r����rI���r����r����rz���r{���r���r�������) r����r�����io�StringIOr)���r���rZ���rY���rW���r����r����r�����getvalue)rp���r]���ri����outputr���r���r���r������s���� zBytecode.dis) r-���rs���rt���r����r����r�����classmethodr����r����r���r���r���r���r���r������s��� c��������������C���sd���dd�l�}�|�j��}|jd|�j��ddd��|j��}|j�}|j��}W�d�Q�R�X�t||jjd�}t |��d�S�)Nr����infile�?�-)r,����nargs�defaultr���) �argparse�ArgumentParser�add_argumentZFileType� parse_argsr�����readr���r���r���)r�����parser�argsr����r���r����r���r���r����_test���s����r�����__main__)N)N)NNNNNr���r����)r����r����)r����NNNNN)2r0����types�collectionsr����Zopcoder���Z_opcodes_all� MethodType�FunctionType�CodeTyper�����staticmethodr,���r$���Zopmapr���r���r���r���rD���rL���rM���r���rN���r���� namedtupler_���rk����__doc__rm���r|���rn���ri���rf���rg���r ���r���r}���r~���rx���r���r)���r+���r���r����r ���r ���r���r����r-���r���r���r���r����<module>���sv��� #3� 2�=