HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python3.7/__pycache__/dis.cpython-37.pyc
B

{aM@sdZddlZddlZddlZddlZddlTddlmZddddd	d
ddd
ddgeZ[ejej	ej
eee
fZedZddZdPdddddZdQddddZdddddddddd d!
Zd"d#Zd$d%Zd&dZd'd(Zddd)dZed*d+Zd,ej_d-ej_d.ej_d/ej_d0ej_d1ej _d2ej!_d3ej"_d4Z#d5Z$Gd6ddeZ%dd7d8d
Z&d9d:Z'd;d<Z(dRd=d>Z)dSddd@dZ*ddddAdBZ+dTdddCdDdEZ,dFdGZ-e*Z.dHdIZ/dJdZ0dKd
Z1GdLddZ2dMdNZ3e4dOkre3dS)Uz0Disassembler of Python byte code into mnemonics.N)*)__all__	code_infodisdisassembledistbdiscofindlinestarts
findlabels	show_codeget_instructionsInstructionBytecodeFORMAT_VALUEcCs6yt||d}Wn tk
r0t||d}YnX|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
    evalexec)compileSyntaxError)sourcenamecr/usr/lib/python3.7/dis.py_try_compiles
r)filedepthcCsn|dkrt|ddSt|dr&|j}t|dr8|j}n4t|drJ|j}n"t|dr\|j}nt|drl|j}t|drt|j	}x|D]p\}}t
|trtd	||dyt
|||d
Wn0tk
r}ztd||dWdd}~XYnXt|dqWnht|drt|||d
nLt
|ttfr<t||dn.t
|trXt|||d
ntd
t|jdS)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)r__func____code__gi_codeag_codecr_code__dict__zDisassembly of %s:)rrzSorry:co_codez(don't know how to disassemble %s objects)rhasattrrrrrr sortedr!items
isinstance
_have_codeprintr	TypeError_disassemble_recursivebytes	bytearray_disassemble_bytesstr_disassemble_strtype__name__)xrrr%rZx1msgrrrr"s>	






 )rcCs\|dkrDy
tj}Wntk
r0tddYnXx|jrB|j}q4Wt|jj|j|ddS)z2Disassemble a traceback (default: last traceback).Nz no last traceback to disassemble)r)	syslast_tracebackAttributeErrorRuntimeErrortb_nextrtb_framef_codetb_lasti)tbrrrrrOs

Z	OPTIMIZEDZ	NEWLOCALSZVARARGSZVARKEYWORDSZNESTEDZ	GENERATORZNOFREEZ	COROUTINEZITERABLE_COROUTINEZASYNC_GENERATOR)
 @icCsbg}xRtdD]8}d|>}||@r|t|t|||N}|sPqW|t|d|S)z+Return pretty representation of code flags.rBr=z, )rangeappendCOMPILER_FLAG_NAMESgethexjoin)flagsnamesiflagrrrpretty_flagsisrPcCst|dr|j}t|dr"|j}n4t|dr4|j}n"t|drF|j}nt|drV|j}t|trjt|d}t|drx|St	dt
|jd	S)
zDHelper to handle methods, compiled or raw code objects, and strings.rrrrr z
<disassembly>r"z(don't know how to disassemble %s objectsN)r#rrrrr r&r.rr)r0r1)r2rrr_get_code_objectws 







rQcCstt|S)z1Formatted details of methods, functions, or code.)_format_code_inforQ)r2rrrrscCsg}|d|j|d|j|d|j|d|j|d|j|d|j|dt|j|j	r|dx t
|j	D]}|d	|qW|jr|d
x t
|jD]}|d|qW|jr|dx t
|jD]}|d|qW|j
rF|d
x"t
|j
D]}|d|q.W|jr||dx"t
|jD]}|d|qdWd|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:
)rGco_nameco_filenameco_argcountco_kwonlyargcount
co_nlocalsco_stacksizerPco_flags	co_consts	enumerateco_namesco_varnamesco_freevarsco_cellvarsrK)colinesZi_cZi_nrrrrRs:




rRcCstt||ddS)z}Print details of methods, functions, or code to *file*.

    If *file* is not provided, the output is printed on stdout.
    )rN)r(r)rarrrrrs_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@seZdZdZdddZdS)	r
aKDetails 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
    Fr?cCsg}|r:|jdk	r,d|}|||jn|d||rJ|dn
|d|jrf|dn
|d|t|j|||jt|j	dk	r|t|j	t
|jr|d|jd	d|
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
        Nz%%%dd z-->z   z>>z  ())starts_linerGis_jump_targetreproffsetrjustopnameljust
_OPNAME_WIDTHarg_OPARG_WIDTHargreprrKrstrip)selflineno_widthZmark_as_currentoffset_widthZfieldsZ
lineno_fmtrrr_disassembles&



zInstruction._disassembleN)rfFr?)r1
__module____qualname____doc__ryrrrrr
s)
first_linecCsTt|}|j|j}tt|}|dk	r4||j}nd}t|j|j|j	|j
|||S)aIterator 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.
    Nr)rQr`r_dictr	co_firstlineno_get_instructions_bytesr"r^r]r[)r2r}ra
cell_names
linestartsline_offsetrrrrscCs |}|dk	r||}|t|fS)zHelper to get optional details about const references

       Returns the dereferenced constant and its repr if the constant
       list is defined.
       Otherwise returns the constant index and its repr().
    N)rl)Zconst_indexZ
const_listargvalrrr_get_const_infosrcCs*|}|dk	r||}|}nt|}||fS)zHelper 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 name index and its repr().
    N)rl)Z
name_indexZ	name_listrrtrrr_get_name_infosrc
csxt|}d}xdt|D]V\}	}
}|dk	rH||	d}|dk	rH||7}|	|k}d}
d}|dk	rT|}
|
tkr~t||\}
}n|
tkrt||\}
}n|
tkr|	d|}
dt|
}n|
t	krt||\}
}n|
t
krt|}
|
}nn|
tkrt||\}
}nV|
t
krTdtttf|d@t|d@f}
d|d@}|
drT|rL|d	7}|d
7}tt|
|
||
||	||VqWdS)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, constants) can be specified using optional
    arguments.

    Nr>zto rfr?)rr.rlasciir=z, zwith format)r
_unpack_opargsrIZhasconstrZhasnamerhasjrelrlZhaslocalZ
hascompareZcmp_opZhasfreerr.rboolr
ro)codevarnamesrM	constantscellsrrlabelsrjrmoprrrkrrtrrrr-sH


 

rc
Cs<|j|j}tt|}t|j||j|j|j|||ddS)zDisassemble a code object.)rN)	r`r_r~r	r-r"r^r]r[)ralastirrrrrrr`scCstt||d|dks|dkrp|dk	r,|d}xB|jD]8}t|dr4t|dtd|f|dt|||dq4WdS)N)rrr=r"zDisassembly of %r:)rr)rr[r#r(r*)rarrr2rrrr*gs

r*)rrc	Cs|dk	}	|	r8t||}
|
dkr2tt|
}q<d}nd}t|d}|dkr^tt|}
nd}
xdt|||||||dD]J}|	o|jdk	o|jdk}|rt|d|j|k}t||||
|dqzWdS)	Nirfrr>i'r?)r)r)	maxvalueslenr.rrjrmr(ry)rrrrMrrrrrZshow_linenoZ	maxlinenorwZ	maxoffsetrxZinstrZnew_source_lineZis_current_instrrrrr-rs,




r-cKstt|df|dS)z<Compile the source string, then disassemble the code object.z<dis>N)r*r)rkwargsrrrr/sr/ccshd}x^tdt|dD]J}||}|tkrP||d|B}|tkrJ|d>nd}nd}|||fVqWdS)Nrr>r=r@)rFrZ
HAVE_ARGUMENTZEXTENDED_ARG)rZextended_argrNrrrrrrrsrcCs`g}xVt|D]J\}}}|dk	r|tkr6|d|}n|tkr|}nq||kr||qW|S)z`Detect all offsets in a byte code which are jump targets.

    Return the list of offsets.

    Nr>)rrZhasjabsrG)rrrmrrrZlabelrrrr
sccs|jddd}|jddd}d}|j}d}xPt||D]B\}}|rd||kr\||fV|}||7}|dkrt|d8}||7}q:W||kr||fVdS)zFind the offsets in a byte code which are start of lines in the source.

    Generate pairs (offset, lineno) as described in Python/compile.c.

    rNr>r=rDrE)	co_lnotabrzip)rZbyte_incrementsZline_incrementsZ
lastlinenolinenoZaddrZ	byte_incrZ	line_incrrrrr	s 
c@sLeZdZdZdddddZddZdd	Zed
dZdd
Z	ddZ
dS)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.
    N)r}current_offsetcCsdt||_}|dkr&|j|_d|_n||_||j|_|j|j|_tt	||_
||_||_dS)Nr)
rQcodeobjrr}_line_offsetr`r__cell_namesr~r	_linestarts_original_objectr)rvr2r}rrarrr__init__szBytecode.__init__c	Cs*|j}t|j|j|j|j|j|j|jdS)N)r)	rrr"r^r]r[rrr)rvrarrr__iter__s
zBytecode.__iter__cCsd|jj|jS)Nz{}({!r}))format	__class__r1r)rvrrr__repr__s
zBytecode.__repr__cCs$x|jr|j}qW||jj|jdS)z/ Construct a Bytecode from the given traceback )r)r8r9r:r;)clsr<rrrfrom_tracebacks
zBytecode.from_tracebackcCs
t|jS)z3Return formatted information about the code object.)rRr)rvrrrinfosz
Bytecode.infocCs`|j}|jdk	r|j}nd}t2}t|j|j|j|j|j	|j
|j||d	|SQRXdS)z3Return a formatted view of the bytecode operations.Nr)rrMrrrrrr)
rrioStringIOr-r"r^r]r[rrrgetvalue)rvrarmoutputrrrrs


zBytecode.dis)r1rzr{r|rrrclassmethodrrrrrrrrs
c	Csdddl}|}|jd|ddd|}|j}|}WdQRXt||jjd}t	|dS)z*Simple test program to disassemble a file.rNinfile?-)r0nargsdefaultr)
argparseArgumentParseradd_argumentZFileType
parse_argsrreadrrr)rparserargsrrrrrr_test
sr__main__)N)N)NNNNNr)r)rNNNNN)5r|r4typescollectionsrZopcoderZ_opcodes_all
MethodTypeFunctionTypeCodeTyperstaticmethodr0r'ZopmaprrrrrHrPrQrrRr
namedtuplercrorrrrtrmrjrkrqrsr
rrrrrr*r-r/rrr
r	rrr1rrrr<module>s~


-4
2=