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

#include "nimbase.h"
#include <string.h>
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tctx263036 Tctx263036;
typedef struct Tpasscontext261002 Tpasscontext261002;
typedef struct TNimObject TNimObject;
typedef struct TY263242 TY263242;
typedef struct TY183090 TY183090;
typedef struct Tnode214790 Tnode214790;
typedef struct Ttypeseq214824 Ttypeseq214824;
typedef struct PprocHEX3Aobjecttype263221 PprocHEX3Aobjecttype263221;
typedef struct Tsym214822 Tsym214822;
typedef struct Tlineinfo182337 Tlineinfo182337;
typedef struct TY263261 TY263261;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct TY263222 TY263222;
typedef struct TY263227 TY263227;
typedef struct Tblock263018 Tblock263018;
typedef struct TY263202 TY263202;
typedef struct TY263262 TY263262;
typedef struct Vmargs263030 Vmargs263030;
typedef struct TY531873 TY531873;
typedef struct TY531876 TY531876;
typedef struct Cell47505 Cell47505;
typedef struct Cellseq47521 Cellseq47521;
typedef struct Gcheap49818 Gcheap49818;
typedef struct Gcstack49816 Gcstack49816;
typedef struct Cellset47517 Cellset47517;
typedef struct Pagedesc47513 Pagedesc47513;
typedef struct Memregion29688 Memregion29688;
typedef struct Smallchunk29640 Smallchunk29640;
typedef struct Llchunk29682 Llchunk29682;
typedef struct Bigchunk29642 Bigchunk29642;
typedef struct Intset29614 Intset29614;
typedef struct Trunk29610 Trunk29610;
typedef struct Avlnode29686 Avlnode29686;
typedef struct Gcstat49814 Gcstat49814;
typedef struct Ttype214828 Ttype214828;
typedef struct Tident189012 Tident189012;
typedef struct Tnodeseq214784 Tnodeseq214784;
typedef struct Tidobj189006 Tidobj189006;
typedef struct Tscope214816 Tscope214816;
typedef struct TY214925 TY214925;
typedef struct Tstrtable214794 Tstrtable214794;
typedef struct Tsymseq214792 Tsymseq214792;
typedef struct Tloc214804 Tloc214804;
typedef struct Ropeobj169006 Ropeobj169006;
typedef struct Tlib214808 Tlib214808;
typedef struct Basechunk29638 Basechunk29638;
typedef struct Freecell29630 Freecell29630;
typedef struct Tinstantiation214812 Tinstantiation214812;
typedef struct Tlistentry135010 Tlistentry135010;
typedef struct TY214913 TY214913;
typedef N_NIMCALL_PTR(void, TY3489) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3494) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3489 marker;
TY3494 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tpasscontext261002  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Tlineinfo182337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tctx263036  {
  Tpasscontext261002 Sup;
TY263242* code;
TY183090* debug;
Tnode214790* globals;
Tnode214790* constants;
Ttypeseq214824* types;
Tnode214790* currentexceptiona;
Tnode214790* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype263221* prc;
Tsym214822* module;
Tnode214790* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo182337 comesfromheuristic;
TY263261* callbacks;
NimStringDesc* errorflag;
};
struct TY263227 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY263227 TY263230[256];
struct  PprocHEX3Aobjecttype263221  {
TY263222* blocks;
Tsym214822* sym;
TY263230 slots;
NI maxslots;
};
struct  Tblock263018  {
Tsym214822* label;
TY263202* fixups;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs263030* args, void* ClEnv);
void* ClEnv;
} Vmcallback263032;
struct TY263262 {
NimStringDesc* Field0;
Vmcallback263032 Field1;
};
struct TY531873 {
void* Field0;
TY531876* Field1;
};
struct  Cell47505  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47521  {
NI len;
NI cap;
Cell47505** d;
};
struct  Cellset47517  {
NI counter;
NI max;
Pagedesc47513* head;
Pagedesc47513** data;
};
typedef Smallchunk29640* TY29703[512];
typedef Trunk29610* Trunkbuckets29612[256];
struct  Intset29614  {
Trunkbuckets29612 data;
};
struct  Memregion29688  {
NI minlargeobj;
NI maxlargeobj;
TY29703 freesmallchunks;
Llchunk29682* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk29642* freechunkslist;
Intset29614 chunkstarts;
Avlnode29686* root;
Avlnode29686* deleted;
Avlnode29686* last;
Avlnode29686* freeavlnodes;
};
struct  Gcstat49814  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap49818  {
Gcstack49816* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq47521 zct;
Cellseq47521 decstack;
Cellset47517 cycleroots;
Cellseq47521 tempstack;
NI recgclock;
Memregion29688 region;
Gcstat49814 stat;
};
struct  Tnode214790  {
Ttype214828* typ;
Tlineinfo182337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym214822* sym;
} S4;
struct {Tident189012* ident;
} S5;
struct {Tnodeseq214784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tidobj189006  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable214794  {
NI counter;
Tsymseq214792* data;
};
struct  Tloc214804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype214828* t;
Ropeobj169006* r;
Ropeobj169006* heaproot;
};
struct  Tsym214822  {
  Tidobj189006 Sup;
NU8 kind;
union{
struct {Ttypeseq214824* typeinstcache;
Tscope214816* typscope;
} S1;
struct {TY214925* procinstcache;
Tsym214822* gcunsafetyreason;
} S2;
struct {TY214925* usedgenerics;
Tstrtable214794 tab;
} S3;
struct {Tsym214822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype214828* typ;
Tident189012* name;
Tlineinfo182337 info;
Tsym214822* owner;
NU32 flags;
Tnode214790* ast;
NU32 options;
NI position;
NI offset;
Tloc214804 loc;
Tlib214808* annex;
Tnode214790* constraint;
};
struct  Vmargs263030  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode214790* currentexception;
};
struct TY531876 {
char dummy;
};
struct  Gcstack49816  {
Gcstack49816* prev;
Gcstack49816* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29619[8];
struct  Pagedesc47513  {
Pagedesc47513* next;
NI key;
TY29619 bits;
};
struct  Basechunk29638  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk29640  {
  Basechunk29638 Sup;
Smallchunk29640* next;
Smallchunk29640* prev;
Freecell29630* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk29682  {
NI size;
NI acc;
Llchunk29682* next;
};
struct  Bigchunk29642  {
  Basechunk29638 Sup;
Bigchunk29642* next;
Bigchunk29642* prev;
NI align;
NF data;
};
struct  Trunk29610  {
Trunk29610* next;
NI key;
TY29619 bits;
};
typedef Avlnode29686* TY29693[2];
struct  Avlnode29686  {
TY29693 link;
NI key;
NI upperbound;
NI level;
};
struct  Ttype214828  {
  Tidobj189006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq214824* sons;
Tnode214790* n;
Tsym214822* owner;
Tsym214822* sym;
Tsym214822* destructor;
Tsym214822* deepcopy;
Tsym214822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc214804 loc;
};
struct  Tident189012  {
  Tidobj189006 Sup;
NimStringDesc* s;
Tident189012* next;
NI h;
};
struct  Tscope214816  {
NI depthlevel;
Tstrtable214794 symbols;
Tnodeseq214784* usingsyms;
Tscope214816* parent;
};
struct  Ropeobj169006  {
  TNimObject Sup;
Ropeobj169006* left;
Ropeobj169006* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry135010  {
  TNimObject Sup;
Tlistentry135010* prev;
Tlistentry135010* next;
};
struct  Tlib214808  {
  Tlistentry135010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj169006* name;
Tnode214790* path;
};
struct  Freecell29630  {
Freecell29630* next;
NI zerofield;
};
struct  Tinstantiation214812  {
Tsym214822* sym;
Ttypeseq214824* concretetypes;
TY214913* usedby;
NI compilesid;
};
struct TY263242 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY263202 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
struct TY263222 {
  TGenericSeq Sup;
  Tblock263018 data[SEQ_DECL_SIZE];
};
struct TY263261 {
  TGenericSeq Sup;
  TY263262 data[SEQ_DECL_SIZE];
};
struct TY183090 {
  TGenericSeq Sup;
  Tlineinfo182337 data[SEQ_DECL_SIZE];
};
struct Ttypeseq214824 {
  TGenericSeq Sup;
  Ttype214828* data[SEQ_DECL_SIZE];
};
struct Tnodeseq214784 {
  TGenericSeq Sup;
  Tnode214790* data[SEQ_DECL_SIZE];
};
struct TY214925 {
  TGenericSeq Sup;
  Tinstantiation214812* data[SEQ_DECL_SIZE];
};
struct Tsymseq214792 {
  TGenericSeq Sup;
  Tsym214822* data[SEQ_DECL_SIZE];
};
struct TY214913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, TMP2068)(void* p, NI op);
N_NIMCALL(void, TMP2071)(void* p, NI op);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP2072)(void* p, NI op);
N_NIMCALL(void, TMP2077)(void* p, NI op);
N_NIMCALL(void, TMP2086)(void* p, NI op);
N_NIMCALL(void, TMP2087)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell47505*, usrtocell_51440)(void* usr);
static N_INLINE(void, rtladdzct_53001)(Cell47505* c);
N_NOINLINE(void, addzct_51417)(Cellseq47521* s, Cell47505* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(Tnode214790*, newnode_215401)(NU8 kind);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(Tlineinfo182337, unknownlineinfo_183087)(void);
static N_INLINE(void, nimGCunref)(void* p);
static N_INLINE(void, decref_53401)(Cell47505* c);
static N_INLINE(NIM_BOOL, canbecycleroot_51458)(Cell47505* c);
static N_INLINE(void, rtladdcycleroot_52220)(Cell47505* c);
N_NOINLINE(void, incl_48247)(Cellset47517* s, Cell47505* 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_53819)(Cell47505* c);
STRING_LITERAL(TMP2843, "", 0);
extern TNimType NTI261002; /* TPassContext */
TNimType NTI263036; /* TCtx */
extern TNimType NTI120; /* uint32 */
TNimType NTI263242; /* seq[TInstr] */
extern TNimType NTI183090; /* seq[TLineInfo] */
extern TNimType NTI214782; /* PNode */
extern TNimType NTI214824; /* TTypeSeq */
extern TNimType NTI104; /* int */
TNimType NTI263221; /* PProc:ObjectType */
TNimType NTI263018; /* TBlock */
extern TNimType NTI214788; /* PSym */
TNimType NTI263202; /* seq[TPosition] */
TNimType NTI263222; /* seq[TBlock] */
TNimType NTI263227; /* tuple[inUse: bool, kind: TSlotKind] */
extern TNimType NTI130; /* bool */
TNimType NTI263026; /* TSlotKind */
TNimType NTI263230; /* array[0..255, tuple[inUse: bool, kind: TSlotKind]] */
TNimType NTI263028; /* PProc */
TNimType NTI263020; /* TEvalMode */
TNimType NTI263022; /* TSandboxFlag */
TNimType NTI263024; /* TSandboxFlags */
extern TNimType NTI182337; /* TLineInfo */
TNimType NTI263262; /* tuple[key: string, value: VmCallback] */
extern TNimType NTI138; /* string */
TNimType NTI263032; /* (pointer, ref tuple[]) */
extern TNimType NTI142; /* pointer */
extern TNimType NTI531875; /* ref tuple[] */
TNimType NTI263261; /* seq[tuple[key: string, value: VmCallback]] */
TNimType NTI263034; /* PCtx */
extern Gcheap49818 gch_49859;
N_NIMCALL(void, TMP2068)(void* p, NI op) {
	TY263242* a;
	NI LOC1;
	a = (TY263242*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
N_NIMCALL(void, TMP2071)(void* p, NI op) {
	TY263202* a;
	NI LOC1;
	a = (TY263202*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
N_NIMCALL(void, TMP2072)(void* p, NI op) {
	TY263222* a;
	NI LOC1;
	a = (TY263222*)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, TMP2077)(void* p, NI op) {
	PprocHEX3Aobjecttype263221* a;
	NI LOC1;
	a = (PprocHEX3Aobjecttype263221*)p;
	nimGCvisit((void*)(*a).blocks, op);
	nimGCvisit((void*)(*a).sym, op);
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < 256; LOC1++) {
	}
}
N_NIMCALL(void, TMP2086)(void* p, NI op) {
	TY263261* a;
	NI LOC1;
	a = (TY263261*)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, TMP2087)(void* p, NI op) {
	Tctx263036* a;
	a = (Tctx263036*)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(Cell47505*, usrtocell_51440)(void* usr) {
	Cell47505* result;
	result = 0;
	result = ((Cell47505*) ((NI)((NU64)(((NI) (usr))) - (NU64)(((NI)sizeof(Cell47505))))));
	return result;
}

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

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

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell47505* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_51440(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell47505* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_51440((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA11;
			rtladdzct_53001(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

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

static N_INLINE(void, rtladdcycleroot_52220)(Cell47505* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_48247((&gch_49859.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, decref_53401)(Cell47505* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3;
		rtladdzct_53001(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_51458(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_52220(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, nimGCunref)(void* p) {
	Cell47505* LOC1;
	LOC1 = 0;
	LOC1 = usrtocell_51440(p);
	decref_53401(LOC1);
}

N_NIMCALL(Tctx263036*, newctx_263267)(Tsym214822* module) {
	Tctx263036* result;
	Tctx263036* LOC1;
	PprocHEX3Aobjecttype263221* LOC2;
	NimStringDesc* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (Tctx263036*) newObj((&NTI263034), sizeof(Tctx263036));
	(*LOC1).Sup.Sup.m_type = (&NTI263036);
	if ((*LOC1).code) nimGCunrefNoCycle((*LOC1).code);
	(*LOC1).code = (TY263242*) newSeqRC1((&NTI263242), 0);
	if ((*LOC1).debug) nimGCunrefNoCycle((*LOC1).debug);
	(*LOC1).debug = (TY183090*) newSeqRC1((&NTI183090), 0);
	asgnRefNoCycle((void**) (&(*LOC1).globals), newnode_215401(((NU8) 126)));
	asgnRefNoCycle((void**) (&(*LOC1).constants), newnode_215401(((NU8) 115)));
	if ((*LOC1).types) nimGCunrefNoCycle((*LOC1).types);
	(*LOC1).types = (Ttypeseq214824*) newSeqRC1((&NTI214824), 0);
	LOC2 = 0;
	LOC2 = (PprocHEX3Aobjecttype263221*) newObj((&NTI263028), sizeof(PprocHEX3Aobjecttype263221));
	if ((*LOC2).blocks) nimGCunrefNoCycle((*LOC2).blocks);
	(*LOC2).blocks = (TY263222*) newSeqRC1((&NTI263222), 0);
	asgnRefNoCycle((void**) (&(*LOC1).prc), LOC2);
	asgnRefNoCycle((void**) (&(*LOC1).module), module);
	(*LOC1).loopiterations = ((NI) 1500000);
	(*LOC1).comesfromheuristic = unknownlineinfo_183087();
	if ((*LOC1).callbacks) nimGCunref((*LOC1).callbacks);
	(*LOC1).callbacks = (TY263261*) newSeqRC1((&NTI263261), 0);
	LOC3 = 0;
	LOC3 = (*LOC1).errorflag; (*LOC1).errorflag = copyStringRC1(((NimStringDesc*) &TMP2843));
	if (LOC3) nimGCunrefNoCycle(LOC3);
	result = LOC1;
	return result;
}

static N_INLINE(void, incref_53819)(Cell47505* c) {
	(*c).refcount = (NI)((NU64)((*c).refcount) + (NU64)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_51458(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_52220(c);
	}
	LA4: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Cell47505* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_51440(src);
		incref_53819(LOC5);
	}
	LA3: ;
	{
		Cell47505* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_51440((*dest));
		decref_53401(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(void, registercallback_263374)(Tctx263036* c, NimStringDesc* name, Vmcallback263032 callback) {
	TY263262 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 = (TY263261*) incrSeqV2(&((*c).callbacks)->Sup, sizeof(TY263262));
	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_263353)(Tctx263036* c, Tsym214822* module) {
	PprocHEX3Aobjecttype263221* LOC1;
	asgnRefNoCycle((void**) (&(*c).module), module);
	LOC1 = 0;
	LOC1 = (PprocHEX3Aobjecttype263221*) newObj((&NTI263028), sizeof(PprocHEX3Aobjecttype263221));
	if ((*LOC1).blocks) nimGCunrefNoCycle((*LOC1).blocks);
	(*LOC1).blocks = (TY263222*) newSeqRC1((&NTI263222), 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* TMP2067[18];
static TNimNode* TMP2069[4];
static TNimNode* TMP2070[2];
static TNimNode* TMP2073[2];
static TNimNode* TMP2074[9];
NI TMP2076;
static char* NIM_CONST TMP2075[9] = {
"slotEmpty", 
"slotFixedVar", 
"slotFixedLet", 
"slotTempUnknown", 
"slotTempInt", 
"slotTempFloat", 
"slotTempStr", 
"slotTempComplex", 
"slotTempPerm"};
static TNimNode* TMP2078[5];
NI TMP2080;
static char* NIM_CONST TMP2079[5] = {
"emRepl", 
"emConst", 
"emOptimize", 
"emStaticExpr", 
"emStaticStmt"};
static TNimNode* TMP2081[3];
NI TMP2083;
static char* NIM_CONST TMP2082[3] = {
"allowCast", 
"allowFFI", 
"allowInfiniteLoops"};
static TNimNode* TMP2084[2];
static TNimNode* TMP2085[2];
static TNimNode TMP937[57];
NTI263036.size = sizeof(Tctx263036);
NTI263036.kind = 17;
NTI263036.base = (&NTI261002);
TMP2067[0] = &TMP937[1];
NTI263242.size = sizeof(TY263242*);
NTI263242.kind = 24;
NTI263242.base = (&NTI120);
NTI263242.flags = 2;
NTI263242.marker = TMP2068;
TMP937[1].kind = 1;
TMP937[1].offset = offsetof(Tctx263036, code);
TMP937[1].typ = (&NTI263242);
TMP937[1].name = "code";
TMP2067[1] = &TMP937[2];
TMP937[2].kind = 1;
TMP937[2].offset = offsetof(Tctx263036, debug);
TMP937[2].typ = (&NTI183090);
TMP937[2].name = "debug";
TMP2067[2] = &TMP937[3];
TMP937[3].kind = 1;
TMP937[3].offset = offsetof(Tctx263036, globals);
TMP937[3].typ = (&NTI214782);
TMP937[3].name = "globals";
TMP2067[3] = &TMP937[4];
TMP937[4].kind = 1;
TMP937[4].offset = offsetof(Tctx263036, constants);
TMP937[4].typ = (&NTI214782);
TMP937[4].name = "constants";
TMP2067[4] = &TMP937[5];
TMP937[5].kind = 1;
TMP937[5].offset = offsetof(Tctx263036, types);
TMP937[5].typ = (&NTI214824);
TMP937[5].name = "types";
TMP2067[5] = &TMP937[6];
TMP937[6].kind = 1;
TMP937[6].offset = offsetof(Tctx263036, currentexceptiona);
TMP937[6].typ = (&NTI214782);
TMP937[6].name = "currentExceptionA";
TMP2067[6] = &TMP937[7];
TMP937[7].kind = 1;
TMP937[7].offset = offsetof(Tctx263036, currentexceptionb);
TMP937[7].typ = (&NTI214782);
TMP937[7].name = "currentExceptionB";
TMP2067[7] = &TMP937[8];
TMP937[8].kind = 1;
TMP937[8].offset = offsetof(Tctx263036, exceptioninstr);
TMP937[8].typ = (&NTI104);
TMP937[8].name = "exceptionInstr";
TMP2067[8] = &TMP937[9];
NTI263221.size = sizeof(PprocHEX3Aobjecttype263221);
NTI263221.kind = 18;
NTI263221.base = 0;
NTI263221.flags = 2;
TMP2069[0] = &TMP937[11];
NTI263018.size = sizeof(Tblock263018);
NTI263018.kind = 18;
NTI263018.base = 0;
NTI263018.flags = 2;
TMP2070[0] = &TMP937[13];
TMP937[13].kind = 1;
TMP937[13].offset = offsetof(Tblock263018, label);
TMP937[13].typ = (&NTI214788);
TMP937[13].name = "label";
TMP2070[1] = &TMP937[14];
NTI263202.size = sizeof(TY263202*);
NTI263202.kind = 24;
NTI263202.base = (&NTI104);
NTI263202.flags = 2;
NTI263202.marker = TMP2071;
TMP937[14].kind = 1;
TMP937[14].offset = offsetof(Tblock263018, fixups);
TMP937[14].typ = (&NTI263202);
TMP937[14].name = "fixups";
TMP937[12].len = 2; TMP937[12].kind = 2; TMP937[12].sons = &TMP2070[0];
NTI263018.node = &TMP937[12];
NTI263222.size = sizeof(TY263222*);
NTI263222.kind = 24;
NTI263222.base = (&NTI263018);
NTI263222.flags = 2;
NTI263222.marker = TMP2072;
TMP937[11].kind = 1;
TMP937[11].offset = offsetof(PprocHEX3Aobjecttype263221, blocks);
TMP937[11].typ = (&NTI263222);
TMP937[11].name = "blocks";
TMP2069[1] = &TMP937[15];
TMP937[15].kind = 1;
TMP937[15].offset = offsetof(PprocHEX3Aobjecttype263221, sym);
TMP937[15].typ = (&NTI214788);
TMP937[15].name = "sym";
TMP2069[2] = &TMP937[16];
NTI263227.size = sizeof(TY263227);
NTI263227.kind = 18;
NTI263227.base = 0;
NTI263227.flags = 3;
TMP2073[0] = &TMP937[18];
TMP937[18].kind = 1;
TMP937[18].offset = offsetof(TY263227, Field0);
TMP937[18].typ = (&NTI130);
TMP937[18].name = "Field0";
TMP2073[1] = &TMP937[19];
NTI263026.size = sizeof(NU8);
NTI263026.kind = 14;
NTI263026.base = 0;
NTI263026.flags = 3;
for (TMP2076 = 0; TMP2076 < 9; TMP2076++) {
TMP937[TMP2076+20].kind = 1;
TMP937[TMP2076+20].offset = TMP2076;
TMP937[TMP2076+20].name = TMP2075[TMP2076];
TMP2074[TMP2076] = &TMP937[TMP2076+20];
}
TMP937[29].len = 9; TMP937[29].kind = 2; TMP937[29].sons = &TMP2074[0];
NTI263026.node = &TMP937[29];
TMP937[19].kind = 1;
TMP937[19].offset = offsetof(TY263227, Field1);
TMP937[19].typ = (&NTI263026);
TMP937[19].name = "Field1";
TMP937[17].len = 2; TMP937[17].kind = 2; TMP937[17].sons = &TMP2073[0];
NTI263227.node = &TMP937[17];
NTI263230.size = sizeof(TY263230);
NTI263230.kind = 16;
NTI263230.base = (&NTI263227);
NTI263230.flags = 3;
TMP937[16].kind = 1;
TMP937[16].offset = offsetof(PprocHEX3Aobjecttype263221, slots);
TMP937[16].typ = (&NTI263230);
TMP937[16].name = "slots";
TMP2069[3] = &TMP937[30];
TMP937[30].kind = 1;
TMP937[30].offset = offsetof(PprocHEX3Aobjecttype263221, maxslots);
TMP937[30].typ = (&NTI104);
TMP937[30].name = "maxSlots";
TMP937[10].len = 4; TMP937[10].kind = 2; TMP937[10].sons = &TMP2069[0];
NTI263221.node = &TMP937[10];
NTI263028.size = sizeof(PprocHEX3Aobjecttype263221*);
NTI263028.kind = 22;
NTI263028.base = (&NTI263221);
NTI263028.flags = 2;
NTI263028.marker = TMP2077;
TMP937[9].kind = 1;
TMP937[9].offset = offsetof(Tctx263036, prc);
TMP937[9].typ = (&NTI263028);
TMP937[9].name = "prc";
TMP2067[9] = &TMP937[31];
TMP937[31].kind = 1;
TMP937[31].offset = offsetof(Tctx263036, module);
TMP937[31].typ = (&NTI214788);
TMP937[31].name = "module";
TMP2067[10] = &TMP937[32];
TMP937[32].kind = 1;
TMP937[32].offset = offsetof(Tctx263036, callsite);
TMP937[32].typ = (&NTI214782);
TMP937[32].name = "callsite";
TMP2067[11] = &TMP937[33];
NTI263020.size = sizeof(NU8);
NTI263020.kind = 14;
NTI263020.base = 0;
NTI263020.flags = 3;
for (TMP2080 = 0; TMP2080 < 5; TMP2080++) {
TMP937[TMP2080+34].kind = 1;
TMP937[TMP2080+34].offset = TMP2080;
TMP937[TMP2080+34].name = TMP2079[TMP2080];
TMP2078[TMP2080] = &TMP937[TMP2080+34];
}
TMP937[39].len = 5; TMP937[39].kind = 2; TMP937[39].sons = &TMP2078[0];
NTI263020.node = &TMP937[39];
TMP937[33].kind = 1;
TMP937[33].offset = offsetof(Tctx263036, mode);
TMP937[33].typ = (&NTI263020);
TMP937[33].name = "mode";
TMP2067[12] = &TMP937[40];
NTI263022.size = sizeof(NU8);
NTI263022.kind = 14;
NTI263022.base = 0;
NTI263022.flags = 3;
for (TMP2083 = 0; TMP2083 < 3; TMP2083++) {
TMP937[TMP2083+41].kind = 1;
TMP937[TMP2083+41].offset = TMP2083;
TMP937[TMP2083+41].name = TMP2082[TMP2083];
TMP2081[TMP2083] = &TMP937[TMP2083+41];
}
TMP937[44].len = 3; TMP937[44].kind = 2; TMP937[44].sons = &TMP2081[0];
NTI263022.node = &TMP937[44];
NTI263024.size = sizeof(NU8);
NTI263024.kind = 19;
NTI263024.base = (&NTI263022);
NTI263024.flags = 3;
TMP937[45].len = 0; TMP937[45].kind = 0;
NTI263024.node = &TMP937[45];
TMP937[40].kind = 1;
TMP937[40].offset = offsetof(Tctx263036, features);
TMP937[40].typ = (&NTI263024);
TMP937[40].name = "features";
TMP2067[13] = &TMP937[46];
TMP937[46].kind = 1;
TMP937[46].offset = offsetof(Tctx263036, traceactive);
TMP937[46].typ = (&NTI130);
TMP937[46].name = "traceActive";
TMP2067[14] = &TMP937[47];
TMP937[47].kind = 1;
TMP937[47].offset = offsetof(Tctx263036, loopiterations);
TMP937[47].typ = (&NTI104);
TMP937[47].name = "loopIterations";
TMP2067[15] = &TMP937[48];
TMP937[48].kind = 1;
TMP937[48].offset = offsetof(Tctx263036, comesfromheuristic);
TMP937[48].typ = (&NTI182337);
TMP937[48].name = "comesFromHeuristic";
TMP2067[16] = &TMP937[49];
NTI263262.size = sizeof(TY263262);
NTI263262.kind = 18;
NTI263262.base = 0;
TMP2084[0] = &TMP937[51];
TMP937[51].kind = 1;
TMP937[51].offset = offsetof(TY263262, Field0);
TMP937[51].typ = (&NTI138);
TMP937[51].name = "Field0";
TMP2084[1] = &TMP937[52];
NTI263032.size = sizeof(TY531873);
NTI263032.kind = 18;
NTI263032.base = 0;
NTI263032.flags = 2;
TMP2085[0] = &TMP937[54];
TMP937[54].kind = 1;
TMP937[54].offset = offsetof(TY531873, Field0);
TMP937[54].typ = (&NTI142);
TMP937[54].name = "Field0";
TMP2085[1] = &TMP937[55];
TMP937[55].kind = 1;
TMP937[55].offset = offsetof(TY531873, Field1);
TMP937[55].typ = (&NTI531875);
TMP937[55].name = "Field1";
TMP937[53].len = 2; TMP937[53].kind = 2; TMP937[53].sons = &TMP2085[0];
NTI263032.node = &TMP937[53];
TMP937[52].kind = 1;
TMP937[52].offset = offsetof(TY263262, Field1);
TMP937[52].typ = (&NTI263032);
TMP937[52].name = "Field1";
TMP937[50].len = 2; TMP937[50].kind = 2; TMP937[50].sons = &TMP2084[0];
NTI263262.node = &TMP937[50];
NTI263261.size = sizeof(TY263261*);
NTI263261.kind = 24;
NTI263261.base = (&NTI263262);
NTI263261.marker = TMP2086;
TMP937[49].kind = 1;
TMP937[49].offset = offsetof(Tctx263036, callbacks);
TMP937[49].typ = (&NTI263261);
TMP937[49].name = "callbacks";
TMP2067[17] = &TMP937[56];
TMP937[56].kind = 1;
TMP937[56].offset = offsetof(Tctx263036, errorflag);
TMP937[56].typ = (&NTI138);
TMP937[56].name = "errorFlag";
TMP937[0].len = 18; TMP937[0].kind = 2; TMP937[0].sons = &TMP2067[0];
NTI263036.node = &TMP937[0];
NTI263034.size = sizeof(Tctx263036*);
NTI263034.kind = 22;
NTI263034.base = (&NTI263036);
NTI263034.marker = TMP2087;
}

