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

#include "nimbase.h"
#include <string.h>
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef far
#undef powerpc
#undef unix
#define nimfr_(x, y)
#define nimln_(x, y)
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw;
typedef struct tyObject_TType__v9ae2Dpu13OW2ZJ2U9bNMd9cQ tyObject_TType__v9ae2Dpu13OW2ZJ2U9bNMd9cQ;
typedef struct tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q;
typedef struct tyObject_TSym__JpsEh5i1AcKChGYbg7aV4w tyObject_TSym__JpsEh5i1AcKChGYbg7aV4w;
typedef struct tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA;
typedef struct tySequence__ehmV9bTklH2Gt9cXHV9c0HLeQ tySequence__ehmV9bTklH2Gt9cXHV9c0HLeQ;
typedef struct tyObject_TIdObj__iIXPrEsiKHiioLj0HSkQhA tyObject_TIdObj__iIXPrEsiKHiioLj0HSkQhA;
typedef struct RootObj RootObj;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct tySequence__Ef05srmQTDulnBdXR4Ja6Q tySequence__Ef05srmQTDulnBdXR4Ja6Q;
typedef struct tySequence__DXS6mEo7PVUFJkirsQ9bNQA tySequence__DXS6mEo7PVUFJkirsQ9bNQA;
typedef struct tyObject_TStrTable__f07aOS3dr28kGa5wcE29aFA tyObject_TStrTable__f07aOS3dr28kGa5wcE29aFA;
typedef struct tySequence__DfgJFJEYoj4YBAHLZPl5lQ tySequence__DfgJFJEYoj4YBAHLZPl5lQ;
typedef struct tyObject_TLoc__EtHNvCB0bgfu9bFjzx9cb6aA tyObject_TLoc__EtHNvCB0bgfu9bFjzx9cb6aA;
typedef struct tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA;
typedef struct tyObject_TLib__NBMxlJ6g3utqUlplqTTHkA tyObject_TLib__NBMxlJ6g3utqUlplqTTHkA;
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
typedef struct tyObject_TInstantiation__5LqgVn6Tq9ainQRK7TQAQxA tyObject_TInstantiation__5LqgVn6Tq9ainQRK7TQAQxA;
struct TGenericSeq {
NI len;
NI reserved;
};
struct NimStringDesc {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q {
NU16 line;
NI16 col;
NI32 fileIndex;
};
typedef NU32 tySet_tyEnum_TNodeFlag__jyh9acXHkhZANSSvPIY7ZLg;
typedef NU8 tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw;
struct tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw {
tyObject_TType__v9ae2Dpu13OW2ZJ2U9bNMd9cQ* typ;
tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info;
tySet_tyEnum_TNodeFlag__jyh9acXHkhZANSSvPIY7ZLg flags;
tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw kind;
union{
struct {NI64 intVal;
};
struct {NF floatVal;
};
struct {NimStringDesc* strVal;
};
struct {tyObject_TSym__JpsEh5i1AcKChGYbg7aV4w* sym;
};
struct {tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA* ident;
};
struct {tySequence__ehmV9bTklH2Gt9cXHV9c0HLeQ* sons;
};
};
NimStringDesc* comment;
};
typedef NU8 tySet_tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw[21];
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
struct TNimType {
NI size;
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
TNimType* base;
TNimNode* node;
void* finalizer;
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
};
struct RootObj {
TNimType* m_type;
};
struct tyObject_TIdObj__iIXPrEsiKHiioLj0HSkQhA {
  RootObj Sup;
NI id;
};
struct tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA {
  tyObject_TIdObj__iIXPrEsiKHiioLj0HSkQhA Sup;
NimStringDesc* s;
tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA* next;
NI h;
};
typedef NU8 tyEnum_TPreferedDesc__tnd4qt9c4xddV8oKV5zyusw;
typedef NU8 tyEnum_TSymKind__cNCW9acsSznmEccl1fgQwkw;
struct tyObject_TStrTable__f07aOS3dr28kGa5wcE29aFA {
NI counter;
tySequence__DfgJFJEYoj4YBAHLZPl5lQ* data;
};
typedef NU16 tyEnum_TMagic__shZhZOdbVC5nnFvcXQAImg;
typedef NU64 tySet_tyEnum_TSymFlag__K9ay6LWMat9bUiT9bIbMxpDHw;
typedef NU32 tySet_tyEnum_TOption__WspMeQySXNP2XoTWR5MTgg;
typedef NU8 tyEnum_TLocKind__O7PRFZKuiBBWbku09cayVBg;
typedef NU8 tyEnum_TStorageLoc__JK9cKMX3XnqHaUky9b6gkGEw;
typedef NU16 tySet_tyEnum_TLocFlag__o2bqJgR4ceIupnUSpxiudA;
struct tyObject_TLoc__EtHNvCB0bgfu9bFjzx9cb6aA {
tyEnum_TLocKind__O7PRFZKuiBBWbku09cayVBg k;
tyEnum_TStorageLoc__JK9cKMX3XnqHaUky9b6gkGEw storage;
tySet_tyEnum_TLocFlag__o2bqJgR4ceIupnUSpxiudA flags;
tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* lode;
tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* r;
};
struct tyObject_TSym__JpsEh5i1AcKChGYbg7aV4w {
  tyObject_TIdObj__iIXPrEsiKHiioLj0HSkQhA Sup;
tyEnum_TSymKind__cNCW9acsSznmEccl1fgQwkw kind;
union{
struct {tySequence__Ef05srmQTDulnBdXR4Ja6Q* typeInstCache;
};
struct {tySequence__DXS6mEo7PVUFJkirsQ9bNQA* procInstCache;
tyObject_TSym__JpsEh5i1AcKChGYbg7aV4w* gcUnsafetyReason;
tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* transformedBody;
};
struct {tySequence__DXS6mEo7PVUFJkirsQ9bNQA* usedGenerics;
tyObject_TStrTable__f07aOS3dr28kGa5wcE29aFA tab;
};
struct {tyObject_TSym__JpsEh5i1AcKChGYbg7aV4w* guard;
NI bitsize;
};
};
tyEnum_TMagic__shZhZOdbVC5nnFvcXQAImg magic;
tyObject_TType__v9ae2Dpu13OW2ZJ2U9bNMd9cQ* typ;
tyObject_TIdent__GufRQq9c0miSybX3zBD4tyA* name;
tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info;
tyObject_TSym__JpsEh5i1AcKChGYbg7aV4w* owner;
tySet_tyEnum_TSymFlag__K9ay6LWMat9bUiT9bIbMxpDHw flags;
tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* ast;
tySet_tyEnum_TOption__WspMeQySXNP2XoTWR5MTgg options;
NI position;
NI offset;
tyObject_TLoc__EtHNvCB0bgfu9bFjzx9cb6aA loc;
tyObject_TLib__NBMxlJ6g3utqUlplqTTHkA* annex;
tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* constraint;
};
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {
tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {
NI refcount;
TNimType* typ;
};
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {
void* bottom;
};
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {
NI len;
NI cap;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
};
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512];
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {
tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
};
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {
tyArray__0aOLqZchNi8nWtMTi8ND8w link;
NI key;
NI upperBound;
NI level;
};
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
NI Field1;
};
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {
NI len;
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
};
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {
NI minLargeObj;
NI maxLargeObj;
tyArray__SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks;
NU32 flBitmap;
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
NI currMem;
NI maxMem;
NI freeMem;
NI occ;
NI lastSize;
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
NIM_BOOL locked;
NIM_BOOL blockChunkSizeIncrease;
NI nextChunkSize;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
};
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {
NI stackScans;
NI cycleCollections;
NI maxThreshold;
NI maxStackSize;
NI maxStackCells;
NI cycleTableSize;
NI64 maxPause;
};
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {
NI counter;
NI max;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
};
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {
tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
NI cycleThreshold;
NI zctThreshold;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
NI recGcLock;
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
NI gcThreadId;
};
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct tySequence__ehmV9bTklH2Gt9cXHV9c0HLeQ {
  TGenericSeq Sup;
  tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* data[SEQ_DECL_SIZE];
};
struct tySequence__Ef05srmQTDulnBdXR4Ja6Q {
  TGenericSeq Sup;
  tyObject_TType__v9ae2Dpu13OW2ZJ2U9bNMd9cQ* data[SEQ_DECL_SIZE];
};
struct tySequence__DXS6mEo7PVUFJkirsQ9bNQA {
  TGenericSeq Sup;
  tyObject_TInstantiation__5LqgVn6Tq9ainQRK7TQAQxA* data[SEQ_DECL_SIZE];
};
struct tySequence__DfgJFJEYoj4YBAHLZPl5lQ {
  TGenericSeq Sup;
  tyObject_TSym__JpsEh5i1AcKChGYbg7aV4w* data[SEQ_DECL_SIZE];
};
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, renderPlainSymbolName__0mm4u02iK86TVZPOApjzQA)(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n);
N_NOINLINE(void, raiseFieldError)(NimStringDesc* f);
static N_INLINE(NI, len__P89cqdlERShb9alU3iC0yj8wast)(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n);
static N_INLINE(NI, subInt)(NI a, NI b);
N_NOINLINE(void, raiseOverflow)(void);
N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, renderDefinitionName__l9ckhTtdY2uD8Mjq9cwreZDA)(tyObject_TSym__JpsEh5i1AcKChGYbg7aV4w* s, NIM_BOOL noQuotes);
N_LIB_PRIVATE N_NIMCALL(void, renderParamTypes__nsr8uxcmlhx5QS6xeTtlLA)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ** found, tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n);
static N_INLINE(NI, addInt)(NI a, NI b);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, renderType__0mm4u02iK86TVZPOApjzQA_2)(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, typeToString__QlvraUan7WbHowhAbvDvdA)(tyObject_TType__v9ae2Dpu13OW2ZJ2U9bNMd9cQ* typ, tyEnum_TPreferedDesc__tnd4qt9c4xddV8oKV5zyusw prefer);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
static N_INLINE(void, copyMem__M04YC71iJg1N7gBF3HZTngsystem)(void* dest, void* source, NI size);
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___qX5C9b0n9bOP7jk69amC8dA7A)(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuJoinSep)(NimStringDesc** a, NI aLen_0, NimStringDesc* sep);
extern TNimType NTI__sM4lkSb7zS6F7OVMvW9cffQ_;
extern tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
static NIM_CONST tySet_tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw TM__SgHDIVcSir4dkKoe0Xsi0A_2 = {
0xec, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_3, "\'sons\' is not accessible using discriminant \'kind\' of type \'TNo"
"de\'", 66);
static NIM_CONST tySet_tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw TM__SgHDIVcSir4dkKoe0Xsi0A_5 = {
0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_6, "\'ident\' is not accessible using discriminant \'kind\' of type \'TN"
"ode\'", 67);
static NIM_CONST tySet_tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw TM__SgHDIVcSir4dkKoe0Xsi0A_7 = {
0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_8, "\'sym\' is not accessible using discriminant \'kind\' of type \'TNod"
"e\'", 65);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_11, "typesrenderer.nim(96, 12) `typePos > 0` ", 40);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_12, "var", 3);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_13, "ref.", 4);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_14, "ref", 3);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_15, "ptr.", 4);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_16, "ptr", 3);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_17, "typesrenderer.nim(54, 12) `len(n) != 1` ", 40);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_18, "typesrenderer.nim(57, 14) `params.kind == nkFormalParams` ", 58);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_19, "typesrenderer.nim(58, 14) `len(params) > 0` ", 44);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_20, "proc(", 5);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_23, "proc", 4);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_24, "typesrenderer.nim(65, 12) `len(n) >= 3` ", 40);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_26, "typesrenderer.nim(70, 14) `n[i].kind == nkIdent` ", 49);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_28, "tuple[", 6);
STRING_LITERAL(TM__SgHDIVcSir4dkKoe0Xsi0A_31, "typesrenderer.nim(77, 12) `len(n) >= 2` ", 40);
static N_INLINE(NI, len__P89cqdlERShb9alU3iC0yj8wast)(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n) {	NI result;
	NI T1_;
	result = (NI)0;
	if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
	T1_ = ((*n).sons ? (*n).sons->Sup.len : 0);
	result = T1_;
	return result;
}
static N_INLINE(NI, subInt)(NI a, NI b) {	NI result;
{	result = (NI)0;
	result = (NI)((NU32)(a) - (NU32)(b));
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (((NI) 0) <= (NI)(result ^ a));
		if (T3_) goto LA4_;
		T3_ = (((NI) 0) <= (NI)(result ^ (NI)((NU32) ~(b))));
		LA4_: ;
		if (!T3_) goto LA5_;
		goto BeforeRet_;
	}
	LA5_: ;
	raiseOverflow();
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, renderPlainSymbolName__0mm4u02iK86TVZPOApjzQA)(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n) {	NimStringDesc* result;
	result = (NimStringDesc*)0;
	switch ((*n).kind) {
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 31):
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 53):
	{
		NI T2_;
		NI TM__SgHDIVcSir4dkKoe0Xsi0A_4;
		if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
		T2_ = (NI)0;
		T2_ = len__P89cqdlERShb9alU3iC0yj8wast(n);
		TM__SgHDIVcSir4dkKoe0Xsi0A_4 = subInt(T2_, ((NI) 1));
		if ((NU)((NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_4)) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2((NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_4),((*n).sons ? (*n).sons->Sup.len : 0)-1);
		result = renderPlainSymbolName__0mm4u02iK86TVZPOApjzQA((*n).sons->data[(NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_4)]);
	}
	break;
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 2):
	{
		if (!(((TM__SgHDIVcSir4dkKoe0Xsi0A_5[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0))) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_6));
		result = copyString((*(*n).ident).s);
	}
	break;
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 3):
	{
		if (!(((TM__SgHDIVcSir4dkKoe0Xsi0A_7[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0))) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_8));
		result = renderDefinitionName__l9ckhTtdY2uD8Mjq9cwreZDA((*n).sym, NIM_TRUE);
	}
	break;
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 43):
	{
		if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
		if ((NU)(((NI) 0)) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2(((NI) 0),((*n).sons ? (*n).sons->Sup.len : 0)-1);
		result = renderPlainSymbolName__0mm4u02iK86TVZPOApjzQA((*n).sons->data[((NI) 0)]);
	}
	break;
	default:
	{
		result = ((NimStringDesc*) NIM_NIL);
	}
	break;
	}
	return result;
}
static N_INLINE(NI, addInt)(NI a, NI b) {	NI result;
{	result = (NI)0;
	result = (NI)((NU32)(a) + (NU32)(b));
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (((NI) 0) <= (NI)(result ^ a));
		if (T3_) goto LA4_;
		T3_ = (((NI) 0) <= (NI)(result ^ b));
		LA4_: ;
		if (!T3_) goto LA5_;
		goto BeforeRet_;
	}
	LA5_: ;
	raiseOverflow();
	}BeforeRet_: ;
	return result;
}
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) {	void* T1_;
	T1_ = (void*)0;
	T1_ = memcpy(dest, source, ((size_t) (size)));
}
static N_INLINE(void, copyMem__M04YC71iJg1N7gBF3HZTngsystem)(void* dest, void* source, NI size) {	nimCopyMem(dest, source, size);
}
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {	{
		if (!!((src == NIM_NIL))) goto LA3_;
		copyMem__M04YC71iJg1N7gBF3HZTngsystem(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
		(*dest).Sup.len += (*src).Sup.len;
	}
	LA3_: ;
}
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c) {	(*dest).data[(*dest).Sup.len] = c;
	(*dest).data[(NI)((*dest).Sup.len + ((NI) 1))] = 0;
	(*dest).Sup.len += ((NI) 1);
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, renderType__0mm4u02iK86TVZPOApjzQA_2)(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n) {	NimStringDesc* result;
	result = (NimStringDesc*)0;
	switch ((*n).kind) {
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 2):
	{
		if (!(((TM__SgHDIVcSir4dkKoe0Xsi0A_5[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0))) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_6));
		result = copyString((*(*n).ident).s);
	}
	break;
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 3):
	{
		if (!(((TM__SgHDIVcSir4dkKoe0Xsi0A_7[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0))) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_8));
		result = typeToString__QlvraUan7WbHowhAbvDvdA((*(*n).sym).typ, ((tyEnum_TPreferedDesc__tnd4qt9c4xddV8oKV5zyusw) 0));
	}
	break;
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 143):
	{
		{
			NI T6_;
			T6_ = (NI)0;
			T6_ = len__P89cqdlERShb9alU3iC0yj8wast(n);
			if (!(T6_ == ((NI) 1))) goto LA7_;
			if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
			if ((NU)(((NI) 0)) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2(((NI) 0),((*n).sons ? (*n).sons->Sup.len : 0)-1);
			result = renderType__0mm4u02iK86TVZPOApjzQA_2((*n).sons->data[((NI) 0)]);
		}
		goto LA4_;
		LA7_: ;
		{
			result = copyString(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_12));
		}
		LA4_: ;
	}
	break;
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 141):
	{
		{
			NI T13_;
			NimStringDesc* T16_;
			NimStringDesc* T17_;
			T13_ = (NI)0;
			T13_ = len__P89cqdlERShb9alU3iC0yj8wast(n);
			if (!(T13_ == ((NI) 1))) goto LA14_;
			T16_ = (NimStringDesc*)0;
			if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
			if ((NU)(((NI) 0)) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2(((NI) 0),((*n).sons ? (*n).sons->Sup.len : 0)-1);
			T17_ = (NimStringDesc*)0;
			T17_ = renderType__0mm4u02iK86TVZPOApjzQA_2((*n).sons->data[((NI) 0)]);
			T16_ = rawNewString((T17_ ? T17_->Sup.len : 0) + 4);
appendString(T16_, ((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_13));
appendString(T16_, T17_);
			result = T16_;
		}
		goto LA11_;
		LA14_: ;
		{
			result = copyString(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_14));
		}
		LA11_: ;
	}
	break;
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 142):
	{
		{
			NI T22_;
			NimStringDesc* T25_;
			NimStringDesc* T26_;
			T22_ = (NI)0;
			T22_ = len__P89cqdlERShb9alU3iC0yj8wast(n);
			if (!(T22_ == ((NI) 1))) goto LA23_;
			T25_ = (NimStringDesc*)0;
			if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
			if ((NU)(((NI) 0)) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2(((NI) 0),((*n).sons ? (*n).sons->Sup.len : 0)-1);
			T26_ = (NimStringDesc*)0;
			T26_ = renderType__0mm4u02iK86TVZPOApjzQA_2((*n).sons->data[((NI) 0)]);
			T25_ = rawNewString((T26_ ? T26_->Sup.len : 0) + 4);
appendString(T25_, ((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_15));
appendString(T25_, T26_);
			result = T25_;
		}
		goto LA20_;
		LA23_: ;
		{
			result = copyString(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_16));
		}
		LA20_: ;
	}
	break;
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 147):
	{
		{
			NI T31_;
			T31_ = (NI)0;
			T31_ = len__P89cqdlERShb9alU3iC0yj8wast(n);
			if (!!(!((T31_ == ((NI) 1))))) goto LA32_;
			failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_17));
		}
		LA32_: ;
		{
			NI T36_;
			tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* params;
			NI TM__SgHDIVcSir4dkKoe0Xsi0A_22;
			T36_ = (NI)0;
			T36_ = len__P89cqdlERShb9alU3iC0yj8wast(n);
			if (!(((NI) 1) < T36_)) goto LA37_;
			if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
			if ((NU)(((NI) 0)) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2(((NI) 0),((*n).sons ? (*n).sons->Sup.len : 0)-1);
			params = (*n).sons->data[((NI) 0)];
			{
				if (!!(((*params).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 76)))) goto LA41_;
				failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_18));
			}
			LA41_: ;
			{
				NI T45_;
				T45_ = (NI)0;
				T45_ = len__P89cqdlERShb9alU3iC0yj8wast(params);
				if (!!((((NI) 0) < T45_))) goto LA46_;
				failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_19));
			}
			LA46_: ;
			result = copyString(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_20));
			{
				NI i;
				NI colontmp_;
				NI i_2;
				i = (NI)0;
				colontmp_ = (NI)0;
				colontmp_ = len__P89cqdlERShb9alU3iC0yj8wast(params);
				i_2 = ((NI) 1);
				{
					while (1) {
						NimStringDesc* T51_;
						NimStringDesc* T52_;
						NI TM__SgHDIVcSir4dkKoe0Xsi0A_21;
						if (!(i_2 < colontmp_)) goto LA50;
						i = i_2;
						T51_ = (NimStringDesc*)0;
						if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*params).kind)>>3] &(1U<<((NU)((*params).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
						if ((NU)(i) >= (NU)((*params).sons ? (*params).sons->Sup.len : 0)) raiseIndexError2(i,((*params).sons ? (*params).sons->Sup.len : 0)-1);
						T52_ = (NimStringDesc*)0;
						T52_ = renderType__0mm4u02iK86TVZPOApjzQA_2((*params).sons->data[i]);
						T51_ = rawNewString((T52_ ? T52_->Sup.len : 0) + 1);
appendString(T51_, T52_);
appendChar(T51_, 44);
						result = resizeString(result, (T51_ ? T51_->Sup.len : 0) + 0);
appendString(result, T51_);
						TM__SgHDIVcSir4dkKoe0Xsi0A_21 = addInt(i_2, ((NI) 1));
						i_2 = (NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_21);
					} LA50: ;
				}
			}
			TM__SgHDIVcSir4dkKoe0Xsi0A_22 = subInt((result ? result->Sup.len : 0), ((NI) 1));
			if ((NU)((NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_22)) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2((NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_22),(result ? result->Sup.len : 0)-1);
			result->data[(NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_22)] = 41;
		}
		goto LA34_;
		LA37_: ;
		{
			result = copyString(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_23));
		}
		LA34_: ;
	}
	break;
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 35):
	{
		NI typePos;
		NI T60_;
		NI TM__SgHDIVcSir4dkKoe0Xsi0A_25;
		NimStringDesc* typeStr;
		{
			NI T57_;
			T57_ = (NI)0;
			T57_ = len__P89cqdlERShb9alU3iC0yj8wast(n);
			if (!!((((NI) 3) <= T57_))) goto LA58_;
			failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_24));
		}
		LA58_: ;
		T60_ = (NI)0;
		T60_ = len__P89cqdlERShb9alU3iC0yj8wast(n);
		TM__SgHDIVcSir4dkKoe0Xsi0A_25 = subInt(T60_, ((NI) 2));
		typePos = (NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_25);
		if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
		if ((NU)(typePos) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2(typePos,((*n).sons ? (*n).sons->Sup.len : 0)-1);
		typeStr = renderType__0mm4u02iK86TVZPOApjzQA_2((*n).sons->data[typePos]);
		result = copyString(typeStr);
		{
			NI i_3;
			NI i_4;
			i_3 = (NI)0;
			i_4 = ((NI) 1);
			{
				while (1) {
					NimStringDesc* T68_;
					NI TM__SgHDIVcSir4dkKoe0Xsi0A_27;
					if (!(i_4 < typePos)) goto LA63;
					i_3 = i_4;
					{
						if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
						if ((NU)(i_3) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2(i_3,((*n).sons ? (*n).sons->Sup.len : 0)-1);
						if (!!(((*(*n).sons->data[i_3]).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 2)))) goto LA66_;
						failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_26));
					}
					LA66_: ;
					T68_ = (NimStringDesc*)0;
					T68_ = rawNewString((typeStr ? typeStr->Sup.len : 0) + 1);
appendChar(T68_, 44);
appendString(T68_, typeStr);
					result = resizeString(result, (T68_ ? T68_->Sup.len : 0) + 0);
appendString(result, T68_);
					TM__SgHDIVcSir4dkKoe0Xsi0A_27 = addInt(i_4, ((NI) 1));
					i_4 = (NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_27);
				} LA63: ;
			}
		}
	}
	break;
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 134):
	{
		NI TM__SgHDIVcSir4dkKoe0Xsi0A_30;
		result = copyString(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_28));
		{
			NI i_5;
			NI colontmp__2;
			NI i_6;
			i_5 = (NI)0;
			colontmp__2 = (NI)0;
			colontmp__2 = len__P89cqdlERShb9alU3iC0yj8wast(n);
			i_6 = ((NI) 0);
			{
				while (1) {
					NimStringDesc* T73_;
					NimStringDesc* T74_;
					NI TM__SgHDIVcSir4dkKoe0Xsi0A_29;
					if (!(i_6 < colontmp__2)) goto LA72;
					i_5 = i_6;
					T73_ = (NimStringDesc*)0;
					if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
					if ((NU)(i_5) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2(i_5,((*n).sons ? (*n).sons->Sup.len : 0)-1);
					T74_ = (NimStringDesc*)0;
					T74_ = renderType__0mm4u02iK86TVZPOApjzQA_2((*n).sons->data[i_5]);
					T73_ = rawNewString((T74_ ? T74_->Sup.len : 0) + 1);
appendString(T73_, T74_);
appendChar(T73_, 44);
					result = resizeString(result, (T73_ ? T73_->Sup.len : 0) + 0);
appendString(result, T73_);
					TM__SgHDIVcSir4dkKoe0Xsi0A_29 = addInt(i_6, ((NI) 1));
					i_6 = (NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_29);
				} LA72: ;
			}
		}
		TM__SgHDIVcSir4dkKoe0Xsi0A_30 = subInt((result ? result->Sup.len : 0), ((NI) 1));
		if ((NU)((NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_30)) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2((NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_30),(result ? result->Sup.len : 0)-1);
		result->data[(NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_30)] = 93;
	}
	break;
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 42):
	{
		NimStringDesc* T81_;
		NimStringDesc* T82_;
		NI TM__SgHDIVcSir4dkKoe0Xsi0A_33;
		{
			NI T78_;
			T78_ = (NI)0;
			T78_ = len__P89cqdlERShb9alU3iC0yj8wast(n);
			if (!!((((NI) 2) <= T78_))) goto LA79_;
			failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_31));
		}
		LA79_: ;
		T81_ = (NimStringDesc*)0;
		if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
		if ((NU)(((NI) 0)) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2(((NI) 0),((*n).sons ? (*n).sons->Sup.len : 0)-1);
		T82_ = (NimStringDesc*)0;
		T82_ = renderType__0mm4u02iK86TVZPOApjzQA_2((*n).sons->data[((NI) 0)]);
		T81_ = rawNewString((T82_ ? T82_->Sup.len : 0) + 1);
appendString(T81_, T82_);
appendChar(T81_, 91);
		result = T81_;
		{
			NI i_7;
			NI colontmp__3;
			NI i_8;
			i_7 = (NI)0;
			colontmp__3 = (NI)0;
			colontmp__3 = len__P89cqdlERShb9alU3iC0yj8wast(n);
			i_8 = ((NI) 1);
			{
				while (1) {
					NimStringDesc* T86_;
					NimStringDesc* T87_;
					NI TM__SgHDIVcSir4dkKoe0Xsi0A_32;
					if (!(i_8 < colontmp__3)) goto LA85;
					i_7 = i_8;
					T86_ = (NimStringDesc*)0;
					if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
					if ((NU)(i_7) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2(i_7,((*n).sons ? (*n).sons->Sup.len : 0)-1);
					T87_ = (NimStringDesc*)0;
					T87_ = renderType__0mm4u02iK86TVZPOApjzQA_2((*n).sons->data[i_7]);
					T86_ = rawNewString((T87_ ? T87_->Sup.len : 0) + 1);
appendString(T86_, T87_);
appendChar(T86_, 44);
					result = resizeString(result, (T86_ ? T86_->Sup.len : 0) + 0);
appendString(result, T86_);
					TM__SgHDIVcSir4dkKoe0Xsi0A_32 = addInt(i_8, ((NI) 1));
					i_8 = (NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_32);
				} LA85: ;
			}
		}
		TM__SgHDIVcSir4dkKoe0Xsi0A_33 = subInt((result ? result->Sup.len : 0), ((NI) 1));
		if ((NU)((NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_33)) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2((NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_33),(result ? result->Sup.len : 0)-1);
		result->data[(NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_33)] = 93;
	}
	break;
	default:
	{
		result = ((NimStringDesc*) NIM_NIL);
	}
	break;
	}
	return result;
}
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {	addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c);
}
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {	(*c).refcount = (NI)((NU32)((*c).refcount) - (NU32)(((NI) 8)));
	{
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3_;
		rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system(c);
	}
	LA3_: ;
}
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) {	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result;
	result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
	result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) ((NI)((NU32)(((NI) (ptrdiff_t) (usr))) - (NU32)(((NI) 8)))));
	return result;
}
static N_INLINE(void, nimGCunrefNoCycle)(void* p) {	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
	T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
	T1_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
	decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T1_);
}
N_LIB_PRIVATE N_NIMCALL(void, renderParamTypes__nsr8uxcmlhx5QS6xeTtlLA)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ** found, tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n) {{	switch ((*n).kind) {
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 76):
	{
		{
			NI i;
			NI colontmp_;
			NI i_2;
			i = (NI)0;
			colontmp_ = (NI)0;
			colontmp_ = len__P89cqdlERShb9alU3iC0yj8wast(n);
			i_2 = ((NI) 1);
			{
				while (1) {
					NI TM__SgHDIVcSir4dkKoe0Xsi0A_9;
					if (!(i_2 < colontmp_)) goto LA4;
					i = i_2;
					if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
					if ((NU)(i) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2(i,((*n).sons ? (*n).sons->Sup.len : 0)-1);
					renderParamTypes__nsr8uxcmlhx5QS6xeTtlLA(found, (*n).sons->data[i]);
					TM__SgHDIVcSir4dkKoe0Xsi0A_9 = addInt(i_2, ((NI) 1));
					i_2 = (NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_9);
				} LA4: ;
			}
		}
	}
	break;
	case ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 35):
	{
		NI typePos;
		NI T6_;
		NI TM__SgHDIVcSir4dkKoe0Xsi0A_10;
		NimStringDesc* typeStr;
		T6_ = (NI)0;
		T6_ = len__P89cqdlERShb9alU3iC0yj8wast(n);
		TM__SgHDIVcSir4dkKoe0Xsi0A_10 = subInt(T6_, ((NI) 2));
		typePos = (NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_10);
		{
			if (!!((((NI) 0) < typePos))) goto LA9_;
			failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_11));
		}
		LA9_: ;
		if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
		if ((NU)(typePos) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2(typePos,((*n).sons ? (*n).sons->Sup.len : 0)-1);
		typeStr = renderType__0mm4u02iK86TVZPOApjzQA_2((*n).sons->data[typePos]);
		{
			NIM_BOOL T13_;
			NI TM__SgHDIVcSir4dkKoe0Xsi0A_34;
			tyObject_TType__v9ae2Dpu13OW2ZJ2U9bNMd9cQ* typ;
			NI TM__SgHDIVcSir4dkKoe0Xsi0A_35;
			T13_ = (NIM_BOOL)0;
			T13_ = ((typeStr ? typeStr->Sup.len : 0) < ((NI) 1));
			if (!(T13_)) goto LA14_;
			if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
			TM__SgHDIVcSir4dkKoe0Xsi0A_34 = addInt(typePos, ((NI) 1));
			if ((NU)((NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_34)) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2((NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_34),((*n).sons ? (*n).sons->Sup.len : 0)-1);
			T13_ = !(((*(*n).sons->data[(NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_34)]).kind == ((tyEnum_TNodeKind__G4E4Gxe7oI2Cm03rkiOzQw) 1)));
			LA14_: ;
			if (!T13_) goto LA15_;
			if (((TM__SgHDIVcSir4dkKoe0Xsi0A_2[(NU)((*n).kind)>>3] &(1U<<((NU)((*n).kind)&7U)))!=0)) raiseFieldError(((NimStringDesc*) &TM__SgHDIVcSir4dkKoe0Xsi0A_3));
			TM__SgHDIVcSir4dkKoe0Xsi0A_35 = addInt(typePos, ((NI) 1));
			if ((NU)((NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_35)) >= (NU)((*n).sons ? (*n).sons->Sup.len : 0)) raiseIndexError2((NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_35),((*n).sons ? (*n).sons->Sup.len : 0)-1);
			typ = (*(*n).sons->data[(NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_35)]).typ;
			{
				if (!!((typ == 0))) goto LA19_;
				typeStr = typeToString__QlvraUan7WbHowhAbvDvdA(typ, ((tyEnum_TPreferedDesc__tnd4qt9c4xddV8oKV5zyusw) 2));
			}
			LA19_: ;
			{
				if (!((typeStr ? typeStr->Sup.len : 0) < ((NI) 1))) goto LA23_;
				goto BeforeRet_;
			}
			LA23_: ;
		}
		LA15_: ;
		{
			NI i_3;
			NI i_4;
			i_3 = (NI)0;
			i_4 = ((NI) 0);
			{
				while (1) {
					NI T28_;
					NimStringDesc* T29_;
					NI TM__SgHDIVcSir4dkKoe0Xsi0A_36;
					if (!(i_4 < typePos)) goto LA27;
					i_3 = i_4;
					unsureAsgnRef((void**) (&(*found)), (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)((*found)), (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_)));
					T28_ = (*found)->Sup.len++;
					T29_ = (NimStringDesc*)0;
					T29_ = (*found)->data[T28_]; (*found)->data[T28_] = copyStringRC1(typeStr);
					if (T29_) nimGCunrefNoCycle(T29_);
					TM__SgHDIVcSir4dkKoe0Xsi0A_36 = addInt(i_4, ((NI) 1));
					i_4 = (NI)(TM__SgHDIVcSir4dkKoe0Xsi0A_36);
				} LA27: ;
			}
		}
	}
	break;
	default:
	{
		NimStringDesc* T31_;
		NI T32_;
		NimStringDesc* T33_;
		T31_ = (NimStringDesc*)0;
		T31_ = dollar___qX5C9b0n9bOP7jk69amC8dA7A(n);
		unsureAsgnRef((void**) (&(*found)), (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)((*found)), (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_)));
		T32_ = (*found)->Sup.len++;
		T33_ = (NimStringDesc*)0;
		T33_ = (*found)->data[T32_]; (*found)->data[T32_] = copyStringRC1(T31_);
		if (T33_) nimGCunrefNoCycle(T33_);
	}
	break;
	}
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, renderParamTypes__le9bedpmveKS6qhiVCc9c7cg)(tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n, NimStringDesc* sep) {	NimStringDesc* result;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ* found;
	result = (NimStringDesc*)0;
	result = ((NimStringDesc*) NIM_NIL);
	found = NIM_NIL;
	renderParamTypes__nsr8uxcmlhx5QS6xeTtlLA((&found), n);
	{
		NI T3_;
		T3_ = (found ? found->Sup.len : 0);
		if (!(((NI) 0) < T3_)) goto LA4_;
		result = nsuJoinSep(found->data, (found ? found->Sup.len : 0), sep);
	}
	LA4_: ;
	return result;
}
