K ifddlZddlmZddlmZGddeZGddeZGd d eZy) N)Optional) TritonErrorcbeZdZdZdZdefdZd deedejdeefd Z d Z d Z y) CompilationErrorz3Base class for all errors raised during compilation returnc|j}|jd}nt|drn|jjdd|j|j d}|r3|j d|jzdzdj|}nd}n |j}t|dr'dj|j|j|n|}|jr|d|jzz }|S)Nz lineno  ^z z at {}:{}: {}) nodesrchasattrsplitr source_line_count_max_in_messageappend col_offsetjoinformat error_message)selfrsource_excerptmessages \/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/triton/compiler/errors.py_format_messagez CompilationError._format_message syy 88 4NtX&!%!5lt{{!CTEjEjDjDk!l!"))#*?#*EF%)YY~%>N%6N!%Za ([/((doo~V!/     td000 0GNrrrcX||_||_||_|j|_yN)rrrrr)rrrrs r__init__zCompilationError.__init__s( *++- rc|jSr )rrs r__str__zCompilationError.__str__%s ||rc^t||j|j|jffSr )typerrrr#s r __reduce__zCompilationError.__reduce__(s&DzDHHdii1C1CDDDrr ) __name__ __module__ __qualname____doc__rstrrrastASTr!r$r'rrrrsI=')$*.HSM..RU. ErrceZdZdZy)CompileTimeAssertionFailurezBSpecific exception for failed tests in `static_assert` invocationsN)r(r)r*r+r/rrr1r1-sLrr1c eZdZy)UnsupportedLanguageConstructN)r(r)r*r/rrr3r32srr3)r-typingrerrorsrrr1r3r/rrr6s7  $E{$EN "2  #3 r