/* 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 Tctx278048 Tctx278048;
typedef struct Tpasscontext276005 Tpasscontext276005;
typedef struct TNimObject TNimObject;
typedef struct TY278254 TY278254;
typedef struct TY190417 TY190417;
typedef struct Tnode224809 Tnode224809;
typedef struct Ttypeseq224843 Ttypeseq224843;
typedef struct PprocHEX3Aobjecttype278233 PprocHEX3Aobjecttype278233;
typedef struct Tsym224841 Tsym224841;
typedef struct Tlineinfo189352 Tlineinfo189352;
typedef struct TY278273 TY278273;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct TY278234 TY278234;
typedef struct TY278239 TY278239;
typedef struct Tblock278030 Tblock278030;
typedef struct TY278214 TY278214;
typedef struct TY278274 TY278274;
typedef struct Vmargs278042 Vmargs278042;
typedef struct TY575951 TY575951;
typedef struct TY575954 TY575954;
typedef struct Cell48947 Cell48947;
typedef struct Cellseq48963 Cellseq48963;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48959 Cellset48959;
typedef struct Pagedesc48955 Pagedesc48955;
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 Ttype224847 Ttype224847;
typedef struct Tident197021 Tident197021;
typedef struct Tnodeseq224803 Tnodeseq224803;
typedef struct Tidobj197015 Tidobj197015;
typedef struct Tscope224835 Tscope224835;
typedef struct TY224944 TY224944;
typedef struct Tstrtable224813 Tstrtable224813;
typedef struct Tsymseq224811 Tsymseq224811;
typedef struct Tloc224823 Tloc224823;
typedef struct Ropeobj175009 Ropeobj175009;
typedef struct Tlib224827 Tlib224827;
typedef struct Basechunk30841 Basechunk30841;
typedef struct Freecell30833 Freecell30833;
typedef struct Tinstantiation224831 Tinstantiation224831;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct TY224932 TY224932;
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  Tpasscontext276005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Tlineinfo189352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tctx278048  {
  Tpasscontext276005 Sup;
TY278254* code;
TY190417* debug;
Tnode224809* globals;
Tnode224809* constants;
Ttypeseq224843* types;
Tnode224809* currentexceptiona;
Tnode224809* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype278233* prc;
Tsym224841* module;
Tnode224809* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo189352 comesfromheuristic;
TY278273* callbacks;
NimStringDesc* errorflag;
};
struct TY278239 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY278239 TY278242[256];
struct  PprocHEX3Aobjecttype278233  {
TY278234* blocks;
Tsym224841* sym;
TY278242 slots;
NI maxslots;
};
struct  Tblock278030  {
Tsym224841* label;
TY278214* fixups;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs278042* args, void* ClEnv);
void* ClEnv;
} Vmcallback278044;
struct TY278274 {
NimStringDesc* Field0;
Vmcallback278044 Field1;
};
struct TY575951 {
void* Field0;
TY575954* Field1;
};
struct  Cell48947  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48963  {
NI len;
NI cap;
Cell48947** d;
};
struct  Cellset48959  {
NI counter;
NI max;
Pagedesc48955* head;
Pagedesc48955** 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;
Cellseq48963 zct;
Cellseq48963 decstack;
Cellset48959 cycleroots;
Cellseq48963 tempstack;
NI recgclock;
Memregion30891 region;
Gcstat51014 stat;
};
struct  Tnode224809  {
Ttype224847* typ;
Tlineinfo189352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym224841* sym;
} S4;
struct {Tident197021* ident;
} S5;
struct {Tnodeseq224803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tidobj197015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable224813  {
NI counter;
Tsymseq224811* data;
};
struct  Tloc224823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype224847* t;
Ropeobj175009* r;
Ropeobj175009* heaproot;
};
struct  Tsym224841  {
  Tidobj197015 Sup;
NU8 kind;
union{
struct {Ttypeseq224843* typeinstcache;
Tscope224835* typscope;
} S1;
struct {TY224944* procinstcache;
Tsym224841* gcunsafetyreason;
} S2;
struct {TY224944* usedgenerics;
Tstrtable224813 tab;
} S3;
struct {Tsym224841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype224847* typ;
Tident197021* name;
Tlineinfo189352 info;
Tsym224841* owner;
NU32 flags;
Tnode224809* ast;
NU32 options;
NI position;
NI offset;
Tloc224823 loc;
Tlib224827* annex;
Tnode224809* constraint;
};
struct  Vmargs278042  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode224809* currentexception;
};
struct TY575954 {
char dummy;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30822[8];
struct  Pagedesc48955  {
Pagedesc48955* 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  Ttype224847  {
  Tidobj197015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq224843* sons;
Tnode224809* n;
Tsym224841* owner;
Tsym224841* sym;
Tsym224841* destructor;
Tsym224841* deepcopy;
Tsym224841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc224823 loc;
};
struct  Tident197021  {
  Tidobj197015 Sup;
NimStringDesc* s;
Tident197021* next;
NI h;
};
struct  Tscope224835  {
NI depthlevel;
Tstrtable224813 symbols;
Tnodeseq224803* usingsyms;
Tscope224835* parent;
};
struct  Ropeobj175009  {
  TNimObject Sup;
Ropeobj175009* left;
Ropeobj175009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Tlib224827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj175009* name;
Tnode224809* path;
};
struct  Freecell30833  {
Freecell30833* next;
NI zerofield;
};
struct  Tinstantiation224831  {
Tsym224841* sym;
Ttypeseq224843* concretetypes;
TY224932* usedby;
NI compilesid;
};
struct TY278254 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY278214 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
struct TY278234 {
  TGenericSeq Sup;
  Tblock278030 data[SEQ_DECL_SIZE];
};
struct TY278273 {
  TGenericSeq Sup;
  TY278274 data[SEQ_DECL_SIZE];
};
struct TY190417 {
  TGenericSeq Sup;
  Tlineinfo189352 data[SEQ_DECL_SIZE];
};
struct Ttypeseq224843 {
  TGenericSeq Sup;
  Ttype224847* data[SEQ_DECL_SIZE];
};
struct Tnodeseq224803 {
  TGenericSeq Sup;
  Tnode224809* data[SEQ_DECL_SIZE];
};
struct TY224944 {
  TGenericSeq Sup;
  Tinstantiation224831* data[SEQ_DECL_SIZE];
};
struct Tsymseq224811 {
  TGenericSeq Sup;
  Tsym224841* data[SEQ_DECL_SIZE];
};
struct TY224932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, TMP2033)(void* p, NI op);
N_NIMCALL(void, TMP2036)(void* p, NI op);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP2037)(void* p, NI op);
N_NIMCALL(void, TMP2042)(void* p, NI op);
N_NIMCALL(void, TMP2051)(void* p, NI op);
N_NIMCALL(void, TMP2052)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell48947*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48947* c);
N_NOINLINE(void, addzct_52617)(Cellseq48963* s, Cell48947* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(Tnode224809*, newnode_225401)(NU8 kind);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(Tlineinfo189352, unknownlineinfo_190408)(void);
static N_INLINE(void, nimGCunref)(void* p);
static N_INLINE(void, decref_54604)(Cell48947* c);
static N_INLINE(NIM_BOOL, canbecycleroot_52667)(Cell48947* c);
static N_INLINE(void, rtladdcycleroot_53423)(Cell48947* c);
N_NOINLINE(void, incl_49665)(Cellset48959* s, Cell48947* 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)(Cell48947* c);
STRING_LITERAL(TMP2807, "", 0);
extern TNimType NTI276005; /* TPassContext */
TNimType NTI278048; /* TCtx */
extern TNimType NTI124; /* uint32 */
TNimType NTI278254; /* seq[TInstr] */
extern TNimType NTI190417; /* seq[TLineInfo] */
extern TNimType NTI224801; /* PNode */
extern TNimType NTI224843; /* TTypeSeq */
extern TNimType NTI108; /* int */
TNimType NTI278233; /* PProc:ObjectType */
TNimType NTI278030; /* TBlock */
extern TNimType NTI224807; /* PSym */
TNimType NTI278214; /* seq[TPosition] */
TNimType NTI278234; /* seq[TBlock] */
TNimType NTI278239; /* tuple[inUse: bool, kind: TSlotKind] */
extern TNimType NTI138; /* bool */
TNimType NTI278038; /* TSlotKind */
TNimType NTI278242; /* array[0..255, tuple[inUse: bool, kind: TSlotKind]] */
TNimType NTI278040; /* PProc */
TNimType NTI278032; /* TEvalMode */
TNimType NTI278034; /* TSandboxFlag */
TNimType NTI278036; /* TSandboxFlags */
extern TNimType NTI189352; /* TLineInfo */
TNimType NTI278274; /* tuple[key: string, value: VmCallback] */
extern TNimType NTI149; /* string */
TNimType NTI278044; /* (pointer, ref tuple[]) */
extern TNimType NTI153; /* pointer */
extern TNimType NTI575953; /* ref tuple[] */
TNimType NTI278273; /* seq[tuple[key: string, value: VmCallback]] */
TNimType NTI278046; /* PCtx */
extern Gcheap51018 gch_51059;
N_NIMCALL(void, TMP2033)(void* p, NI op) {
	TY278254* a;
	NI LOC1;
	a = (TY278254*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
N_NIMCALL(void, TMP2036)(void* p, NI op) {
	TY278214* a;
	NI LOC1;
	a = (TY278214*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
N_NIMCALL(void, TMP2037)(void* p, NI op) {
	TY278234* a;
	NI LOC1;
	a = (TY278234*)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, TMP2042)(void* p, NI op) {
	PprocHEX3Aobjecttype278233* a;
	NI LOC1;
	a = (PprocHEX3Aobjecttype278233*)p;
	nimGCvisit((void*)(*a).blocks, op);
	nimGCvisit((void*)(*a).sym, op);
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < 256; LOC1++) {
	}
}
N_NIMCALL(void, TMP2051)(void* p, NI op) {
	TY278273* a;
	NI LOC1;
	a = (TY278273*)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, TMP2052)(void* p, NI op) {
	Tctx278048* a;
	a = (Tctx278048*)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(Cell48947*, usrtocell_52646)(void* usr) {
	Cell48947* result;
	result = 0;
	result = ((Cell48947*) ((NI)((NU64)(((NI) (usr))) - (NU64)(((NI)sizeof(Cell48947))))));
	return result;
}

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

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

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

N_NIMCALL(Tctx278048*, newctx_278282)(Tsym224841* module) {
	Tctx278048* result;
	Tctx278048* LOC1;
	PprocHEX3Aobjecttype278233* LOC2;
	NimStringDesc* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = (Tctx278048*) newObj((&NTI278046), sizeof(Tctx278048));
	(*LOC1).Sup.Sup.m_type = (&NTI278048);
	if ((*LOC1).code) nimGCunrefNoCycle((*LOC1).code);
	(*LOC1).code = (TY278254*) newSeqRC1((&NTI278254), 0);
	if ((*LOC1).debug) nimGCunrefNoCycle((*LOC1).debug);
	(*LOC1).debug = (TY190417*) newSeqRC1((&NTI190417), 0);
	asgnRefNoCycle((void**) (&(*LOC1).globals), newnode_225401(((NU8) 126)));
	asgnRefNoCycle((void**) (&(*LOC1).constants), newnode_225401(((NU8) 115)));
	if ((*LOC1).types) nimGCunrefNoCycle((*LOC1).types);
	(*LOC1).types = (Ttypeseq224843*) newSeqRC1((&NTI224843), 0);
	LOC2 = 0;
	LOC2 = (PprocHEX3Aobjecttype278233*) newObj((&NTI278040), sizeof(PprocHEX3Aobjecttype278233));
	if ((*LOC2).blocks) nimGCunrefNoCycle((*LOC2).blocks);
	(*LOC2).blocks = (TY278234*) newSeqRC1((&NTI278234), 0);
	asgnRefNoCycle((void**) (&(*LOC1).prc), LOC2);
	asgnRefNoCycle((void**) (&(*LOC1).module), module);
	(*LOC1).loopiterations = ((NI) 1500000);
	(*LOC1).comesfromheuristic = unknownlineinfo_190408();
	if ((*LOC1).callbacks) nimGCunref((*LOC1).callbacks);
	(*LOC1).callbacks = (TY278273*) newSeqRC1((&NTI278273), 0);
	LOC3 = 0;
	LOC3 = (*LOC1).errorflag; (*LOC1).errorflag = copyStringRC1(((NimStringDesc*) &TMP2807));
	if (LOC3) nimGCunrefNoCycle(LOC3);
	result = LOC1;
	return result;
}

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

N_NIMCALL(void, registercallback_278401)(Tctx278048* c, NimStringDesc* name, Vmcallback278044 callback) {
	TY278274 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 = (TY278273*) incrSeqV2(&((*c).callbacks)->Sup, sizeof(TY278274));
	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_278374)(Tctx278048* c, Tsym224841* module) {
	PprocHEX3Aobjecttype278233* LOC1;
	asgnRefNoCycle((void**) (&(*c).module), module);
	LOC1 = 0;
	LOC1 = (PprocHEX3Aobjecttype278233*) newObj((&NTI278040), sizeof(PprocHEX3Aobjecttype278233));
	if ((*LOC1).blocks) nimGCunrefNoCycle((*LOC1).blocks);
	(*LOC1).blocks = (TY278234*) newSeqRC1((&NTI278234), 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* TMP2032[18];
static TNimNode* TMP2034[4];
static TNimNode* TMP2035[2];
static TNimNode* TMP2038[2];
static TNimNode* TMP2039[9];
NI TMP2041;
static char* NIM_CONST TMP2040[9] = {
"slotEmpty", 
"slotFixedVar", 
"slotFixedLet", 
"slotTempUnknown", 
"slotTempInt", 
"slotTempFloat", 
"slotTempStr", 
"slotTempComplex", 
"slotTempPerm"};
static TNimNode* TMP2043[5];
NI TMP2045;
static char* NIM_CONST TMP2044[5] = {
"emRepl", 
"emConst", 
"emOptimize", 
"emStaticExpr", 
"emStaticStmt"};
static TNimNode* TMP2046[3];
NI TMP2048;
static char* NIM_CONST TMP2047[3] = {
"allowCast", 
"allowFFI", 
"allowInfiniteLoops"};
static TNimNode* TMP2049[2];
static TNimNode* TMP2050[2];
static TNimNode TMP933[57];
NTI278048.size = sizeof(Tctx278048);
NTI278048.kind = 17;
NTI278048.base = (&NTI276005);
TMP2032[0] = &TMP933[1];
NTI278254.size = sizeof(TY278254*);
NTI278254.kind = 24;
NTI278254.base = (&NTI124);
NTI278254.flags = 2;
NTI278254.marker = TMP2033;
TMP933[1].kind = 1;
TMP933[1].offset = offsetof(Tctx278048, code);
TMP933[1].typ = (&NTI278254);
TMP933[1].name = "code";
TMP2032[1] = &TMP933[2];
TMP933[2].kind = 1;
TMP933[2].offset = offsetof(Tctx278048, debug);
TMP933[2].typ = (&NTI190417);
TMP933[2].name = "debug";
TMP2032[2] = &TMP933[3];
TMP933[3].kind = 1;
TMP933[3].offset = offsetof(Tctx278048, globals);
TMP933[3].typ = (&NTI224801);
TMP933[3].name = "globals";
TMP2032[3] = &TMP933[4];
TMP933[4].kind = 1;
TMP933[4].offset = offsetof(Tctx278048, constants);
TMP933[4].typ = (&NTI224801);
TMP933[4].name = "constants";
TMP2032[4] = &TMP933[5];
TMP933[5].kind = 1;
TMP933[5].offset = offsetof(Tctx278048, types);
TMP933[5].typ = (&NTI224843);
TMP933[5].name = "types";
TMP2032[5] = &TMP933[6];
TMP933[6].kind = 1;
TMP933[6].offset = offsetof(Tctx278048, currentexceptiona);
TMP933[6].typ = (&NTI224801);
TMP933[6].name = "currentExceptionA";
TMP2032[6] = &TMP933[7];
TMP933[7].kind = 1;
TMP933[7].offset = offsetof(Tctx278048, currentexceptionb);
TMP933[7].typ = (&NTI224801);
TMP933[7].name = "currentExceptionB";
TMP2032[7] = &TMP933[8];
TMP933[8].kind = 1;
TMP933[8].offset = offsetof(Tctx278048, exceptioninstr);
TMP933[8].typ = (&NTI108);
TMP933[8].name = "exceptionInstr";
TMP2032[8] = &TMP933[9];
NTI278233.size = sizeof(PprocHEX3Aobjecttype278233);
NTI278233.kind = 18;
NTI278233.base = 0;
NTI278233.flags = 2;
TMP2034[0] = &TMP933[11];
NTI278030.size = sizeof(Tblock278030);
NTI278030.kind = 18;
NTI278030.base = 0;
NTI278030.flags = 2;
TMP2035[0] = &TMP933[13];
TMP933[13].kind = 1;
TMP933[13].offset = offsetof(Tblock278030, label);
TMP933[13].typ = (&NTI224807);
TMP933[13].name = "label";
TMP2035[1] = &TMP933[14];
NTI278214.size = sizeof(TY278214*);
NTI278214.kind = 24;
NTI278214.base = (&NTI108);
NTI278214.flags = 2;
NTI278214.marker = TMP2036;
TMP933[14].kind = 1;
TMP933[14].offset = offsetof(Tblock278030, fixups);
TMP933[14].typ = (&NTI278214);
TMP933[14].name = "fixups";
TMP933[12].len = 2; TMP933[12].kind = 2; TMP933[12].sons = &TMP2035[0];
NTI278030.node = &TMP933[12];
NTI278234.size = sizeof(TY278234*);
NTI278234.kind = 24;
NTI278234.base = (&NTI278030);
NTI278234.flags = 2;
NTI278234.marker = TMP2037;
TMP933[11].kind = 1;
TMP933[11].offset = offsetof(PprocHEX3Aobjecttype278233, blocks);
TMP933[11].typ = (&NTI278234);
TMP933[11].name = "blocks";
TMP2034[1] = &TMP933[15];
TMP933[15].kind = 1;
TMP933[15].offset = offsetof(PprocHEX3Aobjecttype278233, sym);
TMP933[15].typ = (&NTI224807);
TMP933[15].name = "sym";
TMP2034[2] = &TMP933[16];
NTI278239.size = sizeof(TY278239);
NTI278239.kind = 18;
NTI278239.base = 0;
NTI278239.flags = 3;
TMP2038[0] = &TMP933[18];
TMP933[18].kind = 1;
TMP933[18].offset = offsetof(TY278239, Field0);
TMP933[18].typ = (&NTI138);
TMP933[18].name = "Field0";
TMP2038[1] = &TMP933[19];
NTI278038.size = sizeof(NU8);
NTI278038.kind = 14;
NTI278038.base = 0;
NTI278038.flags = 3;
for (TMP2041 = 0; TMP2041 < 9; TMP2041++) {
TMP933[TMP2041+20].kind = 1;
TMP933[TMP2041+20].offset = TMP2041;
TMP933[TMP2041+20].name = TMP2040[TMP2041];
TMP2039[TMP2041] = &TMP933[TMP2041+20];
}
TMP933[29].len = 9; TMP933[29].kind = 2; TMP933[29].sons = &TMP2039[0];
NTI278038.node = &TMP933[29];
TMP933[19].kind = 1;
TMP933[19].offset = offsetof(TY278239, Field1);
TMP933[19].typ = (&NTI278038);
TMP933[19].name = "Field1";
TMP933[17].len = 2; TMP933[17].kind = 2; TMP933[17].sons = &TMP2038[0];
NTI278239.node = &TMP933[17];
NTI278242.size = sizeof(TY278242);
NTI278242.kind = 16;
NTI278242.base = (&NTI278239);
NTI278242.flags = 3;
TMP933[16].kind = 1;
TMP933[16].offset = offsetof(PprocHEX3Aobjecttype278233, slots);
TMP933[16].typ = (&NTI278242);
TMP933[16].name = "slots";
TMP2034[3] = &TMP933[30];
TMP933[30].kind = 1;
TMP933[30].offset = offsetof(PprocHEX3Aobjecttype278233, maxslots);
TMP933[30].typ = (&NTI108);
TMP933[30].name = "maxSlots";
TMP933[10].len = 4; TMP933[10].kind = 2; TMP933[10].sons = &TMP2034[0];
NTI278233.node = &TMP933[10];
NTI278040.size = sizeof(PprocHEX3Aobjecttype278233*);
NTI278040.kind = 22;
NTI278040.base = (&NTI278233);
NTI278040.flags = 2;
NTI278040.marker = TMP2042;
TMP933[9].kind = 1;
TMP933[9].offset = offsetof(Tctx278048, prc);
TMP933[9].typ = (&NTI278040);
TMP933[9].name = "prc";
TMP2032[9] = &TMP933[31];
TMP933[31].kind = 1;
TMP933[31].offset = offsetof(Tctx278048, module);
TMP933[31].typ = (&NTI224807);
TMP933[31].name = "module";
TMP2032[10] = &TMP933[32];
TMP933[32].kind = 1;
TMP933[32].offset = offsetof(Tctx278048, callsite);
TMP933[32].typ = (&NTI224801);
TMP933[32].name = "callsite";
TMP2032[11] = &TMP933[33];
NTI278032.size = sizeof(NU8);
NTI278032.kind = 14;
NTI278032.base = 0;
NTI278032.flags = 3;
for (TMP2045 = 0; TMP2045 < 5; TMP2045++) {
TMP933[TMP2045+34].kind = 1;
TMP933[TMP2045+34].offset = TMP2045;
TMP933[TMP2045+34].name = TMP2044[TMP2045];
TMP2043[TMP2045] = &TMP933[TMP2045+34];
}
TMP933[39].len = 5; TMP933[39].kind = 2; TMP933[39].sons = &TMP2043[0];
NTI278032.node = &TMP933[39];
TMP933[33].kind = 1;
TMP933[33].offset = offsetof(Tctx278048, mode);
TMP933[33].typ = (&NTI278032);
TMP933[33].name = "mode";
TMP2032[12] = &TMP933[40];
NTI278034.size = sizeof(NU8);
NTI278034.kind = 14;
NTI278034.base = 0;
NTI278034.flags = 3;
for (TMP2048 = 0; TMP2048 < 3; TMP2048++) {
TMP933[TMP2048+41].kind = 1;
TMP933[TMP2048+41].offset = TMP2048;
TMP933[TMP2048+41].name = TMP2047[TMP2048];
TMP2046[TMP2048] = &TMP933[TMP2048+41];
}
TMP933[44].len = 3; TMP933[44].kind = 2; TMP933[44].sons = &TMP2046[0];
NTI278034.node = &TMP933[44];
NTI278036.size = sizeof(NU8);
NTI278036.kind = 19;
NTI278036.base = (&NTI278034);
NTI278036.flags = 3;
TMP933[45].len = 0; TMP933[45].kind = 0;
NTI278036.node = &TMP933[45];
TMP933[40].kind = 1;
TMP933[40].offset = offsetof(Tctx278048, features);
TMP933[40].typ = (&NTI278036);
TMP933[40].name = "features";
TMP2032[13] = &TMP933[46];
TMP933[46].kind = 1;
TMP933[46].offset = offsetof(Tctx278048, traceactive);
TMP933[46].typ = (&NTI138);
TMP933[46].name = "traceActive";
TMP2032[14] = &TMP933[47];
TMP933[47].kind = 1;
TMP933[47].offset = offsetof(Tctx278048, loopiterations);
TMP933[47].typ = (&NTI108);
TMP933[47].name = "loopIterations";
TMP2032[15] = &TMP933[48];
TMP933[48].kind = 1;
TMP933[48].offset = offsetof(Tctx278048, comesfromheuristic);
TMP933[48].typ = (&NTI189352);
TMP933[48].name = "comesFromHeuristic";
TMP2032[16] = &TMP933[49];
NTI278274.size = sizeof(TY278274);
NTI278274.kind = 18;
NTI278274.base = 0;
TMP2049[0] = &TMP933[51];
TMP933[51].kind = 1;
TMP933[51].offset = offsetof(TY278274, Field0);
TMP933[51].typ = (&NTI149);
TMP933[51].name = "Field0";
TMP2049[1] = &TMP933[52];
NTI278044.size = sizeof(TY575951);
NTI278044.kind = 18;
NTI278044.base = 0;
NTI278044.flags = 2;
TMP2050[0] = &TMP933[54];
TMP933[54].kind = 1;
TMP933[54].offset = offsetof(TY575951, Field0);
TMP933[54].typ = (&NTI153);
TMP933[54].name = "Field0";
TMP2050[1] = &TMP933[55];
TMP933[55].kind = 1;
TMP933[55].offset = offsetof(TY575951, Field1);
TMP933[55].typ = (&NTI575953);
TMP933[55].name = "Field1";
TMP933[53].len = 2; TMP933[53].kind = 2; TMP933[53].sons = &TMP2050[0];
NTI278044.node = &TMP933[53];
TMP933[52].kind = 1;
TMP933[52].offset = offsetof(TY278274, Field1);
TMP933[52].typ = (&NTI278044);
TMP933[52].name = "Field1";
TMP933[50].len = 2; TMP933[50].kind = 2; TMP933[50].sons = &TMP2049[0];
NTI278274.node = &TMP933[50];
NTI278273.size = sizeof(TY278273*);
NTI278273.kind = 24;
NTI278273.base = (&NTI278274);
NTI278273.marker = TMP2051;
TMP933[49].kind = 1;
TMP933[49].offset = offsetof(Tctx278048, callbacks);
TMP933[49].typ = (&NTI278273);
TMP933[49].name = "callbacks";
TMP2032[17] = &TMP933[56];
TMP933[56].kind = 1;
TMP933[56].offset = offsetof(Tctx278048, errorflag);
TMP933[56].typ = (&NTI149);
TMP933[56].name = "errorFlag";
TMP933[0].len = 18; TMP933[0].kind = 2; TMP933[0].sons = &TMP2032[0];
NTI278048.node = &TMP933[0];
NTI278046.size = sizeof(Tctx278048*);
NTI278046.kind = 22;
NTI278046.base = (&NTI278048);
NTI278046.marker = TMP2052;
}

