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

#include "nimbase.h"
#include <string.h>
typedef struct TY399242 TY399242;
typedef struct TY399243 TY399243;
typedef struct Tsymseq224811 Tsymseq224811;
typedef struct Tsym224841 Tsym224841;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
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 Memregion30890 Memregion30890;
typedef struct Smallchunk30842 Smallchunk30842;
typedef struct Llchunk30884 Llchunk30884;
typedef struct Bigchunk30844 Bigchunk30844;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30888 Avlnode30888;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Tidobj197015 Tidobj197015;
typedef struct TNimObject TNimObject;
typedef struct Ttypeseq224843 Ttypeseq224843;
typedef struct Tscope224835 Tscope224835;
typedef struct TY224944 TY224944;
typedef struct Tstrtable224813 Tstrtable224813;
typedef struct Ttype224847 Ttype224847;
typedef struct Tident197021 Tident197021;
typedef struct Tlineinfo189352 Tlineinfo189352;
typedef struct Tnode224809 Tnode224809;
typedef struct Tloc224823 Tloc224823;
typedef struct Ropeobj175009 Ropeobj175009;
typedef struct Tlib224827 Tlib224827;
typedef struct NimStringDesc NimStringDesc;
typedef struct Tnodeseq224803 Tnodeseq224803;
typedef struct Intset221056 Intset221056;
typedef struct Trunk221052 Trunk221052;
typedef struct Trunkseq221054 Trunkseq221054;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct Tinstantiation224831 Tinstantiation224831;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct TY224932 TY224932;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct TY399243 {
Tsymseq224811* Field0;
Tsym224841* Field1;
};
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  Cell48947  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48963  {
NI len;
NI cap;
Cell48947** d;
};
struct  Cellset48959  {
NI counter;
NI max;
Pagedesc48955* head;
Pagedesc48955** data;
};
typedef Smallchunk30842* TY30905[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30890  {
NI minlargeobj;
NI maxlargeobj;
TY30905 freesmallchunks;
Llchunk30884* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30844* freechunkslist;
Intset30817 chunkstarts;
Avlnode30888* root;
Avlnode30888* deleted;
Avlnode30888* last;
Avlnode30888* 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;
Memregion30890 region;
Gcstat51014 stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj197015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable224813  {
NI counter;
Tsymseq224811* data;
};
struct  Tlineinfo189352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
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  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tident197021  {
  Tidobj197015 Sup;
NimStringDesc* s;
Tident197021* next;
NI h;
};
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  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;
};
typedef NimStringDesc* TY192306[2];
typedef Tsym224841* TY279434[1];
struct  Intset221056  {
NI counter;
NI max;
Trunk221052* head;
Trunkseq221054* data;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30821[16];
struct  Pagedesc48955  {
Pagedesc48955* next;
NI key;
TY30821 bits;
};
struct  Basechunk30840  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30842  {
  Basechunk30840 Sup;
Smallchunk30842* next;
Smallchunk30842* prev;
Freecell30832* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30884  {
NI size;
NI acc;
Llchunk30884* next;
};
struct  Bigchunk30844  {
  Basechunk30840 Sup;
Bigchunk30844* next;
Bigchunk30844* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30821 bits;
};
typedef Avlnode30888* TY30895[2];
struct  Avlnode30888  {
TY30895 link;
NI key;
NI upperbound;
NI level;
};
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  Trunk221052  {
Trunk221052* next;
NI key;
TY30821 bits;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct  Tinstantiation224831  {
Tsym224841* sym;
Ttypeseq224843* concretetypes;
TY224932* usedby;
NI compilesid;
};
struct Tsymseq224811 {
  TGenericSeq Sup;
  Tsym224841* data[SEQ_DECL_SIZE];
};
struct TY399242 {
  TGenericSeq Sup;
  TY399243 data[SEQ_DECL_SIZE];
};
struct Ttypeseq224843 {
  TGenericSeq Sup;
  Ttype224847* data[SEQ_DECL_SIZE];
};
struct TY224944 {
  TGenericSeq Sup;
  Tinstantiation224831* data[SEQ_DECL_SIZE];
};
struct Tnodeseq224803 {
  TGenericSeq Sup;
  Tnode224809* data[SEQ_DECL_SIZE];
};
struct Trunkseq221054 {
  TGenericSeq Sup;
  Trunk221052* data[SEQ_DECL_SIZE];
};
struct TY224932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP1008)(void* p, NI op);
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(NU8, samemethodbucket_399275)(Tsym224841* a, Tsym224841* b);
N_NIMCALL(NI, sonslen_227351)(Ttype224847* n);
N_NIMCALL(NIM_BOOL, sametypeornil_259108)(Ttype224847* a, Ttype224847* b, NU8 flags);
N_NIMCALL(Ttype224847*, skiptypes_228167)(Ttype224847* t, NU64 kinds);
N_NIMCALL(Ttype224847*, lastson_227426)(Ttype224847* n);
N_NIMCALL(NIM_BOOL, sametype_259092)(Ttype224847* a, Ttype224847* b, NU8 flags);
N_NIMCALL(NI, inheritancediff_261091)(Ttype224847* a, Ttype224847* b);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(void, attachdispatcher_399406)(Tsym224841* s, Tnode224809* dispatcher);
static N_INLINE(NI, len_225098)(Tnode224809* n);
N_NIMCALL(void, add_225165)(Tnode224809* father, Tnode224809* son);
N_NIMCALL(Tnode224809*, lastson_227406)(Tnode224809* n);
N_NIMCALL(void, fixupdispatcher_399522)(Tsym224841* meth, Tsym224841* disp);
N_NIMCALL(NI, sonslen_227387)(Tnode224809* n);
N_NIMCALL(Tnode224809*, copytree_229028)(Tnode224809* src);
N_NIMCALL(void, message_195161)(Tlineinfo189352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(NimStringDesc*, HEX24_227096)(NI16 x);
N_NIMCALL(void, checkmethodeffects_369399)(Tsym224841* disp, Tsym224841* branch);
N_NIMCALL(void, localerror_195139)(Tlineinfo189352 info, NimStringDesc* arg);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(Tsym224841*, createdispatcher_399447)(Tsym224841* s);
N_NIMCALL(Tsym224841*, copysym_227607)(Tsym224841* s, NIM_BOOL keepid);
N_NIMCALL(Ttype224847*, copytype_227542)(Ttype224847* t, Tsym224841* owner, NIM_BOOL keepid);
N_NIMCALL(void, addson_226819)(Tnode224809* father, Tnode224809* son);
N_NIMCALL(Tnode224809*, newsymnode_226325)(Tsym224841* sym);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_85804, TNimType* mt);
N_NIMCALL(void, internalerror_195172)(Tlineinfo189352 info, NimStringDesc* errmsg);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, HEX24_190879)(Tlineinfo189352 info);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(Tnode224809*, genconv_399017)(Tnode224809* n, Ttype224847* d, NIM_BOOL downcast);
N_NIMCALL(Tnode224809*, newnodeit_226807)(NU8 kind, Tlineinfo189352 info, Ttype224847* typ);
N_NIMCALL(Tnode224809*, newnode_225401)(NU8 kind);
N_NIMCALL(void, initintset_221927)(Intset221056* Result);
N_NOINLINE(void, chckNil)(void* p);
N_NIMCALL(NIM_BOOL, relevantcol_399911)(Tsymseq224811* methods, NI col);
N_NIMCALL(void, incl_221856)(Intset221056* s, NI key);
N_NIMCALL(void, sortbucket_400017)(Tsymseq224811** a, Intset221056 relevantcols);
N_NIMCALL(NI, cmpsignatures_399965)(Tsym224841* a, Tsym224841* b, Intset221056 relevantcols);
N_NIMCALL(NIM_BOOL, contains_221829)(Intset221056 s, NI key);
N_NIMCALL(Tsym224841*, gendispatcher_400091)(Tsymseq224811* methods, Intset221056 relevantcols);
N_NIMCALL(Tnode224809*, newnodei_226351)(NU8 kind, Tlineinfo189352 info);
N_NIMCALL(Tsym224841*, getsyssym_273077)(NimStringDesc* name);
N_NIMCALL(Ttype224847*, getsystype_273190)(NU8 kind);
STRING_LITERAL(TMP3410, "method has lock level $1, but another method has $2", 51);
STRING_LITERAL(TMP3418, "method is not a base", 20);
STRING_LITERAL(TMP3419, "no method dispatcher found", 26);
STRING_LITERAL(TMP3420, "invalid declaration order; cannot attach \'", 42);
STRING_LITERAL(TMP3421, "\' to method defined here: ", 26);
STRING_LITERAL(TMP3422, "", 0);
STRING_LITERAL(TMP3423, "cgmeth.genConv", 14);
STRING_LITERAL(TMP3424, "cgmeth.genConv: no upcast allowed", 33);
STRING_LITERAL(TMP3425, "cgmeth.genConv: no downcast allowed", 35);
STRING_LITERAL(TMP4464, "and", 3);
STRING_LITERAL(TMP4465, "of", 2);
TY399242* gmethods_399262;
TNimType NTI399243; /* tuple[methods: TSymSeq, dispatcher: PSym] */
extern TNimType NTI224811; /* TSymSeq */
extern TNimType NTI224807; /* PSym */
TNimType NTI399242; /* seq[tuple[methods: TSymSeq, dispatcher: PSym]] */
extern Gcheap51018 gch_51059;
extern Tnode224809* emptynode_225807;
N_NIMCALL(void, TMP1008)(void* p, NI op) {
	TY399242* a;
	NI LOC1;
	a = (TY399242*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1].Field0, op);
	nimGCvisit((void*)a->data[LOC1].Field1, op);
	}
}

static N_INLINE(Cell48947*, usrtocell_52646)(void* usr) {
	Cell48947* result;
	result = 0;
	result = ((Cell48947*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((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 (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_54204(c);
	}
	LA3: ;
}

N_NIMCALL(NU8, samemethodbucket_399275)(Tsym224841* a, Tsym224841* b) {
	NU8 result;
{	result = 0;
	{
		if (!!(((*(*a).name).Sup.id == (*(*b).name).Sup.id))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	{
		NI LOC7;
		NI LOC8;
		LOC7 = 0;
		LOC7 = sonslen_227351((*a).typ);
		LOC8 = 0;
		LOC8 = sonslen_227351((*b).typ);
		if (!!((LOC7 == LOC8))) goto LA9;
		goto BeforeRet;
	}
	LA9: ;
	{
		NIM_BOOL LOC13;
		LOC13 = 0;
		LOC13 = sametypeornil_259108((*(*a).typ).sons->data[((NI) 0)], (*(*b).typ).sons->data[((NI) 0)], 0);
		if (!!(LOC13)) goto LA14;
		goto BeforeRet;
	}
	LA14: ;
	{
		NI i_399299;
		NI HEX3Atmp_399378;
		NI LOC17;
		NI res_399381;
		i_399299 = 0;
		HEX3Atmp_399378 = 0;
		LOC17 = 0;
		LOC17 = sonslen_227351((*a).typ);
		HEX3Atmp_399378 = (NI)(LOC17 - ((NI) 1));
		res_399381 = ((NI) 1);
		{
			while (1) {
				Ttype224847* aa;
				Ttype224847* bb;
				if (!(res_399381 <= HEX3Atmp_399378)) goto LA19;
				i_399299 = res_399381;
				aa = (*(*a).typ).sons->data[i_399299];
				bb = (*(*b).typ).sons->data[i_399299];
				{
					while (1) {
						aa = skiptypes_228167(aa, 2048);
						bb = skiptypes_228167(bb, 2048);
						{
							NIM_BOOL LOC24;
							LOC24 = 0;
							LOC24 = ((*aa).kind == (*bb).kind);
							if (!(LOC24)) goto LA25;
							LOC24 = ((*aa).kind == ((NU8) 23) || (*aa).kind == ((NU8) 21) || (*aa).kind == ((NU8) 22));
							LA25: ;
							if (!LOC24) goto LA26;
							aa = lastson_227426(aa);
							bb = lastson_227426(bb);
						}
						goto LA22;
						LA26: ;
						{
							goto LA20;
						}
						LA22: ;
					}
				} LA20: ;
				{
					NIM_BOOL LOC31;
					LOC31 = 0;
					LOC31 = sametype_259092(aa, bb, 0);
					if (!LOC31) goto LA32;
					{
						NIM_BOOL LOC36;
						LOC36 = 0;
						LOC36 = ((*aa).kind == ((NU8) 17));
						if (!(LOC36)) goto LA37;
						LOC36 = !((result == ((NU8) 1)));
						LA37: ;
						if (!LOC36) goto LA38;
						result = ((NU8) 2);
					}
					LA38: ;
				}
				goto LA29;
				LA32: ;
				{
					NIM_BOOL LOC41;
					NI diff;
					LOC41 = 0;
					LOC41 = ((*aa).kind == ((NU8) 17));
					if (!(LOC41)) goto LA42;
					LOC41 = ((*bb).kind == ((NU8) 17));
					LA42: ;
					if (!LOC41) goto LA43;
					diff = inheritancediff_261091(bb, aa);
					{
						if (!(diff < ((NI) 0))) goto LA47;
						{
							if (!!((result == ((NU8) 1)))) goto LA51;
							result = ((NU8) 2);
						}
						LA51: ;
					}
					goto LA45;
					LA47: ;
					{
						if (!!((diff == ((NI) 2147483647)))) goto LA54;
						result = ((NU8) 1);
					}
					goto LA45;
					LA54: ;
					LA45: ;
				}
				goto LA29;
				LA43: ;
				{
					result = ((NU8) 0);
					goto BeforeRet;
				}
				LA29: ;
				res_399381 += ((NI) 1);
			} LA19: ;
		}
	}
	}BeforeRet: ;
	return result;
}

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 (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA11;
			rtladdzct_54204(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

static N_INLINE(NI, len_225098)(Tnode224809* n) {
	NI result;
	result = 0;
	{
		if (!(*n).kindU.S6.sons == 0) goto LA3;
		result = ((NI) 0);
	}
	goto LA1;
	LA3: ;
	{
		result = ((*n).kindU.S6.sons ? (*n).kindU.S6.sons->Sup.len : 0);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, attachdispatcher_399406)(Tsym224841* s, Tnode224809* dispatcher) {
	NI L;
	NI LOC1;
	Tnode224809* x;
	LOC1 = 0;
	LOC1 = len_225098((*s).ast);
	L = (NI)(LOC1 - ((NI) 1));
	x = (*(*s).ast).kindU.S6.sons->data[L];
	{
		NIM_BOOL LOC4;
		LOC4 = 0;
		LOC4 = ((*x).kind == ((NU8) 3));
		if (!(LOC4)) goto LA5;
		LOC4 = (((*(*x).kindU.S4.sym).flags &(1<<((((NU8) 25))&31)))!=0);
		LA5: ;
		if (!LOC4) goto LA6;
		asgnRefNoCycle((void**) (&(*(*s).ast).kindU.S6.sons->data[L]), dispatcher);
	}
	goto LA2;
	LA6: ;
	{
		add_225165((*s).ast, dispatcher);
	}
	LA2: ;
}

N_NIMCALL(void, fixupdispatcher_399522)(Tsym224841* meth, Tsym224841* disp) {
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		NI LOC5;
		NI LOC7;
		LOC3 = 0;
		LOC4 = 0;
		LOC5 = 0;
		LOC5 = sonslen_227387((*disp).ast);
		LOC4 = (((NI) 7) < LOC5);
		if (!(LOC4)) goto LA6;
		LOC7 = 0;
		LOC7 = sonslen_227387((*meth).ast);
		LOC4 = (((NI) 7) < LOC7);
		LA6: ;
		LOC3 = LOC4;
		if (!(LOC3)) goto LA8;
		LOC3 = ((*(*disp).ast).kindU.S6.sons->data[((NI) 7)] == emptynode_225807);
		LA8: ;
		if (!LOC3) goto LA9;
		asgnRefNoCycle((void**) (&(*(*disp).ast).kindU.S6.sons->data[((NI) 7)]), copytree_229028((*(*meth).ast).kindU.S6.sons->data[((NI) 7)]));
	}
	LA9: ;
	{
		if (!((*(*disp).typ).locklevel == ((NI16) -1))) goto LA13;
		(*(*disp).typ).locklevel = (*(*meth).typ).locklevel;
	}
	goto LA11;
	LA13: ;
	{
		NIM_BOOL LOC16;
		TY192306 LOC20;
		NimStringDesc* LOC21;
		LOC16 = 0;
		LOC16 = !(((*(*meth).typ).locklevel == ((NI16) -1)));
		if (!(LOC16)) goto LA17;
		LOC16 = !(((*(*meth).typ).locklevel == (*(*disp).typ).locklevel));
		LA17: ;
		if (!LOC16) goto LA18;
		memset((void*)LOC20, 0, sizeof(LOC20));
		LOC20[0] = HEX24_227096((*(*meth).typ).locklevel);
		LOC20[1] = HEX24_227096((*(*disp).typ).locklevel);
		LOC21 = 0;
		LOC21 = nsuFormatOpenArray(((NimStringDesc*) &TMP3410), LOC20, 2);
		message_195161((*meth).info, ((NU16) 265), LOC21);
		{
			if (!((*(*disp).typ).locklevel < (*(*meth).typ).locklevel)) goto LA24;
			(*(*disp).typ).locklevel = (*(*meth).typ).locklevel;
		}
		LA24: ;
	}
	goto LA11;
	LA18: ;
	LA11: ;
}

N_NIMCALL(Tsym224841*, createdispatcher_399447)(Tsym224841* s) {
	Tsym224841* result;
	Tsym224841* disp;
	Tnode224809* LOC15;
	Tnode224809* LOC16;
{	result = 0;
	disp = copysym_227607(s, NIM_FALSE);
	(*disp).flags |= ((NU32)1)<<((((NU8) 25))%(sizeof(NU32)*8));
	(*disp).flags &= ~(((NU32)1) << ((((NU8) 1)) % (sizeof(NU32)*8)));
	asgnRefNoCycle((void**) (&(*disp).typ), copytype_227542((*disp).typ, (*(*disp).typ).owner, NIM_FALSE));
	{
		if (!((*(*disp).typ).callconv == ((NU8) 5))) goto LA3;
		(*(*disp).typ).callconv = ((NU8) 0);
	}
	LA3: ;
	asgnRefNoCycle((void**) (&(*disp).ast), copytree_229028((*s).ast));
	asgnRefNoCycle((void**) (&(*(*disp).ast).kindU.S6.sons->data[((NI) 6)]), emptynode_225807);
	asgnRefNoCycle((void**) (&(*disp).loc.r), NIM_NIL);
	{
		if (!!(((*(*s).typ).sons->data[((NI) 0)] == NIM_NIL))) goto LA7;
		{
			NI LOC11;
			LOC11 = 0;
			LOC11 = sonslen_227387((*disp).ast);
			if (!(((NI) 7) < LOC11)) goto LA12;
			asgnRefNoCycle((void**) (&(*(*(*disp).ast).kindU.S6.sons->data[((NI) 7)]).kindU.S4.sym), copysym_227607((*(*(*s).ast).kindU.S6.sons->data[((NI) 7)]).kindU.S4.sym, NIM_FALSE));
		}
		goto LA9;
		LA12: ;
		{
			addson_226819((*disp).ast, emptynode_225807);
		}
		LA9: ;
	}
	LA7: ;
	LOC15 = 0;
	LOC15 = newsymnode_226325(disp);
	attachdispatcher_399406(s, LOC15);
	LOC16 = 0;
	LOC16 = newsymnode_226325(disp);
	attachdispatcher_399406(disp, LOC16);
	result = disp;
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	memcpy(((NCSTRING) ((&(*dest).data[((*dest).Sup.len)- 0]))), ((NCSTRING) ((*src).data)), (NI)((*src).Sup.len + ((NI) 1)));
	(*dest).Sup.len += (*src).Sup.len;
}

N_NIMCALL(void, methoddef_399634)(Tsym224841* s, NIM_BOOL fromcache) {
	NI L;
	Tsym224841* witness;
	TY399243 LOC19;
	TY279434 LOC20;
{	L = (gmethods_399262 ? gmethods_399262->Sup.len : 0);
	witness = 0;
	{
		NI i_399660;
		NI HEX3Atmp_399889;
		NI res_399892;
		i_399660 = 0;
		HEX3Atmp_399889 = 0;
		HEX3Atmp_399889 = (NI)(L - ((NI) 1));
		res_399892 = ((NI) 0);
		{
			while (1) {
				Tsym224841* disp;
				NU8 LOC4;
				if (!(res_399892 <= HEX3Atmp_399889)) goto LA3;
				i_399660 = res_399892;
				disp = gmethods_399262->data[i_399660].Field1;
				LOC4 = 0;
				LOC4 = samemethodbucket_399275(disp, s);
				switch (LOC4) {
				case ((NU8) 2):
				{
					Tnode224809* LOC6;
					gmethods_399262->data[i_399660].Field0 = (Tsymseq224811*) incrSeqV2(&(gmethods_399262->data[i_399660].Field0)->Sup, sizeof(Tsym224841*));
					asgnRefNoCycle((void**) (&gmethods_399262->data[i_399660].Field0->data[gmethods_399262->data[i_399660].Field0->Sup.len]), s);
					++gmethods_399262->data[i_399660].Field0->Sup.len;
					LOC6 = 0;
					LOC6 = lastson_227406((*disp).ast);
					attachdispatcher_399406(s, LOC6);
					fixupdispatcher_399522(s, disp);
					checkmethodeffects_369399(disp, s);
					{
						NIM_BOOL LOC9;
						LOC9 = 0;
						LOC9 = (((*s).flags &(1<<((((NU8) 18))&31)))!=0);
						if (!(LOC9)) goto LA10;
						LOC9 = !((gmethods_399262->data[i_399660].Field0->data[((NI) 0)] == s));
						LA10: ;
						if (!LOC9) goto LA11;
						localerror_195139((*s).info, ((NimStringDesc*) &TMP3418));
					}
					LA11: ;
					goto BeforeRet;
				}
				break;
				case ((NU8) 0):
				{
				}
				break;
				case ((NU8) 1):
				{
					{
						if (!witness == 0) goto LA17;
						witness = gmethods_399262->data[i_399660].Field0->data[((NI) 0)];
					}
					LA17: ;
				}
				break;
				}
				res_399892 += ((NI) 1);
			} LA3: ;
		}
	}
	memset((void*)(&LOC19), 0, sizeof(LOC19));
	LOC19.Field0 = (Tsymseq224811*) newSeq((&NTI224811), 1);
	memset((void*)LOC20, 0, sizeof(LOC20));
	LOC20[0] = s;
	asgnRefNoCycle((void**) (&LOC19.Field0->data[0]), LOC20[0]);
	LOC19.Field1 = createdispatcher_399447(s);
	gmethods_399262 = (TY399242*) incrSeqV2(&(gmethods_399262)->Sup, sizeof(TY399243));
	genericSeqAssign((&gmethods_399262->data[gmethods_399262->Sup.len].Field0), LOC19.Field0, (&NTI224811));
	asgnRefNoCycle((void**) (&gmethods_399262->data[gmethods_399262->Sup.len].Field1), LOC19.Field1);
	++gmethods_399262->Sup.len;
	{
		if (!fromcache) goto LA23;
		internalerror_195172((*s).info, ((NimStringDesc*) &TMP3419));
	}
	LA23: ;
	{
		NimStringDesc* LOC29;
		NimStringDesc* LOC30;
		if (!!((witness == NIM_NIL))) goto LA27;
		LOC29 = 0;
		LOC30 = 0;
		LOC30 = HEX24_190879((*witness).info);
		LOC29 = rawNewString((*(*s).name).s->Sup.len + LOC30->Sup.len + 68);
appendString(LOC29, ((NimStringDesc*) &TMP3420));
appendString(LOC29, (*(*s).name).s);
appendString(LOC29, ((NimStringDesc*) &TMP3421));
appendString(LOC29, LOC30);
		localerror_195139((*s).info, LOC29);
	}
	goto LA25;
	LA27: ;
	{
		if (!!((((*s).flags &(1<<((((NU8) 18))&31)))!=0))) goto LA32;
		message_195161((*s).info, ((NU16) 252), ((NimStringDesc*) &TMP3422));
	}
	goto LA25;
	LA32: ;
	LA25: ;
	}BeforeRet: ;
}

N_NIMCALL(Tnode224809*, genconv_399017)(Tnode224809* n, Ttype224847* d, NIM_BOOL downcast) {
	Tnode224809* result;
	Ttype224847* dest;
	Ttype224847* source;
	result = 0;
	dest = skiptypes_228167(d, IL64(211106247256320));
	source = skiptypes_228167((*n).typ, IL64(211106247256320));
	{
		NIM_BOOL LOC3;
		NI diff;
		LOC3 = 0;
		LOC3 = ((*source).kind == ((NU8) 17));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*dest).kind == ((NU8) 17));
		LA4: ;
		if (!LOC3) goto LA5;
		diff = inheritancediff_261091(dest, source);
		{
			if (!(diff == ((NI) 2147483647))) goto LA9;
			internalerror_195172((*n).info, ((NimStringDesc*) &TMP3423));
		}
		LA9: ;
		{
			if (!(diff < ((NI) 0))) goto LA13;
			result = newnodeit_226807(((NU8) 67), (*n).info, d);
			addson_226819(result, n);
			{
				if (!downcast) goto LA17;
				internalerror_195172((*n).info, ((NimStringDesc*) &TMP3424));
			}
			LA17: ;
		}
		goto LA11;
		LA13: ;
		{
			if (!(((NI) 0) < diff)) goto LA20;
			result = newnodeit_226807(((NU8) 66), (*n).info, d);
			addson_226819(result, n);
			{
				if (!!(downcast)) goto LA24;
				internalerror_195172((*n).info, ((NimStringDesc*) &TMP3425));
			}
			LA24: ;
		}
		goto LA11;
		LA20: ;
		{
			result = n;
		}
		LA11: ;
	}
	goto LA1;
	LA5: ;
	{
		result = n;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode224809*, methodcall_399054)(Tnode224809* n) {
	Tnode224809* result;
	Tsym224841* disp;
	Tnode224809* LOC1;
	result = 0;
	result = n;
	LOC1 = 0;
	LOC1 = lastson_227406((*(*(*result).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).ast);
	disp = (*LOC1).kindU.S4.sym;
	asgnRefNoCycle((void**) (&(*(*result).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym), disp);
	{
		NI i_399215;
		NI HEX3Atmp_399220;
		NI LOC3;
		NI res_399223;
		i_399215 = 0;
		HEX3Atmp_399220 = 0;
		LOC3 = 0;
		LOC3 = sonslen_227387(result);
		HEX3Atmp_399220 = (NI)(LOC3 - ((NI) 1));
		res_399223 = ((NI) 1);
		{
			while (1) {
				if (!(res_399223 <= HEX3Atmp_399220)) goto LA5;
				i_399215 = res_399223;
				asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_399215]), genconv_399017((*result).kindU.S6.sons->data[i_399215], (*(*disp).typ).sons->data[i_399215], NIM_TRUE));
				res_399223 += ((NI) 1);
			} LA5: ;
		}
	}
	return result;
}

N_NIMCALL(NIM_BOOL, relevantcol_399911)(Tsymseq224811* methods, NI col) {
	NIM_BOOL result;
	Ttype224847* t;
{	result = 0;
	t = skiptypes_228167((*(*methods->data[((NI) 0)]).typ).sons->data[col], IL64(211106247215360));
	{
		if (!((*t).kind == ((NU8) 17))) goto LA3;
		{
			NI i_399939;
			NI HEX3Atmp_399943;
			NI res_399946;
			i_399939 = 0;
			HEX3Atmp_399943 = 0;
			HEX3Atmp_399943 = (methods ? (methods->Sup.len-1) : -1);
			res_399946 = ((NI) 1);
			{
				while (1) {
					Ttype224847* t2;
					if (!(res_399946 <= HEX3Atmp_399943)) goto LA7;
					i_399939 = res_399946;
					t2 = skiptypes_228167((*(*methods->data[i_399939]).typ).sons->data[col], IL64(211106247215360));
					{
						NIM_BOOL LOC10;
						LOC10 = 0;
						LOC10 = sametype_259092(t2, t, 0);
						if (!!(LOC10)) goto LA11;
						result = NIM_TRUE;
						goto BeforeRet;
					}
					LA11: ;
					res_399946 += ((NI) 1);
				} LA7: ;
			}
		}
	}
	LA3: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NI, cmpsignatures_399965)(Tsym224841* a, Tsym224841* b, Intset221056 relevantcols) {
	NI result;
{	result = 0;
	{
		NI col_399984;
		NI HEX3Atmp_399995;
		NI LOC2;
		NI res_399998;
		col_399984 = 0;
		HEX3Atmp_399995 = 0;
		LOC2 = 0;
		LOC2 = sonslen_227351((*a).typ);
		HEX3Atmp_399995 = (NI)(LOC2 - ((NI) 1));
		res_399998 = ((NI) 1);
		{
			while (1) {
				if (!(res_399998 <= HEX3Atmp_399995)) goto LA4;
				col_399984 = res_399998;
				{
					NIM_BOOL LOC7;
					Ttype224847* aa;
					Ttype224847* bb;
					NI d;
					LOC7 = 0;
					LOC7 = contains_221829(relevantcols, col_399984);
					if (!LOC7) goto LA8;
					aa = skiptypes_228167((*(*a).typ).sons->data[col_399984], IL64(211106247215360));
					bb = skiptypes_228167((*(*b).typ).sons->data[col_399984], IL64(211106247215360));
					d = inheritancediff_261091(aa, bb);
					{
						if (!!((d == ((NI) 2147483647)))) goto LA12;
						result = d;
						goto BeforeRet;
					}
					LA12: ;
				}
				LA8: ;
				res_399998 += ((NI) 1);
			} LA4: ;
		}
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, sortbucket_400017)(Tsymseq224811** a, Intset221056 relevantcols) {
	NI n;
	NI h;
	n = ((*a) ? (*a)->Sup.len : 0);
	h = ((NI) 1);
	{
		while (1) {
			h = (NI)((NI)(((NI) 3) * h) + ((NI) 1));
			{
				if (!(n < h)) goto LA5;
				goto LA1;
			}
			LA5: ;
		}
	} LA1: ;
	{
		while (1) {
			h = (NI)(h / ((NI) 3));
			{
				NI i_400044;
				NI HEX3Atmp_400051;
				NI res_400054;
				i_400044 = 0;
				HEX3Atmp_400051 = 0;
				HEX3Atmp_400051 = (NI)(n - ((NI) 1));
				res_400054 = h;
				{
					while (1) {
						Tsym224841* v;
						NI j;
						if (!(res_400054 <= HEX3Atmp_400051)) goto LA11;
						i_400044 = res_400054;
						v = (*a)->data[i_400044];
						j = i_400044;
						{
							while (1) {
								NI LOC14;
								LOC14 = 0;
								LOC14 = cmpsignatures_399965((*a)->data[(NI)(j - h)], v, relevantcols);
								if (!(((NI) 0) <= LOC14)) goto LA13;
								asgnRefNoCycle((void**) (&(*a)->data[j]), (*a)->data[(NI)(j - h)]);
								j = (NI)(j - h);
								{
									if (!(j < h)) goto LA17;
									goto LA12;
								}
								LA17: ;
							} LA13: ;
						} LA12: ;
						asgnRefNoCycle((void**) (&(*a)->data[j]), v);
						res_400054 += ((NI) 1);
					} LA11: ;
				}
			}
			{
				if (!(h == ((NI) 1))) goto LA21;
				goto LA7;
			}
			LA21: ;
		}
	} LA7: ;
}

N_NIMCALL(Tsym224841*, gendispatcher_400091)(Tsymseq224811* methods, Intset221056 relevantcols) {
	Tsym224841* result;
	Tsym224841* base;
	Tnode224809* LOC1;
	NI paramlen;
	Tnode224809* disp;
	Tsym224841* ands;
	Tsym224841* iss;
	result = 0;
	LOC1 = 0;
	LOC1 = lastson_227406((*methods->data[((NI) 0)]).ast);
	base = (*LOC1).kindU.S4.sym;
	result = base;
	paramlen = sonslen_227351((*base).typ);
	disp = newnodei_226351(((NU8) 92), (*base).info);
	ands = getsyssym_273077(((NimStringDesc*) &TMP4464));
	iss = getsyssym_273077(((NimStringDesc*) &TMP4465));
	{
		NI meth_400117;
		NI HEX3Atmp_400228;
		NI res_400231;
		meth_400117 = 0;
		HEX3Atmp_400228 = 0;
		HEX3Atmp_400228 = (methods ? (methods->Sup.len-1) : -1);
		res_400231 = ((NI) 0);
		{
			while (1) {
				Tsym224841* curr;
				Tnode224809* cond;
				Tnode224809* call;
				Tnode224809* LOC24;
				Tnode224809* ret;
				if (!(res_400231 <= HEX3Atmp_400228)) goto LA4;
				meth_400117 = res_400231;
				curr = methods->data[meth_400117];
				cond = NIM_NIL;
				{
					NI col_400132;
					NI HEX3Atmp_400212;
					NI res_400215;
					col_400132 = 0;
					HEX3Atmp_400212 = 0;
					HEX3Atmp_400212 = (NI)(paramlen - ((NI) 1));
					res_400215 = ((NI) 1);
					{
						while (1) {
							if (!(res_400215 <= HEX3Atmp_400212)) goto LA7;
							col_400132 = res_400215;
							{
								NIM_BOOL LOC10;
								Tnode224809* isn;
								Ttype224847* LOC13;
								Tnode224809* LOC14;
								Tnode224809* LOC15;
								Tnode224809* LOC16;
								LOC10 = 0;
								LOC10 = contains_221829(relevantcols, col_400132);
								if (!LOC10) goto LA11;
								LOC13 = 0;
								LOC13 = getsystype_273190(((NU8) 1));
								isn = newnodeit_226807(((NU8) 27), (*base).info, LOC13);
								LOC14 = 0;
								LOC14 = newsymnode_226325(iss);
								addson_226819(isn, LOC14);
								LOC15 = 0;
								LOC15 = newsymnode_226325((*(*(*(*base).typ).n).kindU.S6.sons->data[col_400132]).kindU.S4.sym);
								addson_226819(isn, LOC15);
								LOC16 = 0;
								LOC16 = newnodeit_226807(((NU8) 4), (*base).info, (*(*curr).typ).sons->data[col_400132]);
								addson_226819(isn, LOC16);
								{
									Tnode224809* a;
									Ttype224847* LOC21;
									Tnode224809* LOC22;
									if (!!((cond == NIM_NIL))) goto LA19;
									LOC21 = 0;
									LOC21 = getsystype_273190(((NU8) 1));
									a = newnodeit_226807(((NU8) 27), (*base).info, LOC21);
									LOC22 = 0;
									LOC22 = newsymnode_226325(ands);
									addson_226819(a, LOC22);
									addson_226819(a, cond);
									addson_226819(a, isn);
									cond = a;
								}
								goto LA17;
								LA19: ;
								{
									cond = isn;
								}
								LA17: ;
							}
							LA11: ;
							res_400215 += ((NI) 1);
						} LA7: ;
					}
				}
				call = newnodei_226351(((NU8) 27), (*base).info);
				LOC24 = 0;
				LOC24 = newsymnode_226325(curr);
				addson_226819(call, LOC24);
				{
					NI col_400168;
					NI HEX3Atmp_400220;
					NI res_400223;
					col_400168 = 0;
					HEX3Atmp_400220 = 0;
					HEX3Atmp_400220 = (NI)(paramlen - ((NI) 1));
					res_400223 = ((NI) 1);
					{
						while (1) {
							Tnode224809* LOC28;
							Tnode224809* LOC29;
							if (!(res_400223 <= HEX3Atmp_400220)) goto LA27;
							col_400168 = res_400223;
							LOC28 = 0;
							LOC28 = newsymnode_226325((*(*(*(*base).typ).n).kindU.S6.sons->data[col_400168]).kindU.S4.sym);
							LOC29 = 0;
							LOC29 = genconv_399017(LOC28, (*(*curr).typ).sons->data[col_400168], NIM_FALSE);
							addson_226819(call, LOC29);
							res_400223 += ((NI) 1);
						} LA27: ;
					}
				}
				ret = 0;
				{
					Tnode224809* a;
					Tnode224809* LOC34;
					if (!!(((*(*base).typ).sons->data[((NI) 0)] == NIM_NIL))) goto LA32;
					a = newnodei_226351(((NU8) 74), (*base).info);
					LOC34 = 0;
					LOC34 = newsymnode_226325((*(*(*base).ast).kindU.S6.sons->data[((NI) 7)]).kindU.S4.sym);
					addson_226819(a, LOC34);
					addson_226819(a, call);
					ret = newnodei_226351(((NU8) 109), (*base).info);
					addson_226819(ret, a);
				}
				goto LA30;
				LA32: ;
				{
					ret = call;
				}
				LA30: ;
				{
					Tnode224809* a;
					if (!!((cond == NIM_NIL))) goto LA38;
					a = newnodei_226351(((NU8) 86), (*base).info);
					addson_226819(a, cond);
					addson_226819(a, ret);
					addson_226819(disp, a);
				}
				goto LA36;
				LA38: ;
				{
					disp = ret;
				}
				LA36: ;
				res_400231 += ((NI) 1);
			} LA4: ;
		}
	}
	asgnRefNoCycle((void**) (&(*(*result).ast).kindU.S6.sons->data[((NI) 6)]), disp);
	return result;
}

N_NIMCALL(Tnode224809*, generatemethoddispatchers_400268)(void) {
	Tnode224809* result;
	result = 0;
	result = newnode_225401(((NU8) 115));
	{
		NI bucket_400291;
		NI HEX3Atmp_400318;
		NI res_400321;
		bucket_400291 = 0;
		HEX3Atmp_400318 = 0;
		HEX3Atmp_400318 = (NI)((gmethods_399262 ? gmethods_399262->Sup.len : 0) - ((NI) 1));
		res_400321 = ((NI) 0);
		{
			while (1) {
				Intset221056 relevantcols;
				Tsym224841* LOC13;
				Tnode224809* LOC14;
				if (!(res_400321 <= HEX3Atmp_400318)) goto LA3;
				bucket_400291 = res_400321;
				memset((void*)(&relevantcols), 0, sizeof(relevantcols));
				chckNil((void*)(&relevantcols));
				memset((void*)(&relevantcols), 0, sizeof(relevantcols));
				initintset_221927((&relevantcols));
				{
					NI col_400306;
					NI HEX3Atmp_400311;
					NI LOC5;
					NI res_400314;
					col_400306 = 0;
					HEX3Atmp_400311 = 0;
					LOC5 = 0;
					LOC5 = sonslen_227351((*gmethods_399262->data[bucket_400291].Field0->data[((NI) 0)]).typ);
					HEX3Atmp_400311 = (NI)(LOC5 - ((NI) 1));
					res_400314 = ((NI) 1);
					{
						while (1) {
							if (!(res_400314 <= HEX3Atmp_400311)) goto LA7;
							col_400306 = res_400314;
							{
								NIM_BOOL LOC10;
								LOC10 = 0;
								LOC10 = relevantcol_399911(gmethods_399262->data[bucket_400291].Field0, col_400306);
								if (!LOC10) goto LA11;
								incl_221856((&relevantcols), col_400306);
							}
							LA11: ;
							res_400314 += ((NI) 1);
						} LA7: ;
					}
				}
				sortbucket_400017((&gmethods_399262->data[bucket_400291].Field0), relevantcols);
				LOC13 = 0;
				LOC13 = gendispatcher_400091(gmethods_399262->data[bucket_400291].Field0, relevantcols);
				LOC14 = 0;
				LOC14 = newsymnode_226325(LOC13);
				addson_226819(result, LOC14);
				res_400321 += ((NI) 1);
			} LA3: ;
		}
	}
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_cgmethInit000)(void) {
	if (gmethods_399262) nimGCunrefNoCycle(gmethods_399262);
	gmethods_399262 = (TY399242*) newSeqRC1((&NTI399242), 0);
}

NIM_EXTERNC N_NOINLINE(void, compiler_cgmethDatInit000)(void) {
static TNimNode* TMP1007[2];
static TNimNode TMP1005[3];
NTI399243.size = sizeof(TY399243);
NTI399243.kind = 18;
NTI399243.base = 0;
NTI399243.flags = 2;
TMP1007[0] = &TMP1005[1];
TMP1005[1].kind = 1;
TMP1005[1].offset = offsetof(TY399243, Field0);
TMP1005[1].typ = (&NTI224811);
TMP1005[1].name = "Field0";
TMP1007[1] = &TMP1005[2];
TMP1005[2].kind = 1;
TMP1005[2].offset = offsetof(TY399243, Field1);
TMP1005[2].typ = (&NTI224807);
TMP1005[2].name = "Field1";
TMP1005[0].len = 2; TMP1005[0].kind = 2; TMP1005[0].sons = &TMP1007[0];
NTI399243.node = &TMP1005[0];
NTI399242.size = sizeof(TY399242*);
NTI399242.kind = 24;
NTI399242.base = (&NTI399243);
NTI399242.flags = 2;
NTI399242.marker = TMP1008;
}

