r2u2_cli 4.1.0

R2U2 CLI: A stream-based runtime monitor command-line interface
+
=��ho
��f�^RIt^RIHt^RIt^RIHtHtRtRRltRRlt	R	R
lt
RRltR#)
�N)�Optional)�types�log�PRSOc	��V^8�dQhR\PR\R\\\
\P,3,/#)��
trace_path�map_file_provided�return)�pathlib�Path�bool�tuple�intrr�
SignalMapping)�formats"�o/Users/aaurandt/Desktop/IowaState/R2U2Research/Dissertation/Comparison/r2u2-modify/compiler/c2po/parse_utils.py�__annotate__r	s=��(�(����(�15�(�
�3���,�,�-�-�.�(�c	��\VR4;_uu_4pVP4pRRR4XP4p\V4^8dR	#^p/pV^,^,R8Xd�V^,R,pV'd\P
!\R4VPR4Uu.uFq�P4NK	upFUp	W�9d@\P
!\RV	R2\P!VP^44WVV	&V^,
pKW	\V4^,
p
W�3#\V4R3# +'giEL(;iuupi)
zrGiven `trace_path`, return the inferred length of the trace and, if `return_mapping` is enabled, a signal mapping.�rN�#:�NNzHMap file given and header included in trace file; header will be ignored�,�Signal ID 'z5' found multiple times in csv, using right-most value)�����N)�open�read�
splitlines�lenr�warning�MODULE_CODE�split�strip�FileLocation�name)r	r
�f�content�lines�cnt�signal_mapping�header�s�id�trace_lengths&&         r�parse_trace_filer0	s-��
�j�#�	�	�!��v�v�x��
��)�)�+�E�
�5�z�A�~����C�*,�N��Q�x��{�c���q��"�����K�K��Z�
�
'-�l�l�3�&7�8�&7��7�7�9�&7�8�B��#�����!�"��%Z�[��$�$�Z�_�_�a�8��
"%�2���1�H�C�9��5�z�A�~���-�-�
��J����I
�	�	��*9s�E�/E�E	c�n�V^8�dQhR\PR\\P,/#)r�map_pathr)rr
rrr)rs"rrr4s)����W�\�\��h�u�7J�7J�.K�rc��\VR4;_uu_4pVP4pRRR4/pXP4pVF�p\P!RV4'd�VPR4pV^,p\
V^,4pWs9dV\P!\RVR2\P!VPVPV4^,44W�V&K�\P!\RVR2\P!VPVPV444R#	V# +'giEL';i)	z*Return the signal mapping from `map_path`.rNz[a-zA-Z_][a-zA-Z0-9_\[\]]*:\d+�:rz6' found multiple times in map file, using latest valuez#Invalid format for map line (found z,)
	 Should be of the form SYMBOL ':' NUMERAL)rrr�re�matchr#rrr!r"r%r&�index�error)	r2r'r(�mappingr)�line�strsr.�sids	&        r�parse_map_filer=4s��	
�h��	�	���v�v�x��
�$&�G���� �E���
�8�8�5�t�<�<��:�:�c�?�D��a��B��d�1�g�,�C��}�����!�"��%[�\��$�$�X�]�]�E�K�K��4E��4I�J���B�K��I�I��5�d�V�<@�@�� � �������D�0A�B�	
��+�.�N�;
�	�	�s�E�E	c�<�V^8�dQhR\PRR/#�r�bounds_pathrN�rr
)rs"rrrVs��	�	����	��	rc��R#�N��r@s&r�parse_bounds_crFV���rc�<�V^8�dQhR\PRR/#r?rA)rs"rrrZs��	�	�7�<�<�	�D�	rc��R#rCrDrEs&r�parse_bounds_rustrJZrGr)r�typingrr5�c2porrr"r0r=rFrJrDrr�<module>rMs,����	����(�V�D	�	r