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

#include <string.h>
typedef struct tsymseq226818 tsymseq226818;
typedef struct tsym226846 tsym226846;
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 tcontext291021 tcontext291021;
typedef struct tpasscontext287005 tpasscontext287005;
typedef struct TNimObject TNimObject;
typedef struct tscope226840 tscope226840;
typedef struct tproccon291011 tproccon291011;
typedef struct intset223056 intset223056;
typedef struct ttrunk223052 ttrunk223052;
typedef struct ttrunkseq223054 ttrunkseq223054;
typedef struct tlinkedlist127028 tlinkedlist127028;
typedef struct tlistentry127022 tlistentry127022;
typedef struct tidtable226864 tidtable226864;
typedef struct tidpairseq226862 tidpairseq226862;
typedef struct tidpair226860 tidpair226860;
typedef struct tidobj201015 tidobj201015;
typedef struct tnode226816 tnode226816;
typedef struct ttype226852 ttype226852;
typedef struct tlineinfo196539 tlineinfo196539;
typedef struct tstrtable226820 tstrtable226820;
typedef struct tctx290048 tctx290048;
typedef struct TY291133 TY291133;
typedef struct tinstantiationpair291013 tinstantiationpair291013;
typedef struct tinstantiation226836 tinstantiation226836;
typedef struct TY613034 TY613034;
typedef struct TY613037 TY613037;
typedef struct toptionentry291005 toptionentry291005;
typedef struct tlib226834 tlib226834;
typedef struct ttypeseq226848 ttypeseq226848;
typedef struct tloc226830 tloc226830;
typedef struct trope178009 trope178009;
typedef struct NimStringDesc NimStringDesc;
typedef struct tident201021 tident201021;
typedef struct tnodeseq226810 tnodeseq226810;
typedef struct TY84745 TY84745;
typedef struct TY226947 TY226947;
typedef struct tbasechunk26438 tbasechunk26438;
typedef struct tfreecell26430 tfreecell26430;
typedef struct TY290250 TY290250;
typedef struct TY197414 TY197414;
typedef struct pprocHEX3Aobjecttype290230 pprocHEX3Aobjecttype290230;
typedef struct TY290269 TY290269;
typedef struct TY290270 TY290270;
typedef struct vmargs290042 vmargs290042;
typedef struct TY226936 TY226936;
typedef struct TY290231 TY290231;
typedef struct tblock290030 tblock290030;
typedef struct TY290211 TY290211;
typedef struct TY290237 TY290237;
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  tpasscontext287005  {
  TNimObject Sup;
NIM_BOOL Fromcache;
};
struct  intset223056  {
NI Counter;
NI Max;
ttrunk223052* Head;
ttrunkseq223054* Data;
};
struct  tlinkedlist127028  {
tlistentry127022* Head;
tlistentry127022* Tail;
NI Counter;
};
struct  tidpair226860  {
tidobj201015* Key;
TNimObject* Val;
};
struct  tidtable226864  {
NI Counter;
tidpairseq226862* Data;
};
typedef N_NIMCALL_PTR(tnode226816*, TY291064) (tcontext291021* c, tnode226816* n);
typedef N_NIMCALL_PTR(tnode226816*, TY291069) (tcontext291021* c, tnode226816* n, NU16 flags);
typedef N_NIMCALL_PTR(tnode226816*, TY291077) (tcontext291021* c, tnode226816* n, NU16 flags);
typedef N_NIMCALL_PTR(tnode226816*, TY291085) (tcontext291021* c, tnode226816* n);
typedef N_NIMCALL_PTR(tnode226816*, TY291090) (tcontext291021* c, tnode226816* n, NU16 flags);
typedef N_NIMCALL_PTR(tnode226816*, TY291098) (tcontext291021* c, tnode226816* n);
typedef N_NIMCALL_PTR(tnode226816*, TY291103) (tcontext291021* c, tnode226816* n, tnode226816* norig, NU32 filter);
typedef N_NIMCALL_PTR(ttype226852*, TY291110) (tcontext291021* c, tnode226816* n, ttype226852* prev);
typedef struct {
N_NIMCALL_PTR(tnode226816*, ClPrc) (tcontext291021* c, tidtable226864 pt, tnode226816* n, void* ClEnv);
void* ClEnv;
} TY291116;
struct  tlineinfo196539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
typedef struct {
N_NIMCALL_PTR(tsym226846*, ClPrc) (tcontext291021* c, tsym226846* fn, tidtable226864 pt, tlineinfo196539 info, void* ClEnv);
void* ClEnv;
} TY291122;
struct  tstrtable226820  {
NI Counter;
tsymseq226818* Data;
};
struct  tinstantiationpair291013  {
tsym226846* Genericsym;
tinstantiation226836* Inst;
};
typedef N_NIMCALL_PTR(tsym226846*, TY291138) (tcontext291021* c, tsym226846* dc, ttype226852* t, tlineinfo196539 info);
struct  tcontext291021  {
  tpasscontext287005 Sup;
tsym226846* Module;
tscope226840* Currentscope;
tscope226840* Importtable;
tscope226840* Toplevelscope;
tproccon291011* P;
tsymseq226818* Friendmodules;
NI Instcounter;
intset223056 Ambiguoussymbols;
NI Intypeclass;
NI Ingenericcontext;
NI Inunrolledcontext;
NI Incompilescontext;
NI Ingenericinst;
tsymseq226818* Converters;
tsymseq226818* Patterns;
tlinkedlist127028 Optionstack;
tidtable226864 Symmapping;
tlinkedlist127028 Libs;
TY291064 Semconstexpr;
TY291069 Semexpr;
TY291077 Semtryexpr;
TY291085 Semtryconstexpr;
TY291090 Semoperand;
TY291098 Semconstboolexpr;
TY291103 Semoverloadedcall;
TY291110 Semtypenode;
TY291116 Seminferredlambda;
TY291122 Semgenerateinstance;
intset223056 Includedfiles;
tstrtable226820 Userpragmas;
tctx290048* Evalcontext;
intset223056 Unknownidents;
TY291133* Generics;
NI Lastgenericidx;
NI Hloloopdetector;
NI Inparallelstmt;
TY291138 Instdeepcopy;
};
struct  tproccon291011  {
tsym226846* Owner;
tsym226846* Resultsym;
NI Nestedloopcounter;
NI Nestedblockcounter;
NI Intrystmt;
tproccon291011* Next;
};
struct TY613034 {
void* Field0;
TY613037* Field1;
};
struct  tlistentry127022  {
  TNimObject Sup;
tlistentry127022* Prev;
tlistentry127022* Next;
};
struct  toptionentry291005  {
  tlistentry127022 Sup;
NU32 Options;
NU8 Defaultcc;
tlib226834* Dynlib;
NU64 Notes;
tnode226816* Otherpragmas;
};
typedef tsym226846* TY291499[1];
struct  tidobj201015  {
  TNimObject Sup;
NI Id;
};
struct  tloc226830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype226852* T;
trope178009* R;
trope178009* Heaproot;
};
struct  ttype226852  {
  tidobj201015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq226848* Sons;
tnode226816* N;
tsym226846* Owner;
tsym226846* Sym;
tsym226846* Destructor;
tsym226846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc226830 Loc;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  tnode226816  {
ttype226852* Typ;
tlineinfo196539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym226846* Sym;
} S4;
struct {tident201021* Ident;
} S5;
struct {tnodeseq226810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
struct TY84745 {
NimStringDesc* Field0;
NI Field1;
};
typedef tnode226816* TY247892[1];
typedef ttype226852* TY412748[1];
typedef ttype226852* TY291919[2];
typedef tnode226816* TY292287[2];
struct  tlib226834  {
  tlistentry127022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope178009* Name;
tnode226816* Path;
};
struct  tsym226846  {
  tidobj201015 Sup;
NU8 Kind;
union {
struct {ttypeseq226848* Typeinstcache;
tscope226840* Typscope;
} S1;
struct {TY226947* Procinstcache;
tscope226840* Scope;
} S2;
struct {TY226947* Usedgenerics;
tstrtable226820 Tab;
} S3;
struct {tsym226846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype226852* Typ;
tident201021* Name;
tlineinfo196539 Info;
tsym226846* Owner;
NU32 Flags;
tnode226816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc226830 Loc;
tlib226834* Annex;
tnode226816* Constraint;
};
typedef NI TY26420[16];
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  tscope226840  {
NI Depthlevel;
tstrtable226820 Symbols;
tnodeseq226810* Usingsyms;
tscope226840* Parent;
};
struct  ttrunk223052  {
ttrunk223052* Next;
NI Key;
TY26420 Bits;
};
struct  vmargs290042  {
NI Ra;
NI Rb;
NI Rc;
void* Slots;
tnode226816* Currentexception;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (vmargs290042* args, void* ClEnv);
void* ClEnv;
} vmcallback290044;
struct TY290270 {
NimStringDesc* Field0;
vmcallback290044 Field1;
};
struct  tctx290048  {
  tpasscontext287005 Sup;
TY290250* Code;
TY197414* Debug;
tnode226816* Globals;
tnode226816* Constants;
ttypeseq226848* Types;
tnode226816* Currentexceptiona;
tnode226816* Currentexceptionb;
NI Exceptioninstr;
pprocHEX3Aobjecttype290230* Prc;
tsym226846* Module;
tnode226816* Callsite;
NU8 Mode;
NU8 Features;
NIM_BOOL Traceactive;
NI Loopiterations;
tlineinfo196539 Comesfromheuristic;
TY290269* Callbacks;
NimStringDesc* Errorflag;
};
struct  tinstantiation226836  {
tsym226846* Sym;
ttypeseq226848* Concretetypes;
TY226936* Usedby;
};
struct TY613037 {
char dummy;
};
struct  trope178009  {
  TNimObject Sup;
trope178009* Left;
trope178009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tident201021  {
  tidobj201015 Sup;
NimStringDesc* S;
tident201021* Next;
NI H;
};
struct  tfreecell26430  {
tfreecell26430* Next;
NI Zerofield;
};
struct  tblock290030  {
tsym226846* Label;
TY290211* Fixups;
};
struct TY290237 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY290237 TY290234[256];
struct  pprocHEX3Aobjecttype290230  {
TY290231* Blocks;
tsym226846* Sym;
TY290234 Slots;
NI Maxslots;
};
struct tsymseq226818 {
  TGenericSeq Sup;
  tsym226846* data[SEQ_DECL_SIZE];
};
struct ttrunkseq223054 {
  TGenericSeq Sup;
  ttrunk223052* data[SEQ_DECL_SIZE];
};
struct tidpairseq226862 {
  TGenericSeq Sup;
  tidpair226860 data[SEQ_DECL_SIZE];
};
struct TY291133 {
  TGenericSeq Sup;
  tinstantiationpair291013 data[SEQ_DECL_SIZE];
};
struct ttypeseq226848 {
  TGenericSeq Sup;
  ttype226852* data[SEQ_DECL_SIZE];
};
struct tnodeseq226810 {
  TGenericSeq Sup;
  tnode226816* data[SEQ_DECL_SIZE];
};
struct TY226947 {
  TGenericSeq Sup;
  tinstantiation226836* data[SEQ_DECL_SIZE];
};
struct TY290250 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY197414 {
  TGenericSeq Sup;
  tlineinfo196539 data[SEQ_DECL_SIZE];
};
struct TY290269 {
  TGenericSeq Sup;
  TY290270 data[SEQ_DECL_SIZE];
};
struct TY226936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct TY290211 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
struct TY290231 {
  TGenericSeq Sup;
  tblock290030 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, TMP1948)(void* p, NI op);
N_NIMCALL(void, TMP1973)(void* p, NI op);
N_NIMCALL(void, TMP1974)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(void, initintset_223950)(intset223056* Result);
N_NIMCALL(void, initlinkedlist_127043)(tlinkedlist127028* list);
N_NIMCALL(void, append_127053)(tlinkedlist127028* list, tlistentry127022* entry);
N_NIMCALL(toptionentry291005*, newoptionentry_291182)(void);
N_NIMCALL(void, TMP1979)(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_227153)(tstrtable226820* x);
N_NIMCALL(ttype226852*, newtypes_291214)(NU8 kind, tcontext291021* c);
N_NIMCALL(ttype226852*, newtype_227083)(NU8 kind, tsym226846* owner);
N_NIMCALL(tsym226846*, getcurrowner_291256)(void);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_79604, TNimType* mt);
N_NIMCALL(void, globalerror_198934)(tlineinfo196539 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_251058)(tnode226816* n, NU8 renderflags);
static N_INLINE(NI, sonslen_227249)(tnode226816* n);
N_NIMCALL(void, illformedast_292406)(tnode226816* n);
N_NIMCALL(void, addsonskipintlit_283572)(ttype226852* father, ttype226852* son);
N_NIMCALL(void, internalerror_199006)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_199126)(TY84745 x_199130);
N_NIMCALL(tnode226816*, newnodei_227138)(NU8 kind, tlineinfo196539 info);
N_NIMCALL(void, addson_227287)(tnode226816* father, tnode226816* son);
N_NIMCALL(tnode226816*, newinttypenode_227103)(NU8 kind, NI64 intval, ttype226852* typ);
N_NIMCALL(ttype226852*, newtypewithsons_291823)(tcontext291021* c, NU8 kind, ttypeseq226848* sons);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, propagatetoowner_231318)(ttype226852* owner, ttype226852* elem);
N_NIMCALL(ttype226852*, getsystype_283030)(NU8 kind);
N_NIMCALL(tnode226816*, newnode_229207)(NU8 kind, tlineinfo196539 info, tnodeseq226810* sons, ttype226852* typ);
N_NIMCALL(tnode226816*, makestaticexpr_291836)(tcontext291021* c, tnode226816* n);
N_NIMCALL(tnode226816*, nminusone_292219)(tnode226816* n);
N_NIMCALL(tnode226816*, newsymnode_227132)(tsym226846* sym);
N_NIMCALL(tsym226846*, getsysmagic_283175)(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(ttype226852*, errortype_292319)(tcontext291021* c);
N_NIMCALL(ttype226852*, maketypedesc_291763)(tcontext291021* c, ttype226852* typ);
N_NIMCALL(tsym226846*, linkto_227825)(tsym226846* s, ttype226852* t);
N_NIMCALL(tsym226846*, newsym_227074)(NU8 symkind, tident201021* name, tsym226846* owner, tlineinfo196539 info);
N_NIMCALL(tnode226816*, newsymnode_228755)(tsym226846* sym, tlineinfo196539 info);
N_NIMCALL(void, inclsym_291568)(tsymseq226818** sq, tsym226846* s);
STRING_LITERAL(TMP2678, "compiler/semdata.nim", 20);
NIM_CONST TY84745 TMP2677 = {((NimStringDesc*) &TMP2678),
214}
;
NIM_CONST TY84745 TMP2686 = {((NimStringDesc*) &TMP2678),
210}
;
STRING_LITERAL(TMP2895, "<", 1);
STRING_LITERAL(TMP3049, "popOwner", 8);
NIM_CONST TY84745 TMP3247 = {((NimStringDesc*) &TMP2678),
206}
;
tsymseq226818* gowners_291293;
extern TNimType NTI226818; /* TSymSeq */
extern tgcheap47016 gch_47044;
extern TNimType NTI287005; /* TPassContext */
TNimType NTI291021; /* TContext */
extern TNimType NTI226814; /* PSym */
extern TNimType NTI226842; /* PScope */
TNimType NTI291011; /* TProcCon */
extern TNimType NTI108; /* int */
TNimType NTI291009; /* PProcCon */
extern TNimType NTI223056; /* IntSet */
extern TNimType NTI127028; /* TLinkedList */
extern TNimType NTI226864; /* TIdTable */
TNimType NTI291064; /* proc (PContext, PNode): PNode */
TNimType NTI291069; /* proc (PContext, PNode, TExprFlags): PNode */
TNimType NTI291077; /* proc (PContext, PNode, TExprFlags): PNode */
TNimType NTI291085; /* proc (PContext, PNode): PNode */
TNimType NTI291090; /* proc (PContext, PNode, TExprFlags): PNode */
TNimType NTI291098; /* proc (PContext, PNode): PNode */
TNimType NTI291103; /* proc (PContext, PNode, PNode, TSymKinds): PNode */
TNimType NTI291110; /* proc (PContext, PNode, PType): PType */
TNimType NTI291116; /* tuple[pointer, ref tuple[]] */
extern TNimType NTI153; /* pointer */
extern TNimType NTI613036; /* ref tuple[] */
TNimType NTI291122; /* tuple[pointer, ref tuple[]] */
extern TNimType NTI226820; /* TStrTable */
extern TNimType NTI290046; /* PCtx */
TNimType NTI291013; /* TInstantiationPair */
extern TNimType NTI226838; /* PInstantiation */
TNimType NTI291133; /* seq[TInstantiationPair] */
TNimType NTI291138; /* proc (PContext, PSym, PType, TLineInfo): PSym */
TNimType NTI291019; /* PContext */
extern TNimType NTI127022; /* TListEntry */
TNimType NTI291005; /* TOptionEntry */
extern TNimType NTI170016; /* TOptions */
extern TNimType NTI226005; /* TCallingConvention */
extern TNimType NTI226844; /* PLib */
extern TNimType NTI196535; /* TNoteKinds */
extern TNimType NTI226808; /* PNode */
TNimType NTI291007; /* POptionEntry */
extern NU32 goptions_170116;
extern NU64 gnotes_197305;
extern TNimType NTI226848; /* TTypeSeq */
extern TNimType NTI226810; /* TNodeSeq */
extern TNimType NTI226834; /* TLib */
extern tident201021* idanon_201504;

static N_INLINE(tcell44935*, usrtocell_48646)(void* usr) {
	tcell44935* result;
	result = 0;
	result = ((tcell44935*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((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 (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA3;
		rtladdzct_50204(c);
	}
	LA3: ;
}
N_NIMCALL(void, TMP1948)(void* p, NI op) {
	tproccon291011* a;
	a = (tproccon291011*)p;
	nimGCvisit((void*)(*a).Owner, op);
	nimGCvisit((void*)(*a).Resultsym, op);
	nimGCvisit((void*)(*a).Next, op);
}
N_NIMCALL(void, TMP1973)(void* p, NI op) {
	TY291133* a;
	NI LOC1;
	a = (TY291133*)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, TMP1974)(void* p, NI op) {
	tcontext291021* a;
	a = (tcontext291021*)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, TMP1979)(void* p, NI op) {
	toptionentry291005* a;
	a = (toptionentry291005*)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)((NU32)((*c).Refcount) + (NU32)(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 (!((NU32)((*c).Refcount) < (NU32)(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(toptionentry291005*, newoptionentry_291182)(void) {
	toptionentry291005* result;
	result = 0;
	result = (toptionentry291005*) newObj((&NTI291007), sizeof(toptionentry291005));
	(*result).Sup.Sup.m_type = (&NTI291005);
	(*result).Options = goptions_170116;
	(*result).Defaultcc = ((NU8) 0);
	asgnRef((void**) (&(*result).Dynlib), NIM_NIL);
	(*result).Notes = gnotes_197305;
	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 (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA11;
			rtladdzct_50204(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(tcontext291021*, newcontext_291170)(tsym226846* module) {
	tcontext291021* result;
	toptionentry291005* LOC1;
	tlistentry127022* LOC2;
	TY291499 LOC3;
	result = 0;
	result = (tcontext291021*) newObj((&NTI291019), sizeof(tcontext291021));
	(*result).Sup.Sup.m_type = (&NTI291021);
	initintset_223950((&(*result).Ambiguoussymbols));
	initlinkedlist_127043((&(*result).Optionstack));
	initlinkedlist_127043((&(*result).Libs));
	LOC1 = 0;
	LOC1 = newoptionentry_291182();
	LOC2 = 0;
	LOC2 = &LOC1->Sup;
	append_127053((&(*result).Optionstack), LOC2);
	asgnRefNoCycle((void**) (&(*result).Module), module);
	if ((*result).Friendmodules) nimGCunrefNoCycle((*result).Friendmodules);
	(*result).Friendmodules = (tsymseq226818*) newSeqRC1((&NTI226818), 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 = (tsymseq226818*) newSeqRC1((&NTI226818), 0);
	if ((*result).Patterns) nimGCunrefNoCycle((*result).Patterns);
	(*result).Patterns = (tsymseq226818*) newSeqRC1((&NTI226818), 0);
	initintset_223950((&(*result).Includedfiles));
	initstrtable_227153((&(*result).Userpragmas));
	if ((*result).Generics) nimGCunrefNoCycle((*result).Generics);
	(*result).Generics = (TY291133*) newSeqRC1((&NTI291133), 0);
	initintset_223950((&(*result).Unknownidents));
	return result;
}

N_NIMCALL(tsym226846*, getcurrowner_291256)(void) {
	tsym226846* result;
	result = 0;
	result = gowners_291293->data[(gowners_291293->Sup.len-1)];
	return result;
}

N_NIMCALL(ttype226852*, newtypes_291214)(NU8 kind, tcontext291021* c) {
	ttype226852* result;
	tsym226846* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_291256();
	result = newtype_227083(kind, LOC1);
	return result;
}

N_NIMCALL(ttype226852*, maketypefromexpr_291812)(tcontext291021* c, tnode226816* n) {
	ttype226852* result;
	result = 0;
	result = newtypes_291214(((NU8) 60), c);
	asgnRefNoCycle((void**) (&(*result).N), n);
	return result;
}

N_NIMCALL(ttype226852*, newtypewithsons_291823)(tcontext291021* c, NU8 kind, ttypeseq226848* sons) {
	ttype226852* result;
	tsym226846* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_291256();
	result = newtype_227083(kind, LOC1);
	genericSeqAssign((&(*result).Sons), sons, (&NTI226848));
	return result;
}

N_NIMCALL(ttype226852*, errortype_292319)(tcontext291021* c) {
	ttype226852* result;
	result = 0;
	result = newtypes_291214(((NU8) 50), c);
	return result;
}

N_NIMCALL(void, illformedast_292406)(tnode226816* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_251058(n, 4);
	globalerror_198934((*n).Info, ((NU16) 1), LOC1);
}

static N_INLINE(NI, sonslen_227249)(tnode226816* 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_292416)(tnode226816* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_227249(n);
		if (!!((LOC3 == length))) goto LA4;
		illformedast_292406(n);
	}
	LA4: ;
}

N_NIMCALL(ttype226852*, maketypedesc_291763)(tcontext291021* c, ttype226852* typ) {
	ttype226852* result;
	result = 0;
	result = newtypes_291214(((NU8) 8), c);
	{
		NimStringDesc* LOC5;
		if (!(typ == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_199126(TMP2677);
		internalerror_199006(LOC5);
	}
	LA3: ;
	addsonskipintlit_283572(result, typ);
	return result;
}

N_NIMCALL(ttype226852*, makevartype_291207)(tcontext291021* c, ttype226852* basetype) {
	ttype226852* result;
	result = 0;
	result = newtypes_291214(((NU8) 23), c);
	{
		NimStringDesc* LOC5;
		if (!(basetype == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_199126(TMP2686);
		internalerror_199006(LOC5);
	}
	LA3: ;
	addsonskipintlit_283572(result, basetype);
	return result;
}

N_NIMCALL(ttype226852*, makerangetype_292351)(tcontext291021* c, NI64 first, NI64 last, tlineinfo196539 info, ttype226852* inttype) {
	ttype226852* result;
	tnode226816* n;
	tnode226816* LOC1;
	tnode226816* LOC2;
	result = 0;
	n = newnodei_227138(((NU8) 44), info);
	LOC1 = 0;
	LOC1 = newinttypenode_227103(((NU8) 6), first, inttype);
	addson_227287(n, LOC1);
	LOC2 = 0;
	LOC2 = newinttypenode_227103(((NU8) 6), last, inttype);
	addson_227287(n, LOC2);
	result = newtypes_291214(((NU8) 20), c);
	asgnRefNoCycle((void**) (&(*result).N), n);
	addsonskipintlit_283572(result, inttype);
	return result;
}

N_NIMCALL(tnode226816*, makestaticexpr_291836)(tcontext291021* c, tnode226816* n) {
	tnode226816* result;
	TY247892 LOC1;
	ttypeseq226848* LOC2;
	TY412748 LOC3;
	result = 0;
	result = newnodei_227138(((NU8) 62), (*n).Info);
	if ((*result).kindU.S6.Sons) nimGCunrefNoCycle((*result).kindU.S6.Sons);
	(*result).kindU.S6.Sons = (tnodeseq226810*) newSeqRC1((&NTI226810), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = n;
	asgnRefNoCycle((void**) (&(*result).kindU.S6.Sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (ttypeseq226848*) newSeq((&NTI226848), 1);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = (*n).Typ;
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&(*result).Typ), newtypewithsons_291823(c, ((NU8) 59), LOC2));
	return result;
}

N_NIMCALL(ttype226852*, makeandtype_291897)(tcontext291021* c, ttype226852* t1, ttype226852* t2) {
	ttype226852* result;
	TY291919 LOC1;
	result = 0;
	result = newtypes_291214(((NU8) 55), c);
	if ((*result).Sons) nimGCunrefNoCycle((*result).Sons);
	(*result).Sons = (ttypeseq226848*) newSeqRC1((&NTI226848), 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_231318(result, t1);
	propagatetoowner_231318(result, t2);
	(*result).Flags = ((*result).Flags | (((*t1).Flags | (*t2).Flags) & 4194304));
	return result;
}

N_NIMCALL(ttype226852*, makeortype_292016)(tcontext291021* c, ttype226852* t1, ttype226852* t2) {
	ttype226852* result;
	TY291919 LOC1;
	result = 0;
	result = newtypes_291214(((NU8) 56), c);
	if ((*result).Sons) nimGCunrefNoCycle((*result).Sons);
	(*result).Sons = (ttypeseq226848*) newSeqRC1((&NTI226848), 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_231318(result, t1);
	propagatetoowner_231318(result, t2);
	(*result).Flags = ((*result).Flags | (((*t1).Flags | (*t2).Flags) & 4194304));
	return result;
}

N_NIMCALL(ttype226852*, makenottype_292135)(tcontext291021* c, ttype226852* t1) {
	ttype226852* result;
	TY412748 LOC1;
	result = 0;
	result = newtypes_291214(((NU8) 57), c);
	if ((*result).Sons) nimGCunrefNoCycle((*result).Sons);
	(*result).Sons = (ttypeseq226848*) newSeqRC1((&NTI226848), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = t1;
	asgnRefNoCycle((void**) (&(*result).Sons->data[0]), LOC1[0]);
	propagatetoowner_231318(result, t1);
	(*result).Flags = ((*result).Flags | ((*t1).Flags & 4194304));
	return result;
}

N_NIMCALL(void, checkminsonslen_292426)(tnode226816* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_227249(n);
		if (!(LOC3 < length)) goto LA4;
		illformedast_292406(n);
	}
	LA4: ;
}

N_NIMCALL(tnode226816*, nminusone_292219)(tnode226816* n) {
	tnode226816* result;
	tnodeseq226810* LOC1;
	TY292287 LOC2;
	tsym226846* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (tnodeseq226810*) newSeq((&NTI226810), 2);
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC3 = 0;
	LOC3 = getsysmagic_283175(((NimStringDesc*) &TMP2895), ((NU16) 18));
	LOC2[0] = newsymnode_227132(LOC3);
	LOC2[1] = n;
	asgnRefNoCycle((void**) (&LOC1->data[0]), LOC2[0]);
	asgnRefNoCycle((void**) (&LOC1->data[1]), LOC2[1]);
	result = newnode_229207(((NU8) 27), (*n).Info, LOC1, NIM_NIL);
	return result;
}

N_NIMCALL(ttype226852*, makerangewithstaticexpr_292247)(tcontext291021* c, tnode226816* n) {
	ttype226852* result;
	ttype226852* inttype;
	TY412748 LOC1;
	tnodeseq226810* LOC2;
	TY292287 LOC3;
	tnode226816* LOC4;
	result = 0;
	inttype = getsystype_283030(((NU8) 31));
	result = newtypes_291214(((NU8) 20), c);
	if ((*result).Sons) nimGCunrefNoCycle((*result).Sons);
	(*result).Sons = (ttypeseq226848*) newSeqRC1((&NTI226848), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = inttype;
	asgnRefNoCycle((void**) (&(*result).Sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (tnodeseq226810*) newSeq((&NTI226810), 2);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = newinttypenode_227103(((NU8) 6), IL64(0), inttype);
	LOC4 = 0;
	LOC4 = nminusone_292219(n);
	LOC3[1] = makestaticexpr_291836(c, LOC4);
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&LOC2->data[1]), LOC3[1]);
	asgnRefNoCycle((void**) (&(*result).N), newnode_229207(((NU8) 44), (*n).Info, LOC2, NIM_NIL));
	return result;
}

N_NIMCALL(void, pushowner_291261)(tsym226846* owner) {
	gowners_291293 = (tsymseq226818*) incrSeq(&(gowners_291293)->Sup, sizeof(tsym226846*));
	asgnRefNoCycle((void**) (&gowners_291293->data[gowners_291293->Sup.len-1]), owner);
}

N_NIMCALL(void, makeinstpair_291148)(tsym226846* s, tinstantiation226836* inst, tinstantiationpair291013* Result) {
	unsureAsgnRef((void**) (&(*Result).Genericsym), s);
	unsureAsgnRef((void**) (&(*Result).Inst), inst);
}

N_NIMCALL(tlib226834*, newlib_291187)(NU8 kind) {
	tlib226834* result;
	result = 0;
	result = (tlib226834*) newObj((&NTI226844), sizeof(tlib226834));
	(*result).Sup.Sup.m_type = (&NTI226834);
	(*result).Kind = kind;
	return result;
}

N_NIMCALL(void, addtolib_291193)(tlib226834* lib, tsym226846* sym) {
	asgnRef((void**) (&(*sym).Annex), lib);
}

N_NIMCALL(toptionentry291005*, lastoptionentry_291176)(tcontext291021* c) {
	toptionentry291005* result;
	result = 0;
	result = ((toptionentry291005*) ((*c).Optionstack.Tail));
	return result;
}

N_NIMCALL(void, popowner_291267)(void) {
	NI length;
	length = gowners_291293->Sup.len;
	{
		if (!(0 < length)) goto LA3;
		gowners_291293 = (tsymseq226818*) setLengthSeq(&(gowners_291293)->Sup, sizeof(tsym226846*), (NI32)(length - 1));
	}
	goto LA1;
	LA3: ;
	{
		internalerror_199006(((NimStringDesc*) &TMP3049));
	}
	LA1: ;
}

N_NIMCALL(tnode226816*, errornode_292329)(tcontext291021* c, tnode226816* n) {
	tnode226816* result;
	result = 0;
	result = newnodei_227138(((NU8) 1), (*n).Info);
	asgnRefNoCycle((void**) (&(*result).Typ), errortype_292319(c));
	return result;
}

N_NIMCALL(ttype226852*, makeptrtype_291200)(tcontext291021* c, ttype226852* basetype) {
	ttype226852* result;
	result = 0;
	result = newtypes_291214(((NU8) 21), c);
	{
		NimStringDesc* LOC5;
		if (!(basetype == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_199126(TMP3247);
		internalerror_199006(LOC5);
	}
	LA3: ;
	addsonskipintlit_283572(result, basetype);
	return result;
}

N_NIMCALL(tnode226816*, maketypesymnode_291798)(tcontext291021* c, ttype226852* typ, tlineinfo196539 info) {
	tnode226816* result;
	ttype226852* typedesc;
	tsym226846* sym;
	tsym226846* LOC1;
	tsym226846* LOC2;
	result = 0;
	typedesc = maketypedesc_291763(c, typ);
	LOC1 = 0;
	LOC1 = getcurrowner_291256();
	LOC2 = 0;
	LOC2 = newsym_227074(((NU8) 7), idanon_201504, LOC1, info);
	sym = linkto_227825(LOC2, typedesc);
	result = newsymnode_228755(sym, info);
	goto BeforeRet;
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, inclsym_291568)(tsymseq226818** sq, tsym226846* s) {
	NI l;
	l = (*sq)->Sup.len;
	{
		NI i_291597;
		NI HEX3Atmp_291615;
		NI res_291618;
		i_291597 = 0;
		HEX3Atmp_291615 = 0;
		HEX3Atmp_291615 = (NI32)(l - 1);
		res_291618 = 0;
		{
			while (1) {
				if (!(res_291618 <= HEX3Atmp_291615)) goto LA3;
				i_291597 = res_291618;
				{
					if (!((*(*sq)->data[i_291597]).Sup.Id == (*s).Sup.Id)) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
				res_291618 += 1;
			} LA3: ;
		}
	}
	(*sq) = (tsymseq226818*) setLengthSeq(&((*sq))->Sup, sizeof(tsym226846*), (NI32)(l + 1));
	asgnRefNoCycle((void**) (&(*sq)->data[l]), s);
	BeforeRet: ;
}

N_NIMCALL(void, addconverter_291635)(tcontext291021* c, tsym226846* conv) {
	inclsym_291568((&(*c).Converters), conv);
}

N_NIMCALL(void, addpattern_291646)(tcontext291021* c, tsym226846* p) {
	inclsym_291568((&(*c).Patterns), p);
}
NIM_EXTERNC N_NOINLINE(void, HEX00_semdataInit)(void) {
	if (gowners_291293) nimGCunrefNoCycle(gowners_291293);
	gowners_291293 = (tsymseq226818*) newSeqRC1((&NTI226818), 0);
}

NIM_EXTERNC N_NOINLINE(void, HEX00_semdataDatInit)(void) {
static TNimNode* TMP1946[37];
static TNimNode* TMP1947[6];
static TNimNode* TMP1949[2];
static TNimNode* TMP1950[2];
static TNimNode* TMP1972[2];
static TNimNode* TMP1975[5];
static TNimNode TMP848[60];
NTI291021.size = sizeof(tcontext291021);
NTI291021.kind = 17;
NTI291021.base = (&NTI287005);
TMP1946[0] = &TMP848[1];
TMP848[1].kind = 1;
TMP848[1].offset = offsetof(tcontext291021, Module);
TMP848[1].typ = (&NTI226814);
TMP848[1].name = "module";
TMP1946[1] = &TMP848[2];
TMP848[2].kind = 1;
TMP848[2].offset = offsetof(tcontext291021, Currentscope);
TMP848[2].typ = (&NTI226842);
TMP848[2].name = "currentScope";
TMP1946[2] = &TMP848[3];
TMP848[3].kind = 1;
TMP848[3].offset = offsetof(tcontext291021, Importtable);
TMP848[3].typ = (&NTI226842);
TMP848[3].name = "importTable";
TMP1946[3] = &TMP848[4];
TMP848[4].kind = 1;
TMP848[4].offset = offsetof(tcontext291021, Toplevelscope);
TMP848[4].typ = (&NTI226842);
TMP848[4].name = "topLevelScope";
TMP1946[4] = &TMP848[5];
NTI291011.size = sizeof(tproccon291011);
NTI291011.kind = 18;
NTI291011.base = 0;
TMP1947[0] = &TMP848[7];
TMP848[7].kind = 1;
TMP848[7].offset = offsetof(tproccon291011, Owner);
TMP848[7].typ = (&NTI226814);
TMP848[7].name = "owner";
TMP1947[1] = &TMP848[8];
TMP848[8].kind = 1;
TMP848[8].offset = offsetof(tproccon291011, Resultsym);
TMP848[8].typ = (&NTI226814);
TMP848[8].name = "resultSym";
TMP1947[2] = &TMP848[9];
TMP848[9].kind = 1;
TMP848[9].offset = offsetof(tproccon291011, Nestedloopcounter);
TMP848[9].typ = (&NTI108);
TMP848[9].name = "nestedLoopCounter";
TMP1947[3] = &TMP848[10];
TMP848[10].kind = 1;
TMP848[10].offset = offsetof(tproccon291011, Nestedblockcounter);
TMP848[10].typ = (&NTI108);
TMP848[10].name = "nestedBlockCounter";
TMP1947[4] = &TMP848[11];
TMP848[11].kind = 1;
TMP848[11].offset = offsetof(tproccon291011, Intrystmt);
TMP848[11].typ = (&NTI108);
TMP848[11].name = "inTryStmt";
TMP1947[5] = &TMP848[12];
TMP848[12].kind = 1;
TMP848[12].offset = offsetof(tproccon291011, Next);
TMP848[12].typ = (&NTI291009);
TMP848[12].name = "next";
TMP848[6].len = 6; TMP848[6].kind = 2; TMP848[6].sons = &TMP1947[0];
NTI291011.node = &TMP848[6];
NTI291009.size = sizeof(tproccon291011*);
NTI291009.kind = 22;
NTI291009.base = (&NTI291011);
NTI291009.marker = TMP1948;
TMP848[5].kind = 1;
TMP848[5].offset = offsetof(tcontext291021, P);
TMP848[5].typ = (&NTI291009);
TMP848[5].name = "p";
TMP1946[5] = &TMP848[13];
TMP848[13].kind = 1;
TMP848[13].offset = offsetof(tcontext291021, Friendmodules);
TMP848[13].typ = (&NTI226818);
TMP848[13].name = "friendModules";
TMP1946[6] = &TMP848[14];
TMP848[14].kind = 1;
TMP848[14].offset = offsetof(tcontext291021, Instcounter);
TMP848[14].typ = (&NTI108);
TMP848[14].name = "instCounter";
TMP1946[7] = &TMP848[15];
TMP848[15].kind = 1;
TMP848[15].offset = offsetof(tcontext291021, Ambiguoussymbols);
TMP848[15].typ = (&NTI223056);
TMP848[15].name = "ambiguousSymbols";
TMP1946[8] = &TMP848[16];
TMP848[16].kind = 1;
TMP848[16].offset = offsetof(tcontext291021, Intypeclass);
TMP848[16].typ = (&NTI108);
TMP848[16].name = "inTypeClass";
TMP1946[9] = &TMP848[17];
TMP848[17].kind = 1;
TMP848[17].offset = offsetof(tcontext291021, Ingenericcontext);
TMP848[17].typ = (&NTI108);
TMP848[17].name = "inGenericContext";
TMP1946[10] = &TMP848[18];
TMP848[18].kind = 1;
TMP848[18].offset = offsetof(tcontext291021, Inunrolledcontext);
TMP848[18].typ = (&NTI108);
TMP848[18].name = "inUnrolledContext";
TMP1946[11] = &TMP848[19];
TMP848[19].kind = 1;
TMP848[19].offset = offsetof(tcontext291021, Incompilescontext);
TMP848[19].typ = (&NTI108);
TMP848[19].name = "inCompilesContext";
TMP1946[12] = &TMP848[20];
TMP848[20].kind = 1;
TMP848[20].offset = offsetof(tcontext291021, Ingenericinst);
TMP848[20].typ = (&NTI108);
TMP848[20].name = "inGenericInst";
TMP1946[13] = &TMP848[21];
TMP848[21].kind = 1;
TMP848[21].offset = offsetof(tcontext291021, Converters);
TMP848[21].typ = (&NTI226818);
TMP848[21].name = "converters";
TMP1946[14] = &TMP848[22];
TMP848[22].kind = 1;
TMP848[22].offset = offsetof(tcontext291021, Patterns);
TMP848[22].typ = (&NTI226818);
TMP848[22].name = "patterns";
TMP1946[15] = &TMP848[23];
TMP848[23].kind = 1;
TMP848[23].offset = offsetof(tcontext291021, Optionstack);
TMP848[23].typ = (&NTI127028);
TMP848[23].name = "optionStack";
TMP1946[16] = &TMP848[24];
TMP848[24].kind = 1;
TMP848[24].offset = offsetof(tcontext291021, Symmapping);
TMP848[24].typ = (&NTI226864);
TMP848[24].name = "symMapping";
TMP1946[17] = &TMP848[25];
TMP848[25].kind = 1;
TMP848[25].offset = offsetof(tcontext291021, Libs);
TMP848[25].typ = (&NTI127028);
TMP848[25].name = "libs";
TMP1946[18] = &TMP848[26];
NTI291064.size = sizeof(TY291064);
NTI291064.kind = 25;
NTI291064.base = 0;
NTI291064.flags = 3;
TMP848[26].kind = 1;
TMP848[26].offset = offsetof(tcontext291021, Semconstexpr);
TMP848[26].typ = (&NTI291064);
TMP848[26].name = "semConstExpr";
TMP1946[19] = &TMP848[27];
NTI291069.size = sizeof(TY291069);
NTI291069.kind = 25;
NTI291069.base = 0;
NTI291069.flags = 3;
TMP848[27].kind = 1;
TMP848[27].offset = offsetof(tcontext291021, Semexpr);
TMP848[27].typ = (&NTI291069);
TMP848[27].name = "semExpr";
TMP1946[20] = &TMP848[28];
NTI291077.size = sizeof(TY291077);
NTI291077.kind = 25;
NTI291077.base = 0;
NTI291077.flags = 3;
TMP848[28].kind = 1;
TMP848[28].offset = offsetof(tcontext291021, Semtryexpr);
TMP848[28].typ = (&NTI291077);
TMP848[28].name = "semTryExpr";
TMP1946[21] = &TMP848[29];
NTI291085.size = sizeof(TY291085);
NTI291085.kind = 25;
NTI291085.base = 0;
NTI291085.flags = 3;
TMP848[29].kind = 1;
TMP848[29].offset = offsetof(tcontext291021, Semtryconstexpr);
TMP848[29].typ = (&NTI291085);
TMP848[29].name = "semTryConstExpr";
TMP1946[22] = &TMP848[30];
NTI291090.size = sizeof(TY291090);
NTI291090.kind = 25;
NTI291090.base = 0;
NTI291090.flags = 3;
TMP848[30].kind = 1;
TMP848[30].offset = offsetof(tcontext291021, Semoperand);
TMP848[30].typ = (&NTI291090);
TMP848[30].name = "semOperand";
TMP1946[23] = &TMP848[31];
NTI291098.size = sizeof(TY291098);
NTI291098.kind = 25;
NTI291098.base = 0;
NTI291098.flags = 3;
TMP848[31].kind = 1;
TMP848[31].offset = offsetof(tcontext291021, Semconstboolexpr);
TMP848[31].typ = (&NTI291098);
TMP848[31].name = "semConstBoolExpr";
TMP1946[24] = &TMP848[32];
NTI291103.size = sizeof(TY291103);
NTI291103.kind = 25;
NTI291103.base = 0;
NTI291103.flags = 3;
TMP848[32].kind = 1;
TMP848[32].offset = offsetof(tcontext291021, Semoverloadedcall);
TMP848[32].typ = (&NTI291103);
TMP848[32].name = "semOverloadedCall";
TMP1946[25] = &TMP848[33];
NTI291110.size = sizeof(TY291110);
NTI291110.kind = 25;
NTI291110.base = 0;
NTI291110.flags = 3;
TMP848[33].kind = 1;
TMP848[33].offset = offsetof(tcontext291021, Semtypenode);
TMP848[33].typ = (&NTI291110);
TMP848[33].name = "semTypeNode";
TMP1946[26] = &TMP848[34];
NTI291116.size = sizeof(TY613034);
NTI291116.kind = 18;
NTI291116.base = 0;
NTI291116.flags = 2;
TMP1949[0] = &TMP848[36];
TMP848[36].kind = 1;
TMP848[36].offset = offsetof(TY613034, Field0);
TMP848[36].typ = (&NTI153);
TMP848[36].name = "Field0";
TMP1949[1] = &TMP848[37];
TMP848[37].kind = 1;
TMP848[37].offset = offsetof(TY613034, Field1);
TMP848[37].typ = (&NTI613036);
TMP848[37].name = "Field1";
TMP848[35].len = 2; TMP848[35].kind = 2; TMP848[35].sons = &TMP1949[0];
NTI291116.node = &TMP848[35];
TMP848[34].kind = 1;
TMP848[34].offset = offsetof(tcontext291021, Seminferredlambda);
TMP848[34].typ = (&NTI291116);
TMP848[34].name = "semInferredLambda";
TMP1946[27] = &TMP848[38];
NTI291122.size = sizeof(TY613034);
NTI291122.kind = 18;
NTI291122.base = 0;
NTI291122.flags = 2;
TMP1950[0] = &TMP848[40];
TMP848[40].kind = 1;
TMP848[40].offset = offsetof(TY613034, Field0);
TMP848[40].typ = (&NTI153);
TMP848[40].name = "Field0";
TMP1950[1] = &TMP848[41];
TMP848[41].kind = 1;
TMP848[41].offset = offsetof(TY613034, Field1);
TMP848[41].typ = (&NTI613036);
TMP848[41].name = "Field1";
TMP848[39].len = 2; TMP848[39].kind = 2; TMP848[39].sons = &TMP1950[0];
NTI291122.node = &TMP848[39];
TMP848[38].kind = 1;
TMP848[38].offset = offsetof(tcontext291021, Semgenerateinstance);
TMP848[38].typ = (&NTI291122);
TMP848[38].name = "semGenerateInstance";
TMP1946[28] = &TMP848[42];
TMP848[42].kind = 1;
TMP848[42].offset = offsetof(tcontext291021, Includedfiles);
TMP848[42].typ = (&NTI223056);
TMP848[42].name = "includedFiles";
TMP1946[29] = &TMP848[43];
TMP848[43].kind = 1;
TMP848[43].offset = offsetof(tcontext291021, Userpragmas);
TMP848[43].typ = (&NTI226820);
TMP848[43].name = "userPragmas";
TMP1946[30] = &TMP848[44];
TMP848[44].kind = 1;
TMP848[44].offset = offsetof(tcontext291021, Evalcontext);
TMP848[44].typ = (&NTI290046);
TMP848[44].name = "evalContext";
TMP1946[31] = &TMP848[45];
TMP848[45].kind = 1;
TMP848[45].offset = offsetof(tcontext291021, Unknownidents);
TMP848[45].typ = (&NTI223056);
TMP848[45].name = "unknownIdents";
TMP1946[32] = &TMP848[46];
NTI291013.size = sizeof(tinstantiationpair291013);
NTI291013.kind = 18;
NTI291013.base = 0;
NTI291013.flags = 2;
TMP1972[0] = &TMP848[48];
TMP848[48].kind = 1;
TMP848[48].offset = offsetof(tinstantiationpair291013, Genericsym);
TMP848[48].typ = (&NTI226814);
TMP848[48].name = "genericSym";
TMP1972[1] = &TMP848[49];
TMP848[49].kind = 1;
TMP848[49].offset = offsetof(tinstantiationpair291013, Inst);
TMP848[49].typ = (&NTI226838);
TMP848[49].name = "inst";
TMP848[47].len = 2; TMP848[47].kind = 2; TMP848[47].sons = &TMP1972[0];
NTI291013.node = &TMP848[47];
NTI291133.size = sizeof(TY291133*);
NTI291133.kind = 24;
NTI291133.base = (&NTI291013);
NTI291133.flags = 2;
NTI291133.marker = TMP1973;
TMP848[46].kind = 1;
TMP848[46].offset = offsetof(tcontext291021, Generics);
TMP848[46].typ = (&NTI291133);
TMP848[46].name = "generics";
TMP1946[33] = &TMP848[50];
TMP848[50].kind = 1;
TMP848[50].offset = offsetof(tcontext291021, Lastgenericidx);
TMP848[50].typ = (&NTI108);
TMP848[50].name = "lastGenericIdx";
TMP1946[34] = &TMP848[51];
TMP848[51].kind = 1;
TMP848[51].offset = offsetof(tcontext291021, Hloloopdetector);
TMP848[51].typ = (&NTI108);
TMP848[51].name = "hloLoopDetector";
TMP1946[35] = &TMP848[52];
TMP848[52].kind = 1;
TMP848[52].offset = offsetof(tcontext291021, Inparallelstmt);
TMP848[52].typ = (&NTI108);
TMP848[52].name = "inParallelStmt";
TMP1946[36] = &TMP848[53];
NTI291138.size = sizeof(TY291138);
NTI291138.kind = 25;
NTI291138.base = 0;
NTI291138.flags = 3;
TMP848[53].kind = 1;
TMP848[53].offset = offsetof(tcontext291021, Instdeepcopy);
TMP848[53].typ = (&NTI291138);
TMP848[53].name = "instDeepCopy";
TMP848[0].len = 37; TMP848[0].kind = 2; TMP848[0].sons = &TMP1946[0];
NTI291021.node = &TMP848[0];
NTI291019.size = sizeof(tcontext291021*);
NTI291019.kind = 22;
NTI291019.base = (&NTI291021);
NTI291019.marker = TMP1974;
NTI291005.size = sizeof(toptionentry291005);
NTI291005.kind = 17;
NTI291005.base = (&NTI127022);
TMP1975[0] = &TMP848[55];
TMP848[55].kind = 1;
TMP848[55].offset = offsetof(toptionentry291005, Options);
TMP848[55].typ = (&NTI170016);
TMP848[55].name = "options";
TMP1975[1] = &TMP848[56];
TMP848[56].kind = 1;
TMP848[56].offset = offsetof(toptionentry291005, Defaultcc);
TMP848[56].typ = (&NTI226005);
TMP848[56].name = "defaultCC";
TMP1975[2] = &TMP848[57];
TMP848[57].kind = 1;
TMP848[57].offset = offsetof(toptionentry291005, Dynlib);
TMP848[57].typ = (&NTI226844);
TMP848[57].name = "dynlib";
TMP1975[3] = &TMP848[58];
TMP848[58].kind = 1;
TMP848[58].offset = offsetof(toptionentry291005, Notes);
TMP848[58].typ = (&NTI196535);
TMP848[58].name = "notes";
TMP1975[4] = &TMP848[59];
TMP848[59].kind = 1;
TMP848[59].offset = offsetof(toptionentry291005, Otherpragmas);
TMP848[59].typ = (&NTI226808);
TMP848[59].name = "otherPragmas";
TMP848[54].len = 5; TMP848[54].kind = 2; TMP848[54].sons = &TMP1975[0];
NTI291005.node = &TMP848[54];
NTI291007.size = sizeof(toptionentry291005*);
NTI291007.kind = 22;
NTI291007.base = (&NTI291005);
NTI291007.marker = TMP1979;
}

