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

#include "nimbase.h"
#include <string.h>
typedef struct Tsymseq214792 Tsymseq214792;
typedef struct Tsym214822 Tsym214822;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Cell47505 Cell47505;
typedef struct Cellseq47521 Cellseq47521;
typedef struct Gcheap49818 Gcheap49818;
typedef struct Gcstack49816 Gcstack49816;
typedef struct Cellset47517 Cellset47517;
typedef struct Pagedesc47513 Pagedesc47513;
typedef struct Memregion29688 Memregion29688;
typedef struct Smallchunk29640 Smallchunk29640;
typedef struct Llchunk29682 Llchunk29682;
typedef struct Bigchunk29642 Bigchunk29642;
typedef struct Intset29614 Intset29614;
typedef struct Trunk29610 Trunk29610;
typedef struct Avlnode29686 Avlnode29686;
typedef struct Gcstat49814 Gcstat49814;
typedef struct Ttype214828 Ttype214828;
typedef struct Tcontext264020 Tcontext264020;
typedef struct Tpasscontext261002 Tpasscontext261002;
typedef struct TNimObject TNimObject;
typedef struct Tscope214816 Tscope214816;
typedef struct Tproccon264008 Tproccon264008;
typedef struct Intset211035 Intset211035;
typedef struct Trunk211031 Trunk211031;
typedef struct Trunkseq211033 Trunkseq211033;
typedef struct Tlinkedlist135016 Tlinkedlist135016;
typedef struct Tlistentry135010 Tlistentry135010;
typedef struct Tidtable214840 Tidtable214840;
typedef struct Tidpairseq214838 Tidpairseq214838;
typedef struct Tnode214790 Tnode214790;
typedef struct Tlineinfo182337 Tlineinfo182337;
typedef struct Tstrtable214794 Tstrtable214794;
typedef struct Tctx263036 Tctx263036;
typedef struct TY264140 TY264140;
typedef struct TY531873 TY531873;
typedef struct TY531876 TY531876;
typedef struct Tinstantiationpair264010 Tinstantiationpair264010;
typedef struct Tinstantiation214812 Tinstantiation214812;
typedef struct Toptionentry264002 Toptionentry264002;
typedef struct Tlib214808 Tlib214808;
typedef struct Tidobj189006 Tidobj189006;
typedef struct Ttypeseq214824 Ttypeseq214824;
typedef struct Tloc214804 Tloc214804;
typedef struct Ropeobj169006 Ropeobj169006;
typedef struct NimStringDesc NimStringDesc;
typedef struct TY88487 TY88487;
typedef struct Tident189012 Tident189012;
typedef struct Tnodeseq214784 Tnodeseq214784;
typedef struct TY214925 TY214925;
typedef struct Basechunk29638 Basechunk29638;
typedef struct Freecell29630 Freecell29630;
typedef struct Tidpair214836 Tidpair214836;
typedef struct TY263242 TY263242;
typedef struct TY183090 TY183090;
typedef struct PprocHEX3Aobjecttype263221 PprocHEX3Aobjecttype263221;
typedef struct TY263261 TY263261;
typedef struct TY214913 TY214913;
typedef struct TY263222 TY263222;
typedef struct TY263227 TY263227;
typedef struct TY263262 TY263262;
typedef struct Vmargs263030 Vmargs263030;
typedef struct Tblock263018 Tblock263018;
typedef struct TY263202 TY263202;
struct  TGenericSeq  {
NI len;
NI reserved;
};
typedef N_NIMCALL_PTR(void, TY3489) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3494) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3489 marker;
TY3494 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Cell47505  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47521  {
NI len;
NI cap;
Cell47505** d;
};
struct  Cellset47517  {
NI counter;
NI max;
Pagedesc47513* head;
Pagedesc47513** data;
};
typedef Smallchunk29640* TY29703[512];
typedef Trunk29610* Trunkbuckets29612[256];
struct  Intset29614  {
Trunkbuckets29612 data;
};
struct  Memregion29688  {
NI minlargeobj;
NI maxlargeobj;
TY29703 freesmallchunks;
Llchunk29682* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk29642* freechunkslist;
Intset29614 chunkstarts;
Avlnode29686* root;
Avlnode29686* deleted;
Avlnode29686* last;
Avlnode29686* freeavlnodes;
};
struct  Gcstat49814  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap49818  {
Gcstack49816* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq47521 zct;
Cellseq47521 decstack;
Cellset47517 cycleroots;
Cellseq47521 tempstack;
NI recgclock;
Memregion29688 region;
Gcstat49814 stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tpasscontext261002  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Intset211035  {
NI counter;
NI max;
Trunk211031* head;
Trunkseq211033* data;
};
struct  Tlinkedlist135016  {
Tlistentry135010* head;
Tlistentry135010* tail;
NI counter;
};
struct  Tidtable214840  {
NI counter;
Tidpairseq214838* data;
};
typedef N_NIMCALL_PTR(Tnode214790*, TY264071) (Tcontext264020* c, Tnode214790* n);
typedef N_NIMCALL_PTR(Tnode214790*, TY264076) (Tcontext264020* c, Tnode214790* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode214790*, TY264084) (Tcontext264020* c, Tnode214790* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode214790*, TY264092) (Tcontext264020* c, Tnode214790* n);
typedef N_NIMCALL_PTR(Tnode214790*, TY264097) (Tcontext264020* c, Tnode214790* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode214790*, TY264105) (Tcontext264020* c, Tnode214790* n);
typedef N_NIMCALL_PTR(Tnode214790*, TY264110) (Tcontext264020* c, Tnode214790* n, Tnode214790* norig, NU32 filter);
typedef N_NIMCALL_PTR(Ttype214828*, TY264117) (Tcontext264020* c, Tnode214790* n, Ttype214828* prev);
typedef struct {
N_NIMCALL_PTR(Tnode214790*, ClPrc) (Tcontext264020* c, Tidtable214840 pt, Tnode214790* n, void* ClEnv);
void* ClEnv;
} TY264123;
typedef struct {
N_NIMCALL_PTR(Tsym214822*, ClPrc) (Tcontext264020* c, Tsym214822* fn, Tidtable214840 pt, Tlineinfo182337 info, void* ClEnv);
void* ClEnv;
} TY264129;
struct  Tstrtable214794  {
NI counter;
Tsymseq214792* data;
};
typedef N_NIMCALL_PTR(Tsym214822*, TY264145) (Tcontext264020* c, Tsym214822* dc, Ttype214828* t, Tlineinfo182337 info, NU8 op);
struct  Tcontext264020  {
  Tpasscontext261002 Sup;
Tsym214822* module;
Tscope214816* currentscope;
Tscope214816* importtable;
Tscope214816* toplevelscope;
Tproccon264008* p;
Tsymseq214792* friendmodules;
NI instcounter;
Intset211035 ambiguoussymbols;
NI intypeclass;
NI ingenericcontext;
NI inunrolledcontext;
NI compilescontextid;
NI compilescontextidgenerator;
NI ingenericinst;
Tsymseq214792* converters;
Tsymseq214792* patterns;
Tlinkedlist135016 optionstack;
Tidtable214840 symmapping;
Tlinkedlist135016 libs;
TY264071 semconstexpr;
TY264076 semexpr;
TY264084 semtryexpr;
TY264092 semtryconstexpr;
TY264097 semoperand;
TY264105 semconstboolexpr;
TY264110 semoverloadedcall;
TY264117 semtypenode;
TY264123 seminferredlambda;
TY264129 semgenerateinstance;
Intset211035 includedfiles;
Tstrtable214794 userpragmas;
Tctx263036* evalcontext;
Intset211035 unknownidents;
TY264140* generics;
NI lastgenericidx;
NI hloloopdetector;
NI inparallelstmt;
TY264145 insttypeboundop;
};
struct  Tproccon264008  {
Tsym214822* owner;
Tsym214822* resultsym;
NI nestedloopcounter;
NI nestedblockcounter;
NI intrystmt;
Tproccon264008* next;
NIM_BOOL wasforwarded;
Tnode214790* bracketexpr;
};
struct TY531873 {
void* Field0;
TY531876* Field1;
};
struct  Tinstantiationpair264010  {
Tsym214822* genericsym;
Tinstantiation214812* inst;
};
struct  Tlistentry135010  {
  TNimObject Sup;
Tlistentry135010* prev;
Tlistentry135010* next;
};
struct  Toptionentry264002  {
  Tlistentry135010 Sup;
NU32 options;
NU8 defaultcc;
Tlib214808* dynlib;
NU64 notes;
Tnode214790* otherpragmas;
};
typedef Tsym214822* TY264331[1];
struct  Tidobj189006  {
  TNimObject Sup;
NI id;
};
struct  Tloc214804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype214828* t;
Ropeobj169006* r;
Ropeobj169006* heaproot;
};
struct  Ttype214828  {
  Tidobj189006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq214824* sons;
Tnode214790* n;
Tsym214822* owner;
Tsym214822* sym;
Tsym214822* destructor;
Tsym214822* deepcopy;
Tsym214822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc214804 loc;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct TY88487 {
NimStringDesc* Field0;
NI Field1;
};
struct  Tlineinfo182337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode214790  {
Ttype214828* typ;
Tlineinfo182337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym214822* sym;
} S4;
struct {Tident189012* ident;
} S5;
struct {Tnodeseq214784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef Tnode214790* TY230280[1];
typedef Ttype214828* TY366877[1];
typedef Ttype214828* TY264646[2];
typedef Tnode214790* TY382939[2];
struct  Tlib214808  {
  Tlistentry135010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj169006* name;
Tnode214790* path;
};
struct  Tsym214822  {
  Tidobj189006 Sup;
NU8 kind;
union{
struct {Ttypeseq214824* typeinstcache;
Tscope214816* typscope;
} S1;
struct {TY214925* procinstcache;
Tsym214822* gcunsafetyreason;
} S2;
struct {TY214925* usedgenerics;
Tstrtable214794 tab;
} S3;
struct {Tsym214822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype214828* typ;
Tident189012* name;
Tlineinfo182337 info;
Tsym214822* owner;
NU32 flags;
Tnode214790* ast;
NU32 options;
NI position;
NI offset;
Tloc214804 loc;
Tlib214808* annex;
Tnode214790* constraint;
};
struct  Gcstack49816  {
Gcstack49816* prev;
Gcstack49816* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29619[8];
struct  Pagedesc47513  {
Pagedesc47513* next;
NI key;
TY29619 bits;
};
struct  Basechunk29638  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk29640  {
  Basechunk29638 Sup;
Smallchunk29640* next;
Smallchunk29640* prev;
Freecell29630* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk29682  {
NI size;
NI acc;
Llchunk29682* next;
};
struct  Bigchunk29642  {
  Basechunk29638 Sup;
Bigchunk29642* next;
Bigchunk29642* prev;
NI align;
NF data;
};
struct  Trunk29610  {
Trunk29610* next;
NI key;
TY29619 bits;
};
typedef Avlnode29686* TY29693[2];
struct  Avlnode29686  {
TY29693 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope214816  {
NI depthlevel;
Tstrtable214794 symbols;
Tnodeseq214784* usingsyms;
Tscope214816* parent;
};
struct  Trunk211031  {
Trunk211031* next;
NI key;
TY29619 bits;
};
struct  Tidpair214836  {
Tidobj189006* key;
TNimObject* val;
};
struct  Tctx263036  {
  Tpasscontext261002 Sup;
TY263242* code;
TY183090* debug;
Tnode214790* globals;
Tnode214790* constants;
Ttypeseq214824* types;
Tnode214790* currentexceptiona;
Tnode214790* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype263221* prc;
Tsym214822* module;
Tnode214790* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo182337 comesfromheuristic;
TY263261* callbacks;
NimStringDesc* errorflag;
};
struct TY531876 {
char dummy;
};
struct  Tinstantiation214812  {
Tsym214822* sym;
Ttypeseq214824* concretetypes;
TY214913* usedby;
NI compilesid;
};
struct  Ropeobj169006  {
  TNimObject Sup;
Ropeobj169006* left;
Ropeobj169006* right;
NI length;
NimStringDesc* data;
};
struct  Tident189012  {
  Tidobj189006 Sup;
NimStringDesc* s;
Tident189012* next;
NI h;
};
struct  Freecell29630  {
Freecell29630* next;
NI zerofield;
};
struct TY263227 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY263227 TY263230[256];
struct  PprocHEX3Aobjecttype263221  {
TY263222* blocks;
Tsym214822* sym;
TY263230 slots;
NI maxslots;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs263030* args, void* ClEnv);
void* ClEnv;
} Vmcallback263032;
struct TY263262 {
NimStringDesc* Field0;
Vmcallback263032 Field1;
};
struct  Tblock263018  {
Tsym214822* label;
TY263202* fixups;
};
struct  Vmargs263030  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode214790* currentexception;
};
struct Tsymseq214792 {
  TGenericSeq Sup;
  Tsym214822* data[SEQ_DECL_SIZE];
};
struct TY264140 {
  TGenericSeq Sup;
  Tinstantiationpair264010 data[SEQ_DECL_SIZE];
};
struct Ttypeseq214824 {
  TGenericSeq Sup;
  Ttype214828* data[SEQ_DECL_SIZE];
};
struct Tnodeseq214784 {
  TGenericSeq Sup;
  Tnode214790* data[SEQ_DECL_SIZE];
};
struct Trunkseq211033 {
  TGenericSeq Sup;
  Trunk211031* data[SEQ_DECL_SIZE];
};
struct Tidpairseq214838 {
  TGenericSeq Sup;
  Tidpair214836 data[SEQ_DECL_SIZE];
};
struct TY214925 {
  TGenericSeq Sup;
  Tinstantiation214812* data[SEQ_DECL_SIZE];
};
struct TY263242 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY183090 {
  TGenericSeq Sup;
  Tlineinfo182337 data[SEQ_DECL_SIZE];
};
struct TY263261 {
  TGenericSeq Sup;
  TY263262 data[SEQ_DECL_SIZE];
};
struct TY214913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct TY263222 {
  TGenericSeq Sup;
  Tblock263018 data[SEQ_DECL_SIZE];
};
struct TY263202 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell47505*, usrtocell_51440)(void* usr);
static N_INLINE(void, rtladdzct_53001)(Cell47505* c);
N_NOINLINE(void, addzct_51417)(Cellseq47521* s, Cell47505* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(Ttype214828*, newtype_217107)(NU8 kind, Tsym214822* owner);
N_NIMCALL(Tsym214822*, getcurrowner_264209)(void);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP2063)(void* p, NI op);
N_NIMCALL(void, TMP2088)(void* p, NI op);
N_NIMCALL(void, TMP2089)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(void, initintset_211885)(Intset211035* Result);
N_NIMCALL(void, initlinkedlist_135028)(Tlinkedlist135016* list);
N_NIMCALL(void, append_135032)(Tlinkedlist135016* list, Tlistentry135010* entry);
N_NIMCALL(Toptionentry264002*, newoptionentry_264171)(void);
N_NIMCALL(void, TMP2094)(void* p, NI op);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_53819)(Cell47505* c);
static N_INLINE(NIM_BOOL, canbecycleroot_51458)(Cell47505* c);
static N_INLINE(void, rtladdcycleroot_52220)(Cell47505* c);
N_NOINLINE(void, incl_48247)(Cellset47517* s, Cell47505* cell);
static N_INLINE(void, decref_53401)(Cell47505* c);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(void, initstrtable_218001)(Tstrtable214794* x);
N_NIMCALL(Ttype214828*, newtypes_264184)(NU8 kind, Tcontext264020* c);
N_NIMCALL(void, addsonskipintlit_258680)(Ttype214828* father, Ttype214828* son);
N_NIMCALL(void, internalerror_187113)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_187183)(TY88487 x);
N_NIMCALL(void, globalerror_187071)(Tlineinfo182337 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_233044)(Tnode214790* n, NU8 renderflags);
N_NIMCALL(NI, sonslen_217351)(Tnode214790* n);
N_NIMCALL(void, illformedast_264950)(Tnode214790* n);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_84004, TNimType* mt);
N_NIMCALL(Tnode214790*, newnodei_216248)(NU8 kind, Tlineinfo182337 info);
N_NIMCALL(void, addson_216807)(Tnode214790* father, Tnode214790* son);
N_NIMCALL(Tnode214790*, newinttypenode_215665)(NU8 kind, NI64 intval, Ttype214828* typ);
N_NIMCALL(Ttype214828*, newtypewithsons_264601)(Tcontext264020* c, NU8 kind, Ttypeseq214824* sons);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, propagatetoowner_218190)(Ttype214828* owner, Ttype214828* elem);
N_NIMCALL(Ttype214828*, getsystype_258130)(NU8 kind);
N_NIMCALL(Tnode214790*, newnode_216601)(NU8 kind, Tlineinfo182337 info, Tnodeseq214784* sons, Ttype214828* typ);
N_NIMCALL(Tnode214790*, makestaticexpr_264608)(Tcontext264020* c, Tnode214790* n);
N_NIMCALL(Tnode214790*, nminusone_264828)(Tnode214790* n);
N_NIMCALL(Tnode214790*, newsymnode_216234)(Tsym214822* sym);
N_NIMCALL(Tsym214822*, getsysmagic_258079)(NimStringDesc* name, NU8 m);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, localerror_187080)(Tlineinfo182337 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(Ttype214828*, errortype_264901)(Tcontext264020* c);
N_NIMCALL(Ttype214828*, maketypedesc_264523)(Tcontext264020* c, Ttype214828* typ);
N_NIMCALL(Tsym214822*, linkto_215854)(Tsym214822* s, Ttype214828* t);
N_NIMCALL(Tsym214822*, newsym_215683)(NU8 symkind, Tident189012* name, Tsym214822* owner, Tlineinfo182337 info);
N_NIMCALL(Tnode214790*, newsymnode_216241)(Tsym214822* sym, Tlineinfo182337 info);
N_NIMCALL(void, inclsym_264393)(Tsymseq214792** sq, Tsym214822* s);
STRING_LITERAL(TMP2788, "compiler/semdata.nim", 20);
NIM_CONST TY88487 TMP2787 = {((NimStringDesc*) &TMP2788),
((NI) 226)}
;
NIM_CONST TY88487 TMP2802 = {((NimStringDesc*) &TMP2788),
((NI) 222)}
;
STRING_LITERAL(TMP3159, "<", 1);
STRING_LITERAL(TMP3328, "popOwner", 8);
NIM_CONST TY88487 TMP3371 = {((NimStringDesc*) &TMP2788),
((NI) 215)}
;
Tsymseq214792* gowners_264233;
extern TNimType NTI214792; /* TSymSeq */
extern Gcheap49818 gch_49859;
extern TNimType NTI261002; /* TPassContext */
TNimType NTI264020; /* TContext */
extern TNimType NTI214788; /* PSym */
extern TNimType NTI214818; /* PScope */
TNimType NTI264008; /* TProcCon */
extern TNimType NTI104; /* int */
extern TNimType NTI130; /* bool */
extern TNimType NTI214782; /* PNode */
TNimType NTI264006; /* PProcCon */
extern TNimType NTI211035; /* IntSet */
extern TNimType NTI135016; /* TLinkedList */
extern TNimType NTI214840; /* TIdTable */
TNimType NTI264071; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI264076; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI264084; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI264092; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI264097; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI264105; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI264110; /* proc (c: PContext, n: PNode, nOrig: PNode, filter: TSymKinds): PNode */
TNimType NTI264117; /* proc (c: PContext, n: PNode, prev: PType): PType */
TNimType NTI264123; /* (pointer, ref tuple[]) */
extern TNimType NTI142; /* pointer */
extern TNimType NTI531875; /* ref tuple[] */
TNimType NTI264129; /* (pointer, ref tuple[]) */
extern TNimType NTI214794; /* TStrTable */
extern TNimType NTI263034; /* PCtx */
TNimType NTI264010; /* TInstantiationPair */
extern TNimType NTI214814; /* PInstantiation */
TNimType NTI264140; /* seq[TInstantiationPair] */
TNimType NTI264145; /* proc (c: PContext, dc: PSym, t: PType, info: TLineInfo, op: TTypeAttachedOp): PSym */
TNimType NTI264018; /* PContext */
extern TNimType NTI135010; /* TListEntry */
TNimType NTI264002; /* TOptionEntry */
extern TNimType NTI160011; /* TOptions */
extern TNimType NTI214002; /* TCallingConvention */
extern TNimType NTI214820; /* PLib */
extern TNimType NTI182333; /* TNoteKinds */
TNimType NTI264004; /* POptionEntry */
extern NU32 goptions_160119;
extern NU64 gnotes_183077;
extern TNimType NTI214824; /* TTypeSeq */
extern TNimType NTI214784; /* TNodeSeq */
extern TNimType NTI214808; /* TLib */
extern Tident189012* idanon_189455;

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

static N_INLINE(void, rtladdzct_53001)(Cell47505* c) {
	addzct_51417((&gch_49859.zct), c);
}

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

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

N_NIMCALL(Ttype214828*, newtypes_264184)(NU8 kind, Tcontext264020* c) {
	Ttype214828* result;
	Tsym214822* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_264209();
	result = newtype_217107(kind, LOC1);
	return result;
}
N_NIMCALL(void, TMP2063)(void* p, NI op) {
	Tproccon264008* a;
	a = (Tproccon264008*)p;
	nimGCvisit((void*)(*a).owner, op);
	nimGCvisit((void*)(*a).resultsym, op);
	nimGCvisit((void*)(*a).next, op);
	nimGCvisit((void*)(*a).bracketexpr, op);
}
N_NIMCALL(void, TMP2088)(void* p, NI op) {
	TY264140* a;
	NI LOC1;
	a = (TY264140*)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, TMP2089)(void* p, NI op) {
	Tcontext264020* a;
	a = (Tcontext264020*)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, TMP2094)(void* p, NI op) {
	Toptionentry264002* a;
	a = (Toptionentry264002*)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_51458)(Cell47505* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).typ).flags &(1U<<((NU)(((NU8) 1))&7U)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_52220)(Cell47505* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_48247((&gch_49859.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, incref_53819)(Cell47505* c) {
	(*c).refcount = (NI)((NU64)((*c).refcount) + (NU64)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_51458(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_52220(c);
	}
	LA4: ;
}

static N_INLINE(void, decref_53401)(Cell47505* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3;
		rtladdzct_53001(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_51458(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_52220(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Cell47505* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_51440(src);
		incref_53819(LOC5);
	}
	LA3: ;
	{
		Cell47505* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_51440((*dest));
		decref_53401(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(Toptionentry264002*, newoptionentry_264171)(void) {
	Toptionentry264002* result;
	result = 0;
	result = (Toptionentry264002*) newObj((&NTI264004), sizeof(Toptionentry264002));
	(*result).Sup.Sup.m_type = (&NTI264002);
	(*result).options = goptions_160119;
	(*result).defaultcc = ((NU8) 0);
	asgnRef((void**) (&(*result).dynlib), NIM_NIL);
	(*result).notes = gnotes_183077;
	return result;
}

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

N_NIMCALL(Tcontext264020*, newcontext_264165)(Tsym214822* module) {
	Tcontext264020* result;
	Toptionentry264002* LOC1;
	Tlistentry135010* LOC2;
	TY264331 LOC3;
	result = 0;
	result = (Tcontext264020*) newObj((&NTI264018), sizeof(Tcontext264020));
	(*result).Sup.Sup.m_type = (&NTI264020);
	initintset_211885((&(*result).ambiguoussymbols));
	initlinkedlist_135028((&(*result).optionstack));
	initlinkedlist_135028((&(*result).libs));
	LOC1 = 0;
	LOC1 = newoptionentry_264171();
	LOC2 = 0;
	LOC2 = &LOC1->Sup;
	append_135032((&(*result).optionstack), LOC2);
	asgnRefNoCycle((void**) (&(*result).module), module);
	if ((*result).friendmodules) nimGCunrefNoCycle((*result).friendmodules);
	(*result).friendmodules = (Tsymseq214792*) newSeqRC1((&NTI214792), 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 = (Tsymseq214792*) newSeqRC1((&NTI214792), 0);
	if ((*result).patterns) nimGCunrefNoCycle((*result).patterns);
	(*result).patterns = (Tsymseq214792*) newSeqRC1((&NTI214792), 0);
	initintset_211885((&(*result).includedfiles));
	initstrtable_218001((&(*result).userpragmas));
	if ((*result).generics) nimGCunrefNoCycle((*result).generics);
	(*result).generics = (TY264140*) newSeqRC1((&NTI264140), 0);
	initintset_211885((&(*result).unknownidents));
	return result;
}

N_NIMCALL(Ttype214828*, maketypefromexpr_264556)(Tcontext264020* c, Tnode214790* n) {
	Ttype214828* result;
	result = 0;
	result = newtypes_264184(((NU8) 60), c);
	asgnRefNoCycle((void**) (&(*result).n), n);
	return result;
}

N_NIMCALL(Ttype214828*, errortype_264901)(Tcontext264020* c) {
	Ttype214828* result;
	result = 0;
	result = newtypes_264184(((NU8) 50), c);
	return result;
}

N_NIMCALL(Ttype214828*, maketypedesc_264523)(Tcontext264020* c, Ttype214828* typ) {
	Ttype214828* result;
	result = 0;
	result = newtypes_264184(((NU8) 8), c);
	{
		NimStringDesc* LOC5;
		if (!(typ == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_187183(TMP2787);
		internalerror_187113(LOC5);
	}
	LA3: ;
	addsonskipintlit_258680(result, typ);
	return result;
}

N_NIMCALL(void, illformedast_264950)(Tnode214790* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_233044(n, 4);
	globalerror_187071((*n).info, ((NU16) 1), LOC1);
}

N_NIMCALL(void, checksonslen_264958)(Tnode214790* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_217351(n);
		if (!!((LOC3 == length))) goto LA4;
		illformedast_264950(n);
	}
	LA4: ;
}

N_NIMCALL(Ttype214828*, newtypewithsons_264601)(Tcontext264020* c, NU8 kind, Ttypeseq214824* sons) {
	Ttype214828* result;
	Tsym214822* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_264209();
	result = newtype_217107(kind, LOC1);
	genericSeqAssign((&(*result).sons), sons, (&NTI214824));
	return result;
}

N_NIMCALL(Ttype214828*, makevartype_264490)(Tcontext264020* c, Ttype214828* basetype) {
	Ttype214828* result;
	result = 0;
	{
		if (!((*basetype).kind == ((NU8) 23))) goto LA3;
		result = basetype;
	}
	goto LA1;
	LA3: ;
	{
		result = newtypes_264184(((NU8) 23), c);
		{
			NimStringDesc* LOC10;
			if (!(basetype == NIM_NIL)) goto LA8;
			LOC10 = 0;
			LOC10 = HEX24_187183(TMP2802);
			internalerror_187113(LOC10);
		}
		LA8: ;
		addsonskipintlit_258680(result, basetype);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ttype214828*, makerangetype_264915)(Tcontext264020* c, NI64 first, NI64 last, Tlineinfo182337 info, Ttype214828* inttype) {
	Ttype214828* result;
	Tnode214790* n;
	Tnode214790* LOC1;
	Tnode214790* LOC2;
	result = 0;
	n = newnodei_216248(((NU8) 44), info);
	LOC1 = 0;
	LOC1 = newinttypenode_215665(((NU8) 6), first, inttype);
	addson_216807(n, LOC1);
	LOC2 = 0;
	LOC2 = newinttypenode_215665(((NU8) 6), last, inttype);
	addson_216807(n, LOC2);
	result = newtypes_264184(((NU8) 20), c);
	asgnRefNoCycle((void**) (&(*result).n), n);
	addsonskipintlit_258680(result, inttype);
	return result;
}

N_NIMCALL(Tnode214790*, makestaticexpr_264608)(Tcontext264020* c, Tnode214790* n) {
	Tnode214790* result;
	TY230280 LOC1;
	Ttypeseq214824* LOC2;
	TY366877 LOC3;
	result = 0;
	result = newnodei_216248(((NU8) 62), (*n).info);
	if ((*result).kindU.S6.sons) nimGCunrefNoCycle((*result).kindU.S6.sons);
	(*result).kindU.S6.sons = (Tnodeseq214784*) newSeqRC1((&NTI214784), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = n;
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (Ttypeseq214824*) newSeq((&NTI214824), 1);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = (*n).typ;
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&(*result).typ), newtypewithsons_264601(c, ((NU8) 59), LOC2));
	return result;
}

N_NIMCALL(Ttype214828*, makeandtype_264640)(Tcontext264020* c, Ttype214828* t1, Ttype214828* t2) {
	Ttype214828* result;
	TY264646 LOC1;
	result = 0;
	result = newtypes_264184(((NU8) 55), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq214824*) newSeqRC1((&NTI214824), 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_218190(result, t1);
	propagatetoowner_218190(result, t2);
	(*result).flags = ((*result).flags | (((*t1).flags | (*t2).flags) & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(Ttype214828*, makeortype_264707)(Tcontext264020* c, Ttype214828* t1, Ttype214828* t2) {
	Ttype214828* result;
	TY264646 LOC1;
	result = 0;
	result = newtypes_264184(((NU8) 56), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq214824*) newSeqRC1((&NTI214824), 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_218190(result, t1);
	propagatetoowner_218190(result, t2);
	(*result).flags = ((*result).flags | (((*t1).flags | (*t2).flags) & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(Ttype214828*, makenottype_264774)(Tcontext264020* c, Ttype214828* t1) {
	Ttype214828* result;
	TY366877 LOC1;
	result = 0;
	result = newtypes_264184(((NU8) 57), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq214824*) newSeqRC1((&NTI214824), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = t1;
	asgnRefNoCycle((void**) (&(*result).sons->data[0]), LOC1[0]);
	propagatetoowner_218190(result, t1);
	(*result).flags = ((*result).flags | ((*t1).flags & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(void, checkminsonslen_264962)(Tnode214790* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_217351(n);
		if (!(LOC3 < length)) goto LA4;
		illformedast_264950(n);
	}
	LA4: ;
}

N_NIMCALL(Tnode214790*, nminusone_264828)(Tnode214790* n) {
	Tnode214790* result;
	Tnodeseq214784* LOC1;
	TY382939 LOC2;
	Tsym214822* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (Tnodeseq214784*) newSeq((&NTI214784), 2);
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC3 = 0;
	LOC3 = getsysmagic_258079(((NimStringDesc*) &TMP3159), ((NU8) 25));
	LOC2[0] = newsymnode_216234(LOC3);
	LOC2[1] = n;
	asgnRefNoCycle((void**) (&LOC1->data[0]), LOC2[0]);
	asgnRefNoCycle((void**) (&LOC1->data[1]), LOC2[1]);
	result = newnode_216601(((NU8) 27), (*n).info, LOC1, NIM_NIL);
	return result;
}

N_NIMCALL(Ttype214828*, makerangewithstaticexpr_264845)(Tcontext264020* c, Tnode214790* n) {
	Ttype214828* result;
	Ttype214828* inttype;
	TY366877 LOC1;
	Tnodeseq214784* LOC2;
	TY382939 LOC3;
	Tnode214790* LOC4;
	result = 0;
	inttype = getsystype_258130(((NU8) 31));
	result = newtypes_264184(((NU8) 20), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq214824*) newSeqRC1((&NTI214824), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = inttype;
	asgnRefNoCycle((void**) (&(*result).sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (Tnodeseq214784*) newSeq((&NTI214784), 2);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = newinttypenode_215665(((NU8) 6), IL64(0), inttype);
	LOC4 = 0;
	LOC4 = nminusone_264828(n);
	LOC3[1] = makestaticexpr_264608(c, LOC4);
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&LOC2->data[1]), LOC3[1]);
	asgnRefNoCycle((void**) (&(*result).n), newnode_216601(((NU8) 44), (*n).info, LOC2, NIM_NIL));
	return result;
}

N_NIMCALL(void, pushowner_264211)(Tsym214822* owner) {
	gowners_264233 = (Tsymseq214792*) incrSeqV2(&(gowners_264233)->Sup, sizeof(Tsym214822*));
	asgnRefNoCycle((void**) (&gowners_264233->data[gowners_264233->Sup.len]), owner);
	++gowners_264233->Sup.len;
}

N_NIMCALL(void, makeinstpair_264153)(Tsym214822* s, Tinstantiation214812* inst, Tinstantiationpair264010* Result) {
	unsureAsgnRef((void**) (&(*Result).genericsym), s);
	unsureAsgnRef((void**) (&(*Result).inst), inst);
}

N_NIMCALL(Tlib214808*, newlib_264173)(NU8 kind) {
	Tlib214808* result;
	result = 0;
	result = (Tlib214808*) newObj((&NTI214820), sizeof(Tlib214808));
	(*result).Sup.Sup.m_type = (&NTI214808);
	(*result).kind = kind;
	return result;
}

N_NIMCALL(void, addtolib_264176)(Tlib214808* lib, Tsym214822* sym) {
	asgnRef((void**) (&(*sym).annex), lib);
}

N_NIMCALL(void, illformedastlocal_264954)(Tnode214790* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_233044(n, 4);
	localerror_187080((*n).info, ((NU16) 1), LOC1);
}

N_NIMCALL(Toptionentry264002*, lastoptionentry_264168)(Tcontext264020* c) {
	Toptionentry264002* result;
	result = 0;
	result = ((Toptionentry264002*) ((*c).optionstack.tail));
	return result;
}

N_NIMCALL(void, popowner_264214)(void) {
	NI length;
	length = (gowners_264233 ? gowners_264233->Sup.len : 0);
	{
		if (!(((NI) 0) < length)) goto LA3;
		gowners_264233 = (Tsymseq214792*) setLengthSeq(&(gowners_264233)->Sup, sizeof(Tsym214822*), ((NI) ((NI)(length - ((NI) 1)))));
	}
	goto LA1;
	LA3: ;
	{
		internalerror_187113(((NimStringDesc*) &TMP3328));
	}
	LA1: ;
}

N_NIMCALL(Ttype214828*, makeptrtype_264180)(Tcontext264020* c, Ttype214828* basetype) {
	Ttype214828* result;
	result = 0;
	result = newtypes_264184(((NU8) 21), c);
	{
		NimStringDesc* LOC5;
		if (!(basetype == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_187183(TMP3371);
		internalerror_187113(LOC5);
	}
	LA3: ;
	addsonskipintlit_258680(result, basetype);
	return result;
}

N_NIMCALL(Tnode214790*, errornode_264905)(Tcontext264020* c, Tnode214790* n) {
	Tnode214790* result;
	result = 0;
	result = newnodei_216248(((NU8) 1), (*n).info);
	asgnRefNoCycle((void**) (&(*result).typ), errortype_264901(c));
	return result;
}

N_NIMCALL(Tnode214790*, maketypesymnode_264547)(Tcontext264020* c, Ttype214828* typ, Tlineinfo182337 info) {
	Tnode214790* result;
	Ttype214828* typedesc;
	Tsym214822* sym;
	Tsym214822* LOC1;
	Tsym214822* LOC2;
{	result = 0;
	typedesc = maketypedesc_264523(c, typ);
	LOC1 = 0;
	LOC1 = getcurrowner_264209();
	LOC2 = 0;
	LOC2 = newsym_215683(((NU8) 7), idanon_189455, LOC1, info);
	sym = linkto_215854(LOC2, typedesc);
	result = newsymnode_216241(sym, info);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, inclsym_264393)(Tsymseq214792** sq, Tsym214822* s) {
	NI L;
{	L = ((*sq) ? (*sq)->Sup.len : 0);
	{
		NI i_264418;
		NI HEX3Atmp_264432;
		NI res_264435;
		i_264418 = 0;
		HEX3Atmp_264432 = 0;
		HEX3Atmp_264432 = (NI)(L - ((NI) 1));
		res_264435 = ((NI) 0);
		{
			while (1) {
				if (!(res_264435 <= HEX3Atmp_264432)) goto LA3;
				i_264418 = res_264435;
				{
					if (!((*(*sq)->data[i_264418]).Sup.id == (*s).Sup.id)) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
				res_264435 += ((NI) 1);
			} LA3: ;
		}
	}
	(*sq) = (Tsymseq214792*) setLengthSeq(&((*sq))->Sup, sizeof(Tsym214822*), ((NI) ((NI)(L + ((NI) 1)))));
	asgnRefNoCycle((void**) (&(*sq)->data[L]), s);
	}BeforeRet: ;
}

N_NIMCALL(void, addconverter_264439)(Tcontext264020* c, Tsym214822* conv) {
	inclsym_264393((&(*c).converters), conv);
}

N_NIMCALL(void, addpattern_264444)(Tcontext264020* c, Tsym214822* p) {
	inclsym_264393((&(*c).patterns), p);
}
NIM_EXTERNC N_NOINLINE(void, compiler_semdataInit000)(void) {
	if (gowners_264233) nimGCunrefNoCycle(gowners_264233);
	gowners_264233 = (Tsymseq214792*) newSeqRC1((&NTI214792), 0);
}

NIM_EXTERNC N_NOINLINE(void, compiler_semdataDatInit000)(void) {
static TNimNode* TMP2061[38];
static TNimNode* TMP2062[8];
static TNimNode* TMP2064[2];
static TNimNode* TMP2065[2];
static TNimNode* TMP2087[2];
static TNimNode* TMP2090[5];
static TNimNode TMP933[63];
NTI264020.size = sizeof(Tcontext264020);
NTI264020.kind = 17;
NTI264020.base = (&NTI261002);
TMP2061[0] = &TMP933[1];
TMP933[1].kind = 1;
TMP933[1].offset = offsetof(Tcontext264020, module);
TMP933[1].typ = (&NTI214788);
TMP933[1].name = "module";
TMP2061[1] = &TMP933[2];
TMP933[2].kind = 1;
TMP933[2].offset = offsetof(Tcontext264020, currentscope);
TMP933[2].typ = (&NTI214818);
TMP933[2].name = "currentScope";
TMP2061[2] = &TMP933[3];
TMP933[3].kind = 1;
TMP933[3].offset = offsetof(Tcontext264020, importtable);
TMP933[3].typ = (&NTI214818);
TMP933[3].name = "importTable";
TMP2061[3] = &TMP933[4];
TMP933[4].kind = 1;
TMP933[4].offset = offsetof(Tcontext264020, toplevelscope);
TMP933[4].typ = (&NTI214818);
TMP933[4].name = "topLevelScope";
TMP2061[4] = &TMP933[5];
NTI264008.size = sizeof(Tproccon264008);
NTI264008.kind = 18;
NTI264008.base = 0;
TMP2062[0] = &TMP933[7];
TMP933[7].kind = 1;
TMP933[7].offset = offsetof(Tproccon264008, owner);
TMP933[7].typ = (&NTI214788);
TMP933[7].name = "owner";
TMP2062[1] = &TMP933[8];
TMP933[8].kind = 1;
TMP933[8].offset = offsetof(Tproccon264008, resultsym);
TMP933[8].typ = (&NTI214788);
TMP933[8].name = "resultSym";
TMP2062[2] = &TMP933[9];
TMP933[9].kind = 1;
TMP933[9].offset = offsetof(Tproccon264008, nestedloopcounter);
TMP933[9].typ = (&NTI104);
TMP933[9].name = "nestedLoopCounter";
TMP2062[3] = &TMP933[10];
TMP933[10].kind = 1;
TMP933[10].offset = offsetof(Tproccon264008, nestedblockcounter);
TMP933[10].typ = (&NTI104);
TMP933[10].name = "nestedBlockCounter";
TMP2062[4] = &TMP933[11];
TMP933[11].kind = 1;
TMP933[11].offset = offsetof(Tproccon264008, intrystmt);
TMP933[11].typ = (&NTI104);
TMP933[11].name = "inTryStmt";
TMP2062[5] = &TMP933[12];
TMP933[12].kind = 1;
TMP933[12].offset = offsetof(Tproccon264008, next);
TMP933[12].typ = (&NTI264006);
TMP933[12].name = "next";
TMP2062[6] = &TMP933[13];
TMP933[13].kind = 1;
TMP933[13].offset = offsetof(Tproccon264008, wasforwarded);
TMP933[13].typ = (&NTI130);
TMP933[13].name = "wasForwarded";
TMP2062[7] = &TMP933[14];
TMP933[14].kind = 1;
TMP933[14].offset = offsetof(Tproccon264008, bracketexpr);
TMP933[14].typ = (&NTI214782);
TMP933[14].name = "bracketExpr";
TMP933[6].len = 8; TMP933[6].kind = 2; TMP933[6].sons = &TMP2062[0];
NTI264008.node = &TMP933[6];
NTI264006.size = sizeof(Tproccon264008*);
NTI264006.kind = 22;
NTI264006.base = (&NTI264008);
NTI264006.marker = TMP2063;
TMP933[5].kind = 1;
TMP933[5].offset = offsetof(Tcontext264020, p);
TMP933[5].typ = (&NTI264006);
TMP933[5].name = "p";
TMP2061[5] = &TMP933[15];
TMP933[15].kind = 1;
TMP933[15].offset = offsetof(Tcontext264020, friendmodules);
TMP933[15].typ = (&NTI214792);
TMP933[15].name = "friendModules";
TMP2061[6] = &TMP933[16];
TMP933[16].kind = 1;
TMP933[16].offset = offsetof(Tcontext264020, instcounter);
TMP933[16].typ = (&NTI104);
TMP933[16].name = "instCounter";
TMP2061[7] = &TMP933[17];
TMP933[17].kind = 1;
TMP933[17].offset = offsetof(Tcontext264020, ambiguoussymbols);
TMP933[17].typ = (&NTI211035);
TMP933[17].name = "ambiguousSymbols";
TMP2061[8] = &TMP933[18];
TMP933[18].kind = 1;
TMP933[18].offset = offsetof(Tcontext264020, intypeclass);
TMP933[18].typ = (&NTI104);
TMP933[18].name = "inTypeClass";
TMP2061[9] = &TMP933[19];
TMP933[19].kind = 1;
TMP933[19].offset = offsetof(Tcontext264020, ingenericcontext);
TMP933[19].typ = (&NTI104);
TMP933[19].name = "inGenericContext";
TMP2061[10] = &TMP933[20];
TMP933[20].kind = 1;
TMP933[20].offset = offsetof(Tcontext264020, inunrolledcontext);
TMP933[20].typ = (&NTI104);
TMP933[20].name = "inUnrolledContext";
TMP2061[11] = &TMP933[21];
TMP933[21].kind = 1;
TMP933[21].offset = offsetof(Tcontext264020, compilescontextid);
TMP933[21].typ = (&NTI104);
TMP933[21].name = "compilesContextId";
TMP2061[12] = &TMP933[22];
TMP933[22].kind = 1;
TMP933[22].offset = offsetof(Tcontext264020, compilescontextidgenerator);
TMP933[22].typ = (&NTI104);
TMP933[22].name = "compilesContextIdGenerator";
TMP2061[13] = &TMP933[23];
TMP933[23].kind = 1;
TMP933[23].offset = offsetof(Tcontext264020, ingenericinst);
TMP933[23].typ = (&NTI104);
TMP933[23].name = "inGenericInst";
TMP2061[14] = &TMP933[24];
TMP933[24].kind = 1;
TMP933[24].offset = offsetof(Tcontext264020, converters);
TMP933[24].typ = (&NTI214792);
TMP933[24].name = "converters";
TMP2061[15] = &TMP933[25];
TMP933[25].kind = 1;
TMP933[25].offset = offsetof(Tcontext264020, patterns);
TMP933[25].typ = (&NTI214792);
TMP933[25].name = "patterns";
TMP2061[16] = &TMP933[26];
TMP933[26].kind = 1;
TMP933[26].offset = offsetof(Tcontext264020, optionstack);
TMP933[26].typ = (&NTI135016);
TMP933[26].name = "optionStack";
TMP2061[17] = &TMP933[27];
TMP933[27].kind = 1;
TMP933[27].offset = offsetof(Tcontext264020, symmapping);
TMP933[27].typ = (&NTI214840);
TMP933[27].name = "symMapping";
TMP2061[18] = &TMP933[28];
TMP933[28].kind = 1;
TMP933[28].offset = offsetof(Tcontext264020, libs);
TMP933[28].typ = (&NTI135016);
TMP933[28].name = "libs";
TMP2061[19] = &TMP933[29];
NTI264071.size = sizeof(TY264071);
NTI264071.kind = 25;
NTI264071.base = 0;
NTI264071.flags = 3;
TMP933[29].kind = 1;
TMP933[29].offset = offsetof(Tcontext264020, semconstexpr);
TMP933[29].typ = (&NTI264071);
TMP933[29].name = "semConstExpr";
TMP2061[20] = &TMP933[30];
NTI264076.size = sizeof(TY264076);
NTI264076.kind = 25;
NTI264076.base = 0;
NTI264076.flags = 3;
TMP933[30].kind = 1;
TMP933[30].offset = offsetof(Tcontext264020, semexpr);
TMP933[30].typ = (&NTI264076);
TMP933[30].name = "semExpr";
TMP2061[21] = &TMP933[31];
NTI264084.size = sizeof(TY264084);
NTI264084.kind = 25;
NTI264084.base = 0;
NTI264084.flags = 3;
TMP933[31].kind = 1;
TMP933[31].offset = offsetof(Tcontext264020, semtryexpr);
TMP933[31].typ = (&NTI264084);
TMP933[31].name = "semTryExpr";
TMP2061[22] = &TMP933[32];
NTI264092.size = sizeof(TY264092);
NTI264092.kind = 25;
NTI264092.base = 0;
NTI264092.flags = 3;
TMP933[32].kind = 1;
TMP933[32].offset = offsetof(Tcontext264020, semtryconstexpr);
TMP933[32].typ = (&NTI264092);
TMP933[32].name = "semTryConstExpr";
TMP2061[23] = &TMP933[33];
NTI264097.size = sizeof(TY264097);
NTI264097.kind = 25;
NTI264097.base = 0;
NTI264097.flags = 3;
TMP933[33].kind = 1;
TMP933[33].offset = offsetof(Tcontext264020, semoperand);
TMP933[33].typ = (&NTI264097);
TMP933[33].name = "semOperand";
TMP2061[24] = &TMP933[34];
NTI264105.size = sizeof(TY264105);
NTI264105.kind = 25;
NTI264105.base = 0;
NTI264105.flags = 3;
TMP933[34].kind = 1;
TMP933[34].offset = offsetof(Tcontext264020, semconstboolexpr);
TMP933[34].typ = (&NTI264105);
TMP933[34].name = "semConstBoolExpr";
TMP2061[25] = &TMP933[35];
NTI264110.size = sizeof(TY264110);
NTI264110.kind = 25;
NTI264110.base = 0;
NTI264110.flags = 3;
TMP933[35].kind = 1;
TMP933[35].offset = offsetof(Tcontext264020, semoverloadedcall);
TMP933[35].typ = (&NTI264110);
TMP933[35].name = "semOverloadedCall";
TMP2061[26] = &TMP933[36];
NTI264117.size = sizeof(TY264117);
NTI264117.kind = 25;
NTI264117.base = 0;
NTI264117.flags = 3;
TMP933[36].kind = 1;
TMP933[36].offset = offsetof(Tcontext264020, semtypenode);
TMP933[36].typ = (&NTI264117);
TMP933[36].name = "semTypeNode";
TMP2061[27] = &TMP933[37];
NTI264123.size = sizeof(TY531873);
NTI264123.kind = 18;
NTI264123.base = 0;
NTI264123.flags = 2;
TMP2064[0] = &TMP933[39];
TMP933[39].kind = 1;
TMP933[39].offset = offsetof(TY531873, Field0);
TMP933[39].typ = (&NTI142);
TMP933[39].name = "Field0";
TMP2064[1] = &TMP933[40];
TMP933[40].kind = 1;
TMP933[40].offset = offsetof(TY531873, Field1);
TMP933[40].typ = (&NTI531875);
TMP933[40].name = "Field1";
TMP933[38].len = 2; TMP933[38].kind = 2; TMP933[38].sons = &TMP2064[0];
NTI264123.node = &TMP933[38];
TMP933[37].kind = 1;
TMP933[37].offset = offsetof(Tcontext264020, seminferredlambda);
TMP933[37].typ = (&NTI264123);
TMP933[37].name = "semInferredLambda";
TMP2061[28] = &TMP933[41];
NTI264129.size = sizeof(TY531873);
NTI264129.kind = 18;
NTI264129.base = 0;
NTI264129.flags = 2;
TMP2065[0] = &TMP933[43];
TMP933[43].kind = 1;
TMP933[43].offset = offsetof(TY531873, Field0);
TMP933[43].typ = (&NTI142);
TMP933[43].name = "Field0";
TMP2065[1] = &TMP933[44];
TMP933[44].kind = 1;
TMP933[44].offset = offsetof(TY531873, Field1);
TMP933[44].typ = (&NTI531875);
TMP933[44].name = "Field1";
TMP933[42].len = 2; TMP933[42].kind = 2; TMP933[42].sons = &TMP2065[0];
NTI264129.node = &TMP933[42];
TMP933[41].kind = 1;
TMP933[41].offset = offsetof(Tcontext264020, semgenerateinstance);
TMP933[41].typ = (&NTI264129);
TMP933[41].name = "semGenerateInstance";
TMP2061[29] = &TMP933[45];
TMP933[45].kind = 1;
TMP933[45].offset = offsetof(Tcontext264020, includedfiles);
TMP933[45].typ = (&NTI211035);
TMP933[45].name = "includedFiles";
TMP2061[30] = &TMP933[46];
TMP933[46].kind = 1;
TMP933[46].offset = offsetof(Tcontext264020, userpragmas);
TMP933[46].typ = (&NTI214794);
TMP933[46].name = "userPragmas";
TMP2061[31] = &TMP933[47];
TMP933[47].kind = 1;
TMP933[47].offset = offsetof(Tcontext264020, evalcontext);
TMP933[47].typ = (&NTI263034);
TMP933[47].name = "evalContext";
TMP2061[32] = &TMP933[48];
TMP933[48].kind = 1;
TMP933[48].offset = offsetof(Tcontext264020, unknownidents);
TMP933[48].typ = (&NTI211035);
TMP933[48].name = "unknownIdents";
TMP2061[33] = &TMP933[49];
NTI264010.size = sizeof(Tinstantiationpair264010);
NTI264010.kind = 18;
NTI264010.base = 0;
NTI264010.flags = 2;
TMP2087[0] = &TMP933[51];
TMP933[51].kind = 1;
TMP933[51].offset = offsetof(Tinstantiationpair264010, genericsym);
TMP933[51].typ = (&NTI214788);
TMP933[51].name = "genericSym";
TMP2087[1] = &TMP933[52];
TMP933[52].kind = 1;
TMP933[52].offset = offsetof(Tinstantiationpair264010, inst);
TMP933[52].typ = (&NTI214814);
TMP933[52].name = "inst";
TMP933[50].len = 2; TMP933[50].kind = 2; TMP933[50].sons = &TMP2087[0];
NTI264010.node = &TMP933[50];
NTI264140.size = sizeof(TY264140*);
NTI264140.kind = 24;
NTI264140.base = (&NTI264010);
NTI264140.flags = 2;
NTI264140.marker = TMP2088;
TMP933[49].kind = 1;
TMP933[49].offset = offsetof(Tcontext264020, generics);
TMP933[49].typ = (&NTI264140);
TMP933[49].name = "generics";
TMP2061[34] = &TMP933[53];
TMP933[53].kind = 1;
TMP933[53].offset = offsetof(Tcontext264020, lastgenericidx);
TMP933[53].typ = (&NTI104);
TMP933[53].name = "lastGenericIdx";
TMP2061[35] = &TMP933[54];
TMP933[54].kind = 1;
TMP933[54].offset = offsetof(Tcontext264020, hloloopdetector);
TMP933[54].typ = (&NTI104);
TMP933[54].name = "hloLoopDetector";
TMP2061[36] = &TMP933[55];
TMP933[55].kind = 1;
TMP933[55].offset = offsetof(Tcontext264020, inparallelstmt);
TMP933[55].typ = (&NTI104);
TMP933[55].name = "inParallelStmt";
TMP2061[37] = &TMP933[56];
NTI264145.size = sizeof(TY264145);
NTI264145.kind = 25;
NTI264145.base = 0;
NTI264145.flags = 3;
TMP933[56].kind = 1;
TMP933[56].offset = offsetof(Tcontext264020, insttypeboundop);
TMP933[56].typ = (&NTI264145);
TMP933[56].name = "instTypeBoundOp";
TMP933[0].len = 38; TMP933[0].kind = 2; TMP933[0].sons = &TMP2061[0];
NTI264020.node = &TMP933[0];
NTI264018.size = sizeof(Tcontext264020*);
NTI264018.kind = 22;
NTI264018.base = (&NTI264020);
NTI264018.marker = TMP2089;
NTI264002.size = sizeof(Toptionentry264002);
NTI264002.kind = 17;
NTI264002.base = (&NTI135010);
TMP2090[0] = &TMP933[58];
TMP933[58].kind = 1;
TMP933[58].offset = offsetof(Toptionentry264002, options);
TMP933[58].typ = (&NTI160011);
TMP933[58].name = "options";
TMP2090[1] = &TMP933[59];
TMP933[59].kind = 1;
TMP933[59].offset = offsetof(Toptionentry264002, defaultcc);
TMP933[59].typ = (&NTI214002);
TMP933[59].name = "defaultCC";
TMP2090[2] = &TMP933[60];
TMP933[60].kind = 1;
TMP933[60].offset = offsetof(Toptionentry264002, dynlib);
TMP933[60].typ = (&NTI214820);
TMP933[60].name = "dynlib";
TMP2090[3] = &TMP933[61];
TMP933[61].kind = 1;
TMP933[61].offset = offsetof(Toptionentry264002, notes);
TMP933[61].typ = (&NTI182333);
TMP933[61].name = "notes";
TMP2090[4] = &TMP933[62];
TMP933[62].kind = 1;
TMP933[62].offset = offsetof(Toptionentry264002, otherpragmas);
TMP933[62].typ = (&NTI214782);
TMP933[62].name = "otherPragmas";
TMP933[57].len = 5; TMP933[57].kind = 2; TMP933[57].sons = &TMP2090[0];
NTI264002.node = &TMP933[57];
NTI264004.size = sizeof(Toptionentry264002*);
NTI264004.kind = 22;
NTI264004.base = (&NTI264002);
NTI264004.marker = TMP2094;
}

