/* 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 Cell49147 Cell49147;
typedef struct Cellseq49163 Cellseq49163;
typedef struct Gcheap51218 Gcheap51218;
typedef struct Gcstack51216 Gcstack51216;
typedef struct Cellset49159 Cellset49159;
typedef struct Pagedesc49155 Pagedesc49155;
typedef struct Memregion31090 Memregion31090;
typedef struct Smallchunk31042 Smallchunk31042;
typedef struct Llchunk31084 Llchunk31084;
typedef struct Bigchunk31044 Bigchunk31044;
typedef struct Intset31017 Intset31017;
typedef struct Trunk31013 Trunk31013;
typedef struct Avlnode31088 Avlnode31088;
typedef struct Gcstat51214 Gcstat51214;
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 Tlinkedlist141028 Tlinkedlist141028;
typedef struct Tlistentry141022 Tlistentry141022;
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 TY91159 TY91159;
typedef struct Tident198021 Tident198021;
typedef struct Tnodeseq225803 Tnodeseq225803;
typedef struct TY225944 TY225944;
typedef struct Basechunk31040 Basechunk31040;
typedef struct Freecell31032 Freecell31032;
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  Cell49147  {
NI refcount;
TNimType* typ;
};
struct  Cellseq49163  {
NI len;
NI cap;
Cell49147** d;
};
struct  Cellset49159  {
NI counter;
NI max;
Pagedesc49155* head;
Pagedesc49155** data;
};
typedef Smallchunk31042* TY31105[512];
typedef Trunk31013* Trunkbuckets31015[256];
struct  Intset31017  {
Trunkbuckets31015 data;
};
struct  Memregion31090  {
NI minlargeobj;
NI maxlargeobj;
TY31105 freesmallchunks;
Llchunk31084* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk31044* freechunkslist;
Intset31017 chunkstarts;
Avlnode31088* root;
Avlnode31088* deleted;
Avlnode31088* last;
Avlnode31088* freeavlnodes;
};
struct  Gcstat51214  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51218  {
Gcstack51216* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq49163 zct;
Cellseq49163 decstack;
Cellset49159 cycleroots;
Cellseq49163 tempstack;
NI recgclock;
Memregion31090 region;
Gcstat51214 stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tpasscontext277005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Intset222056  {
NI counter;
NI max;
Trunk222052* head;
Trunkseq222054* data;
};
struct  Tlinkedlist141028  {
Tlistentry141022* head;
Tlistentry141022* 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;
Tlinkedlist141028 optionstack;
Tidtable225859 symmapping;
Tlinkedlist141028 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  Tlistentry141022  {
  TNimObject Sup;
Tlistentry141022* prev;
Tlistentry141022* next;
};
struct  Toptionentry280005  {
  Tlistentry141022 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 TY91159 {
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  {
  Tlistentry141022 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  Gcstack51216  {
Gcstack51216* prev;
Gcstack51216* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY31021[16];
struct  Pagedesc49155  {
Pagedesc49155* next;
NI key;
TY31021 bits;
};
struct  Basechunk31040  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk31042  {
  Basechunk31040 Sup;
Smallchunk31042* next;
Smallchunk31042* prev;
Freecell31032* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk31084  {
NI size;
NI acc;
Llchunk31084* next;
};
struct  Bigchunk31044  {
  Basechunk31040 Sup;
Bigchunk31044* next;
Bigchunk31044* prev;
NI align;
NF data;
};
struct  Trunk31013  {
Trunk31013* next;
NI key;
TY31021 bits;
};
typedef Avlnode31088* TY31095[2];
struct  Avlnode31088  {
TY31095 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope225835  {
NI depthlevel;
Tstrtable225813 symbols;
Tnodeseq225803* usingsyms;
Tscope225835* parent;
};
struct  Trunk222052  {
Trunk222052* next;
NI key;
TY31021 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  Freecell31032  {
Freecell31032* 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(Cell49147*, usrtocell_52846)(void* usr);
static N_INLINE(void, rtladdzct_54404)(Cell49147* c);
N_NOINLINE(void, addzct_52817)(Cellseq49163* s, Cell49147* 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, TMP2026)(void* p, NI op);
N_NIMCALL(void, TMP2051)(void* p, NI op);
N_NIMCALL(void, TMP2052)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(void, initintset_222927)(Intset222056* Result);
N_NIMCALL(void, initlinkedlist_141043)(Tlinkedlist141028* list);
N_NIMCALL(void, append_141053)(Tlinkedlist141028* list, Tlistentry141022* entry);
N_NIMCALL(Toptionentry280005*, newoptionentry_280196)(void);
N_NIMCALL(void, TMP2057)(void* p, NI op);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_55222)(Cell49147* c);
static N_INLINE(NIM_BOOL, canbecycleroot_52867)(Cell49147* c);
static N_INLINE(void, rtladdcycleroot_53623)(Cell49147* c);
N_NOINLINE(void, incl_49865)(Cellset49159* s, Cell49147* cell);
static N_INLINE(void, decref_54804)(Cell49147* 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)(TY91159 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_86004, 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(TMP2745, "compiler/semdata.nim", 20);
NIM_CONST TY91159 TMP2744 = {((NimStringDesc*) &TMP2745),
((NI) 226)}
;
NIM_CONST TY91159 TMP2759 = {((NimStringDesc*) &TMP2745),
((NI) 222)}
;
STRING_LITERAL(TMP3117, "<", 1);
STRING_LITERAL(TMP3290, "popOwner", 8);
NIM_CONST TY91159 TMP3333 = {((NimStringDesc*) &TMP2745),
((NI) 215)}
;
Tsymseq225811* gowners_280291;
extern TNimType NTI225811; /* TSymSeq */
extern Gcheap51218 gch_51259;
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 NTI141028; /* 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 NTI141022; /* 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(Cell49147*, usrtocell_52846)(void* usr) {
	Cell49147* result;
	result = 0;
	result = ((Cell49147*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(Cell49147))))));
	return result;
}

static N_INLINE(void, rtladdzct_54404)(Cell49147* c) {
	addzct_52817((&gch_51259.zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell49147* c;
	c = usrtocell_52846(p);
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_54404(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, TMP2026)(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, TMP2051)(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, TMP2052)(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, TMP2057)(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_52867)(Cell49147* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).typ).flags &(1<<((((NU8) 1))&7)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_53623)(Cell49147* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_49865((&gch_51259.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, incref_55222)(Cell49147* c) {
	(*c).refcount = (NI)((NU32)((*c).refcount) + (NU32)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_52867(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_53623(c);
	}
	LA4: ;
}

static N_INLINE(void, decref_54804)(Cell49147* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_54404(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_52867(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_53623(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Cell49147* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_52846(src);
		incref_55222(LOC5);
	}
	LA3: ;
	{
		Cell49147* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_52846((*dest));
		decref_54804(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) {
	{
		Cell49147* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_52846(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell49147* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_52846((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA11;
			rtladdzct_54404(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

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

