/* 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 Tsymseq227811 Tsymseq227811;
typedef struct Tsym227841 Tsym227841;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Cell48946 Cell48946;
typedef struct Cellseq48962 Cellseq48962;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48958 Cellset48958;
typedef struct Pagedesc48954 Pagedesc48954;
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 Ttype227847 Ttype227847;
typedef struct Tcontext282023 Tcontext282023;
typedef struct Tpasscontext279005 Tpasscontext279005;
typedef struct TNimObject TNimObject;
typedef struct Tscope227835 Tscope227835;
typedef struct Tproccon282011 Tproccon282011;
typedef struct Intset224056 Intset224056;
typedef struct Trunk224052 Trunk224052;
typedef struct Trunkseq224054 Trunkseq224054;
typedef struct Tlinkedlist143028 Tlinkedlist143028;
typedef struct Tlistentry143022 Tlistentry143022;
typedef struct Tidtable227859 Tidtable227859;
typedef struct Tidpairseq227857 Tidpairseq227857;
typedef struct Tnode227809 Tnode227809;
typedef struct Tlineinfo192352 Tlineinfo192352;
typedef struct Tstrtable227813 Tstrtable227813;
typedef struct Tctx281048 Tctx281048;
typedef struct TY282143 TY282143;
typedef struct TY578951 TY578951;
typedef struct TY578954 TY578954;
typedef struct Tinstantiationpair282013 Tinstantiationpair282013;
typedef struct Tinstantiation227831 Tinstantiation227831;
typedef struct Toptionentry282005 Toptionentry282005;
typedef struct Tlib227827 Tlib227827;
typedef struct Tidobj200015 Tidobj200015;
typedef struct Ttypeseq227843 Ttypeseq227843;
typedef struct Tloc227823 Tloc227823;
typedef struct Ropeobj178009 Ropeobj178009;
typedef struct NimStringDesc NimStringDesc;
typedef struct TY92759 TY92759;
typedef struct Tident200021 Tident200021;
typedef struct Tnodeseq227803 Tnodeseq227803;
typedef struct TY227944 TY227944;
typedef struct Basechunk30841 Basechunk30841;
typedef struct Freecell30833 Freecell30833;
typedef struct Tidpair227855 Tidpair227855;
typedef struct TY281254 TY281254;
typedef struct TY193417 TY193417;
typedef struct PprocHEX3Aobjecttype281233 PprocHEX3Aobjecttype281233;
typedef struct TY281273 TY281273;
typedef struct TY227932 TY227932;
typedef struct TY281234 TY281234;
typedef struct TY281239 TY281239;
typedef struct TY281274 TY281274;
typedef struct Vmargs281042 Vmargs281042;
typedef struct Tblock281030 Tblock281030;
typedef struct TY281214 TY281214;
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  Cell48946  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48962  {
NI len;
NI cap;
Cell48946** d;
};
struct  Cellset48958  {
NI counter;
NI max;
Pagedesc48954* head;
Pagedesc48954** 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;
Cellseq48962 zct;
Cellseq48962 decstack;
Cellset48958 cycleroots;
Cellseq48962 tempstack;
NI recgclock;
Memregion30891 region;
Gcstat51014 stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tpasscontext279005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Intset224056  {
NI counter;
NI max;
Trunk224052* head;
Trunkseq224054* data;
};
struct  Tlinkedlist143028  {
Tlistentry143022* head;
Tlistentry143022* tail;
NI counter;
};
struct  Tidtable227859  {
NI counter;
Tidpairseq227857* data;
};
typedef N_NIMCALL_PTR(Tnode227809*, TY282074) (Tcontext282023* c, Tnode227809* n);
typedef N_NIMCALL_PTR(Tnode227809*, TY282079) (Tcontext282023* c, Tnode227809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode227809*, TY282087) (Tcontext282023* c, Tnode227809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode227809*, TY282095) (Tcontext282023* c, Tnode227809* n);
typedef N_NIMCALL_PTR(Tnode227809*, TY282100) (Tcontext282023* c, Tnode227809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode227809*, TY282108) (Tcontext282023* c, Tnode227809* n);
typedef N_NIMCALL_PTR(Tnode227809*, TY282113) (Tcontext282023* c, Tnode227809* n, Tnode227809* norig, NU32 filter);
typedef N_NIMCALL_PTR(Ttype227847*, TY282120) (Tcontext282023* c, Tnode227809* n, Ttype227847* prev);
typedef struct {
N_NIMCALL_PTR(Tnode227809*, ClPrc) (Tcontext282023* c, Tidtable227859 pt, Tnode227809* n, void* ClEnv);
void* ClEnv;
} TY282126;
typedef struct {
N_NIMCALL_PTR(Tsym227841*, ClPrc) (Tcontext282023* c, Tsym227841* fn, Tidtable227859 pt, Tlineinfo192352 info, void* ClEnv);
void* ClEnv;
} TY282132;
struct  Tstrtable227813  {
NI counter;
Tsymseq227811* data;
};
typedef N_NIMCALL_PTR(Tsym227841*, TY282148) (Tcontext282023* c, Tsym227841* dc, Ttype227847* t, Tlineinfo192352 info, NU8 op);
struct  Tcontext282023  {
  Tpasscontext279005 Sup;
Tsym227841* module;
Tscope227835* currentscope;
Tscope227835* importtable;
Tscope227835* toplevelscope;
Tproccon282011* p;
Tsymseq227811* friendmodules;
NI instcounter;
Intset224056 ambiguoussymbols;
NI intypeclass;
NI ingenericcontext;
NI inunrolledcontext;
NI compilescontextid;
NI compilescontextidgenerator;
NI ingenericinst;
Tsymseq227811* converters;
Tsymseq227811* patterns;
Tlinkedlist143028 optionstack;
Tidtable227859 symmapping;
Tlinkedlist143028 libs;
TY282074 semconstexpr;
TY282079 semexpr;
TY282087 semtryexpr;
TY282095 semtryconstexpr;
TY282100 semoperand;
TY282108 semconstboolexpr;
TY282113 semoverloadedcall;
TY282120 semtypenode;
TY282126 seminferredlambda;
TY282132 semgenerateinstance;
Intset224056 includedfiles;
Tstrtable227813 userpragmas;
Tctx281048* evalcontext;
Intset224056 unknownidents;
TY282143* generics;
NI lastgenericidx;
NI hloloopdetector;
NI inparallelstmt;
TY282148 insttypeboundop;
};
struct  Tproccon282011  {
Tsym227841* owner;
Tsym227841* resultsym;
NI nestedloopcounter;
NI nestedblockcounter;
NI intrystmt;
Tproccon282011* next;
NIM_BOOL wasforwarded;
Tnode227809* bracketexpr;
};
struct TY578951 {
void* Field0;
TY578954* Field1;
};
struct  Tinstantiationpair282013  {
Tsym227841* genericsym;
Tinstantiation227831* inst;
};
struct  Tlistentry143022  {
  TNimObject Sup;
Tlistentry143022* prev;
Tlistentry143022* next;
};
struct  Toptionentry282005  {
  Tlistentry143022 Sup;
NU32 options;
NU8 defaultcc;
Tlib227827* dynlib;
NU64 notes;
Tnode227809* otherpragmas;
};
typedef Tsym227841* TY282433[1];
struct  Tidobj200015  {
  TNimObject Sup;
NI id;
};
struct  Tloc227823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype227847* t;
Ropeobj178009* r;
Ropeobj178009* heaproot;
};
struct  Ttype227847  {
  Tidobj200015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq227843* sons;
Tnode227809* n;
Tsym227841* owner;
Tsym227841* sym;
Tsym227841* destructor;
Tsym227841* deepcopy;
Tsym227841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc227823 loc;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct TY92759 {
NimStringDesc* Field0;
NI Field1;
};
struct  Tlineinfo192352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode227809  {
Ttype227847* typ;
Tlineinfo192352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym227841* sym;
} S4;
struct {Tident200021* ident;
} S5;
struct {Tnodeseq227803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef Tnode227809* TY245880[1];
typedef Ttype227847* TY395275[1];
typedef Ttype227847* TY282864[2];
typedef Tnode227809* TY283106[2];
struct  Tlib227827  {
  Tlistentry143022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj178009* name;
Tnode227809* path;
};
struct  Tsym227841  {
  Tidobj200015 Sup;
NU8 kind;
union{
struct {Ttypeseq227843* typeinstcache;
Tscope227835* typscope;
} S1;
struct {TY227944* procinstcache;
Tsym227841* gcunsafetyreason;
} S2;
struct {TY227944* usedgenerics;
Tstrtable227813 tab;
} S3;
struct {Tsym227841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype227847* typ;
Tident200021* name;
Tlineinfo192352 info;
Tsym227841* owner;
NU32 flags;
Tnode227809* ast;
NU32 options;
NI position;
NI offset;
Tloc227823 loc;
Tlib227827* annex;
Tnode227809* constraint;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30822[8];
struct  Pagedesc48954  {
Pagedesc48954* 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  Tscope227835  {
NI depthlevel;
Tstrtable227813 symbols;
Tnodeseq227803* usingsyms;
Tscope227835* parent;
};
struct  Trunk224052  {
Trunk224052* next;
NI key;
TY30822 bits;
};
struct  Tidpair227855  {
Tidobj200015* key;
TNimObject* val;
};
struct  Tctx281048  {
  Tpasscontext279005 Sup;
TY281254* code;
TY193417* debug;
Tnode227809* globals;
Tnode227809* constants;
Ttypeseq227843* types;
Tnode227809* currentexceptiona;
Tnode227809* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype281233* prc;
Tsym227841* module;
Tnode227809* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo192352 comesfromheuristic;
TY281273* callbacks;
NimStringDesc* errorflag;
};
struct TY578954 {
char dummy;
};
struct  Tinstantiation227831  {
Tsym227841* sym;
Ttypeseq227843* concretetypes;
TY227932* usedby;
NI compilesid;
};
struct  Ropeobj178009  {
  TNimObject Sup;
Ropeobj178009* left;
Ropeobj178009* right;
NI length;
NimStringDesc* data;
};
struct  Tident200021  {
  Tidobj200015 Sup;
NimStringDesc* s;
Tident200021* next;
NI h;
};
struct  Freecell30833  {
Freecell30833* next;
NI zerofield;
};
struct TY281239 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY281239 TY281242[256];
struct  PprocHEX3Aobjecttype281233  {
TY281234* blocks;
Tsym227841* sym;
TY281242 slots;
NI maxslots;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs281042* args, void* ClEnv);
void* ClEnv;
} Vmcallback281044;
struct TY281274 {
NimStringDesc* Field0;
Vmcallback281044 Field1;
};
struct  Tblock281030  {
Tsym227841* label;
TY281214* fixups;
};
struct  Vmargs281042  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode227809* currentexception;
};
struct Tsymseq227811 {
  TGenericSeq Sup;
  Tsym227841* data[SEQ_DECL_SIZE];
};
struct TY282143 {
  TGenericSeq Sup;
  Tinstantiationpair282013 data[SEQ_DECL_SIZE];
};
struct Ttypeseq227843 {
  TGenericSeq Sup;
  Ttype227847* data[SEQ_DECL_SIZE];
};
struct Tnodeseq227803 {
  TGenericSeq Sup;
  Tnode227809* data[SEQ_DECL_SIZE];
};
struct Trunkseq224054 {
  TGenericSeq Sup;
  Trunk224052* data[SEQ_DECL_SIZE];
};
struct Tidpairseq227857 {
  TGenericSeq Sup;
  Tidpair227855 data[SEQ_DECL_SIZE];
};
struct TY227944 {
  TGenericSeq Sup;
  Tinstantiation227831* data[SEQ_DECL_SIZE];
};
struct TY281254 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY193417 {
  TGenericSeq Sup;
  Tlineinfo192352 data[SEQ_DECL_SIZE];
};
struct TY281273 {
  TGenericSeq Sup;
  TY281274 data[SEQ_DECL_SIZE];
};
struct TY227932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct TY281234 {
  TGenericSeq Sup;
  Tblock281030 data[SEQ_DECL_SIZE];
};
struct TY281214 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell48946*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48946* c);
N_NOINLINE(void, addzct_52617)(Cellseq48962* s, Cell48946* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(Ttype227847*, newtype_230140)(NU8 kind, Tsym227841* owner);
N_NIMCALL(Tsym227841*, getcurrowner_282257)(void);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP2032)(void* p, NI op);
N_NIMCALL(void, TMP2057)(void* p, NI op);
N_NIMCALL(void, TMP2058)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(void, initintset_224927)(Intset224056* Result);
N_NIMCALL(void, initlinkedlist_143043)(Tlinkedlist143028* list);
N_NIMCALL(void, append_143053)(Tlinkedlist143028* list, Tlistentry143022* entry);
N_NIMCALL(Toptionentry282005*, newoptionentry_282195)(void);
N_NIMCALL(void, TMP2063)(void* p, NI op);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_55022)(Cell48946* c);
static N_INLINE(NIM_BOOL, canbecycleroot_52667)(Cell48946* c);
static N_INLINE(void, rtladdcycleroot_53423)(Cell48946* c);
N_NOINLINE(void, incl_49665)(Cellset48958* s, Cell48946* cell);
static N_INLINE(void, decref_54604)(Cell48946* c);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(void, initstrtable_231007)(Tstrtable227813* x);
N_NIMCALL(Ttype227847*, newtypes_282220)(NU8 kind, Tcontext282023* c);
N_NIMCALL(void, addsonskipintlit_276731)(Ttype227847* father, Ttype227847* son);
N_NIMCALL(void, internalerror_198191)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_198279)(TY92759 x);
N_NIMCALL(void, globalerror_198107)(Tlineinfo192352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_249059)(Tnode227809* n, NU8 renderflags);
N_NIMCALL(NI, sonslen_230387)(Tnode227809* n);
N_NIMCALL(void, illformedast_283240)(Tnode227809* n);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_87604, TNimType* mt);
N_NIMCALL(Tnode227809*, newnodei_229351)(NU8 kind, Tlineinfo192352 info);
N_NIMCALL(void, addson_229819)(Tnode227809* father, Tnode227809* son);
N_NIMCALL(Tnode227809*, newinttypenode_228619)(NU8 kind, NI64 intval, Ttype227847* typ);
N_NIMCALL(Ttype227847*, newtypewithsons_282807)(Tcontext282023* c, NU8 kind, Ttypeseq227843* sons);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, propagatetoowner_231274)(Ttype227847* owner, Ttype227847* elem);
N_NIMCALL(Ttype227847*, getsystype_276190)(NU8 kind);
N_NIMCALL(Tnode227809*, newnode_229607)(NU8 kind, Tlineinfo192352 info, Tnodeseq227803* sons, Ttype227847* typ);
N_NIMCALL(Tnode227809*, makestaticexpr_282820)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(Tnode227809*, nminusone_283064)(Tnode227809* n);
N_NIMCALL(Tnode227809*, newsymnode_229325)(Tsym227841* sym);
N_NIMCALL(Tsym227841*, getsysmagic_276121)(NimStringDesc* name, NU8 m);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, localerror_198128)(Tlineinfo192352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(Ttype227847*, errortype_283161)(Tcontext282023* c);
N_NIMCALL(Ttype227847*, maketypedesc_282683)(Tcontext282023* c, Ttype227847* typ);
N_NIMCALL(Tsym227841*, linkto_228884)(Tsym227841* s, Ttype227847* t);
N_NIMCALL(Tsym227841*, newsym_228655)(NU8 symkind, Tident200021* name, Tsym227841* owner, Tlineinfo192352 info);
N_NIMCALL(Tnode227809*, newsymnode_229338)(Tsym227841* sym, Tlineinfo192352 info);
N_NIMCALL(void, inclsym_282501)(Tsymseq227811** sq, Tsym227841* s);
STRING_LITERAL(TMP2751, "compiler/semdata.nim", 20);
NIM_CONST TY92759 TMP2750 = {((NimStringDesc*) &TMP2751),
((NI) 226)}
;
NIM_CONST TY92759 TMP2765 = {((NimStringDesc*) &TMP2751),
((NI) 222)}
;
STRING_LITERAL(TMP3122, "<", 1);
STRING_LITERAL(TMP3295, "popOwner", 8);
NIM_CONST TY92759 TMP3338 = {((NimStringDesc*) &TMP2751),
((NI) 215)}
;
Tsymseq227811* gowners_282290;
extern TNimType NTI227811; /* TSymSeq */
extern Gcheap51018 gch_51059;
extern TNimType NTI279005; /* TPassContext */
TNimType NTI282023; /* TContext */
extern TNimType NTI227807; /* PSym */
extern TNimType NTI227837; /* PScope */
TNimType NTI282011; /* TProcCon */
extern TNimType NTI108; /* int */
extern TNimType NTI138; /* bool */
extern TNimType NTI227801; /* PNode */
TNimType NTI282009; /* PProcCon */
extern TNimType NTI224056; /* IntSet */
extern TNimType NTI143028; /* TLinkedList */
extern TNimType NTI227859; /* TIdTable */
TNimType NTI282074; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI282079; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI282087; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI282095; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI282100; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI282108; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI282113; /* proc (c: PContext, n: PNode, nOrig: PNode, filter: TSymKinds): PNode */
TNimType NTI282120; /* proc (c: PContext, n: PNode, prev: PType): PType */
TNimType NTI282126; /* (pointer, ref tuple[]) */
extern TNimType NTI153; /* pointer */
extern TNimType NTI578953; /* ref tuple[] */
TNimType NTI282132; /* (pointer, ref tuple[]) */
extern TNimType NTI227813; /* TStrTable */
extern TNimType NTI281046; /* PCtx */
TNimType NTI282013; /* TInstantiationPair */
extern TNimType NTI227833; /* PInstantiation */
TNimType NTI282143; /* seq[TInstantiationPair] */
TNimType NTI282148; /* proc (c: PContext, dc: PSym, t: PType, info: TLineInfo, op: TTypeAttachedOp): PSym */
TNimType NTI282021; /* PContext */
extern TNimType NTI143022; /* TListEntry */
TNimType NTI282005; /* TOptionEntry */
extern TNimType NTI169017; /* TOptions */
extern TNimType NTI227005; /* TCallingConvention */
extern TNimType NTI227839; /* PLib */
extern TNimType NTI192348; /* TNoteKinds */
TNimType NTI282007; /* POptionEntry */
extern NU32 goptions_169130;
extern NU64 gnotes_193395;
extern TNimType NTI227843; /* TTypeSeq */
extern TNimType NTI227803; /* TNodeSeq */
extern TNimType NTI227827; /* TLib */
extern Tident200021* idanon_200495;

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

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

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

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

N_NIMCALL(Ttype227847*, newtypes_282220)(NU8 kind, Tcontext282023* c) {
	Ttype227847* result;
	Tsym227841* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_282257();
	result = newtype_230140(kind, LOC1);
	return result;
}
N_NIMCALL(void, TMP2032)(void* p, NI op) {
	Tproccon282011* a;
	a = (Tproccon282011*)p;
	nimGCvisit((void*)(*a).owner, op);
	nimGCvisit((void*)(*a).resultsym, op);
	nimGCvisit((void*)(*a).next, op);
	nimGCvisit((void*)(*a).bracketexpr, op);
}
N_NIMCALL(void, TMP2057)(void* p, NI op) {
	TY282143* a;
	NI LOC1;
	a = (TY282143*)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, TMP2058)(void* p, NI op) {
	Tcontext282023* a;
	a = (Tcontext282023*)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, TMP2063)(void* p, NI op) {
	Toptionentry282005* a;
	a = (Toptionentry282005*)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)(Cell48946* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).typ).flags &(1<<((((NU8) 1))&7)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_53423)(Cell48946* 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)(Cell48946* 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)(Cell48946* 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) {
	{
		Cell48946* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_52646(src);
		incref_55022(LOC5);
	}
	LA3: ;
	{
		Cell48946* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_52646((*dest));
		decref_54604(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(Toptionentry282005*, newoptionentry_282195)(void) {
	Toptionentry282005* result;
	result = 0;
	result = (Toptionentry282005*) newObj((&NTI282007), sizeof(Toptionentry282005));
	(*result).Sup.Sup.m_type = (&NTI282005);
	(*result).options = goptions_169130;
	(*result).defaultcc = ((NU8) 0);
	asgnRef((void**) (&(*result).dynlib), NIM_NIL);
	(*result).notes = gnotes_193395;
	return result;
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell48946* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_52646(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell48946* 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(Tcontext282023*, newcontext_282183)(Tsym227841* module) {
	Tcontext282023* result;
	Toptionentry282005* LOC1;
	Tlistentry143022* LOC2;
	TY282433 LOC3;
	result = 0;
	result = (Tcontext282023*) newObj((&NTI282021), sizeof(Tcontext282023));
	(*result).Sup.Sup.m_type = (&NTI282023);
	initintset_224927((&(*result).ambiguoussymbols));
	initlinkedlist_143043((&(*result).optionstack));
	initlinkedlist_143043((&(*result).libs));
	LOC1 = 0;
	LOC1 = newoptionentry_282195();
	LOC2 = 0;
	LOC2 = &LOC1->Sup;
	append_143053((&(*result).optionstack), LOC2);
	asgnRefNoCycle((void**) (&(*result).module), module);
	if ((*result).friendmodules) nimGCunrefNoCycle((*result).friendmodules);
	(*result).friendmodules = (Tsymseq227811*) newSeqRC1((&NTI227811), 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 = (Tsymseq227811*) newSeqRC1((&NTI227811), 0);
	if ((*result).patterns) nimGCunrefNoCycle((*result).patterns);
	(*result).patterns = (Tsymseq227811*) newSeqRC1((&NTI227811), 0);
	initintset_224927((&(*result).includedfiles));
	initstrtable_231007((&(*result).userpragmas));
	if ((*result).generics) nimGCunrefNoCycle((*result).generics);
	(*result).generics = (TY282143*) newSeqRC1((&NTI282143), 0);
	initintset_224927((&(*result).unknownidents));
	return result;
}

N_NIMCALL(Ttype227847*, maketypefromexpr_282728)(Tcontext282023* c, Tnode227809* n) {
	Ttype227847* result;
	result = 0;
	result = newtypes_282220(((NU8) 60), c);
	asgnRefNoCycle((void**) (&(*result).n), n);
	return result;
}

N_NIMCALL(Ttype227847*, errortype_283161)(Tcontext282023* c) {
	Ttype227847* result;
	result = 0;
	result = newtypes_282220(((NU8) 50), c);
	return result;
}

N_NIMCALL(Ttype227847*, maketypedesc_282683)(Tcontext282023* c, Ttype227847* typ) {
	Ttype227847* result;
	result = 0;
	result = newtypes_282220(((NU8) 8), c);
	{
		NimStringDesc* LOC5;
		if (!(typ == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_198279(TMP2750);
		internalerror_198191(LOC5);
	}
	LA3: ;
	addsonskipintlit_276731(result, typ);
	return result;
}

N_NIMCALL(void, illformedast_283240)(Tnode227809* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_249059(n, 4);
	globalerror_198107((*n).info, ((NU16) 1), LOC1);
}

N_NIMCALL(void, checksonslen_283260)(Tnode227809* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_230387(n);
		if (!!((LOC3 == length))) goto LA4;
		illformedast_283240(n);
	}
	LA4: ;
}

N_NIMCALL(Ttype227847*, newtypewithsons_282807)(Tcontext282023* c, NU8 kind, Ttypeseq227843* sons) {
	Ttype227847* result;
	Tsym227841* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_282257();
	result = newtype_230140(kind, LOC1);
	genericSeqAssign((&(*result).sons), sons, (&NTI227843));
	return result;
}

N_NIMCALL(Ttype227847*, makevartype_282644)(Tcontext282023* c, Ttype227847* basetype) {
	Ttype227847* result;
	result = 0;
	{
		if (!((*basetype).kind == ((NU8) 23))) goto LA3;
		result = basetype;
	}
	goto LA1;
	LA3: ;
	{
		result = newtypes_282220(((NU8) 23), c);
		{
			NimStringDesc* LOC10;
			if (!(basetype == NIM_NIL)) goto LA8;
			LOC10 = 0;
			LOC10 = HEX24_198279(TMP2765);
			internalerror_198191(LOC10);
		}
		LA8: ;
		addsonskipintlit_276731(result, basetype);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ttype227847*, makerangetype_283193)(Tcontext282023* c, NI64 first, NI64 last, Tlineinfo192352 info, Ttype227847* inttype) {
	Ttype227847* result;
	Tnode227809* n;
	Tnode227809* LOC1;
	Tnode227809* LOC2;
	result = 0;
	n = newnodei_229351(((NU8) 44), info);
	LOC1 = 0;
	LOC1 = newinttypenode_228619(((NU8) 6), first, inttype);
	addson_229819(n, LOC1);
	LOC2 = 0;
	LOC2 = newinttypenode_228619(((NU8) 6), last, inttype);
	addson_229819(n, LOC2);
	result = newtypes_282220(((NU8) 20), c);
	asgnRefNoCycle((void**) (&(*result).n), n);
	addsonskipintlit_276731(result, inttype);
	return result;
}

N_NIMCALL(Tnode227809*, makestaticexpr_282820)(Tcontext282023* c, Tnode227809* n) {
	Tnode227809* result;
	TY245880 LOC1;
	Ttypeseq227843* LOC2;
	TY395275 LOC3;
	result = 0;
	result = newnodei_229351(((NU8) 62), (*n).info);
	if ((*result).kindU.S6.sons) nimGCunrefNoCycle((*result).kindU.S6.sons);
	(*result).kindU.S6.sons = (Tnodeseq227803*) newSeqRC1((&NTI227803), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = n;
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (Ttypeseq227843*) newSeq((&NTI227843), 1);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = (*n).typ;
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&(*result).typ), newtypewithsons_282807(c, ((NU8) 59), LOC2));
	return result;
}

N_NIMCALL(Ttype227847*, makeandtype_282858)(Tcontext282023* c, Ttype227847* t1, Ttype227847* t2) {
	Ttype227847* result;
	TY282864 LOC1;
	result = 0;
	result = newtypes_282220(((NU8) 55), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq227843*) newSeqRC1((&NTI227843), 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_231274(result, t1);
	propagatetoowner_231274(result, t2);
	(*result).flags = ((*result).flags | (((*t1).flags | (*t2).flags) & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(Ttype227847*, makeortype_282931)(Tcontext282023* c, Ttype227847* t1, Ttype227847* t2) {
	Ttype227847* result;
	TY282864 LOC1;
	result = 0;
	result = newtypes_282220(((NU8) 56), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq227843*) newSeqRC1((&NTI227843), 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_231274(result, t1);
	propagatetoowner_231274(result, t2);
	(*result).flags = ((*result).flags | (((*t1).flags | (*t2).flags) & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(Ttype227847*, makenottype_283004)(Tcontext282023* c, Ttype227847* t1) {
	Ttype227847* result;
	TY395275 LOC1;
	result = 0;
	result = newtypes_282220(((NU8) 57), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq227843*) newSeqRC1((&NTI227843), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = t1;
	asgnRefNoCycle((void**) (&(*result).sons->data[0]), LOC1[0]);
	propagatetoowner_231274(result, t1);
	(*result).flags = ((*result).flags | ((*t1).flags & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(void, checkminsonslen_283270)(Tnode227809* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_230387(n);
		if (!(LOC3 < length)) goto LA4;
		illformedast_283240(n);
	}
	LA4: ;
}

N_NIMCALL(Tnode227809*, nminusone_283064)(Tnode227809* n) {
	Tnode227809* result;
	Tnodeseq227803* LOC1;
	TY283106 LOC2;
	Tsym227841* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (Tnodeseq227803*) newSeq((&NTI227803), 2);
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC3 = 0;
	LOC3 = getsysmagic_276121(((NimStringDesc*) &TMP3122), ((NU8) 25));
	LOC2[0] = newsymnode_229325(LOC3);
	LOC2[1] = n;
	asgnRefNoCycle((void**) (&LOC1->data[0]), LOC2[0]);
	asgnRefNoCycle((void**) (&LOC1->data[1]), LOC2[1]);
	result = newnode_229607(((NU8) 27), (*n).info, LOC1, NIM_NIL);
	return result;
}

N_NIMCALL(Ttype227847*, makerangewithstaticexpr_283087)(Tcontext282023* c, Tnode227809* n) {
	Ttype227847* result;
	Ttype227847* inttype;
	TY395275 LOC1;
	Tnodeseq227803* LOC2;
	TY283106 LOC3;
	Tnode227809* LOC4;
	result = 0;
	inttype = getsystype_276190(((NU8) 31));
	result = newtypes_282220(((NU8) 20), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq227843*) newSeqRC1((&NTI227843), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = inttype;
	asgnRefNoCycle((void**) (&(*result).sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (Tnodeseq227803*) newSeq((&NTI227803), 2);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = newinttypenode_228619(((NU8) 6), IL64(0), inttype);
	LOC4 = 0;
	LOC4 = nminusone_283064(n);
	LOC3[1] = makestaticexpr_282820(c, LOC4);
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&LOC2->data[1]), LOC3[1]);
	asgnRefNoCycle((void**) (&(*result).n), newnode_229607(((NU8) 44), (*n).info, LOC2, NIM_NIL));
	return result;
}

N_NIMCALL(void, pushowner_282262)(Tsym227841* owner) {
	gowners_282290 = (Tsymseq227811*) incrSeqV2(&(gowners_282290)->Sup, sizeof(Tsym227841*));
	asgnRefNoCycle((void**) (&gowners_282290->data[gowners_282290->Sup.len]), owner);
	++gowners_282290->Sup.len;
}

N_NIMCALL(void, makeinstpair_282159)(Tsym227841* s, Tinstantiation227831* inst, Tinstantiationpair282013* Result) {
	unsureAsgnRef((void**) (&(*Result).genericsym), s);
	unsureAsgnRef((void**) (&(*Result).inst), inst);
}

N_NIMCALL(Tlib227827*, newlib_282200)(NU8 kind) {
	Tlib227827* result;
	result = 0;
	result = (Tlib227827*) newObj((&NTI227839), sizeof(Tlib227827));
	(*result).Sup.Sup.m_type = (&NTI227827);
	(*result).kind = kind;
	return result;
}

N_NIMCALL(void, addtolib_282206)(Tlib227827* lib, Tsym227841* sym) {
	asgnRef((void**) (&(*sym).annex), lib);
}

N_NIMCALL(void, illformedastlocal_283250)(Tnode227809* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_249059(n, 4);
	localerror_198128((*n).info, ((NU16) 1), LOC1);
}

N_NIMCALL(Toptionentry282005*, lastoptionentry_282189)(Tcontext282023* c) {
	Toptionentry282005* result;
	result = 0;
	result = ((Toptionentry282005*) ((*c).optionstack.tail));
	return result;
}

N_NIMCALL(void, popowner_282268)(void) {
	NI length;
	length = (gowners_282290 ? gowners_282290->Sup.len : 0);
	{
		if (!(((NI) 0) < length)) goto LA3;
		gowners_282290 = (Tsymseq227811*) setLengthSeq(&(gowners_282290)->Sup, sizeof(Tsym227841*), ((NI) ((NI)(length - ((NI) 1)))));
	}
	goto LA1;
	LA3: ;
	{
		internalerror_198191(((NimStringDesc*) &TMP3295));
	}
	LA1: ;
}

N_NIMCALL(Ttype227847*, makeptrtype_282213)(Tcontext282023* c, Ttype227847* basetype) {
	Ttype227847* result;
	result = 0;
	result = newtypes_282220(((NU8) 21), c);
	{
		NimStringDesc* LOC5;
		if (!(basetype == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_198279(TMP3338);
		internalerror_198191(LOC5);
	}
	LA3: ;
	addsonskipintlit_276731(result, basetype);
	return result;
}

N_NIMCALL(Tnode227809*, errornode_283171)(Tcontext282023* c, Tnode227809* n) {
	Tnode227809* result;
	result = 0;
	result = newnodei_229351(((NU8) 1), (*n).info);
	asgnRefNoCycle((void**) (&(*result).typ), errortype_283161(c));
	return result;
}

N_NIMCALL(Tnode227809*, maketypesymnode_282713)(Tcontext282023* c, Ttype227847* typ, Tlineinfo192352 info) {
	Tnode227809* result;
	Ttype227847* typedesc;
	Tsym227841* sym;
	Tsym227841* LOC1;
	Tsym227841* LOC2;
{	result = 0;
	typedesc = maketypedesc_282683(c, typ);
	LOC1 = 0;
	LOC1 = getcurrowner_282257();
	LOC2 = 0;
	LOC2 = newsym_228655(((NU8) 7), idanon_200495, LOC1, info);
	sym = linkto_228884(LOC2, typedesc);
	result = newsymnode_229338(sym, info);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, inclsym_282501)(Tsymseq227811** sq, Tsym227841* s) {
	NI L;
{	L = ((*sq) ? (*sq)->Sup.len : 0);
	{
		NI i_282527;
		NI HEX3Atmp_282541;
		NI res_282544;
		i_282527 = 0;
		HEX3Atmp_282541 = 0;
		HEX3Atmp_282541 = (NI)(L - ((NI) 1));
		res_282544 = ((NI) 0);
		{
			while (1) {
				if (!(res_282544 <= HEX3Atmp_282541)) goto LA3;
				i_282527 = res_282544;
				{
					if (!((*(*sq)->data[i_282527]).Sup.id == (*s).Sup.id)) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
				res_282544 += ((NI) 1);
			} LA3: ;
		}
	}
	(*sq) = (Tsymseq227811*) setLengthSeq(&((*sq))->Sup, sizeof(Tsym227841*), ((NI) ((NI)(L + ((NI) 1)))));
	asgnRefNoCycle((void**) (&(*sq)->data[L]), s);
	}BeforeRet: ;
}

N_NIMCALL(void, addconverter_282563)(Tcontext282023* c, Tsym227841* conv) {
	inclsym_282501((&(*c).converters), conv);
}

N_NIMCALL(void, addpattern_282574)(Tcontext282023* c, Tsym227841* p) {
	inclsym_282501((&(*c).patterns), p);
}
NIM_EXTERNC N_NOINLINE(void, compiler_semdataInit000)(void) {
	if (gowners_282290) nimGCunrefNoCycle(gowners_282290);
	gowners_282290 = (Tsymseq227811*) newSeqRC1((&NTI227811), 0);
}

NIM_EXTERNC N_NOINLINE(void, compiler_semdataDatInit000)(void) {
static TNimNode* TMP2030[38];
static TNimNode* TMP2031[8];
static TNimNode* TMP2033[2];
static TNimNode* TMP2034[2];
static TNimNode* TMP2056[2];
static TNimNode* TMP2059[5];
static TNimNode TMP936[63];
NTI282023.size = sizeof(Tcontext282023);
NTI282023.kind = 17;
NTI282023.base = (&NTI279005);
TMP2030[0] = &TMP936[1];
TMP936[1].kind = 1;
TMP936[1].offset = offsetof(Tcontext282023, module);
TMP936[1].typ = (&NTI227807);
TMP936[1].name = "module";
TMP2030[1] = &TMP936[2];
TMP936[2].kind = 1;
TMP936[2].offset = offsetof(Tcontext282023, currentscope);
TMP936[2].typ = (&NTI227837);
TMP936[2].name = "currentScope";
TMP2030[2] = &TMP936[3];
TMP936[3].kind = 1;
TMP936[3].offset = offsetof(Tcontext282023, importtable);
TMP936[3].typ = (&NTI227837);
TMP936[3].name = "importTable";
TMP2030[3] = &TMP936[4];
TMP936[4].kind = 1;
TMP936[4].offset = offsetof(Tcontext282023, toplevelscope);
TMP936[4].typ = (&NTI227837);
TMP936[4].name = "topLevelScope";
TMP2030[4] = &TMP936[5];
NTI282011.size = sizeof(Tproccon282011);
NTI282011.kind = 18;
NTI282011.base = 0;
TMP2031[0] = &TMP936[7];
TMP936[7].kind = 1;
TMP936[7].offset = offsetof(Tproccon282011, owner);
TMP936[7].typ = (&NTI227807);
TMP936[7].name = "owner";
TMP2031[1] = &TMP936[8];
TMP936[8].kind = 1;
TMP936[8].offset = offsetof(Tproccon282011, resultsym);
TMP936[8].typ = (&NTI227807);
TMP936[8].name = "resultSym";
TMP2031[2] = &TMP936[9];
TMP936[9].kind = 1;
TMP936[9].offset = offsetof(Tproccon282011, nestedloopcounter);
TMP936[9].typ = (&NTI108);
TMP936[9].name = "nestedLoopCounter";
TMP2031[3] = &TMP936[10];
TMP936[10].kind = 1;
TMP936[10].offset = offsetof(Tproccon282011, nestedblockcounter);
TMP936[10].typ = (&NTI108);
TMP936[10].name = "nestedBlockCounter";
TMP2031[4] = &TMP936[11];
TMP936[11].kind = 1;
TMP936[11].offset = offsetof(Tproccon282011, intrystmt);
TMP936[11].typ = (&NTI108);
TMP936[11].name = "inTryStmt";
TMP2031[5] = &TMP936[12];
TMP936[12].kind = 1;
TMP936[12].offset = offsetof(Tproccon282011, next);
TMP936[12].typ = (&NTI282009);
TMP936[12].name = "next";
TMP2031[6] = &TMP936[13];
TMP936[13].kind = 1;
TMP936[13].offset = offsetof(Tproccon282011, wasforwarded);
TMP936[13].typ = (&NTI138);
TMP936[13].name = "wasForwarded";
TMP2031[7] = &TMP936[14];
TMP936[14].kind = 1;
TMP936[14].offset = offsetof(Tproccon282011, bracketexpr);
TMP936[14].typ = (&NTI227801);
TMP936[14].name = "bracketExpr";
TMP936[6].len = 8; TMP936[6].kind = 2; TMP936[6].sons = &TMP2031[0];
NTI282011.node = &TMP936[6];
NTI282009.size = sizeof(Tproccon282011*);
NTI282009.kind = 22;
NTI282009.base = (&NTI282011);
NTI282009.marker = TMP2032;
TMP936[5].kind = 1;
TMP936[5].offset = offsetof(Tcontext282023, p);
TMP936[5].typ = (&NTI282009);
TMP936[5].name = "p";
TMP2030[5] = &TMP936[15];
TMP936[15].kind = 1;
TMP936[15].offset = offsetof(Tcontext282023, friendmodules);
TMP936[15].typ = (&NTI227811);
TMP936[15].name = "friendModules";
TMP2030[6] = &TMP936[16];
TMP936[16].kind = 1;
TMP936[16].offset = offsetof(Tcontext282023, instcounter);
TMP936[16].typ = (&NTI108);
TMP936[16].name = "instCounter";
TMP2030[7] = &TMP936[17];
TMP936[17].kind = 1;
TMP936[17].offset = offsetof(Tcontext282023, ambiguoussymbols);
TMP936[17].typ = (&NTI224056);
TMP936[17].name = "ambiguousSymbols";
TMP2030[8] = &TMP936[18];
TMP936[18].kind = 1;
TMP936[18].offset = offsetof(Tcontext282023, intypeclass);
TMP936[18].typ = (&NTI108);
TMP936[18].name = "inTypeClass";
TMP2030[9] = &TMP936[19];
TMP936[19].kind = 1;
TMP936[19].offset = offsetof(Tcontext282023, ingenericcontext);
TMP936[19].typ = (&NTI108);
TMP936[19].name = "inGenericContext";
TMP2030[10] = &TMP936[20];
TMP936[20].kind = 1;
TMP936[20].offset = offsetof(Tcontext282023, inunrolledcontext);
TMP936[20].typ = (&NTI108);
TMP936[20].name = "inUnrolledContext";
TMP2030[11] = &TMP936[21];
TMP936[21].kind = 1;
TMP936[21].offset = offsetof(Tcontext282023, compilescontextid);
TMP936[21].typ = (&NTI108);
TMP936[21].name = "compilesContextId";
TMP2030[12] = &TMP936[22];
TMP936[22].kind = 1;
TMP936[22].offset = offsetof(Tcontext282023, compilescontextidgenerator);
TMP936[22].typ = (&NTI108);
TMP936[22].name = "compilesContextIdGenerator";
TMP2030[13] = &TMP936[23];
TMP936[23].kind = 1;
TMP936[23].offset = offsetof(Tcontext282023, ingenericinst);
TMP936[23].typ = (&NTI108);
TMP936[23].name = "inGenericInst";
TMP2030[14] = &TMP936[24];
TMP936[24].kind = 1;
TMP936[24].offset = offsetof(Tcontext282023, converters);
TMP936[24].typ = (&NTI227811);
TMP936[24].name = "converters";
TMP2030[15] = &TMP936[25];
TMP936[25].kind = 1;
TMP936[25].offset = offsetof(Tcontext282023, patterns);
TMP936[25].typ = (&NTI227811);
TMP936[25].name = "patterns";
TMP2030[16] = &TMP936[26];
TMP936[26].kind = 1;
TMP936[26].offset = offsetof(Tcontext282023, optionstack);
TMP936[26].typ = (&NTI143028);
TMP936[26].name = "optionStack";
TMP2030[17] = &TMP936[27];
TMP936[27].kind = 1;
TMP936[27].offset = offsetof(Tcontext282023, symmapping);
TMP936[27].typ = (&NTI227859);
TMP936[27].name = "symMapping";
TMP2030[18] = &TMP936[28];
TMP936[28].kind = 1;
TMP936[28].offset = offsetof(Tcontext282023, libs);
TMP936[28].typ = (&NTI143028);
TMP936[28].name = "libs";
TMP2030[19] = &TMP936[29];
NTI282074.size = sizeof(TY282074);
NTI282074.kind = 25;
NTI282074.base = 0;
NTI282074.flags = 3;
TMP936[29].kind = 1;
TMP936[29].offset = offsetof(Tcontext282023, semconstexpr);
TMP936[29].typ = (&NTI282074);
TMP936[29].name = "semConstExpr";
TMP2030[20] = &TMP936[30];
NTI282079.size = sizeof(TY282079);
NTI282079.kind = 25;
NTI282079.base = 0;
NTI282079.flags = 3;
TMP936[30].kind = 1;
TMP936[30].offset = offsetof(Tcontext282023, semexpr);
TMP936[30].typ = (&NTI282079);
TMP936[30].name = "semExpr";
TMP2030[21] = &TMP936[31];
NTI282087.size = sizeof(TY282087);
NTI282087.kind = 25;
NTI282087.base = 0;
NTI282087.flags = 3;
TMP936[31].kind = 1;
TMP936[31].offset = offsetof(Tcontext282023, semtryexpr);
TMP936[31].typ = (&NTI282087);
TMP936[31].name = "semTryExpr";
TMP2030[22] = &TMP936[32];
NTI282095.size = sizeof(TY282095);
NTI282095.kind = 25;
NTI282095.base = 0;
NTI282095.flags = 3;
TMP936[32].kind = 1;
TMP936[32].offset = offsetof(Tcontext282023, semtryconstexpr);
TMP936[32].typ = (&NTI282095);
TMP936[32].name = "semTryConstExpr";
TMP2030[23] = &TMP936[33];
NTI282100.size = sizeof(TY282100);
NTI282100.kind = 25;
NTI282100.base = 0;
NTI282100.flags = 3;
TMP936[33].kind = 1;
TMP936[33].offset = offsetof(Tcontext282023, semoperand);
TMP936[33].typ = (&NTI282100);
TMP936[33].name = "semOperand";
TMP2030[24] = &TMP936[34];
NTI282108.size = sizeof(TY282108);
NTI282108.kind = 25;
NTI282108.base = 0;
NTI282108.flags = 3;
TMP936[34].kind = 1;
TMP936[34].offset = offsetof(Tcontext282023, semconstboolexpr);
TMP936[34].typ = (&NTI282108);
TMP936[34].name = "semConstBoolExpr";
TMP2030[25] = &TMP936[35];
NTI282113.size = sizeof(TY282113);
NTI282113.kind = 25;
NTI282113.base = 0;
NTI282113.flags = 3;
TMP936[35].kind = 1;
TMP936[35].offset = offsetof(Tcontext282023, semoverloadedcall);
TMP936[35].typ = (&NTI282113);
TMP936[35].name = "semOverloadedCall";
TMP2030[26] = &TMP936[36];
NTI282120.size = sizeof(TY282120);
NTI282120.kind = 25;
NTI282120.base = 0;
NTI282120.flags = 3;
TMP936[36].kind = 1;
TMP936[36].offset = offsetof(Tcontext282023, semtypenode);
TMP936[36].typ = (&NTI282120);
TMP936[36].name = "semTypeNode";
TMP2030[27] = &TMP936[37];
NTI282126.size = sizeof(TY578951);
NTI282126.kind = 18;
NTI282126.base = 0;
NTI282126.flags = 2;
TMP2033[0] = &TMP936[39];
TMP936[39].kind = 1;
TMP936[39].offset = offsetof(TY578951, Field0);
TMP936[39].typ = (&NTI153);
TMP936[39].name = "Field0";
TMP2033[1] = &TMP936[40];
TMP936[40].kind = 1;
TMP936[40].offset = offsetof(TY578951, Field1);
TMP936[40].typ = (&NTI578953);
TMP936[40].name = "Field1";
TMP936[38].len = 2; TMP936[38].kind = 2; TMP936[38].sons = &TMP2033[0];
NTI282126.node = &TMP936[38];
TMP936[37].kind = 1;
TMP936[37].offset = offsetof(Tcontext282023, seminferredlambda);
TMP936[37].typ = (&NTI282126);
TMP936[37].name = "semInferredLambda";
TMP2030[28] = &TMP936[41];
NTI282132.size = sizeof(TY578951);
NTI282132.kind = 18;
NTI282132.base = 0;
NTI282132.flags = 2;
TMP2034[0] = &TMP936[43];
TMP936[43].kind = 1;
TMP936[43].offset = offsetof(TY578951, Field0);
TMP936[43].typ = (&NTI153);
TMP936[43].name = "Field0";
TMP2034[1] = &TMP936[44];
TMP936[44].kind = 1;
TMP936[44].offset = offsetof(TY578951, Field1);
TMP936[44].typ = (&NTI578953);
TMP936[44].name = "Field1";
TMP936[42].len = 2; TMP936[42].kind = 2; TMP936[42].sons = &TMP2034[0];
NTI282132.node = &TMP936[42];
TMP936[41].kind = 1;
TMP936[41].offset = offsetof(Tcontext282023, semgenerateinstance);
TMP936[41].typ = (&NTI282132);
TMP936[41].name = "semGenerateInstance";
TMP2030[29] = &TMP936[45];
TMP936[45].kind = 1;
TMP936[45].offset = offsetof(Tcontext282023, includedfiles);
TMP936[45].typ = (&NTI224056);
TMP936[45].name = "includedFiles";
TMP2030[30] = &TMP936[46];
TMP936[46].kind = 1;
TMP936[46].offset = offsetof(Tcontext282023, userpragmas);
TMP936[46].typ = (&NTI227813);
TMP936[46].name = "userPragmas";
TMP2030[31] = &TMP936[47];
TMP936[47].kind = 1;
TMP936[47].offset = offsetof(Tcontext282023, evalcontext);
TMP936[47].typ = (&NTI281046);
TMP936[47].name = "evalContext";
TMP2030[32] = &TMP936[48];
TMP936[48].kind = 1;
TMP936[48].offset = offsetof(Tcontext282023, unknownidents);
TMP936[48].typ = (&NTI224056);
TMP936[48].name = "unknownIdents";
TMP2030[33] = &TMP936[49];
NTI282013.size = sizeof(Tinstantiationpair282013);
NTI282013.kind = 18;
NTI282013.base = 0;
NTI282013.flags = 2;
TMP2056[0] = &TMP936[51];
TMP936[51].kind = 1;
TMP936[51].offset = offsetof(Tinstantiationpair282013, genericsym);
TMP936[51].typ = (&NTI227807);
TMP936[51].name = "genericSym";
TMP2056[1] = &TMP936[52];
TMP936[52].kind = 1;
TMP936[52].offset = offsetof(Tinstantiationpair282013, inst);
TMP936[52].typ = (&NTI227833);
TMP936[52].name = "inst";
TMP936[50].len = 2; TMP936[50].kind = 2; TMP936[50].sons = &TMP2056[0];
NTI282013.node = &TMP936[50];
NTI282143.size = sizeof(TY282143*);
NTI282143.kind = 24;
NTI282143.base = (&NTI282013);
NTI282143.flags = 2;
NTI282143.marker = TMP2057;
TMP936[49].kind = 1;
TMP936[49].offset = offsetof(Tcontext282023, generics);
TMP936[49].typ = (&NTI282143);
TMP936[49].name = "generics";
TMP2030[34] = &TMP936[53];
TMP936[53].kind = 1;
TMP936[53].offset = offsetof(Tcontext282023, lastgenericidx);
TMP936[53].typ = (&NTI108);
TMP936[53].name = "lastGenericIdx";
TMP2030[35] = &TMP936[54];
TMP936[54].kind = 1;
TMP936[54].offset = offsetof(Tcontext282023, hloloopdetector);
TMP936[54].typ = (&NTI108);
TMP936[54].name = "hloLoopDetector";
TMP2030[36] = &TMP936[55];
TMP936[55].kind = 1;
TMP936[55].offset = offsetof(Tcontext282023, inparallelstmt);
TMP936[55].typ = (&NTI108);
TMP936[55].name = "inParallelStmt";
TMP2030[37] = &TMP936[56];
NTI282148.size = sizeof(TY282148);
NTI282148.kind = 25;
NTI282148.base = 0;
NTI282148.flags = 3;
TMP936[56].kind = 1;
TMP936[56].offset = offsetof(Tcontext282023, insttypeboundop);
TMP936[56].typ = (&NTI282148);
TMP936[56].name = "instTypeBoundOp";
TMP936[0].len = 38; TMP936[0].kind = 2; TMP936[0].sons = &TMP2030[0];
NTI282023.node = &TMP936[0];
NTI282021.size = sizeof(Tcontext282023*);
NTI282021.kind = 22;
NTI282021.base = (&NTI282023);
NTI282021.marker = TMP2058;
NTI282005.size = sizeof(Toptionentry282005);
NTI282005.kind = 17;
NTI282005.base = (&NTI143022);
TMP2059[0] = &TMP936[58];
TMP936[58].kind = 1;
TMP936[58].offset = offsetof(Toptionentry282005, options);
TMP936[58].typ = (&NTI169017);
TMP936[58].name = "options";
TMP2059[1] = &TMP936[59];
TMP936[59].kind = 1;
TMP936[59].offset = offsetof(Toptionentry282005, defaultcc);
TMP936[59].typ = (&NTI227005);
TMP936[59].name = "defaultCC";
TMP2059[2] = &TMP936[60];
TMP936[60].kind = 1;
TMP936[60].offset = offsetof(Toptionentry282005, dynlib);
TMP936[60].typ = (&NTI227839);
TMP936[60].name = "dynlib";
TMP2059[3] = &TMP936[61];
TMP936[61].kind = 1;
TMP936[61].offset = offsetof(Toptionentry282005, notes);
TMP936[61].typ = (&NTI192348);
TMP936[61].name = "notes";
TMP2059[4] = &TMP936[62];
TMP936[62].kind = 1;
TMP936[62].offset = offsetof(Toptionentry282005, otherpragmas);
TMP936[62].typ = (&NTI227801);
TMP936[62].name = "otherPragmas";
TMP936[57].len = 5; TMP936[57].kind = 2; TMP936[57].sons = &TMP2059[0];
NTI282005.node = &TMP936[57];
NTI282007.size = sizeof(Toptionentry282005*);
NTI282007.kind = 22;
NTI282007.base = (&NTI282005);
NTI282007.marker = TMP2063;
}

