/* 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 Tsym224841 Tsym224841;
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 Tnode224809 Tnode224809;
typedef struct Analysisctx450026 Analysisctx450026;
typedef struct TY450036 TY450036;
typedef struct TY450038 TY450038;
typedef struct Tnodeseq224803 Tnodeseq224803;
typedef struct Tsymseq224811 Tsymseq224811;
typedef struct Monotonicvar450024 Monotonicvar450024;
typedef struct TNimNode TNimNode;
typedef struct TY450039 TY450039;
typedef struct Ttype224847 Ttype224847;
typedef struct Tlineinfo189352 Tlineinfo189352;
typedef struct Tident197021 Tident197021;
typedef struct Tidobj197015 Tidobj197015;
typedef struct TNimObject TNimObject;
typedef struct Ttypeseq224843 Ttypeseq224843;
typedef struct Tscope224835 Tscope224835;
typedef struct TY224944 TY224944;
typedef struct Tstrtable224813 Tstrtable224813;
typedef struct Tloc224823 Tloc224823;
typedef struct Ropeobj175009 Ropeobj175009;
typedef struct Tlib224827 Tlib224827;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct Tinstantiation224831 Tinstantiation224831;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct TY224932 TY224932;
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  Analysisctx450026  {
TY450036* locals;
TY450038* slices;
Tnodeseq224803* guards;
Tsymseq224811* args;
NI spawns;
NI currentspawnid;
NI inloop;
};
struct  Monotonicvar450024  {
Tsym224841* v;
Tsym224841* alias;
Tnode224809* lower;
Tnode224809* upper;
Tnode224809* 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 TY450039 {
Tnode224809* Field0;
Tnode224809* Field1;
Tnode224809* Field2;
NI Field3;
NIM_BOOL Field4;
};
struct  Tlineinfo189352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode224809  {
Ttype224847* typ;
Tlineinfo189352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym224841* sym;
} S4;
struct {Tident197021* ident;
} S5;
struct {Tnodeseq224803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj197015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable224813  {
NI counter;
Tsymseq224811* data;
};
struct  Tloc224823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype224847* t;
Ropeobj175009* r;
Ropeobj175009* heaproot;
};
struct  Tsym224841  {
  Tidobj197015 Sup;
NU8 kind;
union{
struct {Ttypeseq224843* typeinstcache;
Tscope224835* typscope;
} S1;
struct {TY224944* procinstcache;
Tsym224841* gcunsafetyreason;
} S2;
struct {TY224944* usedgenerics;
Tstrtable224813 tab;
} S3;
struct {Tsym224841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype224847* typ;
Tident197021* name;
Tlineinfo189352 info;
Tsym224841* owner;
NU32 flags;
Tnode224809* ast;
NU32 options;
NI position;
NI offset;
Tloc224823 loc;
Tlib224827* annex;
Tnode224809* constraint;
};
struct  Tident197021  {
  Tidobj197015 Sup;
NimStringDesc* s;
Tident197021* next;
NI h;
};
typedef NimStringDesc* TY450890[6];
typedef NimStringDesc* TY193829[4];
struct  Ttype224847  {
  Tidobj197015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq224843* sons;
Tnode224809* n;
Tsym224841* owner;
Tsym224841* sym;
Tsym224841* destructor;
Tsym224841* deepcopy;
Tsym224841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc224823 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  Tscope224835  {
NI depthlevel;
Tstrtable224813 symbols;
Tnodeseq224803* usingsyms;
Tscope224835* parent;
};
struct  Ropeobj175009  {
  TNimObject Sup;
Ropeobj175009* left;
Ropeobj175009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Tlib224827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj175009* name;
Tnode224809* path;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct  Tinstantiation224831  {
Tsym224841* sym;
Ttypeseq224843* concretetypes;
TY224932* usedby;
NI compilesid;
};
struct TY450036 {
  TGenericSeq Sup;
  Monotonicvar450024 data[SEQ_DECL_SIZE];
};
struct TY450038 {
  TGenericSeq Sup;
  TY450039 data[SEQ_DECL_SIZE];
};
struct Tsymseq224811 {
  TGenericSeq Sup;
  Tsym224841* data[SEQ_DECL_SIZE];
};
struct Tnodeseq224803 {
  TGenericSeq Sup;
  Tnode224809* data[SEQ_DECL_SIZE];
};
struct Ttypeseq224843 {
  TGenericSeq Sup;
  Ttype224847* data[SEQ_DECL_SIZE];
};
struct TY224944 {
  TGenericSeq Sup;
  Tinstantiation224831* data[SEQ_DECL_SIZE];
};
struct TY224932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Tsym224841*, createmagic_230047)(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_450059)(Analysisctx450026* Result);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP4258)(void* p, NI op);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, TMP4260)(void* p, NI op);
N_NOINLINE(void, chckNil)(void* p);
N_NIMCALL(Tnode224809*, lastson_227406)(Tnode224809* n);
N_NIMCALL(void, analyse_451316)(Analysisctx450026* c, Tnode224809* n);
N_NIMCALL(Tnode224809*, skipconv_263935)(Tnode224809* n);
static N_INLINE(Tnode224809*, HEX5BHEX5D_225244)(Tnode224809* n, NI i);
N_NIMCALL(NIM_BOOL, issingleassignable_450356)(Tnode224809* n);
N_NIMCALL(NIM_BOOL, islocal_450416)(Tnode224809* n);
N_NIMCALL(Monotonicvar450024*, getslot_450209)(Analysisctx450026* c, Tsym224841* v);
N_NIMCALL(NI, lookupslot_450132)(Analysisctx450026* c, Tsym224841* s);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, invalidatefacts_357659)(Tnodeseq224803** m, Tnode224809* n);
N_NIMCALL(NU8, getmagic_253417)(Tnode224809* op);
N_NIMCALL(void, gatherargs_450244)(Analysisctx450026* c, Tnode224809* n);
static N_INLINE(NI, safelen_225126)(Tnode224809* n);
N_NIMCALL(Tsym224841*, getroot_403646)(Tnode224809* n);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, analysesons_451324)(Analysisctx450026* c, Tnode224809* n);
N_NIMCALL(void, addasgnfact_360086)(Tnodeseq224803** m, Tnode224809* key, Tnode224809* value);
N_NIMCALL(void, analysecall_451422)(Analysisctx450026* c, Tnode224809* n, Tsym224841* op);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NIM_BOOL, fromsystem_451393)(Tsym224841* op);
N_NIMCALL(Tsym224841*, getmodule_232243)(Tsym224841* s);
N_NIMCALL(Tnode224809*, min_451371)(Tnode224809* a, Tnode224809* b);
N_NIMCALL(Tnode224809*, skipstmtlist_229985)(Tnode224809* n);
N_NIMCALL(void, addslice_450835)(Analysisctx450026* c, Tnode224809* n, Tnode224809* x, Tnode224809* le_450841, Tnode224809* ri_450842);
N_NIMCALL(void, checklocal_450476)(Analysisctx450026* c, Tnode224809* n);
N_NIMCALL(void, localerror_195139)(Tlineinfo189352 info, NimStringDesc* arg);
N_NIMCALL(Tnode224809*, canon_356843)(Tnode224809* n);
N_NIMCALL(void, addlowerboundasfacts_450573)(Analysisctx450026* c);
N_NIMCALL(void, addfactle_359849)(Tnodeseq224803** m, Tnode224809* a, Tnode224809* b);
N_NIMCALL(Tnode224809*, newsymnode_226325)(Tsym224841* sym);
N_NIMCALL(void, checkbounds_450560)(Analysisctx450026* c, Tnode224809* arr, Tnode224809* idx);
N_NIMCALL(void, checkle_450545)(Analysisctx450026* c, Tnode224809* a, Tnode224809* b);
N_NIMCALL(NU8, provele_359823)(Tnodeseq224803* m, Tnode224809* a, Tnode224809* b);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, rendertree_246059)(Tnode224809* n, NU8 renderflags);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(Tnode224809*, lowbound_356702)(Tnode224809* x);
N_NIMCALL(Tnode224809*, highbound_356712)(Tnode224809* x);
N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
static N_INLINE(NI, len_225098)(Tnode224809* n);
N_NIMCALL(void, internalerror_195172)(Tlineinfo189352 info, NimStringDesc* errmsg);
N_NIMCALL(void, analysecase_451495)(Analysisctx450026* c, Tnode224809* n);
N_NIMCALL(void, addcasebranchfacts_360137)(Tnodeseq224803** m, Tnode224809* n, NI i);
N_NIMCALL(void, analyseif_451614)(Analysisctx450026* c, Tnode224809* n);
N_NIMCALL(void, addfact_357392)(Tnodeseq224803** m, Tnode224809* nn);
N_NIMCALL(void, addfactneg_357426)(Tnodeseq224803** m, Tnode224809* n_357430);
N_NIMCALL(NIM_BOOL, istrue_368402)(Tnode224809* n);
N_NIMCALL(NIM_BOOL, hassubnodewith_229439)(Tnode224809* n, NU8 kind);
N_NIMCALL(void, checkslicesaredisjoint_451059)(Analysisctx450026* c);
N_NIMCALL(void, overlap_450883)(Tnodeseq224803* m, Tnode224809* x, Tnode224809* y, Tnode224809* c, Tnode224809* d);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(Tnode224809*, substride_450993)(Analysisctx450026* c, Tnode224809* n);
N_NIMCALL(Tnode224809*, HEX2BHEX40_357160)(Tnode224809* a, NI64 b);
N_NIMCALL(Tnode224809*, shallowcopy_228817)(Tnode224809* src);
N_NIMCALL(NIM_BOOL, sametree_357462)(Tnode224809* a, Tnode224809* b);
N_NIMCALL(NI64, simpleslice_358464)(Tnode224809* a, Tnode224809* b);
N_NIMCALL(NI64, stride_450920)(Analysisctx450026* c, Tnode224809* n);
N_NIMCALL(void, checkargs_452239)(Analysisctx450026* a, Tnode224809* n);
N_NIMCALL(Tnode224809*, newnodei_226351)(NU8 kind, Tlineinfo189352 info);
N_NIMCALL(Tsym224841*, newsym_225656)(NU8 symkind, Tident197021* name, Tsym224841* owner, Tlineinfo189352 info);
N_NIMCALL(Tident197021*, getident_197463)(NimStringDesc* identifier);
N_NIMCALL(Tsym224841*, getcompilerproc_273809)(NimStringDesc* name);
N_NIMCALL(void, addvar_401047)(Tnode224809* father, Tnode224809* v);
N_NIMCALL(Tnode224809*, genaddrof_403064)(Tnode224809* n);
N_NIMCALL(void, generatealiaschecks_452250)(Analysisctx450026* a, Tnode224809* result);
N_NIMCALL(void, add_225165)(Tnode224809* father, Tnode224809* son);
N_NIMCALL(Tnode224809*, callcodegenproc_403086)(NimStringDesc* name, Tnode224809* arg1, Tnode224809* arg2, Tnode224809* arg3, Tnode224809* optionalargs);
N_NIMCALL(Tnode224809*, transformspawn_452066)(Tsym224841* owner, Tnode224809* n, Tnode224809* barrier);
N_NIMCALL(Tnode224809*, transformslices_451986)(Tnode224809* n);
N_NIMCALL(Tnode224809*, copynode_228660)(Tnode224809* src);
N_NIMCALL(NU8, spawnresult_403208)(Ttype224847* t, NIM_BOOL inparallel);
N_NIMCALL(Tnode224809*, wrapprocforspawn_403850)(Tsym224841* owner, Tnode224809* spawnexpr, Ttype224847* rettype, Tnode224809* barrier, Tnode224809* dest);
N_NIMCALL(Tnode224809*, transformspawnsons_452074)(Tsym224841* owner, Tnode224809* n, Tnode224809* barrier);
STRING_LITERAL(TMP1031, "slice", 5);
STRING_LITERAL(TMP4261, "+=", 2);
STRING_LITERAL(TMP4262, "[]", 2);
STRING_LITERAL(TMP4263, "invalid usage of counter after increment", 40);
STRING_LITERAL(TMP4269, "cannot prove: ", 14);
STRING_LITERAL(TMP4270, " <= ", 4);
STRING_LITERAL(TMP4271, " (bounds check)", 15);
STRING_LITERAL(TMP4272, "can prove: ", 11);
STRING_LITERAL(TMP4273, " > ", 3);
STRING_LITERAL(TMP4274, "[]=", 3);
STRING_LITERAL(TMP4275, "invalid control flow for \'parallel\'", 35);
STRING_LITERAL(TMP4276, "slot already has a lower bound", 30);
STRING_LITERAL(TMP4277, "\'parallel\' section without \'spawn\'", 34);
STRING_LITERAL(TMP4278, "cannot prove: $# > $#; required for ($#)..($#) disjoint from ($"
"#)..($#)", 71);
STRING_LITERAL(TMP4279, "($#)..($#) not disjoint from ($#)..($#)", 39);
STRING_LITERAL(TMP4280, "cannot prove ($#)..($#) disjoint from ($#)..($#)", 48);
STRING_LITERAL(TMP4281, "barrier", 7);
STRING_LITERAL(TMP4282, "Barrier", 7);
STRING_LITERAL(TMP4283, "openBarrier", 11);
STRING_LITERAL(TMP4284, "invalid context for \'spawn\'", 27);
STRING_LITERAL(TMP4285, "closeBarrier", 12);
Tsym224841* opslice_450055;
extern Gcheap51018 gch_51059;
TNimType NTI450024; /* MonotonicVar */
extern TNimType NTI224807; /* PSym */
extern TNimType NTI224801; /* PNode */
TNimType NTI450022; /* TDirection */
extern TNimType NTI138; /* bool */
TNimType NTI450036; /* seq[MonotonicVar] */
TNimType NTI450039; /* tuple[x: PNode, a: PNode, b: PNode, spawnId: int, inLoop: bool] */
extern TNimType NTI108; /* int */
TNimType NTI450038; /* seq[tuple[x: PNode, a: PNode, b: PNode, spawnId: int, inLoop: bool]] */
extern TNimType NTI224811; /* TSymSeq */
extern TNimType NTI224803; /* TNodeSeq */
extern Tnode224809* emptynode_225807;

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, TMP4258)(void* p, NI op) {
	TY450036* a;
	NI LOC1;
	a = (TY450036*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1].v, op);
	nimGCvisit((void*)a->data[LOC1].alias, op);
	nimGCvisit((void*)a->data[LOC1].lower, op);
	nimGCvisit((void*)a->data[LOC1].upper, op);
	nimGCvisit((void*)a->data[LOC1].stride, op);
	}
}
N_NIMCALL(void, TMP4260)(void* p, NI op) {
	TY450038* a;
	NI LOC1;
	a = (TY450038*)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_450059)(Analysisctx450026* Result) {
	unsureAsgnRef((void**) (&(*Result).locals), (TY450036*) newSeq((&NTI450036), 0));
	unsureAsgnRef((void**) (&(*Result).slices), (TY450038*) newSeq((&NTI450038), 0));
	unsureAsgnRef((void**) (&(*Result).args), (Tsymseq224811*) newSeq((&NTI224811), 0));
	unsureAsgnRef((void**) (&(*Result).guards), (Tnodeseq224803*) newSeq((&NTI224803), 0));
}

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

N_NIMCALL(NIM_BOOL, issingleassignable_450356)(Tnode224809* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	Tsym224841* 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_450416)(Tnode224809* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	Tsym224841* 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_450132)(Analysisctx450026* c, Tsym224841* s) {
	NI result;
{	result = 0;
	{
		NI i_450163;
		NI HEX3Atmp_450187;
		NI res_450190;
		i_450163 = 0;
		HEX3Atmp_450187 = 0;
		HEX3Atmp_450187 = (((*c).locals ? (*c).locals->Sup.len : 0) - 1);
		res_450190 = ((NI) 0);
		{
			while (1) {
				if (!(res_450190 <= HEX3Atmp_450187)) goto LA3;
				i_450163 = res_450190;
				{
					NIM_BOOL LOC6;
					LOC6 = 0;
					LOC6 = ((*c).locals->data[i_450163].v == s);
					if (LOC6) goto LA7;
					LOC6 = ((*c).locals->data[i_450163].alias == s);
					LA7: ;
					if (!LOC6) goto LA8;
					result = i_450163;
					goto BeforeRet;
				}
				LA8: ;
				res_450190 += ((NI) 1);
			} LA3: ;
		}
	}
	result = ((NI) -1);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Monotonicvar450024*, getslot_450209)(Analysisctx450026* c, Tsym224841* v) {
	Monotonicvar450024* result;
	NI s;
	NI L;
{	result = 0;
	s = lookupslot_450132((&(*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 = (TY450036*) setLengthSeq(&((*c).locals)->Sup, sizeof(Monotonicvar450024), ((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_225126)(Tnode224809* 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_450244)(Analysisctx450026* c, Tnode224809* n) {
	{
		NI i_450268;
		NI HEX3Atmp_450322;
		NI LOC2;
		NI res_450325;
		i_450268 = 0;
		HEX3Atmp_450322 = 0;
		LOC2 = 0;
		LOC2 = safelen_225126(n);
		HEX3Atmp_450322 = (LOC2 - 1);
		res_450325 = ((NI) 0);
		{
			while (1) {
				Tsym224841* root;
				Tnode224809* LOC5;
				Tnode224809* LOC18;
				if (!(res_450325 <= HEX3Atmp_450322)) goto LA4;
				i_450268 = res_450325;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_225244(n, i_450268);
				root = getroot_403646(LOC5);
				{
					if (!!((root == NIM_NIL))) goto LA8;
					{
						{
							Tsym224841* r_450292;
							Tsymseq224811* HEX3Atmp_450316;
							NI i_450319;
							NI L_450321;
							r_450292 = 0;
							HEX3Atmp_450316 = 0;
							HEX3Atmp_450316 = (*c).args;
							i_450319 = ((NI) 0);
							L_450321 = (HEX3Atmp_450316 ? HEX3Atmp_450316->Sup.len : 0);
							{
								while (1) {
									if (!(i_450319 < L_450321)) goto LA13;
									r_450292 = HEX3Atmp_450316->data[i_450319];
									{
										if (!(r_450292 == root)) goto LA16;
										goto LA10;
									}
									LA16: ;
									i_450319 += ((NI) 1);
								} LA13: ;
							}
						}
						(*c).args = (Tsymseq224811*) incrSeqV2(&((*c).args)->Sup, sizeof(Tsym224841*));
						asgnRefNoCycle((void**) (&(*c).args->data[(*c).args->Sup.len]), root);
						++(*c).args->Sup.len;
					} LA10: ;
				}
				LA8: ;
				LOC18 = 0;
				LOC18 = HEX5BHEX5D_225244(n, i_450268);
				gatherargs_450244(c, LOC18);
				res_450325 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(void, analysesons_451324)(Analysisctx450026* c, Tnode224809* n) {
	{
		NI i_451347;
		NI HEX3Atmp_451349;
		NI LOC2;
		NI res_451352;
		i_451347 = 0;
		HEX3Atmp_451349 = 0;
		LOC2 = 0;
		LOC2 = safelen_225126(n);
		HEX3Atmp_451349 = (LOC2 - 1);
		res_451352 = ((NI) 0);
		{
			while (1) {
				Tnode224809* LOC5;
				if (!(res_451352 <= HEX3Atmp_451349)) goto LA4;
				i_451347 = res_451352;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_225244(n, i_451347);
				analyse_451316(c, LOC5);
				res_451352 += ((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_451393)(Tsym224841* op) {
	NIM_BOOL result;
	Tsym224841* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getmodule_232243(op);
	result = (((*LOC1).flags &(1<<((((NU8) 13))&31)))!=0);
	return result;
}

N_NIMCALL(Tnode224809*, min_451371)(Tnode224809* a, Tnode224809* b) {
	Tnode224809* 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_450476)(Analysisctx450026* c, Tnode224809* n) {
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_450416(n);
		if (!LOC3) goto LA4;
		s = lookupslot_450132(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_195139((*n).info, ((NimStringDesc*) &TMP4263));
		}
		LA10: ;
	}
	goto LA1;
	LA4: ;
	{
		{
			NI i_450513;
			NI HEX3Atmp_450516;
			NI LOC14;
			NI res_450519;
			i_450513 = 0;
			HEX3Atmp_450516 = 0;
			LOC14 = 0;
			LOC14 = safelen_225126(n);
			HEX3Atmp_450516 = (LOC14 - 1);
			res_450519 = ((NI) 0);
			{
				while (1) {
					if (!(res_450519 <= HEX3Atmp_450516)) goto LA16;
					i_450513 = res_450519;
					checklocal_450476(c, (*n).kindU.S6.sons->data[i_450513]);
					res_450519 += ((NI) 1);
				} LA16: ;
			}
		}
	}
	LA1: ;
}

N_NIMCALL(void, addlowerboundasfacts_450573)(Analysisctx450026* c) {
	{
		Monotonicvar450024 v_450811;
		TY450036* HEX3Atmp_450814;
		NI i_450817;
		NI L_450819;
		memset((void*)(&v_450811), 0, sizeof(v_450811));
		HEX3Atmp_450814 = 0;
		HEX3Atmp_450814 = (*c).locals;
		i_450817 = ((NI) 0);
		L_450819 = (HEX3Atmp_450814 ? HEX3Atmp_450814->Sup.len : 0);
		{
			while (1) {
				if (!(i_450817 < L_450819)) goto LA3;
				memcpy((void*)(&v_450811), (NIM_CONST void*)(&HEX3Atmp_450814->data[i_450817]), sizeof(v_450811));
				{
					Tnode224809* LOC8;
					if (!!(v_450811.blacklisted)) goto LA6;
					LOC8 = 0;
					LOC8 = newsymnode_226325(v_450811.v);
					addfactle_359849((&(*c).guards), v_450811.lower, LOC8);
				}
				LA6: ;
				i_450817 += ((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_450545)(Analysisctx450026* c, Tnode224809* a, Tnode224809* b) {
	NU8 LOC1;
	LOC1 = 0;
	LOC1 = provele_359823((*c).guards, a, b);
	switch (LOC1) {
	case ((NU8) 0):
	{
		NimStringDesc* LOC3;
		NimStringDesc* LOC4;
		NimStringDesc* LOC5;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = rendertree_246059(a, 0);
		LOC5 = 0;
		LOC5 = rendertree_246059(b, 0);
		LOC3 = rawNewString(LOC4->Sup.len + LOC5->Sup.len + 33);
appendString(LOC3, ((NimStringDesc*) &TMP4269));
appendString(LOC3, LOC4);
appendString(LOC3, ((NimStringDesc*) &TMP4270));
appendString(LOC3, LOC5);
appendString(LOC3, ((NimStringDesc*) &TMP4271));
		localerror_195139((*a).info, LOC3);
	}
	break;
	case ((NU8) 2):
	{
	}
	break;
	case ((NU8) 1):
	{
		NimStringDesc* LOC8;
		NimStringDesc* LOC9;
		NimStringDesc* LOC10;
		LOC8 = 0;
		LOC9 = 0;
		LOC9 = rendertree_246059(a, 0);
		LOC10 = 0;
		LOC10 = rendertree_246059(b, 0);
		LOC8 = rawNewString(LOC9->Sup.len + LOC10->Sup.len + 29);
appendString(LOC8, ((NimStringDesc*) &TMP4272));
appendString(LOC8, LOC9);
appendString(LOC8, ((NimStringDesc*) &TMP4273));
appendString(LOC8, LOC10);
appendString(LOC8, ((NimStringDesc*) &TMP4271));
		localerror_195139((*a).info, LOC8);
	}
	break;
	}
}

N_NIMCALL(void, checkbounds_450560)(Analysisctx450026* c, Tnode224809* arr, Tnode224809* idx) {
	Tnode224809* LOC1;
	Tnode224809* LOC2;
	LOC1 = 0;
	LOC1 = lowbound_356702(arr);
	checkle_450545(c, LOC1, idx);
	LOC2 = 0;
	LOC2 = highbound_356712(arr);
	checkle_450545(c, idx, LOC2);
}

N_NIMCALL(void, addslice_450835)(Analysisctx450026* c, Tnode224809* n, Tnode224809* x, Tnode224809* le_450841, Tnode224809* ri_450842) {
	Tnode224809* le;
	Tnode224809* ri;
	NI oldstate;
	TY450039 LOC1;
	checklocal_450476((&(*c)), n);
	le = canon_356843(le_450841);
	ri = canon_356843(ri_450842);
	oldstate = ((*c).guards ? (*c).guards->Sup.len : 0);
	addlowerboundasfacts_450573(c);
	checkbounds_450560((&(*c)), x, le);
	checkbounds_450560((&(*c)), x, ri);
	(*c).guards = (Tnodeseq224803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode224809*), ((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 = (TY450038*) incrSeqV2(&((*c).slices)->Sup, sizeof(TY450039));
	genericAssign((void*)(&(*c).slices->data[(*c).slices->Sup.len]), (void*)(&LOC1), (&NTI450039));
	++(*c).slices->Sup.len;
}

N_NIMCALL(void, analysecall_451422)(Analysisctx450026* c, Tnode224809* n, Tsym224841* op) {
	{
		NI oldspawnid;
		Tnode224809* LOC5;
		if (!((*op).magic == ((NU8) 201))) goto LA3;
		(*c).spawns += ((NI) 1);
		oldspawnid = (*c).currentspawnid;
		(*c).currentspawnid = (*c).spawns;
		LOC5 = 0;
		LOC5 = HEX5BHEX5D_225244(n, ((NI) 1));
		gatherargs_450244(c, LOC5);
		analysesons_451324(c, n);
		(*c).currentspawnid = oldspawnid;
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC7;
		NIM_BOOL LOC9;
		LOC7 = 0;
		LOC7 = ((*op).magic == ((NU8) 26));
		if (LOC7) goto LA8;
		LOC9 = 0;
		LOC9 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4261));
		if (!(LOC9)) goto LA10;
		LOC9 = fromsystem_451393(op);
		LA10: ;
		LOC7 = LOC9;
		LA8: ;
		if (!LOC7) goto LA11;
		{
			Tnode224809* LOC15;
			NIM_BOOL LOC16;
			Tnode224809* incr;
			Tnode224809* LOC19;
			LOC15 = 0;
			LOC15 = HEX5BHEX5D_225244(n, ((NI) 1));
			LOC16 = 0;
			LOC16 = islocal_450416(LOC15);
			if (!LOC16) goto LA17;
			LOC19 = 0;
			LOC19 = HEX5BHEX5D_225244(n, ((NI) 2));
			incr = skipconv_263935(LOC19);
			{
				NIM_BOOL LOC22;
				Monotonicvar450024* slot;
				Tnode224809* 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_225244(n, ((NI) 1));
				slot = getslot_450209(c, (*LOC26).kindU.S4.sym);
				unsureAsgnRef((void**) (&(*slot).stride), min_451371((*slot).stride, incr));
			}
			LA24: ;
		}
		LA17: ;
		analysesons_451324(c, n);
	}
	goto LA1;
	LA11: ;
	{
		NIM_BOOL LOC28;
		Tnode224809* slice;
		Tnode224809* LOC32;
		Tnode224809* LOC33;
		Tnode224809* LOC34;
		Tnode224809* LOC35;
		LOC28 = 0;
		LOC28 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4262));
		if (!(LOC28)) goto LA29;
		LOC28 = fromsystem_451393(op);
		LA29: ;
		if (!LOC28) goto LA30;
		LOC32 = 0;
		LOC32 = HEX5BHEX5D_225244(n, ((NI) 2));
		slice = skipstmtlist_229985(LOC32);
		LOC33 = 0;
		LOC33 = HEX5BHEX5D_225244(n, ((NI) 1));
		LOC34 = 0;
		LOC34 = HEX5BHEX5D_225244(slice, ((NI) 1));
		LOC35 = 0;
		LOC35 = HEX5BHEX5D_225244(slice, ((NI) 2));
		addslice_450835(c, n, LOC33, LOC34, LOC35);
		analysesons_451324(c, n);
	}
	goto LA1;
	LA30: ;
	{
		NIM_BOOL LOC37;
		Tnode224809* slice;
		Tnode224809* LOC41;
		Tnode224809* LOC42;
		Tnode224809* LOC43;
		Tnode224809* LOC44;
		LOC37 = 0;
		LOC37 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4274));
		if (!(LOC37)) goto LA38;
		LOC37 = fromsystem_451393(op);
		LA38: ;
		if (!LOC37) goto LA39;
		LOC41 = 0;
		LOC41 = HEX5BHEX5D_225244(n, ((NI) 2));
		slice = skipstmtlist_229985(LOC41);
		LOC42 = 0;
		LOC42 = HEX5BHEX5D_225244(n, ((NI) 1));
		LOC43 = 0;
		LOC43 = HEX5BHEX5D_225244(slice, ((NI) 1));
		LOC44 = 0;
		LOC44 = HEX5BHEX5D_225244(slice, ((NI) 2));
		addslice_450835(c, n, LOC42, LOC43, LOC44);
		analysesons_451324(c, n);
	}
	goto LA1;
	LA39: ;
	{
		analysesons_451324(c, n);
	}
	LA1: ;
}

static N_INLINE(NI, len_225098)(Tnode224809* 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_451495)(Analysisctx450026* c, Tnode224809* n) {
	NI oldfacts;
	analyse_451316(c, (*n).kindU.S6.sons->data[((NI) 0)]);
	oldfacts = ((*c).guards ? (*c).guards->Sup.len : 0);
	{
		NI i_451529;
		NI HEX3Atmp_451583;
		NI LOC2;
		NI res_451586;
		i_451529 = 0;
		HEX3Atmp_451583 = 0;
		LOC2 = 0;
		LOC2 = len_225098(n);
		HEX3Atmp_451583 = (LOC2 - 1);
		res_451586 = ((NI) 1);
		{
			while (1) {
				Tnode224809* branch;
				if (!(res_451586 <= HEX3Atmp_451583)) goto LA4;
				i_451529 = res_451586;
				branch = (*n).kindU.S6.sons->data[i_451529];
				(*c).guards = (Tnodeseq224803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode224809*), ((NI) (oldfacts)));
				addcasebranchfacts_360137((&(*c).guards), n, i_451529);
				{
					NI i_451562;
					NI HEX3Atmp_451576;
					NI LOC6;
					NI res_451579;
					i_451562 = 0;
					HEX3Atmp_451576 = 0;
					LOC6 = 0;
					LOC6 = len_225098(branch);
					HEX3Atmp_451576 = (LOC6 - 1);
					res_451579 = ((NI) 0);
					{
						while (1) {
							if (!(res_451579 <= HEX3Atmp_451576)) goto LA8;
							i_451562 = res_451579;
							analyse_451316(c, (*branch).kindU.S6.sons->data[i_451562]);
							res_451579 += ((NI) 1);
						} LA8: ;
					}
				}
				res_451586 += ((NI) 1);
			} LA4: ;
		}
	}
	(*c).guards = (Tnodeseq224803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode224809*), ((NI) (oldfacts)));
}

N_NIMCALL(void, analyseif_451614)(Analysisctx450026* c, Tnode224809* n) {
	NI oldfacts;
	Tnode224809* LOC1;
	analyse_451316(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_356843((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
	addfact_357392((&(*c).guards), LOC1);
	analyse_451316(c, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]);
	{
		NI i_451654;
		NI HEX3Atmp_451732;
		NI LOC3;
		NI res_451735;
		i_451654 = 0;
		HEX3Atmp_451732 = 0;
		LOC3 = 0;
		LOC3 = len_225098(n);
		HEX3Atmp_451732 = (LOC3 - 1);
		res_451735 = ((NI) 1);
		{
			while (1) {
				Tnode224809* branch;
				if (!(res_451735 <= HEX3Atmp_451732)) goto LA5;
				i_451654 = res_451735;
				branch = (*n).kindU.S6.sons->data[i_451654];
				(*c).guards = (Tnodeseq224803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode224809*), ((NI) (oldfacts)));
				{
					NI j_451677;
					NI HEX3Atmp_451717;
					NI res_451720;
					j_451677 = 0;
					HEX3Atmp_451717 = 0;
					HEX3Atmp_451717 = (NI)(i_451654 - ((NI) 1));
					res_451720 = ((NI) 0);
					{
						while (1) {
							Tnode224809* LOC9;
							if (!(res_451720 <= HEX3Atmp_451717)) goto LA8;
							j_451677 = res_451720;
							LOC9 = 0;
							LOC9 = canon_356843((*(*n).kindU.S6.sons->data[j_451677]).kindU.S6.sons->data[((NI) 0)]);
							addfactneg_357426((&(*c).guards), LOC9);
							res_451720 += ((NI) 1);
						} LA8: ;
					}
				}
				{
					NI LOC12;
					Tnode224809* LOC15;
					LOC12 = 0;
					LOC12 = len_225098(branch);
					if (!(((NI) 1) < LOC12)) goto LA13;
					LOC15 = 0;
					LOC15 = canon_356843((*branch).kindU.S6.sons->data[((NI) 0)]);
					addfact_357392((&(*c).guards), LOC15);
				}
				LA13: ;
				{
					NI i_451703;
					NI HEX3Atmp_451725;
					NI LOC17;
					NI res_451728;
					i_451703 = 0;
					HEX3Atmp_451725 = 0;
					LOC17 = 0;
					LOC17 = len_225098(branch);
					HEX3Atmp_451725 = (LOC17 - 1);
					res_451728 = ((NI) 0);
					{
						while (1) {
							if (!(res_451728 <= HEX3Atmp_451725)) goto LA19;
							i_451703 = res_451728;
							analyse_451316(c, (*branch).kindU.S6.sons->data[i_451703]);
							res_451728 += ((NI) 1);
						} LA19: ;
					}
				}
				res_451735 += ((NI) 1);
			} LA5: ;
		}
	}
	(*c).guards = (Tnodeseq224803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode224809*), ((NI) (oldfacts)));
}

N_NIMCALL(void, analyse_451316)(Analysisctx450026* c, Tnode224809* n) {
	switch ((*n).kind) {
	case ((NU8) 73):
	case ((NU8) 74):
	{
		Tnode224809* y;
		Tnode224809* LOC2;
		Tnode224809* LOC17;
		Tnode224809* value;
		Tnode224809* LOC27;
		LOC2 = 0;
		LOC2 = HEX5BHEX5D_225244(n, ((NI) 1));
		y = skipconv_263935(LOC2);
		{
			NIM_BOOL LOC5;
			Tnode224809* LOC6;
			Monotonicvar450024* slot;
			Tnode224809* LOC10;
			LOC5 = 0;
			LOC6 = 0;
			LOC6 = HEX5BHEX5D_225244(n, ((NI) 0));
			LOC5 = issingleassignable_450356(LOC6);
			if (!(LOC5)) goto LA7;
			LOC5 = islocal_450416(y);
			LA7: ;
			if (!LOC5) goto LA8;
			slot = getslot_450209(c, (*y).kindU.S4.sym);
			LOC10 = 0;
			LOC10 = HEX5BHEX5D_225244(n, ((NI) 0));
			unsureAsgnRef((void**) (&(*slot).alias), (*LOC10).kindU.S4.sym);
		}
		goto LA3;
		LA8: ;
		{
			Tnode224809* LOC12;
			NIM_BOOL LOC13;
			Monotonicvar450024* slot;
			Tnode224809* LOC16;
			LOC12 = 0;
			LOC12 = HEX5BHEX5D_225244(n, ((NI) 0));
			LOC13 = 0;
			LOC13 = islocal_450416(LOC12);
			if (!LOC13) goto LA14;
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_225244(n, ((NI) 0));
			slot = getslot_450209(c, (*LOC16).kindU.S4.sym);
			(*slot).blacklisted = NIM_TRUE;
		}
		goto LA3;
		LA14: ;
		LA3: ;
		LOC17 = 0;
		LOC17 = HEX5BHEX5D_225244(n, ((NI) 0));
		invalidatefacts_357659((&(*c).guards), LOC17);
		value = HEX5BHEX5D_225244(n, ((NI) 1));
		{
			NU8 LOC20;
			NI oldspawnid;
			Tnode224809* LOC23;
			Tnode224809* LOC24;
			Tnode224809* LOC25;
			LOC20 = 0;
			LOC20 = getmagic_253417(value);
			if (!(LOC20 == ((NU8) 201))) goto LA21;
			(*c).spawns += ((NI) 1);
			oldspawnid = (*c).currentspawnid;
			(*c).currentspawnid = (*c).spawns;
			LOC23 = 0;
			LOC23 = HEX5BHEX5D_225244(value, ((NI) 1));
			gatherargs_450244(c, LOC23);
			LOC24 = 0;
			LOC24 = HEX5BHEX5D_225244(value, ((NI) 1));
			analysesons_451324(c, LOC24);
			LOC25 = 0;
			LOC25 = HEX5BHEX5D_225244(n, ((NI) 0));
			analyse_451316(c, LOC25);
			(*c).currentspawnid = oldspawnid;
		}
		goto LA18;
		LA21: ;
		{
			analysesons_451324(c, n);
		}
		LA18: ;
		LOC27 = 0;
		LOC27 = HEX5BHEX5D_225244(n, ((NI) 0));
		addasgnfact_360086((&(*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):
	{
		{
			Tnode224809* LOC31;
			Tnode224809* LOC34;
			LOC31 = 0;
			LOC31 = HEX5BHEX5D_225244(n, ((NI) 0));
			if (!((*LOC31).kind == ((NU8) 3))) goto LA32;
			LOC34 = 0;
			LOC34 = HEX5BHEX5D_225244(n, ((NI) 0));
			analysecall_451422(c, n, (*LOC34).kindU.S4.sym);
		}
		goto LA29;
		LA32: ;
		{
			analysesons_451324(c, n);
		}
		LA29: ;
	}
	break;
	case ((NU8) 42):
	{
		Tnode224809* LOC37;
		Tnode224809* LOC38;
		Tnode224809* LOC39;
		LOC37 = 0;
		LOC37 = HEX5BHEX5D_225244(n, ((NI) 0));
		LOC38 = 0;
		LOC38 = HEX5BHEX5D_225244(n, ((NI) 1));
		LOC39 = 0;
		LOC39 = HEX5BHEX5D_225244(n, ((NI) 1));
		addslice_450835(c, n, LOC37, LOC38, LOC39);
		analysesons_451324(c, n);
	}
	break;
	case ((NU8) 109):
	case ((NU8) 108):
	case ((NU8) 106):
	{
		localerror_195139((*n).info, ((NimStringDesc*) &TMP4275));
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		{
			Tnode224809* it_451819;
			it_451819 = 0;
			{
				NI i_451952;
				NI HEX3Atmp_451954;
				NI LOC44;
				NI res_451956;
				i_451952 = 0;
				HEX3Atmp_451954 = 0;
				LOC44 = 0;
				LOC44 = len_225098(n);
				HEX3Atmp_451954 = (LOC44 - 1);
				res_451956 = ((NI) 0);
				{
					while (1) {
						Tnode224809* value;
						NIM_BOOL isspawned;
						NU8 LOC47;
						if (!(res_451956 <= HEX3Atmp_451954)) goto LA46;
						i_451952 = res_451956;
						it_451819 = (*n).kindU.S6.sons->data[i_451952];
						value = lastson_227406(it_451819);
						LOC47 = 0;
						LOC47 = getmagic_253417(value);
						isspawned = (LOC47 == ((NU8) 201));
						{
							NI oldspawnid;
							Tnode224809* LOC52;
							Tnode224809* LOC53;
							if (!isspawned) goto LA50;
							(*c).spawns += ((NI) 1);
							oldspawnid = (*c).currentspawnid;
							(*c).currentspawnid = (*c).spawns;
							LOC52 = 0;
							LOC52 = HEX5BHEX5D_225244(value, ((NI) 1));
							gatherargs_450244(c, LOC52);
							LOC53 = 0;
							LOC53 = HEX5BHEX5D_225244(value, ((NI) 1));
							analysesons_451324(c, LOC53);
							(*c).currentspawnid = oldspawnid;
						}
						LA50: ;
						{
							if (!!(((*value).kind == ((NU8) 1)))) goto LA56;
							{
								NI j_451862;
								NI HEX3Atmp_451942;
								NI LOC59;
								NI res_451945;
								j_451862 = 0;
								HEX3Atmp_451942 = 0;
								LOC59 = 0;
								LOC59 = len_225098(it_451819);
								HEX3Atmp_451942 = (NI)(LOC59 - ((NI) 3));
								res_451945 = ((NI) 0);
								{
									while (1) {
										if (!(res_451945 <= HEX3Atmp_451942)) goto LA61;
										j_451862 = res_451945;
										{
											Tnode224809* LOC64;
											NIM_BOOL LOC65;
											Monotonicvar450024* slot;
											Tnode224809* LOC68;
											LOC64 = 0;
											LOC64 = HEX5BHEX5D_225244(it_451819, j_451862);
											LOC65 = 0;
											LOC65 = islocal_450416(LOC64);
											if (!LOC65) goto LA66;
											LOC68 = 0;
											LOC68 = HEX5BHEX5D_225244(it_451819, j_451862);
											slot = getslot_450209(c, (*LOC68).kindU.S4.sym);
											{
												if (!(*slot).lower == 0) goto LA71;
												unsureAsgnRef((void**) (&(*slot).lower), value);
											}
											goto LA69;
											LA71: ;
											{
												internalerror_195172((*it_451819).info, ((NimStringDesc*) &TMP4276));
											}
											LA69: ;
										}
										LA66: ;
										res_451945 += ((NI) 1);
									} LA61: ;
								}
							}
							{
								if (!!(isspawned)) goto LA76;
								analyse_451316(c, value);
							}
							LA76: ;
						}
						LA56: ;
						res_451956 += ((NI) 1);
					} LA46: ;
				}
			}
		}
	}
	break;
	case ((NU8) 97):
	{
		analysecase_451495(c, n);
	}
	break;
	case ((NU8) 93):
	case ((NU8) 92):
	case ((NU8) 48):
	{
		analyseif_451614(c, n);
	}
	break;
	case ((NU8) 96):
	{
		analyse_451316(c, (*n).kindU.S6.sons->data[((NI) 0)]);
		(*c).inloop += ((NI) 1);
		{
			NIM_BOOL LOC83;
			LOC83 = 0;
			LOC83 = istrue_368402((*n).kindU.S6.sons->data[((NI) 0)]);
			if (!LOC83) goto LA84;
			analysesons_451324(c, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		goto LA81;
		LA84: ;
		{
			NI oldstate;
			NI oldfacts;
			Tnode224809* LOC87;
			oldstate = ((*c).locals ? (*c).locals->Sup.len : 0);
			oldfacts = ((*c).guards ? (*c).guards->Sup.len : 0);
			LOC87 = 0;
			LOC87 = canon_356843((*n).kindU.S6.sons->data[((NI) 0)]);
			addfact_357392((&(*c).guards), LOC87);
			analyse_451316(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			(*c).locals = (TY450036*) setLengthSeq(&((*c).locals)->Sup, sizeof(Monotonicvar450024), ((NI) (oldstate)));
			(*c).guards = (Tnodeseq224803*) setLengthSeq(&((*c).guards)->Sup, sizeof(Tnode224809*), ((NI) (oldfacts)));
			{
				NIM_BOOL LOC90;
				Tnode224809* LOC93;
				LOC90 = 0;
				LOC90 = hassubnodewith_229439((*n).kindU.S6.sons->data[((NI) 1)], ((NU8) 110));
				if (!!(LOC90)) goto LA91;
				LOC93 = 0;
				LOC93 = canon_356843((*n).kindU.S6.sons->data[((NI) 0)]);
				addfactneg_357426((&(*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_451324(c, n);
	}
	break;
	}
}

N_NIMCALL(void, overlap_450883)(Tnodeseq224803* m, Tnode224809* x, Tnode224809* y, Tnode224809* c, Tnode224809* d) {
	NU8 LOC1;
	LOC1 = 0;
	LOC1 = provele_359823(m, c, y);
	switch (LOC1) {
	case ((NU8) 0):
	{
		NU8 LOC3;
		LOC3 = 0;
		LOC3 = provele_359823(m, x, d);
		switch (LOC3) {
		case ((NU8) 1):
		{
		}
		break;
		case ((NU8) 0):
		case ((NU8) 2):
		{
			TY450890 LOC6;
			NimStringDesc* LOC7;
			memset((void*)LOC6, 0, sizeof(LOC6));
			LOC6[0] = rendertree_246059(c, 0);
			LOC6[1] = rendertree_246059(y, 0);
			LOC6[2] = rendertree_246059(x, 0);
			LOC6[3] = rendertree_246059(y, 0);
			LOC6[4] = rendertree_246059(c, 0);
			LOC6[5] = rendertree_246059(d, 0);
			LOC7 = 0;
			LOC7 = nsuFormatOpenArray(((NimStringDesc*) &TMP4278), LOC6, 6);
			localerror_195139((*x).info, LOC7);
		}
		break;
		}
	}
	break;
	case ((NU8) 2):
	{
		NU8 LOC9;
		LOC9 = 0;
		LOC9 = provele_359823(m, x, d);
		switch (LOC9) {
		case ((NU8) 0):
		{
			TY450890 LOC11;
			NimStringDesc* LOC12;
			memset((void*)LOC11, 0, sizeof(LOC11));
			LOC11[0] = rendertree_246059(x, 0);
			LOC11[1] = rendertree_246059(d, 0);
			LOC11[2] = rendertree_246059(x, 0);
			LOC11[3] = rendertree_246059(y, 0);
			LOC11[4] = rendertree_246059(c, 0);
			LOC11[5] = rendertree_246059(d, 0);
			LOC12 = 0;
			LOC12 = nsuFormatOpenArray(((NimStringDesc*) &TMP4278), LOC11, 6);
			localerror_195139((*x).info, LOC12);
		}
		break;
		case ((NU8) 2):
		{
			TY450890 LOC14;
			NimStringDesc* LOC15;
			memset((void*)LOC14, 0, sizeof(LOC14));
			LOC14[0] = rendertree_246059(c, 0);
			LOC14[1] = rendertree_246059(y, 0);
			LOC14[2] = rendertree_246059(x, 0);
			LOC14[3] = rendertree_246059(y, 0);
			LOC14[4] = rendertree_246059(c, 0);
			LOC14[5] = rendertree_246059(d, 0);
			LOC15 = 0;
			LOC15 = nsuFormatOpenArray(((NimStringDesc*) &TMP4279), LOC14, 6);
			localerror_195139((*x).info, LOC15);
		}
		break;
		case ((NU8) 1):
		{
		}
		break;
		}
	}
	break;
	case ((NU8) 1):
	{
	}
	break;
	}
}

N_NIMCALL(Tnode224809*, substride_450993)(Analysisctx450026* c, Tnode224809* n) {
	Tnode224809* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_450416(n);
		if (!LOC3) goto LA4;
		s = lookupslot_450132(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_357160(n, (*(*c).locals->data[s].stride).kindU.S1.intval);
		}
		goto LA6;
		LA10: ;
		{
			result = n;
		}
		LA6: ;
	}
	goto LA1;
	LA4: ;
	{
		NI LOC14;
		LOC14 = 0;
		LOC14 = safelen_225126(n);
		if (!(((NI) 0) < LOC14)) goto LA15;
		result = shallowcopy_228817(n);
		{
			NI i_451033;
			NI HEX3Atmp_451037;
			NI LOC18;
			NI res_451040;
			i_451033 = 0;
			HEX3Atmp_451037 = 0;
			LOC18 = 0;
			LOC18 = len_225098(n);
			HEX3Atmp_451037 = (LOC18 - 1);
			res_451040 = ((NI) 0);
			{
				while (1) {
					if (!(res_451040 <= HEX3Atmp_451037)) goto LA20;
					i_451033 = res_451040;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_451033]), substride_450993(c, (*n).kindU.S6.sons->data[i_451033]));
					res_451040 += ((NI) 1);
				} LA20: ;
			}
		}
	}
	goto LA1;
	LA15: ;
	{
		result = n;
	}
	LA1: ;
	return result;
}

N_NIMCALL(NI64, stride_450920)(Analysisctx450026* c, Tnode224809* n) {
	NI64 result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NI s;
		LOC3 = 0;
		LOC3 = islocal_450416(n);
		if (!LOC3) goto LA4;
		s = lookupslot_450132(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_450959;
			NI HEX3Atmp_450971;
			NI LOC14;
			NI res_450974;
			i_450959 = 0;
			HEX3Atmp_450971 = 0;
			LOC14 = 0;
			LOC14 = safelen_225126(n);
			HEX3Atmp_450971 = (LOC14 - 1);
			res_450974 = ((NI) 0);
			{
				while (1) {
					NI64 LOC17;
					if (!(res_450974 <= HEX3Atmp_450971)) goto LA16;
					i_450959 = res_450974;
					LOC17 = 0;
					LOC17 = stride_450920(c, (*n).kindU.S6.sons->data[i_450959]);
					result += LOC17;
					res_450974 += ((NI) 1);
				} LA16: ;
			}
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, checkslicesaredisjoint_451059)(Analysisctx450026* c) {
	addlowerboundasfacts_450573(c);
	{
		Tnode224809* x_451211;
		Tnode224809* a_451212;
		Tnode224809* b_451213;
		NI id_451214;
		NIM_BOOL inloop_451215;
		TY450038* HEX3Atmp_451260;
		NI i_451263;
		NI L_451265;
		x_451211 = 0;
		a_451212 = 0;
		b_451213 = 0;
		id_451214 = 0;
		inloop_451215 = 0;
		HEX3Atmp_451260 = 0;
		HEX3Atmp_451260 = (*c).slices;
		i_451263 = ((NI) 0);
		L_451265 = (HEX3Atmp_451260 ? HEX3Atmp_451260->Sup.len : 0);
		{
			while (1) {
				if (!(i_451263 < L_451265)) goto LA3;
				x_451211 = HEX3Atmp_451260->data[i_451263].Field0;
				a_451212 = HEX3Atmp_451260->data[i_451263].Field1;
				b_451213 = HEX3Atmp_451260->data[i_451263].Field2;
				id_451214 = HEX3Atmp_451260->data[i_451263].Field3;
				inloop_451215 = HEX3Atmp_451260->data[i_451263].Field4;
				{
					Tnode224809* LOC8;
					Tnode224809* LOC9;
					if (!inloop_451215) goto LA6;
					LOC8 = 0;
					LOC8 = substride_450993((&(*c)), a_451212);
					LOC9 = 0;
					LOC9 = substride_450993((&(*c)), b_451213);
					overlap_450883((*c).guards, a_451212, b_451213, LOC8, LOC9);
				}
				LA6: ;
				i_451263 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NI i_451226;
		NI HEX3Atmp_451276;
		NI res_451279;
		i_451226 = 0;
		HEX3Atmp_451276 = 0;
		HEX3Atmp_451276 = ((*c).slices ? ((*c).slices->Sup.len-1) : -1);
		res_451279 = ((NI) 0);
		{
			while (1) {
				if (!(res_451279 <= HEX3Atmp_451276)) goto LA12;
				i_451226 = res_451279;
				{
					NI j_451237;
					NI HEX3Atmp_451268;
					NI HEX3Atmp_451269;
					NI res_451272;
					j_451237 = 0;
					HEX3Atmp_451268 = 0;
					HEX3Atmp_451269 = 0;
					HEX3Atmp_451268 = (NI)(i_451226 + ((NI) 1));
					HEX3Atmp_451269 = ((*c).slices ? ((*c).slices->Sup.len-1) : -1);
					res_451272 = HEX3Atmp_451268;
					{
						while (1) {
							TY450039 x;
							TY450039 y;
							if (!(res_451272 <= HEX3Atmp_451269)) goto LA15;
							j_451237 = res_451272;
							memset((void*)(&x), 0, sizeof(x));
							memcpy((void*)(&x), (NIM_CONST void*)(&(*c).slices->data[i_451226]), sizeof(x));
							memset((void*)(&y), 0, sizeof(y));
							memcpy((void*)(&y), (NIM_CONST void*)(&(*c).slices->data[j_451237]), sizeof(y));
							{
								NIM_BOOL LOC18;
								LOC18 = 0;
								LOC18 = !((x.Field3 == y.Field3));
								if (!(LOC18)) goto LA19;
								LOC18 = sametree_357462(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_450883((*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_358464(x.Field1, x.Field2);
									m = simpleslice_358464(y.Field1, y.Field2);
									LOC29 = 0;
									LOC29 = (IL64(0) <= k);
									if (!(LOC29)) goto LA30;
									LOC29 = (IL64(0) <= m);
									LA30: ;
									if (!LOC29) goto LA31;
									overlap_450883((*c).guards, x.Field1, x.Field2, y.Field1, y.Field2);
									LOC33 = 0;
									LOC33 = stride_450920((&(*c)), x.Field1);
									LOC34 = 0;
									LOC34 = stride_450920((&(*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: ;
									{
										TY193829 LOC42;
										NimStringDesc* LOC43;
										memset((void*)LOC42, 0, sizeof(LOC42));
										LOC42[0] = rendertree_246059(x.Field1, 0);
										LOC42[1] = rendertree_246059(x.Field2, 0);
										LOC42[2] = rendertree_246059(y.Field1, 0);
										LOC42[3] = rendertree_246059(y.Field2, 0);
										LOC43 = 0;
										LOC43 = nsuFormatOpenArray(((NimStringDesc*) &TMP4280), LOC42, 4);
										localerror_195139((*x.Field0).info, LOC43);
									}
									LA35: ;
								}
								goto LA22;
								LA31: ;
								{
									TY193829 LOC45;
									NimStringDesc* LOC46;
									memset((void*)LOC45, 0, sizeof(LOC45));
									LOC45[0] = rendertree_246059(x.Field1, 0);
									LOC45[1] = rendertree_246059(x.Field2, 0);
									LOC45[2] = rendertree_246059(y.Field1, 0);
									LOC45[3] = rendertree_246059(y.Field2, 0);
									LOC46 = 0;
									LOC46 = nsuFormatOpenArray(((NimStringDesc*) &TMP4280), LOC45, 4);
									localerror_195139((*x.Field0).info, LOC46);
								}
								LA22: ;
							}
							LA20: ;
							res_451272 += ((NI) 1);
						} LA15: ;
					}
				}
				res_451279 += ((NI) 1);
			} LA12: ;
		}
	}
}

N_NIMCALL(void, checkargs_452239)(Analysisctx450026* a, Tnode224809* n) {
}

N_NIMCALL(void, generatealiaschecks_452250)(Analysisctx450026* a, Tnode224809* result) {
}

N_NIMCALL(Tnode224809*, transformslices_451986)(Tnode224809* n) {
	Tnode224809* result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		Tnode224809* LOC5;
		Tsym224841* op;
		Tnode224809* 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_225244(n, ((NI) 0));
		LOC3 = ((*LOC5).kind == ((NU8) 3));
		LA4: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = HEX5BHEX5D_225244(n, ((NI) 0));
		op = (*LOC8).kindU.S4.sym;
		{
			NIM_BOOL LOC11;
			Tnode224809* LOC15;
			Tnode224809* LOC16;
			Tnode224809* slice;
			Tnode224809* LOC17;
			Tnode224809* LOC18;
			Tnode224809* LOC19;
			LOC11 = 0;
			LOC11 = eqStrings((*(*op).name).s, ((NimStringDesc*) &TMP4262));
			if (!(LOC11)) goto LA12;
			LOC11 = fromsystem_451393(op);
			LA12: ;
			if (!LOC11) goto LA13;
			result = copynode_228660(n);
			LOC15 = 0;
			LOC15 = newsymnode_226325(opslice_450055);
			add_225165(result, LOC15);
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_225244(n, ((NI) 1));
			add_225165(result, LOC16);
			LOC17 = 0;
			LOC17 = HEX5BHEX5D_225244(n, ((NI) 2));
			slice = skipstmtlist_229985(LOC17);
			LOC18 = 0;
			LOC18 = HEX5BHEX5D_225244(slice, ((NI) 1));
			add_225165(result, LOC18);
			LOC19 = 0;
			LOC19 = HEX5BHEX5D_225244(slice, ((NI) 2));
			add_225165(result, LOC19);
			goto BeforeRet;
		}
		LA13: ;
	}
	LA6: ;
	{
		NI LOC22;
		LOC22 = 0;
		LOC22 = safelen_225126(n);
		if (!(((NI) 0) < LOC22)) goto LA23;
		result = shallowcopy_228817(n);
		{
			NI i_452040;
			NI HEX3Atmp_452044;
			NI LOC26;
			NI res_452047;
			i_452040 = 0;
			HEX3Atmp_452044 = 0;
			LOC26 = 0;
			LOC26 = len_225098(n);
			HEX3Atmp_452044 = (LOC26 - 1);
			res_452047 = ((NI) 0);
			{
				while (1) {
					if (!(res_452047 <= HEX3Atmp_452044)) goto LA28;
					i_452040 = res_452047;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_452040]), transformslices_451986((*n).kindU.S6.sons->data[i_452040]));
					res_452047 += ((NI) 1);
				} LA28: ;
			}
		}
	}
	goto LA20;
	LA23: ;
	{
		result = n;
	}
	LA20: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode224809*, transformspawnsons_452074)(Tsym224841* owner, Tnode224809* n, Tnode224809* barrier) {
	Tnode224809* result;
	result = 0;
	result = shallowcopy_228817(n);
	{
		NI i_452099;
		NI HEX3Atmp_452103;
		NI LOC2;
		NI res_452106;
		i_452099 = 0;
		HEX3Atmp_452103 = 0;
		LOC2 = 0;
		LOC2 = len_225098(n);
		HEX3Atmp_452103 = (LOC2 - 1);
		res_452106 = ((NI) 0);
		{
			while (1) {
				if (!(res_452106 <= HEX3Atmp_452103)) goto LA4;
				i_452099 = res_452106;
				asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_452099]), transformspawn_452066(owner, (*n).kindU.S6.sons->data[i_452099], barrier));
				res_452106 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(Tnode224809*, transformspawn_452066)(Tsym224841* owner, Tnode224809* n, Tnode224809* barrier) {
	Tnode224809* result;
{	result = 0;
	switch ((*n).kind) {
	case ((NU8) 99):
	case ((NU8) 100):
	{
		result = NIM_NIL;
		{
			Tnode224809* it_452131;
			it_452131 = 0;
			{
				NI i_452214;
				NI HEX3Atmp_452216;
				NI LOC4;
				NI res_452218;
				i_452214 = 0;
				HEX3Atmp_452216 = 0;
				LOC4 = 0;
				LOC4 = len_225098(n);
				HEX3Atmp_452216 = (LOC4 - 1);
				res_452218 = ((NI) 0);
				{
					while (1) {
						Tnode224809* b;
						if (!(res_452218 <= HEX3Atmp_452216)) goto LA6;
						i_452214 = res_452218;
						it_452131 = (*n).kindU.S6.sons->data[i_452214];
						b = lastson_227406(it_452131);
						{
							NU8 LOC9;
							Tnode224809* m;
							Ttype224847* t;
							Tnode224809* LOC21;
							Tnode224809* LOC22;
							LOC9 = 0;
							LOC9 = getmagic_253417(b);
							if (!(LOC9 == ((NU8) 201))) goto LA10;
							{
								NI LOC14;
								LOC14 = 0;
								LOC14 = len_225098(it_452131);
								if (!!((LOC14 == ((NI) 3)))) goto LA15;
								localerror_195139((*it_452131).info, ((NimStringDesc*) &TMP4284));
							}
							LA15: ;
							m = transformslices_451986(b);
							{
								if (!result == 0) goto LA19;
								result = newnodei_226351(((NU8) 115), (*n).info);
								add_225165(result, n);
							}
							LA19: ;
							LOC21 = 0;
							LOC21 = HEX5BHEX5D_225244(b, ((NI) 1));
							LOC22 = 0;
							LOC22 = HEX5BHEX5D_225244(LOC21, ((NI) 0));
							t = (*(*LOC22).typ).sons->data[((NI) 0)];
							{
								NU8 LOC25;
								Tnode224809* LOC28;
								Tnode224809* LOC29;
								NI LOC30;
								LOC25 = 0;
								LOC25 = spawnresult_403208(t, NIM_TRUE);
								if (!(LOC25 == ((NU8) 2))) goto LA26;
								LOC28 = 0;
								LOC28 = HEX5BHEX5D_225244(it_452131, ((NI) 0));
								LOC29 = 0;
								LOC29 = wrapprocforspawn_403850(owner, m, (*b).typ, barrier, LOC28);
								add_225165(result, LOC29);
								LOC30 = 0;
								LOC30 = len_225098(it_452131);
								asgnRefNoCycle((void**) (&(*it_452131).kindU.S6.sons->data[(NI)(LOC30 - ((NI) 1))]), emptynode_225807);
							}
							goto LA23;
							LA26: ;
							{
								NI LOC32;
								LOC32 = 0;
								LOC32 = len_225098(it_452131);
								asgnRefNoCycle((void**) (&(*it_452131).kindU.S6.sons->data[(NI)(LOC32 - ((NI) 1))]), wrapprocforspawn_403850(owner, m, (*b).typ, barrier, NIM_NIL));
							}
							LA23: ;
						}
						LA10: ;
						res_452218 += ((NI) 1);
					} LA6: ;
				}
			}
		}
		{
			if (!result == 0) goto LA35;
			result = n;
		}
		LA35: ;
	}
	break;
	case ((NU8) 73):
	case ((NU8) 74):
	{
		Tnode224809* b;
		b = HEX5BHEX5D_225244(n, ((NI) 1));
		{
			NIM_BOOL LOC40;
			NU8 LOC41;
			Ttype224847* t;
			Tnode224809* LOC43;
			Tnode224809* LOC44;
			NU8 LOC45;
			Tnode224809* m;
			Tnode224809* LOC48;
			LOC40 = 0;
			LOC41 = 0;
			LOC41 = getmagic_253417(b);
			LOC40 = (LOC41 == ((NU8) 201));
			if (!(LOC40)) goto LA42;
			LOC43 = 0;
			LOC43 = HEX5BHEX5D_225244(b, ((NI) 1));
			LOC44 = 0;
			LOC44 = HEX5BHEX5D_225244(LOC43, ((NI) 0));
			t = (*(*LOC44).typ).sons->data[((NI) 0)];
			LOC45 = 0;
			LOC45 = spawnresult_403208(t, NIM_TRUE);
			LOC40 = (LOC45 == ((NU8) 2));
			LA42: ;
			if (!LOC40) goto LA46;
			m = transformslices_451986(b);
			LOC48 = 0;
			LOC48 = HEX5BHEX5D_225244(n, ((NI) 0));
			result = wrapprocforspawn_403850(owner, m, (*b).typ, barrier, LOC48);
			goto BeforeRet;
		}
		LA46: ;
		result = transformspawnsons_452074(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_253417(n);
			if (!(LOC52 == ((NU8) 201))) goto LA53;
			result = transformslices_451986(n);
			result = wrapprocforspawn_403850(owner, result, (*n).typ, barrier, NIM_NIL);
			goto BeforeRet;
		}
		LA53: ;
		result = transformspawnsons_452074(owner, n, barrier);
	}
	break;
	default:
	{
		{
			NI LOC58;
			LOC58 = 0;
			LOC58 = safelen_225126(n);
			if (!(((NI) 0) < LOC58)) goto LA59;
			result = transformspawnsons_452074(owner, n, barrier);
		}
		goto LA56;
		LA59: ;
		{
			result = n;
		}
		LA56: ;
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode224809*, liftparallel_452260)(Tsym224841* owner, Tnode224809* n) {
	Tnode224809* result;
	Analysisctx450026 a;
	Tnode224809* body;
	Tnode224809* varsection;
	Tsym224841* temp;
	Tident197021* LOC5;
	Tsym224841* LOC6;
	Tnode224809* tempnode;
	Tnode224809* barrier;
	Tnode224809* LOC7;
	Tnode224809* LOC8;
	Tnode224809* LOC9;
	result = 0;
	memset((void*)(&a), 0, sizeof(a));
	chckNil((void*)(&a));
	memset((void*)(&a), 0, sizeof(a));
	initanalysisctx_450059((&a));
	body = lastson_227406(n);
	analyse_451316((&a), body);
	{
		if (!(a.spawns == ((NI) 0))) goto LA3;
		localerror_195139((*n).info, ((NimStringDesc*) &TMP4277));
	}
	LA3: ;
	checkslicesaredisjoint_451059((&a));
	checkargs_452239((&a), body);
	varsection = newnodei_226351(((NU8) 99), (*n).info);
	LOC5 = 0;
	LOC5 = getident_197463(((NimStringDesc*) &TMP4281));
	temp = newsym_225656(((NU8) 5), LOC5, owner, (*n).info);
	LOC6 = 0;
	LOC6 = getcompilerproc_273809(((NimStringDesc*) &TMP4282));
	asgnRefNoCycle((void**) (&(*temp).typ), (*LOC6).typ);
	(*temp).flags |= ((NU32)1)<<((((NU8) 2))%(sizeof(NU32)*8));
	tempnode = newsymnode_226325(temp);
	addvar_401047(varsection, tempnode);
	barrier = genaddrof_403064(tempnode);
	result = newnodei_226351(((NU8) 115), (*n).info);
	generatealiaschecks_452250((&a), result);
	add_225165(result, varsection);
	LOC7 = 0;
	LOC7 = callcodegenproc_403086(((NimStringDesc*) &TMP4283), barrier, NIM_NIL, NIM_NIL, NIM_NIL);
	add_225165(result, LOC7);
	LOC8 = 0;
	LOC8 = transformspawn_452066(owner, body, barrier);
	add_225165(result, LOC8);
	LOC9 = 0;
	LOC9 = callcodegenproc_403086(((NimStringDesc*) &TMP4285), barrier, NIM_NIL, NIM_NIL, NIM_NIL);
	add_225165(result, LOC9);
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_semparallelInit000)(void) {
	asgnRefNoCycle((void**) (&opslice_450055), createmagic_230047(((NimStringDesc*) &TMP1031), ((NU8) 138)));
}

NIM_EXTERNC N_NOINLINE(void, compiler_semparallelDatInit000)(void) {
static TNimNode* TMP4254[7];
static TNimNode* TMP4255[2];
NI TMP4257;
static char* NIM_CONST TMP4256[2] = {
"ascending", 
"descending"};
static TNimNode* TMP4259[5];
static TNimNode TMP1029[17];
NTI450024.size = sizeof(Monotonicvar450024);
NTI450024.kind = 18;
NTI450024.base = 0;
NTI450024.flags = 2;
TMP4254[0] = &TMP1029[1];
TMP1029[1].kind = 1;
TMP1029[1].offset = offsetof(Monotonicvar450024, v);
TMP1029[1].typ = (&NTI224807);
TMP1029[1].name = "v";
TMP4254[1] = &TMP1029[2];
TMP1029[2].kind = 1;
TMP1029[2].offset = offsetof(Monotonicvar450024, alias);
TMP1029[2].typ = (&NTI224807);
TMP1029[2].name = "alias";
TMP4254[2] = &TMP1029[3];
TMP1029[3].kind = 1;
TMP1029[3].offset = offsetof(Monotonicvar450024, lower);
TMP1029[3].typ = (&NTI224801);
TMP1029[3].name = "lower";
TMP4254[3] = &TMP1029[4];
TMP1029[4].kind = 1;
TMP1029[4].offset = offsetof(Monotonicvar450024, upper);
TMP1029[4].typ = (&NTI224801);
TMP1029[4].name = "upper";
TMP4254[4] = &TMP1029[5];
TMP1029[5].kind = 1;
TMP1029[5].offset = offsetof(Monotonicvar450024, stride);
TMP1029[5].typ = (&NTI224801);
TMP1029[5].name = "stride";
TMP4254[5] = &TMP1029[6];
NTI450022.size = sizeof(NU8);
NTI450022.kind = 14;
NTI450022.base = 0;
NTI450022.flags = 3;
for (TMP4257 = 0; TMP4257 < 2; TMP4257++) {
TMP1029[TMP4257+7].kind = 1;
TMP1029[TMP4257+7].offset = TMP4257;
TMP1029[TMP4257+7].name = TMP4256[TMP4257];
TMP4255[TMP4257] = &TMP1029[TMP4257+7];
}
TMP1029[9].len = 2; TMP1029[9].kind = 2; TMP1029[9].sons = &TMP4255[0];
NTI450022.node = &TMP1029[9];
TMP1029[6].kind = 1;
TMP1029[6].offset = offsetof(Monotonicvar450024, dir);
TMP1029[6].typ = (&NTI450022);
TMP1029[6].name = "dir";
TMP4254[6] = &TMP1029[10];
TMP1029[10].kind = 1;
TMP1029[10].offset = offsetof(Monotonicvar450024, blacklisted);
TMP1029[10].typ = (&NTI138);
TMP1029[10].name = "blacklisted";
TMP1029[0].len = 7; TMP1029[0].kind = 2; TMP1029[0].sons = &TMP4254[0];
NTI450024.node = &TMP1029[0];
NTI450036.size = sizeof(TY450036*);
NTI450036.kind = 24;
NTI450036.base = (&NTI450024);
NTI450036.flags = 2;
NTI450036.marker = TMP4258;
NTI450039.size = sizeof(TY450039);
NTI450039.kind = 18;
NTI450039.base = 0;
NTI450039.flags = 2;
TMP4259[0] = &TMP1029[12];
TMP1029[12].kind = 1;
TMP1029[12].offset = offsetof(TY450039, Field0);
TMP1029[12].typ = (&NTI224801);
TMP1029[12].name = "Field0";
TMP4259[1] = &TMP1029[13];
TMP1029[13].kind = 1;
TMP1029[13].offset = offsetof(TY450039, Field1);
TMP1029[13].typ = (&NTI224801);
TMP1029[13].name = "Field1";
TMP4259[2] = &TMP1029[14];
TMP1029[14].kind = 1;
TMP1029[14].offset = offsetof(TY450039, Field2);
TMP1029[14].typ = (&NTI224801);
TMP1029[14].name = "Field2";
TMP4259[3] = &TMP1029[15];
TMP1029[15].kind = 1;
TMP1029[15].offset = offsetof(TY450039, Field3);
TMP1029[15].typ = (&NTI108);
TMP1029[15].name = "Field3";
TMP4259[4] = &TMP1029[16];
TMP1029[16].kind = 1;
TMP1029[16].offset = offsetof(TY450039, Field4);
TMP1029[16].typ = (&NTI138);
TMP1029[16].name = "Field4";
TMP1029[11].len = 5; TMP1029[11].kind = 2; TMP1029[11].sons = &TMP4259[0];
NTI450039.node = &TMP1029[11];
NTI450038.size = sizeof(TY450038*);
NTI450038.kind = 24;
NTI450038.base = (&NTI450039);
NTI450038.flags = 2;
NTI450038.marker = TMP4260;
}

