/* Generated by Nim Compiler v0.12.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 Tctx281048 Tctx281048;
typedef struct Tpasscontext279005 Tpasscontext279005;
typedef struct TNimObject TNimObject;
typedef struct TY281254 TY281254;
typedef struct TY193417 TY193417;
typedef struct Tnode227809 Tnode227809;
typedef struct Ttypeseq227843 Ttypeseq227843;
typedef struct PprocHEX3Aobjecttype281233 PprocHEX3Aobjecttype281233;
typedef struct Tsym227841 Tsym227841;
typedef struct Tlineinfo192352 Tlineinfo192352;
typedef struct TY281273 TY281273;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct TY281234 TY281234;
typedef struct TY281239 TY281239;
typedef struct Tblock281030 Tblock281030;
typedef struct TY281214 TY281214;
typedef struct TY281274 TY281274;
typedef struct Vmargs281042 Vmargs281042;
typedef struct TY578951 TY578951;
typedef struct TY578954 TY578954;
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 Memregion30891 Memregion30891;
typedef struct Smallchunk30843 Smallchunk30843;
typedef struct Llchunk30885 Llchunk30885;
typedef struct Bigchunk30845 Bigchunk30845;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30889 Avlnode30889;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Ttype227847 Ttype227847;
typedef struct Tident200021 Tident200021;
typedef struct Tnodeseq227803 Tnodeseq227803;
typedef struct Tidobj200015 Tidobj200015;
typedef struct Tscope227835 Tscope227835;
typedef struct TY227944 TY227944;
typedef struct Tstrtable227813 Tstrtable227813;
typedef struct Tsymseq227811 Tsymseq227811;
typedef struct Tloc227823 Tloc227823;
typedef struct Ropeobj178009 Ropeobj178009;
typedef struct Tlib227827 Tlib227827;
typedef struct Basechunk30841 Basechunk30841;
typedef struct Freecell30833 Freecell30833;
typedef struct Tinstantiation227831 Tinstantiation227831;
typedef struct Tlistentry143022 Tlistentry143022;
typedef struct TY227932 TY227932;
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  Tpasscontext279005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Tlineinfo192352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tctx281048  {
  Tpasscontext279005 Sup;
TY281254* code;
TY193417* debug;
Tnode227809* globals;
Tnode227809* constants;
Ttypeseq227843* types;
Tnode227809* currentexceptiona;
Tnode227809* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype281233* prc;
Tsym227841* module;
Tnode227809* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo192352 comesfromheuristic;
TY281273* callbacks;
NimStringDesc* errorflag;
};
struct TY281239 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY281239 TY281242[256];
struct  PprocHEX3Aobjecttype281233  {
TY281234* blocks;
Tsym227841* sym;
TY281242 slots;
NI maxslots;
};
struct  Tblock281030  {
Tsym227841* label;
TY281214* fixups;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs281042* args, void* ClEnv);
void* ClEnv;
} Vmcallback281044;
struct TY281274 {
NimStringDesc* Field0;
Vmcallback281044 Field1;
};
struct TY578951 {
void* Field0;
TY578954* 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 Smallchunk30843* TY30906[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30891  {
NI minlargeobj;
NI maxlargeobj;
TY30906 freesmallchunks;
Llchunk30885* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30845* freechunkslist;
Intset30817 chunkstarts;
Avlnode30889* root;
Avlnode30889* deleted;
Avlnode30889* last;
Avlnode30889* 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;
Memregion30891 region;
Gcstat51014 stat;
};
struct  Tnode227809  {
Ttype227847* typ;
Tlineinfo192352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym227841* sym;
} S4;
struct {Tident200021* ident;
} S5;
struct {Tnodeseq227803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tidobj200015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable227813  {
NI counter;
Tsymseq227811* data;
};
struct  Tloc227823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype227847* t;
Ropeobj178009* r;
Ropeobj178009* heaproot;
};
struct  Tsym227841  {
  Tidobj200015 Sup;
NU8 kind;
union{
struct {Ttypeseq227843* typeinstcache;
Tscope227835* typscope;
} S1;
struct {TY227944* procinstcache;
Tsym227841* gcunsafetyreason;
} S2;
struct {TY227944* usedgenerics;
Tstrtable227813 tab;
} S3;
struct {Tsym227841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype227847* typ;
Tident200021* name;
Tlineinfo192352 info;
Tsym227841* owner;
NU32 flags;
Tnode227809* ast;
NU32 options;
NI position;
NI offset;
Tloc227823 loc;
Tlib227827* annex;
Tnode227809* constraint;
};
struct  Vmargs281042  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode227809* currentexception;
};
struct TY578954 {
char dummy;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30822[8];
struct  Pagedesc48954  {
Pagedesc48954* next;
NI key;
TY30822 bits;
};
struct  Basechunk30841  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30843  {
  Basechunk30841 Sup;
Smallchunk30843* next;
Smallchunk30843* prev;
Freecell30833* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30885  {
NI size;
NI acc;
Llchunk30885* next;
};
struct  Bigchunk30845  {
  Basechunk30841 Sup;
Bigchunk30845* next;
Bigchunk30845* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30822 bits;
};
typedef Avlnode30889* TY30896[2];
struct  Avlnode30889  {
TY30896 link;
NI key;
NI upperbound;
NI level;
};
struct  Ttype227847  {
  Tidobj200015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq227843* sons;
Tnode227809* n;
Tsym227841* owner;
Tsym227841* sym;
Tsym227841* destructor;
Tsym227841* deepcopy;
Tsym227841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc227823 loc;
};
struct  Tident200021  {
  Tidobj200015 Sup;
NimStringDesc* s;
Tident200021* next;
NI h;
};
struct  Tscope227835  {
NI depthlevel;
Tstrtable227813 symbols;
Tnodeseq227803* usingsyms;
Tscope227835* parent;
};
struct  Ropeobj178009  {
  TNimObject Sup;
Ropeobj178009* left;
Ropeobj178009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry143022  {
  TNimObject Sup;
Tlistentry143022* prev;
Tlistentry143022* next;
};
struct  Tlib227827  {
  Tlistentry143022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj178009* name;
Tnode227809* path;
};
struct  Freecell30833  {
Freecell30833* next;
NI zerofield;
};
struct  Tinstantiation227831  {
Tsym227841* sym;
Ttypeseq227843* concretetypes;
TY227932* usedby;
NI compilesid;
};
struct TY281254 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY281214 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
struct TY281234 {
  TGenericSeq Sup;
  Tblock281030 data[SEQ_DECL_SIZE];
};
struct TY281273 {
  TGenericSeq Sup;
  TY281274 data[SEQ_DECL_SIZE];
};
struct TY193417 {
  TGenericSeq Sup;
  Tlineinfo192352 data[SEQ_DECL_SIZE];
};
struct Ttypeseq227843 {
  TGenericSeq Sup;
  Ttype227847* data[SEQ_DECL_SIZE];
};
struct Tnodeseq227803 {
  TGenericSeq Sup;
  Tnode227809* data[SEQ_DECL_SIZE];
};
struct TY227944 {
  TGenericSeq Sup;
  Tinstantiation227831* data[SEQ_DECL_SIZE];
};
struct Tsymseq227811 {
  TGenericSeq Sup;
  Tsym227841* data[SEQ_DECL_SIZE];
};
struct TY227932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, TMP2036)(void* p, NI op);
N_NIMCALL(void, TMP2039)(void* p, NI op);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP2040)(void* p, NI op);
N_NIMCALL(void, TMP2045)(void* p, NI op);
N_NIMCALL(void, TMP2054)(void* p, NI op);
N_NIMCALL(void, TMP2055)(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(Tnode227809*, newnode_228401)(NU8 kind);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(Tlineinfo192352, unknownlineinfo_193408)(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(TMP2810, "", 0);
extern TNimType NTI279005; /* TPassContext */
TNimType NTI281048; /* TCtx */
extern TNimType NTI124; /* uint32 */
TNimType NTI281254; /* seq[TInstr] */
extern TNimType NTI193417; /* seq[TLineInfo] */
extern TNimType NTI227801; /* PNode */
extern TNimType NTI227843; /* TTypeSeq */
extern TNimType NTI108; /* int */
TNimType NTI281233; /* PProc:ObjectType */
TNimType NTI281030; /* TBlock */
extern TNimType NTI227807; /* PSym */
TNimType NTI281214; /* seq[TPosition] */
TNimType NTI281234; /* seq[TBlock] */
TNimType NTI281239; /* tuple[inUse: bool, kind: TSlotKind] */
extern TNimType NTI138; /* bool */
TNimType NTI281038; /* TSlotKind */
TNimType NTI281242; /* array[0..255, tuple[inUse: bool, kind: TSlotKind]] */
TNimType NTI281040; /* PProc */
TNimType NTI281032; /* TEvalMode */
TNimType NTI281034; /* TSandboxFlag */
TNimType NTI281036; /* TSandboxFlags */
extern TNimType NTI192352; /* TLineInfo */
TNimType NTI281274; /* tuple[key: string, value: VmCallback] */
extern TNimType NTI149; /* string */
TNimType NTI281044; /* (pointer, ref tuple[]) */
extern TNimType NTI153; /* pointer */
extern TNimType NTI578953; /* ref tuple[] */
TNimType NTI281273; /* seq[tuple[key: string, value: VmCallback]] */
TNimType NTI281046; /* PCtx */
extern Gcheap51018 gch_51059;
N_NIMCALL(void, TMP2036)(void* p, NI op) {
	TY281254* a;
	NI LOC1;
	a = (TY281254*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
N_NIMCALL(void, TMP2039)(void* p, NI op) {
	TY281214* a;
	NI LOC1;
	a = (TY281214*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
N_NIMCALL(void, TMP2040)(void* p, NI op) {
	TY281234* a;
	NI LOC1;
	a = (TY281234*)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, TMP2045)(void* p, NI op) {
	PprocHEX3Aobjecttype281233* a;
	NI LOC1;
	a = (PprocHEX3Aobjecttype281233*)p;
	nimGCvisit((void*)(*a).blocks, op);
	nimGCvisit((void*)(*a).sym, op);
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < 256; LOC1++) {
	}
}
N_NIMCALL(void, TMP2054)(void* p, NI op) {
	TY281273* a;
	NI LOC1;
	a = (TY281273*)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, TMP2055)(void* p, NI op) {
	Tctx281048* a;
	a = (Tctx281048*)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)((NU64)(((NI) (usr))) - (NU64)(((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 (!((NU64)((*c).refcount) < (NU64)(((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 (!((NU64)((*c).refcount) < (NU64)(((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 (!((NU64)((*c).refcount) < (NU64)(((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(Tctx281048*, newctx_281282)(Tsym227841* module) {
	Tctx281048* result;
	Tctx281048* LOC1;
	PprocHEX3Aobjecttype281233* LOC2;
	NimStringDesc* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (Tctx281048*) newObj((&NTI281046), sizeof(Tctx281048));
	(*LOC1).Sup.Sup.m_type = (&NTI281048);
	if ((*LOC1).code) nimGCunrefNoCycle((*LOC1).code);
	(*LOC1).code = (TY281254*) newSeqRC1((&NTI281254), 0);
	if ((*LOC1).debug) nimGCunrefNoCycle((*LOC1).debug);
	(*LOC1).debug = (TY193417*) newSeqRC1((&NTI193417), 0);
	asgnRefNoCycle((void**) (&(*LOC1).globals), newnode_228401(((NU8) 126)));
	asgnRefNoCycle((void**) (&(*LOC1).constants), newnode_228401(((NU8) 115)));
	if ((*LOC1).types) nimGCunrefNoCycle((*LOC1).types);
	(*LOC1).types = (Ttypeseq227843*) newSeqRC1((&NTI227843), 0);
	LOC2 = 0;
	LOC2 = (PprocHEX3Aobjecttype281233*) newObj((&NTI281040), sizeof(PprocHEX3Aobjecttype281233));
	if ((*LOC2).blocks) nimGCunrefNoCycle((*LOC2).blocks);
	(*LOC2).blocks = (TY281234*) newSeqRC1((&NTI281234), 0);
	asgnRefNoCycle((void**) (&(*LOC1).prc), LOC2);
	asgnRefNoCycle((void**) (&(*LOC1).module), module);
	(*LOC1).loopiterations = ((NI) 1500000);
	(*LOC1).comesfromheuristic = unknownlineinfo_193408();
	if ((*LOC1).callbacks) nimGCunref((*LOC1).callbacks);
	(*LOC1).callbacks = (TY281273*) newSeqRC1((&NTI281273), 0);
	LOC3 = 0;
	LOC3 = (*LOC1).errorflag; (*LOC1).errorflag = copyStringRC1(((NimStringDesc*) &TMP2810));
	if (LOC3) nimGCunrefNoCycle(LOC3);
	result = LOC1;
	return result;
}

static N_INLINE(void, incref_55022)(Cell48946* c) {
	(*c).refcount = (NI)((NU64)((*c).refcount) + (NU64)(((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_281401)(Tctx281048* c, NimStringDesc* name, Vmcallback281044 callback) {
	TY281274 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 = (TY281273*) incrSeqV2(&((*c).callbacks)->Sup, sizeof(TY281274));
	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_281374)(Tctx281048* c, Tsym227841* module) {
	PprocHEX3Aobjecttype281233* LOC1;
	asgnRefNoCycle((void**) (&(*c).module), module);
	LOC1 = 0;
	LOC1 = (PprocHEX3Aobjecttype281233*) newObj((&NTI281040), sizeof(PprocHEX3Aobjecttype281233));
	if ((*LOC1).blocks) nimGCunrefNoCycle((*LOC1).blocks);
	(*LOC1).blocks = (TY281234*) newSeqRC1((&NTI281234), 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* TMP2035[18];
static TNimNode* TMP2037[4];
static TNimNode* TMP2038[2];
static TNimNode* TMP2041[2];
static TNimNode* TMP2042[9];
NI TMP2044;
static char* NIM_CONST TMP2043[9] = {
"slotEmpty", 
"slotFixedVar", 
"slotFixedLet", 
"slotTempUnknown", 
"slotTempInt", 
"slotTempFloat", 
"slotTempStr", 
"slotTempComplex", 
"slotTempPerm"};
static TNimNode* TMP2046[5];
NI TMP2048;
static char* NIM_CONST TMP2047[5] = {
"emRepl", 
"emConst", 
"emOptimize", 
"emStaticExpr", 
"emStaticStmt"};
static TNimNode* TMP2049[3];
NI TMP2051;
static char* NIM_CONST TMP2050[3] = {
"allowCast", 
"allowFFI", 
"allowInfiniteLoops"};
static TNimNode* TMP2052[2];
static TNimNode* TMP2053[2];
static TNimNode TMP940[57];
NTI281048.size = sizeof(Tctx281048);
NTI281048.kind = 17;
NTI281048.base = (&NTI279005);
TMP2035[0] = &TMP940[1];
NTI281254.size = sizeof(TY281254*);
NTI281254.kind = 24;
NTI281254.base = (&NTI124);
NTI281254.flags = 2;
NTI281254.marker = TMP2036;
TMP940[1].kind = 1;
TMP940[1].offset = offsetof(Tctx281048, code);
TMP940[1].typ = (&NTI281254);
TMP940[1].name = "code";
TMP2035[1] = &TMP940[2];
TMP940[2].kind = 1;
TMP940[2].offset = offsetof(Tctx281048, debug);
TMP940[2].typ = (&NTI193417);
TMP940[2].name = "debug";
TMP2035[2] = &TMP940[3];
TMP940[3].kind = 1;
TMP940[3].offset = offsetof(Tctx281048, globals);
TMP940[3].typ = (&NTI227801);
TMP940[3].name = "globals";
TMP2035[3] = &TMP940[4];
TMP940[4].kind = 1;
TMP940[4].offset = offsetof(Tctx281048, constants);
TMP940[4].typ = (&NTI227801);
TMP940[4].name = "constants";
TMP2035[4] = &TMP940[5];
TMP940[5].kind = 1;
TMP940[5].offset = offsetof(Tctx281048, types);
TMP940[5].typ = (&NTI227843);
TMP940[5].name = "types";
TMP2035[5] = &TMP940[6];
TMP940[6].kind = 1;
TMP940[6].offset = offsetof(Tctx281048, currentexceptiona);
TMP940[6].typ = (&NTI227801);
TMP940[6].name = "currentExceptionA";
TMP2035[6] = &TMP940[7];
TMP940[7].kind = 1;
TMP940[7].offset = offsetof(Tctx281048, currentexceptionb);
TMP940[7].typ = (&NTI227801);
TMP940[7].name = "currentExceptionB";
TMP2035[7] = &TMP940[8];
TMP940[8].kind = 1;
TMP940[8].offset = offsetof(Tctx281048, exceptioninstr);
TMP940[8].typ = (&NTI108);
TMP940[8].name = "exceptionInstr";
TMP2035[8] = &TMP940[9];
NTI281233.size = sizeof(PprocHEX3Aobjecttype281233);
NTI281233.kind = 18;
NTI281233.base = 0;
NTI281233.flags = 2;
TMP2037[0] = &TMP940[11];
NTI281030.size = sizeof(Tblock281030);
NTI281030.kind = 18;
NTI281030.base = 0;
NTI281030.flags = 2;
TMP2038[0] = &TMP940[13];
TMP940[13].kind = 1;
TMP940[13].offset = offsetof(Tblock281030, label);
TMP940[13].typ = (&NTI227807);
TMP940[13].name = "label";
TMP2038[1] = &TMP940[14];
NTI281214.size = sizeof(TY281214*);
NTI281214.kind = 24;
NTI281214.base = (&NTI108);
NTI281214.flags = 2;
NTI281214.marker = TMP2039;
TMP940[14].kind = 1;
TMP940[14].offset = offsetof(Tblock281030, fixups);
TMP940[14].typ = (&NTI281214);
TMP940[14].name = "fixups";
TMP940[12].len = 2; TMP940[12].kind = 2; TMP940[12].sons = &TMP2038[0];
NTI281030.node = &TMP940[12];
NTI281234.size = sizeof(TY281234*);
NTI281234.kind = 24;
NTI281234.base = (&NTI281030);
NTI281234.flags = 2;
NTI281234.marker = TMP2040;
TMP940[11].kind = 1;
TMP940[11].offset = offsetof(PprocHEX3Aobjecttype281233, blocks);
TMP940[11].typ = (&NTI281234);
TMP940[11].name = "blocks";
TMP2037[1] = &TMP940[15];
TMP940[15].kind = 1;
TMP940[15].offset = offsetof(PprocHEX3Aobjecttype281233, sym);
TMP940[15].typ = (&NTI227807);
TMP940[15].name = "sym";
TMP2037[2] = &TMP940[16];
NTI281239.size = sizeof(TY281239);
NTI281239.kind = 18;
NTI281239.base = 0;
NTI281239.flags = 3;
TMP2041[0] = &TMP940[18];
TMP940[18].kind = 1;
TMP940[18].offset = offsetof(TY281239, Field0);
TMP940[18].typ = (&NTI138);
TMP940[18].name = "Field0";
TMP2041[1] = &TMP940[19];
NTI281038.size = sizeof(NU8);
NTI281038.kind = 14;
NTI281038.base = 0;
NTI281038.flags = 3;
for (TMP2044 = 0; TMP2044 < 9; TMP2044++) {
TMP940[TMP2044+20].kind = 1;
TMP940[TMP2044+20].offset = TMP2044;
TMP940[TMP2044+20].name = TMP2043[TMP2044];
TMP2042[TMP2044] = &TMP940[TMP2044+20];
}
TMP940[29].len = 9; TMP940[29].kind = 2; TMP940[29].sons = &TMP2042[0];
NTI281038.node = &TMP940[29];
TMP940[19].kind = 1;
TMP940[19].offset = offsetof(TY281239, Field1);
TMP940[19].typ = (&NTI281038);
TMP940[19].name = "Field1";
TMP940[17].len = 2; TMP940[17].kind = 2; TMP940[17].sons = &TMP2041[0];
NTI281239.node = &TMP940[17];
NTI281242.size = sizeof(TY281242);
NTI281242.kind = 16;
NTI281242.base = (&NTI281239);
NTI281242.flags = 3;
TMP940[16].kind = 1;
TMP940[16].offset = offsetof(PprocHEX3Aobjecttype281233, slots);
TMP940[16].typ = (&NTI281242);
TMP940[16].name = "slots";
TMP2037[3] = &TMP940[30];
TMP940[30].kind = 1;
TMP940[30].offset = offsetof(PprocHEX3Aobjecttype281233, maxslots);
TMP940[30].typ = (&NTI108);
TMP940[30].name = "maxSlots";
TMP940[10].len = 4; TMP940[10].kind = 2; TMP940[10].sons = &TMP2037[0];
NTI281233.node = &TMP940[10];
NTI281040.size = sizeof(PprocHEX3Aobjecttype281233*);
NTI281040.kind = 22;
NTI281040.base = (&NTI281233);
NTI281040.flags = 2;
NTI281040.marker = TMP2045;
TMP940[9].kind = 1;
TMP940[9].offset = offsetof(Tctx281048, prc);
TMP940[9].typ = (&NTI281040);
TMP940[9].name = "prc";
TMP2035[9] = &TMP940[31];
TMP940[31].kind = 1;
TMP940[31].offset = offsetof(Tctx281048, module);
TMP940[31].typ = (&NTI227807);
TMP940[31].name = "module";
TMP2035[10] = &TMP940[32];
TMP940[32].kind = 1;
TMP940[32].offset = offsetof(Tctx281048, callsite);
TMP940[32].typ = (&NTI227801);
TMP940[32].name = "callsite";
TMP2035[11] = &TMP940[33];
NTI281032.size = sizeof(NU8);
NTI281032.kind = 14;
NTI281032.base = 0;
NTI281032.flags = 3;
for (TMP2048 = 0; TMP2048 < 5; TMP2048++) {
TMP940[TMP2048+34].kind = 1;
TMP940[TMP2048+34].offset = TMP2048;
TMP940[TMP2048+34].name = TMP2047[TMP2048];
TMP2046[TMP2048] = &TMP940[TMP2048+34];
}
TMP940[39].len = 5; TMP940[39].kind = 2; TMP940[39].sons = &TMP2046[0];
NTI281032.node = &TMP940[39];
TMP940[33].kind = 1;
TMP940[33].offset = offsetof(Tctx281048, mode);
TMP940[33].typ = (&NTI281032);
TMP940[33].name = "mode";
TMP2035[12] = &TMP940[40];
NTI281034.size = sizeof(NU8);
NTI281034.kind = 14;
NTI281034.base = 0;
NTI281034.flags = 3;
for (TMP2051 = 0; TMP2051 < 3; TMP2051++) {
TMP940[TMP2051+41].kind = 1;
TMP940[TMP2051+41].offset = TMP2051;
TMP940[TMP2051+41].name = TMP2050[TMP2051];
TMP2049[TMP2051] = &TMP940[TMP2051+41];
}
TMP940[44].len = 3; TMP940[44].kind = 2; TMP940[44].sons = &TMP2049[0];
NTI281034.node = &TMP940[44];
NTI281036.size = sizeof(NU8);
NTI281036.kind = 19;
NTI281036.base = (&NTI281034);
NTI281036.flags = 3;
TMP940[45].len = 0; TMP940[45].kind = 0;
NTI281036.node = &TMP940[45];
TMP940[40].kind = 1;
TMP940[40].offset = offsetof(Tctx281048, features);
TMP940[40].typ = (&NTI281036);
TMP940[40].name = "features";
TMP2035[13] = &TMP940[46];
TMP940[46].kind = 1;
TMP940[46].offset = offsetof(Tctx281048, traceactive);
TMP940[46].typ = (&NTI138);
TMP940[46].name = "traceActive";
TMP2035[14] = &TMP940[47];
TMP940[47].kind = 1;
TMP940[47].offset = offsetof(Tctx281048, loopiterations);
TMP940[47].typ = (&NTI108);
TMP940[47].name = "loopIterations";
TMP2035[15] = &TMP940[48];
TMP940[48].kind = 1;
TMP940[48].offset = offsetof(Tctx281048, comesfromheuristic);
TMP940[48].typ = (&NTI192352);
TMP940[48].name = "comesFromHeuristic";
TMP2035[16] = &TMP940[49];
NTI281274.size = sizeof(TY281274);
NTI281274.kind = 18;
NTI281274.base = 0;
TMP2052[0] = &TMP940[51];
TMP940[51].kind = 1;
TMP940[51].offset = offsetof(TY281274, Field0);
TMP940[51].typ = (&NTI149);
TMP940[51].name = "Field0";
TMP2052[1] = &TMP940[52];
NTI281044.size = sizeof(TY578951);
NTI281044.kind = 18;
NTI281044.base = 0;
NTI281044.flags = 2;
TMP2053[0] = &TMP940[54];
TMP940[54].kind = 1;
TMP940[54].offset = offsetof(TY578951, Field0);
TMP940[54].typ = (&NTI153);
TMP940[54].name = "Field0";
TMP2053[1] = &TMP940[55];
TMP940[55].kind = 1;
TMP940[55].offset = offsetof(TY578951, Field1);
TMP940[55].typ = (&NTI578953);
TMP940[55].name = "Field1";
TMP940[53].len = 2; TMP940[53].kind = 2; TMP940[53].sons = &TMP2053[0];
NTI281044.node = &TMP940[53];
TMP940[52].kind = 1;
TMP940[52].offset = offsetof(TY281274, Field1);
TMP940[52].typ = (&NTI281044);
TMP940[52].name = "Field1";
TMP940[50].len = 2; TMP940[50].kind = 2; TMP940[50].sons = &TMP2052[0];
NTI281274.node = &TMP940[50];
NTI281273.size = sizeof(TY281273*);
NTI281273.kind = 24;
NTI281273.base = (&NTI281274);
NTI281273.marker = TMP2054;
TMP940[49].kind = 1;
TMP940[49].offset = offsetof(Tctx281048, callbacks);
TMP940[49].typ = (&NTI281273);
TMP940[49].name = "callbacks";
TMP2035[17] = &TMP940[56];
TMP940[56].kind = 1;
TMP940[56].offset = offsetof(Tctx281048, errorflag);
TMP940[56].typ = (&NTI149);
TMP940[56].name = "errorFlag";
TMP940[0].len = 18; TMP940[0].kind = 2; TMP940[0].sons = &TMP2035[0];
NTI281048.node = &TMP940[0];
NTI281046.size = sizeof(Tctx281048*);
NTI281046.kind = 22;
NTI281046.base = (&NTI281048);
NTI281046.marker = TMP2055;
}

