Your IP : 3.12.154.26
�
!��gv����dZddlZddlZddlZddlZddl�ddlmZmZm Z m
Z
mZmZm
Z
mZgd�ezZ[ejej ej"eeefZedZdedfed fed
ffZedZdZed
ZedZedZ edZ!edZ"edZ#edZ$edZ%edZ&edZ'edZ(edZ)e*e+�Z,e-e�Z.e/e,�D��cgc]\}}|jad�s�|��c}}Z1e2e1e�D]\Z3Z4e4e,e3<e3e.e4<�e
jj�D���cic]\}}|D]}||���c}}}Z6d�Z7deddddd�d�Z8dedddd�d�Z9d d!d"d#d$d%d&d'd(d)d*�
Z:d+�Z;Gd,�d-�Z<e<�Z=d.�Z>d/�Z?d0�Z@d1�ZAd2�ZBdd3�d4�ZCej�d5gd6�dgd7z�8�ZEej�d9gd:�dg�8�ZFd;eFjV_d<eFj
_d=eFj�_d>eFj�_d?eFj�_d@eFj�_dAeFj�_dBeFj�_dCeFj�_ej�dDdE�ZNdFZOdGZPGdH�dIeF�ZQddddJ�dK�ZRdL�ZSdM�ZTdN�ZUdO�ZVdP�ZWdQ�ZX dfdS�ZYdgdddd�dT�ZZddddd�dU�Z[ dhdddRdddV�dW�Z\dX�Z]eZZ^dYZ_dZe_d[z
zZ`d\�Zad]�Zbd^�Zcd_�Zdd`�ZeGda�db�Zfdedc�Zgehddk(reg�yycc}}wcc}}}w)iz0Disassembler of Python byte code into mnemonics.�N)�*)�__all__�
_cache_format�_inline_cache_entries�_nb_ops�_intrinsic_1_descs�_intrinsic_2_descs�_specializations�_specialized_instructions)� code_info�dis�disassemble�distb�disco�findlinestarts�
findlabels� show_code�get_instructions�Instruction�Bytecode�FORMAT_VALUE)N��str�repr�ascii�
MAKE_FUNCTION)�defaults�
kwdefaults�annotations�closure�
LOAD_CONST�RETURN_CONST�LOAD_GLOBAL� BINARY_OP�
JUMP_BACKWARD�FOR_ITER�SEND� LOAD_ATTR�LOAD_SUPER_ATTR�CALL_INTRINSIC_1�CALL_INTRINSIC_2�CACHE�<c�V� t||d�S#t$rYnwxYwt||d�S)z�Attempts to compile the given source, first as an expression and
then as a statement if the first approach fails.
Utility function to accept strings in functions that otherwise
expect code objects
�eval�exec)�compile�SyntaxError)�source�names �*/opt/alt/python312/lib64/python3.12/dis.py�_try_compiler6@s7��
��v�t�V�,�,���
��
���6�4��(�(s�� �F��file�depth�show_caches�adaptivec�Z�|�t|||��yt|d�r|j}t|d�r
|j}nJt|d�r
|j}n1t|d�r
|j
}nt|d�r|j}t|d�rlt|jj��}|D]C\}}t|t�s�td |z|�
� t|||||��t|�
��Eyt|d
�rt|||||��yt|t t"f�rt%|||��yt|t&�rt)|||||��ytdt+|�j,z��#t$r}td||�
�Yd}~��d}~wwxYw)a0Disassemble classes, methods, functions, and other compiled objects.
With no argument, disassemble the last traceback.
Compiled objects currently include generator objects, async generator
objects, and coroutine objects, all of which store their code object
in a special attribute.
N�r8r:r;�__func__�__code__�gi_code�ag_code�cr_code�__dict__zDisassembly of %s:�r8r7zSorry:�co_code)r8r:�(don't know how to disassemble %s objects)r�hasattrr>r?r@rArB�sortedrC�items�
isinstance�
_have_code�printr
� TypeError�_disassemble_recursive�bytes� bytearray�_disassemble_bytesr�_disassemble_str�type�__name__) �xr8r9r:r;rIr4�x1�msgs r5r
r
Msv�� �y�
�4�[�8�D���q�*��
�J�J���q�*��
�J�J�� ��I� �
�I�I�� ��I� �
�I�I�� ��I� �
�I�I���q�*���q�z�z�'�'�)�*���H�D�"��"�j�)��*�T�1��=�4����U��V^�_��4� ��
��I� ��q�t�5�k�\d�e� �A��y�)� *��1�4�[�A� �A�s� ����U��V^�_��B��Q��(�(�)�*� *��!�4��(�C�d�3�3��4�s�&F � F*�F%�%F*r=c�X�|�a ttd�rtjj}ntj}|jr|j}|jr�t|jj|j|||��y#t
$r
t
d�d�wxYw)z2Disassemble a traceback (default: last traceback).N�last_excz no last traceback to disassembler=)rG�sysrY�
__traceback__�last_traceback�AttributeError�RuntimeError�tb_nextr�tb_frame�f_code�tb_lasti)�tbr8r:r;s r5rrzs��� �z� M��s�J�'��\�\�/�/���'�'���j�j�r�z�z�"�b�j�j�����"�"�B�K�K�d��^f�g��� M��A�B��L� M�s�;B�B)� OPTIMIZED� NEWLOCALS�VARARGS�VARKEYWORDS�NESTED� GENERATOR�NOFREE� COROUTINE�ITERABLE_COROUTINE�ASYNC_GENERATOR)
������ �@��ic ��g}td�D]D}d|z}||zs�|jtj|t |���||z}|r�Dn|jt |��dj|�S)z+Return pretty representation of code flags.rsrn�, )�range�append�COMPILER_FLAG_NAMES�get�hex�join)�flags�names�i�flags r5�pretty_flagsr��ss���E�
�2�Y���!�t���4�<��L�L�,�0�0��s�4�y�A�B��T�M�E���
� ���S��Z� ��9�9�U���c��eZdZd�Zy)�_Unknownc��y)Nz <unknown>���selfs r5�__repr__z_Unknown.__repr__�s��r�N)rT�
__module__�__qualname__r�r�r�r5r�r��s��r�r�c��t|d�r|j}t|d�r
|j}nJt|d�r
|j}n1t|d�r
|j}nt|d�r|j
}t
|t�rt|d�}t|d�r|Stdt|�jz��) zDHelper to handle methods, compiled or raw code objects, and strings.r>r?r@rArBz
<disassembly>rErF)rGr>r?r@rArBrJrr6rMrSrT�rUs r5�_get_code_objectr��s����q�*��
�J�J���q�*��
�J�J�� ��I� �
�I�I�� ��I� �
�I�I�� ��I� �
�I�I���!�S����O�,���q�)����
�>���G�$�$�%�&�&r�c�H�t|}|tvrtt|S|S�N)�_all_opname�deoptmap�
_all_opmap)�opr4s r5�_deoptopr��s&���r�?�D�)-��)9�:�h�t�n�%�A�r�Ar�c�6�|r|jS|jSr�)�_co_code_adaptiverE)�cor;s r5�_get_code_arrayr��s��#+�2���;����;r�c�*�tt|��S)z1Formatted details of methods, functions, or code.)�_format_code_infor�r�s r5rr�s���-�a�0�1�1r�c��g}|jd|jz�|jd|jz�|jd|jz�|jd|jz�|jd|j
z�|jd|jz�|jd|jz�|jdt|j�z�|jr?|jd �t|j�D]}|jd
|z��|jr?|jd�t|j�D]}|jd|z��|jr?|jd
�t|j�D]}|jd|z��|jr?|jd�t|j�D]}|jd|z��|jr?|jd�t|j�D]}|jd|z��dj!|�S)NzName: %szFilename: %szArgument count: %szPositional-only arguments: %szKw-only arguments: %szNumber of locals: %szStack size: %szFlags: %sz
Constants:z%4d: %rzNames:z%4d: %szVariable names:zFree variables:zCell variables:�
)rz�co_name�co_filename�co_argcount�co_posonlyargcount�co_kwonlyargcount�
co_nlocals�co_stacksizer��co_flags� co_consts� enumerate�co_names�co_varnames�co_freevars�co_cellvarsr~)r��lines�i_c�i_ns r5r�r��s����E� �L�L�(�2�:�:�5�6� �L�L�(�2�>�>�9�:� �L�L�(�2�>�>�9�:� �L�L�0�2�3H�3H�H�I� �L�L�(�2�+?�+?�?�@� �L�L�(�2�=�=�8�9� �L�L�(�2�?�?�:�;� �L�L�(�<����+D�D�E� �|�|�
���\�"��R�\�\�*�C��L�L��S��)�+� �{�{�
���X���R�[�[�)�C��L�L��S��)�*� �~�~�
���&�'��R�^�^�,�C��L�L��S��)�-� �~�~�
���&�'��R�^�^�,�C��L�L��S��)�-� �~�~�
���&�'��R�^�^�,�C��L�L��S��)�-��9�9�U��r�rDc�0�tt|�|��y)z}Print details of methods, functions, or code to *file*.
If *file* is not provided, the output is printed on stdout.
rDN)rLr)r�r8s r5rr�s��
�)�B�-�d�#r�� Positions)�lineno�
end_lineno�
col_offset�end_col_offsetrp)r�_Instruction) �opname�opcode�arg�argval�argrepr�offset�starts_line�is_jump_target� positionsz!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 FalsezPdis.Positions object holding the span of source code covered by this instruction�_ExceptionTableEntryzstart end target depth lasti��c��eZdZdZdd�Zy)ra�Details for a bytecode operation
Defined fields:
opname - human readable name for operation
opcode - numeric code for operation
arg - numeric argument to operation (if any), otherwise None
argval - resolved arg value (if known), otherwise same as arg
argrepr - human readable description of operation argument
offset - start index of operation within bytecode sequence
starts_line - line started by this opcode (if any), otherwise None
is_jump_target - True if other code jumps to here, otherwise False
positions - Optional dis.Positions object holding the span of source code
covered by this instruction
c��g}|rD|j�$d|z}|j||jz�n|jd|z�|r|jd�n|jd�|jr|jd�n|jd�|jt|j�j|��|j|jjt��|j�d|jt|j�jt��|jr!|jd|jzdz�dj|�j�S) a%Format instruction details for inclusion in disassembly output
*lineno_width* sets the width of the line number field (0 omits it)
*mark_as_current* inserts a '-->' marker arrow as part of the line
*offset_width* sets the width of the instruction offset field
z%%%dd� z-->z z>>� �(�))r�rzr�rr��rjustr��ljust�
_OPNAME_WIDTHr��_OPARG_WIDTHr�r~�rstrip)r��lineno_width�mark_as_current�offset_width�fields�
lineno_fmts r5�_disassemblezInstruction._disassemble0s#��������+�$�|�3�
��
�
�j�4�+;�+;�;�<��
�
�c�L�0�1���M�M�%� ��M�M�%� �����M�M�$���M�M�$���
�
�d�4�;�;�'�-�-�l�;�<��
�
�d�k�k�'�'�
�6�7��8�8���M�M�$�t�x�x�.�.�.�|�<�=��|�|��
�
�c�D�L�L�0�3�6�7��x�x���&�&�(�(r�N)�Frp)rTr�r��__doc__r�r�r�r5rr s��
�#)r�r)�
first_liner:r;c
��t|�}tt|��}|�||jz
}nd}t t||�|j|j|j|||j�|��S)a�Iterator for the opcodes in methods, functions or code
Generates a series of Instruction named tuples giving the details of
each operations in the supplied code.
If *first_line* is not None, it indicates the line number that should
be reported for the first source line in the disassembled code.
Otherwise, the source line information (if any) is taken directly from
the disassembled code object.
r)�co_positionsr:)
r��dictr�co_firstlineno�_get_instructions_bytesr��_varname_from_opargr�r�r�)rUr�r:r;r��
linestarts�line_offsets r5rrVsv��
�!� �B��n�R�(�)�J��� �2�#4�#4�4����"�?�2�x�#@�#%�#9�#9�#%�;�;����#-�{�02���0A�/:�<�<r�c�4�|tvsJ�t}|�||}|S)z�Helper to get the value of the const in a hasconst op.
Returns the dereferenced constant if this is possible.
Otherwise (if it is a LOAD_CONST and co_consts is not
provided) returns the dis.UNKNOWN sentinel.
)�hasconst�UNKNOWN)r�r�r�r�s r5�_get_const_valuer�ns)����>��>�
�F����3����Mr�c�N�t|||�}|turt|�nd}||fS)aHelper to get optional details about const references
Returns the dereferenced constant and its repr if the value
can be calculated.
Otherwise returns the sentinel value dis.UNKNOWN for the value
and an empty string for its repr.
r)r�r�r)r�r�r�r�r�s r5�_get_const_infor�|s.���b�#�y�
1�F�$�G�3�d�6�l��G��7�?�r�c�0�|�
||fi|��}||fStdfS)a
Helper to get optional details about named references
Returns the dereferenced name as both value and repr if the name
list is defined.
Otherwise returns the sentinel value dis.UNKNOWN for the value
and an empty string for its repr.
r)r�)�
name_index�get_name� extrainfor�s r5�_get_name_infor��s-�����*�2� �2���v�~����{�r�c�l�t|�}|dz}|dzr|dz}t|�}||dzz}|dzr�|S)N�?rt�)�next)�iterator�b�vals r5�
_parse_varintr��sJ���X��A�
�b�&�C�
�B�$��� ����N���q��t����B�$��Jr�c �.�t|j�}g} t|�dz}t|�dz}||z}t|�dz}t|�}|dz }t|dz�} |j t||||| ���l#t$r|cYSwxYw)Nrorn)�iter�co_exceptiontabler��boolrzr��
StopIteration)
�coder��entries�start�length�end�target�dlr9�lastis
r5�_parse_exception_tabler�s����D�*�*�+�H��G���!�(�+�A�-�E�"�8�,�Q�.�F��&�.�C�"�8�,�Q�.�F��x�(�B��!�G�E���A��J�E��N�N�/��s�F�E�5�Q�R��������s�A-B�B�Bc��dt|vS)Nr%)r�)r�s r5�_is_backward_jumpr�s���f�R�j�(�(r�r�c #�@�K�|xstd�}|�dn|j} tt|��}
|D]*\}}}
}}t ||�D]}|
j|
���,d}t
|�D�]&\}}�|�|j|d�}|�||z
}||
v}d}d}tt|d��}t|�}t|}����}|tvrt|�|�\}}�n�|tvr�|tk(r"t!�dz| �\}}�dz�r�|�r�d|z}�n�|t"k(r"t!�dz| �\}}�dz�rz|�rwd|z}�np|t$k(r"t!�dz| �\}}�dz�rO|�rLd|z}�nEt!�| �\}}�n4|t&vr�dz}d t)|�z}�n|t*vr2t-|�r�n�}|dz|dzz}|d|zz
}d t)|�z}n�|t.vs|t0vrt!�|�\}}n�|t2vrt4�dz }|}n�|t6k(r1t8�d
z\}}|t;�dz�f}|dry|r|dz
}|dz
}nl|t<k(r(dj?�fd
�tAtB�D��}n;|tDk(r
tF�\}}n%|tHk(r
tJ�}n|tLk(r tN�}tQtR||�||||||� ��t|}|s��g|st |�D]}t|d�����tTtV|jY�D]\}}t |�D]l}|dz
}|dk(r5|||d|zz}|�dtZj]|t^j`���}nd}tQdtbdd||ddtt|d��� ���n����)y�w)a&Iterate over the instructions in a bytecode string.
Generates a sequence of Instruction namedtuples giving the details of each
opcode. Additional information about the code's runtime environment
(e.g. variable names, co_consts) can be specified using optional
arguments.
r�NrrornzNULL + zNULL|self + rpzto r�rxzwith formatc3�8�K�|]\}}�d|zzr|���y�w)rnNr�)�.0r��sr�s �r5� <genexpr>z*_get_instructions_bytes.<locals>.<genexpr>�s(�����$5�2P�$�!�Q�'*�a��d�|�%&�2P�s�rz: r,F)2r��__getitem__�setrry�add�_unpack_opargsr|r�r�r�rr�r��hasnamer#r�r(r)�hasjabsr�hasjrelr�haslocal�hasfree�
hascompare�cmp_opr�FORMAT_VALUE_CONVERTERSr�rr~r��MAKE_FUNCTION_FLAGSr$rr*rr+r rr�rr�rI�int�
from_bytesrZ� byteorderr,)r��varname_from_opargr�r�r�r��exception_entriesr�r:r��labelsr�r�r��_r�r�r�r�r�r�r�r��deop�caches�
signed_argr4�size�datar�s @r5r�r��s������ �+�4��8�L��}�t�%�*;�*;�H�
��D�!�
"�F�$5� ��s�F�A�q��u�c�"�A��J�J�v��#�%6��K�)�$�/����C��!�$�.�.���6�K��&��{�*���6�)�������t�L�"�5�6� ���|��&�t�,���?�
�F��x��"1�$��Y�"G��������;�&�&4�S�!�V�X�&F�O�F�G��a��W�"+�g�"5���Y�&�&4�S�!�V�X�&F�O�F�G��a��W�"0�7�":���_�,�&4�S�!�V�X�&F�O�F�G��a��W�"0�7�":��&4�S�(�&C�O�F�G�����Q����$�v�,�.�����%6�t�%<�c�T�#�
��!��j��l�2���!�f�*�$���$�v�,�.����!�T�W�_�"0��6H�"I������#���Q���� ����%�"9�#��)�"D���� �$�s�S�y�/�2���!�9���4����}�,�G���&��)�)�$5�)�<O�2P�$5�5����"�$�S�\�
��7��)�)�,�S�1���)�)�,�S�1���+�b�/�2��v�w� �+�~�y�J� J�'�t�,������6�]���\�2�&�#��'��t��5�;�;�=�J�D�$��4�[���!�����6�����T��(9�:�D�!%��b�����c�m�m�)L�(M�N�G� �G�!��U�A�t�W�f�d�E��t�L�"�5�6���!�>�U0�s�NNc���tt|��}t|�}tt ||�||j
|j|j||||j�|��
y)zDisassemble a code object.)r8rr�r:N) r�rrrQr�r�r�r�r�)r�r�r8r:r;r�rs r5rrsY���n�R�(�)�J�.�r�2����r�8�4��b�4�4��{�{�B�L�L�*�4�):�$&�O�O�$5�;� Pr�c���t||||��|�|dkDrS|�|dz
}|jD]<}t|d�s�t|��td|�d�|��t |||||���>yy) Nr=rrnrErDzDisassembly of �:r7)rr�rGrLrN)r�r8r9r:r;rUs r5rNrN)sp�����;��J��}��� ����A�I�E����A��q�)�$��4� ��a�1��=�&��D��;�QY�� �"r�)r8r�rr�r:c
�D�t|�}|r9t|j��|z}|dk\rtt |��}
nd}
nd}
t|�dz
}|dk\rtt |��}nd}t|||||||| |
�� D]�}|xr|jduxr|jdkD}|rt|��|
r|j|k(}nD|j|cxkxr/|jdtt|j�zzknc}t|j|
||�|����|rntd |��|D][}|jrd
nd}|jdz
}td|j�d
|�d|j �d|j"�d|��
|���]yy)Ni�r�rroi'rp�r�rr�r:rDzExceptionTable:z lastirr�z to z -> z [�])r��max�values�lenrr�r�r�rLrr�r�r�r�r�r�r�r9)r�r�rr�r�r�r8r�rr�r:�show_lineno� maxlinenor�� maxoffsetr��instr�new_source_line�is_current_instr�entryr�s r5rQrQ6s���
�z�"�K���
�)�)�+�,�{�:� �����s�9�~�.�L��L����D� �A�
�I��E���3�y�>�*����(��/A�5�)2�J�5@�;L�6B�5@�B��'�,� �,�,�D�8�,� �<�<�!�+� ���t���$�|�|�u�4�� %�|�|�u� T��<�<�!�&;�H�U�\�\�<R�&S�"S�S� T��
�e� � ��/?��N�� �#B�&�
��d�+�&�E� %���H��E��)�)�A�+�C��B�u�{�{�m�4��u�D�����b����
�Q�u�g�V�]a�b�'�r�c�0�tt|d�fi|��y)z<Compile the source string, then disassemble the code object.z<dis>N)rNr6)r3�kwargss r5rRrRcs���<���8�C�F�Cr�rsrornc#�K�d}d}tdt|�d�D]g}|r|dz}�||}t|�}t|}|tvr1||dz|z}|t
k(r|dznd}|tk\r|dtzz}nd}d}|||f���iy�w)Nrrornrq)ryr)r�r�hasarg�EXTENDED_ARG�
_INT_OVERFLOW)r��extended_argrr�r�rr�s r5rros������L�
�F�
�1�c�$�i��
#����a�K�F��
�!�W����|��&�t�,���6�>��q��s�)�l�*�C�)-��)=�C�1�H�1�L��}�,���M� 1�1���C��L��"�c�l��'$�s�BBc��g}t|�D]l\}}}|��
t|�}t|}|tvr"t |�r|}|dz|dzz}|d|zz
}n|t
vr|dz}n�W||vs�\|j
|��n|S)z`Detect all offsets in a byte code which are jump targets.
Return the list of offsets.
ro)rr�rrrr
rz)r�rr�r�r�rr�labels r5rr�s����F�)�$�/����C��?��B�<�D�*�4�0�F��w��$�T�*��$�C���
�S��U�*����V��#������A�����F�"��
�
�e�$�0��Mr�c#�dK�d}|j�D]\}}}|��
||k7s�|}||f���y�w)zqFind the offsets in a byte code which are start of lines in the source.
Generate pairs (offset, lineno)
N)�co_lines)r��lastliner�r��lines r5rr�sE����
�H� �M�M�O���s�D����� 0��H���+��,��s�0�0�0c#�K�td}|j}|j}t|j�D���cgc]\}}}|t
k7r||f��}}}}t
|�D]l\}\}} ||k(s�|dk\s�||dz
}
||dz
}|
dtvs�1|dtvs�=t|d|d|�}t|
d|
d|�}
|| ||
f���nycc}}}w�w)z�Find import statements in the code
Generate triplets (name, level, fromlist) where
name is the imported module and level, fromlist are
the corresponding args to __import__.
�IMPORT_NAMErornrN) �opmapr�r�rrEr5r�r�r�)r�r?�constsr�rr�r��opargsr��oparg�from_op�level_op�level�fromlists r5�
_find_importsrH�s������
�&�K�
�\�\�F��K�K�E�*8����*D�)�*D�J�A�r�3��<�'��3�i�*D�F�)�#�F�+���;�B��
����a���Q�q�S�k�G��a��c�{�H���
�h�&�8�A�;�(�+B�(��!��h�q�k�6�J��+�G�A�J���
�F�K���U�|�U�H�5�5�,��)�s(�;C�C�C�3C�9C�C�!:Cc#�K�tdtdh}|j}t|j�D]\}}}||vs�||���y�w)z\Find names of variables which are written in the code
Generate sequence of strings
�
STORE_NAME�STORE_GLOBALN)r@r�rrE)r�� STORE_OPSr�rr�r�s r5�_find_store_namesrM�sT���� �l��
�n���I�
�K�K�E�$�R�Z�Z�0�
��2�s�
��?���*��1�s�?A�
Ac�R�eZdZdZddddd�d�Zd�Zd�Zeddd�d ��Zd
�Z d�Z
y)raThe bytecode operations of a piece of code
Instantiate this with a function, method, other compiled object, string of
code, or a code object (as returned by compile()).
Iterating over this yields the bytecode operations as Instruction instances.
NF)r��current_offsetr:r;c��t|�x|_}|�|j|_d|_n||_||jz
|_tt
|��|_||_||_ t|�|_||_||_
y)Nr)r��codeobjr�r��_line_offsetr�r�_linestarts�_original_objectrOrrr:r;)r�rUr�rOr:r;r�s r5�__init__zBytecode.__init__�s���,�Q�/�/���r��� �/�/�D�O� !�D��(�D�O� *�R�->�->� >�D����r� 2�3��� !���,���!7��!;���&��� ��
r�c��|j}tt||j�|j|j
|j|j|j|j|j�|j�� S)Nr%)rQr�r�r;r�r�r�rSrRrr�r:)r�r�s r5�__iter__zBytecode.__iter__�sk��
�\�\��&��r�4�=�=�'I�')�'=�'=�')�{�{�B�L�L�'+�'7�'7�37�3D�3D�9=�9O�9O�46�O�O�4E�37�3C�3C�E� Er�c�b�dj|jj|j�S)Nz{}({!r}))�format� __class__rTrTr�s r5r�zBytecode.__repr__�s*��� � ����!8�!8�!%�!6�!6�8� 8r�)r:r;c��|jr|j}|jr�||jj|j||��S)z/ Construct a Bytecode from the given traceback )rOr:r;)r_r`rarb)�clsrcr:r;s r5�from_tracebackzBytecode.from_traceback�sB���j�j����B��j�j���K�K���r�{�{��^f�
�
r�c�,�t|j�S)z3Return formatted information about the code object.)r�rQr�s r5�infoz
Bytecode.infos�� ����.�.r�c��|j}|j�
|j}nd}tj�5}t t||j�|j|j|j|j|j|||j|j�|j��|j�cddd�S#1swYyxYw)z3Return a formatted view of the bytecode operations.N���)
rr�r�r�r�r8r�rr�r:)rQrO�io�StringIOrQr�r;r�r�r�rSrRrr�r:�getvalue)r�r�r��outputs r5r
zBytecode.diss���
�\�\�����*��(�(�F��F�
�[�[�]�f���r�4�=�=�A�24�2H�2H�%'�[�[�B�L�L�*.�*:�*:�+/�+<�+<�$*�%+�15�1G�1G�,.�O�O�,=�+/�+;�+;�
=��?�?�$��]�]�s�BC�C)rTr�r�r�rUrWr��classmethodr]r_r
r�r�r5rr�sF���)-�T�u�_d�
!� E�8��/4�u�
��
�/�%r�rc�R�ddl}|j�}|jd|jd�dd��|j |��}|j
5}|j
�}ddd�t|j
jd�}t|�y#1swY�6xYw) Nr�infile�rb�?�-)rS�nargs�default)�argsr0)
�argparse�ArgumentParser�add_argument�FileType�
parse_argsrh�readr1r4r
)rnro�parserrhr3r�s r5�mainrvs����
�
$�
$�
&�F�
����x�'8�'8��'>�c�SV��W����$��'�D�
���������
��6�4�;�;�+�+�V�4�D���I�
��s�B�B&�__main__r�)NNNNrr�NF)ra)raNNNN)ir�rZ�types�collectionsrbr�r�_opcodes_allrrrrr r
r�
MethodType�FunctionType�CodeTyperf�staticmethodrSrKr@rrrrrrrr!r"r#r$r%r&r'r(r)r*r+r,�listr�r�r�r�r��
startswith�_empty_slot�zip�spec_op�specializedrIr�r6r
rr{r�r�r�r�r�r�rr�r�
namedtupler�r�r�r�r�r�r�r�r�r�r�r�rrr�r�r�r�rrr�rrNrQrRr� _INT_BITSr6rrrrHrMrrvrT)�slotr4�base�familyr�s00000r5�<module>r�s@��6�
��� �� � � �:�<H�I������� 2� 2�E�N�N��<��/�
��^�$����%�L� �6�N�
�G�� ���o�&�
�J��
�<�
�
��^�$���M�"���+�� ��o�&�
������V�}���+�� ��)�*���+�,���+�,��
�g����6�l��
�%�[�
�&/��&<�U�&<�
��d����PS�@T�t�&<�U����-F�G��G�[�&�K���%�J�{��H�+A�*:�*@�*@�*B��*B�,�$��V\�{�K���V\�K�*B���)�+*��D�e�e�+*�Zh�4�U�U�h�" ���������������
�*��&�.B�<�2��@�$�
#�K�"�"����V�a�Z�
� �&�{�%�%��
��V��� B�����:�����S�����T�����Q�����Q�����#Y���� �&Y����#�!s�����-�{�-�-�.D�"�$���
���3)�,�3)�l'+���<�0�
���� )�6:�26�9:�?C�(-� k�ZP�d���P�(,�4�U�UZ��;?�>B�+c�#��b�$(�e�+c�ZD� ��
� ��i�!�m�$�
��0�0
�6�,
� E%�E%�P ��z���F���]V��s� K*�#K*�K0
?>