/* Generated by Nim Compiler v0.10.2 */
/*   (c) 2014 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 tctx289048 tctx289048;
typedef struct tpasscontext286005 tpasscontext286005;
typedef struct TNimObject TNimObject;
typedef struct TY289250 TY289250;
typedef struct TGenericSeq TGenericSeq;
typedef struct TY196414 TY196414;
typedef struct tlineinfo195539 tlineinfo195539;
typedef struct tnode225816 tnode225816;
typedef struct ttypeseq225848 ttypeseq225848;
typedef struct ttype225852 ttype225852;
typedef struct pprocHEX3Aobjecttype289230 pprocHEX3Aobjecttype289230;
typedef struct tsym225846 tsym225846;
typedef struct TY289269 TY289269;
typedef struct TY289270 TY289270;
typedef struct NimStringDesc NimStringDesc;
typedef struct vmargs289042 vmargs289042;
typedef struct TY289231 TY289231;
typedef struct tblock289030 tblock289030;
typedef struct TY289211 TY289211;
typedef struct TY289237 TY289237;
typedef struct TY612034 TY612034;
typedef struct TY612037 TY612037;
typedef struct tcell45135 tcell45135;
typedef struct tcellseq45151 tcellseq45151;
typedef struct tgcheap47216 tgcheap47216;
typedef struct tcellset45147 tcellset45147;
typedef struct tpagedesc45143 tpagedesc45143;
typedef struct tmemregion27410 tmemregion27410;
typedef struct tsmallchunk26640 tsmallchunk26640;
typedef struct tllchunk27404 tllchunk27404;
typedef struct tbigchunk26642 tbigchunk26642;
typedef struct tintset26617 tintset26617;
typedef struct ttrunk26613 ttrunk26613;
typedef struct tavlnode27408 tavlnode27408;
typedef struct tgcstat47214 tgcstat47214;
typedef struct tident200021 tident200021;
typedef struct tnodeseq225810 tnodeseq225810;
typedef struct tidobj200015 tidobj200015;
typedef struct tloc225830 tloc225830;
typedef struct trope177009 trope177009;
typedef struct tscope225840 tscope225840;
typedef struct TY225947 TY225947;
typedef struct tinstantiation225836 tinstantiation225836;
typedef struct tstrtable225820 tstrtable225820;
typedef struct tsymseq225818 tsymseq225818;
typedef struct tlib225834 tlib225834;
typedef struct tbasechunk26638 tbasechunk26638;
typedef struct tfreecell26630 tfreecell26630;
typedef struct TY225936 TY225936;
typedef struct tlistentry127022 tlistentry127022;
typedef N_NIMCALL_PTR(void, TY3089) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3094) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3089 marker;
TY3094 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  tpasscontext286005  {
  TNimObject Sup;
NIM_BOOL Fromcache;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  tlineinfo195539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  vmargs289042  {
NI Ra;
NI Rb;
NI Rc;
void* Slots;
tnode225816* Currentexception;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (vmargs289042* args, void* ClEnv);
void* ClEnv;
} vmcallback289044;
struct TY289270 {
NimStringDesc* Field0;
vmcallback289044 Field1;
};
struct  tctx289048  {
  tpasscontext286005 Sup;
TY289250* Code;
TY196414* Debug;
tnode225816* Globals;
tnode225816* Constants;
ttypeseq225848* Types;
tnode225816* Currentexceptiona;
tnode225816* Currentexceptionb;
NI Exceptioninstr;
pprocHEX3Aobjecttype289230* Prc;
tsym225846* Module;
tnode225816* Callsite;
NU8 Mode;
NU8 Features;
NIM_BOOL Traceactive;
NI Loopiterations;
tlineinfo195539 Comesfromheuristic;
TY289269* Callbacks;
NimStringDesc* Errorflag;
};
struct  tblock289030  {
tsym225846* Label;
TY289211* Fixups;
};
struct TY289237 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY289237 TY289234[256];
struct  pprocHEX3Aobjecttype289230  {
TY289231* Blocks;
tsym225846* Sym;
TY289234 Slots;
NI Maxslots;
};
struct TY612034 {
void* Field0;
TY612037* Field1;
};
struct  tcell45135  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq45151  {
NI Len;
NI Cap;
tcell45135** D;
};
struct  tcellset45147  {
NI Counter;
NI Max;
tpagedesc45143* Head;
tpagedesc45143** Data;
};
typedef tsmallchunk26640* TY27422[512];
typedef ttrunk26613* ttrunkbuckets26615[256];
struct  tintset26617  {
ttrunkbuckets26615 Data;
};
struct  tmemregion27410  {
NI Minlargeobj;
NI Maxlargeobj;
TY27422 Freesmallchunks;
tllchunk27404* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk26642* Freechunkslist;
tintset26617 Chunkstarts;
tavlnode27408* Root;
tavlnode27408* Deleted;
tavlnode27408* Last;
tavlnode27408* Freeavlnodes;
};
struct  tgcstat47214  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap47216  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq45151 Zct;
tcellseq45151 Decstack;
tcellset45147 Cycleroots;
tcellseq45151 Tempstack;
NI Recgclock;
tmemregion27410 Region;
tgcstat47214 Stat;
};
struct  tnode225816  {
ttype225852* Typ;
tlineinfo195539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym225846* Sym;
} S4;
struct {tident200021* Ident;
} S5;
struct {tnodeseq225810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
struct  tidobj200015  {
  TNimObject Sup;
NI Id;
};
struct  tloc225830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype225852* T;
trope177009* R;
trope177009* Heaproot;
};
struct  ttype225852  {
  tidobj200015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq225848* Sons;
tnode225816* N;
tsym225846* Owner;
tsym225846* Sym;
tsym225846* Destructor;
tsym225846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc225830 Loc;
};
struct  tstrtable225820  {
NI Counter;
tsymseq225818* Data;
};
struct  tsym225846  {
  tidobj200015 Sup;
NU8 Kind;
union {
struct {ttypeseq225848* Typeinstcache;
tscope225840* Typscope;
} S1;
struct {TY225947* Procinstcache;
tscope225840* Scope;
} S2;
struct {TY225947* Usedgenerics;
tstrtable225820 Tab;
} S3;
struct {tsym225846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype225852* Typ;
tident200021* Name;
tlineinfo195539 Info;
tsym225846* Owner;
NU32 Flags;
tnode225816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc225830 Loc;
tlib225834* Annex;
tnode225816* Constraint;
};
struct TY612037 {
char dummy;
};
typedef NI TY26620[16];
struct  tpagedesc45143  {
tpagedesc45143* Next;
NI Key;
TY26620 Bits;
};
struct  tbasechunk26638  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk26640  {
  tbasechunk26638 Sup;
tsmallchunk26640* Next;
tsmallchunk26640* Prev;
tfreecell26630* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk27404  {
NI Size;
NI Acc;
tllchunk27404* Next;
};
struct  tbigchunk26642  {
  tbasechunk26638 Sup;
tbigchunk26642* Next;
tbigchunk26642* Prev;
NI Align;
NF Data;
};
struct  ttrunk26613  {
ttrunk26613* Next;
NI Key;
TY26620 Bits;
};
typedef tavlnode27408* TY27414[2];
struct  tavlnode27408  {
TY27414 Link;
NI Key;
NI Upperbound;
NI Level;
};
struct  tident200021  {
  tidobj200015 Sup;
NimStringDesc* S;
tident200021* Next;
NI H;
};
struct  trope177009  {
  TNimObject Sup;
trope177009* Left;
trope177009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tscope225840  {
NI Depthlevel;
tstrtable225820 Symbols;
tnodeseq225810* Usingsyms;
tscope225840* Parent;
};
struct  tinstantiation225836  {
tsym225846* Sym;
ttypeseq225848* Concretetypes;
TY225936* Usedby;
};
struct  tlistentry127022  {
  TNimObject Sup;
tlistentry127022* Prev;
tlistentry127022* Next;
};
struct  tlib225834  {
  tlistentry127022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope177009* Name;
tnode225816* Path;
};
struct  tfreecell26630  {
tfreecell26630* Next;
NI Zerofield;
};
struct TY289250 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY196414 {
  TGenericSeq Sup;
  tlineinfo195539 data[SEQ_DECL_SIZE];
};
struct ttypeseq225848 {
  TGenericSeq Sup;
  ttype225852* data[SEQ_DECL_SIZE];
};
struct TY289269 {
  TGenericSeq Sup;
  TY289270 data[SEQ_DECL_SIZE];
};
struct TY289211 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
struct TY289231 {
  TGenericSeq Sup;
  tblock289030 data[SEQ_DECL_SIZE];
};
struct tnodeseq225810 {
  TGenericSeq Sup;
  tnode225816* data[SEQ_DECL_SIZE];
};
struct TY225947 {
  TGenericSeq Sup;
  tinstantiation225836* data[SEQ_DECL_SIZE];
};
struct tsymseq225818 {
  TGenericSeq Sup;
  tsym225846* data[SEQ_DECL_SIZE];
};
struct TY225936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, TMP1948)(void* p, NI op);
N_NIMCALL(void, TMP1951)(void* p, NI op);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP1952)(void* p, NI op);
N_NIMCALL(void, TMP1957)(void* p, NI op);
N_NIMCALL(void, TMP1966)(void* p, NI op);
N_NIMCALL(void, TMP1967)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(tcell45135*, usrtocell_48846)(void* usr);
static N_INLINE(void, rtladdzct_50404)(tcell45135* c);
N_NOINLINE(void, addzct_48817)(tcellseq45151* s, tcell45135* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(tnode225816*, newnode_226090)(NU8 kind);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(tlineinfo195539, unknownlineinfo_196405)(void);
static N_INLINE(void, nimGCunref)(void* p);
static N_INLINE(void, decref_50804)(tcell45135* c);
static N_INLINE(NIM_BOOL, canbecycleroot_48867)(tcell45135* c);
static N_INLINE(void, rtladdcycleroot_49629)(tcell45135* c);
N_NOINLINE(void, incl_45871)(tcellset45147* s, tcell45135* cell);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_51225)(tcell45135* c);
STRING_LITERAL(TMP2722, "", 0);
extern TNimType NTI286005; /* TPassContext */
TNimType NTI289048; /* TCtx */
extern TNimType NTI124; /* uint32 */
TNimType NTI289250; /* seq[TInstr] */
extern TNimType NTI196414; /* seq[TLineInfo] */
extern TNimType NTI225808; /* PNode */
extern TNimType NTI225848; /* TTypeSeq */
extern TNimType NTI108; /* int */
TNimType NTI289230; /* PProc:ObjectType */
TNimType NTI289030; /* TBlock */
extern TNimType NTI225814; /* PSym */
TNimType NTI289211; /* seq[TPosition] */
TNimType NTI289231; /* seq[TBlock] */
TNimType NTI289237; /* tuple[inUse: bool, kind: TSlotKind] */
extern TNimType NTI138; /* bool */
TNimType NTI289038; /* TSlotKind */
TNimType NTI289234; /* array[0..255, tuple[inUse: bool, kind: TSlotKind]] */
TNimType NTI289040; /* PProc */
TNimType NTI289032; /* TEvalMode */
TNimType NTI289034; /* TSandboxFlag */
TNimType NTI289036; /* TSandboxFlags */
extern TNimType NTI195539; /* TLineInfo */
TNimType NTI289270; /* tuple[key: string, value: VmCallback] */
extern TNimType NTI149; /* string */
TNimType NTI289044; /* tuple[pointer, ref tuple[]] */
extern TNimType NTI153; /* pointer */
extern TNimType NTI612036; /* ref tuple[] */
TNimType NTI289269; /* seq[tuple[key: string, value: VmCallback]] */
TNimType NTI289046; /* PCtx */
extern tgcheap47216 gch_47244;
TNimType NTI289028; /* TOpcode */
N_NIMCALL(void, TMP1948)(void* p, NI op) {
	TY289250* a;
	NI LOC1;
	a = (TY289250*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
N_NIMCALL(void, TMP1951)(void* p, NI op) {
	TY289211* a;
	NI LOC1;
	a = (TY289211*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
N_NIMCALL(void, TMP1952)(void* p, NI op) {
	TY289231* a;
	NI LOC1;
	a = (TY289231*)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, TMP1957)(void* p, NI op) {
	pprocHEX3Aobjecttype289230* a;
	NI LOC1;
	a = (pprocHEX3Aobjecttype289230*)p;
	nimGCvisit((void*)(*a).Blocks, op);
	nimGCvisit((void*)(*a).Sym, op);
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < 256; LOC1++) {
	}
}
N_NIMCALL(void, TMP1966)(void* p, NI op) {
	TY289269* a;
	NI LOC1;
	a = (TY289269*)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, TMP1967)(void* p, NI op) {
	tctx289048* a;
	a = (tctx289048*)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(tcell45135*, usrtocell_48846)(void* usr) {
	tcell45135* result;
	result = 0;
	result = ((tcell45135*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(tcell45135))))));
	return result;
}

static N_INLINE(void, rtladdzct_50404)(tcell45135* c) {
	addzct_48817((&gch_47244.Zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	tcell45135* c;
	c = usrtocell_48846(p);
	{
		(*c).Refcount -= 8;
		if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA3;
		rtladdzct_50404(c);
	}
	LA3: ;
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		tcell45135* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_48846(src);
		(*c).Refcount += 8;
	}
	LA3: ;
	{
		tcell45135* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_48846((*dest));
		{
			(*c).Refcount -= 8;
			if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA11;
			rtladdzct_50404(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

static N_INLINE(NIM_BOOL, canbecycleroot_48867)(tcell45135* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).Typ).flags &(1<<((((NU8) 1))&7)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_49629)(tcell45135* c) {
	{
		if (!!((((NI) ((NI)((*c).Refcount & 3))) == 3))) goto LA3;
		(*c).Refcount = (NI)((NI)((*c).Refcount & -4) | 3);
		incl_45871((&gch_47244.Cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, decref_50804)(tcell45135* c) {
	{
		(*c).Refcount -= 8;
		if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA3;
		rtladdzct_50404(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_48867(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_49629(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, nimGCunref)(void* p) {
	tcell45135* LOC1;
	LOC1 = 0;
	LOC1 = usrtocell_48846(p);
	decref_50804(LOC1);
}

N_NIMCALL(tctx289048*, newctx_289279)(tsym225846* module) {
	tctx289048* result;
	tctx289048* LOC1;
	pprocHEX3Aobjecttype289230* LOC2;
	NimStringDesc* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (tctx289048*) newObj((&NTI289046), sizeof(tctx289048));
	(*LOC1).Sup.Sup.m_type = (&NTI289048);
	if ((*LOC1).Code) nimGCunrefNoCycle((*LOC1).Code);
	(*LOC1).Code = (TY289250*) newSeqRC1((&NTI289250), 0);
	if ((*LOC1).Debug) nimGCunrefNoCycle((*LOC1).Debug);
	(*LOC1).Debug = (TY196414*) newSeqRC1((&NTI196414), 0);
	asgnRefNoCycle((void**) (&(*LOC1).Globals), newnode_226090(((NU8) 126)));
	asgnRefNoCycle((void**) (&(*LOC1).Constants), newnode_226090(((NU8) 115)));
	if ((*LOC1).Types) nimGCunrefNoCycle((*LOC1).Types);
	(*LOC1).Types = (ttypeseq225848*) newSeqRC1((&NTI225848), 0);
	LOC2 = 0;
	LOC2 = (pprocHEX3Aobjecttype289230*) newObj((&NTI289040), sizeof(pprocHEX3Aobjecttype289230));
	if ((*LOC2).Blocks) nimGCunrefNoCycle((*LOC2).Blocks);
	(*LOC2).Blocks = (TY289231*) newSeqRC1((&NTI289231), 0);
	asgnRefNoCycle((void**) (&(*LOC1).Prc), LOC2);
	asgnRefNoCycle((void**) (&(*LOC1).Module), module);
	(*LOC1).Loopiterations = 500000;
	(*LOC1).Comesfromheuristic = unknownlineinfo_196405();
	if ((*LOC1).Callbacks) nimGCunref((*LOC1).Callbacks);
	(*LOC1).Callbacks = (TY289269*) newSeqRC1((&NTI289269), 0);
	LOC3 = 0;
	LOC3 = (*LOC1).Errorflag; (*LOC1).Errorflag = copyStringRC1(((NimStringDesc*) &TMP2722));
	if (LOC3) nimGCunrefNoCycle(LOC3);
	result = LOC1;
	return result;
}

N_NIMCALL(void, refresh_289391)(tctx289048* c, tsym225846* module) {
	pprocHEX3Aobjecttype289230* LOC1;
	asgnRefNoCycle((void**) (&(*c).Module), module);
	LOC1 = 0;
	LOC1 = (pprocHEX3Aobjecttype289230*) newObj((&NTI289040), sizeof(pprocHEX3Aobjecttype289230));
	if ((*LOC1).Blocks) nimGCunrefNoCycle((*LOC1).Blocks);
	(*LOC1).Blocks = (TY289231*) newSeqRC1((&NTI289231), 0);
	asgnRefNoCycle((void**) (&(*c).Prc), LOC1);
}

static N_INLINE(void, incref_51225)(tcell45135* c) {
	(*c).Refcount = (NI)((NU32)((*c).Refcount) + (NU32)(8));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_48867(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_49629(c);
	}
	LA4: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		tcell45135* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_48846(src);
		incref_51225(LOC5);
	}
	LA3: ;
	{
		tcell45135* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_48846((*dest));
		decref_50804(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(void, registercallback_289422)(tctx289048* c, NimStringDesc* name, vmcallback289044 callback) {
	TY289270 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 = (TY289269*) incrSeq(&((*c).Callbacks)->Sup, sizeof(TY289270));
	LOC2 = 0;
	LOC2 = (*c).Callbacks->data[(*c).Callbacks->Sup.len-1].Field0; (*c).Callbacks->data[(*c).Callbacks->Sup.len-1].Field0 = copyStringRC1(LOC1.Field0);
	if (LOC2) nimGCunrefNoCycle(LOC2);
	asgnRef((void**) (&(*c).Callbacks->data[(*c).Callbacks->Sup.len-1].Field1.ClEnv), LOC1.Field1.ClEnv);
	(*c).Callbacks->data[(*c).Callbacks->Sup.len-1].Field1.ClPrc = LOC1.Field1.ClPrc;
}
NIM_EXTERNC N_NOINLINE(void, HEX00_vmdefInit)(void) {
}

NIM_EXTERNC N_NOINLINE(void, HEX00_vmdefDatInit)(void) {
static TNimNode* TMP1947[18];
static TNimNode* TMP1949[4];
static TNimNode* TMP1950[2];
static TNimNode* TMP1953[2];
static TNimNode* TMP1954[9];
NI TMP1956;
static char* NIM_CONST TMP1955[9] = {
"slotEmpty", 
"slotFixedVar", 
"slotFixedLet", 
"slotTempUnknown", 
"slotTempInt", 
"slotTempFloat", 
"slotTempStr", 
"slotTempComplex", 
"slotTempPerm"};
static TNimNode* TMP1958[5];
NI TMP1960;
static char* NIM_CONST TMP1959[5] = {
"emRepl", 
"emConst", 
"emOptimize", 
"emStaticExpr", 
"emStaticStmt"};
static TNimNode* TMP1961[3];
NI TMP1963;
static char* NIM_CONST TMP1962[3] = {
"allowCast", 
"allowFFI", 
"allowInfiniteLoops"};
static TNimNode* TMP1964[2];
static TNimNode* TMP1965[2];
static TNimNode* TMP2850[155];
NI TMP2852;
static char* NIM_CONST TMP2851[155] = {
"opcEof", 
"opcRet", 
"opcYldYoid", 
"opcYldVal", 
"opcAsgnInt", 
"opcAsgnStr", 
"opcAsgnFloat", 
"opcAsgnRef", 
"opcAsgnComplex", 
"opcRegToNode", 
"opcNodeToReg", 
"opcLdArr", 
"opcWrArr", 
"opcLdObj", 
"opcWrObj", 
"opcAddrReg", 
"opcAddrNode", 
"opcLdDeref", 
"opcWrDeref", 
"opcWrStrIdx", 
"opcLdStrIdx", 
"opcAddInt", 
"opcAddImmInt", 
"opcSubInt", 
"opcSubImmInt", 
"opcLenSeq", 
"opcLenStr", 
"opcIncl", 
"opcInclRange", 
"opcExcl", 
"opcCard", 
"opcMulInt", 
"opcDivInt", 
"opcModInt", 
"opcAddFloat", 
"opcSubFloat", 
"opcMulFloat", 
"opcDivFloat", 
"opcShrInt", 
"opcShlInt", 
"opcBitandInt", 
"opcBitorInt", 
"opcBitxorInt", 
"opcAddu", 
"opcSubu", 
"opcMulu", 
"opcDivu", 
"opcModu", 
"opcEqInt", 
"opcLeInt", 
"opcLtInt", 
"opcEqFloat", 
"opcLeFloat", 
"opcLtFloat", 
"opcLeu", 
"opcLtu", 
"opcEqRef", 
"opcEqNimrodNode", 
"opcXor", 
"opcNot", 
"opcUnaryMinusInt", 
"opcUnaryMinusFloat", 
"opcBitnotInt", 
"opcEqStr", 
"opcLeStr", 
"opcLtStr", 
"opcEqSet", 
"opcLeSet", 
"opcLtSet", 
"opcMulSet", 
"opcPlusSet", 
"opcMinusSet", 
"opcSymdiffSet", 
"opcConcatStr", 
"opcContainsSet", 
"opcRepr", 
"opcSetLenStr", 
"opcSetLenSeq", 
"opcSwap", 
"opcIsNil", 
"opcOf", 
"opcIs", 
"opcSubStr", 
"opcParseFloat", 
"opcConv", 
"opcCast", 
"opcQuit", 
"opcReset", 
"opcNarrowS", 
"opcNarrowU", 
"opcAddStrCh", 
"opcAddStrStr", 
"opcAddSeqElem", 
"opcRangeChck", 
"opcNAdd", 
"opcNAddMultiple", 
"opcNKind", 
"opcNIntVal", 
"opcNFloatVal", 
"opcNSymbol", 
"opcNIdent", 
"opcNGetType", 
"opcNStrVal", 
"opcNSetIntVal", 
"opcNSetFloatVal", 
"opcNSetSymbol", 
"opcNSetIdent", 
"opcNSetType", 
"opcNSetStrVal", 
"opcNNewNimNode", 
"opcNCopyNimNode", 
"opcNCopyNimTree", 
"opcNDel", 
"opcGenSym", 
"opcSlurp", 
"opcGorge", 
"opcParseExprToAst", 
"opcParseStmtToAst", 
"opcQueryErrorFlag", 
"opcNError", 
"opcNWarning", 
"opcNHint", 
"opcNLineInfo", 
"opcEqIdent", 
"opcStrToIdent", 
"opcIdentToStr", 
"opcEcho", 
"opcIndCall", 
"opcIndCallAsgn", 
"opcRaise", 
"opcNChild", 
"opcNSetChild", 
"opcCallSite", 
"opcNewStr", 
"opcTJmp", 
"opcFJmp", 
"opcJmp", 
"opcJmpBack", 
"opcBranch", 
"opcTry", 
"opcExcept", 
"opcFinally", 
"opcFinallyEnd", 
"opcNew", 
"opcNewSeq", 
"opcLdNull", 
"opcLdNullReg", 
"opcLdConst", 
"opcAsgnConst", 
"opcLdGlobal", 
"opcLdGlobalAddr", 
"opcLdImmInt", 
"opcNBindSym", 
"opcSetType", 
"opcTypeTrait"};
static TNimNode TMP850[213];
NTI289048.size = sizeof(tctx289048);
NTI289048.kind = 17;
NTI289048.base = (&NTI286005);
TMP1947[0] = &TMP850[1];
NTI289250.size = sizeof(TY289250*);
NTI289250.kind = 24;
NTI289250.base = (&NTI124);
NTI289250.flags = 2;
NTI289250.marker = TMP1948;
TMP850[1].kind = 1;
TMP850[1].offset = offsetof(tctx289048, Code);
TMP850[1].typ = (&NTI289250);
TMP850[1].name = "code";
TMP1947[1] = &TMP850[2];
TMP850[2].kind = 1;
TMP850[2].offset = offsetof(tctx289048, Debug);
TMP850[2].typ = (&NTI196414);
TMP850[2].name = "debug";
TMP1947[2] = &TMP850[3];
TMP850[3].kind = 1;
TMP850[3].offset = offsetof(tctx289048, Globals);
TMP850[3].typ = (&NTI225808);
TMP850[3].name = "globals";
TMP1947[3] = &TMP850[4];
TMP850[4].kind = 1;
TMP850[4].offset = offsetof(tctx289048, Constants);
TMP850[4].typ = (&NTI225808);
TMP850[4].name = "constants";
TMP1947[4] = &TMP850[5];
TMP850[5].kind = 1;
TMP850[5].offset = offsetof(tctx289048, Types);
TMP850[5].typ = (&NTI225848);
TMP850[5].name = "types";
TMP1947[5] = &TMP850[6];
TMP850[6].kind = 1;
TMP850[6].offset = offsetof(tctx289048, Currentexceptiona);
TMP850[6].typ = (&NTI225808);
TMP850[6].name = "currentExceptionA";
TMP1947[6] = &TMP850[7];
TMP850[7].kind = 1;
TMP850[7].offset = offsetof(tctx289048, Currentexceptionb);
TMP850[7].typ = (&NTI225808);
TMP850[7].name = "currentExceptionB";
TMP1947[7] = &TMP850[8];
TMP850[8].kind = 1;
TMP850[8].offset = offsetof(tctx289048, Exceptioninstr);
TMP850[8].typ = (&NTI108);
TMP850[8].name = "exceptionInstr";
TMP1947[8] = &TMP850[9];
NTI289230.size = sizeof(pprocHEX3Aobjecttype289230);
NTI289230.kind = 18;
NTI289230.base = 0;
NTI289230.flags = 2;
TMP1949[0] = &TMP850[11];
NTI289030.size = sizeof(tblock289030);
NTI289030.kind = 18;
NTI289030.base = 0;
NTI289030.flags = 2;
TMP1950[0] = &TMP850[13];
TMP850[13].kind = 1;
TMP850[13].offset = offsetof(tblock289030, Label);
TMP850[13].typ = (&NTI225814);
TMP850[13].name = "label";
TMP1950[1] = &TMP850[14];
NTI289211.size = sizeof(TY289211*);
NTI289211.kind = 24;
NTI289211.base = (&NTI108);
NTI289211.flags = 2;
NTI289211.marker = TMP1951;
TMP850[14].kind = 1;
TMP850[14].offset = offsetof(tblock289030, Fixups);
TMP850[14].typ = (&NTI289211);
TMP850[14].name = "fixups";
TMP850[12].len = 2; TMP850[12].kind = 2; TMP850[12].sons = &TMP1950[0];
NTI289030.node = &TMP850[12];
NTI289231.size = sizeof(TY289231*);
NTI289231.kind = 24;
NTI289231.base = (&NTI289030);
NTI289231.flags = 2;
NTI289231.marker = TMP1952;
TMP850[11].kind = 1;
TMP850[11].offset = offsetof(pprocHEX3Aobjecttype289230, Blocks);
TMP850[11].typ = (&NTI289231);
TMP850[11].name = "blocks";
TMP1949[1] = &TMP850[15];
TMP850[15].kind = 1;
TMP850[15].offset = offsetof(pprocHEX3Aobjecttype289230, Sym);
TMP850[15].typ = (&NTI225814);
TMP850[15].name = "sym";
TMP1949[2] = &TMP850[16];
NTI289237.size = sizeof(TY289237);
NTI289237.kind = 18;
NTI289237.base = 0;
NTI289237.flags = 3;
TMP1953[0] = &TMP850[18];
TMP850[18].kind = 1;
TMP850[18].offset = offsetof(TY289237, Field0);
TMP850[18].typ = (&NTI138);
TMP850[18].name = "Field0";
TMP1953[1] = &TMP850[19];
NTI289038.size = sizeof(NU8);
NTI289038.kind = 14;
NTI289038.base = 0;
NTI289038.flags = 3;
for (TMP1956 = 0; TMP1956 < 9; TMP1956++) {
TMP850[TMP1956+20].kind = 1;
TMP850[TMP1956+20].offset = TMP1956;
TMP850[TMP1956+20].name = TMP1955[TMP1956];
TMP1954[TMP1956] = &TMP850[TMP1956+20];
}
TMP850[29].len = 9; TMP850[29].kind = 2; TMP850[29].sons = &TMP1954[0];
NTI289038.node = &TMP850[29];
TMP850[19].kind = 1;
TMP850[19].offset = offsetof(TY289237, Field1);
TMP850[19].typ = (&NTI289038);
TMP850[19].name = "Field1";
TMP850[17].len = 2; TMP850[17].kind = 2; TMP850[17].sons = &TMP1953[0];
NTI289237.node = &TMP850[17];
NTI289234.size = sizeof(TY289234);
NTI289234.kind = 16;
NTI289234.base = (&NTI289237);
NTI289234.flags = 3;
TMP850[16].kind = 1;
TMP850[16].offset = offsetof(pprocHEX3Aobjecttype289230, Slots);
TMP850[16].typ = (&NTI289234);
TMP850[16].name = "slots";
TMP1949[3] = &TMP850[30];
TMP850[30].kind = 1;
TMP850[30].offset = offsetof(pprocHEX3Aobjecttype289230, Maxslots);
TMP850[30].typ = (&NTI108);
TMP850[30].name = "maxSlots";
TMP850[10].len = 4; TMP850[10].kind = 2; TMP850[10].sons = &TMP1949[0];
NTI289230.node = &TMP850[10];
NTI289040.size = sizeof(pprocHEX3Aobjecttype289230*);
NTI289040.kind = 22;
NTI289040.base = (&NTI289230);
NTI289040.flags = 2;
NTI289040.marker = TMP1957;
TMP850[9].kind = 1;
TMP850[9].offset = offsetof(tctx289048, Prc);
TMP850[9].typ = (&NTI289040);
TMP850[9].name = "prc";
TMP1947[9] = &TMP850[31];
TMP850[31].kind = 1;
TMP850[31].offset = offsetof(tctx289048, Module);
TMP850[31].typ = (&NTI225814);
TMP850[31].name = "module";
TMP1947[10] = &TMP850[32];
TMP850[32].kind = 1;
TMP850[32].offset = offsetof(tctx289048, Callsite);
TMP850[32].typ = (&NTI225808);
TMP850[32].name = "callsite";
TMP1947[11] = &TMP850[33];
NTI289032.size = sizeof(NU8);
NTI289032.kind = 14;
NTI289032.base = 0;
NTI289032.flags = 3;
for (TMP1960 = 0; TMP1960 < 5; TMP1960++) {
TMP850[TMP1960+34].kind = 1;
TMP850[TMP1960+34].offset = TMP1960;
TMP850[TMP1960+34].name = TMP1959[TMP1960];
TMP1958[TMP1960] = &TMP850[TMP1960+34];
}
TMP850[39].len = 5; TMP850[39].kind = 2; TMP850[39].sons = &TMP1958[0];
NTI289032.node = &TMP850[39];
TMP850[33].kind = 1;
TMP850[33].offset = offsetof(tctx289048, Mode);
TMP850[33].typ = (&NTI289032);
TMP850[33].name = "mode";
TMP1947[12] = &TMP850[40];
NTI289034.size = sizeof(NU8);
NTI289034.kind = 14;
NTI289034.base = 0;
NTI289034.flags = 3;
for (TMP1963 = 0; TMP1963 < 3; TMP1963++) {
TMP850[TMP1963+41].kind = 1;
TMP850[TMP1963+41].offset = TMP1963;
TMP850[TMP1963+41].name = TMP1962[TMP1963];
TMP1961[TMP1963] = &TMP850[TMP1963+41];
}
TMP850[44].len = 3; TMP850[44].kind = 2; TMP850[44].sons = &TMP1961[0];
NTI289034.node = &TMP850[44];
NTI289036.size = sizeof(NU8);
NTI289036.kind = 19;
NTI289036.base = (&NTI289034);
NTI289036.flags = 3;
TMP850[45].len = 0; TMP850[45].kind = 0;
NTI289036.node = &TMP850[45];
TMP850[40].kind = 1;
TMP850[40].offset = offsetof(tctx289048, Features);
TMP850[40].typ = (&NTI289036);
TMP850[40].name = "features";
TMP1947[13] = &TMP850[46];
TMP850[46].kind = 1;
TMP850[46].offset = offsetof(tctx289048, Traceactive);
TMP850[46].typ = (&NTI138);
TMP850[46].name = "traceActive";
TMP1947[14] = &TMP850[47];
TMP850[47].kind = 1;
TMP850[47].offset = offsetof(tctx289048, Loopiterations);
TMP850[47].typ = (&NTI108);
TMP850[47].name = "loopIterations";
TMP1947[15] = &TMP850[48];
TMP850[48].kind = 1;
TMP850[48].offset = offsetof(tctx289048, Comesfromheuristic);
TMP850[48].typ = (&NTI195539);
TMP850[48].name = "comesFromHeuristic";
TMP1947[16] = &TMP850[49];
NTI289270.size = sizeof(TY289270);
NTI289270.kind = 18;
NTI289270.base = 0;
TMP1964[0] = &TMP850[51];
TMP850[51].kind = 1;
TMP850[51].offset = offsetof(TY289270, Field0);
TMP850[51].typ = (&NTI149);
TMP850[51].name = "Field0";
TMP1964[1] = &TMP850[52];
NTI289044.size = sizeof(TY612034);
NTI289044.kind = 18;
NTI289044.base = 0;
NTI289044.flags = 2;
TMP1965[0] = &TMP850[54];
TMP850[54].kind = 1;
TMP850[54].offset = offsetof(TY612034, Field0);
TMP850[54].typ = (&NTI153);
TMP850[54].name = "Field0";
TMP1965[1] = &TMP850[55];
TMP850[55].kind = 1;
TMP850[55].offset = offsetof(TY612034, Field1);
TMP850[55].typ = (&NTI612036);
TMP850[55].name = "Field1";
TMP850[53].len = 2; TMP850[53].kind = 2; TMP850[53].sons = &TMP1965[0];
NTI289044.node = &TMP850[53];
TMP850[52].kind = 1;
TMP850[52].offset = offsetof(TY289270, Field1);
TMP850[52].typ = (&NTI289044);
TMP850[52].name = "Field1";
TMP850[50].len = 2; TMP850[50].kind = 2; TMP850[50].sons = &TMP1964[0];
NTI289270.node = &TMP850[50];
NTI289269.size = sizeof(TY289269*);
NTI289269.kind = 24;
NTI289269.base = (&NTI289270);
NTI289269.marker = TMP1966;
TMP850[49].kind = 1;
TMP850[49].offset = offsetof(tctx289048, Callbacks);
TMP850[49].typ = (&NTI289269);
TMP850[49].name = "callbacks";
TMP1947[17] = &TMP850[56];
TMP850[56].kind = 1;
TMP850[56].offset = offsetof(tctx289048, Errorflag);
TMP850[56].typ = (&NTI149);
TMP850[56].name = "errorFlag";
TMP850[0].len = 18; TMP850[0].kind = 2; TMP850[0].sons = &TMP1947[0];
NTI289048.node = &TMP850[0];
NTI289046.size = sizeof(tctx289048*);
NTI289046.kind = 22;
NTI289046.base = (&NTI289048);
NTI289046.marker = TMP1967;
NTI289028.size = sizeof(NU8);
NTI289028.kind = 14;
NTI289028.base = 0;
NTI289028.flags = 3;
for (TMP2852 = 0; TMP2852 < 155; TMP2852++) {
TMP850[TMP2852+57].kind = 1;
TMP850[TMP2852+57].offset = TMP2852;
TMP850[TMP2852+57].name = TMP2851[TMP2852];
TMP2850[TMP2852] = &TMP850[TMP2852+57];
}
TMP850[212].len = 155; TMP850[212].kind = 2; TMP850[212].sons = &TMP2850[0];
NTI289028.node = &TMP850[212];
}

