403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/test/__pycache__/test_monitoring.cpython-315.opt-2.pyc
R
>lqj�rc
��	�]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]PH$s	]PH(s]QH(GsG
s
GsQzsQsQsQsQsQs]s]s]sQsQQ	\	O22sQ
Q2sQQ
\\	O22s\O:O<s\O@Q1\OBQ1\ODQ1\OFQ1\OHQ1\OJQ1,s&\&\ONQ1\OPQ1\ORQ1\OTQ1\OVQ1,*s,\OZ\O\\,TTt,tFDvqUMJ		too]2\O^*s0Qs1,Q{N\1mQs2,Q|N\2mQs3,Q}N\3mQs4,Q~N\4mQs5,QN\5m\Ol\On1s8QQ\2s9Q Q!\9\	O22s:\OV\OT\OD\OR\OF1s;\O@\OB1s<]Q"H�G>s>Q#Q$\9\	O22s?Q%Q&2s@Q'Q(2sAQ)Q*\\	O22sBQ+Q,\\	O22sCQ-Q.\\	O22sDQ/Q0\\	O22sEQ1Q22sFQ3Q4\\	O22sGQ5Q6\F2sHQ7Q8\F2sIQ9Q:\F2sJQ;Q<\F2sKQ=Q>\F2sLQ?Q@2sMQAQB2sNQCQD\G2sOQEQF2sPQGQH2sQQIQJ\Q2sRQKQL\Q2sS\F\M\P\R\S1sTQMQN\G2sUQOQP2sV\V\P1sWQQQR\G2sXQSQT\\	O22sY\M\P\R\S1sZQUQV\\	O22s[QWs\QXQY2s]QZQ[\]2s^Q\Q]\]2s_Q^Q_\]2s`Q`Qa2saQbQc\a2sbQdQe\a2sc\]\^1sd\]\^\P1se\]\^\P\F\N1sf\`\_1sg\b\c1shQfQg\G2siQhQi\\	O22sjQjQk\G2skQlQm\\	O22slQnQo\	O2\2smQpQq\\	O22snQrQs\\	O22soQtQu\G2spQvQw\	O22sqQxQy\\	O22srP!ttooh)��)�
import_helper�requires_specialization�
script_helperc��P!�N�r��)C:\Python315\\Lib\test\test_monitoring.py�f1r
���rc�J�[,2[O]2P!�r)�len�sys�	getsizeofrrr	�f2rs����G��M�M�!�rc�$�[FDoJ	P!r)�PAIR)�items r	�flooprs������rc#�$ �Pw�	Pw�	P!3hrrrrr	�genrs���	�	���c�,�[2FDoJ	P!r)r)�_s r	�g1r"s��
�U���rc�>�UOOU*!r)�__code__�co_firstlineno)�func�offsets&&r	�nth_liner!*s���=�=�'�'�&�0�0rc�:`�\sQs]-snQsQsQsQsQsUs	P!)�MonitoringBasicTestc�N�[OO[2P!r)r�
monitoring�free_tool_id�	TEST_TOOL��selfs&r	�tearDown�MonitoringBasicTest.tearDown/s�����#�#�I�.rc��[OoUOUOUOUO
UOUOUOUOUOUOUOUOUOUOOP!r)rr%�events�use_tool_id�
clear_tool_idr&�get_tool�
get_events�
set_events�get_local_events�set_local_events�register_callback�restart_events�DISABLE�MISSING�	NO_EVENTS)r)�ms& r	�test_has_objects�$MonitoringBasicTest.test_has_objects2s{���N�N��	���	�
�
�	���	���	�
�
�	���	���	���	���	���	���	�	�	�	�	�	�	����rc�V�[OO[Q2UO	[OO[2Q2[OO
[]2UO	[OO[2]2[OO
[]2UO[29^tt^2[OO
[[OOO2PPP2UO[29^tt^2[OO
[[OOO2PPP2[OO[2UO	[OO[2P2UO[29^tt^2[OO
[[OOO2PPP2P!)%fhCKA9h)%fhK�9h)%fhP!9h)�MonitoringTest.Tool)rr%r.r'�assertEqualr0r2r1�assertRaises�
ValueErrorr-�C_RETURN�C_RAISEr&�CALLr(s&r	�	test_tool�MonitoringBasicTest.test_toolCs�����"�"�9�.C�D�������0�0��;�=R�S����!�!�)�R�0�������2�2�9�=�r�B����!�!�)�Q�/�
�
�
�z�
*�
*��N�N�%�%�i����1F�1F�1O�1O�P�+�
�
�
�z�
*�
*��N�N�%�%�i����1F�1F�1N�1N�O�+����#�#�I�.�������0�0��;�T�B�
�
�
�z�
*�
*��N�N�%�%�i����1F�1F�1K�1K�L�+�
*�
+�
*�
*��
*�
*��+�
*�
*�s9�1AI0�AJ�AJ�0J	�9J	�J	�
J	�J(	� J(	c��`�,n[OO[Q2[OO	[[
OU1Qk2[OO	[[
OU1Qk2Qo[OO[UO[
O2[OO[[
O2U2[OO[2U2UO[R2]2[OO	[[
OP2oUOUP2[OO[2,n[OO[Q2[OO	[[
OU1Qk2[OO[UO[
O2U2[OO[2[OO[Q2U2UO[R2]2[OO[2P!)r>c�(:�ROU2!r��append��argsr-s*�r	�<lambda>�0MonitoringBasicTest.test_clear.<locals>.<lambda>Us���f�m�m�\`�Narc�(:�ROU2!rrIrKs*�r	rMrNV����&�-�-�X\�J]rc��]oP!��r��as r	�f�)MonitoringBasicTest.test_clear.<locals>.fWs���Arc�(:�ROU2!rrIrKs*�r	rMrNkrPr)rr%r.r'r5�E�PY_START�LINEr4rr2r/r?r�assertIsr&)r)rV�callbackr-s&  @r	�
test_clear�MonitoringBasicTest.test_clearRs���������"�"�9�.C�D����(�(��A�J�J�@a�b����(�(��A�F�F�<]�^�	����'�'�	�1�:�:�q�v�v�F����!�!�)�Q�Z�Z�8�	�����$�$�Y�/�	��
	
����V��a�(��>�>�3�3�I�q�v�v�t�L���
�
�h��%����#�#�I�.������"�"�9�.C�D����(�(��A�F�F�<]�^����'�'�	�1�:�:�q�v�v�F�	�����#�#�I�.����"�"�9�.C�D�	��	
����V��a�(����#�#�I�.rr)
�__name__�
__module__�__qualname__�__firstlineno__r*r;rEr^�__static_attributes__�__classdictcell__��
__classdict__s@r	r#r#-s����/��"
M�#/�#/rr#c�.`�\sQs]xsnQsQsQsUsP!)�MonitoringTestBasec�8�[]2FD2oUO[OO	U2]2J4	UO[OO
[2P2UO[OO
[2P2UO[OO
[2P2[OO[QUOO*2[OO[QUOO*2[OO[QUOO*2P!)�ztest ztest2 ztest3 )
�ranger?rr%r1r\r0r'�
TEST_TOOL2�
TEST_TOOL3r.�	__class__r`�r)�tools& r	�setUp�MonitoringTestBase.setUpzs����!�H�D����S�^�^�6�6�t�<�a�@���
�
�c�n�n�-�-�i�8�$�?��
�
�c�n�n�-�-�j�9�4�@��
�
�c�n�n�-�-�j�9�4�@����"�"�9�g����8O�8O�.O�P����"�"�:�x�$�.�.�:Q�:Q�/Q�R����"�"�:�x�$�.�.�:Q�:Q�/Q�Rrc�^�[]2FD2oUO[OO	U2]2J4	[OO[2[OO[2[OO[2P!)rk)	rlr?rr%r1r&r'rmrnrps& r	r*�MonitoringTestBase.tearDown�se���!�H�D����S�^�^�6�6�t�<�a�@�����#�#�I�.����#�#�J�/����#�#�J�/rr)r`rarbrcrrr*rdrerfs@r	ririxs����	S�0�0rric�F`�\sQs]�snQsQsQsQsQsQs	Qs
UsP!)�MonitoringCountTestc��QQ2oU2o[OO[V%2U[O
6XfU[O6Xc4[OO[[O2L$[OO[U2UOUO]2]Um
U2UOUOU2[OO[UP2o]Um
U2UOUO]2UOVe2[OO[]2P!)c�.`�\sQs]�snQsQsQsUsP!)�6MonitoringCountTest.check_event_count.<locals>.Counterc��]UmP!r
��countr(s&r	�__init__�?MonitoringCountTest.check_event_count.<locals>.Counter.__init__�s	����
rc�:�U9O]*
tmP!rRr|�r)rLs&*r	�__call__�?MonitoringCountTest.check_event_count.<locals>.Counter.__call__�s���
�
�a��
rr|�r`rarbrcr~r�rdrerfs@r	�Counterrz�s����
�
 �
 rr�)rr%r5r'rYrBrCr2rDr?r})r)r�event�expectedr��counter�prevs&&&&   r	�check_event_count�%MonitoringCountTest.check_event_count�s���	 �	 ��)�����(�(��E�C��A�J�J��%�1�9�9�"4��N�N�%�%�i����8��N�N�%�%�i��7��������*���
����������1��~�~�/�/�	�5�$�G����
����������*�����'����!�!�)�Q�/rc�R�UO[[O]2P!rR)r�r
rYrZr(s&r	�test_start_count�$MonitoringCountTest.test_start_count�������r�1�:�:�q�1rc�R�UO[[O]2P!��)r�rrY�	PY_RESUMEr(s&r	�test_resume_count�%MonitoringCountTest.test_resume_count�������r�1�;�;��2rc�R�UO[[O]2P!rR)r�r
rY�	PY_RETURNr(s&r	�test_return_count�%MonitoringCountTest.test_return_count�r�rc�R�UO[[O]2P!��)r�rrYrDr(s&r	�test_call_count�#MonitoringCountTest.test_call_count�s�����r�1�6�6�1�-rc�R�UO[[O]2P!r�)r�rrYrBr(s&r	�test_c_return_count�'MonitoringCountTest.test_c_return_count�r�rr)r`rarbrcr�r�r�r�r�r�rdrerfs@r	rwrw�s(����0�22�3�3�.�2�2rrw�start�resume�return�yield�jump�branch�raise�exception_handled�unwind�c_raise�c_returnc��P!rrrrr	�	just_passr��rrc��[gr��	Exceptionrrr	�
just_raiser��s��
�Orc��[,2P!r�rrrr	�	just_callr��s	����Grc�@�]]*P![cP!h9hrRr�rrr	�caughtr��s"��
�	�!�����
��
�s�	�	��c��[2P!r)r�rrr	�nested_callr��s��
�Krc�2`�\sQsQsnQsQQksQsUsP!)�MonitoringEventsBase�c�`�,n[FD3vq#QU-U1Qkko[OO[V$2J5	U1Qko[OO[[
OU2[OO[[2,nU2[OO[]2RPPnR!K/9h)�
event_namec�,:�ROU2P!rrI)r�rLr-s$*�r	�record�2MonitoringEventsBase.gather_events.<locals>.records����
�
�j�)rc�~:�[U[2%cROQ2P!ROQ2P!)�py_call�c_call)�
isinstance�PY_CALLABLESrJ)�coder �obj�argr-s&&&&�r	�record_call�7MonitoringEventsBase.gather_events.<locals>.record_calls(����#�|�,�,��
�
�i�(��
�
�h�'r)	�
SIMPLE_EVENTSrr%r5r'rYrDr2�SIMPLE_EVENT_SET)r)rr�r�r�r�r-s&&    @r	�
gather_events�"MonitoringEventsBase.gather_events
s������!.���E�
*��
*��N�N�,�,�Y��F�"/�	(�
	���(�(��A�F�F�K�H����!�!�)�-=�>���	��F�	���!�!�)�Q�/�������
��	��s�'C�Cc�l�UOU2oUe
UOoUOV22P!r)r�r-r?)r)rr�r-s&&& r	�check_events�!MonitoringEventsBase.check_events$s/���#�#�D�)�����{�{�H�����*rrr)r`rarbrcr�r�rdrerfs@r	r�r�s�����.+�+rr�c�@`�\sQsQsnQsQsQsQsQsQs	Us
P!)�MonitoringEventsTest�*c�2�UO[2P!r)r�r�r(s&r	�test_just_pass�#MonitoringEventsTest.test_just_pass,������)�$rc��UO[2UO[O
O
[2]2P![cKBh9hr
)r�r�r�r?rr%r1r'r(s&r	�test_just_raise�$MonitoringEventsTest.test_just_raise/sJ��	����j�)�	
������2�2�9�=�q�A���	��	�s�A
�
	A�A�Ac�2�UO[2P!r)r�r�r(s&r	�test_just_call�#MonitoringEventsTest.test_just_call6r�rc�2�UO[2P!r)r�r�r(s&r	�test_caught� MonitoringEventsTest.test_caught9s�����&�!rc�2�UO[2P!r)r�r�r(s&r	�test_nested_call�%MonitoringEventsTest.test_nested_call<s�����+�&rr)r`rarbrcr�r�r�r�r�rdrerfs@r	r�r�*s$����%�B�%�"�'�'rr�)�testfuncc�.`�\sQsQsnQsQsQsUsP!)�SimulateProfileTest�Dc�V�UO[2o[OU2oUO	UQ*UQ*2UO	UQ*UQ*UQ**2UO	UQ*UQ*UQ**2P!)r�r�r�r�r�r�r�)r�r��collectionsr�r?)r)r-�cs&  r	�
test_balanced�!SimulateProfileTest.test_balancedFs~���#�#�H�-������'������8��a�
�m�4�����7��Q�x�[�1�X�;�%>�?�����7��Q�':�%;�a��k�%I�Jrc��```�PUm,n,n[2nUU1QkoUU1QkoU1Qko[FD'o[OO[VA2J)	[FD'o[OO[VB2J)	[OO[[OU2[OO[[2[2[OO[]2UOR,2UOR[O2,2UO[R2]	2P!)Nc��:�[O]2oR%fROQ2P!RO2oV6wcROQUQU02P!P!)rS�emptyz	 Popping z
 expected )r�	_getframerJ�pop)rL�framer��errors�stacks*  ��r	�up�0SimulateProfileTest.test_frame_stack.<locals>.upRsO����M�M�!�$�E���
�
�g�&� �9�9�;���$��M�M�I�e�W�J�x�j�"I�J�%rc�:�[O]2oROU2ROUO2P!rR)rr�rJ�add�f_code)rLr��seenr�s* ��r	�down�2SimulateProfileTest.test_frame_stack.<locals>.downZs-����M�M�!�$�E��L�L����H�H�U�\�\�"rc�:�[U[2%f(RO[O]22P!P!rR)r�r�rJrr�)r�r �callabler�r�s&&&&�r	�call�2SimulateProfileTest.test_frame_stack.<locals>.call^s*����h��5�5����S�]�]�1�-�.�6r)�maxDiff�set�	UP_EVENTSrr%r5r'�DOWN_EVENTSrYrDr2r�r�r?r�r)r)r�r�rr�r�r�r�s&    @@@r	�test_frame_stack�$SimulateProfileTest.test_frame_stackMs������������u��	K�	#�	/��Y�E��N�N�,�,�Y��B�� �[�E��N�N�,�,�Y��D�!����(�(��A�F�F�D�A����!�!�)�-=�>��
����!�!�)�Q�/������$��������� 1�2�����T��A�&r)r)r`rarbrcr�rrdrerfs@r	r�r�Ds����K�'�'rr�c�.`�\sQsQsnQsQsQsUsP!)�CounterWithDisable�nc�$�P
Um]UmP!�F)�disabler}r(s&r	r~�CounterWithDisable.__init__ps�������
rc��U9O]*
tmUO%c[OO!P!rR)r}rrr%r7r�s&*r	r��CounterWithDisable.__call__ts-���
�
�a��
��<�<�<��>�>�)�)�)�r)r}rr�rfs@r	rrns�����*�*rrc�.`�\sQsQsnQsQsQsUsP!)�RecorderWithDisable�zc�"�P
UmVmP!r�rr-�r)r-s&&r	r~�RecorderWithDisable.__init__|s������rc��UOOU2UO%c[OO
!P!r)r-rJrrr%r7)r)r�r�s&&&r	r��RecorderWithDisable.__call__�s2�������5�!��<�<�<��>�>�)�)�)�rrr�rfs@r	rrzs�����*�*rrc�.`�\sQsQsnQsQsQsUsP!)�MontoringDisableAndRestartTest�c��[2o[OO[[
OU2[OO[[
O2UOUO]2]Um	[2UOUO]2P	Um]Um	[2UOUO]2]Um	[2UOUO]2[OO[]2[OO2P![OO2h9hr
)
rrr%r5r'rYrZr2r?r}r
rr6�r)r�s& r	�test_disable�+MontoringDisableAndRestartTest.test_disable�s���	,�(�*�G��N�N�,�,�Y��
�
�G�L��N�N�%�%�i����<����W�]�]�A�.��G�M��D����W�]�]�A�.�"�G�O��G�M��D����W�]�]�A�.��G�M��D����W�]�]�A�.��N�N�%�%�i��3��N�N�)�)�+��C�N�N�)�)�+�s�D=E �  Fc���[2o[OO[[
OU2[OO[[
O2P	Um[2]Um
[2UOUO]2[OO2]Um
[2UOUO]2[OO[]2[OO2P![OO2h9h�T)
rrr%r5r'rYrZr2rr
r}r?r6r s& r	�test_restart�+MontoringDisableAndRestartTest.test_restart�s���	,�(�*�G��N�N�,�,�Y��
�
�G�L��N�N�%�%�i����<�"�G�O��D��G�M��D����W�]�]�A�.��N�N�)�)�+��G�M��D����W�]�]�A�.��N�N�%�%�i��3��N�N�)�)�+��C�N�N�)�)�+�s�DD?�? Er)r`rarbrcr!r%rdrerfs@r	rr�s����,�(,�,rrc�@`�\sQsQsnQsQsQsQsQsQs	Us
P!)�MultipleMonitorsTest�c��UO[OO2-2[	2o[	2o[OO[[OU2[OO[[OU2[OO[[O2[OO[[O2UO[OO[2[O2UO[OO[2[O2UO[OO2Q][*][**-2]Um]Um[2UOoUOoUOV41Q2[OO[]2[OO[]2[OO[[OP2[OO[[OP2UO[OO2-2P![OO[]2[OO[]2[OO[[OP2[OO[[OP2SO[OO2-2h9h)rZ�rSrS)r?rr%�_all_eventsrr5r'rYrZrmr2r1r}r
�r)�counter1�counter2�count1�count2s&    r	�
test_two_same�"MultipleMonitorsTest.test_two_same�s>��	?����S�^�^�7�7�9�2�>�)�+�H�)�+�H��N�N�,�,�Y��
�
�H�M��N�N�,�,�Z����X�N��N�N�%�%�i����<��N�N�%�%�j�!�*�*�=����S�^�^�6�6�y�A�1�:�:�N����S�^�^�6�6�z�B�A�J�J�O����S�^�^�7�7�9�J��i��\]�ak�\k�Hl�;m�n��H�N��H�N��D��^�^�F��^�^�F����f�-�v�6��N�N�%�%�i��3��N�N�%�%�j�!�4��N�N�,�,�Y��
�
�D�I��N�N�,�,�Z����T�J����S�^�^�7�7�9�2�>��	
�N�N�%�%�i��3��N�N�%�%�j�!�4��N�N�,�,�Y��
�
�D�I��N�N�,�,�Z����T�J����S�^�^�7�7�9�2�>�s
�HK?�?COc��
�UO[OO2-2[	2o[	2o[	2o[OO[[OU2[OO[[OU2[OO[[OU2[OO[[O2[OO[[O2[OO[[O2UO[OO[2[O2UO[OO[2[O2UO[OO[2[O2UO[OO2Q][*][**][**-2]Um
]Um
]Um
[2UOoUOoUOoUOVEU1Q2[OO[]2[OO[]2[OO[]2[OO[[OP2[OO[[OP2[OO[[OP2UO[OO2-2P![OO[]2[OO[]2[OO[]2[OO[[OP2[OO[[OP2[OO[[OP2SO[OO2-2h9h)rZ)rSrSrS)r?rr%r,rr5r'rYrZrmrnr2r1r}r
)r)r.r/�counter3r0r1�count3s&      r	�test_three_same�$MultipleMonitorsTest.test_three_same�s��	?����S�^�^�7�7�9�2�>�)�+�H�)�+�H�)�+�H��N�N�,�,�Y��
�
�H�M��N�N�,�,�Z����X�N��N�N�,�,�Z����X�N��N�N�%�%�i����<��N�N�%�%�j�!�*�*�=��N�N�%�%�j�!�*�*�=����S�^�^�6�6�y�A�1�:�:�N����S�^�^�6�6�z�B�A�J�J�O����S�^�^�6�6�z�B�A�J�J�O����S�^�^�7�7�9�J��i��\]�ak�\k�Hl�pq�u�p�IA�<B�
C��H�N��H�N��H�N��D��^�^�F��^�^�F��^�^�F����f�f�5�y�A��N�N�%�%�i��3��N�N�%�%�j�!�4��N�N�%�%�j�!�4��N�N�,�,�Y��
�
�D�I��N�N�,�,�Z����T�J��N�N�,�,�Z����T�J����S�^�^�7�7�9�2�>��

�N�N�%�%�i��3��N�N�%�%�j�!�4��N�N�%�%�j�!�4��N�N�,�,�Y��
�
�D�I��N�N�,�,�Z����T�J��N�N�,�,�Z����T�J����S�^�^�7�7�9�2�>�s
�K4P,�,D5U!c��UO[OO2-2[	2o[	2o[OO[[OU2[OO[[OU2[OO[[O2[OO[[O2UO[OO[2[O2UO[OO[2[O2UO[OO2Q][*Q][*-2]Um
]Um
[2UOoUOoUOV41Q2[OO[]2[OO[]2[OO[[OP2[OO[[OP2UO[OO2-2P![OO[]2[OO[]2[OO[[OP2[OO[[OP2SO[OO2-2h9h)rZr�r+)r?rr%r,rr5r'rYrZrmr�r2r1r}r
r-s&    r	�test_two_different�'MultipleMonitorsTest.test_two_different�s>��	?����S�^�^�7�7�9�2�>�)�+�H�)�+�H��N�N�,�,�Y��
�
�H�M��N�N�,�,�Z����h�O��N�N�%�%�i����<��N�N�%�%�j�!�+�+�>����S�^�^�6�6�y�A�1�:�:�N����S�^�^�6�6�z�B�A�K�K�P����S�^�^�7�7�9�J��Y��Xc�ef�jt�et�;u�v��H�N��H�N��D��^�^�F��^�^�F����f�-�v�6��N�N�%�%�i��3��N�N�%�%�j�!�4��N�N�,�,�Y��
�
�D�I��N�N�,�,�Z����d�K����S�^�^�7�7�9�2�>��	
�N�N�%�%�i��3��N�N�%�%�j�!�4��N�N�,�,�Y��
�
�D�I��N�N�,�,�Z����d�K����S�^�^�7�7�9�2�>�s
�HK:�:COc���UO[OO2-2[	2o[	2o[OO[[OU2[OO[[OU2[OO[[O2[OO[[O2UO[OO[2[O2UO[OO[2[O2UO[OO2Q][*][**-2]Um]UmP	Um
[2UOoUOoUOV41Q2]Um]Um[2UOoUOoUOV41Q2[OO[]2[OO[]2[OO[[OP2[OO[[OP2UO[OO2-2[OO2P![OO[]2[OO[]2[OO[[OP2[OO[[OP2SO[OO2-2[OO2h9h)rZr+�rrS)r?rr%r,rr5r'rYrZrmr2r1r}rr
r6r-s&    r	�test_two_with_disable�*MultipleMonitorsTest.test_two_with_disables���	,����S�^�^�7�7�9�2�>�)�+�H�)�+�H��N�N�,�,�Y��
�
�H�M��N�N�,�,�Z����X�N��N�N�%�%�i����<��N�N�%�%�j�!�*�*�=����S�^�^�6�6�y�A�1�:�:�N����S�^�^�6�6�z�B�A�J�J�O����S�^�^�7�7�9�J��i��\]�ak�\k�Hl�;m�n��H�N��H�N�#�H���D��^�^�F��^�^�F����f�-�v�6��H�N��H�N��D��^�^�F��^�^�F����f�-�v�6��N�N�%�%�i��3��N�N�%�%�j�!�4��N�N�,�,�Y��
�
�D�I��N�N�,�,�Z����T�J����S�^�^�7�7�9�2�>��N�N�)�)�+��
�N�N�%�%�i��3��N�N�%�%�j�!�4��N�N�,�,�Y��
�
�D�I��N�N�,�,�Z����T�J����S�^�^�7�7�9�2�>��N�N�)�)�+�s
�I(M'�'C<Q#c�\�QoUOoUO[OO	2-2[OO[U[O[O*2[OO[U[O2[OO[]2[OO[]2UO[OO	2-2P![OO[]2[OO[]2SO[OO	2-2h9h)c��P!rrrrr	rV�;MultipleMonitorsTest.test_with_instruction_event.<locals>.f'���r)rr?rr%r,r4r'rY�INSTRUCTIONr[rmr2)r)rVr�s&  r	�test_with_instruction_event�0MultipleMonitorsTest.test_with_instruction_event%s���	��z�z��	?����S�^�^�7�7�9�2�>��N�N�+�+�I�t�Q�]�]�Q�V�V�=S�T��N�N�+�+�J��a�f�f�E��N�N�%�%�i��3��N�N�%�%�j�!�4����S�^�^�7�7�9�2�>��
�N�N�%�%�i��3��N�N�%�%�j�!�4����S�^�^�7�7�9�2�>�s
�B)D3�3A8F+r)r`rarbrcr2r7r:r>rErdrerfs@r	r(r(�s%����?�2?�B?�2,�B
?�
?rr(c�X`�\sQsQsnQsQsQs\1QksQs	Qs
QsQ	sQ
s
UsP!)�LineMonitoringTest�5c�6�UO[OO2-2,o[	U2o[OO[[OU2[OO[[O2[2[OO[]2[OO[[OP2[[O]2oUOV]*[[]2U]*,2[OO[]2[OO[[OP2UO[OO2-2[OO2P![OO[]2[OO[[OP2SO[OO2-2[OO2h9hr
)r?rr%r,rr5r'rYr[r2r
r!rH�test_lines_singler6)r)r-�recorderr�s&   r	rK�$LineMonitoringTest.test_lines_single7s���	,����S�^�^�7�7�9�2�>��F�*�6�2�H��N�N�,�,�Y�����I��N�N�%�%�i����8��D��N�N�%�%�i��3��N�N�,�,�Y�����E��/�A�A�1�E�E����V�A�g�x��A���a��%H�I��N�N�%�%�i��3��N�N�,�,�Y�����E����S�^�^�7�7�9�2�>��N�N�)�)�+��
�N�N�%�%�i��3��N�N�,�,�Y�����E����S�^�^�7�7�9�2�>��N�N�)�)�+�s
�EG3�3B%Jc�^�UO[OO2-2,o[	U2o[OO[[OU2[OO[[O2[2[OO[]2[OO[[OP2[[O]2o[[]2o[[]2oUOUU]*VEVEVC]*,2[OO[]2[OO[[OP2UO[OO2-2[OO2P![OO[]2[OO[[OP2SO[OO2-2[OO2h9hr
)r?rr%r,rr5r'rYr[r2rr!rH�test_lines_loopr6)r)r-rLr��floop_1�floop_2s&     r	rO�"LineMonitoringTest.test_lines_loopIs���	,����S�^�^�7�7�9�2�>��F�*�6�2�H��N�N�,�,�Y�����I��N�N�%�%�i����8��G��N�N�%�%�i��3��N�N�,�,�Y�����E��/�?�?��C�E��u�a�(�G��u�a�(�G������q��'�G�g�Q�w�O�
�

�N�N�%�%�i��3��N�N�,�,�Y�����E����S�^�^�7�7�9�2�>��N�N�)�)�+��
�N�N�%�%�i��3��N�N�,�,�Y�����E����S�^�^�7�7�9�2�>��N�N�)�)�+�s
�EH�B%J,c�J�UO[OO2-2,o[	U2o,o[	U2o[OO[[OU2[OO[[OU2[OO[[O2[OO[[O2[2[OO[]2[OO[]2[OO[[OP2[OO[[OP2[[O]2oU]
*[[]2U]*,oUOV2UOV62[OO[]2[OO[]2[OO[[OP2[OO[[OP2UO[OO2-2[OO2P![OO[]2[OO[]2[OO[[OP2[OO[[OP2SO[OO2-2[OO2h9hr
)r?rr%r,rr5r'rYr[rmr2r
r!rH�test_lines_twor6)r)r-rL�events2�	recorder2r�r�s&      r	rT�!LineMonitoringTest.test_lines_two`si��	,����S�^�^�7�7�9�2�>��F�*�6�2�H��G�+�G�4�I��N�N�,�,�Y�����I��N�N�,�,�Z�����K��N�N�%�%�i����8�#�.�.�:S�:S�T^�`a�`f�`f�:g��D��N�N�%�%�i��3�S�^�^�5N�5N�z�[\�5]��N�N�,�,�Y�����E��N�N�,�,�Z�����F��/�>�>��B�E��b��(�2�q�/�5��8�<�H����V�.����W�/��N�N�%�%�i��3��N�N�%�%�j�!�4��N�N�,�,�Y�����E��N�N�,�,�Z�����F����S�^�^�7�7�9�2�>��N�N�)�)�+��
�N�N�%�%�i��3��N�N�%�%�j�!�4��N�N�,�,�Y�����E��N�N�,�,�Z�����F����S�^�^�7�7�9�2�>��N�N�)�)�+�s
�H'L&�&C<P"c��UO[OO2-2,o[	U2o[OOU[OU2[OOU[O2U2[OOU]2[OOU[OP2U]PTt,tFDpfUOO*
MJ!	ooUOVr2[OOU]2P!ttoh[OOS]2h9hr
)r?rr%r,rr5rYr[r2rr)r)rr�rqr-rL�line�liness&&&&    r	�check_lines�LineMonitoringTest.check_lineszs��	/����S�^�^�7�7�9�2�>��F�*�6�2�H��N�N�,�,�T�1�6�6�8�D��N�N�%�%�d�A�F�F�3��F��N�N�%�%�d�A�.��N�N�,�,�T�1�6�6�4�@�FL�Q�r�l�T�l�d�T�]�]�9�9�9�9�l�E�T����U�-��N�N�%�%�d�A�.��U��
�N�N�%�%�d�A�.�s�C4E�7'E�E�E�"E:c�6�QoUOU,QN2P!)c��]o]o]o]o]oP!rRr�rYs r	r�,LineMonitoringTest.test_linear.<locals>.func�s���D��D��D��D��Dr)rSr�r����r[�r)rs& r	�test_linear�LineMonitoringTest.test_linear�s��	�	
����{�+rc�6�QoUOU,QN2P!)c�N�QOQ2%c	]o]o]oP!]o]oP!)�true�t��
startswithr_s r	r�,LineMonitoringTest.test_branch.<locals>.func�s0��� � ��%�%������D����Dr�rSr�r�rkrcrds& r	�test_branch�LineMonitoringTest.test_branch�s��	�	
����y�)rc�d�QoUOU,QN2QoUOU,QN2P!)c�.�]o]o]oP!]o]oP!9hr�rr_s r	�func1�1LineMonitoringTest.test_try_except.<locals>.func1�s)��
������D��
����D�s��c�&�]o]g]o]oP!9hr�rr_s r	�func2�1LineMonitoringTest.test_try_except.<locals>.func2�s"��
������
����D�s��rn)rSr�r�rarbrkrc)r)rsrvs&  r	�test_try_except�"LineMonitoringTest.test_try_except�s0��	�	
����	�*�	�	
����
�.rc�6�QoUOU,QN2P!)c�<`�QnU1Qko[U22P!)c3� �Pw�	P!3hrrrrr	rU�ALineMonitoringTest.test_generator_with_line.<locals>.f.<locals>.a�s������	c3�8: �R2FPiw�K
P!K3hrrrTs�r	�b�ALineMonitoringTest.test_generator_with_line.<locals>.f.<locals>.b�s�����3���s�
��)�next)r�rUs @r	rV�6LineMonitoringTest.test_generator_with_line.<locals>.f�s���
�
����Ir)rSr�rbrar�rarc)r)rVs& r	�test_generator_with_line�+LineMonitoringTest.test_generator_with_line�s��	�	
����M�*rr)r`rarbrcrKrOrTr'r[rerorxr�rdrerfs@r	rHrH5s7����,�$,�.,�409�
/� 	,�	*�/�,	+�	+rrHc�4`�\sQsQsnQsQsQsQsUsP!)�TestDisable�c#�^ �[]
2FDoU%c]w�	J]w�	J	P!3h)�
�rl)r)�cond�is&& r	r�TestDisable.gen�s ����r��A������	�s�-�-c�(�]]*P!g9hrRrr(s&r	�raise_handle_reraise� TestDisable.raise_handle_reraise�s��	�
�a�C�C��	��s�	�c	�t�[FD�vq[2oP	Um[OO[V2[OO[U2UO]2FDoJ	UOUO]2[OO[]2[OO[UP2J�	P![OO[]2[OO[SP2h9hr$)�INSTRUMENTED_EVENTSrrrr%r5r'r2r�
assertLessr})r)r��namer�rs&    r	�test_disable_legal_events�%TestDisable.test_disable_legal_events�s���.�.�K�E�

I�,�.��"&������0�0��E�K����)�)�)�U�;����!��A��%�����
�
�q�1����)�)�)�Q�7����0�0��E�4�H�/�����)�)�)�Q�7����0�0��E�4�H�s
�BC,�,AD7r)	r`rarbrcrr�r�rdrerfs@r	r�r��s������I�Irr�c�F`�\sQsQsn\O
sQsQsQs	Us
P!)�ExceptionRecorder��c��VmP!r�r-rs&&r	r~�ExceptionRecorder.__init__�����rc�T�UOOQ[U212P!)r��r-rJ�type�r)r�r �excs&&&&r	r��ExceptionRecorder.__call__���������G�T�#�Y�/�0rr�)r`rarbrcrY�RAISE�
event_typer~r�rdrerfs@r	r�r��s�������J��1�1rr�c�>`�\sQsQsnQs\\11QksQsQs	Us
P!)�CheckEvents��c	�D�UO[OO2-2,o]oSFD=oUOo[OOV'UU22VW*oJ?	[OO
V%2U2[OO
U]2SFD-o[OOV&OP2J/	S[OO
U]2SFD-o[OOV&OP2J/	![OO
S]2SFD-o[OOX&OP2J/	h9hr
)r?rr%r,r�r5r2)r)rrq�	recorders�
event_list�
all_eventsrL�evs&&&&    r	r1�CheckEvents.get_events�s-��	R����S�^�^�7�7�9�2�>��J��J�%���(�(�����0�0��8�J�;O�P�� �
�&�
�N�N�%�%�d�7��F��N�N�%�%�d�A�.�%�����0�0��7J�7J�D�Q�&���N�N�%�%�d�A�.�%�����0�0��7J�7J�D�Q�&��
�N�N�%�%�d�A�.�%�����0�0��7J�7J�D�Q�&�s
�C1E	�	AFc�N�UOVU2oUOVR2P!r)r1r?)r)rr�rqr�r-s&&&&& r	r��CheckEvents.check_eventss ������Y�7������*rc�n�UOU[U2oUO[U2]*]2[	UQ*UQ*2FD[vqEU]*oUOUQ2U]*oUOUQ2UOU]*U]*2J]	P!)r�:NNr�:rSNr�)r��reraise)�handledr�)r1r'r?r�zip�assertIn)r)rr�r-�r�h�r0�h0s&&&     r	�check_balanced�CheckEvents.check_balanceds�������y�)�<������V��Q���*���s��F�4�L�1�D�A��1��B��M�M�"�2�3��1��B��M�M�"�3�4����Q�q�T�1�Q�4�(�2rr)r`rarbrcr1r'r�r�r�rdrerfs@r	r�r��s%����R�(1:�FW�EY�+�)�)rr�c�0�\sQsQs\O
sQsP!)�StopiterationRecorder�r)r`rarbrcrY�STOP_ITERATIONr�rdrrr	r�r�s
���!�!�Jrr�c�@`�\sQsQsn\O
sQsQsUs	P!)�ReraiseRecorder�c�T�UOOQ[U212P!)r�r�r�s&&&&r	r��ReraiseRecorder.__call__��������I�t�C�y�1�2rr)
r`rarbrcrY�RERAISEr�r�rdrerfs@r	r�r�s�������J�3�3rr�c�@`�\sQsQsn\O
sQsQsUs	P!)�UnwindRecorder�c�j�UOOQ[U2UO12P!)r�)r-rJr��co_namer�s&&&&r	r��UnwindRecorder.__call__s#�������H�d�3�i����>�?rr)
r`rarbrcrY�	PY_UNWINDr�r�rdrerfs@r	r�r�s�������J�@�@rr�c�@`�\sQsQsn\O
sQsQsUs	P!)�ExceptionHandledRecorder�"c�T�UOOQ[U212P!)r�r�r�s&&&&r	r��!ExceptionHandledRecorder.__call__&r�rr)
r`rarbrcrY�EXCEPTION_HANDLEDr�r�rdrerfs@r	r�r�"s�����$�$�J�3�3rr�c�@`�\sQsQsn\O
sQsQsUs	P!)�
ThrowRecorder�)c�T�UOOQ[U212P!)�throwr�r�s&&&&r	r��ThrowRecorder.__call__-r�rr)
r`rarbrcrY�PY_THROWr�r�rdrerfs@r	r�r�)s�������J�1�1rr�c�F`�\sQsQsn\O
sQsQsQs	Us
P!)�CallRecorder�0c��VmP!rr�rs&&r	r~�CallRecorder.__init__4r�rc�X�UOOQUOU12P!)r)r-rJr`�r)r�r rr�s&&&&&r	r��CallRecorder.__call__7s�������F�D�M�M�3�7�8rr�)r`rarbrcrYrDr�r~r�rdrerfs@r	r�r�0s�������J��9�9rr�c�F`�\sQsQsn\O
sQsQsQs	Us
P!)�ReturnRecorder�:c��VmP!rr�rs&&r	r~�ReturnRecorder.__init__>r�rc�X�UOOQUOU12P!)r�)r-rJr�)r)r�r �vals&&&&r	r��ReturnRecorder.__call__As�������H�d�l�l�C�8�9rr�)r`rarbrcrYr�r�r~r�rdrerfs@r	r�r�:s�������J��:�:rr�c�`�\sQsQsn\\\\1sQs	Qs
Q\1Q\1,sQ\1Q\1,s
QsQsQ	sQ
sQsQsQ
s\Q2sQsQsUsP!)�ExceptionMonitoringTest�Ec�@�QoUOUQ[1,2P!)c�.�]o[g]o]oP!9hr���KeyErrorr_s r	rs�=ExceptionMonitoringTest.test_simple_try_except.<locals>.func1P�"��
������
����D����r�)r�r��r)rss& r	�test_simple_try_except�.ExceptionMonitoringTest.test_simple_try_exceptNs!��	�	
���%�7�H�"5�!6�7rc�R`�[OQ2oQnQU1Qkko[[1oQ[1,oU[[
UO222UOV$UQ5[
UO2FD
oU2J	UOV$UQ5P!)�_testinternalcapic3� �]w�	]!3hrRrrrr	r�AExceptionMonitoringTest.test_implicit_stop_iteration.<locals>.genes
����G��r~c�4:�UeR2oSFDoJ	P!rr)�iteratorrrs& �r	�implicit_stop_iteration�UExceptionMonitoringTest.test_implicit_stop_iteration.<locals>.implicit_stop_iterationis������5�����rr��r�r)
r�
import_moduler�r��
StopIterationrrl�SPECIALIZATION_THRESHOLDr��SPECIALIZATION_COOLDOWN)r)r�rr�r�rrs&     @r	�test_implicit_stop_iteration�4ExceptionMonitoringTest.test_implicit_stop_iterationZs����*�7�7�8K�L��	�	�%�&;�=�	��m�,�-��	 ��E�*;�*T�*T�$U� V�W�	
���1�y��Q��(�@�@�A�A�#�%�B�	
���1�y��Qrr�r�r�c�H�QoUOUUOQ5P!)c�:�]]*P!g9hP!9hrRrrrr	r�;ExceptionMonitoringTest.test_explicit_reraise.<locals>.func�s(��
���a�C�C�����
��s�	���r�r��exception_recordersrds& r	�test_explicit_reraise�-ExceptionMonitoringTest.test_explicit_reraise��(��	�	
�����0�0�	�	2rc�H�QoUOUUOQ5P!)c�V�]]*P![cogPo=hh9hP!9hrRr���exs r	r�AExceptionMonitoringTest.test_explicit_reraise_named.<locals>.func�s1��
���a�C�C�� ������
��s�	�	 � �� �#�(rrrds& r	�test_explicit_reraise_named�3ExceptionMonitoringTest.test_explicit_reraise_named�rrc�H�QoUOUUOQ5P!)c�R�]]*P![cP!h9hP!9hrR�rArrr	r�;ExceptionMonitoringTest.test_implicit_reraise.<locals>.func�s0��
���a�C�C��!�����
��s�	�	��!��!�&rrrds& r	�test_implicit_reraise�-ExceptionMonitoringTest.test_implicit_reraise�rrc�H�QoUOUUOQ5P!)c�`�]]*P![coPo=P!Po=hh9hP!9hrRrrs r	r�AExceptionMonitoringTest.test_implicit_reraise_named.<locals>.func�s1��
���a�C�C��!������
��s�	�	%�%�(�%�(�-rrrds& r	�test_implicit_reraise_named�3ExceptionMonitoringTest.test_implicit_reraise_named�rrc�H�QoUOUUOQ5P!)c�8�]]*P!h9hP!9hrRrrrr	r�6ExceptionMonitoringTest.test_try_finally.<locals>.func�s#��
���a�C���D��
��s�	���rrrds& r	�test_try_finally�(ExceptionMonitoringTest.test_try_finally�rrc�H�QoUOUUOQ5P!)c�n`�QnU1QkoU2OP2P![cP!h9h)c�> �[]2FDo[g	P!3hrR)rl�ZeroDivisionError)r�s r	�async_generator�MExceptionMonitoringTest.test_async_for.<locals>.func.<locals>.async_generator�s����q��A�+�+�"�s�c��h: �R2Piw�K
oJKBP![cP!h9h3hrr�)rr,s �r	�
async_loop�HExceptionMonitoringTest.test_async_for.<locals>.func.<locals>.async_loop�s9�����&5�&7���d���&7�� ����s8�2� ���� �� �2�	/�/�2�/�2��sendr)r/r,s @r	r�4ExceptionMonitoringTest.test_async_for.<locals>.func�s4���
�

�
���!�!�$�'�� �
��
���%�	4�4�4rrrds& r	�test_async_for�&ExceptionMonitoringTest.test_async_for�s(��	�&	
�����0�0�	�	2rc��`�QnU1QkoUOUUOQ5UOU[UO[1*2oUOU]*Q[12P!)c3�$ �]w�	]w�	P!3hrRrrrr	r�/ExceptionMonitoringTest.test_throw.<locals>.gen������G��G�rc�~:�R2o[U2UO[2P![cP!h9hr)r�r��
IndexError��grs �r	r�0ExceptionMonitoringTest.test_throw.<locals>.func�s4���
��E���Q�����
�#���
��
�s�'-�	<�<�<rr�)r�r
r1r'r�r?r<)r)rr-rs&  @r	�
test_throw�"ExceptionMonitoringTest.test_throw�sp���	�	�	
�����0�0�	�	2�������$�$�
�'7�7�
��
	
������W�j�$9�:rc�`	�[OQ2oQQ2n	U	1Qko[UO2FD
oU2J	[[
1oUO
U[U2o[OUP	Q5oSOQSTt,tFDpwOMJ	to2Q[Q1Q,oUOVX2P!ttoh)	r�c�(`�\sQsQsnQsQsUsP!)�OExceptionMonitoringTest.test_no_unwind_for_shim_frame.<locals>.ValueErrorRaiseric��[2grrr(s&r	r~�XExceptionMonitoringTest.test_no_unwind_for_shim_frame.<locals>.ValueErrorRaiser.__init__s
�� �l�"rr�r`rarbrcr~rdrerfs@r	�ValueErrorRaiserrDs����
#�
#rrHc�::�R2![cP!h9hrr)rHs�r	rV�@ExceptionMonitoringTest.test_no_unwind_for_shim_frame.<locals>.fs#���
�'�)�)���
��
�s��	��)�adaptive�CALL_ALLOC_AND_ENTER_INITr�r~)r�rVN)rrrlrr�r�r1r'�dis�get_instructionsr��opnamerAr?)
r)r�rVrr�r-�adaptive_instsr�r�rHs
&        @r	�test_no_unwind_for_shim_frame�5ExceptionMonitoringTest.test_no_unwind_for_shim_frame
s����)�7�7�8K�L��	#�	#�	��(�A�A�B�A�
�C�C�
��
�	�����I�y�9���-�-�a�$�?���
�
�'�-�.�~�!�X�X�~�.�	
��z�:�.�!�
��
	
����*��
/s�C
c�`�QnU1Qko[1oUOU[U2oQ[Q1,oUO	V42P!)c3� �]w�	P!3hrRrrrr	r�4ExceptionMonitoringTest.test_gen_unwind.<locals>.gen.s
����G�r~c�N:�R2o[U2UO2P!r)r��closer=s �r	rV�2ExceptionMonitoringTest.test_gen_unwind.<locals>.f1s�����A���G�
�G�G�Irr�r)r�r1r'�
GeneratorExitr?)r)rVr�r-r�rs&    @r	�test_gen_unwind�'ExceptionMonitoringTest.test_gen_unwind-sN���	�	�
�
�	�����I�y�9��
�}�e�,�
��	
����*rr)r`rarbrcr�r�r�r�r
r�rr+�initialr�rrrr!r&r5r@rrQrZrdrerfs@r	r�r�Es�����	�� ��	��
8�&R�R
�#�$�	�%�&��G�
�%�&�	�%�&��G�

2�
2�
2� 
2�
2�2�2;�2�+��+�D+�+rr�c�F`�\sQsQsn\O
sQsQsQs	Us
P!)�LineRecorderi?c��VmP!rr�rs&&r	r~�LineRecorder.__init__Dr�rc�x�UOOQUOV!O*
12P!r_)r-rJr�r)r)r�rYs&&&r	r��LineRecorder.__call__Gs(�������F�D�L�L�$�9L�9L�2L�M�Nrr�)r`rarbrcrYr[r�r~r�rdrerfs@r	r^r^?s�������J��O�Orr^c�.`�\sQsQsnQsQsQsUsP!)�CEventRecorderiJc��VmP!rr�rs&&r	r~�CEventRecorder.__init__Lr�rc�l�UOOUOUOU12P!r)r-rJr�r`r�s&&&&&r	r��CEventRecorder.__call__Os#�������D�O�O�T�]�]�C�@�Arr�r�rfs@r	rdrdJs�����B�Brrdc�4�\sQsQs\O
sQsQsP!)�CReturnRecorderiR�C returnr)	r`rarbrcrYrBr�r�rdrrr	rjrjRs�����J��Jrrjc�4�\sQsQs\O
sQsQsP!)�CRaiseRecorderiW�C raiser)	r`rarbrcrYrCr�r�rdrrr	rmrmWs�����J��Jrrmc�4`�\sQsQsnQsQsQsQsUsP!)�TestManyEventsi^c��QoUOU[QQQ[OO1QQQQQ	,Q5P!)
c��]o]o]oP!rRr��line1�line2�line3s   r	rs�)TestManyEvents.test_simple.<locals>.func1b����E��E��Errrs�r�r��rYr1r��rYrsrS�rYrsr��rYrsr��rYr1��rr2r��r��MANY_RECORDERSrr%r8r�s& r	�test_simple�TestManyEvents.test_simple`sJ��	�
	
���%�^�&�
�W�c�n�n�4�4�5� � � �&�%�I'��	(rc
��QoUOU[QQQ[OO1QQQQ],1QQ],1Q	Q
Q,	Q5P!)c�2�]o,O]2]oP!rRrI�rtrvs  r	rv�)TestManyEvents.test_c_call.<locals>.func2r����E��I�I�a�L��ErrrvrJrkryrz�rYrvrS�rYrvr��rYrvr�r~r�r��r)rvs& r	�test_c_call�TestManyEvents.test_c_callpsb��	�
	
���%�^�&�
�W�c�n�n�4�4�5� � �
�X��s�#�
��A�3�'� �&�%�	I'��		(rc��QoUOU[QQQ[OO1QQQQ[
1Q	Q
QQQ
,Q5P!)c�.�]o[g]o]oP!9hr�r�r_s r	�func3�-TestManyEvents.test_try_except.<locals>.func3�r�r�rr�r�ryrz�rYr�rS�rYr�r��rYr�r��rYr�ra�rYr�rb�rYr�rkr~r�)r�r�rr%r8r��r)r�s& r	rx�TestManyEvents.test_try_except�s[��	�	
���%�^�&�
�W�c�n�n�4�4�5� � � �
�h�� � � �&�%�I'��	(rr)	r`rarbrcr�r�rxrdrerfs@r	rprp^s����(� (�$(�(rrpc�F`�\sQsQsn\O
sQsQsQs	Us
P!)�InstructionRecorderi�c��VmP!rr�rs&&r	r~�InstructionRecorder.__init__�r�rc�~�UOQ6wc+UOOQUOU12P!P!)r1�instruction)r�r-rJ)r)r�r s&&&r	r��InstructionRecorder.__call__�s0���<�<�<�'��K�K���
�t�|�|�V�D�E�(rr�)r`rarbrcrYrDr�r~r�rdrerfs@r	r�r��s�������J��F�Frr�c�D`�\sQsQsnPsQsQsQsQsQs	Qs
UsP!)�TestLineAndInstructionEventsi�c�B�QoUOU[,QNQ5P!)c��]o]o]oP!rRrrss   r	rs�7TestLineAndInstructionEvents.test_simple.<locals>.func1�rxrry�
rzr{�r�rsra�r�rsrkr|�r�rs�)r�rsr�r})r�rs�)r�rs�)r�rs�)r�rs�r~�r��LINE_AND_INSTRUCTION_RECORDERSr�s& r	r��(TestLineAndInstructionEvents.test_simple�s%��	�
	
���%�-K�Y
��	rc�B�QoUOU[,QNQ5P!)c�2�]o,O]2]oP!rRrIr�s  r	rv�7TestLineAndInstructionEvents.test_c_call.<locals>.func2�r�rry)rzr��r�rvra)r�rvrkr�)r�rvr�)r�rvr�)r�rv�)r�rv� )r�rv�(r�)r�rv�*)r�rv�,)r�rv�.)r�rv�0r~r�r�s& r	r��(TestLineAndInstructionEvents.test_c_call�s%��	�
	
���%�-K�Y
��	rc�B�QoUOU[,QNQ5P!)c�.�]o[g]o]oP!9hr�r�r_s r	r��;TestLineAndInstructionEvents.test_try_except.<locals>.func3�r�r�ry)rzr�)r�r�rar�)r�r�rk)r�r�r�r�)r�r�r�)r�r��)r�r��r�)r�r��r�)r�r��)r�r��)r�r�r�r�)r�r�r�)r�r��")r�r��$)r�r��&r~r�r�s& r	rx�,TestLineAndInstructionEvents.test_try_except�s%��	�	
���%�-K�Y
��	rc��QoUOU[,QNQ5[OO	2UOU[,QNQ5P!)c��]o]o]oP!rRrrss   r	rs�=TestLineAndInstructionEvents.test_with_restart.<locals>.func1rxrryr�)r�r�rr%r6r�s& r	�test_with_restart�.TestLineAndInstructionEvents.test_with_restart�sS��	�
	
���%�-K�
Y(��
	)�	���%�%�'����%�-K�
Y(��
	)rc�`�,nU1Qko[OO[]2[OO	[[
OU2[OO	[[
OQ2[OO[[
O[
O*2[OO[[
O2,n]o[OO[]2UO[R2]2P!)c�,:�ROQ2P!r_rIrKs*�r	rY�ITestLineAndInstructionEvents.test_turn_off_only_instruction.<locals>.line*s����M�M�&�!rc��P!rr�rLs*r	rM�MTestLineAndInstructionEvents.test_turn_off_only_instruction.<locals>.<lambda>.s��QUr)
rr%r2r'r5rYr[rD�
assertGreaterr)r)rYrUr-s&  @r	�test_turn_off_only_instruction�;TestLineAndInstructionEvents.test_turn_off_only_instruction%s������	"����!�!�)�Q�/����(�(��A�F�F�D�A����(�(��A�M�M�CU�V����!�!�)�Q�V�V�a�m�m�-C�D����!�!�)�Q�V�V�4���
�����!�!�)�Q�/����3�v�;��*rr)r`rarbrcrr�r�rxr�r�rdrerfs@r	r�r��s*�����G��.�4!�F$)�L+�+rr�c�`�\sQsQsn\\11Qks\Q2s,QNs	Qs
Qs\Q2sQ
QQ\
OO1QQQ,sQ	sQ
sQsUsP!)�TestInstallIncrementallyi6c	��UO[OO2-2,o]oSFD4oVgO*o[OOV62J6	SFD3o[OO
V7OUU22J5	U2[OOU]2SFD-o[OO
V7OP2J/	SFDoUOV�2J	[OOU]2SFD-o[OO
V7OP2J/	P![OOS]2SFD-o[OO
X7OP2J/	h9hr
)r?rr%r,r�r2r5r�)	r)r�must_includerqr�r�r�rLrYs	&&&&&    r	r��%TestInstallIncrementally.check_events8sN��	R����S�^�^�7�7�9�2�>��J��J�%���1�1�1�
����)�)�$�;�&�&�����0�0��7J�7J�H�U_�L`�a�&��F��N�N�%�%�d�A�.�%�����0�0��7J�7J�D�Q�&�$���
�
�d�/�%�
�N�N�%�%�d�A�.�%�����0�0��7J�7J�D�Q�&��
�N�N�%�%�d�A�.�%�����0�0��7J�7J�D�Q�&�s
�DE6�6AGc��]oP!rRr)rts r	rs�TestInstallIncrementally.func1Ms���rc�n�[[,oUOUOVOQ5P!�)r�r�)r^r�r�rs�MUST_INCLUDE_LI�r)r�s& r	�test_line_then_instruction�3TestInstallIncrementally.test_line_then_instructionW�0��"�$7�9�	����$�*�*�&/�@T�@T�	�	Vrc�n�[[,oUOUOVOQ5P!r�)r�r^r�rsr�r�s& r	�test_instruction_then_line�3TestInstallIncrementally.test_instruction_then_line\�/��)�<�9�	����$�*�*�&/�@T�@T�	�	Vrc��[Q2P!)Nrr�rrr	rv�TestInstallIncrementally.func2as	���B�rrvrc�n�[[,oUOUOVOQ5P!r�)r�r�r�rv�MUST_INCLUDE_CIr�s& r	�test_call_then_instruction�3TestInstallIncrementally.test_call_then_instructionnr�rc�n�[[,oUOUOVOQ5P!r�)r�r�r�rvr�r�s& r	�test_instruction_then_call�3TestInstallIncrementally.test_instruction_then_callsr�rr)r�r|r�r�r�)rrr)r�rvr�)r�rvr�)r`rarbrcr'r�r��staticmethodrsr�r�r�rvrr%r8r�r�r�rdrerfs@r	r�r�6s�����4=�J[�I]�R�*����)�O�V�
V�
����
(�
�W�c�n�n�4�4�5��(�(�*�O�V�
V�Vrr�c�`�\sQsQsn\Q1QksQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsQsQsUsP!)�TestLocalEventsizc	��UO[OO2-2,o]oSFD=oUOo[OOV8UU22Vh*oJ?	[OO
V1OU2U2[OO
V1O]2SFD-o[OOV7OP2J/	UOVR2[OO
V1O]2SFD-o[OOV7OP2J/	P![OO
X1O]2SFD-o[OOX7OP2J/	h9hr
)r?rr%r,r�r5r4r)	r)rr�rqr�r�r�rLr�s	&&&&&    r	r��TestLocalEvents.check_events|sJ��	R����S�^�^�7�7�9�2�>��J��J�%���(�(�����0�0��8�J�;O�P�� �
�&�
�N�N�+�+�D�-�-��L��F��N�N�+�+�D�-�-��C�%�����0�0��7J�7J�D�Q�&����Z�2��N�N�+�+�D�-�-��C�%�����0�0��7J�7J�D�Q�&��
�N�N�+�+�D�-�-��C�%�����0�0��7J�7J�D�Q�&�s
�DE9�9A Gc�B�QoUOU[,QNQ5P!)c��]o]o]oP!rRrrss   r	rs�*TestLocalEvents.test_simple.<locals>.func1�rxrry)r{r|r}�r��LOCAL_RECORDERSr�s& r	r��TestLocalEvents.test_simple�s$��	�
	
���%�_�J"��	#rc
�X�QoUOU[QQQQ],1QQ],1Q,Q5P!)c�2�]o,O]2]oP!rRrIr�s  r	rv�*TestLocalEvents.test_c_call.<locals>.func2�r�rrrJrkryr�r�r�r�r�s& r	r��TestLocalEvents.test_c_call�sE��	�
	
���%�_� � �
�X��s�#�
��A�3�'� �J"��	#rc�B�QoUOU[,QNQ5P!)c�.�]o[g]o]oP!9hr�r�r_s r	r��.TestLocalEvents.test_try_except.<locals>.func3�r�r�ry)r�r�r�r�r�r�r�r�s& r	rx�TestLocalEvents.test_try_except�s$��	�	
���%�_�J"��	#rc��UO[29^tt^2[OO	[
[O[O2PPP2P!)%fhP!9hr)
r@rArr%r4r'r�rrYrBr(s&r	�test_set_non_local_event�(TestLocalEvents.test_set_non_local_event�sB��
�
�
�z�
*�
*��N�N�+�+�I�y�7I�7I�1�:�:�V�+�
*�
*�
*�s�AA+�+A<	�4A<	c�4`�QoQo[2nU1Qko[OO[[
OU2[OO[UO[
O2U2U2UORQ.2[OO[UO]2[OO[[
OP2P![cK�h9h[cK�h9h[OO[SO]2[OO[[
OP2h9h)c�<�[Q2g[cgh9h��test��RuntimeErrorrrr	�foo�/TestLocalEvents.test_local_reraise.<locals>.foo��$��
�"�6�*�*���
��
����	�c�<�[Q2g[cgh9hr
rrrr	�bar�/TestLocalEvents.test_local_reraise.<locals>.bar�rrc�@:�ROUO2P!r)r�r��r�r r�r-s&&&�r	r]�4TestLocalEvents.test_local_reraise.<locals>.callback�s����J�J�t�|�|�$rr)rrr%r5r'rYr�r4rrr?�r)rrr]r-s&   @r	�test_local_reraise�"TestLocalEvents.test_local_reraise�s���	�	����	%�	I��N�N�,�,�Y��	�	�8�L��N�N�+�+�I�s�|�|�Q�Y�Y�O�
���
���
���V�e�W�-��N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y��	�	�4�H�� �
��
�� �
��
��
�N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y��	�	�4�H�s[�A0D3�D�D"�D3�	D�D�D3�D�D3�"	D0�,D0�-D3�/D0�0D3�3A$Fc�@`�]nQoU1Qko[OO[[O
U2[OO
[UO[O
2U2UOR]2U2UOR]2[OO
[UO]2[OO[[O
P2P![cK�h9h[cK�h9h[OO
[SO]2[OO[[O
P2h9h)rc�<�[Q2g[cgh9hr
rrrr	r�7TestLocalEvents.test_local_reraise_disable.<locals>.foo�rrc�L:�R]*
n[OO!rR�rr%r7�r�r r��
call_counts&&&�r	r]�<TestLocalEvents.test_local_reraise_disable.<locals>.callback������!�O�J��>�>�)�)�)r)
rr%r5r'rYr�r4rrr?�r)rr]r$s&  @r	�test_local_reraise_disable�*TestLocalEvents.test_local_reraise_disable�s����
�	�	*�
	I��N�N�,�,�Y��	�	�8�L��N�N�+�+�I�s�|�|�Q�Y�Y�O�
���
���Z��+�
���
���Z��+��N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y��	�	�4�H�� �
��
��
 �
��
��
�N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y��	�	�4�H��a�A0D9�D�D9�D(�!D9�	D%�!D%�"D9�$D%�%D9�(	D6�2D6�3D9�5D6�6D9�9A$Fc�`�QoQo,nU1Qko[OO[[O
U2[OO
[UO[O
2U2o[U2UO[Q22U2o[U2UO[Q22UORQ,2[OO
[UO]2[OO[[O
P2P![cK�h9h[cK�h9h[OO
[SO]2[OO[[O
P2h9h)c3�$ �]w�	]w�	P!3hrRrrrr	�gen_foo�4TestLocalEvents.test_local_py_throw.<locals>.gen_foo
r:rc3�$ �]w�	]w�	P!3hrRrrrr	�gen_bar�4TestLocalEvents.test_local_py_throw.<locals>.gen_barr:rc�@:�ROUO2P!r�rJr�rs&&&�r	r]�5TestLocalEvents.test_local_py_throw.<locals>.callback�����M�M�$�,�,�'rrr-�rr%r5r'rYr�r4rr�r�rr?)r)r-r0r]r>r�r-s&     @r	�test_local_py_throw�#TestLocalEvents.test_local_py_throwsM���	�	���	(�	J��N�N�,�,�Y��
�
�H�M��N�N�+�+�I�w�7G�7G����T��	�A���G�
�����V�,�-��	�A���G�
�����V�,�-�
���V�i�[�1��N�N�+�+�I�w�7G�7G��K��N�N�,�,�Y��
�
�D�I�� �
��
�� �
��
��

�N�N�+�+�I�w�7G�7G��K��N�N�,�,�Y��
�
�D�I�sa�BE5�E�/E5�E$�E5�	E!�E!�E5� E!�!E5�$	E2�.E2�/E5�1E2�2E5�5A$Gc��`�]nQoU1Qko[OO[[O
U2[OO
[UO[O
2U2o[U2UO[Q22UOR]2U2o[U2UO[Q22UOR]2[OO
[UO]2[OO[[O
P2P![cK�h9h[cK�h9h[OO
[SO]2[OO[[O
P2h9h)rc3�$ �]w�	]w�	P!3hrRrrrr	r-�<TestLocalEvents.test_local_py_throw_disable.<locals>.gen_foo3r:rc�L:�R]*
n[OO!rRr"r#s&&&�r	r]�=TestLocalEvents.test_local_py_throw_disable.<locals>.callback7r&rrr6)r)r-r]r>�g2r$s&    @r	�test_local_py_throw_disable�+TestLocalEvents.test_local_py_throw_disable.sV����
�	�	*�
	J��N�N�,�,�Y��
�
�H�M��N�N�+�+�I�w�7G�7G����T��	�A���G�
�����V�,�-�
���Z��+���B���H�
�����f�-�.�
���Z��+��N�N�+�+�I�w�7G�7G��K��N�N�,�,�Y��
�
�D�I�� �
��
�� �
��
��
�N�N�+�+�I�w�7G�7G��K��N�N�,�,�Y��
�
�D�I�sa�BF�E!�,$F�E2�+F�!	E/�+E/�,F�.E/�/F�2	F�<F�=F�?F�F�A$G'c��`�QoQo,nU1Qko[OO[[O
U2[OO
[UO[O
2U2U2UORQ,2[OO
[UO]2[OO[[O
P2P![OO
[SO]2[OO[[O
P2h9h)c�@�[Q2g[cP!h9hr
rrrr	r�-TestLocalEvents.test_local_raise.<locals>.fooV�$��
�"�6�*�*���
��
����	��c�@�[Q2g[cP!h9hr
rrrr	r�-TestLocalEvents.test_local_raise.<locals>.bar\rDrEc�@:�ROUO2P!rr3rs&&&�r	r]�2TestLocalEvents.test_local_raise.<locals>.callbackdr5rr�	rr%r5r'rYr�r4rr?rs&   @r	�test_local_raise� TestLocalEvents.test_local_raiseSs����	�	���	(�	G��N�N�,�,�Y�����J��N�N�+�+�I�s�|�|�Q�W�W�M��E��E����V�e�W�-��N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y�����F��
�N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y�����F��
�BD�A$E+c�`�]nQoU1Qko[OO[[O
U2[OO
[UO[O
2U2UOR]2U2UOR]2[OO
[UO]2[OO[[O
P2P![OO
[SO]2[OO[[O
P2h9h)rc�@�[Q2g[cP!h9hr
rrrr	r�5TestLocalEvents.test_local_raise_disable.<locals>.foovrDrEc�L:�R]*
n[OO!rRr"r#s&&&�r	r]�:TestLocalEvents.test_local_raise_disable.<locals>.callback|r&rrJr's&  @r	�test_local_raise_disable�(TestLocalEvents.test_local_raise_disableqs�����
�	�	*�
		G��N�N�,�,�Y�����J��N�N�+�+�I�s�|�|�Q�W�W�M��E����Z��+��E����Z��+��N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y�����F��
�N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y�����F��
�B"D�A$E9c��`�QoQo,nU1Qko[OO[[O
U2[OO
[UO[O
2U2U2UORQ,2[OO
[UO]2[OO[[O
P2P![OO
[SO]2[OO[[O
P2h9h)c�@�[Q2g[cP!h9hr
rrrr	r�9TestLocalEvents.test_local_exception_handled.<locals>.foo�rDrEc�@�[Q2g[cP!h9hr
rrrr	r�9TestLocalEvents.test_local_exception_handled.<locals>.bar�rDrEc�@:�ROUO2P!rr3rs&&&�r	r]�>TestLocalEvents.test_local_exception_handled.<locals>.callback�r5rr�	rr%r5r'rYr�r4rr?rs&   @r	�test_local_exception_handled�,TestLocalEvents.test_local_exception_handled�s����	�	���	(�	S��N�N�,�,�Y��8K�8K�X�V��N�N�+�+�I�s�|�|�Q�EX�EX�Y��E��E����V�e�W�-��N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y��8K�8K�T�R��
�N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y��8K�8K�T�R�rMc�`�]nQoU1Qko[OO[[O
U2[OO
[UO[O
2U2UOR]2U2UOR]2[OO
[UO]2[OO[[O
P2P![OO
[SO]2[OO[[O
P2h9h)rc�@�[Q2g[cP!h9hr
rrrr	r�ATestLocalEvents.test_local_exception_handled_disable.<locals>.foo�rDrEc�L:�R]*
n[OO!rRr"r#s&&&�r	r]�FTestLocalEvents.test_local_exception_handled_disable.<locals>.callback�r&rr]r's&  @r	�$test_local_exception_handled_disable�4TestLocalEvents.test_local_exception_handled_disable�s�����
�	�	*�
		S��N�N�,�,�Y��8K�8K�X�V��N�N�+�+�I�s�|�|�Q�EX�EX�Y��E����Z��+��E����Z��+��N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y��8K�8K�T�R��
�N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y��8K�8K�T�R�rUc�$`�QoQo,nU1Qko[OO[[O
U2[OO
[UO[O
2U2U2UORQ,2[OO
[UO]2[OO[[O
P2P![cK�h9h[cK�h9h[OO
[SO]2[OO[[O
P2h9h)c��[Q2gr
rrrr	r�1TestLocalEvents.test_local_py_unwind.<locals>.foo��
���v�&�&rc��[Q2gr
rrrr	r�1TestLocalEvents.test_local_py_unwind.<locals>.bar�rjrc�@:�ROUO2P!rr3rs&&&�r	r]�6TestLocalEvents.test_local_py_unwind.<locals>.callback�r5rr�
rr%r5r'rYr�r4rrr?rs&   @r	�test_local_py_unwind�$TestLocalEvents.test_local_py_unwind�s���	'�	'���	(�	K��N�N�,�,�Y����X�N��N�N�+�+�I�s�|�|�Q�[�[�Q�
���
���
���V�e�W�-��N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y����T�J�� �
��
��
 �
��
��

�N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y����T�J�s[�A0D+�D	�D�D+�		D�D�D+�D�D+�	D(�$D(�%D+�'D(�(D+�+A$Fc�@`�]nQoU1Qko[OO[[O
U2[OO
[UO[O
2U2UOR]2U2UOR]2[OO
[UO]2[OO[[O
P2P![cK�h9h[cK�h9h[OO
[SO]2[OO[[O
P2h9h)rc��[Q2gr
rrrr	r�9TestLocalEvents.test_local_py_unwind_disable.<locals>.foo�rjrc�L:�R]*
n[OO!rRr"r#s&&&�r	r]�>TestLocalEvents.test_local_py_unwind_disable.<locals>.callback�r&rror's&  @r	�test_local_py_unwind_disable�,TestLocalEvents.test_local_py_unwind_disable�s����
�	'�	*�
	K��N�N�,�,�Y����X�N��N�N�+�+�I�s�|�|�Q�[�[�Q�
���
���Z��+�
���
���Z��+�
�N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y����T�J�� �
��
�� �
��
��

�N�N�+�+�I�s�|�|�Q�G��N�N�,�,�Y����T�J�r*r)r`rarbrcr'r�r�r�rxr	rr(r7r?rKrSr^rerprwrdrerfs@r	r�r�zsl����09�R�R�*
#�#�#�$W�
"I�HI�B%J�N#J�JG�<G�6S�<S�6K�BK�Krr�c��UO2FD:vq#oX!t96:c
U6fJLJUe
QUQ0t!V@O*
t!	P!)Nz[offset=�])�co_linesr)r�r r��endrYs&&   r	�line_from_offsetr}sO�� �M�M�O���D�� �S� � ��|�!�&���+�+��-�-�-�-�	,�
�Irc�J`�\sQsQsn\O
sQsQsQs	Qs
UsP!)�JumpRecorderir�c��VmP!rr�rs&&r	r~�JumpRecorder.__init__r�rc��[V2o[V2oUOOUOUOVE12P!r)r}r-rJr�r�)r)r��from_�to�	from_line�to_lines&&&&  r	r��JumpRecorder.__call__s7��$�T�1�	�"�4�,�������D�I�I�t�|�|�Y�H�Irr��r`rarbrcrY�JUMPr�r�r~r�rdrerfs@r	rrs$�������J��D��J�Jrrc�4�\sQsQs\O
sQsQsP!)�BranchRecorderir�r)	r`rarbrcrY�BRANCHr�r�rdrrr	r�r�s�����J��Drr�c�4�\sQsQs\O
sQsQsP!)�BranchRightRecorderi"�branch rightr�	r`rarbrcrY�BRANCH_RIGHTr�r�rdrrr	r�r�"������J��Drr�c�4�\sQsQs\O
sQsQsP!)�BranchLeftRecorderi'�branch leftr�	r`rarbrcrY�BRANCH_LEFTr�r�rdrrr	r�r�'������J��Drr�c�N`�\sQsQsn\O
sQsQQksQs	Qs
UsP!)�JumpOffsetRecorderi,r�c��VmP!rr�)r)r-�offsetss&&&r	r~�JumpOffsetRecorder.__init__1r�rc�l�UOOUOUOV#12P!r)r-rJr�r�)r)r�r�r�s&&&&r	r��JumpOffsetRecorder.__call__4s#�������D�I�I�t�|�|�U�?�@rr�rr�rfs@r	r�r�,s$�������J��D��A�Arr�c�4�\sQsQs\O
sQsQsP!)�BranchLeftOffsetRecorderi7r�rr�rrr	r�r�7r�rr�c�4�\sQsQs\O
sQsQsP!)�BranchRightOffsetRecorderi<r�rr�rrr	r�r�<r�rr�c�J`�\sQsQsnPsQsQsQsQsQs	Qs
QsUsP!)	�TestBranchAndJumpEventsiIc��QoQQkoUOU[,QNQ5UOU[,QNQ5UOU[,QNQ5UOU[,QNQ5UOU[,QNQ5P!)	c�N�]o[]2FDoU%c]oJ]oJ	P!rRr���xrUs  r	r�/TestBranchAndJumpEvents.test_loop.<locals>.funcN�'���A��1�X����A��A�	�

rc�,�U]6cU]*
oJP!r�r��ns&r	�	whilefunc�4TestBranchAndJumpEvents.test_loop.<locals>.whilefuncW����a�%��Q���
rryr
)�r�rr�r��r�rr�rk�r�rrkr�r��r�rr�ra�r�rrar��r�rr��)rz�rYrrS�rYrr�r��rYrr�r�)rYrrkr�r�r�r�r��rYrrar�r�r�)rYrr�r~)�r�rr�r�)r�rr�rkr�)r�rr�ra)r�rr�r�)�r�r�rSr�r�r�)r�r�rSr�)�r�rr�r�)r�rr��>r�)r�rr��6)r�rr��J)r��JUMP_AND_BRANCH_RECORDERS�JUMP_BRANCH_AND_LINE_RECORDERS�BRANCHES_RECORDERS�BRANCH_OFFSET_RECORDERS�r)rr�s&  r	�	test_loop�!TestBranchAndJumpEvents.test_loopLs���	�	�
	
���$�,E�S&��	'�	
���$�,J�X(��	)�(	
���$�,>�L,��	-�	
���)�1C�Q1��	2�	
���$�,C�Q.��	/rc�`�QQ2nU1QkoUOU[,QNQ5UOU[QQQQQ[1Q	Q
QQQQ
QQQ,Q5P!)c�(`�\sQsQsnQsQsUsP!)�5TestBranchAndJumpEvents.test_except_star.<locals>.Fooi�c��P!rrr(s&r	�meth�:TestBranchAndJumpEvents.test_except_star.<locals>.Foo.meth����rr�r`rarbrcr�rdrerfs@r	�Foor�������
�
rr�c�:�[g,9[9d$oR2pO2Po=ML	Po=MMLM49eP!th9h[cP!h9hr�r�r�r���erVr�s  �r	r�6TestBranchAndJumpEvents.test_except_star.<locals>.func��G���
�(�"�N��(�	�(���A�v�v�x�x��(����
��
��;��A	�A	�4	�A	�A	�A�A�	A�A�Aryr�rzr�r�r�r��r�rrara�rYrrb�rYr�rS�r�rrbz[offset=122]�r�rz[offset=126]z[offset=132]r~)rzr�r�r�r�r�r�r�r�r�r~)r�r�N)r�rN)r�r��FLOW_AND_LINE_RECORDERSr��r)rr�s& @r	�test_except_star�(TestBranchAndJumpEvents.test_except_star�s}���	�	�	�	
���$�,J�X(��	)�	
���$�,C�&����
�h���$���$�/�>�$�&�Q(��	)rc	�T�QQkoQoQoUOU[UUUUU,Q5P!)rc�.�U]6c
U]*
oJP!�rarr�s&r	r�BTestBranchAndJumpEvents.test_while_offset_consistency.<locals>.foo�����A�#���Q���rryr
)r�rr�r�)r�rr�r�)r�r�)r)r�in_loop�	exit_loops&   r	�test_while_offset_consistency�5TestBranchAndJumpEvents.test_while_offset_consistency�s>��	�1��3�	����#�+B������P��	rc�B�QoUOU[,QNQ5P!)c�n`�QnU1QkoU2OP2P![cP!h9h)c�( �]3w�	]3w�	P!3hr�rrrr	r�ATestBranchAndJumpEvents.test_async_for.<locals>.func.<locals>.gen�s���������c��B: �R2Piw�K
oJKBP!3hrr��yrs �r	r�ATestBranchAndJumpEvents.test_async_for.<locals>.func.<locals>.foo�s$����"�u���!���u����	������r1)rrs @r	r�4TestBranchAndJumpEvents.test_async_for.<locals>.func�s2���
�
�

���
�
�4� �� �
��
�r4ry)�r�rrSrSr�)r�rrSr�)r�rr�r��r�r�rds& r	r5�&TestBranchAndJumpEvents.test_async_for�s%��
	�	
���$�,>�L-��	.rc�F�QQkoUOU[,QNQ5P!)rSc��]o[]2FD2oS9]6Xc
U]*
oJ]6XcU]*
oJ(U]*
oJ4	U!r
r�)�vr�s& r	r�0TestBranchAndJumpEvents.test_match.<locals>.func�sC���A��1�X�����Q�����Q�����Q�����HrryrR)r��r�rrark�r�rrkr�r�)r�rrarbr�r�)r�rrkr�r�r�r)r�rr�r�r�rds& r	�
test_match�"TestBranchAndJumpEvents.test_match�s%��
	�	
���$�,>�L-��	.rc�2`�QQkoU1Qko[OO[UO[
O2[OO[[
OU2ROUQ2]2P!)c�2�U]6�cPgQ[Q[-!)r��sr�)�str�int)�formats"r	�__annotate__�QTestBranchAndJumpEvents.test_callback_set_frame_lineno.<locals>.func.__annotate__s��	�	�C�	�C�	rc�:�UOQ2%c]!]!)rjrk)rs&r	r�DTestBranchAndJumpEvents.test_callback_set_frame_lineno.<locals>.funcs���|�|�C� � ��rc��:�[O2oU%cUOUIcUOoJ&RO	U2UO
]*UmP!rR)�inspect�currentframer��f_back�assertIsNotNone�f_lineno)r�r�r�r�r)s&&& �r	r]�HTestBranchAndJumpEvents.test_callback_set_frame_lineno.<locals>.callbacksF����(�(�*�E��E�L�L��4������ � ��'�"�^�^�a�/�E�Nrri)	rr%r4r'rrYr�r5r?)r)rr]sf  r	�test_callback_set_frame_lineno�6TestBranchAndJumpEvents.test_callback_set_frame_lineno�s[���	�	0�	���'�'�	�4�=�=�!�-�-�P����(�(��A�M�M�8�L�����f��q�)rr)
r`rarbrcrr�r�r�r5rrrdrerfs@r	r�r�Is/�����G�?/�B+)�Z�".�0.�8*�*rr�c�J`�\sQsQsnP\\1QksQsQsQs	Qs
QsUsP!)�TestBranchConsistencyic	��UeSoUO[OO2-2,o]oSFD=oUOo[OOV8UU22Vh*oJ?	[OO
V2OU2U2[OO
V2O]2SFD-o[OOV7OP2J/	[2o	[2o
UOO2FD*vq�o
U	OV�12U
OV�12J,	SFDMoUvooooQU7cUOUU1U	2J'UOQU2UOUU1U
2JO	[OO
V2O]2SFD-o[OOV7OP2J/	P![OO
X2O]2SFD-o[OOX7OP2J/	h9h)N�left�right)r?rr%r,r�r5r4rr�co_branchesr�r�)r)�run_func�	test_funcrqr�r�r�rLr��lefts�rights�srcrrr��wayr�dests&&&&&             r	�check_branches�$TestBranchConsistency.check_branchess����� �I�	R����S�^�^�7�7�9�2�>��J��J�%���(�(�����0�0��8�J�;O�P�� �
�&�
�N�N�+�+�D�2D�2D�j�Q��J��N�N�+�+�D�2D�2D�a�H�%�����0�0��7J�7J�D�Q�&��E�E��U�F�&/�&8�&8�&D�&D�&F�"��E��	�	�3�+�&��
�
�C�<�(�'G�$��$)�!��Q��T��S�=��M�M�3��+�u�5��M�M�'�3�/��M�M�3��+�v�6�
$�
�N�N�+�+�D�2D�2D�a�H�%�����0�0��7J�7J�D�Q�&��
�N�N�+�+�D�2D�2D�a�H�%�����0�0��7J�7J�D�Q�&�s�E5H�?AH�A I?c�\�QoUOU2QQkoUOU2P!)c�N�]o[]2FDoU%c]oJ]oJ	P!rRr�r�s  r	r�/TestBranchConsistency.test_simple.<locals>.func:r�rc�,�U]6cU]*
oJP!r�rr�s&r	r��4TestBranchConsistency.test_simple.<locals>.whilefuncEr�rr
�r#r�s&  r	r��!TestBranchConsistency.test_simple8s,��	�	
���D�!�	�
	
���I�&rc�L`�QQ2nU1QkoUOU2P!)c�(`�\sQsQsnQsQsUsP!)�3TestBranchConsistency.test_except_star.<locals>.FooiNc��P!rrr(s&r	r��8TestBranchConsistency.test_except_star.<locals>.Foo.methOr�rrr�rfs@r	r�r.Nr�rr�c�:�[g,9[9d$oR2pO2Po=ML	Po=MMLM49eP!th9h[cP!h9hrr�r�s  �r	r�4TestBranchConsistency.test_except_star.<locals>.funcRr�r�r*r�s& @r	r��&TestBranchConsistency.test_except_starLs"���	�	�	�	
���D�!rc�4�QQkoUOU2P!)rc�.�U]6c
U]*
oJP!r�rr�s&r	r�(TestBranchConsistency.test4.<locals>.foo`r�rr
r*�r)rs& r	�test4�TestBranchConsistency.test4^s��	�	
���C� rc�N``�QnU1QknU1QkoUOUR2P!)c�( �]3w�	]3w�	P!3hr�rrrr	r�1TestBranchConsistency.test_async_for.<locals>.genjs����G��G�r�c��B: �R2Piw�K
oJKBP!3hrrr�s �r	r�1TestBranchConsistency.test_async_for.<locals>.foons$�����5�
�
�a��
�5��r�c�\:�R2OP2P![cP!h9hrr1)rs�r	r�2TestBranchConsistency.test_async_for.<locals>.funcss(���
���
�
�4� �� �
��
�s��	+�+�+r*)r)rrrs& @@r	r5�$TestBranchConsistency.test_async_forhs$���	�	�
	�	
���D�#�&rr)
r`rarbrcr'r�r#r�r�r8r5rdrerfs@r	rrs-����15�I�Qh�R�B'�("�$!�'�'rrc�z`�\sQsQsn\\\\1sQs	Q
Qks
QsQ
QksQs
Q
QksQsQ
Q	ksQ
sQsQsUsP!)�TestLoadSuperAttri|c�$�-o[VU2U!r)�exec)r)�co�ds&& r	�_exec�TestLoadSuperAttr._execs�����R�A���rc���U%cQLQoUQ[OU20o[UQQ2oUOUO	U2U2UOU2!)zx = 1z
super = super�
�<string>rE)�textwrap�dedent�compiler?�_has_load_super_attrrH)r)�codestr�	optimized�
assignmentrFs&&&  r	�_exec_super�TestLoadSuperAttr._exec_super�s^��!*�W��
��L��8�?�?�7�#;�"<�=��
�W�j�&�
1������2�2�2�6�	�B��z�z�"�~�rc�j`�[9PIc0Q[OU22D%fJP	L$	P
L Q[OU222oU%fN[9PIc)U1QkUO2D%fJP	L	P
LU1QkUO22oU!)c3�J�SF �DpOQ6Hw�	J	P!3h)�LOAD_SUPER_ATTR)rO)�.0�instrs& r	�	<genexpr>�9TestLoadSuperAttr._has_load_super_attr.<locals>.<genexpr>�s��AY���AY��,�,�"3�3�AY�s�#c3�:�SF �D9o[U[O29%cROU2w�	J;	P!3hr)r��types�CodeTyperP)rYr�r)s& �r	r[r\�s7��%���%�A��1�e�n�n�-�N�N�$�2K�2K�A�2N�N�%�s
�%A	�A	)�anyrMrN�	co_consts)r)rF�hassf& r	rP�&TestLoadSuperAttr._has_load_super_attr�sy����c�Z��AU�AU�VX�AY�Z�c�c�c�Z��AU�AU�VX�AY�Z�Z����#������#�#�#�������C��
rc�,�QoUOV!2oQQQ[OO1QQQUQ*1Q	QQ[OO1QQ[OO1Q
QQ
QQUQ*1Q	Q	QQ
,oUQ*U1!)a[
            class A:
                def method(self, x):
                    return x

            class B(A):
                def method(self, x):
                    return super(
                    ).method(
                        x
                    )

            b = B()
            def f():
                return b.method(1)
        rrV�methodr��superrkrz�rYrVrS�rYrerS�rYrer��rYrer�r~r��rTrr%r8�r)rRrQrGr�s&&   r	�_super_method_call�$TestLoadSuperAttr._super_method_call�s����� 
���W�0��&�
�S�#�.�.�0�0�1��
�X�q��v�&�!�
�W�c�n�n�4�4�5�
��#�.�.�"8�"8�9�!�!�!�
�X�q��v�&�!�!�&�%�
��"��v�x��rc���UOP
Q5vqUOP	Q5vq4UOVOUQ5UOV0OUQ5P!�F)rRry)rmr��	RECORDERS�r)�nonopt_func�nonopt_expected�opt_func�opt_expecteds&    r	�test_method_call�"TestLoadSuperAttr.test_method_call�s\��'+�'>�'>��'>�'O�$��!%�!8�!8�4�!8�!H������+���/��Z����(�n�n�|��Trc��QoUOV!2oQQQ[OO1QQQQUQ*1QQ	Q
QQQQ
QQQ,oUQ*U1!)a?
            class A:
                def method(self, x):
                    return x

            class B(A):
                def method(self, x):
                    return super(
                        x,
                        self,
                    ).method(
                        x
                    )

            b = B()
            def f():
                try:
                    return b.method(1)
                except TypeError:
                    pass
                else:
                    assert False, "should have raised TypeError"
        rrVrer�rzrg)rYrVr�rhrirj)rrfrS)rnrfrS)rYrVr�)rYrVrar~r�rkrls&&   r	�_super_method_call_error�*TestLoadSuperAttr._super_method_call_error�s|����.
���W�0��&�
�S�#�.�.�0�0�1���
�X�q��v�&�!�!�!�!� �#���&�%�
��"��v�x��rc���UOP
Q5vqUOP	Q5vq4UOVOUQ5UOV0OUQ5P!rp)rzr�rqrrs&    r	�test_method_call_error�(TestLoadSuperAttr.test_method_call_error�s\��'+�'D�'D�u�'D�'U�$��!%�!>�!>��!>�!N������+���/��Z����(�n�n�|��Trc��QoUOV!2oQQQ[OO1QQQUQ*1Q	QQ[OO1QQ[OO1Q
Q	QQ,oUQ*U1!)
z�
            class A:
                x = 1

            class B(A):
                def method(self):
                    return super(
                    ).x

            b = B()
            def f():
                return b.method()
        rrVrer�rfrkrzrgrhrir~r�rkrls&&   r	�_super_attr�TestLoadSuperAttr._super_attr�s�����
���W�0��&�
�S�#�.�.�0�0�1��
�X�q��v�&�!�
�W�c�n�n�4�4�5�
��#�.�.�"8�"8�9�!�!�&�%�
����v�x��rc���UOP
Q5vqUOP	Q5vq4UOVOUQ5UOV0OUQ5P!rp)r�r�rqrrs&    r	�	test_attr�TestLoadSuperAttr.test_attr	s\��'+�'7�'7�%�'7�'H�$��!%�!1�!1�D�!1�!A������+���/��Z����(�n�n�|��Trc
�t�[OQ2oQoQFCDoUOUQ59^tt^2U%cQLPoUOQUQ5oUOQUQ5o[	UQQ2oUOUO
U22UOU2oUOU2o	UOUQ	*UOUQV82Q
5UOU	Q	*UOUQV92Q
5PPP2CJ	P!)%fhCJ9h)z�
            class C:
                def method(self):
                    return {cls}().__repr__{call}
            c = C()
            def f():
                return c.method()
        c	�B�UQ6Xc]L[OOoQQQ[OO1QQQUQ*1Q	QU[OO1QU[OO1,U%cQQU1QQU1,L,NQ
MQM!)rrrVrer�rk�__repr__rzrgrhr~r�)rr%r8)r��call_method�ns�repr_args&&& r	�get_expected�?TestLoadSuperAttr.test_vs_other_type_call.<locals>.get_expected)	s��� �E�M�q�s�~�~�/E�/E�H�*���c�n�n�4�4�5� ���2�c�7�+�%���s�~�~�5�5�6��T�3�>�>�#9�#9�:��%� ��X�6�#�Z��:��+-��+��*��
r)r�z()rf)�clsrrrLrErVry)TF)
rMrN�subTestrrO�
assertTruerPrHr�rq)
r)�
code_templater�r��call_str�
code_super�code_int�co_super�ns_super�ns_ints
&         r	�test_vs_other_type_call�)TestLoadSuperAttr.test_vs_other_type_call	s�� ���)�
�
�	�()�K����+��6�6�#.�4�B��*�1�1�g�H�1�M�
�(�/�/�E��/�I��"�:�z�6�B������ 9� 9�(� C�D��:�:�h�/�����H�-���!�!��S�M�"�n�n�)�'�;�I�"��
�!�!��3�K�"�n�n�)�%��E�"��7�6�)�6�6�6�s�D%	�CD%	�%D7
�.D7
rr)r`rarbrcr�r^rmrjrqrHrTrPrmrwrzr}r�r�r�rdrerfs@r	rCrC|sO�����l�N�O�K�I��
��# �JU�* �XU� �<U�1�1rrCc�.`�\sQsQsnQsQsQsUsP!)�TestSetGetEventsiS	c�0�[OO[[O
2UO
[OO[2[O
2[OO[[O
2UO
[OO[2[O
2[OO[]2UO
[OO[2]2[OO[]2UO
[OO[2]2P!r
)	rr%r2r'rYrZr?r1rmr(s&r	�test_global�TestSetGetEvents.test_globalU	s������!�!�)�Q�Z�Z�8�������2�2�9�=�q�z�z�J����!�!�*�a�j�j�9�������2�2�:�>��
�
�K����!�!�)�Q�/�������2�2�9�=�q�A����!�!�*�Q�/�������2�2�:�>��Brc��[Oo[OO	[
U[O2UO[OO[
U2[O2[OO	[
U]2[OO	[
U[O2UO[OO[
U2[O[O*2[OO	[
U]2[OO	[U[O2UO[OO[U2[O2[OO	[
U]2UO[OO[
U2]2[OO	[U]2UO[OO[U2]2P!r
)r
rrr%r4r'rYrZr?r3r�r�r�rm)r)r�s& r	�
test_local�TestSetGetEvents.test_local_	sn���{�{�����'�'�	�4����D�������8�8��D�I�1�:�:�V����'�'�	�4��;����'�'�	�4����B�������8�8��D�I�1�=�=�[\�[i�[i�Ki�j����'�'�	�4��;����'�'�
�D�!�*�*�E�������8�8��T�J�A�J�J�W����'�'�	�4��;�������8�8��D�I�1�M����'�'�
�D�!�<�������8�8��T�J�A�Nrr)r`rarbrcr�r�rdrerfs@r	r�r�S	s����C�
O�
Orr�c�8`�\sQsQsn\Q2sQsQsUsP!)�TestUninitializedin	c��P!rrrrr	rV�TestUninitialized.fp	s��rc��UO[OO[UO
O2]2P!r
)r?rr%r3r'rVrr(s&r	�#test_get_local_events_uninitialized�5TestUninitialized.test_get_local_events_uninitializedt	s,��������8�8��D�F�F�O�O�T�VW�Xrr)	r`rarbrcr�rVr�rdrerfs@r	r�r�n	s#�����
��
�Y�Yrr�c�F`�\sQsQsnQsQsQsQsQsQs	Qs
UsP!)	�TestRegressionsiw	c�```�PnU1QknUU1QknU1QkoU2UORQ2Pn[OO[[
O2U2UORQ2[OO[]2P![OO[]2h9h)Nc3�P: �Pw�P![cQnPw�P!h9h3h)N�innerr�)r�s�r	r��*TestRegressions.test_105162.<locals>.inner|	s$����
����
� ���
�s �&�
�&�	#�#�&�#�&c3�l: �R2FPiw�K
P!K[cQnPw�P!h9h3h)N�outerr�)r�r�s��r	r��*TestRegressions.test_105162.<locals>.outer�	s,����
� �7�"�"���
� ���
�s,�4����4��	1�1�4�1�4c�d:�R2oUOP2UO[2P!r)r2r�r�)rr�s �r	�run�(TestRegressions.test_105162.<locals>.run�	s!����'�C��H�H�T�N��I�I�i� rr�)r?rr%r2r'rYr�)r)r�r�r�r�s& @@@r	�test_105162�TestRegressions.test_105162y	s������	�	�	!�	�������)���	4��N�N�%�%�i����=��E����V�W�-��N�N�%�%�i��3��C�N�N�%�%�i��3�s�AB'�'&C
c�``�[OQ2nQQ2nUU1QkoU2[OO	[
]2P![OO	[
]2h9h)r�c�(`�\sQsQsnQsQsUsP!)�(TestRegressions.test_108390.<locals>.Fooi�	c��U%c5[OO[[O
2P!P!r)rr%r2r'rYr�)r)�	set_events&&r	r~�1TestRegressions.test_108390.<locals>.Foo.__init__�	s"����N�N�-�-�i����E�rrrGrfs@r	r�r��	s����
F�
Frr�c�|:�[RO]*2FDoRURO6H2J	P!rR)rlr)r�r�r�s ��r	�!make_foo_optimized_then_set_event�FTestRegressions.test_108390.<locals>.make_foo_optimized_then_set_event�	s3����,�E�E��I�J���A�*�C�C�C�D�Kr)rrrr%r2r')r)r�r�r�s& @@r	�test_108390�TestRegressions.test_108390�	s[���)�7�7�8K�L��	F�	F�
	E�	4�-�/��N�N�%�%�i��3��C�N�N�%�%�i��3�s�A�&A?c�b�[OO]Q2UO[OO]2[OO]]2[OO
][OQ2[OO
][OQ2[OO][O[O*2[OO]]2P!)rrc�D�[OO]]2!r
)rr%r2r�s*r	rM�/TestRegressions.test_gh108976.<locals>.<lambda>�	s��#�.�.�B[�B[�\]�_`�Barc��]!r
rr�s*r	rMr��	s��r)
rr%r.�
addCleanupr&r2r5rYr[rDr(s&r	�
test_gh108976�TestRegressions.test_gh108976�	s������"�"�1�f�-�������3�3�Q�7����!�!�!�Q�'����(�(��A�F�F�4a�b����(�(��A�M�M�?�K����!�!�!�Q�V�V�a�m�m�%;�<����!�!�!�Q�'rc�`�QQkoQo,o,n[OO]Q2UO[OO]2[OO]]2[OO
][OU1Qk2[OO][O2UUUU[OO]]2UOR]*U]12UOR]*U[OO12P!)rSc��V*!rr)rUr�s&&r	rV�0TestRegressions.test_call_function_ex.<locals>.f�	s	���5�Lrrc�*:�ROV#12!rrI)r�r r�arg0�	call_datas&&&&�r	rM�7TestRegressions.test_call_function_ex.<locals>.<lambda>�	s���Yb�Yi�Yi�ks�jz�Y{r)rSr�)rr%r.r�r&r2r5rYrDr?r8)r)rVrL�
empty_argsr�s&   @r	�test_call_function_ex�%TestRegressions.test_call_function_ex�	s����	����
��	����"�"�1�f�-�������3�3�Q�7����!�!�!�Q�'����(�(��A�F�F�4{�|����!�!�!�Q�V�V�,�	�4��	�:�����!�!�!�Q�'�����1���1�v�.�����1���3�>�>�+A�+A�'B�Crc�:�Qo[OO]Q2UO[OO]2[OO][OOOU2[OO][OOO2UP]2[OO2[OO]]2P!)c��P!rr)r��instruction_offsets&&r	r]�DTestRegressions.test_instruction_explicit_callback.<locals>.callback�	rCrr)
rr%r.r�r&r5r-rDr2r6)r)r]s& r	�"test_instruction_explicit_callback�2TestRegressions.test_instruction_explicit_callback�	s���	�	���"�"�1�f�-�������3�3�Q�7����(�(��C�N�N�,A�,A�,M�,M�x�X����!�!�!�S�^�^�%:�%:�%F�%F�G���q�����%�%�'����!�!�!�Q�'rc�`�U1Qko[OO]Q2RO[OO]2[OO]UO[O[O*2U2[OO]UO]2P!)c�V:�]oQFDoV*
oJ
	ROU]
2P!)r)rSr�r�ra)r?)rjr�r)s  �r	r�(TestRegressions.test_134879.<locals>.foo�	s)����A����������Q��#rr)
rr%r.r�r&r4rrYr�r�r7sf r	�test_134879�TestRegressions.test_134879�	s|���	$�	���"�"�1�f�-�������3�3�Q�7����'�'��3�<�<�������9W�X������'�'��3�<�<��;rr)r`rarbrcr�r�r�r�r�r�rdrerfs@r	r�r�w	s*����4�B4�"(�D�$
(�
<�
<rr�c�(`�\sQsQsnQsQsUsP!)�
TestOptimizeri�	c���QoUOo[OO[U[
O2UO[OO[U2[
O2UQ2[OO[U]2UO[OO[U2]2P!)c�.�]oV6cU]*
oJP!r
r)r�r�s& r	r�.TestOptimizer.test_for_loop.<locals>.test_func�	s���A��%��Q���r��)	rrr%r4r'rYrZr?r3)r)rr�s&  r	�
test_for_loop�TestOptimizer.test_for_loop�	s���	�
�!�!�����'�'�	�4����D�������8�8��D�I�1�:�:�V��$�����'�'�	�4��;�������8�8��D�I�1�Mrr)r`rarbrcr�rdrerfs@r	r�r��	s����N�Nrr�c�(`�\sQsQsnQsQsUsP!)�TestTier2Optimizeri�	c��`�[OQ2nU1QkoUO[OO2-2,o[
U2o[OO[[OU2UU2[OO[[OP2[OO[]2UO[U2]�2P![OO[[OP2[OO[]2h9h)r�c
�:�[OOo[Oo]o[RO]3*2FD/oU[U[URO6�2*2J1	P!r
)	rr%r2rYr[rlrr'r)rLr2rYr�r�s&   �r	r�KTestTier2Optimizer.test_monitoring_already_opimized_loop.<locals>.test_func�	se������2�2�J��6�6�D��A��,�E�E��J�K���9�d�S��6G�6`�6`�1`�-a�&a�b����Lr)rrr?rr%r,r^r5r'rYr[r2r�r)r)rr-rLr�s&   @r	�%test_monitoring_already_opimized_loop�8TestTier2Optimizer.test_monitoring_already_opimized_loop�	s����)�7�7�8K�L��		�	
������3�3�5�r�:�����'�����(�(��A�F�F�H�E�	4��h���N�N�,�,�Y�����E��N�N�%�%�i��3����3�v�;��,��
�N�N�,�,�Y�����E��N�N�%�%�i��3�s
�D
�
AE#r)r`rarbrcr�rdrerfs@r	r�r��	s����-�-rr�c�(`�\sQsQsnQsQsUsP!)�TestMonitoringAtShutdowni
c�r�[OOQ2o[OU2P!)z_test_monitoring_shutdown.py)r�support�findfiler�run_test_script)r)�scripts& r	� test_monitoring_live_at_shutdown�9TestMonitoringAtShutdown.test_monitoring_live_at_shutdown
s'�����&�&�'E�F���%�%�f�-rr)r`rarbrcr�rdrerfs@r	r�r�
s����.�.rr�c��``�\sQsQsnQQ2sU1QksQ
QksQsQsQs	\
O\
O\
O\
O\
O.sQ	sQ
sQsQsUsU9s!)�TestCApiEventGenerationi
c�4`�\sQsQsnQsQsQsQsUsP!)�TestCApiEventGeneration.Scopei
c�J�[OQ2UmVmP!��	_testcapi)rrr�rLr�s&*r	r~�&TestCApiEventGeneration.Scope.__init__
s��*�8�8��E�D�N��Irc�R�UOOUOP!r)r��monitoring_enter_scoperLr(s&r	�	__enter__�'TestCApiEventGeneration.Scope.__enter__ 
s���N�N�1�1�4�9�9�=rc�<�UOO2P!r)r��monitoring_exit_scoper�s&*r	�__exit__�&TestCApiEventGeneration.Scope.__exit__#
s���N�N�0�0�2r)r�rL)	r`rarbrcr~r�rrdrerfs@r	�Scoper�
s����	�	>�	3�	3rrc��:�[[U_2[OQ2UmUO
oUO
]2Um][OUO1][OUO1][OUO]
1][OUO ]1][O"UO$[&](1][O(UO*]<1][O,UO.]F1][O0UO2]P1][O4UO6[9]21][O:UO<[9]21][O>UO@[9]21][OBUOD[9]21][OFUOH]1][OFUOH[K]21,Um&[O4[O:[O>[OB,Um'P!r�)(rfr�rrrrr��CodeLike�codelikerYrZ�fire_event_py_startr��fire_event_py_resume�PY_YIELD�fire_event_py_yieldr��fire_event_py_returnrD�fire_event_callrr��fire_event_jumpr��fire_event_branch_rightr��fire_event_branch_leftr��fire_event_py_throwrAr��fire_event_raiser��fire_event_exception_handledr��fire_event_py_unwindr��fire_event_stop_iterationr�cases�EXPECT_RAISED_EXCEPTION)r)�capiros& �r	rr�TestCApiEventGeneration.setUp&
s����
�%�t�2�4�&�4�4�[�A����~�~���
�
�a�(��
�����T�5�5�6�����d�7�7�8�����T�5�5�r�:�����d�7�7��<������-�-�x��<������-�-�r�2������!=�!=�r�B������ ;� ;�R�@�����T�5�5�z�!�}�E�����$�/�/��A��?���$�$�d�&G�&G��TU��W�����d�7�7��A��G���!�!�4�#A�#A�1�E���!�!�4�#A�#A�=�QR�CS�T�
��
�$)*�
�
�A�G�G�Q�=P�=P�RS�R]�R]�'^��$rc	�h�QQ2oUU2o[OO[V2U[O
6XfU[O6Xc4[OO[[O2L$[OO[U2[[OU22oUOUOU29^tt^2]UmUUUOUOU2PPP2[OO[UP2o
UOUOU29^tt^2]UmUUUOUO]2UOV�2PPP2[OO[]2P![ cro	SO#S[ 2SO[%S	2[%S22Po	=	PPP2[OO[]2P!Po	=	hh9h)%fhCKC9h)%fhK�9h[OO[]2h9h)c�.`�\sQsQsnQsQsQsUsP!)�:TestCApiEventGeneration.check_event_count.<locals>.CounteriD
c�"�Vm]UmP!r
��callback_raisesr})r)r s&&r	r~�CTestCApiEventGeneration.check_event_count.<locals>.Counter.__init__E
s��'6�$���
rc��U9O]*
tmUO%cUOoPUmUgP!rR)r}r )r)rLr�s&* r	r��CTestCApiEventGeneration.check_event_count.<locals>.Counter.__call__I
s8���
�
�a��
��'�'�'��.�.�C�+/�D�(��I�(rrr�rfs@r	r�rD
s����
�
�
rr�)rr%r5r'rYrBrCr2rDr�math�log2rrr}r?rA�assertIsInstancer)r)r�rrLr�r r�r��event_valuer�r�s&&&&&&     r	r��)TestCApiEventGeneration.check_event_countC
s���
	�
	�	4��o�.�G��N�N�,�,�Y��G���
�
�"�e�q�y�y�&8����)�)�)�Q�V�V�<����)�)�)�U�;��d�i�i��.�/�K����D�M�M�;�7�7� !��
�>��$�K��$�$�W�]�]�H�=�8��>�>�3�3�I�u�d�K�D����D�M�M�;�7�7� !��
��d��� � �����2�� � ��/�	8�
�N�N�%�%�i��3��"���)�)�(�J�?��$�$�S��V�S��]�;��8�$
�N�N�%�%�i��3����	8�7�7��8�7��
�N�N�%�%�i��3�s��AJ�J�#BJ�=I$�G%�
I$�*AJ�;<I8�7J�%	I!�/I!�0:I�*I$�.J�I!�!I$�$I5	�-I5	�/	J�8J	�J	�J�&J1c
�X�UOFD�uqq4]oUOO]2UmUO	UO
29^tt^2UOU1[
U2*oUOV#Va2PPP2J�	P!)%fhJ�9hr
)rr�rrr�r`�tupler��r)r�r��functionrLr �args_s&      r	�test_fire_event�'TestCApiEventGeneration.test_fire_eventl
s���04�
�
�,�H�X��F� �N�N�3�3�A�6�D�M����h�/�/�0�0�����/�%��+�=���&�&�u��H�1�0�1;�1�0�0���1B	�B)
�!B)
c
���UOFD�uqq4V O7cJ]oUOO]2UmUOUO29^tt^2UOU1[UPP2*Q*o[[OU22o[QUQ02oUOV#Vh2PPP2J�	P!)%fhJ�9h)rz
Firing event z with no exception setr)
rrr�rrr�r`r*rr$r%rAr�)	r)rr�r,rLr r-�evtr�s	&        r	�test_missing_exception�.TestCApiEventGeneration.test_missing_exceptiont
s���)-���%�A�h��8�8�8���F� �N�N�3�3�A�6�D�M����h�/�/�0�0�����/�%��S�b�	�2B�B�W�L���$�)�)�E�*�+��%�
�c�U�:P�&Q�R���&�&�u��H�	1�0�
*4�1�0�0�s�+A)C"	�"C3
�+C3
c���UOFD�uqq4]oUOO]2UmUO	UO
29^tt^2UOU1[
U2*o[]*2oUO[U229^tt^2UOV#VaUQ5PPP2PPP2J�	P!)%fhK9h)%fhJ�9h)r)r )rr�rrr�r`r*�OSErrorr@r�r�)r)r�r�r,rLr r-r�s&       r	� test_fire_event_failing_callback�8TestCApiEventGeneration.test_fire_event_failing_callback�
s���04�
�
�,�H�X��F� �N�N�3�3�A�6�D�M����h�/�/�0�0�����/�%��+�=���b�k���&�&�t�C�y�1�1��*�*�5�E�;>�+�@�2�1�0�1;�2�1��1�0�0�s1�AC#	�%C
�:C#	�C �C �C#	�#C4
�,C4
c��[2o[OO[V2U[
O6XfU[
O6Xc4[OO[[
O2L$[OO[U2[[OU22oUOUOU29^tt^2]UmUUUO!UOU2P	UmVO$7c>]UmUUUO!UOU2UO'Q2L[]UmUUUO!UOU2]UmUUUO!UOU]*
2PPP2[OO[]2P![(cK;h9h)%fhKG9h[OO[]2h9h)rzExpected a ValueError)rrr%r5r'rYrBrCr2rDrr$r%rrr}r?r�CANNOT_DISABLE�ErrorrA)r)r�rrLr�r�r's&&&&&  r	�
check_disable�%TestCApiEventGeneration.check_disable�
s��� 	4�(�*�G��N�N�,�,�Y��G���
�
�"�e�q�y�y�&8����)�)�)�Q�V�V�<����)�)�)�U�;��d�i�i��.�/�K����D�M�M�;�7�7� !��
��d��� � �����9�"&����/�/�/�<�()��
��d���(�(�����A��
�
�#:�;�$%�G�M��$�K��$�$�W�]�]�H�=�$%�G�M��$�K��$�$�W�]�]�H�q�L�A�-8�0
�N�N�%�%�i��3��&�����8�7��0
�N�N�%�%�i��3�sc�AH!�H!�BH!�5AH�8*G=�"A-H�H!�=	H�H�H�
H�H�H	�H	�H!�!&Ic
�X�UOFD�uqq4]oUOO]2UmUO	UO
29^tt^2UO]1[
U2*oUOV#Va2PPP2J�	P!)%fhJ�9hr
)rr�rrr�r`r*r<r+s&      r	�test_disable_event�*TestCApiEventGeneration.test_disable_event�
s���04�
�
�,�H�X��F� �N�N�3�3�A�6�D�M����h�/�/�0�0�����*�U�4�[�8���"�"�5�E�D�1�0�1;�1�0�0�r0c��UOo[2o[2o[OO	[
[OU2[OO	[
[OU2[OO[
[O[O*2[[O[O22o[[O[O22oUO]2oU]1oUOVdU29^tt^2]Um]UmUO ,UN[#]*2M3UO$,UN[#]*2M3P	UmUO$,UN[#]*2M3UO$,UN[#]*2M3PPP2[OO[
]2P!)%fhK69h[OO[
]2h9hr�)r�rrr%r5r'rYrr�r2rr$r%rrr}rrArr)r)r��
yield_counter�unwind_counter�yield_value�unwind_value�cl�common_argss&       r	�test_enter_scope_two_events�3TestCApiEventGeneration.test_enter_scope_two_events�
s����N�N�	�!	4�.�0�M�/�1�N��N�N�,�,�Y��
�
�M�R��N�N�,�,�Y����^�T��N�N�%�%�i����a�k�k�1I�J��d�i�i��
�
�3�4�K��t�y�y����5�6�L��#�#�A�&�B��q�'�K����B�\�:�:�&'�
�#�'(��$��.�.�L��L�Z��^�L��-�-�K�{�K�J�r�N�K�)-�
�%��-�-�K�{�K�J�r�N�K��-�-�K�{�K�J�r�N�K�#;�,
�N�N�%�%�i��3�-;�:��,
�N�N�%�%�i��3�s+�E
H,�BH�+H,�H)	�"H)	�$H,�,&I)rr�rrr)r`rarbrcrrrr�r.r3r7rYr�r�r�r�r�r:r<r?rHrdre�
__classcell__)rorgs@@r	r�r�
sn����	3�	3�_�:'4�RI�I�	@��z�z�1�7�7�A�I�I��*�*�A�K�K�:�N�!4�FE�$4�$4rr�r=)r�r�r�)r�r�r�r�)r�r�r�r�r�)r�r�r�r�r�r�)r�r�r�r�r�r�)sr�rM�	functoolsrr$�operatorrrMr^�unittest�test.supportrrrrrr
rrrrr'rmrnr!�TestCaser#rirwr%r-rYrZr�r�rr�r�r�r�r�r�rCrBr��reduce�or_rDr�r�r�r�r�r��FunctionType�
MethodTyper�r�r�rr�
test.profileer�r�rrrr(rHr�r�r�r�r�r�r�r�r�r�r�r^rdrjrmr�rpr�r�r�r�r�r�r}rr�r�r�r�r�r�r�r�r�r�r�r�rrCr�r�r�r�r�r�r�)r�rs00r	�<module>rUs|���
�����
�����N�N���	��
�
�
�
�	�
�
�
�
�1�H/�(�+�+�H/�V0�0�,(2�,�h�.?�.?�(2�V�N�N�����Z�Z����[�[�(���[�[�(���Z�Z����V�V�V���X�X�x��
��$��W�W�g�����-�.��[�[�(���Y�Y�	���Z�Z���'��
��#�#�H�L�L�]�2S�]�'�2�2�]�2S�UV�W�Z[�Z`�Z`�`��	��	����
����	��
���
������"�"�E�$4�$4�5��+�-�+�>'�/��1B�1B�'�*�Z�Z����A�K�K����a�j�j�I�	��z�z�1�;�;�'��"�''�.��0A�0A�''�T	*�	*�	*�	*�&,�%7��9J�9J�&,�RC?�-�x�/@�/@�C?�LJ+�+�X�->�->�J+�XI�$�h�&7�&7�I�@1�1�")�$�h�&7�&7�")�J"�-�"�3�'�3�@�&�@�3�0�3�1�%�1�9�9�:�:�x+�k�x+�t	O�	O�B�B��n��
�^��
#�L�,��Q_�_��9(�[�9(�v
F�
F�"5�l�!B��L+�;�L+�\@V�1�8�3D�3D�@V�D��o�~�M��KK�(�(�*;�*;�KK�Z�J�J��\��
�,��
���
	A�	A��1��
� 2��)�.�8��!-�~�|�!K��&���FW�Yg�g��'�)<�<��2�4M�M��I*�k�I*�Xd'�.��0A�0A�d'�NT��T�nO�)�8�+<�+<�O�6Y��)�)�+=�Y�k<�(�(�*;�*;�k<�\
N�&��(9�(9�
N�-��-�6.�x�0�0�.�F4�0�(�2C�2C�F4��YJ3Ts�S(

Youez - 2016 - github.com/yon3zu
LinuXploit