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

#include <string.h>
typedef struct tsymseq224818 tsymseq224818;
typedef struct tsym224846 tsym224846;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tcell44935 tcell44935;
typedef struct tcellseq44951 tcellseq44951;
typedef struct tgcheap47016 tgcheap47016;
typedef struct tcellset44947 tcellset44947;
typedef struct tpagedesc44943 tpagedesc44943;
typedef struct tmemregion27210 tmemregion27210;
typedef struct tsmallchunk26440 tsmallchunk26440;
typedef struct tllchunk27204 tllchunk27204;
typedef struct tbigchunk26442 tbigchunk26442;
typedef struct tintset26417 tintset26417;
typedef struct ttrunk26413 ttrunk26413;
typedef struct tavlnode27208 tavlnode27208;
typedef struct tgcstat47014 tgcstat47014;
typedef struct tcontext289021 tcontext289021;
typedef struct tpasscontext285005 tpasscontext285005;
typedef struct TNimObject TNimObject;
typedef struct tscope224840 tscope224840;
typedef struct tproccon289011 tproccon289011;
typedef struct intset221056 intset221056;
typedef struct ttrunk221052 ttrunk221052;
typedef struct ttrunkseq221054 ttrunkseq221054;
typedef struct tlinkedlist126028 tlinkedlist126028;
typedef struct tlistentry126022 tlistentry126022;
typedef struct tidtable224864 tidtable224864;
typedef struct tidpairseq224862 tidpairseq224862;
typedef struct tidpair224860 tidpair224860;
typedef struct tidobj199015 tidobj199015;
typedef struct tnode224816 tnode224816;
typedef struct ttype224852 ttype224852;
typedef struct tlineinfo194539 tlineinfo194539;
typedef struct tstrtable224820 tstrtable224820;
typedef struct tctx288048 tctx288048;
typedef struct TY289133 TY289133;
typedef struct tinstantiationpair289013 tinstantiationpair289013;
typedef struct tinstantiation224836 tinstantiation224836;
typedef struct TY611034 TY611034;
typedef struct TY611037 TY611037;
typedef struct toptionentry289005 toptionentry289005;
typedef struct tlib224834 tlib224834;
typedef struct ttypeseq224848 ttypeseq224848;
typedef struct tloc224830 tloc224830;
typedef struct trope176009 trope176009;
typedef struct NimStringDesc NimStringDesc;
typedef struct tident199021 tident199021;
typedef struct tnodeseq224810 tnodeseq224810;
typedef struct TY84745 TY84745;
typedef struct TY224947 TY224947;
typedef struct tbasechunk26438 tbasechunk26438;
typedef struct tfreecell26430 tfreecell26430;
typedef struct TY288250 TY288250;
typedef struct TY195414 TY195414;
typedef struct pprocHEX3Aobjecttype288230 pprocHEX3Aobjecttype288230;
typedef struct TY288269 TY288269;
typedef struct TY288270 TY288270;
typedef struct vmargs288042 vmargs288042;
typedef struct TY224936 TY224936;
typedef struct TY288231 TY288231;
typedef struct tblock288030 tblock288030;
typedef struct TY288211 TY288211;
typedef struct TY288237 TY288237;
struct  TGenericSeq  {
NI len;
NI reserved;
};
typedef N_NIMCALL_PTR(void, TY3089) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3094) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3089 marker;
TY3094 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  tcell44935  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq44951  {
NI Len;
NI Cap;
tcell44935** D;
};
struct  tcellset44947  {
NI Counter;
NI Max;
tpagedesc44943* Head;
tpagedesc44943** Data;
};
typedef tsmallchunk26440* TY27222[512];
typedef ttrunk26413* ttrunkbuckets26415[256];
struct  tintset26417  {
ttrunkbuckets26415 Data;
};
struct  tmemregion27210  {
NI Minlargeobj;
NI Maxlargeobj;
TY27222 Freesmallchunks;
tllchunk27204* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk26442* Freechunkslist;
tintset26417 Chunkstarts;
tavlnode27208* Root;
tavlnode27208* Deleted;
tavlnode27208* Last;
tavlnode27208* Freeavlnodes;
};
struct  tgcstat47014  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap47016  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq44951 Zct;
tcellseq44951 Decstack;
tcellset44947 Cycleroots;
tcellseq44951 Tempstack;
NI Recgclock;
tmemregion27210 Region;
tgcstat47014 Stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  tpasscontext285005  {
  TNimObject Sup;
NIM_BOOL Fromcache;
};
struct  intset221056  {
NI Counter;
NI Max;
ttrunk221052* Head;
ttrunkseq221054* Data;
};
struct  tlinkedlist126028  {
tlistentry126022* Head;
tlistentry126022* Tail;
NI Counter;
};
struct  tidpair224860  {
tidobj199015* Key;
TNimObject* Val;
};
struct  tidtable224864  {
NI Counter;
tidpairseq224862* Data;
};
typedef N_NIMCALL_PTR(tnode224816*, TY289064) (tcontext289021* c, tnode224816* n);
typedef N_NIMCALL_PTR(tnode224816*, TY289069) (tcontext289021* c, tnode224816* n, NU16 flags);
typedef N_NIMCALL_PTR(tnode224816*, TY289077) (tcontext289021* c, tnode224816* n, NU16 flags);
typedef N_NIMCALL_PTR(tnode224816*, TY289085) (tcontext289021* c, tnode224816* n);
typedef N_NIMCALL_PTR(tnode224816*, TY289090) (tcontext289021* c, tnode224816* n, NU16 flags);
typedef N_NIMCALL_PTR(tnode224816*, TY289098) (tcontext289021* c, tnode224816* n);
typedef N_NIMCALL_PTR(tnode224816*, TY289103) (tcontext289021* c, tnode224816* n, tnode224816* norig, NU32 filter);
typedef N_NIMCALL_PTR(ttype224852*, TY289110) (tcontext289021* c, tnode224816* n, ttype224852* prev);
typedef struct {
N_NIMCALL_PTR(tnode224816*, ClPrc) (tcontext289021* c, tidtable224864 pt, tnode224816* n, void* ClEnv);
void* ClEnv;
} TY289116;
struct  tlineinfo194539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
typedef struct {
N_NIMCALL_PTR(tsym224846*, ClPrc) (tcontext289021* c, tsym224846* fn, tidtable224864 pt, tlineinfo194539 info, void* ClEnv);
void* ClEnv;
} TY289122;
struct  tstrtable224820  {
NI Counter;
tsymseq224818* Data;
};
struct  tinstantiationpair289013  {
tsym224846* Genericsym;
tinstantiation224836* Inst;
};
typedef N_NIMCALL_PTR(tsym224846*, TY289138) (tcontext289021* c, tsym224846* dc, ttype224852* t, tlineinfo194539 info);
struct  tcontext289021  {
  tpasscontext285005 Sup;
tsym224846* Module;
tscope224840* Currentscope;
tscope224840* Importtable;
tscope224840* Toplevelscope;
tproccon289011* P;
tsymseq224818* Friendmodules;
NI Instcounter;
intset221056 Ambiguoussymbols;
NI Intypeclass;
NI Ingenericcontext;
NI Inunrolledcontext;
NI Incompilescontext;
NI Ingenericinst;
tsymseq224818* Converters;
tsymseq224818* Patterns;
tlinkedlist126028 Optionstack;
tidtable224864 Symmapping;
tlinkedlist126028 Libs;
TY289064 Semconstexpr;
TY289069 Semexpr;
TY289077 Semtryexpr;
TY289085 Semtryconstexpr;
TY289090 Semoperand;
TY289098 Semconstboolexpr;
TY289103 Semoverloadedcall;
TY289110 Semtypenode;
TY289116 Seminferredlambda;
TY289122 Semgenerateinstance;
intset221056 Includedfiles;
tstrtable224820 Userpragmas;
tctx288048* Evalcontext;
intset221056 Unknownidents;
TY289133* Generics;
NI Lastgenericidx;
NI Hloloopdetector;
NI Inparallelstmt;
TY289138 Instdeepcopy;
};
struct  tproccon289011  {
tsym224846* Owner;
tsym224846* Resultsym;
NI Nestedloopcounter;
NI Nestedblockcounter;
NI Intrystmt;
tproccon289011* Next;
};
struct TY611034 {
void* Field0;
TY611037* Field1;
};
struct  tlistentry126022  {
  TNimObject Sup;
tlistentry126022* Prev;
tlistentry126022* Next;
};
struct  toptionentry289005  {
  tlistentry126022 Sup;
NU32 Options;
NU8 Defaultcc;
tlib224834* Dynlib;
NU64 Notes;
tnode224816* Otherpragmas;
};
typedef tsym224846* TY289498[1];
struct  tidobj199015  {
  TNimObject Sup;
NI Id;
};
struct  tloc224830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype224852* T;
trope176009* R;
trope176009* Heaproot;
};
struct  ttype224852  {
  tidobj199015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq224848* Sons;
tnode224816* N;
tsym224846* Owner;
tsym224846* Sym;
tsym224846* Destructor;
tsym224846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc224830 Loc;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  tnode224816  {
ttype224852* Typ;
tlineinfo194539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym224846* Sym;
} S4;
struct {tident199021* Ident;
} S5;
struct {tnodeseq224810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
struct TY84745 {
NimStringDesc* Field0;
NI Field1;
};
typedef tnode224816* TY245892[1];
typedef ttype224852* TY410748[1];
typedef ttype224852* TY289918[2];
typedef tnode224816* TY290286[2];
struct  tlib224834  {
  tlistentry126022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope176009* Name;
tnode224816* Path;
};
struct  tsym224846  {
  tidobj199015 Sup;
NU8 Kind;
union {
struct {ttypeseq224848* Typeinstcache;
tscope224840* Typscope;
} S1;
struct {TY224947* Procinstcache;
tscope224840* Scope;
} S2;
struct {TY224947* Usedgenerics;
tstrtable224820 Tab;
} S3;
struct {tsym224846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype224852* Typ;
tident199021* Name;
tlineinfo194539 Info;
tsym224846* Owner;
NU32 Flags;
tnode224816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc224830 Loc;
tlib224834* Annex;
tnode224816* Constraint;
};
typedef NI TY26420[8];
struct  tpagedesc44943  {
tpagedesc44943* Next;
NI Key;
TY26420 Bits;
};
struct  tbasechunk26438  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk26440  {
  tbasechunk26438 Sup;
tsmallchunk26440* Next;
tsmallchunk26440* Prev;
tfreecell26430* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk27204  {
NI Size;
NI Acc;
tllchunk27204* Next;
};
struct  tbigchunk26442  {
  tbasechunk26438 Sup;
tbigchunk26442* Next;
tbigchunk26442* Prev;
NI Align;
NF Data;
};
struct  ttrunk26413  {
ttrunk26413* Next;
NI Key;
TY26420 Bits;
};
typedef tavlnode27208* TY27214[2];
struct  tavlnode27208  {
TY27214 Link;
NI Key;
NI Upperbound;
NI Level;
};
struct  tscope224840  {
NI Depthlevel;
tstrtable224820 Symbols;
tnodeseq224810* Usingsyms;
tscope224840* Parent;
};
struct  ttrunk221052  {
ttrunk221052* Next;
NI Key;
TY26420 Bits;
};
struct  vmargs288042  {
NI Ra;
NI Rb;
NI Rc;
void* Slots;
tnode224816* Currentexception;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (vmargs288042* args, void* ClEnv);
void* ClEnv;
} vmcallback288044;
struct TY288270 {
NimStringDesc* Field0;
vmcallback288044 Field1;
};
struct  tctx288048  {
  tpasscontext285005 Sup;
TY288250* Code;
TY195414* Debug;
tnode224816* Globals;
tnode224816* Constants;
ttypeseq224848* Types;
tnode224816* Currentexceptiona;
tnode224816* Currentexceptionb;
NI Exceptioninstr;
pprocHEX3Aobjecttype288230* Prc;
tsym224846* Module;
tnode224816* Callsite;
NU8 Mode;
NU8 Features;
NIM_BOOL Traceactive;
NI Loopiterations;
tlineinfo194539 Comesfromheuristic;
TY288269* Callbacks;
NimStringDesc* Errorflag;
};
struct  tinstantiation224836  {
tsym224846* Sym;
ttypeseq224848* Concretetypes;
TY224936* Usedby;
};
struct TY611037 {
char dummy;
};
struct  trope176009  {
  TNimObject Sup;
trope176009* Left;
trope176009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tident199021  {
  tidobj199015 Sup;
NimStringDesc* S;
tident199021* Next;
NI H;
};
struct  tfreecell26430  {
tfreecell26430* Next;
NI Zerofield;
};
struct  tblock288030  {
tsym224846* Label;
TY288211* Fixups;
};
struct TY288237 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY288237 TY288234[256];
struct  pprocHEX3Aobjecttype288230  {
TY288231* Blocks;
tsym224846* Sym;
TY288234 Slots;
NI Maxslots;
};
struct tsymseq224818 {
  TGenericSeq Sup;
  tsym224846* data[SEQ_DECL_SIZE];
};
struct ttrunkseq221054 {
  TGenericSeq Sup;
  ttrunk221052* data[SEQ_DECL_SIZE];
};
struct tidpairseq224862 {
  TGenericSeq Sup;
  tidpair224860 data[SEQ_DECL_SIZE];
};
struct TY289133 {
  TGenericSeq Sup;
  tinstantiationpair289013 data[SEQ_DECL_SIZE];
};
struct ttypeseq224848 {
  TGenericSeq Sup;
  ttype224852* data[SEQ_DECL_SIZE];
};
struct tnodeseq224810 {
  TGenericSeq Sup;
  tnode224816* data[SEQ_DECL_SIZE];
};
struct TY224947 {
  TGenericSeq Sup;
  tinstantiation224836* data[SEQ_DECL_SIZE];
};
struct TY288250 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY195414 {
  TGenericSeq Sup;
  tlineinfo194539 data[SEQ_DECL_SIZE];
};
struct TY288269 {
  TGenericSeq Sup;
  TY288270 data[SEQ_DECL_SIZE];
};
struct TY224936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct TY288211 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
struct TY288231 {
  TGenericSeq Sup;
  tblock288030 data[SEQ_DECL_SIZE];
};
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(tcell44935*, usrtocell_48646)(void* usr);
static N_INLINE(void, rtladdzct_50204)(tcell44935* c);
N_NOINLINE(void, addzct_48617)(tcellseq44951* s, tcell44935* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP1946)(void* p, NI op);
N_NIMCALL(void, TMP1971)(void* p, NI op);
N_NIMCALL(void, TMP1972)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(void, initintset_221950)(intset221056* Result);
N_NIMCALL(void, initlinkedlist_126043)(tlinkedlist126028* list);
N_NIMCALL(void, append_126053)(tlinkedlist126028* list, tlistentry126022* entry);
N_NIMCALL(toptionentry289005*, newoptionentry_289181)(void);
N_NIMCALL(void, TMP1977)(void* p, NI op);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_51025)(tcell44935* c);
static N_INLINE(NIM_BOOL, canbecycleroot_48667)(tcell44935* c);
static N_INLINE(void, rtladdcycleroot_49429)(tcell44935* c);
N_NOINLINE(void, incl_45671)(tcellset44947* s, tcell44935* cell);
static N_INLINE(void, decref_50604)(tcell44935* c);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(void, initstrtable_225153)(tstrtable224820* x);
N_NIMCALL(ttype224852*, newtypes_289213)(NU8 kind, tcontext289021* c);
N_NIMCALL(ttype224852*, newtype_225083)(NU8 kind, tsym224846* owner);
N_NIMCALL(tsym224846*, getcurrowner_289255)(void);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_79604, TNimType* mt);
N_NIMCALL(void, globalerror_196934)(tlineinfo194539 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_249058)(tnode224816* n, NU8 renderflags);
static N_INLINE(NI, sonslen_225249)(tnode224816* n);
N_NIMCALL(void, illformedast_290405)(tnode224816* n);
N_NIMCALL(void, addsonskipintlit_281574)(ttype224852* father, ttype224852* son);
N_NIMCALL(void, internalerror_197006)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_197126)(TY84745 x_197130);
N_NIMCALL(tnode224816*, newnodei_225138)(NU8 kind, tlineinfo194539 info);
N_NIMCALL(void, addson_225287)(tnode224816* father, tnode224816* son);
N_NIMCALL(tnode224816*, newinttypenode_225103)(NU8 kind, NI64 intval, ttype224852* typ);
N_NIMCALL(ttype224852*, newtypewithsons_289822)(tcontext289021* c, NU8 kind, ttypeseq224848* sons);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, propagatetoowner_229318)(ttype224852* owner, ttype224852* elem);
N_NIMCALL(ttype224852*, getsystype_281030)(NU8 kind);
N_NIMCALL(tnode224816*, newnode_227207)(NU8 kind, tlineinfo194539 info, tnodeseq224810* sons, ttype224852* typ);
N_NIMCALL(tnode224816*, makestaticexpr_289835)(tcontext289021* c, tnode224816* n);
N_NIMCALL(tnode224816*, nminusone_290218)(tnode224816* n);
N_NIMCALL(tnode224816*, newsymnode_225132)(tsym224846* sym);
N_NIMCALL(tsym224846*, getsysmagic_281175)(NimStringDesc* name, NU16 m);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(ttype224852*, errortype_290318)(tcontext289021* c);
N_NIMCALL(ttype224852*, maketypedesc_289762)(tcontext289021* c, ttype224852* typ);
N_NIMCALL(tsym224846*, linkto_225825)(tsym224846* s, ttype224852* t);
N_NIMCALL(tsym224846*, newsym_225074)(NU8 symkind, tident199021* name, tsym224846* owner, tlineinfo194539 info);
N_NIMCALL(tnode224816*, newsymnode_226754)(tsym224846* sym, tlineinfo194539 info);
N_NIMCALL(void, inclsym_289567)(tsymseq224818** sq, tsym224846* s);
STRING_LITERAL(TMP2676, "compiler/semdata.nim", 20);
NIM_CONST TY84745 TMP2675 = {((NimStringDesc*) &TMP2676),
214}
;
NIM_CONST TY84745 TMP2684 = {((NimStringDesc*) &TMP2676),
210}
;
STRING_LITERAL(TMP2893, "<", 1);
STRING_LITERAL(TMP3047, "popOwner", 8);
NIM_CONST TY84745 TMP3245 = {((NimStringDesc*) &TMP2676),
206}
;
tsymseq224818* gowners_289292;
extern TNimType NTI224818; /* TSymSeq */
extern tgcheap47016 gch_47044;
extern TNimType NTI285005; /* TPassContext */
TNimType NTI289021; /* TContext */
extern TNimType NTI224814; /* PSym */
extern TNimType NTI224842; /* PScope */
TNimType NTI289011; /* TProcCon */
extern TNimType NTI108; /* int */
TNimType NTI289009; /* PProcCon */
extern TNimType NTI221056; /* IntSet */
extern TNimType NTI126028; /* TLinkedList */
extern TNimType NTI224864; /* TIdTable */
TNimType NTI289064; /* proc (PContext, PNode): PNode */
TNimType NTI289069; /* proc (PContext, PNode, TExprFlags): PNode */
TNimType NTI289077; /* proc (PContext, PNode, TExprFlags): PNode */
TNimType NTI289085; /* proc (PContext, PNode): PNode */
TNimType NTI289090; /* proc (PContext, PNode, TExprFlags): PNode */
TNimType NTI289098; /* proc (PContext, PNode): PNode */
TNimType NTI289103; /* proc (PContext, PNode, PNode, TSymKinds): PNode */
TNimType NTI289110; /* proc (PContext, PNode, PType): PType */
TNimType NTI289116; /* tuple[pointer, ref tuple[]] */
extern TNimType NTI153; /* pointer */
extern TNimType NTI611036; /* ref tuple[] */
TNimType NTI289122; /* tuple[pointer, ref tuple[]] */
extern TNimType NTI224820; /* TStrTable */
extern TNimType NTI288046; /* PCtx */
TNimType NTI289013; /* TInstantiationPair */
extern TNimType NTI224838; /* PInstantiation */
TNimType NTI289133; /* seq[TInstantiationPair] */
TNimType NTI289138; /* proc (PContext, PSym, PType, TLineInfo): PSym */
TNimType NTI289019; /* PContext */
extern TNimType NTI126022; /* TListEntry */
TNimType NTI289005; /* TOptionEntry */
extern TNimType NTI168016; /* TOptions */
extern TNimType NTI224005; /* TCallingConvention */
extern TNimType NTI224844; /* PLib */
extern TNimType NTI194535; /* TNoteKinds */
extern TNimType NTI224808; /* PNode */
TNimType NTI289007; /* POptionEntry */
extern NU32 goptions_168116;
extern NU64 gnotes_195302;
extern TNimType NTI224848; /* TTypeSeq */
extern TNimType NTI224810; /* TNodeSeq */
extern TNimType NTI224834; /* TLib */
extern tident199021* idanon_199504;

static N_INLINE(tcell44935*, usrtocell_48646)(void* usr) {
	tcell44935* result;
	result = 0;
	result = ((tcell44935*) ((NI)((NU64)(((NI) (usr))) - (NU64)(((NI)sizeof(tcell44935))))));
	return result;
}

static N_INLINE(void, rtladdzct_50204)(tcell44935* c) {
	addzct_48617((&gch_47044.Zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	tcell44935* c;
	c = usrtocell_48646(p);
	{
		(*c).Refcount -= 8;
		if (!((NU64)((*c).Refcount) < (NU64)(8))) goto LA3;
		rtladdzct_50204(c);
	}
	LA3: ;
}
N_NIMCALL(void, TMP1946)(void* p, NI op) {
	tproccon289011* a;
	a = (tproccon289011*)p;
	nimGCvisit((void*)(*a).Owner, op);
	nimGCvisit((void*)(*a).Resultsym, op);
	nimGCvisit((void*)(*a).Next, op);
}
N_NIMCALL(void, TMP1971)(void* p, NI op) {
	TY289133* a;
	NI LOC1;
	a = (TY289133*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1].Genericsym, op);
	nimGCvisit((void*)a->data[LOC1].Inst, op);
	}
}
N_NIMCALL(void, TMP1972)(void* p, NI op) {
	tcontext289021* a;
	a = (tcontext289021*)p;
	nimGCvisit((void*)(*a).Module, op);
	nimGCvisit((void*)(*a).Currentscope, op);
	nimGCvisit((void*)(*a).Importtable, op);
	nimGCvisit((void*)(*a).Toplevelscope, op);
	nimGCvisit((void*)(*a).P, op);
	nimGCvisit((void*)(*a).Friendmodules, op);
	nimGCvisit((void*)(*a).Ambiguoussymbols.Head, op);
	nimGCvisit((void*)(*a).Ambiguoussymbols.Data, op);
	nimGCvisit((void*)(*a).Converters, op);
	nimGCvisit((void*)(*a).Patterns, op);
	nimGCvisit((void*)(*a).Optionstack.Head, op);
	nimGCvisit((void*)(*a).Optionstack.Tail, op);
	nimGCvisit((void*)(*a).Symmapping.Data, op);
	nimGCvisit((void*)(*a).Libs.Head, op);
	nimGCvisit((void*)(*a).Libs.Tail, op);
	nimGCvisit((void*)(*a).Seminferredlambda.ClEnv, op);
	nimGCvisit((void*)(*a).Semgenerateinstance.ClEnv, op);
	nimGCvisit((void*)(*a).Includedfiles.Head, op);
	nimGCvisit((void*)(*a).Includedfiles.Data, op);
	nimGCvisit((void*)(*a).Userpragmas.Data, op);
	nimGCvisit((void*)(*a).Evalcontext, op);
	nimGCvisit((void*)(*a).Unknownidents.Head, op);
	nimGCvisit((void*)(*a).Unknownidents.Data, op);
	nimGCvisit((void*)(*a).Generics, op);
}
N_NIMCALL(void, TMP1977)(void* p, NI op) {
	toptionentry289005* a;
	a = (toptionentry289005*)p;
	nimGCvisit((void*)(*a).Sup.Prev, op);
	nimGCvisit((void*)(*a).Sup.Next, op);
	nimGCvisit((void*)(*a).Dynlib, op);
	nimGCvisit((void*)(*a).Otherpragmas, op);
}

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

static N_INLINE(void, rtladdcycleroot_49429)(tcell44935* c) {
	{
		if (!!((((NI) ((NI)((*c).Refcount & 3))) == 3))) goto LA3;
		(*c).Refcount = (NI)((NI)((*c).Refcount & -4) | 3);
		incl_45671((&gch_47044.Cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, incref_51025)(tcell44935* c) {
	(*c).Refcount = (NI)((NU64)((*c).Refcount) + (NU64)(8));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_48667(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_49429(c);
	}
	LA4: ;
}

static N_INLINE(void, decref_50604)(tcell44935* c) {
	{
		(*c).Refcount -= 8;
		if (!((NU64)((*c).Refcount) < (NU64)(8))) goto LA3;
		rtladdzct_50204(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_48667(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_49429(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		tcell44935* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_48646(src);
		incref_51025(LOC5);
	}
	LA3: ;
	{
		tcell44935* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_48646((*dest));
		decref_50604(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(toptionentry289005*, newoptionentry_289181)(void) {
	toptionentry289005* result;
	result = 0;
	result = (toptionentry289005*) newObj((&NTI289007), sizeof(toptionentry289005));
	(*result).Sup.Sup.m_type = (&NTI289005);
	(*result).Options = goptions_168116;
	(*result).Defaultcc = ((NU8) 0);
	asgnRef((void**) (&(*result).Dynlib), NIM_NIL);
	(*result).Notes = gnotes_195302;
	return result;
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		tcell44935* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_48646(src);
		(*c).Refcount += 8;
	}
	LA3: ;
	{
		tcell44935* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_48646((*dest));
		{
			(*c).Refcount -= 8;
			if (!((NU64)((*c).Refcount) < (NU64)(8))) goto LA11;
			rtladdzct_50204(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(tcontext289021*, newcontext_289169)(tsym224846* module) {
	tcontext289021* result;
	toptionentry289005* LOC1;
	tlistentry126022* LOC2;
	TY289498 LOC3;
	result = 0;
	result = (tcontext289021*) newObj((&NTI289019), sizeof(tcontext289021));
	(*result).Sup.Sup.m_type = (&NTI289021);
	initintset_221950((&(*result).Ambiguoussymbols));
	initlinkedlist_126043((&(*result).Optionstack));
	initlinkedlist_126043((&(*result).Libs));
	LOC1 = 0;
	LOC1 = newoptionentry_289181();
	LOC2 = 0;
	LOC2 = &LOC1->Sup;
	append_126053((&(*result).Optionstack), LOC2);
	asgnRefNoCycle((void**) (&(*result).Module), module);
	if ((*result).Friendmodules) nimGCunrefNoCycle((*result).Friendmodules);
	(*result).Friendmodules = (tsymseq224818*) newSeqRC1((&NTI224818), 1);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = module;
	asgnRefNoCycle((void**) (&(*result).Friendmodules->data[0]), LOC3[0]);
	if ((*result).Converters) nimGCunrefNoCycle((*result).Converters);
	(*result).Converters = (tsymseq224818*) newSeqRC1((&NTI224818), 0);
	if ((*result).Patterns) nimGCunrefNoCycle((*result).Patterns);
	(*result).Patterns = (tsymseq224818*) newSeqRC1((&NTI224818), 0);
	initintset_221950((&(*result).Includedfiles));
	initstrtable_225153((&(*result).Userpragmas));
	if ((*result).Generics) nimGCunrefNoCycle((*result).Generics);
	(*result).Generics = (TY289133*) newSeqRC1((&NTI289133), 0);
	initintset_221950((&(*result).Unknownidents));
	return result;
}

N_NIMCALL(tsym224846*, getcurrowner_289255)(void) {
	tsym224846* result;
	result = 0;
	result = gowners_289292->data[(gowners_289292->Sup.len-1)];
	return result;
}

N_NIMCALL(ttype224852*, newtypes_289213)(NU8 kind, tcontext289021* c) {
	ttype224852* result;
	tsym224846* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_289255();
	result = newtype_225083(kind, LOC1);
	return result;
}

N_NIMCALL(ttype224852*, maketypefromexpr_289811)(tcontext289021* c, tnode224816* n) {
	ttype224852* result;
	result = 0;
	result = newtypes_289213(((NU8) 60), c);
	asgnRefNoCycle((void**) (&(*result).N), n);
	return result;
}

N_NIMCALL(ttype224852*, newtypewithsons_289822)(tcontext289021* c, NU8 kind, ttypeseq224848* sons) {
	ttype224852* result;
	tsym224846* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_289255();
	result = newtype_225083(kind, LOC1);
	genericSeqAssign((&(*result).Sons), sons, (&NTI224848));
	return result;
}

N_NIMCALL(ttype224852*, errortype_290318)(tcontext289021* c) {
	ttype224852* result;
	result = 0;
	result = newtypes_289213(((NU8) 50), c);
	return result;
}

N_NIMCALL(void, illformedast_290405)(tnode224816* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_249058(n, 4);
	globalerror_196934((*n).Info, ((NU16) 1), LOC1);
}

static N_INLINE(NI, sonslen_225249)(tnode224816* n) {
	NI result;
	result = 0;
	{
		if (!(*n).kindU.S6.Sons == 0) goto LA3;
		result = 0;
	}
	goto LA1;
	LA3: ;
	{
		result = (*n).kindU.S6.Sons->Sup.len;
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, checksonslen_290415)(tnode224816* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_225249(n);
		if (!!((LOC3 == length))) goto LA4;
		illformedast_290405(n);
	}
	LA4: ;
}

N_NIMCALL(ttype224852*, maketypedesc_289762)(tcontext289021* c, ttype224852* typ) {
	ttype224852* result;
	result = 0;
	result = newtypes_289213(((NU8) 8), c);
	{
		NimStringDesc* LOC5;
		if (!(typ == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_197126(TMP2675);
		internalerror_197006(LOC5);
	}
	LA3: ;
	addsonskipintlit_281574(result, typ);
	return result;
}

N_NIMCALL(ttype224852*, makevartype_289206)(tcontext289021* c, ttype224852* basetype) {
	ttype224852* result;
	result = 0;
	result = newtypes_289213(((NU8) 23), c);
	{
		NimStringDesc* LOC5;
		if (!(basetype == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_197126(TMP2684);
		internalerror_197006(LOC5);
	}
	LA3: ;
	addsonskipintlit_281574(result, basetype);
	return result;
}

N_NIMCALL(ttype224852*, makerangetype_290350)(tcontext289021* c, NI64 first, NI64 last, tlineinfo194539 info, ttype224852* inttype) {
	ttype224852* result;
	tnode224816* n;
	tnode224816* LOC1;
	tnode224816* LOC2;
	result = 0;
	n = newnodei_225138(((NU8) 44), info);
	LOC1 = 0;
	LOC1 = newinttypenode_225103(((NU8) 6), first, inttype);
	addson_225287(n, LOC1);
	LOC2 = 0;
	LOC2 = newinttypenode_225103(((NU8) 6), last, inttype);
	addson_225287(n, LOC2);
	result = newtypes_289213(((NU8) 20), c);
	asgnRefNoCycle((void**) (&(*result).N), n);
	addsonskipintlit_281574(result, inttype);
	return result;
}

N_NIMCALL(tnode224816*, makestaticexpr_289835)(tcontext289021* c, tnode224816* n) {
	tnode224816* result;
	TY245892 LOC1;
	ttypeseq224848* LOC2;
	TY410748 LOC3;
	result = 0;
	result = newnodei_225138(((NU8) 62), (*n).Info);
	if ((*result).kindU.S6.Sons) nimGCunrefNoCycle((*result).kindU.S6.Sons);
	(*result).kindU.S6.Sons = (tnodeseq224810*) newSeqRC1((&NTI224810), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = n;
	asgnRefNoCycle((void**) (&(*result).kindU.S6.Sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (ttypeseq224848*) newSeq((&NTI224848), 1);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = (*n).Typ;
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&(*result).Typ), newtypewithsons_289822(c, ((NU8) 59), LOC2));
	return result;
}

N_NIMCALL(ttype224852*, makeandtype_289896)(tcontext289021* c, ttype224852* t1, ttype224852* t2) {
	ttype224852* result;
	TY289918 LOC1;
	result = 0;
	result = newtypes_289213(((NU8) 55), c);
	if ((*result).Sons) nimGCunrefNoCycle((*result).Sons);
	(*result).Sons = (ttypeseq224848*) newSeqRC1((&NTI224848), 2);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = t1;
	LOC1[1] = t2;
	asgnRefNoCycle((void**) (&(*result).Sons->data[0]), LOC1[0]);
	asgnRefNoCycle((void**) (&(*result).Sons->data[1]), LOC1[1]);
	propagatetoowner_229318(result, t1);
	propagatetoowner_229318(result, t2);
	(*result).Flags = ((*result).Flags | (((*t1).Flags | (*t2).Flags) & 4194304));
	return result;
}

N_NIMCALL(ttype224852*, makeortype_290015)(tcontext289021* c, ttype224852* t1, ttype224852* t2) {
	ttype224852* result;
	TY289918 LOC1;
	result = 0;
	result = newtypes_289213(((NU8) 56), c);
	if ((*result).Sons) nimGCunrefNoCycle((*result).Sons);
	(*result).Sons = (ttypeseq224848*) newSeqRC1((&NTI224848), 2);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = t1;
	LOC1[1] = t2;
	asgnRefNoCycle((void**) (&(*result).Sons->data[0]), LOC1[0]);
	asgnRefNoCycle((void**) (&(*result).Sons->data[1]), LOC1[1]);
	propagatetoowner_229318(result, t1);
	propagatetoowner_229318(result, t2);
	(*result).Flags = ((*result).Flags | (((*t1).Flags | (*t2).Flags) & 4194304));
	return result;
}

N_NIMCALL(ttype224852*, makenottype_290134)(tcontext289021* c, ttype224852* t1) {
	ttype224852* result;
	TY410748 LOC1;
	result = 0;
	result = newtypes_289213(((NU8) 57), c);
	if ((*result).Sons) nimGCunrefNoCycle((*result).Sons);
	(*result).Sons = (ttypeseq224848*) newSeqRC1((&NTI224848), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = t1;
	asgnRefNoCycle((void**) (&(*result).Sons->data[0]), LOC1[0]);
	propagatetoowner_229318(result, t1);
	(*result).Flags = ((*result).Flags | ((*t1).Flags & 4194304));
	return result;
}

N_NIMCALL(void, checkminsonslen_290425)(tnode224816* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_225249(n);
		if (!(LOC3 < length)) goto LA4;
		illformedast_290405(n);
	}
	LA4: ;
}

N_NIMCALL(tnode224816*, nminusone_290218)(tnode224816* n) {
	tnode224816* result;
	tnodeseq224810* LOC1;
	TY290286 LOC2;
	tsym224846* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (tnodeseq224810*) newSeq((&NTI224810), 2);
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC3 = 0;
	LOC3 = getsysmagic_281175(((NimStringDesc*) &TMP2893), ((NU16) 18));
	LOC2[0] = newsymnode_225132(LOC3);
	LOC2[1] = n;
	asgnRefNoCycle((void**) (&LOC1->data[0]), LOC2[0]);
	asgnRefNoCycle((void**) (&LOC1->data[1]), LOC2[1]);
	result = newnode_227207(((NU8) 27), (*n).Info, LOC1, NIM_NIL);
	return result;
}

N_NIMCALL(ttype224852*, makerangewithstaticexpr_290246)(tcontext289021* c, tnode224816* n) {
	ttype224852* result;
	ttype224852* inttype;
	TY410748 LOC1;
	tnodeseq224810* LOC2;
	TY290286 LOC3;
	tnode224816* LOC4;
	result = 0;
	inttype = getsystype_281030(((NU8) 31));
	result = newtypes_289213(((NU8) 20), c);
	if ((*result).Sons) nimGCunrefNoCycle((*result).Sons);
	(*result).Sons = (ttypeseq224848*) newSeqRC1((&NTI224848), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = inttype;
	asgnRefNoCycle((void**) (&(*result).Sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (tnodeseq224810*) newSeq((&NTI224810), 2);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = newinttypenode_225103(((NU8) 6), IL64(0), inttype);
	LOC4 = 0;
	LOC4 = nminusone_290218(n);
	LOC3[1] = makestaticexpr_289835(c, LOC4);
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&LOC2->data[1]), LOC3[1]);
	asgnRefNoCycle((void**) (&(*result).N), newnode_227207(((NU8) 44), (*n).Info, LOC2, NIM_NIL));
	return result;
}

N_NIMCALL(void, pushowner_289260)(tsym224846* owner) {
	gowners_289292 = (tsymseq224818*) incrSeq(&(gowners_289292)->Sup, sizeof(tsym224846*));
	asgnRefNoCycle((void**) (&gowners_289292->data[gowners_289292->Sup.len-1]), owner);
}

N_NIMCALL(void, makeinstpair_289148)(tsym224846* s, tinstantiation224836* inst, tinstantiationpair289013* Result) {
	unsureAsgnRef((void**) (&(*Result).Genericsym), s);
	unsureAsgnRef((void**) (&(*Result).Inst), inst);
}

N_NIMCALL(tlib224834*, newlib_289186)(NU8 kind) {
	tlib224834* result;
	result = 0;
	result = (tlib224834*) newObj((&NTI224844), sizeof(tlib224834));
	(*result).Sup.Sup.m_type = (&NTI224834);
	(*result).Kind = kind;
	return result;
}

N_NIMCALL(void, addtolib_289192)(tlib224834* lib, tsym224846* sym) {
	asgnRef((void**) (&(*sym).Annex), lib);
}

N_NIMCALL(toptionentry289005*, lastoptionentry_289175)(tcontext289021* c) {
	toptionentry289005* result;
	result = 0;
	result = ((toptionentry289005*) ((*c).Optionstack.Tail));
	return result;
}

N_NIMCALL(void, popowner_289266)(void) {
	NI length;
	length = gowners_289292->Sup.len;
	{
		if (!(0 < length)) goto LA3;
		gowners_289292 = (tsymseq224818*) setLengthSeq(&(gowners_289292)->Sup, sizeof(tsym224846*), (NI64)(length - 1));
	}
	goto LA1;
	LA3: ;
	{
		internalerror_197006(((NimStringDesc*) &TMP3047));
	}
	LA1: ;
}

N_NIMCALL(tnode224816*, errornode_290328)(tcontext289021* c, tnode224816* n) {
	tnode224816* result;
	result = 0;
	result = newnodei_225138(((NU8) 1), (*n).Info);
	asgnRefNoCycle((void**) (&(*result).Typ), errortype_290318(c));
	return result;
}

N_NIMCALL(ttype224852*, makeptrtype_289199)(tcontext289021* c, ttype224852* basetype) {
	ttype224852* result;
	result = 0;
	result = newtypes_289213(((NU8) 21), c);
	{
		NimStringDesc* LOC5;
		if (!(basetype == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_197126(TMP3245);
		internalerror_197006(LOC5);
	}
	LA3: ;
	addsonskipintlit_281574(result, basetype);
	return result;
}

N_NIMCALL(tnode224816*, maketypesymnode_289797)(tcontext289021* c, ttype224852* typ, tlineinfo194539 info) {
	tnode224816* result;
	ttype224852* typedesc;
	tsym224846* sym;
	tsym224846* LOC1;
	tsym224846* LOC2;
	result = 0;
	typedesc = maketypedesc_289762(c, typ);
	LOC1 = 0;
	LOC1 = getcurrowner_289255();
	LOC2 = 0;
	LOC2 = newsym_225074(((NU8) 7), idanon_199504, LOC1, info);
	sym = linkto_225825(LOC2, typedesc);
	result = newsymnode_226754(sym, info);
	goto BeforeRet;
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, inclsym_289567)(tsymseq224818** sq, tsym224846* s) {
	NI l;
	l = (*sq)->Sup.len;
	{
		NI i_289596;
		NI HEX3Atmp_289614;
		NI res_289617;
		i_289596 = 0;
		HEX3Atmp_289614 = 0;
		HEX3Atmp_289614 = (NI64)(l - 1);
		res_289617 = 0;
		{
			while (1) {
				if (!(res_289617 <= HEX3Atmp_289614)) goto LA3;
				i_289596 = res_289617;
				{
					if (!((*(*sq)->data[i_289596]).Sup.Id == (*s).Sup.Id)) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
				res_289617 += 1;
			} LA3: ;
		}
	}
	(*sq) = (tsymseq224818*) setLengthSeq(&((*sq))->Sup, sizeof(tsym224846*), (NI64)(l + 1));
	asgnRefNoCycle((void**) (&(*sq)->data[l]), s);
	BeforeRet: ;
}

N_NIMCALL(void, addconverter_289634)(tcontext289021* c, tsym224846* conv) {
	inclsym_289567((&(*c).Converters), conv);
}

N_NIMCALL(void, addpattern_289645)(tcontext289021* c, tsym224846* p) {
	inclsym_289567((&(*c).Patterns), p);
}
NIM_EXTERNC N_NOINLINE(void, HEX00_semdataInit)(void) {
	if (gowners_289292) nimGCunrefNoCycle(gowners_289292);
	gowners_289292 = (tsymseq224818*) newSeqRC1((&NTI224818), 0);
}

NIM_EXTERNC N_NOINLINE(void, HEX00_semdataDatInit)(void) {
static TNimNode* TMP1944[37];
static TNimNode* TMP1945[6];
static TNimNode* TMP1947[2];
static TNimNode* TMP1948[2];
static TNimNode* TMP1970[2];
static TNimNode* TMP1973[5];
static TNimNode TMP846[60];
NTI289021.size = sizeof(tcontext289021);
NTI289021.kind = 17;
NTI289021.base = (&NTI285005);
TMP1944[0] = &TMP846[1];
TMP846[1].kind = 1;
TMP846[1].offset = offsetof(tcontext289021, Module);
TMP846[1].typ = (&NTI224814);
TMP846[1].name = "module";
TMP1944[1] = &TMP846[2];
TMP846[2].kind = 1;
TMP846[2].offset = offsetof(tcontext289021, Currentscope);
TMP846[2].typ = (&NTI224842);
TMP846[2].name = "currentScope";
TMP1944[2] = &TMP846[3];
TMP846[3].kind = 1;
TMP846[3].offset = offsetof(tcontext289021, Importtable);
TMP846[3].typ = (&NTI224842);
TMP846[3].name = "importTable";
TMP1944[3] = &TMP846[4];
TMP846[4].kind = 1;
TMP846[4].offset = offsetof(tcontext289021, Toplevelscope);
TMP846[4].typ = (&NTI224842);
TMP846[4].name = "topLevelScope";
TMP1944[4] = &TMP846[5];
NTI289011.size = sizeof(tproccon289011);
NTI289011.kind = 18;
NTI289011.base = 0;
TMP1945[0] = &TMP846[7];
TMP846[7].kind = 1;
TMP846[7].offset = offsetof(tproccon289011, Owner);
TMP846[7].typ = (&NTI224814);
TMP846[7].name = "owner";
TMP1945[1] = &TMP846[8];
TMP846[8].kind = 1;
TMP846[8].offset = offsetof(tproccon289011, Resultsym);
TMP846[8].typ = (&NTI224814);
TMP846[8].name = "resultSym";
TMP1945[2] = &TMP846[9];
TMP846[9].kind = 1;
TMP846[9].offset = offsetof(tproccon289011, Nestedloopcounter);
TMP846[9].typ = (&NTI108);
TMP846[9].name = "nestedLoopCounter";
TMP1945[3] = &TMP846[10];
TMP846[10].kind = 1;
TMP846[10].offset = offsetof(tproccon289011, Nestedblockcounter);
TMP846[10].typ = (&NTI108);
TMP846[10].name = "nestedBlockCounter";
TMP1945[4] = &TMP846[11];
TMP846[11].kind = 1;
TMP846[11].offset = offsetof(tproccon289011, Intrystmt);
TMP846[11].typ = (&NTI108);
TMP846[11].name = "inTryStmt";
TMP1945[5] = &TMP846[12];
TMP846[12].kind = 1;
TMP846[12].offset = offsetof(tproccon289011, Next);
TMP846[12].typ = (&NTI289009);
TMP846[12].name = "next";
TMP846[6].len = 6; TMP846[6].kind = 2; TMP846[6].sons = &TMP1945[0];
NTI289011.node = &TMP846[6];
NTI289009.size = sizeof(tproccon289011*);
NTI289009.kind = 22;
NTI289009.base = (&NTI289011);
NTI289009.marker = TMP1946;
TMP846[5].kind = 1;
TMP846[5].offset = offsetof(tcontext289021, P);
TMP846[5].typ = (&NTI289009);
TMP846[5].name = "p";
TMP1944[5] = &TMP846[13];
TMP846[13].kind = 1;
TMP846[13].offset = offsetof(tcontext289021, Friendmodules);
TMP846[13].typ = (&NTI224818);
TMP846[13].name = "friendModules";
TMP1944[6] = &TMP846[14];
TMP846[14].kind = 1;
TMP846[14].offset = offsetof(tcontext289021, Instcounter);
TMP846[14].typ = (&NTI108);
TMP846[14].name = "instCounter";
TMP1944[7] = &TMP846[15];
TMP846[15].kind = 1;
TMP846[15].offset = offsetof(tcontext289021, Ambiguoussymbols);
TMP846[15].typ = (&NTI221056);
TMP846[15].name = "ambiguousSymbols";
TMP1944[8] = &TMP846[16];
TMP846[16].kind = 1;
TMP846[16].offset = offsetof(tcontext289021, Intypeclass);
TMP846[16].typ = (&NTI108);
TMP846[16].name = "inTypeClass";
TMP1944[9] = &TMP846[17];
TMP846[17].kind = 1;
TMP846[17].offset = offsetof(tcontext289021, Ingenericcontext);
TMP846[17].typ = (&NTI108);
TMP846[17].name = "inGenericContext";
TMP1944[10] = &TMP846[18];
TMP846[18].kind = 1;
TMP846[18].offset = offsetof(tcontext289021, Inunrolledcontext);
TMP846[18].typ = (&NTI108);
TMP846[18].name = "inUnrolledContext";
TMP1944[11] = &TMP846[19];
TMP846[19].kind = 1;
TMP846[19].offset = offsetof(tcontext289021, Incompilescontext);
TMP846[19].typ = (&NTI108);
TMP846[19].name = "inCompilesContext";
TMP1944[12] = &TMP846[20];
TMP846[20].kind = 1;
TMP846[20].offset = offsetof(tcontext289021, Ingenericinst);
TMP846[20].typ = (&NTI108);
TMP846[20].name = "inGenericInst";
TMP1944[13] = &TMP846[21];
TMP846[21].kind = 1;
TMP846[21].offset = offsetof(tcontext289021, Converters);
TMP846[21].typ = (&NTI224818);
TMP846[21].name = "converters";
TMP1944[14] = &TMP846[22];
TMP846[22].kind = 1;
TMP846[22].offset = offsetof(tcontext289021, Patterns);
TMP846[22].typ = (&NTI224818);
TMP846[22].name = "patterns";
TMP1944[15] = &TMP846[23];
TMP846[23].kind = 1;
TMP846[23].offset = offsetof(tcontext289021, Optionstack);
TMP846[23].typ = (&NTI126028);
TMP846[23].name = "optionStack";
TMP1944[16] = &TMP846[24];
TMP846[24].kind = 1;
TMP846[24].offset = offsetof(tcontext289021, Symmapping);
TMP846[24].typ = (&NTI224864);
TMP846[24].name = "symMapping";
TMP1944[17] = &TMP846[25];
TMP846[25].kind = 1;
TMP846[25].offset = offsetof(tcontext289021, Libs);
TMP846[25].typ = (&NTI126028);
TMP846[25].name = "libs";
TMP1944[18] = &TMP846[26];
NTI289064.size = sizeof(TY289064);
NTI289064.kind = 25;
NTI289064.base = 0;
NTI289064.flags = 3;
TMP846[26].kind = 1;
TMP846[26].offset = offsetof(tcontext289021, Semconstexpr);
TMP846[26].typ = (&NTI289064);
TMP846[26].name = "semConstExpr";
TMP1944[19] = &TMP846[27];
NTI289069.size = sizeof(TY289069);
NTI289069.kind = 25;
NTI289069.base = 0;
NTI289069.flags = 3;
TMP846[27].kind = 1;
TMP846[27].offset = offsetof(tcontext289021, Semexpr);
TMP846[27].typ = (&NTI289069);
TMP846[27].name = "semExpr";
TMP1944[20] = &TMP846[28];
NTI289077.size = sizeof(TY289077);
NTI289077.kind = 25;
NTI289077.base = 0;
NTI289077.flags = 3;
TMP846[28].kind = 1;
TMP846[28].offset = offsetof(tcontext289021, Semtryexpr);
TMP846[28].typ = (&NTI289077);
TMP846[28].name = "semTryExpr";
TMP1944[21] = &TMP846[29];
NTI289085.size = sizeof(TY289085);
NTI289085.kind = 25;
NTI289085.base = 0;
NTI289085.flags = 3;
TMP846[29].kind = 1;
TMP846[29].offset = offsetof(tcontext289021, Semtryconstexpr);
TMP846[29].typ = (&NTI289085);
TMP846[29].name = "semTryConstExpr";
TMP1944[22] = &TMP846[30];
NTI289090.size = sizeof(TY289090);
NTI289090.kind = 25;
NTI289090.base = 0;
NTI289090.flags = 3;
TMP846[30].kind = 1;
TMP846[30].offset = offsetof(tcontext289021, Semoperand);
TMP846[30].typ = (&NTI289090);
TMP846[30].name = "semOperand";
TMP1944[23] = &TMP846[31];
NTI289098.size = sizeof(TY289098);
NTI289098.kind = 25;
NTI289098.base = 0;
NTI289098.flags = 3;
TMP846[31].kind = 1;
TMP846[31].offset = offsetof(tcontext289021, Semconstboolexpr);
TMP846[31].typ = (&NTI289098);
TMP846[31].name = "semConstBoolExpr";
TMP1944[24] = &TMP846[32];
NTI289103.size = sizeof(TY289103);
NTI289103.kind = 25;
NTI289103.base = 0;
NTI289103.flags = 3;
TMP846[32].kind = 1;
TMP846[32].offset = offsetof(tcontext289021, Semoverloadedcall);
TMP846[32].typ = (&NTI289103);
TMP846[32].name = "semOverloadedCall";
TMP1944[25] = &TMP846[33];
NTI289110.size = sizeof(TY289110);
NTI289110.kind = 25;
NTI289110.base = 0;
NTI289110.flags = 3;
TMP846[33].kind = 1;
TMP846[33].offset = offsetof(tcontext289021, Semtypenode);
TMP846[33].typ = (&NTI289110);
TMP846[33].name = "semTypeNode";
TMP1944[26] = &TMP846[34];
NTI289116.size = sizeof(TY611034);
NTI289116.kind = 18;
NTI289116.base = 0;
NTI289116.flags = 2;
TMP1947[0] = &TMP846[36];
TMP846[36].kind = 1;
TMP846[36].offset = offsetof(TY611034, Field0);
TMP846[36].typ = (&NTI153);
TMP846[36].name = "Field0";
TMP1947[1] = &TMP846[37];
TMP846[37].kind = 1;
TMP846[37].offset = offsetof(TY611034, Field1);
TMP846[37].typ = (&NTI611036);
TMP846[37].name = "Field1";
TMP846[35].len = 2; TMP846[35].kind = 2; TMP846[35].sons = &TMP1947[0];
NTI289116.node = &TMP846[35];
TMP846[34].kind = 1;
TMP846[34].offset = offsetof(tcontext289021, Seminferredlambda);
TMP846[34].typ = (&NTI289116);
TMP846[34].name = "semInferredLambda";
TMP1944[27] = &TMP846[38];
NTI289122.size = sizeof(TY611034);
NTI289122.kind = 18;
NTI289122.base = 0;
NTI289122.flags = 2;
TMP1948[0] = &TMP846[40];
TMP846[40].kind = 1;
TMP846[40].offset = offsetof(TY611034, Field0);
TMP846[40].typ = (&NTI153);
TMP846[40].name = "Field0";
TMP1948[1] = &TMP846[41];
TMP846[41].kind = 1;
TMP846[41].offset = offsetof(TY611034, Field1);
TMP846[41].typ = (&NTI611036);
TMP846[41].name = "Field1";
TMP846[39].len = 2; TMP846[39].kind = 2; TMP846[39].sons = &TMP1948[0];
NTI289122.node = &TMP846[39];
TMP846[38].kind = 1;
TMP846[38].offset = offsetof(tcontext289021, Semgenerateinstance);
TMP846[38].typ = (&NTI289122);
TMP846[38].name = "semGenerateInstance";
TMP1944[28] = &TMP846[42];
TMP846[42].kind = 1;
TMP846[42].offset = offsetof(tcontext289021, Includedfiles);
TMP846[42].typ = (&NTI221056);
TMP846[42].name = "includedFiles";
TMP1944[29] = &TMP846[43];
TMP846[43].kind = 1;
TMP846[43].offset = offsetof(tcontext289021, Userpragmas);
TMP846[43].typ = (&NTI224820);
TMP846[43].name = "userPragmas";
TMP1944[30] = &TMP846[44];
TMP846[44].kind = 1;
TMP846[44].offset = offsetof(tcontext289021, Evalcontext);
TMP846[44].typ = (&NTI288046);
TMP846[44].name = "evalContext";
TMP1944[31] = &TMP846[45];
TMP846[45].kind = 1;
TMP846[45].offset = offsetof(tcontext289021, Unknownidents);
TMP846[45].typ = (&NTI221056);
TMP846[45].name = "unknownIdents";
TMP1944[32] = &TMP846[46];
NTI289013.size = sizeof(tinstantiationpair289013);
NTI289013.kind = 18;
NTI289013.base = 0;
NTI289013.flags = 2;
TMP1970[0] = &TMP846[48];
TMP846[48].kind = 1;
TMP846[48].offset = offsetof(tinstantiationpair289013, Genericsym);
TMP846[48].typ = (&NTI224814);
TMP846[48].name = "genericSym";
TMP1970[1] = &TMP846[49];
TMP846[49].kind = 1;
TMP846[49].offset = offsetof(tinstantiationpair289013, Inst);
TMP846[49].typ = (&NTI224838);
TMP846[49].name = "inst";
TMP846[47].len = 2; TMP846[47].kind = 2; TMP846[47].sons = &TMP1970[0];
NTI289013.node = &TMP846[47];
NTI289133.size = sizeof(TY289133*);
NTI289133.kind = 24;
NTI289133.base = (&NTI289013);
NTI289133.flags = 2;
NTI289133.marker = TMP1971;
TMP846[46].kind = 1;
TMP846[46].offset = offsetof(tcontext289021, Generics);
TMP846[46].typ = (&NTI289133);
TMP846[46].name = "generics";
TMP1944[33] = &TMP846[50];
TMP846[50].kind = 1;
TMP846[50].offset = offsetof(tcontext289021, Lastgenericidx);
TMP846[50].typ = (&NTI108);
TMP846[50].name = "lastGenericIdx";
TMP1944[34] = &TMP846[51];
TMP846[51].kind = 1;
TMP846[51].offset = offsetof(tcontext289021, Hloloopdetector);
TMP846[51].typ = (&NTI108);
TMP846[51].name = "hloLoopDetector";
TMP1944[35] = &TMP846[52];
TMP846[52].kind = 1;
TMP846[52].offset = offsetof(tcontext289021, Inparallelstmt);
TMP846[52].typ = (&NTI108);
TMP846[52].name = "inParallelStmt";
TMP1944[36] = &TMP846[53];
NTI289138.size = sizeof(TY289138);
NTI289138.kind = 25;
NTI289138.base = 0;
NTI289138.flags = 3;
TMP846[53].kind = 1;
TMP846[53].offset = offsetof(tcontext289021, Instdeepcopy);
TMP846[53].typ = (&NTI289138);
TMP846[53].name = "instDeepCopy";
TMP846[0].len = 37; TMP846[0].kind = 2; TMP846[0].sons = &TMP1944[0];
NTI289021.node = &TMP846[0];
NTI289019.size = sizeof(tcontext289021*);
NTI289019.kind = 22;
NTI289019.base = (&NTI289021);
NTI289019.marker = TMP1972;
NTI289005.size = sizeof(toptionentry289005);
NTI289005.kind = 17;
NTI289005.base = (&NTI126022);
TMP1973[0] = &TMP846[55];
TMP846[55].kind = 1;
TMP846[55].offset = offsetof(toptionentry289005, Options);
TMP846[55].typ = (&NTI168016);
TMP846[55].name = "options";
TMP1973[1] = &TMP846[56];
TMP846[56].kind = 1;
TMP846[56].offset = offsetof(toptionentry289005, Defaultcc);
TMP846[56].typ = (&NTI224005);
TMP846[56].name = "defaultCC";
TMP1973[2] = &TMP846[57];
TMP846[57].kind = 1;
TMP846[57].offset = offsetof(toptionentry289005, Dynlib);
TMP846[57].typ = (&NTI224844);
TMP846[57].name = "dynlib";
TMP1973[3] = &TMP846[58];
TMP846[58].kind = 1;
TMP846[58].offset = offsetof(toptionentry289005, Notes);
TMP846[58].typ = (&NTI194535);
TMP846[58].name = "notes";
TMP1973[4] = &TMP846[59];
TMP846[59].kind = 1;
TMP846[59].offset = offsetof(toptionentry289005, Otherpragmas);
TMP846[59].typ = (&NTI224808);
TMP846[59].name = "otherPragmas";
TMP846[54].len = 5; TMP846[54].kind = 2; TMP846[54].sons = &TMP1973[0];
NTI289005.node = &TMP846[54];
NTI289007.size = sizeof(toptionentry289005*);
NTI289007.kind = 22;
NTI289007.base = (&NTI289005);
NTI289007.marker = TMP1977;
}

