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

#include "nimbase.h"
#include <string.h>
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tctx277048 Tctx277048;
typedef struct Tpasscontext275005 Tpasscontext275005;
typedef struct TNimObject TNimObject;
typedef struct TY277254 TY277254;
typedef struct TY189420 TY189420;
typedef struct Tnode223809 Tnode223809;
typedef struct Ttypeseq223843 Ttypeseq223843;
typedef struct PprocHEX3Aobjecttype277233 PprocHEX3Aobjecttype277233;
typedef struct Tsym223841 Tsym223841;
typedef struct Tlineinfo188352 Tlineinfo188352;
typedef struct TY277273 TY277273;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct TY277234 TY277234;
typedef struct TY277239 TY277239;
typedef struct Tblock277030 Tblock277030;
typedef struct TY277214 TY277214;
typedef struct TY277274 TY277274;
typedef struct Vmargs277042 Vmargs277042;
typedef struct TY574951 TY574951;
typedef struct TY574954 TY574954;
typedef struct Cell48947 Cell48947;
typedef struct Cellseq48963 Cellseq48963;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48959 Cellset48959;
typedef struct Pagedesc48955 Pagedesc48955;
typedef struct Memregion30890 Memregion30890;
typedef struct Smallchunk30842 Smallchunk30842;
typedef struct Llchunk30884 Llchunk30884;
typedef struct Bigchunk30844 Bigchunk30844;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30888 Avlnode30888;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Ttype223847 Ttype223847;
typedef struct Tident196021 Tident196021;
typedef struct Tnodeseq223803 Tnodeseq223803;
typedef struct Tidobj196015 Tidobj196015;
typedef struct Tscope223835 Tscope223835;
typedef struct TY223944 TY223944;
typedef struct Tstrtable223813 Tstrtable223813;
typedef struct Tsymseq223811 Tsymseq223811;
typedef struct Tloc223823 Tloc223823;
typedef struct Ropeobj174009 Ropeobj174009;
typedef struct Tlib223827 Tlib223827;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct Tinstantiation223831 Tinstantiation223831;
typedef struct Tlistentry139022 Tlistentry139022;
typedef struct TY223932 TY223932;
typedef N_NIMCALL_PTR(void, TY3889) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3894) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3889 marker;
TY3894 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tpasscontext275005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Tlineinfo188352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tctx277048  {
  Tpasscontext275005 Sup;
TY277254* code;
TY189420* debug;
Tnode223809* globals;
Tnode223809* constants;
Ttypeseq223843* types;
Tnode223809* currentexceptiona;
Tnode223809* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype277233* prc;
Tsym223841* module;
Tnode223809* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo188352 comesfromheuristic;
TY277273* callbacks;
NimStringDesc* errorflag;
};
struct TY277239 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY277239 TY277242[256];
struct  PprocHEX3Aobjecttype277233  {
TY277234* blocks;
Tsym223841* sym;
TY277242 slots;
NI maxslots;
};
struct  Tblock277030  {
Tsym223841* label;
TY277214* fixups;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs277042* args, void* ClEnv);
void* ClEnv;
} Vmcallback277044;
struct TY277274 {
NimStringDesc* Field0;
Vmcallback277044 Field1;
};
struct TY574951 {
void* Field0;
TY574954* Field1;
};
struct  Cell48947  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48963  {
NI len;
NI cap;
Cell48947** d;
};
struct  Cellset48959  {
NI counter;
NI max;
Pagedesc48955* head;
Pagedesc48955** data;
};
typedef Smallchunk30842* TY30905[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30890  {
NI minlargeobj;
NI maxlargeobj;
TY30905 freesmallchunks;
Llchunk30884* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30844* freechunkslist;
Intset30817 chunkstarts;
Avlnode30888* root;
Avlnode30888* deleted;
Avlnode30888* last;
Avlnode30888* freeavlnodes;
};
struct  Gcstat51014  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51018  {
Gcstack51016* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq48963 zct;
Cellseq48963 decstack;
Cellset48959 cycleroots;
Cellseq48963 tempstack;
NI recgclock;
Memregion30890 region;
Gcstat51014 stat;
};
struct  Tnode223809  {
Ttype223847* typ;
Tlineinfo188352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym223841* sym;
} S4;
struct {Tident196021* ident;
} S5;
struct {Tnodeseq223803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tidobj196015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable223813  {
NI counter;
Tsymseq223811* data;
};
struct  Tloc223823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype223847* t;
Ropeobj174009* r;
Ropeobj174009* heaproot;
};
struct  Tsym223841  {
  Tidobj196015 Sup;
NU8 kind;
union{
struct {Ttypeseq223843* typeinstcache;
Tscope223835* typscope;
} S1;
struct {TY223944* procinstcache;
Tsym223841* gcunsafetyreason;
} S2;
struct {TY223944* usedgenerics;
Tstrtable223813 tab;
} S3;
struct {Tsym223841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype223847* typ;
Tident196021* name;
Tlineinfo188352 info;
Tsym223841* owner;
NU32 flags;
Tnode223809* ast;
NU32 options;
NI position;
NI offset;
Tloc223823 loc;
Tlib223827* annex;
Tnode223809* constraint;
};
struct  Vmargs277042  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode223809* currentexception;
};
struct TY574954 {
char dummy;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30821[16];
struct  Pagedesc48955  {
Pagedesc48955* next;
NI key;
TY30821 bits;
};
struct  Basechunk30840  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30842  {
  Basechunk30840 Sup;
Smallchunk30842* next;
Smallchunk30842* prev;
Freecell30832* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30884  {
NI size;
NI acc;
Llchunk30884* next;
};
struct  Bigchunk30844  {
  Basechunk30840 Sup;
Bigchunk30844* next;
Bigchunk30844* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30821 bits;
};
typedef Avlnode30888* TY30895[2];
struct  Avlnode30888  {
TY30895 link;
NI key;
NI upperbound;
NI level;
};
struct  Ttype223847  {
  Tidobj196015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq223843* sons;
Tnode223809* n;
Tsym223841* owner;
Tsym223841* sym;
Tsym223841* destructor;
Tsym223841* deepcopy;
Tsym223841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc223823 loc;
};
struct  Tident196021  {
  Tidobj196015 Sup;
NimStringDesc* s;
Tident196021* next;
NI h;
};
struct  Tscope223835  {
NI depthlevel;
Tstrtable223813 symbols;
Tnodeseq223803* usingsyms;
Tscope223835* parent;
};
struct  Ropeobj174009  {
  TNimObject Sup;
Ropeobj174009* left;
Ropeobj174009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry139022  {
  TNimObject Sup;
Tlistentry139022* prev;
Tlistentry139022* next;
};
struct  Tlib223827  {
  Tlistentry139022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj174009* name;
Tnode223809* path;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct  Tinstantiation223831  {
Tsym223841* sym;
Ttypeseq223843* concretetypes;
TY223932* usedby;
NI compilesid;
};
struct TY277254 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY277214 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
struct TY277234 {
  TGenericSeq Sup;
  Tblock277030 data[SEQ_DECL_SIZE];
};
struct TY277273 {
  TGenericSeq Sup;
  TY277274 data[SEQ_DECL_SIZE];
};
struct TY189420 {
  TGenericSeq Sup;
  Tlineinfo188352 data[SEQ_DECL_SIZE];
};
struct Ttypeseq223843 {
  TGenericSeq Sup;
  Ttype223847* data[SEQ_DECL_SIZE];
};
struct Tnodeseq223803 {
  TGenericSeq Sup;
  Tnode223809* data[SEQ_DECL_SIZE];
};
struct TY223944 {
  TGenericSeq Sup;
  Tinstantiation223831* data[SEQ_DECL_SIZE];
};
struct Tsymseq223811 {
  TGenericSeq Sup;
  Tsym223841* data[SEQ_DECL_SIZE];
};
struct TY223932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, TMP2032)(void* p, NI op);
N_NIMCALL(void, TMP2035)(void* p, NI op);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP2036)(void* p, NI op);
N_NIMCALL(void, TMP2041)(void* p, NI op);
N_NIMCALL(void, TMP2050)(void* p, NI op);
N_NIMCALL(void, TMP2051)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell48947*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48947* c);
N_NOINLINE(void, addzct_52617)(Cellseq48963* s, Cell48947* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(Tnode223809*, newnode_224401)(NU8 kind);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(Tlineinfo188352, unknownlineinfo_189411)(void);
static N_INLINE(void, nimGCunref)(void* p);
static N_INLINE(void, decref_54604)(Cell48947* c);
static N_INLINE(NIM_BOOL, canbecycleroot_52667)(Cell48947* c);
static N_INLINE(void, rtladdcycleroot_53423)(Cell48947* c);
N_NOINLINE(void, incl_49665)(Cellset48959* s, Cell48947* cell);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_55022)(Cell48947* c);
STRING_LITERAL(TMP2806, "", 0);
extern TNimType NTI275005; /* TPassContext */
TNimType NTI277048; /* TCtx */
extern TNimType NTI124; /* uint32 */
TNimType NTI277254; /* seq[TInstr] */
extern TNimType NTI189420; /* seq[TLineInfo] */
extern TNimType NTI223801; /* PNode */
extern TNimType NTI223843; /* TTypeSeq */
extern TNimType NTI108; /* int */
TNimType NTI277233; /* PProc:ObjectType */
TNimType NTI277030; /* TBlock */
extern TNimType NTI223807; /* PSym */
TNimType NTI277214; /* seq[TPosition] */
TNimType NTI277234; /* seq[TBlock] */
TNimType NTI277239; /* tuple[inUse: bool, kind: TSlotKind] */
extern TNimType NTI138; /* bool */
TNimType NTI277038; /* TSlotKind */
TNimType NTI277242; /* array[0..255, tuple[inUse: bool, kind: TSlotKind]] */
TNimType NTI277040; /* PProc */
TNimType NTI277032; /* TEvalMode */
TNimType NTI277034; /* TSandboxFlag */
TNimType NTI277036; /* TSandboxFlags */
extern TNimType NTI188352; /* TLineInfo */
TNimType NTI277274; /* tuple[key: string, value: VmCallback] */
extern TNimType NTI149; /* string */
TNimType NTI277044; /* (pointer, ref tuple[]) */
extern TNimType NTI153; /* pointer */
extern TNimType NTI574953; /* ref tuple[] */
TNimType NTI277273; /* seq[tuple[key: string, value: VmCallback]] */
TNimType NTI277046; /* PCtx */
extern Gcheap51018 gch_51059;
N_NIMCALL(void, TMP2032)(void* p, NI op) {
	TY277254* a;
	NI LOC1;
	a = (TY277254*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
N_NIMCALL(void, TMP2035)(void* p, NI op) {
	TY277214* a;
	NI LOC1;
	a = (TY277214*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
N_NIMCALL(void, TMP2036)(void* p, NI op) {
	TY277234* a;
	NI LOC1;
	a = (TY277234*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1].label, op);
	nimGCvisit((void*)a->data[LOC1].fixups, op);
	}
}
N_NIMCALL(void, TMP2041)(void* p, NI op) {
	PprocHEX3Aobjecttype277233* a;
	NI LOC1;
	a = (PprocHEX3Aobjecttype277233*)p;
	nimGCvisit((void*)(*a).blocks, op);
	nimGCvisit((void*)(*a).sym, op);
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < 256; LOC1++) {
	}
}
N_NIMCALL(void, TMP2050)(void* p, NI op) {
	TY277273* a;
	NI LOC1;
	a = (TY277273*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1].Field0, op);
	nimGCvisit((void*)a->data[LOC1].Field1.ClEnv, op);
	}
}
N_NIMCALL(void, TMP2051)(void* p, NI op) {
	Tctx277048* a;
	a = (Tctx277048*)p;
	nimGCvisit((void*)(*a).code, op);
	nimGCvisit((void*)(*a).debug, op);
	nimGCvisit((void*)(*a).globals, op);
	nimGCvisit((void*)(*a).constants, op);
	nimGCvisit((void*)(*a).types, op);
	nimGCvisit((void*)(*a).currentexceptiona, op);
	nimGCvisit((void*)(*a).currentexceptionb, op);
	nimGCvisit((void*)(*a).prc, op);
	nimGCvisit((void*)(*a).module, op);
	nimGCvisit((void*)(*a).callsite, op);
	nimGCvisit((void*)(*a).callbacks, op);
	nimGCvisit((void*)(*a).errorflag, op);
}

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

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

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

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell48947* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_52646(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell48947* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_52646((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA11;
			rtladdzct_54204(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

static N_INLINE(NIM_BOOL, canbecycleroot_52667)(Cell48947* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).typ).flags &(1<<((((NU8) 1))&7)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_53423)(Cell48947* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_49665((&gch_51059.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, decref_54604)(Cell48947* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_54204(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_52667(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_53423(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, nimGCunref)(void* p) {
	Cell48947* LOC1;
	LOC1 = 0;
	LOC1 = usrtocell_52646(p);
	decref_54604(LOC1);
}

N_NIMCALL(Tctx277048*, newctx_277282)(Tsym223841* module) {
	Tctx277048* result;
	Tctx277048* LOC1;
	PprocHEX3Aobjecttype277233* LOC2;
	NimStringDesc* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (Tctx277048*) newObj((&NTI277046), sizeof(Tctx277048));
	(*LOC1).Sup.Sup.m_type = (&NTI277048);
	if ((*LOC1).code) nimGCunrefNoCycle((*LOC1).code);
	(*LOC1).code = (TY277254*) newSeqRC1((&NTI277254), 0);
	if ((*LOC1).debug) nimGCunrefNoCycle((*LOC1).debug);
	(*LOC1).debug = (TY189420*) newSeqRC1((&NTI189420), 0);
	asgnRefNoCycle((void**) (&(*LOC1).globals), newnode_224401(((NU8) 126)));
	asgnRefNoCycle((void**) (&(*LOC1).constants), newnode_224401(((NU8) 115)));
	if ((*LOC1).types) nimGCunrefNoCycle((*LOC1).types);
	(*LOC1).types = (Ttypeseq223843*) newSeqRC1((&NTI223843), 0);
	LOC2 = 0;
	LOC2 = (PprocHEX3Aobjecttype277233*) newObj((&NTI277040), sizeof(PprocHEX3Aobjecttype277233));
	if ((*LOC2).blocks) nimGCunrefNoCycle((*LOC2).blocks);
	(*LOC2).blocks = (TY277234*) newSeqRC1((&NTI277234), 0);
	asgnRefNoCycle((void**) (&(*LOC1).prc), LOC2);
	asgnRefNoCycle((void**) (&(*LOC1).module), module);
	(*LOC1).loopiterations = ((NI) 1500000);
	(*LOC1).comesfromheuristic = unknownlineinfo_189411();
	if ((*LOC1).callbacks) nimGCunref((*LOC1).callbacks);
	(*LOC1).callbacks = (TY277273*) newSeqRC1((&NTI277273), 0);
	LOC3 = 0;
	LOC3 = (*LOC1).errorflag; (*LOC1).errorflag = copyStringRC1(((NimStringDesc*) &TMP2806));
	if (LOC3) nimGCunrefNoCycle(LOC3);
	result = LOC1;
	return result;
}

static N_INLINE(void, incref_55022)(Cell48947* c) {
	(*c).refcount = (NI)((NU32)((*c).refcount) + (NU32)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_52667(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_53423(c);
	}
	LA4: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Cell48947* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_52646(src);
		incref_55022(LOC5);
	}
	LA3: ;
	{
		Cell48947* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_52646((*dest));
		decref_54604(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(void, registercallback_277401)(Tctx277048* c, NimStringDesc* name, Vmcallback277044 callback) {
	TY277274 LOC1;
	NimStringDesc* LOC2;
	memset((void*)(&LOC1), 0, sizeof(LOC1));
	LOC1.Field0 = copyString(name);
	LOC1.Field1.ClEnv = callback.ClEnv;
	LOC1.Field1.ClPrc = callback.ClPrc;
	(*c).callbacks = (TY277273*) incrSeqV2(&((*c).callbacks)->Sup, sizeof(TY277274));
	LOC2 = 0;
	LOC2 = (*c).callbacks->data[(*c).callbacks->Sup.len].Field0; (*c).callbacks->data[(*c).callbacks->Sup.len].Field0 = copyStringRC1(LOC1.Field0);
	if (LOC2) nimGCunrefNoCycle(LOC2);
	asgnRef((void**) (&(*c).callbacks->data[(*c).callbacks->Sup.len].Field1.ClEnv), LOC1.Field1.ClEnv);
	(*c).callbacks->data[(*c).callbacks->Sup.len].Field1.ClPrc = LOC1.Field1.ClPrc;
	++(*c).callbacks->Sup.len;
}

N_NIMCALL(void, refresh_277374)(Tctx277048* c, Tsym223841* module) {
	PprocHEX3Aobjecttype277233* LOC1;
	asgnRefNoCycle((void**) (&(*c).module), module);
	LOC1 = 0;
	LOC1 = (PprocHEX3Aobjecttype277233*) newObj((&NTI277040), sizeof(PprocHEX3Aobjecttype277233));
	if ((*LOC1).blocks) nimGCunrefNoCycle((*LOC1).blocks);
	(*LOC1).blocks = (TY277234*) newSeqRC1((&NTI277234), 0);
	asgnRefNoCycle((void**) (&(*c).prc), LOC1);
	(*c).loopiterations = ((NI) 1500000);
}
NIM_EXTERNC N_NOINLINE(void, compiler_vmdefInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, compiler_vmdefDatInit000)(void) {
static TNimNode* TMP2031[18];
static TNimNode* TMP2033[4];
static TNimNode* TMP2034[2];
static TNimNode* TMP2037[2];
static TNimNode* TMP2038[9];
NI TMP2040;
static char* NIM_CONST TMP2039[9] = {
"slotEmpty", 
"slotFixedVar", 
"slotFixedLet", 
"slotTempUnknown", 
"slotTempInt", 
"slotTempFloat", 
"slotTempStr", 
"slotTempComplex", 
"slotTempPerm"};
static TNimNode* TMP2042[5];
NI TMP2044;
static char* NIM_CONST TMP2043[5] = {
"emRepl", 
"emConst", 
"emOptimize", 
"emStaticExpr", 
"emStaticStmt"};
static TNimNode* TMP2045[3];
NI TMP2047;
static char* NIM_CONST TMP2046[3] = {
"allowCast", 
"allowFFI", 
"allowInfiniteLoops"};
static TNimNode* TMP2048[2];
static TNimNode* TMP2049[2];
static TNimNode TMP933[57];
NTI277048.size = sizeof(Tctx277048);
NTI277048.kind = 17;
NTI277048.base = (&NTI275005);
TMP2031[0] = &TMP933[1];
NTI277254.size = sizeof(TY277254*);
NTI277254.kind = 24;
NTI277254.base = (&NTI124);
NTI277254.flags = 2;
NTI277254.marker = TMP2032;
TMP933[1].kind = 1;
TMP933[1].offset = offsetof(Tctx277048, code);
TMP933[1].typ = (&NTI277254);
TMP933[1].name = "code";
TMP2031[1] = &TMP933[2];
TMP933[2].kind = 1;
TMP933[2].offset = offsetof(Tctx277048, debug);
TMP933[2].typ = (&NTI189420);
TMP933[2].name = "debug";
TMP2031[2] = &TMP933[3];
TMP933[3].kind = 1;
TMP933[3].offset = offsetof(Tctx277048, globals);
TMP933[3].typ = (&NTI223801);
TMP933[3].name = "globals";
TMP2031[3] = &TMP933[4];
TMP933[4].kind = 1;
TMP933[4].offset = offsetof(Tctx277048, constants);
TMP933[4].typ = (&NTI223801);
TMP933[4].name = "constants";
TMP2031[4] = &TMP933[5];
TMP933[5].kind = 1;
TMP933[5].offset = offsetof(Tctx277048, types);
TMP933[5].typ = (&NTI223843);
TMP933[5].name = "types";
TMP2031[5] = &TMP933[6];
TMP933[6].kind = 1;
TMP933[6].offset = offsetof(Tctx277048, currentexceptiona);
TMP933[6].typ = (&NTI223801);
TMP933[6].name = "currentExceptionA";
TMP2031[6] = &TMP933[7];
TMP933[7].kind = 1;
TMP933[7].offset = offsetof(Tctx277048, currentexceptionb);
TMP933[7].typ = (&NTI223801);
TMP933[7].name = "currentExceptionB";
TMP2031[7] = &TMP933[8];
TMP933[8].kind = 1;
TMP933[8].offset = offsetof(Tctx277048, exceptioninstr);
TMP933[8].typ = (&NTI108);
TMP933[8].name = "exceptionInstr";
TMP2031[8] = &TMP933[9];
NTI277233.size = sizeof(PprocHEX3Aobjecttype277233);
NTI277233.kind = 18;
NTI277233.base = 0;
NTI277233.flags = 2;
TMP2033[0] = &TMP933[11];
NTI277030.size = sizeof(Tblock277030);
NTI277030.kind = 18;
NTI277030.base = 0;
NTI277030.flags = 2;
TMP2034[0] = &TMP933[13];
TMP933[13].kind = 1;
TMP933[13].offset = offsetof(Tblock277030, label);
TMP933[13].typ = (&NTI223807);
TMP933[13].name = "label";
TMP2034[1] = &TMP933[14];
NTI277214.size = sizeof(TY277214*);
NTI277214.kind = 24;
NTI277214.base = (&NTI108);
NTI277214.flags = 2;
NTI277214.marker = TMP2035;
TMP933[14].kind = 1;
TMP933[14].offset = offsetof(Tblock277030, fixups);
TMP933[14].typ = (&NTI277214);
TMP933[14].name = "fixups";
TMP933[12].len = 2; TMP933[12].kind = 2; TMP933[12].sons = &TMP2034[0];
NTI277030.node = &TMP933[12];
NTI277234.size = sizeof(TY277234*);
NTI277234.kind = 24;
NTI277234.base = (&NTI277030);
NTI277234.flags = 2;
NTI277234.marker = TMP2036;
TMP933[11].kind = 1;
TMP933[11].offset = offsetof(PprocHEX3Aobjecttype277233, blocks);
TMP933[11].typ = (&NTI277234);
TMP933[11].name = "blocks";
TMP2033[1] = &TMP933[15];
TMP933[15].kind = 1;
TMP933[15].offset = offsetof(PprocHEX3Aobjecttype277233, sym);
TMP933[15].typ = (&NTI223807);
TMP933[15].name = "sym";
TMP2033[2] = &TMP933[16];
NTI277239.size = sizeof(TY277239);
NTI277239.kind = 18;
NTI277239.base = 0;
NTI277239.flags = 3;
TMP2037[0] = &TMP933[18];
TMP933[18].kind = 1;
TMP933[18].offset = offsetof(TY277239, Field0);
TMP933[18].typ = (&NTI138);
TMP933[18].name = "Field0";
TMP2037[1] = &TMP933[19];
NTI277038.size = sizeof(NU8);
NTI277038.kind = 14;
NTI277038.base = 0;
NTI277038.flags = 3;
for (TMP2040 = 0; TMP2040 < 9; TMP2040++) {
TMP933[TMP2040+20].kind = 1;
TMP933[TMP2040+20].offset = TMP2040;
TMP933[TMP2040+20].name = TMP2039[TMP2040];
TMP2038[TMP2040] = &TMP933[TMP2040+20];
}
TMP933[29].len = 9; TMP933[29].kind = 2; TMP933[29].sons = &TMP2038[0];
NTI277038.node = &TMP933[29];
TMP933[19].kind = 1;
TMP933[19].offset = offsetof(TY277239, Field1);
TMP933[19].typ = (&NTI277038);
TMP933[19].name = "Field1";
TMP933[17].len = 2; TMP933[17].kind = 2; TMP933[17].sons = &TMP2037[0];
NTI277239.node = &TMP933[17];
NTI277242.size = sizeof(TY277242);
NTI277242.kind = 16;
NTI277242.base = (&NTI277239);
NTI277242.flags = 3;
TMP933[16].kind = 1;
TMP933[16].offset = offsetof(PprocHEX3Aobjecttype277233, slots);
TMP933[16].typ = (&NTI277242);
TMP933[16].name = "slots";
TMP2033[3] = &TMP933[30];
TMP933[30].kind = 1;
TMP933[30].offset = offsetof(PprocHEX3Aobjecttype277233, maxslots);
TMP933[30].typ = (&NTI108);
TMP933[30].name = "maxSlots";
TMP933[10].len = 4; TMP933[10].kind = 2; TMP933[10].sons = &TMP2033[0];
NTI277233.node = &TMP933[10];
NTI277040.size = sizeof(PprocHEX3Aobjecttype277233*);
NTI277040.kind = 22;
NTI277040.base = (&NTI277233);
NTI277040.flags = 2;
NTI277040.marker = TMP2041;
TMP933[9].kind = 1;
TMP933[9].offset = offsetof(Tctx277048, prc);
TMP933[9].typ = (&NTI277040);
TMP933[9].name = "prc";
TMP2031[9] = &TMP933[31];
TMP933[31].kind = 1;
TMP933[31].offset = offsetof(Tctx277048, module);
TMP933[31].typ = (&NTI223807);
TMP933[31].name = "module";
TMP2031[10] = &TMP933[32];
TMP933[32].kind = 1;
TMP933[32].offset = offsetof(Tctx277048, callsite);
TMP933[32].typ = (&NTI223801);
TMP933[32].name = "callsite";
TMP2031[11] = &TMP933[33];
NTI277032.size = sizeof(NU8);
NTI277032.kind = 14;
NTI277032.base = 0;
NTI277032.flags = 3;
for (TMP2044 = 0; TMP2044 < 5; TMP2044++) {
TMP933[TMP2044+34].kind = 1;
TMP933[TMP2044+34].offset = TMP2044;
TMP933[TMP2044+34].name = TMP2043[TMP2044];
TMP2042[TMP2044] = &TMP933[TMP2044+34];
}
TMP933[39].len = 5; TMP933[39].kind = 2; TMP933[39].sons = &TMP2042[0];
NTI277032.node = &TMP933[39];
TMP933[33].kind = 1;
TMP933[33].offset = offsetof(Tctx277048, mode);
TMP933[33].typ = (&NTI277032);
TMP933[33].name = "mode";
TMP2031[12] = &TMP933[40];
NTI277034.size = sizeof(NU8);
NTI277034.kind = 14;
NTI277034.base = 0;
NTI277034.flags = 3;
for (TMP2047 = 0; TMP2047 < 3; TMP2047++) {
TMP933[TMP2047+41].kind = 1;
TMP933[TMP2047+41].offset = TMP2047;
TMP933[TMP2047+41].name = TMP2046[TMP2047];
TMP2045[TMP2047] = &TMP933[TMP2047+41];
}
TMP933[44].len = 3; TMP933[44].kind = 2; TMP933[44].sons = &TMP2045[0];
NTI277034.node = &TMP933[44];
NTI277036.size = sizeof(NU8);
NTI277036.kind = 19;
NTI277036.base = (&NTI277034);
NTI277036.flags = 3;
TMP933[45].len = 0; TMP933[45].kind = 0;
NTI277036.node = &TMP933[45];
TMP933[40].kind = 1;
TMP933[40].offset = offsetof(Tctx277048, features);
TMP933[40].typ = (&NTI277036);
TMP933[40].name = "features";
TMP2031[13] = &TMP933[46];
TMP933[46].kind = 1;
TMP933[46].offset = offsetof(Tctx277048, traceactive);
TMP933[46].typ = (&NTI138);
TMP933[46].name = "traceActive";
TMP2031[14] = &TMP933[47];
TMP933[47].kind = 1;
TMP933[47].offset = offsetof(Tctx277048, loopiterations);
TMP933[47].typ = (&NTI108);
TMP933[47].name = "loopIterations";
TMP2031[15] = &TMP933[48];
TMP933[48].kind = 1;
TMP933[48].offset = offsetof(Tctx277048, comesfromheuristic);
TMP933[48].typ = (&NTI188352);
TMP933[48].name = "comesFromHeuristic";
TMP2031[16] = &TMP933[49];
NTI277274.size = sizeof(TY277274);
NTI277274.kind = 18;
NTI277274.base = 0;
TMP2048[0] = &TMP933[51];
TMP933[51].kind = 1;
TMP933[51].offset = offsetof(TY277274, Field0);
TMP933[51].typ = (&NTI149);
TMP933[51].name = "Field0";
TMP2048[1] = &TMP933[52];
NTI277044.size = sizeof(TY574951);
NTI277044.kind = 18;
NTI277044.base = 0;
NTI277044.flags = 2;
TMP2049[0] = &TMP933[54];
TMP933[54].kind = 1;
TMP933[54].offset = offsetof(TY574951, Field0);
TMP933[54].typ = (&NTI153);
TMP933[54].name = "Field0";
TMP2049[1] = &TMP933[55];
TMP933[55].kind = 1;
TMP933[55].offset = offsetof(TY574951, Field1);
TMP933[55].typ = (&NTI574953);
TMP933[55].name = "Field1";
TMP933[53].len = 2; TMP933[53].kind = 2; TMP933[53].sons = &TMP2049[0];
NTI277044.node = &TMP933[53];
TMP933[52].kind = 1;
TMP933[52].offset = offsetof(TY277274, Field1);
TMP933[52].typ = (&NTI277044);
TMP933[52].name = "Field1";
TMP933[50].len = 2; TMP933[50].kind = 2; TMP933[50].sons = &TMP2048[0];
NTI277274.node = &TMP933[50];
NTI277273.size = sizeof(TY277273*);
NTI277273.kind = 24;
NTI277273.base = (&NTI277274);
NTI277273.marker = TMP2050;
TMP933[49].kind = 1;
TMP933[49].offset = offsetof(Tctx277048, callbacks);
TMP933[49].typ = (&NTI277273);
TMP933[49].name = "callbacks";
TMP2031[17] = &TMP933[56];
TMP933[56].kind = 1;
TMP933[56].offset = offsetof(Tctx277048, errorflag);
TMP933[56].typ = (&NTI149);
TMP933[56].name = "errorFlag";
TMP933[0].len = 18; TMP933[0].kind = 2; TMP933[0].sons = &TMP2031[0];
NTI277048.node = &TMP933[0];
NTI277046.size = sizeof(Tctx277048*);
NTI277046.kind = 22;
NTI277046.base = (&NTI277048);
NTI277046.marker = TMP2051;
}

