/* 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 Tsymseq215792 Tsymseq215792;
typedef struct Tsym215822 Tsym215822;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Cell47504 Cell47504;
typedef struct Cellseq47520 Cellseq47520;
typedef struct Gcheap49818 Gcheap49818;
typedef struct Gcstack49816 Gcstack49816;
typedef struct Cellset47516 Cellset47516;
typedef struct Pagedesc47512 Pagedesc47512;
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 Ttype215828 Ttype215828;
typedef struct Tcontext265020 Tcontext265020;
typedef struct Tpasscontext262002 Tpasscontext262002;
typedef struct TNimObject TNimObject;
typedef struct Tscope215816 Tscope215816;
typedef struct Tproccon265008 Tproccon265008;
typedef struct Intset212035 Intset212035;
typedef struct Trunk212031 Trunk212031;
typedef struct Trunkseq212033 Trunkseq212033;
typedef struct Tlinkedlist135016 Tlinkedlist135016;
typedef struct Tlistentry135010 Tlistentry135010;
typedef struct Tidtable215840 Tidtable215840;
typedef struct Tidpairseq215838 Tidpairseq215838;
typedef struct Tnode215790 Tnode215790;
typedef struct Tlineinfo183337 Tlineinfo183337;
typedef struct Tstrtable215794 Tstrtable215794;
typedef struct Tctx264036 Tctx264036;
typedef struct TY265140 TY265140;
typedef struct TY532873 TY532873;
typedef struct TY532876 TY532876;
typedef struct Tinstantiationpair265010 Tinstantiationpair265010;
typedef struct Tinstantiation215812 Tinstantiation215812;
typedef struct Toptionentry265002 Toptionentry265002;
typedef struct Tlib215808 Tlib215808;
typedef struct Tidobj190006 Tidobj190006;
typedef struct Ttypeseq215824 Ttypeseq215824;
typedef struct Tloc215804 Tloc215804;
typedef struct Ropeobj170006 Ropeobj170006;
typedef struct NimStringDesc NimStringDesc;
typedef struct TY88687 TY88687;
typedef struct Tident190012 Tident190012;
typedef struct Tnodeseq215784 Tnodeseq215784;
typedef struct TY215925 TY215925;
typedef struct Basechunk29638 Basechunk29638;
typedef struct Freecell29630 Freecell29630;
typedef struct Tidpair215836 Tidpair215836;
typedef struct TY264242 TY264242;
typedef struct TY184090 TY184090;
typedef struct PprocHEX3Aobjecttype264221 PprocHEX3Aobjecttype264221;
typedef struct TY264261 TY264261;
typedef struct TY215913 TY215913;
typedef struct TY264222 TY264222;
typedef struct TY264227 TY264227;
typedef struct TY264262 TY264262;
typedef struct Vmargs264030 Vmargs264030;
typedef struct Tblock264018 Tblock264018;
typedef struct TY264202 TY264202;
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  Cell47504  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47520  {
NI len;
NI cap;
Cell47504** d;
};
struct  Cellset47516  {
NI counter;
NI max;
Pagedesc47512* head;
Pagedesc47512** 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;
Cellseq47520 zct;
Cellseq47520 decstack;
Cellset47516 cycleroots;
Cellseq47520 tempstack;
NI recgclock;
Memregion29688 region;
Gcstat49814 stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tpasscontext262002  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Intset212035  {
NI counter;
NI max;
Trunk212031* head;
Trunkseq212033* data;
};
struct  Tlinkedlist135016  {
Tlistentry135010* head;
Tlistentry135010* tail;
NI counter;
};
struct  Tidtable215840  {
NI counter;
Tidpairseq215838* data;
};
typedef N_NIMCALL_PTR(Tnode215790*, TY265071) (Tcontext265020* c, Tnode215790* n);
typedef N_NIMCALL_PTR(Tnode215790*, TY265076) (Tcontext265020* c, Tnode215790* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode215790*, TY265084) (Tcontext265020* c, Tnode215790* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode215790*, TY265092) (Tcontext265020* c, Tnode215790* n);
typedef N_NIMCALL_PTR(Tnode215790*, TY265097) (Tcontext265020* c, Tnode215790* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode215790*, TY265105) (Tcontext265020* c, Tnode215790* n);
typedef N_NIMCALL_PTR(Tnode215790*, TY265110) (Tcontext265020* c, Tnode215790* n, Tnode215790* norig, NU32 filter);
typedef N_NIMCALL_PTR(Ttype215828*, TY265117) (Tcontext265020* c, Tnode215790* n, Ttype215828* prev);
typedef struct {
N_NIMCALL_PTR(Tnode215790*, ClPrc) (Tcontext265020* c, Tidtable215840 pt, Tnode215790* n, void* ClEnv);
void* ClEnv;
} TY265123;
typedef struct {
N_NIMCALL_PTR(Tsym215822*, ClPrc) (Tcontext265020* c, Tsym215822* fn, Tidtable215840 pt, Tlineinfo183337 info, void* ClEnv);
void* ClEnv;
} TY265129;
struct  Tstrtable215794  {
NI counter;
Tsymseq215792* data;
};
typedef N_NIMCALL_PTR(Tsym215822*, TY265145) (Tcontext265020* c, Tsym215822* dc, Ttype215828* t, Tlineinfo183337 info, NU8 op);
struct  Tcontext265020  {
  Tpasscontext262002 Sup;
Tsym215822* module;
Tscope215816* currentscope;
Tscope215816* importtable;
Tscope215816* toplevelscope;
Tproccon265008* p;
Tsymseq215792* friendmodules;
NI instcounter;
Intset212035 ambiguoussymbols;
NI intypeclass;
NI ingenericcontext;
NI inunrolledcontext;
NI compilescontextid;
NI compilescontextidgenerator;
NI ingenericinst;
Tsymseq215792* converters;
Tsymseq215792* patterns;
Tlinkedlist135016 optionstack;
Tidtable215840 symmapping;
Tlinkedlist135016 libs;
TY265071 semconstexpr;
TY265076 semexpr;
TY265084 semtryexpr;
TY265092 semtryconstexpr;
TY265097 semoperand;
TY265105 semconstboolexpr;
TY265110 semoverloadedcall;
TY265117 semtypenode;
TY265123 seminferredlambda;
TY265129 semgenerateinstance;
Intset212035 includedfiles;
Tstrtable215794 userpragmas;
Tctx264036* evalcontext;
Intset212035 unknownidents;
TY265140* generics;
NI lastgenericidx;
NI hloloopdetector;
NI inparallelstmt;
TY265145 insttypeboundop;
};
struct  Tproccon265008  {
Tsym215822* owner;
Tsym215822* resultsym;
NI nestedloopcounter;
NI nestedblockcounter;
NI intrystmt;
Tproccon265008* next;
NIM_BOOL wasforwarded;
Tnode215790* bracketexpr;
};
struct TY532873 {
void* Field0;
TY532876* Field1;
};
struct  Tinstantiationpair265010  {
Tsym215822* genericsym;
Tinstantiation215812* inst;
};
struct  Tlistentry135010  {
  TNimObject Sup;
Tlistentry135010* prev;
Tlistentry135010* next;
};
struct  Toptionentry265002  {
  Tlistentry135010 Sup;
NU32 options;
NU8 defaultcc;
Tlib215808* dynlib;
NU64 notes;
Tnode215790* otherpragmas;
};
typedef Tsym215822* TY265331[1];
struct  Tidobj190006  {
  TNimObject Sup;
NI id;
};
struct  Tloc215804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype215828* t;
Ropeobj170006* r;
Ropeobj170006* heaproot;
};
struct  Ttype215828  {
  Tidobj190006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq215824* sons;
Tnode215790* n;
Tsym215822* owner;
Tsym215822* sym;
Tsym215822* destructor;
Tsym215822* deepcopy;
Tsym215822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc215804 loc;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct TY88687 {
NimStringDesc* Field0;
NI Field1;
};
struct  Tlineinfo183337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode215790  {
Ttype215828* typ;
Tlineinfo183337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym215822* sym;
} S4;
struct {Tident190012* ident;
} S5;
struct {Tnodeseq215784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef Tnode215790* TY231280[1];
typedef Ttype215828* TY367877[1];
typedef Ttype215828* TY265646[2];
typedef Tnode215790* TY383939[2];
struct  Tlib215808  {
  Tlistentry135010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj170006* name;
Tnode215790* path;
};
struct  Tsym215822  {
  Tidobj190006 Sup;
NU8 kind;
union{
struct {Ttypeseq215824* typeinstcache;
Tscope215816* typscope;
} S1;
struct {TY215925* procinstcache;
Tsym215822* gcunsafetyreason;
} S2;
struct {TY215925* usedgenerics;
Tstrtable215794 tab;
} S3;
struct {Tsym215822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype215828* typ;
Tident190012* name;
Tlineinfo183337 info;
Tsym215822* owner;
NU32 flags;
Tnode215790* ast;
NU32 options;
NI position;
NI offset;
Tloc215804 loc;
Tlib215808* annex;
Tnode215790* constraint;
};
struct  Gcstack49816  {
Gcstack49816* prev;
Gcstack49816* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29619[8];
struct  Pagedesc47512  {
Pagedesc47512* 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  Tscope215816  {
NI depthlevel;
Tstrtable215794 symbols;
Tnodeseq215784* usingsyms;
Tscope215816* parent;
};
struct  Trunk212031  {
Trunk212031* next;
NI key;
TY29619 bits;
};
struct  Tidpair215836  {
Tidobj190006* key;
TNimObject* val;
};
struct  Tctx264036  {
  Tpasscontext262002 Sup;
TY264242* code;
TY184090* debug;
Tnode215790* globals;
Tnode215790* constants;
Ttypeseq215824* types;
Tnode215790* currentexceptiona;
Tnode215790* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype264221* prc;
Tsym215822* module;
Tnode215790* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo183337 comesfromheuristic;
TY264261* callbacks;
NimStringDesc* errorflag;
};
struct TY532876 {
char dummy;
};
struct  Tinstantiation215812  {
Tsym215822* sym;
Ttypeseq215824* concretetypes;
TY215913* usedby;
NI compilesid;
};
struct  Ropeobj170006  {
  TNimObject Sup;
Ropeobj170006* left;
Ropeobj170006* right;
NI length;
NimStringDesc* data;
};
struct  Tident190012  {
  Tidobj190006 Sup;
NimStringDesc* s;
Tident190012* next;
NI h;
};
struct  Freecell29630  {
Freecell29630* next;
NI zerofield;
};
struct TY264227 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY264227 TY264230[256];
struct  PprocHEX3Aobjecttype264221  {
TY264222* blocks;
Tsym215822* sym;
TY264230 slots;
NI maxslots;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs264030* args, void* ClEnv);
void* ClEnv;
} Vmcallback264032;
struct TY264262 {
NimStringDesc* Field0;
Vmcallback264032 Field1;
};
struct  Tblock264018  {
Tsym215822* label;
TY264202* fixups;
};
struct  Vmargs264030  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode215790* currentexception;
};
struct Tsymseq215792 {
  TGenericSeq Sup;
  Tsym215822* data[SEQ_DECL_SIZE];
};
struct TY265140 {
  TGenericSeq Sup;
  Tinstantiationpair265010 data[SEQ_DECL_SIZE];
};
struct Ttypeseq215824 {
  TGenericSeq Sup;
  Ttype215828* data[SEQ_DECL_SIZE];
};
struct Tnodeseq215784 {
  TGenericSeq Sup;
  Tnode215790* data[SEQ_DECL_SIZE];
};
struct Trunkseq212033 {
  TGenericSeq Sup;
  Trunk212031* data[SEQ_DECL_SIZE];
};
struct Tidpairseq215838 {
  TGenericSeq Sup;
  Tidpair215836 data[SEQ_DECL_SIZE];
};
struct TY215925 {
  TGenericSeq Sup;
  Tinstantiation215812* data[SEQ_DECL_SIZE];
};
struct TY264242 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY184090 {
  TGenericSeq Sup;
  Tlineinfo183337 data[SEQ_DECL_SIZE];
};
struct TY264261 {
  TGenericSeq Sup;
  TY264262 data[SEQ_DECL_SIZE];
};
struct TY215913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct TY264222 {
  TGenericSeq Sup;
  Tblock264018 data[SEQ_DECL_SIZE];
};
struct TY264202 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell47504*, usrtocell_51440)(void* usr);
static N_INLINE(void, rtladdzct_53001)(Cell47504* c);
N_NOINLINE(void, addzct_51417)(Cellseq47520* s, Cell47504* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(Ttype215828*, newtype_218107)(NU8 kind, Tsym215822* owner);
N_NIMCALL(Tsym215822*, getcurrowner_265209)(void);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP2065)(void* p, NI op);
N_NIMCALL(void, TMP2090)(void* p, NI op);
N_NIMCALL(void, TMP2091)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(void, initintset_212885)(Intset212035* Result);
N_NIMCALL(void, initlinkedlist_135028)(Tlinkedlist135016* list);
N_NIMCALL(void, append_135032)(Tlinkedlist135016* list, Tlistentry135010* entry);
N_NIMCALL(Toptionentry265002*, newoptionentry_265171)(void);
N_NIMCALL(void, TMP2096)(void* p, NI op);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_53819)(Cell47504* c);
static N_INLINE(NIM_BOOL, canbecycleroot_51458)(Cell47504* c);
static N_INLINE(void, rtladdcycleroot_52220)(Cell47504* c);
N_NOINLINE(void, incl_48247)(Cellset47516* s, Cell47504* cell);
static N_INLINE(void, decref_53401)(Cell47504* c);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(void, initstrtable_219001)(Tstrtable215794* x);
N_NIMCALL(Ttype215828*, newtypes_265184)(NU8 kind, Tcontext265020* c);
N_NIMCALL(void, addsonskipintlit_259680)(Ttype215828* father, Ttype215828* son);
N_NIMCALL(void, internalerror_188113)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_188183)(TY88687 x);
N_NIMCALL(void, globalerror_188071)(Tlineinfo183337 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_234044)(Tnode215790* n, NU8 renderflags);
N_NIMCALL(NI, sonslen_218351)(Tnode215790* n);
N_NIMCALL(void, illformedast_265950)(Tnode215790* n);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_84004, TNimType* mt);
N_NIMCALL(Tnode215790*, newnodei_217248)(NU8 kind, Tlineinfo183337 info);
N_NIMCALL(void, addson_217807)(Tnode215790* father, Tnode215790* son);
N_NIMCALL(Tnode215790*, newinttypenode_216665)(NU8 kind, NI64 intval, Ttype215828* typ);
N_NIMCALL(Ttype215828*, newtypewithsons_265601)(Tcontext265020* c, NU8 kind, Ttypeseq215824* sons);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, propagatetoowner_219190)(Ttype215828* owner, Ttype215828* elem);
N_NIMCALL(Ttype215828*, getsystype_259130)(NU8 kind);
N_NIMCALL(Tnode215790*, newnode_217601)(NU8 kind, Tlineinfo183337 info, Tnodeseq215784* sons, Ttype215828* typ);
N_NIMCALL(Tnode215790*, makestaticexpr_265608)(Tcontext265020* c, Tnode215790* n);
N_NIMCALL(Tnode215790*, nminusone_265828)(Tnode215790* n);
N_NIMCALL(Tnode215790*, newsymnode_217234)(Tsym215822* sym);
N_NIMCALL(Tsym215822*, getsysmagic_259079)(NimStringDesc* name, NU8 m);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, localerror_188080)(Tlineinfo183337 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(Ttype215828*, errortype_265901)(Tcontext265020* c);
N_NIMCALL(Ttype215828*, maketypedesc_265523)(Tcontext265020* c, Ttype215828* typ);
N_NIMCALL(Tsym215822*, linkto_216854)(Tsym215822* s, Ttype215828* t);
N_NIMCALL(Tsym215822*, newsym_216683)(NU8 symkind, Tident190012* name, Tsym215822* owner, Tlineinfo183337 info);
N_NIMCALL(Tnode215790*, newsymnode_217241)(Tsym215822* sym, Tlineinfo183337 info);
N_NIMCALL(void, inclsym_265393)(Tsymseq215792** sq, Tsym215822* s);
STRING_LITERAL(TMP2790, "compiler/semdata.nim", 20);
NIM_CONST TY88687 TMP2789 = {((NimStringDesc*) &TMP2790),
((NI) 226)}
;
NIM_CONST TY88687 TMP2804 = {((NimStringDesc*) &TMP2790),
((NI) 222)}
;
STRING_LITERAL(TMP3161, "<", 1);
STRING_LITERAL(TMP3330, "popOwner", 8);
NIM_CONST TY88687 TMP3373 = {((NimStringDesc*) &TMP2790),
((NI) 215)}
;
Tsymseq215792* gowners_265233;
extern TNimType NTI215792; /* TSymSeq */
extern Gcheap49818 gch_49859;
extern TNimType NTI262002; /* TPassContext */
TNimType NTI265020; /* TContext */
extern TNimType NTI215788; /* PSym */
extern TNimType NTI215818; /* PScope */
TNimType NTI265008; /* TProcCon */
extern TNimType NTI104; /* int */
extern TNimType NTI130; /* bool */
extern TNimType NTI215782; /* PNode */
TNimType NTI265006; /* PProcCon */
extern TNimType NTI212035; /* IntSet */
extern TNimType NTI135016; /* TLinkedList */
extern TNimType NTI215840; /* TIdTable */
TNimType NTI265071; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI265076; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI265084; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI265092; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI265097; /* proc (c: PContext, n: PNode, flags: TExprFlags): PNode */
TNimType NTI265105; /* proc (c: PContext, n: PNode): PNode */
TNimType NTI265110; /* proc (c: PContext, n: PNode, nOrig: PNode, filter: TSymKinds): PNode */
TNimType NTI265117; /* proc (c: PContext, n: PNode, prev: PType): PType */
TNimType NTI265123; /* (pointer, ref tuple[]) */
extern TNimType NTI142; /* pointer */
extern TNimType NTI532875; /* ref tuple[] */
TNimType NTI265129; /* (pointer, ref tuple[]) */
extern TNimType NTI215794; /* TStrTable */
extern TNimType NTI264034; /* PCtx */
TNimType NTI265010; /* TInstantiationPair */
extern TNimType NTI215814; /* PInstantiation */
TNimType NTI265140; /* seq[TInstantiationPair] */
TNimType NTI265145; /* proc (c: PContext, dc: PSym, t: PType, info: TLineInfo, op: TTypeAttachedOp): PSym */
TNimType NTI265018; /* PContext */
extern TNimType NTI135010; /* TListEntry */
TNimType NTI265002; /* TOptionEntry */
extern TNimType NTI161011; /* TOptions */
extern TNimType NTI215002; /* TCallingConvention */
extern TNimType NTI215820; /* PLib */
extern TNimType NTI183333; /* TNoteKinds */
TNimType NTI265004; /* POptionEntry */
extern NU32 goptions_161119;
extern NU64 gnotes_184077;
extern TNimType NTI215824; /* TTypeSeq */
extern TNimType NTI215784; /* TNodeSeq */
extern TNimType NTI215808; /* TLib */
extern Tident190012* idanon_190455;

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

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

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

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

N_NIMCALL(Ttype215828*, newtypes_265184)(NU8 kind, Tcontext265020* c) {
	Ttype215828* result;
	Tsym215822* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_265209();
	result = newtype_218107(kind, LOC1);
	return result;
}
N_NIMCALL(void, TMP2065)(void* p, NI op) {
	Tproccon265008* a;
	a = (Tproccon265008*)p;
	nimGCvisit((void*)(*a).owner, op);
	nimGCvisit((void*)(*a).resultsym, op);
	nimGCvisit((void*)(*a).next, op);
	nimGCvisit((void*)(*a).bracketexpr, op);
}
N_NIMCALL(void, TMP2090)(void* p, NI op) {
	TY265140* a;
	NI LOC1;
	a = (TY265140*)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, TMP2091)(void* p, NI op) {
	Tcontext265020* a;
	a = (Tcontext265020*)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, TMP2096)(void* p, NI op) {
	Toptionentry265002* a;
	a = (Toptionentry265002*)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)(Cell47504* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).typ).flags &(1U<<((NU)(((NU8) 1))&7U)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_52220)(Cell47504* 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)(Cell47504* 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)(Cell47504* 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) {
	{
		Cell47504* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_51440(src);
		incref_53819(LOC5);
	}
	LA3: ;
	{
		Cell47504* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_51440((*dest));
		decref_53401(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(Toptionentry265002*, newoptionentry_265171)(void) {
	Toptionentry265002* result;
	result = 0;
	result = (Toptionentry265002*) newObj((&NTI265004), sizeof(Toptionentry265002));
	(*result).Sup.Sup.m_type = (&NTI265002);
	(*result).options = goptions_161119;
	(*result).defaultcc = ((NU8) 0);
	asgnRef((void**) (&(*result).dynlib), NIM_NIL);
	(*result).notes = gnotes_184077;
	return result;
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell47504* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_51440(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell47504* 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(Tcontext265020*, newcontext_265165)(Tsym215822* module) {
	Tcontext265020* result;
	Toptionentry265002* LOC1;
	Tlistentry135010* LOC2;
	TY265331 LOC3;
	result = 0;
	result = (Tcontext265020*) newObj((&NTI265018), sizeof(Tcontext265020));
	(*result).Sup.Sup.m_type = (&NTI265020);
	initintset_212885((&(*result).ambiguoussymbols));
	initlinkedlist_135028((&(*result).optionstack));
	initlinkedlist_135028((&(*result).libs));
	LOC1 = 0;
	LOC1 = newoptionentry_265171();
	LOC2 = 0;
	LOC2 = &LOC1->Sup;
	append_135032((&(*result).optionstack), LOC2);
	asgnRefNoCycle((void**) (&(*result).module), module);
	if ((*result).friendmodules) nimGCunrefNoCycle((*result).friendmodules);
	(*result).friendmodules = (Tsymseq215792*) newSeqRC1((&NTI215792), 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 = (Tsymseq215792*) newSeqRC1((&NTI215792), 0);
	if ((*result).patterns) nimGCunrefNoCycle((*result).patterns);
	(*result).patterns = (Tsymseq215792*) newSeqRC1((&NTI215792), 0);
	initintset_212885((&(*result).includedfiles));
	initstrtable_219001((&(*result).userpragmas));
	if ((*result).generics) nimGCunrefNoCycle((*result).generics);
	(*result).generics = (TY265140*) newSeqRC1((&NTI265140), 0);
	initintset_212885((&(*result).unknownidents));
	return result;
}

N_NIMCALL(Ttype215828*, maketypefromexpr_265556)(Tcontext265020* c, Tnode215790* n) {
	Ttype215828* result;
	result = 0;
	result = newtypes_265184(((NU8) 60), c);
	asgnRefNoCycle((void**) (&(*result).n), n);
	return result;
}

N_NIMCALL(Ttype215828*, errortype_265901)(Tcontext265020* c) {
	Ttype215828* result;
	result = 0;
	result = newtypes_265184(((NU8) 50), c);
	return result;
}

N_NIMCALL(Ttype215828*, maketypedesc_265523)(Tcontext265020* c, Ttype215828* typ) {
	Ttype215828* result;
	result = 0;
	result = newtypes_265184(((NU8) 8), c);
	{
		NimStringDesc* LOC5;
		if (!(typ == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_188183(TMP2789);
		internalerror_188113(LOC5);
	}
	LA3: ;
	addsonskipintlit_259680(result, typ);
	return result;
}

N_NIMCALL(void, illformedast_265950)(Tnode215790* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_234044(n, 4);
	globalerror_188071((*n).info, ((NU16) 1), LOC1);
}

N_NIMCALL(void, checksonslen_265958)(Tnode215790* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_218351(n);
		if (!!((LOC3 == length))) goto LA4;
		illformedast_265950(n);
	}
	LA4: ;
}

N_NIMCALL(Ttype215828*, newtypewithsons_265601)(Tcontext265020* c, NU8 kind, Ttypeseq215824* sons) {
	Ttype215828* result;
	Tsym215822* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_265209();
	result = newtype_218107(kind, LOC1);
	genericSeqAssign((&(*result).sons), sons, (&NTI215824));
	return result;
}

N_NIMCALL(Ttype215828*, makevartype_265490)(Tcontext265020* c, Ttype215828* basetype) {
	Ttype215828* result;
	result = 0;
	{
		if (!((*basetype).kind == ((NU8) 23))) goto LA3;
		result = basetype;
	}
	goto LA1;
	LA3: ;
	{
		result = newtypes_265184(((NU8) 23), c);
		{
			NimStringDesc* LOC10;
			if (!(basetype == NIM_NIL)) goto LA8;
			LOC10 = 0;
			LOC10 = HEX24_188183(TMP2804);
			internalerror_188113(LOC10);
		}
		LA8: ;
		addsonskipintlit_259680(result, basetype);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ttype215828*, makerangetype_265915)(Tcontext265020* c, NI64 first, NI64 last, Tlineinfo183337 info, Ttype215828* inttype) {
	Ttype215828* result;
	Tnode215790* n;
	Tnode215790* LOC1;
	Tnode215790* LOC2;
	result = 0;
	n = newnodei_217248(((NU8) 44), info);
	LOC1 = 0;
	LOC1 = newinttypenode_216665(((NU8) 6), first, inttype);
	addson_217807(n, LOC1);
	LOC2 = 0;
	LOC2 = newinttypenode_216665(((NU8) 6), last, inttype);
	addson_217807(n, LOC2);
	result = newtypes_265184(((NU8) 20), c);
	asgnRefNoCycle((void**) (&(*result).n), n);
	addsonskipintlit_259680(result, inttype);
	return result;
}

N_NIMCALL(Tnode215790*, makestaticexpr_265608)(Tcontext265020* c, Tnode215790* n) {
	Tnode215790* result;
	TY231280 LOC1;
	Ttypeseq215824* LOC2;
	TY367877 LOC3;
	result = 0;
	result = newnodei_217248(((NU8) 62), (*n).info);
	if ((*result).kindU.S6.sons) nimGCunrefNoCycle((*result).kindU.S6.sons);
	(*result).kindU.S6.sons = (Tnodeseq215784*) newSeqRC1((&NTI215784), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = n;
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (Ttypeseq215824*) newSeq((&NTI215824), 1);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = (*n).typ;
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&(*result).typ), newtypewithsons_265601(c, ((NU8) 59), LOC2));
	return result;
}

N_NIMCALL(Ttype215828*, makeandtype_265640)(Tcontext265020* c, Ttype215828* t1, Ttype215828* t2) {
	Ttype215828* result;
	TY265646 LOC1;
	result = 0;
	result = newtypes_265184(((NU8) 55), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq215824*) newSeqRC1((&NTI215824), 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_219190(result, t1);
	propagatetoowner_219190(result, t2);
	(*result).flags = ((*result).flags | (((*t1).flags | (*t2).flags) & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(Ttype215828*, makeortype_265707)(Tcontext265020* c, Ttype215828* t1, Ttype215828* t2) {
	Ttype215828* result;
	TY265646 LOC1;
	result = 0;
	result = newtypes_265184(((NU8) 56), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq215824*) newSeqRC1((&NTI215824), 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_219190(result, t1);
	propagatetoowner_219190(result, t2);
	(*result).flags = ((*result).flags | (((*t1).flags | (*t2).flags) & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(Ttype215828*, makenottype_265774)(Tcontext265020* c, Ttype215828* t1) {
	Ttype215828* result;
	TY367877 LOC1;
	result = 0;
	result = newtypes_265184(((NU8) 57), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq215824*) newSeqRC1((&NTI215824), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = t1;
	asgnRefNoCycle((void**) (&(*result).sons->data[0]), LOC1[0]);
	propagatetoowner_219190(result, t1);
	(*result).flags = ((*result).flags | ((*t1).flags & 4194304));
	(*result).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
	return result;
}

N_NIMCALL(void, checkminsonslen_265962)(Tnode215790* n, NI length) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_218351(n);
		if (!(LOC3 < length)) goto LA4;
		illformedast_265950(n);
	}
	LA4: ;
}

N_NIMCALL(Tnode215790*, nminusone_265828)(Tnode215790* n) {
	Tnode215790* result;
	Tnodeseq215784* LOC1;
	TY383939 LOC2;
	Tsym215822* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (Tnodeseq215784*) newSeq((&NTI215784), 2);
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC3 = 0;
	LOC3 = getsysmagic_259079(((NimStringDesc*) &TMP3161), ((NU8) 25));
	LOC2[0] = newsymnode_217234(LOC3);
	LOC2[1] = n;
	asgnRefNoCycle((void**) (&LOC1->data[0]), LOC2[0]);
	asgnRefNoCycle((void**) (&LOC1->data[1]), LOC2[1]);
	result = newnode_217601(((NU8) 27), (*n).info, LOC1, NIM_NIL);
	return result;
}

N_NIMCALL(Ttype215828*, makerangewithstaticexpr_265845)(Tcontext265020* c, Tnode215790* n) {
	Ttype215828* result;
	Ttype215828* inttype;
	TY367877 LOC1;
	Tnodeseq215784* LOC2;
	TY383939 LOC3;
	Tnode215790* LOC4;
	result = 0;
	inttype = getsystype_259130(((NU8) 31));
	result = newtypes_265184(((NU8) 20), c);
	if ((*result).sons) nimGCunrefNoCycle((*result).sons);
	(*result).sons = (Ttypeseq215824*) newSeqRC1((&NTI215824), 1);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = inttype;
	asgnRefNoCycle((void**) (&(*result).sons->data[0]), LOC1[0]);
	LOC2 = 0;
	LOC2 = (Tnodeseq215784*) newSeq((&NTI215784), 2);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = newinttypenode_216665(((NU8) 6), IL64(0), inttype);
	LOC4 = 0;
	LOC4 = nminusone_265828(n);
	LOC3[1] = makestaticexpr_265608(c, LOC4);
	asgnRefNoCycle((void**) (&LOC2->data[0]), LOC3[0]);
	asgnRefNoCycle((void**) (&LOC2->data[1]), LOC3[1]);
	asgnRefNoCycle((void**) (&(*result).n), newnode_217601(((NU8) 44), (*n).info, LOC2, NIM_NIL));
	return result;
}

N_NIMCALL(void, pushowner_265211)(Tsym215822* owner) {
	gowners_265233 = (Tsymseq215792*) incrSeqV2(&(gowners_265233)->Sup, sizeof(Tsym215822*));
	asgnRefNoCycle((void**) (&gowners_265233->data[gowners_265233->Sup.len]), owner);
	++gowners_265233->Sup.len;
}

N_NIMCALL(void, makeinstpair_265153)(Tsym215822* s, Tinstantiation215812* inst, Tinstantiationpair265010* Result) {
	unsureAsgnRef((void**) (&(*Result).genericsym), s);
	unsureAsgnRef((void**) (&(*Result).inst), inst);
}

N_NIMCALL(Tlib215808*, newlib_265173)(NU8 kind) {
	Tlib215808* result;
	result = 0;
	result = (Tlib215808*) newObj((&NTI215820), sizeof(Tlib215808));
	(*result).Sup.Sup.m_type = (&NTI215808);
	(*result).kind = kind;
	return result;
}

N_NIMCALL(void, addtolib_265176)(Tlib215808* lib, Tsym215822* sym) {
	asgnRef((void**) (&(*sym).annex), lib);
}

N_NIMCALL(void, illformedastlocal_265954)(Tnode215790* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_234044(n, 4);
	localerror_188080((*n).info, ((NU16) 1), LOC1);
}

N_NIMCALL(Toptionentry265002*, lastoptionentry_265168)(Tcontext265020* c) {
	Toptionentry265002* result;
	result = 0;
	result = ((Toptionentry265002*) ((*c).optionstack.tail));
	return result;
}

N_NIMCALL(void, popowner_265214)(void) {
	NI length;
	length = (gowners_265233 ? gowners_265233->Sup.len : 0);
	{
		if (!(((NI) 0) < length)) goto LA3;
		gowners_265233 = (Tsymseq215792*) setLengthSeq(&(gowners_265233)->Sup, sizeof(Tsym215822*), ((NI) ((NI)(length - ((NI) 1)))));
	}
	goto LA1;
	LA3: ;
	{
		internalerror_188113(((NimStringDesc*) &TMP3330));
	}
	LA1: ;
}

N_NIMCALL(Ttype215828*, makeptrtype_265180)(Tcontext265020* c, Ttype215828* basetype) {
	Ttype215828* result;
	result = 0;
	result = newtypes_265184(((NU8) 21), c);
	{
		NimStringDesc* LOC5;
		if (!(basetype == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_188183(TMP3373);
		internalerror_188113(LOC5);
	}
	LA3: ;
	addsonskipintlit_259680(result, basetype);
	return result;
}

N_NIMCALL(Tnode215790*, errornode_265905)(Tcontext265020* c, Tnode215790* n) {
	Tnode215790* result;
	result = 0;
	result = newnodei_217248(((NU8) 1), (*n).info);
	asgnRefNoCycle((void**) (&(*result).typ), errortype_265901(c));
	return result;
}

N_NIMCALL(Tnode215790*, maketypesymnode_265547)(Tcontext265020* c, Ttype215828* typ, Tlineinfo183337 info) {
	Tnode215790* result;
	Ttype215828* typedesc;
	Tsym215822* sym;
	Tsym215822* LOC1;
	Tsym215822* LOC2;
{	result = 0;
	typedesc = maketypedesc_265523(c, typ);
	LOC1 = 0;
	LOC1 = getcurrowner_265209();
	LOC2 = 0;
	LOC2 = newsym_216683(((NU8) 7), idanon_190455, LOC1, info);
	sym = linkto_216854(LOC2, typedesc);
	result = newsymnode_217241(sym, info);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, inclsym_265393)(Tsymseq215792** sq, Tsym215822* s) {
	NI L;
{	L = ((*sq) ? (*sq)->Sup.len : 0);
	{
		NI i_265418;
		NI HEX3Atmp_265432;
		NI res_265435;
		i_265418 = 0;
		HEX3Atmp_265432 = 0;
		HEX3Atmp_265432 = (NI)(L - ((NI) 1));
		res_265435 = ((NI) 0);
		{
			while (1) {
				if (!(res_265435 <= HEX3Atmp_265432)) goto LA3;
				i_265418 = res_265435;
				{
					if (!((*(*sq)->data[i_265418]).Sup.id == (*s).Sup.id)) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
				res_265435 += ((NI) 1);
			} LA3: ;
		}
	}
	(*sq) = (Tsymseq215792*) setLengthSeq(&((*sq))->Sup, sizeof(Tsym215822*), ((NI) ((NI)(L + ((NI) 1)))));
	asgnRefNoCycle((void**) (&(*sq)->data[L]), s);
	}BeforeRet: ;
}

N_NIMCALL(void, addconverter_265439)(Tcontext265020* c, Tsym215822* conv) {
	inclsym_265393((&(*c).converters), conv);
}

N_NIMCALL(void, addpattern_265444)(Tcontext265020* c, Tsym215822* p) {
	inclsym_265393((&(*c).patterns), p);
}
NIM_EXTERNC N_NOINLINE(void, compiler_semdataInit000)(void) {
	if (gowners_265233) nimGCunrefNoCycle(gowners_265233);
	gowners_265233 = (Tsymseq215792*) newSeqRC1((&NTI215792), 0);
}

NIM_EXTERNC N_NOINLINE(void, compiler_semdataDatInit000)(void) {
static TNimNode* TMP2063[38];
static TNimNode* TMP2064[8];
static TNimNode* TMP2066[2];
static TNimNode* TMP2067[2];
static TNimNode* TMP2089[2];
static TNimNode* TMP2092[5];
static TNimNode TMP935[63];
NTI265020.size = sizeof(Tcontext265020);
NTI265020.kind = 17;
NTI265020.base = (&NTI262002);
TMP2063[0] = &TMP935[1];
TMP935[1].kind = 1;
TMP935[1].offset = offsetof(Tcontext265020, module);
TMP935[1].typ = (&NTI215788);
TMP935[1].name = "module";
TMP2063[1] = &TMP935[2];
TMP935[2].kind = 1;
TMP935[2].offset = offsetof(Tcontext265020, currentscope);
TMP935[2].typ = (&NTI215818);
TMP935[2].name = "currentScope";
TMP2063[2] = &TMP935[3];
TMP935[3].kind = 1;
TMP935[3].offset = offsetof(Tcontext265020, importtable);
TMP935[3].typ = (&NTI215818);
TMP935[3].name = "importTable";
TMP2063[3] = &TMP935[4];
TMP935[4].kind = 1;
TMP935[4].offset = offsetof(Tcontext265020, toplevelscope);
TMP935[4].typ = (&NTI215818);
TMP935[4].name = "topLevelScope";
TMP2063[4] = &TMP935[5];
NTI265008.size = sizeof(Tproccon265008);
NTI265008.kind = 18;
NTI265008.base = 0;
TMP2064[0] = &TMP935[7];
TMP935[7].kind = 1;
TMP935[7].offset = offsetof(Tproccon265008, owner);
TMP935[7].typ = (&NTI215788);
TMP935[7].name = "owner";
TMP2064[1] = &TMP935[8];
TMP935[8].kind = 1;
TMP935[8].offset = offsetof(Tproccon265008, resultsym);
TMP935[8].typ = (&NTI215788);
TMP935[8].name = "resultSym";
TMP2064[2] = &TMP935[9];
TMP935[9].kind = 1;
TMP935[9].offset = offsetof(Tproccon265008, nestedloopcounter);
TMP935[9].typ = (&NTI104);
TMP935[9].name = "nestedLoopCounter";
TMP2064[3] = &TMP935[10];
TMP935[10].kind = 1;
TMP935[10].offset = offsetof(Tproccon265008, nestedblockcounter);
TMP935[10].typ = (&NTI104);
TMP935[10].name = "nestedBlockCounter";
TMP2064[4] = &TMP935[11];
TMP935[11].kind = 1;
TMP935[11].offset = offsetof(Tproccon265008, intrystmt);
TMP935[11].typ = (&NTI104);
TMP935[11].name = "inTryStmt";
TMP2064[5] = &TMP935[12];
TMP935[12].kind = 1;
TMP935[12].offset = offsetof(Tproccon265008, next);
TMP935[12].typ = (&NTI265006);
TMP935[12].name = "next";
TMP2064[6] = &TMP935[13];
TMP935[13].kind = 1;
TMP935[13].offset = offsetof(Tproccon265008, wasforwarded);
TMP935[13].typ = (&NTI130);
TMP935[13].name = "wasForwarded";
TMP2064[7] = &TMP935[14];
TMP935[14].kind = 1;
TMP935[14].offset = offsetof(Tproccon265008, bracketexpr);
TMP935[14].typ = (&NTI215782);
TMP935[14].name = "bracketExpr";
TMP935[6].len = 8; TMP935[6].kind = 2; TMP935[6].sons = &TMP2064[0];
NTI265008.node = &TMP935[6];
NTI265006.size = sizeof(Tproccon265008*);
NTI265006.kind = 22;
NTI265006.base = (&NTI265008);
NTI265006.marker = TMP2065;
TMP935[5].kind = 1;
TMP935[5].offset = offsetof(Tcontext265020, p);
TMP935[5].typ = (&NTI265006);
TMP935[5].name = "p";
TMP2063[5] = &TMP935[15];
TMP935[15].kind = 1;
TMP935[15].offset = offsetof(Tcontext265020, friendmodules);
TMP935[15].typ = (&NTI215792);
TMP935[15].name = "friendModules";
TMP2063[6] = &TMP935[16];
TMP935[16].kind = 1;
TMP935[16].offset = offsetof(Tcontext265020, instcounter);
TMP935[16].typ = (&NTI104);
TMP935[16].name = "instCounter";
TMP2063[7] = &TMP935[17];
TMP935[17].kind = 1;
TMP935[17].offset = offsetof(Tcontext265020, ambiguoussymbols);
TMP935[17].typ = (&NTI212035);
TMP935[17].name = "ambiguousSymbols";
TMP2063[8] = &TMP935[18];
TMP935[18].kind = 1;
TMP935[18].offset = offsetof(Tcontext265020, intypeclass);
TMP935[18].typ = (&NTI104);
TMP935[18].name = "inTypeClass";
TMP2063[9] = &TMP935[19];
TMP935[19].kind = 1;
TMP935[19].offset = offsetof(Tcontext265020, ingenericcontext);
TMP935[19].typ = (&NTI104);
TMP935[19].name = "inGenericContext";
TMP2063[10] = &TMP935[20];
TMP935[20].kind = 1;
TMP935[20].offset = offsetof(Tcontext265020, inunrolledcontext);
TMP935[20].typ = (&NTI104);
TMP935[20].name = "inUnrolledContext";
TMP2063[11] = &TMP935[21];
TMP935[21].kind = 1;
TMP935[21].offset = offsetof(Tcontext265020, compilescontextid);
TMP935[21].typ = (&NTI104);
TMP935[21].name = "compilesContextId";
TMP2063[12] = &TMP935[22];
TMP935[22].kind = 1;
TMP935[22].offset = offsetof(Tcontext265020, compilescontextidgenerator);
TMP935[22].typ = (&NTI104);
TMP935[22].name = "compilesContextIdGenerator";
TMP2063[13] = &TMP935[23];
TMP935[23].kind = 1;
TMP935[23].offset = offsetof(Tcontext265020, ingenericinst);
TMP935[23].typ = (&NTI104);
TMP935[23].name = "inGenericInst";
TMP2063[14] = &TMP935[24];
TMP935[24].kind = 1;
TMP935[24].offset = offsetof(Tcontext265020, converters);
TMP935[24].typ = (&NTI215792);
TMP935[24].name = "converters";
TMP2063[15] = &TMP935[25];
TMP935[25].kind = 1;
TMP935[25].offset = offsetof(Tcontext265020, patterns);
TMP935[25].typ = (&NTI215792);
TMP935[25].name = "patterns";
TMP2063[16] = &TMP935[26];
TMP935[26].kind = 1;
TMP935[26].offset = offsetof(Tcontext265020, optionstack);
TMP935[26].typ = (&NTI135016);
TMP935[26].name = "optionStack";
TMP2063[17] = &TMP935[27];
TMP935[27].kind = 1;
TMP935[27].offset = offsetof(Tcontext265020, symmapping);
TMP935[27].typ = (&NTI215840);
TMP935[27].name = "symMapping";
TMP2063[18] = &TMP935[28];
TMP935[28].kind = 1;
TMP935[28].offset = offsetof(Tcontext265020, libs);
TMP935[28].typ = (&NTI135016);
TMP935[28].name = "libs";
TMP2063[19] = &TMP935[29];
NTI265071.size = sizeof(TY265071);
NTI265071.kind = 25;
NTI265071.base = 0;
NTI265071.flags = 3;
TMP935[29].kind = 1;
TMP935[29].offset = offsetof(Tcontext265020, semconstexpr);
TMP935[29].typ = (&NTI265071);
TMP935[29].name = "semConstExpr";
TMP2063[20] = &TMP935[30];
NTI265076.size = sizeof(TY265076);
NTI265076.kind = 25;
NTI265076.base = 0;
NTI265076.flags = 3;
TMP935[30].kind = 1;
TMP935[30].offset = offsetof(Tcontext265020, semexpr);
TMP935[30].typ = (&NTI265076);
TMP935[30].name = "semExpr";
TMP2063[21] = &TMP935[31];
NTI265084.size = sizeof(TY265084);
NTI265084.kind = 25;
NTI265084.base = 0;
NTI265084.flags = 3;
TMP935[31].kind = 1;
TMP935[31].offset = offsetof(Tcontext265020, semtryexpr);
TMP935[31].typ = (&NTI265084);
TMP935[31].name = "semTryExpr";
TMP2063[22] = &TMP935[32];
NTI265092.size = sizeof(TY265092);
NTI265092.kind = 25;
NTI265092.base = 0;
NTI265092.flags = 3;
TMP935[32].kind = 1;
TMP935[32].offset = offsetof(Tcontext265020, semtryconstexpr);
TMP935[32].typ = (&NTI265092);
TMP935[32].name = "semTryConstExpr";
TMP2063[23] = &TMP935[33];
NTI265097.size = sizeof(TY265097);
NTI265097.kind = 25;
NTI265097.base = 0;
NTI265097.flags = 3;
TMP935[33].kind = 1;
TMP935[33].offset = offsetof(Tcontext265020, semoperand);
TMP935[33].typ = (&NTI265097);
TMP935[33].name = "semOperand";
TMP2063[24] = &TMP935[34];
NTI265105.size = sizeof(TY265105);
NTI265105.kind = 25;
NTI265105.base = 0;
NTI265105.flags = 3;
TMP935[34].kind = 1;
TMP935[34].offset = offsetof(Tcontext265020, semconstboolexpr);
TMP935[34].typ = (&NTI265105);
TMP935[34].name = "semConstBoolExpr";
TMP2063[25] = &TMP935[35];
NTI265110.size = sizeof(TY265110);
NTI265110.kind = 25;
NTI265110.base = 0;
NTI265110.flags = 3;
TMP935[35].kind = 1;
TMP935[35].offset = offsetof(Tcontext265020, semoverloadedcall);
TMP935[35].typ = (&NTI265110);
TMP935[35].name = "semOverloadedCall";
TMP2063[26] = &TMP935[36];
NTI265117.size = sizeof(TY265117);
NTI265117.kind = 25;
NTI265117.base = 0;
NTI265117.flags = 3;
TMP935[36].kind = 1;
TMP935[36].offset = offsetof(Tcontext265020, semtypenode);
TMP935[36].typ = (&NTI265117);
TMP935[36].name = "semTypeNode";
TMP2063[27] = &TMP935[37];
NTI265123.size = sizeof(TY532873);
NTI265123.kind = 18;
NTI265123.base = 0;
NTI265123.flags = 2;
TMP2066[0] = &TMP935[39];
TMP935[39].kind = 1;
TMP935[39].offset = offsetof(TY532873, Field0);
TMP935[39].typ = (&NTI142);
TMP935[39].name = "Field0";
TMP2066[1] = &TMP935[40];
TMP935[40].kind = 1;
TMP935[40].offset = offsetof(TY532873, Field1);
TMP935[40].typ = (&NTI532875);
TMP935[40].name = "Field1";
TMP935[38].len = 2; TMP935[38].kind = 2; TMP935[38].sons = &TMP2066[0];
NTI265123.node = &TMP935[38];
TMP935[37].kind = 1;
TMP935[37].offset = offsetof(Tcontext265020, seminferredlambda);
TMP935[37].typ = (&NTI265123);
TMP935[37].name = "semInferredLambda";
TMP2063[28] = &TMP935[41];
NTI265129.size = sizeof(TY532873);
NTI265129.kind = 18;
NTI265129.base = 0;
NTI265129.flags = 2;
TMP2067[0] = &TMP935[43];
TMP935[43].kind = 1;
TMP935[43].offset = offsetof(TY532873, Field0);
TMP935[43].typ = (&NTI142);
TMP935[43].name = "Field0";
TMP2067[1] = &TMP935[44];
TMP935[44].kind = 1;
TMP935[44].offset = offsetof(TY532873, Field1);
TMP935[44].typ = (&NTI532875);
TMP935[44].name = "Field1";
TMP935[42].len = 2; TMP935[42].kind = 2; TMP935[42].sons = &TMP2067[0];
NTI265129.node = &TMP935[42];
TMP935[41].kind = 1;
TMP935[41].offset = offsetof(Tcontext265020, semgenerateinstance);
TMP935[41].typ = (&NTI265129);
TMP935[41].name = "semGenerateInstance";
TMP2063[29] = &TMP935[45];
TMP935[45].kind = 1;
TMP935[45].offset = offsetof(Tcontext265020, includedfiles);
TMP935[45].typ = (&NTI212035);
TMP935[45].name = "includedFiles";
TMP2063[30] = &TMP935[46];
TMP935[46].kind = 1;
TMP935[46].offset = offsetof(Tcontext265020, userpragmas);
TMP935[46].typ = (&NTI215794);
TMP935[46].name = "userPragmas";
TMP2063[31] = &TMP935[47];
TMP935[47].kind = 1;
TMP935[47].offset = offsetof(Tcontext265020, evalcontext);
TMP935[47].typ = (&NTI264034);
TMP935[47].name = "evalContext";
TMP2063[32] = &TMP935[48];
TMP935[48].kind = 1;
TMP935[48].offset = offsetof(Tcontext265020, unknownidents);
TMP935[48].typ = (&NTI212035);
TMP935[48].name = "unknownIdents";
TMP2063[33] = &TMP935[49];
NTI265010.size = sizeof(Tinstantiationpair265010);
NTI265010.kind = 18;
NTI265010.base = 0;
NTI265010.flags = 2;
TMP2089[0] = &TMP935[51];
TMP935[51].kind = 1;
TMP935[51].offset = offsetof(Tinstantiationpair265010, genericsym);
TMP935[51].typ = (&NTI215788);
TMP935[51].name = "genericSym";
TMP2089[1] = &TMP935[52];
TMP935[52].kind = 1;
TMP935[52].offset = offsetof(Tinstantiationpair265010, inst);
TMP935[52].typ = (&NTI215814);
TMP935[52].name = "inst";
TMP935[50].len = 2; TMP935[50].kind = 2; TMP935[50].sons = &TMP2089[0];
NTI265010.node = &TMP935[50];
NTI265140.size = sizeof(TY265140*);
NTI265140.kind = 24;
NTI265140.base = (&NTI265010);
NTI265140.flags = 2;
NTI265140.marker = TMP2090;
TMP935[49].kind = 1;
TMP935[49].offset = offsetof(Tcontext265020, generics);
TMP935[49].typ = (&NTI265140);
TMP935[49].name = "generics";
TMP2063[34] = &TMP935[53];
TMP935[53].kind = 1;
TMP935[53].offset = offsetof(Tcontext265020, lastgenericidx);
TMP935[53].typ = (&NTI104);
TMP935[53].name = "lastGenericIdx";
TMP2063[35] = &TMP935[54];
TMP935[54].kind = 1;
TMP935[54].offset = offsetof(Tcontext265020, hloloopdetector);
TMP935[54].typ = (&NTI104);
TMP935[54].name = "hloLoopDetector";
TMP2063[36] = &TMP935[55];
TMP935[55].kind = 1;
TMP935[55].offset = offsetof(Tcontext265020, inparallelstmt);
TMP935[55].typ = (&NTI104);
TMP935[55].name = "inParallelStmt";
TMP2063[37] = &TMP935[56];
NTI265145.size = sizeof(TY265145);
NTI265145.kind = 25;
NTI265145.base = 0;
NTI265145.flags = 3;
TMP935[56].kind = 1;
TMP935[56].offset = offsetof(Tcontext265020, insttypeboundop);
TMP935[56].typ = (&NTI265145);
TMP935[56].name = "instTypeBoundOp";
TMP935[0].len = 38; TMP935[0].kind = 2; TMP935[0].sons = &TMP2063[0];
NTI265020.node = &TMP935[0];
NTI265018.size = sizeof(Tcontext265020*);
NTI265018.kind = 22;
NTI265018.base = (&NTI265020);
NTI265018.marker = TMP2091;
NTI265002.size = sizeof(Toptionentry265002);
NTI265002.kind = 17;
NTI265002.base = (&NTI135010);
TMP2092[0] = &TMP935[58];
TMP935[58].kind = 1;
TMP935[58].offset = offsetof(Toptionentry265002, options);
TMP935[58].typ = (&NTI161011);
TMP935[58].name = "options";
TMP2092[1] = &TMP935[59];
TMP935[59].kind = 1;
TMP935[59].offset = offsetof(Toptionentry265002, defaultcc);
TMP935[59].typ = (&NTI215002);
TMP935[59].name = "defaultCC";
TMP2092[2] = &TMP935[60];
TMP935[60].kind = 1;
TMP935[60].offset = offsetof(Toptionentry265002, dynlib);
TMP935[60].typ = (&NTI215820);
TMP935[60].name = "dynlib";
TMP2092[3] = &TMP935[61];
TMP935[61].kind = 1;
TMP935[61].offset = offsetof(Toptionentry265002, notes);
TMP935[61].typ = (&NTI183333);
TMP935[61].name = "notes";
TMP2092[4] = &TMP935[62];
TMP935[62].kind = 1;
TMP935[62].offset = offsetof(Toptionentry265002, otherpragmas);
TMP935[62].typ = (&NTI215782);
TMP935[62].name = "otherPragmas";
TMP935[57].len = 5; TMP935[57].kind = 2; TMP935[57].sons = &TMP2092[0];
NTI265002.node = &TMP935[57];
NTI265004.size = sizeof(Toptionentry265002*);
NTI265004.kind = 22;
NTI265004.base = (&NTI265002);
NTI265004.marker = TMP2096;
}

