/* 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"
#include <string.h>
typedef struct Tsym215822 Tsym215822;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Cell47505 Cell47505;
typedef struct TNimType TNimType;
typedef struct Cellseq47521 Cellseq47521;
typedef struct Gcheap49818 Gcheap49818;
typedef struct Gcstack49816 Gcstack49816;
typedef struct Cellset47517 Cellset47517;
typedef struct Pagedesc47513 Pagedesc47513;
typedef struct Memregion29687 Memregion29687;
typedef struct Smallchunk29639 Smallchunk29639;
typedef struct Llchunk29681 Llchunk29681;
typedef struct Bigchunk29641 Bigchunk29641;
typedef struct Intset29614 Intset29614;
typedef struct Trunk29610 Trunk29610;
typedef struct Avlnode29685 Avlnode29685;
typedef struct Gcstat49814 Gcstat49814;
typedef struct Tnode215790 Tnode215790;
typedef struct Analysisctx420008 Analysisctx420008;
typedef struct TY420018 TY420018;
typedef struct TY420020 TY420020;
typedef struct Tnodeseq215784 Tnodeseq215784;
typedef struct Tsymseq215792 Tsymseq215792;
typedef struct Monotonicvar420006 Monotonicvar420006;
typedef struct TNimNode TNimNode;
typedef struct TY420021 TY420021;
typedef struct Ttype215828 Ttype215828;
typedef struct Tlineinfo183337 Tlineinfo183337;
typedef struct Tident190012 Tident190012;
typedef struct Tidobj190006 Tidobj190006;
typedef struct TNimObject TNimObject;
typedef struct Ttypeseq215824 Ttypeseq215824;
typedef struct Tscope215816 Tscope215816;
typedef struct TY215925 TY215925;
typedef struct Tstrtable215794 Tstrtable215794;
typedef struct Tloc215804 Tloc215804;
typedef struct Ropeobj170006 Ropeobj170006;
typedef struct Tlib215808 Tlib215808;
typedef struct Basechunk29637 Basechunk29637;
typedef struct Freecell29629 Freecell29629;
typedef struct Tinstantiation215812 Tinstantiation215812;
typedef struct Tlistentry135010 Tlistentry135010;
typedef struct TY215913 TY215913;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Cell47505  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47521  {
NI len;
NI cap;
Cell47505** d;
};
struct  Cellset47517  {
NI counter;
NI max;
Pagedesc47513* head;
Pagedesc47513** data;
};
typedef Smallchunk29639* TY29702[512];
typedef Trunk29610* Trunkbuckets29612[256];
struct  Intset29614  {
Trunkbuckets29612 data;
};
struct  Memregion29687  {
NI minlargeobj;
NI maxlargeobj;
TY29702 freesmallchunks;
Llchunk29681* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk29641* freechunkslist;
Intset29614 chunkstarts;
Avlnode29685* root;
Avlnode29685* deleted;
Avlnode29685* last;
Avlnode29685* freeavlnodes;
};
struct  Gcstat49814  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap49818  {
Gcstack49816* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq47521 zct;
Cellseq47521 decstack;
Cellset47517 cycleroots;
Cellseq47521 tempstack;
NI recgclock;
Memregion29687 region;
Gcstat49814 stat;
};
struct  Analysisctx420008  {
TY420018* locals;
TY420020* slices;
Tnodeseq215784* guards;
Tsymseq215792* args;
NI spawns;
NI currentspawnid;
NI inloop;
};
struct  Monotonicvar420006  {
Tsym215822* v;
Tsym215822* alias;
Tnode215790* lower;
Tnode215790* upper;
Tnode215790* stride;
NU8 dir;
NIM_BOOL blacklisted;
};
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  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct TY420021 {
Tnode215790* Field0;
Tnode215790* Field1;
Tnode215790* Field2;
NI Field3;
NIM_BOOL Field4;
};
struct  Tlineinfo183337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode215790  {
Ttype215828* typ;
Tlineinfo183337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym215822* sym;
} S4;
struct {Tident190012* ident;
} S5;
struct {Tnodeseq215784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj190006  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable215794  {
NI counter;
Tsymseq215792* data;
};
struct  Tloc215804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype215828* t;
Ropeobj170006* r;
Ropeobj170006* heaproot;
};
struct  Tsym215822  {
  Tidobj190006 Sup;
NU8 kind;
union{
struct {Ttypeseq215824* typeinstcache;
Tscope215816* typscope;
} S1;
struct {TY215925* procinstcache;
Tsym215822* gcunsafetyreason;
} S2;
struct {TY215925* usedgenerics;
Tstrtable215794 tab;
} S3;
struct {Tsym215822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype215828* typ;
Tident190012* name;
Tlineinfo183337 info;
Tsym215822* owner;
NU32 flags;
Tnode215790* ast;
NU32 options;
NI position;
NI offset;
Tloc215804 loc;
Tlib215808* annex;
Tnode215790* constraint;
};
struct  Tident190012  {
  Tidobj190006 Sup;
NimStringDesc* s;
Tident190012* next;
NI h;
};
typedef NimStringDesc* TY420660[6];
typedef NimStringDesc* TY186781[4];
struct  Ttype215828  {
  Tidobj190006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq215824* sons;
Tnode215790* n;
Tsym215822* owner;
Tsym215822* sym;
Tsym215822* destructor;
Tsym215822* deepcopy;
Tsym215822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc215804 loc;
};
struct  Gcstack49816  {
Gcstack49816* prev;
Gcstack49816* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29618[16];
struct  Pagedesc47513  {
Pagedesc47513* next;
NI key;
TY29618 bits;
};
struct  Basechunk29637  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk29639  {
  Basechunk29637 Sup;
Smallchunk29639* next;
Smallchunk29639* prev;
Freecell29629* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk29681  {
NI size;
NI acc;
Llchunk29681* next;
};
struct  Bigchunk29641  {
  Basechunk29637 Sup;
Bigchunk29641* next;
Bigchunk29641* prev;
NI align;
NF data;
};
struct  Trunk29610  {
Trunk29610* next;
NI key;
TY29618 bits;
};
typedef Avlnode29685* TY29692[2];
struct  Avlnode29685  {
TY29692 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope215816  {
NI depthlevel;
Tstrtable215794 symbols;
Tnodeseq215784* usingsyms;
Tscope215816* parent;
};
struct  Ropeobj170006  {
  TNimObject Sup;
Ropeobj170006* left;
Ropeobj170006* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry135010  {
  TNimObject Sup;
Tlistentry135010* prev;
Tlistentry135010* next;
};
struct  Tlib215808  {
  Tlistentry135010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj170006* name;
Tnode215790* path;
};
struct  Freecell29629  {
Freecell29629* next;
NI zerofield;
};
struct  Tinstantiation215812  {
Tsym215822* sym;
Ttypeseq215824* concretetypes;
TY215913* usedby;
NI compilesid;
};
struct TY420018 {
  TGenericSeq Sup;
  Monotonicvar420006 data[SEQ_DECL_SIZE];
};
struct TY420020 {
  TGenericSeq Sup;
  TY420021 data[SEQ_DECL_SIZE];
};
struct Tsymseq215792 {
  TGenericSeq Sup;
  Tsym215822* data[SEQ_DECL_SIZE];
};
struct Tnodeseq215784 {
  TGenericSeq Sup;
  Tnode215790* data[SEQ_DECL_SIZE];
};
struct Ttypeseq215824 {
  TGenericSeq Sup;
  Ttype215828* data[SEQ_DECL_SIZE];
};
struct TY215925 {
  TGenericSeq Sup;
  Tinstantiation215812* data[SEQ_DECL_SIZE];
};
struct TY215913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Tsym215822*, createmagic_220600)(NimStringDesc* name, NU8 m);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell47505*, usrtocell_51440)(void* usr);
static N_INLINE(void, rtladdzct_53001)(Cell47505* c);
N_NOINLINE(void, addzct_51417)(Cellseq47521* s, Cell47505* c);
N_NIMCALL(void, initanalysisctx_420035)(Analysisctx420008* Result);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP4273)(void* p, NI op);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, TMP4275)(void* p, NI op);
N_NOINLINE(void, chckNil)(void* p);
N_NIMCALL(Tnode215790*, lastson_218364)(Tnode215790* n);
N_NIMCALL(void, analyse_421072)(Analysisctx420008* c, Tnode215790* n);
N_NIMCALL(Tnode215790*, skipconv_250082)(Tnode215790* n);
static N_INLINE(Tnode215790*, HEX5BHEX5D_216238)(Tnode215790* n, NI i);
N_NIMCALL(NIM_BOOL, issingleassignable_420275)(Tnode215790* n);
N_NIMCALL(NIM_BOOL, islocal_420329)(Tnode215790* n);
N_NIMCALL(Monotonicvar420006*, getslot_420163)(Analysisctx420008* c, Tsym215822* v);
N_NIMCALL(NI, lookupslot_420102)(Analysisctx420008* c, Tsym215822* s);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, invalidatefacts_337410)(Tnodeseq215784** m, Tnode215790* n);
N_NIMCALL(NU8, getmagic_240323)(Tnode215790* op);
N_NIMCALL(void, gatherargs_420192)(Analysisctx420008* c, Tnode215790* n);
static N_INLINE(NI, safelen_216081)(Tnode215790* n);
N_NIMCALL(Tsym215822*, getroot_379330)(Tnode215790* n);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, analysesons_421077)(Analysisctx420008* c, Tnode215790* n);
N_NIMCALL(void, addasgnfact_339655)(Tnodeseq215784** m, Tnode215790* key, Tnode215790* value);
N_NIMCALL(void, analysecall_421144)(Analysisctx420008* c, Tnode215790* n, Tsym215822* op);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NIM_BOOL, fromsystem_421124)(Tsym215822* op);
N_NIMCALL(Tsym215822*, getmodule_222144)(Tsym215822* s);
N_NIMCALL(Tnode215790*, min_421108)(Tnode215790* a, Tnode215790* b);
N_NIMCALL(Tnode215790*, skipstmtlist_220554)(Tnode215790* n);
N_NIMCALL(void, addslice_420611)(Analysisctx420008* c, Tnode215790* n, Tnode215790* x, Tnode215790* le_420617, Tnode215790* ri_420618);
N_NIMCALL(void, checklocal_420383)(Analysisctx420008* c, Tnode215790* n);
N_NIMCALL(void, localerror_188085)(Tlineinfo183337 info, NimStringDesc* arg);
N_NIMCALL(Tnode215790*, canon_336675)(Tnode215790* n);
N_NIMCALL(void, addlowerboundasfacts_420449)(Analysisctx420008* c);
N_NIMCALL(void, addfactle_339402)(Tnodeseq215784** m, Tnode215790* a, Tnode215790* b);
N_NIMCALL(Tnode215790*, newsymnode_217234)(Tsym215822* sym);
N_NIMCALL(void, checkbounds_420442)(Analysisctx420008* c, Tnode215790* arr, Tnode215790* idx);
N_NIMCALL(void, checkle_420433)(Analysisctx420008* c, Tnode215790* a, Tnode215790* b);
N_NIMCALL(NU8, provele_339382)(Tnodeseq215784* m, Tnode215790* a, Tnode215790* b);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, rendertree_234044)(Tnode215790* n, NU8 renderflags);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(Tnode215790*, lowbound_336558)(Tnode215790* x);
N_NIMCALL(Tnode215790*, highbound_336562)(Tnode215790* x);
N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
static N_INLINE(NI, len_216059)(Tnode215790* n);
N_NIMCALL(void, internalerror_188100)(Tlineinfo183337 info, NimStringDesc* errmsg);
N_NIMCALL(void, analysecase_421211)(Analysisctx420008* c, Tnode215790* n);
N_NIMCALL(void, addcasebranchfacts_339694)(Tnodeseq215784** m, Tnode215790* n, NI i);
N_NIMCALL(void, analyseif_421304)(Analysisctx420008* c, Tnode215790* n);
N_NIMCALL(void, addfact_337193)(Tnodeseq215784** m, Tnode215790* nn);
N_NIMCALL(void, addfactneg_337221)(Tnodeseq215784** m, Tnode215790* n_337225);
N_NIMCALL(NIM_BOOL, istrue_346867)(Tnode215790* n);
N_NIMCALL(NIM_BOOL, hassubnodewith_220175)(Tnode215790* n, NU8 kind);
N_NIMCALL(void, checkslicesaredisjoint_420791)(Analysisctx420008* c);
N_NIMCALL(void, overlap_420653)(Tnodeseq215784* m, Tnode215790* x, Tnode215790* y, Tnode215790* c, Tnode215790* d);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(Tnode215790*, substride_420741)(Analysisctx420008* c, Tnode215790* n);
N_NIMCALL(Tnode215790*, HEX2BHEX40_336976)(Tnode215790* a, NI64 b);
N_NIMCALL(Tnode215790*, shallowcopy_219611)(Tnode215790* src);
N_NIMCALL(NIM_BOOL, sametree_337245)(Tnode215790* a, Tnode215790* b);
N_NIMCALL(NI64, simpleslice_338042)(Tnode215790* a, Tnode215790* b);
N_NIMCALL(NI64, stride_420684)(Analysisctx420008* c, Tnode215790* n);
N_NIMCALL(void, checkargs_421812)(Analysisctx420008* a, Tnode215790* n);
N_NIMCALL(Tnode215790*, newnodei_217248)(NU8 kind, Tlineinfo183337 info);
N_NIMCALL(Tsym215822*, newsym_216684)(NU8 symkind, Tident190012* name, Tsym215822* owner, Tlineinfo183337 info);
N_NIMCALL(Tident190012*, getident_190441)(NimStringDesc* identifier);
N_NIMCALL(Tsym215822*, getcompilerproc_259746)(NimStringDesc* name);
N_NIMCALL(void, addvar_377017)(Tnode215790* father, Tnode215790* v);
N_NIMCALL(Tnode215790*, genaddrof_378840)(Tnode215790* n);
N_NIMCALL(void, generatealiaschecks_421817)(Analysisctx420008* a, Tnode215790* result);
N_NIMCALL(void, add_216114)(Tnode215790* father, Tnode215790* son);
N_NIMCALL(Tnode215790*, callcodegenproc_378850)(NimStringDesc* name, Tnode215790* arg1, Tnode215790* arg2, Tnode215790* arg3, Tnode215790* optionalargs);
N_NIMCALL(Tnode215790*, transformspawn_421676)(Tsym215822* owner, Tnode215790* n, Tnode215790* barrier);
N_NIMCALL(Tnode215790*, transformslices_421612)(Tnode215790* n);
N_NIMCALL(Tnode215790*, copynode_219542)(Tnode215790* src);
N_NIMCALL(NU8, spawnresult_378947)(Ttype215828* t, NIM_BOOL inparallel);
N_NIMCALL(Tnode215790*, wrapprocforspawn_379500)(Tsym215822* owner, Tnode215790* spawnexpr, Ttype215828* rettype, Tnode215790* barrier, Tnode215790* dest);
N_NIMCALL(Tnode215790*, transformspawnsons_421681)(Tsym215822* owner, Tnode215790* n, Tnode215790* barrier);
STRING_LITERAL(TMP1037, "slice", 5);
STRING_LITERAL(TMP4276, "+=", 2);
STRING_LITERAL(TMP4277, "[]", 2);
STRING_LITERAL(TMP4278, "invalid usage of counter after increment", 40);
STRING_LITERAL(TMP4284, "cannot prove: ", 14);
STRING_LITERAL(TMP4285, " <= ", 4);
STRING_LITERAL(TMP4286, " (bounds check)", 15);
STRING_LITERAL(TMP4287, "can prove: ", 11);
STRING_LITERAL(TMP4288, " > ", 3);
STRING_LITERAL(TMP4289, "[]=", 3);
STRING_LITERAL(TMP4290, "invalid control flow for \'parallel\'", 35);
STRING_LITERAL(TMP4291, "slot already has a lower bound", 30);
STRING_LITERAL(TMP4292, "\'parallel\' section without \'spawn\'", 34);
STRING_LITERAL(TMP4293, "cannot prove: $# > $#; required for ($#)..($#) disjoint from ($"
"#)..($#)", 71);
STRING_LITERAL(TMP4294, "($#)..($#) not disjoint from ($#)..($#)", 39);
STRING_LITERAL(TMP4295, "cannot prove ($#)..($#) disjoint from ($#)..($#)", 48);
STRING_LITERAL(TMP4296, "barrier", 7);
STRING_LITERAL(TMP4297, "Barrier", 7);
STRING_LITERAL(TMP4298, "openBarrier", 11);
STRING_LITERAL(TMP4299, "invalid context for \'spawn\'", 27);
STRING_LITERAL(TMP4300, "closeBarrier", 12);
Tsym215822* opslice_420034;
extern Gcheap49818 gch_49859;
TNimType NTI420006; /* MonotonicVar */
extern TNimType NTI215788; /* PSym */
extern TNimType NTI215782; /* PNode */
TNimType NTI420004; /* TDirection */
extern TNimType NTI130; /* bool */
TNimType NTI420018; /* seq[MonotonicVar] */
TNimType NTI420021; /* tuple[x: PNode, a: PNode, b: PNode, spawnId: int, inLoop: bool] */
extern TNimType NTI104; /* int */
TNimType NTI420020; /* seq[tuple[x: PNode, a: PNode, b: PNode, spawnId: int, inLoop: bool]] */
extern TNimType NTI215792; /* TSymSeq */
extern TNimType NTI215784; /* TNodeSeq */
extern Tnode215790* emptynode_216801;

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

static N_INLINE(void, rtladdzct_53001)(Cell47505* c) {
	addzct_51417((&gch_49859.zct), c);
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell47505* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_51440(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell47505* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_51440((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA11;
			rtladdzct_53001(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}
N_NIMCALL(void, TMP4273)(void* p, NI op) {
	TY420018* a;
	NI LOC1;
	a = (TY420018*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1].v, op);
	nimGCvisit((void*)a->data[LOC1].alias, op);
	nimGCvisit((void*)a->data[LOC1].lower, op);
	nimGCvisit((void*)a->data[LOC1].upper, op);
	nimGCvisit((void*)a->data[LOC1].stride, op);
	}
}
N_NIMCALL(void, TMP4275)(void* p, NI op) {
	TY420020* a;
	NI LOC1;
	a = (TY420020*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1].Field0, op);
	nimGCvisit((void*)a->data[LOC1].Field1, op);
	nimGCvisit((void*)a->data[LOC1].Field2, op);
	}
}

N_NIMCALL(void, initanalysisctx_420035)(Analysisctx420008* Result) {
	unsureAsgnRef((void**) (&(*Result).locals), (TY420018*) newSeq((&NTI420018), 0));
	unsureAsgnRef((void**) (&(*Result).slices), (TY420020*) newSeq((&NTI420020), 0));
	unsureAsgnRef((void**) (&(*Result).args), (Tsymseq215792*) newSeq((&NTI215792), 0));
	unsureAsgnRef((void**) (&(*Result).guards), (Tnodeseq215784*) newSeq((&NTI215784), 0));
}

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

N_NIMCALL(NIM_BOOL, issingleassignable_420275)(Tnode215790* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	Tsym215822* s;
	NIM_BOOL LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*n).kind == ((NU8) 3));
	if (!(LOC1)) goto LA2;
	s = (*n).kindU.S4.sym;
	LOC3 = 0;
	LOC3 = ((1049120 &(1U<<((NU)((*s).kind)&31U)))!=0);
	if (!(LOC3)) goto LA4;
	LOC3 = ((32776 & (*s).flags) == 0);
	LA4: ;
	LOC1 = LOC3;
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(NIM_BOOL, islocal_420329)(Tnode215790* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	Tsym215822* s;
	NIM_BOOL LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*n).kind == ((NU8) 3));
	if (!(LOC1)) goto LA2;
	s = (*n).kindU.S4.sym;
	LOC3 = 0;
	LOC3 = ((1051424 &(1U<<((NU)((*s).kind)&31U)))!=0);
	if (!(LOC3)) goto LA4;
	LOC3 = ((32776 & (*s).flags) == 0);
	LA4: ;
	LOC1 = LOC3;
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(NI, lookupslot_420102)(Analysisctx420008* c, Tsym215822* s) {
	NI result;
{	result = 0;
	{
		NI i_420132;
		NI HEX3Atmp_420156;
		NI res_420159;
		i_420132 = 0;
		HEX3Atmp_420156 = 0;
		HEX3Atmp_420156 = (((*c).locals ? (*c).locals->Sup.len : 0) - 1);
		res_420159 = ((NI) 0);
		{
			while (1) {
				if (!(res_420159 <= HEX3Atmp_420156)) goto LA3;
				i_420132 = res_420159;
				{
					NIM_BOOL LOC6;
					LOC6 = 0;
					LOC6 = ((*c).locals->data[i_420132].v == s);
					if (LOC6) goto LA7;
					LOC6 = ((*c).locals->data[i_420132].alias == s);
					LA7: ;
					if (!LOC6) goto LA8;
					result = i_420132;
					goto BeforeRet;
				}
				LA8: ;
				res_420159 += ((NI) 1);
			} LA3: ;
		}
	}
	result = ((NI) -1);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Monotonicvar420006*, getslot_420163)(Analysisctx420008* c, Tsym215822* v) {
	Monotonicvar420006* result;
	NI s;
	NI L;
{	result = 0;
	s = lookupslot_420102((&(*c)), v);
	{
		if (!(((NI) 0) <= s)) goto LA3;
		result = (&(*c).locals->data[s]);
		goto BeforeRet;
	}
	LA3: ;
	L = ((*c).locals ? (*c).locals->Sup.len : 0);
	(*c).locals = (TY420018*) setLengthSeq(&((*c).locals)->Sup, sizeof(Monotonicvar420006), ((NI) ((NI)(L + ((NI) 1)))));
	asgnRefNoCycle((void**) (&(*c).locals->data[L].v), v);
	result = (&(*c).locals->data[L]);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

static N_INLINE(NI, safelen_216081)(Tnode215790* n) {
	NI result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*n).kind >= ((NU8) 0) && (*n).kind <= ((NU8) 23));
		if (LOC3) goto LA4;
		LOC3 = (*n).kindU.S6.sons == 0;
		LA4: ;
		if (!LOC3) goto LA5;
		result = ((NI) 0);
	}
	goto LA1;
	LA5: ;
	{
		result = ((*n).kindU.S6.sons ? (*n).kindU.S6.sons->Sup.len : 0);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, gatherargs_420192)(Analysisctx420008* c, Tnode215790* n) {
	{
		NI i_420215;
		NI HEX3Atmp_420268;
		NI LOC2;
		NI res_420271;
		i_420215 = 0;
		HEX3Atmp_420268 = 0;
		LOC2 = 0;
		LOC2 = safelen_216081(n);
		HEX3Atmp_420268 = (LOC2 - 1);
		res_420271 = ((NI) 0);
		{
			while (1) {
				Tsym215822* root;
				Tnode215790* LOC5;
				Tnode215790* LOC18;
				if (!(res_420271 <= HEX3Atmp_420268)) goto LA4;
				i_420215 = res_420271;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_216238(n, i_420215);
				root = getroot_379330(LOC5);
				{
					if (!!((root == NIM_NIL))) goto LA8;
					{
						{
							Tsym215822* r_420238;
							Tsymseq215792* HEX3Atmp_420262;
							NI i_420265;
							NI L_420267;
							r_420238 = 0;
							HEX3Atmp_420262 = 0;
							HEX3Atmp_420262 = (*c).args;
							i_420265 = ((NI) 0);
							L_420267 = (HEX3Atmp_420262 ? HEX3Atmp_420262->Sup.len : 0);
							{
								while (1) {
									if (!(i_420265 < L_420267)) goto LA13;
									r_420238 = HEX3Atmp_420262->data[i_420265];
									{
										if (!(r_420238 == root)) goto LA16;
										goto LA10;
									}
									LA16: ;
									i_420265 += ((NI) 1);
								} LA13: ;
							}
						}
						(*c).args = (Tsymseq215792*) incrSeqV2(&((*c).args)->Sup, sizeof(Tsym215822*));
						asgnRefNoCycle((void**) (&(*c).args->data[(*c).args->Sup.len]), root);
						++(*c).args->Sup.len;
					} LA10: ;
				}
				LA8: ;
				LOC18 = 0;
				LOC18 = HEX5BHEX5D_216238(n, i_420215);
				gatherargs_420192(c, LOC18);
				res_420271 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(void, analysesons_421077)(Analysisctx420008* c, Tnode215790* n) {
	{
		NI i_421099;
		NI HEX3Atmp_421101;
		NI LOC2;
		NI res_421104;
		i_421099 = 0;
		HEX3Atmp_421101 = 0;
		LOC2 = 0;
		LOC2 = safelen_216081(n);
		HEX3Atmp_421101 = (LOC2 - 1);
		res_421104 = ((NI) 0);
		{
			while (1) {
				Tnode215790* LOC5;
				if (!(res_421104 <= HEX3Atmp_421101)) goto LA4;
				i_421099 = res_421104;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_216238(n, i_421099);
				analyse_421072(c, LOC5);
				res_421104 += ((NI) 1);
			} LA4: ;
		}
	}
}

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;
}

N_NIMCALL(NIM_BOOL, fromsystem_421124)(Tsym215822* op) {
	NIM_BOOL result;
	Tsym215822* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getmodule_222144(op);
	result = (((*LOC1).flags &(1U<<((NU)(((NU8) 13))&31U)))!=0);
	return result;
}

N_NIMCALL(Tnode215790*, min_421108)(Tnode215790* a, Tnode215790* b) {
	Tnode215790* result;
	result = 0;
	{
		if (!a == 0) goto LA3;
		result = b;
	}
	goto LA1;
	LA3: ;
	{
		if (!((*a).kindU.S1.intval < (*b).kindU.S1.intval)) goto LA6;
		result = a;
	}
	goto LA1;
	LA6: ;
	{
		result = b;
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, checklocal_420383)(Analysisctx420008* c, Tnode215790* n) {
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_420329(n);
		if (!LOC3) goto LA4;
		s = lookupslot_420102(c, (*n).kindU.S4.sym);
		{
			NIM_BOOL LOC8;
			LOC8 = 0;
			LOC8 = (((NI) 0) <= s);
			if (!(LOC8)) goto LA9;
			LOC8 = !(((*c).locals->data[s].stride == NIM_NIL));
			LA9: ;
			if (!LOC8) goto LA10;
			localerror_188085((*n).info, ((NimStringDesc*) &TMP4278));
		}
		LA10: ;
	}
	goto LA1;
	LA4: ;
	{
		{
			NI i_420419;
			NI HEX3Atmp_420422;
			NI LOC14;
			NI res_420425;
			i_420419 = 0;
			HEX3Atmp_420422 = 0;
			LOC14 = 0;
			LOC14 = safelen_216081(n);
			HEX3Atmp_420422 = (LOC14 - 1);
			res_420425 = ((NI) 0);
			{
				while (1) {
					if (!(res_420425 <= HEX3Atmp_420422)) goto LA16;
					i_420419 = res_420425;
					checklocal_420383(c, (*n).kindU.S6.sons->data[i_420419]);
					res_420425 += ((NI) 1);
				} LA16: ;
			}
		}
	}
	LA1: ;
}

N_NIMCALL(void, addlowerboundasfacts_420449)(Analysisctx420008* c) {
	{
		Monotonicvar420006 v_420602;
		TY420018* HEX3Atmp_420605;
		NI i_420608;
		NI L_420610;
		memset((void*)(&v_420602), 0, sizeof(v_420602));
		HEX3Atmp_420605 = 0;
		HEX3Atmp_420605 = (*c).locals;
		i_420608 = ((NI) 0);
		L_420610 = (HEX3Atmp_420605 ? HEX3Atmp_420605->Sup.len : 0);
		{
			while (1) {
				if (!(i_420608 < L_420610)) goto LA3;
				memcpy((void*)(&v_420602), (NIM_CONST void*)(&HEX3Atmp_420605->data[i_420608]), sizeof(v_420602));
				{
					Tnode215790* LOC8;
					if (!!(v_420602.blacklisted)) goto LA6;
					LOC8 = 0;
					LOC8 = newsymnode_217234(v_420602.v);
					addfactle_339402((&(*c).guards), v_420602.lower, LOC8);
				}
				LA6: ;
				i_420608 += ((NI) 1);
			} LA3: ;
		}
	}
}

static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	memcpy(((NCSTRING) ((&(*dest).data[((*dest).Sup.len)- 0]))), ((NCSTRING) ((*src).data)), (NI)((*src).Sup.len + ((NI) 1)));
	(*dest).Sup.len += (*src).Sup.len;
}

N_NIMCALL(void, checkle_420433)(Analysisctx420008* c, Tnode215790* a, Tnode215790* b) {
	NU8 LOC1;
	LOC1 = 0;
	LOC1 = provele_339382((*c).guards, a, b);
	switch (LOC1) {
	case ((NU8) 0):
	{
		NimStringDesc* LOC3;
		NimStringDesc* LOC4;
		NimStringDesc* LOC5;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = rendertree_234044(a, 0);
		LOC5 = 0;
		LOC5 = rendertree_234044(b, 0);
		LOC3 = rawNewString(LOC4->Sup.len + LOC5->Sup.len + 33);
appendString(LOC3, ((NimStringDesc*) &TMP4284));
appendString(LOC3, LOC4);
appendString(LOC3, ((NimStringDesc*) &TMP4285));
appendString(LOC3, LOC5);
appendString(LOC3, ((NimStringDesc*) &TMP4286));
		localerror_188085((*a).info, LOC3);
	}
	break;
	case ((NU8) 2):
	{
	}
	break;
	case ((NU8) 1):
	{
		NimStringDesc* LOC8;
		NimStringDesc* LOC9;
		NimStringDesc* LOC10;
		LOC8 = 0;
		LOC9 = 0;
		LOC9 = rendertree_234044(a, 0);
		LOC10 = 0;
		LOC10 = rendertree_234044(b, 0);
		LOC8 = rawNewString(LOC9->Sup.len + LOC10->Sup.len + 29);
appendString(LOC8, ((NimStringDesc*) &TMP4287));
appendString(LOC8, LOC9);
appendString(LOC8, ((NimStringDesc*) &TMP4288));
appendString(LOC8, LOC10);
appendString(LOC8, ((NimStringDesc*) &TMP4286));
		localerror_188085((*a).info, LOC8);
	}
	break;
	}
}

N_NIMCALL(void, checkbounds_420442)(Analysisctx420008* c, Tnode215790* arr, Tnode215790* idx) {
	Tnode215790* LOC1;
	Tnode215790* LOC2;
	LOC1 = 0;
	LOC1 = lowbound_336558(arr);
	checkle_420433(c, LOC1, idx);
	LOC2 = 0;
	LOC2 = highbound_336562(arr);
	checkle_420433(c, idx, LOC2);
}

N_NIMCALL(void, addslice_420611)(Analysisctx420008* c, Tnode215790* n, Tnode215790* x, Tnode215790* le_420617, Tnode215790* ri_420618) {
	Tnode215790* le;
	Tnode215790* ri;
	NI oldstate;
	TY420021 LOC1;
	checklocal_420383((&(*c)), n);
	le = canon_336675(le_420617);
	ri = canon_336675(ri_420618);
	oldstate = ((*c).guards ? (*c).guards->Sup.len : 0);
	addlowerboundasfacts_420449(c);
	checkbounds_420442((&(*c)), x, le);
	checkbounds_420442((&(*c)), x, ri);
	(*c).guards = (Tnodeseq215784*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode215790*), ((NI) (oldstate)));
	memset((void*)(&LOC1), 0, sizeof(LOC1));
	LOC1.Field0 = x;
	LOC1.Field1 = le;
	LOC1.Field2 = ri;
	LOC1.Field3 = (*c).currentspawnid;
	LOC1.Field4 = (((NI) 0) < (*c).inloop);
	(*c).slices = (TY420020*) incrSeqV2(&((*c).slices)->Sup, sizeof(TY420021));
	genericAssign((void*)(&(*c).slices->data[(*c).slices->Sup.len]), (void*)(&LOC1), (&NTI420021));
	++(*c).slices->Sup.len;
}

N_NIMCALL(void, analysecall_421144)(Analysisctx420008* c, Tnode215790* n, Tsym215822* op) {
	{
		NI oldspawnid;
		Tnode215790* LOC5;
		if (!((*op).magic == ((NU8) 201))) goto LA3;
		(*c).spawns += ((NI) 1);
		oldspawnid = (*c).currentspawnid;
		(*c).currentspawnid = (*c).spawns;
		LOC5 = 0;
		LOC5 = HEX5BHEX5D_216238(n, ((NI) 1));
		gatherargs_420192(c, LOC5);
		analysesons_421077(c, n);
		(*c).currentspawnid = oldspawnid;
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC7;
		NIM_BOOL LOC9;
		LOC7 = 0;
		LOC7 = ((*op).magic == ((NU8) 26));
		if (LOC7) goto LA8;
		LOC9 = 0;
		LOC9 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4276));
		if (!(LOC9)) goto LA10;
		LOC9 = fromsystem_421124(op);
		LA10: ;
		LOC7 = LOC9;
		LA8: ;
		if (!LOC7) goto LA11;
		{
			Tnode215790* LOC15;
			NIM_BOOL LOC16;
			Tnode215790* incr;
			Tnode215790* LOC19;
			LOC15 = 0;
			LOC15 = HEX5BHEX5D_216238(n, ((NI) 1));
			LOC16 = 0;
			LOC16 = islocal_420329(LOC15);
			if (!LOC16) goto LA17;
			LOC19 = 0;
			LOC19 = HEX5BHEX5D_216238(n, ((NI) 2));
			incr = skipconv_250082(LOC19);
			{
				NIM_BOOL LOC22;
				Monotonicvar420006* slot;
				Tnode215790* LOC26;
				LOC22 = 0;
				LOC22 = ((*incr).kind >= ((NU8) 5) && (*incr).kind <= ((NU8) 14));
				if (!(LOC22)) goto LA23;
				LOC22 = (IL64(0) < (*incr).kindU.S1.intval);
				LA23: ;
				if (!LOC22) goto LA24;
				LOC26 = 0;
				LOC26 = HEX5BHEX5D_216238(n, ((NI) 1));
				slot = getslot_420163(c, (*LOC26).kindU.S4.sym);
				unsureAsgnRef((void**) (&(*slot).stride), min_421108((*slot).stride, incr));
			}
			LA24: ;
		}
		LA17: ;
		analysesons_421077(c, n);
	}
	goto LA1;
	LA11: ;
	{
		NIM_BOOL LOC28;
		Tnode215790* slice;
		Tnode215790* LOC32;
		Tnode215790* LOC33;
		Tnode215790* LOC34;
		Tnode215790* LOC35;
		LOC28 = 0;
		LOC28 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4277));
		if (!(LOC28)) goto LA29;
		LOC28 = fromsystem_421124(op);
		LA29: ;
		if (!LOC28) goto LA30;
		LOC32 = 0;
		LOC32 = HEX5BHEX5D_216238(n, ((NI) 2));
		slice = skipstmtlist_220554(LOC32);
		LOC33 = 0;
		LOC33 = HEX5BHEX5D_216238(n, ((NI) 1));
		LOC34 = 0;
		LOC34 = HEX5BHEX5D_216238(slice, ((NI) 1));
		LOC35 = 0;
		LOC35 = HEX5BHEX5D_216238(slice, ((NI) 2));
		addslice_420611(c, n, LOC33, LOC34, LOC35);
		analysesons_421077(c, n);
	}
	goto LA1;
	LA30: ;
	{
		NIM_BOOL LOC37;
		Tnode215790* slice;
		Tnode215790* LOC41;
		Tnode215790* LOC42;
		Tnode215790* LOC43;
		Tnode215790* LOC44;
		LOC37 = 0;
		LOC37 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4289));
		if (!(LOC37)) goto LA38;
		LOC37 = fromsystem_421124(op);
		LA38: ;
		if (!LOC37) goto LA39;
		LOC41 = 0;
		LOC41 = HEX5BHEX5D_216238(n, ((NI) 2));
		slice = skipstmtlist_220554(LOC41);
		LOC42 = 0;
		LOC42 = HEX5BHEX5D_216238(n, ((NI) 1));
		LOC43 = 0;
		LOC43 = HEX5BHEX5D_216238(slice, ((NI) 1));
		LOC44 = 0;
		LOC44 = HEX5BHEX5D_216238(slice, ((NI) 2));
		addslice_420611(c, n, LOC42, LOC43, LOC44);
		analysesons_421077(c, n);
	}
	goto LA1;
	LA39: ;
	{
		analysesons_421077(c, n);
	}
	LA1: ;
}

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

N_NIMCALL(void, analysecase_421211)(Analysisctx420008* c, Tnode215790* n) {
	NI oldfacts;
	analyse_421072(c, (*n).kindU.S6.sons->data[((NI) 0)]);
	oldfacts = ((*c).guards ? (*c).guards->Sup.len : 0);
	{
		NI i_421244;
		NI HEX3Atmp_421297;
		NI LOC2;
		NI res_421300;
		i_421244 = 0;
		HEX3Atmp_421297 = 0;
		LOC2 = 0;
		LOC2 = len_216059(n);
		HEX3Atmp_421297 = (LOC2 - 1);
		res_421300 = ((NI) 1);
		{
			while (1) {
				Tnode215790* branch;
				if (!(res_421300 <= HEX3Atmp_421297)) goto LA4;
				i_421244 = res_421300;
				branch = (*n).kindU.S6.sons->data[i_421244];
				(*c).guards = (Tnodeseq215784*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode215790*), ((NI) (oldfacts)));
				addcasebranchfacts_339694((&(*c).guards), n, i_421244);
				{
					NI i_421276;
					NI HEX3Atmp_421290;
					NI LOC6;
					NI res_421293;
					i_421276 = 0;
					HEX3Atmp_421290 = 0;
					LOC6 = 0;
					LOC6 = len_216059(branch);
					HEX3Atmp_421290 = (LOC6 - 1);
					res_421293 = ((NI) 0);
					{
						while (1) {
							if (!(res_421293 <= HEX3Atmp_421290)) goto LA8;
							i_421276 = res_421293;
							analyse_421072(c, (*branch).kindU.S6.sons->data[i_421276]);
							res_421293 += ((NI) 1);
						} LA8: ;
					}
				}
				res_421300 += ((NI) 1);
			} LA4: ;
		}
	}
	(*c).guards = (Tnodeseq215784*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode215790*), ((NI) (oldfacts)));
}

N_NIMCALL(void, analyseif_421304)(Analysisctx420008* c, Tnode215790* n) {
	NI oldfacts;
	Tnode215790* LOC1;
	analyse_421072(c, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
	oldfacts = ((*c).guards ? (*c).guards->Sup.len : 0);
	LOC1 = 0;
	LOC1 = canon_336675((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
	addfact_337193((&(*c).guards), LOC1);
	analyse_421072(c, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]);
	{
		NI i_421343;
		NI HEX3Atmp_421419;
		NI LOC3;
		NI res_421422;
		i_421343 = 0;
		HEX3Atmp_421419 = 0;
		LOC3 = 0;
		LOC3 = len_216059(n);
		HEX3Atmp_421419 = (LOC3 - 1);
		res_421422 = ((NI) 1);
		{
			while (1) {
				Tnode215790* branch;
				if (!(res_421422 <= HEX3Atmp_421419)) goto LA5;
				i_421343 = res_421422;
				branch = (*n).kindU.S6.sons->data[i_421343];
				(*c).guards = (Tnodeseq215784*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode215790*), ((NI) (oldfacts)));
				{
					NI j_421365;
					NI HEX3Atmp_421404;
					NI res_421407;
					j_421365 = 0;
					HEX3Atmp_421404 = 0;
					HEX3Atmp_421404 = (NI)(i_421343 - ((NI) 1));
					res_421407 = ((NI) 0);
					{
						while (1) {
							Tnode215790* LOC9;
							if (!(res_421407 <= HEX3Atmp_421404)) goto LA8;
							j_421365 = res_421407;
							LOC9 = 0;
							LOC9 = canon_336675((*(*n).kindU.S6.sons->data[j_421365]).kindU.S6.sons->data[((NI) 0)]);
							addfactneg_337221((&(*c).guards), LOC9);
							res_421407 += ((NI) 1);
						} LA8: ;
					}
				}
				{
					NI LOC12;
					Tnode215790* LOC15;
					LOC12 = 0;
					LOC12 = len_216059(branch);
					if (!(((NI) 1) < LOC12)) goto LA13;
					LOC15 = 0;
					LOC15 = canon_336675((*branch).kindU.S6.sons->data[((NI) 0)]);
					addfact_337193((&(*c).guards), LOC15);
				}
				LA13: ;
				{
					NI i_421390;
					NI HEX3Atmp_421412;
					NI LOC17;
					NI res_421415;
					i_421390 = 0;
					HEX3Atmp_421412 = 0;
					LOC17 = 0;
					LOC17 = len_216059(branch);
					HEX3Atmp_421412 = (LOC17 - 1);
					res_421415 = ((NI) 0);
					{
						while (1) {
							if (!(res_421415 <= HEX3Atmp_421412)) goto LA19;
							i_421390 = res_421415;
							analyse_421072(c, (*branch).kindU.S6.sons->data[i_421390]);
							res_421415 += ((NI) 1);
						} LA19: ;
					}
				}
				res_421422 += ((NI) 1);
			} LA5: ;
		}
	}
	(*c).guards = (Tnodeseq215784*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode215790*), ((NI) (oldfacts)));
}

N_NIMCALL(void, analyse_421072)(Analysisctx420008* c, Tnode215790* n) {
	switch ((*n).kind) {
	case ((NU8) 73):
	case ((NU8) 74):
	{
		Tnode215790* y;
		Tnode215790* LOC2;
		Tnode215790* LOC17;
		Tnode215790* value;
		Tnode215790* LOC27;
		LOC2 = 0;
		LOC2 = HEX5BHEX5D_216238(n, ((NI) 1));
		y = skipconv_250082(LOC2);
		{
			NIM_BOOL LOC5;
			Tnode215790* LOC6;
			Monotonicvar420006* slot;
			Tnode215790* LOC10;
			LOC5 = 0;
			LOC6 = 0;
			LOC6 = HEX5BHEX5D_216238(n, ((NI) 0));
			LOC5 = issingleassignable_420275(LOC6);
			if (!(LOC5)) goto LA7;
			LOC5 = islocal_420329(y);
			LA7: ;
			if (!LOC5) goto LA8;
			slot = getslot_420163(c, (*y).kindU.S4.sym);
			LOC10 = 0;
			LOC10 = HEX5BHEX5D_216238(n, ((NI) 0));
			unsureAsgnRef((void**) (&(*slot).alias), (*LOC10).kindU.S4.sym);
		}
		goto LA3;
		LA8: ;
		{
			Tnode215790* LOC12;
			NIM_BOOL LOC13;
			Monotonicvar420006* slot;
			Tnode215790* LOC16;
			LOC12 = 0;
			LOC12 = HEX5BHEX5D_216238(n, ((NI) 0));
			LOC13 = 0;
			LOC13 = islocal_420329(LOC12);
			if (!LOC13) goto LA14;
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_216238(n, ((NI) 0));
			slot = getslot_420163(c, (*LOC16).kindU.S4.sym);
			(*slot).blacklisted = NIM_TRUE;
		}
		goto LA3;
		LA14: ;
		LA3: ;
		LOC17 = 0;
		LOC17 = HEX5BHEX5D_216238(n, ((NI) 0));
		invalidatefacts_337410((&(*c).guards), LOC17);
		value = HEX5BHEX5D_216238(n, ((NI) 1));
		{
			NU8 LOC20;
			NI oldspawnid;
			Tnode215790* LOC23;
			Tnode215790* LOC24;
			Tnode215790* LOC25;
			LOC20 = 0;
			LOC20 = getmagic_240323(value);
			if (!(LOC20 == ((NU8) 201))) goto LA21;
			(*c).spawns += ((NI) 1);
			oldspawnid = (*c).currentspawnid;
			(*c).currentspawnid = (*c).spawns;
			LOC23 = 0;
			LOC23 = HEX5BHEX5D_216238(value, ((NI) 1));
			gatherargs_420192(c, LOC23);
			LOC24 = 0;
			LOC24 = HEX5BHEX5D_216238(value, ((NI) 1));
			analysesons_421077(c, LOC24);
			LOC25 = 0;
			LOC25 = HEX5BHEX5D_216238(n, ((NI) 0));
			analyse_421072(c, LOC25);
			(*c).currentspawnid = oldspawnid;
		}
		goto LA18;
		LA21: ;
		{
			analysesons_421077(c, n);
		}
		LA18: ;
		LOC27 = 0;
		LOC27 = HEX5BHEX5D_216238(n, ((NI) 0));
		addasgnfact_339655((&(*c).guards), LOC27, y);
	}
	break;
	case ((NU8) 27):
	case ((NU8) 29):
	case ((NU8) 30):
	case ((NU8) 31):
	case ((NU8) 26):
	case ((NU8) 28):
	case ((NU8) 32):
	{
		{
			Tnode215790* LOC31;
			Tnode215790* LOC34;
			LOC31 = 0;
			LOC31 = HEX5BHEX5D_216238(n, ((NI) 0));
			if (!((*LOC31).kind == ((NU8) 3))) goto LA32;
			LOC34 = 0;
			LOC34 = HEX5BHEX5D_216238(n, ((NI) 0));
			analysecall_421144(c, n, (*LOC34).kindU.S4.sym);
		}
		goto LA29;
		LA32: ;
		{
			analysesons_421077(c, n);
		}
		LA29: ;
	}
	break;
	case ((NU8) 42):
	{
		Tnode215790* LOC37;
		Tnode215790* LOC38;
		Tnode215790* LOC39;
		LOC37 = 0;
		LOC37 = HEX5BHEX5D_216238(n, ((NI) 0));
		LOC38 = 0;
		LOC38 = HEX5BHEX5D_216238(n, ((NI) 1));
		LOC39 = 0;
		LOC39 = HEX5BHEX5D_216238(n, ((NI) 1));
		addslice_420611(c, n, LOC37, LOC38, LOC39);
		analysesons_421077(c, n);
	}
	break;
	case ((NU8) 109):
	case ((NU8) 108):
	case ((NU8) 106):
	{
		localerror_188085((*n).info, ((NimStringDesc*) &TMP4290));
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		{
			Tnode215790* it_421473;
			it_421473 = 0;
			{
				NI i_421605;
				NI HEX3Atmp_421607;
				NI LOC44;
				NI res_421609;
				i_421605 = 0;
				HEX3Atmp_421607 = 0;
				LOC44 = 0;
				LOC44 = len_216059(n);
				HEX3Atmp_421607 = (LOC44 - 1);
				res_421609 = ((NI) 0);
				{
					while (1) {
						Tnode215790* value;
						NIM_BOOL isspawned;
						NU8 LOC47;
						if (!(res_421609 <= HEX3Atmp_421607)) goto LA46;
						i_421605 = res_421609;
						it_421473 = (*n).kindU.S6.sons->data[i_421605];
						value = lastson_218364(it_421473);
						LOC47 = 0;
						LOC47 = getmagic_240323(value);
						isspawned = (LOC47 == ((NU8) 201));
						{
							NI oldspawnid;
							Tnode215790* LOC52;
							Tnode215790* LOC53;
							if (!isspawned) goto LA50;
							(*c).spawns += ((NI) 1);
							oldspawnid = (*c).currentspawnid;
							(*c).currentspawnid = (*c).spawns;
							LOC52 = 0;
							LOC52 = HEX5BHEX5D_216238(value, ((NI) 1));
							gatherargs_420192(c, LOC52);
							LOC53 = 0;
							LOC53 = HEX5BHEX5D_216238(value, ((NI) 1));
							analysesons_421077(c, LOC53);
							(*c).currentspawnid = oldspawnid;
						}
						LA50: ;
						{
							if (!!(((*value).kind == ((NU8) 1)))) goto LA56;
							{
								NI j_421515;
								NI HEX3Atmp_421595;
								NI LOC59;
								NI res_421598;
								j_421515 = 0;
								HEX3Atmp_421595 = 0;
								LOC59 = 0;
								LOC59 = len_216059(it_421473);
								HEX3Atmp_421595 = (NI)(LOC59 - ((NI) 3));
								res_421598 = ((NI) 0);
								{
									while (1) {
										if (!(res_421598 <= HEX3Atmp_421595)) goto LA61;
										j_421515 = res_421598;
										{
											Tnode215790* LOC64;
											NIM_BOOL LOC65;
											Monotonicvar420006* slot;
											Tnode215790* LOC68;
											LOC64 = 0;
											LOC64 = HEX5BHEX5D_216238(it_421473, j_421515);
											LOC65 = 0;
											LOC65 = islocal_420329(LOC64);
											if (!LOC65) goto LA66;
											LOC68 = 0;
											LOC68 = HEX5BHEX5D_216238(it_421473, j_421515);
											slot = getslot_420163(c, (*LOC68).kindU.S4.sym);
											{
												if (!(*slot).lower == 0) goto LA71;
												unsureAsgnRef((void**) (&(*slot).lower), value);
											}
											goto LA69;
											LA71: ;
											{
												internalerror_188100((*it_421473).info, ((NimStringDesc*) &TMP4291));
											}
											LA69: ;
										}
										LA66: ;
										res_421598 += ((NI) 1);
									} LA61: ;
								}
							}
							{
								if (!!(isspawned)) goto LA76;
								analyse_421072(c, value);
							}
							LA76: ;
						}
						LA56: ;
						res_421609 += ((NI) 1);
					} LA46: ;
				}
			}
		}
	}
	break;
	case ((NU8) 97):
	{
		analysecase_421211(c, n);
	}
	break;
	case ((NU8) 93):
	case ((NU8) 92):
	case ((NU8) 48):
	{
		analyseif_421304(c, n);
	}
	break;
	case ((NU8) 96):
	{
		analyse_421072(c, (*n).kindU.S6.sons->data[((NI) 0)]);
		(*c).inloop += ((NI) 1);
		{
			NIM_BOOL LOC83;
			LOC83 = 0;
			LOC83 = istrue_346867((*n).kindU.S6.sons->data[((NI) 0)]);
			if (!LOC83) goto LA84;
			analysesons_421077(c, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		goto LA81;
		LA84: ;
		{
			NI oldstate;
			NI oldfacts;
			Tnode215790* LOC87;
			oldstate = ((*c).locals ? (*c).locals->Sup.len : 0);
			oldfacts = ((*c).guards ? (*c).guards->Sup.len : 0);
			LOC87 = 0;
			LOC87 = canon_336675((*n).kindU.S6.sons->data[((NI) 0)]);
			addfact_337193((&(*c).guards), LOC87);
			analyse_421072(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			(*c).locals = (TY420018*) setLengthSeq(&((*c).locals)->Sup, sizeof(Monotonicvar420006), ((NI) (oldstate)));
			(*c).guards = (Tnodeseq215784*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode215790*), ((NI) (oldfacts)));
			{
				NIM_BOOL LOC90;
				Tnode215790* LOC93;
				LOC90 = 0;
				LOC90 = hassubnodewith_220175((*n).kindU.S6.sons->data[((NI) 1)], ((NU8) 110));
				if (!!(LOC90)) goto LA91;
				LOC93 = 0;
				LOC93 = canon_336675((*n).kindU.S6.sons->data[((NI) 0)]);
				addfactneg_337221((&(*c).guards), LOC93);
			}
			LA91: ;
		}
		LA81: ;
		(*c).inloop -= ((NI) 1);
	}
	break;
	case ((NU8) 98):
	case ((NU8) 79):
	case ((NU8) 81):
	case ((NU8) 80):
	case ((NU8) 84):
	case ((NU8) 82):
	case ((NU8) 83):
	case ((NU8) 101):
	case ((NU8) 90):
	{
	}
	break;
	default:
	{
		analysesons_421077(c, n);
	}
	break;
	}
}

N_NIMCALL(void, overlap_420653)(Tnodeseq215784* m, Tnode215790* x, Tnode215790* y, Tnode215790* c, Tnode215790* d) {
	NU8 LOC1;
	LOC1 = 0;
	LOC1 = provele_339382(m, c, y);
	switch (LOC1) {
	case ((NU8) 0):
	{
		NU8 LOC3;
		LOC3 = 0;
		LOC3 = provele_339382(m, x, d);
		switch (LOC3) {
		case ((NU8) 1):
		{
		}
		break;
		case ((NU8) 0):
		case ((NU8) 2):
		{
			TY420660 LOC6;
			NimStringDesc* LOC7;
			memset((void*)LOC6, 0, sizeof(LOC6));
			LOC6[0] = rendertree_234044(c, 0);
			LOC6[1] = rendertree_234044(y, 0);
			LOC6[2] = rendertree_234044(x, 0);
			LOC6[3] = rendertree_234044(y, 0);
			LOC6[4] = rendertree_234044(c, 0);
			LOC6[5] = rendertree_234044(d, 0);
			LOC7 = 0;
			LOC7 = nsuFormatOpenArray(((NimStringDesc*) &TMP4293), LOC6, 6);
			localerror_188085((*x).info, LOC7);
		}
		break;
		}
	}
	break;
	case ((NU8) 2):
	{
		NU8 LOC9;
		LOC9 = 0;
		LOC9 = provele_339382(m, x, d);
		switch (LOC9) {
		case ((NU8) 0):
		{
			TY420660 LOC11;
			NimStringDesc* LOC12;
			memset((void*)LOC11, 0, sizeof(LOC11));
			LOC11[0] = rendertree_234044(x, 0);
			LOC11[1] = rendertree_234044(d, 0);
			LOC11[2] = rendertree_234044(x, 0);
			LOC11[3] = rendertree_234044(y, 0);
			LOC11[4] = rendertree_234044(c, 0);
			LOC11[5] = rendertree_234044(d, 0);
			LOC12 = 0;
			LOC12 = nsuFormatOpenArray(((NimStringDesc*) &TMP4293), LOC11, 6);
			localerror_188085((*x).info, LOC12);
		}
		break;
		case ((NU8) 2):
		{
			TY420660 LOC14;
			NimStringDesc* LOC15;
			memset((void*)LOC14, 0, sizeof(LOC14));
			LOC14[0] = rendertree_234044(c, 0);
			LOC14[1] = rendertree_234044(y, 0);
			LOC14[2] = rendertree_234044(x, 0);
			LOC14[3] = rendertree_234044(y, 0);
			LOC14[4] = rendertree_234044(c, 0);
			LOC14[5] = rendertree_234044(d, 0);
			LOC15 = 0;
			LOC15 = nsuFormatOpenArray(((NimStringDesc*) &TMP4294), LOC14, 6);
			localerror_188085((*x).info, LOC15);
		}
		break;
		case ((NU8) 1):
		{
		}
		break;
		}
	}
	break;
	case ((NU8) 1):
	{
	}
	break;
	}
}

N_NIMCALL(Tnode215790*, substride_420741)(Analysisctx420008* c, Tnode215790* n) {
	Tnode215790* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_420329(n);
		if (!LOC3) goto LA4;
		s = lookupslot_420102(c, (*n).kindU.S4.sym);
		{
			NIM_BOOL LOC8;
			LOC8 = 0;
			LOC8 = (((NI) 0) <= s);
			if (!(LOC8)) goto LA9;
			LOC8 = !(((*c).locals->data[s].stride == NIM_NIL));
			LA9: ;
			if (!LOC8) goto LA10;
			result = HEX2BHEX40_336976(n, (*(*c).locals->data[s].stride).kindU.S1.intval);
		}
		goto LA6;
		LA10: ;
		{
			result = n;
		}
		LA6: ;
	}
	goto LA1;
	LA4: ;
	{
		NI LOC14;
		LOC14 = 0;
		LOC14 = safelen_216081(n);
		if (!(((NI) 0) < LOC14)) goto LA15;
		result = shallowcopy_219611(n);
		{
			NI i_420780;
			NI HEX3Atmp_420784;
			NI LOC18;
			NI res_420787;
			i_420780 = 0;
			HEX3Atmp_420784 = 0;
			LOC18 = 0;
			LOC18 = len_216059(n);
			HEX3Atmp_420784 = (LOC18 - 1);
			res_420787 = ((NI) 0);
			{
				while (1) {
					if (!(res_420787 <= HEX3Atmp_420784)) goto LA20;
					i_420780 = res_420787;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_420780]), substride_420741(c, (*n).kindU.S6.sons->data[i_420780]));
					res_420787 += ((NI) 1);
				} LA20: ;
			}
		}
	}
	goto LA1;
	LA15: ;
	{
		result = n;
	}
	LA1: ;
	return result;
}

N_NIMCALL(NI64, stride_420684)(Analysisctx420008* c, Tnode215790* n) {
	NI64 result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_420329(n);
		if (!LOC3) goto LA4;
		s = lookupslot_420102(c, (*n).kindU.S4.sym);
		{
			NIM_BOOL LOC8;
			LOC8 = 0;
			LOC8 = (((NI) 0) <= s);
			if (!(LOC8)) goto LA9;
			LOC8 = !(((*c).locals->data[s].stride == NIM_NIL));
			LA9: ;
			if (!LOC8) goto LA10;
			result = (*(*c).locals->data[s].stride).kindU.S1.intval;
		}
		LA10: ;
	}
	goto LA1;
	LA4: ;
	{
		{
			NI i_420722;
			NI HEX3Atmp_420734;
			NI LOC14;
			NI res_420737;
			i_420722 = 0;
			HEX3Atmp_420734 = 0;
			LOC14 = 0;
			LOC14 = safelen_216081(n);
			HEX3Atmp_420734 = (LOC14 - 1);
			res_420737 = ((NI) 0);
			{
				while (1) {
					NI64 LOC17;
					if (!(res_420737 <= HEX3Atmp_420734)) goto LA16;
					i_420722 = res_420737;
					LOC17 = 0;
					LOC17 = stride_420684(c, (*n).kindU.S6.sons->data[i_420722]);
					result += LOC17;
					res_420737 += ((NI) 1);
				} LA16: ;
			}
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, checkslicesaredisjoint_420791)(Analysisctx420008* c) {
	addlowerboundasfacts_420449(c);
	{
		Tnode215790* x_421002;
		Tnode215790* a_421003;
		Tnode215790* b_421004;
		NI id_421005;
		NIM_BOOL inloop_421006;
		TY420020* HEX3Atmp_421049;
		NI i_421052;
		NI L_421054;
		x_421002 = 0;
		a_421003 = 0;
		b_421004 = 0;
		id_421005 = 0;
		inloop_421006 = 0;
		HEX3Atmp_421049 = 0;
		HEX3Atmp_421049 = (*c).slices;
		i_421052 = ((NI) 0);
		L_421054 = (HEX3Atmp_421049 ? HEX3Atmp_421049->Sup.len : 0);
		{
			while (1) {
				if (!(i_421052 < L_421054)) goto LA3;
				x_421002 = HEX3Atmp_421049->data[i_421052].Field0;
				a_421003 = HEX3Atmp_421049->data[i_421052].Field1;
				b_421004 = HEX3Atmp_421049->data[i_421052].Field2;
				id_421005 = HEX3Atmp_421049->data[i_421052].Field3;
				inloop_421006 = HEX3Atmp_421049->data[i_421052].Field4;
				{
					Tnode215790* LOC8;
					Tnode215790* LOC9;
					if (!inloop_421006) goto LA6;
					LOC8 = 0;
					LOC8 = substride_420741((&(*c)), a_421003);
					LOC9 = 0;
					LOC9 = substride_420741((&(*c)), b_421004);
					overlap_420653((*c).guards, a_421003, b_421004, LOC8, LOC9);
				}
				LA6: ;
				i_421052 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NI i_421016;
		NI HEX3Atmp_421065;
		NI res_421068;
		i_421016 = 0;
		HEX3Atmp_421065 = 0;
		HEX3Atmp_421065 = ((*c).slices ? ((*c).slices->Sup.len-1) : -1);
		res_421068 = ((NI) 0);
		{
			while (1) {
				if (!(res_421068 <= HEX3Atmp_421065)) goto LA12;
				i_421016 = res_421068;
				{
					NI j_421026;
					NI HEX3Atmp_421057;
					NI HEX3Atmp_421058;
					NI res_421061;
					j_421026 = 0;
					HEX3Atmp_421057 = 0;
					HEX3Atmp_421058 = 0;
					HEX3Atmp_421057 = (NI)(i_421016 + ((NI) 1));
					HEX3Atmp_421058 = ((*c).slices ? ((*c).slices->Sup.len-1) : -1);
					res_421061 = HEX3Atmp_421057;
					{
						while (1) {
							TY420021 x;
							TY420021 y;
							if (!(res_421061 <= HEX3Atmp_421058)) goto LA15;
							j_421026 = res_421061;
							memset((void*)(&x), 0, sizeof(x));
							memcpy((void*)(&x), (NIM_CONST void*)(&(*c).slices->data[i_421016]), sizeof(x));
							memset((void*)(&y), 0, sizeof(y));
							memcpy((void*)(&y), (NIM_CONST void*)(&(*c).slices->data[j_421026]), sizeof(y));
							{
								NIM_BOOL LOC18;
								LOC18 = 0;
								LOC18 = !((x.Field3 == y.Field3));
								if (!(LOC18)) goto LA19;
								LOC18 = sametree_337245(x.Field0, y.Field0);
								LA19: ;
								if (!LOC18) goto LA20;
								{
									NIM_BOOL LOC24;
									LOC24 = 0;
									LOC24 = !(x.Field4);
									if (LOC24) goto LA25;
									LOC24 = !(y.Field4);
									LA25: ;
									if (!LOC24) goto LA26;
									overlap_420653((*c).guards, x.Field1, x.Field2, y.Field1, y.Field2);
								}
								goto LA22;
								LA26: ;
								{
									NI64 k;
									NI64 m;
									NIM_BOOL LOC29;
									NI64 stride;
									NI64 LOC33;
									NI64 LOC34;
									k = simpleslice_338042(x.Field1, x.Field2);
									m = simpleslice_338042(y.Field1, y.Field2);
									LOC29 = 0;
									LOC29 = (IL64(0) <= k);
									if (!(LOC29)) goto LA30;
									LOC29 = (IL64(0) <= m);
									LA30: ;
									if (!LOC29) goto LA31;
									overlap_420653((*c).guards, x.Field1, x.Field2, y.Field1, y.Field2);
									LOC33 = 0;
									LOC33 = stride_420684((&(*c)), x.Field1);
									LOC34 = 0;
									LOC34 = stride_420684((&(*c)), y.Field1);
									stride = ((LOC33 <= LOC34) ? LOC33 : LOC34);
									{
										NIM_BOOL LOC37;
										LOC37 = 0;
										LOC37 = (k < stride);
										if (!(LOC37)) goto LA38;
										LOC37 = (m < stride);
										LA38: ;
										if (!LOC37) goto LA39;
									}
									goto LA35;
									LA39: ;
									{
										TY186781 LOC42;
										NimStringDesc* LOC43;
										memset((void*)LOC42, 0, sizeof(LOC42));
										LOC42[0] = rendertree_234044(x.Field1, 0);
										LOC42[1] = rendertree_234044(x.Field2, 0);
										LOC42[2] = rendertree_234044(y.Field1, 0);
										LOC42[3] = rendertree_234044(y.Field2, 0);
										LOC43 = 0;
										LOC43 = nsuFormatOpenArray(((NimStringDesc*) &TMP4295), LOC42, 4);
										localerror_188085((*x.Field0).info, LOC43);
									}
									LA35: ;
								}
								goto LA22;
								LA31: ;
								{
									TY186781 LOC45;
									NimStringDesc* LOC46;
									memset((void*)LOC45, 0, sizeof(LOC45));
									LOC45[0] = rendertree_234044(x.Field1, 0);
									LOC45[1] = rendertree_234044(x.Field2, 0);
									LOC45[2] = rendertree_234044(y.Field1, 0);
									LOC45[3] = rendertree_234044(y.Field2, 0);
									LOC46 = 0;
									LOC46 = nsuFormatOpenArray(((NimStringDesc*) &TMP4295), LOC45, 4);
									localerror_188085((*x.Field0).info, LOC46);
								}
								LA22: ;
							}
							LA20: ;
							res_421061 += ((NI) 1);
						} LA15: ;
					}
				}
				res_421068 += ((NI) 1);
			} LA12: ;
		}
	}
}

N_NIMCALL(void, checkargs_421812)(Analysisctx420008* a, Tnode215790* n) {
}

N_NIMCALL(void, generatealiaschecks_421817)(Analysisctx420008* a, Tnode215790* result) {
}

N_NIMCALL(Tnode215790*, transformslices_421612)(Tnode215790* n) {
	Tnode215790* result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		Tnode215790* LOC5;
		Tsym215822* op;
		Tnode215790* LOC8;
		LOC3 = 0;
		LOC3 = ((*n).kind == ((NU8) 27) || (*n).kind == ((NU8) 29) || (*n).kind == ((NU8) 30) || (*n).kind == ((NU8) 31) || (*n).kind == ((NU8) 26) || (*n).kind == ((NU8) 28) || (*n).kind == ((NU8) 32));
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = HEX5BHEX5D_216238(n, ((NI) 0));
		LOC3 = ((*LOC5).kind == ((NU8) 3));
		LA4: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = HEX5BHEX5D_216238(n, ((NI) 0));
		op = (*LOC8).kindU.S4.sym;
		{
			NIM_BOOL LOC11;
			Tnode215790* LOC15;
			Tnode215790* LOC16;
			Tnode215790* slice;
			Tnode215790* LOC17;
			Tnode215790* LOC18;
			Tnode215790* LOC19;
			LOC11 = 0;
			LOC11 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4277));
			if (!(LOC11)) goto LA12;
			LOC11 = fromsystem_421124(op);
			LA12: ;
			if (!LOC11) goto LA13;
			result = copynode_219542(n);
			LOC15 = 0;
			LOC15 = newsymnode_217234(opslice_420034);
			add_216114(result, LOC15);
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_216238(n, ((NI) 1));
			add_216114(result, LOC16);
			LOC17 = 0;
			LOC17 = HEX5BHEX5D_216238(n, ((NI) 2));
			slice = skipstmtlist_220554(LOC17);
			LOC18 = 0;
			LOC18 = HEX5BHEX5D_216238(slice, ((NI) 1));
			add_216114(result, LOC18);
			LOC19 = 0;
			LOC19 = HEX5BHEX5D_216238(slice, ((NI) 2));
			add_216114(result, LOC19);
			goto BeforeRet;
		}
		LA13: ;
	}
	LA6: ;
	{
		NI LOC22;
		LOC22 = 0;
		LOC22 = safelen_216081(n);
		if (!(((NI) 0) < LOC22)) goto LA23;
		result = shallowcopy_219611(n);
		{
			NI i_421665;
			NI HEX3Atmp_421669;
			NI LOC26;
			NI res_421672;
			i_421665 = 0;
			HEX3Atmp_421669 = 0;
			LOC26 = 0;
			LOC26 = len_216059(n);
			HEX3Atmp_421669 = (LOC26 - 1);
			res_421672 = ((NI) 0);
			{
				while (1) {
					if (!(res_421672 <= HEX3Atmp_421669)) goto LA28;
					i_421665 = res_421672;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_421665]), transformslices_421612((*n).kindU.S6.sons->data[i_421665]));
					res_421672 += ((NI) 1);
				} LA28: ;
			}
		}
	}
	goto LA20;
	LA23: ;
	{
		result = n;
	}
	LA20: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode215790*, transformspawnsons_421681)(Tsym215822* owner, Tnode215790* n, Tnode215790* barrier) {
	Tnode215790* result;
	result = 0;
	result = shallowcopy_219611(n);
	{
		NI i_421705;
		NI HEX3Atmp_421709;
		NI LOC2;
		NI res_421712;
		i_421705 = 0;
		HEX3Atmp_421709 = 0;
		LOC2 = 0;
		LOC2 = len_216059(n);
		HEX3Atmp_421709 = (LOC2 - 1);
		res_421712 = ((NI) 0);
		{
			while (1) {
				if (!(res_421712 <= HEX3Atmp_421709)) goto LA4;
				i_421705 = res_421712;
				asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_421705]), transformspawn_421676(owner, (*n).kindU.S6.sons->data[i_421705], barrier));
				res_421712 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(Tnode215790*, transformspawn_421676)(Tsym215822* owner, Tnode215790* n, Tnode215790* barrier) {
	Tnode215790* result;
{	result = 0;
	switch ((*n).kind) {
	case ((NU8) 99):
	case ((NU8) 100):
	{
		result = NIM_NIL;
		{
			Tnode215790* it_421722;
			it_421722 = 0;
			{
				NI i_421805;
				NI HEX3Atmp_421807;
				NI LOC4;
				NI res_421809;
				i_421805 = 0;
				HEX3Atmp_421807 = 0;
				LOC4 = 0;
				LOC4 = len_216059(n);
				HEX3Atmp_421807 = (LOC4 - 1);
				res_421809 = ((NI) 0);
				{
					while (1) {
						Tnode215790* b;
						if (!(res_421809 <= HEX3Atmp_421807)) goto LA6;
						i_421805 = res_421809;
						it_421722 = (*n).kindU.S6.sons->data[i_421805];
						b = lastson_218364(it_421722);
						{
							NU8 LOC9;
							Tnode215790* m;
							Ttype215828* t;
							Tnode215790* LOC21;
							Tnode215790* LOC22;
							LOC9 = 0;
							LOC9 = getmagic_240323(b);
							if (!(LOC9 == ((NU8) 201))) goto LA10;
							{
								NI LOC14;
								LOC14 = 0;
								LOC14 = len_216059(it_421722);
								if (!!((LOC14 == ((NI) 3)))) goto LA15;
								localerror_188085((*it_421722).info, ((NimStringDesc*) &TMP4299));
							}
							LA15: ;
							m = transformslices_421612(b);
							{
								if (!result == 0) goto LA19;
								result = newnodei_217248(((NU8) 115), (*n).info);
								add_216114(result, n);
							}
							LA19: ;
							LOC21 = 0;
							LOC21 = HEX5BHEX5D_216238(b, ((NI) 1));
							LOC22 = 0;
							LOC22 = HEX5BHEX5D_216238(LOC21, ((NI) 0));
							t = (*(*LOC22).typ).sons->data[((NI) 0)];
							{
								NU8 LOC25;
								Tnode215790* LOC28;
								Tnode215790* LOC29;
								NI LOC30;
								LOC25 = 0;
								LOC25 = spawnresult_378947(t, NIM_TRUE);
								if (!(LOC25 == ((NU8) 2))) goto LA26;
								LOC28 = 0;
								LOC28 = HEX5BHEX5D_216238(it_421722, ((NI) 0));
								LOC29 = 0;
								LOC29 = wrapprocforspawn_379500(owner, m, (*b).typ, barrier, LOC28);
								add_216114(result, LOC29);
								LOC30 = 0;
								LOC30 = len_216059(it_421722);
								asgnRefNoCycle((void**) (&(*it_421722).kindU.S6.sons->data[(NI)(LOC30 - ((NI) 1))]), emptynode_216801);
							}
							goto LA23;
							LA26: ;
							{
								NI LOC32;
								LOC32 = 0;
								LOC32 = len_216059(it_421722);
								asgnRefNoCycle((void**) (&(*it_421722).kindU.S6.sons->data[(NI)(LOC32 - ((NI) 1))]), wrapprocforspawn_379500(owner, m, (*b).typ, barrier, NIM_NIL));
							}
							LA23: ;
						}
						LA10: ;
						res_421809 += ((NI) 1);
					} LA6: ;
				}
			}
		}
		{
			if (!result == 0) goto LA35;
			result = n;
		}
		LA35: ;
	}
	break;
	case ((NU8) 73):
	case ((NU8) 74):
	{
		Tnode215790* b;
		b = HEX5BHEX5D_216238(n, ((NI) 1));
		{
			NIM_BOOL LOC40;
			NU8 LOC41;
			Ttype215828* t;
			Tnode215790* LOC43;
			Tnode215790* LOC44;
			NU8 LOC45;
			Tnode215790* m;
			Tnode215790* LOC48;
			LOC40 = 0;
			LOC41 = 0;
			LOC41 = getmagic_240323(b);
			LOC40 = (LOC41 == ((NU8) 201));
			if (!(LOC40)) goto LA42;
			LOC43 = 0;
			LOC43 = HEX5BHEX5D_216238(b, ((NI) 1));
			LOC44 = 0;
			LOC44 = HEX5BHEX5D_216238(LOC43, ((NI) 0));
			t = (*(*LOC44).typ).sons->data[((NI) 0)];
			LOC45 = 0;
			LOC45 = spawnresult_378947(t, NIM_TRUE);
			LOC40 = (LOC45 == ((NU8) 2));
			LA42: ;
			if (!LOC40) goto LA46;
			m = transformslices_421612(b);
			LOC48 = 0;
			LOC48 = HEX5BHEX5D_216238(n, ((NI) 0));
			result = wrapprocforspawn_379500(owner, m, (*b).typ, barrier, LOC48);
			goto BeforeRet;
		}
		LA46: ;
		result = transformspawnsons_421681(owner, n, barrier);
	}
	break;
	case ((NU8) 27):
	case ((NU8) 29):
	case ((NU8) 30):
	case ((NU8) 31):
	case ((NU8) 26):
	case ((NU8) 28):
	case ((NU8) 32):
	{
		{
			NU8 LOC52;
			LOC52 = 0;
			LOC52 = getmagic_240323(n);
			if (!(LOC52 == ((NU8) 201))) goto LA53;
			result = transformslices_421612(n);
			result = wrapprocforspawn_379500(owner, result, (*n).typ, barrier, NIM_NIL);
			goto BeforeRet;
		}
		LA53: ;
		result = transformspawnsons_421681(owner, n, barrier);
	}
	break;
	default:
	{
		{
			NI LOC58;
			LOC58 = 0;
			LOC58 = safelen_216081(n);
			if (!(((NI) 0) < LOC58)) goto LA59;
			result = transformspawnsons_421681(owner, n, barrier);
		}
		goto LA56;
		LA59: ;
		{
			result = n;
		}
		LA56: ;
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode215790*, liftparallel_421821)(Tsym215822* owner, Tnode215790* n) {
	Tnode215790* result;
	Analysisctx420008 a;
	Tnode215790* body;
	Tnode215790* varsection;
	Tsym215822* temp;
	Tident190012* LOC5;
	Tsym215822* LOC6;
	Tnode215790* tempnode;
	Tnode215790* barrier;
	Tnode215790* LOC7;
	Tnode215790* LOC8;
	Tnode215790* LOC9;
	result = 0;
	memset((void*)(&a), 0, sizeof(a));
	chckNil((void*)(&a));
	memset((void*)(&a), 0, sizeof(a));
	initanalysisctx_420035((&a));
	body = lastson_218364(n);
	analyse_421072((&a), body);
	{
		if (!(a.spawns == ((NI) 0))) goto LA3;
		localerror_188085((*n).info, ((NimStringDesc*) &TMP4292));
	}
	LA3: ;
	checkslicesaredisjoint_420791((&a));
	checkargs_421812((&a), body);
	varsection = newnodei_217248(((NU8) 99), (*n).info);
	LOC5 = 0;
	LOC5 = getident_190441(((NimStringDesc*) &TMP4296));
	temp = newsym_216684(((NU8) 5), LOC5, owner, (*n).info);
	LOC6 = 0;
	LOC6 = getcompilerproc_259746(((NimStringDesc*) &TMP4297));
	asgnRefNoCycle((void**) (&(*temp).typ), (*LOC6).typ);
	(*temp).flags |= ((NU32)1)<<((((NU8) 2))%(sizeof(NU32)*8));
	tempnode = newsymnode_217234(temp);
	addvar_377017(varsection, tempnode);
	barrier = genaddrof_378840(tempnode);
	result = newnodei_217248(((NU8) 115), (*n).info);
	generatealiaschecks_421817((&a), result);
	add_216114(result, varsection);
	LOC7 = 0;
	LOC7 = callcodegenproc_378850(((NimStringDesc*) &TMP4298), barrier, NIM_NIL, NIM_NIL, NIM_NIL);
	add_216114(result, LOC7);
	LOC8 = 0;
	LOC8 = transformspawn_421676(owner, body, barrier);
	add_216114(result, LOC8);
	LOC9 = 0;
	LOC9 = callcodegenproc_378850(((NimStringDesc*) &TMP4300), barrier, NIM_NIL, NIM_NIL, NIM_NIL);
	add_216114(result, LOC9);
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_semparallelInit000)(void) {
	asgnRefNoCycle((void**) (&opslice_420034), createmagic_220600(((NimStringDesc*) &TMP1037), ((NU8) 138)));
}

NIM_EXTERNC N_NOINLINE(void, compiler_semparallelDatInit000)(void) {
static TNimNode* TMP4269[7];
static TNimNode* TMP4270[2];
NI TMP4272;
static char* NIM_CONST TMP4271[2] = {
"ascending", 
"descending"};
static TNimNode* TMP4274[5];
static TNimNode TMP1035[17];
NTI420006.size = sizeof(Monotonicvar420006);
NTI420006.kind = 18;
NTI420006.base = 0;
NTI420006.flags = 2;
TMP4269[0] = &TMP1035[1];
TMP1035[1].kind = 1;
TMP1035[1].offset = offsetof(Monotonicvar420006, v);
TMP1035[1].typ = (&NTI215788);
TMP1035[1].name = "v";
TMP4269[1] = &TMP1035[2];
TMP1035[2].kind = 1;
TMP1035[2].offset = offsetof(Monotonicvar420006, alias);
TMP1035[2].typ = (&NTI215788);
TMP1035[2].name = "alias";
TMP4269[2] = &TMP1035[3];
TMP1035[3].kind = 1;
TMP1035[3].offset = offsetof(Monotonicvar420006, lower);
TMP1035[3].typ = (&NTI215782);
TMP1035[3].name = "lower";
TMP4269[3] = &TMP1035[4];
TMP1035[4].kind = 1;
TMP1035[4].offset = offsetof(Monotonicvar420006, upper);
TMP1035[4].typ = (&NTI215782);
TMP1035[4].name = "upper";
TMP4269[4] = &TMP1035[5];
TMP1035[5].kind = 1;
TMP1035[5].offset = offsetof(Monotonicvar420006, stride);
TMP1035[5].typ = (&NTI215782);
TMP1035[5].name = "stride";
TMP4269[5] = &TMP1035[6];
NTI420004.size = sizeof(NU8);
NTI420004.kind = 14;
NTI420004.base = 0;
NTI420004.flags = 3;
for (TMP4272 = 0; TMP4272 < 2; TMP4272++) {
TMP1035[TMP4272+7].kind = 1;
TMP1035[TMP4272+7].offset = TMP4272;
TMP1035[TMP4272+7].name = TMP4271[TMP4272];
TMP4270[TMP4272] = &TMP1035[TMP4272+7];
}
TMP1035[9].len = 2; TMP1035[9].kind = 2; TMP1035[9].sons = &TMP4270[0];
NTI420004.node = &TMP1035[9];
TMP1035[6].kind = 1;
TMP1035[6].offset = offsetof(Monotonicvar420006, dir);
TMP1035[6].typ = (&NTI420004);
TMP1035[6].name = "dir";
TMP4269[6] = &TMP1035[10];
TMP1035[10].kind = 1;
TMP1035[10].offset = offsetof(Monotonicvar420006, blacklisted);
TMP1035[10].typ = (&NTI130);
TMP1035[10].name = "blacklisted";
TMP1035[0].len = 7; TMP1035[0].kind = 2; TMP1035[0].sons = &TMP4269[0];
NTI420006.node = &TMP1035[0];
NTI420018.size = sizeof(TY420018*);
NTI420018.kind = 24;
NTI420018.base = (&NTI420006);
NTI420018.flags = 2;
NTI420018.marker = TMP4273;
NTI420021.size = sizeof(TY420021);
NTI420021.kind = 18;
NTI420021.base = 0;
NTI420021.flags = 2;
TMP4274[0] = &TMP1035[12];
TMP1035[12].kind = 1;
TMP1035[12].offset = offsetof(TY420021, Field0);
TMP1035[12].typ = (&NTI215782);
TMP1035[12].name = "Field0";
TMP4274[1] = &TMP1035[13];
TMP1035[13].kind = 1;
TMP1035[13].offset = offsetof(TY420021, Field1);
TMP1035[13].typ = (&NTI215782);
TMP1035[13].name = "Field1";
TMP4274[2] = &TMP1035[14];
TMP1035[14].kind = 1;
TMP1035[14].offset = offsetof(TY420021, Field2);
TMP1035[14].typ = (&NTI215782);
TMP1035[14].name = "Field2";
TMP4274[3] = &TMP1035[15];
TMP1035[15].kind = 1;
TMP1035[15].offset = offsetof(TY420021, Field3);
TMP1035[15].typ = (&NTI104);
TMP1035[15].name = "Field3";
TMP4274[4] = &TMP1035[16];
TMP1035[16].kind = 1;
TMP1035[16].offset = offsetof(TY420021, Field4);
TMP1035[16].typ = (&NTI130);
TMP1035[16].name = "Field4";
TMP1035[11].len = 5; TMP1035[11].kind = 2; TMP1035[11].sons = &TMP4274[0];
NTI420021.node = &TMP1035[11];
NTI420020.size = sizeof(TY420020*);
NTI420020.kind = 24;
NTI420020.base = (&NTI420021);
NTI420020.flags = 2;
NTI420020.marker = TMP4275;
}

