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

#include "nimbase.h"
#include <string.h>
typedef struct Tsymseq225811 Tsymseq225811;
typedef struct Tsym225841 Tsym225841;
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 Memregion30890 Memregion30890;
typedef struct Smallchunk30842 Smallchunk30842;
typedef struct Llchunk30884 Llchunk30884;
typedef struct Bigchunk30844 Bigchunk30844;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30888 Avlnode30888;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Ttype225847 Ttype225847;
typedef struct Tcontext280023 Tcontext280023;
typedef struct Tpasscontext277005 Tpasscontext277005;
typedef struct TNimObject TNimObject;
typedef struct Tscope225835 Tscope225835;
typedef struct Tproccon280011 Tproccon280011;
typedef struct Intset222056 Intset222056;
typedef struct Trunk222052 Trunk222052;
typedef struct Trunkseq222054 Trunkseq222054;
typedef struct Tlinkedlist140028 Tlinkedlist140028;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct Tidtable225859 Tidtable225859;
typedef struct Tidpairseq225857 Tidpairseq225857;
typedef struct Tnode225809 Tnode225809;
typedef struct Tlineinfo190352 Tlineinfo190352;
typedef struct Tstrtable225813 Tstrtable225813;
typedef struct Tctx279048 Tctx279048;
typedef struct TY280143 TY280143;
typedef struct TY576951 TY576951;
typedef struct TY576954 TY576954;
typedef struct Tinstantiationpair280013 Tinstantiationpair280013;
typedef struct Tinstantiation225831 Tinstantiation225831;
typedef struct Toptionentry280005 Toptionentry280005;
typedef struct Tlib225827 Tlib225827;
typedef struct Tidobj198015 Tidobj198015;
typedef struct Ttypeseq225843 Ttypeseq225843;
typedef struct Tloc225823 Tloc225823;
typedef struct Ropeobj176009 Ropeobj176009;
typedef struct NimStringDesc NimStringDesc;
typedef struct TY90959 TY90959;
typedef struct Tident198021 Tident198021;
typedef struct Tnodeseq225803 Tnodeseq225803;
typedef struct TY225944 TY225944;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct Tidpair225855 Tidpair225855;
typedef struct TY279254 TY279254;
typedef struct TY191420 TY191420;
typedef struct PprocHEX3Aobjecttype279233 PprocHEX3Aobjecttype279233;
typedef struct TY279273 TY279273;
typedef struct TY225932 TY225932;
typedef struct TY279234 TY279234;
typedef struct TY279239 TY279239;
typedef struct TY279274 TY279274;
typedef struct Vmargs279042 Vmargs279042;
typedef struct Tblock279030 Tblock279030;
typedef struct TY279214 TY279214;
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 Smallchunk30842* TY30905[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30890  {
NI minlargeobj;
NI maxlargeobj;
TY30905 freesmallchunks;
Llchunk30884* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30844* freechunkslist;
Intset30817 chunkstarts;
Avlnode30888* root;
Avlnode30888* deleted;
Avlnode30888* last;
Avlnode30888* 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;
Memregion30890 region;
Gcstat51014 stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tpasscontext277005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Intset222056  {
NI counter;
NI max;
Trunk222052* head;
Trunkseq222054* data;
};
struct  Tlinkedlist140028  {
Tlistentry140022* head;
Tlistentry140022* tail;
NI counter;
};
struct  Tidtable225859  {
NI counter;
Tidpairseq225857* data;
};
typedef N_NIMCALL_PTR(Tnode225809*, TY280074) (Tcontext280023* c, Tnode225809* n);
typedef N_NIMCALL_PTR(Tnode225809*, TY280079) (Tcontext280023* c, Tnode225809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode225809*, TY280087) (Tcontext280023* c, Tnode225809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode225809*, TY280095) (Tcontext280023* c, Tnode225809* n);
typedef N_NIMCALL_PTR(Tnode225809*, TY280100) (Tcontext280023* c, Tnode225809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode225809*, TY280108) (Tcontext280023* c, Tnode225809* n);
typedef N_NIMCALL_PTR(Tnode225809*, TY280113) (Tcontext280023* c, Tnode225809* n, Tnode225809* norig, NU32 filter);
typedef N_NIMCALL_PTR(Ttype225847*, TY280120) (Tcontext280023* c, Tnode225809* n, Ttype225847* prev);
typedef struct {
N_NIMCALL_PTR(Tnode225809*, ClPrc) (Tcontext280023* c, Tidtable225859 pt, Tnode225809* n, void* ClEnv);
void* ClEnv;
} TY280126;
typedef struct {
N_NIMCALL_PTR(Tsym225841*, ClPrc) (Tcontext280023* c, Tsym225841* fn, Tidtable225859 pt, Tlineinfo190352 info, void* ClEnv);
void* ClEnv;
} TY280132;
struct  Tstrtable225813  {
NI counter;
Tsymseq225811* data;
};
typedef N_NIMCALL_PTR(Tsym225841*, TY280148) (Tcontext280023* c, Tsym225841* dc, Ttype225847* t, Tlineinfo190352 info, NU8 op);
struct  Tcontext280023  {
  Tpasscontext277005 Sup;
Tsym225841* module;
Tscope225835* currentscope;
Tscope225835* importtable;
Tscope225835* toplevelscope;
Tproccon280011* p;
Tsymseq225811* friendmodules;
NI instcounter;
Intset222056 ambiguoussymbols;
NI intypeclass;
NI ingenericcontext;
NI inunrolledcontext;
NI compilescontextid;
NI compilescontextidgenerator;
NI ingenericinst;
Tsymseq225811* converters;
Tsymseq225811* patterns;
Tlinkedlist140028 optionstack;
Tidtable225859 symmapping;
Tlinkedlist140028 libs;
TY280074 semconstexpr;
TY280079 semexpr;
TY280087 semtryexpr;
TY280095 semtryconstexpr;
TY280100 semoperand;
TY280108 semconstboolexpr;
TY280113 semoverloadedcall;
TY280120 semtypenode;
TY280126 seminferredlambda;
TY280132 semgenerateinstance;
Intset222056 includedfiles;
Tstrtable225813 userpragmas;
Tctx279048* evalcontext;
Intset222056 unknownidents;
TY280143* generics;
NI lastgenericidx;
NI hloloopdetector;
NI inparallelstmt;
TY280148 insttypeboundop;
};
struct  Tproccon280011  {
Tsym225841* owner;
Tsym225841* resultsym;
NI nestedloopcounter;
NI nestedblockcounter;
NI intrystmt;
Tproccon280011* next;
NIM_BOOL wasforwarded;
Tnode225809* bracketexpr;
};
struct TY576951 {
void* Field0;
TY576954* Field1;
};
struct  Tinstantiationpair280013  {
Tsym225841* genericsym;
Tinstantiation225831* inst;
};
struct  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Toptionentry280005  {
  Tlistentry140022 Sup;
NU32 options;
NU8 defaultcc;
Tlib225827* dynlib;
NU64 notes;
Tnode225809* otherpragmas;
};
typedef Tsym225841* TY280434[1];
struct  Tidobj198015  {
  TNimObject Sup;
NI id;
};
struct  Tloc225823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype225847* t;
Ropeobj176009* r;
Ropeobj176009* heaproot;
};
struct  Ttype225847  {
  Tidobj198015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq225843* sons;
Tnode225809* n;
Tsym225841* owner;
Tsym225841* sym;
Tsym225841* destructor;
Tsym225841* deepcopy;
Tsym225841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc225823 loc;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct TY90959 {
NimStringDesc* Field0;
NI Field1;
};
struct  Tlineinfo190352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode225809  {
Ttype225847* typ;
Tlineinfo190352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym225841* sym;
} S4;
struct {Tident198021* ident;
} S5;
struct {Tnodeseq225803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef Tnode225809* TY243880[1];
typedef Ttype225847* TY393275[1];
typedef Ttype225847* TY280864[2];
typedef Tnode225809* TY281106[2];
struct  Tlib225827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj176009* name;
Tnode225809* path;
};
struct  Tsym225841  {
  Tidobj198015 Sup;
NU8 kind;
union{
struct {Ttypeseq225843* typeinstcache;
Tscope225835* typscope;
} S1;
struct {TY225944* procinstcache;
Tsym225841* gcunsafetyreason;
} S2;
struct {TY225944* usedgenerics;
Tstrtable225813 tab;
} S3;
struct {Tsym225841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype225847* typ;
Tident198021* name;
Tlineinfo190352 info;
Tsym225841* owner;
NU32 flags;
Tnode225809* ast;
NU32 options;
NI position;
NI offset;
Tloc225823 loc;
Tlib225827* annex;
Tnode225809* constraint;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30821[16];
struct  Pagedesc48955  {
Pagedesc48955* next;
NI key;
TY30821 bits;
};
struct  Basechunk30840  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30842  {
  Basechunk30840 Sup;
Smallchunk30842* next;
Smallchunk30842* prev;
Freecell30832* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30884  {
NI size;
NI acc;
Llchunk30884* next;
};
struct  Bigchunk30844  {
  Basechunk30840 Sup;
Bigchunk30844* next;
Bigchunk30844* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30821 bits;
};
typedef Avlnode30888* TY30895[2];
struct  Avlnode30888  {
TY30895 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope225835  {
NI depthlevel;
Tstrtable225813 symbols;
Tnodeseq225803* usingsyms;
Tscope225835* parent;
};
struct  Trunk222052  {
Trunk222052* next;
NI key;
TY30821 bits;
};
struct  Tidpair225855  {
Tidobj198015* key;
TNimObject* val;
};
struct  Tctx279048  {
  Tpasscontext277005 Sup;
TY279254* code;
TY191420* debug;
Tnode225809* globals;
Tnode225809* constants;
Ttypeseq225843* types;
Tnode225809* currentexceptiona;
Tnode225809* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype279233* prc;
Tsym225841* module;
Tnode225809* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo190352 comesfromheuristic;
TY279273* callbacks;
NimStringDesc* errorflag;
};
struct TY576954 {
char dummy;
};
struct  Tinstantiation225831  {
Tsym225841* sym;
Ttypeseq225843* concretetypes;
TY225932* usedby;
NI compilesid;
};
struct  Ropeobj176009  {
  TNimObject Sup;
Ropeobj176009* left;
Ropeobj176009* right;
NI length;
NimStringDesc* data;
};
struct  Tident198021  {
  Tidobj198015 Sup;
NimStringDesc* s;
Tident198021* next;
NI h;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct TY279239 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY279239 TY279242[256];
struct  PprocHEX3Aobjecttype279233  {
TY279234* blocks;
Tsym225841* sym;
TY279242 slots;
NI maxslots;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs279042* args, void* ClEnv);
void* ClEnv;
} Vmcallback279044;
struct TY279274 {
NimStringDesc* Field0;
Vmcallback279044 Field1;
};
struct  Tblock279030  {
Tsym225841* label;
TY279214* fixups;
};
struct  Vmargs279042  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode225809* currentexception;
};
struct Tsymseq225811 {
  TGenericSeq Sup;
  Tsym225841* data[SEQ_DECL_SIZE];
};
struct TY280143 {
  TGenericSeq Sup;
  Tinstantiationpair280013 data[SEQ_DECL_SIZE];
};
struct Ttypeseq225843 {
  TGenericSeq Sup;
  Ttype225847* data[SEQ_DECL_SIZE];
};
struct Tnodeseq225803 {
  TGenericSeq Sup;
  Tnode225809* data[SEQ_DECL_SIZE];
};
struct Trunkseq222054 {
  TGenericSeq Sup;
  Trunk222052* data[SEQ_DECL_SIZE];
};
struct Tidpairseq225857 {
  TGenericSeq Sup;
  Tidpair225855 data[SEQ_DECL_SIZE];
};
struct TY225944 {
  TGenericSeq Sup;
  Tinstantiation225831* data[SEQ_DECL_SIZE];
};
struct TY279254 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY191420 {
  TGenericSeq Sup;
  Tlineinfo190352 data[SEQ_DECL_SIZE];
};
struct TY279273 {
  TGenericSeq Sup;
  TY279274 data[SEQ_DECL_SIZE];
};
struct TY225932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct TY279234 {
  TGenericSeq Sup;
  Tblock279030 data[SEQ_DECL_SIZE];
};
struct TY279214 {
  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(Ttype225847*, newtype_228140)(NU8 kind, Tsym225841* owner);
N_NIMCALL(Tsym225841*, getcurrowner_280258)(void);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP2030)(void* p, NI op);
N_NIMCALL(void, TMP2055)(void* p, NI op);
N_NIMCALL(void, TMP2056)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(void, initintset_222927)(Intset222056* Result);
N_NIMCALL(void, initlinkedlist_140043)(Tlinkedlist140028* list);
N_NIMCALL(void, append_140053)(Tlinkedlist140028* list, Tlistentry140022* entry);
N_NIMCALL(Toptionentry280005*, newoptionentry_280196)(void);
N_NIMCALL(void, TMP2061)(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_229007)(Tstrtable225813* x);
N_NIMCALL(Ttype225847*, newtypes_280221)(NU8 kind, Tcontext280023* c);
N_NIMCALL(void, addsonskipintlit_274729)(Ttype225847* father, Ttype225847* son);
N_NIMCALL(void, internalerror_196191)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_196279)(TY90959 x);
N_NIMCALL(void, globalerror_196107)(Tlineinfo190352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_247059)(Tnode225809* n, NU8 renderflags);
N_NIMCALL(NI, sonslen_228387)(Tnode225809* n);
N_NIMCALL(void, illformedast_281240)(Tnode225809* n);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_85804, TNimType* mt);
N_NIMCALL(Tnode225809*, newnodei_227351)(NU8 kind, Tlineinfo190352 info);
N_NIMCALL(void, addson_227819)(Tnode225809* father, Tnode225809* son);
N_NIMCALL(Tnode225809*, newinttypenode_226620)(NU8 kind, NI64 intval, Ttype225847* typ);
N_NIMCALL(Ttype225847*, newtypewithsons_280807)(Tcontext280023* c, NU8 kind, Ttypeseq225843* sons);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, propagatetoowner_229274)(Ttype225847* owner, Ttype225847* elem);
N_NIMCALL(Ttype225847*, getsystype_274190)(NU8 kind);
N_NIMCALL(Tnode225809*, newnode_227607)(NU8 kind, Tlineinfo190352 info, Tnodeseq225803* sons, Ttype225847* typ);
N_NIMCALL(Tnode225809*, makestaticexpr_280820)(Tcontext280023* c, Tnode225809* n);
N_NIMCALL(Tnode225809*, nminusone_281064)(Tnode225809* n);
N_NIMCALL(Tnode225809*, newsymnode_227325)(Tsym225841* sym);
N_NIMCALL(Tsym225841*, getsysmagic_274121)(NimStringDesc* name, NU8 m);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, localerror_196128)(Tlineinfo190352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(Ttype225847*, errortype_281161)(Tcontext280023* c);
N_NIMCALL(Ttype225847*, maketypedesc_280684)(Tcontext280023* c, Ttype225847* typ);
N_NIMCALL(Tsym225841*, linkto_226884)(Tsym225841* s, Ttype225847* t);
N_NIMCALL(Tsym225841*, newsym_226656)(NU8 symkind, Tident198021* name, Tsym225841* owner, Tlineinfo190352 info);
N_NIMCALL(Tnode225809*, newsymnode_227338)(Tsym225841* sym, Tlineinfo190352 info);
N_NIMCALL(void, inclsym_280502)(Tsymseq225811** sq, Tsym225841* s);
STRING_LITERAL(TMP2749, "compiler/semdata.nim", 20);
NIM_CONST TY90959 TMP2748 = {((NimStringDesc*) &TMP2749),
((NI) 226)}
;
NIM_CONST TY90959 TMP2763 = {((NimStringDesc*) &TMP2749),
((NI) 222)}
;
STRING_LITERAL(TMP3123, "<", 1);
STRING_LITERAL(TMP3296, "popOwner", 8);
NIM_CONST TY90959 TMP3339 = {((NimStringDesc*) &TMP2749),
((NI) 215)}
;
Tsymseq225811* gowners_280291;
extern TNimType NTI225811; /* TSymSeq */
extern Gcheap51018 gch_51059;
extern TNimType NTI277005; /* TPassContext */
TNimType NTI280023; /* TContext */
extern TNimType NTI225807; /* PSym */
extern TNimType NTI225837; /* PScope */
TNimType NTI280011; /* TProcCon */
extern TNimType NTI108; /* int */
extern TNimType NTI138; /* bool */
extern TNimType NTI225801; /* PNode */
TNimType NTI280009; /* PProcCon */
extern TNimType NTI222056; /* IntSet */
extern TNimType NTI140028; /* TLinkedList */
extern TNimType NTI225859; /* TIdTable */
TNimType NTI280074; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI280079; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI280087; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI280095; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI280100; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI280108; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI280113; /* proc (c: PContext, n: PNode, nOrig: PNode, filter: TSymKinds): PNode */
TNimType NTI280120; /* proc (c: PContext, n: PNode, prev: PType): PType */
TNimType NTI280126; /* (pointer, ref tuple[]) */
extern TNimType NTI153; /* pointer */
extern TNimType NTI576953; /* ref tuple[] */
TNimType NTI280132; /* (pointer, ref tuple[]) */
extern TNimType NTI225813; /* TStrTable */
extern TNimType NTI279046; /* PCtx */
TNimType NTI280013; /* TInstantiationPair */
extern TNimType NTI225833; /* PInstantiation */
TNimType NTI280143; /* seq[TInstantiationPair] */
TNimType NTI280148; /* proc (c: PContext, dc: PSym, t: PType, info: TLineInfo, op: TTypeAttachedOp): PSym */
TNimType NTI280021; /* PContext */
extern TNimType NTI140022; /* TListEntry */
TNimType NTI280005; /* TOptionEntry */
extern TNimType NTI167017; /* TOptions */
extern TNimType NTI225005; /* TCallingConvention */
extern TNimType NTI225839; /* PLib */
extern TNimType NTI190348; /* TNoteKinds */
TNimType NTI280007; /* POptionEntry */
extern NU32 goptions_167130;
extern NU64 gnotes_191398;
extern TNimType NTI225843; /* TTypeSeq */
extern TNimType NTI225803; /* TNodeSeq */
extern TNimType NTI225827; /* TLib */
extern Tident198021* idanon_198495;

static N_INLINE(Cell48947*, usrtocell_52646)(void* usr) {
	Cell48947* result;
	result = 0;
	result = ((Cell48947*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((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 (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_54204(c);
	}
	LA3: ;
}

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

N_NIMCALL(Ttype225847*, newtypes_280221)(NU8 kind, Tcontext280023* c) {
	Ttype225847* result;
	Tsym225841* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_280258();
	result = newtype_228140(kind, LOC1);
	return result;
}
N_NIMCALL(void, TMP2030)(void* p, NI op) {
	Tproccon280011* a;
	a = (Tproccon280011*)p;
	nimGCvisit((void*)(*a).owner, op);
	nimGCvisit((void*)(*a).resultsym, op);
	nimGCvisit((void*)(*a).next, op);
	nimGCvisit((void*)(*a).bracketexpr, op);
}
N_NIMCALL(void, TMP2055)(void* p, NI op) {
	TY280143* a;
	NI LOC1;
	a = (TY280143*)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, TMP2056)(void* p, NI op) {
	Tcontext280023* a;
	a = (Tcontext280023*)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, TMP2061)(void* p, NI op) {
	Toptionentry280005* a;
	a = (Toptionentry280005*)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)((NU32)((*c).refcount) + (NU32)(((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 (!((NU32)((*c).refcount) < (NU32)(((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(Toptionentry280005*, newoptionentry_280196)(void) {
	Toptionentry280005* result;
	result = 0;
	result = (Toptionentry280005*) newObj((&NTI280007), sizeof(Toptionentry280005));
	(*result).Sup.Sup.m_type = (&NTI280005);
	(*result).options = goptions_167130;
	(*result).defaultcc = ((NU8) 0);
	asgnRef((void**) (&(*result).dynlib), NIM_NIL);
	(*result).notes = gnotes_191398;
	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 (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA11;
			rtladdzct_54204(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(Tcontext280023*, newcontext_280184)(Tsym225841* module) {
	Tcontext280023* result;
	Toptionentry280005* LOC1;
	Tlistentry140022* LOC2;
	TY280434 LOC3;
	result = 0;
	result = (Tcontext280023*) newObj((&NTI280021), sizeof(Tcontext280023));
	(*result).Sup.Sup.m_type = (&NTI280023);
	initintset_222927((&(*result).ambiguoussymbols));
	initlinkedlist_140043((&(*result).optionstack));
	initlinkedlist_140043((&(*result).libs));
	LOC1 = 0;
	LOC1 = newoptionentry_280196();
	LOC2 = 0;
	LOC2 = &LOC1->Sup;
	append_140053((&(*result).optionstack), LOC2);
	asgnRefNoCycle((void**) (&(*result).module), module);
	if ((*result).friendmodules) nimGCunrefNoCycle((*result).friendmodules);
	(*result).friendmodules = (Tsymseq225811*) newSeqRC1((&NTI225811), 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 = (Tsymseq225811*) newSeqRC1((&NTI225811), 0);
	if ((*result).patterns) nimGCunrefNoCycle((*result).patterns);
	(*result).patterns = (Tsymseq225811*) newSeqRC1((&NTI225811), 0);
	initintset_222927((&(*result).includedfiles));
	initstrtable_229007((&(*result).userpragmas));
	if ((*result).generics) nimGCunrefNoCycle((*result).generics);
	(*result).generics = (TY280143*) newSeqRC1((&NTI280143), 0);
	initintset_222927((&(*result).unknownidents));
	return result;
}

N_NIMCALL(Ttype225847*, maketypefromexpr_280729)(Tcontext280023* c, Tnode225809* n) {
	Ttype225847* result;
	result = 0;
	result = newtypes_280221(((NU8) 60), c);
	asgnRefNoCycle((void**) (&(*result).n), n);
	return result;
}

N_NIMCALL(Ttype225847*, errortype_281161)(Tcontext280023* c) {
	Ttype225847* result;
	result = 0;
	result = newtypes_280221(((NU8) 50), c);
	return result;
}

N_NIMCALL(Ttype225847*, maketypedesc_280684)(Tcontext280023* c, Ttype225847* typ) {
	Ttype225847* result;
	result = 0;
	result = newtypes_280221(((NU8) 8), c);
	{
		NimStringDesc* LOC5;
		if (!(typ == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_196279(TMP2748);
		internalerror_196191(LOC5);
	}
	LA3: ;
	addsonskipintlit_274729(result, typ);
	return result;
}

N_NIMCALL(void, illformedast_281240)(Tnode225809* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_247059(n, 4);
	globalerror_196107((*n).info, ((NU16) 1), LOC1);
}

N_NIMCALL(void, checksonslen_281260)(Tnode225809* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_228387(n);
		if (!!((LOC3 == length))) goto LA4;
		illformedast_281240(n);
	}
	LA4: ;
}

N_NIMCALL(Ttype225847*, newtypewithsons_280807)(Tcontext280023* c, NU8 kind, Ttypeseq225843* sons) {
	Ttype225847* result;
	Tsym225841* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_280258();
	result = newtype_228140(kind, LOC1);
	genericSeqAssign((&(*result).sons), sons, (&NTI225843));
	return result;
}

N_NIMCALL(Ttype225847*, makevartype_280645)(Tcontext280023* c, Ttype225847* basetype) {
	Ttype225847* result;
	result = 0;
	{
		if (!((*basetype).kind == ((NU8) 23))) goto LA3;
		result = basetype;
	}
	goto LA1;
	LA3: ;
	{
		result = newtypes_280221(((NU8) 23), c);
		{
			NimStringDesc* LOC10;
			if (!(basetype == NIM_NIL)) goto LA8;
			LOC10 = 0;
			LOC10 = HEX24_196279(TMP2763);
			internalerror_196191(LOC10);
		}
		LA8: ;
		addsonskipintlit_274729(result, basetype);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ttype225847*, makerangetype_281193)(Tcontext280023* c, NI64 first, NI64 last, Tlineinfo190352 info, Ttype225847* inttype) {
	Ttype225847* result;
	Tnode225809* n;
	Tnode225809* LOC1;
	Tnode225809* LOC2;
	result = 0;
	n = newnodei_227351(((NU8) 44), info);
	LOC1 = 0;
	LOC1 = newinttypenode_226620(((NU8) 6), first, inttype);
	addson_227819(n, LOC1);
	LOC2 = 0;
	LOC2 = newinttypenode_226620(((NU8) 6), last, inttype);
	addson_227819(n, LOC2);
	result = newtypes_280221(((NU8) 20), c);
	asgnRefNoCycle((void**) (&(*result).n), n);
	addsonskipintlit_274729(result, inttype);
	return result;
}

N_NIMCALL(Tnode225809*, makestaticexpr_280820)(Tcontext280023* c, Tnode225809* n) {
	Tnode225809* result;
	TY243880 LOC1;
	Ttypeseq225843* LOC2;
	TY393275 LOC3;
	result = 0;
	result = newnodei_227351(((NU8) 62), (*n).info);
	if ((*result).kindU.S6.sons) nimGCunrefNoCycle((*result).kindU.S6.sons);
	(*result).kindU.S6.sons = (Tnodeseq225803*) newSeqRC1((&NTI225803), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = n;
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (Ttypeseq225843*) newSeq((&NTI225843), 1);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = (*n).typ;
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&(*result).typ), newtypewithsons_280807(c, ((NU8) 59), LOC2));
	return result;
}

N_NIMCALL(Ttype225847*, makeandtype_280858)(Tcontext280023* c, Ttype225847* t1, Ttype225847* t2) {
	Ttype225847* result;
	TY280864 LOC1;
	result = 0;
	result = newtypes_280221(((NU8) 55), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq225843*) newSeqRC1((&NTI225843), 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_229274(result, t1);
	propagatetoowner_229274(result, t2);
	(*result).flags = ((*result).flags | (((*t1).flags | (*t2).flags) & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(Ttype225847*, makeortype_280931)(Tcontext280023* c, Ttype225847* t1, Ttype225847* t2) {
	Ttype225847* result;
	TY280864 LOC1;
	result = 0;
	result = newtypes_280221(((NU8) 56), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq225843*) newSeqRC1((&NTI225843), 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_229274(result, t1);
	propagatetoowner_229274(result, t2);
	(*result).flags = ((*result).flags | (((*t1).flags | (*t2).flags) & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(Ttype225847*, makenottype_281004)(Tcontext280023* c, Ttype225847* t1) {
	Ttype225847* result;
	TY393275 LOC1;
	result = 0;
	result = newtypes_280221(((NU8) 57), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq225843*) newSeqRC1((&NTI225843), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = t1;
	asgnRefNoCycle((void**) (&(*result).sons->data[0]), LOC1[0]);
	propagatetoowner_229274(result, t1);
	(*result).flags = ((*result).flags | ((*t1).flags & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(void, checkminsonslen_281270)(Tnode225809* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_228387(n);
		if (!(LOC3 < length)) goto LA4;
		illformedast_281240(n);
	}
	LA4: ;
}

N_NIMCALL(Tnode225809*, nminusone_281064)(Tnode225809* n) {
	Tnode225809* result;
	Tnodeseq225803* LOC1;
	TY281106 LOC2;
	Tsym225841* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (Tnodeseq225803*) newSeq((&NTI225803), 2);
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC3 = 0;
	LOC3 = getsysmagic_274121(((NimStringDesc*) &TMP3123), ((NU8) 25));
	LOC2[0] = newsymnode_227325(LOC3);
	LOC2[1] = n;
	asgnRefNoCycle((void**) (&LOC1->data[0]), LOC2[0]);
	asgnRefNoCycle((void**) (&LOC1->data[1]), LOC2[1]);
	result = newnode_227607(((NU8) 27), (*n).info, LOC1, NIM_NIL);
	return result;
}

N_NIMCALL(Ttype225847*, makerangewithstaticexpr_281087)(Tcontext280023* c, Tnode225809* n) {
	Ttype225847* result;
	Ttype225847* inttype;
	TY393275 LOC1;
	Tnodeseq225803* LOC2;
	TY281106 LOC3;
	Tnode225809* LOC4;
	result = 0;
	inttype = getsystype_274190(((NU8) 31));
	result = newtypes_280221(((NU8) 20), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq225843*) newSeqRC1((&NTI225843), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = inttype;
	asgnRefNoCycle((void**) (&(*result).sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (Tnodeseq225803*) newSeq((&NTI225803), 2);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = newinttypenode_226620(((NU8) 6), IL64(0), inttype);
	LOC4 = 0;
	LOC4 = nminusone_281064(n);
	LOC3[1] = makestaticexpr_280820(c, LOC4);
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&LOC2->data[1]), LOC3[1]);
	asgnRefNoCycle((void**) (&(*result).n), newnode_227607(((NU8) 44), (*n).info, LOC2, NIM_NIL));
	return result;
}

N_NIMCALL(void, pushowner_280263)(Tsym225841* owner) {
	gowners_280291 = (Tsymseq225811*) incrSeqV2(&(gowners_280291)->Sup, sizeof(Tsym225841*));
	asgnRefNoCycle((void**) (&gowners_280291->data[gowners_280291->Sup.len]), owner);
	++gowners_280291->Sup.len;
}

N_NIMCALL(void, makeinstpair_280159)(Tsym225841* s, Tinstantiation225831* inst, Tinstantiationpair280013* Result) {
	unsureAsgnRef((void**) (&(*Result).genericsym), s);
	unsureAsgnRef((void**) (&(*Result).inst), inst);
}

N_NIMCALL(Tlib225827*, newlib_280201)(NU8 kind) {
	Tlib225827* result;
	result = 0;
	result = (Tlib225827*) newObj((&NTI225839), sizeof(Tlib225827));
	(*result).Sup.Sup.m_type = (&NTI225827);
	(*result).kind = kind;
	return result;
}

N_NIMCALL(void, addtolib_280207)(Tlib225827* lib, Tsym225841* sym) {
	asgnRef((void**) (&(*sym).annex), lib);
}

N_NIMCALL(void, illformedastlocal_281250)(Tnode225809* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_247059(n, 4);
	localerror_196128((*n).info, ((NU16) 1), LOC1);
}

N_NIMCALL(Toptionentry280005*, lastoptionentry_280190)(Tcontext280023* c) {
	Toptionentry280005* result;
	result = 0;
	result = ((Toptionentry280005*) ((*c).optionstack.tail));
	return result;
}

N_NIMCALL(void, popowner_280269)(void) {
	NI length;
	length = (gowners_280291 ? gowners_280291->Sup.len : 0);
	{
		if (!(((NI) 0) < length)) goto LA3;
		gowners_280291 = (Tsymseq225811*) setLengthSeq(&(gowners_280291)->Sup, sizeof(Tsym225841*), ((NI) ((NI)(length - ((NI) 1)))));
	}
	goto LA1;
	LA3: ;
	{
		internalerror_196191(((NimStringDesc*) &TMP3296));
	}
	LA1: ;
}

N_NIMCALL(Ttype225847*, makeptrtype_280214)(Tcontext280023* c, Ttype225847* basetype) {
	Ttype225847* result;
	result = 0;
	result = newtypes_280221(((NU8) 21), c);
	{
		NimStringDesc* LOC5;
		if (!(basetype == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_196279(TMP3339);
		internalerror_196191(LOC5);
	}
	LA3: ;
	addsonskipintlit_274729(result, basetype);
	return result;
}

N_NIMCALL(Tnode225809*, errornode_281171)(Tcontext280023* c, Tnode225809* n) {
	Tnode225809* result;
	result = 0;
	result = newnodei_227351(((NU8) 1), (*n).info);
	asgnRefNoCycle((void**) (&(*result).typ), errortype_281161(c));
	return result;
}

N_NIMCALL(Tnode225809*, maketypesymnode_280714)(Tcontext280023* c, Ttype225847* typ, Tlineinfo190352 info) {
	Tnode225809* result;
	Ttype225847* typedesc;
	Tsym225841* sym;
	Tsym225841* LOC1;
	Tsym225841* LOC2;
{	result = 0;
	typedesc = maketypedesc_280684(c, typ);
	LOC1 = 0;
	LOC1 = getcurrowner_280258();
	LOC2 = 0;
	LOC2 = newsym_226656(((NU8) 7), idanon_198495, LOC1, info);
	sym = linkto_226884(LOC2, typedesc);
	result = newsymnode_227338(sym, info);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, inclsym_280502)(Tsymseq225811** sq, Tsym225841* s) {
	NI L;
{	L = ((*sq) ? (*sq)->Sup.len : 0);
	{
		NI i_280528;
		NI HEX3Atmp_280542;
		NI res_280545;
		i_280528 = 0;
		HEX3Atmp_280542 = 0;
		HEX3Atmp_280542 = (NI)(L - ((NI) 1));
		res_280545 = ((NI) 0);
		{
			while (1) {
				if (!(res_280545 <= HEX3Atmp_280542)) goto LA3;
				i_280528 = res_280545;
				{
					if (!((*(*sq)->data[i_280528]).Sup.id == (*s).Sup.id)) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
				res_280545 += ((NI) 1);
			} LA3: ;
		}
	}
	(*sq) = (Tsymseq225811*) setLengthSeq(&((*sq))->Sup, sizeof(Tsym225841*), ((NI) ((NI)(L + ((NI) 1)))));
	asgnRefNoCycle((void**) (&(*sq)->data[L]), s);
	}BeforeRet: ;
}

N_NIMCALL(void, addconverter_280564)(Tcontext280023* c, Tsym225841* conv) {
	inclsym_280502((&(*c).converters), conv);
}

N_NIMCALL(void, addpattern_280575)(Tcontext280023* c, Tsym225841* p) {
	inclsym_280502((&(*c).patterns), p);
}
NIM_EXTERNC N_NOINLINE(void, compiler_semdataInit000)(void) {
	if (gowners_280291) nimGCunrefNoCycle(gowners_280291);
	gowners_280291 = (Tsymseq225811*) newSeqRC1((&NTI225811), 0);
}

NIM_EXTERNC N_NOINLINE(void, compiler_semdataDatInit000)(void) {
static TNimNode* TMP2028[38];
static TNimNode* TMP2029[8];
static TNimNode* TMP2031[2];
static TNimNode* TMP2032[2];
static TNimNode* TMP2054[2];
static TNimNode* TMP2057[5];
static TNimNode TMP931[63];
NTI280023.size = sizeof(Tcontext280023);
NTI280023.kind = 17;
NTI280023.base = (&NTI277005);
TMP2028[0] = &TMP931[1];
TMP931[1].kind = 1;
TMP931[1].offset = offsetof(Tcontext280023, module);
TMP931[1].typ = (&NTI225807);
TMP931[1].name = "module";
TMP2028[1] = &TMP931[2];
TMP931[2].kind = 1;
TMP931[2].offset = offsetof(Tcontext280023, currentscope);
TMP931[2].typ = (&NTI225837);
TMP931[2].name = "currentScope";
TMP2028[2] = &TMP931[3];
TMP931[3].kind = 1;
TMP931[3].offset = offsetof(Tcontext280023, importtable);
TMP931[3].typ = (&NTI225837);
TMP931[3].name = "importTable";
TMP2028[3] = &TMP931[4];
TMP931[4].kind = 1;
TMP931[4].offset = offsetof(Tcontext280023, toplevelscope);
TMP931[4].typ = (&NTI225837);
TMP931[4].name = "topLevelScope";
TMP2028[4] = &TMP931[5];
NTI280011.size = sizeof(Tproccon280011);
NTI280011.kind = 18;
NTI280011.base = 0;
TMP2029[0] = &TMP931[7];
TMP931[7].kind = 1;
TMP931[7].offset = offsetof(Tproccon280011, owner);
TMP931[7].typ = (&NTI225807);
TMP931[7].name = "owner";
TMP2029[1] = &TMP931[8];
TMP931[8].kind = 1;
TMP931[8].offset = offsetof(Tproccon280011, resultsym);
TMP931[8].typ = (&NTI225807);
TMP931[8].name = "resultSym";
TMP2029[2] = &TMP931[9];
TMP931[9].kind = 1;
TMP931[9].offset = offsetof(Tproccon280011, nestedloopcounter);
TMP931[9].typ = (&NTI108);
TMP931[9].name = "nestedLoopCounter";
TMP2029[3] = &TMP931[10];
TMP931[10].kind = 1;
TMP931[10].offset = offsetof(Tproccon280011, nestedblockcounter);
TMP931[10].typ = (&NTI108);
TMP931[10].name = "nestedBlockCounter";
TMP2029[4] = &TMP931[11];
TMP931[11].kind = 1;
TMP931[11].offset = offsetof(Tproccon280011, intrystmt);
TMP931[11].typ = (&NTI108);
TMP931[11].name = "inTryStmt";
TMP2029[5] = &TMP931[12];
TMP931[12].kind = 1;
TMP931[12].offset = offsetof(Tproccon280011, next);
TMP931[12].typ = (&NTI280009);
TMP931[12].name = "next";
TMP2029[6] = &TMP931[13];
TMP931[13].kind = 1;
TMP931[13].offset = offsetof(Tproccon280011, wasforwarded);
TMP931[13].typ = (&NTI138);
TMP931[13].name = "wasForwarded";
TMP2029[7] = &TMP931[14];
TMP931[14].kind = 1;
TMP931[14].offset = offsetof(Tproccon280011, bracketexpr);
TMP931[14].typ = (&NTI225801);
TMP931[14].name = "bracketExpr";
TMP931[6].len = 8; TMP931[6].kind = 2; TMP931[6].sons = &TMP2029[0];
NTI280011.node = &TMP931[6];
NTI280009.size = sizeof(Tproccon280011*);
NTI280009.kind = 22;
NTI280009.base = (&NTI280011);
NTI280009.marker = TMP2030;
TMP931[5].kind = 1;
TMP931[5].offset = offsetof(Tcontext280023, p);
TMP931[5].typ = (&NTI280009);
TMP931[5].name = "p";
TMP2028[5] = &TMP931[15];
TMP931[15].kind = 1;
TMP931[15].offset = offsetof(Tcontext280023, friendmodules);
TMP931[15].typ = (&NTI225811);
TMP931[15].name = "friendModules";
TMP2028[6] = &TMP931[16];
TMP931[16].kind = 1;
TMP931[16].offset = offsetof(Tcontext280023, instcounter);
TMP931[16].typ = (&NTI108);
TMP931[16].name = "instCounter";
TMP2028[7] = &TMP931[17];
TMP931[17].kind = 1;
TMP931[17].offset = offsetof(Tcontext280023, ambiguoussymbols);
TMP931[17].typ = (&NTI222056);
TMP931[17].name = "ambiguousSymbols";
TMP2028[8] = &TMP931[18];
TMP931[18].kind = 1;
TMP931[18].offset = offsetof(Tcontext280023, intypeclass);
TMP931[18].typ = (&NTI108);
TMP931[18].name = "inTypeClass";
TMP2028[9] = &TMP931[19];
TMP931[19].kind = 1;
TMP931[19].offset = offsetof(Tcontext280023, ingenericcontext);
TMP931[19].typ = (&NTI108);
TMP931[19].name = "inGenericContext";
TMP2028[10] = &TMP931[20];
TMP931[20].kind = 1;
TMP931[20].offset = offsetof(Tcontext280023, inunrolledcontext);
TMP931[20].typ = (&NTI108);
TMP931[20].name = "inUnrolledContext";
TMP2028[11] = &TMP931[21];
TMP931[21].kind = 1;
TMP931[21].offset = offsetof(Tcontext280023, compilescontextid);
TMP931[21].typ = (&NTI108);
TMP931[21].name = "compilesContextId";
TMP2028[12] = &TMP931[22];
TMP931[22].kind = 1;
TMP931[22].offset = offsetof(Tcontext280023, compilescontextidgenerator);
TMP931[22].typ = (&NTI108);
TMP931[22].name = "compilesContextIdGenerator";
TMP2028[13] = &TMP931[23];
TMP931[23].kind = 1;
TMP931[23].offset = offsetof(Tcontext280023, ingenericinst);
TMP931[23].typ = (&NTI108);
TMP931[23].name = "inGenericInst";
TMP2028[14] = &TMP931[24];
TMP931[24].kind = 1;
TMP931[24].offset = offsetof(Tcontext280023, converters);
TMP931[24].typ = (&NTI225811);
TMP931[24].name = "converters";
TMP2028[15] = &TMP931[25];
TMP931[25].kind = 1;
TMP931[25].offset = offsetof(Tcontext280023, patterns);
TMP931[25].typ = (&NTI225811);
TMP931[25].name = "patterns";
TMP2028[16] = &TMP931[26];
TMP931[26].kind = 1;
TMP931[26].offset = offsetof(Tcontext280023, optionstack);
TMP931[26].typ = (&NTI140028);
TMP931[26].name = "optionStack";
TMP2028[17] = &TMP931[27];
TMP931[27].kind = 1;
TMP931[27].offset = offsetof(Tcontext280023, symmapping);
TMP931[27].typ = (&NTI225859);
TMP931[27].name = "symMapping";
TMP2028[18] = &TMP931[28];
TMP931[28].kind = 1;
TMP931[28].offset = offsetof(Tcontext280023, libs);
TMP931[28].typ = (&NTI140028);
TMP931[28].name = "libs";
TMP2028[19] = &TMP931[29];
NTI280074.size = sizeof(TY280074);
NTI280074.kind = 25;
NTI280074.base = 0;
NTI280074.flags = 3;
TMP931[29].kind = 1;
TMP931[29].offset = offsetof(Tcontext280023, semconstexpr);
TMP931[29].typ = (&NTI280074);
TMP931[29].name = "semConstExpr";
TMP2028[20] = &TMP931[30];
NTI280079.size = sizeof(TY280079);
NTI280079.kind = 25;
NTI280079.base = 0;
NTI280079.flags = 3;
TMP931[30].kind = 1;
TMP931[30].offset = offsetof(Tcontext280023, semexpr);
TMP931[30].typ = (&NTI280079);
TMP931[30].name = "semExpr";
TMP2028[21] = &TMP931[31];
NTI280087.size = sizeof(TY280087);
NTI280087.kind = 25;
NTI280087.base = 0;
NTI280087.flags = 3;
TMP931[31].kind = 1;
TMP931[31].offset = offsetof(Tcontext280023, semtryexpr);
TMP931[31].typ = (&NTI280087);
TMP931[31].name = "semTryExpr";
TMP2028[22] = &TMP931[32];
NTI280095.size = sizeof(TY280095);
NTI280095.kind = 25;
NTI280095.base = 0;
NTI280095.flags = 3;
TMP931[32].kind = 1;
TMP931[32].offset = offsetof(Tcontext280023, semtryconstexpr);
TMP931[32].typ = (&NTI280095);
TMP931[32].name = "semTryConstExpr";
TMP2028[23] = &TMP931[33];
NTI280100.size = sizeof(TY280100);
NTI280100.kind = 25;
NTI280100.base = 0;
NTI280100.flags = 3;
TMP931[33].kind = 1;
TMP931[33].offset = offsetof(Tcontext280023, semoperand);
TMP931[33].typ = (&NTI280100);
TMP931[33].name = "semOperand";
TMP2028[24] = &TMP931[34];
NTI280108.size = sizeof(TY280108);
NTI280108.kind = 25;
NTI280108.base = 0;
NTI280108.flags = 3;
TMP931[34].kind = 1;
TMP931[34].offset = offsetof(Tcontext280023, semconstboolexpr);
TMP931[34].typ = (&NTI280108);
TMP931[34].name = "semConstBoolExpr";
TMP2028[25] = &TMP931[35];
NTI280113.size = sizeof(TY280113);
NTI280113.kind = 25;
NTI280113.base = 0;
NTI280113.flags = 3;
TMP931[35].kind = 1;
TMP931[35].offset = offsetof(Tcontext280023, semoverloadedcall);
TMP931[35].typ = (&NTI280113);
TMP931[35].name = "semOverloadedCall";
TMP2028[26] = &TMP931[36];
NTI280120.size = sizeof(TY280120);
NTI280120.kind = 25;
NTI280120.base = 0;
NTI280120.flags = 3;
TMP931[36].kind = 1;
TMP931[36].offset = offsetof(Tcontext280023, semtypenode);
TMP931[36].typ = (&NTI280120);
TMP931[36].name = "semTypeNode";
TMP2028[27] = &TMP931[37];
NTI280126.size = sizeof(TY576951);
NTI280126.kind = 18;
NTI280126.base = 0;
NTI280126.flags = 2;
TMP2031[0] = &TMP931[39];
TMP931[39].kind = 1;
TMP931[39].offset = offsetof(TY576951, Field0);
TMP931[39].typ = (&NTI153);
TMP931[39].name = "Field0";
TMP2031[1] = &TMP931[40];
TMP931[40].kind = 1;
TMP931[40].offset = offsetof(TY576951, Field1);
TMP931[40].typ = (&NTI576953);
TMP931[40].name = "Field1";
TMP931[38].len = 2; TMP931[38].kind = 2; TMP931[38].sons = &TMP2031[0];
NTI280126.node = &TMP931[38];
TMP931[37].kind = 1;
TMP931[37].offset = offsetof(Tcontext280023, seminferredlambda);
TMP931[37].typ = (&NTI280126);
TMP931[37].name = "semInferredLambda";
TMP2028[28] = &TMP931[41];
NTI280132.size = sizeof(TY576951);
NTI280132.kind = 18;
NTI280132.base = 0;
NTI280132.flags = 2;
TMP2032[0] = &TMP931[43];
TMP931[43].kind = 1;
TMP931[43].offset = offsetof(TY576951, Field0);
TMP931[43].typ = (&NTI153);
TMP931[43].name = "Field0";
TMP2032[1] = &TMP931[44];
TMP931[44].kind = 1;
TMP931[44].offset = offsetof(TY576951, Field1);
TMP931[44].typ = (&NTI576953);
TMP931[44].name = "Field1";
TMP931[42].len = 2; TMP931[42].kind = 2; TMP931[42].sons = &TMP2032[0];
NTI280132.node = &TMP931[42];
TMP931[41].kind = 1;
TMP931[41].offset = offsetof(Tcontext280023, semgenerateinstance);
TMP931[41].typ = (&NTI280132);
TMP931[41].name = "semGenerateInstance";
TMP2028[29] = &TMP931[45];
TMP931[45].kind = 1;
TMP931[45].offset = offsetof(Tcontext280023, includedfiles);
TMP931[45].typ = (&NTI222056);
TMP931[45].name = "includedFiles";
TMP2028[30] = &TMP931[46];
TMP931[46].kind = 1;
TMP931[46].offset = offsetof(Tcontext280023, userpragmas);
TMP931[46].typ = (&NTI225813);
TMP931[46].name = "userPragmas";
TMP2028[31] = &TMP931[47];
TMP931[47].kind = 1;
TMP931[47].offset = offsetof(Tcontext280023, evalcontext);
TMP931[47].typ = (&NTI279046);
TMP931[47].name = "evalContext";
TMP2028[32] = &TMP931[48];
TMP931[48].kind = 1;
TMP931[48].offset = offsetof(Tcontext280023, unknownidents);
TMP931[48].typ = (&NTI222056);
TMP931[48].name = "unknownIdents";
TMP2028[33] = &TMP931[49];
NTI280013.size = sizeof(Tinstantiationpair280013);
NTI280013.kind = 18;
NTI280013.base = 0;
NTI280013.flags = 2;
TMP2054[0] = &TMP931[51];
TMP931[51].kind = 1;
TMP931[51].offset = offsetof(Tinstantiationpair280013, genericsym);
TMP931[51].typ = (&NTI225807);
TMP931[51].name = "genericSym";
TMP2054[1] = &TMP931[52];
TMP931[52].kind = 1;
TMP931[52].offset = offsetof(Tinstantiationpair280013, inst);
TMP931[52].typ = (&NTI225833);
TMP931[52].name = "inst";
TMP931[50].len = 2; TMP931[50].kind = 2; TMP931[50].sons = &TMP2054[0];
NTI280013.node = &TMP931[50];
NTI280143.size = sizeof(TY280143*);
NTI280143.kind = 24;
NTI280143.base = (&NTI280013);
NTI280143.flags = 2;
NTI280143.marker = TMP2055;
TMP931[49].kind = 1;
TMP931[49].offset = offsetof(Tcontext280023, generics);
TMP931[49].typ = (&NTI280143);
TMP931[49].name = "generics";
TMP2028[34] = &TMP931[53];
TMP931[53].kind = 1;
TMP931[53].offset = offsetof(Tcontext280023, lastgenericidx);
TMP931[53].typ = (&NTI108);
TMP931[53].name = "lastGenericIdx";
TMP2028[35] = &TMP931[54];
TMP931[54].kind = 1;
TMP931[54].offset = offsetof(Tcontext280023, hloloopdetector);
TMP931[54].typ = (&NTI108);
TMP931[54].name = "hloLoopDetector";
TMP2028[36] = &TMP931[55];
TMP931[55].kind = 1;
TMP931[55].offset = offsetof(Tcontext280023, inparallelstmt);
TMP931[55].typ = (&NTI108);
TMP931[55].name = "inParallelStmt";
TMP2028[37] = &TMP931[56];
NTI280148.size = sizeof(TY280148);
NTI280148.kind = 25;
NTI280148.base = 0;
NTI280148.flags = 3;
TMP931[56].kind = 1;
TMP931[56].offset = offsetof(Tcontext280023, insttypeboundop);
TMP931[56].typ = (&NTI280148);
TMP931[56].name = "instTypeBoundOp";
TMP931[0].len = 38; TMP931[0].kind = 2; TMP931[0].sons = &TMP2028[0];
NTI280023.node = &TMP931[0];
NTI280021.size = sizeof(Tcontext280023*);
NTI280021.kind = 22;
NTI280021.base = (&NTI280023);
NTI280021.marker = TMP2056;
NTI280005.size = sizeof(Toptionentry280005);
NTI280005.kind = 17;
NTI280005.base = (&NTI140022);
TMP2057[0] = &TMP931[58];
TMP931[58].kind = 1;
TMP931[58].offset = offsetof(Toptionentry280005, options);
TMP931[58].typ = (&NTI167017);
TMP931[58].name = "options";
TMP2057[1] = &TMP931[59];
TMP931[59].kind = 1;
TMP931[59].offset = offsetof(Toptionentry280005, defaultcc);
TMP931[59].typ = (&NTI225005);
TMP931[59].name = "defaultCC";
TMP2057[2] = &TMP931[60];
TMP931[60].kind = 1;
TMP931[60].offset = offsetof(Toptionentry280005, dynlib);
TMP931[60].typ = (&NTI225839);
TMP931[60].name = "dynlib";
TMP2057[3] = &TMP931[61];
TMP931[61].kind = 1;
TMP931[61].offset = offsetof(Toptionentry280005, notes);
TMP931[61].typ = (&NTI190348);
TMP931[61].name = "notes";
TMP2057[4] = &TMP931[62];
TMP931[62].kind = 1;
TMP931[62].offset = offsetof(Toptionentry280005, otherpragmas);
TMP931[62].typ = (&NTI225801);
TMP931[62].name = "otherPragmas";
TMP931[57].len = 5; TMP931[57].kind = 2; TMP931[57].sons = &TMP2057[0];
NTI280005.node = &TMP931[57];
NTI280007.size = sizeof(Toptionentry280005*);
NTI280007.kind = 22;
NTI280007.base = (&NTI280005);
NTI280007.marker = TMP2061;
}

