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

#include "nimbase.h"
#include <string.h>
typedef struct Tsym225841 Tsym225841;
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 Memregion30890 Memregion30890;
typedef struct Smallchunk30842 Smallchunk30842;
typedef struct Llchunk30884 Llchunk30884;
typedef struct Bigchunk30844 Bigchunk30844;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30888 Avlnode30888;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Tnode225809 Tnode225809;
typedef struct Analysisctx451026 Analysisctx451026;
typedef struct TY451036 TY451036;
typedef struct TY451038 TY451038;
typedef struct Tnodeseq225803 Tnodeseq225803;
typedef struct Tsymseq225811 Tsymseq225811;
typedef struct Monotonicvar451024 Monotonicvar451024;
typedef struct TNimNode TNimNode;
typedef struct TY451039 TY451039;
typedef struct Ttype225847 Ttype225847;
typedef struct Tlineinfo190352 Tlineinfo190352;
typedef struct Tident198021 Tident198021;
typedef struct Tidobj198015 Tidobj198015;
typedef struct TNimObject TNimObject;
typedef struct Ttypeseq225843 Ttypeseq225843;
typedef struct Tscope225835 Tscope225835;
typedef struct TY225944 TY225944;
typedef struct Tstrtable225813 Tstrtable225813;
typedef struct Tloc225823 Tloc225823;
typedef struct Ropeobj176009 Ropeobj176009;
typedef struct Tlib225827 Tlib225827;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct Tinstantiation225831 Tinstantiation225831;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct TY225932 TY225932;
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 Smallchunk30842* TY30905[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30890  {
NI minlargeobj;
NI maxlargeobj;
TY30905 freesmallchunks;
Llchunk30884* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30844* freechunkslist;
Intset30817 chunkstarts;
Avlnode30888* root;
Avlnode30888* deleted;
Avlnode30888* last;
Avlnode30888* 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;
Memregion30890 region;
Gcstat51014 stat;
};
struct  Analysisctx451026  {
TY451036* locals;
TY451038* slices;
Tnodeseq225803* guards;
Tsymseq225811* args;
NI spawns;
NI currentspawnid;
NI inloop;
};
struct  Monotonicvar451024  {
Tsym225841* v;
Tsym225841* alias;
Tnode225809* lower;
Tnode225809* upper;
Tnode225809* 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 TY451039 {
Tnode225809* Field0;
Tnode225809* Field1;
Tnode225809* Field2;
NI Field3;
NIM_BOOL Field4;
};
struct  Tlineinfo190352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode225809  {
Ttype225847* typ;
Tlineinfo190352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym225841* sym;
} S4;
struct {Tident198021* ident;
} S5;
struct {Tnodeseq225803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj198015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable225813  {
NI counter;
Tsymseq225811* data;
};
struct  Tloc225823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype225847* t;
Ropeobj176009* r;
Ropeobj176009* heaproot;
};
struct  Tsym225841  {
  Tidobj198015 Sup;
NU8 kind;
union{
struct {Ttypeseq225843* typeinstcache;
Tscope225835* typscope;
} S1;
struct {TY225944* procinstcache;
Tsym225841* gcunsafetyreason;
} S2;
struct {TY225944* usedgenerics;
Tstrtable225813 tab;
} S3;
struct {Tsym225841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype225847* typ;
Tident198021* name;
Tlineinfo190352 info;
Tsym225841* owner;
NU32 flags;
Tnode225809* ast;
NU32 options;
NI position;
NI offset;
Tloc225823 loc;
Tlib225827* annex;
Tnode225809* constraint;
};
struct  Tident198021  {
  Tidobj198015 Sup;
NimStringDesc* s;
Tident198021* next;
NI h;
};
typedef NimStringDesc* TY451890[6];
typedef NimStringDesc* TY194829[4];
struct  Ttype225847  {
  Tidobj198015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq225843* sons;
Tnode225809* n;
Tsym225841* owner;
Tsym225841* sym;
Tsym225841* destructor;
Tsym225841* deepcopy;
Tsym225841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc225823 loc;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30821[16];
struct  Pagedesc48955  {
Pagedesc48955* next;
NI key;
TY30821 bits;
};
struct  Basechunk30840  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30842  {
  Basechunk30840 Sup;
Smallchunk30842* next;
Smallchunk30842* prev;
Freecell30832* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30884  {
NI size;
NI acc;
Llchunk30884* next;
};
struct  Bigchunk30844  {
  Basechunk30840 Sup;
Bigchunk30844* next;
Bigchunk30844* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30821 bits;
};
typedef Avlnode30888* TY30895[2];
struct  Avlnode30888  {
TY30895 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope225835  {
NI depthlevel;
Tstrtable225813 symbols;
Tnodeseq225803* usingsyms;
Tscope225835* parent;
};
struct  Ropeobj176009  {
  TNimObject Sup;
Ropeobj176009* left;
Ropeobj176009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Tlib225827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj176009* name;
Tnode225809* path;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct  Tinstantiation225831  {
Tsym225841* sym;
Ttypeseq225843* concretetypes;
TY225932* usedby;
NI compilesid;
};
struct TY451036 {
  TGenericSeq Sup;
  Monotonicvar451024 data[SEQ_DECL_SIZE];
};
struct TY451038 {
  TGenericSeq Sup;
  TY451039 data[SEQ_DECL_SIZE];
};
struct Tsymseq225811 {
  TGenericSeq Sup;
  Tsym225841* data[SEQ_DECL_SIZE];
};
struct Tnodeseq225803 {
  TGenericSeq Sup;
  Tnode225809* data[SEQ_DECL_SIZE];
};
struct Ttypeseq225843 {
  TGenericSeq Sup;
  Ttype225847* data[SEQ_DECL_SIZE];
};
struct TY225944 {
  TGenericSeq Sup;
  Tinstantiation225831* data[SEQ_DECL_SIZE];
};
struct TY225932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Tsym225841*, createmagic_231047)(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_451059)(Analysisctx451026* Result);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP4260)(void* p, NI op);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, TMP4262)(void* p, NI op);
N_NOINLINE(void, chckNil)(void* p);
N_NIMCALL(Tnode225809*, lastson_228406)(Tnode225809* n);
N_NIMCALL(void, analyse_452316)(Analysisctx451026* c, Tnode225809* n);
N_NIMCALL(Tnode225809*, skipconv_264935)(Tnode225809* n);
static N_INLINE(Tnode225809*, HEX5BHEX5D_226244)(Tnode225809* n, NI i);
N_NIMCALL(NIM_BOOL, issingleassignable_451356)(Tnode225809* n);
N_NIMCALL(NIM_BOOL, islocal_451416)(Tnode225809* n);
N_NIMCALL(Monotonicvar451024*, getslot_451209)(Analysisctx451026* c, Tsym225841* v);
N_NIMCALL(NI, lookupslot_451132)(Analysisctx451026* c, Tsym225841* s);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, invalidatefacts_358659)(Tnodeseq225803** m, Tnode225809* n);
N_NIMCALL(NU8, getmagic_254417)(Tnode225809* op);
N_NIMCALL(void, gatherargs_451244)(Analysisctx451026* c, Tnode225809* n);
static N_INLINE(NI, safelen_226126)(Tnode225809* n);
N_NIMCALL(Tsym225841*, getroot_404646)(Tnode225809* n);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, analysesons_452324)(Analysisctx451026* c, Tnode225809* n);
N_NIMCALL(void, addasgnfact_361086)(Tnodeseq225803** m, Tnode225809* key, Tnode225809* value);
N_NIMCALL(void, analysecall_452422)(Analysisctx451026* c, Tnode225809* n, Tsym225841* op);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NIM_BOOL, fromsystem_452393)(Tsym225841* op);
N_NIMCALL(Tsym225841*, getmodule_233243)(Tsym225841* s);
N_NIMCALL(Tnode225809*, min_452371)(Tnode225809* a, Tnode225809* b);
N_NIMCALL(Tnode225809*, skipstmtlist_230985)(Tnode225809* n);
N_NIMCALL(void, addslice_451835)(Analysisctx451026* c, Tnode225809* n, Tnode225809* x, Tnode225809* le_451841, Tnode225809* ri_451842);
N_NIMCALL(void, checklocal_451476)(Analysisctx451026* c, Tnode225809* n);
N_NIMCALL(void, localerror_196139)(Tlineinfo190352 info, NimStringDesc* arg);
N_NIMCALL(Tnode225809*, canon_357843)(Tnode225809* n);
N_NIMCALL(void, addlowerboundasfacts_451573)(Analysisctx451026* c);
N_NIMCALL(void, addfactle_360849)(Tnodeseq225803** m, Tnode225809* a, Tnode225809* b);
N_NIMCALL(Tnode225809*, newsymnode_227325)(Tsym225841* sym);
N_NIMCALL(void, checkbounds_451560)(Analysisctx451026* c, Tnode225809* arr, Tnode225809* idx);
N_NIMCALL(void, checkle_451545)(Analysisctx451026* c, Tnode225809* a, Tnode225809* b);
N_NIMCALL(NU8, provele_360823)(Tnodeseq225803* m, Tnode225809* a, Tnode225809* b);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, rendertree_247059)(Tnode225809* n, NU8 renderflags);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(Tnode225809*, lowbound_357702)(Tnode225809* x);
N_NIMCALL(Tnode225809*, highbound_357712)(Tnode225809* x);
N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
static N_INLINE(NI, len_226098)(Tnode225809* n);
N_NIMCALL(void, internalerror_196172)(Tlineinfo190352 info, NimStringDesc* errmsg);
N_NIMCALL(void, analysecase_452495)(Analysisctx451026* c, Tnode225809* n);
N_NIMCALL(void, addcasebranchfacts_361137)(Tnodeseq225803** m, Tnode225809* n, NI i);
N_NIMCALL(void, analyseif_452614)(Analysisctx451026* c, Tnode225809* n);
N_NIMCALL(void, addfact_358392)(Tnodeseq225803** m, Tnode225809* nn);
N_NIMCALL(void, addfactneg_358426)(Tnodeseq225803** m, Tnode225809* n_358430);
N_NIMCALL(NIM_BOOL, istrue_369402)(Tnode225809* n);
N_NIMCALL(NIM_BOOL, hassubnodewith_230439)(Tnode225809* n, NU8 kind);
N_NIMCALL(void, checkslicesaredisjoint_452059)(Analysisctx451026* c);
N_NIMCALL(void, overlap_451883)(Tnodeseq225803* m, Tnode225809* x, Tnode225809* y, Tnode225809* c, Tnode225809* d);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(Tnode225809*, substride_451993)(Analysisctx451026* c, Tnode225809* n);
N_NIMCALL(Tnode225809*, HEX2BHEX40_358160)(Tnode225809* a, NI64 b);
N_NIMCALL(Tnode225809*, shallowcopy_229817)(Tnode225809* src);
N_NIMCALL(NIM_BOOL, sametree_358462)(Tnode225809* a, Tnode225809* b);
N_NIMCALL(NI64, simpleslice_359464)(Tnode225809* a, Tnode225809* b);
N_NIMCALL(NI64, stride_451920)(Analysisctx451026* c, Tnode225809* n);
N_NIMCALL(void, checkargs_453239)(Analysisctx451026* a, Tnode225809* n);
N_NIMCALL(Tnode225809*, newnodei_227351)(NU8 kind, Tlineinfo190352 info);
N_NIMCALL(Tsym225841*, newsym_226656)(NU8 symkind, Tident198021* name, Tsym225841* owner, Tlineinfo190352 info);
N_NIMCALL(Tident198021*, getident_198463)(NimStringDesc* identifier);
N_NIMCALL(Tsym225841*, getcompilerproc_274809)(NimStringDesc* name);
N_NIMCALL(void, addvar_402047)(Tnode225809* father, Tnode225809* v);
N_NIMCALL(Tnode225809*, genaddrof_404064)(Tnode225809* n);
N_NIMCALL(void, generatealiaschecks_453250)(Analysisctx451026* a, Tnode225809* result);
N_NIMCALL(void, add_226165)(Tnode225809* father, Tnode225809* son);
N_NIMCALL(Tnode225809*, callcodegenproc_404086)(NimStringDesc* name, Tnode225809* arg1, Tnode225809* arg2, Tnode225809* arg3, Tnode225809* optionalargs);
N_NIMCALL(Tnode225809*, transformspawn_453066)(Tsym225841* owner, Tnode225809* n, Tnode225809* barrier);
N_NIMCALL(Tnode225809*, transformslices_452986)(Tnode225809* n);
N_NIMCALL(Tnode225809*, copynode_229660)(Tnode225809* src);
N_NIMCALL(NU8, spawnresult_404208)(Ttype225847* t, NIM_BOOL inparallel);
N_NIMCALL(Tnode225809*, wrapprocforspawn_404850)(Tsym225841* owner, Tnode225809* spawnexpr, Ttype225847* rettype, Tnode225809* barrier, Tnode225809* dest);
N_NIMCALL(Tnode225809*, transformspawnsons_453074)(Tsym225841* owner, Tnode225809* n, Tnode225809* barrier);
STRING_LITERAL(TMP1033, "slice", 5);
STRING_LITERAL(TMP4263, "+=", 2);
STRING_LITERAL(TMP4264, "[]", 2);
STRING_LITERAL(TMP4265, "invalid usage of counter after increment", 40);
STRING_LITERAL(TMP4271, "cannot prove: ", 14);
STRING_LITERAL(TMP4272, " <= ", 4);
STRING_LITERAL(TMP4273, " (bounds check)", 15);
STRING_LITERAL(TMP4274, "can prove: ", 11);
STRING_LITERAL(TMP4275, " > ", 3);
STRING_LITERAL(TMP4276, "[]=", 3);
STRING_LITERAL(TMP4277, "invalid control flow for \'parallel\'", 35);
STRING_LITERAL(TMP4278, "slot already has a lower bound", 30);
STRING_LITERAL(TMP4279, "\'parallel\' section without \'spawn\'", 34);
STRING_LITERAL(TMP4280, "cannot prove: $# > $#; required for ($#)..($#) disjoint from ($"
"#)..($#)", 71);
STRING_LITERAL(TMP4281, "($#)..($#) not disjoint from ($#)..($#)", 39);
STRING_LITERAL(TMP4282, "cannot prove ($#)..($#) disjoint from ($#)..($#)", 48);
STRING_LITERAL(TMP4283, "barrier", 7);
STRING_LITERAL(TMP4284, "Barrier", 7);
STRING_LITERAL(TMP4285, "openBarrier", 11);
STRING_LITERAL(TMP4286, "invalid context for \'spawn\'", 27);
STRING_LITERAL(TMP4287, "closeBarrier", 12);
Tsym225841* opslice_451055;
extern Gcheap51018 gch_51059;
TNimType NTI451024; /* MonotonicVar */
extern TNimType NTI225807; /* PSym */
extern TNimType NTI225801; /* PNode */
TNimType NTI451022; /* TDirection */
extern TNimType NTI138; /* bool */
TNimType NTI451036; /* seq[MonotonicVar] */
TNimType NTI451039; /* tuple[x: PNode, a: PNode, b: PNode, spawnId: int, inLoop: bool] */
extern TNimType NTI108; /* int */
TNimType NTI451038; /* seq[tuple[x: PNode, a: PNode, b: PNode, spawnId: int, inLoop: bool]] */
extern TNimType NTI225811; /* TSymSeq */
extern TNimType NTI225803; /* TNodeSeq */
extern Tnode225809* emptynode_226807;

static N_INLINE(Cell48947*, usrtocell_52646)(void* usr) {
	Cell48947* result;
	result = 0;
	result = ((Cell48947*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((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 (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA11;
			rtladdzct_54204(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}
N_NIMCALL(void, TMP4260)(void* p, NI op) {
	TY451036* a;
	NI LOC1;
	a = (TY451036*)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, TMP4262)(void* p, NI op) {
	TY451038* a;
	NI LOC1;
	a = (TY451038*)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_451059)(Analysisctx451026* Result) {
	unsureAsgnRef((void**) (&(*Result).locals), (TY451036*) newSeq((&NTI451036), 0));
	unsureAsgnRef((void**) (&(*Result).slices), (TY451038*) newSeq((&NTI451038), 0));
	unsureAsgnRef((void**) (&(*Result).args), (Tsymseq225811*) newSeq((&NTI225811), 0));
	unsureAsgnRef((void**) (&(*Result).guards), (Tnodeseq225803*) newSeq((&NTI225803), 0));
}

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

N_NIMCALL(NIM_BOOL, issingleassignable_451356)(Tnode225809* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	Tsym225841* 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_451416)(Tnode225809* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	Tsym225841* 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_451132)(Analysisctx451026* c, Tsym225841* s) {
	NI result;
{	result = 0;
	{
		NI i_451163;
		NI HEX3Atmp_451187;
		NI res_451190;
		i_451163 = 0;
		HEX3Atmp_451187 = 0;
		HEX3Atmp_451187 = (((*c).locals ? (*c).locals->Sup.len : 0) - 1);
		res_451190 = ((NI) 0);
		{
			while (1) {
				if (!(res_451190 <= HEX3Atmp_451187)) goto LA3;
				i_451163 = res_451190;
				{
					NIM_BOOL LOC6;
					LOC6 = 0;
					LOC6 = ((*c).locals->data[i_451163].v == s);
					if (LOC6) goto LA7;
					LOC6 = ((*c).locals->data[i_451163].alias == s);
					LA7: ;
					if (!LOC6) goto LA8;
					result = i_451163;
					goto BeforeRet;
				}
				LA8: ;
				res_451190 += ((NI) 1);
			} LA3: ;
		}
	}
	result = ((NI) -1);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Monotonicvar451024*, getslot_451209)(Analysisctx451026* c, Tsym225841* v) {
	Monotonicvar451024* result;
	NI s;
	NI L;
{	result = 0;
	s = lookupslot_451132((&(*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 = (TY451036*) setLengthSeq(&((*c).locals)->Sup, sizeof(Monotonicvar451024), ((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_226126)(Tnode225809* 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_451244)(Analysisctx451026* c, Tnode225809* n) {
	{
		NI i_451268;
		NI HEX3Atmp_451322;
		NI LOC2;
		NI res_451325;
		i_451268 = 0;
		HEX3Atmp_451322 = 0;
		LOC2 = 0;
		LOC2 = safelen_226126(n);
		HEX3Atmp_451322 = (LOC2 - 1);
		res_451325 = ((NI) 0);
		{
			while (1) {
				Tsym225841* root;
				Tnode225809* LOC5;
				Tnode225809* LOC18;
				if (!(res_451325 <= HEX3Atmp_451322)) goto LA4;
				i_451268 = res_451325;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_226244(n, i_451268);
				root = getroot_404646(LOC5);
				{
					if (!!((root == NIM_NIL))) goto LA8;
					{
						{
							Tsym225841* r_451292;
							Tsymseq225811* HEX3Atmp_451316;
							NI i_451319;
							NI L_451321;
							r_451292 = 0;
							HEX3Atmp_451316 = 0;
							HEX3Atmp_451316 = (*c).args;
							i_451319 = ((NI) 0);
							L_451321 = (HEX3Atmp_451316 ? HEX3Atmp_451316->Sup.len : 0);
							{
								while (1) {
									if (!(i_451319 < L_451321)) goto LA13;
									r_451292 = HEX3Atmp_451316->data[i_451319];
									{
										if (!(r_451292 == root)) goto LA16;
										goto LA10;
									}
									LA16: ;
									i_451319 += ((NI) 1);
								} LA13: ;
							}
						}
						(*c).args = (Tsymseq225811*) incrSeqV2(&((*c).args)->Sup, sizeof(Tsym225841*));
						asgnRefNoCycle((void**) (&(*c).args->data[(*c).args->Sup.len]), root);
						++(*c).args->Sup.len;
					} LA10: ;
				}
				LA8: ;
				LOC18 = 0;
				LOC18 = HEX5BHEX5D_226244(n, i_451268);
				gatherargs_451244(c, LOC18);
				res_451325 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(void, analysesons_452324)(Analysisctx451026* c, Tnode225809* n) {
	{
		NI i_452347;
		NI HEX3Atmp_452349;
		NI LOC2;
		NI res_452352;
		i_452347 = 0;
		HEX3Atmp_452349 = 0;
		LOC2 = 0;
		LOC2 = safelen_226126(n);
		HEX3Atmp_452349 = (LOC2 - 1);
		res_452352 = ((NI) 0);
		{
			while (1) {
				Tnode225809* LOC5;
				if (!(res_452352 <= HEX3Atmp_452349)) goto LA4;
				i_452347 = res_452352;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_226244(n, i_452347);
				analyse_452316(c, LOC5);
				res_452352 += ((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_452393)(Tsym225841* op) {
	NIM_BOOL result;
	Tsym225841* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getmodule_233243(op);
	result = (((*LOC1).flags &(1<<((((NU8) 13))&31)))!=0);
	return result;
}

N_NIMCALL(Tnode225809*, min_452371)(Tnode225809* a, Tnode225809* b) {
	Tnode225809* 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_451476)(Analysisctx451026* c, Tnode225809* n) {
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_451416(n);
		if (!LOC3) goto LA4;
		s = lookupslot_451132(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_196139((*n).info, ((NimStringDesc*) &TMP4265));
		}
		LA10: ;
	}
	goto LA1;
	LA4: ;
	{
		{
			NI i_451513;
			NI HEX3Atmp_451516;
			NI LOC14;
			NI res_451519;
			i_451513 = 0;
			HEX3Atmp_451516 = 0;
			LOC14 = 0;
			LOC14 = safelen_226126(n);
			HEX3Atmp_451516 = (LOC14 - 1);
			res_451519 = ((NI) 0);
			{
				while (1) {
					if (!(res_451519 <= HEX3Atmp_451516)) goto LA16;
					i_451513 = res_451519;
					checklocal_451476(c, (*n).kindU.S6.sons->data[i_451513]);
					res_451519 += ((NI) 1);
				} LA16: ;
			}
		}
	}
	LA1: ;
}

N_NIMCALL(void, addlowerboundasfacts_451573)(Analysisctx451026* c) {
	{
		Monotonicvar451024 v_451811;
		TY451036* HEX3Atmp_451814;
		NI i_451817;
		NI L_451819;
		memset((void*)(&v_451811), 0, sizeof(v_451811));
		HEX3Atmp_451814 = 0;
		HEX3Atmp_451814 = (*c).locals;
		i_451817 = ((NI) 0);
		L_451819 = (HEX3Atmp_451814 ? HEX3Atmp_451814->Sup.len : 0);
		{
			while (1) {
				if (!(i_451817 < L_451819)) goto LA3;
				memcpy((void*)(&v_451811), (NIM_CONST void*)(&HEX3Atmp_451814->data[i_451817]), sizeof(v_451811));
				{
					Tnode225809* LOC8;
					if (!!(v_451811.blacklisted)) goto LA6;
					LOC8 = 0;
					LOC8 = newsymnode_227325(v_451811.v);
					addfactle_360849((&(*c).guards), v_451811.lower, LOC8);
				}
				LA6: ;
				i_451817 += ((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_451545)(Analysisctx451026* c, Tnode225809* a, Tnode225809* b) {
	NU8 LOC1;
	LOC1 = 0;
	LOC1 = provele_360823((*c).guards, a, b);
	switch (LOC1) {
	case ((NU8) 0):
	{
		NimStringDesc* LOC3;
		NimStringDesc* LOC4;
		NimStringDesc* LOC5;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = rendertree_247059(a, 0);
		LOC5 = 0;
		LOC5 = rendertree_247059(b, 0);
		LOC3 = rawNewString(LOC4->Sup.len + LOC5->Sup.len + 33);
appendString(LOC3, ((NimStringDesc*) &TMP4271));
appendString(LOC3, LOC4);
appendString(LOC3, ((NimStringDesc*) &TMP4272));
appendString(LOC3, LOC5);
appendString(LOC3, ((NimStringDesc*) &TMP4273));
		localerror_196139((*a).info, LOC3);
	}
	break;
	case ((NU8) 2):
	{
	}
	break;
	case ((NU8) 1):
	{
		NimStringDesc* LOC8;
		NimStringDesc* LOC9;
		NimStringDesc* LOC10;
		LOC8 = 0;
		LOC9 = 0;
		LOC9 = rendertree_247059(a, 0);
		LOC10 = 0;
		LOC10 = rendertree_247059(b, 0);
		LOC8 = rawNewString(LOC9->Sup.len + LOC10->Sup.len + 29);
appendString(LOC8, ((NimStringDesc*) &TMP4274));
appendString(LOC8, LOC9);
appendString(LOC8, ((NimStringDesc*) &TMP4275));
appendString(LOC8, LOC10);
appendString(LOC8, ((NimStringDesc*) &TMP4273));
		localerror_196139((*a).info, LOC8);
	}
	break;
	}
}

N_NIMCALL(void, checkbounds_451560)(Analysisctx451026* c, Tnode225809* arr, Tnode225809* idx) {
	Tnode225809* LOC1;
	Tnode225809* LOC2;
	LOC1 = 0;
	LOC1 = lowbound_357702(arr);
	checkle_451545(c, LOC1, idx);
	LOC2 = 0;
	LOC2 = highbound_357712(arr);
	checkle_451545(c, idx, LOC2);
}

N_NIMCALL(void, addslice_451835)(Analysisctx451026* c, Tnode225809* n, Tnode225809* x, Tnode225809* le_451841, Tnode225809* ri_451842) {
	Tnode225809* le;
	Tnode225809* ri;
	NI oldstate;
	TY451039 LOC1;
	checklocal_451476((&(*c)), n);
	le = canon_357843(le_451841);
	ri = canon_357843(ri_451842);
	oldstate = ((*c).guards ? (*c).guards->Sup.len : 0);
	addlowerboundasfacts_451573(c);
	checkbounds_451560((&(*c)), x, le);
	checkbounds_451560((&(*c)), x, ri);
	(*c).guards = (Tnodeseq225803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode225809*), ((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 = (TY451038*) incrSeqV2(&((*c).slices)->Sup, sizeof(TY451039));
	genericAssign((void*)(&(*c).slices->data[(*c).slices->Sup.len]), (void*)(&LOC1), (&NTI451039));
	++(*c).slices->Sup.len;
}

N_NIMCALL(void, analysecall_452422)(Analysisctx451026* c, Tnode225809* n, Tsym225841* op) {
	{
		NI oldspawnid;
		Tnode225809* LOC5;
		if (!((*op).magic == ((NU8) 201))) goto LA3;
		(*c).spawns += ((NI) 1);
		oldspawnid = (*c).currentspawnid;
		(*c).currentspawnid = (*c).spawns;
		LOC5 = 0;
		LOC5 = HEX5BHEX5D_226244(n, ((NI) 1));
		gatherargs_451244(c, LOC5);
		analysesons_452324(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*) &TMP4263));
		if (!(LOC9)) goto LA10;
		LOC9 = fromsystem_452393(op);
		LA10: ;
		LOC7 = LOC9;
		LA8: ;
		if (!LOC7) goto LA11;
		{
			Tnode225809* LOC15;
			NIM_BOOL LOC16;
			Tnode225809* incr;
			Tnode225809* LOC19;
			LOC15 = 0;
			LOC15 = HEX5BHEX5D_226244(n, ((NI) 1));
			LOC16 = 0;
			LOC16 = islocal_451416(LOC15);
			if (!LOC16) goto LA17;
			LOC19 = 0;
			LOC19 = HEX5BHEX5D_226244(n, ((NI) 2));
			incr = skipconv_264935(LOC19);
			{
				NIM_BOOL LOC22;
				Monotonicvar451024* slot;
				Tnode225809* 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_226244(n, ((NI) 1));
				slot = getslot_451209(c, (*LOC26).kindU.S4.sym);
				unsureAsgnRef((void**) (&(*slot).stride), min_452371((*slot).stride, incr));
			}
			LA24: ;
		}
		LA17: ;
		analysesons_452324(c, n);
	}
	goto LA1;
	LA11: ;
	{
		NIM_BOOL LOC28;
		Tnode225809* slice;
		Tnode225809* LOC32;
		Tnode225809* LOC33;
		Tnode225809* LOC34;
		Tnode225809* LOC35;
		LOC28 = 0;
		LOC28 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4264));
		if (!(LOC28)) goto LA29;
		LOC28 = fromsystem_452393(op);
		LA29: ;
		if (!LOC28) goto LA30;
		LOC32 = 0;
		LOC32 = HEX5BHEX5D_226244(n, ((NI) 2));
		slice = skipstmtlist_230985(LOC32);
		LOC33 = 0;
		LOC33 = HEX5BHEX5D_226244(n, ((NI) 1));
		LOC34 = 0;
		LOC34 = HEX5BHEX5D_226244(slice, ((NI) 1));
		LOC35 = 0;
		LOC35 = HEX5BHEX5D_226244(slice, ((NI) 2));
		addslice_451835(c, n, LOC33, LOC34, LOC35);
		analysesons_452324(c, n);
	}
	goto LA1;
	LA30: ;
	{
		NIM_BOOL LOC37;
		Tnode225809* slice;
		Tnode225809* LOC41;
		Tnode225809* LOC42;
		Tnode225809* LOC43;
		Tnode225809* LOC44;
		LOC37 = 0;
		LOC37 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4276));
		if (!(LOC37)) goto LA38;
		LOC37 = fromsystem_452393(op);
		LA38: ;
		if (!LOC37) goto LA39;
		LOC41 = 0;
		LOC41 = HEX5BHEX5D_226244(n, ((NI) 2));
		slice = skipstmtlist_230985(LOC41);
		LOC42 = 0;
		LOC42 = HEX5BHEX5D_226244(n, ((NI) 1));
		LOC43 = 0;
		LOC43 = HEX5BHEX5D_226244(slice, ((NI) 1));
		LOC44 = 0;
		LOC44 = HEX5BHEX5D_226244(slice, ((NI) 2));
		addslice_451835(c, n, LOC42, LOC43, LOC44);
		analysesons_452324(c, n);
	}
	goto LA1;
	LA39: ;
	{
		analysesons_452324(c, n);
	}
	LA1: ;
}

static N_INLINE(NI, len_226098)(Tnode225809* 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_452495)(Analysisctx451026* c, Tnode225809* n) {
	NI oldfacts;
	analyse_452316(c, (*n).kindU.S6.sons->data[((NI) 0)]);
	oldfacts = ((*c).guards ? (*c).guards->Sup.len : 0);
	{
		NI i_452529;
		NI HEX3Atmp_452583;
		NI LOC2;
		NI res_452586;
		i_452529 = 0;
		HEX3Atmp_452583 = 0;
		LOC2 = 0;
		LOC2 = len_226098(n);
		HEX3Atmp_452583 = (LOC2 - 1);
		res_452586 = ((NI) 1);
		{
			while (1) {
				Tnode225809* branch;
				if (!(res_452586 <= HEX3Atmp_452583)) goto LA4;
				i_452529 = res_452586;
				branch = (*n).kindU.S6.sons->data[i_452529];
				(*c).guards = (Tnodeseq225803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode225809*), ((NI) (oldfacts)));
				addcasebranchfacts_361137((&(*c).guards), n, i_452529);
				{
					NI i_452562;
					NI HEX3Atmp_452576;
					NI LOC6;
					NI res_452579;
					i_452562 = 0;
					HEX3Atmp_452576 = 0;
					LOC6 = 0;
					LOC6 = len_226098(branch);
					HEX3Atmp_452576 = (LOC6 - 1);
					res_452579 = ((NI) 0);
					{
						while (1) {
							if (!(res_452579 <= HEX3Atmp_452576)) goto LA8;
							i_452562 = res_452579;
							analyse_452316(c, (*branch).kindU.S6.sons->data[i_452562]);
							res_452579 += ((NI) 1);
						} LA8: ;
					}
				}
				res_452586 += ((NI) 1);
			} LA4: ;
		}
	}
	(*c).guards = (Tnodeseq225803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode225809*), ((NI) (oldfacts)));
}

N_NIMCALL(void, analyseif_452614)(Analysisctx451026* c, Tnode225809* n) {
	NI oldfacts;
	Tnode225809* LOC1;
	analyse_452316(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_357843((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
	addfact_358392((&(*c).guards), LOC1);
	analyse_452316(c, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]);
	{
		NI i_452654;
		NI HEX3Atmp_452732;
		NI LOC3;
		NI res_452735;
		i_452654 = 0;
		HEX3Atmp_452732 = 0;
		LOC3 = 0;
		LOC3 = len_226098(n);
		HEX3Atmp_452732 = (LOC3 - 1);
		res_452735 = ((NI) 1);
		{
			while (1) {
				Tnode225809* branch;
				if (!(res_452735 <= HEX3Atmp_452732)) goto LA5;
				i_452654 = res_452735;
				branch = (*n).kindU.S6.sons->data[i_452654];
				(*c).guards = (Tnodeseq225803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode225809*), ((NI) (oldfacts)));
				{
					NI j_452677;
					NI HEX3Atmp_452717;
					NI res_452720;
					j_452677 = 0;
					HEX3Atmp_452717 = 0;
					HEX3Atmp_452717 = (NI)(i_452654 - ((NI) 1));
					res_452720 = ((NI) 0);
					{
						while (1) {
							Tnode225809* LOC9;
							if (!(res_452720 <= HEX3Atmp_452717)) goto LA8;
							j_452677 = res_452720;
							LOC9 = 0;
							LOC9 = canon_357843((*(*n).kindU.S6.sons->data[j_452677]).kindU.S6.sons->data[((NI) 0)]);
							addfactneg_358426((&(*c).guards), LOC9);
							res_452720 += ((NI) 1);
						} LA8: ;
					}
				}
				{
					NI LOC12;
					Tnode225809* LOC15;
					LOC12 = 0;
					LOC12 = len_226098(branch);
					if (!(((NI) 1) < LOC12)) goto LA13;
					LOC15 = 0;
					LOC15 = canon_357843((*branch).kindU.S6.sons->data[((NI) 0)]);
					addfact_358392((&(*c).guards), LOC15);
				}
				LA13: ;
				{
					NI i_452703;
					NI HEX3Atmp_452725;
					NI LOC17;
					NI res_452728;
					i_452703 = 0;
					HEX3Atmp_452725 = 0;
					LOC17 = 0;
					LOC17 = len_226098(branch);
					HEX3Atmp_452725 = (LOC17 - 1);
					res_452728 = ((NI) 0);
					{
						while (1) {
							if (!(res_452728 <= HEX3Atmp_452725)) goto LA19;
							i_452703 = res_452728;
							analyse_452316(c, (*branch).kindU.S6.sons->data[i_452703]);
							res_452728 += ((NI) 1);
						} LA19: ;
					}
				}
				res_452735 += ((NI) 1);
			} LA5: ;
		}
	}
	(*c).guards = (Tnodeseq225803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode225809*), ((NI) (oldfacts)));
}

N_NIMCALL(void, analyse_452316)(Analysisctx451026* c, Tnode225809* n) {
	switch ((*n).kind) {
	case ((NU8) 73):
	case ((NU8) 74):
	{
		Tnode225809* y;
		Tnode225809* LOC2;
		Tnode225809* LOC17;
		Tnode225809* value;
		Tnode225809* LOC27;
		LOC2 = 0;
		LOC2 = HEX5BHEX5D_226244(n, ((NI) 1));
		y = skipconv_264935(LOC2);
		{
			NIM_BOOL LOC5;
			Tnode225809* LOC6;
			Monotonicvar451024* slot;
			Tnode225809* LOC10;
			LOC5 = 0;
			LOC6 = 0;
			LOC6 = HEX5BHEX5D_226244(n, ((NI) 0));
			LOC5 = issingleassignable_451356(LOC6);
			if (!(LOC5)) goto LA7;
			LOC5 = islocal_451416(y);
			LA7: ;
			if (!LOC5) goto LA8;
			slot = getslot_451209(c, (*y).kindU.S4.sym);
			LOC10 = 0;
			LOC10 = HEX5BHEX5D_226244(n, ((NI) 0));
			unsureAsgnRef((void**) (&(*slot).alias), (*LOC10).kindU.S4.sym);
		}
		goto LA3;
		LA8: ;
		{
			Tnode225809* LOC12;
			NIM_BOOL LOC13;
			Monotonicvar451024* slot;
			Tnode225809* LOC16;
			LOC12 = 0;
			LOC12 = HEX5BHEX5D_226244(n, ((NI) 0));
			LOC13 = 0;
			LOC13 = islocal_451416(LOC12);
			if (!LOC13) goto LA14;
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_226244(n, ((NI) 0));
			slot = getslot_451209(c, (*LOC16).kindU.S4.sym);
			(*slot).blacklisted = NIM_TRUE;
		}
		goto LA3;
		LA14: ;
		LA3: ;
		LOC17 = 0;
		LOC17 = HEX5BHEX5D_226244(n, ((NI) 0));
		invalidatefacts_358659((&(*c).guards), LOC17);
		value = HEX5BHEX5D_226244(n, ((NI) 1));
		{
			NU8 LOC20;
			NI oldspawnid;
			Tnode225809* LOC23;
			Tnode225809* LOC24;
			Tnode225809* LOC25;
			LOC20 = 0;
			LOC20 = getmagic_254417(value);
			if (!(LOC20 == ((NU8) 201))) goto LA21;
			(*c).spawns += ((NI) 1);
			oldspawnid = (*c).currentspawnid;
			(*c).currentspawnid = (*c).spawns;
			LOC23 = 0;
			LOC23 = HEX5BHEX5D_226244(value, ((NI) 1));
			gatherargs_451244(c, LOC23);
			LOC24 = 0;
			LOC24 = HEX5BHEX5D_226244(value, ((NI) 1));
			analysesons_452324(c, LOC24);
			LOC25 = 0;
			LOC25 = HEX5BHEX5D_226244(n, ((NI) 0));
			analyse_452316(c, LOC25);
			(*c).currentspawnid = oldspawnid;
		}
		goto LA18;
		LA21: ;
		{
			analysesons_452324(c, n);
		}
		LA18: ;
		LOC27 = 0;
		LOC27 = HEX5BHEX5D_226244(n, ((NI) 0));
		addasgnfact_361086((&(*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):
	{
		{
			Tnode225809* LOC31;
			Tnode225809* LOC34;
			LOC31 = 0;
			LOC31 = HEX5BHEX5D_226244(n, ((NI) 0));
			if (!((*LOC31).kind == ((NU8) 3))) goto LA32;
			LOC34 = 0;
			LOC34 = HEX5BHEX5D_226244(n, ((NI) 0));
			analysecall_452422(c, n, (*LOC34).kindU.S4.sym);
		}
		goto LA29;
		LA32: ;
		{
			analysesons_452324(c, n);
		}
		LA29: ;
	}
	break;
	case ((NU8) 42):
	{
		Tnode225809* LOC37;
		Tnode225809* LOC38;
		Tnode225809* LOC39;
		LOC37 = 0;
		LOC37 = HEX5BHEX5D_226244(n, ((NI) 0));
		LOC38 = 0;
		LOC38 = HEX5BHEX5D_226244(n, ((NI) 1));
		LOC39 = 0;
		LOC39 = HEX5BHEX5D_226244(n, ((NI) 1));
		addslice_451835(c, n, LOC37, LOC38, LOC39);
		analysesons_452324(c, n);
	}
	break;
	case ((NU8) 109):
	case ((NU8) 108):
	case ((NU8) 106):
	{
		localerror_196139((*n).info, ((NimStringDesc*) &TMP4277));
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		{
			Tnode225809* it_452819;
			it_452819 = 0;
			{
				NI i_452952;
				NI HEX3Atmp_452954;
				NI LOC44;
				NI res_452956;
				i_452952 = 0;
				HEX3Atmp_452954 = 0;
				LOC44 = 0;
				LOC44 = len_226098(n);
				HEX3Atmp_452954 = (LOC44 - 1);
				res_452956 = ((NI) 0);
				{
					while (1) {
						Tnode225809* value;
						NIM_BOOL isspawned;
						NU8 LOC47;
						if (!(res_452956 <= HEX3Atmp_452954)) goto LA46;
						i_452952 = res_452956;
						it_452819 = (*n).kindU.S6.sons->data[i_452952];
						value = lastson_228406(it_452819);
						LOC47 = 0;
						LOC47 = getmagic_254417(value);
						isspawned = (LOC47 == ((NU8) 201));
						{
							NI oldspawnid;
							Tnode225809* LOC52;
							Tnode225809* LOC53;
							if (!isspawned) goto LA50;
							(*c).spawns += ((NI) 1);
							oldspawnid = (*c).currentspawnid;
							(*c).currentspawnid = (*c).spawns;
							LOC52 = 0;
							LOC52 = HEX5BHEX5D_226244(value, ((NI) 1));
							gatherargs_451244(c, LOC52);
							LOC53 = 0;
							LOC53 = HEX5BHEX5D_226244(value, ((NI) 1));
							analysesons_452324(c, LOC53);
							(*c).currentspawnid = oldspawnid;
						}
						LA50: ;
						{
							if (!!(((*value).kind == ((NU8) 1)))) goto LA56;
							{
								NI j_452862;
								NI HEX3Atmp_452942;
								NI LOC59;
								NI res_452945;
								j_452862 = 0;
								HEX3Atmp_452942 = 0;
								LOC59 = 0;
								LOC59 = len_226098(it_452819);
								HEX3Atmp_452942 = (NI)(LOC59 - ((NI) 3));
								res_452945 = ((NI) 0);
								{
									while (1) {
										if (!(res_452945 <= HEX3Atmp_452942)) goto LA61;
										j_452862 = res_452945;
										{
											Tnode225809* LOC64;
											NIM_BOOL LOC65;
											Monotonicvar451024* slot;
											Tnode225809* LOC68;
											LOC64 = 0;
											LOC64 = HEX5BHEX5D_226244(it_452819, j_452862);
											LOC65 = 0;
											LOC65 = islocal_451416(LOC64);
											if (!LOC65) goto LA66;
											LOC68 = 0;
											LOC68 = HEX5BHEX5D_226244(it_452819, j_452862);
											slot = getslot_451209(c, (*LOC68).kindU.S4.sym);
											{
												if (!(*slot).lower == 0) goto LA71;
												unsureAsgnRef((void**) (&(*slot).lower), value);
											}
											goto LA69;
											LA71: ;
											{
												internalerror_196172((*it_452819).info, ((NimStringDesc*) &TMP4278));
											}
											LA69: ;
										}
										LA66: ;
										res_452945 += ((NI) 1);
									} LA61: ;
								}
							}
							{
								if (!!(isspawned)) goto LA76;
								analyse_452316(c, value);
							}
							LA76: ;
						}
						LA56: ;
						res_452956 += ((NI) 1);
					} LA46: ;
				}
			}
		}
	}
	break;
	case ((NU8) 97):
	{
		analysecase_452495(c, n);
	}
	break;
	case ((NU8) 93):
	case ((NU8) 92):
	case ((NU8) 48):
	{
		analyseif_452614(c, n);
	}
	break;
	case ((NU8) 96):
	{
		analyse_452316(c, (*n).kindU.S6.sons->data[((NI) 0)]);
		(*c).inloop += ((NI) 1);
		{
			NIM_BOOL LOC83;
			LOC83 = 0;
			LOC83 = istrue_369402((*n).kindU.S6.sons->data[((NI) 0)]);
			if (!LOC83) goto LA84;
			analysesons_452324(c, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		goto LA81;
		LA84: ;
		{
			NI oldstate;
			NI oldfacts;
			Tnode225809* LOC87;
			oldstate = ((*c).locals ? (*c).locals->Sup.len : 0);
			oldfacts = ((*c).guards ? (*c).guards->Sup.len : 0);
			LOC87 = 0;
			LOC87 = canon_357843((*n).kindU.S6.sons->data[((NI) 0)]);
			addfact_358392((&(*c).guards), LOC87);
			analyse_452316(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			(*c).locals = (TY451036*) setLengthSeq(&((*c).locals)->Sup, sizeof(Monotonicvar451024), ((NI) (oldstate)));
			(*c).guards = (Tnodeseq225803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode225809*), ((NI) (oldfacts)));
			{
				NIM_BOOL LOC90;
				Tnode225809* LOC93;
				LOC90 = 0;
				LOC90 = hassubnodewith_230439((*n).kindU.S6.sons->data[((NI) 1)], ((NU8) 110));
				if (!!(LOC90)) goto LA91;
				LOC93 = 0;
				LOC93 = canon_357843((*n).kindU.S6.sons->data[((NI) 0)]);
				addfactneg_358426((&(*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_452324(c, n);
	}
	break;
	}
}

N_NIMCALL(void, overlap_451883)(Tnodeseq225803* m, Tnode225809* x, Tnode225809* y, Tnode225809* c, Tnode225809* d) {
	NU8 LOC1;
	LOC1 = 0;
	LOC1 = provele_360823(m, c, y);
	switch (LOC1) {
	case ((NU8) 0):
	{
		NU8 LOC3;
		LOC3 = 0;
		LOC3 = provele_360823(m, x, d);
		switch (LOC3) {
		case ((NU8) 1):
		{
		}
		break;
		case ((NU8) 0):
		case ((NU8) 2):
		{
			TY451890 LOC6;
			NimStringDesc* LOC7;
			memset((void*)LOC6, 0, sizeof(LOC6));
			LOC6[0] = rendertree_247059(c, 0);
			LOC6[1] = rendertree_247059(y, 0);
			LOC6[2] = rendertree_247059(x, 0);
			LOC6[3] = rendertree_247059(y, 0);
			LOC6[4] = rendertree_247059(c, 0);
			LOC6[5] = rendertree_247059(d, 0);
			LOC7 = 0;
			LOC7 = nsuFormatOpenArray(((NimStringDesc*) &TMP4280), LOC6, 6);
			localerror_196139((*x).info, LOC7);
		}
		break;
		}
	}
	break;
	case ((NU8) 2):
	{
		NU8 LOC9;
		LOC9 = 0;
		LOC9 = provele_360823(m, x, d);
		switch (LOC9) {
		case ((NU8) 0):
		{
			TY451890 LOC11;
			NimStringDesc* LOC12;
			memset((void*)LOC11, 0, sizeof(LOC11));
			LOC11[0] = rendertree_247059(x, 0);
			LOC11[1] = rendertree_247059(d, 0);
			LOC11[2] = rendertree_247059(x, 0);
			LOC11[3] = rendertree_247059(y, 0);
			LOC11[4] = rendertree_247059(c, 0);
			LOC11[5] = rendertree_247059(d, 0);
			LOC12 = 0;
			LOC12 = nsuFormatOpenArray(((NimStringDesc*) &TMP4280), LOC11, 6);
			localerror_196139((*x).info, LOC12);
		}
		break;
		case ((NU8) 2):
		{
			TY451890 LOC14;
			NimStringDesc* LOC15;
			memset((void*)LOC14, 0, sizeof(LOC14));
			LOC14[0] = rendertree_247059(c, 0);
			LOC14[1] = rendertree_247059(y, 0);
			LOC14[2] = rendertree_247059(x, 0);
			LOC14[3] = rendertree_247059(y, 0);
			LOC14[4] = rendertree_247059(c, 0);
			LOC14[5] = rendertree_247059(d, 0);
			LOC15 = 0;
			LOC15 = nsuFormatOpenArray(((NimStringDesc*) &TMP4281), LOC14, 6);
			localerror_196139((*x).info, LOC15);
		}
		break;
		case ((NU8) 1):
		{
		}
		break;
		}
	}
	break;
	case ((NU8) 1):
	{
	}
	break;
	}
}

N_NIMCALL(Tnode225809*, substride_451993)(Analysisctx451026* c, Tnode225809* n) {
	Tnode225809* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_451416(n);
		if (!LOC3) goto LA4;
		s = lookupslot_451132(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_358160(n, (*(*c).locals->data[s].stride).kindU.S1.intval);
		}
		goto LA6;
		LA10: ;
		{
			result = n;
		}
		LA6: ;
	}
	goto LA1;
	LA4: ;
	{
		NI LOC14;
		LOC14 = 0;
		LOC14 = safelen_226126(n);
		if (!(((NI) 0) < LOC14)) goto LA15;
		result = shallowcopy_229817(n);
		{
			NI i_452033;
			NI HEX3Atmp_452037;
			NI LOC18;
			NI res_452040;
			i_452033 = 0;
			HEX3Atmp_452037 = 0;
			LOC18 = 0;
			LOC18 = len_226098(n);
			HEX3Atmp_452037 = (LOC18 - 1);
			res_452040 = ((NI) 0);
			{
				while (1) {
					if (!(res_452040 <= HEX3Atmp_452037)) goto LA20;
					i_452033 = res_452040;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_452033]), substride_451993(c, (*n).kindU.S6.sons->data[i_452033]));
					res_452040 += ((NI) 1);
				} LA20: ;
			}
		}
	}
	goto LA1;
	LA15: ;
	{
		result = n;
	}
	LA1: ;
	return result;
}

N_NIMCALL(NI64, stride_451920)(Analysisctx451026* c, Tnode225809* n) {
	NI64 result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_451416(n);
		if (!LOC3) goto LA4;
		s = lookupslot_451132(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_451959;
			NI HEX3Atmp_451971;
			NI LOC14;
			NI res_451974;
			i_451959 = 0;
			HEX3Atmp_451971 = 0;
			LOC14 = 0;
			LOC14 = safelen_226126(n);
			HEX3Atmp_451971 = (LOC14 - 1);
			res_451974 = ((NI) 0);
			{
				while (1) {
					NI64 LOC17;
					if (!(res_451974 <= HEX3Atmp_451971)) goto LA16;
					i_451959 = res_451974;
					LOC17 = 0;
					LOC17 = stride_451920(c, (*n).kindU.S6.sons->data[i_451959]);
					result += LOC17;
					res_451974 += ((NI) 1);
				} LA16: ;
			}
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, checkslicesaredisjoint_452059)(Analysisctx451026* c) {
	addlowerboundasfacts_451573(c);
	{
		Tnode225809* x_452211;
		Tnode225809* a_452212;
		Tnode225809* b_452213;
		NI id_452214;
		NIM_BOOL inloop_452215;
		TY451038* HEX3Atmp_452260;
		NI i_452263;
		NI L_452265;
		x_452211 = 0;
		a_452212 = 0;
		b_452213 = 0;
		id_452214 = 0;
		inloop_452215 = 0;
		HEX3Atmp_452260 = 0;
		HEX3Atmp_452260 = (*c).slices;
		i_452263 = ((NI) 0);
		L_452265 = (HEX3Atmp_452260 ? HEX3Atmp_452260->Sup.len : 0);
		{
			while (1) {
				if (!(i_452263 < L_452265)) goto LA3;
				x_452211 = HEX3Atmp_452260->data[i_452263].Field0;
				a_452212 = HEX3Atmp_452260->data[i_452263].Field1;
				b_452213 = HEX3Atmp_452260->data[i_452263].Field2;
				id_452214 = HEX3Atmp_452260->data[i_452263].Field3;
				inloop_452215 = HEX3Atmp_452260->data[i_452263].Field4;
				{
					Tnode225809* LOC8;
					Tnode225809* LOC9;
					if (!inloop_452215) goto LA6;
					LOC8 = 0;
					LOC8 = substride_451993((&(*c)), a_452212);
					LOC9 = 0;
					LOC9 = substride_451993((&(*c)), b_452213);
					overlap_451883((*c).guards, a_452212, b_452213, LOC8, LOC9);
				}
				LA6: ;
				i_452263 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NI i_452226;
		NI HEX3Atmp_452276;
		NI res_452279;
		i_452226 = 0;
		HEX3Atmp_452276 = 0;
		HEX3Atmp_452276 = ((*c).slices ? ((*c).slices->Sup.len-1) : -1);
		res_452279 = ((NI) 0);
		{
			while (1) {
				if (!(res_452279 <= HEX3Atmp_452276)) goto LA12;
				i_452226 = res_452279;
				{
					NI j_452237;
					NI HEX3Atmp_452268;
					NI HEX3Atmp_452269;
					NI res_452272;
					j_452237 = 0;
					HEX3Atmp_452268 = 0;
					HEX3Atmp_452269 = 0;
					HEX3Atmp_452268 = (NI)(i_452226 + ((NI) 1));
					HEX3Atmp_452269 = ((*c).slices ? ((*c).slices->Sup.len-1) : -1);
					res_452272 = HEX3Atmp_452268;
					{
						while (1) {
							TY451039 x;
							TY451039 y;
							if (!(res_452272 <= HEX3Atmp_452269)) goto LA15;
							j_452237 = res_452272;
							memset((void*)(&x), 0, sizeof(x));
							memcpy((void*)(&x), (NIM_CONST void*)(&(*c).slices->data[i_452226]), sizeof(x));
							memset((void*)(&y), 0, sizeof(y));
							memcpy((void*)(&y), (NIM_CONST void*)(&(*c).slices->data[j_452237]), sizeof(y));
							{
								NIM_BOOL LOC18;
								LOC18 = 0;
								LOC18 = !((x.Field3 == y.Field3));
								if (!(LOC18)) goto LA19;
								LOC18 = sametree_358462(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_451883((*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_359464(x.Field1, x.Field2);
									m = simpleslice_359464(y.Field1, y.Field2);
									LOC29 = 0;
									LOC29 = (IL64(0) <= k);
									if (!(LOC29)) goto LA30;
									LOC29 = (IL64(0) <= m);
									LA30: ;
									if (!LOC29) goto LA31;
									overlap_451883((*c).guards, x.Field1, x.Field2, y.Field1, y.Field2);
									LOC33 = 0;
									LOC33 = stride_451920((&(*c)), x.Field1);
									LOC34 = 0;
									LOC34 = stride_451920((&(*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: ;
									{
										TY194829 LOC42;
										NimStringDesc* LOC43;
										memset((void*)LOC42, 0, sizeof(LOC42));
										LOC42[0] = rendertree_247059(x.Field1, 0);
										LOC42[1] = rendertree_247059(x.Field2, 0);
										LOC42[2] = rendertree_247059(y.Field1, 0);
										LOC42[3] = rendertree_247059(y.Field2, 0);
										LOC43 = 0;
										LOC43 = nsuFormatOpenArray(((NimStringDesc*) &TMP4282), LOC42, 4);
										localerror_196139((*x.Field0).info, LOC43);
									}
									LA35: ;
								}
								goto LA22;
								LA31: ;
								{
									TY194829 LOC45;
									NimStringDesc* LOC46;
									memset((void*)LOC45, 0, sizeof(LOC45));
									LOC45[0] = rendertree_247059(x.Field1, 0);
									LOC45[1] = rendertree_247059(x.Field2, 0);
									LOC45[2] = rendertree_247059(y.Field1, 0);
									LOC45[3] = rendertree_247059(y.Field2, 0);
									LOC46 = 0;
									LOC46 = nsuFormatOpenArray(((NimStringDesc*) &TMP4282), LOC45, 4);
									localerror_196139((*x.Field0).info, LOC46);
								}
								LA22: ;
							}
							LA20: ;
							res_452272 += ((NI) 1);
						} LA15: ;
					}
				}
				res_452279 += ((NI) 1);
			} LA12: ;
		}
	}
}

N_NIMCALL(void, checkargs_453239)(Analysisctx451026* a, Tnode225809* n) {
}

N_NIMCALL(void, generatealiaschecks_453250)(Analysisctx451026* a, Tnode225809* result) {
}

N_NIMCALL(Tnode225809*, transformslices_452986)(Tnode225809* n) {
	Tnode225809* result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		Tnode225809* LOC5;
		Tsym225841* op;
		Tnode225809* 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_226244(n, ((NI) 0));
		LOC3 = ((*LOC5).kind == ((NU8) 3));
		LA4: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = HEX5BHEX5D_226244(n, ((NI) 0));
		op = (*LOC8).kindU.S4.sym;
		{
			NIM_BOOL LOC11;
			Tnode225809* LOC15;
			Tnode225809* LOC16;
			Tnode225809* slice;
			Tnode225809* LOC17;
			Tnode225809* LOC18;
			Tnode225809* LOC19;
			LOC11 = 0;
			LOC11 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4264));
			if (!(LOC11)) goto LA12;
			LOC11 = fromsystem_452393(op);
			LA12: ;
			if (!LOC11) goto LA13;
			result = copynode_229660(n);
			LOC15 = 0;
			LOC15 = newsymnode_227325(opslice_451055);
			add_226165(result, LOC15);
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_226244(n, ((NI) 1));
			add_226165(result, LOC16);
			LOC17 = 0;
			LOC17 = HEX5BHEX5D_226244(n, ((NI) 2));
			slice = skipstmtlist_230985(LOC17);
			LOC18 = 0;
			LOC18 = HEX5BHEX5D_226244(slice, ((NI) 1));
			add_226165(result, LOC18);
			LOC19 = 0;
			LOC19 = HEX5BHEX5D_226244(slice, ((NI) 2));
			add_226165(result, LOC19);
			goto BeforeRet;
		}
		LA13: ;
	}
	LA6: ;
	{
		NI LOC22;
		LOC22 = 0;
		LOC22 = safelen_226126(n);
		if (!(((NI) 0) < LOC22)) goto LA23;
		result = shallowcopy_229817(n);
		{
			NI i_453040;
			NI HEX3Atmp_453044;
			NI LOC26;
			NI res_453047;
			i_453040 = 0;
			HEX3Atmp_453044 = 0;
			LOC26 = 0;
			LOC26 = len_226098(n);
			HEX3Atmp_453044 = (LOC26 - 1);
			res_453047 = ((NI) 0);
			{
				while (1) {
					if (!(res_453047 <= HEX3Atmp_453044)) goto LA28;
					i_453040 = res_453047;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_453040]), transformslices_452986((*n).kindU.S6.sons->data[i_453040]));
					res_453047 += ((NI) 1);
				} LA28: ;
			}
		}
	}
	goto LA20;
	LA23: ;
	{
		result = n;
	}
	LA20: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode225809*, transformspawnsons_453074)(Tsym225841* owner, Tnode225809* n, Tnode225809* barrier) {
	Tnode225809* result;
	result = 0;
	result = shallowcopy_229817(n);
	{
		NI i_453099;
		NI HEX3Atmp_453103;
		NI LOC2;
		NI res_453106;
		i_453099 = 0;
		HEX3Atmp_453103 = 0;
		LOC2 = 0;
		LOC2 = len_226098(n);
		HEX3Atmp_453103 = (LOC2 - 1);
		res_453106 = ((NI) 0);
		{
			while (1) {
				if (!(res_453106 <= HEX3Atmp_453103)) goto LA4;
				i_453099 = res_453106;
				asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_453099]), transformspawn_453066(owner, (*n).kindU.S6.sons->data[i_453099], barrier));
				res_453106 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(Tnode225809*, transformspawn_453066)(Tsym225841* owner, Tnode225809* n, Tnode225809* barrier) {
	Tnode225809* result;
{	result = 0;
	switch ((*n).kind) {
	case ((NU8) 99):
	case ((NU8) 100):
	{
		result = NIM_NIL;
		{
			Tnode225809* it_453131;
			it_453131 = 0;
			{
				NI i_453214;
				NI HEX3Atmp_453216;
				NI LOC4;
				NI res_453218;
				i_453214 = 0;
				HEX3Atmp_453216 = 0;
				LOC4 = 0;
				LOC4 = len_226098(n);
				HEX3Atmp_453216 = (LOC4 - 1);
				res_453218 = ((NI) 0);
				{
					while (1) {
						Tnode225809* b;
						if (!(res_453218 <= HEX3Atmp_453216)) goto LA6;
						i_453214 = res_453218;
						it_453131 = (*n).kindU.S6.sons->data[i_453214];
						b = lastson_228406(it_453131);
						{
							NU8 LOC9;
							Tnode225809* m;
							Ttype225847* t;
							Tnode225809* LOC21;
							Tnode225809* LOC22;
							LOC9 = 0;
							LOC9 = getmagic_254417(b);
							if (!(LOC9 == ((NU8) 201))) goto LA10;
							{
								NI LOC14;
								LOC14 = 0;
								LOC14 = len_226098(it_453131);
								if (!!((LOC14 == ((NI) 3)))) goto LA15;
								localerror_196139((*it_453131).info, ((NimStringDesc*) &TMP4286));
							}
							LA15: ;
							m = transformslices_452986(b);
							{
								if (!result == 0) goto LA19;
								result = newnodei_227351(((NU8) 115), (*n).info);
								add_226165(result, n);
							}
							LA19: ;
							LOC21 = 0;
							LOC21 = HEX5BHEX5D_226244(b, ((NI) 1));
							LOC22 = 0;
							LOC22 = HEX5BHEX5D_226244(LOC21, ((NI) 0));
							t = (*(*LOC22).typ).sons->data[((NI) 0)];
							{
								NU8 LOC25;
								Tnode225809* LOC28;
								Tnode225809* LOC29;
								NI LOC30;
								LOC25 = 0;
								LOC25 = spawnresult_404208(t, NIM_TRUE);
								if (!(LOC25 == ((NU8) 2))) goto LA26;
								LOC28 = 0;
								LOC28 = HEX5BHEX5D_226244(it_453131, ((NI) 0));
								LOC29 = 0;
								LOC29 = wrapprocforspawn_404850(owner, m, (*b).typ, barrier, LOC28);
								add_226165(result, LOC29);
								LOC30 = 0;
								LOC30 = len_226098(it_453131);
								asgnRefNoCycle((void**) (&(*it_453131).kindU.S6.sons->data[(NI)(LOC30 - ((NI) 1))]), emptynode_226807);
							}
							goto LA23;
							LA26: ;
							{
								NI LOC32;
								LOC32 = 0;
								LOC32 = len_226098(it_453131);
								asgnRefNoCycle((void**) (&(*it_453131).kindU.S6.sons->data[(NI)(LOC32 - ((NI) 1))]), wrapprocforspawn_404850(owner, m, (*b).typ, barrier, NIM_NIL));
							}
							LA23: ;
						}
						LA10: ;
						res_453218 += ((NI) 1);
					} LA6: ;
				}
			}
		}
		{
			if (!result == 0) goto LA35;
			result = n;
		}
		LA35: ;
	}
	break;
	case ((NU8) 73):
	case ((NU8) 74):
	{
		Tnode225809* b;
		b = HEX5BHEX5D_226244(n, ((NI) 1));
		{
			NIM_BOOL LOC40;
			NU8 LOC41;
			Ttype225847* t;
			Tnode225809* LOC43;
			Tnode225809* LOC44;
			NU8 LOC45;
			Tnode225809* m;
			Tnode225809* LOC48;
			LOC40 = 0;
			LOC41 = 0;
			LOC41 = getmagic_254417(b);
			LOC40 = (LOC41 == ((NU8) 201));
			if (!(LOC40)) goto LA42;
			LOC43 = 0;
			LOC43 = HEX5BHEX5D_226244(b, ((NI) 1));
			LOC44 = 0;
			LOC44 = HEX5BHEX5D_226244(LOC43, ((NI) 0));
			t = (*(*LOC44).typ).sons->data[((NI) 0)];
			LOC45 = 0;
			LOC45 = spawnresult_404208(t, NIM_TRUE);
			LOC40 = (LOC45 == ((NU8) 2));
			LA42: ;
			if (!LOC40) goto LA46;
			m = transformslices_452986(b);
			LOC48 = 0;
			LOC48 = HEX5BHEX5D_226244(n, ((NI) 0));
			result = wrapprocforspawn_404850(owner, m, (*b).typ, barrier, LOC48);
			goto BeforeRet;
		}
		LA46: ;
		result = transformspawnsons_453074(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_254417(n);
			if (!(LOC52 == ((NU8) 201))) goto LA53;
			result = transformslices_452986(n);
			result = wrapprocforspawn_404850(owner, result, (*n).typ, barrier, NIM_NIL);
			goto BeforeRet;
		}
		LA53: ;
		result = transformspawnsons_453074(owner, n, barrier);
	}
	break;
	default:
	{
		{
			NI LOC58;
			LOC58 = 0;
			LOC58 = safelen_226126(n);
			if (!(((NI) 0) < LOC58)) goto LA59;
			result = transformspawnsons_453074(owner, n, barrier);
		}
		goto LA56;
		LA59: ;
		{
			result = n;
		}
		LA56: ;
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode225809*, liftparallel_453260)(Tsym225841* owner, Tnode225809* n) {
	Tnode225809* result;
	Analysisctx451026 a;
	Tnode225809* body;
	Tnode225809* varsection;
	Tsym225841* temp;
	Tident198021* LOC5;
	Tsym225841* LOC6;
	Tnode225809* tempnode;
	Tnode225809* barrier;
	Tnode225809* LOC7;
	Tnode225809* LOC8;
	Tnode225809* LOC9;
	result = 0;
	memset((void*)(&a), 0, sizeof(a));
	chckNil((void*)(&a));
	memset((void*)(&a), 0, sizeof(a));
	initanalysisctx_451059((&a));
	body = lastson_228406(n);
	analyse_452316((&a), body);
	{
		if (!(a.spawns == ((NI) 0))) goto LA3;
		localerror_196139((*n).info, ((NimStringDesc*) &TMP4279));
	}
	LA3: ;
	checkslicesaredisjoint_452059((&a));
	checkargs_453239((&a), body);
	varsection = newnodei_227351(((NU8) 99), (*n).info);
	LOC5 = 0;
	LOC5 = getident_198463(((NimStringDesc*) &TMP4283));
	temp = newsym_226656(((NU8) 5), LOC5, owner, (*n).info);
	LOC6 = 0;
	LOC6 = getcompilerproc_274809(((NimStringDesc*) &TMP4284));
	asgnRefNoCycle((void**) (&(*temp).typ), (*LOC6).typ);
	(*temp).flags |= ((NU32)1)<<((((NU8) 2))%(sizeof(NU32)*8));
	tempnode = newsymnode_227325(temp);
	addvar_402047(varsection, tempnode);
	barrier = genaddrof_404064(tempnode);
	result = newnodei_227351(((NU8) 115), (*n).info);
	generatealiaschecks_453250((&a), result);
	add_226165(result, varsection);
	LOC7 = 0;
	LOC7 = callcodegenproc_404086(((NimStringDesc*) &TMP4285), barrier, NIM_NIL, NIM_NIL, NIM_NIL);
	add_226165(result, LOC7);
	LOC8 = 0;
	LOC8 = transformspawn_453066(owner, body, barrier);
	add_226165(result, LOC8);
	LOC9 = 0;
	LOC9 = callcodegenproc_404086(((NimStringDesc*) &TMP4287), barrier, NIM_NIL, NIM_NIL, NIM_NIL);
	add_226165(result, LOC9);
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_semparallelInit000)(void) {
	asgnRefNoCycle((void**) (&opslice_451055), createmagic_231047(((NimStringDesc*) &TMP1033), ((NU8) 138)));
}

NIM_EXTERNC N_NOINLINE(void, compiler_semparallelDatInit000)(void) {
static TNimNode* TMP4256[7];
static TNimNode* TMP4257[2];
NI TMP4259;
static char* NIM_CONST TMP4258[2] = {
"ascending", 
"descending"};
static TNimNode* TMP4261[5];
static TNimNode TMP1031[17];
NTI451024.size = sizeof(Monotonicvar451024);
NTI451024.kind = 18;
NTI451024.base = 0;
NTI451024.flags = 2;
TMP4256[0] = &TMP1031[1];
TMP1031[1].kind = 1;
TMP1031[1].offset = offsetof(Monotonicvar451024, v);
TMP1031[1].typ = (&NTI225807);
TMP1031[1].name = "v";
TMP4256[1] = &TMP1031[2];
TMP1031[2].kind = 1;
TMP1031[2].offset = offsetof(Monotonicvar451024, alias);
TMP1031[2].typ = (&NTI225807);
TMP1031[2].name = "alias";
TMP4256[2] = &TMP1031[3];
TMP1031[3].kind = 1;
TMP1031[3].offset = offsetof(Monotonicvar451024, lower);
TMP1031[3].typ = (&NTI225801);
TMP1031[3].name = "lower";
TMP4256[3] = &TMP1031[4];
TMP1031[4].kind = 1;
TMP1031[4].offset = offsetof(Monotonicvar451024, upper);
TMP1031[4].typ = (&NTI225801);
TMP1031[4].name = "upper";
TMP4256[4] = &TMP1031[5];
TMP1031[5].kind = 1;
TMP1031[5].offset = offsetof(Monotonicvar451024, stride);
TMP1031[5].typ = (&NTI225801);
TMP1031[5].name = "stride";
TMP4256[5] = &TMP1031[6];
NTI451022.size = sizeof(NU8);
NTI451022.kind = 14;
NTI451022.base = 0;
NTI451022.flags = 3;
for (TMP4259 = 0; TMP4259 < 2; TMP4259++) {
TMP1031[TMP4259+7].kind = 1;
TMP1031[TMP4259+7].offset = TMP4259;
TMP1031[TMP4259+7].name = TMP4258[TMP4259];
TMP4257[TMP4259] = &TMP1031[TMP4259+7];
}
TMP1031[9].len = 2; TMP1031[9].kind = 2; TMP1031[9].sons = &TMP4257[0];
NTI451022.node = &TMP1031[9];
TMP1031[6].kind = 1;
TMP1031[6].offset = offsetof(Monotonicvar451024, dir);
TMP1031[6].typ = (&NTI451022);
TMP1031[6].name = "dir";
TMP4256[6] = &TMP1031[10];
TMP1031[10].kind = 1;
TMP1031[10].offset = offsetof(Monotonicvar451024, blacklisted);
TMP1031[10].typ = (&NTI138);
TMP1031[10].name = "blacklisted";
TMP1031[0].len = 7; TMP1031[0].kind = 2; TMP1031[0].sons = &TMP4256[0];
NTI451024.node = &TMP1031[0];
NTI451036.size = sizeof(TY451036*);
NTI451036.kind = 24;
NTI451036.base = (&NTI451024);
NTI451036.flags = 2;
NTI451036.marker = TMP4260;
NTI451039.size = sizeof(TY451039);
NTI451039.kind = 18;
NTI451039.base = 0;
NTI451039.flags = 2;
TMP4261[0] = &TMP1031[12];
TMP1031[12].kind = 1;
TMP1031[12].offset = offsetof(TY451039, Field0);
TMP1031[12].typ = (&NTI225801);
TMP1031[12].name = "Field0";
TMP4261[1] = &TMP1031[13];
TMP1031[13].kind = 1;
TMP1031[13].offset = offsetof(TY451039, Field1);
TMP1031[13].typ = (&NTI225801);
TMP1031[13].name = "Field1";
TMP4261[2] = &TMP1031[14];
TMP1031[14].kind = 1;
TMP1031[14].offset = offsetof(TY451039, Field2);
TMP1031[14].typ = (&NTI225801);
TMP1031[14].name = "Field2";
TMP4261[3] = &TMP1031[15];
TMP1031[15].kind = 1;
TMP1031[15].offset = offsetof(TY451039, Field3);
TMP1031[15].typ = (&NTI108);
TMP1031[15].name = "Field3";
TMP4261[4] = &TMP1031[16];
TMP1031[16].kind = 1;
TMP1031[16].offset = offsetof(TY451039, Field4);
TMP1031[16].typ = (&NTI138);
TMP1031[16].name = "Field4";
TMP1031[11].len = 5; TMP1031[11].kind = 2; TMP1031[11].sons = &TMP4261[0];
NTI451039.node = &TMP1031[11];
NTI451038.size = sizeof(TY451038*);
NTI451038.kind = 24;
NTI451038.base = (&NTI451039);
NTI451038.flags = 2;
NTI451038.marker = TMP4262;
}

