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

#include <string.h>

#include <stdio.h>
typedef struct Tpasscontext242005 Tpasscontext242005;
typedef struct Tsym191843 Tsym191843;
typedef struct Tidobj168015 Tidobj168015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Ttypeseq191845 Ttypeseq191845;
typedef struct Tscope191837 Tscope191837;
typedef struct TY191944 TY191944;
typedef struct Tstrtable191817 Tstrtable191817;
typedef struct Tsymseq191815 Tsymseq191815;
typedef struct Ttype191849 Ttype191849;
typedef struct Tident168021 Tident168021;
typedef struct Tlineinfo164338 Tlineinfo164338;
typedef struct Tnode191813 Tnode191813;
typedef struct Tloc191827 Tloc191827;
typedef struct Ropeobj162009 Ropeobj162009;
typedef struct Tlib191831 Tlib191831;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Trodwriter253005 Trodwriter253005;
typedef struct Tindex234028 Tindex234028;
typedef struct Tiitable199274 Tiitable199274;
typedef struct Tiipairseq199272 Tiipairseq199272;
typedef struct TY122008 TY122008;
typedef struct Tcell46346 Tcell46346;
typedef struct Tcellseq46362 Tcellseq46362;
typedef struct Tgcheap48216 Tgcheap48216;
typedef struct Tcellset46358 Tcellset46358;
typedef struct Tpagedesc46354 Tpagedesc46354;
typedef struct Tmemregion28210 Tmemregion28210;
typedef struct Tsmallchunk27440 Tsmallchunk27440;
typedef struct Tllchunk28204 Tllchunk28204;
typedef struct Tbigchunk27442 Tbigchunk27442;
typedef struct Tintset27417 Tintset27417;
typedef struct Ttrunk27413 Ttrunk27413;
typedef struct Tavlnode28208 Tavlnode28208;
typedef struct Tgcstat48214 Tgcstat48214;
typedef struct Stringtableobj134012 Stringtableobj134012;
typedef struct Keyvaluepairseq134010 Keyvaluepairseq134010;
typedef struct Keyvaluepair134008 Keyvaluepair134008;
typedef struct Tlistentry130022 Tlistentry130022;
typedef struct Tnodeseq191807 Tnodeseq191807;
typedef struct Tinstantiation191833 Tinstantiation191833;
typedef struct Tiipair199270 Tiipair199270;
typedef struct Tbasechunk27438 Tbasechunk27438;
typedef struct Tfreecell27430 Tfreecell27430;
typedef struct TY191933 TY191933;
typedef N_NIMCALL_PTR(void, TY3289) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3294) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3289 marker;
TY3294 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj168015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable191817  {
NI counter;
Tsymseq191815* data;
};
struct  Tlineinfo164338  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tloc191827  {
NU8 k;
NU8 s;
NU16 flags;
Ttype191849* t;
Ropeobj162009* r;
Ropeobj162009* heaproot;
};
struct  Tsym191843  {
  Tidobj168015 Sup;
NU8 kind;
union{
struct {Ttypeseq191845* typeinstcache;
Tscope191837* typscope;
} S1;
struct {TY191944* procinstcache;
Tsym191843* gcunsafetyreason;
} S2;
struct {TY191944* usedgenerics;
Tstrtable191817 tab;
} S3;
struct {Tsym191843* guard;
} S4;
} kindU;
NU16 magic;
Ttype191849* typ;
Tident168021* name;
Tlineinfo164338 info;
Tsym191843* owner;
NU32 flags;
Tnode191813* ast;
NU32 options;
NI position;
NI offset;
Tloc191827 loc;
Tlib191831* annex;
Tnode191813* constraint;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tpasscontext242005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Tiitable199274  {
NI counter;
Tiipairseq199272* data;
};
struct  Tindex234028  {
NI lastidxkey;
NI lastidxval;
Tiitable199274 tab;
NimStringDesc* r;
NI offset;
};
struct  Trodwriter253005  {
  Tpasscontext242005 Sup;
Tsym191843* module;
NI32 crc;
NU32 options;
NimStringDesc* defines;
NimStringDesc* incldeps;
NimStringDesc* moddeps;
NimStringDesc* interf;
NimStringDesc* compilerprocs;
Tindex234028 index;
Tindex234028 imports;
NimStringDesc* converters;
NimStringDesc* methods;
NimStringDesc* init;
NimStringDesc* data;
Tsymseq191815* sstack;
Ttypeseq191845* tstack;
TY122008* files;
NimStringDesc* origfile;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tcell46346  {
NI refcount;
TNimType* typ;
};
struct  Tcellseq46362  {
NI len;
NI cap;
Tcell46346** d;
};
struct  Tcellset46358  {
NI counter;
NI max;
Tpagedesc46354* head;
Tpagedesc46354** data;
};
typedef Tsmallchunk27440* TY28222[512];
typedef Ttrunk27413* Ttrunkbuckets27415[256];
struct  Tintset27417  {
Ttrunkbuckets27415 data;
};
struct  Tmemregion28210  {
NI minlargeobj;
NI maxlargeobj;
TY28222 freesmallchunks;
Tllchunk28204* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Tbigchunk27442* freechunkslist;
Tintset27417 chunkstarts;
Tavlnode28208* root;
Tavlnode28208* deleted;
Tavlnode28208* last;
Tavlnode28208* freeavlnodes;
};
struct  Tgcstat48214  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Tgcheap48216  {
void* stackbottom;
NI cyclethreshold;
Tcellseq46362 zct;
Tcellseq46362 decstack;
Tcellset46358 cycleroots;
Tcellseq46362 tempstack;
NI recgclock;
Tmemregion28210 region;
Tgcstat48214 stat;
};
struct  Stringtableobj134012  {
  TNimObject Sup;
NI counter;
Keyvaluepairseq134010* data;
NU8 mode;
};
struct Keyvaluepair134008 {
NimStringDesc* Field0;
NimStringDesc* Field1;
};
struct  Tident168021  {
  Tidobj168015 Sup;
NimStringDesc* s;
Tident168021* next;
NI h;
};
struct  Ttype191849  {
  Tidobj168015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq191845* sons;
Tnode191813* n;
Tsym191843* owner;
Tsym191843* sym;
Tsym191843* destructor;
Tsym191843* deepcopy;
Tsym191843* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc191827 loc;
};
struct  Tlistentry130022  {
  TNimObject Sup;
Tlistentry130022* prev;
Tlistentry130022* next;
};
struct  Tlib191831  {
  Tlistentry130022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj162009* name;
Tnode191813* path;
};
struct  Tnode191813  {
Ttype191849* typ;
Tlineinfo164338 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym191843* sym;
} S4;
struct {Tident168021* ident;
} S5;
struct {Tnodeseq191807* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tscope191837  {
NI depthlevel;
Tstrtable191817 symbols;
Tnodeseq191807* usingsyms;
Tscope191837* parent;
};
struct  Ropeobj162009  {
  TNimObject Sup;
Ropeobj162009* left;
Ropeobj162009* right;
NI length;
NimStringDesc* data;
};
struct  Tiipair199270  {
NI key;
NI val;
};
typedef NI TY27420[16];
struct  Tpagedesc46354  {
Tpagedesc46354* next;
NI key;
TY27420 bits;
};
struct  Tbasechunk27438  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Tsmallchunk27440  {
  Tbasechunk27438 Sup;
Tsmallchunk27440* next;
Tsmallchunk27440* prev;
Tfreecell27430* freelist;
NI free;
NI acc;
NF data;
};
struct  Tllchunk28204  {
NI size;
NI acc;
Tllchunk28204* next;
};
struct  Tbigchunk27442  {
  Tbasechunk27438 Sup;
Tbigchunk27442* next;
Tbigchunk27442* prev;
NI align;
NF data;
};
struct  Ttrunk27413  {
Ttrunk27413* next;
NI key;
TY27420 bits;
};
typedef Tavlnode28208* TY28214[2];
struct  Tavlnode28208  {
TY28214 link;
NI key;
NI upperbound;
NI level;
};
struct  Tinstantiation191833  {
Tsym191843* sym;
Ttypeseq191845* concretetypes;
TY191933* usedby;
};
struct  Tfreecell27430  {
Tfreecell27430* next;
NI zerofield;
};
struct Tsymseq191815 {
  TGenericSeq Sup;
  Tsym191843* data[SEQ_DECL_SIZE];
};
struct Ttypeseq191845 {
  TGenericSeq Sup;
  Ttype191849* data[SEQ_DECL_SIZE];
};
struct TY122008 {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct TY191944 {
  TGenericSeq Sup;
  Tinstantiation191833* data[SEQ_DECL_SIZE];
};
struct Tiipairseq199272 {
  TGenericSeq Sup;
  Tiipair199270 data[SEQ_DECL_SIZE];
};
struct Keyvaluepairseq134010 {
  TGenericSeq Sup;
  Keyvaluepair134008 data[SEQ_DECL_SIZE];
};
struct Tnodeseq191807 {
  TGenericSeq Sup;
  Tnode191813* data[SEQ_DECL_SIZE];
};
struct TY191933 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, internalerror_166218)(NimStringDesc* errmsg);
N_NIMCALL(Trodwriter253005*, newrodwriter_253029)(NI32 crc, Tsym191843* module);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP4229)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Tcell46346*, usrtocell_49846)(void* usr);
static N_INLINE(void, rtladdzct_51404)(Tcell46346* c);
N_NOINLINE(void, addzct_49817)(Tcellseq46362* s, Tcell46346* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void, initiitable_199282)(Tiitable199274* x);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(NimStringDesc*, getdefines_253070)(void);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
N_NIMCALL(NimStringDesc*, tofilename_165266)(NI32 fileidx);
N_NIMCALL(NI32, getcrc_236322)(NI32 fileidx);
N_NIMCALL(void, rawaddinterfacesym_254721)(Trodwriter253005* w, Tsym191843* s);
N_NIMCALL(void, pushsym_253299)(Trodwriter253005* w, Tsym191843* s);
N_NIMCALL(NI, iitableget_199289)(Tiitable199274 t, NI key);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, processstacks_254700)(Trodwriter253005* w, NIM_BOOL finalpass);
N_NIMCALL(NI, symstack_254201)(Trodwriter253005* w);
N_NIMCALL(Tsym191843*, getmodule_199243)(Tsym191843* s);
N_NIMCALL(void, addtoindex_254009)(Tindex234028* w, NI key, NI val);
N_NIMCALL(void, encodevint_198296)(NI x, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(void, iitableput_199296)(Tiitable199274* t, NI key, NI val);
N_NIMCALL(void, encodesym_253696)(Trodwriter253005* w, Tsym191843* s, NimStringDesc** result);
N_NIMCALL(void, encodestr_198042)(NimStringDesc* s, NimStringDesc** result);
N_NIMCALL(void, pushtype_253279)(Trodwriter253005* w, Ttype191849* t);
N_NIMCALL(NI, fileidx_253111)(Trodwriter253005* w, NimStringDesc* filename);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, encodeloc_253435)(Trodwriter253005* w, Tloc191827 loc, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, HEX24_163131)(Ropeobj162009* r);
N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newlen);
N_NIMCALL(void, encodelib_253675)(Trodwriter253005* w, Tlib191831* lib, Tlineinfo164338 info, NimStringDesc** result);
N_NIMCALL(void, encodenode_253320)(Trodwriter253005* w, Tlineinfo164338 finfo, Tnode191813* n, NimStringDesc** result);
N_NIMCALL(void, encodevbiggestint_198258)(NI64 x, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, nimFloatToStr)(NF f);
N_NIMCALL(NI, sonslen_194403)(Tnode191813* n);
N_NIMCALL(Tlineinfo164338, unknownlineinfo_165027)(void);
static N_INLINE(NIM_BOOL, haspattern_196784)(Tsym191843* s);
static N_INLINE(NIM_BOOL, isroutine_196764)(Tsym191843* s);
N_NIMCALL(NI, typestack_254633)(Trodwriter253005* w);
N_NIMCALL(void, encodetype_253522)(Trodwriter253005* w, Ttype191849* t, NimStringDesc** result);
N_NIMCALL(NI, sonslen_194351)(Ttype191849* n);
N_NIMCALL(Tnode191813*, process_254969)(Tpasscontext242005* c, Tnode191813* n);
N_NIMCALL(void, internalerror_166199)(Tlineinfo164338 info, NimStringDesc* errmsg);
N_NIMCALL(void, addinterfacesym_253050)(Trodwriter253005* w, Tsym191843* s);
N_NIMCALL(void, addmoddep_253036)(Trodwriter253005* w, NimStringDesc* dep);
N_NIMCALL(NimStringDesc*, getmodulename_252018)(Tnode191813* n);
N_NIMCALL(void, addstmt_253057)(Trodwriter253005* w, Tnode191813* n);
N_NIMCALL(void, addincldep_253043)(Trodwriter253005* w, NimStringDesc* dep);
N_NIMCALL(NimStringDesc*, findmodule_156349)(NimStringDesc* modulename, NimStringDesc* currentmodule);
N_NIMCALL(NimStringDesc*, tofullpath_165276)(NI32 fileidx);
N_NIMCALL(NI32, crcfromfile_170051)(NimStringDesc* filename);
N_NIMCALL(void, writerod_253064)(Trodwriter253005* w);
N_NIMCALL(NIM_BOOL, open_13203)(FILE** f, NimStringDesc* filename, NU8 mode, NI bufsize);
N_NIMCALL(NimStringDesc*, completegeneratedfilepath_156001)(NimStringDesc* f, NIM_BOOL createsubdir);
N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext);
N_NIMCALL(NimStringDesc*, withpackagename_155944)(NimStringDesc* path);
N_NIMCALL(void, write_13457)(FILE* f, NimStringDesc* s);
N_NIMCALL(void, savemaxids_190472)(NimStringDesc* project);
N_NIMCALL(NimStringDesc*, HEX2F_119292)(NimStringDesc* head, NimStringDesc* tail);
STRING_LITERAL(TMP4227, "rodwrite: module ID not set", 27);
STRING_LITERAL(TMP4230, "", 0);
STRING_LITERAL(TMP4231, "false", 5);
STRING_LITERAL(TMP4232, " ", 1);
STRING_LITERAL(TMP4233, "symStack: module nil: ", 22);
STRING_LITERAL(TMP4234, "\012", 1);
STRING_LITERAL(TMP4235, "{}", 2);
STRING_LITERAL(TMP4236, "()", 2);
STRING_LITERAL(TMP4237, "[]", 2);
STRING_LITERAL(TMP4238, "encodeType: tyForward", 21);
STRING_LITERAL(TMP4239, "^()", 3);
STRING_LITERAL(TMP4240, "could not serialize some forwarded symbols/types", 48);
STRING_LITERAL(TMP4241, "rodwrite.process", 16);
STRING_LITERAL(TMP4242, "rodwrite.process: body is nil", 29);
STRING_LITERAL(TMP4243, "rod", 3);
STRING_LITERAL(TMP4244, "NIM:", 4);
STRING_LITERAL(TMP4245, "1215", 4);
STRING_LITERAL(TMP4246, "ID:", 3);
STRING_LITERAL(TMP4247, "ORIGFILE:", 9);
STRING_LITERAL(TMP4248, "CRC:", 4);
STRING_LITERAL(TMP4249, "OPTIONS:", 8);
STRING_LITERAL(TMP4250, "GOPTIONS:", 9);
STRING_LITERAL(TMP4251, "CMD:", 4);
STRING_LITERAL(TMP4252, "DEFINES:", 8);
STRING_LITERAL(TMP4253, "FILES(\012", 7);
STRING_LITERAL(TMP4254, ")\012", 2);
STRING_LITERAL(TMP4255, "INCLUDES(\012", 10);
STRING_LITERAL(TMP4256, "DEPS:", 5);
STRING_LITERAL(TMP4257, "INTERF(\012", 8);
STRING_LITERAL(TMP4258, "COMPILERPROCS(\012", 15);
STRING_LITERAL(TMP4259, "INDEX(\012", 7);
STRING_LITERAL(TMP4260, "IMPORTS(\012", 9);
STRING_LITERAL(TMP4261, "CONVERTERS:", 11);
STRING_LITERAL(TMP4262, "METHODS:", 8);
STRING_LITERAL(TMP4263, "INIT(\012", 6);
STRING_LITERAL(TMP4264, "DATA(\012", 6);
STRING_LITERAL(TMP4265, "\000", 1);
extern TNimType NTI242005; /* TPassContext */
TNimType NTI253005; /* TRodWriter */
extern TNimType NTI191811; /* PSym */
extern TNimType NTI170015; /* TCrc32 */
extern TNimType NTI155016; /* TOptions */
extern TNimType NTI149; /* string */
extern TNimType NTI234028; /* TIndex */
extern TNimType NTI191815; /* TSymSeq */
extern TNimType NTI191845; /* TTypeSeq */
extern TNimType NTI122008; /* seq[string] */
TNimType NTI253007; /* PRodWriter */
extern Tgcheap48216 gch_48244;
extern Stringtableobj134012* gsymbols_169004;
extern NU32 goptions_155126;
extern NU32 gglobaloptions_155128;
extern NU8 gcmd_155130;
extern NimStringDesc* gprojectpath_155235;
extern NimStringDesc* gprojectname_155234;
N_NIMCALL(void, TMP4229)(void* p, NI op) {
	Trodwriter253005* a;
	a = (Trodwriter253005*)p;
	nimGCvisit((void*)(*a).module, op);
	nimGCvisit((void*)(*a).defines, op);
	nimGCvisit((void*)(*a).incldeps, op);
	nimGCvisit((void*)(*a).moddeps, op);
	nimGCvisit((void*)(*a).interf, op);
	nimGCvisit((void*)(*a).compilerprocs, op);
	nimGCvisit((void*)(*a).index.tab.data, op);
	nimGCvisit((void*)(*a).index.r, op);
	nimGCvisit((void*)(*a).imports.tab.data, op);
	nimGCvisit((void*)(*a).imports.r, op);
	nimGCvisit((void*)(*a).converters, op);
	nimGCvisit((void*)(*a).methods, op);
	nimGCvisit((void*)(*a).init, op);
	nimGCvisit((void*)(*a).data, op);
	nimGCvisit((void*)(*a).sstack, op);
	nimGCvisit((void*)(*a).tstack, op);
	nimGCvisit((void*)(*a).files, op);
	nimGCvisit((void*)(*a).origfile, op);
}

static N_INLINE(Tcell46346*, usrtocell_49846)(void* usr) {
	Tcell46346* result;
	result = 0;
	result = ((Tcell46346*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(Tcell46346))))));
	return result;
}

static N_INLINE(void, rtladdzct_51404)(Tcell46346* c) {
	addzct_49817((&gch_48244.zct), c);
}

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

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

static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) {
	NIM_BOOL result;
	NIM_BOOL LOC11;
	int LOC13;
{	result = 0;
	{
		if (!(a == b)) goto LA3;
		result = NIM_TRUE;
		goto BeforeRet;
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = (a == NIM_NIL);
		if (LOC7) goto LA8;
		LOC7 = (b == NIM_NIL);
		LA8: ;
		if (!LOC7) goto LA9;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA9: ;
	LOC11 = 0;
	LOC11 = ((*a).Sup.len == (*b).Sup.len);
	if (!(LOC11)) goto LA12;
	LOC13 = 0;
	LOC13 = memcmp(((NCSTRING) ((*a).data)), ((NCSTRING) ((*b).data)), (*a).Sup.len);
	LOC11 = (LOC13 == ((NI32) 0));
	LA12: ;
	result = LOC11;
	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(NimStringDesc*, getdefines_253070)(void) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP4230));
	{
		NimStringDesc* d_253073;
		d_253073 = 0;
		{
			NimStringDesc* key_253079;
			NimStringDesc* val_253081;
			key_253079 = 0;
			val_253081 = 0;
			{
				NI h_253083;
				NI HEX3Atmp_253085;
				NI res_253087;
				h_253083 = 0;
				HEX3Atmp_253085 = 0;
				HEX3Atmp_253085 = ((*gsymbols_169004).data ? ((*gsymbols_169004).data->Sup.len-1) : -1);
				res_253087 = ((NI) 0);
				{
					while (1) {
						if (!(res_253087 <= HEX3Atmp_253085)) goto LA5;
						h_253083 = res_253087;
						{
							if (!!((*gsymbols_169004).data->data[h_253083].Field0 == 0)) goto LA8;
							key_253079 = (*gsymbols_169004).data->data[h_253083].Field0;
							val_253081 = (*gsymbols_169004).data->data[h_253083].Field1;
							{
								if (!!(eqStrings(val_253081, ((NimStringDesc*) &TMP4231)))) goto LA12;
								d_253073 = key_253079;
								{
									if (!!(((result ? result->Sup.len : 0) == ((NI) 0)))) goto LA16;
									result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TMP4232));
								}
								LA16: ;
								result = resizeString(result, d_253073->Sup.len + 0);
appendString(result, d_253073);
							}
							LA12: ;
						}
						LA8: ;
						res_253087 += ((NI) 1);
					} LA5: ;
				}
			}
		}
	}
	return result;
}

N_NIMCALL(Trodwriter253005*, newrodwriter_253029)(NI32 crc, Tsym191843* module) {
	Trodwriter253005* result;
	NimStringDesc* LOC1;
	NimStringDesc* LOC2;
	NimStringDesc* LOC3;
	NimStringDesc* LOC4;
	NimStringDesc* LOC5;
	NimStringDesc* LOC6;
	NimStringDesc* LOC7;
	NimStringDesc* LOC8;
	result = 0;
	result = (Trodwriter253005*) newObj((&NTI253007), sizeof(Trodwriter253005));
	(*result).Sup.Sup.m_type = (&NTI253005);
	if ((*result).sstack) nimGCunrefNoCycle((*result).sstack);
	(*result).sstack = (Tsymseq191815*) newSeqRC1((&NTI191815), 0);
	if ((*result).tstack) nimGCunrefNoCycle((*result).tstack);
	(*result).tstack = (Ttypeseq191845*) newSeqRC1((&NTI191845), 0);
	initiitable_199282((&(*result).index.tab));
	initiitable_199282((&(*result).imports.tab));
	LOC1 = 0;
	LOC1 = (*result).index.r; (*result).index.r = copyStringRC1(((NimStringDesc*) &TMP4230));
	if (LOC1) nimGCunrefNoCycle(LOC1);
	LOC2 = 0;
	LOC2 = (*result).imports.r; (*result).imports.r = copyStringRC1(((NimStringDesc*) &TMP4230));
	if (LOC2) nimGCunrefNoCycle(LOC2);
	(*result).crc = crc;
	asgnRefNoCycle((void**) (&(*result).module), module);
	asgnRefNoCycle((void**) (&(*result).defines), getdefines_253070());
	(*result).options = goptions_155126;
	if ((*result).files) nimGCunrefNoCycle((*result).files);
	(*result).files = (TY122008*) newSeqRC1((&NTI122008), 0);
	LOC3 = 0;
	LOC3 = (*result).incldeps; (*result).incldeps = copyStringRC1(((NimStringDesc*) &TMP4230));
	if (LOC3) nimGCunrefNoCycle(LOC3);
	LOC4 = 0;
	LOC4 = (*result).moddeps; (*result).moddeps = copyStringRC1(((NimStringDesc*) &TMP4230));
	if (LOC4) nimGCunrefNoCycle(LOC4);
	asgnRefNoCycle((void**) (&(*result).interf), rawNewString(((NI) 2000)));
	LOC5 = 0;
	LOC5 = (*result).compilerprocs; (*result).compilerprocs = copyStringRC1(((NimStringDesc*) &TMP4230));
	if (LOC5) nimGCunrefNoCycle(LOC5);
	LOC6 = 0;
	LOC6 = (*result).converters; (*result).converters = copyStringRC1(((NimStringDesc*) &TMP4230));
	if (LOC6) nimGCunrefNoCycle(LOC6);
	LOC7 = 0;
	LOC7 = (*result).methods; (*result).methods = copyStringRC1(((NimStringDesc*) &TMP4230));
	if (LOC7) nimGCunrefNoCycle(LOC7);
	LOC8 = 0;
	LOC8 = (*result).init; (*result).init = copyStringRC1(((NimStringDesc*) &TMP4230));
	if (LOC8) nimGCunrefNoCycle(LOC8);
	asgnRefNoCycle((void**) (&(*result).origfile), tofilename_165266((*module).info.fileindex));
	asgnRefNoCycle((void**) (&(*result).data), rawNewString(((NI) 12000)));
	return result;
}

N_NIMCALL(void, pushsym_253299)(Trodwriter253005* w, Tsym191843* s) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = iitableget_199289((*w).index.tab, (*s).Sup.id);
		if (!(LOC3 == ((NI) (-2147483647 -1)))) goto LA4;
		(*w).sstack = (Tsymseq191815*) incrSeq(&((*w).sstack)->Sup, sizeof(Tsym191843*));
		asgnRefNoCycle((void**) (&(*w).sstack->data[(*w).sstack->Sup.len-1]), s);
	}
	LA4: ;
}

N_NIMCALL(void, addtoindex_254009)(Tindex234028* w, NI key, NI val) {
	{
		if (!((NI)(key - (*w).lastidxkey) == ((NI) 1))) goto LA3;
		encodevint_198296((NI)(val - (*w).lastidxval), (&(*w).r));
	}
	goto LA1;
	LA3: ;
	{
		encodevint_198296((NI)(key - (*w).lastidxkey), (&(*w).r));
		(*w).r = addChar((*w).r, 32);
		encodevint_198296((NI)(val - (*w).lastidxval), (&(*w).r));
	}
	LA1: ;
	(*w).r = resizeString((*w).r, 1);
appendString((*w).r, ((NimStringDesc*) &TMP4234));
	(*w).lastidxkey = key;
	(*w).lastidxval = val;
	iitableput_199296((&(*w).tab), key, val);
}

N_NIMCALL(void, pushtype_253279)(Trodwriter253005* w, Ttype191849* t) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = iitableget_199289((*w).index.tab, (*t).Sup.id);
		if (!(LOC3 == ((NI) (-2147483647 -1)))) goto LA4;
		(*w).tstack = (Ttypeseq191845*) incrSeq(&((*w).tstack)->Sup, sizeof(Ttype191849*));
		asgnRefNoCycle((void**) (&(*w).tstack->data[(*w).tstack->Sup.len-1]), t);
	}
	LA4: ;
}

N_NIMCALL(NI, fileidx_253111)(Trodwriter253005* w, NimStringDesc* filename) {
	NI result;
	NimStringDesc* LOC8;
{	result = 0;
	{
		NI i_253128;
		NI HEX3Atmp_253148;
		NI res_253151;
		i_253128 = 0;
		HEX3Atmp_253148 = 0;
		HEX3Atmp_253148 = ((*w).files ? ((*w).files->Sup.len-1) : -1);
		res_253151 = ((NI) 0);
		{
			while (1) {
				if (!(res_253151 <= HEX3Atmp_253148)) goto LA3;
				i_253128 = res_253151;
				{
					if (!eqStrings((*w).files->data[i_253128], filename)) goto LA6;
					result = i_253128;
					goto BeforeRet;
				}
				LA6: ;
				res_253151 += ((NI) 1);
			} LA3: ;
		}
	}
	result = ((*w).files ? (*w).files->Sup.len : 0);
	(*w).files = (TY122008*) setLengthSeq(&((*w).files)->Sup, sizeof(NimStringDesc*), ((NI) ((NI)(result + ((NI) 1)))));
	LOC8 = 0;
	LOC8 = (*w).files->data[result]; (*w).files->data[result] = copyStringRC1(filename);
	if (LOC8) nimGCunrefNoCycle(LOC8);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, encodeloc_253435)(Trodwriter253005* w, Tloc191827 loc, NimStringDesc** result) {
	NI oldlen;
	oldlen = ((*result) ? (*result)->Sup.len : 0);
	(*result) = addChar((*result), 60);
	{
		if (!!((loc.k == ((NU8) 0)))) goto LA3;
		encodevint_198296(((NI) (loc.k)), result);
	}
	LA3: ;
	{
		if (!!((loc.s == ((NU8) 0)))) goto LA7;
		(*result) = addChar((*result), 42);
		encodevint_198296(((NI) (loc.s)), result);
	}
	LA7: ;
	{
		if (!!((loc.flags == 0))) goto LA11;
		(*result) = addChar((*result), 36);
		encodevint_198296(((NI) (((NI32) (loc.flags)))), result);
	}
	LA11: ;
	{
		if (!!((loc.t == NIM_NIL))) goto LA15;
		(*result) = addChar((*result), 94);
		encodevint_198296(((NI) (((NI32) ((*loc.t).Sup.id)))), result);
		pushtype_253279(w, loc.t);
	}
	LA15: ;
	{
		NimStringDesc* LOC21;
		if (!!((loc.r == NIM_NIL))) goto LA19;
		(*result) = addChar((*result), 33);
		LOC21 = 0;
		LOC21 = HEX24_163131(loc.r);
		encodestr_198042(LOC21, result);
	}
	LA19: ;
	{
		if (!((NI)(oldlen + ((NI) 1)) == ((*result) ? (*result)->Sup.len : 0))) goto LA24;
		(*result) = setLengthStr((*result), ((NI) (oldlen)));
	}
	goto LA22;
	LA24: ;
	{
		(*result) = addChar((*result), 62);
	}
	LA22: ;
}

N_NIMCALL(void, encodenode_253320)(Trodwriter253005* w, Tlineinfo164338 finfo, Tnode191813* n, NimStringDesc** result) {
	NU16 f;
{	{
		if (!(n == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4236));
		goto BeforeRet;
	}
	LA3: ;
	(*result) = addChar((*result), 40);
	encodevint_198296(((NI) ((*n).kind)), result);
	{
		NimStringDesc* LOC9;
		NI LOC10;
		if (!!((finfo.fileindex == (*n).info.fileindex))) goto LA7;
		(*result) = addChar((*result), 63);
		encodevint_198296(((NI) ((*n).info.col)), result);
		(*result) = addChar((*result), 44);
		encodevint_198296(((NI) ((*n).info.line)), result);
		(*result) = addChar((*result), 44);
		LOC9 = 0;
		LOC9 = tofilename_165266((*n).info.fileindex);
		LOC10 = 0;
		LOC10 = fileidx_253111(w, LOC9);
		encodevint_198296(LOC10, result);
	}
	goto LA5;
	LA7: ;
	{
		if (!!((finfo.line == (*n).info.line))) goto LA12;
		(*result) = addChar((*result), 63);
		encodevint_198296(((NI) ((*n).info.col)), result);
		(*result) = addChar((*result), 44);
		encodevint_198296(((NI) ((*n).info.line)), result);
	}
	goto LA5;
	LA12: ;
	{
		if (!!((finfo.col == (*n).info.col))) goto LA15;
		(*result) = addChar((*result), 63);
		encodevint_198296(((NI) ((*n).info.col)), result);
	}
	goto LA5;
	LA15: ;
	LA5: ;
	f = ((*n).flags & 13070);
	{
		if (!!((f == 0))) goto LA19;
		(*result) = addChar((*result), 36);
		encodevint_198296(((NI) (((NI32) (f)))), result);
	}
	LA19: ;
	{
		if (!!(((*n).typ == NIM_NIL))) goto LA23;
		(*result) = addChar((*result), 94);
		encodevint_198296((*(*n).typ).Sup.id, result);
		pushtype_253279(w, (*n).typ);
	}
	LA23: ;
	switch ((*n).kind) {
	case ((NU8) 5) ... ((NU8) 10):
	{
		{
			if (!!(((*n).kindU.S1.intval == IL64(0)))) goto LA28;
			(*result) = addChar((*result), 33);
			encodevbiggestint_198258((*n).kindU.S1.intval, result);
		}
		LA28: ;
	}
	break;
	case ((NU8) 16) ... ((NU8) 18):
	{
		{
			NimStringDesc* LOC35;
			if (!!(((*n).kindU.S2.floatval == 0.0))) goto LA33;
			(*result) = addChar((*result), 33);
			LOC35 = 0;
			LOC35 = nimFloatToStr((*n).kindU.S2.floatval);
			encodestr_198042(LOC35, result);
		}
		LA33: ;
	}
	break;
	case ((NU8) 20) ... ((NU8) 22):
	{
		{
			if (!!((((*n).kindU.S3.strval) && ((*n).kindU.S3.strval)->Sup.len == 0))) goto LA39;
			(*result) = addChar((*result), 33);
			encodestr_198042((*n).kindU.S3.strval, result);
		}
		LA39: ;
	}
	break;
	case ((NU8) 2):
	{
		(*result) = addChar((*result), 33);
		encodestr_198042((*(*n).kindU.S5.ident).s, result);
	}
	break;
	case ((NU8) 3):
	{
		(*result) = addChar((*result), 33);
		encodevint_198296((*(*n).kindU.S4.sym).Sup.id, result);
		pushsym_253299(w, (*n).kindU.S4.sym);
	}
	break;
	default:
	{
		{
			NI i_253409;
			NI HEX3Atmp_253413;
			NI LOC45;
			NI res_253416;
			i_253409 = 0;
			HEX3Atmp_253413 = 0;
			LOC45 = 0;
			LOC45 = sonslen_194403(n);
			HEX3Atmp_253413 = (NI)(LOC45 - ((NI) 1));
			res_253416 = ((NI) 0);
			{
				while (1) {
					if (!(res_253416 <= HEX3Atmp_253413)) goto LA47;
					i_253409 = res_253416;
					encodenode_253320(w, (*n).info, (*n).kindU.S6.sons->data[i_253409], result);
					res_253416 += ((NI) 1);
				} LA47: ;
			}
		}
	}
	break;
	}
	(*result) = addChar((*result), 41);
	}BeforeRet: ;
}

N_NIMCALL(void, encodelib_253675)(Trodwriter253005* w, Tlib191831* lib, Tlineinfo164338 info, NimStringDesc** result) {
	NimStringDesc* LOC1;
	(*result) = addChar((*result), 124);
	encodevint_198296(((NI) ((*lib).kind)), result);
	(*result) = addChar((*result), 124);
	LOC1 = 0;
	LOC1 = HEX24_163131((*lib).name);
	encodestr_198042(LOC1, result);
	(*result) = addChar((*result), 124);
	encodenode_253320(w, info, (*lib).path, result);
}

N_NIMCALL(void, encodesym_253696)(Trodwriter253005* w, Tsym191843* s, NimStringDesc** result) {
	NimStringDesc* LOC17;
	NI LOC18;
{	{
		if (!(s == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4235));
		goto BeforeRet;
	}
	LA3: ;
	encodevint_198296(((NI) ((*s).kind)), result);
	(*result) = addChar((*result), 43);
	encodevint_198296((*s).Sup.id, result);
	(*result) = addChar((*result), 38);
	encodestr_198042((*(*s).name).s, result);
	{
		if (!!(((*s).typ == NIM_NIL))) goto LA7;
		(*result) = addChar((*result), 94);
		encodevint_198296((*(*s).typ).Sup.id, result);
		pushtype_253279(w, (*s).typ);
	}
	LA7: ;
	(*result) = addChar((*result), 63);
	{
		if (!!(((*s).info.col == ((NI16) -1)))) goto LA11;
		encodevint_198296(((NI) ((*s).info.col)), result);
	}
	LA11: ;
	(*result) = addChar((*result), 44);
	{
		if (!!(((*s).info.line == ((NI16) -1)))) goto LA15;
		encodevint_198296(((NI) ((*s).info.line)), result);
	}
	LA15: ;
	(*result) = addChar((*result), 44);
	LOC17 = 0;
	LOC17 = tofilename_165266((*s).info.fileindex);
	LOC18 = 0;
	LOC18 = fileidx_253111(w, LOC17);
	encodevint_198296(LOC18, result);
	{
		if (!!(((*s).owner == NIM_NIL))) goto LA21;
		(*result) = addChar((*result), 42);
		encodevint_198296((*(*s).owner).Sup.id, result);
		pushsym_253299(w, (*s).owner);
	}
	LA21: ;
	{
		if (!!(((*s).flags == 0))) goto LA25;
		(*result) = addChar((*result), 36);
		encodevint_198296(((NI) (((NI32) ((*s).flags)))), result);
	}
	LA25: ;
	{
		if (!!(((*s).magic == ((NU16) 0)))) goto LA29;
		(*result) = addChar((*result), 64);
		encodevint_198296(((NI) ((*s).magic)), result);
	}
	LA29: ;
	{
		if (!!(((*s).options == (*w).options))) goto LA33;
		(*result) = addChar((*result), 33);
		encodevint_198296(((NI) (((NI32) ((*s).options)))), result);
	}
	LA33: ;
	{
		if (!!(((*s).position == ((NI) 0)))) goto LA37;
		(*result) = addChar((*result), 37);
		encodevint_198296((*s).position, result);
	}
	LA37: ;
	{
		if (!!(((*s).offset == ((NI) -1)))) goto LA41;
		(*result) = addChar((*result), 96);
		encodevint_198296((*s).offset, result);
	}
	LA41: ;
	encodeloc_253435(w, (*s).loc, result);
	{
		if (!!(((*s).annex == NIM_NIL))) goto LA45;
		encodelib_253675(w, (*s).annex, (*s).info, result);
	}
	LA45: ;
	{
		Tlineinfo164338 LOC51;
		if (!!(((*s).constraint == NIM_NIL))) goto LA49;
		(*result) = addChar((*result), 35);
		LOC51 = unknownlineinfo_165027();
		encodenode_253320(w, LOC51, (*s).constraint, result);
	}
	LA49: ;
	{
		if (!!(((*s).ast == NIM_NIL))) goto LA54;
		encodenode_253320(w, (*s).info, (*s).ast, result);
	}
	LA54: ;
	}BeforeRet: ;
}

static N_INLINE(NIM_BOOL, isroutine_196764)(Tsym191843* s) {
	NIM_BOOL result;
	result = 0;
	result = ((520192 &(1<<(((*s).kind)&31)))!=0);
	return result;
}

static N_INLINE(NIM_BOOL, haspattern_196784)(Tsym191843* s) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = isroutine_196764(s);
	if (!(LOC1)) goto LA2;
	LOC1 = !(((*(*(*s).ast).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 1)));
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(NI, symstack_254201)(Trodwriter253005* w) {
	NI result;
	NI i;
	result = 0;
	i = ((NI) 0);
	{
		while (1) {
			Tsym191843* s;
			if (!(i < ((*w).sstack ? (*w).sstack->Sup.len : 0))) goto LA2;
			s = (*w).sstack->data[i];
			{
				if (!(((*s).flags &(1<<((((NU8) 4))&31)))!=0)) goto LA5;
				asgnRefNoCycle((void**) (&(*w).sstack->data[result]), s);
				result += ((NI) 1);
			}
			goto LA3;
			LA5: ;
			{
				NI LOC8;
				Tsym191843* m;
				LOC8 = 0;
				LOC8 = iitableget_199289((*w).index.tab, (*s).Sup.id);
				if (!(LOC8 == ((NI) (-2147483647 -1)))) goto LA9;
				m = getmodule_199243(s);
				{
					NimStringDesc* LOC15;
					if (!(m == NIM_NIL)) goto LA13;
					LOC15 = 0;
					LOC15 = rawNewString((*(*s).name).s->Sup.len + 22);
appendString(LOC15, ((NimStringDesc*) &TMP4233));
appendString(LOC15, (*(*s).name).s);
					internalerror_166218(LOC15);
				}
				LA13: ;
				{
					NIM_BOOL LOC18;
					NI L;
					LOC18 = 0;
					LOC18 = ((*m).Sup.id == (*(*w).module).Sup.id);
					if (LOC18) goto LA19;
					LOC18 = (((*s).flags &(1<<((((NU8) 2))&31)))!=0);
					LA19: ;
					if (!LOC18) goto LA20;
					L = ((*w).data ? (*w).data->Sup.len : 0);
					addtoindex_254009((&(*w).index), (*s).Sup.id, L);
					encodesym_253696(w, s, (&(*w).data));
					(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4234));
					{
						NIM_BOOL LOC24;
						LOC24 = 0;
						LOC24 = ((6 & (*s).flags) == 2);
						if (!(LOC24)) goto LA25;
						LOC24 = ((43513728 &(1<<(((*s).kind)&31)))!=0);
						LA25: ;
						if (!LOC24) goto LA26;
						encodestr_198042((*(*s).name).s, (&(*w).interf));
						(*w).interf = addChar((*w).interf, 32);
						encodevint_198296((*s).Sup.id, (&(*w).interf));
						(*w).interf = resizeString((*w).interf, 1);
appendString((*w).interf, ((NimStringDesc*) &TMP4234));
					}
					LA26: ;
					{
						if (!(((*s).flags &(1<<((((NU8) 16))&31)))!=0)) goto LA30;
						encodestr_198042((*(*s).name).s, (&(*w).compilerprocs));
						(*w).compilerprocs = addChar((*w).compilerprocs, 32);
						encodevint_198296((*s).Sup.id, (&(*w).compilerprocs));
						(*w).compilerprocs = resizeString((*w).compilerprocs, 1);
appendString((*w).compilerprocs, ((NimStringDesc*) &TMP4234));
					}
					LA30: ;
					{
						NIM_BOOL LOC34;
						LOC34 = 0;
						LOC34 = ((*s).kind == ((NU8) 16));
						if (LOC34) goto LA35;
						LOC34 = haspattern_196784(s);
						LA35: ;
						if (!LOC34) goto LA36;
						{
							if (!!((((*w).converters ? (*w).converters->Sup.len : 0) == ((NI) 0)))) goto LA40;
							(*w).converters = addChar((*w).converters, 32);
						}
						LA40: ;
						encodevint_198296((*s).Sup.id, (&(*w).converters));
					}
					LA36: ;
					{
						NIM_BOOL LOC44;
						LOC44 = 0;
						LOC44 = ((*s).kind == ((NU8) 13));
						if (!(LOC44)) goto LA45;
						LOC44 = !((((*s).flags &(1<<((((NU8) 25))&31)))!=0));
						LA45: ;
						if (!LOC44) goto LA46;
						{
							if (!!((((*w).methods ? (*w).methods->Sup.len : 0) == ((NI) 0)))) goto LA50;
							(*w).methods = addChar((*w).methods, 32);
						}
						LA50: ;
						encodevint_198296((*s).Sup.id, (&(*w).methods));
					}
					LA46: ;
				}
				goto LA16;
				LA20: ;
				{
					NI LOC53;
					LOC53 = 0;
					LOC53 = iitableget_199289((*w).imports.tab, (*s).Sup.id);
					if (!(LOC53 == ((NI) (-2147483647 -1)))) goto LA54;
					addtoindex_254009((&(*w).imports), (*s).Sup.id, (*m).Sup.id);
				}
				goto LA16;
				LA54: ;
				LA16: ;
			}
			goto LA3;
			LA9: ;
			LA3: ;
			i += ((NI) 1);
		} LA2: ;
	}
	(*w).sstack = (Tsymseq191815*) setLengthSeq(&((*w).sstack)->Sup, sizeof(Tsym191843*), ((NI) (result)));
	return result;
}

N_NIMCALL(void, encodetype_253522)(Trodwriter253005* w, Ttype191849* t, NimStringDesc** result) {
{	{
		if (!(t == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4237));
		goto BeforeRet;
	}
	LA3: ;
	{
		if (!((*t).kind == ((NU8) 30))) goto LA7;
		internalerror_166218(((NimStringDesc*) &TMP4238));
	}
	LA7: ;
	(*result) = addChar((*result), 91);
	encodevint_198296(((NI) ((*t).kind)), result);
	(*result) = addChar((*result), 43);
	encodevint_198296((*t).Sup.id, result);
	{
		Tlineinfo164338 LOC13;
		if (!!(((*t).n == NIM_NIL))) goto LA11;
		LOC13 = unknownlineinfo_165027();
		encodenode_253320(w, LOC13, (*t).n, result);
	}
	LA11: ;
	{
		if (!!(((*t).flags == 0))) goto LA16;
		(*result) = addChar((*result), 36);
		encodevint_198296(((NI) (((NI32) ((*t).flags)))), result);
	}
	LA16: ;
	{
		if (!!(((*t).callconv == ((NU8) 0)))) goto LA20;
		(*result) = addChar((*result), 63);
		encodevint_198296(((NI) ((*t).callconv)), result);
	}
	LA20: ;
	{
		if (!!(((*t).owner == NIM_NIL))) goto LA24;
		(*result) = addChar((*result), 42);
		encodevint_198296((*(*t).owner).Sup.id, result);
		pushsym_253299(w, (*t).owner);
	}
	LA24: ;
	{
		if (!!(((*t).sym == NIM_NIL))) goto LA28;
		(*result) = addChar((*result), 38);
		encodevint_198296((*(*t).sym).Sup.id, result);
		pushsym_253299(w, (*t).sym);
	}
	LA28: ;
	{
		if (!!(((*t).size == IL64(-1)))) goto LA32;
		(*result) = addChar((*result), 47);
		encodevbiggestint_198258((*t).size, result);
	}
	LA32: ;
	{
		if (!!(((*t).align == ((NI16) 2)))) goto LA36;
		(*result) = addChar((*result), 61);
		encodevint_198296(((NI) ((*t).align)), result);
	}
	LA36: ;
	encodeloc_253435(w, (*t).loc, result);
	{
		NI i_253638;
		NI HEX3Atmp_253653;
		NI LOC39;
		NI res_253656;
		i_253638 = 0;
		HEX3Atmp_253653 = 0;
		LOC39 = 0;
		LOC39 = sonslen_194351(t);
		HEX3Atmp_253653 = (NI)(LOC39 - ((NI) 1));
		res_253656 = ((NI) 0);
		{
			while (1) {
				if (!(res_253656 <= HEX3Atmp_253653)) goto LA41;
				i_253638 = res_253656;
				{
					if (!((*t).sons->data[i_253638] == NIM_NIL)) goto LA44;
					(*result) = resizeString((*result), 3);
appendString((*result), ((NimStringDesc*) &TMP4239));
				}
				goto LA42;
				LA44: ;
				{
					(*result) = addChar((*result), 94);
					encodevint_198296((*(*t).sons->data[i_253638]).Sup.id, result);
					pushtype_253279(w, (*t).sons->data[i_253638]);
				}
				LA42: ;
				res_253656 += ((NI) 1);
			} LA41: ;
		}
	}
	}BeforeRet: ;
}

N_NIMCALL(NI, typestack_254633)(Trodwriter253005* w) {
	NI result;
	NI i;
	result = 0;
	i = ((NI) 0);
	{
		while (1) {
			Ttype191849* t;
			if (!(i < ((*w).tstack ? (*w).tstack->Sup.len : 0))) goto LA2;
			t = (*w).tstack->data[i];
			{
				if (!((*t).kind == ((NU8) 30))) goto LA5;
				asgnRefNoCycle((void**) (&(*w).tstack->data[result]), t);
				result += ((NI) 1);
			}
			goto LA3;
			LA5: ;
			{
				NI LOC8;
				NI L;
				LOC8 = 0;
				LOC8 = iitableget_199289((*w).index.tab, (*t).Sup.id);
				if (!(LOC8 == ((NI) (-2147483647 -1)))) goto LA9;
				L = ((*w).data ? (*w).data->Sup.len : 0);
				addtoindex_254009((&(*w).index), (*t).Sup.id, L);
				encodetype_253522(w, t, (&(*w).data));
				(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4234));
			}
			goto LA3;
			LA9: ;
			LA3: ;
			i += ((NI) 1);
		} LA2: ;
	}
	(*w).tstack = (Ttypeseq191845*) setLengthSeq(&((*w).tstack)->Sup, sizeof(Ttype191849*), ((NI) (result)));
	return result;
}

N_NIMCALL(void, processstacks_254700)(Trodwriter253005* w, NIM_BOOL finalpass) {
	NI olds;
	NI oldt;
	olds = ((NI) 0);
	oldt = ((NI) 0);
	{
		while (1) {
			NI slen;
			NI tlen;
			slen = symstack_254201(w);
			tlen = typestack_254633(w);
			{
				NIM_BOOL LOC5;
				LOC5 = 0;
				LOC5 = (slen == olds);
				if (!(LOC5)) goto LA6;
				LOC5 = (tlen == oldt);
				LA6: ;
				if (!LOC5) goto LA7;
				goto LA1;
			}
			LA7: ;
			olds = slen;
			oldt = tlen;
		}
	} LA1: ;
	{
		NIM_BOOL LOC11;
		NIM_BOOL LOC13;
		LOC11 = 0;
		LOC11 = finalpass;
		if (!(LOC11)) goto LA12;
		LOC13 = 0;
		LOC13 = !((olds == ((NI) 0)));
		if (LOC13) goto LA14;
		LOC13 = !((oldt == ((NI) 0)));
		LA14: ;
		LOC11 = LOC13;
		LA12: ;
		if (!LOC11) goto LA15;
		internalerror_166218(((NimStringDesc*) &TMP4240));
	}
	LA15: ;
}

N_NIMCALL(void, rawaddinterfacesym_254721)(Trodwriter253005* w, Tsym191843* s) {
	pushsym_253299(w, s);
	processstacks_254700(w, NIM_FALSE);
}

N_NIMCALL(Tpasscontext242005*, myopen_255251)(Tsym191843* module) {
	Tpasscontext242005* result;
	Trodwriter253005* w;
	NI32 LOC5;
	result = 0;
	{
		if (!((*module).Sup.id < ((NI) 0))) goto LA3;
		internalerror_166218(((NimStringDesc*) &TMP4227));
	}
	LA3: ;
	LOC5 = 0;
	LOC5 = getcrc_236322(((NI32) ((*module).position)));
	w = newrodwriter_253029(LOC5, module);
	rawaddinterfacesym_254721(w, module);
	result = &w->Sup;
	return result;
}

N_NIMCALL(void, addinterfacesym_253050)(Trodwriter253005* w, Tsym191843* s) {
{	{
		if (!(w == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = ((43513728 &(1<<(((*s).kind)&31)))!=0);
		if (!(LOC7)) goto LA8;
		LOC7 = !(((65538 & (*s).flags) == 0));
		LA8: ;
		if (!LOC7) goto LA9;
		rawaddinterfacesym_254721(w, s);
	}
	LA9: ;
	}BeforeRet: ;
}

N_NIMCALL(void, addmoddep_253036)(Trodwriter253005* w, NimStringDesc* dep) {
	NI LOC5;
	{
		if (!!((((*w).moddeps ? (*w).moddeps->Sup.len : 0) == ((NI) 0)))) goto LA3;
		(*w).moddeps = addChar((*w).moddeps, 32);
	}
	LA3: ;
	LOC5 = 0;
	LOC5 = fileidx_253111(w, dep);
	encodevint_198296(LOC5, (&(*w).moddeps));
}

N_NIMCALL(void, addstmt_253057)(Trodwriter253005* w, Tnode191813* n) {
	Tlineinfo164338 LOC1;
	encodevint_198296(((*w).data ? (*w).data->Sup.len : 0), (&(*w).init));
	(*w).init = resizeString((*w).init, 1);
appendString((*w).init, ((NimStringDesc*) &TMP4234));
	LOC1 = unknownlineinfo_165027();
	encodenode_253320(w, LOC1, n, (&(*w).data));
	(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4234));
	processstacks_254700(w, NIM_FALSE);
}

N_NIMCALL(void, addincldep_253043)(Trodwriter253005* w, NimStringDesc* dep) {
	NimStringDesc* resolved;
	NimStringDesc* LOC1;
	NI LOC2;
	NI32 LOC3;
	LOC1 = 0;
	LOC1 = tofullpath_165276((*(*w).module).info.fileindex);
	resolved = findmodule_156349(dep, LOC1);
	LOC2 = 0;
	LOC2 = fileidx_253111(w, dep);
	encodevint_198296(LOC2, (&(*w).incldeps));
	(*w).incldeps = resizeString((*w).incldeps, 1);
appendString((*w).incldeps, ((NimStringDesc*) &TMP4232));
	LOC3 = 0;
	LOC3 = crcfromfile_170051(resolved);
	encodevint_198296(((NI) (LOC3)), (&(*w).incldeps));
	(*w).incldeps = resizeString((*w).incldeps, 1);
appendString((*w).incldeps, ((NimStringDesc*) &TMP4234));
}

N_NIMCALL(Tnode191813*, process_254969)(Tpasscontext242005* c, Tnode191813* n) {
	Tnode191813* result;
	Trodwriter253005* w;
{	result = 0;
	result = n;
	{
		if (!(c == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	w = ((Trodwriter253005*) (c));
	switch ((*n).kind) {
	case ((NU8) 115):
	{
		{
			NI i_254999;
			NI HEX3Atmp_255153;
			NI LOC7;
			NI res_255156;
			i_254999 = 0;
			HEX3Atmp_255153 = 0;
			LOC7 = 0;
			LOC7 = sonslen_194403(n);
			HEX3Atmp_255153 = (NI)(LOC7 - ((NI) 1));
			res_255156 = ((NI) 0);
			{
				while (1) {
					Tnode191813* LOC10;
					if (!(res_255156 <= HEX3Atmp_255153)) goto LA9;
					i_254999 = res_255156;
					LOC10 = 0;
					LOC10 = process_254969(c, (*n).kindU.S6.sons->data[i_254999]);
					res_255156 += ((NI) 1);
				} LA9: ;
			}
		}
	}
	break;
	case ((NU8) 79):
	case ((NU8) 80):
	case ((NU8) 84):
	case ((NU8) 81):
	case ((NU8) 83):
	case ((NU8) 82):
	{
		Tsym191843* s;
		s = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		{
			if (!(s == NIM_NIL)) goto LA14;
			internalerror_166199((*n).info, ((NimStringDesc*) &TMP4241));
		}
		LA14: ;
		{
			if (!((*n).kindU.S6.sons->data[((NI) 6)] == NIM_NIL)) goto LA18;
			internalerror_166199((*n).info, ((NimStringDesc*) &TMP4242));
		}
		LA18: ;
		{
			NIM_BOOL LOC22;
			NIM_BOOL LOC23;
			LOC22 = 0;
			LOC23 = 0;
			LOC23 = !(((*(*n).kindU.S6.sons->data[((NI) 6)]).kind == ((NU8) 1)));
			if (LOC23) goto LA24;
			LOC23 = !(((*s).magic == ((NU16) 0)));
			LA24: ;
			LOC22 = LOC23;
			if (LOC22) goto LA25;
			LOC22 = !((((*s).flags &(1<<((((NU8) 4))&31)))!=0));
			LA25: ;
			if (!LOC22) goto LA26;
			addinterfacesym_253050(w, s);
		}
		LA26: ;
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	case ((NU8) 101):
	{
		{
			NI i_255072;
			NI HEX3Atmp_255162;
			NI LOC30;
			NI res_255165;
			i_255072 = 0;
			HEX3Atmp_255162 = 0;
			LOC30 = 0;
			LOC30 = sonslen_194403(n);
			HEX3Atmp_255162 = (NI)(LOC30 - ((NI) 1));
			res_255165 = ((NI) 0);
			{
				while (1) {
					if (!(res_255165 <= HEX3Atmp_255162)) goto LA32;
					i_255072 = res_255165;
					{
						Tnode191813* a;
						a = (*n).kindU.S6.sons->data[i_255072];
						{
							if (!((*a).kind == ((NU8) 125))) goto LA36;
							goto LA33;
						}
						LA36: ;
						addinterfacesym_253050(w, (*(*a).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym);
					} LA33: ;
					res_255165 += ((NI) 1);
				} LA32: ;
			}
		}
	}
	break;
	case ((NU8) 98):
	{
		{
			NI i_255098;
			NI HEX3Atmp_255171;
			NI LOC40;
			NI res_255174;
			i_255098 = 0;
			HEX3Atmp_255171 = 0;
			LOC40 = 0;
			LOC40 = sonslen_194403(n);
			HEX3Atmp_255171 = (NI)(LOC40 - ((NI) 1));
			res_255174 = ((NI) 0);
			{
				while (1) {
					if (!(res_255174 <= HEX3Atmp_255171)) goto LA42;
					i_255098 = res_255174;
					{
						Tnode191813* a;
						Tsym191843* s;
						a = (*n).kindU.S6.sons->data[i_255098];
						{
							if (!((*a).kind == ((NU8) 125))) goto LA46;
							goto LA43;
						}
						LA46: ;
						{
							if (!!(((*(*a).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)))) goto LA50;
							internalerror_166199((*a).info, ((NimStringDesc*) &TMP4241));
						}
						LA50: ;
						s = (*(*a).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
						addinterfacesym_253050(w, s);
					} LA43: ;
					res_255174 += ((NI) 1);
				} LA42: ;
			}
		}
	}
	break;
	case ((NU8) 116):
	{
		{
			NI i_255135;
			NI HEX3Atmp_255179;
			NI LOC54;
			NI res_255182;
			i_255135 = 0;
			HEX3Atmp_255179 = 0;
			LOC54 = 0;
			LOC54 = sonslen_194403(n);
			HEX3Atmp_255179 = (NI)(LOC54 - ((NI) 1));
			res_255182 = ((NI) 0);
			{
				while (1) {
					NimStringDesc* LOC57;
					if (!(res_255182 <= HEX3Atmp_255179)) goto LA56;
					i_255135 = res_255182;
					LOC57 = 0;
					LOC57 = getmodulename_252018((*n).kindU.S6.sons->data[i_255135]);
					addmoddep_253036(w, LOC57);
					res_255182 += ((NI) 1);
				} LA56: ;
			}
		}
		addstmt_253057(w, n);
	}
	break;
	case ((NU8) 120):
	{
		NimStringDesc* LOC59;
		LOC59 = 0;
		LOC59 = getmodulename_252018((*n).kindU.S6.sons->data[((NI) 0)]);
		addmoddep_253036(w, LOC59);
		addstmt_253057(w, n);
	}
	break;
	case ((NU8) 121):
	{
		{
			NI i_255150;
			NI HEX3Atmp_255187;
			NI LOC62;
			NI res_255190;
			i_255150 = 0;
			HEX3Atmp_255187 = 0;
			LOC62 = 0;
			LOC62 = sonslen_194403(n);
			HEX3Atmp_255187 = (NI)(LOC62 - ((NI) 1));
			res_255190 = ((NI) 0);
			{
				while (1) {
					NimStringDesc* LOC65;
					if (!(res_255190 <= HEX3Atmp_255187)) goto LA64;
					i_255150 = res_255190;
					LOC65 = 0;
					LOC65 = getmodulename_252018((*n).kindU.S6.sons->data[i_255150]);
					addincldep_253043(w, LOC65);
					res_255190 += ((NI) 1);
				} LA64: ;
			}
		}
	}
	break;
	case ((NU8) 90):
	{
		addstmt_253057(w, n);
	}
	break;
	default:
	{
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, writerod_253064)(Trodwriter253005* w) {
	FILE* f;
	NimStringDesc* id;
	NimStringDesc* orig;
	NimStringDesc* crc;
	NimStringDesc* options;
	NimStringDesc* goptions;
	NimStringDesc* cmd;
	NimStringDesc* files;
{	processstacks_254700(w, NIM_TRUE);
	f = 0;
	{
		NimStringDesc* LOC3;
		NimStringDesc* LOC4;
		NimStringDesc* LOC5;
		NimStringDesc* LOC6;
		NIM_BOOL LOC7;
		LOC3 = 0;
		LOC3 = tofilename_165266(((NI32) ((*(*w).module).position)));
		LOC4 = 0;
		LOC4 = withpackagename_155944(LOC3);
		LOC5 = 0;
		LOC5 = noschangeFileExt(LOC4, ((NimStringDesc*) &TMP4243));
		LOC6 = 0;
		LOC6 = completegeneratedfilepath_156001(LOC5, NIM_TRUE);
		LOC7 = 0;
		LOC7 = open_13203(&f, LOC6, ((NU8) 1), ((NI) -1));
		if (!!(LOC7)) goto LA8;
		goto BeforeRet;
	}
	LA8: ;
	write_13457(f, ((NimStringDesc*) &TMP4244));
	write_13457(f, ((NimStringDesc*) &TMP4245));
	write_13457(f, ((NimStringDesc*) &TMP4234));
	id = copyString(((NimStringDesc*) &TMP4246));
	encodevint_198296((*(*w).module).Sup.id, (&id));
	write_13457(f, id);
	write_13457(f, ((NimStringDesc*) &TMP4234));
	orig = copyString(((NimStringDesc*) &TMP4247));
	encodestr_198042((*w).origfile, (&orig));
	write_13457(f, orig);
	write_13457(f, ((NimStringDesc*) &TMP4234));
	crc = copyString(((NimStringDesc*) &TMP4248));
	encodevint_198296(((NI) ((*w).crc)), (&crc));
	write_13457(f, crc);
	write_13457(f, ((NimStringDesc*) &TMP4234));
	options = copyString(((NimStringDesc*) &TMP4249));
	encodevint_198296(((NI) (((NI32) ((*w).options)))), (&options));
	write_13457(f, options);
	write_13457(f, ((NimStringDesc*) &TMP4234));
	goptions = copyString(((NimStringDesc*) &TMP4250));
	encodevint_198296(((NI) (((NI32) (gglobaloptions_155128)))), (&goptions));
	write_13457(f, goptions);
	write_13457(f, ((NimStringDesc*) &TMP4234));
	cmd = copyString(((NimStringDesc*) &TMP4251));
	encodevint_198296(((NI) (((NI32) (gcmd_155130)))), (&cmd));
	write_13457(f, cmd);
	write_13457(f, ((NimStringDesc*) &TMP4234));
	write_13457(f, ((NimStringDesc*) &TMP4252));
	write_13457(f, (*w).defines);
	write_13457(f, ((NimStringDesc*) &TMP4234));
	files = copyString(((NimStringDesc*) &TMP4253));
	{
		NI i_254873;
		NI HEX3Atmp_254947;
		NI res_254950;
		i_254873 = 0;
		HEX3Atmp_254947 = 0;
		HEX3Atmp_254947 = ((*w).files ? ((*w).files->Sup.len-1) : -1);
		res_254950 = ((NI) 0);
		{
			while (1) {
				if (!(res_254950 <= HEX3Atmp_254947)) goto LA12;
				i_254873 = res_254950;
				encodestr_198042((*w).files->data[i_254873], (&files));
				files = resizeString(files, 1);
appendString(files, ((NimStringDesc*) &TMP4234));
				res_254950 += ((NI) 1);
			} LA12: ;
		}
	}
	write_13457(f, files);
	write_13457(f, ((NimStringDesc*) &TMP4254));
	write_13457(f, ((NimStringDesc*) &TMP4255));
	write_13457(f, (*w).incldeps);
	write_13457(f, ((NimStringDesc*) &TMP4254));
	write_13457(f, ((NimStringDesc*) &TMP4256));
	write_13457(f, (*w).moddeps);
	write_13457(f, ((NimStringDesc*) &TMP4234));
	write_13457(f, ((NimStringDesc*) &TMP4257));
	write_13457(f, (*w).interf);
	write_13457(f, ((NimStringDesc*) &TMP4254));
	write_13457(f, ((NimStringDesc*) &TMP4258));
	write_13457(f, (*w).compilerprocs);
	write_13457(f, ((NimStringDesc*) &TMP4254));
	write_13457(f, ((NimStringDesc*) &TMP4259));
	write_13457(f, (*w).index.r);
	write_13457(f, ((NimStringDesc*) &TMP4254));
	write_13457(f, ((NimStringDesc*) &TMP4260));
	write_13457(f, (*w).imports.r);
	write_13457(f, ((NimStringDesc*) &TMP4254));
	write_13457(f, ((NimStringDesc*) &TMP4261));
	write_13457(f, (*w).converters);
	write_13457(f, ((NimStringDesc*) &TMP4234));
	write_13457(f, ((NimStringDesc*) &TMP4262));
	write_13457(f, (*w).methods);
	write_13457(f, ((NimStringDesc*) &TMP4234));
	write_13457(f, ((NimStringDesc*) &TMP4263));
	write_13457(f, (*w).init);
	write_13457(f, ((NimStringDesc*) &TMP4254));
	write_13457(f, ((NimStringDesc*) &TMP4264));
	write_13457(f, (*w).data);
	write_13457(f, ((NimStringDesc*) &TMP4254));
	write_13457(f, ((NimStringDesc*) &TMP4265));
	fclose(f);
	}BeforeRet: ;
}

N_NIMCALL(Tnode191813*, myclose_255267)(Tpasscontext242005* c, Tnode191813* n) {
	Tnode191813* result;
	Trodwriter253005* w;
	NimStringDesc* LOC1;
	result = 0;
	result = process_254969(c, n);
	w = ((Trodwriter253005*) (c));
	writerod_253064(w);
	LOC1 = 0;
	LOC1 = HEX2F_119292(gprojectpath_155235, gprojectname_155234);
	savemaxids_190472(LOC1);
	return result;
}
NIM_EXTERNC N_NOINLINE(void, nimsrc_rodwriteInit)(void) {
}

NIM_EXTERNC N_NOINLINE(void, nimsrc_rodwriteDatInit)(void) {
static TNimNode* TMP4228[18];
static TNimNode TMP836[19];
NTI253005.size = sizeof(Trodwriter253005);
NTI253005.kind = 17;
NTI253005.base = (&NTI242005);
TMP4228[0] = &TMP836[1];
TMP836[1].kind = 1;
TMP836[1].offset = offsetof(Trodwriter253005, module);
TMP836[1].typ = (&NTI191811);
TMP836[1].name = "module";
TMP4228[1] = &TMP836[2];
TMP836[2].kind = 1;
TMP836[2].offset = offsetof(Trodwriter253005, crc);
TMP836[2].typ = (&NTI170015);
TMP836[2].name = "crc";
TMP4228[2] = &TMP836[3];
TMP836[3].kind = 1;
TMP836[3].offset = offsetof(Trodwriter253005, options);
TMP836[3].typ = (&NTI155016);
TMP836[3].name = "options";
TMP4228[3] = &TMP836[4];
TMP836[4].kind = 1;
TMP836[4].offset = offsetof(Trodwriter253005, defines);
TMP836[4].typ = (&NTI149);
TMP836[4].name = "defines";
TMP4228[4] = &TMP836[5];
TMP836[5].kind = 1;
TMP836[5].offset = offsetof(Trodwriter253005, incldeps);
TMP836[5].typ = (&NTI149);
TMP836[5].name = "inclDeps";
TMP4228[5] = &TMP836[6];
TMP836[6].kind = 1;
TMP836[6].offset = offsetof(Trodwriter253005, moddeps);
TMP836[6].typ = (&NTI149);
TMP836[6].name = "modDeps";
TMP4228[6] = &TMP836[7];
TMP836[7].kind = 1;
TMP836[7].offset = offsetof(Trodwriter253005, interf);
TMP836[7].typ = (&NTI149);
TMP836[7].name = "interf";
TMP4228[7] = &TMP836[8];
TMP836[8].kind = 1;
TMP836[8].offset = offsetof(Trodwriter253005, compilerprocs);
TMP836[8].typ = (&NTI149);
TMP836[8].name = "compilerProcs";
TMP4228[8] = &TMP836[9];
TMP836[9].kind = 1;
TMP836[9].offset = offsetof(Trodwriter253005, index);
TMP836[9].typ = (&NTI234028);
TMP836[9].name = "index";
TMP4228[9] = &TMP836[10];
TMP836[10].kind = 1;
TMP836[10].offset = offsetof(Trodwriter253005, imports);
TMP836[10].typ = (&NTI234028);
TMP836[10].name = "imports";
TMP4228[10] = &TMP836[11];
TMP836[11].kind = 1;
TMP836[11].offset = offsetof(Trodwriter253005, converters);
TMP836[11].typ = (&NTI149);
TMP836[11].name = "converters";
TMP4228[11] = &TMP836[12];
TMP836[12].kind = 1;
TMP836[12].offset = offsetof(Trodwriter253005, methods);
TMP836[12].typ = (&NTI149);
TMP836[12].name = "methods";
TMP4228[12] = &TMP836[13];
TMP836[13].kind = 1;
TMP836[13].offset = offsetof(Trodwriter253005, init);
TMP836[13].typ = (&NTI149);
TMP836[13].name = "init";
TMP4228[13] = &TMP836[14];
TMP836[14].kind = 1;
TMP836[14].offset = offsetof(Trodwriter253005, data);
TMP836[14].typ = (&NTI149);
TMP836[14].name = "data";
TMP4228[14] = &TMP836[15];
TMP836[15].kind = 1;
TMP836[15].offset = offsetof(Trodwriter253005, sstack);
TMP836[15].typ = (&NTI191815);
TMP836[15].name = "sstack";
TMP4228[15] = &TMP836[16];
TMP836[16].kind = 1;
TMP836[16].offset = offsetof(Trodwriter253005, tstack);
TMP836[16].typ = (&NTI191845);
TMP836[16].name = "tstack";
TMP4228[16] = &TMP836[17];
TMP836[17].kind = 1;
TMP836[17].offset = offsetof(Trodwriter253005, files);
TMP836[17].typ = (&NTI122008);
TMP836[17].name = "files";
TMP4228[17] = &TMP836[18];
TMP836[18].kind = 1;
TMP836[18].offset = offsetof(Trodwriter253005, origfile);
TMP836[18].typ = (&NTI149);
TMP836[18].name = "origFile";
TMP836[0].len = 18; TMP836[0].kind = 2; TMP836[0].sons = &TMP4228[0];
NTI253005.node = &TMP836[0];
NTI253007.size = sizeof(Trodwriter253005*);
NTI253007.kind = 22;
NTI253007.base = (&NTI253005);
NTI253007.marker = TMP4229;
}

