
    'Th                     f    S SK r S SKJr  SSKJr   " S S\5      r " S S\5      r " S	 S
\5      rg)    N)Optional   )TritonErrorc                   p    \ rS rSrSrSrS\4S jrSS\\   S\	R                  S	\\   4S
 jjrS rS rSrg)CompilationError   z3Base class for all errors raised during compilation   returnc                    U R                   nU R                  c  SnO[        US5      (       as  U R                  R                  S5      S UR                   U R
                  * S  nU(       a3  UR                  SUR                  -  S-   5        SR                  U5      nOSnOU R                  n[        US5      (       a'  SR                  UR                  UR                  U5      OUnU R                  (       a  USU R                  -   -  nU$ )Nz <source unavailable>lineno
 ^z <source empty>zat {}:{}:
{})nodesrchasattrsplitr    source_line_count_max_in_messageappend
col_offsetjoinformaterror_message)selfr   source_excerptmessages       N/var/www/auris/envauris/lib/python3.13/site-packages/triton/compiler/errors.py_format_message CompilationError._format_message
   s    yy884NtX&&!%!5lt{{!CTEjEjDjDk!l!"))#*?#*EF%)YY~%>N%6N!%Za([ [/((doo~V!/ 	td0000G    Nr   r   r   c                 R    Xl         X l        X0l        U R                  5       U l        g N)r   r   r   r   r   )r   r   r   r   s       r   __init__CompilationError.__init__   s"    	*++-r    c                     U R                   $ r"   )r   r   s    r   __str__CompilationError.__str__%   s    ||r    c                 ^    [        U 5      U R                  U R                  U R                  44$ r"   )typer   r   r   r&   s    r   
__reduce__CompilationError.__reduce__(   s&    DzDHHdii1C1CDDDr    )r   r   r   r   r"   )__name__
__module____qualname____firstlineno____doc__r   strr   r   astASTr#   r'   r+   __static_attributes__ r    r   r   r      sI    =')$ *.HSM . .RU .Er    r   c                       \ rS rSrSrSrg)CompileTimeAssertionFailure-   zBSpecific exception for failed tests in `static_assert` invocationsr6   N)r-   r.   r/   r0   r1   r5   r6   r    r   r8   r8   -   s    Lr    r8   c                       \ rS rSrSrg)UnsupportedLanguageConstruct2   r6   N)r-   r.   r/   r0   r5   r6   r    r   r;   r;   2   s    r    r;   )r3   typingr   errorsr   r   r8   r;   r6   r    r   <module>r?      s7    
   $E{ $EN	"2 	
	#3 	r    