ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib64/python3.11/site-packages/guppy/gsl/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/guppy/gsl/__pycache__/Tester.cpython-311.pyc

�

�܋f�_���Gd�d��ZGd�d��ZGd�d��ZGd�de��ZGd�d	��Zd
S)c���eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d �Z"d!�Z#d"�Z$d#S)$�
Doc2Testerc���||_||_||_g|_|�g��i|_i|_i|_g|_d|_	d|_
i|_d|_dS)N�)
�mod�doc�node�exdefs�set_out�
test_names�condition_exprs�condition_methods�document_metas�
document_lang�document_title�
example_exprs�ex_id)�selfrrrs    �c/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/guppy/gsl/Tester.py�__init__zDoc2Tester.__init__sr����������	�������R�������!���!#��� ���!���"��������
�
�
�c�t�|jj}|jD]#}	|�|���#|$rY� wxYwdS�N)r�
ReportedError�children�accept)rr�E�chs    r�_visit_childrenzDoc2Tester._visit_childrens]���H�"���-�	�	�B�
��	�	�$�������
�
�
���
����	�	s�-�5�5c�0�|�|��dSr)�extend)r�argss  r�apz
Doc2Tester.aps�����D�����rc�F�d|z}|jjj|g|�Ri|��dS)NzDoc2Tester: )r�env�error)r�msgr!�kwdss    rr%zDoc2Tester.errors9���s�"�������3�.��.�.�.��.�.�.�.�.rc��|���}|j�|��}|���dt|j��z}||j|<|j}d}|���}||vr	d|z}||v�	d�|g|z��}|d|�d|�d�dd	��|d
|zd��|�d��}|s%|�d|z|j	j
d�
��|D]�}	|	�d��D]I}
|
j	j
j���}|�
d��D]}||d����J|	|dur1|d|	j	j
j���zd����|d|	j	j
j���zdd	��|ddd����|d��|S)Nzcond_%d�_self�_�, �def �(z):�<NL>�<INDENT>z# Condition: %s�python_codez3No python code specified for testing condition: %r.��	exception�
in_context�
���zreturn (%s)zif not (%s):zreturn False�<DEDENT>)�get_id_namer
�get�lenr"�
get_arg_names�join�find_aspectsr%�srcr�arg�strip�split)
r�cond�idn�namer"�myself�	arg_names�	argstring�pcs�pc�ic�ctx�lines
             r�get_condition_methodzDoc2Tester.get_condition_method s7����� � ���%�)�)�#�.�.���<��s�4�#9�:�:�:�D�*.�D�"�3�'���B��F��*�*�,�,�I��I�%�%��v����I�%�%��	�	�6�(�9�"4�5�5�I��B�B����i�i�i�0�&�*�E�E�E��B� �3�&��/�/�/��#�#�M�2�2�C��
:��
�
�P�SV�V��8�=�D��:�:�:��

;�

;���/�/�,�7�7�)�)�B��&�+�/�/�/�1�1�C� #�	�	�$���)�)����4��(�(�(�(�)���R��=�=��B�}�r�v�{��'<�'<�'>�'>�>��G�G�G�G��B�~��v�{��,�,�.�.�/�06�
�D�D�D��B�~�v�z�:�:�:�:��B�z�N�N�N��rc�h�|�d��D]}|�d|zd���dS)Nr4z# r.)r@r")r�srKs   r�gen_commentzDoc2Tester.gen_comment@s@���G�G�D�M�M�	'�	'�D��G�G�D��I�v�&�&�&�&�	'�	'rc���|j���s|jS|j�d|j�����ft|j��zS)NrC)r>r?rr�node_of_taci�tuple�rrs  r�get_childrenzDoc2Tester.get_childrenDsT���x�~�~���	!��=� ���%�%�f�d�h�n�n�.>�.>�?�?�A�%��
�BV�BV�V�Vrc���|���}|�dS|�|��}g}|���}	|jD]}}
d}|
|	kr|}n[|
dkr|}nR|�|
��}|�&|�d|
z|jjd����S|�|��}|�	|���~d|j
�d|�dd�|���d�S)	Nz<returned value>zInvalid condition argument: %r.r1)�znot zself.r-r+�))�get_definitionrL�
get_self_namerE�
get_arg_valuer%r=r�mapname�append�is_notr;)r�por!�attrr=�tgtrArC�callargs�	self_name�an�vs            r�get_condition_exprzDoc2Tester.get_condition_exprIs%��� � �"�"���<��4��(�(��.�.�����&�&�(�(�	��,�	�	�B��A��Y�������)�)�)�����&�&�r�*�*���9��J�J�@�2�E�!�v�{�)-��/�/�/���L�L��O�O���O�O�A�����
���#�#�#��D�D��I�I�h�����!�	!rc��|j�|��}|�|S|���}|���}|r�d|jz}|xjdz
c_|�d|zdd��|�d��D]}|�|d���|�d|zdd��d	|z}||j|<|S)
Nz	get_ex_%drz
def %s(self):r.r/r4z	return %sr6z	self.%s())rr8�get_ex_text�get_ctx_textrr"r@)r�eg�exrJ�ex_namerKs      r�get_example_exprzDoc2Tester.get_example_exprgs���
�
�
#�
#�B�
'�
'��
�>��I�
�^�^�
�
���o�o�����	'�!�D�J�.�G��J�J�!�O�J�J��G�G�O�g�-�v�z�B�B�B��	�	�$���
&�
&������f�%�%�%�%��G�G�K�"�$�f�j�9�9�9��w�&�B�!#���2���	rc��|j}||jvr*|j|}|j|xxdz
cc<d||fz}n
d|j|<|S)Nrz%s_%d)�srclastnamer)r�kind�tn�is    r�
get_test_namezDoc2Tester.get_test_nameysb��
�
��
��� � ����#�A��O�B����1�$�����B��7�"�B�B�"#�D�O�B���	rc�n�|j}|dtzd��|d|jj�|jj�����zd��|ddd��|dd��|�|j��g}d}g}|jD]z}|dkr|dz
}�|d	kr|dz}�|dkr+|�	d
�
|����g}�K|s|�	|dz��|�	|���{d�
|��dzS)
Nz# Tests generated by: %sr.z
# Date: %sz
class Tester:r/z
tests = {}��r6rV� r4)r"�__name__r�time�asctime�	localtimerr�outr\r;)rr"�lines�indentrK�toks      r�
get_testerzDoc2Tester.get_tester�sh��
�W��
��%��0�&�9�9�9�	��<�$�(�-�/�/��H�M�#�#�%�%�'�'�'�(.�	0�	0�	0�
��?�F�J�/�/�/�
��<�� � � ����T�Y�'�'�'��������8�	!�	!�C��j� � ��!�����
�"�"��!�����������R�W�W�T�]�]�+�+�+�����.��K�K����-�-�-����C� � � � ��y�y�����$�$rc�,�||_|j|_dSr)r{r )rr{s  rr
zDoc2Tester.set_out�s������j����rc���|�d��d}|�|��D]1}|r|�d��nd}|�|���2|�d��dS)Nr-rtr+rrW�r"rTr)rr�commars    r�
visit_arglistzDoc2Tester.visit_arglist�su������������#�#�D�)�)�	�	�B��
�����
�
�
�
����I�I�d�O�O�O�O���������rc��|�|��}|rn|d�|��|�d��|d�|��|�d��|dd�}|�ldSdS)Nrt� = rr.��rTrr")rrrs   r�visit_assignzDoc2Tester.visit_assign�s����$�$�T�*�*���	$��Q�K���t�$�$�$��G�G�E�N�N�N��Q�K���t�$�$�$��G�G�F�O�O�O�����|�H��	$�	$�	$�	$�	$rc��|�d��|�|��|�d��dS)Nr/r6)r"rrSs  r�visit_blockzDoc2Tester.visit_block�s@�����
�������T�"�"�"����
�����rc�6�|�|��}|d�|��|�d��d}|dd�D]1}|r|�d��nd}|�|���2|�d��dS)Nrtr-rr+rWr��rrrr�rs     r�
visit_callzDoc2Tester.visit_call�����$�$�T�*�*�������4� � � �����������1�2�2�,�	�	�B��
�����
�
�
�
����I�I�d�O�O�O�O���������rc��dSr�rSs  r�
visit_commentzDoc2Tester.visit_comment�����rc�6�|�d��|�|��}|d�|��|d�|��|�dd��|dd�D]}|�|���dS)Nr,rtr�:r.r�r�)rrrrs    r�	visit_defzDoc2Tester.visit_def�s�����������$�$�T�*�*�������4� � � ������4� � � �����V�����1�2�2�,�	�	�B��I�I�d�O�O�O�O�	�	rc�B�|�d|jz|��dS)Nz-I don't know what to generate for the tag %r.)r%�tagrSs  r�
visit_defaultzDoc2Tester.visit_default�s2���
�
�C��8��!�	#�	#�	#�	#�	#rc�0�|�|��dSr�rrSs  r�visit_documentzDoc2Tester.visit_document�������T�"�"�"�"�"rc�N�|j�|�d|��||_dS)Nz"Duplicate document lang directive.)rr%rSs  r�visit_document_langzDoc2Tester.visit_document_lang�s.����)��J�J�;�T�B�B�B�!����rc�N�|j�|�d|��||_dS)Nz#Duplicate document title directive.)rr%rSs  r�visit_document_titlezDoc2Tester.visit_document_title�s.����*��J�J�<�d�C�C�C�"����rc�:�|j�|��dSr)r	r\rSs  r�visit_exdefszDoc2Tester.visit_exdefs�s������4� � � � � rc�0�|�|��dSr)r�rSs  r�visit_fcallzDoc2Tester.visit_fcall�s����������rc�6�|�|��}|d�|��|�d��d}|dd�D]1}|r|�d��nd}|�|���2|�d��dS)Nrt�[rr+�]r�r�s     r�visit_indexzDoc2Tester.visit_index�r�rc�:�|j�|��dSr)rr\rSs  r�
visit_metazDoc2Tester.visit_meta�s����"�"�4�(�(�(�(�(rc�^�|�|j�����dSr�r"r>r?rSs  r�
visit_namezDoc2Tester.visit_name�s&��������� � �!�!�!�!�!rc�Z�|�|��|�d��dS)Nr.)r�r"rSs  r�visit_pcallzDoc2Tester.visit_pcall�s'�����������������rc�d�|�d|j���z��dS)Nz%rr�rSs  r�visit_stringzDoc2Tester.visit_strings+������t�x�~�~�'�'�'�(�(�(�(�(rc�0�|�d��dS)N�SUBJECT)r"rSs  r�
visit_subjectzDoc2Tester.visit_subjects�����	�����rc�&�t||��dSr)�TestOfrSs  r�
visit_test_ofzDoc2Tester.visit_test_of	s���t�T�����rc��|�d|j���z��|�|��dS)NzTest for: %s)rOr>r?rrSs  r�visit_test_program_segmentz%Doc2Tester.visit_test_program_segmentsA������$�(�.�.�*:�*:�:�;�;�;����T�"�"�"�"�"rc��dSrr�rSs  r�visit_to_document_onlyz!Doc2Tester.visit_to_document_onlyr�rc�0�|�|��dSrr�rSs  r�visit_to_tester_onlyzDoc2Tester.visit_to_tester_onlyr�rN)%rw�
__module__�__qualname__rrr"r%rLrOrTrerlrrrr
r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrs������
�
�
�������/�/�/����@'�'�'�W�W�W�
!�!�!�<���$���%�%�%�8!�!�!�	�	�	�$�$�$����
���
�
�
����#�#�#�#�#�#�"�"�"�
#�#�#�
!�!�!�������)�)�)�"�"�"����)�)�)�������#�#�#�
�
�
�#�#�#�#�#rrc� �eZdZd�Zd�Zd�ZdS)�DiffKindc�0�||_||_d|_dS)N�diffkind)�a�b�d_tag)rr�r�s   rrzDiffKind.__init__s����������
�
�
rc��|gSrr��rs r�get_atom_kindszDiffKind.get_atom_kindss	���v�
rc�t�|j���dz|j���zdzS)N�+�')r�r7r�r�s rr7zDiffKind.get_id_name s3���v�!�!�#�#�c�)�D�F�,>�,>�,@�,@�@�3�F�FrN)rwr�r�rr�r7r�rrr�r�sF������ � � �
���G�G�G�G�Grr�c��eZdZd�ZdS)�
EitherTestc��dSrr�r�s rrzEitherTest.__init__%r�rN)rwr�r�rr�rrr�r�$s#������
�
�
�
�
rr�c�(�eZdZd�Zd�Zdd�Zd�ZdS)r�c��|j�|j��||_||_|j|j}}|jx}|_|j|_|j	|_	||_
||_d|_|D]�}|j
}|dkry|j�|�d|d����/	t|j�����}n)#t"$r|j���}YnwxYw||_��|�d|jj
z|d�����|j�d|_|���dS)N�coveragez!Duplicate coverage specificationsr1zInvalid element in %r.r)�__dict__�update�parentrr>rr�KanExtension�Kan�Catr!ror�r�r%�intr?�
ValueError�make_cat)rr�rror!r�tr�s        rrzTestOf.__init__*so���
���V�_�-�-�-������	��X�t�}�d����#��d�h��#����7�����	���	���
��	@�	@�D���A��J����=�,��J�J�B�#�t��5�5�5�5�4�#&�t�x�~�~�'7�'7�#8�#8����%�4�4�4�#'�8�>�>�#3�#3����4����$,�D�M�M��
�
�3��9�=�)�*.�$��@�@�@�@��=� ��D�M��
�
�����s�)&C�#C6�5C6c�V�|j�|��r|�d|��Sd|�d|�d�S)N�.zgetattr(r+rW)r�
is_identifier)r�objr_s   r�getattr_codezTestOf.getattr_codeQsE���8�!�!�$�'�'�	3�!�c�c�4�4�(�(�	3�),���T�T�T�2�2rNc�8�|�||dd���dS)Nr)r2�harmless)r%)r�messagers   r�warnzTestOf.warnWs"���
�
�7�D�D�1�
�=�=�=�=�=rc�\����������� �!�"�#�$�%�&�'�(�)�*�g�'i�g}i�"i}d}dg�g}g�&i�%g}i�!i}�%�&�'fd���!�fd��#����"�#�$��)fd�}��j���&rb�&����$�$����)�$���D]#}	||���#�jj$rY� wxYw�&�b�j��'�|��}	�j�	�j�
|�"|	���j���}
d�}||
_|
�
�j�����}|���}
i� dg��� fd���fd	�}�fd
��g�(Gd�d���i����fd
����� �"�(��*fd��*|���}�d��}|D]8}t!dt#|��dz��D]}�|d|�����9�*|���(s%��d�jjz��dg�(�jj}�j��j��}d|z}|d|zdd��|�(zD]}||��|dvr|d���|d��|d�jj�d|��d��dS)Nrc���|���}|�vr/��|����|��|�|<|Sr)r7r\)rorC�
kindofname�kinds�objectss  ���r�add_kindz!TestOf.make_cat.<locals>.add_kindjsR����#�#�%�%�D��7�"�"����t�$�$�$����T�"�"�"�#'�
�4� ��Krc���|�vr�|S�j�|��}|�|��}|�|<|Sr)r�rl�get_use_text)r��x�usage�ex_maprs   ��rrlz)TestOf.make_cat.<locals>.get_example_exprrsJ����F�{�{��a�y� ���,�,�Q�/�/�A��N�N�1�%�%�E��F�1�I��Lrc���|j}|j}|dk�r�|}g}|���}|D]�}|j}|jdkrj||z}|���}	�|	��}
|�����}|D],}d�dz}
�dxxdz
cc<�|
f�|
<d||f�|
<�-�~|�|����|s|�st
|��t
|��kr�d�|D��}|���d�|D��}�jj	�
��}d	|_||_d
d�d�|D����z|_
n|���}d
|����dfz}
�dxxdz
cc<�|��}
|
�vsJ��|
f�|
<d|���f�|
<dSdS|dvre|���}	�|	��}
|����}|D],}d�dz}
�dxxdz
cc<�|
f�|
<|||f�|
<�-dS|dkr��|��}|�ur,d�|�dfz}
�dxxdz
cc<�|f�|
<d|f�|
<t#|�����D]'\}}�|��}
d|�d|
�d�}
||
f�|
<d|f�|
<�(dSJ�)N�	attribute�mappingz
CALLATTR%drtr�callattrc�:�g|]}|���|f��Sr�)r7��.0r�s  r�
<listcomp>z:TestOf.make_cat.<locals>.gen_atom_beam.<locals>.<listcomp>�s%��H�H�H���
�
����3�H�H�Hrc��g|]\}}|��Sr�r�)r�r��ys   rr�z:TestOf.make_cat.<locals>.gen_atom_beam.<locals>.<listcomp>�s��%:�%:�%:�F�Q��a�%:�%:�%:rroz(%s)�&c��g|]	}|j��
Sr�)�tgtfullnamer�s  rr�z:TestOf.make_cat.<locals>.gen_atom_beam.<locals>.<listcomp>�s��%H�%H�%H��a�m�%H�%H�%Hrz%s:%d�getattr)�operator�function_operator�inplace_operator�reverse_operatorr��setitem�delitem�getitemz
OPERATOR%d�eitherz
(%s:%s:%d)�subkindr-r�rW�	superkind)r`r��get_atom_beams�get_return_test_kind�get_args_examplesr\r9�sortr�Main�Kind�aspectsr;r��
get_test_kindr7�
get_attr_name�	enumerate�
get_alt_kinds)�asp�asptgtr�r_�
otherkinds�atkak�abr��op�ret_kind�tgt_name�examplesr!�
arrow_name�oth�atk�asp_namerq�ak�acr��arrows�farlror�src_names                   ��������r�
gen_atom_beamz&TestOf.make_cat.<locals>.gen_atom_beamzs�����W�F��,�C��k�!�!����
��+�+�-�-���
-�
-�B���A��w�)�+�+� �2�X��#$�#9�#9�#;�#;��#+�8�H�#5�#5��#$�#6�#6�7G��#N�#N��$,�D�D�D�)5��1��)=�J��q�E�E�E�Q�J�E�E�E�2:�H�1E�F�:�.�.8�"�d�-C�B�z�N�N�	D�#�)�)�!�,�,�,�,��G�U�G��:���#�e�*�*�4�4�H�H�Z�H�H�H�����
�
�
�%:�%:�c�%:�%:�%:�
�"�h�m�0�0�2�2��$*��	�&0���*0��H�H�%H�%H�Z�%H�%H�%H�I�I�+K����#�0�0�2�2��!(�D�,<�,<�,>�,>��1��+F�!F�J��q�E�E�E�Q�J�E�E�E�'�x��}�}�H�%�V�3�3�3�3�*2�H�)=�F�:�&�&/��1C�1C�1E�1E�%F�B�z�N�N�N�)G�G�,�Y�Y�Y��3�3�5�5��#�8�H�-�-���0�0�1A�B�B��$�6�6�D�!-��1��!5�J��q�E�E�E�Q�J�E�E�E�*2�H�)=�F�:�&�&)�3��%5�B�z�N�N�	6�6�
����#�8�F�+�+����%�%�!-��8�R��U�0K�!K�J��q�E�E�E�Q�J�E�E�E�*2�H�)=�F�:�&�&/��%:�B�z�N�&�v�';�';�'=�'=�>�>�6�6�E�A�r�'�x��|�|�H�H�.6�h�h����!A�J�*2�H�)=�F�:�&�&1�1�%5�B�z�N�N�	6�6��qr)r�c�,�d�|��S)N�,)r;)r�s r�get_arrow_namez'TestOf.make_cat.<locals>.get_arrow_name�s���8�8�A�;�;�rrtc�`��|sdS|�vrd�dz�|<�dxxdz
cc<�|S)Nr>zt%drtrr�)r��	e_name_no�e_namess ��r�	e_name_ofz"TestOf.make_cat.<locals>.e_name_of�sM����
��u�����"�Y�q�\�1���
��!�����!�����1�:�rc�(��d|�d�|���d�S)Nzfo[z](rWr�)r�r�r.s  �r�call_foz TestOf.make_cat.<locals>.call_fo�s ����#$�1�1�i�i��l�l�l�l�3�3rc
�^��|d}|dkr.|d}||�d��||������dS|dv�r�|d}|���}|d}|���}	|	�>|	D]:}
||�d|
����d|
����d	����;n,��d
|���zd���g}|���D�]#}|�d��}
|�d
��}t|
��dkr9|
r|
dj
j}n|j
j}��d|d���t|��dkr"��d|j
jd���|
rs|
d}�j�
||||d��}|�td|z���dt|��z}|�||f��||�d|������%|dkr*||�d��||���d|�d	����n.|dkr||�d|�d|�d|�����n|dkr$||�d|����||�d|�d|����n�|dkr||�d|�d|�d|����n�|dkr-t!|��}|rd|z}||�d|�d|�|�d	���n�|dkr||�d|�d|�d	���n{|dkr||�d|�d|�d���n`|dkr|d|�d|�d���nG|dkr?||�dd�|jdd ����d!|jd ����nJ�|���}|D]<}�j�
|||||��}|��#|d"|�dd#|jz�����=|D]U\}}|D]M}�j�
|||||��}|�td|z���d$|z}|d"|�d%|�d|�����N�VdSJ�)&Nrtr�rr�)	r�rrrrr�rrrr�r�r-rWz<Could not find postcondition to satisfy precondition for %r.r1�precondition�
postconditionz7Exactly one precondition currently allowed in equation.z:At least one postcondition currently required in equation.zUndefined condition: %rzpre_%dr�rrvrrrr+r�rr�r�rzdel rr5�] = zassert zFailed postcondition: %rz!Failed postcondition equality: %rz == )r��get_op_name�get_setups_for_preconditions�get_name�get_argsr%�get_op_id_name�find_equationsr<r9r=rr�re�SyntaxErrorr\�strr;�negs�get_postconditions�	cond_expr)r\r`�funcr=r�rCr�opnamer!�sus�su�eqs�eq�pres�postsr�pre�ce�prename�argstrr^�postr�rs                       �r�	assign_faz"TestOf.make_cat.<locals>.assign_fa�s����q�'�C��i����A�w����C�C�C��):�):�3��)E�)E�)E�F�G�G�G�G�G��Y�Y�Y��!�W�����)�)���A�w���7�7�9�9���?�!�D�D���� #���R�[�[�]�]�]�]�B�K�K�M�M�M�M� C�D�D�D�D�D��J�J�]��)�)�+�+� -�"&��(�(�(����+�+�-�-�:�:�B��?�?�>�:�:�D��O�O�O�<�<�E��4�y�y�A�~�~��/�#'��7�;�#3�D�D�#%�6�;�D��
�
�#\�#'�-1�#�3�3�3��5�z�z�A�~�~��
�
�#_�#%�6�;�-1�#�3�3�3��	:�"�1�g��!�[�;�;���r�3��6�6���:�"-�.G�#�.M�"N�"N�N�"*�S��X�X�"5���
�
�G�U�#3�4�4�4���G�G�G�R�R�8�9�9�9���*�$�$��F��C�C��!2�!2�3��!?�!?�!?�!?����G�H�H�H�H��J�&�&��F�c�c�c�3�3�3������E�F�F�F�F��.�.�.��F����S�S�1�2�2�2��F����f�f�f�d�d�;�<�<�<�<��.�.�.��F�c�c�c�4�4�4������E�F�F�F�F��/�/�/� ��Y�Y�F��/�!%�����F�c�c�c�6�6�6�3�3����G�H�H�H�H��I�%�%��F�C�C�C����d�d�d�;�<�<�<�<��I�%�%��F�C�C�C����d�d�d�;�<�<�<�<��I�%�%��F�F�3�3�3����5�6�6�6�6��I�%�%��F��C�C����4�9�S�b�S�>�!:�!:�!:�!:�D�I�b�M�M�K�L�L�L�L��1��/�/�1�1�����B���7�7��D�"�c�3�O�O�B��z� ��F�F����2�R�\�A�A������
),�	3�	3�$�W�e� %�3�3��!�[�;�;� �$��C��6�6���:�"-�.G�$�.N�"O�"O�O�"E��"L�����#�G�G�R�R�R��� 2�3�3�3�3�3�	3�	3��qrc��eZdZd�Zd�ZeZdS)�"TestOf.make_cat.<locals>.ArrowTreec�"�||_g|_dSr)rHr)rrHs  rrz+TestOf.make_cat.<locals>.ArrowTree.__init__Ts����� "��
�
�
rc�D�|jrd|jz}nd}d|j�|�d�S)Nz, chdrn = %srVz	AT(pre = rW)rrH)r�chdrns  r�__str__z*TestOf.make_cat.<locals>.ArrowTree.__str__Xs3���=��*�T�]�:�E�E��E��+/�8�8�U�U�U�;�;rN)rwr�r�rrS�__repr__r�rr�	ArrowTreerOSs3������
#�
#�
#�
<�
<�
<��H�H�HrrUc�����|��}|�=�|��}|�|<|r+�|dd���j�|��|S)Nr5)r8rr\)rH�atrU�	at_of_pre�atss  ���rrXz"TestOf.make_cat.<locals>.at_of_predsc���������B��z��Y�s�^�^����C���<��I�c�#�2�#�h�'�'�0�7�7��;�;�;��Irc����g}|j}�|��}|jD]�}	|jd}�|}|j}|d}|dkr|�
|j<�|��nE|dkr|�||f��n'��j�|��||���|����#�jj$rY��wxYw|�r!|���d}	|D]�\}}|�
|j<t
���}
��d����d���|��|
dzt
���kr)����������|	dz
}	��d	����d
����d����|	r��d����d	g|	z��dSdS)Nr5rtrr	ztry:r/r�rr6zexcept:�raise)	rHrr\rrr
r9�popr )r��subsr=r&r�arr@r`r��indents�posrMr.r-r%�pylinesr�travs           �������rrbzTestOf.make_cat.<locals>.travms*����D��%�C� �y��~�~�H��j�
�
�������B��b�6�D��&�C��q�'�C��i�'�'�*2�������R�������+�+����T�2�J�/�/�/�/�!�	�'�.�)�)��3!�3!�"&��2�2�2���R�������x�-�����D������
5��	�	������ $�
3�
3�H�D�"�&.�G�B�F�O��g�,�,�C��N�N�6�*�*�*��N�N�:�.�.�.��D��H�H�H��1�u��G���,�,����
�
�
����
�
�
�
��1������z�2�2�2����y�1�1�1����z�2�2�2�2��,��N�N�7�+�+�+����
�|�G�3�4�4�4�4�4�)
5�
5s�BB&�&B8�7B8r�zNo tests generated for %r.�passztest_%szdef %s(self, arg):r.r/)r/r6r6ztests[r4)ror\r7r
rrr��oarcatr��category_tester�Functorr�r*�get_object_tester�get_intermediate_test_code�get_all_arrows�ranger9r�r�r�r"rr)+r�	relations�fo�arg_counter�eithertests�ex_setup�	pc_checksr'r�cat�testerr*�
object_tester�icoder0�alla�initr�rqr"rC�	test_namerKrUr#r�r$rMrXrYr,r.r-r�r%rlror�r�r�rar&rbs+`                      @@@@@@@@@@@@@@@@@@@@rr�zTestOf.make_catZsu����������������������������	�
��
�����S�������
������	�	�	�	�	�	�	�	�	�	�	�	�	�	�E	�E	�E	�E	�E	�E	�E	�E	�E	�E	�E	�E	�N	��������	��9�9�;�;�D��'�'�)�)�H��*�*�,�,�
�
���!�M�#�&�&�&�&���x�-�����D�����
�	��h�o�o�g�v�y�9�9����)�)��H���R��S�)�)�D�M�*�C�C��	�	�	�!/����0�0���1F�1F�1H�1H�I�I�
��8�8�:�:�����C�	�	�	�	�	�	�	�	4�	4�	4�	4�	4�g	�g	�g	�g	�g	�R��
	�
	�
	�
	�
	�
	�
	�
	���	�	�	�	�	�	�	�)	5�)	5�)	5�)	5�)	5�)	5�)	5�)	5�)	5�)	5�)	5�V�+�+�-�-���y��}�}���	!�	!�A��1�c�!�f�f�Q�h�'�'�
!�
!���	�!�B�Q�B�%� � � � �
!�	
��T�
�
�
��	��I�I�2�T�Y�5J�J�K�K�K��h�G�
�[�^���{�(�(���3�3����$�	�
���)�+�V�Z�@�@�@��w�&�	�	�D��B�t�H�H�H��3�3�3���6�
�
�
��
��:����
���t�y�4�4�4�i�i�@�&�I�I�I�I�Is�B'�'B9�8B9r)rwr�r�rr�r�r�r�rrr�r�)s`������%�%�%�N3�3�3�>�>�>�>�TJ�TJ�TJ�TJ�TJrr�c�(�eZdZdZdZd�Zd�Zd�ZdS)�_GLUECLAMP_)z_parent:SpecNodesz_parent.SpecNodes:node_of_taciz_parent:Mainz_parent.Main:ReportedErrorz_root.io:StringIOz_root.sys:stdoutz	_root:sysz _root.traceback:format_exceptionz_root.guppy.etc:KanExtensionz_root.guppy.etc:Catz_root:rez
_root:time)�and�assert�break�class�continue�def�del�elif�else�except�exec�finally�for�from�global�if�import�in�is�lambda�not�orrc�printr[�return�try�while�yieldc����|j�d��j�td�|jD�������fd�S)Nz[_a-zA-Z][_a-zA-Z0-9]*c��g|]}|df��S)rr�)r��rws  rr�z2_GLUECLAMP_._get_is_identifier.<locals>.<listcomp>�s��:�:�:��R��G�:�:�:rc�"���|��o|�vSrr�)r��m�rwds ��r�<lambda>z0_GLUECLAMP_._get_is_identifier.<locals>.<lambda>�s�����1���.�!�3�,�r)�re�compile�match�dict�reserved_words)rr�r�s @@r�_get_is_identifierz_GLUECLAMP_._get_is_identifier�sL�����G�O�O�4�5�5�;���:�:�d�&9�:�:�:�;�;��.�.�.�.�.�.rc�L�t|||��}|���Sr)rr)rrr�d2hs    r�doc2textz_GLUECLAMP_.doc2text�s#����s�D�)�)���~�~���rc���|�||��}|j�|d|z��}|�d||�d|��g��}|S)Nz%s.py�
write_file�text)r��pathr;rQ)	rrrrC�dir�opts�IOr�r�s	         r�	doc2filerz_GLUECLAMP_.doc2filer�sg���}�}�S�$�'�'���w�|�|�C��4��0�0��� � ��t�!%�!2�!2�6�4�!@�!@�6B�C�C���rN)rwr�r��	_imports_r�r�r�r�r�rrryry�sP������
�I�"�N�@/�/�/�
 � � �����rryN)rr�r�r�ryr�rr�<module>r�s��S#�S#�S#�S#�S#�S#�S#�S#�l
G�
G�
G�
G�
G�
G�
G�
G�
�
�
�
�
�
�
�
�
EJ�EJ�EJ�EJ�EJ�Z�EJ�EJ�EJ�P@�@�@�@�@�@�@�@�@�@r

Zerion Mini Shell 1.0