
    Rhv                        d Z ddlZddlZddlZddlZddl ddlmZmZm	Z	m
Z
mZmZmZmZ g dez   Z[ej                  ej                   ej"                  eeefZed   Zdedfed	fed
ffZed   ZdZed   Zed   Zed   Z ed   Z!ed   Z"ed   Z#ed   Z$ed   Z%ed   Z&ed   Z'ed   Z(ed   Z) e*e+      Z, e-e      Z. e/e,      D  cg c]  \  } }|ja                  d      s|  c}} Z1 e2e1e      D ]  \  Z3Z4e4e,e3<   e3e.e4<     ejj                         D ci c]  \  }}|D ]  }||  c}}}Z6d Z7deddddddZ8dedddddZ9d d!d"d#d$d%d&d'd(d)d*
Z:d+ Z; G d, d-      Z< e<       Z=d. Z>d/ Z?d0 Z@d1 ZAd2 ZBdd3d4ZC ej                  d5g d6dgd7z  8      ZE ej                  d9g d:dg8      ZFd;eFjV                  _         d<eFj
                  _         d=eFj                  _         d>eFj                  _         d?eFj                  _         d@eFj                  _         dAeFj                  _         dBeFj                  _         dCeFj                  _          ej                  dDdE      ZNdFZOdGZP G dH dIeF      ZQddddJdKZRdL ZSdM ZTdN ZUdO ZVdP ZWdQ ZX	 	 	 	 	 dfdSZYdgdddddTZZddddddUZ[	 	 dhdddRdddVdWZ\dX Z]eZZ^dYZ_dZe_d[z
  z  Z`d\ Zad] Zbd^ Zcd_ Zdd` Ze G da db      Zfdc Zgehddk(  r eg        yyc c}} w c c}}}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        $ r Y nw xY wt        | |d      S )zAttempts 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     /usr/lib/python3.12/dis.py_try_compiler6   @   s7    vtV,, 64((s    	Ffiledepthshow_cachesadaptivec                Z   | t        |||       yt        | d      r| j                  } t        | d      r| j                  } nJt        | d      r| j                  } n1t        | d      r| j
                  } nt        | d      r| j                  } t        | d      rlt        | j                  j                               }|D ]C  \  }}t        |t              st        d	|z  |
       	 t        |||||       t        |
       E yt        | d      rt        | ||||       yt        | t         t"        f      rt%        | ||       yt        | t&              rt)        | ||||       yt        dt+        |       j,                  z        # t        $ r}t        d||
       Y d}~d}~ww xY w)a0  Disassemble 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r8   r:   r;   __func____code__gi_codeag_codecr_code__dict__zDisassembly of %s:r8   r7   zSorry:co_code)r8   r:   (don't know how to disassemble %s objects)r   hasattrr>   r?   r@   rA   rB   sortedrC   items
isinstance
_have_codeprintr   	TypeError_disassemble_recursivebytes	bytearray_disassemble_bytesr   _disassemble_strtype__name__)	xr8   r9   r:   r;   rI   r4   x1msgs	            r5   r   r   M   s{    	y4[8Dq*JJq*JJ	I	II	I	II	I	IIq*qzz'')* 	!HD""j)*T1=4UV^_ 4 	! 
I	qt5k\de	Ay)	*14[A	As	UV^_BQ(() * 	* ! 4(Cd334s   &F			F*F%%F*r=   c                X   | a	 t        t        d      rt        j                  j                  } nt        j                  } | j                  r| j                  } | j                  rt        | j                  j                  | j                  |||       y# t
        $ r t        d      dw xY w)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)tbr8   r:   r;   s       r5   r   r   z   s    	z	MsJ'\\//'' jjrzz"bjj""BKKd^fg  	MABL	Ms   ;B B)	OPTIMIZED	NEWLOCALSVARARGSVARKEYWORDSNESTED	GENERATORNOFREE	COROUTINEITERABLE_COROUTINEASYNC_GENERATOR)
                   @         i   c           	          g }t        d      D ]D  }d|z  }| |z  s|j                  t        j                  |t	        |                   | |z  } | rD n |j                  t	        |              dj                  |      S )z+Return pretty representation of code flags.rs   rn   , )rangeappendCOMPILER_FLAG_NAMESgethexjoin)flagsnamesiflags       r5   pretty_flagsr      sx    E2Y !!t4<LL,00s4yABTME! 	SZ 99U    c                       e Zd Zd Zy)_Unknownc                      y)Nz	<unknown> selfs    r5   __repr__z_Unknown.__repr__   s    r   N)rT   
__module____qualname__r   r   r   r5   r   r      s    r   r   c                    t        | d      r| j                  } t        | d      r| j                  } nJt        | d      r| j                  } n1t        | d      r| j                  } nt        | d      r| j
                  } t        | t              rt        | d      } t        | d      r| S t        dt        |       j                  z        )	zDHelper to handle methods, compiled or raw code objects, and strings.r>   r?   r@   rA   rB   z<disassembly>rE   rF   )rG   r>   r?   r@   rA   rB   rJ   r   r6   rM   rS   rT   rU   s    r5   _get_code_objectr      s     q*JJq*JJ	I	II	I	II	I	II!SO,q)
>G$$% & &r   c                 H    t         |    }|t        v rt        t        |      S | S N)_all_opnamedeoptmap
_all_opmap)opr4   s     r5   _deoptopr      s&    r?D)-)9:htn%ArAr   c                 6    |r| j                   S | j                  S r   )_co_code_adaptiverE   )cor;   s     r5   _get_code_arrayr      s    #+2;;r   c                 *    t        t        |             S )z1Formatted details of methods, functions, or code.)_format_code_infor   r   s    r5   r   r      s    -a011r   c                    g }|j                  d| j                  z         |j                  d| j                  z         |j                  d| j                  z         |j                  d| j                  z         |j                  d| j
                  z         |j                  d| j                  z         |j                  d| j                  z         |j                  dt        | j                        z         | j                  r?|j                  d	       t        | j                        D ]  }|j                  d
|z          | j                  r?|j                  d       t        | j                        D ]  }|j                  d|z          | j                  r?|j                  d       t        | j                        D ]  }|j                  d|z          | j                  r?|j                  d       t        | j                        D ]  }|j                  d|z          | j                  r?|j                  d       t        | j                        D ]  }|j                  d|z          dj!                  |      S )NzName:              %szFilename:          %szArgument count:    %szPositional-only arguments: %szKw-only arguments: %szNumber of locals:  %szStack size:        %szFlags:             %sz
Constants:z%4d: %rzNames:z%4d: %szVariable names:zFree variables:zCell 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       r5   r   r      s   E	LL(2::56	LL(2>>9:	LL(2>>9:	LL023H3HHI	LL(2+?+??@	LL(2==89	LL(2??:;	LL(<+DDE	||\"R\\* 	*CLLS)	*	{{XR[[) 	*CLLS)	*	~~&'R^^, 	*CLLS)	*	~~&'R^^, 	*CLLS)	*	~~&'R^^, 	*CLLS)	*99Ur   rD   c                0    t        t        |       |       y)z}Print details of methods, functions, or code to *file*.

    If *file* is not provided, the output is printed on stdout.
    rD   N)rL   r   )r   r8   s     r5   r   r      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 operationzNumeric 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_ExceptionTableEntryzstart end target depth lasti      c                       e Zd ZdZddZy)r   a  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                  || j                   z         n|j                  d|z         |r|j                  d       n|j                  d       | j                  r|j                  d       n|j                  d       |j                  t        | j                        j                  |             |j                  | j                  j                  t                     | j                  d|j                  t        | j                        j                  t                     | j                  r!|j                  d| j                  z   dz          dj                  |      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   rz   r   r   r   rjustr   ljust_OPNAME_WIDTHr   _OPARG_WIDTHr   r~   rstrip)r   lineno_widthmark_as_currentoffset_widthfields
lineno_fmts         r5   _disassemblezInstruction._disassemble0  s#    +$|3
j4+;+;;<cL01MM% MM% MM$MM$d4;;'--l;<dkk''6788MM$txx...|<=||cDLL0367xx&&((r   N)   Frp   )rT   r   r   __doc__r   r   r   r5   r   r      s    #)r   r   )
first_liner:   r;   c          
          t        |       }t        t        |            }|||j                  z
  }nd}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   )rU   r   r:   r;   r   
linestartsline_offsets          r5   r   r   V  sv     
!	BnR()J 2#4#44"?2x#@#%#9#9#%;;#-{020A/:< <r   c                 4    | t         v sJ t        }|||   }|S )zHelper 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   n  s)     >>F3Mr   c                 N    t        | ||      }|t        urt        |      nd}||fS )a  Helper 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1F$G3d6lG7?r   c                 0    | || fi |}||fS t         dfS )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        |       }|dz  }|dz  r|dz  }t        |       }||dz  z  }|dz  r|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        |      dz  }t        |      dz  }||z   }t        |      dz  }t        |      }|dz	  }t        |dz        }	|j	                  t        |||||	             l# t        $ r |cY S w xY w)Nro   rn   )iterco_exceptiontabler   boolrz   r   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!GEAJENN/sFE5QR   s   A-B BBc                     dt         |    v S )Nr%   )r   )r   s    r5   _is_backward_jumpr    s    fRj((r   r   c	              #   @  K   |xs t        d      }|dn|j                  }	t        t        |             }
|D ]*  \  }}}}}t	        ||      D ]  }|
j                  |        , d}t        |       D ]&  \  }}||j                  |d      }|||z  }||
v }d}d}t        t        |d       }t        |      }t        |   }}|t        v rt        ||      \  }}n|t        v r|t        k(  r"t!        dz  |	      \  }}dz  r|rd|z   }n|t"        k(  r"t!        dz  |	      \  }}dz  rz|rwd|z   }np|t$        k(  r"t!        dz  |	      \  }}dz  rO|rLd|z   }nEt!        |	      \  }}n4|t&        v rdz  }d	t)        |      z   }n|t*        v r2t-        |      r n}|dz   |dz  z   }|d|z  z  }d	t)        |      z   }n|t.        v s|t0        v rt!        |      \  }}n|t2        v rt4        dz	     }|}n|t6        k(  r1t8        d
z     \  }}|t;        dz        f}|d   ry|r|dz  }|dz  }nl|t<        k(  r(dj?                  fdtA        tB              D              }n;|tD        k(  rtF           \  }}n%|tH        k(  r
tJ           }n|tL        k(  r	tN           }tQ        tR        |   |||||||	       t        |   }|sg|st	        |      D ]  }t        |d        tT        tV        |      jY                         D ]  \  }}t	        |      D ]l  }|dz  }|dk(  r5| ||d|z  z    }| dtZ        j]                  |t^        j`                         }nd}tQ        dtb        dd||ddt        t        |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   Nr   ro   rn   zNULL + zNULL|self + rp   zto r   rx   zwith formatc              3   8   K   | ]  \  }}d |z  z  r|  yw)rn   Nr   ).0r   sr   s      r5   	<genexpr>z*_get_instructions_bytes.<locals>.<genexpr>  s'      $5$!Q'*ad| %& $5s   r   z: r,   F)2r   __getitem__setr   ry   add_unpack_opargsr|   r   r   r   r   r   r   hasnamer#   r   r(   r)   hasjabsr   hasjrelr  haslocalhasfree
hascomparecmp_opr   FORMAT_VALUE_CONVERTERSr   r   r~   r   MAKE_FUNCTION_FLAGSr$   r   r*   r   r+   r	   r   r   r   r   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                                @r5   r   r     s      +48L}t%*;*;HD!"F$5  sFAquc" 	AJJv	 K)$/ WC!$..6K&{*6)tL"56	|&t,?
 Fx"1$Y"G;&&4S!VX&FOFGaW"+g"5Y&&4S!VX&FOFGaW"07":_,&4S!VX&FOFGaW"07":&4S(&COFGQ$v,.%6t%<cT#
!jl2!f*$$v,.!TW_"06H"I#Q %"9#)"D $sSy/2!94},G&)) $5)<O2P $5 5"$S\
7)),S1)),S1+b/2vw +~yJ 	J 't,6] '\2&''t5;;= 	JD$4[ ! 6T(9:D!%bcmm)L(MNG G!UAtWfdEtL"56 	UWs   NNc                    t        t        |             }t        |       }t        t	        | |      || j
                  | j                  | j                  |||| j                         |
       y)zDisassemble a code object.)r8   r  r   r:   N)	r   r   r   rQ   r   r   r   r   r   )r   r   r8   r:   r;   r   r  s          r5   r   r     sY    nR()J.r2r84b44{{BLL*4):$&OO$5;	Pr   c                    t        | |||       ||dkD  rS||dz
  }| j                  D ]<  }t        |d      st        |       t        d|d|       t	        |||||       > y y )	Nr=   r   rn   rE   rD   zDisassembly of :r7   )r   r   rG   rL   rN   )r   r8   r9   r:   r;   rU   s         r5   rN   rN   )  su    ;J}	AIE 	Aq)$4 a1=&D;QY		 "r   )r8   r   r  r   r:   c                D   t        |      }|r9t        |j                               |z   }|dk\  rt        t	        |            }nd}nd}t        |       dz
  }|dk\  rt        t	        |            }nd}t        | |||||||	|
	      D ]  }|xr |j                  d uxr |j                  dkD  }|rt        |       |
r|j                  |k(  }nD|j                  |cxk  xr/ |j                  dt        t        |j                           z  z   k  nc }t        |j                  |||      |        |rnt        d	|       |D ][  }|j                  rd
nd}|j                  dz
  }t        d|j                   d| d|j                    d|j"                   d| 
|       ] y y )Ni  r   r   ro   i'  rp   r   r  r   r:   rD   zExceptionTable:z lastir   r   z to z -> z [])r   maxvalueslenr   r   r   r   rL   r   r   r   r   r   r   r   r   r9   )r   r   r  r   r   r   r8   r   r  r   r:   show_lineno	maxlinenor   	maxoffsetr   instrnew_source_lineis_current_instrentryr   s                        r5   rQ   rQ   6  s   
 z"K
))+,{:	s9~.LLD	AIE3y>*(/A5)2J5@;L6B5@B  ' , ,,D8, <<!+ 	 t$||u4  %||u  T<<!&;HU\\<R&S"SS Te  /?N	#& d+& 	cE %HE))A+CBu{{m4uDbQugV]ab	c r   c                 0    t        t        | d      fi | y)z<Compile the source string, then disassemble the code object.z<dis>N)rN   r6   )r3   kwargss     r5   rR   rR   c  s    <8CFCr   rs   ro   rn   c              #     K   d}d}t        dt        |       d      D ]g  }|r|dz  }| |   }t        |      }t        |   }|t        v r1| |dz      |z  }|t
        k(  r|dz  nd}|t        k\  r|dt        z  z  }nd }d}|||f i y w)Nr   ro   rn   rq   )ry   r)  r   r   hasargEXTENDED_ARG_INT_OVERFLOW)r   extended_argr  r   r   r  r   s          r5   r  r  o  s     LF1c$i# aKF!W|&t,6>qs)l*C)-)=C1H1L },M 11CL"cl's   BBc                     g }t        |       D ]l  \  }}}|
t        |      }t        |   }|t        v r"t	        |      r| }|dz   |dz  z   }|d|z  z  }n|t
        v r|dz  }nW||vs\|j                  |       n |S )z`Detect all offsets in a byte code which are jump targets.

    Return the list of offsets.

    ro   )r  r   r   r  r  r  rz   )r   r  r   r   r   r  r  labels           r5   r   r     s     F)$/ %C?B<D*40Fw$T*$C
SU*V#AF"e$% Mr   c              #   d   K   d}| j                         D ]  \  }}}|
||k7  s|}||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        r5   r   r     sJ     
 H MMO sD 0H+ s   000c              #     K   t         d   }| j                  }| j                  }t        | j                        D cg c]  \  }}}|t
        k7  r||f }}}}t        |      D ]l  \  }\  }}	||k(  s|dk\  s||dz
     }
||dz
     }|
d   t        v s1|d   t        v s=t        |d   |d   |      }t        |
d   |
d   |      }||	   ||f n yc c}}}w w)zFind 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_NAMEro   rn   r   N)	opmapr   r   r  rE   r5  r   r   r   )r   r?  constsr   r  r   r   opargsr   opargfrom_oplevel_oplevelfromlists                 r5   _find_importsrH    s      &K\\FKKE*8*D ) )JAr3<' 3i )F )#F+ 6;BaQqSkGac{H
h&8A;(+B(!hqk6J+GAJ
FKU|UH556)s(   ;CCC3C9CC!:Cc              #      K   t         d   t         d   h}| j                  }t        | j                        D ]  \  }}}||v s||     yw)z\Find names of variables which are written in the code

    Generate sequence of strings
    
STORE_NAMESTORE_GLOBALN)r@  r   r  rE   )r   	STORE_OPSr   r  r   r   s         r5   _find_store_namesrM    sY      	lnI
 KKE$RZZ0 
2s?*s   ?A
Ac                   R    e Zd ZdZddddddZd Zd Zedddd	       Zd
 Z	d Z
y)r   a  The 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|| _        ||j                  z
  | _        t        t        |            | _        || _        || _	        t        |      | _        || _        || _        y )Nr   )r   codeobjr   r   _line_offsetr   r   _linestarts_original_objectrO  r   r  r:   r;   )r   rU   r   rO  r:   r;   r   s          r5   __init__zBytecode.__init__  s    ,Q//r //DO !D(DO *R->-> >Dr 23 !,!7!;& r   c                    | j                   }t        t        || j                        |j                  |j
                  |j                  | j                  | j                  | j                  |j                         | j                  	      S )Nr%  )rQ  r   r   r;   r   r   r   rS  rR  r  r   r:   )r   r   s     r5   __iter__zBytecode.__iter__  sk    \\&r4=='I')'='='){{BLL'+'7'7373D3D9=9O9O46OO4E373C3CE 	Er   c                 b    dj                  | j                  j                  | j                        S )Nz{}({!r}))format	__class__rT   rT  r   s    r5   r   zBytecode.__repr__  s*      !8!8!%!6!68 	8r   )r:   r;   c                    |j                   r|j                   }|j                   r | |j                  j                  |j                  ||      S )z/ Construct a Bytecode from the given traceback )rO  r:   r;   )r_   r`   ra   rb   )clsrc   r:   r;   s       r5   from_tracebackzBytecode.from_traceback  sB     jjB jjKKr{{^f
 	
r   c                 ,    t        | j                        S )z3Return formatted information about the code object.)r   rQ  r   s    r5   infozBytecode.info   s     ..r   c                    | j                   }| j                  | j                  }nd}t        j                         5 }t	        t        || j                        |j                  |j                  |j                  | j                  | j                  ||| j                  |j                         | j                         |j                         cddd       S # 1 sw Y   yxY w)z3Return a formatted view of the bytecode operations.N)
r  r   r   r   r   r8   r   r  r   r:   )rQ  rO  ioStringIOrQ   r   r;   r   r   r   rS  rR  r  r   r:   getvalue)r   r   r   outputs       r5   r   zBytecode.dis  s    \\*((FF[[] 	%fr4==A242H2H%'[[BLL*.*:*:+/+<+<$*%+151G1G,.OO,=+/+;+;	= ??$	% 	% 	%s   BCC)rT   r   r   r   rU  rW  r   classmethodr]  r_  r   r   r   r5   r   r     sF     )-Tu_d !	E8 /4u 
 
/%r   r   c                  N   dd l } | j                         }|j                  d| j                  d      dd       |j	                         }|j
                  5 }|j                         }d d d        t        |j
                  j                  d      }t        |       y # 1 sw Y   6xY w)Nr   infilerb?-)rS   nargsdefaultr0   )
argparseArgumentParseradd_argumentFileType
parse_argsrh  readr1   r4   r   )rn  parserargsrh  r3   r   s         r5   mainrv    s    $$&F
x'8'8'>cSVWD	 64;;++V4DI s   BB$__main__r   )NNNNr   r   NF)ra  )ra  NNNN)ir   rZ   typescollectionsrb  r   r   _opcodes_allr   r   r   r   r	   r
   r   
MethodTypeFunctionTypeCodeTyperf  staticmethodrS   rK   r@  r   r   r   r   r  r   r  r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   listr   r   r   r   r   
startswith_empty_slotzipspec_opspecializedrI   r   r6   r   r   r{   r   r   r   r   r   r   r   r   r   
namedtupler   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r   r   rN   rQ   rR   r   	_INT_BITSr6  r  r   r   rH  rM  r   rv  rT   )slotr4   basefamilyr  s   00000r5   <module>r     sG   6 
   	 	 	 	:<HI  2 2ENN</
 ^$%L	6N
G	  o&J < 
^$M"+	o&V}+	)*+, +, g6l%[
&/&<U
dPS@TtU-FG &G[&K%J{& +A*:*@*@*B &$V\GRK)+*Dee +*Zh4UU h" 	  
 *&.B<2@  $ #K"" VaZ		 &{%%
 V  B   :   S   T   Q   Q   #Y    &Y   #!s   -{--.D"$  3), 3)l '+ <0
 ) 6:269:?C(-	kZPd P (,4UUZ  ;?>B+c#b$(e+cZD 	 	i!m$00
6, E% E%P	 zF ] Vs   	K)#K)K/