/* Generated by Nim Compiler v0.12.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 Tsymseq224811 Tsymseq224811;
typedef struct Tsym224841 Tsym224841;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Cell48947 Cell48947;
typedef struct Cellseq48963 Cellseq48963;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48959 Cellset48959;
typedef struct Pagedesc48955 Pagedesc48955;
typedef struct Memregion30891 Memregion30891;
typedef struct Smallchunk30843 Smallchunk30843;
typedef struct Llchunk30885 Llchunk30885;
typedef struct Bigchunk30845 Bigchunk30845;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30889 Avlnode30889;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Ttype224847 Ttype224847;
typedef struct Tcontext279023 Tcontext279023;
typedef struct Tpasscontext276005 Tpasscontext276005;
typedef struct TNimObject TNimObject;
typedef struct Tscope224835 Tscope224835;
typedef struct Tproccon279011 Tproccon279011;
typedef struct Intset221056 Intset221056;
typedef struct Trunk221052 Trunk221052;
typedef struct Trunkseq221054 Trunkseq221054;
typedef struct Tlinkedlist140028 Tlinkedlist140028;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct Tidtable224859 Tidtable224859;
typedef struct Tidpairseq224857 Tidpairseq224857;
typedef struct Tnode224809 Tnode224809;
typedef struct Tlineinfo189352 Tlineinfo189352;
typedef struct Tstrtable224813 Tstrtable224813;
typedef struct Tctx278048 Tctx278048;
typedef struct TY279143 TY279143;
typedef struct TY575951 TY575951;
typedef struct TY575954 TY575954;
typedef struct Tinstantiationpair279013 Tinstantiationpair279013;
typedef struct Tinstantiation224831 Tinstantiation224831;
typedef struct Toptionentry279005 Toptionentry279005;
typedef struct Tlib224827 Tlib224827;
typedef struct Tidobj197015 Tidobj197015;
typedef struct Ttypeseq224843 Ttypeseq224843;
typedef struct Tloc224823 Tloc224823;
typedef struct Ropeobj175009 Ropeobj175009;
typedef struct NimStringDesc NimStringDesc;
typedef struct TY90959 TY90959;
typedef struct Tident197021 Tident197021;
typedef struct Tnodeseq224803 Tnodeseq224803;
typedef struct TY224944 TY224944;
typedef struct Basechunk30841 Basechunk30841;
typedef struct Freecell30833 Freecell30833;
typedef struct Tidpair224855 Tidpair224855;
typedef struct TY278254 TY278254;
typedef struct TY190417 TY190417;
typedef struct PprocHEX3Aobjecttype278233 PprocHEX3Aobjecttype278233;
typedef struct TY278273 TY278273;
typedef struct TY224932 TY224932;
typedef struct TY278234 TY278234;
typedef struct TY278239 TY278239;
typedef struct TY278274 TY278274;
typedef struct Vmargs278042 Vmargs278042;
typedef struct Tblock278030 Tblock278030;
typedef struct TY278214 TY278214;
struct  TGenericSeq  {
NI len;
NI reserved;
};
typedef N_NIMCALL_PTR(void, TY3889) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3894) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3889 marker;
TY3894 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Cell48947  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48963  {
NI len;
NI cap;
Cell48947** d;
};
struct  Cellset48959  {
NI counter;
NI max;
Pagedesc48955* head;
Pagedesc48955** data;
};
typedef Smallchunk30843* TY30906[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30891  {
NI minlargeobj;
NI maxlargeobj;
TY30906 freesmallchunks;
Llchunk30885* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30845* freechunkslist;
Intset30817 chunkstarts;
Avlnode30889* root;
Avlnode30889* deleted;
Avlnode30889* last;
Avlnode30889* freeavlnodes;
};
struct  Gcstat51014  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51018  {
Gcstack51016* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq48963 zct;
Cellseq48963 decstack;
Cellset48959 cycleroots;
Cellseq48963 tempstack;
NI recgclock;
Memregion30891 region;
Gcstat51014 stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tpasscontext276005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Intset221056  {
NI counter;
NI max;
Trunk221052* head;
Trunkseq221054* data;
};
struct  Tlinkedlist140028  {
Tlistentry140022* head;
Tlistentry140022* tail;
NI counter;
};
struct  Tidtable224859  {
NI counter;
Tidpairseq224857* data;
};
typedef N_NIMCALL_PTR(Tnode224809*, TY279074) (Tcontext279023* c, Tnode224809* n);
typedef N_NIMCALL_PTR(Tnode224809*, TY279079) (Tcontext279023* c, Tnode224809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode224809*, TY279087) (Tcontext279023* c, Tnode224809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode224809*, TY279095) (Tcontext279023* c, Tnode224809* n);
typedef N_NIMCALL_PTR(Tnode224809*, TY279100) (Tcontext279023* c, Tnode224809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode224809*, TY279108) (Tcontext279023* c, Tnode224809* n);
typedef N_NIMCALL_PTR(Tnode224809*, TY279113) (Tcontext279023* c, Tnode224809* n, Tnode224809* norig, NU32 filter);
typedef N_NIMCALL_PTR(Ttype224847*, TY279120) (Tcontext279023* c, Tnode224809* n, Ttype224847* prev);
typedef struct {
N_NIMCALL_PTR(Tnode224809*, ClPrc) (Tcontext279023* c, Tidtable224859 pt, Tnode224809* n, void* ClEnv);
void* ClEnv;
} TY279126;
typedef struct {
N_NIMCALL_PTR(Tsym224841*, ClPrc) (Tcontext279023* c, Tsym224841* fn, Tidtable224859 pt, Tlineinfo189352 info, void* ClEnv);
void* ClEnv;
} TY279132;
struct  Tstrtable224813  {
NI counter;
Tsymseq224811* data;
};
typedef N_NIMCALL_PTR(Tsym224841*, TY279148) (Tcontext279023* c, Tsym224841* dc, Ttype224847* t, Tlineinfo189352 info, NU8 op);
struct  Tcontext279023  {
  Tpasscontext276005 Sup;
Tsym224841* module;
Tscope224835* currentscope;
Tscope224835* importtable;
Tscope224835* toplevelscope;
Tproccon279011* p;
Tsymseq224811* friendmodules;
NI instcounter;
Intset221056 ambiguoussymbols;
NI intypeclass;
NI ingenericcontext;
NI inunrolledcontext;
NI compilescontextid;
NI compilescontextidgenerator;
NI ingenericinst;
Tsymseq224811* converters;
Tsymseq224811* patterns;
Tlinkedlist140028 optionstack;
Tidtable224859 symmapping;
Tlinkedlist140028 libs;
TY279074 semconstexpr;
TY279079 semexpr;
TY279087 semtryexpr;
TY279095 semtryconstexpr;
TY279100 semoperand;
TY279108 semconstboolexpr;
TY279113 semoverloadedcall;
TY279120 semtypenode;
TY279126 seminferredlambda;
TY279132 semgenerateinstance;
Intset221056 includedfiles;
Tstrtable224813 userpragmas;
Tctx278048* evalcontext;
Intset221056 unknownidents;
TY279143* generics;
NI lastgenericidx;
NI hloloopdetector;
NI inparallelstmt;
TY279148 insttypeboundop;
};
struct  Tproccon279011  {
Tsym224841* owner;
Tsym224841* resultsym;
NI nestedloopcounter;
NI nestedblockcounter;
NI intrystmt;
Tproccon279011* next;
NIM_BOOL wasforwarded;
Tnode224809* bracketexpr;
};
struct TY575951 {
void* Field0;
TY575954* Field1;
};
struct  Tinstantiationpair279013  {
Tsym224841* genericsym;
Tinstantiation224831* inst;
};
struct  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Toptionentry279005  {
  Tlistentry140022 Sup;
NU32 options;
NU8 defaultcc;
Tlib224827* dynlib;
NU64 notes;
Tnode224809* otherpragmas;
};
typedef Tsym224841* TY279433[1];
struct  Tidobj197015  {
  TNimObject Sup;
NI id;
};
struct  Tloc224823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype224847* t;
Ropeobj175009* r;
Ropeobj175009* heaproot;
};
struct  Ttype224847  {
  Tidobj197015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq224843* sons;
Tnode224809* n;
Tsym224841* owner;
Tsym224841* sym;
Tsym224841* destructor;
Tsym224841* deepcopy;
Tsym224841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc224823 loc;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct TY90959 {
NimStringDesc* Field0;
NI Field1;
};
struct  Tlineinfo189352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode224809  {
Ttype224847* typ;
Tlineinfo189352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym224841* sym;
} S4;
struct {Tident197021* ident;
} S5;
struct {Tnodeseq224803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef Tnode224809* TY242880[1];
typedef Ttype224847* TY392275[1];
typedef Ttype224847* TY279864[2];
typedef Tnode224809* TY280106[2];
struct  Tlib224827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj175009* name;
Tnode224809* path;
};
struct  Tsym224841  {
  Tidobj197015 Sup;
NU8 kind;
union{
struct {Ttypeseq224843* typeinstcache;
Tscope224835* typscope;
} S1;
struct {TY224944* procinstcache;
Tsym224841* gcunsafetyreason;
} S2;
struct {TY224944* usedgenerics;
Tstrtable224813 tab;
} S3;
struct {Tsym224841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype224847* typ;
Tident197021* name;
Tlineinfo189352 info;
Tsym224841* owner;
NU32 flags;
Tnode224809* ast;
NU32 options;
NI position;
NI offset;
Tloc224823 loc;
Tlib224827* annex;
Tnode224809* constraint;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30822[8];
struct  Pagedesc48955  {
Pagedesc48955* next;
NI key;
TY30822 bits;
};
struct  Basechunk30841  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30843  {
  Basechunk30841 Sup;
Smallchunk30843* next;
Smallchunk30843* prev;
Freecell30833* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30885  {
NI size;
NI acc;
Llchunk30885* next;
};
struct  Bigchunk30845  {
  Basechunk30841 Sup;
Bigchunk30845* next;
Bigchunk30845* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30822 bits;
};
typedef Avlnode30889* TY30896[2];
struct  Avlnode30889  {
TY30896 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope224835  {
NI depthlevel;
Tstrtable224813 symbols;
Tnodeseq224803* usingsyms;
Tscope224835* parent;
};
struct  Trunk221052  {
Trunk221052* next;
NI key;
TY30822 bits;
};
struct  Tidpair224855  {
Tidobj197015* key;
TNimObject* val;
};
struct  Tctx278048  {
  Tpasscontext276005 Sup;
TY278254* code;
TY190417* debug;
Tnode224809* globals;
Tnode224809* constants;
Ttypeseq224843* types;
Tnode224809* currentexceptiona;
Tnode224809* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype278233* prc;
Tsym224841* module;
Tnode224809* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo189352 comesfromheuristic;
TY278273* callbacks;
NimStringDesc* errorflag;
};
struct TY575954 {
char dummy;
};
struct  Tinstantiation224831  {
Tsym224841* sym;
Ttypeseq224843* concretetypes;
TY224932* usedby;
NI compilesid;
};
struct  Ropeobj175009  {
  TNimObject Sup;
Ropeobj175009* left;
Ropeobj175009* right;
NI length;
NimStringDesc* data;
};
struct  Tident197021  {
  Tidobj197015 Sup;
NimStringDesc* s;
Tident197021* next;
NI h;
};
struct  Freecell30833  {
Freecell30833* next;
NI zerofield;
};
struct TY278239 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY278239 TY278242[256];
struct  PprocHEX3Aobjecttype278233  {
TY278234* blocks;
Tsym224841* sym;
TY278242 slots;
NI maxslots;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs278042* args, void* ClEnv);
void* ClEnv;
} Vmcallback278044;
struct TY278274 {
NimStringDesc* Field0;
Vmcallback278044 Field1;
};
struct  Tblock278030  {
Tsym224841* label;
TY278214* fixups;
};
struct  Vmargs278042  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode224809* currentexception;
};
struct Tsymseq224811 {
  TGenericSeq Sup;
  Tsym224841* data[SEQ_DECL_SIZE];
};
struct TY279143 {
  TGenericSeq Sup;
  Tinstantiationpair279013 data[SEQ_DECL_SIZE];
};
struct Ttypeseq224843 {
  TGenericSeq Sup;
  Ttype224847* data[SEQ_DECL_SIZE];
};
struct Tnodeseq224803 {
  TGenericSeq Sup;
  Tnode224809* data[SEQ_DECL_SIZE];
};
struct Trunkseq221054 {
  TGenericSeq Sup;
  Trunk221052* data[SEQ_DECL_SIZE];
};
struct Tidpairseq224857 {
  TGenericSeq Sup;
  Tidpair224855 data[SEQ_DECL_SIZE];
};
struct TY224944 {
  TGenericSeq Sup;
  Tinstantiation224831* data[SEQ_DECL_SIZE];
};
struct TY278254 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY190417 {
  TGenericSeq Sup;
  Tlineinfo189352 data[SEQ_DECL_SIZE];
};
struct TY278273 {
  TGenericSeq Sup;
  TY278274 data[SEQ_DECL_SIZE];
};
struct TY224932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct TY278234 {
  TGenericSeq Sup;
  Tblock278030 data[SEQ_DECL_SIZE];
};
struct TY278214 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell48947*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48947* c);
N_NOINLINE(void, addzct_52617)(Cellseq48963* s, Cell48947* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(Ttype224847*, newtype_227140)(NU8 kind, Tsym224841* owner);
N_NIMCALL(Tsym224841*, getcurrowner_279257)(void);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP2028)(void* p, NI op);
N_NIMCALL(void, TMP2053)(void* p, NI op);
N_NIMCALL(void, TMP2054)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(void, initintset_221927)(Intset221056* Result);
N_NIMCALL(void, initlinkedlist_140043)(Tlinkedlist140028* list);
N_NIMCALL(void, append_140053)(Tlinkedlist140028* list, Tlistentry140022* entry);
N_NIMCALL(Toptionentry279005*, newoptionentry_279195)(void);
N_NIMCALL(void, TMP2059)(void* p, NI op);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_55022)(Cell48947* c);
static N_INLINE(NIM_BOOL, canbecycleroot_52667)(Cell48947* c);
static N_INLINE(void, rtladdcycleroot_53423)(Cell48947* c);
N_NOINLINE(void, incl_49665)(Cellset48959* s, Cell48947* cell);
static N_INLINE(void, decref_54604)(Cell48947* c);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(void, initstrtable_228007)(Tstrtable224813* x);
N_NIMCALL(Ttype224847*, newtypes_279220)(NU8 kind, Tcontext279023* c);
N_NIMCALL(void, addsonskipintlit_273731)(Ttype224847* father, Ttype224847* son);
N_NIMCALL(void, internalerror_195191)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_195279)(TY90959 x);
N_NIMCALL(void, globalerror_195107)(Tlineinfo189352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_246059)(Tnode224809* n, NU8 renderflags);
N_NIMCALL(NI, sonslen_227387)(Tnode224809* n);
N_NIMCALL(void, illformedast_280240)(Tnode224809* n);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_85804, TNimType* mt);
N_NIMCALL(Tnode224809*, newnodei_226351)(NU8 kind, Tlineinfo189352 info);
N_NIMCALL(void, addson_226819)(Tnode224809* father, Tnode224809* son);
N_NIMCALL(Tnode224809*, newinttypenode_225619)(NU8 kind, NI64 intval, Ttype224847* typ);
N_NIMCALL(Ttype224847*, newtypewithsons_279807)(Tcontext279023* c, NU8 kind, Ttypeseq224843* sons);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, propagatetoowner_228274)(Ttype224847* owner, Ttype224847* elem);
N_NIMCALL(Ttype224847*, getsystype_273190)(NU8 kind);
N_NIMCALL(Tnode224809*, newnode_226607)(NU8 kind, Tlineinfo189352 info, Tnodeseq224803* sons, Ttype224847* typ);
N_NIMCALL(Tnode224809*, makestaticexpr_279820)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(Tnode224809*, nminusone_280064)(Tnode224809* n);
N_NIMCALL(Tnode224809*, newsymnode_226325)(Tsym224841* sym);
N_NIMCALL(Tsym224841*, getsysmagic_273121)(NimStringDesc* name, NU8 m);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, localerror_195128)(Tlineinfo189352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(Ttype224847*, errortype_280161)(Tcontext279023* c);
N_NIMCALL(Ttype224847*, maketypedesc_279683)(Tcontext279023* c, Ttype224847* typ);
N_NIMCALL(Tsym224841*, linkto_225884)(Tsym224841* s, Ttype224847* t);
N_NIMCALL(Tsym224841*, newsym_225655)(NU8 symkind, Tident197021* name, Tsym224841* owner, Tlineinfo189352 info);
N_NIMCALL(Tnode224809*, newsymnode_226338)(Tsym224841* sym, Tlineinfo189352 info);
N_NIMCALL(void, inclsym_279501)(Tsymseq224811** sq, Tsym224841* s);
STRING_LITERAL(TMP2747, "compiler/semdata.nim", 20);
NIM_CONST TY90959 TMP2746 = {((NimStringDesc*) &TMP2747),
((NI) 226)}
;
NIM_CONST TY90959 TMP2761 = {((NimStringDesc*) &TMP2747),
((NI) 222)}
;
STRING_LITERAL(TMP3121, "<", 1);
STRING_LITERAL(TMP3294, "popOwner", 8);
NIM_CONST TY90959 TMP3337 = {((NimStringDesc*) &TMP2747),
((NI) 215)}
;
Tsymseq224811* gowners_279290;
extern TNimType NTI224811; /* TSymSeq */
extern Gcheap51018 gch_51059;
extern TNimType NTI276005; /* TPassContext */
TNimType NTI279023; /* TContext */
extern TNimType NTI224807; /* PSym */
extern TNimType NTI224837; /* PScope */
TNimType NTI279011; /* TProcCon */
extern TNimType NTI108; /* int */
extern TNimType NTI138; /* bool */
extern TNimType NTI224801; /* PNode */
TNimType NTI279009; /* PProcCon */
extern TNimType NTI221056; /* IntSet */
extern TNimType NTI140028; /* TLinkedList */
extern TNimType NTI224859; /* TIdTable */
TNimType NTI279074; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI279079; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI279087; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI279095; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI279100; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI279108; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI279113; /* proc (c: PContext, n: PNode, nOrig: PNode, filter: TSymKinds): PNode */
TNimType NTI279120; /* proc (c: PContext, n: PNode, prev: PType): PType */
TNimType NTI279126; /* (pointer, ref tuple[]) */
extern TNimType NTI153; /* pointer */
extern TNimType NTI575953; /* ref tuple[] */
TNimType NTI279132; /* (pointer, ref tuple[]) */
extern TNimType NTI224813; /* TStrTable */
extern TNimType NTI278046; /* PCtx */
TNimType NTI279013; /* TInstantiationPair */
extern TNimType NTI224833; /* PInstantiation */
TNimType NTI279143; /* seq[TInstantiationPair] */
TNimType NTI279148; /* proc (c: PContext, dc: PSym, t: PType, info: TLineInfo, op: TTypeAttachedOp): PSym */
TNimType NTI279021; /* PContext */
extern TNimType NTI140022; /* TListEntry */
TNimType NTI279005; /* TOptionEntry */
extern TNimType NTI166017; /* TOptions */
extern TNimType NTI224005; /* TCallingConvention */
extern TNimType NTI224839; /* PLib */
extern TNimType NTI189348; /* TNoteKinds */
TNimType NTI279007; /* POptionEntry */
extern NU32 goptions_166130;
extern NU64 gnotes_190395;
extern TNimType NTI224843; /* TTypeSeq */
extern TNimType NTI224803; /* TNodeSeq */
extern TNimType NTI224827; /* TLib */
extern Tident197021* idanon_197495;

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

static N_INLINE(void, rtladdzct_54204)(Cell48947* c) {
	addzct_52617((&gch_51059.zct), c);
}

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

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

N_NIMCALL(Ttype224847*, newtypes_279220)(NU8 kind, Tcontext279023* c) {
	Ttype224847* result;
	Tsym224841* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_279257();
	result = newtype_227140(kind, LOC1);
	return result;
}
N_NIMCALL(void, TMP2028)(void* p, NI op) {
	Tproccon279011* a;
	a = (Tproccon279011*)p;
	nimGCvisit((void*)(*a).owner, op);
	nimGCvisit((void*)(*a).resultsym, op);
	nimGCvisit((void*)(*a).next, op);
	nimGCvisit((void*)(*a).bracketexpr, op);
}
N_NIMCALL(void, TMP2053)(void* p, NI op) {
	TY279143* a;
	NI LOC1;
	a = (TY279143*)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, TMP2054)(void* p, NI op) {
	Tcontext279023* a;
	a = (Tcontext279023*)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, TMP2059)(void* p, NI op) {
	Toptionentry279005* a;
	a = (Toptionentry279005*)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_52667)(Cell48947* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).typ).flags &(1<<((((NU8) 1))&7)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_53423)(Cell48947* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_49665((&gch_51059.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, incref_55022)(Cell48947* c) {
	(*c).refcount = (NI)((NU64)((*c).refcount) + (NU64)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_52667(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_53423(c);
	}
	LA4: ;
}

static N_INLINE(void, decref_54604)(Cell48947* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3;
		rtladdzct_54204(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_52667(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_53423(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Cell48947* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_52646(src);
		incref_55022(LOC5);
	}
	LA3: ;
	{
		Cell48947* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_52646((*dest));
		decref_54604(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(Toptionentry279005*, newoptionentry_279195)(void) {
	Toptionentry279005* result;
	result = 0;
	result = (Toptionentry279005*) newObj((&NTI279007), sizeof(Toptionentry279005));
	(*result).Sup.Sup.m_type = (&NTI279005);
	(*result).options = goptions_166130;
	(*result).defaultcc = ((NU8) 0);
	asgnRef((void**) (&(*result).dynlib), NIM_NIL);
	(*result).notes = gnotes_190395;
	return result;
}

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

N_NIMCALL(Tcontext279023*, newcontext_279183)(Tsym224841* module) {
	Tcontext279023* result;
	Toptionentry279005* LOC1;
	Tlistentry140022* LOC2;
	TY279433 LOC3;
	result = 0;
	result = (Tcontext279023*) newObj((&NTI279021), sizeof(Tcontext279023));
	(*result).Sup.Sup.m_type = (&NTI279023);
	initintset_221927((&(*result).ambiguoussymbols));
	initlinkedlist_140043((&(*result).optionstack));
	initlinkedlist_140043((&(*result).libs));
	LOC1 = 0;
	LOC1 = newoptionentry_279195();
	LOC2 = 0;
	LOC2 = &LOC1->Sup;
	append_140053((&(*result).optionstack), LOC2);
	asgnRefNoCycle((void**) (&(*result).module), module);
	if ((*result).friendmodules) nimGCunrefNoCycle((*result).friendmodules);
	(*result).friendmodules = (Tsymseq224811*) newSeqRC1((&NTI224811), 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 = (Tsymseq224811*) newSeqRC1((&NTI224811), 0);
	if ((*result).patterns) nimGCunrefNoCycle((*result).patterns);
	(*result).patterns = (Tsymseq224811*) newSeqRC1((&NTI224811), 0);
	initintset_221927((&(*result).includedfiles));
	initstrtable_228007((&(*result).userpragmas));
	if ((*result).generics) nimGCunrefNoCycle((*result).generics);
	(*result).generics = (TY279143*) newSeqRC1((&NTI279143), 0);
	initintset_221927((&(*result).unknownidents));
	return result;
}

N_NIMCALL(Ttype224847*, maketypefromexpr_279728)(Tcontext279023* c, Tnode224809* n) {
	Ttype224847* result;
	result = 0;
	result = newtypes_279220(((NU8) 60), c);
	asgnRefNoCycle((void**) (&(*result).n), n);
	return result;
}

N_NIMCALL(Ttype224847*, errortype_280161)(Tcontext279023* c) {
	Ttype224847* result;
	result = 0;
	result = newtypes_279220(((NU8) 50), c);
	return result;
}

N_NIMCALL(Ttype224847*, maketypedesc_279683)(Tcontext279023* c, Ttype224847* typ) {
	Ttype224847* result;
	result = 0;
	result = newtypes_279220(((NU8) 8), c);
	{
		NimStringDesc* LOC5;
		if (!(typ == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_195279(TMP2746);
		internalerror_195191(LOC5);
	}
	LA3: ;
	addsonskipintlit_273731(result, typ);
	return result;
}

N_NIMCALL(void, illformedast_280240)(Tnode224809* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_246059(n, 4);
	globalerror_195107((*n).info, ((NU16) 1), LOC1);
}

N_NIMCALL(void, checksonslen_280260)(Tnode224809* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_227387(n);
		if (!!((LOC3 == length))) goto LA4;
		illformedast_280240(n);
	}
	LA4: ;
}

N_NIMCALL(Ttype224847*, newtypewithsons_279807)(Tcontext279023* c, NU8 kind, Ttypeseq224843* sons) {
	Ttype224847* result;
	Tsym224841* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_279257();
	result = newtype_227140(kind, LOC1);
	genericSeqAssign((&(*result).sons), sons, (&NTI224843));
	return result;
}

N_NIMCALL(Ttype224847*, makevartype_279644)(Tcontext279023* c, Ttype224847* basetype) {
	Ttype224847* result;
	result = 0;
	{
		if (!((*basetype).kind == ((NU8) 23))) goto LA3;
		result = basetype;
	}
	goto LA1;
	LA3: ;
	{
		result = newtypes_279220(((NU8) 23), c);
		{
			NimStringDesc* LOC10;
			if (!(basetype == NIM_NIL)) goto LA8;
			LOC10 = 0;
			LOC10 = HEX24_195279(TMP2761);
			internalerror_195191(LOC10);
		}
		LA8: ;
		addsonskipintlit_273731(result, basetype);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ttype224847*, makerangetype_280193)(Tcontext279023* c, NI64 first, NI64 last, Tlineinfo189352 info, Ttype224847* inttype) {
	Ttype224847* result;
	Tnode224809* n;
	Tnode224809* LOC1;
	Tnode224809* LOC2;
	result = 0;
	n = newnodei_226351(((NU8) 44), info);
	LOC1 = 0;
	LOC1 = newinttypenode_225619(((NU8) 6), first, inttype);
	addson_226819(n, LOC1);
	LOC2 = 0;
	LOC2 = newinttypenode_225619(((NU8) 6), last, inttype);
	addson_226819(n, LOC2);
	result = newtypes_279220(((NU8) 20), c);
	asgnRefNoCycle((void**) (&(*result).n), n);
	addsonskipintlit_273731(result, inttype);
	return result;
}

N_NIMCALL(Tnode224809*, makestaticexpr_279820)(Tcontext279023* c, Tnode224809* n) {
	Tnode224809* result;
	TY242880 LOC1;
	Ttypeseq224843* LOC2;
	TY392275 LOC3;
	result = 0;
	result = newnodei_226351(((NU8) 62), (*n).info);
	if ((*result).kindU.S6.sons) nimGCunrefNoCycle((*result).kindU.S6.sons);
	(*result).kindU.S6.sons = (Tnodeseq224803*) newSeqRC1((&NTI224803), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = n;
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (Ttypeseq224843*) newSeq((&NTI224843), 1);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = (*n).typ;
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&(*result).typ), newtypewithsons_279807(c, ((NU8) 59), LOC2));
	return result;
}

N_NIMCALL(Ttype224847*, makeandtype_279858)(Tcontext279023* c, Ttype224847* t1, Ttype224847* t2) {
	Ttype224847* result;
	TY279864 LOC1;
	result = 0;
	result = newtypes_279220(((NU8) 55), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq224843*) newSeqRC1((&NTI224843), 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_228274(result, t1);
	propagatetoowner_228274(result, t2);
	(*result).flags = ((*result).flags | (((*t1).flags | (*t2).flags) & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(Ttype224847*, makeortype_279931)(Tcontext279023* c, Ttype224847* t1, Ttype224847* t2) {
	Ttype224847* result;
	TY279864 LOC1;
	result = 0;
	result = newtypes_279220(((NU8) 56), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq224843*) newSeqRC1((&NTI224843), 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_228274(result, t1);
	propagatetoowner_228274(result, t2);
	(*result).flags = ((*result).flags | (((*t1).flags | (*t2).flags) & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(Ttype224847*, makenottype_280004)(Tcontext279023* c, Ttype224847* t1) {
	Ttype224847* result;
	TY392275 LOC1;
	result = 0;
	result = newtypes_279220(((NU8) 57), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq224843*) newSeqRC1((&NTI224843), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = t1;
	asgnRefNoCycle((void**) (&(*result).sons->data[0]), LOC1[0]);
	propagatetoowner_228274(result, t1);
	(*result).flags = ((*result).flags | ((*t1).flags & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(void, checkminsonslen_280270)(Tnode224809* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_227387(n);
		if (!(LOC3 < length)) goto LA4;
		illformedast_280240(n);
	}
	LA4: ;
}

N_NIMCALL(Tnode224809*, nminusone_280064)(Tnode224809* n) {
	Tnode224809* result;
	Tnodeseq224803* LOC1;
	TY280106 LOC2;
	Tsym224841* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (Tnodeseq224803*) newSeq((&NTI224803), 2);
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC3 = 0;
	LOC3 = getsysmagic_273121(((NimStringDesc*) &TMP3121), ((NU8) 25));
	LOC2[0] = newsymnode_226325(LOC3);
	LOC2[1] = n;
	asgnRefNoCycle((void**) (&LOC1->data[0]), LOC2[0]);
	asgnRefNoCycle((void**) (&LOC1->data[1]), LOC2[1]);
	result = newnode_226607(((NU8) 27), (*n).info, LOC1, NIM_NIL);
	return result;
}

N_NIMCALL(Ttype224847*, makerangewithstaticexpr_280087)(Tcontext279023* c, Tnode224809* n) {
	Ttype224847* result;
	Ttype224847* inttype;
	TY392275 LOC1;
	Tnodeseq224803* LOC2;
	TY280106 LOC3;
	Tnode224809* LOC4;
	result = 0;
	inttype = getsystype_273190(((NU8) 31));
	result = newtypes_279220(((NU8) 20), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq224843*) newSeqRC1((&NTI224843), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = inttype;
	asgnRefNoCycle((void**) (&(*result).sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (Tnodeseq224803*) newSeq((&NTI224803), 2);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = newinttypenode_225619(((NU8) 6), IL64(0), inttype);
	LOC4 = 0;
	LOC4 = nminusone_280064(n);
	LOC3[1] = makestaticexpr_279820(c, LOC4);
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&LOC2->data[1]), LOC3[1]);
	asgnRefNoCycle((void**) (&(*result).n), newnode_226607(((NU8) 44), (*n).info, LOC2, NIM_NIL));
	return result;
}

N_NIMCALL(void, pushowner_279262)(Tsym224841* owner) {
	gowners_279290 = (Tsymseq224811*) incrSeqV2(&(gowners_279290)->Sup, sizeof(Tsym224841*));
	asgnRefNoCycle((void**) (&gowners_279290->data[gowners_279290->Sup.len]), owner);
	++gowners_279290->Sup.len;
}

N_NIMCALL(void, makeinstpair_279159)(Tsym224841* s, Tinstantiation224831* inst, Tinstantiationpair279013* Result) {
	unsureAsgnRef((void**) (&(*Result).genericsym), s);
	unsureAsgnRef((void**) (&(*Result).inst), inst);
}

N_NIMCALL(Tlib224827*, newlib_279200)(NU8 kind) {
	Tlib224827* result;
	result = 0;
	result = (Tlib224827*) newObj((&NTI224839), sizeof(Tlib224827));
	(*result).Sup.Sup.m_type = (&NTI224827);
	(*result).kind = kind;
	return result;
}

N_NIMCALL(void, addtolib_279206)(Tlib224827* lib, Tsym224841* sym) {
	asgnRef((void**) (&(*sym).annex), lib);
}

N_NIMCALL(void, illformedastlocal_280250)(Tnode224809* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_246059(n, 4);
	localerror_195128((*n).info, ((NU16) 1), LOC1);
}

N_NIMCALL(Toptionentry279005*, lastoptionentry_279189)(Tcontext279023* c) {
	Toptionentry279005* result;
	result = 0;
	result = ((Toptionentry279005*) ((*c).optionstack.tail));
	return result;
}

N_NIMCALL(void, popowner_279268)(void) {
	NI length;
	length = (gowners_279290 ? gowners_279290->Sup.len : 0);
	{
		if (!(((NI) 0) < length)) goto LA3;
		gowners_279290 = (Tsymseq224811*) setLengthSeq(&(gowners_279290)->Sup, sizeof(Tsym224841*), ((NI) ((NI)(length - ((NI) 1)))));
	}
	goto LA1;
	LA3: ;
	{
		internalerror_195191(((NimStringDesc*) &TMP3294));
	}
	LA1: ;
}

N_NIMCALL(Ttype224847*, makeptrtype_279213)(Tcontext279023* c, Ttype224847* basetype) {
	Ttype224847* result;
	result = 0;
	result = newtypes_279220(((NU8) 21), c);
	{
		NimStringDesc* LOC5;
		if (!(basetype == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_195279(TMP3337);
		internalerror_195191(LOC5);
	}
	LA3: ;
	addsonskipintlit_273731(result, basetype);
	return result;
}

N_NIMCALL(Tnode224809*, errornode_280171)(Tcontext279023* c, Tnode224809* n) {
	Tnode224809* result;
	result = 0;
	result = newnodei_226351(((NU8) 1), (*n).info);
	asgnRefNoCycle((void**) (&(*result).typ), errortype_280161(c));
	return result;
}

N_NIMCALL(Tnode224809*, maketypesymnode_279713)(Tcontext279023* c, Ttype224847* typ, Tlineinfo189352 info) {
	Tnode224809* result;
	Ttype224847* typedesc;
	Tsym224841* sym;
	Tsym224841* LOC1;
	Tsym224841* LOC2;
{	result = 0;
	typedesc = maketypedesc_279683(c, typ);
	LOC1 = 0;
	LOC1 = getcurrowner_279257();
	LOC2 = 0;
	LOC2 = newsym_225655(((NU8) 7), idanon_197495, LOC1, info);
	sym = linkto_225884(LOC2, typedesc);
	result = newsymnode_226338(sym, info);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, inclsym_279501)(Tsymseq224811** sq, Tsym224841* s) {
	NI L;
{	L = ((*sq) ? (*sq)->Sup.len : 0);
	{
		NI i_279527;
		NI HEX3Atmp_279541;
		NI res_279544;
		i_279527 = 0;
		HEX3Atmp_279541 = 0;
		HEX3Atmp_279541 = (NI)(L - ((NI) 1));
		res_279544 = ((NI) 0);
		{
			while (1) {
				if (!(res_279544 <= HEX3Atmp_279541)) goto LA3;
				i_279527 = res_279544;
				{
					if (!((*(*sq)->data[i_279527]).Sup.id == (*s).Sup.id)) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
				res_279544 += ((NI) 1);
			} LA3: ;
		}
	}
	(*sq) = (Tsymseq224811*) setLengthSeq(&((*sq))->Sup, sizeof(Tsym224841*), ((NI) ((NI)(L + ((NI) 1)))));
	asgnRefNoCycle((void**) (&(*sq)->data[L]), s);
	}BeforeRet: ;
}

N_NIMCALL(void, addconverter_279563)(Tcontext279023* c, Tsym224841* conv) {
	inclsym_279501((&(*c).converters), conv);
}

N_NIMCALL(void, addpattern_279574)(Tcontext279023* c, Tsym224841* p) {
	inclsym_279501((&(*c).patterns), p);
}
NIM_EXTERNC N_NOINLINE(void, compiler_semdataInit000)(void) {
	if (gowners_279290) nimGCunrefNoCycle(gowners_279290);
	gowners_279290 = (Tsymseq224811*) newSeqRC1((&NTI224811), 0);
}

NIM_EXTERNC N_NOINLINE(void, compiler_semdataDatInit000)(void) {
static TNimNode* TMP2026[38];
static TNimNode* TMP2027[8];
static TNimNode* TMP2029[2];
static TNimNode* TMP2030[2];
static TNimNode* TMP2052[2];
static TNimNode* TMP2055[5];
static TNimNode TMP929[63];
NTI279023.size = sizeof(Tcontext279023);
NTI279023.kind = 17;
NTI279023.base = (&NTI276005);
TMP2026[0] = &TMP929[1];
TMP929[1].kind = 1;
TMP929[1].offset = offsetof(Tcontext279023, module);
TMP929[1].typ = (&NTI224807);
TMP929[1].name = "module";
TMP2026[1] = &TMP929[2];
TMP929[2].kind = 1;
TMP929[2].offset = offsetof(Tcontext279023, currentscope);
TMP929[2].typ = (&NTI224837);
TMP929[2].name = "currentScope";
TMP2026[2] = &TMP929[3];
TMP929[3].kind = 1;
TMP929[3].offset = offsetof(Tcontext279023, importtable);
TMP929[3].typ = (&NTI224837);
TMP929[3].name = "importTable";
TMP2026[3] = &TMP929[4];
TMP929[4].kind = 1;
TMP929[4].offset = offsetof(Tcontext279023, toplevelscope);
TMP929[4].typ = (&NTI224837);
TMP929[4].name = "topLevelScope";
TMP2026[4] = &TMP929[5];
NTI279011.size = sizeof(Tproccon279011);
NTI279011.kind = 18;
NTI279011.base = 0;
TMP2027[0] = &TMP929[7];
TMP929[7].kind = 1;
TMP929[7].offset = offsetof(Tproccon279011, owner);
TMP929[7].typ = (&NTI224807);
TMP929[7].name = "owner";
TMP2027[1] = &TMP929[8];
TMP929[8].kind = 1;
TMP929[8].offset = offsetof(Tproccon279011, resultsym);
TMP929[8].typ = (&NTI224807);
TMP929[8].name = "resultSym";
TMP2027[2] = &TMP929[9];
TMP929[9].kind = 1;
TMP929[9].offset = offsetof(Tproccon279011, nestedloopcounter);
TMP929[9].typ = (&NTI108);
TMP929[9].name = "nestedLoopCounter";
TMP2027[3] = &TMP929[10];
TMP929[10].kind = 1;
TMP929[10].offset = offsetof(Tproccon279011, nestedblockcounter);
TMP929[10].typ = (&NTI108);
TMP929[10].name = "nestedBlockCounter";
TMP2027[4] = &TMP929[11];
TMP929[11].kind = 1;
TMP929[11].offset = offsetof(Tproccon279011, intrystmt);
TMP929[11].typ = (&NTI108);
TMP929[11].name = "inTryStmt";
TMP2027[5] = &TMP929[12];
TMP929[12].kind = 1;
TMP929[12].offset = offsetof(Tproccon279011, next);
TMP929[12].typ = (&NTI279009);
TMP929[12].name = "next";
TMP2027[6] = &TMP929[13];
TMP929[13].kind = 1;
TMP929[13].offset = offsetof(Tproccon279011, wasforwarded);
TMP929[13].typ = (&NTI138);
TMP929[13].name = "wasForwarded";
TMP2027[7] = &TMP929[14];
TMP929[14].kind = 1;
TMP929[14].offset = offsetof(Tproccon279011, bracketexpr);
TMP929[14].typ = (&NTI224801);
TMP929[14].name = "bracketExpr";
TMP929[6].len = 8; TMP929[6].kind = 2; TMP929[6].sons = &TMP2027[0];
NTI279011.node = &TMP929[6];
NTI279009.size = sizeof(Tproccon279011*);
NTI279009.kind = 22;
NTI279009.base = (&NTI279011);
NTI279009.marker = TMP2028;
TMP929[5].kind = 1;
TMP929[5].offset = offsetof(Tcontext279023, p);
TMP929[5].typ = (&NTI279009);
TMP929[5].name = "p";
TMP2026[5] = &TMP929[15];
TMP929[15].kind = 1;
TMP929[15].offset = offsetof(Tcontext279023, friendmodules);
TMP929[15].typ = (&NTI224811);
TMP929[15].name = "friendModules";
TMP2026[6] = &TMP929[16];
TMP929[16].kind = 1;
TMP929[16].offset = offsetof(Tcontext279023, instcounter);
TMP929[16].typ = (&NTI108);
TMP929[16].name = "instCounter";
TMP2026[7] = &TMP929[17];
TMP929[17].kind = 1;
TMP929[17].offset = offsetof(Tcontext279023, ambiguoussymbols);
TMP929[17].typ = (&NTI221056);
TMP929[17].name = "ambiguousSymbols";
TMP2026[8] = &TMP929[18];
TMP929[18].kind = 1;
TMP929[18].offset = offsetof(Tcontext279023, intypeclass);
TMP929[18].typ = (&NTI108);
TMP929[18].name = "inTypeClass";
TMP2026[9] = &TMP929[19];
TMP929[19].kind = 1;
TMP929[19].offset = offsetof(Tcontext279023, ingenericcontext);
TMP929[19].typ = (&NTI108);
TMP929[19].name = "inGenericContext";
TMP2026[10] = &TMP929[20];
TMP929[20].kind = 1;
TMP929[20].offset = offsetof(Tcontext279023, inunrolledcontext);
TMP929[20].typ = (&NTI108);
TMP929[20].name = "inUnrolledContext";
TMP2026[11] = &TMP929[21];
TMP929[21].kind = 1;
TMP929[21].offset = offsetof(Tcontext279023, compilescontextid);
TMP929[21].typ = (&NTI108);
TMP929[21].name = "compilesContextId";
TMP2026[12] = &TMP929[22];
TMP929[22].kind = 1;
TMP929[22].offset = offsetof(Tcontext279023, compilescontextidgenerator);
TMP929[22].typ = (&NTI108);
TMP929[22].name = "compilesContextIdGenerator";
TMP2026[13] = &TMP929[23];
TMP929[23].kind = 1;
TMP929[23].offset = offsetof(Tcontext279023, ingenericinst);
TMP929[23].typ = (&NTI108);
TMP929[23].name = "inGenericInst";
TMP2026[14] = &TMP929[24];
TMP929[24].kind = 1;
TMP929[24].offset = offsetof(Tcontext279023, converters);
TMP929[24].typ = (&NTI224811);
TMP929[24].name = "converters";
TMP2026[15] = &TMP929[25];
TMP929[25].kind = 1;
TMP929[25].offset = offsetof(Tcontext279023, patterns);
TMP929[25].typ = (&NTI224811);
TMP929[25].name = "patterns";
TMP2026[16] = &TMP929[26];
TMP929[26].kind = 1;
TMP929[26].offset = offsetof(Tcontext279023, optionstack);
TMP929[26].typ = (&NTI140028);
TMP929[26].name = "optionStack";
TMP2026[17] = &TMP929[27];
TMP929[27].kind = 1;
TMP929[27].offset = offsetof(Tcontext279023, symmapping);
TMP929[27].typ = (&NTI224859);
TMP929[27].name = "symMapping";
TMP2026[18] = &TMP929[28];
TMP929[28].kind = 1;
TMP929[28].offset = offsetof(Tcontext279023, libs);
TMP929[28].typ = (&NTI140028);
TMP929[28].name = "libs";
TMP2026[19] = &TMP929[29];
NTI279074.size = sizeof(TY279074);
NTI279074.kind = 25;
NTI279074.base = 0;
NTI279074.flags = 3;
TMP929[29].kind = 1;
TMP929[29].offset = offsetof(Tcontext279023, semconstexpr);
TMP929[29].typ = (&NTI279074);
TMP929[29].name = "semConstExpr";
TMP2026[20] = &TMP929[30];
NTI279079.size = sizeof(TY279079);
NTI279079.kind = 25;
NTI279079.base = 0;
NTI279079.flags = 3;
TMP929[30].kind = 1;
TMP929[30].offset = offsetof(Tcontext279023, semexpr);
TMP929[30].typ = (&NTI279079);
TMP929[30].name = "semExpr";
TMP2026[21] = &TMP929[31];
NTI279087.size = sizeof(TY279087);
NTI279087.kind = 25;
NTI279087.base = 0;
NTI279087.flags = 3;
TMP929[31].kind = 1;
TMP929[31].offset = offsetof(Tcontext279023, semtryexpr);
TMP929[31].typ = (&NTI279087);
TMP929[31].name = "semTryExpr";
TMP2026[22] = &TMP929[32];
NTI279095.size = sizeof(TY279095);
NTI279095.kind = 25;
NTI279095.base = 0;
NTI279095.flags = 3;
TMP929[32].kind = 1;
TMP929[32].offset = offsetof(Tcontext279023, semtryconstexpr);
TMP929[32].typ = (&NTI279095);
TMP929[32].name = "semTryConstExpr";
TMP2026[23] = &TMP929[33];
NTI279100.size = sizeof(TY279100);
NTI279100.kind = 25;
NTI279100.base = 0;
NTI279100.flags = 3;
TMP929[33].kind = 1;
TMP929[33].offset = offsetof(Tcontext279023, semoperand);
TMP929[33].typ = (&NTI279100);
TMP929[33].name = "semOperand";
TMP2026[24] = &TMP929[34];
NTI279108.size = sizeof(TY279108);
NTI279108.kind = 25;
NTI279108.base = 0;
NTI279108.flags = 3;
TMP929[34].kind = 1;
TMP929[34].offset = offsetof(Tcontext279023, semconstboolexpr);
TMP929[34].typ = (&NTI279108);
TMP929[34].name = "semConstBoolExpr";
TMP2026[25] = &TMP929[35];
NTI279113.size = sizeof(TY279113);
NTI279113.kind = 25;
NTI279113.base = 0;
NTI279113.flags = 3;
TMP929[35].kind = 1;
TMP929[35].offset = offsetof(Tcontext279023, semoverloadedcall);
TMP929[35].typ = (&NTI279113);
TMP929[35].name = "semOverloadedCall";
TMP2026[26] = &TMP929[36];
NTI279120.size = sizeof(TY279120);
NTI279120.kind = 25;
NTI279120.base = 0;
NTI279120.flags = 3;
TMP929[36].kind = 1;
TMP929[36].offset = offsetof(Tcontext279023, semtypenode);
TMP929[36].typ = (&NTI279120);
TMP929[36].name = "semTypeNode";
TMP2026[27] = &TMP929[37];
NTI279126.size = sizeof(TY575951);
NTI279126.kind = 18;
NTI279126.base = 0;
NTI279126.flags = 2;
TMP2029[0] = &TMP929[39];
TMP929[39].kind = 1;
TMP929[39].offset = offsetof(TY575951, Field0);
TMP929[39].typ = (&NTI153);
TMP929[39].name = "Field0";
TMP2029[1] = &TMP929[40];
TMP929[40].kind = 1;
TMP929[40].offset = offsetof(TY575951, Field1);
TMP929[40].typ = (&NTI575953);
TMP929[40].name = "Field1";
TMP929[38].len = 2; TMP929[38].kind = 2; TMP929[38].sons = &TMP2029[0];
NTI279126.node = &TMP929[38];
TMP929[37].kind = 1;
TMP929[37].offset = offsetof(Tcontext279023, seminferredlambda);
TMP929[37].typ = (&NTI279126);
TMP929[37].name = "semInferredLambda";
TMP2026[28] = &TMP929[41];
NTI279132.size = sizeof(TY575951);
NTI279132.kind = 18;
NTI279132.base = 0;
NTI279132.flags = 2;
TMP2030[0] = &TMP929[43];
TMP929[43].kind = 1;
TMP929[43].offset = offsetof(TY575951, Field0);
TMP929[43].typ = (&NTI153);
TMP929[43].name = "Field0";
TMP2030[1] = &TMP929[44];
TMP929[44].kind = 1;
TMP929[44].offset = offsetof(TY575951, Field1);
TMP929[44].typ = (&NTI575953);
TMP929[44].name = "Field1";
TMP929[42].len = 2; TMP929[42].kind = 2; TMP929[42].sons = &TMP2030[0];
NTI279132.node = &TMP929[42];
TMP929[41].kind = 1;
TMP929[41].offset = offsetof(Tcontext279023, semgenerateinstance);
TMP929[41].typ = (&NTI279132);
TMP929[41].name = "semGenerateInstance";
TMP2026[29] = &TMP929[45];
TMP929[45].kind = 1;
TMP929[45].offset = offsetof(Tcontext279023, includedfiles);
TMP929[45].typ = (&NTI221056);
TMP929[45].name = "includedFiles";
TMP2026[30] = &TMP929[46];
TMP929[46].kind = 1;
TMP929[46].offset = offsetof(Tcontext279023, userpragmas);
TMP929[46].typ = (&NTI224813);
TMP929[46].name = "userPragmas";
TMP2026[31] = &TMP929[47];
TMP929[47].kind = 1;
TMP929[47].offset = offsetof(Tcontext279023, evalcontext);
TMP929[47].typ = (&NTI278046);
TMP929[47].name = "evalContext";
TMP2026[32] = &TMP929[48];
TMP929[48].kind = 1;
TMP929[48].offset = offsetof(Tcontext279023, unknownidents);
TMP929[48].typ = (&NTI221056);
TMP929[48].name = "unknownIdents";
TMP2026[33] = &TMP929[49];
NTI279013.size = sizeof(Tinstantiationpair279013);
NTI279013.kind = 18;
NTI279013.base = 0;
NTI279013.flags = 2;
TMP2052[0] = &TMP929[51];
TMP929[51].kind = 1;
TMP929[51].offset = offsetof(Tinstantiationpair279013, genericsym);
TMP929[51].typ = (&NTI224807);
TMP929[51].name = "genericSym";
TMP2052[1] = &TMP929[52];
TMP929[52].kind = 1;
TMP929[52].offset = offsetof(Tinstantiationpair279013, inst);
TMP929[52].typ = (&NTI224833);
TMP929[52].name = "inst";
TMP929[50].len = 2; TMP929[50].kind = 2; TMP929[50].sons = &TMP2052[0];
NTI279013.node = &TMP929[50];
NTI279143.size = sizeof(TY279143*);
NTI279143.kind = 24;
NTI279143.base = (&NTI279013);
NTI279143.flags = 2;
NTI279143.marker = TMP2053;
TMP929[49].kind = 1;
TMP929[49].offset = offsetof(Tcontext279023, generics);
TMP929[49].typ = (&NTI279143);
TMP929[49].name = "generics";
TMP2026[34] = &TMP929[53];
TMP929[53].kind = 1;
TMP929[53].offset = offsetof(Tcontext279023, lastgenericidx);
TMP929[53].typ = (&NTI108);
TMP929[53].name = "lastGenericIdx";
TMP2026[35] = &TMP929[54];
TMP929[54].kind = 1;
TMP929[54].offset = offsetof(Tcontext279023, hloloopdetector);
TMP929[54].typ = (&NTI108);
TMP929[54].name = "hloLoopDetector";
TMP2026[36] = &TMP929[55];
TMP929[55].kind = 1;
TMP929[55].offset = offsetof(Tcontext279023, inparallelstmt);
TMP929[55].typ = (&NTI108);
TMP929[55].name = "inParallelStmt";
TMP2026[37] = &TMP929[56];
NTI279148.size = sizeof(TY279148);
NTI279148.kind = 25;
NTI279148.base = 0;
NTI279148.flags = 3;
TMP929[56].kind = 1;
TMP929[56].offset = offsetof(Tcontext279023, insttypeboundop);
TMP929[56].typ = (&NTI279148);
TMP929[56].name = "instTypeBoundOp";
TMP929[0].len = 38; TMP929[0].kind = 2; TMP929[0].sons = &TMP2026[0];
NTI279023.node = &TMP929[0];
NTI279021.size = sizeof(Tcontext279023*);
NTI279021.kind = 22;
NTI279021.base = (&NTI279023);
NTI279021.marker = TMP2054;
NTI279005.size = sizeof(Toptionentry279005);
NTI279005.kind = 17;
NTI279005.base = (&NTI140022);
TMP2055[0] = &TMP929[58];
TMP929[58].kind = 1;
TMP929[58].offset = offsetof(Toptionentry279005, options);
TMP929[58].typ = (&NTI166017);
TMP929[58].name = "options";
TMP2055[1] = &TMP929[59];
TMP929[59].kind = 1;
TMP929[59].offset = offsetof(Toptionentry279005, defaultcc);
TMP929[59].typ = (&NTI224005);
TMP929[59].name = "defaultCC";
TMP2055[2] = &TMP929[60];
TMP929[60].kind = 1;
TMP929[60].offset = offsetof(Toptionentry279005, dynlib);
TMP929[60].typ = (&NTI224839);
TMP929[60].name = "dynlib";
TMP2055[3] = &TMP929[61];
TMP929[61].kind = 1;
TMP929[61].offset = offsetof(Toptionentry279005, notes);
TMP929[61].typ = (&NTI189348);
TMP929[61].name = "notes";
TMP2055[4] = &TMP929[62];
TMP929[62].kind = 1;
TMP929[62].offset = offsetof(Toptionentry279005, otherpragmas);
TMP929[62].typ = (&NTI224801);
TMP929[62].name = "otherPragmas";
TMP929[57].len = 5; TMP929[57].kind = 2; TMP929[57].sons = &TMP2055[0];
NTI279005.node = &TMP929[57];
NTI279007.size = sizeof(Toptionentry279005*);
NTI279007.kind = 22;
NTI279007.base = (&NTI279005);
NTI279007.marker = TMP2059;
}

