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

#include "nimbase.h"
#include <string.h>
typedef struct Tsym214822 Tsym214822;
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 Memregion29688 Memregion29688;
typedef struct Smallchunk29640 Smallchunk29640;
typedef struct Llchunk29682 Llchunk29682;
typedef struct Bigchunk29642 Bigchunk29642;
typedef struct Intset29614 Intset29614;
typedef struct Trunk29610 Trunk29610;
typedef struct Avlnode29686 Avlnode29686;
typedef struct Gcstat49814 Gcstat49814;
typedef struct Tnode214790 Tnode214790;
typedef struct Analysisctx419008 Analysisctx419008;
typedef struct TY419018 TY419018;
typedef struct TY419020 TY419020;
typedef struct Tnodeseq214784 Tnodeseq214784;
typedef struct Tsymseq214792 Tsymseq214792;
typedef struct Monotonicvar419006 Monotonicvar419006;
typedef struct TNimNode TNimNode;
typedef struct TY419021 TY419021;
typedef struct Ttype214828 Ttype214828;
typedef struct Tlineinfo182337 Tlineinfo182337;
typedef struct Tident189012 Tident189012;
typedef struct Tidobj189006 Tidobj189006;
typedef struct TNimObject TNimObject;
typedef struct Ttypeseq214824 Ttypeseq214824;
typedef struct Tscope214816 Tscope214816;
typedef struct TY214925 TY214925;
typedef struct Tstrtable214794 Tstrtable214794;
typedef struct Tloc214804 Tloc214804;
typedef struct Ropeobj169006 Ropeobj169006;
typedef struct Tlib214808 Tlib214808;
typedef struct Basechunk29638 Basechunk29638;
typedef struct Freecell29630 Freecell29630;
typedef struct Tinstantiation214812 Tinstantiation214812;
typedef struct Tlistentry135010 Tlistentry135010;
typedef struct TY214913 TY214913;
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 Smallchunk29640* TY29703[512];
typedef Trunk29610* Trunkbuckets29612[256];
struct  Intset29614  {
Trunkbuckets29612 data;
};
struct  Memregion29688  {
NI minlargeobj;
NI maxlargeobj;
TY29703 freesmallchunks;
Llchunk29682* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk29642* freechunkslist;
Intset29614 chunkstarts;
Avlnode29686* root;
Avlnode29686* deleted;
Avlnode29686* last;
Avlnode29686* 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;
Memregion29688 region;
Gcstat49814 stat;
};
struct  Analysisctx419008  {
TY419018* locals;
TY419020* slices;
Tnodeseq214784* guards;
Tsymseq214792* args;
NI spawns;
NI currentspawnid;
NI inloop;
};
struct  Monotonicvar419006  {
Tsym214822* v;
Tsym214822* alias;
Tnode214790* lower;
Tnode214790* upper;
Tnode214790* 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 TY419021 {
Tnode214790* Field0;
Tnode214790* Field1;
Tnode214790* Field2;
NI Field3;
NIM_BOOL Field4;
};
struct  Tlineinfo182337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode214790  {
Ttype214828* typ;
Tlineinfo182337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym214822* sym;
} S4;
struct {Tident189012* ident;
} S5;
struct {Tnodeseq214784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj189006  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable214794  {
NI counter;
Tsymseq214792* data;
};
struct  Tloc214804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype214828* t;
Ropeobj169006* r;
Ropeobj169006* heaproot;
};
struct  Tsym214822  {
  Tidobj189006 Sup;
NU8 kind;
union{
struct {Ttypeseq214824* typeinstcache;
Tscope214816* typscope;
} S1;
struct {TY214925* procinstcache;
Tsym214822* gcunsafetyreason;
} S2;
struct {TY214925* usedgenerics;
Tstrtable214794 tab;
} S3;
struct {Tsym214822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype214828* typ;
Tident189012* name;
Tlineinfo182337 info;
Tsym214822* owner;
NU32 flags;
Tnode214790* ast;
NU32 options;
NI position;
NI offset;
Tloc214804 loc;
Tlib214808* annex;
Tnode214790* constraint;
};
struct  Tident189012  {
  Tidobj189006 Sup;
NimStringDesc* s;
Tident189012* next;
NI h;
};
typedef NimStringDesc* TY419660[6];
typedef NimStringDesc* TY185781[4];
struct  Ttype214828  {
  Tidobj189006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq214824* sons;
Tnode214790* n;
Tsym214822* owner;
Tsym214822* sym;
Tsym214822* destructor;
Tsym214822* deepcopy;
Tsym214822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc214804 loc;
};
struct  Gcstack49816  {
Gcstack49816* prev;
Gcstack49816* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29619[8];
struct  Pagedesc47513  {
Pagedesc47513* next;
NI key;
TY29619 bits;
};
struct  Basechunk29638  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk29640  {
  Basechunk29638 Sup;
Smallchunk29640* next;
Smallchunk29640* prev;
Freecell29630* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk29682  {
NI size;
NI acc;
Llchunk29682* next;
};
struct  Bigchunk29642  {
  Basechunk29638 Sup;
Bigchunk29642* next;
Bigchunk29642* prev;
NI align;
NF data;
};
struct  Trunk29610  {
Trunk29610* next;
NI key;
TY29619 bits;
};
typedef Avlnode29686* TY29693[2];
struct  Avlnode29686  {
TY29693 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope214816  {
NI depthlevel;
Tstrtable214794 symbols;
Tnodeseq214784* usingsyms;
Tscope214816* parent;
};
struct  Ropeobj169006  {
  TNimObject Sup;
Ropeobj169006* left;
Ropeobj169006* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry135010  {
  TNimObject Sup;
Tlistentry135010* prev;
Tlistentry135010* next;
};
struct  Tlib214808  {
  Tlistentry135010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj169006* name;
Tnode214790* path;
};
struct  Freecell29630  {
Freecell29630* next;
NI zerofield;
};
struct  Tinstantiation214812  {
Tsym214822* sym;
Ttypeseq214824* concretetypes;
TY214913* usedby;
NI compilesid;
};
struct TY419018 {
  TGenericSeq Sup;
  Monotonicvar419006 data[SEQ_DECL_SIZE];
};
struct TY419020 {
  TGenericSeq Sup;
  TY419021 data[SEQ_DECL_SIZE];
};
struct Tsymseq214792 {
  TGenericSeq Sup;
  Tsym214822* data[SEQ_DECL_SIZE];
};
struct Tnodeseq214784 {
  TGenericSeq Sup;
  Tnode214790* data[SEQ_DECL_SIZE];
};
struct Ttypeseq214824 {
  TGenericSeq Sup;
  Ttype214828* data[SEQ_DECL_SIZE];
};
struct TY214925 {
  TGenericSeq Sup;
  Tinstantiation214812* data[SEQ_DECL_SIZE];
};
struct TY214913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Tsym214822*, createmagic_219601)(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_419035)(Analysisctx419008* Result);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP4272)(void* p, NI op);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, TMP4274)(void* p, NI op);
N_NOINLINE(void, chckNil)(void* p);
N_NIMCALL(Tnode214790*, lastson_217364)(Tnode214790* n);
N_NIMCALL(void, analyse_420072)(Analysisctx419008* c, Tnode214790* n);
N_NIMCALL(Tnode214790*, skipconv_249082)(Tnode214790* n);
static N_INLINE(Tnode214790*, HEX5BHEX5D_215238)(Tnode214790* n, NI i);
N_NIMCALL(NIM_BOOL, issingleassignable_419275)(Tnode214790* n);
N_NIMCALL(NIM_BOOL, islocal_419329)(Tnode214790* n);
N_NIMCALL(Monotonicvar419006*, getslot_419163)(Analysisctx419008* c, Tsym214822* v);
N_NIMCALL(NI, lookupslot_419102)(Analysisctx419008* c, Tsym214822* s);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, invalidatefacts_336410)(Tnodeseq214784** m, Tnode214790* n);
N_NIMCALL(NU8, getmagic_239323)(Tnode214790* op);
N_NIMCALL(void, gatherargs_419192)(Analysisctx419008* c, Tnode214790* n);
static N_INLINE(NI, safelen_215081)(Tnode214790* n);
N_NIMCALL(Tsym214822*, getroot_378330)(Tnode214790* n);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, analysesons_420077)(Analysisctx419008* c, Tnode214790* n);
N_NIMCALL(void, addasgnfact_338655)(Tnodeseq214784** m, Tnode214790* key, Tnode214790* value);
N_NIMCALL(void, analysecall_420144)(Analysisctx419008* c, Tnode214790* n, Tsym214822* op);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NIM_BOOL, fromsystem_420124)(Tsym214822* op);
N_NIMCALL(Tsym214822*, getmodule_221144)(Tsym214822* s);
N_NIMCALL(Tnode214790*, min_420108)(Tnode214790* a, Tnode214790* b);
N_NIMCALL(Tnode214790*, skipstmtlist_219555)(Tnode214790* n);
N_NIMCALL(void, addslice_419611)(Analysisctx419008* c, Tnode214790* n, Tnode214790* x, Tnode214790* le_419617, Tnode214790* ri_419618);
N_NIMCALL(void, checklocal_419383)(Analysisctx419008* c, Tnode214790* n);
N_NIMCALL(void, localerror_187085)(Tlineinfo182337 info, NimStringDesc* arg);
N_NIMCALL(Tnode214790*, canon_335675)(Tnode214790* n);
N_NIMCALL(void, addlowerboundasfacts_419449)(Analysisctx419008* c);
N_NIMCALL(void, addfactle_338402)(Tnodeseq214784** m, Tnode214790* a, Tnode214790* b);
N_NIMCALL(Tnode214790*, newsymnode_216234)(Tsym214822* sym);
N_NIMCALL(void, checkbounds_419442)(Analysisctx419008* c, Tnode214790* arr, Tnode214790* idx);
N_NIMCALL(void, checkle_419433)(Analysisctx419008* c, Tnode214790* a, Tnode214790* b);
N_NIMCALL(NU8, provele_338382)(Tnodeseq214784* m, Tnode214790* a, Tnode214790* b);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, rendertree_233044)(Tnode214790* n, NU8 renderflags);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(Tnode214790*, lowbound_335558)(Tnode214790* x);
N_NIMCALL(Tnode214790*, highbound_335562)(Tnode214790* x);
N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
static N_INLINE(NI, len_215059)(Tnode214790* n);
N_NIMCALL(void, internalerror_187100)(Tlineinfo182337 info, NimStringDesc* errmsg);
N_NIMCALL(void, analysecase_420211)(Analysisctx419008* c, Tnode214790* n);
N_NIMCALL(void, addcasebranchfacts_338694)(Tnodeseq214784** m, Tnode214790* n, NI i);
N_NIMCALL(void, analyseif_420304)(Analysisctx419008* c, Tnode214790* n);
N_NIMCALL(void, addfact_336193)(Tnodeseq214784** m, Tnode214790* nn);
N_NIMCALL(void, addfactneg_336221)(Tnodeseq214784** m, Tnode214790* n_336225);
N_NIMCALL(NIM_BOOL, istrue_345867)(Tnode214790* n);
N_NIMCALL(NIM_BOOL, hassubnodewith_219175)(Tnode214790* n, NU8 kind);
N_NIMCALL(void, checkslicesaredisjoint_419791)(Analysisctx419008* c);
N_NIMCALL(void, overlap_419653)(Tnodeseq214784* m, Tnode214790* x, Tnode214790* y, Tnode214790* c, Tnode214790* d);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(Tnode214790*, substride_419741)(Analysisctx419008* c, Tnode214790* n);
N_NIMCALL(Tnode214790*, HEX2BHEX40_335976)(Tnode214790* a, NI64 b);
N_NIMCALL(Tnode214790*, shallowcopy_218611)(Tnode214790* src);
N_NIMCALL(NIM_BOOL, sametree_336245)(Tnode214790* a, Tnode214790* b);
N_NIMCALL(NI64, simpleslice_337042)(Tnode214790* a, Tnode214790* b);
N_NIMCALL(NI64, stride_419684)(Analysisctx419008* c, Tnode214790* n);
N_NIMCALL(void, checkargs_420812)(Analysisctx419008* a, Tnode214790* n);
N_NIMCALL(Tnode214790*, newnodei_216248)(NU8 kind, Tlineinfo182337 info);
N_NIMCALL(Tsym214822*, newsym_215683)(NU8 symkind, Tident189012* name, Tsym214822* owner, Tlineinfo182337 info);
N_NIMCALL(Tident189012*, getident_189441)(NimStringDesc* identifier);
N_NIMCALL(Tsym214822*, getcompilerproc_258748)(NimStringDesc* name);
N_NIMCALL(void, addvar_376017)(Tnode214790* father, Tnode214790* v);
N_NIMCALL(Tnode214790*, genaddrof_377840)(Tnode214790* n);
N_NIMCALL(void, generatealiaschecks_420817)(Analysisctx419008* a, Tnode214790* result);
N_NIMCALL(void, add_215114)(Tnode214790* father, Tnode214790* son);
N_NIMCALL(Tnode214790*, callcodegenproc_377850)(NimStringDesc* name, Tnode214790* arg1, Tnode214790* arg2, Tnode214790* arg3, Tnode214790* optionalargs);
N_NIMCALL(Tnode214790*, transformspawn_420676)(Tsym214822* owner, Tnode214790* n, Tnode214790* barrier);
N_NIMCALL(Tnode214790*, transformslices_420612)(Tnode214790* n);
N_NIMCALL(Tnode214790*, copynode_218542)(Tnode214790* src);
N_NIMCALL(NU8, spawnresult_377947)(Ttype214828* t, NIM_BOOL inparallel);
N_NIMCALL(Tnode214790*, wrapprocforspawn_378500)(Tsym214822* owner, Tnode214790* spawnexpr, Ttype214828* rettype, Tnode214790* barrier, Tnode214790* dest);
N_NIMCALL(Tnode214790*, transformspawnsons_420681)(Tsym214822* owner, Tnode214790* n, Tnode214790* barrier);
STRING_LITERAL(TMP1035, "slice", 5);
STRING_LITERAL(TMP4275, "+=", 2);
STRING_LITERAL(TMP4276, "[]", 2);
STRING_LITERAL(TMP4277, "invalid usage of counter after increment", 40);
STRING_LITERAL(TMP4283, "cannot prove: ", 14);
STRING_LITERAL(TMP4284, " <= ", 4);
STRING_LITERAL(TMP4285, " (bounds check)", 15);
STRING_LITERAL(TMP4286, "can prove: ", 11);
STRING_LITERAL(TMP4287, " > ", 3);
STRING_LITERAL(TMP4288, "[]=", 3);
STRING_LITERAL(TMP4289, "invalid control flow for \'parallel\'", 35);
STRING_LITERAL(TMP4290, "slot already has a lower bound", 30);
STRING_LITERAL(TMP4291, "\'parallel\' section without \'spawn\'", 34);
STRING_LITERAL(TMP4292, "cannot prove: $# > $#; required for ($#)..($#) disjoint from ($"
"#)..($#)", 71);
STRING_LITERAL(TMP4293, "($#)..($#) not disjoint from ($#)..($#)", 39);
STRING_LITERAL(TMP4294, "cannot prove ($#)..($#) disjoint from ($#)..($#)", 48);
STRING_LITERAL(TMP4295, "barrier", 7);
STRING_LITERAL(TMP4296, "Barrier", 7);
STRING_LITERAL(TMP4297, "openBarrier", 11);
STRING_LITERAL(TMP4298, "invalid context for \'spawn\'", 27);
STRING_LITERAL(TMP4299, "closeBarrier", 12);
Tsym214822* opslice_419034;
extern Gcheap49818 gch_49859;
TNimType NTI419006; /* MonotonicVar */
extern TNimType NTI214788; /* PSym */
extern TNimType NTI214782; /* PNode */
TNimType NTI419004; /* TDirection */
extern TNimType NTI130; /* bool */
TNimType NTI419018; /* seq[MonotonicVar] */
TNimType NTI419021; /* tuple[x: PNode, a: PNode, b: PNode, spawnId: int, inLoop: bool] */
extern TNimType NTI104; /* int */
TNimType NTI419020; /* seq[tuple[x: PNode, a: PNode, b: PNode, spawnId: int, inLoop: bool]] */
extern TNimType NTI214792; /* TSymSeq */
extern TNimType NTI214784; /* TNodeSeq */
extern Tnode214790* emptynode_215801;

static N_INLINE(Cell47505*, usrtocell_51440)(void* usr) {
	Cell47505* result;
	result = 0;
	result = ((Cell47505*) ((NI)((NU64)(((NI) (usr))) - (NU64)(((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 (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA11;
			rtladdzct_53001(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}
N_NIMCALL(void, TMP4272)(void* p, NI op) {
	TY419018* a;
	NI LOC1;
	a = (TY419018*)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, TMP4274)(void* p, NI op) {
	TY419020* a;
	NI LOC1;
	a = (TY419020*)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_419035)(Analysisctx419008* Result) {
	unsureAsgnRef((void**) (&(*Result).locals), (TY419018*) newSeq((&NTI419018), 0));
	unsureAsgnRef((void**) (&(*Result).slices), (TY419020*) newSeq((&NTI419020), 0));
	unsureAsgnRef((void**) (&(*Result).args), (Tsymseq214792*) newSeq((&NTI214792), 0));
	unsureAsgnRef((void**) (&(*Result).guards), (Tnodeseq214784*) newSeq((&NTI214784), 0));
}

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

N_NIMCALL(NIM_BOOL, issingleassignable_419275)(Tnode214790* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	Tsym214822* 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_419329)(Tnode214790* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	Tsym214822* 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_419102)(Analysisctx419008* c, Tsym214822* s) {
	NI result;
{	result = 0;
	{
		NI i_419132;
		NI HEX3Atmp_419156;
		NI res_419159;
		i_419132 = 0;
		HEX3Atmp_419156 = 0;
		HEX3Atmp_419156 = (((*c).locals ? (*c).locals->Sup.len : 0) - 1);
		res_419159 = ((NI) 0);
		{
			while (1) {
				if (!(res_419159 <= HEX3Atmp_419156)) goto LA3;
				i_419132 = res_419159;
				{
					NIM_BOOL LOC6;
					LOC6 = 0;
					LOC6 = ((*c).locals->data[i_419132].v == s);
					if (LOC6) goto LA7;
					LOC6 = ((*c).locals->data[i_419132].alias == s);
					LA7: ;
					if (!LOC6) goto LA8;
					result = i_419132;
					goto BeforeRet;
				}
				LA8: ;
				res_419159 += ((NI) 1);
			} LA3: ;
		}
	}
	result = ((NI) -1);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Monotonicvar419006*, getslot_419163)(Analysisctx419008* c, Tsym214822* v) {
	Monotonicvar419006* result;
	NI s;
	NI L;
{	result = 0;
	s = lookupslot_419102((&(*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 = (TY419018*) setLengthSeq(&((*c).locals)->Sup, sizeof(Monotonicvar419006), ((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_215081)(Tnode214790* 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_419192)(Analysisctx419008* c, Tnode214790* n) {
	{
		NI i_419215;
		NI HEX3Atmp_419268;
		NI LOC2;
		NI res_419271;
		i_419215 = 0;
		HEX3Atmp_419268 = 0;
		LOC2 = 0;
		LOC2 = safelen_215081(n);
		HEX3Atmp_419268 = (LOC2 - 1);
		res_419271 = ((NI) 0);
		{
			while (1) {
				Tsym214822* root;
				Tnode214790* LOC5;
				Tnode214790* LOC18;
				if (!(res_419271 <= HEX3Atmp_419268)) goto LA4;
				i_419215 = res_419271;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_215238(n, i_419215);
				root = getroot_378330(LOC5);
				{
					if (!!((root == NIM_NIL))) goto LA8;
					{
						{
							Tsym214822* r_419238;
							Tsymseq214792* HEX3Atmp_419262;
							NI i_419265;
							NI L_419267;
							r_419238 = 0;
							HEX3Atmp_419262 = 0;
							HEX3Atmp_419262 = (*c).args;
							i_419265 = ((NI) 0);
							L_419267 = (HEX3Atmp_419262 ? HEX3Atmp_419262->Sup.len : 0);
							{
								while (1) {
									if (!(i_419265 < L_419267)) goto LA13;
									r_419238 = HEX3Atmp_419262->data[i_419265];
									{
										if (!(r_419238 == root)) goto LA16;
										goto LA10;
									}
									LA16: ;
									i_419265 += ((NI) 1);
								} LA13: ;
							}
						}
						(*c).args = (Tsymseq214792*) incrSeqV2(&((*c).args)->Sup, sizeof(Tsym214822*));
						asgnRefNoCycle((void**) (&(*c).args->data[(*c).args->Sup.len]), root);
						++(*c).args->Sup.len;
					} LA10: ;
				}
				LA8: ;
				LOC18 = 0;
				LOC18 = HEX5BHEX5D_215238(n, i_419215);
				gatherargs_419192(c, LOC18);
				res_419271 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(void, analysesons_420077)(Analysisctx419008* c, Tnode214790* n) {
	{
		NI i_420099;
		NI HEX3Atmp_420101;
		NI LOC2;
		NI res_420104;
		i_420099 = 0;
		HEX3Atmp_420101 = 0;
		LOC2 = 0;
		LOC2 = safelen_215081(n);
		HEX3Atmp_420101 = (LOC2 - 1);
		res_420104 = ((NI) 0);
		{
			while (1) {
				Tnode214790* LOC5;
				if (!(res_420104 <= HEX3Atmp_420101)) goto LA4;
				i_420099 = res_420104;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_215238(n, i_420099);
				analyse_420072(c, LOC5);
				res_420104 += ((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_420124)(Tsym214822* op) {
	NIM_BOOL result;
	Tsym214822* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getmodule_221144(op);
	result = (((*LOC1).flags &(1U<<((NU)(((NU8) 13))&31U)))!=0);
	return result;
}

N_NIMCALL(Tnode214790*, min_420108)(Tnode214790* a, Tnode214790* b) {
	Tnode214790* 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_419383)(Analysisctx419008* c, Tnode214790* n) {
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_419329(n);
		if (!LOC3) goto LA4;
		s = lookupslot_419102(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_187085((*n).info, ((NimStringDesc*) &TMP4277));
		}
		LA10: ;
	}
	goto LA1;
	LA4: ;
	{
		{
			NI i_419419;
			NI HEX3Atmp_419422;
			NI LOC14;
			NI res_419425;
			i_419419 = 0;
			HEX3Atmp_419422 = 0;
			LOC14 = 0;
			LOC14 = safelen_215081(n);
			HEX3Atmp_419422 = (LOC14 - 1);
			res_419425 = ((NI) 0);
			{
				while (1) {
					if (!(res_419425 <= HEX3Atmp_419422)) goto LA16;
					i_419419 = res_419425;
					checklocal_419383(c, (*n).kindU.S6.sons->data[i_419419]);
					res_419425 += ((NI) 1);
				} LA16: ;
			}
		}
	}
	LA1: ;
}

N_NIMCALL(void, addlowerboundasfacts_419449)(Analysisctx419008* c) {
	{
		Monotonicvar419006 v_419602;
		TY419018* HEX3Atmp_419605;
		NI i_419608;
		NI L_419610;
		memset((void*)(&v_419602), 0, sizeof(v_419602));
		HEX3Atmp_419605 = 0;
		HEX3Atmp_419605 = (*c).locals;
		i_419608 = ((NI) 0);
		L_419610 = (HEX3Atmp_419605 ? HEX3Atmp_419605->Sup.len : 0);
		{
			while (1) {
				if (!(i_419608 < L_419610)) goto LA3;
				memcpy((void*)(&v_419602), (NIM_CONST void*)(&HEX3Atmp_419605->data[i_419608]), sizeof(v_419602));
				{
					Tnode214790* LOC8;
					if (!!(v_419602.blacklisted)) goto LA6;
					LOC8 = 0;
					LOC8 = newsymnode_216234(v_419602.v);
					addfactle_338402((&(*c).guards), v_419602.lower, LOC8);
				}
				LA6: ;
				i_419608 += ((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_419433)(Analysisctx419008* c, Tnode214790* a, Tnode214790* b) {
	NU8 LOC1;
	LOC1 = 0;
	LOC1 = provele_338382((*c).guards, a, b);
	switch (LOC1) {
	case ((NU8) 0):
	{
		NimStringDesc* LOC3;
		NimStringDesc* LOC4;
		NimStringDesc* LOC5;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = rendertree_233044(a, 0);
		LOC5 = 0;
		LOC5 = rendertree_233044(b, 0);
		LOC3 = rawNewString(LOC4->Sup.len + LOC5->Sup.len + 33);
appendString(LOC3, ((NimStringDesc*) &TMP4283));
appendString(LOC3, LOC4);
appendString(LOC3, ((NimStringDesc*) &TMP4284));
appendString(LOC3, LOC5);
appendString(LOC3, ((NimStringDesc*) &TMP4285));
		localerror_187085((*a).info, LOC3);
	}
	break;
	case ((NU8) 2):
	{
	}
	break;
	case ((NU8) 1):
	{
		NimStringDesc* LOC8;
		NimStringDesc* LOC9;
		NimStringDesc* LOC10;
		LOC8 = 0;
		LOC9 = 0;
		LOC9 = rendertree_233044(a, 0);
		LOC10 = 0;
		LOC10 = rendertree_233044(b, 0);
		LOC8 = rawNewString(LOC9->Sup.len + LOC10->Sup.len + 29);
appendString(LOC8, ((NimStringDesc*) &TMP4286));
appendString(LOC8, LOC9);
appendString(LOC8, ((NimStringDesc*) &TMP4287));
appendString(LOC8, LOC10);
appendString(LOC8, ((NimStringDesc*) &TMP4285));
		localerror_187085((*a).info, LOC8);
	}
	break;
	}
}

N_NIMCALL(void, checkbounds_419442)(Analysisctx419008* c, Tnode214790* arr, Tnode214790* idx) {
	Tnode214790* LOC1;
	Tnode214790* LOC2;
	LOC1 = 0;
	LOC1 = lowbound_335558(arr);
	checkle_419433(c, LOC1, idx);
	LOC2 = 0;
	LOC2 = highbound_335562(arr);
	checkle_419433(c, idx, LOC2);
}

N_NIMCALL(void, addslice_419611)(Analysisctx419008* c, Tnode214790* n, Tnode214790* x, Tnode214790* le_419617, Tnode214790* ri_419618) {
	Tnode214790* le;
	Tnode214790* ri;
	NI oldstate;
	TY419021 LOC1;
	checklocal_419383((&(*c)), n);
	le = canon_335675(le_419617);
	ri = canon_335675(ri_419618);
	oldstate = ((*c).guards ? (*c).guards->Sup.len : 0);
	addlowerboundasfacts_419449(c);
	checkbounds_419442((&(*c)), x, le);
	checkbounds_419442((&(*c)), x, ri);
	(*c).guards = (Tnodeseq214784*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode214790*), ((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 = (TY419020*) incrSeqV2(&((*c).slices)->Sup, sizeof(TY419021));
	genericAssign((void*)(&(*c).slices->data[(*c).slices->Sup.len]), (void*)(&LOC1), (&NTI419021));
	++(*c).slices->Sup.len;
}

N_NIMCALL(void, analysecall_420144)(Analysisctx419008* c, Tnode214790* n, Tsym214822* op) {
	{
		NI oldspawnid;
		Tnode214790* LOC5;
		if (!((*op).magic == ((NU8) 201))) goto LA3;
		(*c).spawns += ((NI) 1);
		oldspawnid = (*c).currentspawnid;
		(*c).currentspawnid = (*c).spawns;
		LOC5 = 0;
		LOC5 = HEX5BHEX5D_215238(n, ((NI) 1));
		gatherargs_419192(c, LOC5);
		analysesons_420077(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*) &TMP4275));
		if (!(LOC9)) goto LA10;
		LOC9 = fromsystem_420124(op);
		LA10: ;
		LOC7 = LOC9;
		LA8: ;
		if (!LOC7) goto LA11;
		{
			Tnode214790* LOC15;
			NIM_BOOL LOC16;
			Tnode214790* incr;
			Tnode214790* LOC19;
			LOC15 = 0;
			LOC15 = HEX5BHEX5D_215238(n, ((NI) 1));
			LOC16 = 0;
			LOC16 = islocal_419329(LOC15);
			if (!LOC16) goto LA17;
			LOC19 = 0;
			LOC19 = HEX5BHEX5D_215238(n, ((NI) 2));
			incr = skipconv_249082(LOC19);
			{
				NIM_BOOL LOC22;
				Monotonicvar419006* slot;
				Tnode214790* 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_215238(n, ((NI) 1));
				slot = getslot_419163(c, (*LOC26).kindU.S4.sym);
				unsureAsgnRef((void**) (&(*slot).stride), min_420108((*slot).stride, incr));
			}
			LA24: ;
		}
		LA17: ;
		analysesons_420077(c, n);
	}
	goto LA1;
	LA11: ;
	{
		NIM_BOOL LOC28;
		Tnode214790* slice;
		Tnode214790* LOC32;
		Tnode214790* LOC33;
		Tnode214790* LOC34;
		Tnode214790* LOC35;
		LOC28 = 0;
		LOC28 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4276));
		if (!(LOC28)) goto LA29;
		LOC28 = fromsystem_420124(op);
		LA29: ;
		if (!LOC28) goto LA30;
		LOC32 = 0;
		LOC32 = HEX5BHEX5D_215238(n, ((NI) 2));
		slice = skipstmtlist_219555(LOC32);
		LOC33 = 0;
		LOC33 = HEX5BHEX5D_215238(n, ((NI) 1));
		LOC34 = 0;
		LOC34 = HEX5BHEX5D_215238(slice, ((NI) 1));
		LOC35 = 0;
		LOC35 = HEX5BHEX5D_215238(slice, ((NI) 2));
		addslice_419611(c, n, LOC33, LOC34, LOC35);
		analysesons_420077(c, n);
	}
	goto LA1;
	LA30: ;
	{
		NIM_BOOL LOC37;
		Tnode214790* slice;
		Tnode214790* LOC41;
		Tnode214790* LOC42;
		Tnode214790* LOC43;
		Tnode214790* LOC44;
		LOC37 = 0;
		LOC37 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4288));
		if (!(LOC37)) goto LA38;
		LOC37 = fromsystem_420124(op);
		LA38: ;
		if (!LOC37) goto LA39;
		LOC41 = 0;
		LOC41 = HEX5BHEX5D_215238(n, ((NI) 2));
		slice = skipstmtlist_219555(LOC41);
		LOC42 = 0;
		LOC42 = HEX5BHEX5D_215238(n, ((NI) 1));
		LOC43 = 0;
		LOC43 = HEX5BHEX5D_215238(slice, ((NI) 1));
		LOC44 = 0;
		LOC44 = HEX5BHEX5D_215238(slice, ((NI) 2));
		addslice_419611(c, n, LOC42, LOC43, LOC44);
		analysesons_420077(c, n);
	}
	goto LA1;
	LA39: ;
	{
		analysesons_420077(c, n);
	}
	LA1: ;
}

static N_INLINE(NI, len_215059)(Tnode214790* 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_420211)(Analysisctx419008* c, Tnode214790* n) {
	NI oldfacts;
	analyse_420072(c, (*n).kindU.S6.sons->data[((NI) 0)]);
	oldfacts = ((*c).guards ? (*c).guards->Sup.len : 0);
	{
		NI i_420244;
		NI HEX3Atmp_420297;
		NI LOC2;
		NI res_420300;
		i_420244 = 0;
		HEX3Atmp_420297 = 0;
		LOC2 = 0;
		LOC2 = len_215059(n);
		HEX3Atmp_420297 = (LOC2 - 1);
		res_420300 = ((NI) 1);
		{
			while (1) {
				Tnode214790* branch;
				if (!(res_420300 <= HEX3Atmp_420297)) goto LA4;
				i_420244 = res_420300;
				branch = (*n).kindU.S6.sons->data[i_420244];
				(*c).guards = (Tnodeseq214784*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode214790*), ((NI) (oldfacts)));
				addcasebranchfacts_338694((&(*c).guards), n, i_420244);
				{
					NI i_420276;
					NI HEX3Atmp_420290;
					NI LOC6;
					NI res_420293;
					i_420276 = 0;
					HEX3Atmp_420290 = 0;
					LOC6 = 0;
					LOC6 = len_215059(branch);
					HEX3Atmp_420290 = (LOC6 - 1);
					res_420293 = ((NI) 0);
					{
						while (1) {
							if (!(res_420293 <= HEX3Atmp_420290)) goto LA8;
							i_420276 = res_420293;
							analyse_420072(c, (*branch).kindU.S6.sons->data[i_420276]);
							res_420293 += ((NI) 1);
						} LA8: ;
					}
				}
				res_420300 += ((NI) 1);
			} LA4: ;
		}
	}
	(*c).guards = (Tnodeseq214784*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode214790*), ((NI) (oldfacts)));
}

N_NIMCALL(void, analyseif_420304)(Analysisctx419008* c, Tnode214790* n) {
	NI oldfacts;
	Tnode214790* LOC1;
	analyse_420072(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_335675((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
	addfact_336193((&(*c).guards), LOC1);
	analyse_420072(c, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]);
	{
		NI i_420343;
		NI HEX3Atmp_420419;
		NI LOC3;
		NI res_420422;
		i_420343 = 0;
		HEX3Atmp_420419 = 0;
		LOC3 = 0;
		LOC3 = len_215059(n);
		HEX3Atmp_420419 = (LOC3 - 1);
		res_420422 = ((NI) 1);
		{
			while (1) {
				Tnode214790* branch;
				if (!(res_420422 <= HEX3Atmp_420419)) goto LA5;
				i_420343 = res_420422;
				branch = (*n).kindU.S6.sons->data[i_420343];
				(*c).guards = (Tnodeseq214784*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode214790*), ((NI) (oldfacts)));
				{
					NI j_420365;
					NI HEX3Atmp_420404;
					NI res_420407;
					j_420365 = 0;
					HEX3Atmp_420404 = 0;
					HEX3Atmp_420404 = (NI)(i_420343 - ((NI) 1));
					res_420407 = ((NI) 0);
					{
						while (1) {
							Tnode214790* LOC9;
							if (!(res_420407 <= HEX3Atmp_420404)) goto LA8;
							j_420365 = res_420407;
							LOC9 = 0;
							LOC9 = canon_335675((*(*n).kindU.S6.sons->data[j_420365]).kindU.S6.sons->data[((NI) 0)]);
							addfactneg_336221((&(*c).guards), LOC9);
							res_420407 += ((NI) 1);
						} LA8: ;
					}
				}
				{
					NI LOC12;
					Tnode214790* LOC15;
					LOC12 = 0;
					LOC12 = len_215059(branch);
					if (!(((NI) 1) < LOC12)) goto LA13;
					LOC15 = 0;
					LOC15 = canon_335675((*branch).kindU.S6.sons->data[((NI) 0)]);
					addfact_336193((&(*c).guards), LOC15);
				}
				LA13: ;
				{
					NI i_420390;
					NI HEX3Atmp_420412;
					NI LOC17;
					NI res_420415;
					i_420390 = 0;
					HEX3Atmp_420412 = 0;
					LOC17 = 0;
					LOC17 = len_215059(branch);
					HEX3Atmp_420412 = (LOC17 - 1);
					res_420415 = ((NI) 0);
					{
						while (1) {
							if (!(res_420415 <= HEX3Atmp_420412)) goto LA19;
							i_420390 = res_420415;
							analyse_420072(c, (*branch).kindU.S6.sons->data[i_420390]);
							res_420415 += ((NI) 1);
						} LA19: ;
					}
				}
				res_420422 += ((NI) 1);
			} LA5: ;
		}
	}
	(*c).guards = (Tnodeseq214784*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode214790*), ((NI) (oldfacts)));
}

N_NIMCALL(void, analyse_420072)(Analysisctx419008* c, Tnode214790* n) {
	switch ((*n).kind) {
	case ((NU8) 73):
	case ((NU8) 74):
	{
		Tnode214790* y;
		Tnode214790* LOC2;
		Tnode214790* LOC17;
		Tnode214790* value;
		Tnode214790* LOC27;
		LOC2 = 0;
		LOC2 = HEX5BHEX5D_215238(n, ((NI) 1));
		y = skipconv_249082(LOC2);
		{
			NIM_BOOL LOC5;
			Tnode214790* LOC6;
			Monotonicvar419006* slot;
			Tnode214790* LOC10;
			LOC5 = 0;
			LOC6 = 0;
			LOC6 = HEX5BHEX5D_215238(n, ((NI) 0));
			LOC5 = issingleassignable_419275(LOC6);
			if (!(LOC5)) goto LA7;
			LOC5 = islocal_419329(y);
			LA7: ;
			if (!LOC5) goto LA8;
			slot = getslot_419163(c, (*y).kindU.S4.sym);
			LOC10 = 0;
			LOC10 = HEX5BHEX5D_215238(n, ((NI) 0));
			unsureAsgnRef((void**) (&(*slot).alias), (*LOC10).kindU.S4.sym);
		}
		goto LA3;
		LA8: ;
		{
			Tnode214790* LOC12;
			NIM_BOOL LOC13;
			Monotonicvar419006* slot;
			Tnode214790* LOC16;
			LOC12 = 0;
			LOC12 = HEX5BHEX5D_215238(n, ((NI) 0));
			LOC13 = 0;
			LOC13 = islocal_419329(LOC12);
			if (!LOC13) goto LA14;
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_215238(n, ((NI) 0));
			slot = getslot_419163(c, (*LOC16).kindU.S4.sym);
			(*slot).blacklisted = NIM_TRUE;
		}
		goto LA3;
		LA14: ;
		LA3: ;
		LOC17 = 0;
		LOC17 = HEX5BHEX5D_215238(n, ((NI) 0));
		invalidatefacts_336410((&(*c).guards), LOC17);
		value = HEX5BHEX5D_215238(n, ((NI) 1));
		{
			NU8 LOC20;
			NI oldspawnid;
			Tnode214790* LOC23;
			Tnode214790* LOC24;
			Tnode214790* LOC25;
			LOC20 = 0;
			LOC20 = getmagic_239323(value);
			if (!(LOC20 == ((NU8) 201))) goto LA21;
			(*c).spawns += ((NI) 1);
			oldspawnid = (*c).currentspawnid;
			(*c).currentspawnid = (*c).spawns;
			LOC23 = 0;
			LOC23 = HEX5BHEX5D_215238(value, ((NI) 1));
			gatherargs_419192(c, LOC23);
			LOC24 = 0;
			LOC24 = HEX5BHEX5D_215238(value, ((NI) 1));
			analysesons_420077(c, LOC24);
			LOC25 = 0;
			LOC25 = HEX5BHEX5D_215238(n, ((NI) 0));
			analyse_420072(c, LOC25);
			(*c).currentspawnid = oldspawnid;
		}
		goto LA18;
		LA21: ;
		{
			analysesons_420077(c, n);
		}
		LA18: ;
		LOC27 = 0;
		LOC27 = HEX5BHEX5D_215238(n, ((NI) 0));
		addasgnfact_338655((&(*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):
	{
		{
			Tnode214790* LOC31;
			Tnode214790* LOC34;
			LOC31 = 0;
			LOC31 = HEX5BHEX5D_215238(n, ((NI) 0));
			if (!((*LOC31).kind == ((NU8) 3))) goto LA32;
			LOC34 = 0;
			LOC34 = HEX5BHEX5D_215238(n, ((NI) 0));
			analysecall_420144(c, n, (*LOC34).kindU.S4.sym);
		}
		goto LA29;
		LA32: ;
		{
			analysesons_420077(c, n);
		}
		LA29: ;
	}
	break;
	case ((NU8) 42):
	{
		Tnode214790* LOC37;
		Tnode214790* LOC38;
		Tnode214790* LOC39;
		LOC37 = 0;
		LOC37 = HEX5BHEX5D_215238(n, ((NI) 0));
		LOC38 = 0;
		LOC38 = HEX5BHEX5D_215238(n, ((NI) 1));
		LOC39 = 0;
		LOC39 = HEX5BHEX5D_215238(n, ((NI) 1));
		addslice_419611(c, n, LOC37, LOC38, LOC39);
		analysesons_420077(c, n);
	}
	break;
	case ((NU8) 109):
	case ((NU8) 108):
	case ((NU8) 106):
	{
		localerror_187085((*n).info, ((NimStringDesc*) &TMP4289));
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		{
			Tnode214790* it_420473;
			it_420473 = 0;
			{
				NI i_420605;
				NI HEX3Atmp_420607;
				NI LOC44;
				NI res_420609;
				i_420605 = 0;
				HEX3Atmp_420607 = 0;
				LOC44 = 0;
				LOC44 = len_215059(n);
				HEX3Atmp_420607 = (LOC44 - 1);
				res_420609 = ((NI) 0);
				{
					while (1) {
						Tnode214790* value;
						NIM_BOOL isspawned;
						NU8 LOC47;
						if (!(res_420609 <= HEX3Atmp_420607)) goto LA46;
						i_420605 = res_420609;
						it_420473 = (*n).kindU.S6.sons->data[i_420605];
						value = lastson_217364(it_420473);
						LOC47 = 0;
						LOC47 = getmagic_239323(value);
						isspawned = (LOC47 == ((NU8) 201));
						{
							NI oldspawnid;
							Tnode214790* LOC52;
							Tnode214790* LOC53;
							if (!isspawned) goto LA50;
							(*c).spawns += ((NI) 1);
							oldspawnid = (*c).currentspawnid;
							(*c).currentspawnid = (*c).spawns;
							LOC52 = 0;
							LOC52 = HEX5BHEX5D_215238(value, ((NI) 1));
							gatherargs_419192(c, LOC52);
							LOC53 = 0;
							LOC53 = HEX5BHEX5D_215238(value, ((NI) 1));
							analysesons_420077(c, LOC53);
							(*c).currentspawnid = oldspawnid;
						}
						LA50: ;
						{
							if (!!(((*value).kind == ((NU8) 1)))) goto LA56;
							{
								NI j_420515;
								NI HEX3Atmp_420595;
								NI LOC59;
								NI res_420598;
								j_420515 = 0;
								HEX3Atmp_420595 = 0;
								LOC59 = 0;
								LOC59 = len_215059(it_420473);
								HEX3Atmp_420595 = (NI)(LOC59 - ((NI) 3));
								res_420598 = ((NI) 0);
								{
									while (1) {
										if (!(res_420598 <= HEX3Atmp_420595)) goto LA61;
										j_420515 = res_420598;
										{
											Tnode214790* LOC64;
											NIM_BOOL LOC65;
											Monotonicvar419006* slot;
											Tnode214790* LOC68;
											LOC64 = 0;
											LOC64 = HEX5BHEX5D_215238(it_420473, j_420515);
											LOC65 = 0;
											LOC65 = islocal_419329(LOC64);
											if (!LOC65) goto LA66;
											LOC68 = 0;
											LOC68 = HEX5BHEX5D_215238(it_420473, j_420515);
											slot = getslot_419163(c, (*LOC68).kindU.S4.sym);
											{
												if (!(*slot).lower == 0) goto LA71;
												unsureAsgnRef((void**) (&(*slot).lower), value);
											}
											goto LA69;
											LA71: ;
											{
												internalerror_187100((*it_420473).info, ((NimStringDesc*) &TMP4290));
											}
											LA69: ;
										}
										LA66: ;
										res_420598 += ((NI) 1);
									} LA61: ;
								}
							}
							{
								if (!!(isspawned)) goto LA76;
								analyse_420072(c, value);
							}
							LA76: ;
						}
						LA56: ;
						res_420609 += ((NI) 1);
					} LA46: ;
				}
			}
		}
	}
	break;
	case ((NU8) 97):
	{
		analysecase_420211(c, n);
	}
	break;
	case ((NU8) 93):
	case ((NU8) 92):
	case ((NU8) 48):
	{
		analyseif_420304(c, n);
	}
	break;
	case ((NU8) 96):
	{
		analyse_420072(c, (*n).kindU.S6.sons->data[((NI) 0)]);
		(*c).inloop += ((NI) 1);
		{
			NIM_BOOL LOC83;
			LOC83 = 0;
			LOC83 = istrue_345867((*n).kindU.S6.sons->data[((NI) 0)]);
			if (!LOC83) goto LA84;
			analysesons_420077(c, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		goto LA81;
		LA84: ;
		{
			NI oldstate;
			NI oldfacts;
			Tnode214790* LOC87;
			oldstate = ((*c).locals ? (*c).locals->Sup.len : 0);
			oldfacts = ((*c).guards ? (*c).guards->Sup.len : 0);
			LOC87 = 0;
			LOC87 = canon_335675((*n).kindU.S6.sons->data[((NI) 0)]);
			addfact_336193((&(*c).guards), LOC87);
			analyse_420072(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			(*c).locals = (TY419018*) setLengthSeq(&((*c).locals)->Sup, sizeof(Monotonicvar419006), ((NI) (oldstate)));
			(*c).guards = (Tnodeseq214784*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode214790*), ((NI) (oldfacts)));
			{
				NIM_BOOL LOC90;
				Tnode214790* LOC93;
				LOC90 = 0;
				LOC90 = hassubnodewith_219175((*n).kindU.S6.sons->data[((NI) 1)], ((NU8) 110));
				if (!!(LOC90)) goto LA91;
				LOC93 = 0;
				LOC93 = canon_335675((*n).kindU.S6.sons->data[((NI) 0)]);
				addfactneg_336221((&(*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_420077(c, n);
	}
	break;
	}
}

N_NIMCALL(void, overlap_419653)(Tnodeseq214784* m, Tnode214790* x, Tnode214790* y, Tnode214790* c, Tnode214790* d) {
	NU8 LOC1;
	LOC1 = 0;
	LOC1 = provele_338382(m, c, y);
	switch (LOC1) {
	case ((NU8) 0):
	{
		NU8 LOC3;
		LOC3 = 0;
		LOC3 = provele_338382(m, x, d);
		switch (LOC3) {
		case ((NU8) 1):
		{
		}
		break;
		case ((NU8) 0):
		case ((NU8) 2):
		{
			TY419660 LOC6;
			NimStringDesc* LOC7;
			memset((void*)LOC6, 0, sizeof(LOC6));
			LOC6[0] = rendertree_233044(c, 0);
			LOC6[1] = rendertree_233044(y, 0);
			LOC6[2] = rendertree_233044(x, 0);
			LOC6[3] = rendertree_233044(y, 0);
			LOC6[4] = rendertree_233044(c, 0);
			LOC6[5] = rendertree_233044(d, 0);
			LOC7 = 0;
			LOC7 = nsuFormatOpenArray(((NimStringDesc*) &TMP4292), LOC6, 6);
			localerror_187085((*x).info, LOC7);
		}
		break;
		}
	}
	break;
	case ((NU8) 2):
	{
		NU8 LOC9;
		LOC9 = 0;
		LOC9 = provele_338382(m, x, d);
		switch (LOC9) {
		case ((NU8) 0):
		{
			TY419660 LOC11;
			NimStringDesc* LOC12;
			memset((void*)LOC11, 0, sizeof(LOC11));
			LOC11[0] = rendertree_233044(x, 0);
			LOC11[1] = rendertree_233044(d, 0);
			LOC11[2] = rendertree_233044(x, 0);
			LOC11[3] = rendertree_233044(y, 0);
			LOC11[4] = rendertree_233044(c, 0);
			LOC11[5] = rendertree_233044(d, 0);
			LOC12 = 0;
			LOC12 = nsuFormatOpenArray(((NimStringDesc*) &TMP4292), LOC11, 6);
			localerror_187085((*x).info, LOC12);
		}
		break;
		case ((NU8) 2):
		{
			TY419660 LOC14;
			NimStringDesc* LOC15;
			memset((void*)LOC14, 0, sizeof(LOC14));
			LOC14[0] = rendertree_233044(c, 0);
			LOC14[1] = rendertree_233044(y, 0);
			LOC14[2] = rendertree_233044(x, 0);
			LOC14[3] = rendertree_233044(y, 0);
			LOC14[4] = rendertree_233044(c, 0);
			LOC14[5] = rendertree_233044(d, 0);
			LOC15 = 0;
			LOC15 = nsuFormatOpenArray(((NimStringDesc*) &TMP4293), LOC14, 6);
			localerror_187085((*x).info, LOC15);
		}
		break;
		case ((NU8) 1):
		{
		}
		break;
		}
	}
	break;
	case ((NU8) 1):
	{
	}
	break;
	}
}

N_NIMCALL(Tnode214790*, substride_419741)(Analysisctx419008* c, Tnode214790* n) {
	Tnode214790* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_419329(n);
		if (!LOC3) goto LA4;
		s = lookupslot_419102(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_335976(n, (*(*c).locals->data[s].stride).kindU.S1.intval);
		}
		goto LA6;
		LA10: ;
		{
			result = n;
		}
		LA6: ;
	}
	goto LA1;
	LA4: ;
	{
		NI LOC14;
		LOC14 = 0;
		LOC14 = safelen_215081(n);
		if (!(((NI) 0) < LOC14)) goto LA15;
		result = shallowcopy_218611(n);
		{
			NI i_419780;
			NI HEX3Atmp_419784;
			NI LOC18;
			NI res_419787;
			i_419780 = 0;
			HEX3Atmp_419784 = 0;
			LOC18 = 0;
			LOC18 = len_215059(n);
			HEX3Atmp_419784 = (LOC18 - 1);
			res_419787 = ((NI) 0);
			{
				while (1) {
					if (!(res_419787 <= HEX3Atmp_419784)) goto LA20;
					i_419780 = res_419787;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_419780]), substride_419741(c, (*n).kindU.S6.sons->data[i_419780]));
					res_419787 += ((NI) 1);
				} LA20: ;
			}
		}
	}
	goto LA1;
	LA15: ;
	{
		result = n;
	}
	LA1: ;
	return result;
}

N_NIMCALL(NI64, stride_419684)(Analysisctx419008* c, Tnode214790* n) {
	NI64 result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_419329(n);
		if (!LOC3) goto LA4;
		s = lookupslot_419102(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_419722;
			NI HEX3Atmp_419734;
			NI LOC14;
			NI res_419737;
			i_419722 = 0;
			HEX3Atmp_419734 = 0;
			LOC14 = 0;
			LOC14 = safelen_215081(n);
			HEX3Atmp_419734 = (LOC14 - 1);
			res_419737 = ((NI) 0);
			{
				while (1) {
					NI64 LOC17;
					if (!(res_419737 <= HEX3Atmp_419734)) goto LA16;
					i_419722 = res_419737;
					LOC17 = 0;
					LOC17 = stride_419684(c, (*n).kindU.S6.sons->data[i_419722]);
					result += LOC17;
					res_419737 += ((NI) 1);
				} LA16: ;
			}
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, checkslicesaredisjoint_419791)(Analysisctx419008* c) {
	addlowerboundasfacts_419449(c);
	{
		Tnode214790* x_420002;
		Tnode214790* a_420003;
		Tnode214790* b_420004;
		NI id_420005;
		NIM_BOOL inloop_420006;
		TY419020* HEX3Atmp_420049;
		NI i_420052;
		NI L_420054;
		x_420002 = 0;
		a_420003 = 0;
		b_420004 = 0;
		id_420005 = 0;
		inloop_420006 = 0;
		HEX3Atmp_420049 = 0;
		HEX3Atmp_420049 = (*c).slices;
		i_420052 = ((NI) 0);
		L_420054 = (HEX3Atmp_420049 ? HEX3Atmp_420049->Sup.len : 0);
		{
			while (1) {
				if (!(i_420052 < L_420054)) goto LA3;
				x_420002 = HEX3Atmp_420049->data[i_420052].Field0;
				a_420003 = HEX3Atmp_420049->data[i_420052].Field1;
				b_420004 = HEX3Atmp_420049->data[i_420052].Field2;
				id_420005 = HEX3Atmp_420049->data[i_420052].Field3;
				inloop_420006 = HEX3Atmp_420049->data[i_420052].Field4;
				{
					Tnode214790* LOC8;
					Tnode214790* LOC9;
					if (!inloop_420006) goto LA6;
					LOC8 = 0;
					LOC8 = substride_419741((&(*c)), a_420003);
					LOC9 = 0;
					LOC9 = substride_419741((&(*c)), b_420004);
					overlap_419653((*c).guards, a_420003, b_420004, LOC8, LOC9);
				}
				LA6: ;
				i_420052 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NI i_420016;
		NI HEX3Atmp_420065;
		NI res_420068;
		i_420016 = 0;
		HEX3Atmp_420065 = 0;
		HEX3Atmp_420065 = ((*c).slices ? ((*c).slices->Sup.len-1) : -1);
		res_420068 = ((NI) 0);
		{
			while (1) {
				if (!(res_420068 <= HEX3Atmp_420065)) goto LA12;
				i_420016 = res_420068;
				{
					NI j_420026;
					NI HEX3Atmp_420057;
					NI HEX3Atmp_420058;
					NI res_420061;
					j_420026 = 0;
					HEX3Atmp_420057 = 0;
					HEX3Atmp_420058 = 0;
					HEX3Atmp_420057 = (NI)(i_420016 + ((NI) 1));
					HEX3Atmp_420058 = ((*c).slices ? ((*c).slices->Sup.len-1) : -1);
					res_420061 = HEX3Atmp_420057;
					{
						while (1) {
							TY419021 x;
							TY419021 y;
							if (!(res_420061 <= HEX3Atmp_420058)) goto LA15;
							j_420026 = res_420061;
							memset((void*)(&x), 0, sizeof(x));
							memcpy((void*)(&x), (NIM_CONST void*)(&(*c).slices->data[i_420016]), sizeof(x));
							memset((void*)(&y), 0, sizeof(y));
							memcpy((void*)(&y), (NIM_CONST void*)(&(*c).slices->data[j_420026]), sizeof(y));
							{
								NIM_BOOL LOC18;
								LOC18 = 0;
								LOC18 = !((x.Field3 == y.Field3));
								if (!(LOC18)) goto LA19;
								LOC18 = sametree_336245(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_419653((*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_337042(x.Field1, x.Field2);
									m = simpleslice_337042(y.Field1, y.Field2);
									LOC29 = 0;
									LOC29 = (IL64(0) <= k);
									if (!(LOC29)) goto LA30;
									LOC29 = (IL64(0) <= m);
									LA30: ;
									if (!LOC29) goto LA31;
									overlap_419653((*c).guards, x.Field1, x.Field2, y.Field1, y.Field2);
									LOC33 = 0;
									LOC33 = stride_419684((&(*c)), x.Field1);
									LOC34 = 0;
									LOC34 = stride_419684((&(*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: ;
									{
										TY185781 LOC42;
										NimStringDesc* LOC43;
										memset((void*)LOC42, 0, sizeof(LOC42));
										LOC42[0] = rendertree_233044(x.Field1, 0);
										LOC42[1] = rendertree_233044(x.Field2, 0);
										LOC42[2] = rendertree_233044(y.Field1, 0);
										LOC42[3] = rendertree_233044(y.Field2, 0);
										LOC43 = 0;
										LOC43 = nsuFormatOpenArray(((NimStringDesc*) &TMP4294), LOC42, 4);
										localerror_187085((*x.Field0).info, LOC43);
									}
									LA35: ;
								}
								goto LA22;
								LA31: ;
								{
									TY185781 LOC45;
									NimStringDesc* LOC46;
									memset((void*)LOC45, 0, sizeof(LOC45));
									LOC45[0] = rendertree_233044(x.Field1, 0);
									LOC45[1] = rendertree_233044(x.Field2, 0);
									LOC45[2] = rendertree_233044(y.Field1, 0);
									LOC45[3] = rendertree_233044(y.Field2, 0);
									LOC46 = 0;
									LOC46 = nsuFormatOpenArray(((NimStringDesc*) &TMP4294), LOC45, 4);
									localerror_187085((*x.Field0).info, LOC46);
								}
								LA22: ;
							}
							LA20: ;
							res_420061 += ((NI) 1);
						} LA15: ;
					}
				}
				res_420068 += ((NI) 1);
			} LA12: ;
		}
	}
}

N_NIMCALL(void, checkargs_420812)(Analysisctx419008* a, Tnode214790* n) {
}

N_NIMCALL(void, generatealiaschecks_420817)(Analysisctx419008* a, Tnode214790* result) {
}

N_NIMCALL(Tnode214790*, transformslices_420612)(Tnode214790* n) {
	Tnode214790* result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		Tnode214790* LOC5;
		Tsym214822* op;
		Tnode214790* 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_215238(n, ((NI) 0));
		LOC3 = ((*LOC5).kind == ((NU8) 3));
		LA4: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = HEX5BHEX5D_215238(n, ((NI) 0));
		op = (*LOC8).kindU.S4.sym;
		{
			NIM_BOOL LOC11;
			Tnode214790* LOC15;
			Tnode214790* LOC16;
			Tnode214790* slice;
			Tnode214790* LOC17;
			Tnode214790* LOC18;
			Tnode214790* LOC19;
			LOC11 = 0;
			LOC11 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4276));
			if (!(LOC11)) goto LA12;
			LOC11 = fromsystem_420124(op);
			LA12: ;
			if (!LOC11) goto LA13;
			result = copynode_218542(n);
			LOC15 = 0;
			LOC15 = newsymnode_216234(opslice_419034);
			add_215114(result, LOC15);
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_215238(n, ((NI) 1));
			add_215114(result, LOC16);
			LOC17 = 0;
			LOC17 = HEX5BHEX5D_215238(n, ((NI) 2));
			slice = skipstmtlist_219555(LOC17);
			LOC18 = 0;
			LOC18 = HEX5BHEX5D_215238(slice, ((NI) 1));
			add_215114(result, LOC18);
			LOC19 = 0;
			LOC19 = HEX5BHEX5D_215238(slice, ((NI) 2));
			add_215114(result, LOC19);
			goto BeforeRet;
		}
		LA13: ;
	}
	LA6: ;
	{
		NI LOC22;
		LOC22 = 0;
		LOC22 = safelen_215081(n);
		if (!(((NI) 0) < LOC22)) goto LA23;
		result = shallowcopy_218611(n);
		{
			NI i_420665;
			NI HEX3Atmp_420669;
			NI LOC26;
			NI res_420672;
			i_420665 = 0;
			HEX3Atmp_420669 = 0;
			LOC26 = 0;
			LOC26 = len_215059(n);
			HEX3Atmp_420669 = (LOC26 - 1);
			res_420672 = ((NI) 0);
			{
				while (1) {
					if (!(res_420672 <= HEX3Atmp_420669)) goto LA28;
					i_420665 = res_420672;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_420665]), transformslices_420612((*n).kindU.S6.sons->data[i_420665]));
					res_420672 += ((NI) 1);
				} LA28: ;
			}
		}
	}
	goto LA20;
	LA23: ;
	{
		result = n;
	}
	LA20: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode214790*, transformspawnsons_420681)(Tsym214822* owner, Tnode214790* n, Tnode214790* barrier) {
	Tnode214790* result;
	result = 0;
	result = shallowcopy_218611(n);
	{
		NI i_420705;
		NI HEX3Atmp_420709;
		NI LOC2;
		NI res_420712;
		i_420705 = 0;
		HEX3Atmp_420709 = 0;
		LOC2 = 0;
		LOC2 = len_215059(n);
		HEX3Atmp_420709 = (LOC2 - 1);
		res_420712 = ((NI) 0);
		{
			while (1) {
				if (!(res_420712 <= HEX3Atmp_420709)) goto LA4;
				i_420705 = res_420712;
				asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_420705]), transformspawn_420676(owner, (*n).kindU.S6.sons->data[i_420705], barrier));
				res_420712 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(Tnode214790*, transformspawn_420676)(Tsym214822* owner, Tnode214790* n, Tnode214790* barrier) {
	Tnode214790* result;
{	result = 0;
	switch ((*n).kind) {
	case ((NU8) 99):
	case ((NU8) 100):
	{
		result = NIM_NIL;
		{
			Tnode214790* it_420722;
			it_420722 = 0;
			{
				NI i_420805;
				NI HEX3Atmp_420807;
				NI LOC4;
				NI res_420809;
				i_420805 = 0;
				HEX3Atmp_420807 = 0;
				LOC4 = 0;
				LOC4 = len_215059(n);
				HEX3Atmp_420807 = (LOC4 - 1);
				res_420809 = ((NI) 0);
				{
					while (1) {
						Tnode214790* b;
						if (!(res_420809 <= HEX3Atmp_420807)) goto LA6;
						i_420805 = res_420809;
						it_420722 = (*n).kindU.S6.sons->data[i_420805];
						b = lastson_217364(it_420722);
						{
							NU8 LOC9;
							Tnode214790* m;
							Ttype214828* t;
							Tnode214790* LOC21;
							Tnode214790* LOC22;
							LOC9 = 0;
							LOC9 = getmagic_239323(b);
							if (!(LOC9 == ((NU8) 201))) goto LA10;
							{
								NI LOC14;
								LOC14 = 0;
								LOC14 = len_215059(it_420722);
								if (!!((LOC14 == ((NI) 3)))) goto LA15;
								localerror_187085((*it_420722).info, ((NimStringDesc*) &TMP4298));
							}
							LA15: ;
							m = transformslices_420612(b);
							{
								if (!result == 0) goto LA19;
								result = newnodei_216248(((NU8) 115), (*n).info);
								add_215114(result, n);
							}
							LA19: ;
							LOC21 = 0;
							LOC21 = HEX5BHEX5D_215238(b, ((NI) 1));
							LOC22 = 0;
							LOC22 = HEX5BHEX5D_215238(LOC21, ((NI) 0));
							t = (*(*LOC22).typ).sons->data[((NI) 0)];
							{
								NU8 LOC25;
								Tnode214790* LOC28;
								Tnode214790* LOC29;
								NI LOC30;
								LOC25 = 0;
								LOC25 = spawnresult_377947(t, NIM_TRUE);
								if (!(LOC25 == ((NU8) 2))) goto LA26;
								LOC28 = 0;
								LOC28 = HEX5BHEX5D_215238(it_420722, ((NI) 0));
								LOC29 = 0;
								LOC29 = wrapprocforspawn_378500(owner, m, (*b).typ, barrier, LOC28);
								add_215114(result, LOC29);
								LOC30 = 0;
								LOC30 = len_215059(it_420722);
								asgnRefNoCycle((void**) (&(*it_420722).kindU.S6.sons->data[(NI)(LOC30 - ((NI) 1))]), emptynode_215801);
							}
							goto LA23;
							LA26: ;
							{
								NI LOC32;
								LOC32 = 0;
								LOC32 = len_215059(it_420722);
								asgnRefNoCycle((void**) (&(*it_420722).kindU.S6.sons->data[(NI)(LOC32 - ((NI) 1))]), wrapprocforspawn_378500(owner, m, (*b).typ, barrier, NIM_NIL));
							}
							LA23: ;
						}
						LA10: ;
						res_420809 += ((NI) 1);
					} LA6: ;
				}
			}
		}
		{
			if (!result == 0) goto LA35;
			result = n;
		}
		LA35: ;
	}
	break;
	case ((NU8) 73):
	case ((NU8) 74):
	{
		Tnode214790* b;
		b = HEX5BHEX5D_215238(n, ((NI) 1));
		{
			NIM_BOOL LOC40;
			NU8 LOC41;
			Ttype214828* t;
			Tnode214790* LOC43;
			Tnode214790* LOC44;
			NU8 LOC45;
			Tnode214790* m;
			Tnode214790* LOC48;
			LOC40 = 0;
			LOC41 = 0;
			LOC41 = getmagic_239323(b);
			LOC40 = (LOC41 == ((NU8) 201));
			if (!(LOC40)) goto LA42;
			LOC43 = 0;
			LOC43 = HEX5BHEX5D_215238(b, ((NI) 1));
			LOC44 = 0;
			LOC44 = HEX5BHEX5D_215238(LOC43, ((NI) 0));
			t = (*(*LOC44).typ).sons->data[((NI) 0)];
			LOC45 = 0;
			LOC45 = spawnresult_377947(t, NIM_TRUE);
			LOC40 = (LOC45 == ((NU8) 2));
			LA42: ;
			if (!LOC40) goto LA46;
			m = transformslices_420612(b);
			LOC48 = 0;
			LOC48 = HEX5BHEX5D_215238(n, ((NI) 0));
			result = wrapprocforspawn_378500(owner, m, (*b).typ, barrier, LOC48);
			goto BeforeRet;
		}
		LA46: ;
		result = transformspawnsons_420681(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_239323(n);
			if (!(LOC52 == ((NU8) 201))) goto LA53;
			result = transformslices_420612(n);
			result = wrapprocforspawn_378500(owner, result, (*n).typ, barrier, NIM_NIL);
			goto BeforeRet;
		}
		LA53: ;
		result = transformspawnsons_420681(owner, n, barrier);
	}
	break;
	default:
	{
		{
			NI LOC58;
			LOC58 = 0;
			LOC58 = safelen_215081(n);
			if (!(((NI) 0) < LOC58)) goto LA59;
			result = transformspawnsons_420681(owner, n, barrier);
		}
		goto LA56;
		LA59: ;
		{
			result = n;
		}
		LA56: ;
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode214790*, liftparallel_420821)(Tsym214822* owner, Tnode214790* n) {
	Tnode214790* result;
	Analysisctx419008 a;
	Tnode214790* body;
	Tnode214790* varsection;
	Tsym214822* temp;
	Tident189012* LOC5;
	Tsym214822* LOC6;
	Tnode214790* tempnode;
	Tnode214790* barrier;
	Tnode214790* LOC7;
	Tnode214790* LOC8;
	Tnode214790* LOC9;
	result = 0;
	memset((void*)(&a), 0, sizeof(a));
	chckNil((void*)(&a));
	memset((void*)(&a), 0, sizeof(a));
	initanalysisctx_419035((&a));
	body = lastson_217364(n);
	analyse_420072((&a), body);
	{
		if (!(a.spawns == ((NI) 0))) goto LA3;
		localerror_187085((*n).info, ((NimStringDesc*) &TMP4291));
	}
	LA3: ;
	checkslicesaredisjoint_419791((&a));
	checkargs_420812((&a), body);
	varsection = newnodei_216248(((NU8) 99), (*n).info);
	LOC5 = 0;
	LOC5 = getident_189441(((NimStringDesc*) &TMP4295));
	temp = newsym_215683(((NU8) 5), LOC5, owner, (*n).info);
	LOC6 = 0;
	LOC6 = getcompilerproc_258748(((NimStringDesc*) &TMP4296));
	asgnRefNoCycle((void**) (&(*temp).typ), (*LOC6).typ);
	(*temp).flags |= ((NU32)1)<<((((NU8) 2))%(sizeof(NU32)*8));
	tempnode = newsymnode_216234(temp);
	addvar_376017(varsection, tempnode);
	barrier = genaddrof_377840(tempnode);
	result = newnodei_216248(((NU8) 115), (*n).info);
	generatealiaschecks_420817((&a), result);
	add_215114(result, varsection);
	LOC7 = 0;
	LOC7 = callcodegenproc_377850(((NimStringDesc*) &TMP4297), barrier, NIM_NIL, NIM_NIL, NIM_NIL);
	add_215114(result, LOC7);
	LOC8 = 0;
	LOC8 = transformspawn_420676(owner, body, barrier);
	add_215114(result, LOC8);
	LOC9 = 0;
	LOC9 = callcodegenproc_377850(((NimStringDesc*) &TMP4299), barrier, NIM_NIL, NIM_NIL, NIM_NIL);
	add_215114(result, LOC9);
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_semparallelInit000)(void) {
	asgnRefNoCycle((void**) (&opslice_419034), createmagic_219601(((NimStringDesc*) &TMP1035), ((NU8) 138)));
}

NIM_EXTERNC N_NOINLINE(void, compiler_semparallelDatInit000)(void) {
static TNimNode* TMP4268[7];
static TNimNode* TMP4269[2];
NI TMP4271;
static char* NIM_CONST TMP4270[2] = {
"ascending", 
"descending"};
static TNimNode* TMP4273[5];
static TNimNode TMP1033[17];
NTI419006.size = sizeof(Monotonicvar419006);
NTI419006.kind = 18;
NTI419006.base = 0;
NTI419006.flags = 2;
TMP4268[0] = &TMP1033[1];
TMP1033[1].kind = 1;
TMP1033[1].offset = offsetof(Monotonicvar419006, v);
TMP1033[1].typ = (&NTI214788);
TMP1033[1].name = "v";
TMP4268[1] = &TMP1033[2];
TMP1033[2].kind = 1;
TMP1033[2].offset = offsetof(Monotonicvar419006, alias);
TMP1033[2].typ = (&NTI214788);
TMP1033[2].name = "alias";
TMP4268[2] = &TMP1033[3];
TMP1033[3].kind = 1;
TMP1033[3].offset = offsetof(Monotonicvar419006, lower);
TMP1033[3].typ = (&NTI214782);
TMP1033[3].name = "lower";
TMP4268[3] = &TMP1033[4];
TMP1033[4].kind = 1;
TMP1033[4].offset = offsetof(Monotonicvar419006, upper);
TMP1033[4].typ = (&NTI214782);
TMP1033[4].name = "upper";
TMP4268[4] = &TMP1033[5];
TMP1033[5].kind = 1;
TMP1033[5].offset = offsetof(Monotonicvar419006, stride);
TMP1033[5].typ = (&NTI214782);
TMP1033[5].name = "stride";
TMP4268[5] = &TMP1033[6];
NTI419004.size = sizeof(NU8);
NTI419004.kind = 14;
NTI419004.base = 0;
NTI419004.flags = 3;
for (TMP4271 = 0; TMP4271 < 2; TMP4271++) {
TMP1033[TMP4271+7].kind = 1;
TMP1033[TMP4271+7].offset = TMP4271;
TMP1033[TMP4271+7].name = TMP4270[TMP4271];
TMP4269[TMP4271] = &TMP1033[TMP4271+7];
}
TMP1033[9].len = 2; TMP1033[9].kind = 2; TMP1033[9].sons = &TMP4269[0];
NTI419004.node = &TMP1033[9];
TMP1033[6].kind = 1;
TMP1033[6].offset = offsetof(Monotonicvar419006, dir);
TMP1033[6].typ = (&NTI419004);
TMP1033[6].name = "dir";
TMP4268[6] = &TMP1033[10];
TMP1033[10].kind = 1;
TMP1033[10].offset = offsetof(Monotonicvar419006, blacklisted);
TMP1033[10].typ = (&NTI130);
TMP1033[10].name = "blacklisted";
TMP1033[0].len = 7; TMP1033[0].kind = 2; TMP1033[0].sons = &TMP4268[0];
NTI419006.node = &TMP1033[0];
NTI419018.size = sizeof(TY419018*);
NTI419018.kind = 24;
NTI419018.base = (&NTI419006);
NTI419018.flags = 2;
NTI419018.marker = TMP4272;
NTI419021.size = sizeof(TY419021);
NTI419021.kind = 18;
NTI419021.base = 0;
NTI419021.flags = 2;
TMP4273[0] = &TMP1033[12];
TMP1033[12].kind = 1;
TMP1033[12].offset = offsetof(TY419021, Field0);
TMP1033[12].typ = (&NTI214782);
TMP1033[12].name = "Field0";
TMP4273[1] = &TMP1033[13];
TMP1033[13].kind = 1;
TMP1033[13].offset = offsetof(TY419021, Field1);
TMP1033[13].typ = (&NTI214782);
TMP1033[13].name = "Field1";
TMP4273[2] = &TMP1033[14];
TMP1033[14].kind = 1;
TMP1033[14].offset = offsetof(TY419021, Field2);
TMP1033[14].typ = (&NTI214782);
TMP1033[14].name = "Field2";
TMP4273[3] = &TMP1033[15];
TMP1033[15].kind = 1;
TMP1033[15].offset = offsetof(TY419021, Field3);
TMP1033[15].typ = (&NTI104);
TMP1033[15].name = "Field3";
TMP4273[4] = &TMP1033[16];
TMP1033[16].kind = 1;
TMP1033[16].offset = offsetof(TY419021, Field4);
TMP1033[16].typ = (&NTI130);
TMP1033[16].name = "Field4";
TMP1033[11].len = 5; TMP1033[11].kind = 2; TMP1033[11].sons = &TMP4273[0];
NTI419021.node = &TMP1033[11];
NTI419020.size = sizeof(TY419020*);
NTI419020.kind = 24;
NTI419020.base = (&NTI419021);
NTI419020.flags = 2;
NTI419020.marker = TMP4274;
}

