/* Generated by Nimrod Compiler v0.9.5 */
/*   (c) 2014 Andreas Rumpf */
/* The generated code is subject to the original license. */
/* Compiled for: Linux, i386, gcc */
/* Command for C compiler:
   gcc -c  -w -O3 -fno-strict-aliasing  -I/build/nimrod/src/nimrod/lib -o compiler/nimcache/msgs.o compiler/nimcache/msgs.c */
#define NIM_INTBITS 32
#include "nimbase.h"

#include <string.h>

#include <stdio.h>

#include <stdlib.h>

#include <setjmp.h>
typedef struct ttable163560 ttable163560;
typedef struct tkeyvaluepairseq163563 tkeyvaluepairseq163563;
typedef struct tkeyvaluepair163566 tkeyvaluepair163566;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct TY163619 TY163619;
typedef struct tfileinfo163525 tfileinfo163525;
typedef struct trope145007 trope145007;
typedef struct TY163540 TY163540;
typedef struct tcell41090 tcell41090;
typedef struct tcellseq41106 tcellseq41106;
typedef struct tgcheap43016 tgcheap43016;
typedef struct tcellset41102 tcellset41102;
typedef struct tpagedesc41098 tpagedesc41098;
typedef struct tmemregion23410 tmemregion23410;
typedef struct tsmallchunk22638 tsmallchunk22638;
typedef struct tllchunk23404 tllchunk23404;
typedef struct tbigchunk22640 tbigchunk22640;
typedef struct tintset22615 tintset22615;
typedef struct ttrunk22611 ttrunk22611;
typedef struct tavlnode23408 tavlnode23408;
typedef struct tgcstat43014 tgcstat43014;
typedef struct tlineinfo163527 tlineinfo163527;
typedef struct tsocketimpl150605 tsocketimpl150605;
typedef struct TY164208 TY164208;
typedef struct TY110805 TY110805;
typedef struct erecoverableerror163533 erecoverableerror163533;
typedef struct einvalidvalue2453 einvalidvalue2453;
typedef struct esynch2429 esynch2429;
typedef struct E_Base E_Base;
typedef struct TNimObject TNimObject;
typedef struct tslice165509 tslice165509;
typedef struct TSafePoint TSafePoint;
typedef struct TY79484 TY79484;
typedef struct esuggestdone163535 esuggestdone163535;
typedef struct tbasechunk22636 tbasechunk22636;
typedef struct tfreecell22628 tfreecell22628;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct tkeyvaluepair163566 {
NU8 Field0;
NimStringDesc* Field1;
NI32 Field2;
};
struct  ttable163560  {
tkeyvaluepairseq163563* Data;
NI Counter;
};
typedef N_NIMCALL_PTR(void, TY2289) (void* p, NI op);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY2289 marker;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  tfileinfo163525  {
NimStringDesc* Fullpath;
NimStringDesc* Projpath;
NimStringDesc* Shortname;
trope145007* Quotedname;
TY163540* Lines;
};
struct  tcell41090  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq41106  {
NI Len;
NI Cap;
tcell41090** D;
};
struct  tcellset41102  {
NI Counter;
NI Max;
tpagedesc41098* Head;
tpagedesc41098** Data;
};
typedef tsmallchunk22638* TY23422[512];
typedef ttrunk22611* ttrunkbuckets22613[256];
struct  tintset22615  {
ttrunkbuckets22613 Data;
};
struct  tmemregion23410  {
NI Minlargeobj;
NI Maxlargeobj;
TY23422 Freesmallchunks;
tllchunk23404* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk22640* Freechunkslist;
tintset22615 Chunkstarts;
tavlnode23408* Root;
tavlnode23408* Deleted;
tavlnode23408* Last;
tavlnode23408* Freeavlnodes;
};
struct  tgcstat43014  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap43016  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq41106 Zct;
tcellseq41106 Decstack;
tcellset41102 Cycleroots;
tcellseq41106 Tempstack;
NI Recgclock;
tmemregion23410 Region;
tgcstat43014 Stat;
};
struct  tlineinfo163527  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (NU8 err, NimStringDesc* msg, NIM_BOOL usewarning, void* ClEnv);
void* ClEnv;
} TY145103;
typedef NimStringDesc* TY165002[1];
typedef NimStringDesc* TY165283[4];
typedef NimStringDesc* TY163479[273];
struct  TNimObject  {
TNimType* m_type;
};
struct  E_Base  {
  TNimObject Sup;
E_Base* parent;
NCSTRING name;
NimStringDesc* message;
NimStringDesc* trace;
};
struct  esynch2429  {
  E_Base Sup;
};
struct  einvalidvalue2453  {
  esynch2429 Sup;
};
struct  erecoverableerror163533  {
  einvalidvalue2453 Sup;
};
typedef N_CLOSURE_PTR(void, TMP430) (NU8 err, NimStringDesc* msg, NIM_BOOL usewarning, void* ClEnv);
struct  tslice165509  {
NU16 A;
NU16 B;
};
typedef struct {
N_NIMCALL_PTR(NIM_BOOL, ClPrc) (E_Base* e, void* ClEnv);
void* ClEnv;
} TY11626;
struct  TSafePoint  {
TSafePoint* prev;
NI status;
jmp_buf context;
NIM_BOOL hasRaiseAction;
TY11626 raiseAction;
};
struct TY79484 {
NimStringDesc* Field0;
NI Field1;
};
struct  esuggestdone163535  {
  E_Base Sup;
};
struct  trope145007  {
  TNimObject Sup;
trope145007* Left;
trope145007* Right;
NI Length;
NimStringDesc* Data;
};
typedef NI TY22618[16];
struct  tpagedesc41098  {
tpagedesc41098* Next;
NI Key;
TY22618 Bits;
};
struct  tbasechunk22636  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk22638  {
  tbasechunk22636 Sup;
tsmallchunk22638* Next;
tsmallchunk22638* Prev;
tfreecell22628* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk23404  {
NI Size;
NI Acc;
tllchunk23404* Next;
};
struct  tbigchunk22640  {
  tbasechunk22636 Sup;
tbigchunk22640* Next;
tbigchunk22640* Prev;
NI Align;
NF Data;
};
struct  ttrunk22611  {
ttrunk22611* Next;
NI Key;
TY22618 Bits;
};
typedef tavlnode23408* TY23414[2];
struct  tavlnode23408  {
TY23414 Link;
NI Key;
NI Upperbound;
NI Level;
};
typedef NIM_CHAR TY150630[4001];
struct  tsocketimpl150605  {
int Fd;
NIM_BOOL Isbuffered;
union {
struct {TY150630 Buffer;
NI Currpos;
NI Buflen;
} S1;
} isbufferedU;
NIM_BOOL Nonblocking;
};
struct  tfreecell22628  {
tfreecell22628* Next;
NI Zerofield;
};
struct tkeyvaluepairseq163563 {
  TGenericSeq Sup;
  tkeyvaluepair163566 data[SEQ_DECL_SIZE];
};
struct TY163540 {
  TGenericSeq Sup;
  trope145007* data[SEQ_DECL_SIZE];
};
struct TY163619 {
  TGenericSeq Sup;
  tfileinfo163525 data[SEQ_DECL_SIZE];
};
struct TY164208 {
  TGenericSeq Sup;
  tlineinfo163527 data[SEQ_DECL_SIZE];
};
struct TY110805 {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, inittable_163552)(NI initialsize_163557, ttable163560* Result);
N_NOINLINE(void, chckNil)(void* p);
N_NIMCALL(void, genericReset)(void* dest, TNimType* mt);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP139)(void* p, NI op);
N_NIMCALL(void, TMP140)(void* p, NI op);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(tcell41090*, usrtocell_44443)(void* usr);
static N_INLINE(void, rtladdzct_46002)(tcell41090* c);
N_NOINLINE(void, addzct_44418)(tcellseq41106* s, tcell41090* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void, newfileinfo_163680)(NimStringDesc* fullpath, NimStringDesc* projpath, tfileinfo163525* Result);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(NimStringDesc*, nosextractFilename)(NimStringDesc* path);
N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext);
N_NIMCALL(trope145007*, makecstring_163651)(NimStringDesc* s);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(void, app_145040)(trope145007** a, trope145007* b);
N_NIMCALL(trope145007*, torope_145058)(NimStringDesc* s);
N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newlen);
N_NIMCALL(NimStringDesc*, tocchar_163645)(NIM_CHAR c);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, nsuToOctal)(NIM_CHAR c);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(NimStringDesc*, nimCharToStr)(NIM_CHAR x);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
N_NIMCALL(tlineinfo163527, newlineinfo_164069)(NI32 fileinfoidx, NI line, NI col);
N_NIMCALL(void, TMP147)(void* p, NI op);
N_NIMCALL(tlineinfo163527, unknownlineinfo_164203)(void);
N_NIMCALL(void, HEX3Aanonymous_165763)(NU8 err, NimStringDesc* msg, NIM_BOOL usewarning);
N_NIMCALL(void, internalerror_165606)(NimStringDesc* errmsg);
N_NIMCALL(void, writecontext_165253)(tlineinfo163527 lastinfo);
N_NIMCALL(NIM_BOOL, HEX3DHEX3D_165246)(tlineinfo163527 a, tlineinfo163527 b);
N_NIMCALL(void, msgwriteln_164937)(NimStringDesc* s);
static N_INLINE(void, writeln_138205)(FILE* f_138209, NimStringDesc** x_138213, NI x_138213Len0);
N_NIMCALL(void, write_10463)(FILE* f, NimStringDesc* s);
N_NIMCALL(void, safeadd_164460)(TY110805** x_164468, NimStringDesc* y_164472);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(NimStringDesc*, tomsgfilename_164804)(tlineinfo163527 info);
N_NIMCALL(NimStringDesc*, coordtostr_165065)(NI coord);
N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
N_NIMCALL(NimStringDesc*, getmessagestr_165077)(NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, msgkindtostring_165071)(NU16 kind);
N_NIMCALL(void, rawmessage_165386)(NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, rawmessage_165292)(NU16 msg, NimStringDesc** args, NI argsLen0);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
N_NIMCALL(void, handleerror_165126)(NU16 msg, NU8 eh, NimStringDesc* s);
N_NIMCALL(void, writestacktrace_12406)(void);
N_NOINLINE(void, raiserecoverableerror_164129)(NimStringDesc* msg);
N_NIMCALL(void, TMP427)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
N_NIMCALL(void, raiseException)(E_Base* e, NCSTRING ename);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_46827)(tcell41090* c);
static N_INLINE(NIM_BOOL, canbecycleroot_44462)(tcell41090* c);
static N_INLINE(void, rtladdcycleroot_45235)(tcell41090* c);
N_NOINLINE(void, incl_41855)(tcellset41102* s, tcell41090* cell);
static N_INLINE(void, decref_46402)(tcell41090* c);
N_NIMCALL(void, limessage_165402)(tlineinfo163527 info, NU16 msg, NimStringDesc* arg, NU8 eh);
static N_INLINE(NIM_BOOL, contains_165518)(tslice165509 s_165524, NU16 value_165527);
static N_INLINE(tslice165509, HEX2EHEX2E_165500)(NU16 a_165504, NU16 b_165506);
N_NIMCALL(void, writesurroundingsrc_165396)(tlineinfo163527 info);
N_NIMCALL(NimStringDesc*, ropetostr_145075)(trope145007* p);
N_NIMCALL(trope145007*, sourceline_164155)(tlineinfo163527 i);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
N_NIMCALL(NimStringDesc*, tofullpath_164788)(NI32 fileidx);
N_NIMCALL(FILE*, open_10217)(NimStringDesc* filename, NU8 mode, NI bufsize);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
N_NIMCALL(NIM_BOOL, readline_10487)(FILE* f, NimStringDesc** line);
N_NIMCALL(void, addsourceline_165634)(NI32 fileidx, NimStringDesc* line);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(void, popSafePoint)(void);
N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass);
static N_INLINE(E_Base*, getCurrentException)(void);
static N_INLINE(void, popCurrentException)(void);
N_NIMCALL(void, reraiseException)(void);
N_NIMCALL(NimStringDesc*, HEX24_165714)(TY79484 x_165718);
N_NIMCALL(NimStringDesc*, nsuRepeatChar)(NI count, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, canonicalizepath_137335)(NimStringDesc* path);
static N_INLINE(void, shallow_80220)(NimStringDesc** s_80223);
N_NIMCALL(NIM_BOOL, haskey_163730)(ttable163560 t_163737, NimStringDesc* key_163740);
N_NIMCALL(NI32, HEX5BHEX5D_163781)(ttable163560 t_163788, NimStringDesc* key_163791);
N_NIMCALL(NimStringDesc*, shortendir_137403)(NimStringDesc* dir);
N_NIMCALL(void, HEX5BHEX5DHEX3D_163841)(ttable163560* t_163850, NimStringDesc* key_163854, NI32 val_163856);
N_NIMCALL(void, send_160604)(tsocketimpl150605* socket, NimStringDesc* data);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_74604, TNimType* mt);
N_NIMCALL(void, TMP2558)(void* p, NI op);
STRING_LITERAL(TMP142, "", 0);
STRING_LITERAL(TMP143, "\"", 1);
STRING_LITERAL(TMP144, "command line", 12);
STRING_LITERAL(TMP145, "compilation artifact", 20);
STRING_LITERAL(TMP150, "\012", 1);
STRING_LITERAL(TMP152, "$1($2, $3) Info: $4", 19);
STRING_LITERAL(TMP153, "???", 3);
STRING_LITERAL(TMP154, "unknown error", 13);
STRING_LITERAL(TMP155, "illformed AST: $1", 17);
STRING_LITERAL(TMP156, "internal error: $1", 18);
STRING_LITERAL(TMP157, "cannot open \'$1\'", 16);
STRING_LITERAL(TMP158, "$1", 2);
STRING_LITERAL(TMP159, "\'$1\' compiler does not support C++", 34);
STRING_LITERAL(TMP160, "string literal expected", 23);
STRING_LITERAL(TMP161, "integer literal expected", 24);
STRING_LITERAL(TMP162, "invalid character constant", 26);
STRING_LITERAL(TMP163, "closing \"\"\" expected, but end of file reached", 45);
STRING_LITERAL(TMP164, "closing \" expected", 18);
STRING_LITERAL(TMP165, "tabulators are not allowed", 26);
STRING_LITERAL(TMP166, "invalid token: $1", 17);
STRING_LITERAL(TMP167, "line too long", 13);
STRING_LITERAL(TMP168, "$1 is not a valid number", 24);
STRING_LITERAL(TMP169, "number $1 out of valid range", 28);
STRING_LITERAL(TMP170, "\\n not allowed in character literal", 35);
STRING_LITERAL(TMP171, "closing \']\' expected, but end of file reached", 45);
STRING_LITERAL(TMP172, "missing final \' for character literal", 37);
STRING_LITERAL(TMP173, "identifier expected, but found \'$1\'", 35);
STRING_LITERAL(TMP174, "newline expected, but found \'$1\'", 32);
STRING_LITERAL(TMP175, "invalid module name: \'$1\'", 25);
STRING_LITERAL(TMP176, "operator expected, but found \'$1\'", 33);
STRING_LITERAL(TMP177, "\'$1\' expected", 13);
STRING_LITERAL(TMP178, "string after \'include\' expected", 31);
STRING_LITERAL(TMP179, "recursive dependency: \'$1\'", 26);
STRING_LITERAL(TMP180, "\'on\' or \'off\' expected", 22);
STRING_LITERAL(TMP181, "\'none\', \'speed\' or \'size\' expected", 34);
STRING_LITERAL(TMP182, "invalid pragma", 14);
STRING_LITERAL(TMP183, "unknown pragma: \'$1\'", 20);
STRING_LITERAL(TMP184, "invalid directive: \'$1\'", 23);
STRING_LITERAL(TMP185, "\'pop\' without a \'push\' pragma", 29);
STRING_LITERAL(TMP186, "empty asm statement", 19);
STRING_LITERAL(TMP187, "invalid indentation", 19);
STRING_LITERAL(TMP188, "exception expected", 18);
STRING_LITERAL(TMP189, "exception already handled", 25);
STRING_LITERAL(TMP190, "\'yield\' only allowed in an iterator", 35);
STRING_LITERAL(TMP191, "\'yield\' cannot be used within \'try\' in a non-inlined iterator", 61);
STRING_LITERAL(TMP192, "invalid number of \'yield\' expressions", 37);
STRING_LITERAL(TMP193, "current routine cannot return an expression", 43);
STRING_LITERAL(TMP194, "redefinition of \'$1\'", 20);
STRING_LITERAL(TMP195, "statement not allowed after \'return\', \'break\', \'raise\' or \'cont"
"inue\'", 68);
STRING_LITERAL(TMP196, "statement expected", 18);
STRING_LITERAL(TMP197, "\'$1\' is no label", 16);
STRING_LITERAL(TMP198, "invalid command line option: \'$1\'", 33);
STRING_LITERAL(TMP199, "argument for command line option expected: \'$1\'", 47);
STRING_LITERAL(TMP200, "invalid argument for command line option: \'$1\'", 46);
STRING_LITERAL(TMP201, "invalid variable substitution in \'$1\'", 37);
STRING_LITERAL(TMP202, "unknown variable: \'$1\'", 22);
STRING_LITERAL(TMP203, "unknown C compiler: \'$1\'", 24);
STRING_LITERAL(TMP204, "\'on\' or \'off\' expected, but \'$1\' found", 38);
STRING_LITERAL(TMP205, "\'none\', \'boehm\' or \'refc\' expected, but \'$1\' found", 50);
STRING_LITERAL(TMP206, "\'none\', \'speed\' or \'size\' expected, but \'$1\' found", 50);
STRING_LITERAL(TMP207, "\'gui\', \'console\' or \'lib\' expected, but \'$1\' found", 50);
STRING_LITERAL(TMP208, "unknown OS: \'$1\'", 16);
STRING_LITERAL(TMP209, "unknown CPU: \'$1\'", 17);
STRING_LITERAL(TMP210, "\'c\', \'c++\' or \'yaml\' expected, but \'$1\' found", 45);
STRING_LITERAL(TMP211, "arguments can only be given if the \'--run\' option is selected", 61);
STRING_LITERAL(TMP212, "multiple assignment is not allowed", 34);
STRING_LITERAL(TMP213, "\':\' or \'=\' expected, but found \'$1\'", 35);
STRING_LITERAL(TMP214, "expression expected, but found \'$1\'", 35);
STRING_LITERAL(TMP215, "undeclared identifier: \'$1\'", 27);
STRING_LITERAL(TMP216, "ambiguous identifier: \'$1\' -- use a qualifier", 45);
STRING_LITERAL(TMP217, "type expected", 13);
STRING_LITERAL(TMP218, "system module needs \'$1\'", 24);
STRING_LITERAL(TMP219, "execution of an external program failed", 39);
STRING_LITERAL(TMP220, "overloaded \'$1\' leads to ambiguous calls", 40);
STRING_LITERAL(TMP221, "invalid argument for \'$1\'", 25);
STRING_LITERAL(TMP222, "statement has no effect", 23);
STRING_LITERAL(TMP223, "\'$1\' expects a type or value", 28);
STRING_LITERAL(TMP224, "\'$1\' expects an array type", 26);
STRING_LITERAL(TMP225, "\'$1\' cannot be instantiated because its body has not been compi"
"led yet", 70);
STRING_LITERAL(TMP226, "expression \'$1\' ambiguous in this context", 41);
STRING_LITERAL(TMP227, "division by zero", 16);
STRING_LITERAL(TMP228, "ordinal type expected", 21);
STRING_LITERAL(TMP229, "ordinal or float type expected", 30);
STRING_LITERAL(TMP230, "over- or underflow", 18);
STRING_LITERAL(TMP231, "cannot evalutate \'$1\' because type is not defined completely", 60);
STRING_LITERAL(TMP232, "\'chr\' expects an int in the range 0..255", 40);
STRING_LITERAL(TMP233, "\'dynlib\' requires \'exportc\'", 27);
STRING_LITERAL(TMP234, "undeclared field: \'$1\'", 22);
STRING_LITERAL(TMP235, "attempt to access a nil address", 31);
STRING_LITERAL(TMP236, "index out of bounds", 19);
STRING_LITERAL(TMP237, "index types do not match", 24);
STRING_LITERAL(TMP238, "\'[]\' operator invalid for this type", 35);
STRING_LITERAL(TMP239, "value out of set bounds", 23);
STRING_LITERAL(TMP240, "field initialized twice: \'$1\'", 29);
STRING_LITERAL(TMP241, "field \'$1\' not initialized", 26);
STRING_LITERAL(TMP242, "expression \'$1\' cannot be called", 32);
STRING_LITERAL(TMP243, "expression has no type", 22);
STRING_LITERAL(TMP244, "expression \'$1\' has no type (or is ambiguous)", 45);
STRING_LITERAL(TMP245, "\'cast\' not allowed in safe mode", 31);
STRING_LITERAL(TMP246, "expression cannot be casted to $1", 33);
STRING_LITERAL(TMP247, "\',\' or \')\' expected", 19);
STRING_LITERAL(TMP248, "\'{\' or \'(\' expected", 19);
STRING_LITERAL(TMP249, "section (\'type\', \'proc\', etc.) expected", 39);
STRING_LITERAL(TMP250, "range expected", 14);
STRING_LITERAL(TMP251, "\'magic\' only allowed in system module", 37);
STRING_LITERAL(TMP252, "power of two expected", 21);
STRING_LITERAL(TMP253, "string literal may not be empty", 31);
STRING_LITERAL(TMP254, "calling convention expected", 27);
STRING_LITERAL(TMP255, "a proc can only have one calling convention", 43);
STRING_LITERAL(TMP256, "symbol must be imported if \'lib\' pragma is used", 47);
STRING_LITERAL(TMP257, "expression must be of type \'bool\'", 33);
STRING_LITERAL(TMP258, "constant expression expected", 28);
STRING_LITERAL(TMP259, "duplicate case label", 20);
STRING_LITERAL(TMP260, "range is empty", 14);
STRING_LITERAL(TMP261, "selector must be of an ordinal type, float or string", 52);
STRING_LITERAL(TMP262, "selector must be of an ordinal type", 35);
STRING_LITERAL(TMP263, "ord($1) must not be negative", 28);
STRING_LITERAL(TMP264, "len($1) must be less than 32768", 31);
STRING_LITERAL(TMP265, "wrong number of variables", 25);
STRING_LITERAL(TMP266, "only a \'ref object\' can be raised", 33);
STRING_LITERAL(TMP267, "\'break\' only allowed in loop construct", 38);
STRING_LITERAL(TMP268, "type \'$1\' has unknown size", 26);
STRING_LITERAL(TMP269, "a constant can only be initialized with a constant expression", 61);
STRING_LITERAL(TMP270, "a constant needs a value", 24);
STRING_LITERAL(TMP271, "the result type cannot be on open array", 39);
STRING_LITERAL(TMP272, "computing the type\'s size produced an overflow", 46);
STRING_LITERAL(TMP273, "set is too large", 16);
STRING_LITERAL(TMP274, "base type of a set must be an ordinal", 37);
STRING_LITERAL(TMP275, "inheritance only works with non-final objects", 45);
STRING_LITERAL(TMP276, "inheritance only works with an enum", 35);
STRING_LITERAL(TMP277, "illegal recursion in type \'$1\'", 30);
STRING_LITERAL(TMP278, "cannot instantiate: \'$1\'", 24);
STRING_LITERAL(TMP279, "expression has no address", 25);
STRING_LITERAL(TMP280, "address of \'$1\' may not escape its stack frame", 46);
STRING_LITERAL(TMP281, "for a \'var\' type a variable needs to be passed", 46);
STRING_LITERAL(TMP282, "type mismatch", 13);
STRING_LITERAL(TMP283, "type mismatch: got (", 20);
STRING_LITERAL(TMP284, "but expected one of: ", 21);
STRING_LITERAL(TMP285, "but expected \'$1\'", 17);
STRING_LITERAL(TMP286, "ambiguous call; both $1 and $2 match for: $3", 44);
STRING_LITERAL(TMP287, "wrong number of arguments", 25);
STRING_LITERAL(TMP288, "\'$1\' cannot be passed to a procvar", 34);
STRING_LITERAL(TMP289, "$1 cannot be declared in parameter declaration", 46);
STRING_LITERAL(TMP290, "pragmas are only allowed in the header of a proc", 48);
STRING_LITERAL(TMP291, "implementation of \'$1\' is not allowed", 37);
STRING_LITERAL(TMP292, "implementation of \'$1\' expected", 31);
STRING_LITERAL(TMP293, "no symbol to borrow from found", 30);
STRING_LITERAL(TMP294, "value of type \'$1\' has to be discarded", 38);
STRING_LITERAL(TMP295, "statement returns no value that can be discarded", 48);
STRING_LITERAL(TMP296, "conversion from $1 to $2 is invalid", 35);
STRING_LITERAL(TMP297, "cannot bind parameter \'$1\' twice", 32);
STRING_LITERAL(TMP298, "invalid order in array constructor", 34);
STRING_LITERAL(TMP299, "invalid order in enum \'$1\'", 26);
STRING_LITERAL(TMP300, "enum \'$1\' has holes", 19);
STRING_LITERAL(TMP301, "\'except\' or \'finally\' expected", 30);
STRING_LITERAL(TMP302, "after catch all \'except\' or \'finally\' no section may follow", 59);
STRING_LITERAL(TMP303, "option expected, but found \'$1\'", 31);
STRING_LITERAL(TMP304, "\'$1\' is not a label", 19);
STRING_LITERAL(TMP305, "not all cases are covered", 25);
STRING_LITERAL(TMP306, "unknown substitution variable: \'$1\'", 35);
STRING_LITERAL(TMP307, "complex statement requires indentation", 38);
STRING_LITERAL(TMP308, "\'$1\' is not callable", 20);
STRING_LITERAL(TMP309, "no pragmas allowed for $1", 25);
STRING_LITERAL(TMP310, "no generic parameters allowed for $1", 36);
STRING_LITERAL(TMP311, "invalid param kind: \'$1\'", 24);
STRING_LITERAL(TMP312, "default argument invalid", 24);
STRING_LITERAL(TMP313, "named parameter has to be an identifier", 39);
STRING_LITERAL(TMP314, "no return type allowed for $1", 29);
STRING_LITERAL(TMP315, "a type conversion needs exactly one argument", 44);
STRING_LITERAL(TMP316, "invalid pragma: $1", 18);
STRING_LITERAL(TMP317, "$1 not allowed here", 19);
STRING_LITERAL(TMP318, "invalid control flow: $1", 24);
STRING_LITERAL(TMP319, "invalid type: \'$1\'", 18);
STRING_LITERAL(TMP320, "\'[]\' needs a pointer or reference type", 38);
STRING_LITERAL(TMP321, "invalid expression", 18);
STRING_LITERAL(TMP322, "invalid expression: \'$1\'", 24);
STRING_LITERAL(TMP323, "enum has no value \'$1\'", 22);
STRING_LITERAL(TMP324, "named expression expected", 25);
STRING_LITERAL(TMP325, "named expression not allowed here", 33);
STRING_LITERAL(TMP326, "\'$1\' expects one type parameter", 31);
STRING_LITERAL(TMP327, "array expects two type parameters", 33);
STRING_LITERAL(TMP328, "invalid visibility: \'$1\'", 24);
STRING_LITERAL(TMP329, "initialization not allowed here", 31);
STRING_LITERAL(TMP330, "\'$1\' cannot be assigned to", 26);
STRING_LITERAL(TMP331, "iterators can only be defined at the module\'s top level", 55);
STRING_LITERAL(TMP332, "$1 needs a return type", 22);
STRING_LITERAL(TMP333, "no return type declared", 23);
STRING_LITERAL(TMP334, "invalid command: \'$1\'", 21);
STRING_LITERAL(TMP335, "\'$1\' is only allowed at top level", 33);
STRING_LITERAL(TMP336, "\'$1\' needs a parameter that has an object type", 46);
STRING_LITERAL(TMP337, "template/macro instantiation too nested", 39);
STRING_LITERAL(TMP338, "instantiation from here", 23);
STRING_LITERAL(TMP339, "invalid index value for tuple subscript", 39);
STRING_LITERAL(TMP340, "command expects a filename argument", 35);
STRING_LITERAL(TMP341, "please, specify a main module in the project configuration file", 63);
STRING_LITERAL(TMP342, "\'$1\' is not a concrete type.", 28);
STRING_LITERAL(TMP343, "invalid section start", 21);
STRING_LITERAL(TMP344, "grid table is not implemented", 29);
STRING_LITERAL(TMP345, "general parse error", 19);
STRING_LITERAL(TMP346, "new section expected", 20);
STRING_LITERAL(TMP347, "whitespace expected, got \'$1\'", 29);
STRING_LITERAL(TMP348, "\'$1\' is no valid index file", 27);
STRING_LITERAL(TMP349, "cannot render reStructuredText element \'$1\'", 43);
STRING_LITERAL(TMP350, "type \'var var\' is not allowed", 29);
STRING_LITERAL(TMP351, "instantiate \'$1\' explicitely", 28);
STRING_LITERAL(TMP352, "only a call operator can be a delegator", 39);
STRING_LITERAL(TMP353, "\'$1\' is not a variable, constant or a proc name", 47);
STRING_LITERAL(TMP354, "the macro body cannot be compiled, because the parameter \'$1\' h"
"as a generic type", 80);
STRING_LITERAL(TMP355, "Destructor signarue is too specific. A destructor must be assoc"
"iated will all instantiations of a generic type", 110);
STRING_LITERAL(TMP356, "inline iterators can be used as parameters only for templates, "
"macros and other inline iterators", 96);
STRING_LITERAL(TMP357, "\'$1\' expects two arguments", 26);
STRING_LITERAL(TMP358, "\'$1\' expects object types", 25);
STRING_LITERAL(TMP359, "\'$1\' can never be of this subtype", 33);
STRING_LITERAL(TMP360, "interpretation requires too many iterations", 43);
STRING_LITERAL(TMP361, "cannot evaluate \'$1\'", 20);
STRING_LITERAL(TMP362, "field \'$1\' cannot be found", 26);
STRING_LITERAL(TMP363, "invalid conversion from type \'$1\'", 33);
STRING_LITERAL(TMP364, "assertion failed", 16);
STRING_LITERAL(TMP365, "cannot generate code for \'$1\'", 29);
STRING_LITERAL(TMP366, "$1 requires one parameter", 25);
STRING_LITERAL(TMP367, "unhandled exception: $1", 23);
STRING_LITERAL(TMP368, "macro returned a cyclic abstract syntax tree", 44);
STRING_LITERAL(TMP369, "\'$1\' is no macro or template", 28);
STRING_LITERAL(TMP370, "\'$1\' can have side effects", 26);
STRING_LITERAL(TMP371, "iterator within for loop context expected", 41);
STRING_LITERAL(TMP372, "\'let\' symbol requires an initialization", 39);
STRING_LITERAL(TMP373, "a thread var cannot be initialized explicitly", 45);
STRING_LITERAL(TMP374, "usage of \'$1\' is a user-defined error", 37);
STRING_LITERAL(TMP375, "illegal capture \'$1\'", 20);
STRING_LITERAL(TMP376, "\'$1\' cannot have \'closure\' calling convention", 45);
STRING_LITERAL(TMP377, "\'$1\' can only be used in compile-time context", 45);
STRING_LITERAL(TMP378, "cannot infer the type of the $1", 31);
STRING_LITERAL(TMP379, "cannot infer the return type of the proc", 40);
STRING_LITERAL(TMP380, "A nested proc can have generic parameters only when it is used "
"as an operand to another routine and the types of the generic pa"
"ramers can be infered from the expected signature.", 177);
STRING_LITERAL(TMP381, "The current compiler \'$1\' doesn\'t support the requested compila"
"tion target", 74);
STRING_LITERAL(TMP382, "cannot open \'$1\' [CannotOpenFile]", 33);
STRING_LITERAL(TMP383, "octal escape sequences do not exist; leading zero is ignored [O"
"ctalEscape]", 74);
STRING_LITERAL(TMP384, "\'$1\' is never read [XIsNeverRead]", 33);
STRING_LITERAL(TMP385, "\'$1\' might not have been initialized [XmightNotBeenInit]", 56);
STRING_LITERAL(TMP386, "\'$1\' is deprecated [Deprecated]", 31);
STRING_LITERAL(TMP387, "config file \'$1\' is deprecated [ConfigDeprecated]", 49);
STRING_LITERAL(TMP388, "\'l\' should not be used as an identifier; may look like \'1\' (one"
") [SmallLshouldNotBeUsed]", 88);
STRING_LITERAL(TMP389, "unknown magic \'$1\' might crash the compiler [UnknownMagic]", 58);
STRING_LITERAL(TMP390, "redefinition of label \'$1\' [RedefinitionOfLabel]", 48);
STRING_LITERAL(TMP391, "unknown substitution \'$1\' [UnknownSubstitutionX]", 48);
STRING_LITERAL(TMP392, "language \'$1\' not supported [LanguageXNotSupported]", 51);
STRING_LITERAL(TMP393, "comment \'$1\' ignored [CommentXIgnored]", 38);
STRING_LITERAL(TMP394, "\'nil\' statement is deprecated; use an empty \'discard\' statement"
" instead [NilStmt]", 81);
STRING_LITERAL(TMP395, "thread analysis incomplete due to unknown call \'$1\' [AnalysisLo"
"ophole]", 70);
STRING_LITERAL(TMP396, "possible inconsistency of thread local heaps [DifferentHeaps]", 61);
STRING_LITERAL(TMP397, "write to foreign heap [WriteToForeignHeap]", 42);
STRING_LITERAL(TMP398, "unsafe code: \'$1\' [UnsafeCode]", 30);
STRING_LITERAL(TMP399, "each identifier is a tuple [EachIdentIsTuple]", 45);
STRING_LITERAL(TMP400, "shadowed identifier: \'$1\' [ShadowIdent]", 39);
STRING_LITERAL(TMP401, "Cannot prove that \'$1\' is initialized. This will become a compi"
"le time error in the future. [ProveInit]", 103);
STRING_LITERAL(TMP402, "cannot prove that field \'$1\' is accessible [ProveField]", 55);
STRING_LITERAL(TMP403, "cannot prove index \'$1\' is valid [ProveIndex]", 45);
STRING_LITERAL(TMP404, "not GC-safe: \'$1\' [GcUnsafe]", 28);
STRING_LITERAL(TMP405, "cannot prove \'$1\' is GC-safe. This will become a compile time e"
"rror in the future.", 82);
STRING_LITERAL(TMP406, "\'$1\' might not have been initialized [Uninit]", 45);
STRING_LITERAL(TMP407, "\'$1\' uses GC\'ed memory [GcMem]", 30);
STRING_LITERAL(TMP408, "$1 [User]", 9);
STRING_LITERAL(TMP409, "operation successful [Success]", 30);
STRING_LITERAL(TMP410, "operation successful ($# lines compiled; $# sec total; $#) [Suc"
"cessX]", 69);
STRING_LITERAL(TMP411, "line too long [LineTooLong]", 27);
STRING_LITERAL(TMP412, "\'$1\' is declared but not used [XDeclaredButNotUsed]", 51);
STRING_LITERAL(TMP413, "conversion to base object is not needed [ConvToBaseNotNeeded]", 61);
STRING_LITERAL(TMP414, "conversion from $1 to itself is pointless [ConvFromXtoItselfNot"
"Needed]", 70);
STRING_LITERAL(TMP415, "expression evaluates always to \'$1\' [ExprAlwaysX]", 49);
STRING_LITERAL(TMP416, "quit() called [QuitCalled]", 26);
STRING_LITERAL(TMP417, "$1 [Processing]", 15);
STRING_LITERAL(TMP418, "generated code listing: [CodeBegin]", 35);
STRING_LITERAL(TMP419, "end of listing [CodeEnd]", 24);
STRING_LITERAL(TMP420, "used config file \'$1\' [Conf]", 28);
STRING_LITERAL(TMP421, "added path: \'$1\' [Path]", 23);
STRING_LITERAL(TMP422, "condition is always true: \'$1\' [CondTrue]", 41);
STRING_LITERAL(TMP423, "$1 [Pattern]", 12);
NIM_CONST TY163479 msgkindtostr_163478 = {((NimStringDesc*) &TMP154),
((NimStringDesc*) &TMP155),
((NimStringDesc*) &TMP156),
((NimStringDesc*) &TMP157),
((NimStringDesc*) &TMP158),
((NimStringDesc*) &TMP159),
((NimStringDesc*) &TMP160),
((NimStringDesc*) &TMP161),
((NimStringDesc*) &TMP162),
((NimStringDesc*) &TMP163),
((NimStringDesc*) &TMP164),
((NimStringDesc*) &TMP165),
((NimStringDesc*) &TMP166),
((NimStringDesc*) &TMP167),
((NimStringDesc*) &TMP168),
((NimStringDesc*) &TMP169),
((NimStringDesc*) &TMP170),
((NimStringDesc*) &TMP171),
((NimStringDesc*) &TMP172),
((NimStringDesc*) &TMP173),
((NimStringDesc*) &TMP174),
((NimStringDesc*) &TMP175),
((NimStringDesc*) &TMP176),
((NimStringDesc*) &TMP177),
((NimStringDesc*) &TMP178),
((NimStringDesc*) &TMP179),
((NimStringDesc*) &TMP180),
((NimStringDesc*) &TMP181),
((NimStringDesc*) &TMP182),
((NimStringDesc*) &TMP183),
((NimStringDesc*) &TMP184),
((NimStringDesc*) &TMP185),
((NimStringDesc*) &TMP186),
((NimStringDesc*) &TMP187),
((NimStringDesc*) &TMP188),
((NimStringDesc*) &TMP189),
((NimStringDesc*) &TMP190),
((NimStringDesc*) &TMP191),
((NimStringDesc*) &TMP192),
((NimStringDesc*) &TMP193),
((NimStringDesc*) &TMP194),
((NimStringDesc*) &TMP195),
((NimStringDesc*) &TMP196),
((NimStringDesc*) &TMP197),
((NimStringDesc*) &TMP198),
((NimStringDesc*) &TMP199),
((NimStringDesc*) &TMP200),
((NimStringDesc*) &TMP201),
((NimStringDesc*) &TMP202),
((NimStringDesc*) &TMP203),
((NimStringDesc*) &TMP204),
((NimStringDesc*) &TMP205),
((NimStringDesc*) &TMP206),
((NimStringDesc*) &TMP207),
((NimStringDesc*) &TMP208),
((NimStringDesc*) &TMP209),
((NimStringDesc*) &TMP210),
((NimStringDesc*) &TMP211),
((NimStringDesc*) &TMP212),
((NimStringDesc*) &TMP213),
((NimStringDesc*) &TMP214),
((NimStringDesc*) &TMP215),
((NimStringDesc*) &TMP216),
((NimStringDesc*) &TMP217),
((NimStringDesc*) &TMP218),
((NimStringDesc*) &TMP219),
((NimStringDesc*) &TMP220),
((NimStringDesc*) &TMP221),
((NimStringDesc*) &TMP222),
((NimStringDesc*) &TMP223),
((NimStringDesc*) &TMP224),
((NimStringDesc*) &TMP225),
((NimStringDesc*) &TMP226),
((NimStringDesc*) &TMP227),
((NimStringDesc*) &TMP228),
((NimStringDesc*) &TMP229),
((NimStringDesc*) &TMP230),
((NimStringDesc*) &TMP231),
((NimStringDesc*) &TMP232),
((NimStringDesc*) &TMP233),
((NimStringDesc*) &TMP234),
((NimStringDesc*) &TMP235),
((NimStringDesc*) &TMP236),
((NimStringDesc*) &TMP237),
((NimStringDesc*) &TMP238),
((NimStringDesc*) &TMP239),
((NimStringDesc*) &TMP240),
((NimStringDesc*) &TMP241),
((NimStringDesc*) &TMP242),
((NimStringDesc*) &TMP243),
((NimStringDesc*) &TMP244),
((NimStringDesc*) &TMP245),
((NimStringDesc*) &TMP246),
((NimStringDesc*) &TMP247),
((NimStringDesc*) &TMP248),
((NimStringDesc*) &TMP249),
((NimStringDesc*) &TMP250),
((NimStringDesc*) &TMP251),
((NimStringDesc*) &TMP252),
((NimStringDesc*) &TMP253),
((NimStringDesc*) &TMP254),
((NimStringDesc*) &TMP255),
((NimStringDesc*) &TMP256),
((NimStringDesc*) &TMP257),
((NimStringDesc*) &TMP258),
((NimStringDesc*) &TMP259),
((NimStringDesc*) &TMP260),
((NimStringDesc*) &TMP261),
((NimStringDesc*) &TMP262),
((NimStringDesc*) &TMP263),
((NimStringDesc*) &TMP264),
((NimStringDesc*) &TMP265),
((NimStringDesc*) &TMP266),
((NimStringDesc*) &TMP267),
((NimStringDesc*) &TMP268),
((NimStringDesc*) &TMP269),
((NimStringDesc*) &TMP270),
((NimStringDesc*) &TMP271),
((NimStringDesc*) &TMP272),
((NimStringDesc*) &TMP273),
((NimStringDesc*) &TMP274),
((NimStringDesc*) &TMP275),
((NimStringDesc*) &TMP276),
((NimStringDesc*) &TMP277),
((NimStringDesc*) &TMP278),
((NimStringDesc*) &TMP279),
((NimStringDesc*) &TMP280),
((NimStringDesc*) &TMP281),
((NimStringDesc*) &TMP282),
((NimStringDesc*) &TMP283),
((NimStringDesc*) &TMP284),
((NimStringDesc*) &TMP285),
((NimStringDesc*) &TMP286),
((NimStringDesc*) &TMP287),
((NimStringDesc*) &TMP288),
((NimStringDesc*) &TMP289),
((NimStringDesc*) &TMP290),
((NimStringDesc*) &TMP291),
((NimStringDesc*) &TMP292),
((NimStringDesc*) &TMP293),
((NimStringDesc*) &TMP294),
((NimStringDesc*) &TMP295),
((NimStringDesc*) &TMP296),
((NimStringDesc*) &TMP297),
((NimStringDesc*) &TMP298),
((NimStringDesc*) &TMP299),
((NimStringDesc*) &TMP300),
((NimStringDesc*) &TMP301),
((NimStringDesc*) &TMP302),
((NimStringDesc*) &TMP303),
((NimStringDesc*) &TMP304),
((NimStringDesc*) &TMP305),
((NimStringDesc*) &TMP306),
((NimStringDesc*) &TMP307),
((NimStringDesc*) &TMP308),
((NimStringDesc*) &TMP309),
((NimStringDesc*) &TMP310),
((NimStringDesc*) &TMP311),
((NimStringDesc*) &TMP312),
((NimStringDesc*) &TMP313),
((NimStringDesc*) &TMP314),
((NimStringDesc*) &TMP315),
((NimStringDesc*) &TMP316),
((NimStringDesc*) &TMP317),
((NimStringDesc*) &TMP318),
((NimStringDesc*) &TMP319),
((NimStringDesc*) &TMP320),
((NimStringDesc*) &TMP321),
((NimStringDesc*) &TMP322),
((NimStringDesc*) &TMP323),
((NimStringDesc*) &TMP324),
((NimStringDesc*) &TMP325),
((NimStringDesc*) &TMP326),
((NimStringDesc*) &TMP327),
((NimStringDesc*) &TMP328),
((NimStringDesc*) &TMP329),
((NimStringDesc*) &TMP330),
((NimStringDesc*) &TMP331),
((NimStringDesc*) &TMP332),
((NimStringDesc*) &TMP333),
((NimStringDesc*) &TMP334),
((NimStringDesc*) &TMP335),
((NimStringDesc*) &TMP336),
((NimStringDesc*) &TMP337),
((NimStringDesc*) &TMP338),
((NimStringDesc*) &TMP339),
((NimStringDesc*) &TMP340),
((NimStringDesc*) &TMP341),
((NimStringDesc*) &TMP177),
((NimStringDesc*) &TMP342),
((NimStringDesc*) &TMP343),
((NimStringDesc*) &TMP344),
((NimStringDesc*) &TMP345),
((NimStringDesc*) &TMP346),
((NimStringDesc*) &TMP347),
((NimStringDesc*) &TMP348),
((NimStringDesc*) &TMP349),
((NimStringDesc*) &TMP350),
((NimStringDesc*) &TMP351),
((NimStringDesc*) &TMP352),
((NimStringDesc*) &TMP353),
((NimStringDesc*) &TMP354),
((NimStringDesc*) &TMP355),
((NimStringDesc*) &TMP356),
((NimStringDesc*) &TMP357),
((NimStringDesc*) &TMP358),
((NimStringDesc*) &TMP359),
((NimStringDesc*) &TMP360),
((NimStringDesc*) &TMP361),
((NimStringDesc*) &TMP362),
((NimStringDesc*) &TMP363),
((NimStringDesc*) &TMP364),
((NimStringDesc*) &TMP365),
((NimStringDesc*) &TMP366),
((NimStringDesc*) &TMP367),
((NimStringDesc*) &TMP368),
((NimStringDesc*) &TMP369),
((NimStringDesc*) &TMP370),
((NimStringDesc*) &TMP371),
((NimStringDesc*) &TMP372),
((NimStringDesc*) &TMP373),
((NimStringDesc*) &TMP374),
((NimStringDesc*) &TMP375),
((NimStringDesc*) &TMP376),
((NimStringDesc*) &TMP377),
((NimStringDesc*) &TMP378),
((NimStringDesc*) &TMP379),
((NimStringDesc*) &TMP380),
((NimStringDesc*) &TMP381),
((NimStringDesc*) &TMP158),
((NimStringDesc*) &TMP382),
((NimStringDesc*) &TMP383),
((NimStringDesc*) &TMP384),
((NimStringDesc*) &TMP385),
((NimStringDesc*) &TMP386),
((NimStringDesc*) &TMP387),
((NimStringDesc*) &TMP388),
((NimStringDesc*) &TMP389),
((NimStringDesc*) &TMP390),
((NimStringDesc*) &TMP391),
((NimStringDesc*) &TMP392),
((NimStringDesc*) &TMP393),
((NimStringDesc*) &TMP394),
((NimStringDesc*) &TMP395),
((NimStringDesc*) &TMP396),
((NimStringDesc*) &TMP397),
((NimStringDesc*) &TMP398),
((NimStringDesc*) &TMP399),
((NimStringDesc*) &TMP400),
((NimStringDesc*) &TMP401),
((NimStringDesc*) &TMP402),
((NimStringDesc*) &TMP403),
((NimStringDesc*) &TMP404),
((NimStringDesc*) &TMP405),
((NimStringDesc*) &TMP406),
((NimStringDesc*) &TMP407),
((NimStringDesc*) &TMP408),
((NimStringDesc*) &TMP409),
((NimStringDesc*) &TMP410),
((NimStringDesc*) &TMP411),
((NimStringDesc*) &TMP412),
((NimStringDesc*) &TMP413),
((NimStringDesc*) &TMP414),
((NimStringDesc*) &TMP415),
((NimStringDesc*) &TMP416),
((NimStringDesc*) &TMP417),
((NimStringDesc*) &TMP418),
((NimStringDesc*) &TMP419),
((NimStringDesc*) &TMP420),
((NimStringDesc*) &TMP421),
((NimStringDesc*) &TMP422),
((NimStringDesc*) &TMP423),
((NimStringDesc*) &TMP408)}
;
STRING_LITERAL(TMP424, "Error: $1", 9);
STRING_LITERAL(TMP425, "Warning: $1", 11);
STRING_LITERAL(TMP426, "Hint: $1", 8);
STRING_LITERAL(TMP428, "ropes: invalid format string: ", 30);
STRING_LITERAL(TMP429, "ropes: token too long: ", 23);
STRING_LITERAL(TMP1127, "$1($2, $3) Error: $4", 20);
STRING_LITERAL(TMP1128, "$1($2, $3) Warning: $4", 22);
STRING_LITERAL(TMP1129, "$1($2, $3) Hint: $4", 19);
STRING_LITERAL(TMP1130, "  ", 2);
STRING_LITERAL(TMP1149, "compiler/msgs.nim", 17);
NIM_CONST TY79484 TMP1148 = {((NimStringDesc*) &TMP1149),
863}
;
STRING_LITERAL(TMP1862, "\015\012", 2);
STRING_LITERAL(TMP2559, "suggest done", 12);
NIM_CONST TY79484 TMP3390 = {((NimStringDesc*) &TMP1149),
870}
;
ttable163560 filenametoindextbl_163618;
extern TNimType NTI163560; /* TTable */
TY163619* fileinfos_163640;
TNimType NTI163525; /* TFileInfo */
extern TNimType NTI143; /* string */
extern TNimType NTI145005; /* PRope */
TNimType NTI163540; /* seq[PRope] */
TNimType NTI163619; /* seq[TFileInfo] */
extern tgcheap43016 gch_43044;
NI32 systemfileidx_163641;
extern NimStringDesc* tnl_142593;
extern NU32 gglobaloptions_137111;
tlineinfo163527 gcmdlineinfo_164104;
tlineinfo163527 gcodegenlineinfo_164126;
NU64 gnotes_164181;
NI gerrorcounter_164182;
NI ghintcounter_164183;
NI gwarncounter_164184;
NI gerrormax_164185;
tsocketimpl150605* stdoutsocket_164192;
TY164208* msgcontext_164229;
TNimType NTI163527; /* TLineInfo */
extern TNimType NTI110; /* int16 */
extern TNimType NTI112; /* int32 */
TNimType NTI164208; /* seq[TLineInfo] */
tlineinfo163527 lasterror_164230;
TY110805* bufferedmsgs_164232;
NU8 erroroutputs_164234;
TY164208* checkpoints_164868;
tlineinfo163527 opttrackpos_164871;
extern TY145103 errorhandler_145108;
extern NU8 gcmd_137113;
extern NIM_BOOL glistfullpaths_137125;
extern NU32 goptions_137108;
extern NI gverbosity_137120;
extern NI8 gexitcode_137112;
extern TNimType NTI2453; /* EInvalidValue */
TNimType NTI163533; /* ERecoverableError */
TNimType NTI164135; /* ref ERecoverableError */
extern TSafePoint* exchandler_13039;
extern TNimType NTI2433; /* EIO */
extern E_Base* currexception_13041;
TNimType NTI163203; /* TMsgKind */
TNimType NTI163521; /* TNoteKind */
TNimType NTI163523; /* TNoteKinds */
extern TNimType NTI110805; /* seq[string] */
extern NIM_BOOL isserving_137126;
extern NI32 gdirtybufferidx_137127;
extern TNimType NTI2425; /* E_Base */
TNimType NTI163535; /* ESuggestDone */
TNimType NTI164631; /* ref ESuggestDone */
N_NIMCALL(void, TMP139)(void* p, NI op) {
	TY163540* a;
	NI LOC1;
	a = (TY163540*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1], op);
	}
}
N_NIMCALL(void, TMP140)(void* p, NI op) {
	TY163619* a;
	NI LOC1;
	a = (TY163619*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1].Fullpath, op);
	nimGCvisit((void*)a->data[LOC1].Projpath, op);
	nimGCvisit((void*)a->data[LOC1].Shortname, op);
	nimGCvisit((void*)a->data[LOC1].Quotedname, op);
	nimGCvisit((void*)a->data[LOC1].Lines, op);
	}
}

static N_INLINE(tcell41090*, usrtocell_44443)(void* usr) {
	tcell41090* result;
	result = 0;
	result = ((tcell41090*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(tcell41090))))));
	return result;
}

static N_INLINE(void, rtladdzct_46002)(tcell41090* c) {
	addzct_44418(&gch_43044.Zct, c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	tcell41090* c;
	c = usrtocell_44443(p);
	{
		(*c).Refcount -= 8;
		if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA3;
		rtladdzct_46002(c);
	}
	LA3: ;
}

static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	memcpy(((NCSTRING) (&(*dest).data[((*dest).Sup.len)- 0])), ((NCSTRING) ((*src).data)), (NI32)((*src).Sup.len + 1));
	(*dest).Sup.len += (*src).Sup.len;
}

static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c) {
	(*dest).data[((*dest).Sup.len)- 0] = c;
	(*dest).data[((NI32)((*dest).Sup.len + 1))- 0] = 0;
	(*dest).Sup.len += 1;
}

N_NIMCALL(NimStringDesc*, tocchar_163645)(NIM_CHAR c) {
	NimStringDesc* result;
	result = 0;
	switch (((NU8)(c))) {
	case 0 ... 31:
	case 128 ... 255:
	{
		NimStringDesc* LOC2;
		NimStringDesc* LOC3;
		LOC2 = 0;
		LOC3 = 0;
		LOC3 = nsuToOctal(c);
		LOC2 = rawNewString(LOC3->Sup.len + 1);
appendChar(LOC2, 92);
appendString(LOC2, LOC3);
		result = LOC2;
	}
	break;
	case 39:
	case 34:
	case 92:
	{
		NimStringDesc* LOC5;
		LOC5 = 0;
		LOC5 = rawNewString(2);
appendChar(LOC5, 92);
appendChar(LOC5, c);
		result = LOC5;
	}
	break;
	default:
	{
		result = nimCharToStr(c);
	}
	break;
	}
	return result;
}

N_NIMCALL(trope145007*, makecstring_163651)(NimStringDesc* s) {
	trope145007* result;
	NimStringDesc* res;
	NI i_163669;
	NI HEX3Atmp_163673;
	NI res_163675;
	trope145007* LOC8;
	result = 0;
	result = NIM_NIL;
	res = copyString(((NimStringDesc*) &TMP143));
	i_163669 = 0;
	HEX3Atmp_163673 = 0;
	HEX3Atmp_163673 = (NI32)(s->Sup.len - 1);
	res_163675 = 0;
	while (1) {
		NimStringDesc* LOC7;
		if (!(res_163675 <= HEX3Atmp_163673)) goto LA1;
		i_163669 = res_163675;
		{
			trope145007* LOC6;
			if (!(((NI) ((NI32)((NI32)(i_163669 + 1) % 64))) == 0)) goto LA4;
			res = addChar(res, 34);
			res = resizeString(res, tnl_142593->Sup.len + 0);
appendString(res, tnl_142593);
			LOC6 = 0;
			LOC6 = torope_145058(res);
			app_145040(&result, LOC6);
			res = setLengthStr(res, 1);
			res->data[0] = 34;
		}
		LA4: ;
		LOC7 = 0;
		LOC7 = tocchar_163645(s->data[i_163669]);
		res = resizeString(res, LOC7->Sup.len + 0);
appendString(res, LOC7);
		res_163675 += 1;
	} LA1: ;
	res = addChar(res, 34);
	LOC8 = 0;
	LOC8 = torope_145058(res);
	app_145040(&result, LOC8);
	return result;
}

N_NIMCALL(void, newfileinfo_163680)(NimStringDesc* fullpath, NimStringDesc* projpath, tfileinfo163525* Result) {
	NimStringDesc* filename;
	unsureAsgnRef((void**) &(*Result).Fullpath, copyString(fullpath));
	unsureAsgnRef((void**) &(*Result).Projpath, copyString(projpath));
	filename = nosextractFilename(projpath);
	unsureAsgnRef((void**) &(*Result).Shortname, noschangeFileExt(filename, ((NimStringDesc*) &TMP142)));
	unsureAsgnRef((void**) &(*Result).Quotedname, makecstring_163651(filename));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((gglobaloptions_137111 &(1<<((((NU8) 31))&31)))!=0);
		if (LOC3) goto LA4;
		LOC3 = NIM_TRUE;
		LA4: ;
		if (!LOC3) goto LA5;
		unsureAsgnRef((void**) &(*Result).Lines, (TY163540*) newSeq((&NTI163540), 0));
	}
	LA5: ;
}

N_NIMCALL(tlineinfo163527, newlineinfo_164069)(NI32 fileinfoidx, NI line, NI col) {
	tlineinfo163527 result;
	memset((void*)&result, 0, sizeof(result));
	result.Fileindex = fileinfoidx;
	result.Line = ((NI16) (line));
	result.Col = ((NI16) (col));
	return result;
}
N_NIMCALL(void, TMP147)(void* p, NI op) {
	TY164208* a;
	NI LOC1;
	a = (TY164208*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}

N_NIMCALL(tlineinfo163527, unknownlineinfo_164203)(void) {
	tlineinfo163527 result;
	memset((void*)&result, 0, sizeof(result));
	result.Line = ((NI16) -1);
	result.Col = ((NI16) -1);
	result.Fileindex = ((NI32) -1);
	return result;
}

N_NIMCALL(NIM_BOOL, HEX3DHEX3D_165246)(tlineinfo163527 a, tlineinfo163527 b) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = (a.Line == b.Line);
	if (!(LOC1)) goto LA2;
	LOC1 = (a.Fileindex == b.Fileindex);
	LA2: ;
	result = LOC1;
	return result;
}

static N_INLINE(void, writeln_138205)(FILE* f_138209, NimStringDesc** x_138213, NI x_138213Len0) {
	NimStringDesc* i_138226;
	NI i_138232;
	i_138226 = 0;
	i_138232 = 0;
	while (1) {
		if (!(i_138232 < x_138213Len0)) goto LA1;
		i_138226 = x_138213[i_138232];
		write_10463(f_138209, i_138226);
		i_138232 += 1;
	} LA1: ;
	write_10463(f_138209, ((NimStringDesc*) &TMP150));
}

N_NIMCALL(void, msgwriteln_164937)(NimStringDesc* s) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (gcmd_137113 == ((NU8) 14));
		if (!(LOC3)) goto LA4;
		LOC3 = !(((gglobaloptions_137111 &(1<<((((NU8) 7))&31)))!=0));
		LA4: ;
		if (!LOC3) goto LA5;
		goto BeforeRet;
	}
	LA5: ;
	{
		if (!((gglobaloptions_137111 &(1<<((((NU8) 22))&31)))!=0)) goto LA9;
		{
			TY165002 LOC15;
			if (!((erroroutputs_164234 &(1<<((((NU8) 1))&7)))!=0)) goto LA13;
			memset((void*)LOC15, 0, sizeof(LOC15));
			LOC15[0] = copyString(s);
			writeln_138205(stderr, LOC15, 1);
		}
		LA13: ;
	}
	goto LA7;
	LA9: ;
	{
		{
			TY165002 LOC21;
			if (!((erroroutputs_164234 &(1<<((((NU8) 0))&7)))!=0)) goto LA19;
			memset((void*)LOC21, 0, sizeof(LOC21));
			LOC21[0] = copyString(s);
			writeln_138205(stdout, LOC21, 1);
		}
		LA19: ;
	}
	LA7: ;
	{
		if (!((erroroutputs_164234 &(1<<((((NU8) 2))&7)))!=0)) goto LA24;
		safeadd_164460(&bufferedmsgs_164232, s);
	}
	LA24: ;
	BeforeRet: ;
}

N_NIMCALL(NimStringDesc*, tomsgfilename_164804)(tlineinfo163527 info) {
	NimStringDesc* result;
	result = 0;
	{
		if (!(info.Fileindex < ((NI32) 0))) goto LA3;
		result = copyString(((NimStringDesc*) &TMP153));
	}
	goto LA1;
	LA3: ;
	{
		{
			if (!glistfullpaths_137125) goto LA8;
			result = copyString(fileinfos_163640->data[info.Fileindex].Fullpath);
		}
		goto LA6;
		LA8: ;
		{
			result = copyString(fileinfos_163640->data[info.Fileindex].Projpath);
		}
		LA6: ;
	}
	LA1: ;
	return result;
}

N_NIMCALL(NimStringDesc*, coordtostr_165065)(NI coord) {
	NimStringDesc* result;
	result = 0;
	{
		if (!(coord == -1)) goto LA3;
		result = copyString(((NimStringDesc*) &TMP153));
	}
	goto LA1;
	LA3: ;
	{
		result = nimIntToStr(coord);
	}
	LA1: ;
	return result;
}

N_NIMCALL(NimStringDesc*, msgkindtostring_165071)(NU16 kind) {
	NimStringDesc* result;
	result = 0;
	result = copyString(msgkindtostr_163478[(kind)- 0]);
	return result;
}

N_NIMCALL(NimStringDesc*, getmessagestr_165077)(NU16 msg, NimStringDesc* arg) {
	NimStringDesc* result;
	NimStringDesc* LOC1;
	TY165002 LOC2;
	result = 0;
	LOC1 = 0;
	LOC1 = msgkindtostring_165071(msg);
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC2[0] = copyString(arg);
	result = nsuFormatOpenArray(LOC1, LOC2, 1);
	return result;
}

N_NIMCALL(void, writecontext_165253)(tlineinfo163527 lastinfo) {
	tlineinfo163527 info;
	NI i_165280;
	NI HEX3Atmp_165285;
	NI res_165287;
	info = lastinfo;
	i_165280 = 0;
	HEX3Atmp_165285 = 0;
	HEX3Atmp_165285 = (NI32)(msgcontext_164229->Sup.len - 1);
	res_165287 = 0;
	while (1) {
		if (!(res_165287 <= HEX3Atmp_165285)) goto LA1;
		i_165280 = res_165287;
		{
			NIM_BOOL LOC4;
			NIM_BOOL LOC5;
			NIM_BOOL LOC7;
			TY165283 LOC10;
			NimStringDesc* LOC11;
			LOC4 = 0;
			LOC5 = 0;
			LOC5 = HEX3DHEX3D_165246(msgcontext_164229->data[i_165280], lastinfo);
			LOC4 = !(LOC5);
			if (!(LOC4)) goto LA6;
			LOC7 = 0;
			LOC7 = HEX3DHEX3D_165246(msgcontext_164229->data[i_165280], info);
			LOC4 = !(LOC7);
			LA6: ;
			if (!LOC4) goto LA8;
			memset((void*)LOC10, 0, sizeof(LOC10));
			LOC10[0] = tomsgfilename_164804(msgcontext_164229->data[i_165280]);
			LOC10[1] = coordtostr_165065(((NI) (msgcontext_164229->data[i_165280].Line)));
			LOC10[2] = coordtostr_165065(((NI) (msgcontext_164229->data[i_165280].Col)));
			LOC10[3] = getmessagestr_165077(((NU16) 184), ((NimStringDesc*) &TMP142));
			LOC11 = 0;
			LOC11 = nsuFormatOpenArray(((NimStringDesc*) &TMP152), LOC10, 4);
			msgwriteln_164937(LOC11);
		}
		LA8: ;
		info = msgcontext_164229->data[i_165280];
		res_165287 += 1;
	} LA1: ;
}
N_NIMCALL(void, TMP427)(void* p, NI op) {
	erecoverableerror163533* a;
	a = (erecoverableerror163533*)p;
	nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op);
}

N_NOINLINE(void, raiserecoverableerror_164129)(NimStringDesc* msg) {
	erecoverableerror163533* e_164134;
	NimStringDesc* LOC1;
	e_164134 = 0;
	e_164134 = (erecoverableerror163533*) newObj((&NTI164135), sizeof(erecoverableerror163533));
	(*e_164134).Sup.Sup.Sup.Sup.m_type = (&NTI163533);
	LOC1 = 0;
	LOC1 = (*e_164134).Sup.Sup.Sup.message; (*e_164134).Sup.Sup.Sup.message = copyStringRC1(msg);
	if (LOC1) nimGCunrefNoCycle(LOC1);
	raiseException((E_Base*)e_164134, "ERecoverableError");
}

N_NIMCALL(void, handleerror_165126)(NU16 msg, NU8 eh, NimStringDesc* s) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (((NU16) 0) <= msg);
		if (!(LOC3)) goto LA4;
		LOC3 = (msg <= ((NU16) 2));
		LA4: ;
		if (!LOC3) goto LA5;
		{
			NIM_BOOL LOC9;
			NIM_BOOL LOC10;
			LOC9 = 0;
			LOC10 = 0;
			LOC10 = NIM_FALSE;
			if (LOC10) goto LA11;
			LOC10 = (3 <= gverbosity_137120);
			LA11: ;
			LOC9 = LOC10;
			if (LOC9) goto LA12;
			LOC9 = (msg == ((NU16) 2));
			LA12: ;
			if (!LOC9) goto LA13;
			writestacktrace_12406();
		}
		LA13: ;
		exit(1);
	}
	LA5: ;
	{
		NIM_BOOL LOC17;
		LOC17 = 0;
		LOC17 = (((NU16) 0) <= msg);
		if (!(LOC17)) goto LA18;
		LOC17 = (msg <= ((NU16) 229));
		LA18: ;
		if (!LOC17) goto LA19;
		gerrorcounter_164182 += 1;
		gexitcode_137112 = ((NI8) 1);
		{
			if (!(gerrormax_164185 <= gerrorcounter_164182)) goto LA23;
			{
				NIM_BOOL LOC27;
				NIM_BOOL LOC28;
				LOC27 = 0;
				LOC28 = 0;
				LOC28 = NIM_FALSE;
				if (LOC28) goto LA29;
				LOC28 = (3 <= gverbosity_137120);
				LA29: ;
				LOC27 = LOC28;
				if (LOC27) goto LA30;
				LOC27 = (msg == ((NU16) 2));
				LA30: ;
				if (!LOC27) goto LA31;
				writestacktrace_12406();
			}
			LA31: ;
			exit(1);
		}
		goto LA21;
		LA23: ;
		{
			NIM_BOOL LOC34;
			LOC34 = 0;
			LOC34 = (eh == ((NU8) 1));
			if (!(LOC34)) goto LA35;
			LOC34 = !((gcmd_137113 == ((NU8) 14)));
			LA35: ;
			if (!LOC34) goto LA36;
			{
				NIM_BOOL LOC40;
				NIM_BOOL LOC41;
				LOC40 = 0;
				LOC41 = 0;
				LOC41 = NIM_FALSE;
				if (LOC41) goto LA42;
				LOC41 = (3 <= gverbosity_137120);
				LA42: ;
				LOC40 = LOC41;
				if (LOC40) goto LA43;
				LOC40 = (msg == ((NU16) 2));
				LA43: ;
				if (!LOC40) goto LA44;
				writestacktrace_12406();
			}
			LA44: ;
			exit(1);
		}
		goto LA21;
		LA36: ;
		{
			if (!(eh == ((NU8) 2))) goto LA47;
			raiserecoverableerror_164129(s);
		}
		goto LA21;
		LA47: ;
		LA21: ;
	}
	LA19: ;
}

N_NIMCALL(void, rawmessage_165292)(NU16 msg, NimStringDesc** args, NI argsLen0) {
	NimStringDesc* frmt;
	NimStringDesc* s;
	NimStringDesc* LOC22;
	NimStringDesc* LOC23;
	frmt = 0;
	switch (msg) {
	case ((NU16) 0) ... ((NU16) 229):
	{
		tlineinfo163527 LOC2;
		LOC2 = unknownlineinfo_164203();
		writecontext_165253(LOC2);
		frmt = copyString(((NimStringDesc*) &TMP424));
	}
	break;
	case ((NU16) 230) ... ((NU16) 256):
	{
		tlineinfo163527 LOC12;
		{
			if (!!(((goptions_137108 &(1<<((((NU8) 11))&31)))!=0))) goto LA6;
			goto BeforeRet;
		}
		LA6: ;
		{
			if (!!(((gnotes_164181 &(IL64(1)<<(((((NU16) (msg))- 230))&IL64(63))))!=0))) goto LA10;
			goto BeforeRet;
		}
		LA10: ;
		LOC12 = unknownlineinfo_164203();
		writecontext_165253(LOC12);
		frmt = copyString(((NimStringDesc*) &TMP425));
		gwarncounter_164184 += 1;
	}
	break;
	case ((NU16) 257) ... ((NU16) 272):
	{
		{
			if (!!(((goptions_137108 &(1<<((((NU8) 12))&31)))!=0))) goto LA16;
			goto BeforeRet;
		}
		LA16: ;
		{
			if (!!(((gnotes_164181 &(IL64(1)<<(((((NU16) (msg))- 230))&IL64(63))))!=0))) goto LA20;
			goto BeforeRet;
		}
		LA20: ;
		frmt = copyString(((NimStringDesc*) &TMP426));
		ghintcounter_164183 += 1;
	}
	break;
	}
	LOC22 = 0;
	LOC22 = msgkindtostring_165071(msg);
	LOC23 = 0;
	LOC23 = nsuFormatOpenArray(LOC22, args, argsLen0);
	s = nsuFormatSingleElem(frmt, LOC23);
	msgwriteln_164937(s);
	handleerror_165126(msg, ((NU8) 1), s);
	BeforeRet: ;
}

N_NIMCALL(void, rawmessage_165386)(NU16 msg, NimStringDesc* arg) {
	TY165002 LOC1;
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = copyString(arg);
	rawmessage_165292(msg, LOC1, 1);
}

N_NIMCALL(void, internalerror_165606)(NimStringDesc* errmsg) {
	tlineinfo163527 LOC5;
	{
		if (!(gcmd_137113 == ((NU8) 14))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	LOC5 = unknownlineinfo_164203();
	writecontext_165253(LOC5);
	rawmessage_165386(((NU16) 2), errmsg);
	BeforeRet: ;
}

N_NIMCALL(void, HEX3Aanonymous_165763)(NU8 err, NimStringDesc* msg, NIM_BOOL usewarning) {
	switch (err) {
	case ((NU8) 1):
	{
		NimStringDesc* LOC2;
		LOC2 = 0;
		LOC2 = rawNewString(msg->Sup.len + 30);
appendString(LOC2, ((NimStringDesc*) &TMP428));
appendString(LOC2, msg);
		internalerror_165606(LOC2);
	}
	break;
	case ((NU8) 2):
	{
		NimStringDesc* LOC4;
		LOC4 = 0;
		LOC4 = rawNewString(msg->Sup.len + 23);
appendString(LOC4, ((NimStringDesc*) &TMP429));
appendString(LOC4, msg);
		internalerror_165606(LOC4);
	}
	break;
	case ((NU8) 0):
	{
		NU16 LOC6;
		LOC6 = 0;
		{
			if (!usewarning) goto LA9;
			LOC6 = ((NU16) 230);
		}
		goto LA7;
		LA9: ;
		{
			LOC6 = ((NU16) 3);
		}
		LA7: ;
		rawmessage_165386(LOC6, msg);
	}
	break;
	}
}

static N_INLINE(NIM_BOOL, canbecycleroot_44462)(tcell41090* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).Typ).flags &(1<<((((NU8) 1))&7)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_45235)(tcell41090* c) {
	{
		if (!!((((NI) ((NI)((*c).Refcount & 3))) == 3))) goto LA3;
		(*c).Refcount = (NI)((NI)((*c).Refcount & -4) | 3);
		incl_41855(&gch_43044.Cycleroots, c);
	}
	LA3: ;
}

static N_INLINE(void, incref_46827)(tcell41090* c) {
	(*c).Refcount = (NI)((NU32)((*c).Refcount) + (NU32)(8));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_44462(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_45235(c);
	}
	LA4: ;
}

static N_INLINE(void, decref_46402)(tcell41090* c) {
	{
		(*c).Refcount -= 8;
		if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA3;
		rtladdzct_46002(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_44462(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_45235(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		tcell41090* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_44443(src);
		incref_46827(LOC5);
	}
	LA3: ;
	{
		tcell41090* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_44443((*dest));
		decref_46402(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

static N_INLINE(NIM_BOOL, contains_165518)(tslice165509 s_165524, NU16 value_165527) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = (s_165524.A <= value_165527);
	if (!(LOC1)) goto LA2;
	LOC1 = (value_165527 <= s_165524.B);
	LA2: ;
	result = LOC1;
	return result;
}

static N_INLINE(tslice165509, HEX2EHEX2E_165500)(NU16 a_165504, NU16 b_165506) {
	tslice165509 result;
	memset((void*)&result, 0, sizeof(result));
	result.A = a_165504;
	result.B = b_165506;
	return result;
}

static N_INLINE(void, pushSafePoint)(TSafePoint* s) {
	(*s).hasRaiseAction = NIM_FALSE;
	(*s).prev = exchandler_13039;
	exchandler_13039 = s;
}

N_NIMCALL(NimStringDesc*, tofullpath_164788)(NI32 fileidx) {
	NimStringDesc* result;
	result = 0;
	{
		if (!(fileidx < ((NI32) 0))) goto LA3;
		result = copyString(((NimStringDesc*) &TMP153));
	}
	goto LA1;
	LA3: ;
	{
		result = copyString(fileinfos_163640->data[fileidx].Fullpath);
	}
	LA1: ;
	return result;
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		tcell41090* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_44443(src);
		(*c).Refcount += 8;
	}
	LA3: ;
	{
		tcell41090* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_44443((*dest));
		{
			(*c).Refcount -= 8;
			if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA11;
			rtladdzct_46002(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(void, addsourceline_165634)(NI32 fileidx, NimStringDesc* line) {
	trope145007* LOC1;
	LOC1 = 0;
	LOC1 = torope_145058(line);
	fileinfos_163640->data[fileidx].Lines = (TY163540*) incrSeq(&(fileinfos_163640->data[fileidx].Lines)->Sup, sizeof(trope145007*));
	asgnRefNoCycle((void**) &fileinfos_163640->data[fileidx].Lines->data[fileinfos_163640->data[fileidx].Lines->Sup.len-1], LOC1);
}

static N_INLINE(void, popSafePoint)(void) {
	exchandler_13039 = (*exchandler_13039).prev;
}

static N_INLINE(E_Base*, getCurrentException)(void) {
	E_Base* result;
	result = 0;
	result = currexception_13041;
	return result;
}

static N_INLINE(void, popCurrentException)(void) {
	asgnRef((void**) &currexception_13041, (*currexception_13041).parent);
}

N_NIMCALL(trope145007*, sourceline_164155)(tlineinfo163527 i) {
	trope145007* result;
	result = 0;
	{
		if (!(i.Fileindex < ((NI32) 0))) goto LA3;
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		TSafePoint TMP1132;
		LOC7 = 0;
		LOC7 = !(((gglobaloptions_137111 &(1<<((((NU8) 31))&31)))!=0));
		if (!(LOC7)) goto LA8;
		LOC7 = (fileinfos_163640->data[i.Fileindex].Lines->Sup.len == 0);
		LA8: ;
		if (!LOC7) goto LA9;
		pushSafePoint(&TMP1132);
		TMP1132.status = setjmp(TMP1132.context);
		if (TMP1132.status == 0) {
			NimStringDesc* volatile line_165688;
			NimStringDesc* volatile HEX3Atmp_165741;
			FILE* volatile f_165743;
			NimStringDesc* volatile res_165745;
			line_165688 = 0;
			HEX3Atmp_165741 = 0;
			HEX3Atmp_165741 = tofullpath_164788(i.Fileindex);
			f_165743 = open_10217(HEX3Atmp_165741, ((NU8) 0), 8000);
			res_165745 = rawNewString(80);
			while (1) {
				NIM_BOOL LOC13;
				LOC13 = 0;
				LOC13 = readline_10487(f_165743, &res_165745);
				if (!LOC13) goto LA12;
				line_165688 = res_165745;
				addsourceline_165634(i.Fileindex, line_165688);
			} LA12: ;
			fclose(f_165743);
			popSafePoint();
		}
		else {
			popSafePoint();
			if (isObj(getCurrentException()->Sup.m_type, (&NTI2433))) {
				TMP1132.status = 0;
				popCurrentException();
			}
		}
		if (TMP1132.status != 0) reraiseException();
	}
	LA9: ;
	{
		NimStringDesc* LOC20;
		if (!!((((NI) (i.Fileindex)) < fileinfos_163640->Sup.len))) goto LA18;
		LOC20 = 0;
		LOC20 = HEX24_165714(TMP1148);
		internalerror_165606(LOC20);
	}
	LA18: ;
	{
		if (!(fileinfos_163640->data[i.Fileindex].Lines->Sup.len < ((NI) (i.Line)))) goto LA23;
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA23: ;
	result = fileinfos_163640->data[i.Fileindex].Lines->data[(NI16)(i.Line - ((NI16) 1))];
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, writesurroundingsrc_165396)(tlineinfo163527 info) {
	NimStringDesc* LOC1;
	trope145007* LOC2;
	NimStringDesc* LOC3;
	NimStringDesc* LOC4;
	NimStringDesc* LOC5;
	LOC1 = 0;
	LOC2 = 0;
	LOC2 = sourceline_164155(info);
	LOC3 = 0;
	LOC3 = ropetostr_145075(LOC2);
	LOC1 = rawNewString(LOC3->Sup.len + 2);
appendString(LOC1, ((NimStringDesc*) &TMP1130));
appendString(LOC1, LOC3);
	msgwriteln_164937(LOC1);
	LOC4 = 0;
	LOC5 = 0;
	LOC5 = nsuRepeatChar(((NI) (info.Col)), 32);
	LOC4 = rawNewString(LOC5->Sup.len + 3);
appendString(LOC4, ((NimStringDesc*) &TMP1130));
appendString(LOC4, LOC5);
appendChar(LOC4, 94);
	msgwriteln_164937(LOC4);
}

N_NIMCALL(void, limessage_165402)(tlineinfo163527 info, NU16 msg, NimStringDesc* arg, NU8 eh) {
	NimStringDesc* frmt;
	NIM_BOOL ignoremsg;
	NimStringDesc* s;
	TY165283 LOC12;
	frmt = 0;
	ignoremsg = NIM_FALSE;
	switch (msg) {
	case ((NU16) 0) ... ((NU16) 229):
	{
		writecontext_165253(info);
		frmt = copyString(((NimStringDesc*) &TMP1127));
		lasterror_164230 = info;
	}
	break;
	case ((NU16) 230) ... ((NU16) 256):
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = !(((goptions_137108 &(1<<((((NU8) 11))&31)))!=0));
		if (LOC3) goto LA4;
		LOC3 = !(((gnotes_164181 &(IL64(1)<<(((((NU16) (msg))- 230))&IL64(63))))!=0));
		LA4: ;
		ignoremsg = LOC3;
		{
			if (!!(ignoremsg)) goto LA7;
			writecontext_165253(info);
		}
		LA7: ;
		frmt = copyString(((NimStringDesc*) &TMP1128));
		gwarncounter_164184 += 1;
	}
	break;
	case ((NU16) 257) ... ((NU16) 272):
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = !(((goptions_137108 &(1<<((((NU8) 12))&31)))!=0));
		if (LOC10) goto LA11;
		LOC10 = !(((gnotes_164181 &(IL64(1)<<(((((NU16) (msg))- 230))&IL64(63))))!=0));
		LA11: ;
		ignoremsg = LOC10;
		frmt = copyString(((NimStringDesc*) &TMP1129));
		ghintcounter_164183 += 1;
	}
	break;
	}
	memset((void*)LOC12, 0, sizeof(LOC12));
	LOC12[0] = tomsgfilename_164804(info);
	LOC12[1] = coordtostr_165065(((NI) (info.Line)));
	LOC12[2] = coordtostr_165065(((NI) (info.Col)));
	LOC12[3] = getmessagestr_165077(msg, arg);
	s = nsuFormatOpenArray(frmt, LOC12, 4);
	{
		if (!!(ignoremsg)) goto LA15;
		msgwriteln_164937(s);
		{
			NIM_BOOL LOC19;
			tslice165509 LOC21;
			LOC19 = 0;
			LOC19 = (2 <= gverbosity_137120);
			if (!(LOC19)) goto LA20;
			LOC21 = HEX2EHEX2E_165500(((NU16) 0), ((NU16) 229));
			LOC19 = contains_165518(LOC21, msg);
			LA20: ;
			if (!LOC19) goto LA22;
			writesurroundingsrc_165396(info);
		}
		LA22: ;
	}
	LA15: ;
	handleerror_165126(msg, eh, s);
}

N_NIMCALL(void, localerror_165571)(tlineinfo163527 info, NU16 msg, NimStringDesc* arg) {
	limessage_165402(info, msg, arg, ((NU8) 0));
}

N_NIMCALL(void, message_165584)(tlineinfo163527 info, NU16 msg, NimStringDesc* arg) {
	limessage_165402(info, msg, arg, ((NU8) 0));
}

static N_INLINE(void, shallow_80220)(NimStringDesc** s_80223) {
	TGenericSeq* s;
	s = ((TGenericSeq*) ((*s_80223)));
	(*s).reserved = (NI)((*s).reserved | (-2147483647 -1));
}

N_NIMCALL(NI32, fileinfoidx_163721)(NimStringDesc* filename) {
	NI32 result;
	NimStringDesc* canon;
	NIM_BOOL pseudopath;
	TSafePoint TMP1368;
	result = 0;
	canon = 0;
	pseudopath = NIM_FALSE;
	pushSafePoint(&TMP1368);
	TMP1368.status = setjmp(TMP1368.context);
	if (TMP1368.status == 0) {
		canon = canonicalizepath_137335(filename);
		shallow_80220(&canon);
		popSafePoint();
	}
	else {
		popSafePoint();
		{
			TMP1368.status = 0;
			canon = copyString(filename);
			pseudopath = NIM_TRUE;
			popCurrentException();
		}
	}
	if (TMP1368.status != 0) reraiseException();
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = haskey_163730(filenametoindextbl_163618, canon);
		if (!LOC6) goto LA7;
		result = HEX5BHEX5D_163781(filenametoindextbl_163618, canon);
	}
	goto LA4;
	LA7: ;
	{
		NimStringDesc* LOC10;
		tfileinfo163525 LOC16;
		result = ((NI32) (fileinfos_163640->Sup.len));
		LOC10 = 0;
		{
			if (!pseudopath) goto LA13;
			LOC10 = copyString(filename);
		}
		goto LA11;
		LA13: ;
		{
			LOC10 = shortendir_137403(canon);
		}
		LA11: ;
		memset((void*)&LOC16, 0, sizeof(LOC16));
		newfileinfo_163680(canon, LOC10, &LOC16);
		fileinfos_163640 = (TY163619*) incrSeq(&(fileinfos_163640)->Sup, sizeof(tfileinfo163525));
		genericAssign((void*)&fileinfos_163640->data[fileinfos_163640->Sup.len-1], (void*)&LOC16, (&NTI163525));
		HEX5BHEX5DHEX3D_163841(&filenametoindextbl_163618, canon, result);
	}
	LA4: ;
	return result;
}

N_NIMCALL(void, addcheckpoint_164874)(tlineinfo163527 info) {
	checkpoints_164868 = (TY164208*) incrSeq(&(checkpoints_164868)->Sup, sizeof(tlineinfo163527));
	checkpoints_164868->data[checkpoints_164868->Sup.len-1] = info;
}

N_NIMCALL(void, internalerror_165591)(tlineinfo163527 info, NimStringDesc* errmsg) {
	{
		if (!(gcmd_137113 == ((NU8) 14))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	writecontext_165253(info);
	limessage_165402(info, ((NU16) 2), errmsg, ((NU8) 1));
	BeforeRet: ;
}

N_NIMCALL(NimStringDesc*, tofilename_164780)(NI32 fileidx) {
	NimStringDesc* result;
	result = 0;
	{
		if (!(fileidx < ((NI32) 0))) goto LA3;
		result = copyString(((NimStringDesc*) &TMP153));
	}
	goto LA1;
	LA3: ;
	{
		result = copyString(fileinfos_163640->data[fileidx].Projpath);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, fatal_165551)(tlineinfo163527 info, NU16 msg, NimStringDesc* arg) {
	limessage_165402(info, msg, arg, ((NU8) 1));
}

N_NIMCALL(NU8, incheckpoint_165094)(tlineinfo163527 current) {
	NU8 result;
	NI i_165110;
	NI HEX3Atmp_165113;
	NI res_165115;
	result = 0;
	i_165110 = 0;
	HEX3Atmp_165113 = 0;
	HEX3Atmp_165113 = (checkpoints_164868->Sup.len-1);
	res_165115 = 0;
	while (1) {
		if (!(res_165115 <= HEX3Atmp_165113)) goto LA1;
		i_165110 = res_165115;
		{
			if (!(current.Fileindex == checkpoints_164868->data[i_165110].Fileindex)) goto LA4;
			{
				NIM_BOOL LOC8;
				LOC8 = 0;
				LOC8 = (current.Line == checkpoints_164868->data[i_165110].Line);
				if (!(LOC8)) goto LA9;
				LOC8 = ((NI16)abs((NI16)(current.Col - checkpoints_164868->data[i_165110].Col)) < ((NI16) 4));
				LA9: ;
				if (!LOC8) goto LA10;
				result = ((NU8) 2);
				goto BeforeRet;
			}
			LA10: ;
			{
				if (!(checkpoints_164868->data[i_165110].Line <= current.Line)) goto LA14;
				result = ((NU8) 1);
				goto BeforeRet;
			}
			LA14: ;
		}
		LA4: ;
		res_165115 += 1;
	} LA1: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, suggestwriteln_164242)(NimStringDesc* s) {
	{
		if (!((erroroutputs_164234 &(1<<((((NU8) 0))&7)))!=0)) goto LA3;
		{
			TY165002 LOC9;
			if (!stdoutsocket_164192 == 0) goto LA7;
			memset((void*)LOC9, 0, sizeof(LOC9));
			LOC9[0] = copyString(s);
			writeln_138205(stdout, LOC9, 1);
		}
		goto LA5;
		LA7: ;
		{
			TY165002 LOC11;
			NimStringDesc* LOC12;
			memset((void*)LOC11, 0, sizeof(LOC11));
			LOC11[0] = copyString(s);
			writeln_138205(stdout, LOC11, 1);
			LOC12 = 0;
			LOC12 = rawNewString(s->Sup.len + 2);
appendString(LOC12, s);
appendString(LOC12, ((NimStringDesc*) &TMP1862));
			send_160604(stdoutsocket_164192, LOC12);
		}
		LA5: ;
	}
	LA3: ;
	{
		if (!((erroroutputs_164234 &(1<<((((NU8) 2))&7)))!=0)) goto LA15;
		safeadd_164460(&bufferedmsgs_164232, s);
	}
	LA15: ;
}

N_NIMCALL(void, globalerror_165558)(tlineinfo163527 info, NU16 msg, NimStringDesc* arg) {
	limessage_165402(info, msg, arg, ((NU8) 2));
}

N_NIMCALL(void, pushinfocontext_164697)(tlineinfo163527 info) {
	msgcontext_164229 = (TY164208*) incrSeq(&(msgcontext_164229)->Sup, sizeof(tlineinfo163527));
	msgcontext_164229->data[msgcontext_164229->Sup.len-1] = info;
}

N_NIMCALL(void, popinfocontext_164720)(void) {
	msgcontext_164229 = (TY164208*) setLengthSeq(&(msgcontext_164229)->Sup, sizeof(tlineinfo163527), (NI32)(msgcontext_164229->Sup.len - 1));
}

N_NIMCALL(void, clearbufferedmsgs_164238)(void) {
	genericSeqAssign(&bufferedmsgs_164232, NIM_NIL, (&NTI110805));
}
N_NIMCALL(void, TMP2558)(void* p, NI op) {
	esuggestdone163535* a;
	a = (esuggestdone163535*)p;
	nimGCvisit((void*)(*a).Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.message, op);
	nimGCvisit((void*)(*a).Sup.trace, op);
}

N_NIMCALL(void, suggestquit_164626)(void) {
	{
		if (!!(isserving_137126)) goto LA3;
		exit(0);
	}
	goto LA1;
	LA3: ;
	{
		esuggestdone163535* e_164630;
		NimStringDesc* LOC8;
		if (!!((gdirtybufferidx_137127 == ((NI32) 0)))) goto LA6;
		e_164630 = 0;
		e_164630 = (esuggestdone163535*) newObj((&NTI164631), sizeof(esuggestdone163535));
		(*e_164630).Sup.Sup.m_type = (&NTI163535);
		LOC8 = 0;
		LOC8 = (*e_164630).Sup.message; (*e_164630).Sup.message = copyStringRC1(((NimStringDesc*) &TMP2559));
		if (LOC8) nimGCunrefNoCycle(LOC8);
		raiseException((E_Base*)e_164630, "ESuggestDone");
	}
	goto LA1;
	LA6: ;
	LA1: ;
}

N_NIMCALL(void, globalerror_165565)(tlineinfo163527 info, NimStringDesc* arg) {
	limessage_165402(info, ((NU16) 4), arg, ((NU8) 2));
}

N_NIMCALL(void, localerror_165578)(tlineinfo163527 info, NimStringDesc* arg) {
	limessage_165402(info, ((NU16) 4), arg, ((NU8) 0));
}

N_NIMCALL(tlineinfo163527, getinfocontext_164751)(NI index) {
	tlineinfo163527 result;
	NI l;
	NI i;
	memset((void*)&result, 0, sizeof(result));
	l = msgcontext_164229->Sup.len;
	{
		if (!(index < 0)) goto LA3;
		i = (NI32)(l + index);
	}
	goto LA1;
	LA3: ;
	{
		i = index;
	}
	LA1: ;
	{
		if (!((NU32)(l) <= (NU32)(i))) goto LA8;
		result = unknownlineinfo_164203();
	}
	goto LA6;
	LA8: ;
	{
		result = msgcontext_164229->data[i];
	}
	LA6: ;
	return result;
}

N_NIMCALL(NI, getinfocontextlen_164660)(void) {
	NI result;
	result = 0;
	result = msgcontext_164229->Sup.len;
	goto BeforeRet;
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, setinfocontextlen_164676)(NI l) {
	msgcontext_164229 = (TY164208*) setLengthSeq(&(msgcontext_164229)->Sup, sizeof(tlineinfo163527), l);
}

N_NIMCALL(trope145007*, quotedfilename_165750)(tlineinfo163527 i) {
	trope145007* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		if (!!((((NI32) 0) <= i.Fileindex))) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_165714(TMP3390);
		internalerror_165606(LOC5);
	}
	LA3: ;
	result = fileinfos_163640->data[i.Fileindex].Quotedname;
	return result;
}

N_NIMCALL(void, outwriteln_164903)(NimStringDesc* s) {
	{
		TY165002 LOC5;
		if (!((erroroutputs_164234 &(1<<((((NU8) 0))&7)))!=0)) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = copyString(s);
		writeln_138205(stdout, LOC5, 1);
	}
	LA3: ;
}
N_NOINLINE(void, msgsInit)(void) {
	tfileinfo163525 LOC1;
	tfileinfo163525 LOC2;
	TY145103 LOC3;
	chckNil((void*)&filenametoindextbl_163618);
	genericReset((void*)&filenametoindextbl_163618, (&NTI163560));
	inittable_163552(64, &filenametoindextbl_163618);
	if (fileinfos_163640) nimGCunrefNoCycle(fileinfos_163640);
	fileinfos_163640 = (TY163619*) newSeqRC1((&NTI163619), 0);
	memset((void*)&LOC1, 0, sizeof(LOC1));
	newfileinfo_163680(((NimStringDesc*) &TMP142), ((NimStringDesc*) &TMP144), &LOC1);
	fileinfos_163640 = (TY163619*) incrSeq(&(fileinfos_163640)->Sup, sizeof(tfileinfo163525));
	genericAssign((void*)&fileinfos_163640->data[fileinfos_163640->Sup.len-1], (void*)&LOC1, (&NTI163525));
	gcmdlineinfo_164104 = newlineinfo_164069(((NI32) 0), 1, 1);
	memset((void*)&LOC2, 0, sizeof(LOC2));
	newfileinfo_163680(((NimStringDesc*) &TMP142), ((NimStringDesc*) &TMP145), &LOC2);
	fileinfos_163640 = (TY163619*) incrSeq(&(fileinfos_163640)->Sup, sizeof(tfileinfo163525));
	genericAssign((void*)&fileinfos_163640->data[fileinfos_163640->Sup.len-1], (void*)&LOC2, (&NTI163525));
	gcodegenlineinfo_164126 = newlineinfo_164069(((NI32) 1), 1, 1);
	gnotes_164181 = IL64(8796068642815);
	gerrorcounter_164182 = 0;
	ghintcounter_164183 = 0;
	gwarncounter_164184 = 0;
	gerrormax_164185 = 1;
	if (msgcontext_164229) nimGCunrefNoCycle(msgcontext_164229);
	msgcontext_164229 = (TY164208*) newSeqRC1((&NTI164208), 0);
	lasterror_164230 = unknownlineinfo_164203();
	erroroutputs_164234 = 3;
	if (checkpoints_164868) nimGCunrefNoCycle(checkpoints_164868);
	checkpoints_164868 = (TY164208*) newSeqRC1((&NTI164208), 0);
	memset((void*)&LOC3, 0, sizeof(LOC3));
	LOC3.ClPrc = ((TMP430) (HEX3Aanonymous_165763)); LOC3.ClEnv = NIM_NIL;
	asgnRef((void**) &errorhandler_145108.ClEnv, LOC3.ClEnv);
	errorhandler_145108.ClPrc = LOC3.ClPrc;
}

N_NOINLINE(void, msgsDatInit)(void) {
static TNimNode* TMP138[5];
static TNimNode* TMP146[3];
static TNimNode* TMP1854[273];
NI TMP1856;
static char* NIM_CONST TMP1855[273] = {
"errUnknown", 
"errIllFormedAstX", 
"errInternal", 
"errCannotOpenFile", 
"errGenerated", 
"errXCompilerDoesNotSupportCpp", 
"errStringLiteralExpected", 
"errIntLiteralExpected", 
"errInvalidCharacterConstant", 
"errClosingTripleQuoteExpected", 
"errClosingQuoteExpected", 
"errTabulatorsAreNotAllowed", 
"errInvalidToken", 
"errLineTooLong", 
"errInvalidNumber", 
"errNumberOutOfRange", 
"errNnotAllowedInCharacter", 
"errClosingBracketExpected", 
"errMissingFinalQuote", 
"errIdentifierExpected", 
"errNewlineExpected", 
"errInvalidModuleName", 
"errOperatorExpected", 
"errTokenExpected", 
"errStringAfterIncludeExpected", 
"errRecursiveDependencyX", 
"errOnOrOffExpected", 
"errNoneSpeedOrSizeExpected", 
"errInvalidPragma", 
"errUnknownPragma", 
"errInvalidDirectiveX", 
"errAtPopWithoutPush", 
"errEmptyAsm", 
"errInvalidIndentation", 
"errExceptionExpected", 
"errExceptionAlreadyHandled", 
"errYieldNotAllowedHere", 
"errYieldNotAllowedInTryStmt", 
"errInvalidNumberOfYieldExpr", 
"errCannotReturnExpr", 
"errAttemptToRedefine", 
"errStmtInvalidAfterReturn", 
"errStmtExpected", 
"errInvalidLabel", 
"errInvalidCmdLineOption", 
"errCmdLineArgExpected", 
"errCmdLineNoArgExpected", 
"errInvalidVarSubstitution", 
"errUnknownVar", 
"errUnknownCcompiler", 
"errOnOrOffExpectedButXFound", 
"errNoneBoehmRefcExpectedButXFound", 
"errNoneSpeedOrSizeExpectedButXFound", 
"errGuiConsoleOrLibExpectedButXFound", 
"errUnknownOS", 
"errUnknownCPU", 
"errGenOutExpectedButXFound", 
"errArgsNeedRunOption", 
"errInvalidMultipleAsgn", 
"errColonOrEqualsExpected", 
"errExprExpected", 
"errUndeclaredIdentifier", 
"errUseQualifier", 
"errTypeExpected", 
"errSystemNeeds", 
"errExecutionOfProgramFailed", 
"errNotOverloadable", 
"errInvalidArgForX", 
"errStmtHasNoEffect", 
"errXExpectsTypeOrValue", 
"errXExpectsArrayType", 
"errIteratorCannotBeInstantiated", 
"errExprXAmbiguous", 
"errConstantDivisionByZero", 
"errOrdinalTypeExpected", 
"errOrdinalOrFloatTypeExpected", 
"errOverOrUnderflow", 
"errCannotEvalXBecauseIncompletelyDefined", 
"errChrExpectsRange0_255", 
"errDynlibRequiresExportc", 
"errUndeclaredFieldX", 
"errNilAccess", 
"errIndexOutOfBounds", 
"errIndexTypesDoNotMatch", 
"errBracketsInvalidForType", 
"errValueOutOfSetBounds", 
"errFieldInitTwice", 
"errFieldNotInit", 
"errExprXCannotBeCalled", 
"errExprHasNoType", 
"errExprXHasNoType", 
"errCastNotInSafeMode", 
"errExprCannotBeCastedToX", 
"errCommaOrParRiExpected", 
"errCurlyLeOrParLeExpected", 
"errSectionExpected", 
"errRangeExpected", 
"errMagicOnlyInSystem", 
"errPowerOfTwoExpected", 
"errStringMayNotBeEmpty", 
"errCallConvExpected", 
"errProcOnlyOneCallConv", 
"errSymbolMustBeImported", 
"errExprMustBeBool", 
"errConstExprExpected", 
"errDuplicateCaseLabel", 
"errRangeIsEmpty", 
"errSelectorMustBeOfCertainTypes", 
"errSelectorMustBeOrdinal", 
"errOrdXMustNotBeNegative", 
"errLenXinvalid", 
"errWrongNumberOfVariables", 
"errExprCannotBeRaised", 
"errBreakOnlyInLoop", 
"errTypeXhasUnknownSize", 
"errConstNeedsConstExpr", 
"errConstNeedsValue", 
"errResultCannotBeOpenArray", 
"errSizeTooBig", 
"errSetTooBig", 
"errBaseTypeMustBeOrdinal", 
"errInheritanceOnlyWithNonFinalObjects", 
"errInheritanceOnlyWithEnums", 
"errIllegalRecursionInTypeX", 
"errCannotInstantiateX", 
"errExprHasNoAddress", 
"errXStackEscape", 
"errVarForOutParamNeeded", 
"errPureTypeMismatch", 
"errTypeMismatch", 
"errButExpected", 
"errButExpectedX", 
"errAmbiguousCallXYZ", 
"errWrongNumberOfArguments", 
"errXCannotBePassedToProcVar", 
"errXCannotBeInParamDecl", 
"errPragmaOnlyInHeaderOfProc", 
"errImplOfXNotAllowed", 
"errImplOfXexpected", 
"errNoSymbolToBorrowFromFound", 
"errDiscardValueX", 
"errInvalidDiscard", 
"errIllegalConvFromXtoY", 
"errCannotBindXTwice", 
"errInvalidOrderInArrayConstructor", 
"errInvalidOrderInEnumX", 
"errEnumXHasHoles", 
"errExceptExpected", 
"errInvalidTry", 
"errOptionExpected", 
"errXisNoLabel", 
"errNotAllCasesCovered", 
"errUnkownSubstitionVar", 
"errComplexStmtRequiresInd", 
"errXisNotCallable", 
"errNoPragmasAllowedForX", 
"errNoGenericParamsAllowedForX", 
"errInvalidParamKindX", 
"errDefaultArgumentInvalid", 
"errNamedParamHasToBeIdent", 
"errNoReturnTypeForX", 
"errConvNeedsOneArg", 
"errInvalidPragmaX", 
"errXNotAllowedHere", 
"errInvalidControlFlowX", 
"errXisNoType", 
"errCircumNeedsPointer", 
"errInvalidExpression", 
"errInvalidExpressionX", 
"errEnumHasNoValueX", 
"errNamedExprExpected", 
"errNamedExprNotAllowed", 
"errXExpectsOneTypeParam", 
"errArrayExpectsTwoTypeParams", 
"errInvalidVisibilityX", 
"errInitHereNotAllowed", 
"errXCannotBeAssignedTo", 
"errIteratorNotAllowed", 
"errXNeedsReturnType", 
"errNoReturnTypeDeclared", 
"errInvalidCommandX", 
"errXOnlyAtModuleScope", 
"errXNeedsParamObjectType", 
"errTemplateInstantiationTooNested", 
"errInstantiationFrom", 
"errInvalidIndexValueForTuple", 
"errCommandExpectsFilename", 
"errMainModuleMustBeSpecified", 
"errXExpected", 
"errTIsNotAConcreteType", 
"errInvalidSectionStart", 
"errGridTableNotImplemented", 
"errGeneralParseError", 
"errNewSectionExpected", 
"errWhitespaceExpected", 
"errXisNoValidIndexFile", 
"errCannotRenderX", 
"errVarVarTypeNotAllowed", 
"errInstantiateXExplicitely", 
"errOnlyACallOpCanBeDelegator", 
"errUsingNoSymbol", 
"errMacroBodyDependsOnGenericTypes", 
"errDestructorNotGenericEnough", 
"errInlineIteratorsAsProcParams", 
"errXExpectsTwoArguments", 
"errXExpectsObjectTypes", 
"errXcanNeverBeOfThisSubtype", 
"errTooManyIterations", 
"errCannotInterpretNodeX", 
"errFieldXNotFound", 
"errInvalidConversionFromTypeX", 
"errAssertionFailed", 
"errCannotGenerateCodeForX", 
"errXRequiresOneArgument", 
"errUnhandledExceptionX", 
"errCyclicTree", 
"errXisNoMacroOrTemplate", 
"errXhasSideEffects", 
"errIteratorExpected", 
"errLetNeedsInit", 
"errThreadvarCannotInit", 
"errWrongSymbolX", 
"errIllegalCaptureX", 
"errXCannotBeClosure", 
"errXMustBeCompileTime", 
"errCannotInferTypeOfTheLiteral", 
"errCannotInferReturnType", 
"errGenericLambdaNotAllowed", 
"errCompilerDoesntSupportTarget", 
"errUser", 
"warnCannotOpenFile", 
"warnOctalEscape", 
"warnXIsNeverRead", 
"warnXmightNotBeenInit", 
"warnDeprecated", 
"warnConfigDeprecated", 
"warnSmallLshouldNotBeUsed", 
"warnUnknownMagic", 
"warnRedefinitionOfLabel", 
"warnUnknownSubstitutionX", 
"warnLanguageXNotSupported", 
"warnCommentXIgnored", 
"warnNilStatement", 
"warnAnalysisLoophole", 
"warnDifferentHeaps", 
"warnWriteToForeignHeap", 
"warnUnsafeCode", 
"warnEachIdentIsTuple", 
"warnShadowIdent", 
"warnProveInit", 
"warnProveField", 
"warnProveIndex", 
"warnGcUnsafe", 
"warnGcUnsafe2", 
"warnUninit", 
"warnGcMem", 
"warnUser", 
"hintSuccess", 
"hintSuccessX", 
"hintLineTooLong", 
"hintXDeclaredButNotUsed", 
"hintConvToBaseNotNeeded", 
"hintConvFromXtoItselfNotNeeded", 
"hintExprAlwaysX", 
"hintQuitCalled", 
"hintProcessing", 
"hintCodeBegin", 
"hintCodeEnd", 
"hintConf", 
"hintPath", 
"hintConditionAlwaysTrue", 
"hintPattern", 
"hintUser"};
static TNimNode TMP19[287];
NTI163525.size = sizeof(tfileinfo163525);
NTI163525.kind = 18;
NTI163525.base = 0;
NTI163525.flags = 2;
TMP138[0] = &TMP19[1];
TMP19[1].kind = 1;
TMP19[1].offset = offsetof(tfileinfo163525, Fullpath);
TMP19[1].typ = (&NTI143);
TMP19[1].name = "fullPath";
TMP138[1] = &TMP19[2];
TMP19[2].kind = 1;
TMP19[2].offset = offsetof(tfileinfo163525, Projpath);
TMP19[2].typ = (&NTI143);
TMP19[2].name = "projPath";
TMP138[2] = &TMP19[3];
TMP19[3].kind = 1;
TMP19[3].offset = offsetof(tfileinfo163525, Shortname);
TMP19[3].typ = (&NTI143);
TMP19[3].name = "shortName";
TMP138[3] = &TMP19[4];
TMP19[4].kind = 1;
TMP19[4].offset = offsetof(tfileinfo163525, Quotedname);
TMP19[4].typ = (&NTI145005);
TMP19[4].name = "quotedName";
TMP138[4] = &TMP19[5];
NTI163540.size = sizeof(TY163540*);
NTI163540.kind = 24;
NTI163540.base = (&NTI145005);
NTI163540.flags = 2;
NTI163540.marker = TMP139;
TMP19[5].kind = 1;
TMP19[5].offset = offsetof(tfileinfo163525, Lines);
TMP19[5].typ = (&NTI163540);
TMP19[5].name = "lines";
TMP19[0].len = 5; TMP19[0].kind = 2; TMP19[0].sons = &TMP138[0];
NTI163525.node = &TMP19[0];
NTI163619.size = sizeof(TY163619*);
NTI163619.kind = 24;
NTI163619.base = (&NTI163525);
NTI163619.flags = 2;
NTI163619.marker = TMP140;
NTI163527.size = sizeof(tlineinfo163527);
NTI163527.kind = 18;
NTI163527.base = 0;
NTI163527.flags = 3;
TMP146[0] = &TMP19[7];
TMP19[7].kind = 1;
TMP19[7].offset = offsetof(tlineinfo163527, Line);
TMP19[7].typ = (&NTI110);
TMP19[7].name = "line";
TMP146[1] = &TMP19[8];
TMP19[8].kind = 1;
TMP19[8].offset = offsetof(tlineinfo163527, Col);
TMP19[8].typ = (&NTI110);
TMP19[8].name = "col";
TMP146[2] = &TMP19[9];
TMP19[9].kind = 1;
TMP19[9].offset = offsetof(tlineinfo163527, Fileindex);
TMP19[9].typ = (&NTI112);
TMP19[9].name = "fileIndex";
TMP19[6].len = 3; TMP19[6].kind = 2; TMP19[6].sons = &TMP146[0];
NTI163527.node = &TMP19[6];
NTI164208.size = sizeof(TY164208*);
NTI164208.kind = 24;
NTI164208.base = (&NTI163527);
NTI164208.flags = 2;
NTI164208.marker = TMP147;
NTI163533.size = sizeof(erecoverableerror163533);
NTI163533.kind = 17;
NTI163533.base = (&NTI2453);
TMP19[10].len = 0; TMP19[10].kind = 2;
NTI163533.node = &TMP19[10];
NTI164135.size = sizeof(erecoverableerror163533*);
NTI164135.kind = 22;
NTI164135.base = (&NTI163533);
NTI164135.marker = TMP427;
NTI163203.size = sizeof(NU16);
NTI163203.kind = 14;
NTI163203.base = 0;
NTI163203.flags = 3;
for (TMP1856 = 0; TMP1856 < 273; TMP1856++) {
TMP19[TMP1856+11].kind = 1;
TMP19[TMP1856+11].offset = TMP1856;
TMP19[TMP1856+11].name = TMP1855[TMP1856];
TMP1854[TMP1856] = &TMP19[TMP1856+11];
}
TMP19[284].len = 273; TMP19[284].kind = 2; TMP19[284].sons = &TMP1854[0];
NTI163203.node = &TMP19[284];
NTI163521.size = sizeof(NU16);
NTI163521.kind = 20;
NTI163521.base = (&NTI163203);
NTI163521.flags = 3;
NTI163523.size = sizeof(NU64);
NTI163523.kind = 19;
NTI163523.base = (&NTI163521);
NTI163523.flags = 3;
TMP19[285].len = 230; TMP19[285].kind = 0;
NTI163523.node = &TMP19[285];
NTI163535.size = sizeof(esuggestdone163535);
NTI163535.kind = 17;
NTI163535.base = (&NTI2425);
TMP19[286].len = 0; TMP19[286].kind = 2;
NTI163535.node = &TMP19[286];
NTI164631.size = sizeof(esuggestdone163535*);
NTI164631.kind = 22;
NTI164631.base = (&NTI163535);
NTI164631.marker = TMP2558;
}

