/* 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 TY400242 TY400242;
typedef struct TY400243 TY400243;
typedef struct Tsymseq225811 Tsymseq225811;
typedef struct Tsym225841 Tsym225841;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Cell49147 Cell49147;
typedef struct Cellseq49163 Cellseq49163;
typedef struct Gcheap51218 Gcheap51218;
typedef struct Gcstack51216 Gcstack51216;
typedef struct Cellset49159 Cellset49159;
typedef struct Pagedesc49155 Pagedesc49155;
typedef struct Memregion31090 Memregion31090;
typedef struct Smallchunk31042 Smallchunk31042;
typedef struct Llchunk31084 Llchunk31084;
typedef struct Bigchunk31044 Bigchunk31044;
typedef struct Intset31017 Intset31017;
typedef struct Trunk31013 Trunk31013;
typedef struct Avlnode31088 Avlnode31088;
typedef struct Gcstat51214 Gcstat51214;
typedef struct Tidobj198015 Tidobj198015;
typedef struct TNimObject TNimObject;
typedef struct Ttypeseq225843 Ttypeseq225843;
typedef struct Tscope225835 Tscope225835;
typedef struct TY225944 TY225944;
typedef struct Tstrtable225813 Tstrtable225813;
typedef struct Ttype225847 Ttype225847;
typedef struct Tident198021 Tident198021;
typedef struct Tlineinfo190352 Tlineinfo190352;
typedef struct Tnode225809 Tnode225809;
typedef struct Tloc225823 Tloc225823;
typedef struct Ropeobj176009 Ropeobj176009;
typedef struct Tlib225827 Tlib225827;
typedef struct NimStringDesc NimStringDesc;
typedef struct Tnodeseq225803 Tnodeseq225803;
typedef struct Intset222056 Intset222056;
typedef struct Trunk222052 Trunk222052;
typedef struct Trunkseq222054 Trunkseq222054;
typedef struct Basechunk31040 Basechunk31040;
typedef struct Freecell31032 Freecell31032;
typedef struct Tinstantiation225831 Tinstantiation225831;
typedef struct Tlistentry141022 Tlistentry141022;
typedef struct TY225932 TY225932;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct TY400243 {
Tsymseq225811* Field0;
Tsym225841* 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  Cell49147  {
NI refcount;
TNimType* typ;
};
struct  Cellseq49163  {
NI len;
NI cap;
Cell49147** d;
};
struct  Cellset49159  {
NI counter;
NI max;
Pagedesc49155* head;
Pagedesc49155** data;
};
typedef Smallchunk31042* TY31105[512];
typedef Trunk31013* Trunkbuckets31015[256];
struct  Intset31017  {
Trunkbuckets31015 data;
};
struct  Memregion31090  {
NI minlargeobj;
NI maxlargeobj;
TY31105 freesmallchunks;
Llchunk31084* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk31044* freechunkslist;
Intset31017 chunkstarts;
Avlnode31088* root;
Avlnode31088* deleted;
Avlnode31088* last;
Avlnode31088* freeavlnodes;
};
struct  Gcstat51214  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51218  {
Gcstack51216* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq49163 zct;
Cellseq49163 decstack;
Cellset49159 cycleroots;
Cellseq49163 tempstack;
NI recgclock;
Memregion31090 region;
Gcstat51214 stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj198015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable225813  {
NI counter;
Tsymseq225811* data;
};
struct  Tlineinfo190352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tloc225823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype225847* t;
Ropeobj176009* r;
Ropeobj176009* heaproot;
};
struct  Tsym225841  {
  Tidobj198015 Sup;
NU8 kind;
union{
struct {Ttypeseq225843* typeinstcache;
Tscope225835* typscope;
} S1;
struct {TY225944* procinstcache;
Tsym225841* gcunsafetyreason;
} S2;
struct {TY225944* usedgenerics;
Tstrtable225813 tab;
} S3;
struct {Tsym225841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype225847* typ;
Tident198021* name;
Tlineinfo190352 info;
Tsym225841* owner;
NU32 flags;
Tnode225809* ast;
NU32 options;
NI position;
NI offset;
Tloc225823 loc;
Tlib225827* annex;
Tnode225809* constraint;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tident198021  {
  Tidobj198015 Sup;
NimStringDesc* s;
Tident198021* next;
NI h;
};
struct  Ttype225847  {
  Tidobj198015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq225843* sons;
Tnode225809* n;
Tsym225841* owner;
Tsym225841* sym;
Tsym225841* destructor;
Tsym225841* deepcopy;
Tsym225841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc225823 loc;
};
struct  Tnode225809  {
Ttype225847* typ;
Tlineinfo190352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym225841* sym;
} S4;
struct {Tident198021* ident;
} S5;
struct {Tnodeseq225803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef NimStringDesc* TY193306[2];
typedef Tsym225841* TY280434[1];
struct  Intset222056  {
NI counter;
NI max;
Trunk222052* head;
Trunkseq222054* data;
};
struct  Gcstack51216  {
Gcstack51216* prev;
Gcstack51216* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY31021[16];
struct  Pagedesc49155  {
Pagedesc49155* next;
NI key;
TY31021 bits;
};
struct  Basechunk31040  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk31042  {
  Basechunk31040 Sup;
Smallchunk31042* next;
Smallchunk31042* prev;
Freecell31032* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk31084  {
NI size;
NI acc;
Llchunk31084* next;
};
struct  Bigchunk31044  {
  Basechunk31040 Sup;
Bigchunk31044* next;
Bigchunk31044* prev;
NI align;
NF data;
};
struct  Trunk31013  {
Trunk31013* next;
NI key;
TY31021 bits;
};
typedef Avlnode31088* TY31095[2];
struct  Avlnode31088  {
TY31095 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope225835  {
NI depthlevel;
Tstrtable225813 symbols;
Tnodeseq225803* usingsyms;
Tscope225835* parent;
};
struct  Ropeobj176009  {
  TNimObject Sup;
Ropeobj176009* left;
Ropeobj176009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry141022  {
  TNimObject Sup;
Tlistentry141022* prev;
Tlistentry141022* next;
};
struct  Tlib225827  {
  Tlistentry141022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj176009* name;
Tnode225809* path;
};
struct  Trunk222052  {
Trunk222052* next;
NI key;
TY31021 bits;
};
struct  Freecell31032  {
Freecell31032* next;
NI zerofield;
};
struct  Tinstantiation225831  {
Tsym225841* sym;
Ttypeseq225843* concretetypes;
TY225932* usedby;
NI compilesid;
};
struct Tsymseq225811 {
  TGenericSeq Sup;
  Tsym225841* data[SEQ_DECL_SIZE];
};
struct TY400242 {
  TGenericSeq Sup;
  TY400243 data[SEQ_DECL_SIZE];
};
struct Ttypeseq225843 {
  TGenericSeq Sup;
  Ttype225847* data[SEQ_DECL_SIZE];
};
struct TY225944 {
  TGenericSeq Sup;
  Tinstantiation225831* data[SEQ_DECL_SIZE];
};
struct Tnodeseq225803 {
  TGenericSeq Sup;
  Tnode225809* data[SEQ_DECL_SIZE];
};
struct Trunkseq222054 {
  TGenericSeq Sup;
  Trunk222052* data[SEQ_DECL_SIZE];
};
struct TY225932 {
  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(Cell49147*, usrtocell_52846)(void* usr);
static N_INLINE(void, rtladdzct_54404)(Cell49147* c);
N_NOINLINE(void, addzct_52817)(Cellseq49163* s, Cell49147* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(NU8, samemethodbucket_400275)(Tsym225841* a, Tsym225841* b);
N_NIMCALL(NI, sonslen_228351)(Ttype225847* n);
N_NIMCALL(NIM_BOOL, sametypeornil_260108)(Ttype225847* a, Ttype225847* b, NU8 flags);
N_NIMCALL(Ttype225847*, skiptypes_229167)(Ttype225847* t, NU64 kinds);
N_NIMCALL(Ttype225847*, lastson_228426)(Ttype225847* n);
N_NIMCALL(NIM_BOOL, sametype_260092)(Ttype225847* a, Ttype225847* b, NU8 flags);
N_NIMCALL(NI, inheritancediff_262091)(Ttype225847* a, Ttype225847* b);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(void, attachdispatcher_400406)(Tsym225841* s, Tnode225809* dispatcher);
static N_INLINE(NI, len_226098)(Tnode225809* n);
N_NIMCALL(void, add_226165)(Tnode225809* father, Tnode225809* son);
N_NIMCALL(Tnode225809*, lastson_228406)(Tnode225809* n);
N_NIMCALL(void, fixupdispatcher_400522)(Tsym225841* meth, Tsym225841* disp);
N_NIMCALL(NI, sonslen_228387)(Tnode225809* n);
N_NIMCALL(Tnode225809*, copytree_230028)(Tnode225809* src);
N_NIMCALL(void, message_196161)(Tlineinfo190352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(NimStringDesc*, HEX24_228096)(NI16 x);
N_NIMCALL(void, checkmethodeffects_370399)(Tsym225841* disp, Tsym225841* branch);
N_NIMCALL(void, localerror_196139)(Tlineinfo190352 info, NimStringDesc* arg);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(Tsym225841*, createdispatcher_400447)(Tsym225841* s);
N_NIMCALL(Tsym225841*, copysym_228607)(Tsym225841* s, NIM_BOOL keepid);
N_NIMCALL(Ttype225847*, copytype_228542)(Ttype225847* t, Tsym225841* owner, NIM_BOOL keepid);
N_NIMCALL(void, addson_227819)(Tnode225809* father, Tnode225809* son);
N_NIMCALL(Tnode225809*, newsymnode_227325)(Tsym225841* sym);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_86004, TNimType* mt);
N_NIMCALL(void, internalerror_196172)(Tlineinfo190352 info, NimStringDesc* errmsg);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, HEX24_191879)(Tlineinfo190352 info);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(Tnode225809*, genconv_400017)(Tnode225809* n, Ttype225847* d, NIM_BOOL downcast);
N_NIMCALL(Tnode225809*, newnodeit_227807)(NU8 kind, Tlineinfo190352 info, Ttype225847* typ);
N_NIMCALL(Tnode225809*, newnode_226401)(NU8 kind);
N_NIMCALL(void, initintset_222927)(Intset222056* Result);
N_NOINLINE(void, chckNil)(void* p);
N_NIMCALL(NIM_BOOL, relevantcol_400911)(Tsymseq225811* methods, NI col);
N_NIMCALL(void, incl_222856)(Intset222056* s, NI key);
N_NIMCALL(void, sortbucket_401017)(Tsymseq225811** a, Intset222056 relevantcols);
N_NIMCALL(NI, cmpsignatures_400965)(Tsym225841* a, Tsym225841* b, Intset222056 relevantcols);
N_NIMCALL(NIM_BOOL, contains_222829)(Intset222056 s, NI key);
N_NIMCALL(Tsym225841*, gendispatcher_401091)(Tsymseq225811* methods, Intset222056 relevantcols);
N_NIMCALL(Tnode225809*, newnodei_227351)(NU8 kind, Tlineinfo190352 info);
N_NIMCALL(Tsym225841*, getsyssym_274077)(NimStringDesc* name);
N_NIMCALL(Ttype225847*, getsystype_274190)(NU8 kind);
STRING_LITERAL(TMP3406, "method has lock level $1, but another method has $2", 51);
STRING_LITERAL(TMP3414, "method is not a base", 20);
STRING_LITERAL(TMP3415, "no method dispatcher found", 26);
STRING_LITERAL(TMP3416, "invalid declaration order; cannot attach \'", 42);
STRING_LITERAL(TMP3417, "\' to method defined here: ", 26);
STRING_LITERAL(TMP3418, "", 0);
STRING_LITERAL(TMP3419, "cgmeth.genConv", 14);
STRING_LITERAL(TMP3420, "cgmeth.genConv: no upcast allowed", 33);
STRING_LITERAL(TMP3421, "cgmeth.genConv: no downcast allowed", 35);
STRING_LITERAL(TMP4460, "and", 3);
STRING_LITERAL(TMP4461, "of", 2);
TY400242* gmethods_400262;
TNimType NTI400243; /* tuple[methods: TSymSeq, dispatcher: PSym] */
extern TNimType NTI225811; /* TSymSeq */
extern TNimType NTI225807; /* PSym */
TNimType NTI400242; /* seq[tuple[methods: TSymSeq, dispatcher: PSym]] */
extern Gcheap51218 gch_51259;
extern Tnode225809* emptynode_226807;
N_NIMCALL(void, TMP1008)(void* p, NI op) {
	TY400242* a;
	NI LOC1;
	a = (TY400242*)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(Cell49147*, usrtocell_52846)(void* usr) {
	Cell49147* result;
	result = 0;
	result = ((Cell49147*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(Cell49147))))));
	return result;
}

static N_INLINE(void, rtladdzct_54404)(Cell49147* c) {
	addzct_52817((&gch_51259.zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell49147* c;
	c = usrtocell_52846(p);
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_54404(c);
	}
	LA3: ;
}

N_NIMCALL(NU8, samemethodbucket_400275)(Tsym225841* a, Tsym225841* 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_228351((*a).typ);
		LOC8 = 0;
		LOC8 = sonslen_228351((*b).typ);
		if (!!((LOC7 == LOC8))) goto LA9;
		goto BeforeRet;
	}
	LA9: ;
	{
		NIM_BOOL LOC13;
		LOC13 = 0;
		LOC13 = sametypeornil_260108((*(*a).typ).sons->data[((NI) 0)], (*(*b).typ).sons->data[((NI) 0)], 0);
		if (!!(LOC13)) goto LA14;
		goto BeforeRet;
	}
	LA14: ;
	{
		NI i_400299;
		NI HEX3Atmp_400378;
		NI LOC17;
		NI res_400381;
		i_400299 = 0;
		HEX3Atmp_400378 = 0;
		LOC17 = 0;
		LOC17 = sonslen_228351((*a).typ);
		HEX3Atmp_400378 = (NI)(LOC17 - ((NI) 1));
		res_400381 = ((NI) 1);
		{
			while (1) {
				Ttype225847* aa;
				Ttype225847* bb;
				if (!(res_400381 <= HEX3Atmp_400378)) goto LA19;
				i_400299 = res_400381;
				aa = (*(*a).typ).sons->data[i_400299];
				bb = (*(*b).typ).sons->data[i_400299];
				{
					while (1) {
						aa = skiptypes_229167(aa, 2048);
						bb = skiptypes_229167(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_228426(aa);
							bb = lastson_228426(bb);
						}
						goto LA22;
						LA26: ;
						{
							goto LA20;
						}
						LA22: ;
					}
				} LA20: ;
				{
					NIM_BOOL LOC31;
					LOC31 = 0;
					LOC31 = sametype_260092(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_262091(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_400381 += ((NI) 1);
			} LA19: ;
		}
	}
	}BeforeRet: ;
	return result;
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell49147* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_52846(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell49147* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_52846((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA11;
			rtladdzct_54404(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

static N_INLINE(NI, len_226098)(Tnode225809* 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_400406)(Tsym225841* s, Tnode225809* dispatcher) {
	NI L;
	NI LOC1;
	Tnode225809* x;
	LOC1 = 0;
	LOC1 = len_226098((*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_226165((*s).ast, dispatcher);
	}
	LA2: ;
}

N_NIMCALL(void, fixupdispatcher_400522)(Tsym225841* meth, Tsym225841* disp) {
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		NI LOC5;
		NI LOC7;
		LOC3 = 0;
		LOC4 = 0;
		LOC5 = 0;
		LOC5 = sonslen_228387((*disp).ast);
		LOC4 = (((NI) 7) < LOC5);
		if (!(LOC4)) goto LA6;
		LOC7 = 0;
		LOC7 = sonslen_228387((*meth).ast);
		LOC4 = (((NI) 7) < LOC7);
		LA6: ;
		LOC3 = LOC4;
		if (!(LOC3)) goto LA8;
		LOC3 = ((*(*disp).ast).kindU.S6.sons->data[((NI) 7)] == emptynode_226807);
		LA8: ;
		if (!LOC3) goto LA9;
		asgnRefNoCycle((void**) (&(*(*disp).ast).kindU.S6.sons->data[((NI) 7)]), copytree_230028((*(*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;
		TY193306 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_228096((*(*meth).typ).locklevel);
		LOC20[1] = HEX24_228096((*(*disp).typ).locklevel);
		LOC21 = 0;
		LOC21 = nsuFormatOpenArray(((NimStringDesc*) &TMP3406), LOC20, 2);
		message_196161((*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(Tsym225841*, createdispatcher_400447)(Tsym225841* s) {
	Tsym225841* result;
	Tsym225841* disp;
	Tnode225809* LOC15;
	Tnode225809* LOC16;
{	result = 0;
	disp = copysym_228607(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_228542((*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_230028((*s).ast));
	asgnRefNoCycle((void**) (&(*(*disp).ast).kindU.S6.sons->data[((NI) 6)]), emptynode_226807);
	asgnRefNoCycle((void**) (&(*disp).loc.r), NIM_NIL);
	{
		if (!!(((*(*s).typ).sons->data[((NI) 0)] == NIM_NIL))) goto LA7;
		{
			NI LOC11;
			LOC11 = 0;
			LOC11 = sonslen_228387((*disp).ast);
			if (!(((NI) 7) < LOC11)) goto LA12;
			asgnRefNoCycle((void**) (&(*(*(*disp).ast).kindU.S6.sons->data[((NI) 7)]).kindU.S4.sym), copysym_228607((*(*(*s).ast).kindU.S6.sons->data[((NI) 7)]).kindU.S4.sym, NIM_FALSE));
		}
		goto LA9;
		LA12: ;
		{
			addson_227819((*disp).ast, emptynode_226807);
		}
		LA9: ;
	}
	LA7: ;
	LOC15 = 0;
	LOC15 = newsymnode_227325(disp);
	attachdispatcher_400406(s, LOC15);
	LOC16 = 0;
	LOC16 = newsymnode_227325(disp);
	attachdispatcher_400406(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_400634)(Tsym225841* s, NIM_BOOL fromcache) {
	NI L;
	Tsym225841* witness;
	TY400243 LOC19;
	TY280434 LOC20;
{	L = (gmethods_400262 ? gmethods_400262->Sup.len : 0);
	witness = 0;
	{
		NI i_400660;
		NI HEX3Atmp_400889;
		NI res_400892;
		i_400660 = 0;
		HEX3Atmp_400889 = 0;
		HEX3Atmp_400889 = (NI)(L - ((NI) 1));
		res_400892 = ((NI) 0);
		{
			while (1) {
				Tsym225841* disp;
				NU8 LOC4;
				if (!(res_400892 <= HEX3Atmp_400889)) goto LA3;
				i_400660 = res_400892;
				disp = gmethods_400262->data[i_400660].Field1;
				LOC4 = 0;
				LOC4 = samemethodbucket_400275(disp, s);
				switch (LOC4) {
				case ((NU8) 2):
				{
					Tnode225809* LOC6;
					gmethods_400262->data[i_400660].Field0 = (Tsymseq225811*) incrSeqV2(&(gmethods_400262->data[i_400660].Field0)->Sup, sizeof(Tsym225841*));
					asgnRefNoCycle((void**) (&gmethods_400262->data[i_400660].Field0->data[gmethods_400262->data[i_400660].Field0->Sup.len]), s);
					++gmethods_400262->data[i_400660].Field0->Sup.len;
					LOC6 = 0;
					LOC6 = lastson_228406((*disp).ast);
					attachdispatcher_400406(s, LOC6);
					fixupdispatcher_400522(s, disp);
					checkmethodeffects_370399(disp, s);
					{
						NIM_BOOL LOC9;
						LOC9 = 0;
						LOC9 = (((*s).flags &(1<<((((NU8) 18))&31)))!=0);
						if (!(LOC9)) goto LA10;
						LOC9 = !((gmethods_400262->data[i_400660].Field0->data[((NI) 0)] == s));
						LA10: ;
						if (!LOC9) goto LA11;
						localerror_196139((*s).info, ((NimStringDesc*) &TMP3414));
					}
					LA11: ;
					goto BeforeRet;
				}
				break;
				case ((NU8) 0):
				{
				}
				break;
				case ((NU8) 1):
				{
					{
						if (!witness == 0) goto LA17;
						witness = gmethods_400262->data[i_400660].Field0->data[((NI) 0)];
					}
					LA17: ;
				}
				break;
				}
				res_400892 += ((NI) 1);
			} LA3: ;
		}
	}
	memset((void*)(&LOC19), 0, sizeof(LOC19));
	LOC19.Field0 = (Tsymseq225811*) newSeq((&NTI225811), 1);
	memset((void*)LOC20, 0, sizeof(LOC20));
	LOC20[0] = s;
	asgnRefNoCycle((void**) (&LOC19.Field0->data[0]), LOC20[0]);
	LOC19.Field1 = createdispatcher_400447(s);
	gmethods_400262 = (TY400242*) incrSeqV2(&(gmethods_400262)->Sup, sizeof(TY400243));
	genericSeqAssign((&gmethods_400262->data[gmethods_400262->Sup.len].Field0), LOC19.Field0, (&NTI225811));
	asgnRefNoCycle((void**) (&gmethods_400262->data[gmethods_400262->Sup.len].Field1), LOC19.Field1);
	++gmethods_400262->Sup.len;
	{
		if (!fromcache) goto LA23;
		internalerror_196172((*s).info, ((NimStringDesc*) &TMP3415));
	}
	LA23: ;
	{
		NimStringDesc* LOC29;
		NimStringDesc* LOC30;
		if (!!((witness == NIM_NIL))) goto LA27;
		LOC29 = 0;
		LOC30 = 0;
		LOC30 = HEX24_191879((*witness).info);
		LOC29 = rawNewString((*(*s).name).s->Sup.len + LOC30->Sup.len + 68);
appendString(LOC29, ((NimStringDesc*) &TMP3416));
appendString(LOC29, (*(*s).name).s);
appendString(LOC29, ((NimStringDesc*) &TMP3417));
appendString(LOC29, LOC30);
		localerror_196139((*s).info, LOC29);
	}
	goto LA25;
	LA27: ;
	{
		if (!!((((*s).flags &(1<<((((NU8) 18))&31)))!=0))) goto LA32;
		message_196161((*s).info, ((NU16) 252), ((NimStringDesc*) &TMP3418));
	}
	goto LA25;
	LA32: ;
	LA25: ;
	}BeforeRet: ;
}

N_NIMCALL(Tnode225809*, genconv_400017)(Tnode225809* n, Ttype225847* d, NIM_BOOL downcast) {
	Tnode225809* result;
	Ttype225847* dest;
	Ttype225847* source;
	result = 0;
	dest = skiptypes_229167(d, IL64(211106247256320));
	source = skiptypes_229167((*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_262091(dest, source);
		{
			if (!(diff == ((NI) 2147483647))) goto LA9;
			internalerror_196172((*n).info, ((NimStringDesc*) &TMP3419));
		}
		LA9: ;
		{
			if (!(diff < ((NI) 0))) goto LA13;
			result = newnodeit_227807(((NU8) 67), (*n).info, d);
			addson_227819(result, n);
			{
				if (!downcast) goto LA17;
				internalerror_196172((*n).info, ((NimStringDesc*) &TMP3420));
			}
			LA17: ;
		}
		goto LA11;
		LA13: ;
		{
			if (!(((NI) 0) < diff)) goto LA20;
			result = newnodeit_227807(((NU8) 66), (*n).info, d);
			addson_227819(result, n);
			{
				if (!!(downcast)) goto LA24;
				internalerror_196172((*n).info, ((NimStringDesc*) &TMP3421));
			}
			LA24: ;
		}
		goto LA11;
		LA20: ;
		{
			result = n;
		}
		LA11: ;
	}
	goto LA1;
	LA5: ;
	{
		result = n;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, methodcall_400054)(Tnode225809* n) {
	Tnode225809* result;
	Tsym225841* disp;
	Tnode225809* LOC1;
	result = 0;
	result = n;
	LOC1 = 0;
	LOC1 = lastson_228406((*(*(*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_400215;
		NI HEX3Atmp_400220;
		NI LOC3;
		NI res_400223;
		i_400215 = 0;
		HEX3Atmp_400220 = 0;
		LOC3 = 0;
		LOC3 = sonslen_228387(result);
		HEX3Atmp_400220 = (NI)(LOC3 - ((NI) 1));
		res_400223 = ((NI) 1);
		{
			while (1) {
				if (!(res_400223 <= HEX3Atmp_400220)) goto LA5;
				i_400215 = res_400223;
				asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_400215]), genconv_400017((*result).kindU.S6.sons->data[i_400215], (*(*disp).typ).sons->data[i_400215], NIM_TRUE));
				res_400223 += ((NI) 1);
			} LA5: ;
		}
	}
	return result;
}

N_NIMCALL(NIM_BOOL, relevantcol_400911)(Tsymseq225811* methods, NI col) {
	NIM_BOOL result;
	Ttype225847* t;
{	result = 0;
	t = skiptypes_229167((*(*methods->data[((NI) 0)]).typ).sons->data[col], IL64(211106247215360));
	{
		if (!((*t).kind == ((NU8) 17))) goto LA3;
		{
			NI i_400939;
			NI HEX3Atmp_400943;
			NI res_400946;
			i_400939 = 0;
			HEX3Atmp_400943 = 0;
			HEX3Atmp_400943 = (methods ? (methods->Sup.len-1) : -1);
			res_400946 = ((NI) 1);
			{
				while (1) {
					Ttype225847* t2;
					if (!(res_400946 <= HEX3Atmp_400943)) goto LA7;
					i_400939 = res_400946;
					t2 = skiptypes_229167((*(*methods->data[i_400939]).typ).sons->data[col], IL64(211106247215360));
					{
						NIM_BOOL LOC10;
						LOC10 = 0;
						LOC10 = sametype_260092(t2, t, 0);
						if (!!(LOC10)) goto LA11;
						result = NIM_TRUE;
						goto BeforeRet;
					}
					LA11: ;
					res_400946 += ((NI) 1);
				} LA7: ;
			}
		}
	}
	LA3: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NI, cmpsignatures_400965)(Tsym225841* a, Tsym225841* b, Intset222056 relevantcols) {
	NI result;
{	result = 0;
	{
		NI col_400984;
		NI HEX3Atmp_400995;
		NI LOC2;
		NI res_400998;
		col_400984 = 0;
		HEX3Atmp_400995 = 0;
		LOC2 = 0;
		LOC2 = sonslen_228351((*a).typ);
		HEX3Atmp_400995 = (NI)(LOC2 - ((NI) 1));
		res_400998 = ((NI) 1);
		{
			while (1) {
				if (!(res_400998 <= HEX3Atmp_400995)) goto LA4;
				col_400984 = res_400998;
				{
					NIM_BOOL LOC7;
					Ttype225847* aa;
					Ttype225847* bb;
					NI d;
					LOC7 = 0;
					LOC7 = contains_222829(relevantcols, col_400984);
					if (!LOC7) goto LA8;
					aa = skiptypes_229167((*(*a).typ).sons->data[col_400984], IL64(211106247215360));
					bb = skiptypes_229167((*(*b).typ).sons->data[col_400984], IL64(211106247215360));
					d = inheritancediff_262091(aa, bb);
					{
						if (!!((d == ((NI) 2147483647)))) goto LA12;
						result = d;
						goto BeforeRet;
					}
					LA12: ;
				}
				LA8: ;
				res_400998 += ((NI) 1);
			} LA4: ;
		}
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, sortbucket_401017)(Tsymseq225811** a, Intset222056 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_401044;
				NI HEX3Atmp_401051;
				NI res_401054;
				i_401044 = 0;
				HEX3Atmp_401051 = 0;
				HEX3Atmp_401051 = (NI)(n - ((NI) 1));
				res_401054 = h;
				{
					while (1) {
						Tsym225841* v;
						NI j;
						if (!(res_401054 <= HEX3Atmp_401051)) goto LA11;
						i_401044 = res_401054;
						v = (*a)->data[i_401044];
						j = i_401044;
						{
							while (1) {
								NI LOC14;
								LOC14 = 0;
								LOC14 = cmpsignatures_400965((*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_401054 += ((NI) 1);
					} LA11: ;
				}
			}
			{
				if (!(h == ((NI) 1))) goto LA21;
				goto LA7;
			}
			LA21: ;
		}
	} LA7: ;
}

N_NIMCALL(Tsym225841*, gendispatcher_401091)(Tsymseq225811* methods, Intset222056 relevantcols) {
	Tsym225841* result;
	Tsym225841* base;
	Tnode225809* LOC1;
	NI paramlen;
	Tnode225809* disp;
	Tsym225841* ands;
	Tsym225841* iss;
	result = 0;
	LOC1 = 0;
	LOC1 = lastson_228406((*methods->data[((NI) 0)]).ast);
	base = (*LOC1).kindU.S4.sym;
	result = base;
	paramlen = sonslen_228351((*base).typ);
	disp = newnodei_227351(((NU8) 92), (*base).info);
	ands = getsyssym_274077(((NimStringDesc*) &TMP4460));
	iss = getsyssym_274077(((NimStringDesc*) &TMP4461));
	{
		NI meth_401117;
		NI HEX3Atmp_401228;
		NI res_401231;
		meth_401117 = 0;
		HEX3Atmp_401228 = 0;
		HEX3Atmp_401228 = (methods ? (methods->Sup.len-1) : -1);
		res_401231 = ((NI) 0);
		{
			while (1) {
				Tsym225841* curr;
				Tnode225809* cond;
				Tnode225809* call;
				Tnode225809* LOC24;
				Tnode225809* ret;
				if (!(res_401231 <= HEX3Atmp_401228)) goto LA4;
				meth_401117 = res_401231;
				curr = methods->data[meth_401117];
				cond = NIM_NIL;
				{
					NI col_401132;
					NI HEX3Atmp_401212;
					NI res_401215;
					col_401132 = 0;
					HEX3Atmp_401212 = 0;
					HEX3Atmp_401212 = (NI)(paramlen - ((NI) 1));
					res_401215 = ((NI) 1);
					{
						while (1) {
							if (!(res_401215 <= HEX3Atmp_401212)) goto LA7;
							col_401132 = res_401215;
							{
								NIM_BOOL LOC10;
								Tnode225809* isn;
								Ttype225847* LOC13;
								Tnode225809* LOC14;
								Tnode225809* LOC15;
								Tnode225809* LOC16;
								LOC10 = 0;
								LOC10 = contains_222829(relevantcols, col_401132);
								if (!LOC10) goto LA11;
								LOC13 = 0;
								LOC13 = getsystype_274190(((NU8) 1));
								isn = newnodeit_227807(((NU8) 27), (*base).info, LOC13);
								LOC14 = 0;
								LOC14 = newsymnode_227325(iss);
								addson_227819(isn, LOC14);
								LOC15 = 0;
								LOC15 = newsymnode_227325((*(*(*(*base).typ).n).kindU.S6.sons->data[col_401132]).kindU.S4.sym);
								addson_227819(isn, LOC15);
								LOC16 = 0;
								LOC16 = newnodeit_227807(((NU8) 4), (*base).info, (*(*curr).typ).sons->data[col_401132]);
								addson_227819(isn, LOC16);
								{
									Tnode225809* a;
									Ttype225847* LOC21;
									Tnode225809* LOC22;
									if (!!((cond == NIM_NIL))) goto LA19;
									LOC21 = 0;
									LOC21 = getsystype_274190(((NU8) 1));
									a = newnodeit_227807(((NU8) 27), (*base).info, LOC21);
									LOC22 = 0;
									LOC22 = newsymnode_227325(ands);
									addson_227819(a, LOC22);
									addson_227819(a, cond);
									addson_227819(a, isn);
									cond = a;
								}
								goto LA17;
								LA19: ;
								{
									cond = isn;
								}
								LA17: ;
							}
							LA11: ;
							res_401215 += ((NI) 1);
						} LA7: ;
					}
				}
				call = newnodei_227351(((NU8) 27), (*base).info);
				LOC24 = 0;
				LOC24 = newsymnode_227325(curr);
				addson_227819(call, LOC24);
				{
					NI col_401168;
					NI HEX3Atmp_401220;
					NI res_401223;
					col_401168 = 0;
					HEX3Atmp_401220 = 0;
					HEX3Atmp_401220 = (NI)(paramlen - ((NI) 1));
					res_401223 = ((NI) 1);
					{
						while (1) {
							Tnode225809* LOC28;
							Tnode225809* LOC29;
							if (!(res_401223 <= HEX3Atmp_401220)) goto LA27;
							col_401168 = res_401223;
							LOC28 = 0;
							LOC28 = newsymnode_227325((*(*(*(*base).typ).n).kindU.S6.sons->data[col_401168]).kindU.S4.sym);
							LOC29 = 0;
							LOC29 = genconv_400017(LOC28, (*(*curr).typ).sons->data[col_401168], NIM_FALSE);
							addson_227819(call, LOC29);
							res_401223 += ((NI) 1);
						} LA27: ;
					}
				}
				ret = 0;
				{
					Tnode225809* a;
					Tnode225809* LOC34;
					if (!!(((*(*base).typ).sons->data[((NI) 0)] == NIM_NIL))) goto LA32;
					a = newnodei_227351(((NU8) 74), (*base).info);
					LOC34 = 0;
					LOC34 = newsymnode_227325((*(*(*base).ast).kindU.S6.sons->data[((NI) 7)]).kindU.S4.sym);
					addson_227819(a, LOC34);
					addson_227819(a, call);
					ret = newnodei_227351(((NU8) 109), (*base).info);
					addson_227819(ret, a);
				}
				goto LA30;
				LA32: ;
				{
					ret = call;
				}
				LA30: ;
				{
					Tnode225809* a;
					if (!!((cond == NIM_NIL))) goto LA38;
					a = newnodei_227351(((NU8) 86), (*base).info);
					addson_227819(a, cond);
					addson_227819(a, ret);
					addson_227819(disp, a);
				}
				goto LA36;
				LA38: ;
				{
					disp = ret;
				}
				LA36: ;
				res_401231 += ((NI) 1);
			} LA4: ;
		}
	}
	asgnRefNoCycle((void**) (&(*(*result).ast).kindU.S6.sons->data[((NI) 6)]), disp);
	return result;
}

N_NIMCALL(Tnode225809*, generatemethoddispatchers_401268)(void) {
	Tnode225809* result;
	result = 0;
	result = newnode_226401(((NU8) 115));
	{
		NI bucket_401291;
		NI HEX3Atmp_401318;
		NI res_401321;
		bucket_401291 = 0;
		HEX3Atmp_401318 = 0;
		HEX3Atmp_401318 = (NI)((gmethods_400262 ? gmethods_400262->Sup.len : 0) - ((NI) 1));
		res_401321 = ((NI) 0);
		{
			while (1) {
				Intset222056 relevantcols;
				Tsym225841* LOC13;
				Tnode225809* LOC14;
				if (!(res_401321 <= HEX3Atmp_401318)) goto LA3;
				bucket_401291 = res_401321;
				memset((void*)(&relevantcols), 0, sizeof(relevantcols));
				chckNil((void*)(&relevantcols));
				memset((void*)(&relevantcols), 0, sizeof(relevantcols));
				initintset_222927((&relevantcols));
				{
					NI col_401306;
					NI HEX3Atmp_401311;
					NI LOC5;
					NI res_401314;
					col_401306 = 0;
					HEX3Atmp_401311 = 0;
					LOC5 = 0;
					LOC5 = sonslen_228351((*gmethods_400262->data[bucket_401291].Field0->data[((NI) 0)]).typ);
					HEX3Atmp_401311 = (NI)(LOC5 - ((NI) 1));
					res_401314 = ((NI) 1);
					{
						while (1) {
							if (!(res_401314 <= HEX3Atmp_401311)) goto LA7;
							col_401306 = res_401314;
							{
								NIM_BOOL LOC10;
								LOC10 = 0;
								LOC10 = relevantcol_400911(gmethods_400262->data[bucket_401291].Field0, col_401306);
								if (!LOC10) goto LA11;
								incl_222856((&relevantcols), col_401306);
							}
							LA11: ;
							res_401314 += ((NI) 1);
						} LA7: ;
					}
				}
				sortbucket_401017((&gmethods_400262->data[bucket_401291].Field0), relevantcols);
				LOC13 = 0;
				LOC13 = gendispatcher_401091(gmethods_400262->data[bucket_401291].Field0, relevantcols);
				LOC14 = 0;
				LOC14 = newsymnode_227325(LOC13);
				addson_227819(result, LOC14);
				res_401321 += ((NI) 1);
			} LA3: ;
		}
	}
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_cgmethInit000)(void) {
	if (gmethods_400262) nimGCunrefNoCycle(gmethods_400262);
	gmethods_400262 = (TY400242*) newSeqRC1((&NTI400242), 0);
}

NIM_EXTERNC N_NOINLINE(void, compiler_cgmethDatInit000)(void) {
static TNimNode* TMP1007[2];
static TNimNode TMP1005[3];
NTI400243.size = sizeof(TY400243);
NTI400243.kind = 18;
NTI400243.base = 0;
NTI400243.flags = 2;
TMP1007[0] = &TMP1005[1];
TMP1005[1].kind = 1;
TMP1005[1].offset = offsetof(TY400243, Field0);
TMP1005[1].typ = (&NTI225811);
TMP1005[1].name = "Field0";
TMP1007[1] = &TMP1005[2];
TMP1005[2].kind = 1;
TMP1005[2].offset = offsetof(TY400243, Field1);
TMP1005[2].typ = (&NTI225807);
TMP1005[2].name = "Field1";
TMP1005[0].len = 2; TMP1005[0].kind = 2; TMP1005[0].sons = &TMP1007[0];
NTI400243.node = &TMP1005[0];
NTI400242.size = sizeof(TY400242*);
NTI400242.kind = 24;
NTI400242.base = (&NTI400243);
NTI400242.flags = 2;
NTI400242.marker = TMP1008;
}

