/* Generated by Nim Compiler v0.12.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 Tsym223841 Tsym223841;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Cell48947 Cell48947;
typedef struct TNimType TNimType;
typedef struct Cellseq48963 Cellseq48963;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48959 Cellset48959;
typedef struct Pagedesc48955 Pagedesc48955;
typedef struct Memregion30891 Memregion30891;
typedef struct Smallchunk30843 Smallchunk30843;
typedef struct Llchunk30885 Llchunk30885;
typedef struct Bigchunk30845 Bigchunk30845;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30889 Avlnode30889;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Tnode223809 Tnode223809;
typedef struct Analysisctx449026 Analysisctx449026;
typedef struct TY449036 TY449036;
typedef struct TY449038 TY449038;
typedef struct Tnodeseq223803 Tnodeseq223803;
typedef struct Tsymseq223811 Tsymseq223811;
typedef struct Monotonicvar449024 Monotonicvar449024;
typedef struct TNimNode TNimNode;
typedef struct TY449039 TY449039;
typedef struct Ttype223847 Ttype223847;
typedef struct Tlineinfo188352 Tlineinfo188352;
typedef struct Tident196021 Tident196021;
typedef struct Tidobj196015 Tidobj196015;
typedef struct TNimObject TNimObject;
typedef struct Ttypeseq223843 Ttypeseq223843;
typedef struct Tscope223835 Tscope223835;
typedef struct TY223944 TY223944;
typedef struct Tstrtable223813 Tstrtable223813;
typedef struct Tloc223823 Tloc223823;
typedef struct Ropeobj174009 Ropeobj174009;
typedef struct Tlib223827 Tlib223827;
typedef struct Basechunk30841 Basechunk30841;
typedef struct Freecell30833 Freecell30833;
typedef struct Tinstantiation223831 Tinstantiation223831;
typedef struct Tlistentry139022 Tlistentry139022;
typedef struct TY223932 TY223932;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Cell48947  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48963  {
NI len;
NI cap;
Cell48947** d;
};
struct  Cellset48959  {
NI counter;
NI max;
Pagedesc48955* head;
Pagedesc48955** data;
};
typedef Smallchunk30843* TY30906[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30891  {
NI minlargeobj;
NI maxlargeobj;
TY30906 freesmallchunks;
Llchunk30885* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30845* freechunkslist;
Intset30817 chunkstarts;
Avlnode30889* root;
Avlnode30889* deleted;
Avlnode30889* last;
Avlnode30889* freeavlnodes;
};
struct  Gcstat51014  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51018  {
Gcstack51016* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq48963 zct;
Cellseq48963 decstack;
Cellset48959 cycleroots;
Cellseq48963 tempstack;
NI recgclock;
Memregion30891 region;
Gcstat51014 stat;
};
struct  Analysisctx449026  {
TY449036* locals;
TY449038* slices;
Tnodeseq223803* guards;
Tsymseq223811* args;
NI spawns;
NI currentspawnid;
NI inloop;
};
struct  Monotonicvar449024  {
Tsym223841* v;
Tsym223841* alias;
Tnode223809* lower;
Tnode223809* upper;
Tnode223809* stride;
NU8 dir;
NIM_BOOL blacklisted;
};
typedef N_NIMCALL_PTR(void, TY3889) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3894) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3889 marker;
TY3894 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct TY449039 {
Tnode223809* Field0;
Tnode223809* Field1;
Tnode223809* Field2;
NI Field3;
NIM_BOOL Field4;
};
struct  Tlineinfo188352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode223809  {
Ttype223847* typ;
Tlineinfo188352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym223841* sym;
} S4;
struct {Tident196021* ident;
} S5;
struct {Tnodeseq223803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj196015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable223813  {
NI counter;
Tsymseq223811* data;
};
struct  Tloc223823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype223847* t;
Ropeobj174009* r;
Ropeobj174009* heaproot;
};
struct  Tsym223841  {
  Tidobj196015 Sup;
NU8 kind;
union{
struct {Ttypeseq223843* typeinstcache;
Tscope223835* typscope;
} S1;
struct {TY223944* procinstcache;
Tsym223841* gcunsafetyreason;
} S2;
struct {TY223944* usedgenerics;
Tstrtable223813 tab;
} S3;
struct {Tsym223841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype223847* typ;
Tident196021* name;
Tlineinfo188352 info;
Tsym223841* owner;
NU32 flags;
Tnode223809* ast;
NU32 options;
NI position;
NI offset;
Tloc223823 loc;
Tlib223827* annex;
Tnode223809* constraint;
};
struct  Tident196021  {
  Tidobj196015 Sup;
NimStringDesc* s;
Tident196021* next;
NI h;
};
typedef NimStringDesc* TY449890[6];
typedef NimStringDesc* TY192829[4];
struct  Ttype223847  {
  Tidobj196015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq223843* sons;
Tnode223809* n;
Tsym223841* owner;
Tsym223841* sym;
Tsym223841* destructor;
Tsym223841* deepcopy;
Tsym223841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc223823 loc;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30822[8];
struct  Pagedesc48955  {
Pagedesc48955* next;
NI key;
TY30822 bits;
};
struct  Basechunk30841  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30843  {
  Basechunk30841 Sup;
Smallchunk30843* next;
Smallchunk30843* prev;
Freecell30833* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30885  {
NI size;
NI acc;
Llchunk30885* next;
};
struct  Bigchunk30845  {
  Basechunk30841 Sup;
Bigchunk30845* next;
Bigchunk30845* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30822 bits;
};
typedef Avlnode30889* TY30896[2];
struct  Avlnode30889  {
TY30896 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope223835  {
NI depthlevel;
Tstrtable223813 symbols;
Tnodeseq223803* usingsyms;
Tscope223835* parent;
};
struct  Ropeobj174009  {
  TNimObject Sup;
Ropeobj174009* left;
Ropeobj174009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry139022  {
  TNimObject Sup;
Tlistentry139022* prev;
Tlistentry139022* next;
};
struct  Tlib223827  {
  Tlistentry139022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj174009* name;
Tnode223809* path;
};
struct  Freecell30833  {
Freecell30833* next;
NI zerofield;
};
struct  Tinstantiation223831  {
Tsym223841* sym;
Ttypeseq223843* concretetypes;
TY223932* usedby;
NI compilesid;
};
struct TY449036 {
  TGenericSeq Sup;
  Monotonicvar449024 data[SEQ_DECL_SIZE];
};
struct TY449038 {
  TGenericSeq Sup;
  TY449039 data[SEQ_DECL_SIZE];
};
struct Tsymseq223811 {
  TGenericSeq Sup;
  Tsym223841* data[SEQ_DECL_SIZE];
};
struct Tnodeseq223803 {
  TGenericSeq Sup;
  Tnode223809* data[SEQ_DECL_SIZE];
};
struct Ttypeseq223843 {
  TGenericSeq Sup;
  Ttype223847* data[SEQ_DECL_SIZE];
};
struct TY223944 {
  TGenericSeq Sup;
  Tinstantiation223831* data[SEQ_DECL_SIZE];
};
struct TY223932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Tsym223841*, createmagic_229048)(NimStringDesc* name, NU8 m);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell48947*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48947* c);
N_NOINLINE(void, addzct_52617)(Cellseq48963* s, Cell48947* c);
N_NIMCALL(void, initanalysisctx_449059)(Analysisctx449026* Result);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP4258)(void* p, NI op);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, TMP4260)(void* p, NI op);
N_NOINLINE(void, chckNil)(void* p);
N_NIMCALL(Tnode223809*, lastson_226406)(Tnode223809* n);
N_NIMCALL(void, analyse_450316)(Analysisctx449026* c, Tnode223809* n);
N_NIMCALL(Tnode223809*, skipconv_262935)(Tnode223809* n);
static N_INLINE(Tnode223809*, HEX5BHEX5D_224244)(Tnode223809* n, NI i);
N_NIMCALL(NIM_BOOL, issingleassignable_449356)(Tnode223809* n);
N_NIMCALL(NIM_BOOL, islocal_449416)(Tnode223809* n);
N_NIMCALL(Monotonicvar449024*, getslot_449209)(Analysisctx449026* c, Tsym223841* v);
N_NIMCALL(NI, lookupslot_449132)(Analysisctx449026* c, Tsym223841* s);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, invalidatefacts_356659)(Tnodeseq223803** m, Tnode223809* n);
N_NIMCALL(NU8, getmagic_252417)(Tnode223809* op);
N_NIMCALL(void, gatherargs_449244)(Analysisctx449026* c, Tnode223809* n);
static N_INLINE(NI, safelen_224126)(Tnode223809* n);
N_NIMCALL(Tsym223841*, getroot_402646)(Tnode223809* n);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, analysesons_450324)(Analysisctx449026* c, Tnode223809* n);
N_NIMCALL(void, addasgnfact_359086)(Tnodeseq223803** m, Tnode223809* key, Tnode223809* value);
N_NIMCALL(void, analysecall_450422)(Analysisctx449026* c, Tnode223809* n, Tsym223841* op);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NIM_BOOL, fromsystem_450393)(Tsym223841* op);
N_NIMCALL(Tsym223841*, getmodule_231243)(Tsym223841* s);
N_NIMCALL(Tnode223809*, min_450371)(Tnode223809* a, Tnode223809* b);
N_NIMCALL(Tnode223809*, skipstmtlist_228986)(Tnode223809* n);
N_NIMCALL(void, addslice_449835)(Analysisctx449026* c, Tnode223809* n, Tnode223809* x, Tnode223809* le_449841, Tnode223809* ri_449842);
N_NIMCALL(void, checklocal_449476)(Analysisctx449026* c, Tnode223809* n);
N_NIMCALL(void, localerror_194139)(Tlineinfo188352 info, NimStringDesc* arg);
N_NIMCALL(Tnode223809*, canon_355843)(Tnode223809* n);
N_NIMCALL(void, addlowerboundasfacts_449573)(Analysisctx449026* c);
N_NIMCALL(void, addfactle_358849)(Tnodeseq223803** m, Tnode223809* a, Tnode223809* b);
N_NIMCALL(Tnode223809*, newsymnode_225325)(Tsym223841* sym);
N_NIMCALL(void, checkbounds_449560)(Analysisctx449026* c, Tnode223809* arr, Tnode223809* idx);
N_NIMCALL(void, checkle_449545)(Analysisctx449026* c, Tnode223809* a, Tnode223809* b);
N_NIMCALL(NU8, provele_358823)(Tnodeseq223803* m, Tnode223809* a, Tnode223809* b);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, rendertree_245059)(Tnode223809* n, NU8 renderflags);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(Tnode223809*, lowbound_355702)(Tnode223809* x);
N_NIMCALL(Tnode223809*, highbound_355712)(Tnode223809* x);
N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
static N_INLINE(NI, len_224098)(Tnode223809* n);
N_NIMCALL(void, internalerror_194172)(Tlineinfo188352 info, NimStringDesc* errmsg);
N_NIMCALL(void, analysecase_450495)(Analysisctx449026* c, Tnode223809* n);
N_NIMCALL(void, addcasebranchfacts_359137)(Tnodeseq223803** m, Tnode223809* n, NI i);
N_NIMCALL(void, analyseif_450614)(Analysisctx449026* c, Tnode223809* n);
N_NIMCALL(void, addfact_356392)(Tnodeseq223803** m, Tnode223809* nn);
N_NIMCALL(void, addfactneg_356426)(Tnodeseq223803** m, Tnode223809* n_356430);
N_NIMCALL(NIM_BOOL, istrue_367402)(Tnode223809* n);
N_NIMCALL(NIM_BOOL, hassubnodewith_228439)(Tnode223809* n, NU8 kind);
N_NIMCALL(void, checkslicesaredisjoint_450059)(Analysisctx449026* c);
N_NIMCALL(void, overlap_449883)(Tnodeseq223803* m, Tnode223809* x, Tnode223809* y, Tnode223809* c, Tnode223809* d);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(Tnode223809*, substride_449993)(Analysisctx449026* c, Tnode223809* n);
N_NIMCALL(Tnode223809*, HEX2BHEX40_356160)(Tnode223809* a, NI64 b);
N_NIMCALL(Tnode223809*, shallowcopy_227817)(Tnode223809* src);
N_NIMCALL(NIM_BOOL, sametree_356462)(Tnode223809* a, Tnode223809* b);
N_NIMCALL(NI64, simpleslice_357464)(Tnode223809* a, Tnode223809* b);
N_NIMCALL(NI64, stride_449920)(Analysisctx449026* c, Tnode223809* n);
N_NIMCALL(void, checkargs_451239)(Analysisctx449026* a, Tnode223809* n);
N_NIMCALL(Tnode223809*, newnodei_225351)(NU8 kind, Tlineinfo188352 info);
N_NIMCALL(Tsym223841*, newsym_224655)(NU8 symkind, Tident196021* name, Tsym223841* owner, Tlineinfo188352 info);
N_NIMCALL(Tident196021*, getident_196463)(NimStringDesc* identifier);
N_NIMCALL(Tsym223841*, getcompilerproc_272811)(NimStringDesc* name);
N_NIMCALL(void, addvar_400047)(Tnode223809* father, Tnode223809* v);
N_NIMCALL(Tnode223809*, genaddrof_402064)(Tnode223809* n);
N_NIMCALL(void, generatealiaschecks_451250)(Analysisctx449026* a, Tnode223809* result);
N_NIMCALL(void, add_224165)(Tnode223809* father, Tnode223809* son);
N_NIMCALL(Tnode223809*, callcodegenproc_402086)(NimStringDesc* name, Tnode223809* arg1, Tnode223809* arg2, Tnode223809* arg3, Tnode223809* optionalargs);
N_NIMCALL(Tnode223809*, transformspawn_451066)(Tsym223841* owner, Tnode223809* n, Tnode223809* barrier);
N_NIMCALL(Tnode223809*, transformslices_450986)(Tnode223809* n);
N_NIMCALL(Tnode223809*, copynode_227660)(Tnode223809* src);
N_NIMCALL(NU8, spawnresult_402208)(Ttype223847* t, NIM_BOOL inparallel);
N_NIMCALL(Tnode223809*, wrapprocforspawn_402850)(Tsym223841* owner, Tnode223809* spawnexpr, Ttype223847* rettype, Tnode223809* barrier, Tnode223809* dest);
N_NIMCALL(Tnode223809*, transformspawnsons_451074)(Tsym223841* owner, Tnode223809* n, Tnode223809* barrier);
STRING_LITERAL(TMP1031, "slice", 5);
STRING_LITERAL(TMP4261, "+=", 2);
STRING_LITERAL(TMP4262, "[]", 2);
STRING_LITERAL(TMP4263, "invalid usage of counter after increment", 40);
STRING_LITERAL(TMP4269, "cannot prove: ", 14);
STRING_LITERAL(TMP4270, " <= ", 4);
STRING_LITERAL(TMP4271, " (bounds check)", 15);
STRING_LITERAL(TMP4272, "can prove: ", 11);
STRING_LITERAL(TMP4273, " > ", 3);
STRING_LITERAL(TMP4274, "[]=", 3);
STRING_LITERAL(TMP4275, "invalid control flow for \'parallel\'", 35);
STRING_LITERAL(TMP4276, "slot already has a lower bound", 30);
STRING_LITERAL(TMP4277, "\'parallel\' section without \'spawn\'", 34);
STRING_LITERAL(TMP4278, "cannot prove: $# > $#; required for ($#)..($#) disjoint from ($"
"#)..($#)", 71);
STRING_LITERAL(TMP4279, "($#)..($#) not disjoint from ($#)..($#)", 39);
STRING_LITERAL(TMP4280, "cannot prove ($#)..($#) disjoint from ($#)..($#)", 48);
STRING_LITERAL(TMP4281, "barrier", 7);
STRING_LITERAL(TMP4282, "Barrier", 7);
STRING_LITERAL(TMP4283, "openBarrier", 11);
STRING_LITERAL(TMP4284, "invalid context for \'spawn\'", 27);
STRING_LITERAL(TMP4285, "closeBarrier", 12);
Tsym223841* opslice_449055;
extern Gcheap51018 gch_51059;
TNimType NTI449024; /* MonotonicVar */
extern TNimType NTI223807; /* PSym */
extern TNimType NTI223801; /* PNode */
TNimType NTI449022; /* TDirection */
extern TNimType NTI138; /* bool */
TNimType NTI449036; /* seq[MonotonicVar] */
TNimType NTI449039; /* tuple[x: PNode, a: PNode, b: PNode, spawnId: int, inLoop: bool] */
extern TNimType NTI108; /* int */
TNimType NTI449038; /* seq[tuple[x: PNode, a: PNode, b: PNode, spawnId: int, inLoop: bool]] */
extern TNimType NTI223811; /* TSymSeq */
extern TNimType NTI223803; /* TNodeSeq */
extern Tnode223809* emptynode_224807;

static N_INLINE(Cell48947*, usrtocell_52646)(void* usr) {
	Cell48947* result;
	result = 0;
	result = ((Cell48947*) ((NI)((NU64)(((NI) (usr))) - (NU64)(((NI)sizeof(Cell48947))))));
	return result;
}

static N_INLINE(void, rtladdzct_54204)(Cell48947* c) {
	addzct_52617((&gch_51059.zct), c);
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell48947* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_52646(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell48947* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_52646((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA11;
			rtladdzct_54204(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}
N_NIMCALL(void, TMP4258)(void* p, NI op) {
	TY449036* a;
	NI LOC1;
	a = (TY449036*)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, TMP4260)(void* p, NI op) {
	TY449038* a;
	NI LOC1;
	a = (TY449038*)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_449059)(Analysisctx449026* Result) {
	unsureAsgnRef((void**) (&(*Result).locals), (TY449036*) newSeq((&NTI449036), 0));
	unsureAsgnRef((void**) (&(*Result).slices), (TY449038*) newSeq((&NTI449038), 0));
	unsureAsgnRef((void**) (&(*Result).args), (Tsymseq223811*) newSeq((&NTI223811), 0));
	unsureAsgnRef((void**) (&(*Result).guards), (Tnodeseq223803*) newSeq((&NTI223803), 0));
}

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

N_NIMCALL(NIM_BOOL, issingleassignable_449356)(Tnode223809* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	Tsym223841* 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 = ((2097696 &(1<<(((*s).kind)&31)))!=0);
	if (!(LOC3)) goto LA4;
	LOC3 = ((32776 & (*s).flags) == 0);
	LA4: ;
	LOC1 = LOC3;
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(NIM_BOOL, islocal_449416)(Tnode223809* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	Tsym223841* 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 = ((2100000 &(1<<(((*s).kind)&31)))!=0);
	if (!(LOC3)) goto LA4;
	LOC3 = ((32776 & (*s).flags) == 0);
	LA4: ;
	LOC1 = LOC3;
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(NI, lookupslot_449132)(Analysisctx449026* c, Tsym223841* s) {
	NI result;
{	result = 0;
	{
		NI i_449163;
		NI HEX3Atmp_449187;
		NI res_449190;
		i_449163 = 0;
		HEX3Atmp_449187 = 0;
		HEX3Atmp_449187 = (((*c).locals ? (*c).locals->Sup.len : 0) - 1);
		res_449190 = ((NI) 0);
		{
			while (1) {
				if (!(res_449190 <= HEX3Atmp_449187)) goto LA3;
				i_449163 = res_449190;
				{
					NIM_BOOL LOC6;
					LOC6 = 0;
					LOC6 = ((*c).locals->data[i_449163].v == s);
					if (LOC6) goto LA7;
					LOC6 = ((*c).locals->data[i_449163].alias == s);
					LA7: ;
					if (!LOC6) goto LA8;
					result = i_449163;
					goto BeforeRet;
				}
				LA8: ;
				res_449190 += ((NI) 1);
			} LA3: ;
		}
	}
	result = ((NI) -1);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Monotonicvar449024*, getslot_449209)(Analysisctx449026* c, Tsym223841* v) {
	Monotonicvar449024* result;
	NI s;
	NI L;
{	result = 0;
	s = lookupslot_449132((&(*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 = (TY449036*) setLengthSeq(&((*c).locals)->Sup, sizeof(Monotonicvar449024), ((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_224126)(Tnode223809* 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_449244)(Analysisctx449026* c, Tnode223809* n) {
	{
		NI i_449268;
		NI HEX3Atmp_449322;
		NI LOC2;
		NI res_449325;
		i_449268 = 0;
		HEX3Atmp_449322 = 0;
		LOC2 = 0;
		LOC2 = safelen_224126(n);
		HEX3Atmp_449322 = (LOC2 - 1);
		res_449325 = ((NI) 0);
		{
			while (1) {
				Tsym223841* root;
				Tnode223809* LOC5;
				Tnode223809* LOC18;
				if (!(res_449325 <= HEX3Atmp_449322)) goto LA4;
				i_449268 = res_449325;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_224244(n, i_449268);
				root = getroot_402646(LOC5);
				{
					if (!!((root == NIM_NIL))) goto LA8;
					{
						{
							Tsym223841* r_449292;
							Tsymseq223811* HEX3Atmp_449316;
							NI i_449319;
							NI L_449321;
							r_449292 = 0;
							HEX3Atmp_449316 = 0;
							HEX3Atmp_449316 = (*c).args;
							i_449319 = ((NI) 0);
							L_449321 = (HEX3Atmp_449316 ? HEX3Atmp_449316->Sup.len : 0);
							{
								while (1) {
									if (!(i_449319 < L_449321)) goto LA13;
									r_449292 = HEX3Atmp_449316->data[i_449319];
									{
										if (!(r_449292 == root)) goto LA16;
										goto LA10;
									}
									LA16: ;
									i_449319 += ((NI) 1);
								} LA13: ;
							}
						}
						(*c).args = (Tsymseq223811*) incrSeqV2(&((*c).args)->Sup, sizeof(Tsym223841*));
						asgnRefNoCycle((void**) (&(*c).args->data[(*c).args->Sup.len]), root);
						++(*c).args->Sup.len;
					} LA10: ;
				}
				LA8: ;
				LOC18 = 0;
				LOC18 = HEX5BHEX5D_224244(n, i_449268);
				gatherargs_449244(c, LOC18);
				res_449325 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(void, analysesons_450324)(Analysisctx449026* c, Tnode223809* n) {
	{
		NI i_450347;
		NI HEX3Atmp_450349;
		NI LOC2;
		NI res_450352;
		i_450347 = 0;
		HEX3Atmp_450349 = 0;
		LOC2 = 0;
		LOC2 = safelen_224126(n);
		HEX3Atmp_450349 = (LOC2 - 1);
		res_450352 = ((NI) 0);
		{
			while (1) {
				Tnode223809* LOC5;
				if (!(res_450352 <= HEX3Atmp_450349)) goto LA4;
				i_450347 = res_450352;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_224244(n, i_450347);
				analyse_450316(c, LOC5);
				res_450352 += ((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_450393)(Tsym223841* op) {
	NIM_BOOL result;
	Tsym223841* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getmodule_231243(op);
	result = (((*LOC1).flags &(1<<((((NU8) 13))&31)))!=0);
	return result;
}

N_NIMCALL(Tnode223809*, min_450371)(Tnode223809* a, Tnode223809* b) {
	Tnode223809* 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_449476)(Analysisctx449026* c, Tnode223809* n) {
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_449416(n);
		if (!LOC3) goto LA4;
		s = lookupslot_449132(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_194139((*n).info, ((NimStringDesc*) &TMP4263));
		}
		LA10: ;
	}
	goto LA1;
	LA4: ;
	{
		{
			NI i_449513;
			NI HEX3Atmp_449516;
			NI LOC14;
			NI res_449519;
			i_449513 = 0;
			HEX3Atmp_449516 = 0;
			LOC14 = 0;
			LOC14 = safelen_224126(n);
			HEX3Atmp_449516 = (LOC14 - 1);
			res_449519 = ((NI) 0);
			{
				while (1) {
					if (!(res_449519 <= HEX3Atmp_449516)) goto LA16;
					i_449513 = res_449519;
					checklocal_449476(c, (*n).kindU.S6.sons->data[i_449513]);
					res_449519 += ((NI) 1);
				} LA16: ;
			}
		}
	}
	LA1: ;
}

N_NIMCALL(void, addlowerboundasfacts_449573)(Analysisctx449026* c) {
	{
		Monotonicvar449024 v_449811;
		TY449036* HEX3Atmp_449814;
		NI i_449817;
		NI L_449819;
		memset((void*)(&v_449811), 0, sizeof(v_449811));
		HEX3Atmp_449814 = 0;
		HEX3Atmp_449814 = (*c).locals;
		i_449817 = ((NI) 0);
		L_449819 = (HEX3Atmp_449814 ? HEX3Atmp_449814->Sup.len : 0);
		{
			while (1) {
				if (!(i_449817 < L_449819)) goto LA3;
				memcpy((void*)(&v_449811), (NIM_CONST void*)(&HEX3Atmp_449814->data[i_449817]), sizeof(v_449811));
				{
					Tnode223809* LOC8;
					if (!!(v_449811.blacklisted)) goto LA6;
					LOC8 = 0;
					LOC8 = newsymnode_225325(v_449811.v);
					addfactle_358849((&(*c).guards), v_449811.lower, LOC8);
				}
				LA6: ;
				i_449817 += ((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_449545)(Analysisctx449026* c, Tnode223809* a, Tnode223809* b) {
	NU8 LOC1;
	LOC1 = 0;
	LOC1 = provele_358823((*c).guards, a, b);
	switch (LOC1) {
	case ((NU8) 0):
	{
		NimStringDesc* LOC3;
		NimStringDesc* LOC4;
		NimStringDesc* LOC5;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = rendertree_245059(a, 0);
		LOC5 = 0;
		LOC5 = rendertree_245059(b, 0);
		LOC3 = rawNewString(LOC4->Sup.len + LOC5->Sup.len + 33);
appendString(LOC3, ((NimStringDesc*) &TMP4269));
appendString(LOC3, LOC4);
appendString(LOC3, ((NimStringDesc*) &TMP4270));
appendString(LOC3, LOC5);
appendString(LOC3, ((NimStringDesc*) &TMP4271));
		localerror_194139((*a).info, LOC3);
	}
	break;
	case ((NU8) 2):
	{
	}
	break;
	case ((NU8) 1):
	{
		NimStringDesc* LOC8;
		NimStringDesc* LOC9;
		NimStringDesc* LOC10;
		LOC8 = 0;
		LOC9 = 0;
		LOC9 = rendertree_245059(a, 0);
		LOC10 = 0;
		LOC10 = rendertree_245059(b, 0);
		LOC8 = rawNewString(LOC9->Sup.len + LOC10->Sup.len + 29);
appendString(LOC8, ((NimStringDesc*) &TMP4272));
appendString(LOC8, LOC9);
appendString(LOC8, ((NimStringDesc*) &TMP4273));
appendString(LOC8, LOC10);
appendString(LOC8, ((NimStringDesc*) &TMP4271));
		localerror_194139((*a).info, LOC8);
	}
	break;
	}
}

N_NIMCALL(void, checkbounds_449560)(Analysisctx449026* c, Tnode223809* arr, Tnode223809* idx) {
	Tnode223809* LOC1;
	Tnode223809* LOC2;
	LOC1 = 0;
	LOC1 = lowbound_355702(arr);
	checkle_449545(c, LOC1, idx);
	LOC2 = 0;
	LOC2 = highbound_355712(arr);
	checkle_449545(c, idx, LOC2);
}

N_NIMCALL(void, addslice_449835)(Analysisctx449026* c, Tnode223809* n, Tnode223809* x, Tnode223809* le_449841, Tnode223809* ri_449842) {
	Tnode223809* le;
	Tnode223809* ri;
	NI oldstate;
	TY449039 LOC1;
	checklocal_449476((&(*c)), n);
	le = canon_355843(le_449841);
	ri = canon_355843(ri_449842);
	oldstate = ((*c).guards ? (*c).guards->Sup.len : 0);
	addlowerboundasfacts_449573(c);
	checkbounds_449560((&(*c)), x, le);
	checkbounds_449560((&(*c)), x, ri);
	(*c).guards = (Tnodeseq223803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode223809*), ((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 = (TY449038*) incrSeqV2(&((*c).slices)->Sup, sizeof(TY449039));
	genericAssign((void*)(&(*c).slices->data[(*c).slices->Sup.len]), (void*)(&LOC1), (&NTI449039));
	++(*c).slices->Sup.len;
}

N_NIMCALL(void, analysecall_450422)(Analysisctx449026* c, Tnode223809* n, Tsym223841* op) {
	{
		NI oldspawnid;
		Tnode223809* LOC5;
		if (!((*op).magic == ((NU8) 201))) goto LA3;
		(*c).spawns += ((NI) 1);
		oldspawnid = (*c).currentspawnid;
		(*c).currentspawnid = (*c).spawns;
		LOC5 = 0;
		LOC5 = HEX5BHEX5D_224244(n, ((NI) 1));
		gatherargs_449244(c, LOC5);
		analysesons_450324(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*) &TMP4261));
		if (!(LOC9)) goto LA10;
		LOC9 = fromsystem_450393(op);
		LA10: ;
		LOC7 = LOC9;
		LA8: ;
		if (!LOC7) goto LA11;
		{
			Tnode223809* LOC15;
			NIM_BOOL LOC16;
			Tnode223809* incr;
			Tnode223809* LOC19;
			LOC15 = 0;
			LOC15 = HEX5BHEX5D_224244(n, ((NI) 1));
			LOC16 = 0;
			LOC16 = islocal_449416(LOC15);
			if (!LOC16) goto LA17;
			LOC19 = 0;
			LOC19 = HEX5BHEX5D_224244(n, ((NI) 2));
			incr = skipconv_262935(LOC19);
			{
				NIM_BOOL LOC22;
				Monotonicvar449024* slot;
				Tnode223809* 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_224244(n, ((NI) 1));
				slot = getslot_449209(c, (*LOC26).kindU.S4.sym);
				unsureAsgnRef((void**) (&(*slot).stride), min_450371((*slot).stride, incr));
			}
			LA24: ;
		}
		LA17: ;
		analysesons_450324(c, n);
	}
	goto LA1;
	LA11: ;
	{
		NIM_BOOL LOC28;
		Tnode223809* slice;
		Tnode223809* LOC32;
		Tnode223809* LOC33;
		Tnode223809* LOC34;
		Tnode223809* LOC35;
		LOC28 = 0;
		LOC28 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4262));
		if (!(LOC28)) goto LA29;
		LOC28 = fromsystem_450393(op);
		LA29: ;
		if (!LOC28) goto LA30;
		LOC32 = 0;
		LOC32 = HEX5BHEX5D_224244(n, ((NI) 2));
		slice = skipstmtlist_228986(LOC32);
		LOC33 = 0;
		LOC33 = HEX5BHEX5D_224244(n, ((NI) 1));
		LOC34 = 0;
		LOC34 = HEX5BHEX5D_224244(slice, ((NI) 1));
		LOC35 = 0;
		LOC35 = HEX5BHEX5D_224244(slice, ((NI) 2));
		addslice_449835(c, n, LOC33, LOC34, LOC35);
		analysesons_450324(c, n);
	}
	goto LA1;
	LA30: ;
	{
		NIM_BOOL LOC37;
		Tnode223809* slice;
		Tnode223809* LOC41;
		Tnode223809* LOC42;
		Tnode223809* LOC43;
		Tnode223809* LOC44;
		LOC37 = 0;
		LOC37 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4274));
		if (!(LOC37)) goto LA38;
		LOC37 = fromsystem_450393(op);
		LA38: ;
		if (!LOC37) goto LA39;
		LOC41 = 0;
		LOC41 = HEX5BHEX5D_224244(n, ((NI) 2));
		slice = skipstmtlist_228986(LOC41);
		LOC42 = 0;
		LOC42 = HEX5BHEX5D_224244(n, ((NI) 1));
		LOC43 = 0;
		LOC43 = HEX5BHEX5D_224244(slice, ((NI) 1));
		LOC44 = 0;
		LOC44 = HEX5BHEX5D_224244(slice, ((NI) 2));
		addslice_449835(c, n, LOC42, LOC43, LOC44);
		analysesons_450324(c, n);
	}
	goto LA1;
	LA39: ;
	{
		analysesons_450324(c, n);
	}
	LA1: ;
}

static N_INLINE(NI, len_224098)(Tnode223809* 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_450495)(Analysisctx449026* c, Tnode223809* n) {
	NI oldfacts;
	analyse_450316(c, (*n).kindU.S6.sons->data[((NI) 0)]);
	oldfacts = ((*c).guards ? (*c).guards->Sup.len : 0);
	{
		NI i_450529;
		NI HEX3Atmp_450583;
		NI LOC2;
		NI res_450586;
		i_450529 = 0;
		HEX3Atmp_450583 = 0;
		LOC2 = 0;
		LOC2 = len_224098(n);
		HEX3Atmp_450583 = (LOC2 - 1);
		res_450586 = ((NI) 1);
		{
			while (1) {
				Tnode223809* branch;
				if (!(res_450586 <= HEX3Atmp_450583)) goto LA4;
				i_450529 = res_450586;
				branch = (*n).kindU.S6.sons->data[i_450529];
				(*c).guards = (Tnodeseq223803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode223809*), ((NI) (oldfacts)));
				addcasebranchfacts_359137((&(*c).guards), n, i_450529);
				{
					NI i_450562;
					NI HEX3Atmp_450576;
					NI LOC6;
					NI res_450579;
					i_450562 = 0;
					HEX3Atmp_450576 = 0;
					LOC6 = 0;
					LOC6 = len_224098(branch);
					HEX3Atmp_450576 = (LOC6 - 1);
					res_450579 = ((NI) 0);
					{
						while (1) {
							if (!(res_450579 <= HEX3Atmp_450576)) goto LA8;
							i_450562 = res_450579;
							analyse_450316(c, (*branch).kindU.S6.sons->data[i_450562]);
							res_450579 += ((NI) 1);
						} LA8: ;
					}
				}
				res_450586 += ((NI) 1);
			} LA4: ;
		}
	}
	(*c).guards = (Tnodeseq223803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode223809*), ((NI) (oldfacts)));
}

N_NIMCALL(void, analyseif_450614)(Analysisctx449026* c, Tnode223809* n) {
	NI oldfacts;
	Tnode223809* LOC1;
	analyse_450316(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_355843((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
	addfact_356392((&(*c).guards), LOC1);
	analyse_450316(c, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]);
	{
		NI i_450654;
		NI HEX3Atmp_450732;
		NI LOC3;
		NI res_450735;
		i_450654 = 0;
		HEX3Atmp_450732 = 0;
		LOC3 = 0;
		LOC3 = len_224098(n);
		HEX3Atmp_450732 = (LOC3 - 1);
		res_450735 = ((NI) 1);
		{
			while (1) {
				Tnode223809* branch;
				if (!(res_450735 <= HEX3Atmp_450732)) goto LA5;
				i_450654 = res_450735;
				branch = (*n).kindU.S6.sons->data[i_450654];
				(*c).guards = (Tnodeseq223803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode223809*), ((NI) (oldfacts)));
				{
					NI j_450677;
					NI HEX3Atmp_450717;
					NI res_450720;
					j_450677 = 0;
					HEX3Atmp_450717 = 0;
					HEX3Atmp_450717 = (NI)(i_450654 - ((NI) 1));
					res_450720 = ((NI) 0);
					{
						while (1) {
							Tnode223809* LOC9;
							if (!(res_450720 <= HEX3Atmp_450717)) goto LA8;
							j_450677 = res_450720;
							LOC9 = 0;
							LOC9 = canon_355843((*(*n).kindU.S6.sons->data[j_450677]).kindU.S6.sons->data[((NI) 0)]);
							addfactneg_356426((&(*c).guards), LOC9);
							res_450720 += ((NI) 1);
						} LA8: ;
					}
				}
				{
					NI LOC12;
					Tnode223809* LOC15;
					LOC12 = 0;
					LOC12 = len_224098(branch);
					if (!(((NI) 1) < LOC12)) goto LA13;
					LOC15 = 0;
					LOC15 = canon_355843((*branch).kindU.S6.sons->data[((NI) 0)]);
					addfact_356392((&(*c).guards), LOC15);
				}
				LA13: ;
				{
					NI i_450703;
					NI HEX3Atmp_450725;
					NI LOC17;
					NI res_450728;
					i_450703 = 0;
					HEX3Atmp_450725 = 0;
					LOC17 = 0;
					LOC17 = len_224098(branch);
					HEX3Atmp_450725 = (LOC17 - 1);
					res_450728 = ((NI) 0);
					{
						while (1) {
							if (!(res_450728 <= HEX3Atmp_450725)) goto LA19;
							i_450703 = res_450728;
							analyse_450316(c, (*branch).kindU.S6.sons->data[i_450703]);
							res_450728 += ((NI) 1);
						} LA19: ;
					}
				}
				res_450735 += ((NI) 1);
			} LA5: ;
		}
	}
	(*c).guards = (Tnodeseq223803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode223809*), ((NI) (oldfacts)));
}

N_NIMCALL(void, analyse_450316)(Analysisctx449026* c, Tnode223809* n) {
	switch ((*n).kind) {
	case ((NU8) 73):
	case ((NU8) 74):
	{
		Tnode223809* y;
		Tnode223809* LOC2;
		Tnode223809* LOC17;
		Tnode223809* value;
		Tnode223809* LOC27;
		LOC2 = 0;
		LOC2 = HEX5BHEX5D_224244(n, ((NI) 1));
		y = skipconv_262935(LOC2);
		{
			NIM_BOOL LOC5;
			Tnode223809* LOC6;
			Monotonicvar449024* slot;
			Tnode223809* LOC10;
			LOC5 = 0;
			LOC6 = 0;
			LOC6 = HEX5BHEX5D_224244(n, ((NI) 0));
			LOC5 = issingleassignable_449356(LOC6);
			if (!(LOC5)) goto LA7;
			LOC5 = islocal_449416(y);
			LA7: ;
			if (!LOC5) goto LA8;
			slot = getslot_449209(c, (*y).kindU.S4.sym);
			LOC10 = 0;
			LOC10 = HEX5BHEX5D_224244(n, ((NI) 0));
			unsureAsgnRef((void**) (&(*slot).alias), (*LOC10).kindU.S4.sym);
		}
		goto LA3;
		LA8: ;
		{
			Tnode223809* LOC12;
			NIM_BOOL LOC13;
			Monotonicvar449024* slot;
			Tnode223809* LOC16;
			LOC12 = 0;
			LOC12 = HEX5BHEX5D_224244(n, ((NI) 0));
			LOC13 = 0;
			LOC13 = islocal_449416(LOC12);
			if (!LOC13) goto LA14;
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_224244(n, ((NI) 0));
			slot = getslot_449209(c, (*LOC16).kindU.S4.sym);
			(*slot).blacklisted = NIM_TRUE;
		}
		goto LA3;
		LA14: ;
		LA3: ;
		LOC17 = 0;
		LOC17 = HEX5BHEX5D_224244(n, ((NI) 0));
		invalidatefacts_356659((&(*c).guards), LOC17);
		value = HEX5BHEX5D_224244(n, ((NI) 1));
		{
			NU8 LOC20;
			NI oldspawnid;
			Tnode223809* LOC23;
			Tnode223809* LOC24;
			Tnode223809* LOC25;
			LOC20 = 0;
			LOC20 = getmagic_252417(value);
			if (!(LOC20 == ((NU8) 201))) goto LA21;
			(*c).spawns += ((NI) 1);
			oldspawnid = (*c).currentspawnid;
			(*c).currentspawnid = (*c).spawns;
			LOC23 = 0;
			LOC23 = HEX5BHEX5D_224244(value, ((NI) 1));
			gatherargs_449244(c, LOC23);
			LOC24 = 0;
			LOC24 = HEX5BHEX5D_224244(value, ((NI) 1));
			analysesons_450324(c, LOC24);
			LOC25 = 0;
			LOC25 = HEX5BHEX5D_224244(n, ((NI) 0));
			analyse_450316(c, LOC25);
			(*c).currentspawnid = oldspawnid;
		}
		goto LA18;
		LA21: ;
		{
			analysesons_450324(c, n);
		}
		LA18: ;
		LOC27 = 0;
		LOC27 = HEX5BHEX5D_224244(n, ((NI) 0));
		addasgnfact_359086((&(*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):
	{
		{
			Tnode223809* LOC31;
			Tnode223809* LOC34;
			LOC31 = 0;
			LOC31 = HEX5BHEX5D_224244(n, ((NI) 0));
			if (!((*LOC31).kind == ((NU8) 3))) goto LA32;
			LOC34 = 0;
			LOC34 = HEX5BHEX5D_224244(n, ((NI) 0));
			analysecall_450422(c, n, (*LOC34).kindU.S4.sym);
		}
		goto LA29;
		LA32: ;
		{
			analysesons_450324(c, n);
		}
		LA29: ;
	}
	break;
	case ((NU8) 42):
	{
		Tnode223809* LOC37;
		Tnode223809* LOC38;
		Tnode223809* LOC39;
		LOC37 = 0;
		LOC37 = HEX5BHEX5D_224244(n, ((NI) 0));
		LOC38 = 0;
		LOC38 = HEX5BHEX5D_224244(n, ((NI) 1));
		LOC39 = 0;
		LOC39 = HEX5BHEX5D_224244(n, ((NI) 1));
		addslice_449835(c, n, LOC37, LOC38, LOC39);
		analysesons_450324(c, n);
	}
	break;
	case ((NU8) 109):
	case ((NU8) 108):
	case ((NU8) 106):
	{
		localerror_194139((*n).info, ((NimStringDesc*) &TMP4275));
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		{
			Tnode223809* it_450819;
			it_450819 = 0;
			{
				NI i_450952;
				NI HEX3Atmp_450954;
				NI LOC44;
				NI res_450956;
				i_450952 = 0;
				HEX3Atmp_450954 = 0;
				LOC44 = 0;
				LOC44 = len_224098(n);
				HEX3Atmp_450954 = (LOC44 - 1);
				res_450956 = ((NI) 0);
				{
					while (1) {
						Tnode223809* value;
						NIM_BOOL isspawned;
						NU8 LOC47;
						if (!(res_450956 <= HEX3Atmp_450954)) goto LA46;
						i_450952 = res_450956;
						it_450819 = (*n).kindU.S6.sons->data[i_450952];
						value = lastson_226406(it_450819);
						LOC47 = 0;
						LOC47 = getmagic_252417(value);
						isspawned = (LOC47 == ((NU8) 201));
						{
							NI oldspawnid;
							Tnode223809* LOC52;
							Tnode223809* LOC53;
							if (!isspawned) goto LA50;
							(*c).spawns += ((NI) 1);
							oldspawnid = (*c).currentspawnid;
							(*c).currentspawnid = (*c).spawns;
							LOC52 = 0;
							LOC52 = HEX5BHEX5D_224244(value, ((NI) 1));
							gatherargs_449244(c, LOC52);
							LOC53 = 0;
							LOC53 = HEX5BHEX5D_224244(value, ((NI) 1));
							analysesons_450324(c, LOC53);
							(*c).currentspawnid = oldspawnid;
						}
						LA50: ;
						{
							if (!!(((*value).kind == ((NU8) 1)))) goto LA56;
							{
								NI j_450862;
								NI HEX3Atmp_450942;
								NI LOC59;
								NI res_450945;
								j_450862 = 0;
								HEX3Atmp_450942 = 0;
								LOC59 = 0;
								LOC59 = len_224098(it_450819);
								HEX3Atmp_450942 = (NI)(LOC59 - ((NI) 3));
								res_450945 = ((NI) 0);
								{
									while (1) {
										if (!(res_450945 <= HEX3Atmp_450942)) goto LA61;
										j_450862 = res_450945;
										{
											Tnode223809* LOC64;
											NIM_BOOL LOC65;
											Monotonicvar449024* slot;
											Tnode223809* LOC68;
											LOC64 = 0;
											LOC64 = HEX5BHEX5D_224244(it_450819, j_450862);
											LOC65 = 0;
											LOC65 = islocal_449416(LOC64);
											if (!LOC65) goto LA66;
											LOC68 = 0;
											LOC68 = HEX5BHEX5D_224244(it_450819, j_450862);
											slot = getslot_449209(c, (*LOC68).kindU.S4.sym);
											{
												if (!(*slot).lower == 0) goto LA71;
												unsureAsgnRef((void**) (&(*slot).lower), value);
											}
											goto LA69;
											LA71: ;
											{
												internalerror_194172((*it_450819).info, ((NimStringDesc*) &TMP4276));
											}
											LA69: ;
										}
										LA66: ;
										res_450945 += ((NI) 1);
									} LA61: ;
								}
							}
							{
								if (!!(isspawned)) goto LA76;
								analyse_450316(c, value);
							}
							LA76: ;
						}
						LA56: ;
						res_450956 += ((NI) 1);
					} LA46: ;
				}
			}
		}
	}
	break;
	case ((NU8) 97):
	{
		analysecase_450495(c, n);
	}
	break;
	case ((NU8) 93):
	case ((NU8) 92):
	case ((NU8) 48):
	{
		analyseif_450614(c, n);
	}
	break;
	case ((NU8) 96):
	{
		analyse_450316(c, (*n).kindU.S6.sons->data[((NI) 0)]);
		(*c).inloop += ((NI) 1);
		{
			NIM_BOOL LOC83;
			LOC83 = 0;
			LOC83 = istrue_367402((*n).kindU.S6.sons->data[((NI) 0)]);
			if (!LOC83) goto LA84;
			analysesons_450324(c, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		goto LA81;
		LA84: ;
		{
			NI oldstate;
			NI oldfacts;
			Tnode223809* LOC87;
			oldstate = ((*c).locals ? (*c).locals->Sup.len : 0);
			oldfacts = ((*c).guards ? (*c).guards->Sup.len : 0);
			LOC87 = 0;
			LOC87 = canon_355843((*n).kindU.S6.sons->data[((NI) 0)]);
			addfact_356392((&(*c).guards), LOC87);
			analyse_450316(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			(*c).locals = (TY449036*) setLengthSeq(&((*c).locals)->Sup, sizeof(Monotonicvar449024), ((NI) (oldstate)));
			(*c).guards = (Tnodeseq223803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode223809*), ((NI) (oldfacts)));
			{
				NIM_BOOL LOC90;
				Tnode223809* LOC93;
				LOC90 = 0;
				LOC90 = hassubnodewith_228439((*n).kindU.S6.sons->data[((NI) 1)], ((NU8) 110));
				if (!!(LOC90)) goto LA91;
				LOC93 = 0;
				LOC93 = canon_355843((*n).kindU.S6.sons->data[((NI) 0)]);
				addfactneg_356426((&(*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_450324(c, n);
	}
	break;
	}
}

N_NIMCALL(void, overlap_449883)(Tnodeseq223803* m, Tnode223809* x, Tnode223809* y, Tnode223809* c, Tnode223809* d) {
	NU8 LOC1;
	LOC1 = 0;
	LOC1 = provele_358823(m, c, y);
	switch (LOC1) {
	case ((NU8) 0):
	{
		NU8 LOC3;
		LOC3 = 0;
		LOC3 = provele_358823(m, x, d);
		switch (LOC3) {
		case ((NU8) 1):
		{
		}
		break;
		case ((NU8) 0):
		case ((NU8) 2):
		{
			TY449890 LOC6;
			NimStringDesc* LOC7;
			memset((void*)LOC6, 0, sizeof(LOC6));
			LOC6[0] = rendertree_245059(c, 0);
			LOC6[1] = rendertree_245059(y, 0);
			LOC6[2] = rendertree_245059(x, 0);
			LOC6[3] = rendertree_245059(y, 0);
			LOC6[4] = rendertree_245059(c, 0);
			LOC6[5] = rendertree_245059(d, 0);
			LOC7 = 0;
			LOC7 = nsuFormatOpenArray(((NimStringDesc*) &TMP4278), LOC6, 6);
			localerror_194139((*x).info, LOC7);
		}
		break;
		}
	}
	break;
	case ((NU8) 2):
	{
		NU8 LOC9;
		LOC9 = 0;
		LOC9 = provele_358823(m, x, d);
		switch (LOC9) {
		case ((NU8) 0):
		{
			TY449890 LOC11;
			NimStringDesc* LOC12;
			memset((void*)LOC11, 0, sizeof(LOC11));
			LOC11[0] = rendertree_245059(x, 0);
			LOC11[1] = rendertree_245059(d, 0);
			LOC11[2] = rendertree_245059(x, 0);
			LOC11[3] = rendertree_245059(y, 0);
			LOC11[4] = rendertree_245059(c, 0);
			LOC11[5] = rendertree_245059(d, 0);
			LOC12 = 0;
			LOC12 = nsuFormatOpenArray(((NimStringDesc*) &TMP4278), LOC11, 6);
			localerror_194139((*x).info, LOC12);
		}
		break;
		case ((NU8) 2):
		{
			TY449890 LOC14;
			NimStringDesc* LOC15;
			memset((void*)LOC14, 0, sizeof(LOC14));
			LOC14[0] = rendertree_245059(c, 0);
			LOC14[1] = rendertree_245059(y, 0);
			LOC14[2] = rendertree_245059(x, 0);
			LOC14[3] = rendertree_245059(y, 0);
			LOC14[4] = rendertree_245059(c, 0);
			LOC14[5] = rendertree_245059(d, 0);
			LOC15 = 0;
			LOC15 = nsuFormatOpenArray(((NimStringDesc*) &TMP4279), LOC14, 6);
			localerror_194139((*x).info, LOC15);
		}
		break;
		case ((NU8) 1):
		{
		}
		break;
		}
	}
	break;
	case ((NU8) 1):
	{
	}
	break;
	}
}

N_NIMCALL(Tnode223809*, substride_449993)(Analysisctx449026* c, Tnode223809* n) {
	Tnode223809* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_449416(n);
		if (!LOC3) goto LA4;
		s = lookupslot_449132(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_356160(n, (*(*c).locals->data[s].stride).kindU.S1.intval);
		}
		goto LA6;
		LA10: ;
		{
			result = n;
		}
		LA6: ;
	}
	goto LA1;
	LA4: ;
	{
		NI LOC14;
		LOC14 = 0;
		LOC14 = safelen_224126(n);
		if (!(((NI) 0) < LOC14)) goto LA15;
		result = shallowcopy_227817(n);
		{
			NI i_450033;
			NI HEX3Atmp_450037;
			NI LOC18;
			NI res_450040;
			i_450033 = 0;
			HEX3Atmp_450037 = 0;
			LOC18 = 0;
			LOC18 = len_224098(n);
			HEX3Atmp_450037 = (LOC18 - 1);
			res_450040 = ((NI) 0);
			{
				while (1) {
					if (!(res_450040 <= HEX3Atmp_450037)) goto LA20;
					i_450033 = res_450040;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_450033]), substride_449993(c, (*n).kindU.S6.sons->data[i_450033]));
					res_450040 += ((NI) 1);
				} LA20: ;
			}
		}
	}
	goto LA1;
	LA15: ;
	{
		result = n;
	}
	LA1: ;
	return result;
}

N_NIMCALL(NI64, stride_449920)(Analysisctx449026* c, Tnode223809* n) {
	NI64 result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_449416(n);
		if (!LOC3) goto LA4;
		s = lookupslot_449132(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_449959;
			NI HEX3Atmp_449971;
			NI LOC14;
			NI res_449974;
			i_449959 = 0;
			HEX3Atmp_449971 = 0;
			LOC14 = 0;
			LOC14 = safelen_224126(n);
			HEX3Atmp_449971 = (LOC14 - 1);
			res_449974 = ((NI) 0);
			{
				while (1) {
					NI64 LOC17;
					if (!(res_449974 <= HEX3Atmp_449971)) goto LA16;
					i_449959 = res_449974;
					LOC17 = 0;
					LOC17 = stride_449920(c, (*n).kindU.S6.sons->data[i_449959]);
					result += LOC17;
					res_449974 += ((NI) 1);
				} LA16: ;
			}
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, checkslicesaredisjoint_450059)(Analysisctx449026* c) {
	addlowerboundasfacts_449573(c);
	{
		Tnode223809* x_450211;
		Tnode223809* a_450212;
		Tnode223809* b_450213;
		NI id_450214;
		NIM_BOOL inloop_450215;
		TY449038* HEX3Atmp_450260;
		NI i_450263;
		NI L_450265;
		x_450211 = 0;
		a_450212 = 0;
		b_450213 = 0;
		id_450214 = 0;
		inloop_450215 = 0;
		HEX3Atmp_450260 = 0;
		HEX3Atmp_450260 = (*c).slices;
		i_450263 = ((NI) 0);
		L_450265 = (HEX3Atmp_450260 ? HEX3Atmp_450260->Sup.len : 0);
		{
			while (1) {
				if (!(i_450263 < L_450265)) goto LA3;
				x_450211 = HEX3Atmp_450260->data[i_450263].Field0;
				a_450212 = HEX3Atmp_450260->data[i_450263].Field1;
				b_450213 = HEX3Atmp_450260->data[i_450263].Field2;
				id_450214 = HEX3Atmp_450260->data[i_450263].Field3;
				inloop_450215 = HEX3Atmp_450260->data[i_450263].Field4;
				{
					Tnode223809* LOC8;
					Tnode223809* LOC9;
					if (!inloop_450215) goto LA6;
					LOC8 = 0;
					LOC8 = substride_449993((&(*c)), a_450212);
					LOC9 = 0;
					LOC9 = substride_449993((&(*c)), b_450213);
					overlap_449883((*c).guards, a_450212, b_450213, LOC8, LOC9);
				}
				LA6: ;
				i_450263 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NI i_450226;
		NI HEX3Atmp_450276;
		NI res_450279;
		i_450226 = 0;
		HEX3Atmp_450276 = 0;
		HEX3Atmp_450276 = ((*c).slices ? ((*c).slices->Sup.len-1) : -1);
		res_450279 = ((NI) 0);
		{
			while (1) {
				if (!(res_450279 <= HEX3Atmp_450276)) goto LA12;
				i_450226 = res_450279;
				{
					NI j_450237;
					NI HEX3Atmp_450268;
					NI HEX3Atmp_450269;
					NI res_450272;
					j_450237 = 0;
					HEX3Atmp_450268 = 0;
					HEX3Atmp_450269 = 0;
					HEX3Atmp_450268 = (NI)(i_450226 + ((NI) 1));
					HEX3Atmp_450269 = ((*c).slices ? ((*c).slices->Sup.len-1) : -1);
					res_450272 = HEX3Atmp_450268;
					{
						while (1) {
							TY449039 x;
							TY449039 y;
							if (!(res_450272 <= HEX3Atmp_450269)) goto LA15;
							j_450237 = res_450272;
							memset((void*)(&x), 0, sizeof(x));
							memcpy((void*)(&x), (NIM_CONST void*)(&(*c).slices->data[i_450226]), sizeof(x));
							memset((void*)(&y), 0, sizeof(y));
							memcpy((void*)(&y), (NIM_CONST void*)(&(*c).slices->data[j_450237]), sizeof(y));
							{
								NIM_BOOL LOC18;
								LOC18 = 0;
								LOC18 = !((x.Field3 == y.Field3));
								if (!(LOC18)) goto LA19;
								LOC18 = sametree_356462(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_449883((*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_357464(x.Field1, x.Field2);
									m = simpleslice_357464(y.Field1, y.Field2);
									LOC29 = 0;
									LOC29 = (IL64(0) <= k);
									if (!(LOC29)) goto LA30;
									LOC29 = (IL64(0) <= m);
									LA30: ;
									if (!LOC29) goto LA31;
									overlap_449883((*c).guards, x.Field1, x.Field2, y.Field1, y.Field2);
									LOC33 = 0;
									LOC33 = stride_449920((&(*c)), x.Field1);
									LOC34 = 0;
									LOC34 = stride_449920((&(*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: ;
									{
										TY192829 LOC42;
										NimStringDesc* LOC43;
										memset((void*)LOC42, 0, sizeof(LOC42));
										LOC42[0] = rendertree_245059(x.Field1, 0);
										LOC42[1] = rendertree_245059(x.Field2, 0);
										LOC42[2] = rendertree_245059(y.Field1, 0);
										LOC42[3] = rendertree_245059(y.Field2, 0);
										LOC43 = 0;
										LOC43 = nsuFormatOpenArray(((NimStringDesc*) &TMP4280), LOC42, 4);
										localerror_194139((*x.Field0).info, LOC43);
									}
									LA35: ;
								}
								goto LA22;
								LA31: ;
								{
									TY192829 LOC45;
									NimStringDesc* LOC46;
									memset((void*)LOC45, 0, sizeof(LOC45));
									LOC45[0] = rendertree_245059(x.Field1, 0);
									LOC45[1] = rendertree_245059(x.Field2, 0);
									LOC45[2] = rendertree_245059(y.Field1, 0);
									LOC45[3] = rendertree_245059(y.Field2, 0);
									LOC46 = 0;
									LOC46 = nsuFormatOpenArray(((NimStringDesc*) &TMP4280), LOC45, 4);
									localerror_194139((*x.Field0).info, LOC46);
								}
								LA22: ;
							}
							LA20: ;
							res_450272 += ((NI) 1);
						} LA15: ;
					}
				}
				res_450279 += ((NI) 1);
			} LA12: ;
		}
	}
}

N_NIMCALL(void, checkargs_451239)(Analysisctx449026* a, Tnode223809* n) {
}

N_NIMCALL(void, generatealiaschecks_451250)(Analysisctx449026* a, Tnode223809* result) {
}

N_NIMCALL(Tnode223809*, transformslices_450986)(Tnode223809* n) {
	Tnode223809* result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		Tnode223809* LOC5;
		Tsym223841* op;
		Tnode223809* 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_224244(n, ((NI) 0));
		LOC3 = ((*LOC5).kind == ((NU8) 3));
		LA4: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = HEX5BHEX5D_224244(n, ((NI) 0));
		op = (*LOC8).kindU.S4.sym;
		{
			NIM_BOOL LOC11;
			Tnode223809* LOC15;
			Tnode223809* LOC16;
			Tnode223809* slice;
			Tnode223809* LOC17;
			Tnode223809* LOC18;
			Tnode223809* LOC19;
			LOC11 = 0;
			LOC11 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4262));
			if (!(LOC11)) goto LA12;
			LOC11 = fromsystem_450393(op);
			LA12: ;
			if (!LOC11) goto LA13;
			result = copynode_227660(n);
			LOC15 = 0;
			LOC15 = newsymnode_225325(opslice_449055);
			add_224165(result, LOC15);
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_224244(n, ((NI) 1));
			add_224165(result, LOC16);
			LOC17 = 0;
			LOC17 = HEX5BHEX5D_224244(n, ((NI) 2));
			slice = skipstmtlist_228986(LOC17);
			LOC18 = 0;
			LOC18 = HEX5BHEX5D_224244(slice, ((NI) 1));
			add_224165(result, LOC18);
			LOC19 = 0;
			LOC19 = HEX5BHEX5D_224244(slice, ((NI) 2));
			add_224165(result, LOC19);
			goto BeforeRet;
		}
		LA13: ;
	}
	LA6: ;
	{
		NI LOC22;
		LOC22 = 0;
		LOC22 = safelen_224126(n);
		if (!(((NI) 0) < LOC22)) goto LA23;
		result = shallowcopy_227817(n);
		{
			NI i_451040;
			NI HEX3Atmp_451044;
			NI LOC26;
			NI res_451047;
			i_451040 = 0;
			HEX3Atmp_451044 = 0;
			LOC26 = 0;
			LOC26 = len_224098(n);
			HEX3Atmp_451044 = (LOC26 - 1);
			res_451047 = ((NI) 0);
			{
				while (1) {
					if (!(res_451047 <= HEX3Atmp_451044)) goto LA28;
					i_451040 = res_451047;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_451040]), transformslices_450986((*n).kindU.S6.sons->data[i_451040]));
					res_451047 += ((NI) 1);
				} LA28: ;
			}
		}
	}
	goto LA20;
	LA23: ;
	{
		result = n;
	}
	LA20: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode223809*, transformspawnsons_451074)(Tsym223841* owner, Tnode223809* n, Tnode223809* barrier) {
	Tnode223809* result;
	result = 0;
	result = shallowcopy_227817(n);
	{
		NI i_451099;
		NI HEX3Atmp_451103;
		NI LOC2;
		NI res_451106;
		i_451099 = 0;
		HEX3Atmp_451103 = 0;
		LOC2 = 0;
		LOC2 = len_224098(n);
		HEX3Atmp_451103 = (LOC2 - 1);
		res_451106 = ((NI) 0);
		{
			while (1) {
				if (!(res_451106 <= HEX3Atmp_451103)) goto LA4;
				i_451099 = res_451106;
				asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_451099]), transformspawn_451066(owner, (*n).kindU.S6.sons->data[i_451099], barrier));
				res_451106 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(Tnode223809*, transformspawn_451066)(Tsym223841* owner, Tnode223809* n, Tnode223809* barrier) {
	Tnode223809* result;
{	result = 0;
	switch ((*n).kind) {
	case ((NU8) 99):
	case ((NU8) 100):
	{
		result = NIM_NIL;
		{
			Tnode223809* it_451131;
			it_451131 = 0;
			{
				NI i_451214;
				NI HEX3Atmp_451216;
				NI LOC4;
				NI res_451218;
				i_451214 = 0;
				HEX3Atmp_451216 = 0;
				LOC4 = 0;
				LOC4 = len_224098(n);
				HEX3Atmp_451216 = (LOC4 - 1);
				res_451218 = ((NI) 0);
				{
					while (1) {
						Tnode223809* b;
						if (!(res_451218 <= HEX3Atmp_451216)) goto LA6;
						i_451214 = res_451218;
						it_451131 = (*n).kindU.S6.sons->data[i_451214];
						b = lastson_226406(it_451131);
						{
							NU8 LOC9;
							Tnode223809* m;
							Ttype223847* t;
							Tnode223809* LOC21;
							Tnode223809* LOC22;
							LOC9 = 0;
							LOC9 = getmagic_252417(b);
							if (!(LOC9 == ((NU8) 201))) goto LA10;
							{
								NI LOC14;
								LOC14 = 0;
								LOC14 = len_224098(it_451131);
								if (!!((LOC14 == ((NI) 3)))) goto LA15;
								localerror_194139((*it_451131).info, ((NimStringDesc*) &TMP4284));
							}
							LA15: ;
							m = transformslices_450986(b);
							{
								if (!result == 0) goto LA19;
								result = newnodei_225351(((NU8) 115), (*n).info);
								add_224165(result, n);
							}
							LA19: ;
							LOC21 = 0;
							LOC21 = HEX5BHEX5D_224244(b, ((NI) 1));
							LOC22 = 0;
							LOC22 = HEX5BHEX5D_224244(LOC21, ((NI) 0));
							t = (*(*LOC22).typ).sons->data[((NI) 0)];
							{
								NU8 LOC25;
								Tnode223809* LOC28;
								Tnode223809* LOC29;
								NI LOC30;
								LOC25 = 0;
								LOC25 = spawnresult_402208(t, NIM_TRUE);
								if (!(LOC25 == ((NU8) 2))) goto LA26;
								LOC28 = 0;
								LOC28 = HEX5BHEX5D_224244(it_451131, ((NI) 0));
								LOC29 = 0;
								LOC29 = wrapprocforspawn_402850(owner, m, (*b).typ, barrier, LOC28);
								add_224165(result, LOC29);
								LOC30 = 0;
								LOC30 = len_224098(it_451131);
								asgnRefNoCycle((void**) (&(*it_451131).kindU.S6.sons->data[(NI)(LOC30 - ((NI) 1))]), emptynode_224807);
							}
							goto LA23;
							LA26: ;
							{
								NI LOC32;
								LOC32 = 0;
								LOC32 = len_224098(it_451131);
								asgnRefNoCycle((void**) (&(*it_451131).kindU.S6.sons->data[(NI)(LOC32 - ((NI) 1))]), wrapprocforspawn_402850(owner, m, (*b).typ, barrier, NIM_NIL));
							}
							LA23: ;
						}
						LA10: ;
						res_451218 += ((NI) 1);
					} LA6: ;
				}
			}
		}
		{
			if (!result == 0) goto LA35;
			result = n;
		}
		LA35: ;
	}
	break;
	case ((NU8) 73):
	case ((NU8) 74):
	{
		Tnode223809* b;
		b = HEX5BHEX5D_224244(n, ((NI) 1));
		{
			NIM_BOOL LOC40;
			NU8 LOC41;
			Ttype223847* t;
			Tnode223809* LOC43;
			Tnode223809* LOC44;
			NU8 LOC45;
			Tnode223809* m;
			Tnode223809* LOC48;
			LOC40 = 0;
			LOC41 = 0;
			LOC41 = getmagic_252417(b);
			LOC40 = (LOC41 == ((NU8) 201));
			if (!(LOC40)) goto LA42;
			LOC43 = 0;
			LOC43 = HEX5BHEX5D_224244(b, ((NI) 1));
			LOC44 = 0;
			LOC44 = HEX5BHEX5D_224244(LOC43, ((NI) 0));
			t = (*(*LOC44).typ).sons->data[((NI) 0)];
			LOC45 = 0;
			LOC45 = spawnresult_402208(t, NIM_TRUE);
			LOC40 = (LOC45 == ((NU8) 2));
			LA42: ;
			if (!LOC40) goto LA46;
			m = transformslices_450986(b);
			LOC48 = 0;
			LOC48 = HEX5BHEX5D_224244(n, ((NI) 0));
			result = wrapprocforspawn_402850(owner, m, (*b).typ, barrier, LOC48);
			goto BeforeRet;
		}
		LA46: ;
		result = transformspawnsons_451074(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_252417(n);
			if (!(LOC52 == ((NU8) 201))) goto LA53;
			result = transformslices_450986(n);
			result = wrapprocforspawn_402850(owner, result, (*n).typ, barrier, NIM_NIL);
			goto BeforeRet;
		}
		LA53: ;
		result = transformspawnsons_451074(owner, n, barrier);
	}
	break;
	default:
	{
		{
			NI LOC58;
			LOC58 = 0;
			LOC58 = safelen_224126(n);
			if (!(((NI) 0) < LOC58)) goto LA59;
			result = transformspawnsons_451074(owner, n, barrier);
		}
		goto LA56;
		LA59: ;
		{
			result = n;
		}
		LA56: ;
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode223809*, liftparallel_451260)(Tsym223841* owner, Tnode223809* n) {
	Tnode223809* result;
	Analysisctx449026 a;
	Tnode223809* body;
	Tnode223809* varsection;
	Tsym223841* temp;
	Tident196021* LOC5;
	Tsym223841* LOC6;
	Tnode223809* tempnode;
	Tnode223809* barrier;
	Tnode223809* LOC7;
	Tnode223809* LOC8;
	Tnode223809* LOC9;
	result = 0;
	memset((void*)(&a), 0, sizeof(a));
	chckNil((void*)(&a));
	memset((void*)(&a), 0, sizeof(a));
	initanalysisctx_449059((&a));
	body = lastson_226406(n);
	analyse_450316((&a), body);
	{
		if (!(a.spawns == ((NI) 0))) goto LA3;
		localerror_194139((*n).info, ((NimStringDesc*) &TMP4277));
	}
	LA3: ;
	checkslicesaredisjoint_450059((&a));
	checkargs_451239((&a), body);
	varsection = newnodei_225351(((NU8) 99), (*n).info);
	LOC5 = 0;
	LOC5 = getident_196463(((NimStringDesc*) &TMP4281));
	temp = newsym_224655(((NU8) 5), LOC5, owner, (*n).info);
	LOC6 = 0;
	LOC6 = getcompilerproc_272811(((NimStringDesc*) &TMP4282));
	asgnRefNoCycle((void**) (&(*temp).typ), (*LOC6).typ);
	(*temp).flags |= ((NU32)1)<<((((NU8) 2))%(sizeof(NU32)*8));
	tempnode = newsymnode_225325(temp);
	addvar_400047(varsection, tempnode);
	barrier = genaddrof_402064(tempnode);
	result = newnodei_225351(((NU8) 115), (*n).info);
	generatealiaschecks_451250((&a), result);
	add_224165(result, varsection);
	LOC7 = 0;
	LOC7 = callcodegenproc_402086(((NimStringDesc*) &TMP4283), barrier, NIM_NIL, NIM_NIL, NIM_NIL);
	add_224165(result, LOC7);
	LOC8 = 0;
	LOC8 = transformspawn_451066(owner, body, barrier);
	add_224165(result, LOC8);
	LOC9 = 0;
	LOC9 = callcodegenproc_402086(((NimStringDesc*) &TMP4285), barrier, NIM_NIL, NIM_NIL, NIM_NIL);
	add_224165(result, LOC9);
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_semparallelInit000)(void) {
	asgnRefNoCycle((void**) (&opslice_449055), createmagic_229048(((NimStringDesc*) &TMP1031), ((NU8) 138)));
}

NIM_EXTERNC N_NOINLINE(void, compiler_semparallelDatInit000)(void) {
static TNimNode* TMP4254[7];
static TNimNode* TMP4255[2];
NI TMP4257;
static char* NIM_CONST TMP4256[2] = {
"ascending", 
"descending"};
static TNimNode* TMP4259[5];
static TNimNode TMP1029[17];
NTI449024.size = sizeof(Monotonicvar449024);
NTI449024.kind = 18;
NTI449024.base = 0;
NTI449024.flags = 2;
TMP4254[0] = &TMP1029[1];
TMP1029[1].kind = 1;
TMP1029[1].offset = offsetof(Monotonicvar449024, v);
TMP1029[1].typ = (&NTI223807);
TMP1029[1].name = "v";
TMP4254[1] = &TMP1029[2];
TMP1029[2].kind = 1;
TMP1029[2].offset = offsetof(Monotonicvar449024, alias);
TMP1029[2].typ = (&NTI223807);
TMP1029[2].name = "alias";
TMP4254[2] = &TMP1029[3];
TMP1029[3].kind = 1;
TMP1029[3].offset = offsetof(Monotonicvar449024, lower);
TMP1029[3].typ = (&NTI223801);
TMP1029[3].name = "lower";
TMP4254[3] = &TMP1029[4];
TMP1029[4].kind = 1;
TMP1029[4].offset = offsetof(Monotonicvar449024, upper);
TMP1029[4].typ = (&NTI223801);
TMP1029[4].name = "upper";
TMP4254[4] = &TMP1029[5];
TMP1029[5].kind = 1;
TMP1029[5].offset = offsetof(Monotonicvar449024, stride);
TMP1029[5].typ = (&NTI223801);
TMP1029[5].name = "stride";
TMP4254[5] = &TMP1029[6];
NTI449022.size = sizeof(NU8);
NTI449022.kind = 14;
NTI449022.base = 0;
NTI449022.flags = 3;
for (TMP4257 = 0; TMP4257 < 2; TMP4257++) {
TMP1029[TMP4257+7].kind = 1;
TMP1029[TMP4257+7].offset = TMP4257;
TMP1029[TMP4257+7].name = TMP4256[TMP4257];
TMP4255[TMP4257] = &TMP1029[TMP4257+7];
}
TMP1029[9].len = 2; TMP1029[9].kind = 2; TMP1029[9].sons = &TMP4255[0];
NTI449022.node = &TMP1029[9];
TMP1029[6].kind = 1;
TMP1029[6].offset = offsetof(Monotonicvar449024, dir);
TMP1029[6].typ = (&NTI449022);
TMP1029[6].name = "dir";
TMP4254[6] = &TMP1029[10];
TMP1029[10].kind = 1;
TMP1029[10].offset = offsetof(Monotonicvar449024, blacklisted);
TMP1029[10].typ = (&NTI138);
TMP1029[10].name = "blacklisted";
TMP1029[0].len = 7; TMP1029[0].kind = 2; TMP1029[0].sons = &TMP4254[0];
NTI449024.node = &TMP1029[0];
NTI449036.size = sizeof(TY449036*);
NTI449036.kind = 24;
NTI449036.base = (&NTI449024);
NTI449036.flags = 2;
NTI449036.marker = TMP4258;
NTI449039.size = sizeof(TY449039);
NTI449039.kind = 18;
NTI449039.base = 0;
NTI449039.flags = 2;
TMP4259[0] = &TMP1029[12];
TMP1029[12].kind = 1;
TMP1029[12].offset = offsetof(TY449039, Field0);
TMP1029[12].typ = (&NTI223801);
TMP1029[12].name = "Field0";
TMP4259[1] = &TMP1029[13];
TMP1029[13].kind = 1;
TMP1029[13].offset = offsetof(TY449039, Field1);
TMP1029[13].typ = (&NTI223801);
TMP1029[13].name = "Field1";
TMP4259[2] = &TMP1029[14];
TMP1029[14].kind = 1;
TMP1029[14].offset = offsetof(TY449039, Field2);
TMP1029[14].typ = (&NTI223801);
TMP1029[14].name = "Field2";
TMP4259[3] = &TMP1029[15];
TMP1029[15].kind = 1;
TMP1029[15].offset = offsetof(TY449039, Field3);
TMP1029[15].typ = (&NTI108);
TMP1029[15].name = "Field3";
TMP4259[4] = &TMP1029[16];
TMP1029[16].kind = 1;
TMP1029[16].offset = offsetof(TY449039, Field4);
TMP1029[16].typ = (&NTI138);
TMP1029[16].name = "Field4";
TMP1029[11].len = 5; TMP1029[11].kind = 2; TMP1029[11].sons = &TMP4259[0];
NTI449039.node = &TMP1029[11];
NTI449038.size = sizeof(TY449038*);
NTI449038.kind = 24;
NTI449038.base = (&NTI449039);
NTI449038.flags = 2;
NTI449038.marker = TMP4260;
}

