python (3.11.7)

(root)/
lib/
python3.11/
test/
__pycache__/
test_lltrace.cpython-311.pyc

eddlZddlZddlZddlZddlmZmZddlmZdZ	e
edZejedGddej
Zed	krejdSdS)
N)	os_helperverbose)assert_python_okcg}tdD]}||d}d}t||dS)Nzthis isz
an example)rangeappendprint)xiys   E/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_lltrace.pyexampler	sH
A
1XX	AA	!QKKKKKgettotalrefcountzlltrace requires Py_DEBUGc&eZdZdZdZdZdZdS)TestLLTracectj|}ttjdd5}|tjtj||dddn#1swxYwYttj\}}}|
|d|
|d|d}trJtdt|tdt|t|S)Nwzutf-8)encodingrrz

--- code ---z
--- stdout ---)textwrapdedentstripopenrTESTFN
addCleanupunlinkwriterassertEqualdecoderr
)selfcodefdstatusstdoutstderrresults       rrun_codezTestLLTrace.run_codesPt$$**,,
)"C'
:
:
:	bOOI,i.>???HHTNNN															"2)2B!C!C%%%###w''	$%%%$KKK$%%%&MMMGGG
sABBBc|d}|d||d||d||d||d||d||d||d	||d
|dS)Na
            def dont_trace_1():
                a = "a"
                a = 10 * a
            def trace_me():
                for i in range(3):
                    +i
            def dont_trace_2():
                x = 42
                y = -x
            dont_trace_1()
            __lltrace__ = 1
            trace_me()
            del __lltrace__
            dont_trace_2()
        GET_ITERFOR_ITERUNARY_POSITIVEPOP_TOP	BINARY_OPUNARY_NEGATIVEz'trace_me' in module '__main__'dont_trace_1z'dont_trace_2' in module)r(assertInassertNotInr!r%s  rtest_lltracezTestLLTrace.test_lltrace's 

 	


j&)))

j&)))

&///

i(((f---)6222

7@@@0003V<<<<<rc|d}|d||d||d||d|dtjtD}|D]}|d\}}}|st|}|}t|dkr|\}}t|}n|\}d}|
||j||
||j|dS)	Nz
            from test import test_lltrace
            test_lltrace.__lltrace__ = 1
            test_lltrace.example()
        z''example' in module 'test.test_lltrace'
LOAD_CONSTr+zthis is an exampleci|]
}|j|S)offset).0rs  r
<dictcomp>z=TestLLTrace.test_lltrace_different_module.<locals>.<dictcomp>OsHHHQQXqHHHr:)
r(r1disget_instructionsr
splitlines	partitionintsplitlenropnamearg)	r!r%	instr_mapliner9colonopname_opargrEopargs	         rtest_lltrace_different_modulez)TestLLTrace.test_lltrace_different_moduleCsg 


	


?HHH

lF+++

j&)))

*F333IH#*>w*G*GHHH	%%''
	;
	;D*...*=*='FE<
[[F'--//L<  A%% ,
E

(	Yv.5v>>>Yv.2E::::
	;
	;rc\|d}|d|dS)Nz
            import code

            console = code.InteractiveConsole()
            console.push('__lltrace__ = 1')
            console.push('a = [1, 2, 3]')
            console.push('a[0] = 1')
            print('unreachable if bug exists')
        zunreachable if bug exists)r(r1r3s  r1test_lltrace_does_not_crash_on_subscript_operatorz=TestLLTrace.test_lltrace_does_not_crash_on_subscript_operator_s9
 

	


16:::::rN)__name__
__module____qualname__r(r4rLrNr8rrrrsP"===8;;;8;;;;;rr__main__)r>sysrunittesttest.supportrrtest.support.script_helperrrhasattrPy_DEBUG
skipUnlessTestCaserrOmainr8rr<module>r\s







++++++++77777773*++X:;;Y;Y;Y;Y;Y;(#Y;Y;<;Y;vzHMOOOOOr