/* Generated by Nim Compiler v0.11.2 */
/*   (c) 2015 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 32
#include "nimbase.h"

#include <string.h>

#include <stdio.h>

#include <stdlib.h>

#include <setjmp.h>
typedef struct Table163376 Table163376;
typedef struct Keyvaluepairseq163379 Keyvaluepairseq163379;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct TY163415 TY163415;
typedef struct Tfileinfo163336 Tfileinfo163336;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Ropeobj161009 Ropeobj161009;
typedef struct TY163351 TY163351;
typedef struct Tcell46347 Tcell46347;
typedef struct Tcellseq46363 Tcellseq46363;
typedef struct Tgcheap48216 Tgcheap48216;
typedef struct Tcellset46359 Tcellset46359;
typedef struct Tpagedesc46355 Tpagedesc46355;
typedef struct Tmemregion28210 Tmemregion28210;
typedef struct Tsmallchunk27440 Tsmallchunk27440;
typedef struct Tllchunk28204 Tllchunk28204;
typedef struct Tbigchunk27442 Tbigchunk27442;
typedef struct Tintset27417 Tintset27417;
typedef struct Ttrunk27413 Ttrunk27413;
typedef struct Tavlnode28208 Tavlnode28208;
typedef struct Tgcstat48214 Tgcstat48214;
typedef struct Tlineinfo163338 Tlineinfo163338;
typedef struct TY164036 TY164036;
typedef struct Erecoverableerror163344 Erecoverableerror163344;
typedef struct Valueerror3449 Valueerror3449;
typedef struct Exception Exception;
typedef struct TNimObject TNimObject;
typedef struct Slice165076 Slice165076;
typedef struct TSafePoint TSafePoint;
typedef struct TY86345 TY86345;
typedef struct Esuggestdone163346 Esuggestdone163346;
typedef struct Keyvaluepair163382 Keyvaluepair163382;
typedef struct Tbasechunk27438 Tbasechunk27438;
typedef struct Tfreecell27430 Tfreecell27430;
struct  Table163376  {
Keyvaluepairseq163379* data;
NI counter;
};
typedef N_NIMCALL_PTR(void, TY3289) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3294) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3289 marker;
TY3294 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tfileinfo163336  {
NimStringDesc* fullpath;
NimStringDesc* projpath;
NimStringDesc* shortname;
Ropeobj161009* quotedname;
TY163351* lines;
NimStringDesc* dirtyfile;
};
struct  Tcell46347  {
NI refcount;
TNimType* typ;
};
struct  Tcellseq46363  {
NI len;
NI cap;
Tcell46347** d;
};
struct  Tcellset46359  {
NI counter;
NI max;
Tpagedesc46355* head;
Tpagedesc46355** data;
};
typedef Tsmallchunk27440* TY28222[512];
typedef Ttrunk27413* Ttrunkbuckets27415[256];
struct  Tintset27417  {
Ttrunkbuckets27415 data;
};
struct  Tmemregion28210  {
NI minlargeobj;
NI maxlargeobj;
TY28222 freesmallchunks;
Tllchunk28204* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Tbigchunk27442* freechunkslist;
Tintset27417 chunkstarts;
Tavlnode28208* root;
Tavlnode28208* deleted;
Tavlnode28208* last;
Tavlnode28208* freeavlnodes;
};
struct  Tgcstat48214  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Tgcheap48216  {
void* stackbottom;
NI cyclethreshold;
Tcellseq46363 zct;
Tcellseq46363 decstack;
Tcellset46359 cycleroots;
Tcellseq46363 tempstack;
NI recgclock;
Tmemregion28210 region;
Tgcstat48214 stat;
};
struct  Tlineinfo163338  {
NI16 line;
NI16 col;
NI32 fileindex;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (NimStringDesc* output, void* ClEnv);
void* ClEnv;
} TY164057;
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (NU8 err, NimStringDesc* msg, NIM_BOOL usewarning, void* ClEnv);
void* ClEnv;
} TY161023;
typedef N_CLOSURE_PTR(void, TMP141) (NimStringDesc* output);
typedef NimStringDesc* TY164566[1];
typedef NimStringDesc* TY164825[4];
typedef NimStringDesc* TY163288[278];
struct  TNimObject  {
TNimType* m_type;
};
struct  Exception  {
  TNimObject Sup;
Exception* parent;
NCSTRING name;
NimStringDesc* message;
NimStringDesc* trace;
};
struct  Valueerror3449  {
  Exception Sup;
};
struct  Erecoverableerror163344  {
  Valueerror3449 Sup;
};
typedef N_CLOSURE_PTR(void, TMP429) (NU8 err, NimStringDesc* msg, NIM_BOOL usewarning, void* ClEnv);
struct  Slice165076  {
NU16 a;
NU16 b;
};
typedef struct {
N_NIMCALL_PTR(NIM_BOOL, ClPrc) (Exception* e, void* ClEnv);
void* ClEnv;
} TY15609;
struct  TSafePoint  {
TSafePoint* prev;
NI status;
jmp_buf context;
NIM_BOOL hasRaiseAction;
TY15609 raiseAction;
};
struct TY86345 {
NimStringDesc* Field0;
NI Field1;
};
typedef N_CLOSURE_PTR(void, TMP1964) (NimStringDesc* output);
struct  Esuggestdone163346  {
  Exception Sup;
};
struct Keyvaluepair163382 {
NI Field0;
NimStringDesc* Field1;
NI32 Field2;
};
struct  Ropeobj161009  {
  TNimObject Sup;
Ropeobj161009* left;
Ropeobj161009* right;
NI length;
NimStringDesc* data;
};
typedef NI TY27420[16];
struct  Tpagedesc46355  {
Tpagedesc46355* next;
NI key;
TY27420 bits;
};
struct  Tbasechunk27438  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Tsmallchunk27440  {
  Tbasechunk27438 Sup;
Tsmallchunk27440* next;
Tsmallchunk27440* prev;
Tfreecell27430* freelist;
NI free;
NI acc;
NF data;
};
struct  Tllchunk28204  {
NI size;
NI acc;
Tllchunk28204* next;
};
struct  Tbigchunk27442  {
  Tbasechunk27438 Sup;
Tbigchunk27442* next;
Tbigchunk27442* prev;
NI align;
NF data;
};
struct  Ttrunk27413  {
Ttrunk27413* next;
NI key;
TY27420 bits;
};
typedef Tavlnode28208* TY28214[2];
struct  Tavlnode28208  {
TY28214 link;
NI key;
NI upperbound;
NI level;
};
struct  Tfreecell27430  {
Tfreecell27430* next;
NI zerofield;
};
struct TY163415 {
  TGenericSeq Sup;
  Tfileinfo163336 data[SEQ_DECL_SIZE];
};
struct TY163351 {
  TGenericSeq Sup;
  Ropeobj161009* data[SEQ_DECL_SIZE];
};
struct TY164036 {
  TGenericSeq Sup;
  Tlineinfo163338 data[SEQ_DECL_SIZE];
};
struct Keyvaluepairseq163379 {
  TGenericSeq Sup;
  Keyvaluepair163382 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, inittable_163368)(NI initialsize, Table163376* 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, TMP132)(void* p, NI op);
N_NIMCALL(void, TMP133)(void* p, NI op);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Tcell46347*, usrtocell_49846)(void* usr);
static N_INLINE(void, rtladdzct_51404)(Tcell46347* c);
N_NOINLINE(void, addzct_49817)(Tcellseq46363* s, Tcell46347* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void, newfileinfo_163495)(NimStringDesc* fullpath, NimStringDesc* projpath, Tfileinfo163336* 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(Ropeobj161009*, makecstring_163449)(NimStringDesc* s);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, tocchar_163439)(NIM_CHAR c);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, nsuToOctal)(NIM_CHAR c);
N_NIMCALL(NimStringDesc*, nimCharToStr)(NIM_CHAR x);
N_NIMCALL(void, add_161534)(Ropeobj161009** a, Ropeobj161009* b);
N_NIMCALL(Ropeobj161009*, rope_161320)(NimStringDesc* s);
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(Tlineinfo163338, newlineinfo_163867)(NI32 fileinfoidx, NI line, NI col);
N_NIMCALL(void, TMP140)(void* p, NI op);
N_NIMCALL(Tlineinfo163338, unknownlineinfo_164027)(void);
N_NIMCALL(void, HEX3Aanonymous_165371)(NU8 err, NimStringDesc* msg, NIM_BOOL usewarning);
N_NIMCALL(void, internalerror_165218)(NimStringDesc* errmsg);
N_NIMCALL(void, writecontext_164800)(Tlineinfo163338 lastinfo);
N_NIMCALL(NIM_BOOL, HEX3DHEX3D_164789)(Tlineinfo163338 a, Tlineinfo163338 b);
N_NIMCALL(void, msgwriteln_164536)(NimStringDesc* s);
static N_INLINE(void, writeln_155205)(FILE* f, NimStringDesc** x, NI xLen0);
N_NIMCALL(void, write_13457)(FILE* f, NimStringDesc* s);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(NimStringDesc*, tomsgfilename_164429)(Tlineinfo163338 info);
N_NIMCALL(NimStringDesc*, coordtostr_164606)(NI coord);
N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
N_NIMCALL(NimStringDesc*, getmessagestr_164626)(NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, msgkindtostring_164616)(NU16 kind);
N_NIMCALL(void, rawmessage_164960)(NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, rawmessage_164888)(NU16 msg, NimStringDesc** args, NI argsLen0);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
N_NIMCALL(NIM_BOOL, ignoremsgbecauseofidetools_164850)(NU16 msg);
N_NIMCALL(void, handleerror_164647)(NU16 msg, NU8 eh, NimStringDesc* s);
N_NIMCALL(NIM_BOOL, stacktraceavailable_17930)(void);
N_NIMCALL(void, writestacktrace_16407)(void);
N_NOINLINE(void, raiserecoverableerror_163969)(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)(Exception* e, NCSTRING ename);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_52222)(Tcell46347* c);
static N_INLINE(NIM_BOOL, canbecycleroot_49867)(Tcell46347* c);
static N_INLINE(void, rtladdcycleroot_50623)(Tcell46347* c);
N_NOINLINE(void, incl_47065)(Tcellset46359* s, Tcell46347* cell);
static N_INLINE(void, decref_51804)(Tcell46347* c);
N_NIMCALL(void, limessage_164997)(Tlineinfo163338 info, NU16 msg, NimStringDesc* arg, NU8 eh);
static N_INLINE(NIM_BOOL, contains_165086)(Slice165076 s, NU16 value);
static N_INLINE(Slice165076, HEX2EHEX2E_165067)(NU16 a, NU16 b);
N_NIMCALL(void, writesurroundingsrc_164972)(Tlineinfo163338 info);
N_NIMCALL(NimStringDesc*, HEX24_162131)(Ropeobj161009* r);
N_NIMCALL(Ropeobj161009*, sourceline_163991)(Tlineinfo163338 i);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
N_NIMCALL(NimStringDesc*, tofullpath_164276)(NI32 fileidx);
N_NIMCALL(FILE*, open_13217)(NimStringDesc* filename, NU8 mode, NI bufsize);
N_NIMCALL(NIM_BOOL, readline_13481)(FILE* f, NimStringDesc** line);
N_NIMCALL(void, addsourceline_165254)(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(Exception*, getCurrentException)(void);
static N_INLINE(void, popCurrentException)(void);
N_NIMCALL(void, reraiseException)(void);
N_NIMCALL(NimStringDesc*, HEX24_165306)(TY86345 x);
N_NIMCALL(NimStringDesc*, nsuRepeatChar)(NIM_CHAR c, NI count);
N_NIMCALL(NI32, fileinfoidx_163533)(NimStringDesc* filename, NIM_BOOL* isknownfile);
N_NIMCALL(NimStringDesc*, canonicalizepath_154374)(NimStringDesc* path);
static N_INLINE(void, shallow_87024)(NimStringDesc** s_87027);
N_NIMCALL(NIM_BOOL, haskey_163543)(Table163376 t, NimStringDesc* key);
N_NIMCALL(NI32, HEX5BHEX5D_163586)(Table163376 t, NimStringDesc* key);
N_NIMCALL(NimStringDesc*, shortendir_154407)(NimStringDesc* dir);
N_NIMCALL(void, HEX5BHEX5DHEX3D_163635)(Table163376* t, NimStringDesc* key, NI32 val);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, TMP2663)(void* p, NI op);
static N_INLINE(NimStringDesc*, tofilelinecol_164469)(Tlineinfo163338 info);
N_NIMCALL(NimStringDesc*, tofilename_164266)(NI32 fileidx);
STRING_LITERAL(TMP135, "", 0);
STRING_LITERAL(TMP136, "\"", 1);
STRING_LITERAL(TMP137, "command line", 12);
STRING_LITERAL(TMP138, "compilation artifact", 20);
STRING_LITERAL(TMP144, "\012", 1);
STRING_LITERAL(TMP146, "$1($2, $3) Info: $4", 19);
STRING_LITERAL(TMP147, "???", 3);
STRING_LITERAL(TMP148, "unknown error", 13);
STRING_LITERAL(TMP149, "illformed AST: $1", 17);
STRING_LITERAL(TMP150, "internal error: $1", 18);
STRING_LITERAL(TMP151, "cannot open \'$1\'", 16);
STRING_LITERAL(TMP152, "$1", 2);
STRING_LITERAL(TMP153, "\'$1\' compiler does not support C++", 34);
STRING_LITERAL(TMP154, "string literal expected", 23);
STRING_LITERAL(TMP155, "integer literal expected", 24);
STRING_LITERAL(TMP156, "invalid character constant", 26);
STRING_LITERAL(TMP157, "closing \"\"\" expected, but end of file reached", 45);
STRING_LITERAL(TMP158, "closing \" expected", 18);
STRING_LITERAL(TMP159, "tabulators are not allowed", 26);
STRING_LITERAL(TMP160, "invalid token: $1", 17);
STRING_LITERAL(TMP161, "line too long", 13);
STRING_LITERAL(TMP162, "$1 is not a valid number", 24);
STRING_LITERAL(TMP163, "number $1 out of valid range", 28);
STRING_LITERAL(TMP164, "\\n not allowed in character literal", 35);
STRING_LITERAL(TMP165, "closing \']\' expected, but end of file reached", 45);
STRING_LITERAL(TMP166, "missing final \' for character literal", 37);
STRING_LITERAL(TMP167, "identifier expected, but found \'$1\'", 35);
STRING_LITERAL(TMP168, "newline expected, but found \'$1\'", 32);
STRING_LITERAL(TMP169, "invalid module name: \'$1\'", 25);
STRING_LITERAL(TMP170, "operator expected, but found \'$1\'", 33);
STRING_LITERAL(TMP171, "\'$1\' expected", 13);
STRING_LITERAL(TMP172, "string after \'include\' expected", 31);
STRING_LITERAL(TMP173, "recursive dependency: \'$1\'", 26);
STRING_LITERAL(TMP174, "\'on\' or \'off\' expected", 22);
STRING_LITERAL(TMP175, "\'none\', \'speed\' or \'size\' expected", 34);
STRING_LITERAL(TMP176, "invalid pragma", 14);
STRING_LITERAL(TMP177, "unknown pragma: \'$1\'", 20);
STRING_LITERAL(TMP178, "invalid directive: \'$1\'", 23);
STRING_LITERAL(TMP179, "\'pop\' without a \'push\' pragma", 29);
STRING_LITERAL(TMP180, "empty asm statement", 19);
STRING_LITERAL(TMP181, "invalid indentation", 19);
STRING_LITERAL(TMP182, "exception expected", 18);
STRING_LITERAL(TMP183, "exception already handled", 25);
STRING_LITERAL(TMP184, "\'yield\' only allowed in an iterator", 35);
STRING_LITERAL(TMP185, "\'yield\' cannot be used within \'try\' in a non-inlined iterator", 61);
STRING_LITERAL(TMP186, "invalid number of \'yield\' expressions", 37);
STRING_LITERAL(TMP187, "current routine cannot return an expression", 43);
STRING_LITERAL(TMP188, "redefinition of \'$1\'", 20);
STRING_LITERAL(TMP189, "statement not allowed after \'return\', \'break\', \'raise\' or \'cont"
"inue\'", 68);
STRING_LITERAL(TMP190, "statement expected", 18);
STRING_LITERAL(TMP191, "\'$1\' is no label", 16);
STRING_LITERAL(TMP192, "invalid command line option: \'$1\'", 33);
STRING_LITERAL(TMP193, "argument for command line option expected: \'$1\'", 47);
STRING_LITERAL(TMP194, "invalid argument for command line option: \'$1\'", 46);
STRING_LITERAL(TMP195, "invalid variable substitution in \'$1\'", 37);
STRING_LITERAL(TMP196, "unknown variable: \'$1\'", 22);
STRING_LITERAL(TMP197, "unknown C compiler: \'$1\'", 24);
STRING_LITERAL(TMP198, "\'on\' or \'off\' expected, but \'$1\' found", 38);
STRING_LITERAL(TMP199, "\'none\', \'boehm\' or \'refc\' expected, but \'$1\' found", 50);
STRING_LITERAL(TMP200, "\'none\', \'speed\' or \'size\' expected, but \'$1\' found", 50);
STRING_LITERAL(TMP201, "\'gui\', \'console\' or \'lib\' expected, but \'$1\' found", 50);
STRING_LITERAL(TMP202, "unknown OS: \'$1\'", 16);
STRING_LITERAL(TMP203, "unknown CPU: \'$1\'", 17);
STRING_LITERAL(TMP204, "\'c\', \'c++\' or \'yaml\' expected, but \'$1\' found", 45);
STRING_LITERAL(TMP205, "arguments can only be given if the \'--run\' option is selected", 61);
STRING_LITERAL(TMP206, "multiple assignment is not allowed", 34);
STRING_LITERAL(TMP207, "\':\' or \'=\' expected, but found \'$1\'", 35);
STRING_LITERAL(TMP208, "expression expected, but found \'$1\'", 35);
STRING_LITERAL(TMP209, "undeclared identifier: \'$1\'", 27);
STRING_LITERAL(TMP210, "ambiguous identifier: \'$1\' -- use a qualifier", 45);
STRING_LITERAL(TMP211, "type expected", 13);
STRING_LITERAL(TMP212, "system module needs \'$1\'", 24);
STRING_LITERAL(TMP213, "execution of an external program failed", 39);
STRING_LITERAL(TMP214, "overloaded \'$1\' leads to ambiguous calls", 40);
STRING_LITERAL(TMP215, "invalid argument for \'$1\'", 25);
STRING_LITERAL(TMP216, "statement has no effect", 23);
STRING_LITERAL(TMP217, "\'$1\' expects a type or value", 28);
STRING_LITERAL(TMP218, "\'$1\' expects an array type", 26);
STRING_LITERAL(TMP219, "\'$1\' cannot be instantiated because its body has not been compi"
"led yet", 70);
STRING_LITERAL(TMP220, "expression \'$1\' ambiguous in this context", 41);
STRING_LITERAL(TMP221, "division by zero", 16);
STRING_LITERAL(TMP222, "ordinal type expected", 21);
STRING_LITERAL(TMP223, "ordinal or float type expected", 30);
STRING_LITERAL(TMP224, "over- or underflow", 18);
STRING_LITERAL(TMP225, "cannot evalutate \'$1\' because type is not defined completely", 60);
STRING_LITERAL(TMP226, "\'chr\' expects an int in the range 0..255", 40);
STRING_LITERAL(TMP227, "\'dynlib\' requires \'exportc\'", 27);
STRING_LITERAL(TMP228, "undeclared field: \'$1\'", 22);
STRING_LITERAL(TMP229, "attempt to access a nil address", 31);
STRING_LITERAL(TMP230, "index out of bounds", 19);
STRING_LITERAL(TMP231, "index types do not match", 24);
STRING_LITERAL(TMP232, "\'[]\' operator invalid for this type", 35);
STRING_LITERAL(TMP233, "value out of set bounds", 23);
STRING_LITERAL(TMP234, "field initialized twice: \'$1\'", 29);
STRING_LITERAL(TMP235, "field \'$1\' not initialized", 26);
STRING_LITERAL(TMP236, "expression \'$1\' cannot be called", 32);
STRING_LITERAL(TMP237, "expression has no type", 22);
STRING_LITERAL(TMP238, "expression \'$1\' has no type (or is ambiguous)", 45);
STRING_LITERAL(TMP239, "\'cast\' not allowed in safe mode", 31);
STRING_LITERAL(TMP240, "expression cannot be casted to $1", 33);
STRING_LITERAL(TMP241, "\',\' or \')\' expected", 19);
STRING_LITERAL(TMP242, "\'{\' or \'(\' expected", 19);
STRING_LITERAL(TMP243, "section (\'type\', \'proc\', etc.) expected", 39);
STRING_LITERAL(TMP244, "range expected", 14);
STRING_LITERAL(TMP245, "\'magic\' only allowed in system module", 37);
STRING_LITERAL(TMP246, "power of two expected", 21);
STRING_LITERAL(TMP247, "string literal may not be empty", 31);
STRING_LITERAL(TMP248, "calling convention expected", 27);
STRING_LITERAL(TMP249, "a proc can only have one calling convention", 43);
STRING_LITERAL(TMP250, "symbol must be imported if \'lib\' pragma is used", 47);
STRING_LITERAL(TMP251, "expression must be of type \'bool\'", 33);
STRING_LITERAL(TMP252, "constant expression expected", 28);
STRING_LITERAL(TMP253, "duplicate case label", 20);
STRING_LITERAL(TMP254, "range is empty", 14);
STRING_LITERAL(TMP255, "selector must be of an ordinal type, float or string", 52);
STRING_LITERAL(TMP256, "selector must be of an ordinal type", 35);
STRING_LITERAL(TMP257, "ord($1) must not be negative", 28);
STRING_LITERAL(TMP258, "len($1) must be less than 32768", 31);
STRING_LITERAL(TMP259, "wrong number of variables", 25);
STRING_LITERAL(TMP260, "only a \'ref object\' can be raised", 33);
STRING_LITERAL(TMP261, "\'break\' only allowed in loop construct", 38);
STRING_LITERAL(TMP262, "type \'$1\' has unknown size", 26);
STRING_LITERAL(TMP263, "a constant can only be initialized with a constant expression", 61);
STRING_LITERAL(TMP264, "a constant needs a value", 24);
STRING_LITERAL(TMP265, "the result type cannot be on open array", 39);
STRING_LITERAL(TMP266, "computing the type\'s size produced an overflow", 46);
STRING_LITERAL(TMP267, "set is too large", 16);
STRING_LITERAL(TMP268, "base type of a set must be an ordinal", 37);
STRING_LITERAL(TMP269, "inheritance only works with non-final objects", 45);
STRING_LITERAL(TMP270, "inheritance only works with an enum", 35);
STRING_LITERAL(TMP271, "illegal recursion in type \'$1\'", 30);
STRING_LITERAL(TMP272, "cannot instantiate: \'$1\'", 24);
STRING_LITERAL(TMP273, "expression has no address", 25);
STRING_LITERAL(TMP274, "address of \'$1\' may not escape its stack frame", 46);
STRING_LITERAL(TMP275, "for a \'var\' type a variable needs to be passed", 46);
STRING_LITERAL(TMP276, "type mismatch", 13);
STRING_LITERAL(TMP277, "type mismatch: got (", 20);
STRING_LITERAL(TMP278, "but expected one of: ", 21);
STRING_LITERAL(TMP279, "but expected \'$1\'", 17);
STRING_LITERAL(TMP280, "ambiguous call; both $1 and $2 match for: $3", 44);
STRING_LITERAL(TMP281, "wrong number of arguments", 25);
STRING_LITERAL(TMP282, "\'$1\' cannot be passed to a procvar", 34);
STRING_LITERAL(TMP283, "$1 cannot be declared in parameter declaration", 46);
STRING_LITERAL(TMP284, "pragmas are only allowed in the header of a proc", 48);
STRING_LITERAL(TMP285, "implementation of \'$1\' is not allowed", 37);
STRING_LITERAL(TMP286, "implementation of \'$1\' expected", 31);
STRING_LITERAL(TMP287, "no symbol to borrow from found", 30);
STRING_LITERAL(TMP288, "value of type \'$1\' has to be discarded", 38);
STRING_LITERAL(TMP289, "statement returns no value that can be discarded", 48);
STRING_LITERAL(TMP290, "conversion from $1 to $2 is invalid", 35);
STRING_LITERAL(TMP291, "cannot bind parameter \'$1\' twice", 32);
STRING_LITERAL(TMP292, "invalid order in array constructor", 34);
STRING_LITERAL(TMP293, "invalid order in enum \'$1\'", 26);
STRING_LITERAL(TMP294, "enum \'$1\' has holes", 19);
STRING_LITERAL(TMP295, "\'except\' or \'finally\' expected", 30);
STRING_LITERAL(TMP296, "after catch all \'except\' or \'finally\' no section may follow", 59);
STRING_LITERAL(TMP297, "option expected, but found \'$1\'", 31);
STRING_LITERAL(TMP298, "\'$1\' is not a label", 19);
STRING_LITERAL(TMP299, "not all cases are covered", 25);
STRING_LITERAL(TMP300, "unknown substitution variable: \'$1\'", 35);
STRING_LITERAL(TMP301, "complex statement requires indentation", 38);
STRING_LITERAL(TMP302, "\'$1\' is not callable", 20);
STRING_LITERAL(TMP303, "no pragmas allowed for $1", 25);
STRING_LITERAL(TMP304, "no generic parameters allowed for $1", 36);
STRING_LITERAL(TMP305, "invalid param kind: \'$1\'", 24);
STRING_LITERAL(TMP306, "default argument invalid", 24);
STRING_LITERAL(TMP307, "named parameter has to be an identifier", 39);
STRING_LITERAL(TMP308, "no return type allowed for $1", 29);
STRING_LITERAL(TMP309, "a type conversion needs exactly one argument", 44);
STRING_LITERAL(TMP310, "invalid pragma: $1", 18);
STRING_LITERAL(TMP311, "$1 not allowed here", 19);
STRING_LITERAL(TMP312, "invalid control flow: $1", 24);
STRING_LITERAL(TMP313, "invalid type: \'$1\'", 18);
STRING_LITERAL(TMP314, "\'[]\' needs a pointer or reference type", 38);
STRING_LITERAL(TMP315, "invalid expression", 18);
STRING_LITERAL(TMP316, "invalid expression: \'$1\'", 24);
STRING_LITERAL(TMP317, "enum has no value \'$1\'", 22);
STRING_LITERAL(TMP318, "named expression expected", 25);
STRING_LITERAL(TMP319, "named expression not allowed here", 33);
STRING_LITERAL(TMP320, "\'$1\' expects one type parameter", 31);
STRING_LITERAL(TMP321, "array expects two type parameters", 33);
STRING_LITERAL(TMP322, "invalid visibility: \'$1\'", 24);
STRING_LITERAL(TMP323, "initialization not allowed here", 31);
STRING_LITERAL(TMP324, "\'$1\' cannot be assigned to", 26);
STRING_LITERAL(TMP325, "iterators can only be defined at the module\'s top level", 55);
STRING_LITERAL(TMP326, "$1 needs a return type", 22);
STRING_LITERAL(TMP327, "no return type declared", 23);
STRING_LITERAL(TMP328, "invalid command: \'$1\'", 21);
STRING_LITERAL(TMP329, "\'$1\' is only allowed at top level", 33);
STRING_LITERAL(TMP330, "\'$1\' needs a parameter that has an object type", 46);
STRING_LITERAL(TMP331, "template/macro instantiation too nested", 39);
STRING_LITERAL(TMP332, "template/generic instantiation from here", 40);
STRING_LITERAL(TMP333, "invalid index value for tuple subscript", 39);
STRING_LITERAL(TMP334, "command expects a filename argument", 35);
STRING_LITERAL(TMP335, "please, specify a main module in the project configuration file", 63);
STRING_LITERAL(TMP336, "\'$1\' is not a concrete type.", 28);
STRING_LITERAL(TMP337, "invalid section start", 21);
STRING_LITERAL(TMP338, "grid table is not implemented", 29);
STRING_LITERAL(TMP339, "general parse error", 19);
STRING_LITERAL(TMP340, "new section expected", 20);
STRING_LITERAL(TMP341, "whitespace expected, got \'$1\'", 29);
STRING_LITERAL(TMP342, "\'$1\' is no valid index file", 27);
STRING_LITERAL(TMP343, "cannot render reStructuredText element \'$1\'", 43);
STRING_LITERAL(TMP344, "type \'var var\' is not allowed", 29);
STRING_LITERAL(TMP345, "instantiate \'$1\' explicitly", 27);
STRING_LITERAL(TMP346, "only a call operator can be a delegator", 39);
STRING_LITERAL(TMP347, "\'$1\' is not a variable, constant or a proc name", 47);
STRING_LITERAL(TMP348, "the macro body cannot be compiled, because the parameter \'$1\' h"
"as a generic type", 80);
STRING_LITERAL(TMP349, "Destructor signature is too specific. A destructor must be asso"
"ciated will all instantiations of a generic type", 111);
STRING_LITERAL(TMP350, "inline iterators can be used as parameters only for templates, "
"macros and other inline iterators", 96);
STRING_LITERAL(TMP351, "\'$1\' expects two arguments", 26);
STRING_LITERAL(TMP352, "\'$1\' expects object types", 25);
STRING_LITERAL(TMP353, "\'$1\' can never be of this subtype", 33);
STRING_LITERAL(TMP354, "interpretation requires too many iterations", 43);
STRING_LITERAL(TMP355, "cannot evaluate \'$1\'", 20);
STRING_LITERAL(TMP356, "field \'$1\' cannot be found", 26);
STRING_LITERAL(TMP357, "invalid conversion from type \'$1\'", 33);
STRING_LITERAL(TMP358, "assertion failed", 16);
STRING_LITERAL(TMP359, "cannot generate code for \'$1\'", 29);
STRING_LITERAL(TMP360, "$1 requires one parameter", 25);
STRING_LITERAL(TMP361, "unhandled exception: $1", 23);
STRING_LITERAL(TMP362, "macro returned a cyclic abstract syntax tree", 44);
STRING_LITERAL(TMP363, "\'$1\' is no macro or template", 28);
STRING_LITERAL(TMP364, "\'$1\' can have side effects", 26);
STRING_LITERAL(TMP365, "iterator within for loop context expected", 41);
STRING_LITERAL(TMP366, "\'let\' symbol requires an initialization", 39);
STRING_LITERAL(TMP367, "a thread var cannot be initialized explicitly", 45);
STRING_LITERAL(TMP368, "usage of \'$1\' is a user-defined error", 37);
STRING_LITERAL(TMP369, "illegal capture \'$1\'", 20);
STRING_LITERAL(TMP370, "\'$1\' cannot have \'closure\' calling convention", 45);
STRING_LITERAL(TMP371, "\'$1\' can only be used in compile-time context", 45);
STRING_LITERAL(TMP372, "cannot infer the type of the $1", 31);
STRING_LITERAL(TMP373, "cannot infer the return type of the proc", 40);
STRING_LITERAL(TMP374, "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 inferred from the expected signature.", 178);
STRING_LITERAL(TMP375, "The current compiler \'$1\' doesn\'t support the requested compila"
"tion target", 74);
STRING_LITERAL(TMP376, "cannot open \'$1\' [CannotOpenFile]", 33);
STRING_LITERAL(TMP377, "octal escape sequences do not exist; leading zero is ignored [O"
"ctalEscape]", 74);
STRING_LITERAL(TMP378, "\'$1\' is never read [XIsNeverRead]", 33);
STRING_LITERAL(TMP379, "\'$1\' might not have been initialized [XmightNotBeenInit]", 56);
STRING_LITERAL(TMP380, "$1 is deprecated [Deprecated]", 29);
STRING_LITERAL(TMP381, "config file \'$1\' is deprecated [ConfigDeprecated]", 49);
STRING_LITERAL(TMP382, "\'l\' should not be used as an identifier; may look like \'1\' (one"
") [SmallLshouldNotBeUsed]", 88);
STRING_LITERAL(TMP383, "unknown magic \'$1\' might crash the compiler [UnknownMagic]", 58);
STRING_LITERAL(TMP384, "redefinition of label \'$1\' [RedefinitionOfLabel]", 48);
STRING_LITERAL(TMP385, "unknown substitution \'$1\' [UnknownSubstitutionX]", 48);
STRING_LITERAL(TMP386, "language \'$1\' not supported [LanguageXNotSupported]", 51);
STRING_LITERAL(TMP387, "field \'$1\' not supported [FieldXNotSupported]", 45);
STRING_LITERAL(TMP388, "comment \'$1\' ignored [CommentXIgnored]", 38);
STRING_LITERAL(TMP389, "\'nil\' statement is deprecated; use an empty \'discard\' statement"
" instead [NilStmt]", 81);
STRING_LITERAL(TMP390, "\'$1\' has no type. Typeless parameters are deprecated; only allo"
"wed for \'template\' [TypelessParam]", 97);
STRING_LITERAL(TMP391, "possible inconsistency of thread local heaps [DifferentHeaps]", 61);
STRING_LITERAL(TMP392, "write to foreign heap [WriteToForeignHeap]", 42);
STRING_LITERAL(TMP393, "unsafe code: \'$1\' [UnsafeCode]", 30);
STRING_LITERAL(TMP394, "each identifier is a tuple [EachIdentIsTuple]", 45);
STRING_LITERAL(TMP395, "shadowed identifier: \'$1\' [ShadowIdent]", 39);
STRING_LITERAL(TMP396, "Cannot prove that \'$1\' is initialized. This will become a compi"
"le time error in the future. [ProveInit]", 103);
STRING_LITERAL(TMP397, "cannot prove that field \'$1\' is accessible [ProveField]", 55);
STRING_LITERAL(TMP398, "cannot prove index \'$1\' is valid [ProveIndex]", 45);
STRING_LITERAL(TMP399, "not GC-safe: \'$1\' [GcUnsafe]", 28);
STRING_LITERAL(TMP400, "\'$1\' might not have been initialized [Uninit]", 45);
STRING_LITERAL(TMP401, "\'$1\' uses GC\'ed memory [GcMem]", 30);
STRING_LITERAL(TMP402, "usage of a type with a destructor in a non destructible context"
". This will become a compile time error in the future. [Destruct"
"or]", 130);
STRING_LITERAL(TMP403, "$1 [LockLevel]", 14);
STRING_LITERAL(TMP404, "Special variable \'result\' is shadowed. [ResultShadowed]", 55);
STRING_LITERAL(TMP405, "$1 [User]", 9);
STRING_LITERAL(TMP406, "operation successful [Success]", 30);
STRING_LITERAL(TMP407, "operation successful ($# lines compiled; $# sec total; $#; $#) "
"[SuccessX]", 73);
STRING_LITERAL(TMP408, "line too long [LineTooLong]", 27);
STRING_LITERAL(TMP409, "\'$1\' is declared but not used [XDeclaredButNotUsed]", 51);
STRING_LITERAL(TMP410, "conversion to base object is not needed [ConvToBaseNotNeeded]", 61);
STRING_LITERAL(TMP411, "conversion from $1 to itself is pointless [ConvFromXtoItselfNot"
"Needed]", 70);
STRING_LITERAL(TMP412, "expression evaluates always to \'$1\' [ExprAlwaysX]", 49);
STRING_LITERAL(TMP413, "quit() called [QuitCalled]", 26);
STRING_LITERAL(TMP414, "$1 [Processing]", 15);
STRING_LITERAL(TMP415, "generated code listing: [CodeBegin]", 35);
STRING_LITERAL(TMP416, "end of listing [CodeEnd]", 24);
STRING_LITERAL(TMP417, "used config file \'$1\' [Conf]", 28);
STRING_LITERAL(TMP418, "added path: \'$1\' [Path]", 23);
STRING_LITERAL(TMP419, "condition is always true: \'$1\' [CondTrue]", 41);
STRING_LITERAL(TMP420, "name should be: \'$1\' [Name]", 27);
STRING_LITERAL(TMP421, "$1 [Pattern]", 12);
NIM_CONST TY163288 Msgkindtostr_163287 = {((NimStringDesc*) &TMP148),
((NimStringDesc*) &TMP149),
((NimStringDesc*) &TMP150),
((NimStringDesc*) &TMP151),
((NimStringDesc*) &TMP152),
((NimStringDesc*) &TMP153),
((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*) &TMP171),
((NimStringDesc*) &TMP336),
((NimStringDesc*) &TMP337),
((NimStringDesc*) &TMP338),
((NimStringDesc*) &TMP339),
((NimStringDesc*) &TMP340),
((NimStringDesc*) &TMP341),
((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*) &TMP152),
((NimStringDesc*) &TMP376),
((NimStringDesc*) &TMP377),
((NimStringDesc*) &TMP378),
((NimStringDesc*) &TMP379),
((NimStringDesc*) &TMP380),
((NimStringDesc*) &TMP381),
((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*) &TMP152),
((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*) &TMP405)}
;
STRING_LITERAL(TMP422, "Error: $1", 9);
STRING_LITERAL(TMP423, "Warning: $1", 11);
STRING_LITERAL(TMP424, "Hint: $1", 8);
STRING_LITERAL(TMP425, "No stack traceback available\012To create a stacktrace, rerun comp"
"ilation with ./koch temp ", 88);
STRING_LITERAL(TMP426, " <file>", 7);
STRING_LITERAL(TMP428, "ropes: invalid format string: ", 30);
STRING_LITERAL(TMP966, "$1($2, $3) Error: $4", 20);
STRING_LITERAL(TMP967, "$1($2, $3) Warning: $4", 22);
STRING_LITERAL(TMP968, "$1($2, $3) Hint: $4", 19);
STRING_LITERAL(TMP969, "  ", 2);
STRING_LITERAL(TMP986, "msgs.nim", 8);
NIM_CONST TY86345 TMP985 = {((NimStringDesc*) &TMP986),
((NI) 868)}
;
STRING_LITERAL(TMP2664, "suggest done", 12);
STRING_LITERAL(TMP3150, "(", 1);
STRING_LITERAL(TMP3151, ",", 1);
STRING_LITERAL(TMP3152, ")", 1);
NIM_CONST TY86345 TMP3747 = {((NimStringDesc*) &TMP986),
((NI) 875)}
;
Table163376 filenametoindextbl_163414;
extern TNimType NTI163376; /* Table */
TY163415* fileinfos_163432;
TNimType NTI163336; /* TFileInfo */
extern TNimType NTI149; /* string */
extern TNimType NTI161007; /* Rope */
TNimType NTI163351; /* seq[Rope] */
TNimType NTI163415; /* seq[TFileInfo] */
extern Tgcheap48216 gch_48244;
NI32 systemfileidx_163433;
extern NimStringDesc* tnl_159626;
extern NU32 gglobaloptions_154128;
Tlineinfo163338 gcmdlineinfo_163922;
Tlineinfo163338 gcodegenlineinfo_163961;
NU64 gnotes_164014;
NI gerrorcounter_164015;
NI ghintcounter_164016;
NI gwarncounter_164017;
NI gerrormax_164018;
TY164036* msgcontext_164053;
TNimType NTI163338; /* TLineInfo */
extern TNimType NTI112; /* int16 */
extern TNimType NTI114; /* int32 */
TNimType NTI164036; /* seq[TLineInfo] */
Tlineinfo163338 lasterror_164054;
NU8 erroroutputs_164056;
TY164057 writelnhook_164060;
Tlineinfo163338 gtrackpos_164500;
extern TY161023 errorhandler_161028;
extern NU8 gcmd_154130;
extern NIM_BOOL glistfullpaths_154142;
extern NU32 goptions_154126;
extern NI gverbosity_154137;
extern NimStringDesc* command_154239;
extern NI8 gexitcode_154129;
extern TNimType NTI3449; /* ValueError */
TNimType NTI163344; /* ERecoverableError */
TNimType NTI163975; /* ref ERecoverableError */
extern TSafePoint* exchandler_17043;
extern TNimType NTI3431; /* IOError */
extern Exception* currexception_17045;
TNimType NTI163005; /* TMsgKind */
TNimType NTI163332; /* TNoteKind */
TNimType NTI163334; /* TNoteKinds */
extern TNimType NTI3427; /* Exception */
TNimType NTI163346; /* ESuggestDone */
TNimType NTI164130; /* ref ESuggestDone */
N_NIMCALL(void, TMP132)(void* p, NI op) {
	TY163351* a;
	NI LOC1;
	a = (TY163351*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1], op);
	}
}
N_NIMCALL(void, TMP133)(void* p, NI op) {
	TY163415* a;
	NI LOC1;
	a = (TY163415*)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);
	nimGCvisit((void*)a->data[LOC1].dirtyfile, op);
	}
}

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

static N_INLINE(void, rtladdzct_51404)(Tcell46347* c) {
	addzct_49817((&gch_48244.zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Tcell46347* c;
	c = usrtocell_49846(p);
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_51404(c);
	}
	LA3: ;
}

static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	memcpy(((NCSTRING) ((&(*dest).data[((*dest).Sup.len)- 0]))), ((NCSTRING) ((*src).data)), (NI)((*src).Sup.len + ((NI) 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[((NI)((*dest).Sup.len + ((NI) 1)))- 0] = 0;
	(*dest).Sup.len += ((NI) 1);
}

N_NIMCALL(NimStringDesc*, tocchar_163439)(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(Ropeobj161009*, makecstring_163449)(NimStringDesc* s) {
	Ropeobj161009* result;
	NimStringDesc* res;
	Ropeobj161009* LOC9;
	result = 0;
	result = NIM_NIL;
	res = rawNewString(((NI) ((NI)(((NI) (((NF)(((double) ((s ? s->Sup.len : 0)))) * (NF)(1.1000000000000001e+000)))) + ((NI) 1)))));
	res = resizeString(res, 1);
appendString(res, ((NimStringDesc*) &TMP136));
	{
		NI i_163468;
		NI HEX3Atmp_163473;
		NI res_163476;
		i_163468 = 0;
		HEX3Atmp_163473 = 0;
		HEX3Atmp_163473 = (NI)((s ? s->Sup.len : 0) - ((NI) 1));
		res_163476 = ((NI) 0);
		{
			while (1) {
				NimStringDesc* LOC8;
				if (!(res_163476 <= HEX3Atmp_163473)) goto LA3;
				i_163468 = res_163476;
				{
					if (!(((NI) ((NI)((NI)(i_163468 + ((NI) 1)) % ((NI) 64)))) == ((NI) 0))) goto LA6;
					res = addChar(res, 34);
					res = resizeString(res, tnl_159626->Sup.len + 0);
appendString(res, tnl_159626);
					res = addChar(res, 34);
				}
				LA6: ;
				LOC8 = 0;
				LOC8 = tocchar_163439(s->data[i_163468]);
				res = resizeString(res, LOC8->Sup.len + 0);
appendString(res, LOC8);
				res_163476 += ((NI) 1);
			} LA3: ;
		}
	}
	res = addChar(res, 34);
	LOC9 = 0;
	LOC9 = rope_161320(res);
	add_161534(&result, LOC9);
	return result;
}

N_NIMCALL(void, newfileinfo_163495)(NimStringDesc* fullpath, NimStringDesc* projpath, Tfileinfo163336* 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*) &TMP135)));
	unsureAsgnRef((void**) (&(*Result).quotedname), makecstring_163449(filename));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((gglobaloptions_154128 &(1<<((((NU8) 27))&31)))!=0);
		if (LOC3) goto LA4;
		LOC3 = NIM_TRUE;
		LA4: ;
		if (!LOC3) goto LA5;
		unsureAsgnRef((void**) (&(*Result).lines), (TY163351*) newSeq((&NTI163351), 0));
	}
	LA5: ;
}

N_NIMCALL(Tlineinfo163338, newlineinfo_163867)(NI32 fileinfoidx, NI line, NI col) {
	Tlineinfo163338 result;
	memset((void*)(&result), 0, sizeof(result));
	result.fileindex = fileinfoidx;
	result.line = ((NI16) (line));
	result.col = ((NI16) (col));
	return result;
}
N_NIMCALL(void, TMP140)(void* p, NI op) {
	TY164036* a;
	NI LOC1;
	a = (TY164036*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}

N_NIMCALL(Tlineinfo163338, unknownlineinfo_164027)(void) {
	Tlineinfo163338 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_164789)(Tlineinfo163338 a, Tlineinfo163338 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_155205)(FILE* f, NimStringDesc** x, NI xLen0) {
	{
		NimStringDesc* i_155221;
		NI i_155229;
		i_155221 = 0;
		i_155229 = ((NI) 0);
		{
			while (1) {
				if (!(i_155229 < xLen0)) goto LA3;
				i_155221 = x[i_155229];
				write_13457(f, i_155221);
				i_155229 += ((NI) 1);
			} LA3: ;
		}
	}
	write_13457(f, ((NimStringDesc*) &TMP144));
}

N_NIMCALL(void, msgwriteln_164536)(NimStringDesc* s) {
	{
		if (!!(writelnhook_164060.ClPrc == 0)) goto LA3;
		writelnhook_164060.ClEnv? writelnhook_164060.ClPrc(s, writelnhook_164060.ClEnv):((TMP141)(writelnhook_164060.ClPrc))(s);
	}
	goto LA1;
	LA3: ;
	{
		if (!((gglobaloptions_154128 &(1<<((((NU8) 22))&31)))!=0)) goto LA6;
		{
			TY164566 LOC12;
			if (!((erroroutputs_164056 &(1<<((((NU8) 1))&7)))!=0)) goto LA10;
			memset((void*)LOC12, 0, sizeof(LOC12));
			LOC12[0] = copyString(s);
			writeln_155205(stderr, LOC12, 1);
		}
		LA10: ;
	}
	goto LA1;
	LA6: ;
	{
		{
			TY164566 LOC18;
			if (!((erroroutputs_164056 &(1<<((((NU8) 0))&7)))!=0)) goto LA16;
			memset((void*)LOC18, 0, sizeof(LOC18));
			LOC18[0] = copyString(s);
			writeln_155205(stdout, LOC18, 1);
		}
		LA16: ;
	}
	LA1: ;
}

N_NIMCALL(NimStringDesc*, tomsgfilename_164429)(Tlineinfo163338 info) {
	NimStringDesc* result;
	result = 0;
	{
		if (!(info.fileindex < ((NI32) 0))) goto LA3;
		result = copyString(((NimStringDesc*) &TMP147));
	}
	goto LA1;
	LA3: ;
	{
		if (!glistfullpaths_154142) goto LA6;
		result = copyString(fileinfos_163432->data[info.fileindex].fullpath);
	}
	goto LA1;
	LA6: ;
	{
		result = copyString(fileinfos_163432->data[info.fileindex].projpath);
	}
	LA1: ;
	return result;
}

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

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

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

N_NIMCALL(void, writecontext_164800)(Tlineinfo163338 lastinfo) {
	Tlineinfo163338 info;
	info = lastinfo;
	{
		NI i_164824;
		NI HEX3Atmp_164828;
		NI res_164831;
		i_164824 = 0;
		HEX3Atmp_164828 = 0;
		HEX3Atmp_164828 = (NI)((msgcontext_164053 ? msgcontext_164053->Sup.len : 0) - ((NI) 1));
		res_164831 = ((NI) 0);
		{
			while (1) {
				if (!(res_164831 <= HEX3Atmp_164828)) goto LA3;
				i_164824 = res_164831;
				{
					NIM_BOOL LOC6;
					NIM_BOOL LOC7;
					NIM_BOOL LOC9;
					TY164825 LOC12;
					NimStringDesc* LOC13;
					LOC6 = 0;
					LOC7 = 0;
					LOC7 = HEX3DHEX3D_164789(msgcontext_164053->data[i_164824], lastinfo);
					LOC6 = !(LOC7);
					if (!(LOC6)) goto LA8;
					LOC9 = 0;
					LOC9 = HEX3DHEX3D_164789(msgcontext_164053->data[i_164824], info);
					LOC6 = !(LOC9);
					LA8: ;
					if (!LOC6) goto LA10;
					memset((void*)LOC12, 0, sizeof(LOC12));
					LOC12[0] = tomsgfilename_164429(msgcontext_164053->data[i_164824]);
					LOC12[1] = coordtostr_164606(((NI) (msgcontext_164053->data[i_164824].line)));
					LOC12[2] = coordtostr_164606(((NI) ((NI16)(msgcontext_164053->data[i_164824].col + ((NI16) 1)))));
					LOC12[3] = getmessagestr_164626(((NU16) 184), ((NimStringDesc*) &TMP135));
					LOC13 = 0;
					LOC13 = nsuFormatOpenArray(((NimStringDesc*) &TMP146), LOC12, 4);
					msgwriteln_164536(LOC13);
				}
				LA10: ;
				info = msgcontext_164053->data[i_164824];
				res_164831 += ((NI) 1);
			} LA3: ;
		}
	}
}

N_NIMCALL(NIM_BOOL, ignoremsgbecauseofidetools_164850)(NU16 msg) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC2;
	result = 0;
	LOC1 = 0;
	LOC2 = 0;
	LOC2 = (((NU16) 4) <= msg);
	if (!(LOC2)) goto LA3;
	LOC2 = (gcmd_154130 == ((NU8) 14));
	LA3: ;
	LOC1 = LOC2;
	if (!(LOC1)) goto LA4;
	LOC1 = !(((gglobaloptions_154128 &(1<<((((NU8) 28))&31)))!=0));
	LA4: ;
	result = LOC1;
	return result;
}
N_NIMCALL(void, TMP427)(void* p, NI op) {
	Erecoverableerror163344* a;
	a = (Erecoverableerror163344*)p;
	nimGCvisit((void*)(*a).Sup.Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.Sup.message, op);
	nimGCvisit((void*)(*a).Sup.Sup.trace, op);
}

N_NOINLINE(void, raiserecoverableerror_163969)(NimStringDesc* msg) {
	Erecoverableerror163344* e_163974;
	NimStringDesc* LOC1;
	e_163974 = 0;
	e_163974 = (Erecoverableerror163344*) newObj((&NTI163975), sizeof(Erecoverableerror163344));
	(*e_163974).Sup.Sup.Sup.m_type = (&NTI163344);
	LOC1 = 0;
	LOC1 = (*e_163974).Sup.Sup.message; (*e_163974).Sup.Sup.message = copyStringRC1(msg);
	if (LOC1) nimGCunrefNoCycle(LOC1);
	raiseException((Exception*)e_163974, "ERecoverableError");
}

N_NIMCALL(void, handleerror_164647)(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 = (((NI) 3) <= gverbosity_154137);
			LA11: ;
			LOC9 = LOC10;
			if (LOC9) goto LA12;
			LOC9 = (msg == ((NU16) 2));
			LA12: ;
			if (!LOC9) goto LA13;
			{
				NIM_BOOL LOC17;
				LOC17 = 0;
				LOC17 = stacktraceavailable_17930();
				if (!(LOC17)) goto LA18;
				LOC17 = writelnhook_164060.ClPrc == 0;
				LA18: ;
				if (!LOC17) goto LA19;
				writestacktrace_16407();
			}
			goto LA15;
			LA19: ;
			{
				NimStringDesc* LOC22;
				LOC22 = 0;
				LOC22 = rawNewString(command_154239->Sup.len + 95);
appendString(LOC22, ((NimStringDesc*) &TMP425));
appendString(LOC22, command_154239);
appendString(LOC22, ((NimStringDesc*) &TMP426));
				msgwriteln_164536(LOC22);
			}
			LA15: ;
		}
		LA13: ;
		exit(((NI) 1));
	}
	LA5: ;
	{
		NIM_BOOL LOC25;
		LOC25 = 0;
		LOC25 = (((NU16) 0) <= msg);
		if (!(LOC25)) goto LA26;
		LOC25 = (msg <= ((NU16) 229));
		LA26: ;
		if (!LOC25) goto LA27;
		gerrorcounter_164015 += ((NI) 1);
		gexitcode_154129 = ((NI8) 1);
		{
			if (!(gerrormax_164018 <= gerrorcounter_164015)) goto LA31;
			{
				NIM_BOOL LOC35;
				NIM_BOOL LOC36;
				LOC35 = 0;
				LOC36 = 0;
				LOC36 = NIM_FALSE;
				if (LOC36) goto LA37;
				LOC36 = (((NI) 3) <= gverbosity_154137);
				LA37: ;
				LOC35 = LOC36;
				if (LOC35) goto LA38;
				LOC35 = (msg == ((NU16) 2));
				LA38: ;
				if (!LOC35) goto LA39;
				{
					NIM_BOOL LOC43;
					LOC43 = 0;
					LOC43 = stacktraceavailable_17930();
					if (!(LOC43)) goto LA44;
					LOC43 = writelnhook_164060.ClPrc == 0;
					LA44: ;
					if (!LOC43) goto LA45;
					writestacktrace_16407();
				}
				goto LA41;
				LA45: ;
				{
					NimStringDesc* LOC48;
					LOC48 = 0;
					LOC48 = rawNewString(command_154239->Sup.len + 95);
appendString(LOC48, ((NimStringDesc*) &TMP425));
appendString(LOC48, command_154239);
appendString(LOC48, ((NimStringDesc*) &TMP426));
					msgwriteln_164536(LOC48);
				}
				LA41: ;
			}
			LA39: ;
			exit(((NI) 1));
		}
		goto LA29;
		LA31: ;
		{
			NIM_BOOL LOC50;
			LOC50 = 0;
			LOC50 = (eh == ((NU8) 1));
			if (!(LOC50)) goto LA51;
			LOC50 = !((gcmd_154130 == ((NU8) 14)));
			LA51: ;
			if (!LOC50) goto LA52;
			{
				NIM_BOOL LOC56;
				NIM_BOOL LOC57;
				LOC56 = 0;
				LOC57 = 0;
				LOC57 = NIM_FALSE;
				if (LOC57) goto LA58;
				LOC57 = (((NI) 3) <= gverbosity_154137);
				LA58: ;
				LOC56 = LOC57;
				if (LOC56) goto LA59;
				LOC56 = (msg == ((NU16) 2));
				LA59: ;
				if (!LOC56) goto LA60;
				{
					NIM_BOOL LOC64;
					LOC64 = 0;
					LOC64 = stacktraceavailable_17930();
					if (!(LOC64)) goto LA65;
					LOC64 = writelnhook_164060.ClPrc == 0;
					LA65: ;
					if (!LOC64) goto LA66;
					writestacktrace_16407();
				}
				goto LA62;
				LA66: ;
				{
					NimStringDesc* LOC69;
					LOC69 = 0;
					LOC69 = rawNewString(command_154239->Sup.len + 95);
appendString(LOC69, ((NimStringDesc*) &TMP425));
appendString(LOC69, command_154239);
appendString(LOC69, ((NimStringDesc*) &TMP426));
					msgwriteln_164536(LOC69);
				}
				LA62: ;
			}
			LA60: ;
			exit(((NI) 1));
		}
		goto LA29;
		LA52: ;
		{
			if (!(eh == ((NU8) 2))) goto LA71;
			raiserecoverableerror_163969(s);
		}
		goto LA29;
		LA71: ;
		LA29: ;
	}
	LA27: ;
}

N_NIMCALL(void, rawmessage_164888)(NU16 msg, NimStringDesc** args, NI argsLen0) {
	NimStringDesc* frmt;
	NimStringDesc* s;
	NimStringDesc* LOC22;
	NimStringDesc* LOC23;
{	frmt = 0;
	switch (msg) {
	case ((NU16) 0) ... ((NU16) 229):
	{
		Tlineinfo163338 LOC2;
		LOC2 = unknownlineinfo_164027();
		writecontext_164800(LOC2);
		frmt = copyString(((NimStringDesc*) &TMP422));
	}
	break;
	case ((NU16) 230) ... ((NU16) 260):
	{
		Tlineinfo163338 LOC12;
		{
			if (!!(((goptions_154126 &(1<<((((NU8) 11))&31)))!=0))) goto LA6;
			goto BeforeRet;
		}
		LA6: ;
		{
			if (!!(((gnotes_164014 &(IL64(1)<<(((((NU16) (msg))- 230))&IL64(63))))!=0))) goto LA10;
			goto BeforeRet;
		}
		LA10: ;
		LOC12 = unknownlineinfo_164027();
		writecontext_164800(LOC12);
		frmt = copyString(((NimStringDesc*) &TMP423));
		gwarncounter_164017 += ((NI) 1);
	}
	break;
	case ((NU16) 261) ... ((NU16) 277):
	{
		{
			if (!!(((goptions_154126 &(1<<((((NU8) 12))&31)))!=0))) goto LA16;
			goto BeforeRet;
		}
		LA16: ;
		{
			if (!!(((gnotes_164014 &(IL64(1)<<(((((NU16) (msg))- 230))&IL64(63))))!=0))) goto LA20;
			goto BeforeRet;
		}
		LA20: ;
		frmt = copyString(((NimStringDesc*) &TMP424));
		ghintcounter_164016 += ((NI) 1);
	}
	break;
	}
	LOC22 = 0;
	LOC22 = msgkindtostring_164616(msg);
	LOC23 = 0;
	LOC23 = nsuFormatOpenArray(LOC22, args, argsLen0);
	s = nsuFormatSingleElem(frmt, LOC23);
	{
		NIM_BOOL LOC26;
		LOC26 = 0;
		LOC26 = ignoremsgbecauseofidetools_164850(msg);
		if (!!(LOC26)) goto LA27;
		msgwriteln_164536(s);
	}
	LA27: ;
	handleerror_164647(msg, ((NU8) 1), s);
	}BeforeRet: ;
}

N_NIMCALL(void, rawmessage_164960)(NU16 msg, NimStringDesc* arg) {
	TY164566 LOC1;
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = copyString(arg);
	rawmessage_164888(msg, LOC1, 1);
}

N_NIMCALL(void, internalerror_165218)(NimStringDesc* errmsg) {
	Tlineinfo163338 LOC5;
{	{
		if (!(gcmd_154130 == ((NU8) 14))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	LOC5 = unknownlineinfo_164027();
	writecontext_164800(LOC5);
	rawmessage_164960(((NU16) 2), errmsg);
	}BeforeRet: ;
}

N_NIMCALL(void, HEX3Aanonymous_165371)(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_165218(LOC2);
	}
	break;
	case ((NU8) 0):
	{
		NU16 LOC4;
		LOC4 = 0;
		{
			if (!usewarning) goto LA7;
			LOC4 = ((NU16) 230);
		}
		goto LA5;
		LA7: ;
		{
			LOC4 = ((NU16) 3);
		}
		LA5: ;
		rawmessage_164960(LOC4, msg);
	}
	break;
	}
}

static N_INLINE(NIM_BOOL, canbecycleroot_49867)(Tcell46347* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).typ).flags &(1<<((((NU8) 1))&7)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_50623)(Tcell46347* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_47065((&gch_48244.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, incref_52222)(Tcell46347* c) {
	(*c).refcount = (NI)((NU32)((*c).refcount) + (NU32)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_49867(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_50623(c);
	}
	LA4: ;
}

static N_INLINE(void, decref_51804)(Tcell46347* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_51404(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_49867(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_50623(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Tcell46347* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_49846(src);
		incref_52222(LOC5);
	}
	LA3: ;
	{
		Tcell46347* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_49846((*dest));
		decref_51804(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

static N_INLINE(NIM_BOOL, contains_165086)(Slice165076 s, NU16 value) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = (s.a <= value);
	if (!(LOC1)) goto LA2;
	LOC1 = (value <= s.b);
	LA2: ;
	result = LOC1;
	return result;
}

static N_INLINE(Slice165076, HEX2EHEX2E_165067)(NU16 a, NU16 b) {
	Slice165076 result;
	memset((void*)(&result), 0, sizeof(result));
	result.a = a;
	result.b = b;
	return result;
}

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

N_NIMCALL(NimStringDesc*, tofullpath_164276)(NI32 fileidx) {
	NimStringDesc* result;
	result = 0;
	{
		if (!(fileidx < ((NI32) 0))) goto LA3;
		result = copyString(((NimStringDesc*) &TMP147));
	}
	goto LA1;
	LA3: ;
	{
		result = copyString(fileinfos_163432->data[fileidx].fullpath);
	}
	LA1: ;
	return result;
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Tcell46347* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_49846(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Tcell46347* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_49846((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA11;
			rtladdzct_51404(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(void, addsourceline_165254)(NI32 fileidx, NimStringDesc* line) {
	Ropeobj161009* LOC1;
	LOC1 = 0;
	LOC1 = rope_161320(line);
	fileinfos_163432->data[fileidx].lines = (TY163351*) incrSeq(&(fileinfos_163432->data[fileidx].lines)->Sup, sizeof(Ropeobj161009*));
	asgnRefNoCycle((void**) (&fileinfos_163432->data[fileidx].lines->data[fileinfos_163432->data[fileidx].lines->Sup.len-1]), LOC1);
}

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

static N_INLINE(Exception*, getCurrentException)(void) {
	Exception* result;
	result = 0;
	result = currexception_17045;
	return result;
}

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

N_NIMCALL(Ropeobj161009*, sourceline_163991)(Tlineinfo163338 i) {
	Ropeobj161009* result;
{	result = 0;
	{
		if (!(i.fileindex < ((NI32) 0))) goto LA3;
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		TSafePoint TMP970;
		LOC7 = 0;
		LOC7 = !(((gglobaloptions_154128 &(1<<((((NU8) 27))&31)))!=0));
		if (!(LOC7)) goto LA8;
		LOC7 = ((fileinfos_163432->data[i.fileindex].lines ? fileinfos_163432->data[i.fileindex].lines->Sup.len : 0) == ((NI) 0));
		LA8: ;
		if (!LOC7) goto LA9;
		pushSafePoint(&TMP970);
		TMP970.status = _setjmp(TMP970.context);
		if (TMP970.status == 0) {
			{
				NimStringDesc* line_165296;
				NimStringDesc* HEX3Atmp_165332;
				FILE* f_165335;
				NimStringDesc* res_165337;
				line_165296 = 0;
				HEX3Atmp_165332 = 0;
				HEX3Atmp_165332 = tofullpath_164276(i.fileindex);
				f_165335 = open_13217(HEX3Atmp_165332, ((NU8) 0), ((NI) 8000));
				res_165337 = rawNewString(((NI) 80));
				{
					while (1) {
						NIM_BOOL LOC15;
						LOC15 = 0;
						LOC15 = readline_13481(f_165335, (&res_165337));
						if (!LOC15) goto LA14;
						line_165296 = res_165337;
						addsourceline_165254(i.fileindex, line_165296);
					} LA14: ;
				}
				fclose(f_165335);
			}
			popSafePoint();
		}
		else {
			popSafePoint();
			if (isObj(getCurrentException()->Sup.m_type, (&NTI3431))) {
				TMP970.status = 0;
				popCurrentException();
			}
		}
		if (TMP970.status != 0) reraiseException();
	}
	LA9: ;
	{
		NimStringDesc* LOC22;
		if (!!((((NI) (i.fileindex)) < (fileinfos_163432 ? fileinfos_163432->Sup.len : 0)))) goto LA20;
		LOC22 = 0;
		LOC22 = HEX24_165306(TMP985);
		internalerror_165218(LOC22);
	}
	LA20: ;
	{
		if (!((fileinfos_163432->data[i.fileindex].lines ? fileinfos_163432->data[i.fileindex].lines->Sup.len : 0) < ((NI) (i.line)))) goto LA25;
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA25: ;
	result = fileinfos_163432->data[i.fileindex].lines->data[(NI16)(i.line - ((NI16) 1))];
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, writesurroundingsrc_164972)(Tlineinfo163338 info) {
	NimStringDesc* LOC1;
	Ropeobj161009* LOC2;
	NimStringDesc* LOC3;
	NimStringDesc* LOC4;
	NimStringDesc* LOC5;
	LOC1 = 0;
	LOC2 = 0;
	LOC2 = sourceline_163991(info);
	LOC3 = 0;
	LOC3 = HEX24_162131(LOC2);
	LOC1 = rawNewString(LOC3->Sup.len + 2);
appendString(LOC1, ((NimStringDesc*) &TMP969));
appendString(LOC1, LOC3);
	msgwriteln_164536(LOC1);
	LOC4 = 0;
	LOC5 = 0;
	LOC5 = nsuRepeatChar(32, ((NI) (info.col)));
	LOC4 = rawNewString(LOC5->Sup.len + 3);
appendString(LOC4, ((NimStringDesc*) &TMP969));
appendString(LOC4, LOC5);
appendChar(LOC4, 94);
	msgwriteln_164536(LOC4);
}

N_NIMCALL(void, limessage_164997)(Tlineinfo163338 info, NU16 msg, NimStringDesc* arg, NU8 eh) {
	NimStringDesc* frmt;
	NIM_BOOL ignoremsg;
	NimStringDesc* s;
	TY164825 LOC12;
	frmt = 0;
	ignoremsg = NIM_FALSE;
	switch (msg) {
	case ((NU16) 0) ... ((NU16) 229):
	{
		writecontext_164800(info);
		frmt = copyString(((NimStringDesc*) &TMP966));
		lasterror_164054 = info;
	}
	break;
	case ((NU16) 230) ... ((NU16) 260):
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = !(((goptions_154126 &(1<<((((NU8) 11))&31)))!=0));
		if (LOC3) goto LA4;
		LOC3 = !(((gnotes_164014 &(IL64(1)<<(((((NU16) (msg))- 230))&IL64(63))))!=0));
		LA4: ;
		ignoremsg = LOC3;
		{
			if (!!(ignoremsg)) goto LA7;
			writecontext_164800(info);
		}
		LA7: ;
		frmt = copyString(((NimStringDesc*) &TMP967));
		gwarncounter_164017 += ((NI) 1);
	}
	break;
	case ((NU16) 261) ... ((NU16) 277):
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = !(((goptions_154126 &(1<<((((NU8) 12))&31)))!=0));
		if (LOC10) goto LA11;
		LOC10 = !(((gnotes_164014 &(IL64(1)<<(((((NU16) (msg))- 230))&IL64(63))))!=0));
		LA11: ;
		ignoremsg = LOC10;
		frmt = copyString(((NimStringDesc*) &TMP968));
		ghintcounter_164016 += ((NI) 1);
	}
	break;
	}
	memset((void*)LOC12, 0, sizeof(LOC12));
	LOC12[0] = tomsgfilename_164429(info);
	LOC12[1] = coordtostr_164606(((NI) (info.line)));
	LOC12[2] = coordtostr_164606(((NI) ((NI16)(info.col + ((NI16) 1)))));
	LOC12[3] = getmessagestr_164626(msg, arg);
	s = nsuFormatOpenArray(frmt, LOC12, 4);
	{
		NIM_BOOL LOC15;
		NIM_BOOL LOC17;
		LOC15 = 0;
		LOC15 = !(ignoremsg);
		if (!(LOC15)) goto LA16;
		LOC17 = 0;
		LOC17 = ignoremsgbecauseofidetools_164850(msg);
		LOC15 = !(LOC17);
		LA16: ;
		if (!LOC15) goto LA18;
		msgwriteln_164536(s);
		{
			NIM_BOOL LOC22;
			Slice165076 LOC24;
			LOC22 = 0;
			LOC22 = (((NI) 2) <= gverbosity_154137);
			if (!(LOC22)) goto LA23;
			LOC24 = HEX2EHEX2E_165067(((NU16) 0), ((NU16) 229));
			LOC22 = contains_165086(LOC24, msg);
			LA23: ;
			if (!LOC22) goto LA25;
			writesurroundingsrc_164972(info);
		}
		LA25: ;
	}
	LA18: ;
	handleerror_164647(msg, eh, s);
}

N_NIMCALL(void, internalerror_165199)(Tlineinfo163338 info, NimStringDesc* errmsg) {
{	{
		if (!(gcmd_154130 == ((NU8) 14))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	writecontext_164800(info);
	limessage_164997(info, ((NU16) 2), errmsg, ((NU8) 1));
	}BeforeRet: ;
}

N_NIMCALL(NimStringDesc*, tofullpathconsiderdirty_164407)(NI32 fileidx) {
	NimStringDesc* result;
	result = 0;
	{
		if (!(fileidx < ((NI32) 0))) goto LA3;
		result = copyString(((NimStringDesc*) &TMP147));
	}
	goto LA1;
	LA3: ;
	{
		if (!!(fileinfos_163432->data[fileidx].dirtyfile == 0)) goto LA6;
		result = copyString(fileinfos_163432->data[fileidx].dirtyfile);
	}
	goto LA1;
	LA6: ;
	{
		result = copyString(fileinfos_163432->data[fileidx].fullpath);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, message_165188)(Tlineinfo163338 info, NU16 msg, NimStringDesc* arg) {
	limessage_164997(info, msg, arg, ((NU8) 0));
}

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

N_NIMCALL(NI32, fileinfoidx_163533)(NimStringDesc* filename, NIM_BOOL* isknownfile) {
	NI32 result;
	NimStringDesc* volatile canon;
	NIM_BOOL pseudopath;
	TSafePoint TMP1139;
	result = 0;
	canon = 0;
	pseudopath = NIM_FALSE;
	pushSafePoint(&TMP1139);
	TMP1139.status = _setjmp(TMP1139.context);
	if (TMP1139.status == 0) {
		canon = canonicalizepath_154374(filename);
		shallow_87024((&canon));
		popSafePoint();
	}
	else {
		popSafePoint();
		{
			TMP1139.status = 0;
			canon = copyString(filename);
			pseudopath = NIM_TRUE;
			popCurrentException();
		}
	}
	if (TMP1139.status != 0) reraiseException();
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = haskey_163543(filenametoindextbl_163414, canon);
		if (!LOC6) goto LA7;
		result = HEX5BHEX5D_163586(filenametoindextbl_163414, canon);
	}
	goto LA4;
	LA7: ;
	{
		NimStringDesc* LOC10;
		Tfileinfo163336 LOC16;
		(*isknownfile) = NIM_FALSE;
		result = ((NI32) ((fileinfos_163432 ? fileinfos_163432->Sup.len : 0)));
		LOC10 = 0;
		{
			if (!pseudopath) goto LA13;
			LOC10 = copyString(filename);
		}
		goto LA11;
		LA13: ;
		{
			LOC10 = shortendir_154407(canon);
		}
		LA11: ;
		memset((void*)(&LOC16), 0, sizeof(LOC16));
		newfileinfo_163495(canon, LOC10, (&LOC16));
		fileinfos_163432 = (TY163415*) incrSeq(&(fileinfos_163432)->Sup, sizeof(Tfileinfo163336));
		genericAssign((void*)(&fileinfos_163432->data[fileinfos_163432->Sup.len-1]), (void*)(&LOC16), (&NTI163336));
		HEX5BHEX5DHEX3D_163635((&filenametoindextbl_163414), canon, result);
	}
	LA4: ;
	return result;
}

N_NIMCALL(NI32, fileinfoidx_163854)(NimStringDesc* filename) {
	NI32 result;
	NIM_BOOL dummy;
	result = 0;
	dummy = 0;
	result = fileinfoidx_163533(filename, (&dummy));
	return result;
}

N_NIMCALL(void, localerror_165155)(Tlineinfo163338 info, NU16 msg, NimStringDesc* arg) {
	limessage_164997(info, msg, arg, ((NU8) 0));
}

N_NIMCALL(NimStringDesc*, tofilename_164266)(NI32 fileidx) {
	NimStringDesc* result;
	result = 0;
	{
		if (!(fileidx < ((NI32) 0))) goto LA3;
		result = copyString(((NimStringDesc*) &TMP147));
	}
	goto LA1;
	LA3: ;
	{
		result = copyString(fileinfos_163432->data[fileidx].projpath);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, localerror_165166)(Tlineinfo163338 info, NimStringDesc* arg) {
	limessage_164997(info, ((NU16) 4), arg, ((NU8) 0));
}

N_NIMCALL(void, msgquit_164107)(NI8 x) {
	exit(((NI) (x)));
}

N_NIMCALL(void, setdirtyfile_164286)(NI32 fileidx, NimStringDesc* filename) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = fileinfos_163432->data[fileidx].dirtyfile; fileinfos_163432->data[fileidx].dirtyfile = copyStringRC1(filename);
	if (LOC1) nimGCunrefNoCycle(LOC1);
}

N_NIMCALL(void, suggestwriteln_164069)(NimStringDesc* s) {
	{
		if (!((erroroutputs_164056 &(1<<((((NU8) 0))&7)))!=0)) goto LA3;
		{
			TY164566 LOC9;
			if (!writelnhook_164060.ClPrc == 0) goto LA7;
			memset((void*)LOC9, 0, sizeof(LOC9));
			LOC9[0] = copyString(s);
			writeln_155205(stdout, LOC9, 1);
		}
		goto LA5;
		LA7: ;
		{
			writelnhook_164060.ClEnv? writelnhook_164060.ClPrc(s, writelnhook_164060.ClEnv):((TMP1964)(writelnhook_164060.ClPrc))(s);
		}
		LA5: ;
	}
	LA3: ;
}

N_NIMCALL(void, globalerror_165134)(Tlineinfo163338 info, NU16 msg, NimStringDesc* arg) {
	limessage_164997(info, msg, arg, ((NU8) 2));
}

N_NIMCALL(void, pushinfocontext_164192)(Tlineinfo163338 info) {
	msgcontext_164053 = (TY164036*) incrSeq(&(msgcontext_164053)->Sup, sizeof(Tlineinfo163338));
	msgcontext_164053->data[msgcontext_164053->Sup.len-1] = info;
}

N_NIMCALL(void, popinfocontext_164211)(void) {
	msgcontext_164053 = (TY164036*) setLengthSeq(&(msgcontext_164053)->Sup, sizeof(Tlineinfo163338), ((NI) ((NI)((msgcontext_164053 ? msgcontext_164053->Sup.len : 0) - ((NI) 1)))));
}
N_NIMCALL(void, TMP2663)(void* p, NI op) {
	Esuggestdone163346* a;
	a = (Esuggestdone163346*)p;
	nimGCvisit((void*)(*a).Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.message, op);
	nimGCvisit((void*)(*a).Sup.trace, op);
}

N_NIMCALL(void, suggestquit_164125)(void) {
	Esuggestdone163346* e_164129;
	NimStringDesc* LOC1;
	e_164129 = 0;
	e_164129 = (Esuggestdone163346*) newObj((&NTI164130), sizeof(Esuggestdone163346));
	(*e_164129).Sup.Sup.m_type = (&NTI163346);
	LOC1 = 0;
	LOC1 = (*e_164129).Sup.message; (*e_164129).Sup.message = copyStringRC1(((NimStringDesc*) &TMP2664));
	if (LOC1) nimGCunrefNoCycle(LOC1);
	raiseException((Exception*)e_164129, "ESuggestDone");
}

N_NIMCALL(void, globalerror_165145)(Tlineinfo163338 info, NimStringDesc* arg) {
	limessage_164997(info, ((NU16) 4), arg, ((NU8) 2));
}

N_NIMCALL(NimStringDesc*, formatmsg_164982)(Tlineinfo163338 info, NU16 msg, NimStringDesc* arg) {
	NimStringDesc* result;
	NimStringDesc* frmt;
	TY164825 LOC4;
	result = 0;
	switch (msg) {
	case ((NU16) 230) ... ((NU16) 260):
	{
		frmt = copyString(((NimStringDesc*) &TMP967));
	}
	break;
	case ((NU16) 261) ... ((NU16) 277):
	{
		frmt = copyString(((NimStringDesc*) &TMP968));
	}
	break;
	default:
	{
		frmt = copyString(((NimStringDesc*) &TMP966));
	}
	break;
	}
	memset((void*)LOC4, 0, sizeof(LOC4));
	LOC4[0] = tomsgfilename_164429(info);
	LOC4[1] = coordtostr_164606(((NI) (info.line)));
	LOC4[2] = coordtostr_164606(((NI) ((NI16)(info.col + ((NI16) 1)))));
	LOC4[3] = getmessagestr_164626(msg, arg);
	result = nsuFormatOpenArray(frmt, LOC4, 4);
	return result;
}

N_NIMCALL(void, fatal_165123)(Tlineinfo163338 info, NU16 msg, NimStringDesc* arg) {
	limessage_164997(info, msg, arg, ((NU8) 1));
}

N_NIMCALL(Tlineinfo163338, getinfocontext_164237)(NI index) {
	Tlineinfo163338 result;
	NI L;
	NI i;
	memset((void*)(&result), 0, sizeof(result));
	L = (msgcontext_164053 ? msgcontext_164053->Sup.len : 0);
	{
		if (!(index < ((NI) 0))) goto LA3;
		i = (NI)(L + index);
	}
	goto LA1;
	LA3: ;
	{
		i = index;
	}
	LA1: ;
	{
		if (!((NU32)(L) <= (NU32)(i))) goto LA8;
		result = unknownlineinfo_164027();
	}
	goto LA6;
	LA8: ;
	{
		result = msgcontext_164053->data[i];
	}
	LA6: ;
	return result;
}

static N_INLINE(NimStringDesc*, tofilelinecol_164469)(Tlineinfo163338 info) {
	NimStringDesc* result;
	NimStringDesc* LOC1;
	NimStringDesc* LOC2;
	NimStringDesc* LOC3;
	NimStringDesc* LOC4;
	result = 0;
	LOC1 = 0;
	LOC2 = 0;
	LOC2 = tofilename_164266(info.fileindex);
	LOC3 = 0;
	LOC3 = nimIntToStr(((NI) (info.line)));
	LOC4 = 0;
	LOC4 = nimIntToStr(((NI) (info.col)));
	LOC1 = rawNewString(LOC2->Sup.len + LOC3->Sup.len + LOC4->Sup.len + 3);
appendString(LOC1, LOC2);
appendString(LOC1, ((NimStringDesc*) &TMP3150));
appendString(LOC1, LOC3);
appendString(LOC1, ((NimStringDesc*) &TMP3151));
appendString(LOC1, LOC4);
appendString(LOC1, ((NimStringDesc*) &TMP3152));
	result = LOC1;
	return result;
}

N_NIMCALL(NimStringDesc*, HEX24_164479)(Tlineinfo163338 info) {
	NimStringDesc* result;
	result = 0;
	result = tofilelinecol_164469(info);
	return result;
}

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

N_NIMCALL(void, setinfocontextlen_164173)(NI L) {
	msgcontext_164053 = (TY164036*) setLengthSeq(&(msgcontext_164053)->Sup, sizeof(Tlineinfo163338), ((NI) (L)));
}

N_NIMCALL(Ropeobj161009*, quotedfilename_165354)(Tlineinfo163338 i) {
	Ropeobj161009* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		if (!!((((NI32) 0) <= i.fileindex))) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_165306(TMP3747);
		internalerror_165218(LOC5);
	}
	LA3: ;
	result = fileinfos_163432->data[i.fileindex].quotedname;
	return result;
}

N_NIMCALL(void, outwriteln_164505)(NimStringDesc* s) {
	{
		TY164566 LOC5;
		if (!((erroroutputs_164056 &(1<<((((NU8) 0))&7)))!=0)) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = copyString(s);
		writeln_155205(stdout, LOC5, 1);
	}
	LA3: ;
}
NIM_EXTERNC N_NOINLINE(void, nimsrc_msgsInit)(void) {
	Tfileinfo163336 LOC1;
	Tfileinfo163336 LOC2;
	TY161023 LOC3;
	chckNil((void*)(&filenametoindextbl_163414));
	genericReset((void*)(&filenametoindextbl_163414), (&NTI163376));
	inittable_163368(((NI) 64), (&filenametoindextbl_163414));
	if (fileinfos_163432) nimGCunrefNoCycle(fileinfos_163432);
	fileinfos_163432 = (TY163415*) newSeqRC1((&NTI163415), 0);
	memset((void*)(&LOC1), 0, sizeof(LOC1));
	newfileinfo_163495(((NimStringDesc*) &TMP135), ((NimStringDesc*) &TMP137), (&LOC1));
	fileinfos_163432 = (TY163415*) incrSeq(&(fileinfos_163432)->Sup, sizeof(Tfileinfo163336));
	genericAssign((void*)(&fileinfos_163432->data[fileinfos_163432->Sup.len-1]), (void*)(&LOC1), (&NTI163336));
	gcmdlineinfo_163922 = newlineinfo_163867(((NI32) 0), ((NI) 1), ((NI) 1));
	memset((void*)(&LOC2), 0, sizeof(LOC2));
	newfileinfo_163495(((NimStringDesc*) &TMP135), ((NimStringDesc*) &TMP138), (&LOC2));
	fileinfos_163432 = (TY163415*) incrSeq(&(fileinfos_163432)->Sup, sizeof(Tfileinfo163336));
	genericAssign((void*)(&fileinfos_163432->data[fileinfos_163432->Sup.len-1]), (void*)(&LOC2), (&NTI163336));
	gcodegenlineinfo_163961 = newlineinfo_163867(((NI32) 1), ((NI) 1), ((NI) 1));
	gnotes_164014 = IL64(281474927951871);
	gerrorcounter_164015 = ((NI) 0);
	ghintcounter_164016 = ((NI) 0);
	gwarncounter_164017 = ((NI) 0);
	gerrormax_164018 = ((NI) 1);
	if (msgcontext_164053) nimGCunrefNoCycle(msgcontext_164053);
	msgcontext_164053 = (TY164036*) newSeqRC1((&NTI164036), 0);
	lasterror_164054 = unknownlineinfo_164027();
	erroroutputs_164056 = 3;
	memset((void*)(&LOC3), 0, sizeof(LOC3));
	LOC3.ClPrc = ((TMP429) (HEX3Aanonymous_165371)); LOC3.ClEnv = NIM_NIL;
	asgnRef((void**) (&errorhandler_161028.ClEnv), LOC3.ClEnv);
	errorhandler_161028.ClPrc = LOC3.ClPrc;
}

NIM_EXTERNC N_NOINLINE(void, nimsrc_msgsDatInit)(void) {
static TNimNode* TMP131[6];
static TNimNode* TMP139[3];
static TNimNode* TMP1958[278];
NI TMP1960;
static char* NIM_CONST TMP1959[278] = {
"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", 
"errUnknownSubstitionVar", 
"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", 
"errInstantiateXExplicitly", 
"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", 
"warnFieldXNotSupported", 
"warnCommentXIgnored", 
"warnNilStatement", 
"warnTypelessParam", 
"warnDifferentHeaps", 
"warnWriteToForeignHeap", 
"warnUnsafeCode", 
"warnEachIdentIsTuple", 
"warnShadowIdent", 
"warnProveInit", 
"warnProveField", 
"warnProveIndex", 
"warnGcUnsafe", 
"warnGcUnsafe2", 
"warnUninit", 
"warnGcMem", 
"warnDestructor", 
"warnLockLevel", 
"warnResultShadowed", 
"warnUser", 
"hintSuccess", 
"hintSuccessX", 
"hintLineTooLong", 
"hintXDeclaredButNotUsed", 
"hintConvToBaseNotNeeded", 
"hintConvFromXtoItselfNotNeeded", 
"hintExprAlwaysX", 
"hintQuitCalled", 
"hintProcessing", 
"hintCodeBegin", 
"hintCodeEnd", 
"hintConf", 
"hintPath", 
"hintConditionAlwaysTrue", 
"hintName", 
"hintPattern", 
"hintUser"};
static TNimNode TMP19[293];
NTI163336.size = sizeof(Tfileinfo163336);
NTI163336.kind = 18;
NTI163336.base = 0;
NTI163336.flags = 2;
TMP131[0] = &TMP19[1];
TMP19[1].kind = 1;
TMP19[1].offset = offsetof(Tfileinfo163336, fullpath);
TMP19[1].typ = (&NTI149);
TMP19[1].name = "fullPath";
TMP131[1] = &TMP19[2];
TMP19[2].kind = 1;
TMP19[2].offset = offsetof(Tfileinfo163336, projpath);
TMP19[2].typ = (&NTI149);
TMP19[2].name = "projPath";
TMP131[2] = &TMP19[3];
TMP19[3].kind = 1;
TMP19[3].offset = offsetof(Tfileinfo163336, shortname);
TMP19[3].typ = (&NTI149);
TMP19[3].name = "shortName";
TMP131[3] = &TMP19[4];
TMP19[4].kind = 1;
TMP19[4].offset = offsetof(Tfileinfo163336, quotedname);
TMP19[4].typ = (&NTI161007);
TMP19[4].name = "quotedName";
TMP131[4] = &TMP19[5];
NTI163351.size = sizeof(TY163351*);
NTI163351.kind = 24;
NTI163351.base = (&NTI161007);
NTI163351.flags = 2;
NTI163351.marker = TMP132;
TMP19[5].kind = 1;
TMP19[5].offset = offsetof(Tfileinfo163336, lines);
TMP19[5].typ = (&NTI163351);
TMP19[5].name = "lines";
TMP131[5] = &TMP19[6];
TMP19[6].kind = 1;
TMP19[6].offset = offsetof(Tfileinfo163336, dirtyfile);
TMP19[6].typ = (&NTI149);
TMP19[6].name = "dirtyfile";
TMP19[0].len = 6; TMP19[0].kind = 2; TMP19[0].sons = &TMP131[0];
NTI163336.node = &TMP19[0];
NTI163415.size = sizeof(TY163415*);
NTI163415.kind = 24;
NTI163415.base = (&NTI163336);
NTI163415.flags = 2;
NTI163415.marker = TMP133;
NTI163338.size = sizeof(Tlineinfo163338);
NTI163338.kind = 18;
NTI163338.base = 0;
NTI163338.flags = 3;
TMP139[0] = &TMP19[8];
TMP19[8].kind = 1;
TMP19[8].offset = offsetof(Tlineinfo163338, line);
TMP19[8].typ = (&NTI112);
TMP19[8].name = "line";
TMP139[1] = &TMP19[9];
TMP19[9].kind = 1;
TMP19[9].offset = offsetof(Tlineinfo163338, col);
TMP19[9].typ = (&NTI112);
TMP19[9].name = "col";
TMP139[2] = &TMP19[10];
TMP19[10].kind = 1;
TMP19[10].offset = offsetof(Tlineinfo163338, fileindex);
TMP19[10].typ = (&NTI114);
TMP19[10].name = "fileIndex";
TMP19[7].len = 3; TMP19[7].kind = 2; TMP19[7].sons = &TMP139[0];
NTI163338.node = &TMP19[7];
NTI164036.size = sizeof(TY164036*);
NTI164036.kind = 24;
NTI164036.base = (&NTI163338);
NTI164036.flags = 2;
NTI164036.marker = TMP140;
NTI163344.size = sizeof(Erecoverableerror163344);
NTI163344.kind = 17;
NTI163344.base = (&NTI3449);
TMP19[11].len = 0; TMP19[11].kind = 2;
NTI163344.node = &TMP19[11];
NTI163975.size = sizeof(Erecoverableerror163344*);
NTI163975.kind = 22;
NTI163975.base = (&NTI163344);
NTI163975.marker = TMP427;
NTI163005.size = sizeof(NU16);
NTI163005.kind = 14;
NTI163005.base = 0;
NTI163005.flags = 3;
for (TMP1960 = 0; TMP1960 < 278; TMP1960++) {
TMP19[TMP1960+12].kind = 1;
TMP19[TMP1960+12].offset = TMP1960;
TMP19[TMP1960+12].name = TMP1959[TMP1960];
TMP1958[TMP1960] = &TMP19[TMP1960+12];
}
TMP19[290].len = 278; TMP19[290].kind = 2; TMP19[290].sons = &TMP1958[0];
NTI163005.node = &TMP19[290];
NTI163332.size = sizeof(NU16);
NTI163332.kind = 20;
NTI163332.base = (&NTI163005);
NTI163332.flags = 3;
NTI163334.size = sizeof(NU64);
NTI163334.kind = 19;
NTI163334.base = (&NTI163332);
NTI163334.flags = 3;
TMP19[291].len = 230; TMP19[291].kind = 0;
NTI163334.node = &TMP19[291];
NTI163346.size = sizeof(Esuggestdone163346);
NTI163346.kind = 17;
NTI163346.base = (&NTI3427);
TMP19[292].len = 0; TMP19[292].kind = 2;
NTI163346.node = &TMP19[292];
NTI164130.size = sizeof(Esuggestdone163346*);
NTI164130.kind = 22;
NTI164130.base = (&NTI163346);
NTI164130.marker = TMP2663;
}

