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

#include <string.h>
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tnode225816 tnode225816;
typedef struct ttype225852 ttype225852;
typedef struct tlineinfo195539 tlineinfo195539;
typedef struct tsym225846 tsym225846;
typedef struct tident200021 tident200021;
typedef struct tnodeseq225810 tnodeseq225810;
typedef struct tidobj200015 tidobj200015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct TY120008 TY120008;
typedef struct ttypeseq225848 ttypeseq225848;
typedef struct tscope225840 tscope225840;
typedef struct TY225947 TY225947;
typedef struct tinstantiation225836 tinstantiation225836;
typedef struct tstrtable225820 tstrtable225820;
typedef struct tsymseq225818 tsymseq225818;
typedef struct tloc225830 tloc225830;
typedef struct trope177009 trope177009;
typedef struct tlib225834 tlib225834;
typedef struct tcell45135 tcell45135;
typedef struct tcellseq45151 tcellseq45151;
typedef struct tgcheap47216 tgcheap47216;
typedef struct tcellset45147 tcellset45147;
typedef struct tpagedesc45143 tpagedesc45143;
typedef struct tmemregion27410 tmemregion27410;
typedef struct tsmallchunk26640 tsmallchunk26640;
typedef struct tllchunk27404 tllchunk27404;
typedef struct tbigchunk26642 tbigchunk26642;
typedef struct tintset26617 tintset26617;
typedef struct ttrunk26613 ttrunk26613;
typedef struct tavlnode27408 tavlnode27408;
typedef struct tgcstat47214 tgcstat47214;
typedef struct TY225936 TY225936;
typedef struct tlistentry127022 tlistentry127022;
typedef struct tbasechunk26638 tbasechunk26638;
typedef struct tfreecell26630 tfreecell26630;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  tlineinfo195539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
struct  tnode225816  {
ttype225852* Typ;
tlineinfo195539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym225846* Sym;
} S4;
struct {tident200021* Ident;
} S5;
struct {tnodeseq225810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
typedef N_NIMCALL_PTR(void, TY3089) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3094) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3089 marker;
TY3094 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  tidobj200015  {
  TNimObject Sup;
NI Id;
};
struct  tident200021  {
  tidobj200015 Sup;
NimStringDesc* S;
tident200021* Next;
NI H;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  tstrtable225820  {
NI Counter;
tsymseq225818* Data;
};
struct  tloc225830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype225852* T;
trope177009* R;
trope177009* Heaproot;
};
struct  tsym225846  {
  tidobj200015 Sup;
NU8 Kind;
union {
struct {ttypeseq225848* Typeinstcache;
tscope225840* Typscope;
} S1;
struct {TY225947* Procinstcache;
tscope225840* Scope;
} S2;
struct {TY225947* Usedgenerics;
tstrtable225820 Tab;
} S3;
struct {tsym225846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype225852* Typ;
tident200021* Name;
tlineinfo195539 Info;
tsym225846* Owner;
NU32 Flags;
tnode225816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc225830 Loc;
tlib225834* Annex;
tnode225816* Constraint;
};
struct  tcell45135  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq45151  {
NI Len;
NI Cap;
tcell45135** D;
};
struct  tcellset45147  {
NI Counter;
NI Max;
tpagedesc45143* Head;
tpagedesc45143** Data;
};
typedef tsmallchunk26640* TY27422[512];
typedef ttrunk26613* ttrunkbuckets26615[256];
struct  tintset26617  {
ttrunkbuckets26615 Data;
};
struct  tmemregion27410  {
NI Minlargeobj;
NI Maxlargeobj;
TY27422 Freesmallchunks;
tllchunk27404* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk26642* Freechunkslist;
tintset26617 Chunkstarts;
tavlnode27408* Root;
tavlnode27408* Deleted;
tavlnode27408* Last;
tavlnode27408* Freeavlnodes;
};
struct  tgcstat47214  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap47216  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq45151 Zct;
tcellseq45151 Decstack;
tcellset45147 Cycleroots;
tcellseq45151 Tempstack;
NI Recgclock;
tmemregion27410 Region;
tgcstat47214 Stat;
};
struct  ttype225852  {
  tidobj200015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq225848* Sons;
tnode225816* N;
tsym225846* Owner;
tsym225846* Sym;
tsym225846* Destructor;
tsym225846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc225830 Loc;
};
struct  tscope225840  {
NI Depthlevel;
tstrtable225820 Symbols;
tnodeseq225810* Usingsyms;
tscope225840* Parent;
};
struct  tinstantiation225836  {
tsym225846* Sym;
ttypeseq225848* Concretetypes;
TY225936* Usedby;
};
struct  trope177009  {
  TNimObject Sup;
trope177009* Left;
trope177009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tlistentry127022  {
  TNimObject Sup;
tlistentry127022* Prev;
tlistentry127022* Next;
};
struct  tlib225834  {
  tlistentry127022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope177009* Name;
tnode225816* Path;
};
typedef NI TY26620[16];
struct  tpagedesc45143  {
tpagedesc45143* Next;
NI Key;
TY26620 Bits;
};
struct  tbasechunk26638  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk26640  {
  tbasechunk26638 Sup;
tsmallchunk26640* Next;
tsmallchunk26640* Prev;
tfreecell26630* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk27404  {
NI Size;
NI Acc;
tllchunk27404* Next;
};
struct  tbigchunk26642  {
  tbasechunk26638 Sup;
tbigchunk26642* Next;
tbigchunk26642* Prev;
NI Align;
NF Data;
};
struct  ttrunk26613  {
ttrunk26613* Next;
NI Key;
TY26620 Bits;
};
typedef tavlnode27408* TY27414[2];
struct  tavlnode27408  {
TY27414 Link;
NI Key;
NI Upperbound;
NI Level;
};
struct  tfreecell26630  {
tfreecell26630* Next;
NI Zerofield;
};
struct tnodeseq225810 {
  TGenericSeq Sup;
  tnode225816* data[SEQ_DECL_SIZE];
};
struct TY120008 {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct ttypeseq225848 {
  TGenericSeq Sup;
  ttype225852* data[SEQ_DECL_SIZE];
};
struct TY225947 {
  TGenericSeq Sup;
  tinstantiation225836* data[SEQ_DECL_SIZE];
};
struct tsymseq225818 {
  TGenericSeq Sup;
  tsym225846* data[SEQ_DECL_SIZE];
};
struct TY225936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
static N_INLINE(NI, len_226364)(tnode225816* n);
N_NIMCALL(NimStringDesc*, renderplainsymbolname_397013)(tnode225816* n);
static N_INLINE(tnode225816*, HEX5BHEX5D_226698)(tnode225816* n, NI i);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NimStringDesc*, renderdefinitionname_250134)(tsym225846* s, NIM_BOOL noquotes);
N_NIMCALL(void, internalerror_197987)(tlineinfo195539 info, NimStringDesc* errmsg);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, reprEnum)(NI e_81107, TNimType* typ);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, renderparamtypes_399467)(TY120008** found, tnode225816* n);
N_NIMCALL(NimStringDesc*, rendertype_397222)(tnode225816* n);
N_NIMCALL(NimStringDesc*, typetostring_263031)(ttype225852* typ, NU8 prefer);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(tcell45135*, usrtocell_48846)(void* usr);
static N_INLINE(void, rtladdzct_50404)(tcell45135* c);
N_NOINLINE(void, addzct_48817)(tcellseq45151* s, tcell45135* c);
N_NIMCALL(NimStringDesc*, nsuJoinSep)(NimStringDesc** a, NI aLen0, NimStringDesc* sep);
STRING_LITERAL(TMP4659, "", 0);
STRING_LITERAL(TMP4660, "*", 1);
STRING_LITERAL(TMP4661, "renderPlainSymbolName() with ", 29);
STRING_LITERAL(TMP4668, "ref.", 4);
STRING_LITERAL(TMP4669, "ptr.", 4);
STRING_LITERAL(TMP4670, "proc(", 5);
STRING_LITERAL(TMP4671, "tuple[", 6);
STRING_LITERAL(TMP4672, "renderParamTypes(found,n) with ", 31);
extern TNimType NTI225029; /* TNodeKind */
extern TNimType NTI120008; /* seq[string] */
extern tgcheap47216 gch_47244;

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

static N_INLINE(tnode225816*, HEX5BHEX5D_226698)(tnode225816* n, NI i) {
	tnode225816* result;
	result = 0;
	result = (*n).kindU.S6.Sons->data[i];
	return result;
}

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)), (NI32)((*a).Sup.len * 1));
	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)), (NI32)((*src).Sup.len + 1));
	(*dest).Sup.len += (*src).Sup.len;
}

N_NIMCALL(NimStringDesc*, renderplainsymbolname_397013)(tnode225816* n) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP4659));
	switch ((*n).Kind) {
	case ((NU8) 31):
	{
		{
			NI i_397038;
			NI HEX3Atmp_397202;
			NI LOC3;
			NI res_397205;
			i_397038 = 0;
			HEX3Atmp_397202 = 0;
			LOC3 = 0;
			LOC3 = len_226364(n);
			HEX3Atmp_397202 = (LOC3 - 1);
			res_397205 = 0;
			{
				while (1) {
					NI LOC6;
					tnode225816* LOC7;
					if (!(res_397205 <= HEX3Atmp_397202)) goto LA5;
					i_397038 = res_397205;
					LOC6 = 0;
					LOC6 = len_226364(n);
					LOC7 = 0;
					LOC7 = HEX5BHEX5D_226698(n, (LOC6 - 1));
					result = renderplainsymbolname_397013(LOC7);
					{
						if (!(0 < result->Sup.len)) goto LA10;
						goto BeforeRet;
					}
					LA10: ;
					res_397205 += 1;
				} LA5: ;
			}
		}
	}
	break;
	case ((NU8) 2):
	{
		{
			if (!!(eqStrings((*(*n).kindU.S5.Ident).S, ((NimStringDesc*) &TMP4660)))) goto LA15;
			result = copyString((*(*n).kindU.S5.Ident).S);
		}
		LA15: ;
	}
	break;
	case ((NU8) 3):
	{
		result = renderdefinitionname_250134((*n).kindU.S4.Sym, NIM_TRUE);
	}
	break;
	case ((NU8) 43):
	{
		tnode225816* LOC19;
		LOC19 = 0;
		LOC19 = HEX5BHEX5D_226698(n, 0);
		result = renderplainsymbolname_397013(LOC19);
	}
	break;
	case ((NU8) 53):
	{
		NI LOC21;
		tnode225816* LOC22;
		LOC21 = 0;
		LOC21 = len_226364(n);
		LOC22 = 0;
		LOC22 = HEX5BHEX5D_226698(n, (LOC21 - 1));
		result = renderplainsymbolname_397013(LOC22);
	}
	break;
	default:
	{
		NimStringDesc* LOC24;
		LOC24 = 0;
		LOC24 = rawNewString(reprEnum((*n).Kind, (&NTI225029))->Sup.len + 29);
appendString(LOC24, ((NimStringDesc*) &TMP4661));
appendString(LOC24, reprEnum((*n).Kind, (&NTI225029)));
		internalerror_197987((*n).Info, LOC24);
	}
	break;
	}
	BeforeRet: ;
	return result;
}

static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c) {
	(*dest).data[((*dest).Sup.len)- 0] = c;
	(*dest).data[((NI32)((*dest).Sup.len + 1))- 0] = 0;
	(*dest).Sup.len += 1;
}

N_NIMCALL(NimStringDesc*, rendertype_397222)(tnode225816* n) {
	NimStringDesc* result;
	result = 0;
	switch ((*n).Kind) {
	case ((NU8) 2):
	{
		result = copyString((*(*n).kindU.S5.Ident).S);
	}
	break;
	case ((NU8) 3):
	{
		result = typetostring_263031((*(*n).kindU.S4.Sym).Typ, ((NU8) 0));
	}
	break;
	case ((NU8) 142):
	{
		tnode225816* LOC4;
		LOC4 = 0;
		LOC4 = HEX5BHEX5D_226698(n, 0);
		result = rendertype_397222(LOC4);
	}
	break;
	case ((NU8) 140):
	{
		NimStringDesc* LOC6;
		tnode225816* LOC7;
		NimStringDesc* LOC8;
		LOC6 = 0;
		LOC7 = 0;
		LOC7 = HEX5BHEX5D_226698(n, 0);
		LOC8 = 0;
		LOC8 = rendertype_397222(LOC7);
		LOC6 = rawNewString(LOC8->Sup.len + 4);
appendString(LOC6, ((NimStringDesc*) &TMP4668));
appendString(LOC6, LOC8);
		result = LOC6;
	}
	break;
	case ((NU8) 141):
	{
		NimStringDesc* LOC10;
		tnode225816* LOC11;
		NimStringDesc* LOC12;
		LOC10 = 0;
		LOC11 = 0;
		LOC11 = HEX5BHEX5D_226698(n, 0);
		LOC12 = 0;
		LOC12 = rendertype_397222(LOC11);
		LOC10 = rawNewString(LOC12->Sup.len + 4);
appendString(LOC10, ((NimStringDesc*) &TMP4669));
appendString(LOC10, LOC12);
		result = LOC10;
	}
	break;
	case ((NU8) 146):
	{
		tnode225816* params;
		params = HEX5BHEX5D_226698(n, 0);
		result = copyString(((NimStringDesc*) &TMP4670));
		{
			NI i_398422;
			NI HEX3Atmp_399402;
			NI LOC15;
			NI res_399405;
			i_398422 = 0;
			HEX3Atmp_399402 = 0;
			LOC15 = 0;
			LOC15 = len_226364(params);
			HEX3Atmp_399402 = (LOC15 - 1);
			res_399405 = 1;
			{
				while (1) {
					NimStringDesc* LOC18;
					tnode225816* LOC19;
					NimStringDesc* LOC20;
					if (!(res_399405 <= HEX3Atmp_399402)) goto LA17;
					i_398422 = res_399405;
					LOC18 = 0;
					LOC19 = 0;
					LOC19 = HEX5BHEX5D_226698(params, i_398422);
					LOC20 = 0;
					LOC20 = rendertype_397222(LOC19);
					LOC18 = rawNewString(LOC20->Sup.len + 1);
appendString(LOC18, LOC20);
appendChar(LOC18, 44);
					result = resizeString(result, LOC18->Sup.len + 0);
appendString(result, LOC18);
					res_399405 += 1;
				} LA17: ;
			}
		}
		result->data[(result->Sup.len - 1)] = 41;
	}
	break;
	case ((NU8) 35):
	{
		NI typepos;
		NI LOC22;
		NimStringDesc* typestr;
		tnode225816* LOC23;
		LOC22 = 0;
		LOC22 = len_226364(n);
		typepos = (NI32)(LOC22 - 2);
		LOC23 = 0;
		LOC23 = HEX5BHEX5D_226698(n, typepos);
		typestr = rendertype_397222(LOC23);
		result = copyString(typestr);
		{
			NI i_398624;
			NI HEX3Atmp_399408;
			NI res_399411;
			i_398624 = 0;
			HEX3Atmp_399408 = 0;
			HEX3Atmp_399408 = (typepos - 1);
			res_399411 = 1;
			{
				while (1) {
					NimStringDesc* LOC27;
					if (!(res_399411 <= HEX3Atmp_399408)) goto LA26;
					i_398624 = res_399411;
					LOC27 = 0;
					LOC27 = rawNewString(typestr->Sup.len + 1);
appendChar(LOC27, 44);
appendString(LOC27, typestr);
					result = resizeString(result, LOC27->Sup.len + 0);
appendString(result, LOC27);
					res_399411 += 1;
				} LA26: ;
			}
		}
	}
	break;
	case ((NU8) 134):
	{
		result = copyString(((NimStringDesc*) &TMP4671));
		{
			NI i_399022;
			NI HEX3Atmp_399414;
			NI LOC30;
			NI res_399417;
			i_399022 = 0;
			HEX3Atmp_399414 = 0;
			LOC30 = 0;
			LOC30 = len_226364(n);
			HEX3Atmp_399414 = (LOC30 - 1);
			res_399417 = 0;
			{
				while (1) {
					NimStringDesc* LOC33;
					tnode225816* LOC34;
					NimStringDesc* LOC35;
					if (!(res_399417 <= HEX3Atmp_399414)) goto LA32;
					i_399022 = res_399417;
					LOC33 = 0;
					LOC34 = 0;
					LOC34 = HEX5BHEX5D_226698(n, i_399022);
					LOC35 = 0;
					LOC35 = rendertype_397222(LOC34);
					LOC33 = rawNewString(LOC35->Sup.len + 1);
appendString(LOC33, LOC35);
appendChar(LOC33, 44);
					result = resizeString(result, LOC33->Sup.len + 0);
appendString(result, LOC33);
					res_399417 += 1;
				} LA32: ;
			}
		}
		result->data[(result->Sup.len - 1)] = 93;
	}
	break;
	case ((NU8) 42):
	{
		NimStringDesc* LOC37;
		tnode225816* LOC38;
		NimStringDesc* LOC39;
		LOC37 = 0;
		LOC38 = 0;
		LOC38 = HEX5BHEX5D_226698(n, 0);
		LOC39 = 0;
		LOC39 = rendertype_397222(LOC38);
		LOC37 = rawNewString(LOC39->Sup.len + 1);
appendString(LOC37, LOC39);
appendChar(LOC37, 91);
		result = LOC37;
		{
			NI i_399222;
			NI HEX3Atmp_399420;
			NI LOC41;
			NI res_399423;
			i_399222 = 0;
			HEX3Atmp_399420 = 0;
			LOC41 = 0;
			LOC41 = len_226364(n);
			HEX3Atmp_399420 = (LOC41 - 1);
			res_399423 = 1;
			{
				while (1) {
					NimStringDesc* LOC44;
					tnode225816* LOC45;
					NimStringDesc* LOC46;
					if (!(res_399423 <= HEX3Atmp_399420)) goto LA43;
					i_399222 = res_399423;
					LOC44 = 0;
					LOC45 = 0;
					LOC45 = HEX5BHEX5D_226698(n, i_399222);
					LOC46 = 0;
					LOC46 = rendertype_397222(LOC45);
					LOC44 = rawNewString(LOC46->Sup.len + 1);
appendString(LOC44, LOC46);
appendChar(LOC44, 44);
					result = resizeString(result, LOC44->Sup.len + 0);
appendString(result, LOC44);
					res_399423 += 1;
				} LA43: ;
			}
		}
		result->data[(result->Sup.len - 1)] = 93;
	}
	break;
	default:
	{
		result = copyString(((NimStringDesc*) &TMP4659));
	}
	break;
	}
	return result;
}

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

static N_INLINE(void, rtladdzct_50404)(tcell45135* c) {
	addzct_48817((&gch_47244.Zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	tcell45135* c;
	c = usrtocell_48846(p);
	{
		(*c).Refcount -= 8;
		if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA3;
		rtladdzct_50404(c);
	}
	LA3: ;
}

N_NIMCALL(void, renderparamtypes_399467)(TY120008** found, tnode225816* n) {
	switch ((*n).Kind) {
	case ((NU8) 76):
	{
		{
			NI i_399494;
			NI HEX3Atmp_399827;
			NI LOC3;
			NI res_399830;
			i_399494 = 0;
			HEX3Atmp_399827 = 0;
			LOC3 = 0;
			LOC3 = len_226364(n);
			HEX3Atmp_399827 = (LOC3 - 1);
			res_399830 = 1;
			{
				while (1) {
					tnode225816* LOC6;
					if (!(res_399830 <= HEX3Atmp_399827)) goto LA5;
					i_399494 = res_399830;
					LOC6 = 0;
					LOC6 = HEX5BHEX5D_226698(n, i_399494);
					renderparamtypes_399467(found, LOC6);
					res_399830 += 1;
				} LA5: ;
			}
		}
	}
	break;
	case ((NU8) 35):
	{
		NI typepos;
		NI LOC8;
		NimStringDesc* typestr;
		tnode225816* LOC9;
		LOC8 = 0;
		LOC8 = len_226364(n);
		typepos = (NI32)(LOC8 - 2);
		LOC9 = 0;
		LOC9 = HEX5BHEX5D_226698(n, typepos);
		typestr = rendertype_397222(LOC9);
		{
			NIM_BOOL LOC12;
			tnode225816* LOC14;
			ttype225852* typ;
			tnode225816* LOC17;
			LOC12 = 0;
			LOC12 = (typestr->Sup.len < 1);
			if (!(LOC12)) goto LA13;
			LOC14 = 0;
			LOC14 = HEX5BHEX5D_226698(n, (NI32)(typepos + 1));
			LOC12 = !(((*LOC14).Kind == ((NU8) 1)));
			LA13: ;
			if (!LOC12) goto LA15;
			LOC17 = 0;
			LOC17 = HEX5BHEX5D_226698(n, (NI32)(typepos + 1));
			typ = (*LOC17).Typ;
			{
				if (!!(typ == 0)) goto LA20;
				typestr = typetostring_263031(typ, ((NU8) 2));
			}
			LA20: ;
			{
				if (!(typestr->Sup.len < 1)) goto LA24;
				goto BeforeRet;
			}
			LA24: ;
		}
		LA15: ;
		{
			NI i_399646;
			NI HEX3Atmp_399833;
			NI res_399836;
			i_399646 = 0;
			HEX3Atmp_399833 = 0;
			HEX3Atmp_399833 = (typepos - 1);
			res_399836 = 0;
			{
				while (1) {
					NimStringDesc* LOC29;
					if (!(res_399836 <= HEX3Atmp_399833)) goto LA28;
					i_399646 = res_399836;
					(*found) = (TY120008*) incrSeq(&((*found))->Sup, sizeof(NimStringDesc*));
					LOC29 = 0;
					LOC29 = (*found)->data[(*found)->Sup.len-1]; (*found)->data[(*found)->Sup.len-1] = copyStringRC1(typestr);
					if (LOC29) nimGCunrefNoCycle(LOC29);
					res_399836 += 1;
				} LA28: ;
			}
		}
	}
	break;
	default:
	{
		NimStringDesc* LOC31;
		LOC31 = 0;
		LOC31 = rawNewString(reprEnum((*n).Kind, (&NTI225029))->Sup.len + 31);
appendString(LOC31, ((NimStringDesc*) &TMP4672));
appendString(LOC31, reprEnum((*n).Kind, (&NTI225029)));
		internalerror_197987((*n).Info, LOC31);
	}
	break;
	}
	BeforeRet: ;
}

N_NIMCALL(NimStringDesc*, renderparamtypes_399862)(tnode225816* n, NimStringDesc* sep) {
	NimStringDesc* result;
	TY120008* found;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP4659));
	found = (TY120008*) newSeq((&NTI120008), 0);
	renderparamtypes_399467((&found), n);
	{
		if (!(0 < found->Sup.len)) goto LA3;
		result = nsuJoinSep(found->data, found->Sup.len, sep);
	}
	LA3: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, HEX00_typesrendererInit)(void) {
}

NIM_EXTERNC N_NOINLINE(void, HEX00_typesrendererDatInit)(void) {
}

