+
    Bi                         ^ RI t ^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt R t	]P                  ! ]P                  R4       ! R R]P                  4      4       t]R	8X  d   ]P                  ! 4        R# R# )
    N)support)	os_helper)assert_python_okc                  n    . p \        ^ 4       F  pV P                  V4       K  	  Rp Rp\        W4       R# )r   zthis isz
an exampleN)rangeappendprint)xiys      (/usr/lib/python3.14/test/test_lltrace.pyexampler   	   s1    
A1X	 AA	!K    zlltrace requires Py_DEBUGc                   8   a  ] tR t^t o R tR tR tR tRtV t	R# )TestLLTracec                   \         P                  ! V4      P                  4       p\        \        P
                  R RR7      ;_uu_ 4       pV P                  \        P                  \        P
                  4       VP                  V4       RRR4       \        \        P
                  4      w  r4pV P                  VR4       V P                  V^ 4       VP                  R4      p\        P                  '       d7   \        R4       \        V4       \        R4       \        V4       \        4        V#   + '       g   i     L; i)wzutf-8)encodingNr   z

--- code ---z
--- stdout ---)textwrapdedentstripopenr   TESTFN
addCleanupunlinkwriter   assertEqualdecoder   verboser	   )selfcodefdstatusstdoutstderrresults   &&     r   run_codeTestLLTrace.run_code   s    t$**,)""C'::bOOI,,i.>.>?HHTN ; "2)2B2B!C%#w'???$%$K$%&MG ;:s   	A D00E 	c                l   V P                  R 4      pV P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  R	V4       R
# )a  
            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_ITERFOR_ITERCALL_INTRINSIC_1POP_TOP	BINARY_OPUNARY_NEGATIVEz'trace_me' in module '__main__'dont_trace_1z'dont_trace_2' in moduleN)r'   assertInassertNotInr    r$   s   & r   test_lltraceTestLLTrace.test_lltrace&   s         	j&)j&)(&1i(f-)627@03V<r   c                   V P                  R 4      pV P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       \        P                  ! \        RR7       Uu/ uF  q"P
                  VbK  	  ppVP                  4        F  pVP                  R4      w  rVpV'       g   K!  \        V4      pVP                  4       p\        V4      ^8X  d   Vw  r\        V	4      p	MVw  pRp	V P                  W5,          P                  V4       V P                  W5,          P                  V	4       K  	  R# u upi )	z
            from test import test_lltrace
            test_lltrace.__lltrace__ = 1
            test_lltrace.example()
        z''example' in module 'test.test_lltrace'
LOAD_CONSTr+   zthis is an exampleT)adaptive:N)r'   r1   disget_instructionsr   offset
splitlines	partitionintsplitlenr   opnamearg)
r    r$   r   	instr_mapliner<   colonopname_opargrB   opargs
   &         r   test_lltrace_different_module)TestLLTrace.test_lltrace_different_moduleB   s!      
 	?HlF+j&)*F3 +.*>*>wQU*VW*VQXXq[*V	W%%'D*...*='F<[F'--/L< A% ,E
(	Y.55v>Y.22E: ( Xs   8Ec                L    V P                  R 4      pV P                  RV4       R# )z
            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')
        zunreachable if bug existsN)r'   r1   r3   s   & r   1test_lltrace_does_not_crash_on_subscript_operator=TestLLTrace.test_lltrace_does_not_crash_on_subscript_operator^   s(    
     	16:r    N)
__name__
__module____qualname____firstlineno__r'   r4   rI   rL   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s     "=8;8; ;r   r   __main__)r:   r   unittesttestr   test.supportr   test.support.script_helperr   r   
skipUnlessPy_DEBUGTestCaser   rO   mainrN   r   r   <module>r_      sn    
    " 7 
W%%'BCY;(## Y; DY;v zMMO r   