/* 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 Tctx279048 Tctx279048;
typedef struct Tpasscontext277005 Tpasscontext277005;
typedef struct TNimObject TNimObject;
typedef struct TY279254 TY279254;
typedef struct TY191420 TY191420;
typedef struct Tnode225809 Tnode225809;
typedef struct Ttypeseq225843 Ttypeseq225843;
typedef struct PprocHEX3Aobjecttype279233 PprocHEX3Aobjecttype279233;
typedef struct Tsym225841 Tsym225841;
typedef struct Tlineinfo190352 Tlineinfo190352;
typedef struct TY279273 TY279273;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct TY279234 TY279234;
typedef struct TY279239 TY279239;
typedef struct Tblock279030 Tblock279030;
typedef struct TY279214 TY279214;
typedef struct TY279274 TY279274;
typedef struct Vmargs279042 Vmargs279042;
typedef struct TY576951 TY576951;
typedef struct TY576954 TY576954;
typedef struct Cell48946 Cell48946;
typedef struct Cellseq48962 Cellseq48962;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48958 Cellset48958;
typedef struct Pagedesc48954 Pagedesc48954;
typedef struct Memregion30890 Memregion30890;
typedef struct Smallchunk30842 Smallchunk30842;
typedef struct Llchunk30884 Llchunk30884;
typedef struct Bigchunk30844 Bigchunk30844;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30888 Avlnode30888;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Ttype225847 Ttype225847;
typedef struct Tident198021 Tident198021;
typedef struct Tnodeseq225803 Tnodeseq225803;
typedef struct Tidobj198015 Tidobj198015;
typedef struct Tscope225835 Tscope225835;
typedef struct TY225944 TY225944;
typedef struct Tstrtable225813 Tstrtable225813;
typedef struct Tsymseq225811 Tsymseq225811;
typedef struct Tloc225823 Tloc225823;
typedef struct Ropeobj176009 Ropeobj176009;
typedef struct Tlib225827 Tlib225827;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct Tinstantiation225831 Tinstantiation225831;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct TY225932 TY225932;
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  Tpasscontext277005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Tlineinfo190352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tctx279048  {
  Tpasscontext277005 Sup;
TY279254* code;
TY191420* debug;
Tnode225809* globals;
Tnode225809* constants;
Ttypeseq225843* types;
Tnode225809* currentexceptiona;
Tnode225809* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype279233* prc;
Tsym225841* module;
Tnode225809* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo190352 comesfromheuristic;
TY279273* callbacks;
NimStringDesc* errorflag;
};
struct TY279239 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY279239 TY279242[256];
struct  PprocHEX3Aobjecttype279233  {
TY279234* blocks;
Tsym225841* sym;
TY279242 slots;
NI maxslots;
};
struct  Tblock279030  {
Tsym225841* label;
TY279214* fixups;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs279042* args, void* ClEnv);
void* ClEnv;
} Vmcallback279044;
struct TY279274 {
NimStringDesc* Field0;
Vmcallback279044 Field1;
};
struct TY576951 {
void* Field0;
TY576954* Field1;
};
struct  Cell48946  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48962  {
NI len;
NI cap;
Cell48946** d;
};
struct  Cellset48958  {
NI counter;
NI max;
Pagedesc48954* head;
Pagedesc48954** 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;
Cellseq48962 zct;
Cellseq48962 decstack;
Cellset48958 cycleroots;
Cellseq48962 tempstack;
NI recgclock;
Memregion30890 region;
Gcstat51014 stat;
};
struct  Tnode225809  {
Ttype225847* typ;
Tlineinfo190352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym225841* sym;
} S4;
struct {Tident198021* ident;
} S5;
struct {Tnodeseq225803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tidobj198015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable225813  {
NI counter;
Tsymseq225811* data;
};
struct  Tloc225823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype225847* t;
Ropeobj176009* r;
Ropeobj176009* heaproot;
};
struct  Tsym225841  {
  Tidobj198015 Sup;
NU8 kind;
union{
struct {Ttypeseq225843* typeinstcache;
Tscope225835* typscope;
} S1;
struct {TY225944* procinstcache;
Tsym225841* gcunsafetyreason;
} S2;
struct {TY225944* usedgenerics;
Tstrtable225813 tab;
} S3;
struct {Tsym225841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype225847* typ;
Tident198021* name;
Tlineinfo190352 info;
Tsym225841* owner;
NU32 flags;
Tnode225809* ast;
NU32 options;
NI position;
NI offset;
Tloc225823 loc;
Tlib225827* annex;
Tnode225809* constraint;
};
struct  Vmargs279042  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode225809* currentexception;
};
struct TY576954 {
char dummy;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30821[16];
struct  Pagedesc48954  {
Pagedesc48954* 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  Ttype225847  {
  Tidobj198015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq225843* sons;
Tnode225809* n;
Tsym225841* owner;
Tsym225841* sym;
Tsym225841* destructor;
Tsym225841* deepcopy;
Tsym225841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc225823 loc;
};
struct  Tident198021  {
  Tidobj198015 Sup;
NimStringDesc* s;
Tident198021* next;
NI h;
};
struct  Tscope225835  {
NI depthlevel;
Tstrtable225813 symbols;
Tnodeseq225803* usingsyms;
Tscope225835* parent;
};
struct  Ropeobj176009  {
  TNimObject Sup;
Ropeobj176009* left;
Ropeobj176009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Tlib225827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj176009* name;
Tnode225809* path;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct  Tinstantiation225831  {
Tsym225841* sym;
Ttypeseq225843* concretetypes;
TY225932* usedby;
NI compilesid;
};
struct TY279254 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY279214 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
struct TY279234 {
  TGenericSeq Sup;
  Tblock279030 data[SEQ_DECL_SIZE];
};
struct TY279273 {
  TGenericSeq Sup;
  TY279274 data[SEQ_DECL_SIZE];
};
struct TY191420 {
  TGenericSeq Sup;
  Tlineinfo190352 data[SEQ_DECL_SIZE];
};
struct Ttypeseq225843 {
  TGenericSeq Sup;
  Ttype225847* data[SEQ_DECL_SIZE];
};
struct Tnodeseq225803 {
  TGenericSeq Sup;
  Tnode225809* data[SEQ_DECL_SIZE];
};
struct TY225944 {
  TGenericSeq Sup;
  Tinstantiation225831* data[SEQ_DECL_SIZE];
};
struct Tsymseq225811 {
  TGenericSeq Sup;
  Tsym225841* data[SEQ_DECL_SIZE];
};
struct TY225932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, TMP2034)(void* p, NI op);
N_NIMCALL(void, TMP2037)(void* p, NI op);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP2038)(void* p, NI op);
N_NIMCALL(void, TMP2043)(void* p, NI op);
N_NIMCALL(void, TMP2052)(void* p, NI op);
N_NIMCALL(void, TMP2053)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell48946*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48946* c);
N_NOINLINE(void, addzct_52617)(Cellseq48962* s, Cell48946* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(Tnode225809*, newnode_226401)(NU8 kind);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(Tlineinfo190352, unknownlineinfo_191411)(void);
static N_INLINE(void, nimGCunref)(void* p);
static N_INLINE(void, decref_54604)(Cell48946* c);
static N_INLINE(NIM_BOOL, canbecycleroot_52667)(Cell48946* c);
static N_INLINE(void, rtladdcycleroot_53423)(Cell48946* c);
N_NOINLINE(void, incl_49665)(Cellset48958* s, Cell48946* 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)(Cell48946* c);
STRING_LITERAL(TMP2808, "", 0);
extern TNimType NTI277005; /* TPassContext */
TNimType NTI279048; /* TCtx */
extern TNimType NTI124; /* uint32 */
TNimType NTI279254; /* seq[TInstr] */
extern TNimType NTI191420; /* seq[TLineInfo] */
extern TNimType NTI225801; /* PNode */
extern TNimType NTI225843; /* TTypeSeq */
extern TNimType NTI108; /* int */
TNimType NTI279233; /* PProc:ObjectType */
TNimType NTI279030; /* TBlock */
extern TNimType NTI225807; /* PSym */
TNimType NTI279214; /* seq[TPosition] */
TNimType NTI279234; /* seq[TBlock] */
TNimType NTI279239; /* tuple[inUse: bool, kind: TSlotKind] */
extern TNimType NTI138; /* bool */
TNimType NTI279038; /* TSlotKind */
TNimType NTI279242; /* array[0..255, tuple[inUse: bool, kind: TSlotKind]] */
TNimType NTI279040; /* PProc */
TNimType NTI279032; /* TEvalMode */
TNimType NTI279034; /* TSandboxFlag */
TNimType NTI279036; /* TSandboxFlags */
extern TNimType NTI190352; /* TLineInfo */
TNimType NTI279274; /* tuple[key: string, value: VmCallback] */
extern TNimType NTI149; /* string */
TNimType NTI279044; /* (pointer, ref tuple[]) */
extern TNimType NTI153; /* pointer */
extern TNimType NTI576953; /* ref tuple[] */
TNimType NTI279273; /* seq[tuple[key: string, value: VmCallback]] */
TNimType NTI279046; /* PCtx */
extern Gcheap51018 gch_51059;
N_NIMCALL(void, TMP2034)(void* p, NI op) {
	TY279254* a;
	NI LOC1;
	a = (TY279254*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
N_NIMCALL(void, TMP2037)(void* p, NI op) {
	TY279214* a;
	NI LOC1;
	a = (TY279214*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
N_NIMCALL(void, TMP2038)(void* p, NI op) {
	TY279234* a;
	NI LOC1;
	a = (TY279234*)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, TMP2043)(void* p, NI op) {
	PprocHEX3Aobjecttype279233* a;
	NI LOC1;
	a = (PprocHEX3Aobjecttype279233*)p;
	nimGCvisit((void*)(*a).blocks, op);
	nimGCvisit((void*)(*a).sym, op);
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < 256; LOC1++) {
	}
}
N_NIMCALL(void, TMP2052)(void* p, NI op) {
	TY279273* a;
	NI LOC1;
	a = (TY279273*)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, TMP2053)(void* p, NI op) {
	Tctx279048* a;
	a = (Tctx279048*)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(Cell48946*, usrtocell_52646)(void* usr) {
	Cell48946* result;
	result = 0;
	result = ((Cell48946*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(Cell48946))))));
	return result;
}

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

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell48946* 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) {
	{
		Cell48946* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_52646(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell48946* 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)(Cell48946* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).typ).flags &(1<<((((NU8) 1))&7)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_53423)(Cell48946* 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)(Cell48946* 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) {
	Cell48946* LOC1;
	LOC1 = 0;
	LOC1 = usrtocell_52646(p);
	decref_54604(LOC1);
}

N_NIMCALL(Tctx279048*, newctx_279282)(Tsym225841* module) {
	Tctx279048* result;
	Tctx279048* LOC1;
	PprocHEX3Aobjecttype279233* LOC2;
	NimStringDesc* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (Tctx279048*) newObj((&NTI279046), sizeof(Tctx279048));
	(*LOC1).Sup.Sup.m_type = (&NTI279048);
	if ((*LOC1).code) nimGCunrefNoCycle((*LOC1).code);
	(*LOC1).code = (TY279254*) newSeqRC1((&NTI279254), 0);
	if ((*LOC1).debug) nimGCunrefNoCycle((*LOC1).debug);
	(*LOC1).debug = (TY191420*) newSeqRC1((&NTI191420), 0);
	asgnRefNoCycle((void**) (&(*LOC1).globals), newnode_226401(((NU8) 126)));
	asgnRefNoCycle((void**) (&(*LOC1).constants), newnode_226401(((NU8) 115)));
	if ((*LOC1).types) nimGCunrefNoCycle((*LOC1).types);
	(*LOC1).types = (Ttypeseq225843*) newSeqRC1((&NTI225843), 0);
	LOC2 = 0;
	LOC2 = (PprocHEX3Aobjecttype279233*) newObj((&NTI279040), sizeof(PprocHEX3Aobjecttype279233));
	if ((*LOC2).blocks) nimGCunrefNoCycle((*LOC2).blocks);
	(*LOC2).blocks = (TY279234*) newSeqRC1((&NTI279234), 0);
	asgnRefNoCycle((void**) (&(*LOC1).prc), LOC2);
	asgnRefNoCycle((void**) (&(*LOC1).module), module);
	(*LOC1).loopiterations = ((NI) 1500000);
	(*LOC1).comesfromheuristic = unknownlineinfo_191411();
	if ((*LOC1).callbacks) nimGCunref((*LOC1).callbacks);
	(*LOC1).callbacks = (TY279273*) newSeqRC1((&NTI279273), 0);
	LOC3 = 0;
	LOC3 = (*LOC1).errorflag; (*LOC1).errorflag = copyStringRC1(((NimStringDesc*) &TMP2808));
	if (LOC3) nimGCunrefNoCycle(LOC3);
	result = LOC1;
	return result;
}

static N_INLINE(void, incref_55022)(Cell48946* 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) {
	{
		Cell48946* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_52646(src);
		incref_55022(LOC5);
	}
	LA3: ;
	{
		Cell48946* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_52646((*dest));
		decref_54604(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(void, registercallback_279401)(Tctx279048* c, NimStringDesc* name, Vmcallback279044 callback) {
	TY279274 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 = (TY279273*) incrSeqV2(&((*c).callbacks)->Sup, sizeof(TY279274));
	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_279374)(Tctx279048* c, Tsym225841* module) {
	PprocHEX3Aobjecttype279233* LOC1;
	asgnRefNoCycle((void**) (&(*c).module), module);
	LOC1 = 0;
	LOC1 = (PprocHEX3Aobjecttype279233*) newObj((&NTI279040), sizeof(PprocHEX3Aobjecttype279233));
	if ((*LOC1).blocks) nimGCunrefNoCycle((*LOC1).blocks);
	(*LOC1).blocks = (TY279234*) newSeqRC1((&NTI279234), 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* TMP2033[18];
static TNimNode* TMP2035[4];
static TNimNode* TMP2036[2];
static TNimNode* TMP2039[2];
static TNimNode* TMP2040[9];
NI TMP2042;
static char* NIM_CONST TMP2041[9] = {
"slotEmpty", 
"slotFixedVar", 
"slotFixedLet", 
"slotTempUnknown", 
"slotTempInt", 
"slotTempFloat", 
"slotTempStr", 
"slotTempComplex", 
"slotTempPerm"};
static TNimNode* TMP2044[5];
NI TMP2046;
static char* NIM_CONST TMP2045[5] = {
"emRepl", 
"emConst", 
"emOptimize", 
"emStaticExpr", 
"emStaticStmt"};
static TNimNode* TMP2047[3];
NI TMP2049;
static char* NIM_CONST TMP2048[3] = {
"allowCast", 
"allowFFI", 
"allowInfiniteLoops"};
static TNimNode* TMP2050[2];
static TNimNode* TMP2051[2];
static TNimNode TMP935[57];
NTI279048.size = sizeof(Tctx279048);
NTI279048.kind = 17;
NTI279048.base = (&NTI277005);
TMP2033[0] = &TMP935[1];
NTI279254.size = sizeof(TY279254*);
NTI279254.kind = 24;
NTI279254.base = (&NTI124);
NTI279254.flags = 2;
NTI279254.marker = TMP2034;
TMP935[1].kind = 1;
TMP935[1].offset = offsetof(Tctx279048, code);
TMP935[1].typ = (&NTI279254);
TMP935[1].name = "code";
TMP2033[1] = &TMP935[2];
TMP935[2].kind = 1;
TMP935[2].offset = offsetof(Tctx279048, debug);
TMP935[2].typ = (&NTI191420);
TMP935[2].name = "debug";
TMP2033[2] = &TMP935[3];
TMP935[3].kind = 1;
TMP935[3].offset = offsetof(Tctx279048, globals);
TMP935[3].typ = (&NTI225801);
TMP935[3].name = "globals";
TMP2033[3] = &TMP935[4];
TMP935[4].kind = 1;
TMP935[4].offset = offsetof(Tctx279048, constants);
TMP935[4].typ = (&NTI225801);
TMP935[4].name = "constants";
TMP2033[4] = &TMP935[5];
TMP935[5].kind = 1;
TMP935[5].offset = offsetof(Tctx279048, types);
TMP935[5].typ = (&NTI225843);
TMP935[5].name = "types";
TMP2033[5] = &TMP935[6];
TMP935[6].kind = 1;
TMP935[6].offset = offsetof(Tctx279048, currentexceptiona);
TMP935[6].typ = (&NTI225801);
TMP935[6].name = "currentExceptionA";
TMP2033[6] = &TMP935[7];
TMP935[7].kind = 1;
TMP935[7].offset = offsetof(Tctx279048, currentexceptionb);
TMP935[7].typ = (&NTI225801);
TMP935[7].name = "currentExceptionB";
TMP2033[7] = &TMP935[8];
TMP935[8].kind = 1;
TMP935[8].offset = offsetof(Tctx279048, exceptioninstr);
TMP935[8].typ = (&NTI108);
TMP935[8].name = "exceptionInstr";
TMP2033[8] = &TMP935[9];
NTI279233.size = sizeof(PprocHEX3Aobjecttype279233);
NTI279233.kind = 18;
NTI279233.base = 0;
NTI279233.flags = 2;
TMP2035[0] = &TMP935[11];
NTI279030.size = sizeof(Tblock279030);
NTI279030.kind = 18;
NTI279030.base = 0;
NTI279030.flags = 2;
TMP2036[0] = &TMP935[13];
TMP935[13].kind = 1;
TMP935[13].offset = offsetof(Tblock279030, label);
TMP935[13].typ = (&NTI225807);
TMP935[13].name = "label";
TMP2036[1] = &TMP935[14];
NTI279214.size = sizeof(TY279214*);
NTI279214.kind = 24;
NTI279214.base = (&NTI108);
NTI279214.flags = 2;
NTI279214.marker = TMP2037;
TMP935[14].kind = 1;
TMP935[14].offset = offsetof(Tblock279030, fixups);
TMP935[14].typ = (&NTI279214);
TMP935[14].name = "fixups";
TMP935[12].len = 2; TMP935[12].kind = 2; TMP935[12].sons = &TMP2036[0];
NTI279030.node = &TMP935[12];
NTI279234.size = sizeof(TY279234*);
NTI279234.kind = 24;
NTI279234.base = (&NTI279030);
NTI279234.flags = 2;
NTI279234.marker = TMP2038;
TMP935[11].kind = 1;
TMP935[11].offset = offsetof(PprocHEX3Aobjecttype279233, blocks);
TMP935[11].typ = (&NTI279234);
TMP935[11].name = "blocks";
TMP2035[1] = &TMP935[15];
TMP935[15].kind = 1;
TMP935[15].offset = offsetof(PprocHEX3Aobjecttype279233, sym);
TMP935[15].typ = (&NTI225807);
TMP935[15].name = "sym";
TMP2035[2] = &TMP935[16];
NTI279239.size = sizeof(TY279239);
NTI279239.kind = 18;
NTI279239.base = 0;
NTI279239.flags = 3;
TMP2039[0] = &TMP935[18];
TMP935[18].kind = 1;
TMP935[18].offset = offsetof(TY279239, Field0);
TMP935[18].typ = (&NTI138);
TMP935[18].name = "Field0";
TMP2039[1] = &TMP935[19];
NTI279038.size = sizeof(NU8);
NTI279038.kind = 14;
NTI279038.base = 0;
NTI279038.flags = 3;
for (TMP2042 = 0; TMP2042 < 9; TMP2042++) {
TMP935[TMP2042+20].kind = 1;
TMP935[TMP2042+20].offset = TMP2042;
TMP935[TMP2042+20].name = TMP2041[TMP2042];
TMP2040[TMP2042] = &TMP935[TMP2042+20];
}
TMP935[29].len = 9; TMP935[29].kind = 2; TMP935[29].sons = &TMP2040[0];
NTI279038.node = &TMP935[29];
TMP935[19].kind = 1;
TMP935[19].offset = offsetof(TY279239, Field1);
TMP935[19].typ = (&NTI279038);
TMP935[19].name = "Field1";
TMP935[17].len = 2; TMP935[17].kind = 2; TMP935[17].sons = &TMP2039[0];
NTI279239.node = &TMP935[17];
NTI279242.size = sizeof(TY279242);
NTI279242.kind = 16;
NTI279242.base = (&NTI279239);
NTI279242.flags = 3;
TMP935[16].kind = 1;
TMP935[16].offset = offsetof(PprocHEX3Aobjecttype279233, slots);
TMP935[16].typ = (&NTI279242);
TMP935[16].name = "slots";
TMP2035[3] = &TMP935[30];
TMP935[30].kind = 1;
TMP935[30].offset = offsetof(PprocHEX3Aobjecttype279233, maxslots);
TMP935[30].typ = (&NTI108);
TMP935[30].name = "maxSlots";
TMP935[10].len = 4; TMP935[10].kind = 2; TMP935[10].sons = &TMP2035[0];
NTI279233.node = &TMP935[10];
NTI279040.size = sizeof(PprocHEX3Aobjecttype279233*);
NTI279040.kind = 22;
NTI279040.base = (&NTI279233);
NTI279040.flags = 2;
NTI279040.marker = TMP2043;
TMP935[9].kind = 1;
TMP935[9].offset = offsetof(Tctx279048, prc);
TMP935[9].typ = (&NTI279040);
TMP935[9].name = "prc";
TMP2033[9] = &TMP935[31];
TMP935[31].kind = 1;
TMP935[31].offset = offsetof(Tctx279048, module);
TMP935[31].typ = (&NTI225807);
TMP935[31].name = "module";
TMP2033[10] = &TMP935[32];
TMP935[32].kind = 1;
TMP935[32].offset = offsetof(Tctx279048, callsite);
TMP935[32].typ = (&NTI225801);
TMP935[32].name = "callsite";
TMP2033[11] = &TMP935[33];
NTI279032.size = sizeof(NU8);
NTI279032.kind = 14;
NTI279032.base = 0;
NTI279032.flags = 3;
for (TMP2046 = 0; TMP2046 < 5; TMP2046++) {
TMP935[TMP2046+34].kind = 1;
TMP935[TMP2046+34].offset = TMP2046;
TMP935[TMP2046+34].name = TMP2045[TMP2046];
TMP2044[TMP2046] = &TMP935[TMP2046+34];
}
TMP935[39].len = 5; TMP935[39].kind = 2; TMP935[39].sons = &TMP2044[0];
NTI279032.node = &TMP935[39];
TMP935[33].kind = 1;
TMP935[33].offset = offsetof(Tctx279048, mode);
TMP935[33].typ = (&NTI279032);
TMP935[33].name = "mode";
TMP2033[12] = &TMP935[40];
NTI279034.size = sizeof(NU8);
NTI279034.kind = 14;
NTI279034.base = 0;
NTI279034.flags = 3;
for (TMP2049 = 0; TMP2049 < 3; TMP2049++) {
TMP935[TMP2049+41].kind = 1;
TMP935[TMP2049+41].offset = TMP2049;
TMP935[TMP2049+41].name = TMP2048[TMP2049];
TMP2047[TMP2049] = &TMP935[TMP2049+41];
}
TMP935[44].len = 3; TMP935[44].kind = 2; TMP935[44].sons = &TMP2047[0];
NTI279034.node = &TMP935[44];
NTI279036.size = sizeof(NU8);
NTI279036.kind = 19;
NTI279036.base = (&NTI279034);
NTI279036.flags = 3;
TMP935[45].len = 0; TMP935[45].kind = 0;
NTI279036.node = &TMP935[45];
TMP935[40].kind = 1;
TMP935[40].offset = offsetof(Tctx279048, features);
TMP935[40].typ = (&NTI279036);
TMP935[40].name = "features";
TMP2033[13] = &TMP935[46];
TMP935[46].kind = 1;
TMP935[46].offset = offsetof(Tctx279048, traceactive);
TMP935[46].typ = (&NTI138);
TMP935[46].name = "traceActive";
TMP2033[14] = &TMP935[47];
TMP935[47].kind = 1;
TMP935[47].offset = offsetof(Tctx279048, loopiterations);
TMP935[47].typ = (&NTI108);
TMP935[47].name = "loopIterations";
TMP2033[15] = &TMP935[48];
TMP935[48].kind = 1;
TMP935[48].offset = offsetof(Tctx279048, comesfromheuristic);
TMP935[48].typ = (&NTI190352);
TMP935[48].name = "comesFromHeuristic";
TMP2033[16] = &TMP935[49];
NTI279274.size = sizeof(TY279274);
NTI279274.kind = 18;
NTI279274.base = 0;
TMP2050[0] = &TMP935[51];
TMP935[51].kind = 1;
TMP935[51].offset = offsetof(TY279274, Field0);
TMP935[51].typ = (&NTI149);
TMP935[51].name = "Field0";
TMP2050[1] = &TMP935[52];
NTI279044.size = sizeof(TY576951);
NTI279044.kind = 18;
NTI279044.base = 0;
NTI279044.flags = 2;
TMP2051[0] = &TMP935[54];
TMP935[54].kind = 1;
TMP935[54].offset = offsetof(TY576951, Field0);
TMP935[54].typ = (&NTI153);
TMP935[54].name = "Field0";
TMP2051[1] = &TMP935[55];
TMP935[55].kind = 1;
TMP935[55].offset = offsetof(TY576951, Field1);
TMP935[55].typ = (&NTI576953);
TMP935[55].name = "Field1";
TMP935[53].len = 2; TMP935[53].kind = 2; TMP935[53].sons = &TMP2051[0];
NTI279044.node = &TMP935[53];
TMP935[52].kind = 1;
TMP935[52].offset = offsetof(TY279274, Field1);
TMP935[52].typ = (&NTI279044);
TMP935[52].name = "Field1";
TMP935[50].len = 2; TMP935[50].kind = 2; TMP935[50].sons = &TMP2050[0];
NTI279274.node = &TMP935[50];
NTI279273.size = sizeof(TY279273*);
NTI279273.kind = 24;
NTI279273.base = (&NTI279274);
NTI279273.marker = TMP2052;
TMP935[49].kind = 1;
TMP935[49].offset = offsetof(Tctx279048, callbacks);
TMP935[49].typ = (&NTI279273);
TMP935[49].name = "callbacks";
TMP2033[17] = &TMP935[56];
TMP935[56].kind = 1;
TMP935[56].offset = offsetof(Tctx279048, errorflag);
TMP935[56].typ = (&NTI149);
TMP935[56].name = "errorFlag";
TMP935[0].len = 18; TMP935[0].kind = 2; TMP935[0].sons = &TMP2033[0];
NTI279048.node = &TMP935[0];
NTI279046.size = sizeof(Tctx279048*);
NTI279046.kind = 22;
NTI279046.base = (&NTI279048);
NTI279046.marker = TMP2053;
}

