/* Generated by Nimrod Compiler v0.9.5 */
/*   (c) 2014 Andreas Rumpf */
/* The generated code is subject to the original license. */
/* Compiled for: Linux, i386, gcc */
/* Command for C compiler:
   gcc -c  -w -O3 -fno-strict-aliasing  -I/build/nimrod/src/nimrod/lib -o compiler/nimcache/sempass2.o compiler/nimcache/sempass2.c */
#define NIM_INTBITS 32
#include "nimbase.h"

#include <string.h>
typedef struct tsym188833 tsym188833;
typedef struct tnode188803 tnode188803;
typedef struct tidobj167013 tidobj167013;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct ttypeseq188835 ttypeseq188835;
typedef struct ttype188837 ttype188837;
typedef struct TGenericSeq TGenericSeq;
typedef struct tscope188827 tscope188827;
typedef struct TY188933 TY188933;
typedef struct tinstantiation188823 tinstantiation188823;
typedef struct tstrtable188807 tstrtable188807;
typedef struct tsymseq188805 tsymseq188805;
typedef struct tident167019 tident167019;
typedef struct tlineinfo163527 tlineinfo163527;
typedef struct tloc188817 tloc188817;
typedef struct trope145007 trope145007;
typedef struct tlib188821 tlib188821;
typedef struct NimStringDesc NimStringDesc;
typedef struct tnodeseq188797 tnodeseq188797;
typedef struct TY79484 TY79484;
typedef struct teffects318010 teffects318010;
typedef struct TY298698 TY298698;
typedef struct tcell41090 tcell41090;
typedef struct tcellseq41106 tcellseq41106;
typedef struct tgcheap43016 tgcheap43016;
typedef struct tcellset41102 tcellset41102;
typedef struct tpagedesc41098 tpagedesc41098;
typedef struct tmemregion23410 tmemregion23410;
typedef struct tsmallchunk22638 tsmallchunk22638;
typedef struct tllchunk23404 tllchunk23404;
typedef struct tbigchunk22640 tbigchunk22640;
typedef struct tintset22615 tintset22615;
typedef struct ttrunk22611 ttrunk22611;
typedef struct tavlnode23408 tavlnode23408;
typedef struct tgcstat43014 tgcstat43014;
typedef struct TY227865 TY227865;
typedef struct TY227866 TY227866;
typedef struct tintset185047 tintset185047;
typedef struct ttrunk185043 ttrunk185043;
typedef struct ttrunkseq185045 ttrunkseq185045;
typedef struct TY188922 TY188922;
typedef struct tlistentry118017 tlistentry118017;
typedef struct tbasechunk22636 tbasechunk22636;
typedef struct tfreecell22628 tfreecell22628;
typedef N_NIMCALL_PTR(void, TY2289) (void* p, NI op);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY2289 marker;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  tidobj167013  {
  TNimObject Sup;
NI Id;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  tstrtable188807  {
NI Counter;
tsymseq188805* Data;
};
struct  tlineinfo163527  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
struct  tloc188817  {
NU8 K;
NU8 S;
NU8 Flags;
ttype188837* T;
trope145007* R;
trope145007* Heaproot;
NI A;
};
struct  tsym188833  {
  tidobj167013 Sup;
NU8 Kind;
union {
struct {ttypeseq188835* Typeinstcache;
tscope188827* Typscope;
} S1;
struct {TY188933* Procinstcache;
tscope188827* Scope;
} S2;
struct {TY188933* Usedgenerics;
tstrtable188807 Tab;
} S3;
} kindU;
NU16 Magic;
ttype188837* Typ;
tident167019* Name;
tlineinfo163527 Info;
tsym188833* Owner;
NU32 Flags;
tnode188803* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc188817 Loc;
tlib188821* Annex;
tnode188803* Constraint;
};
struct  ttype188837  {
  tidobj167013 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq188835* Sons;
tnode188803* N;
tsym188833* Destructor;
tsym188833* Owner;
tsym188833* Sym;
NI64 Size;
NI Align;
tloc188817 Loc;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  tnode188803  {
ttype188837* Typ;
tlineinfo163527 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym188833* Sym;
} S4;
struct {tident167019* Ident;
} S5;
struct {tnodeseq188797* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
struct TY79484 {
NimStringDesc* Field0;
NI Field1;
};
struct  teffects318010  {
tnode188803* Exc;
tnode188803* Tags;
tnode188803* Uses;
NI Bottom;
tsym188833* Owner;
TY298698* Init;
tnodeseq188797* Guards;
tnodeseq188797* Locked;
NIM_BOOL Gcunsafe;
NIM_BOOL Isrecursive;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  tcell41090  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq41106  {
NI Len;
NI Cap;
tcell41090** D;
};
struct  tcellset41102  {
NI Counter;
NI Max;
tpagedesc41098* Head;
tpagedesc41098** Data;
};
typedef tsmallchunk22638* TY23422[512];
typedef ttrunk22611* ttrunkbuckets22613[256];
struct  tintset22615  {
ttrunkbuckets22613 Data;
};
struct  tmemregion23410  {
NI Minlargeobj;
NI Maxlargeobj;
TY23422 Freesmallchunks;
tllchunk23404* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk22640* Freechunkslist;
tintset22615 Chunkstarts;
tavlnode23408* Root;
tavlnode23408* Deleted;
tavlnode23408* Last;
tavlnode23408* Freeavlnodes;
};
struct  tgcstat43014  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap43016  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq41106 Zct;
tcellseq41106 Decstack;
tcellset41102 Cycleroots;
tcellseq41106 Tempstack;
NI Recgclock;
tmemregion23410 Region;
tgcstat43014 Stat;
};
struct  tident167019  {
  tidobj167013 Sup;
NimStringDesc* S;
tident167019* Next;
NI H;
};
typedef NU8 TY439854[20];
struct TY227866 {
NI Field0;
NI Field1;
};
typedef N_NIMCALL_PTR(NIM_BOOL, TY324529) (tnode188803* a, tnode188803* b);
struct  tintset185047  {
NI Counter;
NI Max;
ttrunk185043* Head;
ttrunkseq185045* Data;
};
typedef tnode188803* TY251116[2];
typedef NimStringDesc* TY171327[252];
struct  tscope188827  {
NI Depthlevel;
tstrtable188807 Symbols;
tnodeseq188797* Usingsyms;
tscope188827* Parent;
};
struct  tinstantiation188823  {
tsym188833* Sym;
ttypeseq188835* Concretetypes;
TY188922* Usedby;
};
struct  trope145007  {
  TNimObject Sup;
trope145007* Left;
trope145007* Right;
NI Length;
NimStringDesc* Data;
};
struct  tlistentry118017  {
  TNimObject Sup;
tlistentry118017* Prev;
tlistentry118017* Next;
};
struct  tlib188821  {
  tlistentry118017 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope145007* Name;
tnode188803* Path;
};
typedef NI TY22618[16];
struct  tpagedesc41098  {
tpagedesc41098* Next;
NI Key;
TY22618 Bits;
};
struct  tbasechunk22636  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk22638  {
  tbasechunk22636 Sup;
tsmallchunk22638* Next;
tsmallchunk22638* Prev;
tfreecell22628* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk23404  {
NI Size;
NI Acc;
tllchunk23404* Next;
};
struct  tbigchunk22640  {
  tbasechunk22636 Sup;
tbigchunk22640* Next;
tbigchunk22640* Prev;
NI Align;
NF Data;
};
struct  ttrunk22611  {
ttrunk22611* Next;
NI Key;
TY22618 Bits;
};
typedef tavlnode23408* TY23414[2];
struct  tavlnode23408  {
TY23414 Link;
NI Key;
NI Upperbound;
NI Level;
};
struct  ttrunk185043  {
ttrunk185043* Next;
NI Key;
TY22618 Bits;
};
struct  tfreecell22628  {
tfreecell22628* Next;
NI Zerofield;
};
struct ttypeseq188835 {
  TGenericSeq Sup;
  ttype188837* data[SEQ_DECL_SIZE];
};
struct TY188933 {
  TGenericSeq Sup;
  tinstantiation188823* data[SEQ_DECL_SIZE];
};
struct tsymseq188805 {
  TGenericSeq Sup;
  tsym188833* data[SEQ_DECL_SIZE];
};
struct tnodeseq188797 {
  TGenericSeq Sup;
  tnode188803* data[SEQ_DECL_SIZE];
};
struct TY298698 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
struct TY227865 {
  TGenericSeq Sup;
  TY227866 data[SEQ_DECL_SIZE];
};
struct ttrunkseq185045 {
  TGenericSeq Sup;
  ttrunk185043* data[SEQ_DECL_SIZE];
};
struct TY188922 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, internalerror_165606)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_165714)(TY79484 x_165718);
static N_INLINE(NI, len_189264)(tnode188803* n);
N_NIMCALL(void, initeffects_324978)(tnode188803* effects, tsym188833* s, teffects318010* t);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(tcell41090*, usrtocell_44443)(void* usr);
static N_INLINE(void, rtladdzct_46002)(tcell41090* c);
N_NOINLINE(void, addzct_44418)(tcellseq41106* s, tcell41090* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(tnode188803*, newnodei_189099)(NU8 kind, tlineinfo163527 info);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, track_319664)(teffects318010* tracked, tnode188803* n);
N_NIMCALL(void, usevar_318401)(teffects318010* a, tnode188803* n);
N_NIMCALL(NIM_BOOL, islocalvar_318026)(teffects318010* a, tsym188833* s);
static N_INLINE(NIM_BOOL, contains_318422)(NI* a_318428, NI a_318428Len0, NI item_318431);
static N_INLINE(NI, find_318434)(NI* a_318439, NI a_318439Len0, NI item_318441);
N_NIMCALL(void, message_165584)(tlineinfo163527 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
static N_INLINE(NIM_BOOL, isgcedmem_192814)(ttype188837* t);
N_NIMCALL(NimStringDesc*, rendertree_211051)(tnode188803* n, NU8 renderflags);
N_NIMCALL(void, throws_318917)(tnode188803* tracked, tnode188803* n);
N_NIMCALL(void, add_189390)(tnode188803* father, tnode188803* son);
static N_INLINE(NI, safelen_189320)(tnode188803* n);
N_NIMCALL(NIM_BOOL, importedfromc_321010)(tnode188803* n);
N_NIMCALL(void, propagateeffects_321052)(teffects318010* tracked, tnode188803* n, tsym188833* s);
N_NIMCALL(tnode188803*, effectspec_320654)(tnode188803* n, NU8 effecttype);
static N_INLINE(NI, sonslen_189181)(tnode188803* n);
N_NIMCALL(NU8, whichpragma_222161)(tnode188803* n);
N_NIMCALL(void, mergeeffects_319285)(teffects318010* a, tnode188803* b, tnode188803* comesfrom);
N_NIMCALL(void, addeffect_319005)(teffects318010* a, tnode188803* e, NIM_BOOL uselineinfo);
N_NIMCALL(NIM_BOOL, sametype_228116)(ttype188837* a, ttype188837* b, NU8 flags);
N_NIMCALL(ttype188837*, exctype_318949)(tnode188803* n);
N_NIMCALL(ttype188837*, systypefromname_242204)(NimStringDesc* name);
N_NIMCALL(ttype188837*, skiptypes_192793)(ttype188837* t, NU64 kinds);
static N_INLINE(tnode188803*, HEX5BHEX5D_189694)(tnode188803* n, NI i);
N_NIMCALL(NIM_BOOL, HEX3DHEX3D_165246)(tlineinfo163527 a, tlineinfo163527 b);
N_NIMCALL(tnode188803*, createraise_318965)(tnode188803* n);
N_NIMCALL(tnode188803*, newnode_189065)(NU8 kind);
N_NIMCALL(void, mergetags_319328)(teffects318010* a, tnode188803* b, tnode188803* comesfrom);
N_NIMCALL(void, addtag_319241)(teffects318010* a, tnode188803* e, NIM_BOOL uselineinfo);
N_NIMCALL(tnode188803*, createtag_318982)(tnode188803* n);
N_NIMCALL(NIM_BOOL, isforwardedproc_320564)(tnode188803* n);
N_NIMCALL(NIM_BOOL, isindirectcall_320451)(tnode188803* n, tsym188833* owner);
N_NIMCALL(void, trackoperand_321317)(teffects318010* tracked, tnode188803* n, ttype188837* paramtype);
N_NIMCALL(tnode188803*, skipconv_197231)(tnode188803* n);
N_NIMCALL(void, notnilcheck_321203)(teffects318010* tracked, tnode188803* n_321206, ttype188837* paramtype);
N_NIMCALL(NIM_BOOL, containsnode_194562)(tnode188803* n, TY439854 kinds);
N_NIMCALL(NU8, impliesnotnil_316041)(tnodeseq188797* facts, tnode188803* arg);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
N_NIMCALL(ttype188837*, paramtype_322996)(ttype188837* op, NI i);
N_NIMCALL(NI, len_192569)(ttype188837* n);
N_NIMCALL(void, initvarvianew_318230)(teffects318010* a, tnode188803* n);
N_NIMCALL(void, initvar_318076)(teffects318010* a, tnode188803* n);
N_NIMCALL(void, checkfieldaccess_317017)(tnodeseq188797* m, tnode188803* n);
N_NIMCALL(void, tracktrystmt_319669)(teffects318010* tracked, tnode188803* n);
N_NIMCALL(void, addtointersection_318835)(TY227865** inter, NI s);
N_NIMCALL(void, catchesall_319604)(teffects318010* tracked);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, catches_319447)(teffects318010* tracked, ttype188837* e_319450);
N_NIMCALL(NI, safeinheritancediff_232806)(ttype188837* a, ttype188837* b);
N_NIMCALL(void, trackpragmastmt_320606)(teffects318010* tracked, tnode188803* n);
N_NIMCALL(void, listeffects_319401)(teffects318010* a);
N_NIMCALL(NimStringDesc*, typetostring_223020)(ttype188837* typ, NU8 prefer);
N_NIMCALL(void, invalidatefacts_313830)(tnodeseq188797** m, tnode188803* n);
N_NIMCALL(void, addasgnfact_316590)(tnodeseq188797** m, tnode188803* key, tnode188803* value);
static N_INLINE(tnode188803*, lastson_189189)(tnode188803* n);
N_NIMCALL(void, trackcase_321918)(teffects318010* tracked, tnode188803* n);
N_NIMCALL(NIM_BOOL, interestingcaseexpr_312349)(tnode188803* m);
N_NIMCALL(void, addcasebranchfacts_316659)(tnodeseq188797** m, tnode188803* n, NI i);
N_NIMCALL(NIM_BOOL, breaksblock_321840)(tnode188803* n);
N_NIMCALL(void, trackif_322295)(teffects318010* tracked, tnode188803* n);
N_NIMCALL(void, addfact_313441)(tnodeseq188797** m, tnode188803* n_313445);
N_NIMCALL(void, addfactneg_313484)(tnodeseq188797** m, tnode188803* n_313488);
N_NIMCALL(void, trackblock_322816)(teffects318010* tracked, tnode188803* n);
N_NIMCALL(NIM_BOOL, hassubnodewith_189222)(tnode188803* n, NU8 kind);
N_NIMCALL(NIM_BOOL, istrue_322921)(tnode188803* n);
N_NIMCALL(void, adddiscriminantfact_316494)(tnodeseq188797** m, tnode188803* n);
static N_INLINE(NIM_BOOL, isemptytype_195210)(ttype188837* t);
N_NIMCALL(void, checkraisesspec_324523)(tnode188803* spec, tnode188803* real, NimStringDesc* msg, NIM_BOOL hints, TY324529 effectpredicate);
N_NIMCALL(void, initintset_185918)(tintset185047* Result);
N_NOINLINE(void, chckNil)(void* p);
N_NIMCALL(void, incl_185849)(tintset185047* s, NI key);
N_NIMCALL(void, pushinfocontext_164697)(tlineinfo163527 info);
N_NIMCALL(void, localerror_165571)(tlineinfo163527 info, NU16 msg, NimStringDesc* arg);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(void, popinfocontext_164720)(void);
N_NIMCALL(NIM_BOOL, contains_185821)(tintset185047 s, NI key);
N_NIMCALL(NIM_BOOL, subtyperelation_324481)(tnode188803* spec, tnode188803* real);
N_NIMCALL(NIM_BOOL, symbolpredicate_324488)(tnode188803* spec, tnode188803* real);
N_NIMCALL(void, localerror_165578)(tlineinfo163527 info, NimStringDesc* arg);
N_NIMCALL(tnode188803*, newnode_191003)(NU8 kind, tlineinfo163527 info, tnodeseq188797* sons, ttype188837* typ);
N_NIMCALL(void, documenteffect_320754)(tnode188803* n, tnode188803* x_320757, NU8 effecttype, NI idx);
N_NIMCALL(tnode188803*, newnodei_190803)(NU8 kind, tlineinfo163527 info, NI children);
N_NIMCALL(NIM_BOOL, nsuStartsWith)(NimStringDesc* s, NimStringDesc* prefix);
N_NIMCALL(NimStringDesc*, copyStr)(NimStringDesc* s, NI start);
N_NIMCALL(NimStringDesc*, copyStr)(NimStringDesc* s, NI first);
N_NIMCALL(tnode188803*, newidentnode_189090)(tident167019* ident, tlineinfo163527 info);
N_NIMCALL(tident167019*, getident_167456)(NimStringDesc* identifier);
STRING_LITERAL(TMP2989, "compiler/sempass2.nim", 21);
NIM_CONST TY79484 TMP2988 = {((NimStringDesc*) &TMP2989),
680}
;
STRING_LITERAL(TMP2990, "E_Base", 6);
STRING_LITERAL(TMP2991, "TEffect", 7);
NIM_CONST TY79484 TMP2992 = {((NimStringDesc*) &TMP2989),
363}
;
static NIM_CONST TY439854 TMP2993 = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00,
0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TMP3005, "cannot prove \'$1\' is not nil", 28);
STRING_LITERAL(TMP3006, "\'$1\' is provably nil", 20);
STRING_LITERAL(TMP3007, "result", 6);
STRING_LITERAL(TMP3008, "can raise an unlisted exception: ", 33);
STRING_LITERAL(TMP3009, "can have an unlisted effect: ", 29);
STRING_LITERAL(TMP3031, "may use an unlisted global variable: ", 37);
STRING_LITERAL(TMP3032, "base method is GC-safe, but \'$1\' is not", 39);
NIM_CONST TY79484 TMP3038 = {((NimStringDesc*) &TMP2989),
649}
;
NIM_CONST TY79484 TMP3039 = {((NimStringDesc*) &TMP2989),
656}
;
STRING_LITERAL(TMP4336, "ref ", 4);
extern NIM_CONST TY171327 specialwords_171326;
extern TNimType NTI188797; /* TNodeSeq */
extern tgcheap43016 gch_43044;
extern TNimType NTI298698; /* seq[int] */
extern NU8 gcmd_137113;
extern NU64 gnotes_164181;
extern TNimType NTI227865; /* seq[tuple[a: int, b: int]] */
extern NU32 gglobaloptions_137111;

static N_INLINE(NI, len_189264)(tnode188803* n) {
	NI result;
	result = 0;
	{
		if (!(*n).kindU.S6.Sons == 0) goto LA3;
		result = 0;
	}
	goto LA1;
	LA3: ;
	{
		result = (*n).kindU.S6.Sons->Sup.len;
	}
	LA1: ;
	return result;
}

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

static N_INLINE(void, rtladdzct_46002)(tcell41090* c) {
	addzct_44418(&gch_43044.Zct, c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	tcell41090* c;
	c = usrtocell_44443(p);
	{
		(*c).Refcount -= 8;
		if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA3;
		rtladdzct_46002(c);
	}
	LA3: ;
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		tcell41090* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_44443(src);
		(*c).Refcount += 8;
	}
	LA3: ;
	{
		tcell41090* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_44443((*dest));
		{
			(*c).Refcount -= 8;
			if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA11;
			rtladdzct_46002(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(void, initeffects_324978)(tnode188803* effects, tsym188833* s, teffects318010* t) {
	if ((*effects).kindU.S6.Sons) nimGCunrefNoCycle((*effects).kindU.S6.Sons);
	(*effects).kindU.S6.Sons = (tnodeseq188797*) newSeqRC1((&NTI188797), 4);
	asgnRefNoCycle((void**) &(*effects).kindU.S6.Sons->data[0], newnodei_189099(((NU8) 150), (*s).Info));
	asgnRefNoCycle((void**) &(*effects).kindU.S6.Sons->data[3], newnodei_189099(((NU8) 150), (*s).Info));
	asgnRefNoCycle((void**) &(*effects).kindU.S6.Sons->data[1], newnodei_189099(((NU8) 150), (*s).Info));
	unsureAsgnRef((void**) &(*t).Exc, (*effects).kindU.S6.Sons->data[0]);
	unsureAsgnRef((void**) &(*t).Tags, (*effects).kindU.S6.Sons->data[3]);
	unsureAsgnRef((void**) &(*t).Uses, (*effects).kindU.S6.Sons->data[1]);
	unsureAsgnRef((void**) &(*t).Owner, s);
	unsureAsgnRef((void**) &(*t).Init, (TY298698*) newSeq((&NTI298698), 0));
	unsureAsgnRef((void**) &(*t).Guards, (tnodeseq188797*) newSeq((&NTI188797), 0));
}

N_NIMCALL(NIM_BOOL, islocalvar_318026)(teffects318010* a, tsym188833* s) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC2;
	result = 0;
	LOC1 = 0;
	LOC2 = 0;
	LOC2 = ((2304 &(1<<(((*s).Kind)&31)))!=0);
	if (!(LOC2)) goto LA3;
	LOC2 = !((((*s).Flags &(1<<((((NU8) 3))&31)))!=0));
	LA3: ;
	LOC1 = LOC2;
	if (!(LOC1)) goto LA4;
	LOC1 = ((*s).Owner == (*a).Owner);
	LA4: ;
	result = LOC1;
	return result;
}

static N_INLINE(NI, find_318434)(NI* a_318439, NI a_318439Len0, NI item_318441) {
	NI result;
	NI i_318481;
	NI i_318499;
	result = 0;
	i_318481 = 0;
	i_318499 = 0;
	while (1) {
		if (!(i_318499 < a_318439Len0)) goto LA1;
		i_318481 = a_318439[i_318499];
		{
			if (!(i_318481 == item_318441)) goto LA4;
			goto BeforeRet;
		}
		LA4: ;
		result += 1;
		i_318499 += 1;
	} LA1: ;
	result = -1;
	BeforeRet: ;
	return result;
}

static N_INLINE(NIM_BOOL, contains_318422)(NI* a_318428, NI a_318428Len0, NI item_318431) {
	NIM_BOOL result;
	NI LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = find_318434(a_318428, a_318428Len0, item_318431);
	result = (0 <= LOC1);
	goto BeforeRet;
	BeforeRet: ;
	return result;
}

static N_INLINE(NIM_BOOL, isgcedmem_192814)(ttype188837* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*t).Kind == ((NU8) 28) || (*t).Kind == ((NU8) 22) || (*t).Kind == ((NU8) 24));
	if (LOC1) goto LA2;
	LOC3 = 0;
	LOC3 = ((*t).Kind == ((NU8) 25));
	if (!(LOC3)) goto LA4;
	LOC3 = ((*t).Callconv == ((NU8) 8));
	LA4: ;
	LOC1 = LOC3;
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(void, usevar_318401)(teffects318010* a, tnode188803* n) {
	tsym188833* s;
	s = (*n).kindU.S4.Sym;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = islocalvar_318026(a, s);
		if (!LOC3) goto LA4;
		{
			NIM_BOOL LOC8;
			LOC8 = 0;
			LOC8 = contains_318422((*a).Init->data, (*a).Init->Sup.len, (*s).Sup.Id);
			if (!!(LOC8)) goto LA9;
			{
				if (!!(((196608 & (*(*s).Typ).Flags) == 0))) goto LA13;
				message_165584((*n).Info, ((NU16) 249), (*(*s).Name).S);
			}
			goto LA11;
			LA13: ;
			{
				message_165584((*n).Info, ((NU16) 254), (*(*s).Name).S);
			}
			LA11: ;
			(*a).Init = (TY298698*) incrSeq(&((*a).Init)->Sup, sizeof(NI));
			(*a).Init->data[(*a).Init->Sup.len-1] = (*s).Sup.Id;
		}
		LA9: ;
	}
	LA4: ;
	{
		NIM_BOOL LOC18;
		LOC18 = 0;
		LOC18 = ((4194312 & (*s).Flags) == 8);
		if (!(LOC18)) goto LA19;
		LOC18 = ((*s).Kind == ((NU8) 8));
		LA19: ;
		if (!LOC18) goto LA20;
		{
			NIM_BOOL LOC24;
			NIM_BOOL LOC25;
			NimStringDesc* LOC30;
			LOC24 = 0;
			LOC25 = 0;
			LOC25 = (((*(*s).Typ).Flags &(1<<((((NU8) 20))&31)))!=0);
			if (LOC25) goto LA26;
			LOC25 = isgcedmem_192814((*s).Typ);
			LA26: ;
			LOC24 = LOC25;
			if (!(LOC24)) goto LA27;
			LOC24 = !((((*(*s).Typ).Flags &(1<<((((NU8) 7))&31)))!=0));
			LA27: ;
			if (!LOC24) goto LA28;
			LOC30 = 0;
			LOC30 = rendertree_211051(n, 0);
			message_165584((*n).Info, ((NU16) 252), LOC30);
			(*a).Gcunsafe = NIM_TRUE;
		}
		LA28: ;
	}
	LA20: ;
}

N_NIMCALL(void, throws_318917)(tnode188803* tracked, tnode188803* n) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*n).Typ == NIM_NIL);
		if (LOC3) goto LA4;
		LOC3 = !(((*(*n).Typ).Kind == ((NU8) 50)));
		LA4: ;
		if (!LOC3) goto LA5;
		add_189390(tracked, n);
	}
	LA5: ;
}

static N_INLINE(NI, safelen_189320)(tnode188803* 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 = 0;
	}
	goto LA1;
	LA5: ;
	{
		result = (*n).kindU.S6.Sons->Sup.len;
	}
	LA1: ;
	return result;
}

N_NIMCALL(NIM_BOOL, importedfromc_321010)(tnode188803* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*n).Kind == ((NU8) 3));
	if (!(LOC1)) goto LA2;
	LOC1 = (((*(*n).kindU.S4.Sym).Flags &(1<<((((NU8) 5))&31)))!=0);
	LA2: ;
	result = LOC1;
	return result;
}

static N_INLINE(NI, sonslen_189181)(tnode188803* n) {
	NI result;
	result = 0;
	{
		if (!(*n).kindU.S6.Sons == 0) goto LA3;
		result = 0;
	}
	goto LA1;
	LA3: ;
	{
		result = (*n).kindU.S6.Sons->Sup.len;
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode188803*, effectspec_320654)(tnode188803* n, NU8 effecttype) {
	tnode188803* result;
	NI i_320671;
	NI HEX3Atmp_320747;
	NI LOC1;
	NI res_320749;
	result = 0;
	i_320671 = 0;
	HEX3Atmp_320747 = 0;
	LOC1 = 0;
	LOC1 = sonslen_189181(n);
	HEX3Atmp_320747 = (NI32)(LOC1 - 1);
	res_320749 = 0;
	while (1) {
		tnode188803* it;
		if (!(res_320749 <= HEX3Atmp_320747)) goto LA2;
		i_320671 = res_320749;
		it = (*n).kindU.S6.Sons->data[i_320671];
		{
			NIM_BOOL LOC5;
			NU8 LOC7;
			LOC5 = 0;
			LOC5 = ((*it).Kind == ((NU8) 34));
			if (!(LOC5)) goto LA6;
			LOC7 = 0;
			LOC7 = whichpragma_222161(it);
			LOC5 = (LOC7 == effecttype);
			LA6: ;
			if (!LOC5) goto LA8;
			result = (*it).kindU.S6.Sons->data[1];
			{
				if (!!(((*result).Kind == ((NU8) 39) || (*result).Kind == ((NU8) 41)))) goto LA12;
				result = newnodei_189099(((NU8) 39), (*result).Info);
				add_189390(result, (*it).kindU.S6.Sons->data[1]);
			}
			LA12: ;
			goto BeforeRet;
		}
		LA8: ;
		res_320749 += 1;
	} LA2: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(ttype188837*, exctype_318949)(tnode188803* n) {
	ttype188837* result;
	ttype188837* t;
	result = 0;
	{
		if (!((*n).Kind == ((NU8) 1))) goto LA3;
		t = systypefromname_242204(((NimStringDesc*) &TMP2990));
	}
	goto LA1;
	LA3: ;
	{
		t = (*n).Typ;
	}
	LA1: ;
	result = skiptypes_192793(t, IL64(211106247215360));
	return result;
}

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

N_NIMCALL(void, addeffect_319005)(teffects318010* a, tnode188803* e, NIM_BOOL uselineinfo) {
	tnode188803* aa;
	NI i_319223;
	NI HEX3Atmp_319233;
	NI HEX3Atmp_319234;
	NI LOC1;
	NI res_319236;
	aa = (*a).Exc;
	i_319223 = 0;
	HEX3Atmp_319233 = 0;
	HEX3Atmp_319234 = 0;
	HEX3Atmp_319233 = (*a).Bottom;
	LOC1 = 0;
	LOC1 = len_189264(aa);
	HEX3Atmp_319234 = LOC1 - 1;
	res_319236 = HEX3Atmp_319233;
	while (1) {
		if (!(res_319236 <= HEX3Atmp_319234)) goto LA2;
		i_319223 = res_319236;
		{
			tnode188803* LOC5;
			ttype188837* LOC6;
			ttype188837* LOC7;
			NIM_BOOL LOC8;
			LOC5 = 0;
			LOC5 = HEX5BHEX5D_189694(aa, i_319223);
			LOC6 = 0;
			LOC6 = exctype_318949(LOC5);
			LOC7 = 0;
			LOC7 = exctype_318949(e);
			LOC8 = 0;
			LOC8 = sametype_228116(LOC6, LOC7, 0);
			if (!LOC8) goto LA9;
			{
				NIM_BOOL LOC13;
				LOC13 = 0;
				LOC13 = !(uselineinfo);
				if (LOC13) goto LA14;
				LOC13 = (gcmd_137113 == ((NU8) 8));
				LA14: ;
				if (!LOC13) goto LA15;
				goto BeforeRet;
			}
			goto LA11;
			LA15: ;
			{
				tnode188803* LOC18;
				NIM_BOOL LOC19;
				LOC18 = 0;
				LOC18 = HEX5BHEX5D_189694(aa, i_319223);
				LOC19 = 0;
				LOC19 = HEX3DHEX3D_165246((*LOC18).Info, (*e).Info);
				if (!LOC19) goto LA20;
				goto BeforeRet;
			}
			goto LA11;
			LA20: ;
			LA11: ;
		}
		LA9: ;
		res_319236 += 1;
	} LA2: ;
	throws_318917((*a).Exc, e);
	BeforeRet: ;
}

N_NIMCALL(tnode188803*, createraise_318965)(tnode188803* n) {
	tnode188803* result;
	result = 0;
	result = newnode_189065(((NU8) 4));
	asgnRefNoCycle((void**) &(*result).Typ, systypefromname_242204(((NimStringDesc*) &TMP2990)));
	{
		if (!!(n == 0)) goto LA3;
		(*result).Info = (*n).Info;
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, mergeeffects_319285)(teffects318010* a, tnode188803* b, tnode188803* comesfrom) {
	{
		tnode188803* LOC5;
		if (!b == 0) goto LA3;
		LOC5 = 0;
		LOC5 = createraise_318965(comesfrom);
		addeffect_319005(a, LOC5, NIM_TRUE);
	}
	goto LA1;
	LA3: ;
	{
		tnode188803* effect_319301;
		NI i_319320;
		NI HEX3Atmp_319322;
		NI LOC7;
		NI res_319324;
		effect_319301 = 0;
		i_319320 = 0;
		HEX3Atmp_319322 = 0;
		LOC7 = 0;
		LOC7 = len_189264(b);
		HEX3Atmp_319322 = LOC7 - 1;
		res_319324 = 0;
		while (1) {
			if (!(res_319324 <= HEX3Atmp_319322)) goto LA8;
			i_319320 = res_319324;
			effect_319301 = (*b).kindU.S6.Sons->data[i_319320];
			addeffect_319005(a, effect_319301, !((comesfrom == NIM_NIL)));
			res_319324 += 1;
		} LA8: ;
	}
	LA1: ;
}

N_NIMCALL(void, addtag_319241)(teffects318010* a, tnode188803* e, NIM_BOOL uselineinfo) {
	tnode188803* aa;
	NI i_319268;
	NI HEX3Atmp_319278;
	NI LOC1;
	NI res_319280;
	aa = (*a).Tags;
	i_319268 = 0;
	HEX3Atmp_319278 = 0;
	LOC1 = 0;
	LOC1 = len_189264(aa);
	HEX3Atmp_319278 = LOC1 - 1;
	res_319280 = 0;
	while (1) {
		if (!(res_319280 <= HEX3Atmp_319278)) goto LA2;
		i_319268 = res_319280;
		{
			tnode188803* LOC5;
			ttype188837* LOC6;
			ttype188837* LOC7;
			NIM_BOOL LOC8;
			LOC5 = 0;
			LOC5 = HEX5BHEX5D_189694(aa, i_319268);
			LOC6 = 0;
			LOC6 = skiptypes_192793((*LOC5).Typ, IL64(211106247215360));
			LOC7 = 0;
			LOC7 = skiptypes_192793((*e).Typ, IL64(211106247215360));
			LOC8 = 0;
			LOC8 = sametype_228116(LOC6, LOC7, 0);
			if (!LOC8) goto LA9;
			{
				NIM_BOOL LOC13;
				LOC13 = 0;
				LOC13 = !(uselineinfo);
				if (LOC13) goto LA14;
				LOC13 = (gcmd_137113 == ((NU8) 8));
				LA14: ;
				if (!LOC13) goto LA15;
				goto BeforeRet;
			}
			goto LA11;
			LA15: ;
			{
				tnode188803* LOC18;
				NIM_BOOL LOC19;
				LOC18 = 0;
				LOC18 = HEX5BHEX5D_189694(aa, i_319268);
				LOC19 = 0;
				LOC19 = HEX3DHEX3D_165246((*LOC18).Info, (*e).Info);
				if (!LOC19) goto LA20;
				goto BeforeRet;
			}
			goto LA11;
			LA20: ;
			LA11: ;
		}
		LA9: ;
		res_319280 += 1;
	} LA2: ;
	throws_318917((*a).Tags, e);
	BeforeRet: ;
}

N_NIMCALL(tnode188803*, createtag_318982)(tnode188803* n) {
	tnode188803* result;
	result = 0;
	result = newnode_189065(((NU8) 4));
	asgnRefNoCycle((void**) &(*result).Typ, systypefromname_242204(((NimStringDesc*) &TMP2991)));
	{
		if (!!(n == 0)) goto LA3;
		(*result).Info = (*n).Info;
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, mergetags_319328)(teffects318010* a, tnode188803* b, tnode188803* comesfrom) {
	{
		tnode188803* LOC5;
		if (!b == 0) goto LA3;
		LOC5 = 0;
		LOC5 = createtag_318982(comesfrom);
		addtag_319241(a, LOC5, NIM_TRUE);
	}
	goto LA1;
	LA3: ;
	{
		tnode188803* effect_319344;
		NI i_319363;
		NI HEX3Atmp_319365;
		NI LOC7;
		NI res_319367;
		effect_319344 = 0;
		i_319363 = 0;
		HEX3Atmp_319365 = 0;
		LOC7 = 0;
		LOC7 = len_189264(b);
		HEX3Atmp_319365 = LOC7 - 1;
		res_319367 = 0;
		while (1) {
			if (!(res_319367 <= HEX3Atmp_319365)) goto LA8;
			i_319363 = res_319367;
			effect_319344 = (*b).kindU.S6.Sons->data[i_319363];
			addtag_319241(a, effect_319344, !((comesfrom == NIM_NIL)));
			res_319367 += 1;
		} LA8: ;
	}
	LA1: ;
}

N_NIMCALL(void, propagateeffects_321052)(teffects318010* tracked, tnode188803* n, tsym188833* s) {
	tnode188803* pragma;
	tnode188803* spec;
	tnode188803* tagspec;
	pragma = (*(*s).Ast).kindU.S6.Sons->data[4];
	spec = effectspec_320654(pragma, ((NU8) 150));
	mergeeffects_319285(tracked, spec, n);
	tagspec = effectspec_320654(pragma, ((NU8) 155));
	mergetags_319328(tracked, tagspec, n);
	{
		NIM_BOOL LOC3;
		NimStringDesc* LOC7;
		LOC3 = 0;
		LOC3 = ((130 & (*(*s).Typ).Flags) == 0);
		if (!(LOC3)) goto LA4;
		LOC3 = !((((*s).Flags &(1<<((((NU8) 5))&31)))!=0));
		LA4: ;
		if (!LOC3) goto LA5;
		LOC7 = 0;
		LOC7 = rendertree_211051(n, 0);
		message_165584((*n).Info, ((NU16) 252), LOC7);
		(*tracked).Gcunsafe = NIM_TRUE;
	}
	LA5: ;
}

N_NIMCALL(NIM_BOOL, isforwardedproc_320564)(tnode188803* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*n).Kind == ((NU8) 3));
	if (!(LOC1)) goto LA2;
	LOC1 = (((*(*n).kindU.S4.Sym).Flags &(1<<((((NU8) 4))&31)))!=0);
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(NIM_BOOL, isindirectcall_320451)(tnode188803* n, tsym188833* owner) {
	NIM_BOOL result;
	result = 0;
	{
		if (!!(((*n).Kind == ((NU8) 3)))) goto LA3;
		result = NIM_TRUE;
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC8;
		if (!((*(*n).kindU.S4.Sym).Kind == ((NU8) 3))) goto LA6;
		LOC8 = 0;
		LOC8 = !((owner == (*(*n).kindU.S4.Sym).Owner));
		if (LOC8) goto LA9;
		LOC8 = (owner == NIM_NIL);
		LA9: ;
		result = LOC8;
	}
	goto LA1;
	LA6: ;
	{
		if (!!(((520192 &(1<<(((*(*n).kindU.S4.Sym).Kind)&31)))!=0))) goto LA11;
		result = NIM_TRUE;
	}
	goto LA1;
	LA11: ;
	LA1: ;
	return result;
}

N_NIMCALL(void, notnilcheck_321203)(teffects318010* tracked, tnode188803* n_321206, ttype188837* paramtype) {
	tnode188803* n;
	n = skipconv_197231(n_321206);
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		NIM_BOOL LOC5;
		NU8 LOC25;
		LOC3 = 0;
		LOC4 = 0;
		LOC5 = 0;
		LOC5 = !((paramtype == NIM_NIL));
		if (!(LOC5)) goto LA6;
		LOC5 = (((*paramtype).Flags &(1<<((((NU8) 16))&31)))!=0);
		LA6: ;
		LOC4 = LOC5;
		if (!(LOC4)) goto LA7;
		LOC4 = !(((*n).Typ == NIM_NIL));
		LA7: ;
		LOC3 = LOC4;
		if (!(LOC3)) goto LA8;
		LOC3 = !((((*(*n).Typ).Flags &(1<<((((NU8) 16))&31)))!=0));
		LA8: ;
		if (!LOC3) goto LA9;
		{
			if (!((*n).Kind == ((NU8) 63))) goto LA13;
			{
				NIM_BOOL LOC17;
				LOC17 = 0;
				LOC17 = containsnode_194562(n, TMP2993);
				if (!!(LOC17)) goto LA18;
				goto BeforeRet;
			}
			LA18: ;
		}
		goto LA11;
		LA13: ;
		{
			NIM_BOOL LOC21;
			LOC21 = 0;
			LOC21 = ((*n).Kind == ((NU8) 3));
			if (!(LOC21)) goto LA22;
			LOC21 = ((520192 &(1<<(((*(*n).kindU.S4.Sym).Kind)&31)))!=0);
			LA22: ;
			if (!LOC21) goto LA23;
			goto BeforeRet;
		}
		goto LA11;
		LA23: ;
		LA11: ;
		LOC25 = 0;
		LOC25 = impliesnotnil_316041((*tracked).Guards, n);
		switch (LOC25) {
		case ((NU8) 0):
		{
			NimStringDesc* LOC27;
			NimStringDesc* LOC28;
			LOC27 = 0;
			LOC27 = rendertree_211051(n, 0);
			LOC28 = 0;
			LOC28 = nsuFormatSingleElem(((NimStringDesc*) &TMP3005), LOC27);
			message_165584((*n).Info, ((NU16) 4), LOC28);
		}
		break;
		case ((NU8) 1):
		{
			NimStringDesc* LOC30;
			NimStringDesc* LOC31;
			LOC30 = 0;
			LOC30 = rendertree_211051(n, 0);
			LOC31 = 0;
			LOC31 = nsuFormatSingleElem(((NimStringDesc*) &TMP3006), LOC30);
			message_165584((*n).Info, ((NU16) 4), LOC31);
		}
		break;
		case ((NU8) 2):
		{
		}
		break;
		}
	}
	LA9: ;
	BeforeRet: ;
}

N_NIMCALL(void, trackoperand_321317)(teffects318010* tracked, tnode188803* n, ttype188837* paramtype) {
	ttype188837* op;
	op = (*n).Typ;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		tnode188803* effectlist;
		tnode188803* s;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = !((op == NIM_NIL));
		if (!(LOC4)) goto LA5;
		LOC4 = ((*op).Kind == ((NU8) 25));
		LA5: ;
		LOC3 = LOC4;
		if (!(LOC3)) goto LA6;
		LOC3 = !(((*n).Kind == ((NU8) 23)));
		LA6: ;
		if (!LOC3) goto LA7;
		{
			NimStringDesc* LOC13;
			if (!!(((*(*(*op).N).kindU.S6.Sons->data[0]).Kind == ((NU8) 150)))) goto LA11;
			LOC13 = 0;
			LOC13 = HEX24_165714(TMP2992);
			internalerror_165606(LOC13);
		}
		LA11: ;
		effectlist = (*(*op).N).kindU.S6.Sons->data[0];
		s = skipconv_197231(n);
		{
			NIM_BOOL LOC16;
			LOC16 = 0;
			LOC16 = ((*s).Kind == ((NU8) 3));
			if (!(LOC16)) goto LA17;
			LOC16 = ((520192 &(1<<(((*(*s).kindU.S4.Sym).Kind)&31)))!=0);
			LA17: ;
			if (!LOC16) goto LA18;
			propagateeffects_321052(tracked, n, (*s).kindU.S4.Sym);
		}
		goto LA14;
		LA18: ;
		{
			NI LOC21;
			LOC21 = 0;
			LOC21 = len_189264(effectlist);
			if (!(LOC21 == 0)) goto LA22;
			{
				NIM_BOOL LOC26;
				LOC26 = 0;
				LOC26 = isforwardedproc_320564(n);
				if (!LOC26) goto LA27;
				propagateeffects_321052(tracked, n, (*n).kindU.S4.Sym);
			}
			goto LA24;
			LA27: ;
			{
				tnode188803* LOC30;
				tnode188803* LOC31;
				LOC30 = 0;
				LOC30 = createraise_318965(n);
				addeffect_319005(tracked, LOC30, NIM_TRUE);
				LOC31 = 0;
				LOC31 = createtag_318982(n);
				addtag_319241(tracked, LOC31, NIM_TRUE);
			}
			LA24: ;
			{
				NimStringDesc* LOC36;
				if (!((130 & (*op).Flags) == 0)) goto LA34;
				LOC36 = 0;
				LOC36 = rendertree_211051(n, 0);
				message_165584((*n).Info, ((NU16) 252), LOC36);
				(*tracked).Gcunsafe = NIM_TRUE;
			}
			LA34: ;
		}
		goto LA14;
		LA22: ;
		{
			mergeeffects_319285(tracked, (*effectlist).kindU.S6.Sons->data[0], n);
			mergetags_319328(tracked, (*effectlist).kindU.S6.Sons->data[3], n);
			{
				NimStringDesc* LOC42;
				if (!((130 & (*op).Flags) == 0)) goto LA40;
				LOC42 = 0;
				LOC42 = rendertree_211051(n, 0);
				message_165584((*n).Info, ((NU16) 252), LOC42);
				(*tracked).Gcunsafe = NIM_TRUE;
			}
			LA40: ;
		}
		LA14: ;
	}
	LA7: ;
	notnilcheck_321203(tracked, n, paramtype);
}

N_NIMCALL(ttype188837*, paramtype_322996)(ttype188837* op, NI i) {
	ttype188837* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = !((op == NIM_NIL));
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = len_192569(op);
		LOC3 = (i < LOC5);
		LA4: ;
		if (!LOC3) goto LA6;
		result = (*op).Sons->data[i];
	}
	LA6: ;
	return result;
}

N_NIMCALL(void, initvar_318076)(teffects318010* a, tnode188803* n) {
	tsym188833* s;
	{
		if (!!(((*n).Kind == ((NU8) 3)))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	s = (*n).kindU.S4.Sym;
	{
		NIM_BOOL LOC7;
		NI x_318203;
		TY298698* HEX3Atmp_318222;
		NI i_318224;
		NI l_318226;
		LOC7 = 0;
		LOC7 = islocalvar_318026(a, s);
		if (!LOC7) goto LA8;
		x_318203 = 0;
		HEX3Atmp_318222 = 0;
		HEX3Atmp_318222 = (*a).Init;
		i_318224 = 0;
		l_318226 = HEX3Atmp_318222->Sup.len;
		while (1) {
			if (!(i_318224 < l_318226)) goto LA10;
			x_318203 = HEX3Atmp_318222->data[i_318224];
			{
				if (!(x_318203 == (*s).Sup.Id)) goto LA13;
				goto BeforeRet;
			}
			LA13: ;
			i_318224 += 1;
		} LA10: ;
		(*a).Init = (TY298698*) incrSeq(&((*a).Init)->Sup, sizeof(NI));
		(*a).Init->data[(*a).Init->Sup.len-1] = (*s).Sup.Id;
	}
	LA8: ;
	BeforeRet: ;
}

N_NIMCALL(void, initvarvianew_318230)(teffects318010* a, tnode188803* n) {
	tsym188833* s;
	{
		if (!!(((*n).Kind == ((NU8) 3)))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	s = (*n).kindU.S4.Sym;
	{
		if (!(((196608 & (*(*s).Typ).Flags) & ~ 65536)==0)) goto LA7;
		initvar_318076(a, n);
	}
	LA7: ;
	BeforeRet: ;
}

N_NIMCALL(void, addtointersection_318835)(TY227865** inter, NI s) {
	NI j_318872;
	NI HEX3Atmp_318910;
	NI res_318912;
	TY227866 LOC6;
	j_318872 = 0;
	HEX3Atmp_318910 = 0;
	HEX3Atmp_318910 = (*inter)->Sup.len - 1;
	res_318912 = 0;
	while (1) {
		if (!(res_318912 <= HEX3Atmp_318910)) goto LA1;
		j_318872 = res_318912;
		{
			if (!(s == (*inter)->data[j_318872].Field0)) goto LA4;
			(*inter)->data[j_318872].Field1 += 1;
			goto BeforeRet;
		}
		LA4: ;
		res_318912 += 1;
	} LA1: ;
	LOC6.Field0 = s;
	LOC6.Field1 = 1;
	(*inter) = (TY227865*) incrSeq(&((*inter))->Sup, sizeof(TY227866));
	(*inter)->data[(*inter)->Sup.len-1] = LOC6;
	BeforeRet: ;
}

N_NIMCALL(void, catchesall_319604)(teffects318010* tracked) {
	{
		if (!!((*(*tracked).Exc).kindU.S6.Sons == 0)) goto LA3;
		(*(*tracked).Exc).kindU.S6.Sons = (tnodeseq188797*) setLengthSeq(&((*(*tracked).Exc).kindU.S6.Sons)->Sup, sizeof(tnode188803*), (*tracked).Bottom);
	}
	LA3: ;
}

N_NIMCALL(void, catches_319447)(teffects318010* tracked, ttype188837* e_319450) {
	ttype188837* e;
	NI l;
	NI i;
	e = skiptypes_192793(e_319450, IL64(211106247215360));
	l = len_189264((*tracked).Exc);
	i = (*tracked).Bottom;
	while (1) {
		if (!(i < l)) goto LA1;
		{
			tnode188803* LOC4;
			ttype188837* LOC5;
			NI LOC6;
			LOC4 = 0;
			LOC4 = HEX5BHEX5D_189694((*tracked).Exc, i);
			LOC5 = 0;
			LOC5 = exctype_318949(LOC4);
			LOC6 = 0;
			LOC6 = safeinheritancediff_232806(LOC5, e);
			if (!(LOC6 <= 0)) goto LA7;
			asgnRefNoCycle((void**) &(*(*tracked).Exc).kindU.S6.Sons->data[i], (*(*tracked).Exc).kindU.S6.Sons->data[(NI32)(l - 1)]);
			l -= 1;
		}
		goto LA2;
		LA7: ;
		{
			i += 1;
		}
		LA2: ;
	} LA1: ;
	{
		if (!!((*(*tracked).Exc).kindU.S6.Sons == 0)) goto LA12;
		(*(*tracked).Exc).kindU.S6.Sons = (tnodeseq188797*) setLengthSeq(&((*(*tracked).Exc).kindU.S6.Sons)->Sup, sizeof(tnode188803*), l);
	}
	goto LA10;
	LA12: ;
	{
	}
	LA10: ;
}

N_NIMCALL(void, tracktrystmt_319669)(teffects318010* tracked, tnode188803* n) {
	NI oldbottom;
	NI oldstate;
	TY227865* inter;
	NI i_319753;
	NI HEX3Atmp_320424;
	NI res_320426;
	NI branches;
	NIM_BOOL hasfinally;
	NI i_319778;
	NI HEX3Atmp_320436;
	NI LOC2;
	NI res_320438;
	NI id_320403;
	NI count_320404;
	NI i_320441;
	NI l_320443;
	oldbottom = (*tracked).Bottom;
	(*tracked).Bottom = len_189264((*tracked).Exc);
	oldstate = (*tracked).Init->Sup.len;
	inter = (TY227865*) newSeq((&NTI227865), 0);
	track_319664(tracked, (*n).kindU.S6.Sons->data[0]);
	i_319753 = 0;
	HEX3Atmp_320424 = 0;
	HEX3Atmp_320424 = (*tracked).Init->Sup.len - 1;
	res_320426 = oldstate;
	while (1) {
		if (!(res_320426 <= HEX3Atmp_320424)) goto LA1;
		i_319753 = res_320426;
		addtointersection_318835(&inter, (*tracked).Init->data[i_319753]);
		res_320426 += 1;
	} LA1: ;
	branches = 1;
	hasfinally = NIM_FALSE;
	i_319778 = 0;
	HEX3Atmp_320436 = 0;
	LOC2 = 0;
	LOC2 = len_189264(n);
	HEX3Atmp_320436 = LOC2 - 1;
	res_320438 = 1;
	while (1) {
		tnode188803* b;
		NI blen;
		if (!(res_320438 <= HEX3Atmp_320436)) goto LA3;
		i_319778 = res_320438;
		b = (*n).kindU.S6.Sons->data[i_319778];
		blen = sonslen_189181(b);
		{
			NI i_320077;
			NI HEX3Atmp_320432;
			NI res_320434;
			if (!((*b).Kind == ((NU8) 87))) goto LA6;
			branches += 1;
			{
				if (!(blen == 1)) goto LA10;
				catchesall_319604(tracked);
			}
			goto LA8;
			LA10: ;
			{
				NI j_319832;
				NI HEX3Atmp_320428;
				NI res_320430;
				j_319832 = 0;
				HEX3Atmp_320428 = 0;
				HEX3Atmp_320428 = (NI32)(blen - 2);
				res_320430 = 0;
				while (1) {
					if (!(res_320430 <= HEX3Atmp_320428)) goto LA13;
					j_319832 = res_320430;
					catches_319447(tracked, (*(*b).kindU.S6.Sons->data[j_319832]).Typ);
					res_320430 += 1;
				} LA13: ;
			}
			LA8: ;
			(*tracked).Init = (TY298698*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
			track_319664(tracked, (*b).kindU.S6.Sons->data[(NI32)(blen - 1)]);
			i_320077 = 0;
			HEX3Atmp_320432 = 0;
			HEX3Atmp_320432 = (*tracked).Init->Sup.len - 1;
			res_320434 = oldstate;
			while (1) {
				if (!(res_320434 <= HEX3Atmp_320432)) goto LA14;
				i_320077 = res_320434;
				addtointersection_318835(&inter, (*tracked).Init->data[i_320077]);
				res_320434 += 1;
			} LA14: ;
		}
		goto LA4;
		LA6: ;
		{
			(*tracked).Init = (TY298698*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
			track_319664(tracked, (*b).kindU.S6.Sons->data[(NI32)(blen - 1)]);
			hasfinally = NIM_TRUE;
		}
		LA4: ;
		res_320438 += 1;
	} LA3: ;
	(*tracked).Bottom = oldbottom;
	{
		if (!!(hasfinally)) goto LA18;
		(*tracked).Init = (TY298698*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	}
	LA18: ;
	id_320403 = 0;
	count_320404 = 0;
	i_320441 = 0;
	l_320443 = inter->Sup.len;
	while (1) {
		if (!(i_320441 < l_320443)) goto LA20;
		id_320403 = inter->data[i_320441].Field0;
		count_320404 = inter->data[i_320441].Field1;
		{
			if (!(count_320404 == branches)) goto LA23;
			(*tracked).Init = (TY298698*) incrSeq(&((*tracked).Init)->Sup, sizeof(NI));
			(*tracked).Init->data[(*tracked).Init->Sup.len-1] = id_320403;
		}
		LA23: ;
		i_320441 += 1;
	} LA20: ;
}

N_NIMCALL(void, listeffects_319401)(teffects318010* a) {
	tnode188803* e_319404;
	tnode188803* HEX3Atmp_319421;
	NI i_319423;
	NI HEX3Atmp_319425;
	NI LOC1;
	NI res_319427;
	tnode188803* e_319405;
	tnode188803* HEX3Atmp_319428;
	NI i_319430;
	NI HEX3Atmp_319432;
	NI LOC4;
	NI res_319434;
	tnode188803* e_319406;
	tnode188803* HEX3Atmp_319435;
	NI i_319437;
	NI HEX3Atmp_319439;
	NI LOC7;
	NI res_319441;
	e_319404 = 0;
	HEX3Atmp_319421 = 0;
	HEX3Atmp_319421 = (*a).Exc;
	i_319423 = 0;
	HEX3Atmp_319425 = 0;
	LOC1 = 0;
	LOC1 = len_189264(HEX3Atmp_319421);
	HEX3Atmp_319425 = LOC1 - 1;
	res_319427 = 0;
	while (1) {
		NimStringDesc* LOC3;
		if (!(res_319427 <= HEX3Atmp_319425)) goto LA2;
		i_319423 = res_319427;
		e_319404 = (*HEX3Atmp_319421).kindU.S6.Sons->data[i_319423];
		LOC3 = 0;
		LOC3 = typetostring_223020((*e_319404).Typ, ((NU8) 0));
		message_165584((*e_319404).Info, ((NU16) 272), LOC3);
		res_319427 += 1;
	} LA2: ;
	e_319405 = 0;
	HEX3Atmp_319428 = 0;
	HEX3Atmp_319428 = (*a).Tags;
	i_319430 = 0;
	HEX3Atmp_319432 = 0;
	LOC4 = 0;
	LOC4 = len_189264(HEX3Atmp_319428);
	HEX3Atmp_319432 = LOC4 - 1;
	res_319434 = 0;
	while (1) {
		NimStringDesc* LOC6;
		if (!(res_319434 <= HEX3Atmp_319432)) goto LA5;
		i_319430 = res_319434;
		e_319405 = (*HEX3Atmp_319428).kindU.S6.Sons->data[i_319430];
		LOC6 = 0;
		LOC6 = typetostring_223020((*e_319405).Typ, ((NU8) 0));
		message_165584((*e_319405).Info, ((NU16) 272), LOC6);
		res_319434 += 1;
	} LA5: ;
	e_319406 = 0;
	HEX3Atmp_319435 = 0;
	HEX3Atmp_319435 = (*a).Uses;
	i_319437 = 0;
	HEX3Atmp_319439 = 0;
	LOC7 = 0;
	LOC7 = len_189264(HEX3Atmp_319435);
	HEX3Atmp_319439 = LOC7 - 1;
	res_319441 = 0;
	while (1) {
		if (!(res_319441 <= HEX3Atmp_319439)) goto LA8;
		i_319437 = res_319441;
		e_319406 = (*HEX3Atmp_319435).kindU.S6.Sons->data[i_319437];
		message_165584((*e_319406).Info, ((NU16) 272), (*(*(*e_319406).kindU.S4.Sym).Name).S);
		res_319441 += 1;
	} LA8: ;
}

N_NIMCALL(void, trackpragmastmt_320606)(teffects318010* tracked, tnode188803* n) {
	NI i_320622;
	NI HEX3Atmp_320647;
	NI LOC1;
	NI res_320649;
	i_320622 = 0;
	HEX3Atmp_320647 = 0;
	LOC1 = 0;
	LOC1 = sonslen_189181(n);
	HEX3Atmp_320647 = (NI32)(LOC1 - 1);
	res_320649 = 0;
	while (1) {
		tnode188803* it;
		if (!(res_320649 <= HEX3Atmp_320647)) goto LA2;
		i_320622 = res_320649;
		it = (*n).kindU.S6.Sons->data[i_320622];
		{
			NU8 LOC5;
			LOC5 = 0;
			LOC5 = whichpragma_222161(it);
			if (!(LOC5 == ((NU8) 154))) goto LA6;
			listeffects_319401(tracked);
		}
		LA6: ;
		res_320649 += 1;
	} LA2: ;
}

static N_INLINE(tnode188803*, lastson_189189)(tnode188803* n) {
	tnode188803* result;
	NI LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = sonslen_189181(n);
	result = (*n).kindU.S6.Sons->data[(NI32)(LOC1 - 1)];
	return result;
}

N_NIMCALL(NIM_BOOL, breaksblock_321840)(tnode188803* n) {
	NIM_BOOL result;
	result = 0;
	switch ((*n).Kind) {
	case ((NU8) 114):
	case ((NU8) 125):
	{
		tnode188803* c_321844;
		NI i_321910;
		NI HEX3Atmp_321912;
		NI LOC2;
		NI res_321914;
		c_321844 = 0;
		i_321910 = 0;
		HEX3Atmp_321912 = 0;
		LOC2 = 0;
		LOC2 = len_189264(n);
		HEX3Atmp_321912 = LOC2 - 1;
		res_321914 = 0;
		while (1) {
			if (!(res_321914 <= HEX3Atmp_321912)) goto LA3;
			i_321910 = res_321914;
			c_321844 = (*n).kindU.S6.Sons->data[i_321910];
			{
				NIM_BOOL LOC6;
				LOC6 = 0;
				LOC6 = breaksblock_321840(c_321844);
				if (!LOC6) goto LA7;
				result = NIM_TRUE;
				goto BeforeRet;
			}
			LA7: ;
			res_321914 += 1;
		} LA3: ;
	}
	break;
	case ((NU8) 109):
	case ((NU8) 108):
	case ((NU8) 107):
	{
		result = NIM_TRUE;
		goto BeforeRet;
	}
	break;
	case ((NU8) 27):
	case ((NU8) 29):
	case ((NU8) 30):
	case ((NU8) 31):
	case ((NU8) 26):
	case ((NU8) 28):
	case ((NU8) 32):
	{
		{
			NIM_BOOL LOC13;
			LOC13 = 0;
			LOC13 = ((*(*n).kindU.S6.Sons->data[0]).Kind == ((NU8) 3));
			if (!(LOC13)) goto LA14;
			LOC13 = (((*(*(*n).kindU.S6.Sons->data[0]).kindU.S4.Sym).Flags &(1<<((((NU8) 14))&31)))!=0);
			LA14: ;
			if (!LOC13) goto LA15;
			result = NIM_TRUE;
			goto BeforeRet;
		}
		LA15: ;
	}
	break;
	default:
	{
	}
	break;
	}
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, trackcase_321918)(teffects318010* tracked, tnode188803* n) {
	NI oldstate;
	NI oldfacts;
	NIM_BOOL interesting;
	NIM_BOOL LOC1;
	TY227865* inter;
	NI tocover;
	NI i_322031;
	NI HEX3Atmp_322281;
	NI LOC3;
	NI res_322283;
	NIM_BOOL exh;
	ttype188837* LOC18;
	track_319664(tracked, (*n).kindU.S6.Sons->data[0]);
	oldstate = (*tracked).Init->Sup.len;
	oldfacts = (*tracked).Guards->Sup.len;
	LOC1 = 0;
	LOC1 = interestingcaseexpr_312349((*n).kindU.S6.Sons->data[0]);
	if (!(LOC1)) goto LA2;
	LOC1 = ((gnotes_164181 &(IL64(1)<<(((((NU16) 250)- 230))&IL64(63))))!=0);
	LA2: ;
	interesting = LOC1;
	inter = (TY227865*) newSeq((&NTI227865), 0);
	tocover = 0;
	i_322031 = 0;
	HEX3Atmp_322281 = 0;
	LOC3 = 0;
	LOC3 = len_189264(n);
	HEX3Atmp_322281 = LOC3 - 1;
	res_322283 = 1;
	while (1) {
		tnode188803* branch;
		NI i_322101;
		NI HEX3Atmp_322273;
		NI LOC9;
		NI res_322275;
		NI i_322164;
		NI HEX3Atmp_322277;
		NI res_322279;
		if (!(res_322283 <= HEX3Atmp_322281)) goto LA4;
		i_322031 = res_322283;
		branch = (*n).kindU.S6.Sons->data[i_322031];
		(*tracked).Init = (TY298698*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
		{
			if (!interesting) goto LA7;
			(*tracked).Guards = (tnodeseq188797*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode188803*), oldfacts);
			addcasebranchfacts_316659(&(*tracked).Guards, n, i_322031);
		}
		LA7: ;
		i_322101 = 0;
		HEX3Atmp_322273 = 0;
		LOC9 = 0;
		LOC9 = len_189264(branch);
		HEX3Atmp_322273 = LOC9 - 1;
		res_322275 = 0;
		while (1) {
			if (!(res_322275 <= HEX3Atmp_322273)) goto LA10;
			i_322101 = res_322275;
			track_319664(tracked, (*branch).kindU.S6.Sons->data[i_322101]);
			res_322275 += 1;
		} LA10: ;
		{
			tnode188803* LOC13;
			NIM_BOOL LOC14;
			LOC13 = 0;
			LOC13 = lastson_189189(branch);
			LOC14 = 0;
			LOC14 = breaksblock_321840(LOC13);
			if (!!(LOC14)) goto LA15;
			tocover += 1;
		}
		LA15: ;
		i_322164 = 0;
		HEX3Atmp_322277 = 0;
		HEX3Atmp_322277 = (*tracked).Init->Sup.len - 1;
		res_322279 = oldstate;
		while (1) {
			if (!(res_322279 <= HEX3Atmp_322277)) goto LA17;
			i_322164 = res_322279;
			addtointersection_318835(&inter, (*tracked).Init->data[i_322164]);
			res_322279 += 1;
		} LA17: ;
		res_322283 += 1;
	} LA4: ;
	LOC18 = 0;
	LOC18 = skiptypes_192793((*(*n).kindU.S6.Sons->data[0]).Typ, IL64(211106242013184));
	switch ((*LOC18).Kind) {
	case ((NU8) 36) ... ((NU8) 39):
	case ((NU8) 28):
	{
		tnode188803* LOC20;
		LOC20 = 0;
		LOC20 = lastson_189189(n);
		exh = ((*LOC20).Kind == ((NU8) 88));
	}
	break;
	default:
	{
		exh = NIM_TRUE;
	}
	break;
	}
	(*tracked).Init = (TY298698*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	{
		NI id_322236;
		NI count_322237;
		NI i_322286;
		NI l_322288;
		if (!exh) goto LA24;
		id_322236 = 0;
		count_322237 = 0;
		i_322286 = 0;
		l_322288 = inter->Sup.len;
		while (1) {
			if (!(i_322286 < l_322288)) goto LA26;
			id_322236 = inter->data[i_322286].Field0;
			count_322237 = inter->data[i_322286].Field1;
			{
				if (!(tocover <= count_322237)) goto LA29;
				(*tracked).Init = (TY298698*) incrSeq(&((*tracked).Init)->Sup, sizeof(NI));
				(*tracked).Init->data[(*tracked).Init->Sup.len-1] = id_322236;
			}
			LA29: ;
			i_322286 += 1;
		} LA26: ;
	}
	LA24: ;
	(*tracked).Guards = (tnodeseq188797*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode188803*), oldfacts);
}

N_NIMCALL(void, trackif_322295)(teffects318010* tracked, tnode188803* n) {
	NI oldfacts;
	NI oldstate;
	TY227865* inter;
	NI tocover;
	NI i_322506;
	NI HEX3Atmp_322784;
	NI res_322786;
	NI i_322529;
	NI HEX3Atmp_322800;
	NI LOC7;
	NI res_322802;
	track_319664(tracked, (*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[0]);
	oldfacts = (*tracked).Guards->Sup.len;
	addfact_313441(&(*tracked).Guards, (*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[0]);
	oldstate = (*tracked).Init->Sup.len;
	inter = (TY227865*) newSeq((&NTI227865), 0);
	tocover = 0;
	track_319664(tracked, (*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[1]);
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = breaksblock_321840((*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[1]);
		if (!!(LOC3)) goto LA4;
		tocover += 1;
	}
	LA4: ;
	i_322506 = 0;
	HEX3Atmp_322784 = 0;
	HEX3Atmp_322784 = (*tracked).Init->Sup.len - 1;
	res_322786 = oldstate;
	while (1) {
		if (!(res_322786 <= HEX3Atmp_322784)) goto LA6;
		i_322506 = res_322786;
		addtointersection_318835(&inter, (*tracked).Init->data[i_322506]);
		res_322786 += 1;
	} LA6: ;
	i_322529 = 0;
	HEX3Atmp_322800 = 0;
	LOC7 = 0;
	LOC7 = len_189264(n);
	HEX3Atmp_322800 = LOC7 - 1;
	res_322802 = 1;
	while (1) {
		tnode188803* branch;
		NI j_322571;
		NI HEX3Atmp_322788;
		NI res_322790;
		NI i_322654;
		NI HEX3Atmp_322792;
		NI LOC15;
		NI res_322794;
		NI i_322717;
		NI HEX3Atmp_322796;
		NI res_322798;
		if (!(res_322802 <= HEX3Atmp_322800)) goto LA8;
		i_322529 = res_322802;
		branch = (*n).kindU.S6.Sons->data[i_322529];
		(*tracked).Guards = (tnodeseq188797*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode188803*), oldfacts);
		j_322571 = 0;
		HEX3Atmp_322788 = 0;
		HEX3Atmp_322788 = (NI32)(i_322529 - 1);
		res_322790 = 0;
		while (1) {
			if (!(res_322790 <= HEX3Atmp_322788)) goto LA9;
			j_322571 = res_322790;
			addfactneg_313484(&(*tracked).Guards, (*(*n).kindU.S6.Sons->data[j_322571]).kindU.S6.Sons->data[0]);
			res_322790 += 1;
		} LA9: ;
		{
			NI LOC12;
			LOC12 = 0;
			LOC12 = len_189264(branch);
			if (!(1 < LOC12)) goto LA13;
			addfact_313441(&(*tracked).Guards, (*branch).kindU.S6.Sons->data[0]);
		}
		LA13: ;
		(*tracked).Init = (TY298698*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
		i_322654 = 0;
		HEX3Atmp_322792 = 0;
		LOC15 = 0;
		LOC15 = len_189264(branch);
		HEX3Atmp_322792 = LOC15 - 1;
		res_322794 = 0;
		while (1) {
			if (!(res_322794 <= HEX3Atmp_322792)) goto LA16;
			i_322654 = res_322794;
			track_319664(tracked, (*branch).kindU.S6.Sons->data[i_322654]);
			res_322794 += 1;
		} LA16: ;
		{
			tnode188803* LOC19;
			NIM_BOOL LOC20;
			LOC19 = 0;
			LOC19 = lastson_189189(branch);
			LOC20 = 0;
			LOC20 = breaksblock_321840(LOC19);
			if (!!(LOC20)) goto LA21;
			tocover += 1;
		}
		LA21: ;
		i_322717 = 0;
		HEX3Atmp_322796 = 0;
		HEX3Atmp_322796 = (*tracked).Init->Sup.len - 1;
		res_322798 = oldstate;
		while (1) {
			if (!(res_322798 <= HEX3Atmp_322796)) goto LA23;
			i_322717 = res_322798;
			addtointersection_318835(&inter, (*tracked).Init->data[i_322717]);
			res_322798 += 1;
		} LA23: ;
		res_322802 += 1;
	} LA8: ;
	(*tracked).Init = (TY298698*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	{
		tnode188803* LOC26;
		NI LOC27;
		NI id_322747;
		NI count_322748;
		NI i_322805;
		NI l_322807;
		LOC26 = 0;
		LOC26 = lastson_189189(n);
		LOC27 = 0;
		LOC27 = len_189264(LOC26);
		if (!(LOC27 == 1)) goto LA28;
		id_322747 = 0;
		count_322748 = 0;
		i_322805 = 0;
		l_322807 = inter->Sup.len;
		while (1) {
			if (!(i_322805 < l_322807)) goto LA30;
			id_322747 = inter->data[i_322805].Field0;
			count_322748 = inter->data[i_322805].Field1;
			{
				if (!(tocover <= count_322748)) goto LA33;
				(*tracked).Init = (TY298698*) incrSeq(&((*tracked).Init)->Sup, sizeof(NI));
				(*tracked).Init->data[(*tracked).Init->Sup.len-1] = id_322747;
			}
			LA33: ;
			i_322805 += 1;
		} LA30: ;
	}
	LA28: ;
	(*tracked).Guards = (tnodeseq188797*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode188803*), oldfacts);
}

N_NIMCALL(void, trackblock_322816)(teffects318010* tracked, tnode188803* n) {
	{
		NI oldstate;
		NI i_322856;
		NI HEX3Atmp_322914;
		NI LOC5;
		NI res_322916;
		if (!((*n).Kind == ((NU8) 114) || (*n).Kind == ((NU8) 125))) goto LA3;
		oldstate = -1;
		i_322856 = 0;
		HEX3Atmp_322914 = 0;
		LOC5 = 0;
		LOC5 = len_189264(n);
		HEX3Atmp_322914 = LOC5 - 1;
		res_322916 = 0;
		while (1) {
			if (!(res_322916 <= HEX3Atmp_322914)) goto LA6;
			i_322856 = res_322916;
			{
				NIM_BOOL LOC9;
				LOC9 = 0;
				LOC9 = hassubnodewith_189222((*n).kindU.S6.Sons->data[i_322856], ((NU8) 109));
				if (!LOC9) goto LA10;
				{
					if (!(oldstate < 0)) goto LA14;
					oldstate = (*tracked).Init->Sup.len;
				}
				LA14: ;
			}
			LA10: ;
			track_319664(tracked, (*n).kindU.S6.Sons->data[i_322856]);
			res_322916 += 1;
		} LA6: ;
		{
			if (!(0 < oldstate)) goto LA18;
			(*tracked).Init = (TY298698*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
		}
		LA18: ;
	}
	goto LA1;
	LA3: ;
	{
		track_319664(tracked, n);
	}
	LA1: ;
}

N_NIMCALL(NIM_BOOL, istrue_322921)(tnode188803* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC2;
	NIM_BOOL LOC3;
	NIM_BOOL LOC7;
	result = 0;
	LOC1 = 0;
	LOC2 = 0;
	LOC3 = 0;
	LOC3 = ((*n).Kind == ((NU8) 3));
	if (!(LOC3)) goto LA4;
	LOC3 = ((*(*n).kindU.S4.Sym).Kind == ((NU8) 20));
	LA4: ;
	LOC2 = LOC3;
	if (!(LOC2)) goto LA5;
	LOC2 = !(((*(*n).kindU.S4.Sym).Position == 0));
	LA5: ;
	LOC1 = LOC2;
	if (LOC1) goto LA6;
	LOC7 = 0;
	LOC7 = ((*n).Kind == ((NU8) 6));
	if (!(LOC7)) goto LA8;
	LOC7 = !(((*n).kindU.S1.Intval == 0));
	LA8: ;
	LOC1 = LOC7;
	LA6: ;
	result = LOC1;
	return result;
}

N_NIMCALL(void, track_319664)(teffects318010* tracked, tnode188803* n) {
	switch ((*n).Kind) {
	case ((NU8) 3):
	{
		usevar_318401(tracked, n);
	}
	break;
	case ((NU8) 107):
	{
		NI i_323127;
		NI HEX3Atmp_324437;
		NI LOC3;
		NI res_324439;
		(*(*n).kindU.S6.Sons->data[0]).Info = (*n).Info;
		throws_318917((*tracked).Exc, (*n).kindU.S6.Sons->data[0]);
		i_323127 = 0;
		HEX3Atmp_324437 = 0;
		LOC3 = 0;
		LOC3 = safelen_189320(n);
		HEX3Atmp_324437 = LOC3 - 1;
		res_324439 = 0;
		while (1) {
			if (!(res_324439 <= HEX3Atmp_324437)) goto LA4;
			i_323127 = res_324439;
			track_319664(tracked, (*n).kindU.S6.Sons->data[i_323127]);
			res_324439 += 1;
		} LA4: ;
	}
	break;
	case ((NU8) 27):
	case ((NU8) 29):
	case ((NU8) 30):
	case ((NU8) 31):
	case ((NU8) 26):
	case ((NU8) 28):
	case ((NU8) 32):
	{
		tnode188803* a;
		ttype188837* op;
		NI i_323622;
		NI HEX3Atmp_324441;
		NI LOC49;
		NI res_324443;
		NI i_323709;
		NI HEX3Atmp_324445;
		NI LOC58;
		NI res_324447;
		a = (*n).kindU.S6.Sons->data[0];
		op = (*a).Typ;
		{
			NIM_BOOL LOC8;
			NIM_BOOL LOC9;
			tnode188803* effectlist;
			LOC8 = 0;
			LOC9 = 0;
			LOC9 = !((op == NIM_NIL));
			if (!(LOC9)) goto LA10;
			LOC9 = ((*op).Kind == ((NU8) 25));
			LA10: ;
			LOC8 = LOC9;
			if (!(LOC8)) goto LA11;
			LOC8 = ((*(*(*op).N).kindU.S6.Sons->data[0]).Kind == ((NU8) 150));
			LA11: ;
			if (!LOC8) goto LA12;
			{
				NIM_BOOL LOC16;
				LOC16 = 0;
				LOC16 = ((*a).Kind == ((NU8) 3));
				if (!(LOC16)) goto LA17;
				LOC16 = ((*a).kindU.S4.Sym == (*tracked).Owner);
				LA17: ;
				if (!LOC16) goto LA18;
				(*tracked).Isrecursive = NIM_TRUE;
			}
			goto LA14;
			LA18: ;
			{
				NIM_BOOL LOC21;
				NIM_BOOL LOC23;
				NimStringDesc* LOC26;
				LOC21 = 0;
				LOC21 = ((130 & (*op).Flags) == 0);
				if (!(LOC21)) goto LA22;
				LOC23 = 0;
				LOC23 = importedfromc_321010(a);
				LOC21 = !(LOC23);
				LA22: ;
				if (!LOC21) goto LA24;
				LOC26 = 0;
				LOC26 = rendertree_211051(n, 0);
				message_165584((*n).Info, ((NU16) 252), LOC26);
				(*tracked).Gcunsafe = NIM_TRUE;
			}
			goto LA14;
			LA24: ;
			LA14: ;
			effectlist = (*(*op).N).kindU.S6.Sons->data[0];
			{
				NIM_BOOL LOC29;
				LOC29 = 0;
				LOC29 = ((*a).Kind == ((NU8) 3));
				if (!(LOC29)) goto LA30;
				LOC29 = ((*(*a).kindU.S4.Sym).Kind == ((NU8) 13));
				LA30: ;
				if (!LOC29) goto LA31;
				propagateeffects_321052(tracked, n, (*a).kindU.S4.Sym);
			}
			goto LA27;
			LA31: ;
			{
				NI LOC34;
				LOC34 = 0;
				LOC34 = len_189264(effectlist);
				if (!(LOC34 == 0)) goto LA35;
				{
					NIM_BOOL LOC39;
					LOC39 = 0;
					LOC39 = isforwardedproc_320564(a);
					if (!LOC39) goto LA40;
					propagateeffects_321052(tracked, n, (*a).kindU.S4.Sym);
				}
				goto LA37;
				LA40: ;
				{
					NIM_BOOL LOC43;
					tnode188803* LOC46;
					tnode188803* LOC47;
					LOC43 = 0;
					LOC43 = isindirectcall_320451(a, (*tracked).Owner);
					if (!LOC43) goto LA44;
					LOC46 = 0;
					LOC46 = createraise_318965(n);
					addeffect_319005(tracked, LOC46, NIM_TRUE);
					LOC47 = 0;
					LOC47 = createtag_318982(n);
					addtag_319241(tracked, LOC47, NIM_TRUE);
				}
				goto LA37;
				LA44: ;
				LA37: ;
			}
			goto LA27;
			LA35: ;
			{
				mergeeffects_319285(tracked, (*effectlist).kindU.S6.Sons->data[0], n);
				mergetags_319328(tracked, (*effectlist).kindU.S6.Sons->data[3], n);
			}
			LA27: ;
		}
		LA12: ;
		i_323622 = 0;
		HEX3Atmp_324441 = 0;
		LOC49 = 0;
		LOC49 = len_189264(n);
		HEX3Atmp_324441 = LOC49 - 1;
		res_324443 = 1;
		while (1) {
			ttype188837* LOC51;
			if (!(res_324443 <= HEX3Atmp_324441)) goto LA50;
			i_323622 = res_324443;
			LOC51 = 0;
			LOC51 = paramtype_322996(op, i_323622);
			trackoperand_321317(tracked, (*n).kindU.S6.Sons->data[i_323622], LOC51);
			res_324443 += 1;
		} LA50: ;
		{
			NIM_BOOL LOC54;
			LOC54 = 0;
			LOC54 = ((*a).Kind == ((NU8) 3));
			if (!(LOC54)) goto LA55;
			LOC54 = ((*(*a).kindU.S4.Sym).Magic == ((NU16) 24) || (*(*a).kindU.S4.Sym).Magic == ((NU16) 25) || (*(*a).kindU.S4.Sym).Magic == ((NU16) 26));
			LA55: ;
			if (!LOC54) goto LA56;
			initvarvianew_318230(tracked, (*n).kindU.S6.Sons->data[1]);
		}
		LA56: ;
		i_323709 = 0;
		HEX3Atmp_324445 = 0;
		LOC58 = 0;
		LOC58 = safelen_189320(n);
		HEX3Atmp_324445 = LOC58 - 1;
		res_324447 = 0;
		while (1) {
			if (!(res_324447 <= HEX3Atmp_324445)) goto LA59;
			i_323709 = res_324447;
			track_319664(tracked, (*n).kindU.S6.Sons->data[i_323709]);
			res_324447 += 1;
		} LA59: ;
	}
	break;
	case ((NU8) 46):
	{
		track_319664(tracked, (*n).kindU.S6.Sons->data[0]);
		{
			if (!((gnotes_164181 &(IL64(1)<<(((((NU16) 250)- 230))&IL64(63))))!=0)) goto LA63;
			checkfieldaccess_317017((*tracked).Guards, n);
		}
		LA63: ;
	}
	break;
	case ((NU8) 105):
	{
		tracktrystmt_319669(tracked, n);
	}
	break;
	case ((NU8) 90):
	{
		trackpragmastmt_320606(tracked, n);
	}
	break;
	case ((NU8) 73):
	case ((NU8) 74):
	{
		track_319664(tracked, (*n).kindU.S6.Sons->data[1]);
		initvar_318076(tracked, (*n).kindU.S6.Sons->data[0]);
		invalidatefacts_313830(&(*tracked).Guards, (*n).kindU.S6.Sons->data[0]);
		track_319664(tracked, (*n).kindU.S6.Sons->data[0]);
		addasgnfact_316590(&(*tracked).Guards, (*n).kindU.S6.Sons->data[0], (*n).kindU.S6.Sons->data[1]);
		notnilcheck_321203(tracked, (*n).kindU.S6.Sons->data[1], (*(*n).kindU.S6.Sons->data[0]).Typ);
	}
	break;
	case ((NU8) 99):
	{
		tnode188803* child_324001;
		NI i_324454;
		NI HEX3Atmp_324456;
		NI LOC69;
		NI res_324458;
		child_324001 = 0;
		i_324454 = 0;
		HEX3Atmp_324456 = 0;
		LOC69 = 0;
		LOC69 = len_189264(n);
		HEX3Atmp_324456 = LOC69 - 1;
		res_324458 = 0;
		while (1) {
			tnode188803* last;
			if (!(res_324458 <= HEX3Atmp_324456)) goto LA70;
			i_324454 = res_324458;
			child_324001 = (*n).kindU.S6.Sons->data[i_324454];
			last = lastson_189189(child_324001);
			{
				NIM_BOOL LOC73;
				NI i_324031;
				NI HEX3Atmp_324449;
				NI LOC77;
				NI res_324451;
				LOC73 = 0;
				LOC73 = ((*child_324001).Kind == ((NU8) 35));
				if (!(LOC73)) goto LA74;
				LOC73 = !(((*last).Kind == ((NU8) 1)));
				LA74: ;
				if (!LOC73) goto LA75;
				track_319664(tracked, last);
				i_324031 = 0;
				HEX3Atmp_324449 = 0;
				LOC77 = 0;
				LOC77 = len_189264(child_324001);
				HEX3Atmp_324449 = (NI32)(LOC77 - 3);
				res_324451 = 0;
				while (1) {
					if (!(res_324451 <= HEX3Atmp_324449)) goto LA78;
					i_324031 = res_324451;
					initvar_318076(tracked, (*child_324001).kindU.S6.Sons->data[i_324031]);
					addasgnfact_316590(&(*tracked).Guards, (*child_324001).kindU.S6.Sons->data[i_324031], last);
					notnilcheck_321203(tracked, last, (*(*child_324001).kindU.S6.Sons->data[i_324031]).Typ);
					res_324451 += 1;
				} LA78: ;
			}
			LA75: ;
			res_324458 += 1;
		} LA70: ;
	}
	break;
	case ((NU8) 97):
	{
		trackcase_321918(tracked, n);
	}
	break;
	case ((NU8) 92):
	case ((NU8) 48):
	{
		trackif_322295(tracked, n);
	}
	break;
	case ((NU8) 111):
	case ((NU8) 126):
	{
		trackblock_322816(tracked, (*n).kindU.S6.Sons->data[1]);
	}
	break;
	case ((NU8) 96):
	{
		track_319664(tracked, (*n).kindU.S6.Sons->data[0]);
		{
			NIM_BOOL LOC85;
			LOC85 = 0;
			LOC85 = istrue_322921((*n).kindU.S6.Sons->data[0]);
			if (!LOC85) goto LA86;
			trackblock_322816(tracked, (*n).kindU.S6.Sons->data[1]);
		}
		goto LA83;
		LA86: ;
		{
			NI oldstate;
			NI oldfacts;
			oldstate = (*tracked).Init->Sup.len;
			oldfacts = (*tracked).Guards->Sup.len;
			addfact_313441(&(*tracked).Guards, (*n).kindU.S6.Sons->data[0]);
			track_319664(tracked, (*n).kindU.S6.Sons->data[1]);
			(*tracked).Init = (TY298698*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
			(*tracked).Guards = (tnodeseq188797*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode188803*), oldfacts);
		}
		LA83: ;
	}
	break;
	case ((NU8) 94):
	case ((NU8) 95):
	{
		NI oldstate;
		NI i_324249;
		NI HEX3Atmp_324459;
		NI LOC90;
		NI res_324461;
		oldstate = (*tracked).Init->Sup.len;
		i_324249 = 0;
		HEX3Atmp_324459 = 0;
		LOC90 = 0;
		LOC90 = len_189264(n);
		HEX3Atmp_324459 = LOC90 - 1;
		res_324461 = 0;
		while (1) {
			if (!(res_324461 <= HEX3Atmp_324459)) goto LA91;
			i_324249 = res_324461;
			track_319664(tracked, (*n).kindU.S6.Sons->data[i_324249]);
			res_324461 += 1;
		} LA91: ;
		(*tracked).Init = (TY298698*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	}
	break;
	case ((NU8) 38):
	{
		NI oldfacts;
		NI i_324327;
		NI HEX3Atmp_324463;
		NI LOC93;
		NI res_324465;
		track_319664(tracked, (*n).kindU.S6.Sons->data[0]);
		oldfacts = (*tracked).Guards->Sup.len;
		i_324327 = 0;
		HEX3Atmp_324463 = 0;
		LOC93 = 0;
		LOC93 = len_189264(n);
		HEX3Atmp_324463 = LOC93 - 1;
		res_324465 = 1;
		while (1) {
			tnode188803* x;
			if (!(res_324465 <= HEX3Atmp_324463)) goto LA94;
			i_324327 = res_324465;
			x = (*n).kindU.S6.Sons->data[i_324327];
			track_319664(tracked, x);
			{
				if (!(((*(*(*x).kindU.S6.Sons->data[0]).kindU.S4.Sym).Flags &(1<<((((NU8) 18))&31)))!=0)) goto LA97;
				adddiscriminantfact_316494(&(*tracked).Guards, x);
			}
			LA97: ;
			res_324465 += 1;
		} LA94: ;
		(*tracked).Guards = (tnodeseq188797*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode188803*), oldfacts);
	}
	break;
	case ((NU8) 98):
	case ((NU8) 79):
	case ((NU8) 81):
	case ((NU8) 80):
	case ((NU8) 84):
	case ((NU8) 82):
	case ((NU8) 83):
	{
	}
	break;
	default:
	{
		NI i_324422;
		NI HEX3Atmp_324467;
		NI LOC101;
		NI res_324469;
		i_324422 = 0;
		HEX3Atmp_324467 = 0;
		LOC101 = 0;
		LOC101 = safelen_189320(n);
		HEX3Atmp_324467 = LOC101 - 1;
		res_324469 = 0;
		while (1) {
			if (!(res_324469 <= HEX3Atmp_324467)) goto LA102;
			i_324422 = res_324469;
			track_319664(tracked, (*n).kindU.S6.Sons->data[i_324422]);
			res_324469 += 1;
		} LA102: ;
	}
	break;
	}
}

static N_INLINE(NIM_BOOL, isemptytype_195210)(ttype188837* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = (t == NIM_NIL);
	if (LOC1) goto LA2;
	LOC1 = ((*t).Kind == ((NU8) 3) || (*t).Kind == ((NU8) 7));
	LA2: ;
	result = LOC1;
	return result;
}

static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	memcpy(((NCSTRING) (&(*dest).data[((*dest).Sup.len)- 0])), ((NCSTRING) ((*src).data)), (NI32)((*src).Sup.len + 1));
	(*dest).Sup.len += (*src).Sup.len;
}

N_NIMCALL(void, checkraisesspec_324523)(tnode188803* spec, tnode188803* real, NimStringDesc* msg, NIM_BOOL hints, TY324529 effectpredicate) {
	tintset185047 used;
	tnode188803* r_324535;
	NI i_324587;
	NI HEX3Atmp_324589;
	NI LOC1;
	NI res_324591;
	chckNil((void*)&used);
	memset((void*)&used, 0, sizeof(used));
	initintset_185918(&used);
	r_324535 = 0;
	i_324587 = 0;
	HEX3Atmp_324589 = 0;
	LOC1 = 0;
	LOC1 = len_189264(real);
	HEX3Atmp_324589 = LOC1 - 1;
	res_324591 = 0;
	while (1) {
		if (!(res_324591 <= HEX3Atmp_324589)) goto LA2;
		i_324587 = res_324591;
		r_324535 = (*real).kindU.S6.Sons->data[i_324587];
		{
			NI s_324558;
			NI HEX3Atmp_324582;
			NI LOC4;
			NI res_324584;
			NimStringDesc* LOC12;
			NimStringDesc* LOC13;
			s_324558 = 0;
			HEX3Atmp_324582 = 0;
			LOC4 = 0;
			LOC4 = len_189264(spec);
			HEX3Atmp_324582 = LOC4 - 1;
			res_324584 = 0;
			while (1) {
				if (!(res_324584 <= HEX3Atmp_324582)) goto LA5;
				s_324558 = res_324584;
				{
					tnode188803* LOC8;
					NIM_BOOL LOC9;
					LOC8 = 0;
					LOC8 = HEX5BHEX5D_189694(spec, s_324558);
					LOC9 = 0;
					LOC9 = effectpredicate(LOC8, r_324535);
					if (!LOC9) goto LA10;
					incl_185849(&used, s_324558);
					goto LA3;
				}
				LA10: ;
				res_324584 += 1;
			} LA5: ;
			pushinfocontext_164697((*spec).Info);
			LOC12 = 0;
			LOC13 = 0;
			LOC13 = typetostring_223020((*r_324535).Typ, ((NU8) 0));
			LOC12 = rawNewString(msg->Sup.len + LOC13->Sup.len + 0);
appendString(LOC12, msg);
appendString(LOC12, LOC13);
			localerror_165571((*r_324535).Info, ((NU16) 4), LOC12);
			popinfocontext_164720();
		} LA3: ;
		res_324591 += 1;
	} LA2: ;
	{
		NI s_324581;
		NI HEX3Atmp_324592;
		NI LOC18;
		NI res_324594;
		if (!hints) goto LA16;
		s_324581 = 0;
		HEX3Atmp_324592 = 0;
		LOC18 = 0;
		LOC18 = len_189264(spec);
		HEX3Atmp_324592 = LOC18 - 1;
		res_324594 = 0;
		while (1) {
			if (!(res_324594 <= HEX3Atmp_324592)) goto LA19;
			s_324581 = res_324594;
			{
				NIM_BOOL LOC22;
				tnode188803* LOC25;
				tnode188803* LOC26;
				NimStringDesc* LOC27;
				LOC22 = 0;
				LOC22 = contains_185821(used, s_324581);
				if (!!(LOC22)) goto LA23;
				LOC25 = 0;
				LOC25 = HEX5BHEX5D_189694(spec, s_324581);
				LOC26 = 0;
				LOC26 = HEX5BHEX5D_189694(spec, s_324581);
				LOC27 = 0;
				LOC27 = rendertree_211051(LOC26, 0);
				message_165584((*LOC25).Info, ((NU16) 260), LOC27);
			}
			LA23: ;
			res_324594 += 1;
		} LA19: ;
	}
	LA16: ;
}

N_NIMCALL(NIM_BOOL, subtyperelation_324481)(tnode188803* spec, tnode188803* real) {
	NIM_BOOL result;
	ttype188837* LOC1;
	NI LOC2;
	result = 0;
	LOC1 = 0;
	LOC1 = exctype_318949(real);
	LOC2 = 0;
	LOC2 = safeinheritancediff_232806(LOC1, (*spec).Typ);
	result = (LOC2 <= 0);
	return result;
}

N_NIMCALL(void, trackproc_325140)(tsym188833* s, tnode188803* body) {
	tnode188803* effects;
	teffects318010 t;
	tnode188803* p;
	tnode188803* raisesspec;
	tnode188803* tagsspec;
	effects = (*(*(*s).Typ).N).kindU.S6.Sons->data[0];
	{
		NimStringDesc* LOC5;
		if (!!(((*effects).Kind == ((NU8) 150)))) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_165714(TMP2988);
		internalerror_165606(LOC5);
	}
	LA3: ;
	{
		if (!(((*s).Flags &(1<<((((NU8) 4))&31)))!=0)) goto LA8;
		goto BeforeRet;
	}
	LA8: ;
	{
		NI LOC12;
		LOC12 = 0;
		LOC12 = len_189264(effects);
		if (!(LOC12 == 4)) goto LA13;
		goto BeforeRet;
	}
	LA13: ;
	memset((void*)&t, 0, sizeof(t));
	initeffects_324978(effects, s, &t);
	track_319664(&t, body);
	{
		NIM_BOOL LOC17;
		NIM_BOOL LOC18;
		NIM_BOOL LOC19;
		tsym188833* res;
		LOC17 = 0;
		LOC18 = 0;
		LOC19 = 0;
		LOC19 = isemptytype_195210((*(*s).Typ).Sons->data[0]);
		LOC18 = !(LOC19);
		if (!(LOC18)) goto LA20;
		LOC18 = (((*(*(*s).Typ).Sons->data[0]).Flags &(1<<((((NU8) 17))&31)))!=0);
		LA20: ;
		LOC17 = LOC18;
		if (!(LOC17)) goto LA21;
		LOC17 = ((77824 &(1<<(((*s).Kind)&31)))!=0);
		LA21: ;
		if (!LOC17) goto LA22;
		res = (*(*(*s).Ast).kindU.S6.Sons->data[7]).kindU.S4.Sym;
		{
			NIM_BOOL LOC26;
			LOC26 = 0;
			LOC26 = contains_318422(t.Init->data, t.Init->Sup.len, (*res).Sup.Id);
			if (!!(LOC26)) goto LA27;
			message_165584((*body).Info, ((NU16) 249), ((NimStringDesc*) &TMP3007));
		}
		LA27: ;
	}
	LA22: ;
	p = (*(*s).Ast).kindU.S6.Sons->data[4];
	raisesspec = effectspec_320654(p, ((NU8) 150));
	{
		if (!!(raisesspec == 0)) goto LA31;
		checkraisesspec_324523(raisesspec, t.Exc, ((NimStringDesc*) &TMP3008), NIM_TRUE, subtyperelation_324481);
		asgnRefNoCycle((void**) &(*effects).kindU.S6.Sons->data[0], raisesspec);
	}
	LA31: ;
	tagsspec = effectspec_320654(p, ((NU8) 155));
	{
		if (!!(tagsspec == 0)) goto LA35;
		checkraisesspec_324523(tagsspec, t.Tags, ((NimStringDesc*) &TMP3009), NIM_FALSE, subtyperelation_324481);
		asgnRefNoCycle((void**) &(*effects).kindU.S6.Sons->data[3], tagsspec);
	}
	LA35: ;
	{
		if (!((gglobaloptions_137111 &(1<<((((NU8) 27))&31)))!=0)) goto LA39;
		{
			NIM_BOOL LOC43;
			LOC43 = 0;
			LOC43 = (((*s).Flags &(1<<((((NU8) 22))&31)))!=0);
			if (!(LOC43)) goto LA44;
			LOC43 = t.Gcunsafe;
			LA44: ;
			if (!LOC43) goto LA45;
			localerror_165571((*s).Info, ((NU16) 253), (*(*s).Name).S);
		}
		LA45: ;
		{
			if (!!(t.Gcunsafe)) goto LA49;
			(*(*s).Typ).Flags |=((NI32)(1)<<((((NU8) 7))%(sizeof(NI32)*8)));
		}
		LA49: ;
	}
	LA39: ;
	BeforeRet: ;
}

N_NIMCALL(NIM_BOOL, symbolpredicate_324488)(tnode188803* spec, tnode188803* real) {
	NIM_BOOL result;
	result = 0;
	result = ((*(*real).kindU.S4.Sym).Sup.Id == (*(*spec).kindU.S4.Sym).Sup.Id);
	return result;
}

N_NIMCALL(void, checkmethodeffects_324602)(tsym188833* disp, tsym188833* branch) {
	tnode188803* actual;
	tnode188803* p;
	tnode188803* raisesspec;
	tnode188803* tagsspec;
	tnode188803* usesspec;
	actual = (*(*(*branch).Typ).N).kindU.S6.Sons->data[0];
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = len_189264(actual);
		if (!!((LOC3 == 4))) goto LA4;
		goto BeforeRet;
	}
	LA4: ;
	p = (*(*disp).Ast).kindU.S6.Sons->data[4];
	raisesspec = effectspec_320654(p, ((NU8) 150));
	{
		if (!!(raisesspec == 0)) goto LA8;
		checkraisesspec_324523(raisesspec, (*actual).kindU.S6.Sons->data[0], ((NimStringDesc*) &TMP3008), NIM_FALSE, subtyperelation_324481);
	}
	LA8: ;
	tagsspec = effectspec_320654(p, ((NU8) 155));
	{
		if (!!(tagsspec == 0)) goto LA12;
		checkraisesspec_324523(tagsspec, (*actual).kindU.S6.Sons->data[3], ((NimStringDesc*) &TMP3009), NIM_FALSE, subtyperelation_324481);
	}
	LA12: ;
	usesspec = effectspec_320654(p, ((NU8) 188));
	{
		if (!!(usesspec == 0)) goto LA16;
		checkraisesspec_324523(usesspec, (*actual).kindU.S6.Sons->data[1], ((NimStringDesc*) &TMP3031), NIM_FALSE, symbolpredicate_324488);
	}
	LA16: ;
	{
		NIM_BOOL LOC20;
		NimStringDesc* LOC24;
		LOC20 = 0;
		LOC20 = (((*disp).Flags &(1<<((((NU8) 22))&31)))!=0);
		if (!(LOC20)) goto LA21;
		LOC20 = ((130 & (*(*branch).Typ).Flags) == 0);
		LA21: ;
		if (!LOC20) goto LA22;
		LOC24 = 0;
		LOC24 = nsuFormatSingleElem(((NimStringDesc*) &TMP3032), (*(*branch).Name).S);
		localerror_165578((*branch).Info, LOC24);
	}
	LA22: ;
	BeforeRet: ;
}

N_NIMCALL(void, seteffectsforproctype_324766)(ttype188837* t, tnode188803* n) {
	tnode188803* effects;
	tnode188803* raisesspec;
	tnode188803* tagsspec;
	tnode188803* usesspec;
	effects = (*(*t).N).kindU.S6.Sons->data[0];
	{
		NIM_BOOL LOC3;
		NimStringDesc* LOC7;
		LOC3 = 0;
		LOC3 = ((*t).Kind == ((NU8) 25));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*effects).Kind == ((NU8) 150));
		LA4: ;
		if (!!(LOC3)) goto LA5;
		LOC7 = 0;
		LOC7 = HEX24_165714(TMP3038);
		internalerror_165606(LOC7);
	}
	LA5: ;
	raisesspec = effectspec_320654(n, ((NU8) 150));
	tagsspec = effectspec_320654(n, ((NU8) 155));
	usesspec = effectspec_320654(n, ((NU8) 188));
	{
		NIM_BOOL LOC10;
		NIM_BOOL LOC11;
		LOC10 = 0;
		LOC11 = 0;
		LOC11 = !(raisesspec == 0);
		if (LOC11) goto LA12;
		LOC11 = !(tagsspec == 0);
		LA12: ;
		LOC10 = LOC11;
		if (LOC10) goto LA13;
		LOC10 = !(usesspec == 0);
		LA13: ;
		if (!LOC10) goto LA14;
		{
			NI LOC18;
			NimStringDesc* LOC21;
			LOC18 = 0;
			LOC18 = len_189264(effects);
			if (!!((LOC18 == 0))) goto LA19;
			LOC21 = 0;
			LOC21 = HEX24_165714(TMP3039);
			internalerror_165606(LOC21);
		}
		LA19: ;
		if ((*effects).kindU.S6.Sons) nimGCunrefNoCycle((*effects).kindU.S6.Sons);
		(*effects).kindU.S6.Sons = (tnodeseq188797*) newSeqRC1((&NTI188797), 4);
		{
			if (!!(raisesspec == 0)) goto LA24;
			asgnRefNoCycle((void**) &(*effects).kindU.S6.Sons->data[0], raisesspec);
		}
		LA24: ;
		{
			if (!!(tagsspec == 0)) goto LA28;
			asgnRefNoCycle((void**) &(*effects).kindU.S6.Sons->data[3], tagsspec);
		}
		LA28: ;
		{
			if (!!(usesspec == 0)) goto LA32;
			asgnRefNoCycle((void**) &(*effects).kindU.S6.Sons->data[1], usesspec);
		}
		LA32: ;
	}
	LA14: ;
}

N_NIMCALL(void, tracktoplevelstmt_325446)(tsym188833* module, tnode188803* n) {
	tnode188803* effects;
	tnodeseq188797* LOC5;
	teffects318010 t;
	{
		if (!((*n).Kind == ((NU8) 90) || (*n).Kind == ((NU8) 82) || (*n).Kind == ((NU8) 83) || (*n).Kind == ((NU8) 79) || (*n).Kind == ((NU8) 98) || (*n).Kind == ((NU8) 81) || (*n).Kind == ((NU8) 80) || (*n).Kind == ((NU8) 84))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	LOC5 = 0;
	LOC5 = (tnodeseq188797*) newSeq((&NTI188797), 0);
	effects = newnode_191003(((NU8) 150), (*n).Info, LOC5, NIM_NIL);
	memset((void*)&t, 0, sizeof(t));
	initeffects_324978(effects, module, &t);
	track_319664(&t, n);
	BeforeRet: ;
}

N_NIMCALL(void, documenteffect_320754)(tnode188803* n, tnode188803* x_320757, NU8 effecttype, NI idx) {
	tnode188803* x;
	tnode188803* spec;
	x = x_320757;
	spec = effectspec_320654(x, effecttype);
	{
		tsym188833* s;
		tnode188803* actual;
		tnode188803* real;
		tnode188803* effects;
		NI LOC10;
		NI i_320854;
		NI HEX3Atmp_320926;
		NI LOC11;
		NI res_320928;
		tnode188803* pair;
		tnodeseq188797* LOC21;
		TY251116 LOC22;
		tident167019* LOC23;
		if (!spec == 0) goto LA3;
		s = (*(*n).kindU.S6.Sons->data[0]).kindU.S4.Sym;
		actual = (*(*(*s).Typ).N).kindU.S6.Sons->data[0];
		{
			NI LOC7;
			LOC7 = 0;
			LOC7 = len_189264(actual);
			if (!!((LOC7 == 4))) goto LA8;
			goto BeforeRet;
		}
		LA8: ;
		real = (*actual).kindU.S6.Sons->data[idx];
		LOC10 = 0;
		LOC10 = len_189264(real);
		effects = newnodei_190803(((NU8) 41), (*n).Info, LOC10);
		i_320854 = 0;
		HEX3Atmp_320926 = 0;
		LOC11 = 0;
		LOC11 = len_189264(real);
		HEX3Atmp_320926 = LOC11 - 1;
		res_320928 = 0;
		while (1) {
			NimStringDesc* t;
			tnode188803* LOC13;
			tident167019* LOC19;
			tnode188803* LOC20;
			if (!(res_320928 <= HEX3Atmp_320926)) goto LA12;
			i_320854 = res_320928;
			LOC13 = 0;
			LOC13 = HEX5BHEX5D_189694(real, i_320854);
			t = typetostring_223020((*LOC13).Typ, ((NU8) 0));
			{
				NIM_BOOL LOC16;
				LOC16 = 0;
				LOC16 = nsuStartsWith(t, ((NimStringDesc*) &TMP4336));
				if (!LOC16) goto LA17;
				t = copyStr(t, 4);
			}
			LA17: ;
			LOC19 = 0;
			LOC19 = getident_167456(t);
			asgnRefNoCycle((void**) &(*effects).kindU.S6.Sons->data[i_320854], newidentnode_189090(LOC19, (*n).Info));
			LOC20 = 0;
			LOC20 = HEX5BHEX5D_189694(real, i_320854);
			asgnRefNoCycle((void**) &(*(*effects).kindU.S6.Sons->data[i_320854]).Typ, (*LOC20).Typ);
			res_320928 += 1;
		} LA12: ;
		LOC21 = 0;
		LOC21 = (tnodeseq188797*) newSeq((&NTI188797), 2);
		memset((void*)LOC22, 0, sizeof(LOC22));
		LOC23 = 0;
		LOC23 = getident_167456(specialwords_171326[(effecttype)- 0]);
		LOC22[0] = newidentnode_189090(LOC23, (*n).Info);
		LOC22[1] = effects;
		asgnRefNoCycle((void**) &LOC21->data[0], LOC22[0]);
		asgnRefNoCycle((void**) &LOC21->data[1], LOC22[1]);
		pair = newnode_191003(((NU8) 34), (*n).Info, LOC21, NIM_NIL);
		{
			if (!((*x).Kind == ((NU8) 1))) goto LA26;
			x = newnodei_189099(((NU8) 90), (*n).Info);
			asgnRefNoCycle((void**) &(*n).kindU.S6.Sons->data[4], x);
		}
		LA26: ;
		add_189390(x, pair);
	}
	LA3: ;
	BeforeRet: ;
}

N_NIMCALL(void, documentraises_320933)(tnode188803* n) {
	{
		if (!!(((*(*n).kindU.S6.Sons->data[0]).Kind == ((NU8) 3)))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	documenteffect_320754(n, (*n).kindU.S6.Sons->data[4], ((NU8) 150), 0);
	documenteffect_320754(n, (*n).kindU.S6.Sons->data[4], ((NU8) 155), 3);
	documenteffect_320754(n, (*n).kindU.S6.Sons->data[4], ((NU8) 188), 1);
	BeforeRet: ;
}
N_NOINLINE(void, sempass2Init)(void) {
}

N_NOINLINE(void, sempass2DatInit)(void) {
}

