/* Generated by Nim Compiler v0.13.0 */
/*   (c) 2015 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64

#include "nimbase.h"
#include <string.h>
typedef struct Tsymseq213792 Tsymseq213792;
typedef struct Tsym213822 Tsym213822;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Cell47704 Cell47704;
typedef struct Cellseq47720 Cellseq47720;
typedef struct Gcheap50018 Gcheap50018;
typedef struct Gcstack50016 Gcstack50016;
typedef struct Cellset47716 Cellset47716;
typedef struct Pagedesc47712 Pagedesc47712;
typedef struct Memregion29888 Memregion29888;
typedef struct Smallchunk29840 Smallchunk29840;
typedef struct Llchunk29882 Llchunk29882;
typedef struct Bigchunk29842 Bigchunk29842;
typedef struct Intset29814 Intset29814;
typedef struct Trunk29810 Trunk29810;
typedef struct Avlnode29886 Avlnode29886;
typedef struct Gcstat50014 Gcstat50014;
typedef struct Ttype213828 Ttype213828;
typedef struct Tcontext263020 Tcontext263020;
typedef struct Tpasscontext260002 Tpasscontext260002;
typedef struct TNimObject TNimObject;
typedef struct Tscope213816 Tscope213816;
typedef struct Tproccon263008 Tproccon263008;
typedef struct Intset210035 Intset210035;
typedef struct Trunk210031 Trunk210031;
typedef struct Trunkseq210033 Trunkseq210033;
typedef struct Tlinkedlist135016 Tlinkedlist135016;
typedef struct Tlistentry135010 Tlistentry135010;
typedef struct Tidtable213840 Tidtable213840;
typedef struct Tidpairseq213838 Tidpairseq213838;
typedef struct Tnode213790 Tnode213790;
typedef struct Tlineinfo181337 Tlineinfo181337;
typedef struct Tstrtable213794 Tstrtable213794;
typedef struct Tctx262036 Tctx262036;
typedef struct TY263140 TY263140;
typedef struct TY530873 TY530873;
typedef struct TY530876 TY530876;
typedef struct Tinstantiationpair263010 Tinstantiationpair263010;
typedef struct Tinstantiation213812 Tinstantiation213812;
typedef struct Toptionentry263002 Toptionentry263002;
typedef struct Tlib213808 Tlib213808;
typedef struct Tidobj188006 Tidobj188006;
typedef struct Ttypeseq213824 Ttypeseq213824;
typedef struct Tloc213804 Tloc213804;
typedef struct Ropeobj168006 Ropeobj168006;
typedef struct NimStringDesc NimStringDesc;
typedef struct TY88887 TY88887;
typedef struct Tident188012 Tident188012;
typedef struct Tnodeseq213784 Tnodeseq213784;
typedef struct TY213925 TY213925;
typedef struct Basechunk29838 Basechunk29838;
typedef struct Freecell29830 Freecell29830;
typedef struct Tidpair213836 Tidpair213836;
typedef struct TY262242 TY262242;
typedef struct TY182090 TY182090;
typedef struct PprocHEX3Aobjecttype262221 PprocHEX3Aobjecttype262221;
typedef struct TY262261 TY262261;
typedef struct TY213913 TY213913;
typedef struct TY262222 TY262222;
typedef struct TY262227 TY262227;
typedef struct TY262262 TY262262;
typedef struct Vmargs262030 Vmargs262030;
typedef struct Tblock262018 Tblock262018;
typedef struct TY262202 TY262202;
struct  TGenericSeq  {
NI len;
NI reserved;
};
typedef N_NIMCALL_PTR(void, TY3489) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3494) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3489 marker;
TY3494 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Cell47704  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47720  {
NI len;
NI cap;
Cell47704** d;
};
struct  Cellset47716  {
NI counter;
NI max;
Pagedesc47712* head;
Pagedesc47712** data;
};
typedef Smallchunk29840* TY29903[512];
typedef Trunk29810* Trunkbuckets29812[256];
struct  Intset29814  {
Trunkbuckets29812 data;
};
struct  Memregion29888  {
NI minlargeobj;
NI maxlargeobj;
TY29903 freesmallchunks;
Llchunk29882* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk29842* freechunkslist;
Intset29814 chunkstarts;
Avlnode29886* root;
Avlnode29886* deleted;
Avlnode29886* last;
Avlnode29886* freeavlnodes;
};
struct  Gcstat50014  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap50018  {
Gcstack50016* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq47720 zct;
Cellseq47720 decstack;
Cellset47716 cycleroots;
Cellseq47720 tempstack;
NI recgclock;
Memregion29888 region;
Gcstat50014 stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tpasscontext260002  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Intset210035  {
NI counter;
NI max;
Trunk210031* head;
Trunkseq210033* data;
};
struct  Tlinkedlist135016  {
Tlistentry135010* head;
Tlistentry135010* tail;
NI counter;
};
struct  Tidtable213840  {
NI counter;
Tidpairseq213838* data;
};
typedef N_NIMCALL_PTR(Tnode213790*, TY263071) (Tcontext263020* c, Tnode213790* n);
typedef N_NIMCALL_PTR(Tnode213790*, TY263076) (Tcontext263020* c, Tnode213790* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode213790*, TY263084) (Tcontext263020* c, Tnode213790* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode213790*, TY263092) (Tcontext263020* c, Tnode213790* n);
typedef N_NIMCALL_PTR(Tnode213790*, TY263097) (Tcontext263020* c, Tnode213790* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode213790*, TY263105) (Tcontext263020* c, Tnode213790* n);
typedef N_NIMCALL_PTR(Tnode213790*, TY263110) (Tcontext263020* c, Tnode213790* n, Tnode213790* norig, NU32 filter);
typedef N_NIMCALL_PTR(Ttype213828*, TY263117) (Tcontext263020* c, Tnode213790* n, Ttype213828* prev);
typedef struct {
N_NIMCALL_PTR(Tnode213790*, ClPrc) (Tcontext263020* c, Tidtable213840 pt, Tnode213790* n, void* ClEnv);
void* ClEnv;
} TY263123;
typedef struct {
N_NIMCALL_PTR(Tsym213822*, ClPrc) (Tcontext263020* c, Tsym213822* fn, Tidtable213840 pt, Tlineinfo181337 info, void* ClEnv);
void* ClEnv;
} TY263129;
struct  Tstrtable213794  {
NI counter;
Tsymseq213792* data;
};
typedef N_NIMCALL_PTR(Tsym213822*, TY263145) (Tcontext263020* c, Tsym213822* dc, Ttype213828* t, Tlineinfo181337 info, NU8 op);
struct  Tcontext263020  {
  Tpasscontext260002 Sup;
Tsym213822* module;
Tscope213816* currentscope;
Tscope213816* importtable;
Tscope213816* toplevelscope;
Tproccon263008* p;
Tsymseq213792* friendmodules;
NI instcounter;
Intset210035 ambiguoussymbols;
NI intypeclass;
NI ingenericcontext;
NI inunrolledcontext;
NI compilescontextid;
NI compilescontextidgenerator;
NI ingenericinst;
Tsymseq213792* converters;
Tsymseq213792* patterns;
Tlinkedlist135016 optionstack;
Tidtable213840 symmapping;
Tlinkedlist135016 libs;
TY263071 semconstexpr;
TY263076 semexpr;
TY263084 semtryexpr;
TY263092 semtryconstexpr;
TY263097 semoperand;
TY263105 semconstboolexpr;
TY263110 semoverloadedcall;
TY263117 semtypenode;
TY263123 seminferredlambda;
TY263129 semgenerateinstance;
Intset210035 includedfiles;
Tstrtable213794 userpragmas;
Tctx262036* evalcontext;
Intset210035 unknownidents;
TY263140* generics;
NI lastgenericidx;
NI hloloopdetector;
NI inparallelstmt;
TY263145 insttypeboundop;
};
struct  Tproccon263008  {
Tsym213822* owner;
Tsym213822* resultsym;
NI nestedloopcounter;
NI nestedblockcounter;
NI intrystmt;
Tproccon263008* next;
NIM_BOOL wasforwarded;
Tnode213790* bracketexpr;
};
struct TY530873 {
void* Field0;
TY530876* Field1;
};
struct  Tinstantiationpair263010  {
Tsym213822* genericsym;
Tinstantiation213812* inst;
};
struct  Tlistentry135010  {
  TNimObject Sup;
Tlistentry135010* prev;
Tlistentry135010* next;
};
struct  Toptionentry263002  {
  Tlistentry135010 Sup;
NU32 options;
NU8 defaultcc;
Tlib213808* dynlib;
NU64 notes;
Tnode213790* otherpragmas;
};
typedef Tsym213822* TY263331[1];
struct  Tidobj188006  {
  TNimObject Sup;
NI id;
};
struct  Tloc213804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype213828* t;
Ropeobj168006* r;
Ropeobj168006* heaproot;
};
struct  Ttype213828  {
  Tidobj188006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq213824* sons;
Tnode213790* n;
Tsym213822* owner;
Tsym213822* sym;
Tsym213822* destructor;
Tsym213822* deepcopy;
Tsym213822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc213804 loc;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct TY88887 {
NimStringDesc* Field0;
NI Field1;
};
struct  Tlineinfo181337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode213790  {
Ttype213828* typ;
Tlineinfo181337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym213822* sym;
} S4;
struct {Tident188012* ident;
} S5;
struct {Tnodeseq213784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef Tnode213790* TY229280[1];
typedef Ttype213828* TY365877[1];
typedef Ttype213828* TY263646[2];
typedef Tnode213790* TY381939[2];
struct  Tlib213808  {
  Tlistentry135010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj168006* name;
Tnode213790* path;
};
struct  Tsym213822  {
  Tidobj188006 Sup;
NU8 kind;
union{
struct {Ttypeseq213824* typeinstcache;
Tscope213816* typscope;
} S1;
struct {TY213925* procinstcache;
Tsym213822* gcunsafetyreason;
} S2;
struct {TY213925* usedgenerics;
Tstrtable213794 tab;
} S3;
struct {Tsym213822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype213828* typ;
Tident188012* name;
Tlineinfo181337 info;
Tsym213822* owner;
NU32 flags;
Tnode213790* ast;
NU32 options;
NI position;
NI offset;
Tloc213804 loc;
Tlib213808* annex;
Tnode213790* constraint;
};
struct  Gcstack50016  {
Gcstack50016* prev;
Gcstack50016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29819[8];
struct  Pagedesc47712  {
Pagedesc47712* next;
NI key;
TY29819 bits;
};
struct  Basechunk29838  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk29840  {
  Basechunk29838 Sup;
Smallchunk29840* next;
Smallchunk29840* prev;
Freecell29830* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk29882  {
NI size;
NI acc;
Llchunk29882* next;
};
struct  Bigchunk29842  {
  Basechunk29838 Sup;
Bigchunk29842* next;
Bigchunk29842* prev;
NI align;
NF data;
};
struct  Trunk29810  {
Trunk29810* next;
NI key;
TY29819 bits;
};
typedef Avlnode29886* TY29893[2];
struct  Avlnode29886  {
TY29893 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope213816  {
NI depthlevel;
Tstrtable213794 symbols;
Tnodeseq213784* usingsyms;
Tscope213816* parent;
};
struct  Trunk210031  {
Trunk210031* next;
NI key;
TY29819 bits;
};
struct  Tidpair213836  {
Tidobj188006* key;
TNimObject* val;
};
struct  Tctx262036  {
  Tpasscontext260002 Sup;
TY262242* code;
TY182090* debug;
Tnode213790* globals;
Tnode213790* constants;
Ttypeseq213824* types;
Tnode213790* currentexceptiona;
Tnode213790* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype262221* prc;
Tsym213822* module;
Tnode213790* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo181337 comesfromheuristic;
TY262261* callbacks;
NimStringDesc* errorflag;
};
struct TY530876 {
char dummy;
};
struct  Tinstantiation213812  {
Tsym213822* sym;
Ttypeseq213824* concretetypes;
TY213913* usedby;
NI compilesid;
};
struct  Ropeobj168006  {
  TNimObject Sup;
Ropeobj168006* left;
Ropeobj168006* right;
NI length;
NimStringDesc* data;
};
struct  Tident188012  {
  Tidobj188006 Sup;
NimStringDesc* s;
Tident188012* next;
NI h;
};
struct  Freecell29830  {
Freecell29830* next;
NI zerofield;
};
struct TY262227 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY262227 TY262230[256];
struct  PprocHEX3Aobjecttype262221  {
TY262222* blocks;
Tsym213822* sym;
TY262230 slots;
NI maxslots;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs262030* args, void* ClEnv);
void* ClEnv;
} Vmcallback262032;
struct TY262262 {
NimStringDesc* Field0;
Vmcallback262032 Field1;
};
struct  Tblock262018  {
Tsym213822* label;
TY262202* fixups;
};
struct  Vmargs262030  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode213790* currentexception;
};
struct Tsymseq213792 {
  TGenericSeq Sup;
  Tsym213822* data[SEQ_DECL_SIZE];
};
struct TY263140 {
  TGenericSeq Sup;
  Tinstantiationpair263010 data[SEQ_DECL_SIZE];
};
struct Ttypeseq213824 {
  TGenericSeq Sup;
  Ttype213828* data[SEQ_DECL_SIZE];
};
struct Tnodeseq213784 {
  TGenericSeq Sup;
  Tnode213790* data[SEQ_DECL_SIZE];
};
struct Trunkseq210033 {
  TGenericSeq Sup;
  Trunk210031* data[SEQ_DECL_SIZE];
};
struct Tidpairseq213838 {
  TGenericSeq Sup;
  Tidpair213836 data[SEQ_DECL_SIZE];
};
struct TY213925 {
  TGenericSeq Sup;
  Tinstantiation213812* data[SEQ_DECL_SIZE];
};
struct TY262242 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY182090 {
  TGenericSeq Sup;
  Tlineinfo181337 data[SEQ_DECL_SIZE];
};
struct TY262261 {
  TGenericSeq Sup;
  TY262262 data[SEQ_DECL_SIZE];
};
struct TY213913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct TY262222 {
  TGenericSeq Sup;
  Tblock262018 data[SEQ_DECL_SIZE];
};
struct TY262202 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell47704*, usrtocell_51640)(void* usr);
static N_INLINE(void, rtladdzct_53201)(Cell47704* c);
N_NOINLINE(void, addzct_51617)(Cellseq47720* s, Cell47704* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(Ttype213828*, newtype_216107)(NU8 kind, Tsym213822* owner);
N_NIMCALL(Tsym213822*, getcurrowner_263209)(void);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP2062)(void* p, NI op);
N_NIMCALL(void, TMP2087)(void* p, NI op);
N_NIMCALL(void, TMP2088)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(void, initintset_210885)(Intset210035* Result);
N_NIMCALL(void, initlinkedlist_135028)(Tlinkedlist135016* list);
N_NIMCALL(void, append_135032)(Tlinkedlist135016* list, Tlistentry135010* entry);
N_NIMCALL(Toptionentry263002*, newoptionentry_263171)(void);
N_NIMCALL(void, TMP2093)(void* p, NI op);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_54019)(Cell47704* c);
static N_INLINE(NIM_BOOL, canbecycleroot_51658)(Cell47704* c);
static N_INLINE(void, rtladdcycleroot_52420)(Cell47704* c);
N_NOINLINE(void, incl_48447)(Cellset47716* s, Cell47704* cell);
static N_INLINE(void, decref_53601)(Cell47704* c);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(void, initstrtable_217001)(Tstrtable213794* x);
N_NIMCALL(Ttype213828*, newtypes_263184)(NU8 kind, Tcontext263020* c);
N_NIMCALL(void, addsonskipintlit_257680)(Ttype213828* father, Ttype213828* son);
N_NIMCALL(void, internalerror_186113)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_186183)(TY88887 x);
N_NIMCALL(void, globalerror_186071)(Tlineinfo181337 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_232044)(Tnode213790* n, NU8 renderflags);
N_NIMCALL(NI, sonslen_216351)(Tnode213790* n);
N_NIMCALL(void, illformedast_263950)(Tnode213790* n);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_84204, TNimType* mt);
N_NIMCALL(Tnode213790*, newnodei_215248)(NU8 kind, Tlineinfo181337 info);
N_NIMCALL(void, addson_215807)(Tnode213790* father, Tnode213790* son);
N_NIMCALL(Tnode213790*, newinttypenode_214665)(NU8 kind, NI64 intval, Ttype213828* typ);
N_NIMCALL(Ttype213828*, newtypewithsons_263601)(Tcontext263020* c, NU8 kind, Ttypeseq213824* sons);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, propagatetoowner_217190)(Ttype213828* owner, Ttype213828* elem);
N_NIMCALL(Ttype213828*, getsystype_257130)(NU8 kind);
N_NIMCALL(Tnode213790*, newnode_215601)(NU8 kind, Tlineinfo181337 info, Tnodeseq213784* sons, Ttype213828* typ);
N_NIMCALL(Tnode213790*, makestaticexpr_263608)(Tcontext263020* c, Tnode213790* n);
N_NIMCALL(Tnode213790*, nminusone_263828)(Tnode213790* n);
N_NIMCALL(Tnode213790*, newsymnode_215234)(Tsym213822* sym);
N_NIMCALL(Tsym213822*, getsysmagic_257079)(NimStringDesc* name, NU8 m);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, localerror_186080)(Tlineinfo181337 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(Ttype213828*, errortype_263901)(Tcontext263020* c);
N_NIMCALL(Ttype213828*, maketypedesc_263523)(Tcontext263020* c, Ttype213828* typ);
N_NIMCALL(Tsym213822*, linkto_214854)(Tsym213822* s, Ttype213828* t);
N_NIMCALL(Tsym213822*, newsym_214683)(NU8 symkind, Tident188012* name, Tsym213822* owner, Tlineinfo181337 info);
N_NIMCALL(Tnode213790*, newsymnode_215241)(Tsym213822* sym, Tlineinfo181337 info);
N_NIMCALL(void, inclsym_263393)(Tsymseq213792** sq, Tsym213822* s);
STRING_LITERAL(TMP2787, "compiler/semdata.nim", 20);
NIM_CONST TY88887 TMP2786 = {((NimStringDesc*) &TMP2787),
((NI) 226)}
;
NIM_CONST TY88887 TMP2801 = {((NimStringDesc*) &TMP2787),
((NI) 222)}
;
STRING_LITERAL(TMP3156, "<", 1);
STRING_LITERAL(TMP3325, "popOwner", 8);
NIM_CONST TY88887 TMP3368 = {((NimStringDesc*) &TMP2787),
((NI) 215)}
;
Tsymseq213792* gowners_263233;
extern TNimType NTI213792; /* TSymSeq */
extern Gcheap50018 gch_50059;
extern TNimType NTI260002; /* TPassContext */
TNimType NTI263020; /* TContext */
extern TNimType NTI213788; /* PSym */
extern TNimType NTI213818; /* PScope */
TNimType NTI263008; /* TProcCon */
extern TNimType NTI104; /* int */
extern TNimType NTI130; /* bool */
extern TNimType NTI213782; /* PNode */
TNimType NTI263006; /* PProcCon */
extern TNimType NTI210035; /* IntSet */
extern TNimType NTI135016; /* TLinkedList */
extern TNimType NTI213840; /* TIdTable */
TNimType NTI263071; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI263076; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI263084; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI263092; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI263097; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI263105; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI263110; /* proc (c: PContext, n: PNode, nOrig: PNode, filter: TSymKinds): PNode */
TNimType NTI263117; /* proc (c: PContext, n: PNode, prev: PType): PType */
TNimType NTI263123; /* (pointer, ref tuple[]) */
extern TNimType NTI142; /* pointer */
extern TNimType NTI530875; /* ref tuple[] */
TNimType NTI263129; /* (pointer, ref tuple[]) */
extern TNimType NTI213794; /* TStrTable */
extern TNimType NTI262034; /* PCtx */
TNimType NTI263010; /* TInstantiationPair */
extern TNimType NTI213814; /* PInstantiation */
TNimType NTI263140; /* seq[TInstantiationPair] */
TNimType NTI263145; /* proc (c: PContext, dc: PSym, t: PType, info: TLineInfo, op: TTypeAttachedOp): PSym */
TNimType NTI263018; /* PContext */
extern TNimType NTI135010; /* TListEntry */
TNimType NTI263002; /* TOptionEntry */
extern TNimType NTI159011; /* TOptions */
extern TNimType NTI213002; /* TCallingConvention */
extern TNimType NTI213820; /* PLib */
extern TNimType NTI181333; /* TNoteKinds */
TNimType NTI263004; /* POptionEntry */
extern NU32 goptions_159119;
extern NU64 gnotes_182077;
extern TNimType NTI213824; /* TTypeSeq */
extern TNimType NTI213784; /* TNodeSeq */
extern TNimType NTI213808; /* TLib */
extern Tident188012* idanon_188455;

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

static N_INLINE(void, rtladdzct_53201)(Cell47704* c) {
	addzct_51617((&gch_50059.zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell47704* c;
	c = usrtocell_51640(p);
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3;
		rtladdzct_53201(c);
	}
	LA3: ;
}

N_NIMCALL(Tsym213822*, getcurrowner_263209)(void) {
	Tsym213822* result;
	result = 0;
	result = gowners_263233->data[(gowners_263233 ? (gowners_263233->Sup.len-1) : -1)];
	return result;
}

N_NIMCALL(Ttype213828*, newtypes_263184)(NU8 kind, Tcontext263020* c) {
	Ttype213828* result;
	Tsym213822* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_263209();
	result = newtype_216107(kind, LOC1);
	return result;
}
N_NIMCALL(void, TMP2062)(void* p, NI op) {
	Tproccon263008* a;
	a = (Tproccon263008*)p;
	nimGCvisit((void*)(*a).owner, op);
	nimGCvisit((void*)(*a).resultsym, op);
	nimGCvisit((void*)(*a).next, op);
	nimGCvisit((void*)(*a).bracketexpr, op);
}
N_NIMCALL(void, TMP2087)(void* p, NI op) {
	TY263140* a;
	NI LOC1;
	a = (TY263140*)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, TMP2088)(void* p, NI op) {
	Tcontext263020* a;
	a = (Tcontext263020*)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, TMP2093)(void* p, NI op) {
	Toptionentry263002* a;
	a = (Toptionentry263002*)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_51658)(Cell47704* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).typ).flags &(1U<<((NU)(((NU8) 1))&7U)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_52420)(Cell47704* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_48447((&gch_50059.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, incref_54019)(Cell47704* c) {
	(*c).refcount = (NI)((NU64)((*c).refcount) + (NU64)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_51658(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_52420(c);
	}
	LA4: ;
}

static N_INLINE(void, decref_53601)(Cell47704* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3;
		rtladdzct_53201(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_51658(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_52420(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Cell47704* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_51640(src);
		incref_54019(LOC5);
	}
	LA3: ;
	{
		Cell47704* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_51640((*dest));
		decref_53601(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(Toptionentry263002*, newoptionentry_263171)(void) {
	Toptionentry263002* result;
	result = 0;
	result = (Toptionentry263002*) newObj((&NTI263004), sizeof(Toptionentry263002));
	(*result).Sup.Sup.m_type = (&NTI263002);
	(*result).options = goptions_159119;
	(*result).defaultcc = ((NU8) 0);
	asgnRef((void**) (&(*result).dynlib), NIM_NIL);
	(*result).notes = gnotes_182077;
	return result;
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell47704* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_51640(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell47704* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_51640((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA11;
			rtladdzct_53201(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(Tcontext263020*, newcontext_263165)(Tsym213822* module) {
	Tcontext263020* result;
	Toptionentry263002* LOC1;
	Tlistentry135010* LOC2;
	TY263331 LOC3;
	result = 0;
	result = (Tcontext263020*) newObj((&NTI263018), sizeof(Tcontext263020));
	(*result).Sup.Sup.m_type = (&NTI263020);
	initintset_210885((&(*result).ambiguoussymbols));
	initlinkedlist_135028((&(*result).optionstack));
	initlinkedlist_135028((&(*result).libs));
	LOC1 = 0;
	LOC1 = newoptionentry_263171();
	LOC2 = 0;
	LOC2 = &LOC1->Sup;
	append_135032((&(*result).optionstack), LOC2);
	asgnRefNoCycle((void**) (&(*result).module), module);
	if ((*result).friendmodules) nimGCunrefNoCycle((*result).friendmodules);
	(*result).friendmodules = (Tsymseq213792*) newSeqRC1((&NTI213792), 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 = (Tsymseq213792*) newSeqRC1((&NTI213792), 0);
	if ((*result).patterns) nimGCunrefNoCycle((*result).patterns);
	(*result).patterns = (Tsymseq213792*) newSeqRC1((&NTI213792), 0);
	initintset_210885((&(*result).includedfiles));
	initstrtable_217001((&(*result).userpragmas));
	if ((*result).generics) nimGCunrefNoCycle((*result).generics);
	(*result).generics = (TY263140*) newSeqRC1((&NTI263140), 0);
	initintset_210885((&(*result).unknownidents));
	return result;
}

N_NIMCALL(Ttype213828*, maketypefromexpr_263556)(Tcontext263020* c, Tnode213790* n) {
	Ttype213828* result;
	result = 0;
	result = newtypes_263184(((NU8) 60), c);
	asgnRefNoCycle((void**) (&(*result).n), n);
	return result;
}

N_NIMCALL(Ttype213828*, errortype_263901)(Tcontext263020* c) {
	Ttype213828* result;
	result = 0;
	result = newtypes_263184(((NU8) 50), c);
	return result;
}

N_NIMCALL(Ttype213828*, maketypedesc_263523)(Tcontext263020* c, Ttype213828* typ) {
	Ttype213828* result;
	result = 0;
	result = newtypes_263184(((NU8) 8), c);
	{
		NimStringDesc* LOC5;
		if (!(typ == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_186183(TMP2786);
		internalerror_186113(LOC5);
	}
	LA3: ;
	addsonskipintlit_257680(result, typ);
	return result;
}

N_NIMCALL(void, illformedast_263950)(Tnode213790* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_232044(n, 4);
	globalerror_186071((*n).info, ((NU16) 1), LOC1);
}

N_NIMCALL(void, checksonslen_263958)(Tnode213790* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_216351(n);
		if (!!((LOC3 == length))) goto LA4;
		illformedast_263950(n);
	}
	LA4: ;
}

N_NIMCALL(Ttype213828*, newtypewithsons_263601)(Tcontext263020* c, NU8 kind, Ttypeseq213824* sons) {
	Ttype213828* result;
	Tsym213822* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_263209();
	result = newtype_216107(kind, LOC1);
	genericSeqAssign((&(*result).sons), sons, (&NTI213824));
	return result;
}

N_NIMCALL(Ttype213828*, makevartype_263490)(Tcontext263020* c, Ttype213828* basetype) {
	Ttype213828* result;
	result = 0;
	{
		if (!((*basetype).kind == ((NU8) 23))) goto LA3;
		result = basetype;
	}
	goto LA1;
	LA3: ;
	{
		result = newtypes_263184(((NU8) 23), c);
		{
			NimStringDesc* LOC10;
			if (!(basetype == NIM_NIL)) goto LA8;
			LOC10 = 0;
			LOC10 = HEX24_186183(TMP2801);
			internalerror_186113(LOC10);
		}
		LA8: ;
		addsonskipintlit_257680(result, basetype);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ttype213828*, makerangetype_263915)(Tcontext263020* c, NI64 first, NI64 last, Tlineinfo181337 info, Ttype213828* inttype) {
	Ttype213828* result;
	Tnode213790* n;
	Tnode213790* LOC1;
	Tnode213790* LOC2;
	result = 0;
	n = newnodei_215248(((NU8) 44), info);
	LOC1 = 0;
	LOC1 = newinttypenode_214665(((NU8) 6), first, inttype);
	addson_215807(n, LOC1);
	LOC2 = 0;
	LOC2 = newinttypenode_214665(((NU8) 6), last, inttype);
	addson_215807(n, LOC2);
	result = newtypes_263184(((NU8) 20), c);
	asgnRefNoCycle((void**) (&(*result).n), n);
	addsonskipintlit_257680(result, inttype);
	return result;
}

N_NIMCALL(Tnode213790*, makestaticexpr_263608)(Tcontext263020* c, Tnode213790* n) {
	Tnode213790* result;
	TY229280 LOC1;
	Ttypeseq213824* LOC2;
	TY365877 LOC3;
	result = 0;
	result = newnodei_215248(((NU8) 62), (*n).info);
	if ((*result).kindU.S6.sons) nimGCunrefNoCycle((*result).kindU.S6.sons);
	(*result).kindU.S6.sons = (Tnodeseq213784*) newSeqRC1((&NTI213784), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = n;
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (Ttypeseq213824*) newSeq((&NTI213824), 1);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = (*n).typ;
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&(*result).typ), newtypewithsons_263601(c, ((NU8) 59), LOC2));
	return result;
}

N_NIMCALL(Ttype213828*, makeandtype_263640)(Tcontext263020* c, Ttype213828* t1, Ttype213828* t2) {
	Ttype213828* result;
	TY263646 LOC1;
	result = 0;
	result = newtypes_263184(((NU8) 55), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq213824*) newSeqRC1((&NTI213824), 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_217190(result, t1);
	propagatetoowner_217190(result, t2);
	(*result).flags = ((*result).flags | (((*t1).flags | (*t2).flags) & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(Ttype213828*, makeortype_263707)(Tcontext263020* c, Ttype213828* t1, Ttype213828* t2) {
	Ttype213828* result;
	TY263646 LOC1;
	result = 0;
	result = newtypes_263184(((NU8) 56), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq213824*) newSeqRC1((&NTI213824), 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_217190(result, t1);
	propagatetoowner_217190(result, t2);
	(*result).flags = ((*result).flags | (((*t1).flags | (*t2).flags) & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(Ttype213828*, makenottype_263774)(Tcontext263020* c, Ttype213828* t1) {
	Ttype213828* result;
	TY365877 LOC1;
	result = 0;
	result = newtypes_263184(((NU8) 57), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq213824*) newSeqRC1((&NTI213824), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = t1;
	asgnRefNoCycle((void**) (&(*result).sons->data[0]), LOC1[0]);
	propagatetoowner_217190(result, t1);
	(*result).flags = ((*result).flags | ((*t1).flags & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(void, checkminsonslen_263962)(Tnode213790* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_216351(n);
		if (!(LOC3 < length)) goto LA4;
		illformedast_263950(n);
	}
	LA4: ;
}

N_NIMCALL(Tnode213790*, nminusone_263828)(Tnode213790* n) {
	Tnode213790* result;
	Tnodeseq213784* LOC1;
	TY381939 LOC2;
	Tsym213822* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (Tnodeseq213784*) newSeq((&NTI213784), 2);
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC3 = 0;
	LOC3 = getsysmagic_257079(((NimStringDesc*) &TMP3156), ((NU8) 25));
	LOC2[0] = newsymnode_215234(LOC3);
	LOC2[1] = n;
	asgnRefNoCycle((void**) (&LOC1->data[0]), LOC2[0]);
	asgnRefNoCycle((void**) (&LOC1->data[1]), LOC2[1]);
	result = newnode_215601(((NU8) 27), (*n).info, LOC1, NIM_NIL);
	return result;
}

N_NIMCALL(Ttype213828*, makerangewithstaticexpr_263845)(Tcontext263020* c, Tnode213790* n) {
	Ttype213828* result;
	Ttype213828* inttype;
	TY365877 LOC1;
	Tnodeseq213784* LOC2;
	TY381939 LOC3;
	Tnode213790* LOC4;
	result = 0;
	inttype = getsystype_257130(((NU8) 31));
	result = newtypes_263184(((NU8) 20), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq213824*) newSeqRC1((&NTI213824), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = inttype;
	asgnRefNoCycle((void**) (&(*result).sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (Tnodeseq213784*) newSeq((&NTI213784), 2);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = newinttypenode_214665(((NU8) 6), IL64(0), inttype);
	LOC4 = 0;
	LOC4 = nminusone_263828(n);
	LOC3[1] = makestaticexpr_263608(c, LOC4);
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&LOC2->data[1]), LOC3[1]);
	asgnRefNoCycle((void**) (&(*result).n), newnode_215601(((NU8) 44), (*n).info, LOC2, NIM_NIL));
	return result;
}

N_NIMCALL(void, pushowner_263211)(Tsym213822* owner) {
	gowners_263233 = (Tsymseq213792*) incrSeqV2(&(gowners_263233)->Sup, sizeof(Tsym213822*));
	asgnRefNoCycle((void**) (&gowners_263233->data[gowners_263233->Sup.len]), owner);
	++gowners_263233->Sup.len;
}

N_NIMCALL(void, makeinstpair_263153)(Tsym213822* s, Tinstantiation213812* inst, Tinstantiationpair263010* Result) {
	unsureAsgnRef((void**) (&(*Result).genericsym), s);
	unsureAsgnRef((void**) (&(*Result).inst), inst);
}

N_NIMCALL(Tlib213808*, newlib_263173)(NU8 kind) {
	Tlib213808* result;
	result = 0;
	result = (Tlib213808*) newObj((&NTI213820), sizeof(Tlib213808));
	(*result).Sup.Sup.m_type = (&NTI213808);
	(*result).kind = kind;
	return result;
}

N_NIMCALL(void, addtolib_263176)(Tlib213808* lib, Tsym213822* sym) {
	asgnRef((void**) (&(*sym).annex), lib);
}

N_NIMCALL(void, illformedastlocal_263954)(Tnode213790* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_232044(n, 4);
	localerror_186080((*n).info, ((NU16) 1), LOC1);
}

N_NIMCALL(Toptionentry263002*, lastoptionentry_263168)(Tcontext263020* c) {
	Toptionentry263002* result;
	result = 0;
	result = ((Toptionentry263002*) ((*c).optionstack.tail));
	return result;
}

N_NIMCALL(void, popowner_263214)(void) {
	NI length;
	length = (gowners_263233 ? gowners_263233->Sup.len : 0);
	{
		if (!(((NI) 0) < length)) goto LA3;
		gowners_263233 = (Tsymseq213792*) setLengthSeq(&(gowners_263233)->Sup, sizeof(Tsym213822*), ((NI) ((NI)(length - ((NI) 1)))));
	}
	goto LA1;
	LA3: ;
	{
		internalerror_186113(((NimStringDesc*) &TMP3325));
	}
	LA1: ;
}

N_NIMCALL(Ttype213828*, makeptrtype_263180)(Tcontext263020* c, Ttype213828* basetype) {
	Ttype213828* result;
	result = 0;
	result = newtypes_263184(((NU8) 21), c);
	{
		NimStringDesc* LOC5;
		if (!(basetype == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_186183(TMP3368);
		internalerror_186113(LOC5);
	}
	LA3: ;
	addsonskipintlit_257680(result, basetype);
	return result;
}

N_NIMCALL(Tnode213790*, errornode_263905)(Tcontext263020* c, Tnode213790* n) {
	Tnode213790* result;
	result = 0;
	result = newnodei_215248(((NU8) 1), (*n).info);
	asgnRefNoCycle((void**) (&(*result).typ), errortype_263901(c));
	return result;
}

N_NIMCALL(Tnode213790*, maketypesymnode_263547)(Tcontext263020* c, Ttype213828* typ, Tlineinfo181337 info) {
	Tnode213790* result;
	Ttype213828* typedesc;
	Tsym213822* sym;
	Tsym213822* LOC1;
	Tsym213822* LOC2;
{	result = 0;
	typedesc = maketypedesc_263523(c, typ);
	LOC1 = 0;
	LOC1 = getcurrowner_263209();
	LOC2 = 0;
	LOC2 = newsym_214683(((NU8) 7), idanon_188455, LOC1, info);
	sym = linkto_214854(LOC2, typedesc);
	result = newsymnode_215241(sym, info);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, inclsym_263393)(Tsymseq213792** sq, Tsym213822* s) {
	NI L;
{	L = ((*sq) ? (*sq)->Sup.len : 0);
	{
		NI i_263418;
		NI HEX3Atmp_263432;
		NI res_263435;
		i_263418 = 0;
		HEX3Atmp_263432 = 0;
		HEX3Atmp_263432 = (NI)(L - ((NI) 1));
		res_263435 = ((NI) 0);
		{
			while (1) {
				if (!(res_263435 <= HEX3Atmp_263432)) goto LA3;
				i_263418 = res_263435;
				{
					if (!((*(*sq)->data[i_263418]).Sup.id == (*s).Sup.id)) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
				res_263435 += ((NI) 1);
			} LA3: ;
		}
	}
	(*sq) = (Tsymseq213792*) setLengthSeq(&((*sq))->Sup, sizeof(Tsym213822*), ((NI) ((NI)(L + ((NI) 1)))));
	asgnRefNoCycle((void**) (&(*sq)->data[L]), s);
	}BeforeRet: ;
}

N_NIMCALL(void, addconverter_263439)(Tcontext263020* c, Tsym213822* conv) {
	inclsym_263393((&(*c).converters), conv);
}

N_NIMCALL(void, addpattern_263444)(Tcontext263020* c, Tsym213822* p) {
	inclsym_263393((&(*c).patterns), p);
}
NIM_EXTERNC N_NOINLINE(void, compiler_semdataInit000)(void) {
	if (gowners_263233) nimGCunrefNoCycle(gowners_263233);
	gowners_263233 = (Tsymseq213792*) newSeqRC1((&NTI213792), 0);
}

NIM_EXTERNC N_NOINLINE(void, compiler_semdataDatInit000)(void) {
static TNimNode* TMP2060[38];
static TNimNode* TMP2061[8];
static TNimNode* TMP2063[2];
static TNimNode* TMP2064[2];
static TNimNode* TMP2086[2];
static TNimNode* TMP2089[5];
static TNimNode TMP933[63];
NTI263020.size = sizeof(Tcontext263020);
NTI263020.kind = 17;
NTI263020.base = (&NTI260002);
TMP2060[0] = &TMP933[1];
TMP933[1].kind = 1;
TMP933[1].offset = offsetof(Tcontext263020, module);
TMP933[1].typ = (&NTI213788);
TMP933[1].name = "module";
TMP2060[1] = &TMP933[2];
TMP933[2].kind = 1;
TMP933[2].offset = offsetof(Tcontext263020, currentscope);
TMP933[2].typ = (&NTI213818);
TMP933[2].name = "currentScope";
TMP2060[2] = &TMP933[3];
TMP933[3].kind = 1;
TMP933[3].offset = offsetof(Tcontext263020, importtable);
TMP933[3].typ = (&NTI213818);
TMP933[3].name = "importTable";
TMP2060[3] = &TMP933[4];
TMP933[4].kind = 1;
TMP933[4].offset = offsetof(Tcontext263020, toplevelscope);
TMP933[4].typ = (&NTI213818);
TMP933[4].name = "topLevelScope";
TMP2060[4] = &TMP933[5];
NTI263008.size = sizeof(Tproccon263008);
NTI263008.kind = 18;
NTI263008.base = 0;
TMP2061[0] = &TMP933[7];
TMP933[7].kind = 1;
TMP933[7].offset = offsetof(Tproccon263008, owner);
TMP933[7].typ = (&NTI213788);
TMP933[7].name = "owner";
TMP2061[1] = &TMP933[8];
TMP933[8].kind = 1;
TMP933[8].offset = offsetof(Tproccon263008, resultsym);
TMP933[8].typ = (&NTI213788);
TMP933[8].name = "resultSym";
TMP2061[2] = &TMP933[9];
TMP933[9].kind = 1;
TMP933[9].offset = offsetof(Tproccon263008, nestedloopcounter);
TMP933[9].typ = (&NTI104);
TMP933[9].name = "nestedLoopCounter";
TMP2061[3] = &TMP933[10];
TMP933[10].kind = 1;
TMP933[10].offset = offsetof(Tproccon263008, nestedblockcounter);
TMP933[10].typ = (&NTI104);
TMP933[10].name = "nestedBlockCounter";
TMP2061[4] = &TMP933[11];
TMP933[11].kind = 1;
TMP933[11].offset = offsetof(Tproccon263008, intrystmt);
TMP933[11].typ = (&NTI104);
TMP933[11].name = "inTryStmt";
TMP2061[5] = &TMP933[12];
TMP933[12].kind = 1;
TMP933[12].offset = offsetof(Tproccon263008, next);
TMP933[12].typ = (&NTI263006);
TMP933[12].name = "next";
TMP2061[6] = &TMP933[13];
TMP933[13].kind = 1;
TMP933[13].offset = offsetof(Tproccon263008, wasforwarded);
TMP933[13].typ = (&NTI130);
TMP933[13].name = "wasForwarded";
TMP2061[7] = &TMP933[14];
TMP933[14].kind = 1;
TMP933[14].offset = offsetof(Tproccon263008, bracketexpr);
TMP933[14].typ = (&NTI213782);
TMP933[14].name = "bracketExpr";
TMP933[6].len = 8; TMP933[6].kind = 2; TMP933[6].sons = &TMP2061[0];
NTI263008.node = &TMP933[6];
NTI263006.size = sizeof(Tproccon263008*);
NTI263006.kind = 22;
NTI263006.base = (&NTI263008);
NTI263006.marker = TMP2062;
TMP933[5].kind = 1;
TMP933[5].offset = offsetof(Tcontext263020, p);
TMP933[5].typ = (&NTI263006);
TMP933[5].name = "p";
TMP2060[5] = &TMP933[15];
TMP933[15].kind = 1;
TMP933[15].offset = offsetof(Tcontext263020, friendmodules);
TMP933[15].typ = (&NTI213792);
TMP933[15].name = "friendModules";
TMP2060[6] = &TMP933[16];
TMP933[16].kind = 1;
TMP933[16].offset = offsetof(Tcontext263020, instcounter);
TMP933[16].typ = (&NTI104);
TMP933[16].name = "instCounter";
TMP2060[7] = &TMP933[17];
TMP933[17].kind = 1;
TMP933[17].offset = offsetof(Tcontext263020, ambiguoussymbols);
TMP933[17].typ = (&NTI210035);
TMP933[17].name = "ambiguousSymbols";
TMP2060[8] = &TMP933[18];
TMP933[18].kind = 1;
TMP933[18].offset = offsetof(Tcontext263020, intypeclass);
TMP933[18].typ = (&NTI104);
TMP933[18].name = "inTypeClass";
TMP2060[9] = &TMP933[19];
TMP933[19].kind = 1;
TMP933[19].offset = offsetof(Tcontext263020, ingenericcontext);
TMP933[19].typ = (&NTI104);
TMP933[19].name = "inGenericContext";
TMP2060[10] = &TMP933[20];
TMP933[20].kind = 1;
TMP933[20].offset = offsetof(Tcontext263020, inunrolledcontext);
TMP933[20].typ = (&NTI104);
TMP933[20].name = "inUnrolledContext";
TMP2060[11] = &TMP933[21];
TMP933[21].kind = 1;
TMP933[21].offset = offsetof(Tcontext263020, compilescontextid);
TMP933[21].typ = (&NTI104);
TMP933[21].name = "compilesContextId";
TMP2060[12] = &TMP933[22];
TMP933[22].kind = 1;
TMP933[22].offset = offsetof(Tcontext263020, compilescontextidgenerator);
TMP933[22].typ = (&NTI104);
TMP933[22].name = "compilesContextIdGenerator";
TMP2060[13] = &TMP933[23];
TMP933[23].kind = 1;
TMP933[23].offset = offsetof(Tcontext263020, ingenericinst);
TMP933[23].typ = (&NTI104);
TMP933[23].name = "inGenericInst";
TMP2060[14] = &TMP933[24];
TMP933[24].kind = 1;
TMP933[24].offset = offsetof(Tcontext263020, converters);
TMP933[24].typ = (&NTI213792);
TMP933[24].name = "converters";
TMP2060[15] = &TMP933[25];
TMP933[25].kind = 1;
TMP933[25].offset = offsetof(Tcontext263020, patterns);
TMP933[25].typ = (&NTI213792);
TMP933[25].name = "patterns";
TMP2060[16] = &TMP933[26];
TMP933[26].kind = 1;
TMP933[26].offset = offsetof(Tcontext263020, optionstack);
TMP933[26].typ = (&NTI135016);
TMP933[26].name = "optionStack";
TMP2060[17] = &TMP933[27];
TMP933[27].kind = 1;
TMP933[27].offset = offsetof(Tcontext263020, symmapping);
TMP933[27].typ = (&NTI213840);
TMP933[27].name = "symMapping";
TMP2060[18] = &TMP933[28];
TMP933[28].kind = 1;
TMP933[28].offset = offsetof(Tcontext263020, libs);
TMP933[28].typ = (&NTI135016);
TMP933[28].name = "libs";
TMP2060[19] = &TMP933[29];
NTI263071.size = sizeof(TY263071);
NTI263071.kind = 25;
NTI263071.base = 0;
NTI263071.flags = 3;
TMP933[29].kind = 1;
TMP933[29].offset = offsetof(Tcontext263020, semconstexpr);
TMP933[29].typ = (&NTI263071);
TMP933[29].name = "semConstExpr";
TMP2060[20] = &TMP933[30];
NTI263076.size = sizeof(TY263076);
NTI263076.kind = 25;
NTI263076.base = 0;
NTI263076.flags = 3;
TMP933[30].kind = 1;
TMP933[30].offset = offsetof(Tcontext263020, semexpr);
TMP933[30].typ = (&NTI263076);
TMP933[30].name = "semExpr";
TMP2060[21] = &TMP933[31];
NTI263084.size = sizeof(TY263084);
NTI263084.kind = 25;
NTI263084.base = 0;
NTI263084.flags = 3;
TMP933[31].kind = 1;
TMP933[31].offset = offsetof(Tcontext263020, semtryexpr);
TMP933[31].typ = (&NTI263084);
TMP933[31].name = "semTryExpr";
TMP2060[22] = &TMP933[32];
NTI263092.size = sizeof(TY263092);
NTI263092.kind = 25;
NTI263092.base = 0;
NTI263092.flags = 3;
TMP933[32].kind = 1;
TMP933[32].offset = offsetof(Tcontext263020, semtryconstexpr);
TMP933[32].typ = (&NTI263092);
TMP933[32].name = "semTryConstExpr";
TMP2060[23] = &TMP933[33];
NTI263097.size = sizeof(TY263097);
NTI263097.kind = 25;
NTI263097.base = 0;
NTI263097.flags = 3;
TMP933[33].kind = 1;
TMP933[33].offset = offsetof(Tcontext263020, semoperand);
TMP933[33].typ = (&NTI263097);
TMP933[33].name = "semOperand";
TMP2060[24] = &TMP933[34];
NTI263105.size = sizeof(TY263105);
NTI263105.kind = 25;
NTI263105.base = 0;
NTI263105.flags = 3;
TMP933[34].kind = 1;
TMP933[34].offset = offsetof(Tcontext263020, semconstboolexpr);
TMP933[34].typ = (&NTI263105);
TMP933[34].name = "semConstBoolExpr";
TMP2060[25] = &TMP933[35];
NTI263110.size = sizeof(TY263110);
NTI263110.kind = 25;
NTI263110.base = 0;
NTI263110.flags = 3;
TMP933[35].kind = 1;
TMP933[35].offset = offsetof(Tcontext263020, semoverloadedcall);
TMP933[35].typ = (&NTI263110);
TMP933[35].name = "semOverloadedCall";
TMP2060[26] = &TMP933[36];
NTI263117.size = sizeof(TY263117);
NTI263117.kind = 25;
NTI263117.base = 0;
NTI263117.flags = 3;
TMP933[36].kind = 1;
TMP933[36].offset = offsetof(Tcontext263020, semtypenode);
TMP933[36].typ = (&NTI263117);
TMP933[36].name = "semTypeNode";
TMP2060[27] = &TMP933[37];
NTI263123.size = sizeof(TY530873);
NTI263123.kind = 18;
NTI263123.base = 0;
NTI263123.flags = 2;
TMP2063[0] = &TMP933[39];
TMP933[39].kind = 1;
TMP933[39].offset = offsetof(TY530873, Field0);
TMP933[39].typ = (&NTI142);
TMP933[39].name = "Field0";
TMP2063[1] = &TMP933[40];
TMP933[40].kind = 1;
TMP933[40].offset = offsetof(TY530873, Field1);
TMP933[40].typ = (&NTI530875);
TMP933[40].name = "Field1";
TMP933[38].len = 2; TMP933[38].kind = 2; TMP933[38].sons = &TMP2063[0];
NTI263123.node = &TMP933[38];
TMP933[37].kind = 1;
TMP933[37].offset = offsetof(Tcontext263020, seminferredlambda);
TMP933[37].typ = (&NTI263123);
TMP933[37].name = "semInferredLambda";
TMP2060[28] = &TMP933[41];
NTI263129.size = sizeof(TY530873);
NTI263129.kind = 18;
NTI263129.base = 0;
NTI263129.flags = 2;
TMP2064[0] = &TMP933[43];
TMP933[43].kind = 1;
TMP933[43].offset = offsetof(TY530873, Field0);
TMP933[43].typ = (&NTI142);
TMP933[43].name = "Field0";
TMP2064[1] = &TMP933[44];
TMP933[44].kind = 1;
TMP933[44].offset = offsetof(TY530873, Field1);
TMP933[44].typ = (&NTI530875);
TMP933[44].name = "Field1";
TMP933[42].len = 2; TMP933[42].kind = 2; TMP933[42].sons = &TMP2064[0];
NTI263129.node = &TMP933[42];
TMP933[41].kind = 1;
TMP933[41].offset = offsetof(Tcontext263020, semgenerateinstance);
TMP933[41].typ = (&NTI263129);
TMP933[41].name = "semGenerateInstance";
TMP2060[29] = &TMP933[45];
TMP933[45].kind = 1;
TMP933[45].offset = offsetof(Tcontext263020, includedfiles);
TMP933[45].typ = (&NTI210035);
TMP933[45].name = "includedFiles";
TMP2060[30] = &TMP933[46];
TMP933[46].kind = 1;
TMP933[46].offset = offsetof(Tcontext263020, userpragmas);
TMP933[46].typ = (&NTI213794);
TMP933[46].name = "userPragmas";
TMP2060[31] = &TMP933[47];
TMP933[47].kind = 1;
TMP933[47].offset = offsetof(Tcontext263020, evalcontext);
TMP933[47].typ = (&NTI262034);
TMP933[47].name = "evalContext";
TMP2060[32] = &TMP933[48];
TMP933[48].kind = 1;
TMP933[48].offset = offsetof(Tcontext263020, unknownidents);
TMP933[48].typ = (&NTI210035);
TMP933[48].name = "unknownIdents";
TMP2060[33] = &TMP933[49];
NTI263010.size = sizeof(Tinstantiationpair263010);
NTI263010.kind = 18;
NTI263010.base = 0;
NTI263010.flags = 2;
TMP2086[0] = &TMP933[51];
TMP933[51].kind = 1;
TMP933[51].offset = offsetof(Tinstantiationpair263010, genericsym);
TMP933[51].typ = (&NTI213788);
TMP933[51].name = "genericSym";
TMP2086[1] = &TMP933[52];
TMP933[52].kind = 1;
TMP933[52].offset = offsetof(Tinstantiationpair263010, inst);
TMP933[52].typ = (&NTI213814);
TMP933[52].name = "inst";
TMP933[50].len = 2; TMP933[50].kind = 2; TMP933[50].sons = &TMP2086[0];
NTI263010.node = &TMP933[50];
NTI263140.size = sizeof(TY263140*);
NTI263140.kind = 24;
NTI263140.base = (&NTI263010);
NTI263140.flags = 2;
NTI263140.marker = TMP2087;
TMP933[49].kind = 1;
TMP933[49].offset = offsetof(Tcontext263020, generics);
TMP933[49].typ = (&NTI263140);
TMP933[49].name = "generics";
TMP2060[34] = &TMP933[53];
TMP933[53].kind = 1;
TMP933[53].offset = offsetof(Tcontext263020, lastgenericidx);
TMP933[53].typ = (&NTI104);
TMP933[53].name = "lastGenericIdx";
TMP2060[35] = &TMP933[54];
TMP933[54].kind = 1;
TMP933[54].offset = offsetof(Tcontext263020, hloloopdetector);
TMP933[54].typ = (&NTI104);
TMP933[54].name = "hloLoopDetector";
TMP2060[36] = &TMP933[55];
TMP933[55].kind = 1;
TMP933[55].offset = offsetof(Tcontext263020, inparallelstmt);
TMP933[55].typ = (&NTI104);
TMP933[55].name = "inParallelStmt";
TMP2060[37] = &TMP933[56];
NTI263145.size = sizeof(TY263145);
NTI263145.kind = 25;
NTI263145.base = 0;
NTI263145.flags = 3;
TMP933[56].kind = 1;
TMP933[56].offset = offsetof(Tcontext263020, insttypeboundop);
TMP933[56].typ = (&NTI263145);
TMP933[56].name = "instTypeBoundOp";
TMP933[0].len = 38; TMP933[0].kind = 2; TMP933[0].sons = &TMP2060[0];
NTI263020.node = &TMP933[0];
NTI263018.size = sizeof(Tcontext263020*);
NTI263018.kind = 22;
NTI263018.base = (&NTI263020);
NTI263018.marker = TMP2088;
NTI263002.size = sizeof(Toptionentry263002);
NTI263002.kind = 17;
NTI263002.base = (&NTI135010);
TMP2089[0] = &TMP933[58];
TMP933[58].kind = 1;
TMP933[58].offset = offsetof(Toptionentry263002, options);
TMP933[58].typ = (&NTI159011);
TMP933[58].name = "options";
TMP2089[1] = &TMP933[59];
TMP933[59].kind = 1;
TMP933[59].offset = offsetof(Toptionentry263002, defaultcc);
TMP933[59].typ = (&NTI213002);
TMP933[59].name = "defaultCC";
TMP2089[2] = &TMP933[60];
TMP933[60].kind = 1;
TMP933[60].offset = offsetof(Toptionentry263002, dynlib);
TMP933[60].typ = (&NTI213820);
TMP933[60].name = "dynlib";
TMP2089[3] = &TMP933[61];
TMP933[61].kind = 1;
TMP933[61].offset = offsetof(Toptionentry263002, notes);
TMP933[61].typ = (&NTI181333);
TMP933[61].name = "notes";
TMP2089[4] = &TMP933[62];
TMP933[62].kind = 1;
TMP933[62].offset = offsetof(Toptionentry263002, otherpragmas);
TMP933[62].typ = (&NTI213782);
TMP933[62].name = "otherPragmas";
TMP933[57].len = 5; TMP933[57].kind = 2; TMP933[57].sons = &TMP2089[0];
NTI263002.node = &TMP933[57];
NTI263004.size = sizeof(Toptionentry263002*);
NTI263004.kind = 22;
NTI263004.base = (&NTI263002);
NTI263004.marker = TMP2093;
}

