/* 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 Tsym227841 Tsym227841;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Cell48946 Cell48946;
typedef struct TNimType TNimType;
typedef struct Cellseq48962 Cellseq48962;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48958 Cellset48958;
typedef struct Pagedesc48954 Pagedesc48954;
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 Tnode227809 Tnode227809;
typedef struct Analysisctx453026 Analysisctx453026;
typedef struct TY453036 TY453036;
typedef struct TY453038 TY453038;
typedef struct Tnodeseq227803 Tnodeseq227803;
typedef struct Tsymseq227811 Tsymseq227811;
typedef struct Monotonicvar453024 Monotonicvar453024;
typedef struct TNimNode TNimNode;
typedef struct TY453039 TY453039;
typedef struct Ttype227847 Ttype227847;
typedef struct Tlineinfo192352 Tlineinfo192352;
typedef struct Tident200021 Tident200021;
typedef struct Tidobj200015 Tidobj200015;
typedef struct TNimObject TNimObject;
typedef struct Ttypeseq227843 Ttypeseq227843;
typedef struct Tscope227835 Tscope227835;
typedef struct TY227944 TY227944;
typedef struct Tstrtable227813 Tstrtable227813;
typedef struct Tloc227823 Tloc227823;
typedef struct Ropeobj178009 Ropeobj178009;
typedef struct Tlib227827 Tlib227827;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct Tinstantiation227831 Tinstantiation227831;
typedef struct Tlistentry143022 Tlistentry143022;
typedef struct TY227932 TY227932;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Cell48946  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48962  {
NI len;
NI cap;
Cell48946** d;
};
struct  Cellset48958  {
NI counter;
NI max;
Pagedesc48954* head;
Pagedesc48954** 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;
Cellseq48962 zct;
Cellseq48962 decstack;
Cellset48958 cycleroots;
Cellseq48962 tempstack;
NI recgclock;
Memregion30890 region;
Gcstat51014 stat;
};
struct  Analysisctx453026  {
TY453036* locals;
TY453038* slices;
Tnodeseq227803* guards;
Tsymseq227811* args;
NI spawns;
NI currentspawnid;
NI inloop;
};
struct  Monotonicvar453024  {
Tsym227841* v;
Tsym227841* alias;
Tnode227809* lower;
Tnode227809* upper;
Tnode227809* 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 TY453039 {
Tnode227809* Field0;
Tnode227809* Field1;
Tnode227809* Field2;
NI Field3;
NIM_BOOL Field4;
};
struct  Tlineinfo192352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode227809  {
Ttype227847* typ;
Tlineinfo192352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym227841* sym;
} S4;
struct {Tident200021* ident;
} S5;
struct {Tnodeseq227803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj200015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable227813  {
NI counter;
Tsymseq227811* data;
};
struct  Tloc227823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype227847* t;
Ropeobj178009* r;
Ropeobj178009* heaproot;
};
struct  Tsym227841  {
  Tidobj200015 Sup;
NU8 kind;
union{
struct {Ttypeseq227843* typeinstcache;
Tscope227835* typscope;
} S1;
struct {TY227944* procinstcache;
Tsym227841* gcunsafetyreason;
} S2;
struct {TY227944* usedgenerics;
Tstrtable227813 tab;
} S3;
struct {Tsym227841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype227847* typ;
Tident200021* name;
Tlineinfo192352 info;
Tsym227841* owner;
NU32 flags;
Tnode227809* ast;
NU32 options;
NI position;
NI offset;
Tloc227823 loc;
Tlib227827* annex;
Tnode227809* constraint;
};
struct  Tident200021  {
  Tidobj200015 Sup;
NimStringDesc* s;
Tident200021* next;
NI h;
};
typedef NimStringDesc* TY453890[6];
typedef NimStringDesc* TY196829[4];
struct  Ttype227847  {
  Tidobj200015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq227843* sons;
Tnode227809* n;
Tsym227841* owner;
Tsym227841* sym;
Tsym227841* destructor;
Tsym227841* deepcopy;
Tsym227841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc227823 loc;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30821[16];
struct  Pagedesc48954  {
Pagedesc48954* 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  Tscope227835  {
NI depthlevel;
Tstrtable227813 symbols;
Tnodeseq227803* usingsyms;
Tscope227835* parent;
};
struct  Ropeobj178009  {
  TNimObject Sup;
Ropeobj178009* left;
Ropeobj178009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry143022  {
  TNimObject Sup;
Tlistentry143022* prev;
Tlistentry143022* next;
};
struct  Tlib227827  {
  Tlistentry143022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj178009* name;
Tnode227809* path;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct  Tinstantiation227831  {
Tsym227841* sym;
Ttypeseq227843* concretetypes;
TY227932* usedby;
NI compilesid;
};
struct TY453036 {
  TGenericSeq Sup;
  Monotonicvar453024 data[SEQ_DECL_SIZE];
};
struct TY453038 {
  TGenericSeq Sup;
  TY453039 data[SEQ_DECL_SIZE];
};
struct Tsymseq227811 {
  TGenericSeq Sup;
  Tsym227841* data[SEQ_DECL_SIZE];
};
struct Tnodeseq227803 {
  TGenericSeq Sup;
  Tnode227809* data[SEQ_DECL_SIZE];
};
struct Ttypeseq227843 {
  TGenericSeq Sup;
  Ttype227847* data[SEQ_DECL_SIZE];
};
struct TY227944 {
  TGenericSeq Sup;
  Tinstantiation227831* data[SEQ_DECL_SIZE];
};
struct TY227932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Tsym227841*, createmagic_233047)(NimStringDesc* name, NU8 m);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell48946*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48946* c);
N_NOINLINE(void, addzct_52617)(Cellseq48962* s, Cell48946* c);
N_NIMCALL(void, initanalysisctx_453059)(Analysisctx453026* Result);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP4257)(void* p, NI op);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, TMP4259)(void* p, NI op);
N_NOINLINE(void, chckNil)(void* p);
N_NIMCALL(Tnode227809*, lastson_230406)(Tnode227809* n);
N_NIMCALL(void, analyse_454316)(Analysisctx453026* c, Tnode227809* n);
N_NIMCALL(Tnode227809*, skipconv_266935)(Tnode227809* n);
static N_INLINE(Tnode227809*, HEX5BHEX5D_228244)(Tnode227809* n, NI i);
N_NIMCALL(NIM_BOOL, issingleassignable_453356)(Tnode227809* n);
N_NIMCALL(NIM_BOOL, islocal_453416)(Tnode227809* n);
N_NIMCALL(Monotonicvar453024*, getslot_453209)(Analysisctx453026* c, Tsym227841* v);
N_NIMCALL(NI, lookupslot_453132)(Analysisctx453026* c, Tsym227841* s);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, invalidatefacts_360659)(Tnodeseq227803** m, Tnode227809* n);
N_NIMCALL(NU8, getmagic_256417)(Tnode227809* op);
N_NIMCALL(void, gatherargs_453244)(Analysisctx453026* c, Tnode227809* n);
static N_INLINE(NI, safelen_228126)(Tnode227809* n);
N_NIMCALL(Tsym227841*, getroot_406646)(Tnode227809* n);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, analysesons_454324)(Analysisctx453026* c, Tnode227809* n);
N_NIMCALL(void, addasgnfact_363086)(Tnodeseq227803** m, Tnode227809* key, Tnode227809* value);
N_NIMCALL(void, analysecall_454422)(Analysisctx453026* c, Tnode227809* n, Tsym227841* op);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NIM_BOOL, fromsystem_454393)(Tsym227841* op);
N_NIMCALL(Tsym227841*, getmodule_235243)(Tsym227841* s);
N_NIMCALL(Tnode227809*, min_454371)(Tnode227809* a, Tnode227809* b);
N_NIMCALL(Tnode227809*, skipstmtlist_232985)(Tnode227809* n);
N_NIMCALL(void, addslice_453835)(Analysisctx453026* c, Tnode227809* n, Tnode227809* x, Tnode227809* le_453841, Tnode227809* ri_453842);
N_NIMCALL(void, checklocal_453476)(Analysisctx453026* c, Tnode227809* n);
N_NIMCALL(void, localerror_198139)(Tlineinfo192352 info, NimStringDesc* arg);
N_NIMCALL(Tnode227809*, canon_359843)(Tnode227809* n);
N_NIMCALL(void, addlowerboundasfacts_453573)(Analysisctx453026* c);
N_NIMCALL(void, addfactle_362849)(Tnodeseq227803** m, Tnode227809* a, Tnode227809* b);
N_NIMCALL(Tnode227809*, newsymnode_229325)(Tsym227841* sym);
N_NIMCALL(void, checkbounds_453560)(Analysisctx453026* c, Tnode227809* arr, Tnode227809* idx);
N_NIMCALL(void, checkle_453545)(Analysisctx453026* c, Tnode227809* a, Tnode227809* b);
N_NIMCALL(NU8, provele_362823)(Tnodeseq227803* m, Tnode227809* a, Tnode227809* b);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, rendertree_249059)(Tnode227809* n, NU8 renderflags);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(Tnode227809*, lowbound_359702)(Tnode227809* x);
N_NIMCALL(Tnode227809*, highbound_359712)(Tnode227809* x);
N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
static N_INLINE(NI, len_228098)(Tnode227809* n);
N_NIMCALL(void, internalerror_198172)(Tlineinfo192352 info, NimStringDesc* errmsg);
N_NIMCALL(void, analysecase_454495)(Analysisctx453026* c, Tnode227809* n);
N_NIMCALL(void, addcasebranchfacts_363137)(Tnodeseq227803** m, Tnode227809* n, NI i);
N_NIMCALL(void, analyseif_454614)(Analysisctx453026* c, Tnode227809* n);
N_NIMCALL(void, addfact_360392)(Tnodeseq227803** m, Tnode227809* nn);
N_NIMCALL(void, addfactneg_360426)(Tnodeseq227803** m, Tnode227809* n_360430);
N_NIMCALL(NIM_BOOL, istrue_371402)(Tnode227809* n);
N_NIMCALL(NIM_BOOL, hassubnodewith_232439)(Tnode227809* n, NU8 kind);
N_NIMCALL(void, checkslicesaredisjoint_454059)(Analysisctx453026* c);
N_NIMCALL(void, overlap_453883)(Tnodeseq227803* m, Tnode227809* x, Tnode227809* y, Tnode227809* c, Tnode227809* d);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(Tnode227809*, substride_453993)(Analysisctx453026* c, Tnode227809* n);
N_NIMCALL(Tnode227809*, HEX2BHEX40_360160)(Tnode227809* a, NI64 b);
N_NIMCALL(Tnode227809*, shallowcopy_231817)(Tnode227809* src);
N_NIMCALL(NIM_BOOL, sametree_360462)(Tnode227809* a, Tnode227809* b);
N_NIMCALL(NI64, simpleslice_361464)(Tnode227809* a, Tnode227809* b);
N_NIMCALL(NI64, stride_453920)(Analysisctx453026* c, Tnode227809* n);
N_NIMCALL(void, checkargs_455239)(Analysisctx453026* a, Tnode227809* n);
N_NIMCALL(Tnode227809*, newnodei_229351)(NU8 kind, Tlineinfo192352 info);
N_NIMCALL(Tsym227841*, newsym_228656)(NU8 symkind, Tident200021* name, Tsym227841* owner, Tlineinfo192352 info);
N_NIMCALL(Tident200021*, getident_200463)(NimStringDesc* identifier);
N_NIMCALL(Tsym227841*, getcompilerproc_276809)(NimStringDesc* name);
N_NIMCALL(void, addvar_404047)(Tnode227809* father, Tnode227809* v);
N_NIMCALL(Tnode227809*, genaddrof_406064)(Tnode227809* n);
N_NIMCALL(void, generatealiaschecks_455250)(Analysisctx453026* a, Tnode227809* result);
N_NIMCALL(void, add_228165)(Tnode227809* father, Tnode227809* son);
N_NIMCALL(Tnode227809*, callcodegenproc_406086)(NimStringDesc* name, Tnode227809* arg1, Tnode227809* arg2, Tnode227809* arg3, Tnode227809* optionalargs);
N_NIMCALL(Tnode227809*, transformspawn_455066)(Tsym227841* owner, Tnode227809* n, Tnode227809* barrier);
N_NIMCALL(Tnode227809*, transformslices_454986)(Tnode227809* n);
N_NIMCALL(Tnode227809*, copynode_231660)(Tnode227809* src);
N_NIMCALL(NU8, spawnresult_406208)(Ttype227847* t, NIM_BOOL inparallel);
N_NIMCALL(Tnode227809*, wrapprocforspawn_406850)(Tsym227841* owner, Tnode227809* spawnexpr, Ttype227847* rettype, Tnode227809* barrier, Tnode227809* dest);
N_NIMCALL(Tnode227809*, transformspawnsons_455074)(Tsym227841* owner, Tnode227809* n, Tnode227809* barrier);
STRING_LITERAL(TMP1038, "slice", 5);
STRING_LITERAL(TMP4260, "+=", 2);
STRING_LITERAL(TMP4261, "[]", 2);
STRING_LITERAL(TMP4262, "invalid usage of counter after increment", 40);
STRING_LITERAL(TMP4268, "cannot prove: ", 14);
STRING_LITERAL(TMP4269, " <= ", 4);
STRING_LITERAL(TMP4270, " (bounds check)", 15);
STRING_LITERAL(TMP4271, "can prove: ", 11);
STRING_LITERAL(TMP4272, " > ", 3);
STRING_LITERAL(TMP4273, "[]=", 3);
STRING_LITERAL(TMP4274, "invalid control flow for \'parallel\'", 35);
STRING_LITERAL(TMP4275, "slot already has a lower bound", 30);
STRING_LITERAL(TMP4276, "\'parallel\' section without \'spawn\'", 34);
STRING_LITERAL(TMP4277, "cannot prove: $# > $#; required for ($#)..($#) disjoint from ($"
"#)..($#)", 71);
STRING_LITERAL(TMP4278, "($#)..($#) not disjoint from ($#)..($#)", 39);
STRING_LITERAL(TMP4279, "cannot prove ($#)..($#) disjoint from ($#)..($#)", 48);
STRING_LITERAL(TMP4280, "barrier", 7);
STRING_LITERAL(TMP4281, "Barrier", 7);
STRING_LITERAL(TMP4282, "openBarrier", 11);
STRING_LITERAL(TMP4283, "invalid context for \'spawn\'", 27);
STRING_LITERAL(TMP4284, "closeBarrier", 12);
Tsym227841* opslice_453055;
extern Gcheap51018 gch_51059;
TNimType NTI453024; /* MonotonicVar */
extern TNimType NTI227807; /* PSym */
extern TNimType NTI227801; /* PNode */
TNimType NTI453022; /* TDirection */
extern TNimType NTI138; /* bool */
TNimType NTI453036; /* seq[MonotonicVar] */
TNimType NTI453039; /* tuple[x: PNode, a: PNode, b: PNode, spawnId: int, inLoop: bool] */
extern TNimType NTI108; /* int */
TNimType NTI453038; /* seq[tuple[x: PNode, a: PNode, b: PNode, spawnId: int, inLoop: bool]] */
extern TNimType NTI227811; /* TSymSeq */
extern TNimType NTI227803; /* TNodeSeq */
extern Tnode227809* emptynode_228807;

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

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

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell48946* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_52646(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell48946* 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, TMP4257)(void* p, NI op) {
	TY453036* a;
	NI LOC1;
	a = (TY453036*)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, TMP4259)(void* p, NI op) {
	TY453038* a;
	NI LOC1;
	a = (TY453038*)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_453059)(Analysisctx453026* Result) {
	unsureAsgnRef((void**) (&(*Result).locals), (TY453036*) newSeq((&NTI453036), 0));
	unsureAsgnRef((void**) (&(*Result).slices), (TY453038*) newSeq((&NTI453038), 0));
	unsureAsgnRef((void**) (&(*Result).args), (Tsymseq227811*) newSeq((&NTI227811), 0));
	unsureAsgnRef((void**) (&(*Result).guards), (Tnodeseq227803*) newSeq((&NTI227803), 0));
}

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

N_NIMCALL(NIM_BOOL, issingleassignable_453356)(Tnode227809* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	Tsym227841* 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_453416)(Tnode227809* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	Tsym227841* 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_453132)(Analysisctx453026* c, Tsym227841* s) {
	NI result;
{	result = 0;
	{
		NI i_453163;
		NI HEX3Atmp_453187;
		NI res_453190;
		i_453163 = 0;
		HEX3Atmp_453187 = 0;
		HEX3Atmp_453187 = (((*c).locals ? (*c).locals->Sup.len : 0) - 1);
		res_453190 = ((NI) 0);
		{
			while (1) {
				if (!(res_453190 <= HEX3Atmp_453187)) goto LA3;
				i_453163 = res_453190;
				{
					NIM_BOOL LOC6;
					LOC6 = 0;
					LOC6 = ((*c).locals->data[i_453163].v == s);
					if (LOC6) goto LA7;
					LOC6 = ((*c).locals->data[i_453163].alias == s);
					LA7: ;
					if (!LOC6) goto LA8;
					result = i_453163;
					goto BeforeRet;
				}
				LA8: ;
				res_453190 += ((NI) 1);
			} LA3: ;
		}
	}
	result = ((NI) -1);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Monotonicvar453024*, getslot_453209)(Analysisctx453026* c, Tsym227841* v) {
	Monotonicvar453024* result;
	NI s;
	NI L;
{	result = 0;
	s = lookupslot_453132((&(*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 = (TY453036*) setLengthSeq(&((*c).locals)->Sup, sizeof(Monotonicvar453024), ((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_228126)(Tnode227809* 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_453244)(Analysisctx453026* c, Tnode227809* n) {
	{
		NI i_453268;
		NI HEX3Atmp_453322;
		NI LOC2;
		NI res_453325;
		i_453268 = 0;
		HEX3Atmp_453322 = 0;
		LOC2 = 0;
		LOC2 = safelen_228126(n);
		HEX3Atmp_453322 = (LOC2 - 1);
		res_453325 = ((NI) 0);
		{
			while (1) {
				Tsym227841* root;
				Tnode227809* LOC5;
				Tnode227809* LOC18;
				if (!(res_453325 <= HEX3Atmp_453322)) goto LA4;
				i_453268 = res_453325;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_228244(n, i_453268);
				root = getroot_406646(LOC5);
				{
					if (!!((root == NIM_NIL))) goto LA8;
					{
						{
							Tsym227841* r_453292;
							Tsymseq227811* HEX3Atmp_453316;
							NI i_453319;
							NI L_453321;
							r_453292 = 0;
							HEX3Atmp_453316 = 0;
							HEX3Atmp_453316 = (*c).args;
							i_453319 = ((NI) 0);
							L_453321 = (HEX3Atmp_453316 ? HEX3Atmp_453316->Sup.len : 0);
							{
								while (1) {
									if (!(i_453319 < L_453321)) goto LA13;
									r_453292 = HEX3Atmp_453316->data[i_453319];
									{
										if (!(r_453292 == root)) goto LA16;
										goto LA10;
									}
									LA16: ;
									i_453319 += ((NI) 1);
								} LA13: ;
							}
						}
						(*c).args = (Tsymseq227811*) incrSeqV2(&((*c).args)->Sup, sizeof(Tsym227841*));
						asgnRefNoCycle((void**) (&(*c).args->data[(*c).args->Sup.len]), root);
						++(*c).args->Sup.len;
					} LA10: ;
				}
				LA8: ;
				LOC18 = 0;
				LOC18 = HEX5BHEX5D_228244(n, i_453268);
				gatherargs_453244(c, LOC18);
				res_453325 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(void, analysesons_454324)(Analysisctx453026* c, Tnode227809* n) {
	{
		NI i_454347;
		NI HEX3Atmp_454349;
		NI LOC2;
		NI res_454352;
		i_454347 = 0;
		HEX3Atmp_454349 = 0;
		LOC2 = 0;
		LOC2 = safelen_228126(n);
		HEX3Atmp_454349 = (LOC2 - 1);
		res_454352 = ((NI) 0);
		{
			while (1) {
				Tnode227809* LOC5;
				if (!(res_454352 <= HEX3Atmp_454349)) goto LA4;
				i_454347 = res_454352;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_228244(n, i_454347);
				analyse_454316(c, LOC5);
				res_454352 += ((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_454393)(Tsym227841* op) {
	NIM_BOOL result;
	Tsym227841* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getmodule_235243(op);
	result = (((*LOC1).flags &(1<<((((NU8) 13))&31)))!=0);
	return result;
}

N_NIMCALL(Tnode227809*, min_454371)(Tnode227809* a, Tnode227809* b) {
	Tnode227809* 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_453476)(Analysisctx453026* c, Tnode227809* n) {
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_453416(n);
		if (!LOC3) goto LA4;
		s = lookupslot_453132(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_198139((*n).info, ((NimStringDesc*) &TMP4262));
		}
		LA10: ;
	}
	goto LA1;
	LA4: ;
	{
		{
			NI i_453513;
			NI HEX3Atmp_453516;
			NI LOC14;
			NI res_453519;
			i_453513 = 0;
			HEX3Atmp_453516 = 0;
			LOC14 = 0;
			LOC14 = safelen_228126(n);
			HEX3Atmp_453516 = (LOC14 - 1);
			res_453519 = ((NI) 0);
			{
				while (1) {
					if (!(res_453519 <= HEX3Atmp_453516)) goto LA16;
					i_453513 = res_453519;
					checklocal_453476(c, (*n).kindU.S6.sons->data[i_453513]);
					res_453519 += ((NI) 1);
				} LA16: ;
			}
		}
	}
	LA1: ;
}

N_NIMCALL(void, addlowerboundasfacts_453573)(Analysisctx453026* c) {
	{
		Monotonicvar453024 v_453811;
		TY453036* HEX3Atmp_453814;
		NI i_453817;
		NI L_453819;
		memset((void*)(&v_453811), 0, sizeof(v_453811));
		HEX3Atmp_453814 = 0;
		HEX3Atmp_453814 = (*c).locals;
		i_453817 = ((NI) 0);
		L_453819 = (HEX3Atmp_453814 ? HEX3Atmp_453814->Sup.len : 0);
		{
			while (1) {
				if (!(i_453817 < L_453819)) goto LA3;
				memcpy((void*)(&v_453811), (NIM_CONST void*)(&HEX3Atmp_453814->data[i_453817]), sizeof(v_453811));
				{
					Tnode227809* LOC8;
					if (!!(v_453811.blacklisted)) goto LA6;
					LOC8 = 0;
					LOC8 = newsymnode_229325(v_453811.v);
					addfactle_362849((&(*c).guards), v_453811.lower, LOC8);
				}
				LA6: ;
				i_453817 += ((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_453545)(Analysisctx453026* c, Tnode227809* a, Tnode227809* b) {
	NU8 LOC1;
	LOC1 = 0;
	LOC1 = provele_362823((*c).guards, a, b);
	switch (LOC1) {
	case ((NU8) 0):
	{
		NimStringDesc* LOC3;
		NimStringDesc* LOC4;
		NimStringDesc* LOC5;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = rendertree_249059(a, 0);
		LOC5 = 0;
		LOC5 = rendertree_249059(b, 0);
		LOC3 = rawNewString(LOC4->Sup.len + LOC5->Sup.len + 33);
appendString(LOC3, ((NimStringDesc*) &TMP4268));
appendString(LOC3, LOC4);
appendString(LOC3, ((NimStringDesc*) &TMP4269));
appendString(LOC3, LOC5);
appendString(LOC3, ((NimStringDesc*) &TMP4270));
		localerror_198139((*a).info, LOC3);
	}
	break;
	case ((NU8) 2):
	{
	}
	break;
	case ((NU8) 1):
	{
		NimStringDesc* LOC8;
		NimStringDesc* LOC9;
		NimStringDesc* LOC10;
		LOC8 = 0;
		LOC9 = 0;
		LOC9 = rendertree_249059(a, 0);
		LOC10 = 0;
		LOC10 = rendertree_249059(b, 0);
		LOC8 = rawNewString(LOC9->Sup.len + LOC10->Sup.len + 29);
appendString(LOC8, ((NimStringDesc*) &TMP4271));
appendString(LOC8, LOC9);
appendString(LOC8, ((NimStringDesc*) &TMP4272));
appendString(LOC8, LOC10);
appendString(LOC8, ((NimStringDesc*) &TMP4270));
		localerror_198139((*a).info, LOC8);
	}
	break;
	}
}

N_NIMCALL(void, checkbounds_453560)(Analysisctx453026* c, Tnode227809* arr, Tnode227809* idx) {
	Tnode227809* LOC1;
	Tnode227809* LOC2;
	LOC1 = 0;
	LOC1 = lowbound_359702(arr);
	checkle_453545(c, LOC1, idx);
	LOC2 = 0;
	LOC2 = highbound_359712(arr);
	checkle_453545(c, idx, LOC2);
}

N_NIMCALL(void, addslice_453835)(Analysisctx453026* c, Tnode227809* n, Tnode227809* x, Tnode227809* le_453841, Tnode227809* ri_453842) {
	Tnode227809* le;
	Tnode227809* ri;
	NI oldstate;
	TY453039 LOC1;
	checklocal_453476((&(*c)), n);
	le = canon_359843(le_453841);
	ri = canon_359843(ri_453842);
	oldstate = ((*c).guards ? (*c).guards->Sup.len : 0);
	addlowerboundasfacts_453573(c);
	checkbounds_453560((&(*c)), x, le);
	checkbounds_453560((&(*c)), x, ri);
	(*c).guards = (Tnodeseq227803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode227809*), ((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 = (TY453038*) incrSeqV2(&((*c).slices)->Sup, sizeof(TY453039));
	genericAssign((void*)(&(*c).slices->data[(*c).slices->Sup.len]), (void*)(&LOC1), (&NTI453039));
	++(*c).slices->Sup.len;
}

N_NIMCALL(void, analysecall_454422)(Analysisctx453026* c, Tnode227809* n, Tsym227841* op) {
	{
		NI oldspawnid;
		Tnode227809* LOC5;
		if (!((*op).magic == ((NU8) 201))) goto LA3;
		(*c).spawns += ((NI) 1);
		oldspawnid = (*c).currentspawnid;
		(*c).currentspawnid = (*c).spawns;
		LOC5 = 0;
		LOC5 = HEX5BHEX5D_228244(n, ((NI) 1));
		gatherargs_453244(c, LOC5);
		analysesons_454324(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*) &TMP4260));
		if (!(LOC9)) goto LA10;
		LOC9 = fromsystem_454393(op);
		LA10: ;
		LOC7 = LOC9;
		LA8: ;
		if (!LOC7) goto LA11;
		{
			Tnode227809* LOC15;
			NIM_BOOL LOC16;
			Tnode227809* incr;
			Tnode227809* LOC19;
			LOC15 = 0;
			LOC15 = HEX5BHEX5D_228244(n, ((NI) 1));
			LOC16 = 0;
			LOC16 = islocal_453416(LOC15);
			if (!LOC16) goto LA17;
			LOC19 = 0;
			LOC19 = HEX5BHEX5D_228244(n, ((NI) 2));
			incr = skipconv_266935(LOC19);
			{
				NIM_BOOL LOC22;
				Monotonicvar453024* slot;
				Tnode227809* 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_228244(n, ((NI) 1));
				slot = getslot_453209(c, (*LOC26).kindU.S4.sym);
				unsureAsgnRef((void**) (&(*slot).stride), min_454371((*slot).stride, incr));
			}
			LA24: ;
		}
		LA17: ;
		analysesons_454324(c, n);
	}
	goto LA1;
	LA11: ;
	{
		NIM_BOOL LOC28;
		Tnode227809* slice;
		Tnode227809* LOC32;
		Tnode227809* LOC33;
		Tnode227809* LOC34;
		Tnode227809* LOC35;
		LOC28 = 0;
		LOC28 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4261));
		if (!(LOC28)) goto LA29;
		LOC28 = fromsystem_454393(op);
		LA29: ;
		if (!LOC28) goto LA30;
		LOC32 = 0;
		LOC32 = HEX5BHEX5D_228244(n, ((NI) 2));
		slice = skipstmtlist_232985(LOC32);
		LOC33 = 0;
		LOC33 = HEX5BHEX5D_228244(n, ((NI) 1));
		LOC34 = 0;
		LOC34 = HEX5BHEX5D_228244(slice, ((NI) 1));
		LOC35 = 0;
		LOC35 = HEX5BHEX5D_228244(slice, ((NI) 2));
		addslice_453835(c, n, LOC33, LOC34, LOC35);
		analysesons_454324(c, n);
	}
	goto LA1;
	LA30: ;
	{
		NIM_BOOL LOC37;
		Tnode227809* slice;
		Tnode227809* LOC41;
		Tnode227809* LOC42;
		Tnode227809* LOC43;
		Tnode227809* LOC44;
		LOC37 = 0;
		LOC37 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4273));
		if (!(LOC37)) goto LA38;
		LOC37 = fromsystem_454393(op);
		LA38: ;
		if (!LOC37) goto LA39;
		LOC41 = 0;
		LOC41 = HEX5BHEX5D_228244(n, ((NI) 2));
		slice = skipstmtlist_232985(LOC41);
		LOC42 = 0;
		LOC42 = HEX5BHEX5D_228244(n, ((NI) 1));
		LOC43 = 0;
		LOC43 = HEX5BHEX5D_228244(slice, ((NI) 1));
		LOC44 = 0;
		LOC44 = HEX5BHEX5D_228244(slice, ((NI) 2));
		addslice_453835(c, n, LOC42, LOC43, LOC44);
		analysesons_454324(c, n);
	}
	goto LA1;
	LA39: ;
	{
		analysesons_454324(c, n);
	}
	LA1: ;
}

static N_INLINE(NI, len_228098)(Tnode227809* 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_454495)(Analysisctx453026* c, Tnode227809* n) {
	NI oldfacts;
	analyse_454316(c, (*n).kindU.S6.sons->data[((NI) 0)]);
	oldfacts = ((*c).guards ? (*c).guards->Sup.len : 0);
	{
		NI i_454529;
		NI HEX3Atmp_454583;
		NI LOC2;
		NI res_454586;
		i_454529 = 0;
		HEX3Atmp_454583 = 0;
		LOC2 = 0;
		LOC2 = len_228098(n);
		HEX3Atmp_454583 = (LOC2 - 1);
		res_454586 = ((NI) 1);
		{
			while (1) {
				Tnode227809* branch;
				if (!(res_454586 <= HEX3Atmp_454583)) goto LA4;
				i_454529 = res_454586;
				branch = (*n).kindU.S6.sons->data[i_454529];
				(*c).guards = (Tnodeseq227803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode227809*), ((NI) (oldfacts)));
				addcasebranchfacts_363137((&(*c).guards), n, i_454529);
				{
					NI i_454562;
					NI HEX3Atmp_454576;
					NI LOC6;
					NI res_454579;
					i_454562 = 0;
					HEX3Atmp_454576 = 0;
					LOC6 = 0;
					LOC6 = len_228098(branch);
					HEX3Atmp_454576 = (LOC6 - 1);
					res_454579 = ((NI) 0);
					{
						while (1) {
							if (!(res_454579 <= HEX3Atmp_454576)) goto LA8;
							i_454562 = res_454579;
							analyse_454316(c, (*branch).kindU.S6.sons->data[i_454562]);
							res_454579 += ((NI) 1);
						} LA8: ;
					}
				}
				res_454586 += ((NI) 1);
			} LA4: ;
		}
	}
	(*c).guards = (Tnodeseq227803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode227809*), ((NI) (oldfacts)));
}

N_NIMCALL(void, analyseif_454614)(Analysisctx453026* c, Tnode227809* n) {
	NI oldfacts;
	Tnode227809* LOC1;
	analyse_454316(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_359843((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
	addfact_360392((&(*c).guards), LOC1);
	analyse_454316(c, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]);
	{
		NI i_454654;
		NI HEX3Atmp_454732;
		NI LOC3;
		NI res_454735;
		i_454654 = 0;
		HEX3Atmp_454732 = 0;
		LOC3 = 0;
		LOC3 = len_228098(n);
		HEX3Atmp_454732 = (LOC3 - 1);
		res_454735 = ((NI) 1);
		{
			while (1) {
				Tnode227809* branch;
				if (!(res_454735 <= HEX3Atmp_454732)) goto LA5;
				i_454654 = res_454735;
				branch = (*n).kindU.S6.sons->data[i_454654];
				(*c).guards = (Tnodeseq227803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode227809*), ((NI) (oldfacts)));
				{
					NI j_454677;
					NI HEX3Atmp_454717;
					NI res_454720;
					j_454677 = 0;
					HEX3Atmp_454717 = 0;
					HEX3Atmp_454717 = (NI)(i_454654 - ((NI) 1));
					res_454720 = ((NI) 0);
					{
						while (1) {
							Tnode227809* LOC9;
							if (!(res_454720 <= HEX3Atmp_454717)) goto LA8;
							j_454677 = res_454720;
							LOC9 = 0;
							LOC9 = canon_359843((*(*n).kindU.S6.sons->data[j_454677]).kindU.S6.sons->data[((NI) 0)]);
							addfactneg_360426((&(*c).guards), LOC9);
							res_454720 += ((NI) 1);
						} LA8: ;
					}
				}
				{
					NI LOC12;
					Tnode227809* LOC15;
					LOC12 = 0;
					LOC12 = len_228098(branch);
					if (!(((NI) 1) < LOC12)) goto LA13;
					LOC15 = 0;
					LOC15 = canon_359843((*branch).kindU.S6.sons->data[((NI) 0)]);
					addfact_360392((&(*c).guards), LOC15);
				}
				LA13: ;
				{
					NI i_454703;
					NI HEX3Atmp_454725;
					NI LOC17;
					NI res_454728;
					i_454703 = 0;
					HEX3Atmp_454725 = 0;
					LOC17 = 0;
					LOC17 = len_228098(branch);
					HEX3Atmp_454725 = (LOC17 - 1);
					res_454728 = ((NI) 0);
					{
						while (1) {
							if (!(res_454728 <= HEX3Atmp_454725)) goto LA19;
							i_454703 = res_454728;
							analyse_454316(c, (*branch).kindU.S6.sons->data[i_454703]);
							res_454728 += ((NI) 1);
						} LA19: ;
					}
				}
				res_454735 += ((NI) 1);
			} LA5: ;
		}
	}
	(*c).guards = (Tnodeseq227803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode227809*), ((NI) (oldfacts)));
}

N_NIMCALL(void, analyse_454316)(Analysisctx453026* c, Tnode227809* n) {
	switch ((*n).kind) {
	case ((NU8) 73):
	case ((NU8) 74):
	{
		Tnode227809* y;
		Tnode227809* LOC2;
		Tnode227809* LOC17;
		Tnode227809* value;
		Tnode227809* LOC27;
		LOC2 = 0;
		LOC2 = HEX5BHEX5D_228244(n, ((NI) 1));
		y = skipconv_266935(LOC2);
		{
			NIM_BOOL LOC5;
			Tnode227809* LOC6;
			Monotonicvar453024* slot;
			Tnode227809* LOC10;
			LOC5 = 0;
			LOC6 = 0;
			LOC6 = HEX5BHEX5D_228244(n, ((NI) 0));
			LOC5 = issingleassignable_453356(LOC6);
			if (!(LOC5)) goto LA7;
			LOC5 = islocal_453416(y);
			LA7: ;
			if (!LOC5) goto LA8;
			slot = getslot_453209(c, (*y).kindU.S4.sym);
			LOC10 = 0;
			LOC10 = HEX5BHEX5D_228244(n, ((NI) 0));
			unsureAsgnRef((void**) (&(*slot).alias), (*LOC10).kindU.S4.sym);
		}
		goto LA3;
		LA8: ;
		{
			Tnode227809* LOC12;
			NIM_BOOL LOC13;
			Monotonicvar453024* slot;
			Tnode227809* LOC16;
			LOC12 = 0;
			LOC12 = HEX5BHEX5D_228244(n, ((NI) 0));
			LOC13 = 0;
			LOC13 = islocal_453416(LOC12);
			if (!LOC13) goto LA14;
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_228244(n, ((NI) 0));
			slot = getslot_453209(c, (*LOC16).kindU.S4.sym);
			(*slot).blacklisted = NIM_TRUE;
		}
		goto LA3;
		LA14: ;
		LA3: ;
		LOC17 = 0;
		LOC17 = HEX5BHEX5D_228244(n, ((NI) 0));
		invalidatefacts_360659((&(*c).guards), LOC17);
		value = HEX5BHEX5D_228244(n, ((NI) 1));
		{
			NU8 LOC20;
			NI oldspawnid;
			Tnode227809* LOC23;
			Tnode227809* LOC24;
			Tnode227809* LOC25;
			LOC20 = 0;
			LOC20 = getmagic_256417(value);
			if (!(LOC20 == ((NU8) 201))) goto LA21;
			(*c).spawns += ((NI) 1);
			oldspawnid = (*c).currentspawnid;
			(*c).currentspawnid = (*c).spawns;
			LOC23 = 0;
			LOC23 = HEX5BHEX5D_228244(value, ((NI) 1));
			gatherargs_453244(c, LOC23);
			LOC24 = 0;
			LOC24 = HEX5BHEX5D_228244(value, ((NI) 1));
			analysesons_454324(c, LOC24);
			LOC25 = 0;
			LOC25 = HEX5BHEX5D_228244(n, ((NI) 0));
			analyse_454316(c, LOC25);
			(*c).currentspawnid = oldspawnid;
		}
		goto LA18;
		LA21: ;
		{
			analysesons_454324(c, n);
		}
		LA18: ;
		LOC27 = 0;
		LOC27 = HEX5BHEX5D_228244(n, ((NI) 0));
		addasgnfact_363086((&(*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):
	{
		{
			Tnode227809* LOC31;
			Tnode227809* LOC34;
			LOC31 = 0;
			LOC31 = HEX5BHEX5D_228244(n, ((NI) 0));
			if (!((*LOC31).kind == ((NU8) 3))) goto LA32;
			LOC34 = 0;
			LOC34 = HEX5BHEX5D_228244(n, ((NI) 0));
			analysecall_454422(c, n, (*LOC34).kindU.S4.sym);
		}
		goto LA29;
		LA32: ;
		{
			analysesons_454324(c, n);
		}
		LA29: ;
	}
	break;
	case ((NU8) 42):
	{
		Tnode227809* LOC37;
		Tnode227809* LOC38;
		Tnode227809* LOC39;
		LOC37 = 0;
		LOC37 = HEX5BHEX5D_228244(n, ((NI) 0));
		LOC38 = 0;
		LOC38 = HEX5BHEX5D_228244(n, ((NI) 1));
		LOC39 = 0;
		LOC39 = HEX5BHEX5D_228244(n, ((NI) 1));
		addslice_453835(c, n, LOC37, LOC38, LOC39);
		analysesons_454324(c, n);
	}
	break;
	case ((NU8) 109):
	case ((NU8) 108):
	case ((NU8) 106):
	{
		localerror_198139((*n).info, ((NimStringDesc*) &TMP4274));
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		{
			Tnode227809* it_454819;
			it_454819 = 0;
			{
				NI i_454952;
				NI HEX3Atmp_454954;
				NI LOC44;
				NI res_454956;
				i_454952 = 0;
				HEX3Atmp_454954 = 0;
				LOC44 = 0;
				LOC44 = len_228098(n);
				HEX3Atmp_454954 = (LOC44 - 1);
				res_454956 = ((NI) 0);
				{
					while (1) {
						Tnode227809* value;
						NIM_BOOL isspawned;
						NU8 LOC47;
						if (!(res_454956 <= HEX3Atmp_454954)) goto LA46;
						i_454952 = res_454956;
						it_454819 = (*n).kindU.S6.sons->data[i_454952];
						value = lastson_230406(it_454819);
						LOC47 = 0;
						LOC47 = getmagic_256417(value);
						isspawned = (LOC47 == ((NU8) 201));
						{
							NI oldspawnid;
							Tnode227809* LOC52;
							Tnode227809* LOC53;
							if (!isspawned) goto LA50;
							(*c).spawns += ((NI) 1);
							oldspawnid = (*c).currentspawnid;
							(*c).currentspawnid = (*c).spawns;
							LOC52 = 0;
							LOC52 = HEX5BHEX5D_228244(value, ((NI) 1));
							gatherargs_453244(c, LOC52);
							LOC53 = 0;
							LOC53 = HEX5BHEX5D_228244(value, ((NI) 1));
							analysesons_454324(c, LOC53);
							(*c).currentspawnid = oldspawnid;
						}
						LA50: ;
						{
							if (!!(((*value).kind == ((NU8) 1)))) goto LA56;
							{
								NI j_454862;
								NI HEX3Atmp_454942;
								NI LOC59;
								NI res_454945;
								j_454862 = 0;
								HEX3Atmp_454942 = 0;
								LOC59 = 0;
								LOC59 = len_228098(it_454819);
								HEX3Atmp_454942 = (NI)(LOC59 - ((NI) 3));
								res_454945 = ((NI) 0);
								{
									while (1) {
										if (!(res_454945 <= HEX3Atmp_454942)) goto LA61;
										j_454862 = res_454945;
										{
											Tnode227809* LOC64;
											NIM_BOOL LOC65;
											Monotonicvar453024* slot;
											Tnode227809* LOC68;
											LOC64 = 0;
											LOC64 = HEX5BHEX5D_228244(it_454819, j_454862);
											LOC65 = 0;
											LOC65 = islocal_453416(LOC64);
											if (!LOC65) goto LA66;
											LOC68 = 0;
											LOC68 = HEX5BHEX5D_228244(it_454819, j_454862);
											slot = getslot_453209(c, (*LOC68).kindU.S4.sym);
											{
												if (!(*slot).lower == 0) goto LA71;
												unsureAsgnRef((void**) (&(*slot).lower), value);
											}
											goto LA69;
											LA71: ;
											{
												internalerror_198172((*it_454819).info, ((NimStringDesc*) &TMP4275));
											}
											LA69: ;
										}
										LA66: ;
										res_454945 += ((NI) 1);
									} LA61: ;
								}
							}
							{
								if (!!(isspawned)) goto LA76;
								analyse_454316(c, value);
							}
							LA76: ;
						}
						LA56: ;
						res_454956 += ((NI) 1);
					} LA46: ;
				}
			}
		}
	}
	break;
	case ((NU8) 97):
	{
		analysecase_454495(c, n);
	}
	break;
	case ((NU8) 93):
	case ((NU8) 92):
	case ((NU8) 48):
	{
		analyseif_454614(c, n);
	}
	break;
	case ((NU8) 96):
	{
		analyse_454316(c, (*n).kindU.S6.sons->data[((NI) 0)]);
		(*c).inloop += ((NI) 1);
		{
			NIM_BOOL LOC83;
			LOC83 = 0;
			LOC83 = istrue_371402((*n).kindU.S6.sons->data[((NI) 0)]);
			if (!LOC83) goto LA84;
			analysesons_454324(c, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		goto LA81;
		LA84: ;
		{
			NI oldstate;
			NI oldfacts;
			Tnode227809* LOC87;
			oldstate = ((*c).locals ? (*c).locals->Sup.len : 0);
			oldfacts = ((*c).guards ? (*c).guards->Sup.len : 0);
			LOC87 = 0;
			LOC87 = canon_359843((*n).kindU.S6.sons->data[((NI) 0)]);
			addfact_360392((&(*c).guards), LOC87);
			analyse_454316(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			(*c).locals = (TY453036*) setLengthSeq(&((*c).locals)->Sup, sizeof(Monotonicvar453024), ((NI) (oldstate)));
			(*c).guards = (Tnodeseq227803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode227809*), ((NI) (oldfacts)));
			{
				NIM_BOOL LOC90;
				Tnode227809* LOC93;
				LOC90 = 0;
				LOC90 = hassubnodewith_232439((*n).kindU.S6.sons->data[((NI) 1)], ((NU8) 110));
				if (!!(LOC90)) goto LA91;
				LOC93 = 0;
				LOC93 = canon_359843((*n).kindU.S6.sons->data[((NI) 0)]);
				addfactneg_360426((&(*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_454324(c, n);
	}
	break;
	}
}

N_NIMCALL(void, overlap_453883)(Tnodeseq227803* m, Tnode227809* x, Tnode227809* y, Tnode227809* c, Tnode227809* d) {
	NU8 LOC1;
	LOC1 = 0;
	LOC1 = provele_362823(m, c, y);
	switch (LOC1) {
	case ((NU8) 0):
	{
		NU8 LOC3;
		LOC3 = 0;
		LOC3 = provele_362823(m, x, d);
		switch (LOC3) {
		case ((NU8) 1):
		{
		}
		break;
		case ((NU8) 0):
		case ((NU8) 2):
		{
			TY453890 LOC6;
			NimStringDesc* LOC7;
			memset((void*)LOC6, 0, sizeof(LOC6));
			LOC6[0] = rendertree_249059(c, 0);
			LOC6[1] = rendertree_249059(y, 0);
			LOC6[2] = rendertree_249059(x, 0);
			LOC6[3] = rendertree_249059(y, 0);
			LOC6[4] = rendertree_249059(c, 0);
			LOC6[5] = rendertree_249059(d, 0);
			LOC7 = 0;
			LOC7 = nsuFormatOpenArray(((NimStringDesc*) &TMP4277), LOC6, 6);
			localerror_198139((*x).info, LOC7);
		}
		break;
		}
	}
	break;
	case ((NU8) 2):
	{
		NU8 LOC9;
		LOC9 = 0;
		LOC9 = provele_362823(m, x, d);
		switch (LOC9) {
		case ((NU8) 0):
		{
			TY453890 LOC11;
			NimStringDesc* LOC12;
			memset((void*)LOC11, 0, sizeof(LOC11));
			LOC11[0] = rendertree_249059(x, 0);
			LOC11[1] = rendertree_249059(d, 0);
			LOC11[2] = rendertree_249059(x, 0);
			LOC11[3] = rendertree_249059(y, 0);
			LOC11[4] = rendertree_249059(c, 0);
			LOC11[5] = rendertree_249059(d, 0);
			LOC12 = 0;
			LOC12 = nsuFormatOpenArray(((NimStringDesc*) &TMP4277), LOC11, 6);
			localerror_198139((*x).info, LOC12);
		}
		break;
		case ((NU8) 2):
		{
			TY453890 LOC14;
			NimStringDesc* LOC15;
			memset((void*)LOC14, 0, sizeof(LOC14));
			LOC14[0] = rendertree_249059(c, 0);
			LOC14[1] = rendertree_249059(y, 0);
			LOC14[2] = rendertree_249059(x, 0);
			LOC14[3] = rendertree_249059(y, 0);
			LOC14[4] = rendertree_249059(c, 0);
			LOC14[5] = rendertree_249059(d, 0);
			LOC15 = 0;
			LOC15 = nsuFormatOpenArray(((NimStringDesc*) &TMP4278), LOC14, 6);
			localerror_198139((*x).info, LOC15);
		}
		break;
		case ((NU8) 1):
		{
		}
		break;
		}
	}
	break;
	case ((NU8) 1):
	{
	}
	break;
	}
}

N_NIMCALL(Tnode227809*, substride_453993)(Analysisctx453026* c, Tnode227809* n) {
	Tnode227809* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_453416(n);
		if (!LOC3) goto LA4;
		s = lookupslot_453132(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_360160(n, (*(*c).locals->data[s].stride).kindU.S1.intval);
		}
		goto LA6;
		LA10: ;
		{
			result = n;
		}
		LA6: ;
	}
	goto LA1;
	LA4: ;
	{
		NI LOC14;
		LOC14 = 0;
		LOC14 = safelen_228126(n);
		if (!(((NI) 0) < LOC14)) goto LA15;
		result = shallowcopy_231817(n);
		{
			NI i_454033;
			NI HEX3Atmp_454037;
			NI LOC18;
			NI res_454040;
			i_454033 = 0;
			HEX3Atmp_454037 = 0;
			LOC18 = 0;
			LOC18 = len_228098(n);
			HEX3Atmp_454037 = (LOC18 - 1);
			res_454040 = ((NI) 0);
			{
				while (1) {
					if (!(res_454040 <= HEX3Atmp_454037)) goto LA20;
					i_454033 = res_454040;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_454033]), substride_453993(c, (*n).kindU.S6.sons->data[i_454033]));
					res_454040 += ((NI) 1);
				} LA20: ;
			}
		}
	}
	goto LA1;
	LA15: ;
	{
		result = n;
	}
	LA1: ;
	return result;
}

N_NIMCALL(NI64, stride_453920)(Analysisctx453026* c, Tnode227809* n) {
	NI64 result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_453416(n);
		if (!LOC3) goto LA4;
		s = lookupslot_453132(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_453959;
			NI HEX3Atmp_453971;
			NI LOC14;
			NI res_453974;
			i_453959 = 0;
			HEX3Atmp_453971 = 0;
			LOC14 = 0;
			LOC14 = safelen_228126(n);
			HEX3Atmp_453971 = (LOC14 - 1);
			res_453974 = ((NI) 0);
			{
				while (1) {
					NI64 LOC17;
					if (!(res_453974 <= HEX3Atmp_453971)) goto LA16;
					i_453959 = res_453974;
					LOC17 = 0;
					LOC17 = stride_453920(c, (*n).kindU.S6.sons->data[i_453959]);
					result += LOC17;
					res_453974 += ((NI) 1);
				} LA16: ;
			}
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, checkslicesaredisjoint_454059)(Analysisctx453026* c) {
	addlowerboundasfacts_453573(c);
	{
		Tnode227809* x_454211;
		Tnode227809* a_454212;
		Tnode227809* b_454213;
		NI id_454214;
		NIM_BOOL inloop_454215;
		TY453038* HEX3Atmp_454260;
		NI i_454263;
		NI L_454265;
		x_454211 = 0;
		a_454212 = 0;
		b_454213 = 0;
		id_454214 = 0;
		inloop_454215 = 0;
		HEX3Atmp_454260 = 0;
		HEX3Atmp_454260 = (*c).slices;
		i_454263 = ((NI) 0);
		L_454265 = (HEX3Atmp_454260 ? HEX3Atmp_454260->Sup.len : 0);
		{
			while (1) {
				if (!(i_454263 < L_454265)) goto LA3;
				x_454211 = HEX3Atmp_454260->data[i_454263].Field0;
				a_454212 = HEX3Atmp_454260->data[i_454263].Field1;
				b_454213 = HEX3Atmp_454260->data[i_454263].Field2;
				id_454214 = HEX3Atmp_454260->data[i_454263].Field3;
				inloop_454215 = HEX3Atmp_454260->data[i_454263].Field4;
				{
					Tnode227809* LOC8;
					Tnode227809* LOC9;
					if (!inloop_454215) goto LA6;
					LOC8 = 0;
					LOC8 = substride_453993((&(*c)), a_454212);
					LOC9 = 0;
					LOC9 = substride_453993((&(*c)), b_454213);
					overlap_453883((*c).guards, a_454212, b_454213, LOC8, LOC9);
				}
				LA6: ;
				i_454263 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NI i_454226;
		NI HEX3Atmp_454276;
		NI res_454279;
		i_454226 = 0;
		HEX3Atmp_454276 = 0;
		HEX3Atmp_454276 = ((*c).slices ? ((*c).slices->Sup.len-1) : -1);
		res_454279 = ((NI) 0);
		{
			while (1) {
				if (!(res_454279 <= HEX3Atmp_454276)) goto LA12;
				i_454226 = res_454279;
				{
					NI j_454237;
					NI HEX3Atmp_454268;
					NI HEX3Atmp_454269;
					NI res_454272;
					j_454237 = 0;
					HEX3Atmp_454268 = 0;
					HEX3Atmp_454269 = 0;
					HEX3Atmp_454268 = (NI)(i_454226 + ((NI) 1));
					HEX3Atmp_454269 = ((*c).slices ? ((*c).slices->Sup.len-1) : -1);
					res_454272 = HEX3Atmp_454268;
					{
						while (1) {
							TY453039 x;
							TY453039 y;
							if (!(res_454272 <= HEX3Atmp_454269)) goto LA15;
							j_454237 = res_454272;
							memset((void*)(&x), 0, sizeof(x));
							memcpy((void*)(&x), (NIM_CONST void*)(&(*c).slices->data[i_454226]), sizeof(x));
							memset((void*)(&y), 0, sizeof(y));
							memcpy((void*)(&y), (NIM_CONST void*)(&(*c).slices->data[j_454237]), sizeof(y));
							{
								NIM_BOOL LOC18;
								LOC18 = 0;
								LOC18 = !((x.Field3 == y.Field3));
								if (!(LOC18)) goto LA19;
								LOC18 = sametree_360462(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_453883((*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_361464(x.Field1, x.Field2);
									m = simpleslice_361464(y.Field1, y.Field2);
									LOC29 = 0;
									LOC29 = (IL64(0) <= k);
									if (!(LOC29)) goto LA30;
									LOC29 = (IL64(0) <= m);
									LA30: ;
									if (!LOC29) goto LA31;
									overlap_453883((*c).guards, x.Field1, x.Field2, y.Field1, y.Field2);
									LOC33 = 0;
									LOC33 = stride_453920((&(*c)), x.Field1);
									LOC34 = 0;
									LOC34 = stride_453920((&(*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: ;
									{
										TY196829 LOC42;
										NimStringDesc* LOC43;
										memset((void*)LOC42, 0, sizeof(LOC42));
										LOC42[0] = rendertree_249059(x.Field1, 0);
										LOC42[1] = rendertree_249059(x.Field2, 0);
										LOC42[2] = rendertree_249059(y.Field1, 0);
										LOC42[3] = rendertree_249059(y.Field2, 0);
										LOC43 = 0;
										LOC43 = nsuFormatOpenArray(((NimStringDesc*) &TMP4279), LOC42, 4);
										localerror_198139((*x.Field0).info, LOC43);
									}
									LA35: ;
								}
								goto LA22;
								LA31: ;
								{
									TY196829 LOC45;
									NimStringDesc* LOC46;
									memset((void*)LOC45, 0, sizeof(LOC45));
									LOC45[0] = rendertree_249059(x.Field1, 0);
									LOC45[1] = rendertree_249059(x.Field2, 0);
									LOC45[2] = rendertree_249059(y.Field1, 0);
									LOC45[3] = rendertree_249059(y.Field2, 0);
									LOC46 = 0;
									LOC46 = nsuFormatOpenArray(((NimStringDesc*) &TMP4279), LOC45, 4);
									localerror_198139((*x.Field0).info, LOC46);
								}
								LA22: ;
							}
							LA20: ;
							res_454272 += ((NI) 1);
						} LA15: ;
					}
				}
				res_454279 += ((NI) 1);
			} LA12: ;
		}
	}
}

N_NIMCALL(void, checkargs_455239)(Analysisctx453026* a, Tnode227809* n) {
}

N_NIMCALL(void, generatealiaschecks_455250)(Analysisctx453026* a, Tnode227809* result) {
}

N_NIMCALL(Tnode227809*, transformslices_454986)(Tnode227809* n) {
	Tnode227809* result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		Tnode227809* LOC5;
		Tsym227841* op;
		Tnode227809* 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_228244(n, ((NI) 0));
		LOC3 = ((*LOC5).kind == ((NU8) 3));
		LA4: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = HEX5BHEX5D_228244(n, ((NI) 0));
		op = (*LOC8).kindU.S4.sym;
		{
			NIM_BOOL LOC11;
			Tnode227809* LOC15;
			Tnode227809* LOC16;
			Tnode227809* slice;
			Tnode227809* LOC17;
			Tnode227809* LOC18;
			Tnode227809* LOC19;
			LOC11 = 0;
			LOC11 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4261));
			if (!(LOC11)) goto LA12;
			LOC11 = fromsystem_454393(op);
			LA12: ;
			if (!LOC11) goto LA13;
			result = copynode_231660(n);
			LOC15 = 0;
			LOC15 = newsymnode_229325(opslice_453055);
			add_228165(result, LOC15);
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_228244(n, ((NI) 1));
			add_228165(result, LOC16);
			LOC17 = 0;
			LOC17 = HEX5BHEX5D_228244(n, ((NI) 2));
			slice = skipstmtlist_232985(LOC17);
			LOC18 = 0;
			LOC18 = HEX5BHEX5D_228244(slice, ((NI) 1));
			add_228165(result, LOC18);
			LOC19 = 0;
			LOC19 = HEX5BHEX5D_228244(slice, ((NI) 2));
			add_228165(result, LOC19);
			goto BeforeRet;
		}
		LA13: ;
	}
	LA6: ;
	{
		NI LOC22;
		LOC22 = 0;
		LOC22 = safelen_228126(n);
		if (!(((NI) 0) < LOC22)) goto LA23;
		result = shallowcopy_231817(n);
		{
			NI i_455040;
			NI HEX3Atmp_455044;
			NI LOC26;
			NI res_455047;
			i_455040 = 0;
			HEX3Atmp_455044 = 0;
			LOC26 = 0;
			LOC26 = len_228098(n);
			HEX3Atmp_455044 = (LOC26 - 1);
			res_455047 = ((NI) 0);
			{
				while (1) {
					if (!(res_455047 <= HEX3Atmp_455044)) goto LA28;
					i_455040 = res_455047;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_455040]), transformslices_454986((*n).kindU.S6.sons->data[i_455040]));
					res_455047 += ((NI) 1);
				} LA28: ;
			}
		}
	}
	goto LA20;
	LA23: ;
	{
		result = n;
	}
	LA20: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode227809*, transformspawnsons_455074)(Tsym227841* owner, Tnode227809* n, Tnode227809* barrier) {
	Tnode227809* result;
	result = 0;
	result = shallowcopy_231817(n);
	{
		NI i_455099;
		NI HEX3Atmp_455103;
		NI LOC2;
		NI res_455106;
		i_455099 = 0;
		HEX3Atmp_455103 = 0;
		LOC2 = 0;
		LOC2 = len_228098(n);
		HEX3Atmp_455103 = (LOC2 - 1);
		res_455106 = ((NI) 0);
		{
			while (1) {
				if (!(res_455106 <= HEX3Atmp_455103)) goto LA4;
				i_455099 = res_455106;
				asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_455099]), transformspawn_455066(owner, (*n).kindU.S6.sons->data[i_455099], barrier));
				res_455106 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(Tnode227809*, transformspawn_455066)(Tsym227841* owner, Tnode227809* n, Tnode227809* barrier) {
	Tnode227809* result;
{	result = 0;
	switch ((*n).kind) {
	case ((NU8) 99):
	case ((NU8) 100):
	{
		result = NIM_NIL;
		{
			Tnode227809* it_455131;
			it_455131 = 0;
			{
				NI i_455214;
				NI HEX3Atmp_455216;
				NI LOC4;
				NI res_455218;
				i_455214 = 0;
				HEX3Atmp_455216 = 0;
				LOC4 = 0;
				LOC4 = len_228098(n);
				HEX3Atmp_455216 = (LOC4 - 1);
				res_455218 = ((NI) 0);
				{
					while (1) {
						Tnode227809* b;
						if (!(res_455218 <= HEX3Atmp_455216)) goto LA6;
						i_455214 = res_455218;
						it_455131 = (*n).kindU.S6.sons->data[i_455214];
						b = lastson_230406(it_455131);
						{
							NU8 LOC9;
							Tnode227809* m;
							Ttype227847* t;
							Tnode227809* LOC21;
							Tnode227809* LOC22;
							LOC9 = 0;
							LOC9 = getmagic_256417(b);
							if (!(LOC9 == ((NU8) 201))) goto LA10;
							{
								NI LOC14;
								LOC14 = 0;
								LOC14 = len_228098(it_455131);
								if (!!((LOC14 == ((NI) 3)))) goto LA15;
								localerror_198139((*it_455131).info, ((NimStringDesc*) &TMP4283));
							}
							LA15: ;
							m = transformslices_454986(b);
							{
								if (!result == 0) goto LA19;
								result = newnodei_229351(((NU8) 115), (*n).info);
								add_228165(result, n);
							}
							LA19: ;
							LOC21 = 0;
							LOC21 = HEX5BHEX5D_228244(b, ((NI) 1));
							LOC22 = 0;
							LOC22 = HEX5BHEX5D_228244(LOC21, ((NI) 0));
							t = (*(*LOC22).typ).sons->data[((NI) 0)];
							{
								NU8 LOC25;
								Tnode227809* LOC28;
								Tnode227809* LOC29;
								NI LOC30;
								LOC25 = 0;
								LOC25 = spawnresult_406208(t, NIM_TRUE);
								if (!(LOC25 == ((NU8) 2))) goto LA26;
								LOC28 = 0;
								LOC28 = HEX5BHEX5D_228244(it_455131, ((NI) 0));
								LOC29 = 0;
								LOC29 = wrapprocforspawn_406850(owner, m, (*b).typ, barrier, LOC28);
								add_228165(result, LOC29);
								LOC30 = 0;
								LOC30 = len_228098(it_455131);
								asgnRefNoCycle((void**) (&(*it_455131).kindU.S6.sons->data[(NI)(LOC30 - ((NI) 1))]), emptynode_228807);
							}
							goto LA23;
							LA26: ;
							{
								NI LOC32;
								LOC32 = 0;
								LOC32 = len_228098(it_455131);
								asgnRefNoCycle((void**) (&(*it_455131).kindU.S6.sons->data[(NI)(LOC32 - ((NI) 1))]), wrapprocforspawn_406850(owner, m, (*b).typ, barrier, NIM_NIL));
							}
							LA23: ;
						}
						LA10: ;
						res_455218 += ((NI) 1);
					} LA6: ;
				}
			}
		}
		{
			if (!result == 0) goto LA35;
			result = n;
		}
		LA35: ;
	}
	break;
	case ((NU8) 73):
	case ((NU8) 74):
	{
		Tnode227809* b;
		b = HEX5BHEX5D_228244(n, ((NI) 1));
		{
			NIM_BOOL LOC40;
			NU8 LOC41;
			Ttype227847* t;
			Tnode227809* LOC43;
			Tnode227809* LOC44;
			NU8 LOC45;
			Tnode227809* m;
			Tnode227809* LOC48;
			LOC40 = 0;
			LOC41 = 0;
			LOC41 = getmagic_256417(b);
			LOC40 = (LOC41 == ((NU8) 201));
			if (!(LOC40)) goto LA42;
			LOC43 = 0;
			LOC43 = HEX5BHEX5D_228244(b, ((NI) 1));
			LOC44 = 0;
			LOC44 = HEX5BHEX5D_228244(LOC43, ((NI) 0));
			t = (*(*LOC44).typ).sons->data[((NI) 0)];
			LOC45 = 0;
			LOC45 = spawnresult_406208(t, NIM_TRUE);
			LOC40 = (LOC45 == ((NU8) 2));
			LA42: ;
			if (!LOC40) goto LA46;
			m = transformslices_454986(b);
			LOC48 = 0;
			LOC48 = HEX5BHEX5D_228244(n, ((NI) 0));
			result = wrapprocforspawn_406850(owner, m, (*b).typ, barrier, LOC48);
			goto BeforeRet;
		}
		LA46: ;
		result = transformspawnsons_455074(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_256417(n);
			if (!(LOC52 == ((NU8) 201))) goto LA53;
			result = transformslices_454986(n);
			result = wrapprocforspawn_406850(owner, result, (*n).typ, barrier, NIM_NIL);
			goto BeforeRet;
		}
		LA53: ;
		result = transformspawnsons_455074(owner, n, barrier);
	}
	break;
	default:
	{
		{
			NI LOC58;
			LOC58 = 0;
			LOC58 = safelen_228126(n);
			if (!(((NI) 0) < LOC58)) goto LA59;
			result = transformspawnsons_455074(owner, n, barrier);
		}
		goto LA56;
		LA59: ;
		{
			result = n;
		}
		LA56: ;
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode227809*, liftparallel_455260)(Tsym227841* owner, Tnode227809* n) {
	Tnode227809* result;
	Analysisctx453026 a;
	Tnode227809* body;
	Tnode227809* varsection;
	Tsym227841* temp;
	Tident200021* LOC5;
	Tsym227841* LOC6;
	Tnode227809* tempnode;
	Tnode227809* barrier;
	Tnode227809* LOC7;
	Tnode227809* LOC8;
	Tnode227809* LOC9;
	result = 0;
	memset((void*)(&a), 0, sizeof(a));
	chckNil((void*)(&a));
	memset((void*)(&a), 0, sizeof(a));
	initanalysisctx_453059((&a));
	body = lastson_230406(n);
	analyse_454316((&a), body);
	{
		if (!(a.spawns == ((NI) 0))) goto LA3;
		localerror_198139((*n).info, ((NimStringDesc*) &TMP4276));
	}
	LA3: ;
	checkslicesaredisjoint_454059((&a));
	checkargs_455239((&a), body);
	varsection = newnodei_229351(((NU8) 99), (*n).info);
	LOC5 = 0;
	LOC5 = getident_200463(((NimStringDesc*) &TMP4280));
	temp = newsym_228656(((NU8) 5), LOC5, owner, (*n).info);
	LOC6 = 0;
	LOC6 = getcompilerproc_276809(((NimStringDesc*) &TMP4281));
	asgnRefNoCycle((void**) (&(*temp).typ), (*LOC6).typ);
	(*temp).flags |= ((NU32)1)<<((((NU8) 2))%(sizeof(NU32)*8));
	tempnode = newsymnode_229325(temp);
	addvar_404047(varsection, tempnode);
	barrier = genaddrof_406064(tempnode);
	result = newnodei_229351(((NU8) 115), (*n).info);
	generatealiaschecks_455250((&a), result);
	add_228165(result, varsection);
	LOC7 = 0;
	LOC7 = callcodegenproc_406086(((NimStringDesc*) &TMP4282), barrier, NIM_NIL, NIM_NIL, NIM_NIL);
	add_228165(result, LOC7);
	LOC8 = 0;
	LOC8 = transformspawn_455066(owner, body, barrier);
	add_228165(result, LOC8);
	LOC9 = 0;
	LOC9 = callcodegenproc_406086(((NimStringDesc*) &TMP4284), barrier, NIM_NIL, NIM_NIL, NIM_NIL);
	add_228165(result, LOC9);
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_semparallelInit000)(void) {
	asgnRefNoCycle((void**) (&opslice_453055), createmagic_233047(((NimStringDesc*) &TMP1038), ((NU8) 138)));
}

NIM_EXTERNC N_NOINLINE(void, compiler_semparallelDatInit000)(void) {
static TNimNode* TMP4253[7];
static TNimNode* TMP4254[2];
NI TMP4256;
static char* NIM_CONST TMP4255[2] = {
"ascending", 
"descending"};
static TNimNode* TMP4258[5];
static TNimNode TMP1036[17];
NTI453024.size = sizeof(Monotonicvar453024);
NTI453024.kind = 18;
NTI453024.base = 0;
NTI453024.flags = 2;
TMP4253[0] = &TMP1036[1];
TMP1036[1].kind = 1;
TMP1036[1].offset = offsetof(Monotonicvar453024, v);
TMP1036[1].typ = (&NTI227807);
TMP1036[1].name = "v";
TMP4253[1] = &TMP1036[2];
TMP1036[2].kind = 1;
TMP1036[2].offset = offsetof(Monotonicvar453024, alias);
TMP1036[2].typ = (&NTI227807);
TMP1036[2].name = "alias";
TMP4253[2] = &TMP1036[3];
TMP1036[3].kind = 1;
TMP1036[3].offset = offsetof(Monotonicvar453024, lower);
TMP1036[3].typ = (&NTI227801);
TMP1036[3].name = "lower";
TMP4253[3] = &TMP1036[4];
TMP1036[4].kind = 1;
TMP1036[4].offset = offsetof(Monotonicvar453024, upper);
TMP1036[4].typ = (&NTI227801);
TMP1036[4].name = "upper";
TMP4253[4] = &TMP1036[5];
TMP1036[5].kind = 1;
TMP1036[5].offset = offsetof(Monotonicvar453024, stride);
TMP1036[5].typ = (&NTI227801);
TMP1036[5].name = "stride";
TMP4253[5] = &TMP1036[6];
NTI453022.size = sizeof(NU8);
NTI453022.kind = 14;
NTI453022.base = 0;
NTI453022.flags = 3;
for (TMP4256 = 0; TMP4256 < 2; TMP4256++) {
TMP1036[TMP4256+7].kind = 1;
TMP1036[TMP4256+7].offset = TMP4256;
TMP1036[TMP4256+7].name = TMP4255[TMP4256];
TMP4254[TMP4256] = &TMP1036[TMP4256+7];
}
TMP1036[9].len = 2; TMP1036[9].kind = 2; TMP1036[9].sons = &TMP4254[0];
NTI453022.node = &TMP1036[9];
TMP1036[6].kind = 1;
TMP1036[6].offset = offsetof(Monotonicvar453024, dir);
TMP1036[6].typ = (&NTI453022);
TMP1036[6].name = "dir";
TMP4253[6] = &TMP1036[10];
TMP1036[10].kind = 1;
TMP1036[10].offset = offsetof(Monotonicvar453024, blacklisted);
TMP1036[10].typ = (&NTI138);
TMP1036[10].name = "blacklisted";
TMP1036[0].len = 7; TMP1036[0].kind = 2; TMP1036[0].sons = &TMP4253[0];
NTI453024.node = &TMP1036[0];
NTI453036.size = sizeof(TY453036*);
NTI453036.kind = 24;
NTI453036.base = (&NTI453024);
NTI453036.flags = 2;
NTI453036.marker = TMP4257;
NTI453039.size = sizeof(TY453039);
NTI453039.kind = 18;
NTI453039.base = 0;
NTI453039.flags = 2;
TMP4258[0] = &TMP1036[12];
TMP1036[12].kind = 1;
TMP1036[12].offset = offsetof(TY453039, Field0);
TMP1036[12].typ = (&NTI227801);
TMP1036[12].name = "Field0";
TMP4258[1] = &TMP1036[13];
TMP1036[13].kind = 1;
TMP1036[13].offset = offsetof(TY453039, Field1);
TMP1036[13].typ = (&NTI227801);
TMP1036[13].name = "Field1";
TMP4258[2] = &TMP1036[14];
TMP1036[14].kind = 1;
TMP1036[14].offset = offsetof(TY453039, Field2);
TMP1036[14].typ = (&NTI227801);
TMP1036[14].name = "Field2";
TMP4258[3] = &TMP1036[15];
TMP1036[15].kind = 1;
TMP1036[15].offset = offsetof(TY453039, Field3);
TMP1036[15].typ = (&NTI108);
TMP1036[15].name = "Field3";
TMP4258[4] = &TMP1036[16];
TMP1036[16].kind = 1;
TMP1036[16].offset = offsetof(TY453039, Field4);
TMP1036[16].typ = (&NTI138);
TMP1036[16].name = "Field4";
TMP1036[11].len = 5; TMP1036[11].kind = 2; TMP1036[11].sons = &TMP4258[0];
NTI453039.node = &TMP1036[11];
NTI453038.size = sizeof(TY453038*);
NTI453038.kind = 24;
NTI453038.base = (&NTI453039);
NTI453038.flags = 2;
NTI453038.marker = TMP4259;
}

