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

#include "nimbase.h"
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tnode216790 Tnode216790;
typedef struct Tcontext266020 Tcontext266020;
typedef struct Tlineinfo184337 Tlineinfo184337;
typedef struct Ttype216828 Ttype216828;
typedef struct Tsym216822 Tsym216822;
typedef struct Tident191012 Tident191012;
typedef struct Tnodeseq216784 Tnodeseq216784;
typedef struct Tidobj191006 Tidobj191006;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Ttypeseq216824 Ttypeseq216824;
typedef struct Tscope216816 Tscope216816;
typedef struct TY216925 TY216925;
typedef struct Tstrtable216794 Tstrtable216794;
typedef struct Tsymseq216792 Tsymseq216792;
typedef struct Tloc216804 Tloc216804;
typedef struct Ropeobj172006 Ropeobj172006;
typedef struct Tlib216808 Tlib216808;
typedef struct Cell47304 Cell47304;
typedef struct Cellseq47320 Cellseq47320;
typedef struct Gcheap49618 Gcheap49618;
typedef struct Gcstack49616 Gcstack49616;
typedef struct Cellset47316 Cellset47316;
typedef struct Pagedesc47312 Pagedesc47312;
typedef struct Memregion29487 Memregion29487;
typedef struct Smallchunk29439 Smallchunk29439;
typedef struct Llchunk29481 Llchunk29481;
typedef struct Bigchunk29441 Bigchunk29441;
typedef struct Intset29414 Intset29414;
typedef struct Trunk29410 Trunk29410;
typedef struct Avlnode29485 Avlnode29485;
typedef struct Gcstat49614 Gcstat49614;
typedef struct Tpasscontext263002 Tpasscontext263002;
typedef struct Tproccon266008 Tproccon266008;
typedef struct Intset213035 Intset213035;
typedef struct Trunk213031 Trunk213031;
typedef struct Trunkseq213033 Trunkseq213033;
typedef struct Tlinkedlist138016 Tlinkedlist138016;
typedef struct Tlistentry138010 Tlistentry138010;
typedef struct Tidtable216840 Tidtable216840;
typedef struct Tidpairseq216838 Tidpairseq216838;
typedef struct Tctx265036 Tctx265036;
typedef struct TY266140 TY266140;
typedef struct Tinstantiation216812 Tinstantiation216812;
typedef struct Basechunk29437 Basechunk29437;
typedef struct Freecell29429 Freecell29429;
typedef struct Tidpair216836 Tidpair216836;
typedef struct TY265242 TY265242;
typedef struct TY185093 TY185093;
typedef struct PprocHEX3Aobjecttype265221 PprocHEX3Aobjecttype265221;
typedef struct TY265261 TY265261;
typedef struct Tinstantiationpair266010 Tinstantiationpair266010;
typedef struct TY216913 TY216913;
typedef struct TY265222 TY265222;
typedef struct TY265227 TY265227;
typedef struct TY265262 TY265262;
typedef struct Vmargs265030 Vmargs265030;
typedef struct Tblock265018 Tblock265018;
typedef struct TY265202 TY265202;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef N_NIMCALL_PTR(Tnode216790*, Transformation423004) (Tcontext266020* c, Tnode216790* n);
struct  Tlineinfo184337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode216790  {
Ttype216828* typ;
Tlineinfo184337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym216822* sym;
} S4;
struct {Tident191012* ident;
} S5;
struct {Tnodeseq216784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef N_NIMCALL_PTR(void, TY3489) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3494) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3489 marker;
TY3494 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj191006  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable216794  {
NI counter;
Tsymseq216792* data;
};
struct  Tloc216804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype216828* t;
Ropeobj172006* r;
Ropeobj172006* heaproot;
};
struct  Tsym216822  {
  Tidobj191006 Sup;
NU8 kind;
union{
struct {Ttypeseq216824* typeinstcache;
Tscope216816* typscope;
} S1;
struct {TY216925* procinstcache;
Tsym216822* gcunsafetyreason;
} S2;
struct {TY216925* usedgenerics;
Tstrtable216794 tab;
} S3;
struct {Tsym216822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype216828* typ;
Tident191012* name;
Tlineinfo184337 info;
Tsym216822* owner;
NU32 flags;
Tnode216790* ast;
NU32 options;
NI position;
NI offset;
Tloc216804 loc;
Tlib216808* annex;
Tnode216790* constraint;
};
struct  Ttype216828  {
  Tidobj191006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq216824* sons;
Tnode216790* n;
Tsym216822* owner;
Tsym216822* sym;
Tsym216822* destructor;
Tsym216822* deepcopy;
Tsym216822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc216804 loc;
};
struct  Cell47304  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47320  {
NI len;
NI cap;
Cell47304** d;
};
struct  Cellset47316  {
NI counter;
NI max;
Pagedesc47312* head;
Pagedesc47312** data;
};
typedef Smallchunk29439* TY29502[512];
typedef Trunk29410* Trunkbuckets29412[256];
struct  Intset29414  {
Trunkbuckets29412 data;
};
struct  Memregion29487  {
NI minlargeobj;
NI maxlargeobj;
TY29502 freesmallchunks;
Llchunk29481* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk29441* freechunkslist;
Intset29414 chunkstarts;
Avlnode29485* root;
Avlnode29485* deleted;
Avlnode29485* last;
Avlnode29485* freeavlnodes;
};
struct  Gcstat49614  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap49618  {
Gcstack49616* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq47320 zct;
Cellseq47320 decstack;
Cellset47316 cycleroots;
Cellseq47320 tempstack;
NI recgclock;
Memregion29487 region;
Gcstat49614 stat;
};
struct  Tpasscontext263002  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Intset213035  {
NI counter;
NI max;
Trunk213031* head;
Trunkseq213033* data;
};
struct  Tlinkedlist138016  {
Tlistentry138010* head;
Tlistentry138010* tail;
NI counter;
};
struct  Tidtable216840  {
NI counter;
Tidpairseq216838* data;
};
typedef N_NIMCALL_PTR(Tnode216790*, TY266071) (Tcontext266020* c, Tnode216790* n);
typedef N_NIMCALL_PTR(Tnode216790*, TY266076) (Tcontext266020* c, Tnode216790* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode216790*, TY266084) (Tcontext266020* c, Tnode216790* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode216790*, TY266092) (Tcontext266020* c, Tnode216790* n);
typedef N_NIMCALL_PTR(Tnode216790*, TY266097) (Tcontext266020* c, Tnode216790* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode216790*, TY266105) (Tcontext266020* c, Tnode216790* n);
typedef N_NIMCALL_PTR(Tnode216790*, TY266110) (Tcontext266020* c, Tnode216790* n, Tnode216790* norig, NU32 filter);
typedef N_NIMCALL_PTR(Ttype216828*, TY266117) (Tcontext266020* c, Tnode216790* n, Ttype216828* prev);
typedef struct {
N_NIMCALL_PTR(Tnode216790*, ClPrc) (Tcontext266020* c, Tidtable216840 pt, Tnode216790* n, void* ClEnv);
void* ClEnv;
} TY266123;
typedef struct {
N_NIMCALL_PTR(Tsym216822*, ClPrc) (Tcontext266020* c, Tsym216822* fn, Tidtable216840 pt, Tlineinfo184337 info, void* ClEnv);
void* ClEnv;
} TY266129;
typedef N_NIMCALL_PTR(Tsym216822*, TY266145) (Tcontext266020* c, Tsym216822* dc, Ttype216828* t, Tlineinfo184337 info, NU8 op);
struct  Tcontext266020  {
  Tpasscontext263002 Sup;
Tsym216822* module;
Tscope216816* currentscope;
Tscope216816* importtable;
Tscope216816* toplevelscope;
Tproccon266008* p;
Tsymseq216792* friendmodules;
NI instcounter;
Intset213035 ambiguoussymbols;
NI intypeclass;
NI ingenericcontext;
NI inunrolledcontext;
NI compilescontextid;
NI compilescontextidgenerator;
NI ingenericinst;
Tsymseq216792* converters;
Tsymseq216792* patterns;
Tlinkedlist138016 optionstack;
Tidtable216840 symmapping;
Tlinkedlist138016 libs;
TY266071 semconstexpr;
TY266076 semexpr;
TY266084 semtryexpr;
TY266092 semtryconstexpr;
TY266097 semoperand;
TY266105 semconstboolexpr;
TY266110 semoverloadedcall;
TY266117 semtypenode;
TY266123 seminferredlambda;
TY266129 semgenerateinstance;
Intset213035 includedfiles;
Tstrtable216794 userpragmas;
Tctx265036* evalcontext;
Intset213035 unknownidents;
TY266140* generics;
NI lastgenericidx;
NI hloloopdetector;
NI inparallelstmt;
TY266145 insttypeboundop;
};
struct  Tident191012  {
  Tidobj191006 Sup;
NimStringDesc* s;
Tident191012* next;
NI h;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tscope216816  {
NI depthlevel;
Tstrtable216794 symbols;
Tnodeseq216784* usingsyms;
Tscope216816* parent;
};
struct  Ropeobj172006  {
  TNimObject Sup;
Ropeobj172006* left;
Ropeobj172006* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry138010  {
  TNimObject Sup;
Tlistentry138010* prev;
Tlistentry138010* next;
};
struct  Tlib216808  {
  Tlistentry138010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj172006* name;
Tnode216790* path;
};
struct  Gcstack49616  {
Gcstack49616* prev;
Gcstack49616* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29418[16];
struct  Pagedesc47312  {
Pagedesc47312* next;
NI key;
TY29418 bits;
};
struct  Basechunk29437  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk29439  {
  Basechunk29437 Sup;
Smallchunk29439* next;
Smallchunk29439* prev;
Freecell29429* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk29481  {
NI size;
NI acc;
Llchunk29481* next;
};
struct  Bigchunk29441  {
  Basechunk29437 Sup;
Bigchunk29441* next;
Bigchunk29441* prev;
NI align;
NF data;
};
struct  Trunk29410  {
Trunk29410* next;
NI key;
TY29418 bits;
};
typedef Avlnode29485* TY29492[2];
struct  Avlnode29485  {
TY29492 link;
NI key;
NI upperbound;
NI level;
};
struct  Tproccon266008  {
Tsym216822* owner;
Tsym216822* resultsym;
NI nestedloopcounter;
NI nestedblockcounter;
NI intrystmt;
Tproccon266008* next;
NIM_BOOL wasforwarded;
Tnode216790* bracketexpr;
};
struct  Trunk213031  {
Trunk213031* next;
NI key;
TY29418 bits;
};
struct  Tidpair216836  {
Tidobj191006* key;
TNimObject* val;
};
struct  Tctx265036  {
  Tpasscontext263002 Sup;
TY265242* code;
TY185093* debug;
Tnode216790* globals;
Tnode216790* constants;
Ttypeseq216824* types;
Tnode216790* currentexceptiona;
Tnode216790* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype265221* prc;
Tsym216822* module;
Tnode216790* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo184337 comesfromheuristic;
TY265261* callbacks;
NimStringDesc* errorflag;
};
struct  Tinstantiationpair266010  {
Tsym216822* genericsym;
Tinstantiation216812* inst;
};
struct  Tinstantiation216812  {
Tsym216822* sym;
Ttypeseq216824* concretetypes;
TY216913* usedby;
NI compilesid;
};
struct  Freecell29429  {
Freecell29429* next;
NI zerofield;
};
struct TY265227 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY265227 TY265230[256];
struct  PprocHEX3Aobjecttype265221  {
TY265222* blocks;
Tsym216822* sym;
TY265230 slots;
NI maxslots;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs265030* args, void* ClEnv);
void* ClEnv;
} Vmcallback265032;
struct TY265262 {
NimStringDesc* Field0;
Vmcallback265032 Field1;
};
struct  Tblock265018  {
Tsym216822* label;
TY265202* fixups;
};
struct  Vmargs265030  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode216790* currentexception;
};
struct Tnodeseq216784 {
  TGenericSeq Sup;
  Tnode216790* data[SEQ_DECL_SIZE];
};
struct Ttypeseq216824 {
  TGenericSeq Sup;
  Ttype216828* data[SEQ_DECL_SIZE];
};
struct TY216925 {
  TGenericSeq Sup;
  Tinstantiation216812* data[SEQ_DECL_SIZE];
};
struct Tsymseq216792 {
  TGenericSeq Sup;
  Tsym216822* data[SEQ_DECL_SIZE];
};
struct Trunkseq213033 {
  TGenericSeq Sup;
  Trunk213031* data[SEQ_DECL_SIZE];
};
struct Tidpairseq216838 {
  TGenericSeq Sup;
  Tidpair216836 data[SEQ_DECL_SIZE];
};
struct TY266140 {
  TGenericSeq Sup;
  Tinstantiationpair266010 data[SEQ_DECL_SIZE];
};
struct TY265242 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY185093 {
  TGenericSeq Sup;
  Tlineinfo184337 data[SEQ_DECL_SIZE];
};
struct TY265261 {
  TGenericSeq Sup;
  TY265262 data[SEQ_DECL_SIZE];
};
struct TY216913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct TY265222 {
  TGenericSeq Sup;
  Tblock265018 data[SEQ_DECL_SIZE];
};
struct TY265202 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, registerplugin_423091)(NimStringDesc* package, NimStringDesc* module, NimStringDesc* fn, Transformation423004 t);
N_NIMCALL(Tnode216790*, itertoprocimpl_425003)(Tcontext266020* c, Tnode216790* n);
N_NIMCALL(Tnode216790*, newnodei_218248)(NU8 kind, Tlineinfo184337 info);
static N_INLINE(Tnode216790*, HEX5BHEX5D_217238)(Tnode216790* n, NI i);
N_NIMCALL(void, localerror_189085)(Tlineinfo184337 info, NimStringDesc* arg);
N_NIMCALL(Ttype216828*, skiptypes_220113)(Ttype216828* t, NU64 kinds);
N_NIMCALL(Ttype216828*, lastson_219377)(Ttype216828* n);
N_NIMCALL(Tnode216790*, liftitertoproc_385207)(Tsym216822* fn, Tnode216790* body, Ttype216828* ptrtype);
N_NIMCALL(Tnode216790*, getbody_256828)(Tsym216822* s);
N_NIMCALL(Tsym216822*, newsym_217684)(NU8 symkind, Tident191012* name, Tsym216822* owner, Tlineinfo184337 info);
N_NIMCALL(Ttype216828*, copytype_219470)(Ttype216828* t, Tsym216822* owner, NIM_BOOL keepid);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell47304*, usrtocell_51240)(void* usr);
static N_INLINE(void, rtladdzct_52801)(Cell47304* c);
N_NOINLINE(void, addzct_51217)(Cellseq47320* s, Cell47304* c);
N_NIMCALL(void, add_217114)(Tnode216790* father, Tnode216790* son);
N_NIMCALL(Tnode216790*, newsymnode_218234)(Tsym216822* sym);
N_NIMCALL(Tsym216822*, getenvparam_381603)(Tsym216822* routine);
N_NIMCALL(void, rawaddson_220408)(Ttype216828* father, Ttype216828* son);
N_NIMCALL(Tnode216790*, newprocnode_219040)(NU8 kind, Tlineinfo184337 info, Tnode216790* body, Tnode216790* params, Tnode216790* name, Tnode216790* pattern, Tnode216790* genericparams, Tnode216790* pragmas, Tnode216790* exceptions);
N_NIMCALL(void, addinterfacedecl_271538)(Tcontext266020* c, Tsym216822* sym);
STRING_LITERAL(TMP1124, "stdlib", 6);
STRING_LITERAL(TMP1125, "system", 6);
STRING_LITERAL(TMP1126, "iterToProc", 10);
STRING_LITERAL(TMP1127, "first argument needs to be an iterator", 38);
STRING_LITERAL(TMP1128, "second argument needs to be a type", 34);
STRING_LITERAL(TMP1129, "third argument needs to be an identifier", 40);
STRING_LITERAL(TMP1130, "type must be a non-generic ref|ptr to object with state field", 61);
extern Gcheap49618 gch_49659;
extern Tnode216790* emptynode_217801;

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

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

static N_INLINE(void, rtladdzct_52801)(Cell47304* c) {
	addzct_51217((&gch_49659.zct), c);
}

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

N_NIMCALL(Tnode216790*, itertoprocimpl_425003)(Tcontext266020* c, Tnode216790* n) {
	Tnode216790* result;
	Tnode216790* iter;
	Ttype216828* t;
	Tnode216790* LOC19;
	Tnode216790* body;
	Tnode216790* LOC28;
	Tsym216822* prc;
	Tnode216790* LOC29;
	Tsym216822* LOC30;
	Tnode216790* LOC31;
	Tnode216790* orig;
	Tnode216790* LOC32;
	Tnode216790* LOC33;
	Tnode216790* LOC34;
{	result = 0;
	result = newnodei_218248(((NU8) 115), (*n).info);
	iter = HEX5BHEX5D_217238(n, ((NI) 1));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = !(((*iter).kind == ((NU8) 3)));
		if (LOC3) goto LA4;
		LOC3 = !(((*(*iter).kindU.S4.sym).kind == ((NU8) 14)));
		LA4: ;
		if (!LOC3) goto LA5;
		localerror_189085((*iter).info, ((NimStringDesc*) &TMP1127));
		goto BeforeRet;
	}
	LA5: ;
	{
		Tnode216790* LOC9;
		Tnode216790* LOC12;
		LOC9 = 0;
		LOC9 = HEX5BHEX5D_217238(n, ((NI) 2));
		if (!(*LOC9).typ == 0) goto LA10;
		LOC12 = 0;
		LOC12 = HEX5BHEX5D_217238(n, ((NI) 2));
		localerror_189085((*LOC12).info, ((NimStringDesc*) &TMP1128));
		goto BeforeRet;
	}
	LA10: ;
	{
		Tnode216790* LOC15;
		Tnode216790* LOC18;
		LOC15 = 0;
		LOC15 = HEX5BHEX5D_217238(n, ((NI) 3));
		if (!!(((*LOC15).kind == ((NU8) 2)))) goto LA16;
		LOC18 = 0;
		LOC18 = HEX5BHEX5D_217238(n, ((NI) 3));
		localerror_189085((*LOC18).info, ((NimStringDesc*) &TMP1129));
		goto BeforeRet;
	}
	LA16: ;
	LOC19 = 0;
	LOC19 = HEX5BHEX5D_217238(n, ((NI) 2));
	t = skiptypes_220113((*LOC19).typ, 2304);
	{
		NIM_BOOL LOC22;
		Ttype216828* LOC24;
		Tnode216790* LOC27;
		LOC22 = 0;
		LOC22 = !(((*t).kind == ((NU8) 22) || (*t).kind == ((NU8) 21)));
		if (LOC22) goto LA23;
		LOC24 = 0;
		LOC24 = lastson_219377(t);
		LOC22 = !(((*LOC24).kind == ((NU8) 17)));
		LA23: ;
		if (!LOC22) goto LA25;
		LOC27 = 0;
		LOC27 = HEX5BHEX5D_217238(n, ((NI) 2));
		localerror_189085((*LOC27).info, ((NimStringDesc*) &TMP1130));
		goto BeforeRet;
	}
	LA25: ;
	LOC28 = 0;
	LOC28 = getbody_256828((*iter).kindU.S4.sym);
	body = liftitertoproc_385207((*iter).kindU.S4.sym, LOC28, t);
	LOC29 = 0;
	LOC29 = HEX5BHEX5D_217238(n, ((NI) 3));
	prc = newsym_217684(((NU8) 12), (*LOC29).kindU.S5.ident, (*(*iter).kindU.S4.sym).owner, (*(*iter).kindU.S4.sym).info);
	asgnRefNoCycle((void**) (&(*prc).typ), copytype_219470((*(*iter).kindU.S4.sym).typ, prc, NIM_FALSE));
	(*(*prc).typ).flags &= ~(((NU32)1) << ((((NU8) 11)) % (sizeof(NU32)*8)));
	LOC30 = 0;
	LOC30 = getenvparam_381603((*iter).kindU.S4.sym);
	LOC31 = 0;
	LOC31 = newsymnode_218234(LOC30);
	add_217114((*(*prc).typ).n, LOC31);
	rawaddson_220408((*prc).typ, t);
	orig = (*(*iter).kindU.S4.sym).ast;
	LOC32 = 0;
	LOC32 = HEX5BHEX5D_217238(orig, ((NI) 3));
	LOC33 = 0;
	LOC33 = newsymnode_218234(prc);
	LOC34 = 0;
	LOC34 = HEX5BHEX5D_217238(orig, ((NI) 4));
	asgnRefNoCycle((void**) (&(*prc).ast), newprocnode_219040(((NU8) 79), (*n).info, body, LOC32, LOC33, emptynode_217801, emptynode_217801, LOC34, emptynode_217801));
	add_217114((*prc).ast, (*(*(*iter).kindU.S4.sym).ast).kindU.S6.sons->data[((NI) 7)]);
	addinterfacedecl_271538(c, prc);
	}BeforeRet: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_itersgenInit000)(void) {
	registerplugin_423091(((NimStringDesc*) &TMP1124), ((NimStringDesc*) &TMP1125), ((NimStringDesc*) &TMP1126), itertoprocimpl_425003);
}

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

