/* 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 tctx290048 tctx290048;
typedef struct tpasscontext287005 tpasscontext287005;
typedef struct TNimObject TNimObject;
typedef struct TY290250 TY290250;
typedef struct TGenericSeq TGenericSeq;
typedef struct TY197414 TY197414;
typedef struct tlineinfo196539 tlineinfo196539;
typedef struct tnode226816 tnode226816;
typedef struct ttypeseq226848 ttypeseq226848;
typedef struct ttype226852 ttype226852;
typedef struct pprocHEX3Aobjecttype290230 pprocHEX3Aobjecttype290230;
typedef struct tsym226846 tsym226846;
typedef struct TY290269 TY290269;
typedef struct TY290270 TY290270;
typedef struct NimStringDesc NimStringDesc;
typedef struct vmargs290042 vmargs290042;
typedef struct TY290231 TY290231;
typedef struct tblock290030 tblock290030;
typedef struct TY290211 TY290211;
typedef struct TY290237 TY290237;
typedef struct TY613034 TY613034;
typedef struct TY613037 TY613037;
typedef struct tcell44933 tcell44933;
typedef struct tcellseq44949 tcellseq44949;
typedef struct tgcheap47016 tgcheap47016;
typedef struct tcellset44945 tcellset44945;
typedef struct tpagedesc44941 tpagedesc44941;
typedef struct tmemregion27210 tmemregion27210;
typedef struct tsmallchunk26440 tsmallchunk26440;
typedef struct tllchunk27204 tllchunk27204;
typedef struct tbigchunk26442 tbigchunk26442;
typedef struct tintset26417 tintset26417;
typedef struct ttrunk26413 ttrunk26413;
typedef struct tavlnode27208 tavlnode27208;
typedef struct tgcstat47014 tgcstat47014;
typedef struct tident201021 tident201021;
typedef struct tnodeseq226810 tnodeseq226810;
typedef struct tidobj201015 tidobj201015;
typedef struct tloc226830 tloc226830;
typedef struct trope178009 trope178009;
typedef struct tscope226840 tscope226840;
typedef struct TY226947 TY226947;
typedef struct tinstantiation226836 tinstantiation226836;
typedef struct tstrtable226820 tstrtable226820;
typedef struct tsymseq226818 tsymseq226818;
typedef struct tlib226834 tlib226834;
typedef struct tbasechunk26438 tbasechunk26438;
typedef struct tfreecell26430 tfreecell26430;
typedef struct TY226936 TY226936;
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  tpasscontext287005  {
  TNimObject Sup;
NIM_BOOL Fromcache;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  tlineinfo196539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  vmargs290042  {
NI Ra;
NI Rb;
NI Rc;
void* Slots;
tnode226816* Currentexception;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (vmargs290042* args, void* ClEnv);
void* ClEnv;
} vmcallback290044;
struct TY290270 {
NimStringDesc* Field0;
vmcallback290044 Field1;
};
struct  tctx290048  {
  tpasscontext287005 Sup;
TY290250* Code;
TY197414* Debug;
tnode226816* Globals;
tnode226816* Constants;
ttypeseq226848* Types;
tnode226816* Currentexceptiona;
tnode226816* Currentexceptionb;
NI Exceptioninstr;
pprocHEX3Aobjecttype290230* Prc;
tsym226846* Module;
tnode226816* Callsite;
NU8 Mode;
NU8 Features;
NIM_BOOL Traceactive;
NI Loopiterations;
tlineinfo196539 Comesfromheuristic;
TY290269* Callbacks;
NimStringDesc* Errorflag;
};
struct  tblock290030  {
tsym226846* Label;
TY290211* Fixups;
};
struct TY290237 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY290237 TY290234[256];
struct  pprocHEX3Aobjecttype290230  {
TY290231* Blocks;
tsym226846* Sym;
TY290234 Slots;
NI Maxslots;
};
struct TY613034 {
void* Field0;
TY613037* Field1;
};
struct  tcell44933  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq44949  {
NI Len;
NI Cap;
tcell44933** D;
};
struct  tcellset44945  {
NI Counter;
NI Max;
tpagedesc44941* Head;
tpagedesc44941** Data;
};
typedef tsmallchunk26440* TY27222[512];
typedef ttrunk26413* ttrunkbuckets26415[256];
struct  tintset26417  {
ttrunkbuckets26415 Data;
};
struct  tmemregion27210  {
NI Minlargeobj;
NI Maxlargeobj;
TY27222 Freesmallchunks;
tllchunk27204* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk26442* Freechunkslist;
tintset26417 Chunkstarts;
tavlnode27208* Root;
tavlnode27208* Deleted;
tavlnode27208* Last;
tavlnode27208* Freeavlnodes;
};
struct  tgcstat47014  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap47016  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq44949 Zct;
tcellseq44949 Decstack;
tcellset44945 Cycleroots;
tcellseq44949 Tempstack;
NI Recgclock;
tmemregion27210 Region;
tgcstat47014 Stat;
};
struct  tnode226816  {
ttype226852* Typ;
tlineinfo196539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym226846* Sym;
} S4;
struct {tident201021* Ident;
} S5;
struct {tnodeseq226810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
struct  tidobj201015  {
  TNimObject Sup;
NI Id;
};
struct  tloc226830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype226852* T;
trope178009* R;
trope178009* Heaproot;
};
struct  ttype226852  {
  tidobj201015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq226848* Sons;
tnode226816* N;
tsym226846* Owner;
tsym226846* Sym;
tsym226846* Destructor;
tsym226846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc226830 Loc;
};
struct  tstrtable226820  {
NI Counter;
tsymseq226818* Data;
};
struct  tsym226846  {
  tidobj201015 Sup;
NU8 Kind;
union {
struct {ttypeseq226848* Typeinstcache;
tscope226840* Typscope;
} S1;
struct {TY226947* Procinstcache;
tscope226840* Scope;
} S2;
struct {TY226947* Usedgenerics;
tstrtable226820 Tab;
} S3;
struct {tsym226846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype226852* Typ;
tident201021* Name;
tlineinfo196539 Info;
tsym226846* Owner;
NU32 Flags;
tnode226816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc226830 Loc;
tlib226834* Annex;
tnode226816* Constraint;
};
struct TY613037 {
char dummy;
};
typedef NI TY26420[16];
struct  tpagedesc44941  {
tpagedesc44941* Next;
NI Key;
TY26420 Bits;
};
struct  tbasechunk26438  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk26440  {
  tbasechunk26438 Sup;
tsmallchunk26440* Next;
tsmallchunk26440* Prev;
tfreecell26430* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk27204  {
NI Size;
NI Acc;
tllchunk27204* Next;
};
struct  tbigchunk26442  {
  tbasechunk26438 Sup;
tbigchunk26442* Next;
tbigchunk26442* Prev;
NI Align;
NF Data;
};
struct  ttrunk26413  {
ttrunk26413* Next;
NI Key;
TY26420 Bits;
};
typedef tavlnode27208* TY27214[2];
struct  tavlnode27208  {
TY27214 Link;
NI Key;
NI Upperbound;
NI Level;
};
struct  tident201021  {
  tidobj201015 Sup;
NimStringDesc* S;
tident201021* Next;
NI H;
};
struct  trope178009  {
  TNimObject Sup;
trope178009* Left;
trope178009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tscope226840  {
NI Depthlevel;
tstrtable226820 Symbols;
tnodeseq226810* Usingsyms;
tscope226840* Parent;
};
struct  tinstantiation226836  {
tsym226846* Sym;
ttypeseq226848* Concretetypes;
TY226936* Usedby;
};
struct  tlistentry127022  {
  TNimObject Sup;
tlistentry127022* Prev;
tlistentry127022* Next;
};
struct  tlib226834  {
  tlistentry127022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope178009* Name;
tnode226816* Path;
};
struct  tfreecell26430  {
tfreecell26430* Next;
NI Zerofield;
};
struct TY290250 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY197414 {
  TGenericSeq Sup;
  tlineinfo196539 data[SEQ_DECL_SIZE];
};
struct ttypeseq226848 {
  TGenericSeq Sup;
  ttype226852* data[SEQ_DECL_SIZE];
};
struct TY290269 {
  TGenericSeq Sup;
  TY290270 data[SEQ_DECL_SIZE];
};
struct TY290211 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
struct TY290231 {
  TGenericSeq Sup;
  tblock290030 data[SEQ_DECL_SIZE];
};
struct tnodeseq226810 {
  TGenericSeq Sup;
  tnode226816* data[SEQ_DECL_SIZE];
};
struct TY226947 {
  TGenericSeq Sup;
  tinstantiation226836* data[SEQ_DECL_SIZE];
};
struct tsymseq226818 {
  TGenericSeq Sup;
  tsym226846* data[SEQ_DECL_SIZE];
};
struct TY226936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, TMP1952)(void* p, NI op);
N_NIMCALL(void, TMP1955)(void* p, NI op);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP1956)(void* p, NI op);
N_NIMCALL(void, TMP1961)(void* p, NI op);
N_NIMCALL(void, TMP1970)(void* p, NI op);
N_NIMCALL(void, TMP1971)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(tcell44933*, usrtocell_48646)(void* usr);
static N_INLINE(void, rtladdzct_50204)(tcell44933* c);
N_NOINLINE(void, addzct_48617)(tcellseq44949* s, tcell44933* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(tnode226816*, newnode_227090)(NU8 kind);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(tlineinfo196539, unknownlineinfo_197405)(void);
static N_INLINE(void, nimGCunref)(void* p);
static N_INLINE(void, decref_50604)(tcell44933* c);
static N_INLINE(NIM_BOOL, canbecycleroot_48667)(tcell44933* c);
static N_INLINE(void, rtladdcycleroot_49429)(tcell44933* c);
N_NOINLINE(void, incl_45671)(tcellset44945* s, tcell44933* 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_51025)(tcell44933* c);
STRING_LITERAL(TMP2726, "", 0);
extern TNimType NTI287005; /* TPassContext */
TNimType NTI290048; /* TCtx */
extern TNimType NTI124; /* uint32 */
TNimType NTI290250; /* seq[TInstr] */
extern TNimType NTI197414; /* seq[TLineInfo] */
extern TNimType NTI226808; /* PNode */
extern TNimType NTI226848; /* TTypeSeq */
extern TNimType NTI108; /* int */
TNimType NTI290230; /* PProc:ObjectType */
TNimType NTI290030; /* TBlock */
extern TNimType NTI226814; /* PSym */
TNimType NTI290211; /* seq[TPosition] */
TNimType NTI290231; /* seq[TBlock] */
TNimType NTI290237; /* tuple[inUse: bool, kind: TSlotKind] */
extern TNimType NTI138; /* bool */
TNimType NTI290038; /* TSlotKind */
TNimType NTI290234; /* array[0..255, tuple[inUse: bool, kind: TSlotKind]] */
TNimType NTI290040; /* PProc */
TNimType NTI290032; /* TEvalMode */
TNimType NTI290034; /* TSandboxFlag */
TNimType NTI290036; /* TSandboxFlags */
extern TNimType NTI196539; /* TLineInfo */
TNimType NTI290270; /* tuple[key: string, value: VmCallback] */
extern TNimType NTI149; /* string */
TNimType NTI290044; /* tuple[pointer, ref tuple[]] */
extern TNimType NTI153; /* pointer */
extern TNimType NTI613036; /* ref tuple[] */
TNimType NTI290269; /* seq[tuple[key: string, value: VmCallback]] */
TNimType NTI290046; /* PCtx */
extern tgcheap47016 gch_47044;
TNimType NTI290028; /* TOpcode */
N_NIMCALL(void, TMP1952)(void* p, NI op) {
	TY290250* a;
	NI LOC1;
	a = (TY290250*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
N_NIMCALL(void, TMP1955)(void* p, NI op) {
	TY290211* a;
	NI LOC1;
	a = (TY290211*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
N_NIMCALL(void, TMP1956)(void* p, NI op) {
	TY290231* a;
	NI LOC1;
	a = (TY290231*)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, TMP1961)(void* p, NI op) {
	pprocHEX3Aobjecttype290230* a;
	NI LOC1;
	a = (pprocHEX3Aobjecttype290230*)p;
	nimGCvisit((void*)(*a).Blocks, op);
	nimGCvisit((void*)(*a).Sym, op);
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < 256; LOC1++) {
	}
}
N_NIMCALL(void, TMP1970)(void* p, NI op) {
	TY290269* a;
	NI LOC1;
	a = (TY290269*)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, TMP1971)(void* p, NI op) {
	tctx290048* a;
	a = (tctx290048*)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(tcell44933*, usrtocell_48646)(void* usr) {
	tcell44933* result;
	result = 0;
	result = ((tcell44933*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(tcell44933))))));
	return result;
}

static N_INLINE(void, rtladdzct_50204)(tcell44933* c) {
	addzct_48617((&gch_47044.Zct), c);
}

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

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

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

static N_INLINE(void, rtladdcycleroot_49429)(tcell44933* c) {
	{
		if (!!((((NI) ((NI)((*c).Refcount & 3))) == 3))) goto LA3;
		(*c).Refcount = (NI)((NI)((*c).Refcount & -4) | 3);
		incl_45671((&gch_47044.Cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, decref_50604)(tcell44933* c) {
	{
		(*c).Refcount -= 8;
		if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA3;
		rtladdzct_50204(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_48667(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_49429(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, nimGCunref)(void* p) {
	tcell44933* LOC1;
	LOC1 = 0;
	LOC1 = usrtocell_48646(p);
	decref_50604(LOC1);
}

N_NIMCALL(tctx290048*, newctx_290279)(tsym226846* module) {
	tctx290048* result;
	tctx290048* LOC1;
	pprocHEX3Aobjecttype290230* LOC2;
	NimStringDesc* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (tctx290048*) newObj((&NTI290046), sizeof(tctx290048));
	(*LOC1).Sup.Sup.m_type = (&NTI290048);
	if ((*LOC1).Code) nimGCunrefNoCycle((*LOC1).Code);
	(*LOC1).Code = (TY290250*) newSeqRC1((&NTI290250), 0);
	if ((*LOC1).Debug) nimGCunrefNoCycle((*LOC1).Debug);
	(*LOC1).Debug = (TY197414*) newSeqRC1((&NTI197414), 0);
	asgnRefNoCycle((void**) (&(*LOC1).Globals), newnode_227090(((NU8) 126)));
	asgnRefNoCycle((void**) (&(*LOC1).Constants), newnode_227090(((NU8) 115)));
	if ((*LOC1).Types) nimGCunrefNoCycle((*LOC1).Types);
	(*LOC1).Types = (ttypeseq226848*) newSeqRC1((&NTI226848), 0);
	LOC2 = 0;
	LOC2 = (pprocHEX3Aobjecttype290230*) newObj((&NTI290040), sizeof(pprocHEX3Aobjecttype290230));
	if ((*LOC2).Blocks) nimGCunrefNoCycle((*LOC2).Blocks);
	(*LOC2).Blocks = (TY290231*) newSeqRC1((&NTI290231), 0);
	asgnRefNoCycle((void**) (&(*LOC1).Prc), LOC2);
	asgnRefNoCycle((void**) (&(*LOC1).Module), module);
	(*LOC1).Loopiterations = 500000;
	(*LOC1).Comesfromheuristic = unknownlineinfo_197405();
	if ((*LOC1).Callbacks) nimGCunref((*LOC1).Callbacks);
	(*LOC1).Callbacks = (TY290269*) newSeqRC1((&NTI290269), 0);
	LOC3 = 0;
	LOC3 = (*LOC1).Errorflag; (*LOC1).Errorflag = copyStringRC1(((NimStringDesc*) &TMP2726));
	if (LOC3) nimGCunrefNoCycle(LOC3);
	result = LOC1;
	return result;
}

N_NIMCALL(void, refresh_290391)(tctx290048* c, tsym226846* module) {
	pprocHEX3Aobjecttype290230* LOC1;
	asgnRefNoCycle((void**) (&(*c).Module), module);
	LOC1 = 0;
	LOC1 = (pprocHEX3Aobjecttype290230*) newObj((&NTI290040), sizeof(pprocHEX3Aobjecttype290230));
	if ((*LOC1).Blocks) nimGCunrefNoCycle((*LOC1).Blocks);
	(*LOC1).Blocks = (TY290231*) newSeqRC1((&NTI290231), 0);
	asgnRefNoCycle((void**) (&(*c).Prc), LOC1);
}

static N_INLINE(void, incref_51025)(tcell44933* c) {
	(*c).Refcount = (NI)((NU32)((*c).Refcount) + (NU32)(8));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_48667(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_49429(c);
	}
	LA4: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		tcell44933* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_48646(src);
		incref_51025(LOC5);
	}
	LA3: ;
	{
		tcell44933* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_48646((*dest));
		decref_50604(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(void, registercallback_290422)(tctx290048* c, NimStringDesc* name, vmcallback290044 callback) {
	TY290270 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 = (TY290269*) incrSeq(&((*c).Callbacks)->Sup, sizeof(TY290270));
	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* TMP1951[18];
static TNimNode* TMP1953[4];
static TNimNode* TMP1954[2];
static TNimNode* TMP1957[2];
static TNimNode* TMP1958[9];
NI TMP1960;
static char* NIM_CONST TMP1959[9] = {
"slotEmpty", 
"slotFixedVar", 
"slotFixedLet", 
"slotTempUnknown", 
"slotTempInt", 
"slotTempFloat", 
"slotTempStr", 
"slotTempComplex", 
"slotTempPerm"};
static TNimNode* TMP1962[5];
NI TMP1964;
static char* NIM_CONST TMP1963[5] = {
"emRepl", 
"emConst", 
"emOptimize", 
"emStaticExpr", 
"emStaticStmt"};
static TNimNode* TMP1965[3];
NI TMP1967;
static char* NIM_CONST TMP1966[3] = {
"allowCast", 
"allowFFI", 
"allowInfiniteLoops"};
static TNimNode* TMP1968[2];
static TNimNode* TMP1969[2];
static TNimNode* TMP2854[155];
NI TMP2856;
static char* NIM_CONST TMP2855[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 TMP852[213];
NTI290048.size = sizeof(tctx290048);
NTI290048.kind = 17;
NTI290048.base = (&NTI287005);
TMP1951[0] = &TMP852[1];
NTI290250.size = sizeof(TY290250*);
NTI290250.kind = 24;
NTI290250.base = (&NTI124);
NTI290250.flags = 2;
NTI290250.marker = TMP1952;
TMP852[1].kind = 1;
TMP852[1].offset = offsetof(tctx290048, Code);
TMP852[1].typ = (&NTI290250);
TMP852[1].name = "code";
TMP1951[1] = &TMP852[2];
TMP852[2].kind = 1;
TMP852[2].offset = offsetof(tctx290048, Debug);
TMP852[2].typ = (&NTI197414);
TMP852[2].name = "debug";
TMP1951[2] = &TMP852[3];
TMP852[3].kind = 1;
TMP852[3].offset = offsetof(tctx290048, Globals);
TMP852[3].typ = (&NTI226808);
TMP852[3].name = "globals";
TMP1951[3] = &TMP852[4];
TMP852[4].kind = 1;
TMP852[4].offset = offsetof(tctx290048, Constants);
TMP852[4].typ = (&NTI226808);
TMP852[4].name = "constants";
TMP1951[4] = &TMP852[5];
TMP852[5].kind = 1;
TMP852[5].offset = offsetof(tctx290048, Types);
TMP852[5].typ = (&NTI226848);
TMP852[5].name = "types";
TMP1951[5] = &TMP852[6];
TMP852[6].kind = 1;
TMP852[6].offset = offsetof(tctx290048, Currentexceptiona);
TMP852[6].typ = (&NTI226808);
TMP852[6].name = "currentExceptionA";
TMP1951[6] = &TMP852[7];
TMP852[7].kind = 1;
TMP852[7].offset = offsetof(tctx290048, Currentexceptionb);
TMP852[7].typ = (&NTI226808);
TMP852[7].name = "currentExceptionB";
TMP1951[7] = &TMP852[8];
TMP852[8].kind = 1;
TMP852[8].offset = offsetof(tctx290048, Exceptioninstr);
TMP852[8].typ = (&NTI108);
TMP852[8].name = "exceptionInstr";
TMP1951[8] = &TMP852[9];
NTI290230.size = sizeof(pprocHEX3Aobjecttype290230);
NTI290230.kind = 18;
NTI290230.base = 0;
NTI290230.flags = 2;
TMP1953[0] = &TMP852[11];
NTI290030.size = sizeof(tblock290030);
NTI290030.kind = 18;
NTI290030.base = 0;
NTI290030.flags = 2;
TMP1954[0] = &TMP852[13];
TMP852[13].kind = 1;
TMP852[13].offset = offsetof(tblock290030, Label);
TMP852[13].typ = (&NTI226814);
TMP852[13].name = "label";
TMP1954[1] = &TMP852[14];
NTI290211.size = sizeof(TY290211*);
NTI290211.kind = 24;
NTI290211.base = (&NTI108);
NTI290211.flags = 2;
NTI290211.marker = TMP1955;
TMP852[14].kind = 1;
TMP852[14].offset = offsetof(tblock290030, Fixups);
TMP852[14].typ = (&NTI290211);
TMP852[14].name = "fixups";
TMP852[12].len = 2; TMP852[12].kind = 2; TMP852[12].sons = &TMP1954[0];
NTI290030.node = &TMP852[12];
NTI290231.size = sizeof(TY290231*);
NTI290231.kind = 24;
NTI290231.base = (&NTI290030);
NTI290231.flags = 2;
NTI290231.marker = TMP1956;
TMP852[11].kind = 1;
TMP852[11].offset = offsetof(pprocHEX3Aobjecttype290230, Blocks);
TMP852[11].typ = (&NTI290231);
TMP852[11].name = "blocks";
TMP1953[1] = &TMP852[15];
TMP852[15].kind = 1;
TMP852[15].offset = offsetof(pprocHEX3Aobjecttype290230, Sym);
TMP852[15].typ = (&NTI226814);
TMP852[15].name = "sym";
TMP1953[2] = &TMP852[16];
NTI290237.size = sizeof(TY290237);
NTI290237.kind = 18;
NTI290237.base = 0;
NTI290237.flags = 3;
TMP1957[0] = &TMP852[18];
TMP852[18].kind = 1;
TMP852[18].offset = offsetof(TY290237, Field0);
TMP852[18].typ = (&NTI138);
TMP852[18].name = "Field0";
TMP1957[1] = &TMP852[19];
NTI290038.size = sizeof(NU8);
NTI290038.kind = 14;
NTI290038.base = 0;
NTI290038.flags = 3;
for (TMP1960 = 0; TMP1960 < 9; TMP1960++) {
TMP852[TMP1960+20].kind = 1;
TMP852[TMP1960+20].offset = TMP1960;
TMP852[TMP1960+20].name = TMP1959[TMP1960];
TMP1958[TMP1960] = &TMP852[TMP1960+20];
}
TMP852[29].len = 9; TMP852[29].kind = 2; TMP852[29].sons = &TMP1958[0];
NTI290038.node = &TMP852[29];
TMP852[19].kind = 1;
TMP852[19].offset = offsetof(TY290237, Field1);
TMP852[19].typ = (&NTI290038);
TMP852[19].name = "Field1";
TMP852[17].len = 2; TMP852[17].kind = 2; TMP852[17].sons = &TMP1957[0];
NTI290237.node = &TMP852[17];
NTI290234.size = sizeof(TY290234);
NTI290234.kind = 16;
NTI290234.base = (&NTI290237);
NTI290234.flags = 3;
TMP852[16].kind = 1;
TMP852[16].offset = offsetof(pprocHEX3Aobjecttype290230, Slots);
TMP852[16].typ = (&NTI290234);
TMP852[16].name = "slots";
TMP1953[3] = &TMP852[30];
TMP852[30].kind = 1;
TMP852[30].offset = offsetof(pprocHEX3Aobjecttype290230, Maxslots);
TMP852[30].typ = (&NTI108);
TMP852[30].name = "maxSlots";
TMP852[10].len = 4; TMP852[10].kind = 2; TMP852[10].sons = &TMP1953[0];
NTI290230.node = &TMP852[10];
NTI290040.size = sizeof(pprocHEX3Aobjecttype290230*);
NTI290040.kind = 22;
NTI290040.base = (&NTI290230);
NTI290040.flags = 2;
NTI290040.marker = TMP1961;
TMP852[9].kind = 1;
TMP852[9].offset = offsetof(tctx290048, Prc);
TMP852[9].typ = (&NTI290040);
TMP852[9].name = "prc";
TMP1951[9] = &TMP852[31];
TMP852[31].kind = 1;
TMP852[31].offset = offsetof(tctx290048, Module);
TMP852[31].typ = (&NTI226814);
TMP852[31].name = "module";
TMP1951[10] = &TMP852[32];
TMP852[32].kind = 1;
TMP852[32].offset = offsetof(tctx290048, Callsite);
TMP852[32].typ = (&NTI226808);
TMP852[32].name = "callsite";
TMP1951[11] = &TMP852[33];
NTI290032.size = sizeof(NU8);
NTI290032.kind = 14;
NTI290032.base = 0;
NTI290032.flags = 3;
for (TMP1964 = 0; TMP1964 < 5; TMP1964++) {
TMP852[TMP1964+34].kind = 1;
TMP852[TMP1964+34].offset = TMP1964;
TMP852[TMP1964+34].name = TMP1963[TMP1964];
TMP1962[TMP1964] = &TMP852[TMP1964+34];
}
TMP852[39].len = 5; TMP852[39].kind = 2; TMP852[39].sons = &TMP1962[0];
NTI290032.node = &TMP852[39];
TMP852[33].kind = 1;
TMP852[33].offset = offsetof(tctx290048, Mode);
TMP852[33].typ = (&NTI290032);
TMP852[33].name = "mode";
TMP1951[12] = &TMP852[40];
NTI290034.size = sizeof(NU8);
NTI290034.kind = 14;
NTI290034.base = 0;
NTI290034.flags = 3;
for (TMP1967 = 0; TMP1967 < 3; TMP1967++) {
TMP852[TMP1967+41].kind = 1;
TMP852[TMP1967+41].offset = TMP1967;
TMP852[TMP1967+41].name = TMP1966[TMP1967];
TMP1965[TMP1967] = &TMP852[TMP1967+41];
}
TMP852[44].len = 3; TMP852[44].kind = 2; TMP852[44].sons = &TMP1965[0];
NTI290034.node = &TMP852[44];
NTI290036.size = sizeof(NU8);
NTI290036.kind = 19;
NTI290036.base = (&NTI290034);
NTI290036.flags = 3;
TMP852[45].len = 0; TMP852[45].kind = 0;
NTI290036.node = &TMP852[45];
TMP852[40].kind = 1;
TMP852[40].offset = offsetof(tctx290048, Features);
TMP852[40].typ = (&NTI290036);
TMP852[40].name = "features";
TMP1951[13] = &TMP852[46];
TMP852[46].kind = 1;
TMP852[46].offset = offsetof(tctx290048, Traceactive);
TMP852[46].typ = (&NTI138);
TMP852[46].name = "traceActive";
TMP1951[14] = &TMP852[47];
TMP852[47].kind = 1;
TMP852[47].offset = offsetof(tctx290048, Loopiterations);
TMP852[47].typ = (&NTI108);
TMP852[47].name = "loopIterations";
TMP1951[15] = &TMP852[48];
TMP852[48].kind = 1;
TMP852[48].offset = offsetof(tctx290048, Comesfromheuristic);
TMP852[48].typ = (&NTI196539);
TMP852[48].name = "comesFromHeuristic";
TMP1951[16] = &TMP852[49];
NTI290270.size = sizeof(TY290270);
NTI290270.kind = 18;
NTI290270.base = 0;
TMP1968[0] = &TMP852[51];
TMP852[51].kind = 1;
TMP852[51].offset = offsetof(TY290270, Field0);
TMP852[51].typ = (&NTI149);
TMP852[51].name = "Field0";
TMP1968[1] = &TMP852[52];
NTI290044.size = sizeof(TY613034);
NTI290044.kind = 18;
NTI290044.base = 0;
NTI290044.flags = 2;
TMP1969[0] = &TMP852[54];
TMP852[54].kind = 1;
TMP852[54].offset = offsetof(TY613034, Field0);
TMP852[54].typ = (&NTI153);
TMP852[54].name = "Field0";
TMP1969[1] = &TMP852[55];
TMP852[55].kind = 1;
TMP852[55].offset = offsetof(TY613034, Field1);
TMP852[55].typ = (&NTI613036);
TMP852[55].name = "Field1";
TMP852[53].len = 2; TMP852[53].kind = 2; TMP852[53].sons = &TMP1969[0];
NTI290044.node = &TMP852[53];
TMP852[52].kind = 1;
TMP852[52].offset = offsetof(TY290270, Field1);
TMP852[52].typ = (&NTI290044);
TMP852[52].name = "Field1";
TMP852[50].len = 2; TMP852[50].kind = 2; TMP852[50].sons = &TMP1968[0];
NTI290270.node = &TMP852[50];
NTI290269.size = sizeof(TY290269*);
NTI290269.kind = 24;
NTI290269.base = (&NTI290270);
NTI290269.marker = TMP1970;
TMP852[49].kind = 1;
TMP852[49].offset = offsetof(tctx290048, Callbacks);
TMP852[49].typ = (&NTI290269);
TMP852[49].name = "callbacks";
TMP1951[17] = &TMP852[56];
TMP852[56].kind = 1;
TMP852[56].offset = offsetof(tctx290048, Errorflag);
TMP852[56].typ = (&NTI149);
TMP852[56].name = "errorFlag";
TMP852[0].len = 18; TMP852[0].kind = 2; TMP852[0].sons = &TMP1951[0];
NTI290048.node = &TMP852[0];
NTI290046.size = sizeof(tctx290048*);
NTI290046.kind = 22;
NTI290046.base = (&NTI290048);
NTI290046.marker = TMP1971;
NTI290028.size = sizeof(NU8);
NTI290028.kind = 14;
NTI290028.base = 0;
NTI290028.flags = 3;
for (TMP2856 = 0; TMP2856 < 155; TMP2856++) {
TMP852[TMP2856+57].kind = 1;
TMP852[TMP2856+57].offset = TMP2856;
TMP852[TMP2856+57].name = TMP2855[TMP2856];
TMP2854[TMP2856] = &TMP852[TMP2856+57];
}
TMP852[212].len = 155; TMP852[212].kind = 2; TMP852[212].sons = &TMP2854[0];
NTI290028.node = &TMP852[212];
}

