/* Generated by Nim Compiler v0.10.2 */
/*   (c) 2014 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64
#include "nimbase.h"

#include <string.h>
typedef struct tsym224846 tsym224846;
typedef struct tnode224816 tnode224816;
typedef struct tidobj199015 tidobj199015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct ttypeseq224848 ttypeseq224848;
typedef struct ttype224852 ttype224852;
typedef struct TGenericSeq TGenericSeq;
typedef struct tscope224840 tscope224840;
typedef struct TY224947 TY224947;
typedef struct tinstantiation224836 tinstantiation224836;
typedef struct tstrtable224820 tstrtable224820;
typedef struct tsymseq224818 tsymseq224818;
typedef struct tident199021 tident199021;
typedef struct tlineinfo194539 tlineinfo194539;
typedef struct tloc224830 tloc224830;
typedef struct trope176009 trope176009;
typedef struct tlib224834 tlib224834;
typedef struct NimStringDesc NimStringDesc;
typedef struct tnodeseq224810 tnodeseq224810;
typedef struct intset221056 intset221056;
typedef struct ttrunk221052 ttrunk221052;
typedef struct ttrunkseq221054 ttrunkseq221054;
typedef struct TY84745 TY84745;
typedef struct teffects375008 teffects375008;
typedef struct TY342680 TY342680;
typedef struct tcell44935 tcell44935;
typedef struct tcellseq44951 tcellseq44951;
typedef struct tgcheap47016 tgcheap47016;
typedef struct tcellset44947 tcellset44947;
typedef struct tpagedesc44943 tpagedesc44943;
typedef struct tmemregion27210 tmemregion27210;
typedef struct tsmallchunk26440 tsmallchunk26440;
typedef struct tllchunk27204 tllchunk27204;
typedef struct tbigchunk26442 tbigchunk26442;
typedef struct tintset26417 tintset26417;
typedef struct ttrunk26413 ttrunk26413;
typedef struct tavlnode27208 tavlnode27208;
typedef struct tgcstat47014 tgcstat47014;
typedef struct TY267080 TY267080;
typedef struct TY267081 TY267081;
typedef struct TY224936 TY224936;
typedef struct tlistentry126022 tlistentry126022;
typedef struct tbasechunk26438 tbasechunk26438;
typedef struct tfreecell26430 tfreecell26430;
typedef N_NIMCALL_PTR(void, TY3089) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3094) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3089 marker;
TY3094 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  tidobj199015  {
  TNimObject Sup;
NI Id;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  tstrtable224820  {
NI Counter;
tsymseq224818* Data;
};
struct  tlineinfo194539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
struct  tloc224830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype224852* T;
trope176009* R;
trope176009* Heaproot;
};
struct  tsym224846  {
  tidobj199015 Sup;
NU8 Kind;
union {
struct {ttypeseq224848* Typeinstcache;
tscope224840* Typscope;
} S1;
struct {TY224947* Procinstcache;
tscope224840* Scope;
} S2;
struct {TY224947* Usedgenerics;
tstrtable224820 Tab;
} S3;
struct {tsym224846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype224852* Typ;
tident199021* Name;
tlineinfo194539 Info;
tsym224846* Owner;
NU32 Flags;
tnode224816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc224830 Loc;
tlib224834* Annex;
tnode224816* Constraint;
};
struct  ttype224852  {
  tidobj199015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq224848* Sons;
tnode224816* N;
tsym224846* Owner;
tsym224846* Sym;
tsym224846* Destructor;
tsym224846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc224830 Loc;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  tnode224816  {
ttype224852* Typ;
tlineinfo194539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym224846* Sym;
} S4;
struct {tident199021* Ident;
} S5;
struct {tnodeseq224810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
typedef N_NIMCALL_PTR(NIM_BOOL, TY382358) (tnode224816* a, tnode224816* b);
struct  intset221056  {
NI Counter;
NI Max;
ttrunk221052* Head;
ttrunkseq221054* Data;
};
struct  tident199021  {
  tidobj199015 Sup;
NimStringDesc* S;
tident199021* Next;
NI H;
};
typedef NimStringDesc* TY168969[2];
struct TY84745 {
NimStringDesc* Field0;
NI Field1;
};
struct  teffects375008  {
tnode224816* Exc;
tnode224816* Tags;
NI Bottom;
NI Intrystmt;
tsym224846* Owner;
TY342680* Init;
tnodeseq224810* Guards;
tnodeseq224810* Locked;
NIM_BOOL Gcunsafe;
NIM_BOOL Isrecursive;
NIM_BOOL Istoplevel;
NI16 Maxlocklevel;
NI16 Currlocklevel;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  tcell44935  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq44951  {
NI Len;
NI Cap;
tcell44935** D;
};
struct  tcellset44947  {
NI Counter;
NI Max;
tpagedesc44943* Head;
tpagedesc44943** Data;
};
typedef tsmallchunk26440* TY27222[512];
typedef ttrunk26413* ttrunkbuckets26415[256];
struct  tintset26417  {
ttrunkbuckets26415 Data;
};
struct  tmemregion27210  {
NI Minlargeobj;
NI Maxlargeobj;
TY27222 Freesmallchunks;
tllchunk27204* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk26442* Freechunkslist;
tintset26417 Chunkstarts;
tavlnode27208* Root;
tavlnode27208* Deleted;
tavlnode27208* Last;
tavlnode27208* Freeavlnodes;
};
struct  tgcstat47014  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap47016  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq44951 Zct;
tcellseq44951 Decstack;
tcellset44947 Cycleroots;
tcellseq44951 Tempstack;
NI Recgclock;
tmemregion27210 Region;
tgcstat47014 Stat;
};
typedef NU8 TY516462[20];
struct TY267081 {
NI Field0;
NI Field1;
};
typedef tnode224816* TY290286[2];
typedef NimStringDesc* TY203333[255];
struct  tscope224840  {
NI Depthlevel;
tstrtable224820 Symbols;
tnodeseq224810* Usingsyms;
tscope224840* Parent;
};
struct  tinstantiation224836  {
tsym224846* Sym;
ttypeseq224848* Concretetypes;
TY224936* Usedby;
};
struct  trope176009  {
  TNimObject Sup;
trope176009* Left;
trope176009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tlistentry126022  {
  TNimObject Sup;
tlistentry126022* Prev;
tlistentry126022* Next;
};
struct  tlib224834  {
  tlistentry126022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope176009* Name;
tnode224816* Path;
};
typedef NI TY26420[8];
struct  ttrunk221052  {
ttrunk221052* Next;
NI Key;
TY26420 Bits;
};
struct  tpagedesc44943  {
tpagedesc44943* Next;
NI Key;
TY26420 Bits;
};
struct  tbasechunk26438  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk26440  {
  tbasechunk26438 Sup;
tsmallchunk26440* Next;
tsmallchunk26440* Prev;
tfreecell26430* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk27204  {
NI Size;
NI Acc;
tllchunk27204* Next;
};
struct  tbigchunk26442  {
  tbasechunk26438 Sup;
tbigchunk26442* Next;
tbigchunk26442* Prev;
NI Align;
NF Data;
};
struct  ttrunk26413  {
ttrunk26413* Next;
NI Key;
TY26420 Bits;
};
typedef tavlnode27208* TY27214[2];
struct  tavlnode27208  {
TY27214 Link;
NI Key;
NI Upperbound;
NI Level;
};
struct  tfreecell26430  {
tfreecell26430* Next;
NI Zerofield;
};
struct ttypeseq224848 {
  TGenericSeq Sup;
  ttype224852* data[SEQ_DECL_SIZE];
};
struct TY224947 {
  TGenericSeq Sup;
  tinstantiation224836* data[SEQ_DECL_SIZE];
};
struct tsymseq224818 {
  TGenericSeq Sup;
  tsym224846* data[SEQ_DECL_SIZE];
};
struct tnodeseq224810 {
  TGenericSeq Sup;
  tnode224816* data[SEQ_DECL_SIZE];
};
struct ttrunkseq221054 {
  TGenericSeq Sup;
  ttrunk221052* data[SEQ_DECL_SIZE];
};
struct TY342680 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
struct TY267080 {
  TGenericSeq Sup;
  TY267081 data[SEQ_DECL_SIZE];
};
struct TY224936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
static N_INLINE(NI, len_225364)(tnode224816* n);
N_NIMCALL(tnode224816*, effectspec_378338)(tnode224816* n, NU8 effecttype);
static N_INLINE(NI, sonslen_225249)(tnode224816* n);
N_NIMCALL(NU8, whichpragma_261304)(tnode224816* n);
N_NIMCALL(tnode224816*, newnodei_225138)(NU8 kind, tlineinfo194539 info);
N_NIMCALL(void, add_225498)(tnode224816* father, tnode224816* son);
N_NIMCALL(void, checkraisesspec_382352)(tnode224816* spec, tnode224816* real, NimStringDesc* msg, NIM_BOOL hints, TY382358 effectpredicate);
N_NIMCALL(void, initintset_221950)(intset221056* Result);
N_NOINLINE(void, chckNil)(void* p);
static N_INLINE(tnode224816*, HEX5BHEX5D_225698)(tnode224816* n, NI i);
N_NIMCALL(void, incl_221869)(intset221056* s, NI key);
N_NIMCALL(void, pushinfocontext_195930)(tlineinfo194539 info);
N_NIMCALL(void, localerror_196955)(tlineinfo194539 info, NU16 msg, NimStringDesc* arg);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, typetostring_262031)(ttype224852* typ, NU8 prefer);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(void, popinfocontext_195957)(void);
N_NIMCALL(NIM_BOOL, contains_221837)(intset221056* s, NI key);
N_NIMCALL(void, message_196976)(tlineinfo194539 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_249058)(tnode224816* n, NU8 renderflags);
N_NIMCALL(NIM_BOOL, subtyperelation_382302)(tnode224816* spec, tnode224816* real);
N_NIMCALL(NI, safeinheritancediff_272032)(ttype224852* a, ttype224852* b);
N_NIMCALL(ttype224852*, exctype_376371)(tnode224816* n);
N_NIMCALL(ttype224852*, getebase_376345)(void);
N_NIMCALL(tsym224846*, getcompilerproc_281036)(NimStringDesc* name);
N_NIMCALL(ttype224852*, systypefromname_281261)(NimStringDesc* name);
N_NIMCALL(ttype224852*, skiptypes_229245)(ttype224852* t, NU64 kinds);
N_NIMCALL(void, localerror_196966)(tlineinfo194539 info, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(NimStringDesc*, HEX24_227488)(NI16 x);
N_NIMCALL(void, internalerror_197006)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_197126)(TY84745 x_197130);
N_NIMCALL(void, initeffects_382990)(tnode224816* effects, tsym224846* s, teffects375008* t);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(tcell44935*, usrtocell_48646)(void* usr);
static N_INLINE(void, rtladdzct_50204)(tcell44935* c);
N_NOINLINE(void, addzct_48617)(tcellseq44951* s, tcell44935* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
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_377278)(teffects375008* tracked, tnode224816* n);
N_NIMCALL(void, usevar_375930)(teffects375008* a, tnode224816* n);
N_NIMCALL(NIM_BOOL, islocalvar_375069)(teffects375008* a, tsym224846* s);
static N_INLINE(NIM_BOOL, contains_375951)(NI* a_375957, NI a_375957Len0, NI item_375960);
static N_INLINE(NI, find_375963)(NI* a_375968, NI a_375968Len0, NI item_375970);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, guardglobal_375264)(teffects375008* a, tnode224816* n, tsym224846* guard);
static N_INLINE(NIM_BOOL, isgcedmem_229276)(ttype224852* t);
N_NIMCALL(void, warnaboutgcunsafe_375921)(tnode224816* n);
N_NIMCALL(void, addeffect_376460)(teffects375008* a, tnode224816* e, NIM_BOOL uselineinfo);
N_NIMCALL(NIM_BOOL, sametype_267351)(ttype224852* a, ttype224852* b, NU8 flags);
N_NIMCALL(NIM_BOOL, HEX3DHEX3D_196579)(tlineinfo194539 a, tlineinfo194539 b);
N_NIMCALL(void, throws_376309)(tnode224816* tracked, tnode224816* n);
static N_INLINE(NI, safelen_225424)(tnode224816* n);
N_NIMCALL(void, mergelocklevels_378904)(teffects375008* tracked, tnode224816* n, NI16 locklevel);
N_NIMCALL(NI16, getlocklevel_378844)(tsym224846* s);
N_NIMCALL(void, propagateeffects_378918)(teffects375008* tracked, tnode224816* n, tsym224846* s);
N_NIMCALL(void, mergeeffects_376713)(teffects375008* a, tnode224816* b, tnode224816* comesfrom);
N_NIMCALL(tnode224816*, createraise_376391)(tnode224816* n);
N_NIMCALL(tnode224816*, newnode_225090)(NU8 kind);
N_NIMCALL(void, mergetags_376774)(teffects375008* a, tnode224816* b, tnode224816* comesfrom);
N_NIMCALL(void, addtag_376655)(teffects375008* a, tnode224816* e, NIM_BOOL uselineinfo);
N_NIMCALL(tnode224816*, createtag_376412)(tnode224816* n);
N_NIMCALL(NIM_BOOL, isforwardedproc_378230)(tnode224816* n);
N_NIMCALL(NIM_BOOL, isindirectcall_378113)(tnode224816* n, tsym224846* owner);
N_NIMCALL(void, assumetheworst_379127)(teffects375008* tracked, tnode224816* n, ttype224852* op);
N_NIMCALL(NIM_BOOL, importedfromc_378798)(tnode224816* n);
N_NIMCALL(void, trackoperand_379212)(teffects375008* tracked, tnode224816* n, ttype224852* paramtype);
N_NIMCALL(tnode224816*, skipconvandclosure_234305)(tnode224816* n);
N_NIMCALL(tnode224816*, skipconv_272732)(tnode224816* n);
N_NIMCALL(NIM_BOOL, isownedprocvar_379139)(tnode224816* n, tsym224846* owner);
N_NIMCALL(void, notnilcheck_379009)(teffects375008* tracked, tnode224816* n_379012, ttype224852* paramtype);
N_NIMCALL(NIM_BOOL, containsnode_231212)(tnode224816* n, TY516462 kinds);
N_NIMCALL(NU8, impliesnotnil_372055)(tnodeseq224810* facts, tnode224816* arg);
N_NIMCALL(ttype224852*, paramtype_380809)(ttype224852* op, NI i);
N_NIMCALL(NI, len_229005)(ttype224852* n);
N_NIMCALL(void, initvarvianew_375852)(teffects375008* a, tnode224816* n);
N_NIMCALL(void, initvar_375695)(teffects375008* a, tnode224816* n, NIM_BOOL volatilecheck);
static N_INLINE(void, makevolatile_375640)(teffects375008* a, tsym224846* s);
N_NIMCALL(tsym224846*, getmodule_234243)(tsym224846* s);
N_NIMCALL(void, guarddotaccess_375343)(teffects375008* a, tnode224816* n);
N_NIMCALL(tsym224846*, lookupinrecord_234236)(tnode224816* n, tident199021* field);
N_NIMCALL(tnode224816*, newnodei_227007)(NU8 kind, tlineinfo194539 info, NI children);
N_NIMCALL(tnode224816*, newsymnode_225132)(tsym224846* sym);
N_NIMCALL(NIM_BOOL, sametree_369425)(tnode224816* a, tnode224816* b);
N_NIMCALL(void, checkfieldaccess_374021)(tnodeseq224810* m, tnode224816* n);
N_NIMCALL(void, tracktrystmt_377285)(teffects375008* tracked, tnode224816* n);
N_NIMCALL(void, addtointersection_376217)(TY267080** inter, NI s);
N_NIMCALL(void, catchesall_377214)(teffects375008* tracked);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, catches_376890)(teffects375008* tracked, ttype224852* e_376893);
N_NIMCALL(void, trackpragmastmt_378276)(teffects375008* tracked, tnode224816* n);
N_NIMCALL(void, listeffects_376835)(teffects375008* a);
N_NIMCALL(void, invalidatefacts_369774)(tnodeseq224810** m, tnode224816* n);
N_NIMCALL(void, addasgnfact_373618)(tnodeseq224810** m, tnode224816* key, tnode224816* value);
static N_INLINE(tnode224816*, lastson_225261)(tnode224816* n);
N_NIMCALL(void, trackcase_379617)(teffects375008* tracked, tnode224816* n);
N_NIMCALL(NIM_BOOL, interestingcaseexpr_367395)(tnode224816* m);
N_NIMCALL(void, addcasebranchfacts_373755)(tnodeseq224810** m, tnode224816* n, NI i);
N_NIMCALL(NIM_BOOL, breaksblock_379521)(tnode224816* n);
N_NIMCALL(void, trackif_380034)(teffects375008* tracked, tnode224816* n);
N_NIMCALL(void, addfact_369349)(tnodeseq224810** m, tnode224816* n_369353);
N_NIMCALL(void, addfactneg_369396)(tnodeseq224810** m, tnode224816* n_369400);
N_NIMCALL(void, trackblock_380611)(teffects375008* tracked, tnode224816* n);
N_NIMCALL(NIM_BOOL, hassubnodewith_225308)(tnode224816* n, NU8 kind);
N_NIMCALL(NIM_BOOL, istrue_380730)(tnode224816* n);
N_NIMCALL(void, adddiscriminantfact_373518)(tnodeseq224810** m, tnode224816* n);
N_NIMCALL(void, locklocations_375197)(teffects375008* a, tnode224816* pragma);
N_NIMCALL(NI16, getlocklevel_375123)(ttype224852* t_375125);
static N_INLINE(NIM_BOOL, isemptytype_231991)(ttype224852* t);
N_NIMCALL(tnode224816*, newnode_227207)(NU8 kind, tlineinfo194539 info, tnodeseq224810* sons, ttype224852* typ);
N_NIMCALL(tnode224816*, documenteffect_378452)(tnode224816* n, tnode224816* x, NU8 effecttype, NI idx);
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(tnode224816*, newidentnode_225125)(tident199021* ident, tlineinfo194539 info);
N_NIMCALL(tident199021*, getident_199472)(NimStringDesc* identifier);
STRING_LITERAL(TMP3145, "can raise an unlisted exception: ", 33);
STRING_LITERAL(TMP3146, "Exception", 9);
STRING_LITERAL(TMP3147, "Exception", 9);
STRING_LITERAL(TMP3148, "E_Base", 6);
STRING_LITERAL(TMP3149, "can have an unlisted effect: ", 29);
STRING_LITERAL(TMP3150, "base method is GC-safe, but \'$1\' is not", 39);
STRING_LITERAL(TMP3151, "base method has lock level $1, but dispatcher has $2", 52);
STRING_LITERAL(TMP3196, "compiler/sempass2.nim", 21);
NIM_CONST TY84745 TMP3195 = {((NimStringDesc*) &TMP3196),
824}
;
STRING_LITERAL(TMP3197, "unguarded access: ", 18);
STRING_LITERAL(TMP3198, "expected lock level < ", 22);
STRING_LITERAL(TMP3199, " but got lock level ", 20);
STRING_LITERAL(TMP3200, "RootEffect", 10);
STRING_LITERAL(TMP3201, "RootEffect", 10);
STRING_LITERAL(TMP3202, "TEffect", 7);
NIM_CONST TY84745 TMP3203 = {((NimStringDesc*) &TMP3196),
489}
;
static NIM_CONST TY516462 TMP3204 = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00,
0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TMP3216, "cannot prove \'$1\' is not nil", 28);
STRING_LITERAL(TMP3217, "\'$1\' is provably nil", 20);
STRING_LITERAL(TMP3218, "invalid guard field: ", 21);
STRING_LITERAL(TMP3219, "locks pragma without argument", 29);
STRING_LITERAL(TMP3220, "invalid lock level: ", 20);
STRING_LITERAL(TMP3221, "multi-lock requires the same static lock level for every operan"
"d", 64);
STRING_LITERAL(TMP3222, "invalid nested locking", 22);
STRING_LITERAL(TMP3223, "result", 6);
STRING_LITERAL(TMP3224, "\'$1\' is not GC-safe", 19);
STRING_LITERAL(TMP3225, "declared lock level is $1, but real lock level is $2", 52);
NIM_CONST TY84745 TMP3251 = {((NimStringDesc*) &TMP3196),
797}
;
NIM_CONST TY84745 TMP3252 = {((NimStringDesc*) &TMP3196),
803}
;
STRING_LITERAL(TMP4635, "ref ", 4);
extern NIM_CONST TY203333 specialwords_203332;
extern TNimType NTI224810; /* TNodeSeq */
extern tgcheap47016 gch_47044;
extern TNimType NTI342680; /* seq[int] */
extern NU64 gnotes_195302;
extern NU8 gcmd_168120;
extern TNimType NTI267080; /* seq[tuple[a: int, b: int]] */
extern NU32 gglobaloptions_168118;

static N_INLINE(NI, len_225364)(tnode224816* 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(NI, sonslen_225249)(tnode224816* 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(tnode224816*, effectspec_378338)(tnode224816* n, NU8 effecttype) {
	tnode224816* result;
	result = 0;
	{
		NI i_378355;
		NI HEX3Atmp_378432;
		NI LOC2;
		NI res_378435;
		i_378355 = 0;
		HEX3Atmp_378432 = 0;
		LOC2 = 0;
		LOC2 = sonslen_225249(n);
		HEX3Atmp_378432 = (NI64)(LOC2 - 1);
		res_378435 = 0;
		{
			while (1) {
				tnode224816* it;
				if (!(res_378435 <= HEX3Atmp_378432)) goto LA4;
				i_378355 = res_378435;
				it = (*n).kindU.S6.Sons->data[i_378355];
				{
					NIM_BOOL LOC7;
					NU8 LOC9;
					LOC7 = 0;
					LOC7 = ((*it).Kind == ((NU8) 34));
					if (!(LOC7)) goto LA8;
					LOC9 = 0;
					LOC9 = whichpragma_261304(it);
					LOC7 = (LOC9 == effecttype);
					LA8: ;
					if (!LOC7) goto LA10;
					result = (*it).kindU.S6.Sons->data[1];
					{
						if (!!(((*result).Kind == ((NU8) 39) || (*result).Kind == ((NU8) 41)))) goto LA14;
						result = newnodei_225138(((NU8) 39), (*result).Info);
						add_225498(result, (*it).kindU.S6.Sons->data[1]);
					}
					LA14: ;
					goto BeforeRet;
				}
				LA10: ;
				res_378435 += 1;
			} LA4: ;
		}
	}
	BeforeRet: ;
	return result;
}

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

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

N_NIMCALL(void, checkraisesspec_382352)(tnode224816* spec, tnode224816* real, NimStringDesc* msg, NIM_BOOL hints, TY382358 effectpredicate) {
	intset221056 used;
	memset((void*)(&used), 0, sizeof(used));
	chckNil((void*)(&used));
	memset((void*)(&used), 0, sizeof(used));
	initintset_221950((&used));
	{
		tnode224816* r_382364;
		r_382364 = 0;
		{
			NI i_382421;
			NI HEX3Atmp_382423;
			NI LOC3;
			NI res_382425;
			i_382421 = 0;
			HEX3Atmp_382423 = 0;
			LOC3 = 0;
			LOC3 = len_225364(real);
			HEX3Atmp_382423 = (LOC3 - 1);
			res_382425 = 0;
			{
				while (1) {
					if (!(res_382425 <= HEX3Atmp_382423)) goto LA5;
					i_382421 = res_382425;
					r_382364 = (*real).kindU.S6.Sons->data[i_382421];
					{
						NimStringDesc* LOC17;
						NimStringDesc* LOC18;
						{
							NI s_382387;
							NI HEX3Atmp_382413;
							NI LOC8;
							NI res_382416;
							s_382387 = 0;
							HEX3Atmp_382413 = 0;
							LOC8 = 0;
							LOC8 = len_225364(spec);
							HEX3Atmp_382413 = (LOC8 - 1);
							res_382416 = 0;
							{
								while (1) {
									if (!(res_382416 <= HEX3Atmp_382413)) goto LA10;
									s_382387 = res_382416;
									{
										tnode224816* LOC13;
										NIM_BOOL LOC14;
										LOC13 = 0;
										LOC13 = HEX5BHEX5D_225698(spec, s_382387);
										LOC14 = 0;
										LOC14 = effectpredicate(LOC13, r_382364);
										if (!LOC14) goto LA15;
										incl_221869((&used), s_382387);
										goto LA6;
									}
									LA15: ;
									res_382416 += 1;
								} LA10: ;
							}
						}
						pushinfocontext_195930((*spec).Info);
						LOC17 = 0;
						LOC18 = 0;
						LOC18 = typetostring_262031((*r_382364).Typ, ((NU8) 0));
						LOC17 = rawNewString(msg->Sup.len + LOC18->Sup.len + 0);
appendString(LOC17, msg);
appendString(LOC17, LOC18);
						localerror_196955((*r_382364).Info, ((NU16) 4), LOC17);
						popinfocontext_195957();
					} LA6: ;
					res_382425 += 1;
				} LA5: ;
			}
		}
	}
	{
		if (!hints) goto LA21;
		{
			NI s_382410;
			NI HEX3Atmp_382427;
			NI LOC24;
			NI res_382430;
			s_382410 = 0;
			HEX3Atmp_382427 = 0;
			LOC24 = 0;
			LOC24 = len_225364(spec);
			HEX3Atmp_382427 = (LOC24 - 1);
			res_382430 = 0;
			{
				while (1) {
					if (!(res_382430 <= HEX3Atmp_382427)) goto LA26;
					s_382410 = res_382430;
					{
						NIM_BOOL LOC29;
						tnode224816* LOC32;
						tnode224816* LOC33;
						NimStringDesc* LOC34;
						LOC29 = 0;
						LOC29 = contains_221837((&used), s_382410);
						if (!!(LOC29)) goto LA30;
						LOC32 = 0;
						LOC32 = HEX5BHEX5D_225698(spec, s_382410);
						LOC33 = 0;
						LOC33 = HEX5BHEX5D_225698(spec, s_382410);
						LOC34 = 0;
						LOC34 = rendertree_249058(LOC33, 0);
						message_196976((*LOC32).Info, ((NU16) 262), LOC34);
					}
					LA30: ;
					res_382430 += 1;
				} LA26: ;
			}
		}
	}
	LA21: ;
}

N_NIMCALL(ttype224852*, getebase_376345)(void) {
	ttype224852* result;
	result = 0;
	{
		tsym224846* LOC3;
		LOC3 = 0;
		LOC3 = getcompilerproc_281036(((NimStringDesc*) &TMP3146));
		if (!!((LOC3 == NIM_NIL))) goto LA4;
		result = systypefromname_281261(((NimStringDesc*) &TMP3147));
	}
	goto LA1;
	LA4: ;
	{
		result = systypefromname_281261(((NimStringDesc*) &TMP3148));
	}
	LA1: ;
	return result;
}

N_NIMCALL(ttype224852*, exctype_376371)(tnode224816* n) {
	ttype224852* result;
	ttype224852* t;
	result = 0;
	{
		if (!((*n).Kind == ((NU8) 1))) goto LA3;
		t = getebase_376345();
	}
	goto LA1;
	LA3: ;
	{
		t = (*n).Typ;
	}
	LA1: ;
	result = skiptypes_229245(t, IL64(211106247215360));
	return result;
}

N_NIMCALL(NIM_BOOL, subtyperelation_382302)(tnode224816* spec, tnode224816* real) {
	NIM_BOOL result;
	ttype224852* LOC1;
	NI LOC2;
	result = 0;
	LOC1 = 0;
	LOC1 = exctype_376371(real);
	LOC2 = 0;
	LOC2 = safeinheritancediff_272032(LOC1, (*spec).Typ);
	result = (LOC2 <= 0);
	return result;
}

N_NIMCALL(void, checkmethodeffects_382471)(tsym224846* disp, tsym224846* branch) {
	tnode224816* actual;
	tnode224816* p;
	tnode224816* raisesspec;
	tnode224816* tagsspec;
	actual = (*(*(*branch).Typ).N).kindU.S6.Sons->data[0];
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = len_225364(actual);
		if (!!((LOC3 == 4))) goto LA4;
		goto BeforeRet;
	}
	LA4: ;
	p = (*(*disp).Ast).kindU.S6.Sons->data[4];
	raisesspec = effectspec_378338(p, ((NU8) 152));
	{
		if (!!(raisesspec == 0)) goto LA8;
		checkraisesspec_382352(raisesspec, (*actual).kindU.S6.Sons->data[0], ((NimStringDesc*) &TMP3145), NIM_FALSE, subtyperelation_382302);
	}
	LA8: ;
	tagsspec = effectspec_378338(p, ((NU8) 157));
	{
		if (!!(tagsspec == 0)) goto LA12;
		checkraisesspec_382352(tagsspec, (*actual).kindU.S6.Sons->data[3], ((NimStringDesc*) &TMP3149), NIM_FALSE, subtyperelation_382302);
	}
	LA12: ;
	{
		NIM_BOOL LOC16;
		NimStringDesc* LOC20;
		LOC16 = 0;
		LOC16 = (((*disp).Flags &(1<<((((NU8) 22))&31)))!=0);
		if (!(LOC16)) goto LA17;
		LOC16 = ((130 & (*(*branch).Typ).Flags) == 0);
		LA17: ;
		if (!LOC16) goto LA18;
		LOC20 = 0;
		LOC20 = nsuFormatSingleElem(((NimStringDesc*) &TMP3150), (*(*branch).Name).S);
		localerror_196966((*branch).Info, LOC20);
	}
	LA18: ;
	{
		TY168969 LOC25;
		NimStringDesc* LOC26;
		if (!((*(*disp).Typ).Locklevel < (*(*branch).Typ).Locklevel)) goto LA23;
		memset((void*)LOC25, 0, sizeof(LOC25));
		LOC25[0] = HEX24_227488((*(*branch).Typ).Locklevel);
		LOC25[1] = HEX24_227488((*(*disp).Typ).Locklevel);
		LOC26 = 0;
		LOC26 = nsuFormatOpenArray(((NimStringDesc*) &TMP3151), LOC25, 2);
		message_196976((*branch).Info, ((NU16) 257), LOC26);
	}
	LA23: ;
	BeforeRet: ;
}

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

static N_INLINE(void, rtladdzct_50204)(tcell44935* c) {
	addzct_48617((&gch_47044.Zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	tcell44935* c;
	c = usrtocell_48646(p);
	{
		(*c).Refcount -= 8;
		if (!((NU64)((*c).Refcount) < (NU64)(8))) goto LA3;
		rtladdzct_50204(c);
	}
	LA3: ;
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		tcell44935* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_48646(src);
		(*c).Refcount += 8;
	}
	LA3: ;
	{
		tcell44935* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_48646((*dest));
		{
			(*c).Refcount -= 8;
			if (!((NU64)((*c).Refcount) < (NU64)(8))) goto LA11;
			rtladdzct_50204(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(void, initeffects_382990)(tnode224816* effects, tsym224846* s, teffects375008* t) {
	if ((*effects).kindU.S6.Sons) nimGCunrefNoCycle((*effects).kindU.S6.Sons);
	(*effects).kindU.S6.Sons = (tnodeseq224810*) newSeqRC1((&NTI224810), 4);
	asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[0]), newnodei_225138(((NU8) 151), (*s).Info));
	asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[3]), newnodei_225138(((NU8) 151), (*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).Owner), s);
	unsureAsgnRef((void**) (&(*t).Init), (TY342680*) newSeq((&NTI342680), 0));
	unsureAsgnRef((void**) (&(*t).Guards), (tnodeseq224810*) newSeq((&NTI224810), 0));
	unsureAsgnRef((void**) (&(*t).Locked), (tnodeseq224810*) newSeq((&NTI224810), 0));
}

N_NIMCALL(NIM_BOOL, islocalvar_375069)(teffects375008* a, tsym224846* 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_375963)(NI* a_375968, NI a_375968Len0, NI item_375970) {
	NI result;
	result = 0;
	{
		NI i_375983;
		NI i_375999;
		i_375983 = 0;
		i_375999 = 0;
		{
			while (1) {
				if (!(i_375999 < a_375968Len0)) goto LA3;
				i_375983 = a_375968[i_375999];
				{
					if (!(i_375983 == item_375970)) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
				result += 1;
				i_375999 += 1;
			} LA3: ;
		}
	}
	result = -1;
	BeforeRet: ;
	return result;
}

static N_INLINE(NIM_BOOL, contains_375951)(NI* a_375957, NI a_375957Len0, NI item_375960) {
	NIM_BOOL result;
	NI LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = find_375963(a_375957, a_375957Len0, item_375960);
	result = (0 <= LOC1);
	goto BeforeRet;
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, guardglobal_375264)(teffects375008* a, tnode224816* n, tsym224846* guard) {
	{
		tnode224816* l_375281;
		tnodeseq224810* HEX3Atmp_375322;
		NI i_375325;
		NI l_375327;
		l_375281 = 0;
		HEX3Atmp_375322 = 0;
		HEX3Atmp_375322 = (*a).Locked;
		i_375325 = 0;
		l_375327 = HEX3Atmp_375322->Sup.len;
		{
			while (1) {
				if (!(i_375325 < l_375327)) goto LA3;
				l_375281 = HEX3Atmp_375322->data[i_375325];
				{
					NIM_BOOL LOC6;
					LOC6 = 0;
					LOC6 = ((*l_375281).Kind == ((NU8) 3));
					if (!(LOC6)) goto LA7;
					LOC6 = ((*l_375281).kindU.S4.Sym == guard);
					LA7: ;
					if (!LOC6) goto LA8;
					goto BeforeRet;
				}
				LA8: ;
				i_375325 += 1;
			} LA3: ;
		}
	}
	{
		NimStringDesc* LOC14;
		NimStringDesc* LOC15;
		if (!!((*a).Istoplevel)) goto LA12;
		LOC14 = 0;
		LOC15 = 0;
		LOC15 = rendertree_249058(n, 0);
		LOC14 = rawNewString(LOC15->Sup.len + 18);
appendString(LOC14, ((NimStringDesc*) &TMP3197));
appendString(LOC14, LOC15);
		localerror_196955((*n).Info, ((NU16) 4), LOC14);
	}
	LA12: ;
	BeforeRet: ;
}

static N_INLINE(NIM_BOOL, isgcedmem_229276)(ttype224852* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = ((289406976 &(IL64(1)<<(((*t).Kind)&IL64(63))))!=0);
	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, warnaboutgcunsafe_375921)(tnode224816* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_249058(n, 0);
	message_196976((*n).Info, ((NU16) 253), LOC1);
}

N_NIMCALL(void, usevar_375930)(teffects375008* a, tnode224816* n) {
	tsym224846* s;
	s = (*n).kindU.S4.Sym;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = islocalvar_375069(a, s);
		if (!LOC3) goto LA4;
		{
			NIM_BOOL LOC8;
			LOC8 = 0;
			LOC8 = contains_375951((*a).Init->data, (*a).Init->Sup.len, (*s).Sup.Id);
			if (!!(LOC8)) goto LA9;
			{
				if (!!(((196608 & (*(*s).Typ).Flags) == 0))) goto LA13;
				message_196976((*n).Info, ((NU16) 250), (*(*s).Name).S);
			}
			goto LA11;
			LA13: ;
			{
				message_196976((*n).Info, ((NU16) 255), (*(*s).Name).S);
			}
			LA11: ;
			(*a).Init = (TY342680*) 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 = ((768 &(1<<(((*s).Kind)&31)))!=0);
		LA19: ;
		if (!LOC18) goto LA20;
		{
			if (!!(((*s).kindU.S4.Guard == NIM_NIL))) goto LA24;
			guardglobal_375264(a, n, (*s).kindU.S4.Guard);
		}
		LA24: ;
		{
			NIM_BOOL LOC28;
			NIM_BOOL LOC29;
			LOC28 = 0;
			LOC29 = 0;
			LOC29 = (((*(*s).Typ).Flags &(1<<((((NU8) 20))&31)))!=0);
			if (LOC29) goto LA30;
			LOC29 = isgcedmem_229276((*s).Typ);
			LA30: ;
			LOC28 = LOC29;
			if (!(LOC28)) goto LA31;
			LOC28 = !((((*(*s).Typ).Flags &(1<<((((NU8) 7))&31)))!=0));
			LA31: ;
			if (!LOC28) goto LA32;
			{
				if (!((gnotes_195302 &(IL64(1)<<(((((NU16) 253)- 230))&IL64(63))))!=0)) goto LA36;
				warnaboutgcunsafe_375921(n);
			}
			LA36: ;
			(*a).Gcunsafe = NIM_TRUE;
		}
		LA32: ;
	}
	LA20: ;
}

N_NIMCALL(void, throws_376309)(tnode224816* tracked, tnode224816* 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_225498(tracked, n);
	}
	LA5: ;
}

N_NIMCALL(void, addeffect_376460)(teffects375008* a, tnode224816* e, NIM_BOOL uselineinfo) {
	tnode224816* aa;
	aa = (*a).Exc;
	{
		NI i_376623;
		NI HEX3Atmp_376634;
		NI HEX3Atmp_376635;
		NI LOC2;
		NI res_376638;
		i_376623 = 0;
		HEX3Atmp_376634 = 0;
		HEX3Atmp_376635 = 0;
		HEX3Atmp_376634 = (*a).Bottom;
		LOC2 = 0;
		LOC2 = len_225364(aa);
		HEX3Atmp_376635 = (LOC2 - 1);
		res_376638 = HEX3Atmp_376634;
		{
			while (1) {
				if (!(res_376638 <= HEX3Atmp_376635)) goto LA4;
				i_376623 = res_376638;
				{
					tnode224816* LOC7;
					ttype224852* LOC8;
					ttype224852* LOC9;
					NIM_BOOL LOC10;
					LOC7 = 0;
					LOC7 = HEX5BHEX5D_225698(aa, i_376623);
					LOC8 = 0;
					LOC8 = exctype_376371(LOC7);
					LOC9 = 0;
					LOC9 = exctype_376371(e);
					LOC10 = 0;
					LOC10 = sametype_267351(LOC8, LOC9, 0);
					if (!LOC10) goto LA11;
					{
						NIM_BOOL LOC15;
						LOC15 = 0;
						LOC15 = !(uselineinfo);
						if (LOC15) goto LA16;
						LOC15 = (gcmd_168120 == ((NU8) 8));
						LA16: ;
						if (!LOC15) goto LA17;
						goto BeforeRet;
					}
					goto LA13;
					LA17: ;
					{
						tnode224816* LOC20;
						NIM_BOOL LOC21;
						LOC20 = 0;
						LOC20 = HEX5BHEX5D_225698(aa, i_376623);
						LOC21 = 0;
						LOC21 = HEX3DHEX3D_196579((*LOC20).Info, (*e).Info);
						if (!LOC21) goto LA22;
						goto BeforeRet;
					}
					goto LA13;
					LA22: ;
					LA13: ;
				}
				LA11: ;
				res_376638 += 1;
			} LA4: ;
		}
	}
	throws_376309((*a).Exc, e);
	BeforeRet: ;
}

static N_INLINE(NI, safelen_225424)(tnode224816* 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(void, mergelocklevels_378904)(teffects375008* tracked, tnode224816* n, NI16 locklevel) {
	{
		if (!((*tracked).Currlocklevel <= locklevel)) goto LA3;
		{
			NimStringDesc* LOC9;
			NimStringDesc* LOC10;
			NimStringDesc* LOC11;
			if (!(((NI16) 0) < (*tracked).Currlocklevel)) goto LA7;
			LOC9 = 0;
			LOC10 = 0;
			LOC10 = HEX24_227488((*tracked).Currlocklevel);
			LOC11 = 0;
			LOC11 = HEX24_227488(locklevel);
			LOC9 = rawNewString(LOC10->Sup.len + LOC11->Sup.len + 42);
appendString(LOC9, ((NimStringDesc*) &TMP3198));
appendString(LOC9, LOC10);
appendString(LOC9, ((NimStringDesc*) &TMP3199));
appendString(LOC9, LOC11);
			localerror_196955((*n).Info, ((NU16) 4), LOC9);
		}
		LA7: ;
		(*tracked).Maxlocklevel = (((*tracked).Maxlocklevel >= locklevel) ? (*tracked).Maxlocklevel : locklevel);
	}
	LA3: ;
}

N_NIMCALL(NI16, getlocklevel_378844)(tsym224846* s) {
	NI16 result;
	result = 0;
	result = (*(*s).Typ).Locklevel;
	{
		if (!(result == ((NI16) -1))) goto LA3;
		{
			NIM_BOOL LOC7;
			LOC7 = 0;
			LOC7 = !(((1056 & (*s).Flags) == 0));
			if (LOC7) goto LA8;
			LOC7 = (((*(*s).Typ).Flags &(1<<((((NU8) 1))&31)))!=0);
			LA8: ;
			if (!LOC7) goto LA9;
			result = ((NI16) 0);
		}
		goto LA5;
		LA9: ;
		{
			result = ((NI16) 1001);
		}
		LA5: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(tnode224816*, createraise_376391)(tnode224816* n) {
	tnode224816* result;
	result = 0;
	result = newnode_225090(((NU8) 4));
	asgnRefNoCycle((void**) (&(*result).Typ), getebase_376345());
	{
		if (!!(n == 0)) goto LA3;
		(*result).Info = (*n).Info;
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, mergeeffects_376713)(teffects375008* a, tnode224816* b, tnode224816* comesfrom) {
	{
		tnode224816* LOC5;
		if (!b == 0) goto LA3;
		LOC5 = 0;
		LOC5 = createraise_376391(comesfrom);
		addeffect_376460(a, LOC5, NIM_TRUE);
	}
	goto LA1;
	LA3: ;
	{
		{
			tnode224816* effect_376729;
			effect_376729 = 0;
			{
				NI i_376751;
				NI HEX3Atmp_376753;
				NI LOC9;
				NI res_376755;
				i_376751 = 0;
				HEX3Atmp_376753 = 0;
				LOC9 = 0;
				LOC9 = len_225364(b);
				HEX3Atmp_376753 = (LOC9 - 1);
				res_376755 = 0;
				{
					while (1) {
						if (!(res_376755 <= HEX3Atmp_376753)) goto LA11;
						i_376751 = res_376755;
						effect_376729 = (*b).kindU.S6.Sons->data[i_376751];
						addeffect_376460(a, effect_376729, !((comesfrom == NIM_NIL)));
						res_376755 += 1;
					} LA11: ;
				}
			}
		}
	}
	LA1: ;
}

N_NIMCALL(void, addtag_376655)(teffects375008* a, tnode224816* e, NIM_BOOL uselineinfo) {
	tnode224816* aa;
	aa = (*a).Tags;
	{
		NI i_376682;
		NI HEX3Atmp_376693;
		NI LOC2;
		NI res_376696;
		i_376682 = 0;
		HEX3Atmp_376693 = 0;
		LOC2 = 0;
		LOC2 = len_225364(aa);
		HEX3Atmp_376693 = (LOC2 - 1);
		res_376696 = 0;
		{
			while (1) {
				if (!(res_376696 <= HEX3Atmp_376693)) goto LA4;
				i_376682 = res_376696;
				{
					tnode224816* LOC7;
					ttype224852* LOC8;
					ttype224852* LOC9;
					NIM_BOOL LOC10;
					LOC7 = 0;
					LOC7 = HEX5BHEX5D_225698(aa, i_376682);
					LOC8 = 0;
					LOC8 = skiptypes_229245((*LOC7).Typ, IL64(211106247215360));
					LOC9 = 0;
					LOC9 = skiptypes_229245((*e).Typ, IL64(211106247215360));
					LOC10 = 0;
					LOC10 = sametype_267351(LOC8, LOC9, 0);
					if (!LOC10) goto LA11;
					{
						NIM_BOOL LOC15;
						LOC15 = 0;
						LOC15 = !(uselineinfo);
						if (LOC15) goto LA16;
						LOC15 = (gcmd_168120 == ((NU8) 8));
						LA16: ;
						if (!LOC15) goto LA17;
						goto BeforeRet;
					}
					goto LA13;
					LA17: ;
					{
						tnode224816* LOC20;
						NIM_BOOL LOC21;
						LOC20 = 0;
						LOC20 = HEX5BHEX5D_225698(aa, i_376682);
						LOC21 = 0;
						LOC21 = HEX3DHEX3D_196579((*LOC20).Info, (*e).Info);
						if (!LOC21) goto LA22;
						goto BeforeRet;
					}
					goto LA13;
					LA22: ;
					LA13: ;
				}
				LA11: ;
				res_376696 += 1;
			} LA4: ;
		}
	}
	throws_376309((*a).Tags, e);
	BeforeRet: ;
}

N_NIMCALL(tnode224816*, createtag_376412)(tnode224816* n) {
	tnode224816* result;
	result = 0;
	result = newnode_225090(((NU8) 4));
	{
		tsym224846* LOC3;
		LOC3 = 0;
		LOC3 = getcompilerproc_281036(((NimStringDesc*) &TMP3200));
		if (!!((LOC3 == NIM_NIL))) goto LA4;
		asgnRefNoCycle((void**) (&(*result).Typ), systypefromname_281261(((NimStringDesc*) &TMP3201)));
	}
	goto LA1;
	LA4: ;
	{
		asgnRefNoCycle((void**) (&(*result).Typ), systypefromname_281261(((NimStringDesc*) &TMP3202)));
	}
	LA1: ;
	{
		if (!!(n == 0)) goto LA9;
		(*result).Info = (*n).Info;
	}
	LA9: ;
	return result;
}

N_NIMCALL(void, mergetags_376774)(teffects375008* a, tnode224816* b, tnode224816* comesfrom) {
	{
		tnode224816* LOC5;
		if (!b == 0) goto LA3;
		LOC5 = 0;
		LOC5 = createtag_376412(comesfrom);
		addtag_376655(a, LOC5, NIM_TRUE);
	}
	goto LA1;
	LA3: ;
	{
		{
			tnode224816* effect_376790;
			effect_376790 = 0;
			{
				NI i_376812;
				NI HEX3Atmp_376814;
				NI LOC9;
				NI res_376816;
				i_376812 = 0;
				HEX3Atmp_376814 = 0;
				LOC9 = 0;
				LOC9 = len_225364(b);
				HEX3Atmp_376814 = (LOC9 - 1);
				res_376816 = 0;
				{
					while (1) {
						if (!(res_376816 <= HEX3Atmp_376814)) goto LA11;
						i_376812 = res_376816;
						effect_376790 = (*b).kindU.S6.Sons->data[i_376812];
						addtag_376655(a, effect_376790, !((comesfrom == NIM_NIL)));
						res_376816 += 1;
					} LA11: ;
				}
			}
		}
	}
	LA1: ;
}

N_NIMCALL(void, propagateeffects_378918)(teffects375008* tracked, tnode224816* n, tsym224846* s) {
	tnode224816* pragma;
	tnode224816* spec;
	tnode224816* tagspec;
	NI16 LOC11;
	pragma = (*(*s).Ast).kindU.S6.Sons->data[4];
	spec = effectspec_378338(pragma, ((NU8) 152));
	mergeeffects_376713(tracked, spec, n);
	tagspec = effectspec_378338(pragma, ((NU8) 157));
	mergetags_376774(tracked, tagspec, n);
	{
		NIM_BOOL LOC3;
		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;
		{
			if (!((gnotes_195302 &(IL64(1)<<(((((NU16) 253)- 230))&IL64(63))))!=0)) goto LA9;
			warnaboutgcunsafe_375921(n);
		}
		LA9: ;
		(*tracked).Gcunsafe = NIM_TRUE;
	}
	LA5: ;
	LOC11 = 0;
	LOC11 = getlocklevel_378844(s);
	mergelocklevels_378904(tracked, n, LOC11);
}

N_NIMCALL(NIM_BOOL, isforwardedproc_378230)(tnode224816* 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_378113)(tnode224816* n, tsym224846* 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, assumetheworst_379127)(teffects375008* tracked, tnode224816* n, ttype224852* op) {
	tnode224816* LOC1;
	tnode224816* LOC2;
	NI16 locklevel;
	LOC1 = 0;
	LOC1 = createraise_376391(n);
	addeffect_376460(tracked, LOC1, NIM_TRUE);
	LOC2 = 0;
	LOC2 = createtag_376412(n);
	addtag_376655(tracked, LOC2, NIM_TRUE);
	{
		if (!((*op).Locklevel == ((NI16) -1))) goto LA5;
		locklevel = ((NI16) 1001);
	}
	goto LA3;
	LA5: ;
	{
		locklevel = (*op).Locklevel;
	}
	LA3: ;
	mergelocklevels_378904(tracked, n, locklevel);
}

N_NIMCALL(NIM_BOOL, importedfromc_378798)(tnode224816* 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;
}

N_NIMCALL(NIM_BOOL, isownedprocvar_379139)(tnode224816* n, tsym224846* owner) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC2;
	result = 0;
	LOC1 = 0;
	LOC2 = 0;
	LOC2 = ((*n).Kind == ((NU8) 3));
	if (!(LOC2)) goto LA3;
	LOC2 = ((*(*n).kindU.S4.Sym).Kind == ((NU8) 3));
	LA3: ;
	LOC1 = LOC2;
	if (!(LOC1)) goto LA4;
	LOC1 = (owner == (*(*n).kindU.S4.Sym).Owner);
	LA4: ;
	result = LOC1;
	return result;
}

N_NIMCALL(void, notnilcheck_379009)(teffects375008* tracked, tnode224816* n_379012, ttype224852* paramtype) {
	tnode224816* n;
	n = skipconv_272732(n_379012);
	{
		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_231212(n, TMP3204);
				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_372055((*tracked).Guards, n);
		switch (LOC25) {
		case ((NU8) 0):
		{
			NimStringDesc* LOC27;
			NimStringDesc* LOC28;
			LOC27 = 0;
			LOC27 = rendertree_249058(n, 0);
			LOC28 = 0;
			LOC28 = nsuFormatSingleElem(((NimStringDesc*) &TMP3216), LOC27);
			message_196976((*n).Info, ((NU16) 4), LOC28);
		}
		break;
		case ((NU8) 1):
		{
			NimStringDesc* LOC30;
			NimStringDesc* LOC31;
			LOC30 = 0;
			LOC30 = rendertree_249058(n, 0);
			LOC31 = 0;
			LOC31 = nsuFormatSingleElem(((NimStringDesc*) &TMP3217), LOC30);
			message_196976((*n).Info, ((NU16) 4), LOC31);
		}
		break;
		case ((NU8) 2):
		{
		}
		break;
		}
	}
	LA9: ;
	BeforeRet: ;
}

N_NIMCALL(void, trackoperand_379212)(teffects375008* tracked, tnode224816* n, ttype224852* paramtype) {
	tnode224816* a;
	ttype224852* op;
	a = skipconvandclosure_234305(n);
	op = (*a).Typ;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		tnode224816* effectlist;
		tnode224816* 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) 151)))) goto LA11;
			LOC13 = 0;
			LOC13 = HEX24_197126(TMP3203);
			internalerror_197006(LOC13);
		}
		LA11: ;
		effectlist = (*(*op).N).kindU.S6.Sons->data[0];
		s = skipconv_272732(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_378918(tracked, n, (*s).kindU.S4.Sym);
		}
		goto LA14;
		LA18: ;
		{
			NI LOC21;
			LOC21 = 0;
			LOC21 = len_225364(effectlist);
			if (!(LOC21 == 0)) goto LA22;
			{
				NIM_BOOL LOC26;
				LOC26 = 0;
				LOC26 = isforwardedproc_378230(n);
				if (!LOC26) goto LA27;
				propagateeffects_378918(tracked, n, (*n).kindU.S4.Sym);
			}
			goto LA24;
			LA27: ;
			{
				NIM_BOOL LOC30;
				LOC30 = 0;
				LOC30 = isownedprocvar_379139(a, (*tracked).Owner);
				if (!!(LOC30)) goto LA31;
				assumetheworst_379127(tracked, n, op);
			}
			goto LA24;
			LA31: ;
			LA24: ;
			{
				NIM_BOOL LOC35;
				NIM_BOOL LOC37;
				LOC35 = 0;
				LOC35 = ((130 & (*op).Flags) == 0);
				if (!(LOC35)) goto LA36;
				LOC37 = 0;
				LOC37 = isownedprocvar_379139(a, (*tracked).Owner);
				LOC35 = !(LOC37);
				LA36: ;
				if (!LOC35) goto LA38;
				{
					if (!((gnotes_195302 &(IL64(1)<<(((((NU16) 253)- 230))&IL64(63))))!=0)) goto LA42;
					warnaboutgcunsafe_375921(n);
				}
				LA42: ;
				(*tracked).Gcunsafe = NIM_TRUE;
			}
			LA38: ;
		}
		goto LA14;
		LA22: ;
		{
			mergeeffects_376713(tracked, (*effectlist).kindU.S6.Sons->data[0], n);
			mergetags_376774(tracked, (*effectlist).kindU.S6.Sons->data[3], n);
			{
				if (!((130 & (*op).Flags) == 0)) goto LA47;
				{
					if (!((gnotes_195302 &(IL64(1)<<(((((NU16) 253)- 230))&IL64(63))))!=0)) goto LA51;
					warnaboutgcunsafe_375921(n);
				}
				LA51: ;
				(*tracked).Gcunsafe = NIM_TRUE;
			}
			LA47: ;
		}
		LA14: ;
	}
	LA7: ;
	notnilcheck_379009(tracked, n, paramtype);
}

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

static N_INLINE(void, makevolatile_375640)(teffects375008* a, tsym224846* s) {
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC5;
		tsym224846* LOC7;
		LOC3 = 0;
		LOC3 = (0 < (*a).Intrystmt);
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = (gcmd_168120 == ((NU8) 2));
		if (LOC5) goto LA6;
		LOC7 = 0;
		LOC7 = getmodule_234243((*a).Owner);
		LOC5 = (((*LOC7).Flags &(1<<((((NU8) 27))&31)))!=0);
		LA6: ;
		LOC3 = !(LOC5);
		LA4: ;
		if (!LOC3) goto LA8;
		(*s).Flags |= ((NI32)1)<<((((NU8) 7))%(sizeof(NI32)*8));
	}
	LA8: ;
}

N_NIMCALL(void, initvar_375695)(teffects375008* a, tnode224816* n, NIM_BOOL volatilecheck) {
	tsym224846* s;
	{
		if (!!(((*n).Kind == ((NU8) 3)))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	s = (*n).kindU.S4.Sym;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = islocalvar_375069(a, s);
		if (!LOC7) goto LA8;
		{
			if (!volatilecheck) goto LA12;
			makevolatile_375640(a, s);
		}
		LA12: ;
		{
			NI x_375811;
			TY342680* HEX3Atmp_375831;
			NI i_375834;
			NI l_375836;
			x_375811 = 0;
			HEX3Atmp_375831 = 0;
			HEX3Atmp_375831 = (*a).Init;
			i_375834 = 0;
			l_375836 = HEX3Atmp_375831->Sup.len;
			{
				while (1) {
					if (!(i_375834 < l_375836)) goto LA16;
					x_375811 = HEX3Atmp_375831->data[i_375834];
					{
						if (!(x_375811 == (*s).Sup.Id)) goto LA19;
						goto BeforeRet;
					}
					LA19: ;
					i_375834 += 1;
				} LA16: ;
			}
		}
		(*a).Init = (TY342680*) incrSeq(&((*a).Init)->Sup, sizeof(NI));
		(*a).Init->data[(*a).Init->Sup.len-1] = (*s).Sup.Id;
	}
	LA8: ;
	BeforeRet: ;
}

N_NIMCALL(void, initvarvianew_375852)(teffects375008* a, tnode224816* n) {
	tsym224846* 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_375695(a, n, NIM_TRUE);
	}
	goto LA5;
	LA7: ;
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = islocalvar_375069(a, s);
		if (!LOC10) goto LA11;
		makevolatile_375640(a, s);
	}
	goto LA5;
	LA11: ;
	LA5: ;
	BeforeRet: ;
}

N_NIMCALL(void, guarddotaccess_375343)(teffects375008* a, tnode224816* n) {
	tnode224816* ri;
	tsym224846* g;
	ri = (*n).kindU.S6.Sons->data[1];
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = !(((*ri).Kind == ((NU8) 3)));
		if (LOC3) goto LA4;
		LOC3 = !(((*(*ri).kindU.S4.Sym).Kind == ((NU8) 19)));
		LA4: ;
		if (!LOC3) goto LA5;
		goto BeforeRet;
	}
	LA5: ;
	g = (*(*ri).kindU.S4.Sym).kindU.S4.Guard;
	{
		NIM_BOOL LOC9;
		LOC9 = 0;
		LOC9 = g == 0;
		if (LOC9) goto LA10;
		LOC9 = (*a).Istoplevel;
		LA10: ;
		if (!LOC9) goto LA11;
		goto BeforeRet;
	}
	LA11: ;
	{
		tsym224846* field;
		ttype224852* ty;
		if (!((*g).Kind == ((NU8) 0))) goto LA15;
		field = NIM_NIL;
		ty = skiptypes_229245((*(*n).kindU.S6.Sons->data[0]).Typ, IL64(211106247256320));
		{
			if (!((*ty).Kind == ((NU8) 18))) goto LA19;
			field = lookupinrecord_234236((*ty).N, (*g).Name);
		}
		goto LA17;
		LA19: ;
		{
			{
				while (1) {
					NIM_BOOL LOC24;
					LOC24 = 0;
					LOC24 = !((ty == NIM_NIL));
					if (!(LOC24)) goto LA25;
					LOC24 = ((*ty).Kind == ((NU8) 17));
					LA25: ;
					if (!LOC24) goto LA23;
					field = lookupinrecord_234236((*ty).N, (*g).Name);
					{
						if (!!((field == NIM_NIL))) goto LA28;
						goto LA22;
					}
					LA28: ;
					ty = (*ty).Sons->data[0];
					{
						if (!(ty == NIM_NIL)) goto LA32;
						goto LA22;
					}
					LA32: ;
					ty = skiptypes_229245(ty, IL64(211106247256320));
				} LA23: ;
			} LA22: ;
		}
		LA17: ;
		{
			NimStringDesc* LOC38;
			if (!(field == NIM_NIL)) goto LA36;
			LOC38 = 0;
			LOC38 = rawNewString((*(*g).Name).S->Sup.len + 21);
appendString(LOC38, ((NimStringDesc*) &TMP3218));
appendString(LOC38, (*(*g).Name).S);
			localerror_196955((*n).Info, ((NU16) 4), LOC38);
			goto BeforeRet;
		}
		LA36: ;
		g = field;
	}
	LA15: ;
	{
		tnode224816* dot;
		NimStringDesc* LOC51;
		NimStringDesc* LOC52;
		if (!((*g).Kind == ((NU8) 19))) goto LA41;
		dot = newnodei_227007(((NU8) 45), (*n).Info, 2);
		asgnRefNoCycle((void**) (&(*dot).kindU.S6.Sons->data[0]), (*n).kindU.S6.Sons->data[0]);
		asgnRefNoCycle((void**) (&(*dot).kindU.S6.Sons->data[1]), newsymnode_225132(g));
		asgnRefNoCycle((void**) (&(*dot).Typ), (*g).Typ);
		{
			tnode224816* l_375609;
			tnodeseq224810* HEX3Atmp_375613;
			NI i_375616;
			NI l_375618;
			l_375609 = 0;
			HEX3Atmp_375613 = 0;
			HEX3Atmp_375613 = (*a).Locked;
			i_375616 = 0;
			l_375618 = HEX3Atmp_375613->Sup.len;
			{
				while (1) {
					if (!(i_375616 < l_375618)) goto LA45;
					l_375609 = HEX3Atmp_375613->data[i_375616];
					{
						NIM_BOOL LOC48;
						LOC48 = 0;
						LOC48 = sametree_369425(dot, l_375609);
						if (!LOC48) goto LA49;
						goto BeforeRet;
					}
					LA49: ;
					i_375616 += 1;
				} LA45: ;
			}
		}
		LOC51 = 0;
		LOC52 = 0;
		LOC52 = rendertree_249058(n, 0);
		LOC51 = rawNewString(LOC52->Sup.len + 18);
appendString(LOC51, ((NimStringDesc*) &TMP3197));
appendString(LOC51, LOC52);
		localerror_196955((*n).Info, ((NU16) 4), LOC51);
	}
	goto LA39;
	LA41: ;
	{
		guardglobal_375264(a, n, g);
	}
	LA39: ;
	BeforeRet: ;
}

N_NIMCALL(void, addtointersection_376217)(TY267080** inter, NI s) {
	TY267081 LOC8;
	{
		NI j_376254;
		NI HEX3Atmp_376289;
		NI res_376292;
		j_376254 = 0;
		HEX3Atmp_376289 = 0;
		HEX3Atmp_376289 = ((*inter)->Sup.len - 1);
		res_376292 = 0;
		{
			while (1) {
				if (!(res_376292 <= HEX3Atmp_376289)) goto LA3;
				j_376254 = res_376292;
				{
					if (!(s == (*inter)->data[j_376254].Field0)) goto LA6;
					(*inter)->data[j_376254].Field1 += 1;
					goto BeforeRet;
				}
				LA6: ;
				res_376292 += 1;
			} LA3: ;
		}
	}
	LOC8.Field0 = s;
	LOC8.Field1 = 1;
	(*inter) = (TY267080*) incrSeq(&((*inter))->Sup, sizeof(TY267081));
	(*inter)->data[(*inter)->Sup.len-1] = LOC8;
	BeforeRet: ;
}

N_NIMCALL(void, catchesall_377214)(teffects375008* tracked) {
	{
		if (!!((*(*tracked).Exc).kindU.S6.Sons == 0)) goto LA3;
		(*(*tracked).Exc).kindU.S6.Sons = (tnodeseq224810*) setLengthSeq(&((*(*tracked).Exc).kindU.S6.Sons)->Sup, sizeof(tnode224816*), (*tracked).Bottom);
	}
	LA3: ;
}

N_NIMCALL(void, catches_376890)(teffects375008* tracked, ttype224852* e_376893) {
	ttype224852* e;
	NI l;
	NI i;
	e = skiptypes_229245(e_376893, IL64(211106247215360));
	l = len_225364((*tracked).Exc);
	i = (*tracked).Bottom;
	{
		while (1) {
			if (!(i < l)) goto LA2;
			{
				tnode224816* LOC5;
				ttype224852* LOC6;
				NI LOC7;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_225698((*tracked).Exc, i);
				LOC6 = 0;
				LOC6 = exctype_376371(LOC5);
				LOC7 = 0;
				LOC7 = safeinheritancediff_272032(LOC6, e);
				if (!(LOC7 <= 0)) goto LA8;
				asgnRefNoCycle((void**) (&(*(*tracked).Exc).kindU.S6.Sons->data[i]), (*(*tracked).Exc).kindU.S6.Sons->data[(NI64)(l - 1)]);
				l -= 1;
			}
			goto LA3;
			LA8: ;
			{
				i += 1;
			}
			LA3: ;
		} LA2: ;
	}
	{
		if (!!((*(*tracked).Exc).kindU.S6.Sons == 0)) goto LA13;
		(*(*tracked).Exc).kindU.S6.Sons = (tnodeseq224810*) setLengthSeq(&((*(*tracked).Exc).kindU.S6.Sons)->Sup, sizeof(tnode224816*), l);
	}
	goto LA11;
	LA13: ;
	{
	}
	LA11: ;
}

N_NIMCALL(void, tracktrystmt_377285)(teffects375008* tracked, tnode224816* n) {
	NI oldbottom;
	NI oldstate;
	TY267080* inter;
	NI branches;
	NIM_BOOL hasfinally;
	oldbottom = (*tracked).Bottom;
	(*tracked).Bottom = len_225364((*tracked).Exc);
	oldstate = (*tracked).Init->Sup.len;
	inter = (TY267080*) newSeq((&NTI267080), 0);
	(*tracked).Intrystmt += 1;
	track_377278(tracked, (*n).kindU.S6.Sons->data[0]);
	(*tracked).Intrystmt -= 1;
	{
		NI i_377393;
		NI HEX3Atmp_378033;
		NI res_378036;
		i_377393 = 0;
		HEX3Atmp_378033 = 0;
		HEX3Atmp_378033 = ((*tracked).Init->Sup.len - 1);
		res_378036 = oldstate;
		{
			while (1) {
				if (!(res_378036 <= HEX3Atmp_378033)) goto LA3;
				i_377393 = res_378036;
				addtointersection_376217((&inter), (*tracked).Init->data[i_377393]);
				res_378036 += 1;
			} LA3: ;
		}
	}
	branches = 1;
	hasfinally = NIM_FALSE;
	{
		NI i_377418;
		NI HEX3Atmp_378051;
		NI LOC5;
		NI res_378054;
		i_377418 = 0;
		HEX3Atmp_378051 = 0;
		LOC5 = 0;
		LOC5 = len_225364(n);
		HEX3Atmp_378051 = (LOC5 - 1);
		res_378054 = 1;
		{
			while (1) {
				tnode224816* b;
				NI blen;
				if (!(res_378054 <= HEX3Atmp_378051)) goto LA7;
				i_377418 = res_378054;
				b = (*n).kindU.S6.Sons->data[i_377418];
				blen = sonslen_225249(b);
				{
					if (!((*b).Kind == ((NU8) 87))) goto LA10;
					branches += 1;
					{
						if (!(blen == 1)) goto LA14;
						catchesall_377214(tracked);
					}
					goto LA12;
					LA14: ;
					{
						{
							NI j_377468;
							NI HEX3Atmp_378040;
							NI res_378043;
							j_377468 = 0;
							HEX3Atmp_378040 = 0;
							HEX3Atmp_378040 = (NI64)(blen - 2);
							res_378043 = 0;
							{
								while (1) {
									if (!(res_378043 <= HEX3Atmp_378040)) goto LA19;
									j_377468 = res_378043;
									catches_376890(tracked, (*(*b).kindU.S6.Sons->data[j_377468]).Typ);
									res_378043 += 1;
								} LA19: ;
							}
						}
					}
					LA12: ;
					(*tracked).Init = (TY342680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
					track_377278(tracked, (*b).kindU.S6.Sons->data[(NI64)(blen - 1)]);
					{
						NI i_377677;
						NI HEX3Atmp_378046;
						NI res_378049;
						i_377677 = 0;
						HEX3Atmp_378046 = 0;
						HEX3Atmp_378046 = ((*tracked).Init->Sup.len - 1);
						res_378049 = oldstate;
						{
							while (1) {
								if (!(res_378049 <= HEX3Atmp_378046)) goto LA22;
								i_377677 = res_378049;
								addtointersection_376217((&inter), (*tracked).Init->data[i_377677]);
								res_378049 += 1;
							} LA22: ;
						}
					}
				}
				goto LA8;
				LA10: ;
				{
					(*tracked).Init = (TY342680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
					track_377278(tracked, (*b).kindU.S6.Sons->data[(NI64)(blen - 1)]);
					hasfinally = NIM_TRUE;
				}
				LA8: ;
				res_378054 += 1;
			} LA7: ;
		}
	}
	(*tracked).Bottom = oldbottom;
	{
		if (!!(hasfinally)) goto LA26;
		(*tracked).Init = (TY342680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	}
	LA26: ;
	{
		NI id_378011;
		NI count_378012;
		NI i_378059;
		NI l_378061;
		id_378011 = 0;
		count_378012 = 0;
		i_378059 = 0;
		l_378061 = inter->Sup.len;
		{
			while (1) {
				if (!(i_378059 < l_378061)) goto LA30;
				id_378011 = inter->data[i_378059].Field0;
				count_378012 = inter->data[i_378059].Field1;
				{
					if (!(count_378012 == branches)) goto LA33;
					(*tracked).Init = (TY342680*) incrSeq(&((*tracked).Init)->Sup, sizeof(NI));
					(*tracked).Init->data[(*tracked).Init->Sup.len-1] = id_378011;
				}
				LA33: ;
				i_378059 += 1;
			} LA30: ;
		}
	}
}

N_NIMCALL(void, listeffects_376835)(teffects375008* a) {
	{
		tnode224816* e_376838;
		tnode224816* HEX3Atmp_376841;
		e_376838 = 0;
		HEX3Atmp_376841 = 0;
		HEX3Atmp_376841 = (*a).Exc;
		{
			NI i_376845;
			NI HEX3Atmp_376847;
			NI LOC3;
			NI res_376849;
			i_376845 = 0;
			HEX3Atmp_376847 = 0;
			LOC3 = 0;
			LOC3 = len_225364(HEX3Atmp_376841);
			HEX3Atmp_376847 = (LOC3 - 1);
			res_376849 = 0;
			{
				while (1) {
					NimStringDesc* LOC6;
					if (!(res_376849 <= HEX3Atmp_376847)) goto LA5;
					i_376845 = res_376849;
					e_376838 = (*HEX3Atmp_376841).kindU.S6.Sons->data[i_376845];
					LOC6 = 0;
					LOC6 = typetostring_262031((*e_376838).Typ, ((NU8) 0));
					message_196976((*e_376838).Info, ((NU16) 275), LOC6);
					res_376849 += 1;
				} LA5: ;
			}
		}
	}
	{
		tnode224816* e_376839;
		tnode224816* HEX3Atmp_376851;
		e_376839 = 0;
		HEX3Atmp_376851 = 0;
		HEX3Atmp_376851 = (*a).Tags;
		{
			NI i_376855;
			NI HEX3Atmp_376857;
			NI LOC9;
			NI res_376859;
			i_376855 = 0;
			HEX3Atmp_376857 = 0;
			LOC9 = 0;
			LOC9 = len_225364(HEX3Atmp_376851);
			HEX3Atmp_376857 = (LOC9 - 1);
			res_376859 = 0;
			{
				while (1) {
					NimStringDesc* LOC12;
					if (!(res_376859 <= HEX3Atmp_376857)) goto LA11;
					i_376855 = res_376859;
					e_376839 = (*HEX3Atmp_376851).kindU.S6.Sons->data[i_376855];
					LOC12 = 0;
					LOC12 = typetostring_262031((*e_376839).Typ, ((NU8) 0));
					message_196976((*e_376839).Info, ((NU16) 275), LOC12);
					res_376859 += 1;
				} LA11: ;
			}
		}
	}
}

N_NIMCALL(void, trackpragmastmt_378276)(teffects375008* tracked, tnode224816* n) {
	{
		NI i_378292;
		NI HEX3Atmp_378318;
		NI LOC2;
		NI res_378321;
		i_378292 = 0;
		HEX3Atmp_378318 = 0;
		LOC2 = 0;
		LOC2 = sonslen_225249(n);
		HEX3Atmp_378318 = (NI64)(LOC2 - 1);
		res_378321 = 0;
		{
			while (1) {
				tnode224816* it;
				if (!(res_378321 <= HEX3Atmp_378318)) goto LA4;
				i_378292 = res_378321;
				it = (*n).kindU.S6.Sons->data[i_378292];
				{
					NU8 LOC7;
					LOC7 = 0;
					LOC7 = whichpragma_261304(it);
					if (!(LOC7 == ((NU8) 156))) goto LA8;
					listeffects_376835(tracked);
				}
				LA8: ;
				res_378321 += 1;
			} LA4: ;
		}
	}
}

static N_INLINE(tnode224816*, lastson_225261)(tnode224816* n) {
	tnode224816* result;
	NI LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = sonslen_225249(n);
	result = (*n).kindU.S6.Sons->data[(NI64)(LOC1 - 1)];
	return result;
}

N_NIMCALL(NIM_BOOL, breaksblock_379521)(tnode224816* n) {
	NIM_BOOL result;
	result = 0;
	switch ((*n).Kind) {
	case ((NU8) 115):
	case ((NU8) 126):
	{
		{
			tnode224816* c_379525;
			c_379525 = 0;
			{
				NI i_379594;
				NI HEX3Atmp_379596;
				NI LOC4;
				NI res_379598;
				i_379594 = 0;
				HEX3Atmp_379596 = 0;
				LOC4 = 0;
				LOC4 = len_225364(n);
				HEX3Atmp_379596 = (LOC4 - 1);
				res_379598 = 0;
				{
					while (1) {
						if (!(res_379598 <= HEX3Atmp_379596)) goto LA6;
						i_379594 = res_379598;
						c_379525 = (*n).kindU.S6.Sons->data[i_379594];
						{
							NIM_BOOL LOC9;
							LOC9 = 0;
							LOC9 = breaksblock_379521(c_379525);
							if (!LOC9) goto LA10;
							result = NIM_TRUE;
							goto BeforeRet;
						}
						LA10: ;
						res_379598 += 1;
					} LA6: ;
				}
			}
		}
	}
	break;
	case ((NU8) 110):
	case ((NU8) 109):
	case ((NU8) 108):
	{
		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 LOC16;
			LOC16 = 0;
			LOC16 = ((*(*n).kindU.S6.Sons->data[0]).Kind == ((NU8) 3));
			if (!(LOC16)) goto LA17;
			LOC16 = (((*(*(*n).kindU.S6.Sons->data[0]).kindU.S4.Sym).Flags &(1<<((((NU8) 14))&31)))!=0);
			LA17: ;
			if (!LOC16) goto LA18;
			result = NIM_TRUE;
			goto BeforeRet;
		}
		LA18: ;
	}
	break;
	default:
	{
	}
	break;
	}
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, trackcase_379617)(teffects375008* tracked, tnode224816* n) {
	NI oldstate;
	NI oldfacts;
	NIM_BOOL interesting;
	NIM_BOOL LOC1;
	TY267080* inter;
	NI tocover;
	NIM_BOOL exh;
	ttype224852* LOC24;
	track_377278(tracked, (*n).kindU.S6.Sons->data[0]);
	oldstate = (*tracked).Init->Sup.len;
	oldfacts = (*tracked).Guards->Sup.len;
	LOC1 = 0;
	LOC1 = interestingcaseexpr_367395((*n).kindU.S6.Sons->data[0]);
	if (!(LOC1)) goto LA2;
	LOC1 = ((gnotes_195302 &(IL64(1)<<(((((NU16) 251)- 230))&IL64(63))))!=0);
	LA2: ;
	interesting = LOC1;
	inter = (TY267080*) newSeq((&NTI267080), 0);
	tocover = 0;
	{
		NI i_379730;
		NI HEX3Atmp_379981;
		NI LOC4;
		NI res_379984;
		i_379730 = 0;
		HEX3Atmp_379981 = 0;
		LOC4 = 0;
		LOC4 = len_225364(n);
		HEX3Atmp_379981 = (LOC4 - 1);
		res_379984 = 1;
		{
			while (1) {
				tnode224816* branch;
				if (!(res_379984 <= HEX3Atmp_379981)) goto LA6;
				i_379730 = res_379984;
				branch = (*n).kindU.S6.Sons->data[i_379730];
				(*tracked).Init = (TY342680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
				{
					if (!interesting) goto LA9;
					(*tracked).Guards = (tnodeseq224810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode224816*), oldfacts);
					addcasebranchfacts_373755((&(*tracked).Guards), n, i_379730);
				}
				LA9: ;
				{
					NI i_379800;
					NI HEX3Atmp_379970;
					NI LOC12;
					NI res_379973;
					i_379800 = 0;
					HEX3Atmp_379970 = 0;
					LOC12 = 0;
					LOC12 = len_225364(branch);
					HEX3Atmp_379970 = (LOC12 - 1);
					res_379973 = 0;
					{
						while (1) {
							if (!(res_379973 <= HEX3Atmp_379970)) goto LA14;
							i_379800 = res_379973;
							track_377278(tracked, (*branch).kindU.S6.Sons->data[i_379800]);
							res_379973 += 1;
						} LA14: ;
					}
				}
				{
					tnode224816* LOC17;
					NIM_BOOL LOC18;
					LOC17 = 0;
					LOC17 = lastson_225261(branch);
					LOC18 = 0;
					LOC18 = breaksblock_379521(LOC17);
					if (!!(LOC18)) goto LA19;
					tocover += 1;
				}
				LA19: ;
				{
					NI i_379859;
					NI HEX3Atmp_379976;
					NI res_379979;
					i_379859 = 0;
					HEX3Atmp_379976 = 0;
					HEX3Atmp_379976 = ((*tracked).Init->Sup.len - 1);
					res_379979 = oldstate;
					{
						while (1) {
							if (!(res_379979 <= HEX3Atmp_379976)) goto LA23;
							i_379859 = res_379979;
							addtointersection_376217((&inter), (*tracked).Init->data[i_379859]);
							res_379979 += 1;
						} LA23: ;
					}
				}
				res_379984 += 1;
			} LA6: ;
		}
	}
	LOC24 = 0;
	LOC24 = skiptypes_229245((*(*n).kindU.S6.Sons->data[0]).Typ, IL64(211106242013184));
	switch ((*LOC24).Kind) {
	case ((NU8) 36) ... ((NU8) 39):
	case ((NU8) 28):
	{
		tnode224816* LOC26;
		LOC26 = 0;
		LOC26 = lastson_225261(n);
		exh = ((*LOC26).Kind == ((NU8) 88));
	}
	break;
	default:
	{
		exh = NIM_TRUE;
	}
	break;
	}
	(*tracked).Init = (TY342680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	{
		if (!exh) goto LA30;
		{
			NI id_379931;
			NI count_379932;
			NI i_379989;
			NI l_379991;
			id_379931 = 0;
			count_379932 = 0;
			i_379989 = 0;
			l_379991 = inter->Sup.len;
			{
				while (1) {
					if (!(i_379989 < l_379991)) goto LA34;
					id_379931 = inter->data[i_379989].Field0;
					count_379932 = inter->data[i_379989].Field1;
					{
						if (!(tocover <= count_379932)) goto LA37;
						(*tracked).Init = (TY342680*) incrSeq(&((*tracked).Init)->Sup, sizeof(NI));
						(*tracked).Init->data[(*tracked).Init->Sup.len-1] = id_379931;
					}
					LA37: ;
					i_379989 += 1;
				} LA34: ;
			}
		}
	}
	LA30: ;
	(*tracked).Guards = (tnodeseq224810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode224816*), oldfacts);
}

N_NIMCALL(void, trackif_380034)(teffects375008* tracked, tnode224816* n) {
	NI oldfacts;
	NI oldstate;
	TY267080* inter;
	NI tocover;
	track_377278(tracked, (*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[0]);
	oldfacts = (*tracked).Guards->Sup.len;
	addfact_369349((&(*tracked).Guards), (*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[0]);
	oldstate = (*tracked).Init->Sup.len;
	inter = (TY267080*) newSeq((&NTI267080), 0);
	tocover = 0;
	track_377278(tracked, (*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[1]);
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = breaksblock_379521((*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[1]);
		if (!!(LOC3)) goto LA4;
		tocover += 1;
	}
	LA4: ;
	{
		NI i_380241;
		NI HEX3Atmp_380516;
		NI res_380519;
		i_380241 = 0;
		HEX3Atmp_380516 = 0;
		HEX3Atmp_380516 = ((*tracked).Init->Sup.len - 1);
		res_380519 = oldstate;
		{
			while (1) {
				if (!(res_380519 <= HEX3Atmp_380516)) goto LA8;
				i_380241 = res_380519;
				addtointersection_376217((&inter), (*tracked).Init->data[i_380241]);
				res_380519 += 1;
			} LA8: ;
		}
	}
	{
		NI i_380264;
		NI HEX3Atmp_380540;
		NI LOC10;
		NI res_380543;
		i_380264 = 0;
		HEX3Atmp_380540 = 0;
		LOC10 = 0;
		LOC10 = len_225364(n);
		HEX3Atmp_380540 = (LOC10 - 1);
		res_380543 = 1;
		{
			while (1) {
				tnode224816* branch;
				if (!(res_380543 <= HEX3Atmp_380540)) goto LA12;
				i_380264 = res_380543;
				branch = (*n).kindU.S6.Sons->data[i_380264];
				(*tracked).Guards = (tnodeseq224810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode224816*), oldfacts);
				{
					NI j_380306;
					NI HEX3Atmp_380523;
					NI res_380526;
					j_380306 = 0;
					HEX3Atmp_380523 = 0;
					HEX3Atmp_380523 = (NI64)(i_380264 - 1);
					res_380526 = 0;
					{
						while (1) {
							if (!(res_380526 <= HEX3Atmp_380523)) goto LA15;
							j_380306 = res_380526;
							addfactneg_369396((&(*tracked).Guards), (*(*n).kindU.S6.Sons->data[j_380306]).kindU.S6.Sons->data[0]);
							res_380526 += 1;
						} LA15: ;
					}
				}
				{
					NI LOC18;
					LOC18 = 0;
					LOC18 = len_225364(branch);
					if (!(1 < LOC18)) goto LA19;
					addfact_369349((&(*tracked).Guards), (*branch).kindU.S6.Sons->data[0]);
				}
				LA19: ;
				(*tracked).Init = (TY342680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
				{
					NI i_380389;
					NI HEX3Atmp_380529;
					NI LOC22;
					NI res_380532;
					i_380389 = 0;
					HEX3Atmp_380529 = 0;
					LOC22 = 0;
					LOC22 = len_225364(branch);
					HEX3Atmp_380529 = (LOC22 - 1);
					res_380532 = 0;
					{
						while (1) {
							if (!(res_380532 <= HEX3Atmp_380529)) goto LA24;
							i_380389 = res_380532;
							track_377278(tracked, (*branch).kindU.S6.Sons->data[i_380389]);
							res_380532 += 1;
						} LA24: ;
					}
				}
				{
					tnode224816* LOC27;
					NIM_BOOL LOC28;
					LOC27 = 0;
					LOC27 = lastson_225261(branch);
					LOC28 = 0;
					LOC28 = breaksblock_379521(LOC27);
					if (!!(LOC28)) goto LA29;
					tocover += 1;
				}
				LA29: ;
				{
					NI i_380448;
					NI HEX3Atmp_380535;
					NI res_380538;
					i_380448 = 0;
					HEX3Atmp_380535 = 0;
					HEX3Atmp_380535 = ((*tracked).Init->Sup.len - 1);
					res_380538 = oldstate;
					{
						while (1) {
							if (!(res_380538 <= HEX3Atmp_380535)) goto LA33;
							i_380448 = res_380538;
							addtointersection_376217((&inter), (*tracked).Init->data[i_380448]);
							res_380538 += 1;
						} LA33: ;
					}
				}
				res_380543 += 1;
			} LA12: ;
		}
	}
	(*tracked).Init = (TY342680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	{
		tnode224816* LOC36;
		NI LOC37;
		LOC36 = 0;
		LOC36 = lastson_225261(n);
		LOC37 = 0;
		LOC37 = len_225364(LOC36);
		if (!(LOC37 == 1)) goto LA38;
		{
			NI id_380478;
			NI count_380479;
			NI i_380548;
			NI l_380550;
			id_380478 = 0;
			count_380479 = 0;
			i_380548 = 0;
			l_380550 = inter->Sup.len;
			{
				while (1) {
					if (!(i_380548 < l_380550)) goto LA42;
					id_380478 = inter->data[i_380548].Field0;
					count_380479 = inter->data[i_380548].Field1;
					{
						if (!(tocover <= count_380479)) goto LA45;
						(*tracked).Init = (TY342680*) incrSeq(&((*tracked).Init)->Sup, sizeof(NI));
						(*tracked).Init->data[(*tracked).Init->Sup.len-1] = id_380478;
					}
					LA45: ;
					i_380548 += 1;
				} LA42: ;
			}
		}
	}
	LA38: ;
	(*tracked).Guards = (tnodeseq224810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode224816*), oldfacts);
}

N_NIMCALL(void, trackblock_380611)(teffects375008* tracked, tnode224816* n) {
	{
		NI oldstate;
		if (!((*n).Kind == ((NU8) 115) || (*n).Kind == ((NU8) 126))) goto LA3;
		oldstate = -1;
		{
			NI i_380651;
			NI HEX3Atmp_380710;
			NI LOC6;
			NI res_380713;
			i_380651 = 0;
			HEX3Atmp_380710 = 0;
			LOC6 = 0;
			LOC6 = len_225364(n);
			HEX3Atmp_380710 = (LOC6 - 1);
			res_380713 = 0;
			{
				while (1) {
					if (!(res_380713 <= HEX3Atmp_380710)) goto LA8;
					i_380651 = res_380713;
					{
						NIM_BOOL LOC11;
						LOC11 = 0;
						LOC11 = hassubnodewith_225308((*n).kindU.S6.Sons->data[i_380651], ((NU8) 110));
						if (!LOC11) goto LA12;
						{
							if (!(oldstate < 0)) goto LA16;
							oldstate = (*tracked).Init->Sup.len;
						}
						LA16: ;
					}
					LA12: ;
					track_377278(tracked, (*n).kindU.S6.Sons->data[i_380651]);
					res_380713 += 1;
				} LA8: ;
			}
		}
		{
			if (!(0 < oldstate)) goto LA20;
			(*tracked).Init = (TY342680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
		}
		LA20: ;
	}
	goto LA1;
	LA3: ;
	{
		track_377278(tracked, n);
	}
	LA1: ;
}

N_NIMCALL(NIM_BOOL, istrue_380730)(tnode224816* 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 == IL64(0)));
	LA8: ;
	LOC1 = LOC7;
	LA6: ;
	result = LOC1;
	return result;
}

N_NIMCALL(NI16, getlocklevel_375123)(ttype224852* t_375125) {
	NI16 result;
	ttype224852* t;
	result = 0;
	t = t_375125;
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = ((*t).Kind == ((NU8) 11));
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = len_229005(t);
		LOC3 = (LOC5 == 3);
		LA4: ;
		if (!LOC3) goto LA6;
		t = (*t).Sons->data[1];
	}
	LA6: ;
	{
		NIM_BOOL LOC10;
		NIM_BOOL LOC11;
		LOC10 = 0;
		LOC11 = 0;
		LOC11 = ((*t).Kind == ((NU8) 59));
		if (!(LOC11)) goto LA12;
		LOC11 = !(((*t).N == NIM_NIL));
		LA12: ;
		LOC10 = LOC11;
		if (!(LOC10)) goto LA13;
		LOC10 = ((*(*t).N).Kind >= ((NU8) 5) && (*(*t).N).Kind <= ((NU8) 10));
		LA13: ;
		if (!LOC10) goto LA14;
		result = ((NI16) ((*(*t).N).kindU.S1.Intval));
	}
	LA14: ;
	return result;
}

N_NIMCALL(void, locklocations_375197)(teffects375008* a, tnode224816* pragma) {
	NI16 firstll;
	{
		if (!!(((*pragma).Kind == ((NU8) 34)))) goto LA3;
		localerror_196955((*pragma).Info, ((NU16) 4), ((NimStringDesc*) &TMP3219));
		goto BeforeRet;
	}
	LA3: ;
	firstll = ((NI16) -1);
	{
		tnode224816* x_375211;
		tnode224816* HEX3Atmp_375237;
		x_375211 = 0;
		HEX3Atmp_375237 = 0;
		HEX3Atmp_375237 = HEX5BHEX5D_225698(pragma, 1);
		{
			NI i_375241;
			NI HEX3Atmp_375243;
			NI LOC7;
			NI res_375245;
			i_375241 = 0;
			HEX3Atmp_375243 = 0;
			LOC7 = 0;
			LOC7 = len_225364(HEX3Atmp_375237);
			HEX3Atmp_375243 = (LOC7 - 1);
			res_375245 = 0;
			{
				while (1) {
					NI16 thisll;
					if (!(res_375245 <= HEX3Atmp_375243)) goto LA9;
					i_375241 = res_375245;
					x_375211 = (*HEX3Atmp_375237).kindU.S6.Sons->data[i_375241];
					thisll = getlocklevel_375123((*x_375211).Typ);
					{
						if (!!((thisll == ((NI16) 0)))) goto LA12;
						{
							NIM_BOOL LOC16;
							NimStringDesc* LOC20;
							NimStringDesc* LOC21;
							LOC16 = 0;
							LOC16 = (thisll < ((NI16) 0));
							if (LOC16) goto LA17;
							LOC16 = (((NI16) 1000) < thisll);
							LA17: ;
							if (!LOC16) goto LA18;
							LOC20 = 0;
							LOC21 = 0;
							LOC21 = HEX24_227488(thisll);
							LOC20 = rawNewString(LOC21->Sup.len + 20);
appendString(LOC20, ((NimStringDesc*) &TMP3220));
appendString(LOC20, LOC21);
							localerror_196966((*x_375211).Info, LOC20);
						}
						goto LA14;
						LA18: ;
						{
							if (!(firstll < ((NI16) 0))) goto LA23;
							firstll = thisll;
						}
						goto LA14;
						LA23: ;
						{
							if (!!((firstll == thisll))) goto LA26;
							localerror_196955((*x_375211).Info, ((NU16) 4), ((NimStringDesc*) &TMP3221));
						}
						goto LA14;
						LA26: ;
						LA14: ;
						(*a).Maxlocklevel = (((*a).Maxlocklevel >= firstll) ? (*a).Maxlocklevel : firstll);
					}
					LA12: ;
					(*a).Locked = (tnodeseq224810*) incrSeq(&((*a).Locked)->Sup, sizeof(tnode224816*));
					asgnRefNoCycle((void**) (&(*a).Locked->data[(*a).Locked->Sup.len-1]), x_375211);
					res_375245 += 1;
				} LA9: ;
			}
		}
	}
	{
		NIM_BOOL LOC30;
		LOC30 = 0;
		LOC30 = (((NI16) 0) <= firstll);
		if (!(LOC30)) goto LA31;
		LOC30 = !((firstll == (*a).Currlocklevel));
		LA31: ;
		if (!LOC30) goto LA32;
		{
			NIM_BOOL LOC36;
			LOC36 = 0;
			LOC36 = (((NI16) 0) < (*a).Currlocklevel);
			if (!(LOC36)) goto LA37;
			LOC36 = ((*a).Currlocklevel <= firstll);
			LA37: ;
			if (!LOC36) goto LA38;
			localerror_196955((*pragma).Info, ((NU16) 4), ((NimStringDesc*) &TMP3222));
		}
		LA38: ;
		(*a).Currlocklevel = firstll;
	}
	LA32: ;
	BeforeRet: ;
}

N_NIMCALL(void, track_377278)(teffects375008* tracked, tnode224816* n) {
	switch ((*n).Kind) {
	case ((NU8) 3):
	{
		usevar_375930(tracked, n);
	}
	break;
	case ((NU8) 108):
	{
		(*(*n).kindU.S6.Sons->data[0]).Info = (*n).Info;
		addeffect_376460(tracked, (*n).kindU.S6.Sons->data[0], NIM_FALSE);
		{
			NI i_380948;
			NI HEX3Atmp_382141;
			NI LOC4;
			NI res_382144;
			i_380948 = 0;
			HEX3Atmp_382141 = 0;
			LOC4 = 0;
			LOC4 = safelen_225424(n);
			HEX3Atmp_382141 = (LOC4 - 1);
			res_382144 = 0;
			{
				while (1) {
					if (!(res_382144 <= HEX3Atmp_382141)) goto LA6;
					i_380948 = res_382144;
					track_377278(tracked, (*n).kindU.S6.Sons->data[i_380948]);
					res_382144 += 1;
				} LA6: ;
			}
		}
	}
	break;
	case ((NU8) 27):
	case ((NU8) 29):
	case ((NU8) 30):
	case ((NU8) 31):
	case ((NU8) 26):
	case ((NU8) 28):
	case ((NU8) 32):
	{
		tnode224816* a;
		ttype224852* op;
		a = (*n).kindU.S6.Sons->data[0];
		op = (*a).Typ;
		{
			NIM_BOOL LOC10;
			NIM_BOOL LOC11;
			tnode224816* effectlist;
			LOC10 = 0;
			LOC11 = 0;
			LOC11 = !((op == NIM_NIL));
			if (!(LOC11)) goto LA12;
			LOC11 = ((*op).Kind == ((NU8) 25));
			LA12: ;
			LOC10 = LOC11;
			if (!(LOC10)) goto LA13;
			LOC10 = ((*(*(*op).N).kindU.S6.Sons->data[0]).Kind == ((NU8) 151));
			LA13: ;
			if (!LOC10) goto LA14;
			{
				NI16 LOC24;
				if (!((*a).Kind == ((NU8) 3))) goto LA18;
				{
					if (!((*a).kindU.S4.Sym == (*tracked).Owner)) goto LA22;
					(*tracked).Isrecursive = NIM_TRUE;
				}
				LA22: ;
				LOC24 = 0;
				LOC24 = getlocklevel_378844((*a).kindU.S4.Sym);
				mergelocklevels_378904(tracked, n, LOC24);
			}
			goto LA16;
			LA18: ;
			{
				mergelocklevels_378904(tracked, n, (*op).Locklevel);
			}
			LA16: ;
			effectlist = (*(*op).N).kindU.S6.Sons->data[0];
			{
				NIM_BOOL LOC28;
				LOC28 = 0;
				LOC28 = ((*a).Kind == ((NU8) 3));
				if (!(LOC28)) goto LA29;
				LOC28 = ((*(*a).kindU.S4.Sym).Kind == ((NU8) 13));
				LA29: ;
				if (!LOC28) goto LA30;
				propagateeffects_378918(tracked, n, (*a).kindU.S4.Sym);
			}
			goto LA26;
			LA30: ;
			{
				NI LOC33;
				LOC33 = 0;
				LOC33 = len_225364(effectlist);
				if (!(LOC33 == 0)) goto LA34;
				{
					NIM_BOOL LOC38;
					LOC38 = 0;
					LOC38 = isforwardedproc_378230(a);
					if (!LOC38) goto LA39;
					propagateeffects_378918(tracked, n, (*a).kindU.S4.Sym);
				}
				goto LA36;
				LA39: ;
				{
					NIM_BOOL LOC42;
					LOC42 = 0;
					LOC42 = isindirectcall_378113(a, (*tracked).Owner);
					if (!LOC42) goto LA43;
					assumetheworst_379127(tracked, n, op);
				}
				goto LA36;
				LA43: ;
				LA36: ;
			}
			goto LA26;
			LA34: ;
			{
				mergeeffects_376713(tracked, (*effectlist).kindU.S6.Sons->data[0], n);
				mergetags_376774(tracked, (*effectlist).kindU.S6.Sons->data[3], n);
				{
					NIM_BOOL LOC48;
					NIM_BOOL LOC50;
					LOC48 = 0;
					LOC48 = ((130 & (*op).Flags) == 0);
					if (!(LOC48)) goto LA49;
					LOC50 = 0;
					LOC50 = importedfromc_378798(a);
					LOC48 = !(LOC50);
					LA49: ;
					if (!LOC48) goto LA51;
					{
						NIM_BOOL LOC55;
						LOC55 = 0;
						LOC55 = ((*a).Kind == ((NU8) 3));
						if (!(LOC55)) goto LA56;
						LOC55 = ((*a).kindU.S4.Sym == (*tracked).Owner);
						LA56: ;
						if (!!(LOC55)) goto LA57;
						warnaboutgcunsafe_375921(n);
						(*tracked).Gcunsafe = NIM_TRUE;
					}
					LA57: ;
				}
				LA51: ;
			}
			LA26: ;
		}
		LA14: ;
		{
			NI i_381281;
			NI HEX3Atmp_382147;
			NI LOC60;
			NI res_382150;
			i_381281 = 0;
			HEX3Atmp_382147 = 0;
			LOC60 = 0;
			LOC60 = len_225364(n);
			HEX3Atmp_382147 = (LOC60 - 1);
			res_382150 = 1;
			{
				while (1) {
					ttype224852* LOC63;
					if (!(res_382150 <= HEX3Atmp_382147)) goto LA62;
					i_381281 = res_382150;
					LOC63 = 0;
					LOC63 = paramtype_380809(op, i_381281);
					trackoperand_379212(tracked, (*n).kindU.S6.Sons->data[i_381281], LOC63);
					res_382150 += 1;
				} LA62: ;
			}
		}
		{
			NIM_BOOL LOC66;
			LOC66 = 0;
			LOC66 = ((*a).Kind == ((NU8) 3));
			if (!(LOC66)) goto LA67;
			LOC66 = ((*(*a).kindU.S4.Sym).Magic == ((NU16) 24) || (*(*a).kindU.S4.Sym).Magic == ((NU16) 25) || (*(*a).kindU.S4.Sym).Magic == ((NU16) 26));
			LA67: ;
			if (!LOC66) goto LA68;
			initvarvianew_375852(tracked, (*n).kindU.S6.Sons->data[1]);
		}
		LA68: ;
		{
			NI i_381368;
			NI HEX3Atmp_382153;
			NI LOC71;
			NI res_382156;
			i_381368 = 0;
			HEX3Atmp_382153 = 0;
			LOC71 = 0;
			LOC71 = safelen_225424(n);
			HEX3Atmp_382153 = (LOC71 - 1);
			res_382156 = 0;
			{
				while (1) {
					if (!(res_382156 <= HEX3Atmp_382153)) goto LA73;
					i_381368 = res_382156;
					track_377278(tracked, (*n).kindU.S6.Sons->data[i_381368]);
					res_382156 += 1;
				} LA73: ;
			}
		}
	}
	break;
	case ((NU8) 45):
	{
		guarddotaccess_375343(tracked, n);
		{
			NI i_381404;
			NI HEX3Atmp_382159;
			NI LOC76;
			NI res_382162;
			i_381404 = 0;
			HEX3Atmp_382159 = 0;
			LOC76 = 0;
			LOC76 = len_225364(n);
			HEX3Atmp_382159 = (LOC76 - 1);
			res_382162 = 0;
			{
				while (1) {
					if (!(res_382162 <= HEX3Atmp_382159)) goto LA78;
					i_381404 = res_382162;
					track_377278(tracked, (*n).kindU.S6.Sons->data[i_381404]);
					res_382162 += 1;
				} LA78: ;
			}
		}
	}
	break;
	case ((NU8) 46):
	{
		track_377278(tracked, (*n).kindU.S6.Sons->data[0]);
		{
			if (!((gnotes_195302 &(IL64(1)<<(((((NU16) 251)- 230))&IL64(63))))!=0)) goto LA82;
			checkfieldaccess_374021((*tracked).Guards, n);
		}
		LA82: ;
	}
	break;
	case ((NU8) 106):
	{
		tracktrystmt_377285(tracked, n);
	}
	break;
	case ((NU8) 90):
	{
		trackpragmastmt_378276(tracked, n);
	}
	break;
	case ((NU8) 73):
	case ((NU8) 74):
	{
		track_377278(tracked, (*n).kindU.S6.Sons->data[1]);
		initvar_375695(tracked, (*n).kindU.S6.Sons->data[0], NIM_TRUE);
		invalidatefacts_369774((&(*tracked).Guards), (*n).kindU.S6.Sons->data[0]);
		track_377278(tracked, (*n).kindU.S6.Sons->data[0]);
		addasgnfact_373618((&(*tracked).Guards), (*n).kindU.S6.Sons->data[0], (*n).kindU.S6.Sons->data[1]);
		notnilcheck_379009(tracked, (*n).kindU.S6.Sons->data[1], (*(*n).kindU.S6.Sons->data[0]).Typ);
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		{
			tnode224816* child_381601;
			child_381601 = 0;
			{
				NI i_382174;
				NI HEX3Atmp_382176;
				NI LOC90;
				NI res_382178;
				i_382174 = 0;
				HEX3Atmp_382176 = 0;
				LOC90 = 0;
				LOC90 = len_225364(n);
				HEX3Atmp_382176 = (LOC90 - 1);
				res_382178 = 0;
				{
					while (1) {
						tnode224816* last;
						if (!(res_382178 <= HEX3Atmp_382176)) goto LA92;
						i_382174 = res_382178;
						child_381601 = (*n).kindU.S6.Sons->data[i_382174];
						last = lastson_225261(child_381601);
						{
							NIM_BOOL LOC95;
							LOC95 = 0;
							LOC95 = ((*child_381601).Kind == ((NU8) 35));
							if (!(LOC95)) goto LA96;
							LOC95 = !(((*last).Kind == ((NU8) 1)));
							LA96: ;
							if (!LOC95) goto LA97;
							track_377278(tracked, last);
							{
								NI i_381631;
								NI HEX3Atmp_382166;
								NI LOC100;
								NI res_382169;
								i_381631 = 0;
								HEX3Atmp_382166 = 0;
								LOC100 = 0;
								LOC100 = len_225364(child_381601);
								HEX3Atmp_382166 = (NI64)(LOC100 - 3);
								res_382169 = 0;
								{
									while (1) {
										if (!(res_382169 <= HEX3Atmp_382166)) goto LA102;
										i_381631 = res_382169;
										initvar_375695(tracked, (*child_381601).kindU.S6.Sons->data[i_381631], NIM_FALSE);
										addasgnfact_373618((&(*tracked).Guards), (*child_381601).kindU.S6.Sons->data[i_381631], last);
										notnilcheck_379009(tracked, last, (*(*child_381601).kindU.S6.Sons->data[i_381631]).Typ);
										res_382169 += 1;
									} LA102: ;
								}
							}
						}
						LA97: ;
						res_382178 += 1;
					} LA92: ;
				}
			}
		}
	}
	break;
	case ((NU8) 97):
	{
		trackcase_379617(tracked, n);
	}
	break;
	case ((NU8) 92):
	case ((NU8) 48):
	{
		trackif_380034(tracked, n);
	}
	break;
	case ((NU8) 112):
	case ((NU8) 127):
	{
		trackblock_380611(tracked, (*n).kindU.S6.Sons->data[1]);
	}
	break;
	case ((NU8) 96):
	{
		track_377278(tracked, (*n).kindU.S6.Sons->data[0]);
		{
			NIM_BOOL LOC109;
			LOC109 = 0;
			LOC109 = istrue_380730((*n).kindU.S6.Sons->data[0]);
			if (!LOC109) goto LA110;
			trackblock_380611(tracked, (*n).kindU.S6.Sons->data[1]);
		}
		goto LA107;
		LA110: ;
		{
			NI oldstate;
			NI oldfacts;
			oldstate = (*tracked).Init->Sup.len;
			oldfacts = (*tracked).Guards->Sup.len;
			addfact_369349((&(*tracked).Guards), (*n).kindU.S6.Sons->data[0]);
			track_377278(tracked, (*n).kindU.S6.Sons->data[1]);
			(*tracked).Init = (TY342680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
			(*tracked).Guards = (tnodeseq224810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode224816*), oldfacts);
		}
		LA107: ;
	}
	break;
	case ((NU8) 94):
	case ((NU8) 95):
	{
		NI oldstate;
		oldstate = (*tracked).Init->Sup.len;
		{
			NI i_381849;
			NI HEX3Atmp_382180;
			NI LOC115;
			NI res_382183;
			i_381849 = 0;
			HEX3Atmp_382180 = 0;
			LOC115 = 0;
			LOC115 = len_225364(n);
			HEX3Atmp_382180 = (LOC115 - 1);
			res_382183 = 0;
			{
				while (1) {
					if (!(res_382183 <= HEX3Atmp_382180)) goto LA117;
					i_381849 = res_382183;
					track_377278(tracked, (*n).kindU.S6.Sons->data[i_381849]);
					res_382183 += 1;
				} LA117: ;
			}
		}
		(*tracked).Init = (TY342680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	}
	break;
	case ((NU8) 38):
	{
		NI oldfacts;
		track_377278(tracked, (*n).kindU.S6.Sons->data[0]);
		oldfacts = (*tracked).Guards->Sup.len;
		{
			NI i_381927;
			NI HEX3Atmp_382186;
			NI LOC120;
			NI res_382189;
			i_381927 = 0;
			HEX3Atmp_382186 = 0;
			LOC120 = 0;
			LOC120 = len_225364(n);
			HEX3Atmp_382186 = (LOC120 - 1);
			res_382189 = 1;
			{
				while (1) {
					tnode224816* x;
					if (!(res_382189 <= HEX3Atmp_382186)) goto LA122;
					i_381927 = res_382189;
					x = (*n).kindU.S6.Sons->data[i_381927];
					track_377278(tracked, x);
					{
						if (!(((*(*(*x).kindU.S6.Sons->data[0]).kindU.S4.Sym).Flags &(1<<((((NU8) 18))&31)))!=0)) goto LA125;
						adddiscriminantfact_373518((&(*tracked).Guards), x);
					}
					LA125: ;
					res_382189 += 1;
				} LA122: ;
			}
		}
		(*tracked).Guards = (tnodeseq224810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode224816*), oldfacts);
	}
	break;
	case ((NU8) 91):
	{
		tnode224816* pragmalist;
		NI oldlocked;
		NI16 oldlocklevel;
		tnode224816* LOC137;
		pragmalist = (*n).kindU.S6.Sons->data[0];
		oldlocked = (*tracked).Locked->Sup.len;
		oldlocklevel = (*tracked).Currlocklevel;
		{
			NI i_382050;
			NI HEX3Atmp_382192;
			NI LOC129;
			NI res_382195;
			i_382050 = 0;
			HEX3Atmp_382192 = 0;
			LOC129 = 0;
			LOC129 = len_225364(pragmalist);
			HEX3Atmp_382192 = (LOC129 - 1);
			res_382195 = 0;
			{
				while (1) {
					if (!(res_382195 <= HEX3Atmp_382192)) goto LA131;
					i_382050 = res_382195;
					{
						NU8 LOC134;
						LOC134 = 0;
						LOC134 = whichpragma_261304((*pragmalist).kindU.S6.Sons->data[i_382050]);
						if (!(LOC134 == ((NU8) 191))) goto LA135;
						locklocations_375197(tracked, (*pragmalist).kindU.S6.Sons->data[i_382050]);
					}
					LA135: ;
					res_382195 += 1;
				} LA131: ;
			}
		}
		LOC137 = 0;
		LOC137 = lastson_225261(n);
		track_377278(tracked, LOC137);
		(*tracked).Locked = (tnodeseq224810*) setLengthSeq(&((*tracked).Locked)->Sup, sizeof(tnode224816*), oldlocked);
		(*tracked).Currlocklevel = oldlocklevel;
	}
	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_382125;
			NI HEX3Atmp_382198;
			NI LOC141;
			NI res_382201;
			i_382125 = 0;
			HEX3Atmp_382198 = 0;
			LOC141 = 0;
			LOC141 = safelen_225424(n);
			HEX3Atmp_382198 = (LOC141 - 1);
			res_382201 = 0;
			{
				while (1) {
					if (!(res_382201 <= HEX3Atmp_382198)) goto LA143;
					i_382125 = res_382201;
					track_377278(tracked, (*n).kindU.S6.Sons->data[i_382125]);
					res_382201 += 1;
				} LA143: ;
			}
		}
	}
	break;
	}
}

static N_INLINE(NIM_BOOL, isemptytype_231991)(ttype224852* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = (t == NIM_NIL);
	if (LOC1) goto LA2;
	LOC1 = ((136 &(IL64(1)<<(((*t).Kind)&IL64(63))))!=0);
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(void, trackproc_383148)(tsym224846* s, tnode224816* body) {
	tnode224816* effects;
	teffects375008 t;
	tnode224816* p;
	tnode224816* raisesspec;
	tnode224816* tagsspec;
	effects = (*(*(*s).Typ).N).kindU.S6.Sons->data[0];
	{
		NimStringDesc* LOC5;
		if (!!(((*effects).Kind == ((NU8) 151)))) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_197126(TMP3195);
		internalerror_197006(LOC5);
	}
	LA3: ;
	{
		if (!(((*s).Flags &(1<<((((NU8) 4))&31)))!=0)) goto LA8;
		goto BeforeRet;
	}
	LA8: ;
	{
		NI LOC12;
		LOC12 = 0;
		LOC12 = len_225364(effects);
		if (!(LOC12 == 4)) goto LA13;
		goto BeforeRet;
	}
	LA13: ;
	memset((void*)(&t), 0, sizeof(t));
	initeffects_382990(effects, s, (&t));
	track_377278((&t), body);
	{
		NIM_BOOL LOC17;
		NIM_BOOL LOC18;
		NIM_BOOL LOC19;
		tsym224846* res;
		LOC17 = 0;
		LOC18 = 0;
		LOC19 = 0;
		LOC19 = isemptytype_231991((*(*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_375951(t.Init->data, t.Init->Sup.len, (*res).Sup.Id);
			if (!!(LOC26)) goto LA27;
			message_196976((*body).Info, ((NU16) 250), ((NimStringDesc*) &TMP3223));
		}
		LA27: ;
	}
	LA22: ;
	p = (*(*s).Ast).kindU.S6.Sons->data[4];
	raisesspec = effectspec_378338(p, ((NU8) 152));
	{
		if (!!(raisesspec == 0)) goto LA31;
		checkraisesspec_382352(raisesspec, t.Exc, ((NimStringDesc*) &TMP3145), NIM_TRUE, subtyperelation_382302);
		asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[0]), raisesspec);
	}
	LA31: ;
	tagsspec = effectspec_378338(p, ((NU8) 157));
	{
		if (!!(tagsspec == 0)) goto LA35;
		checkraisesspec_382352(tagsspec, t.Tags, ((NimStringDesc*) &TMP3149), NIM_FALSE, subtyperelation_382302);
		asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[3]), tagsspec);
	}
	LA35: ;
	{
		if (!((gglobaloptions_168118 &(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;
			{
				NimStringDesc* LOC51;
				if (!((gglobaloptions_168118 &(1<<((((NU8) 21))&31)))!=0)) goto LA49;
				LOC51 = 0;
				LOC51 = nsuFormatSingleElem(((NimStringDesc*) &TMP3224), (*(*s).Name).S);
				localerror_196966((*s).Info, LOC51);
			}
			goto LA47;
			LA49: ;
			{
				localerror_196955((*s).Info, ((NU16) 254), (*(*s).Name).S);
			}
			LA47: ;
		}
		LA45: ;
		{
			if (!!(t.Gcunsafe)) goto LA55;
			(*(*s).Typ).Flags |= ((NI32)1)<<((((NU8) 7))%(sizeof(NI32)*8));
		}
		LA55: ;
		{
			if (!((*(*s).Typ).Locklevel == ((NI16) -1))) goto LA59;
			(*(*s).Typ).Locklevel = t.Maxlocklevel;
		}
		goto LA57;
		LA59: ;
		{
			TY168969 LOC64;
			NimStringDesc* LOC65;
			if (!((*(*s).Typ).Locklevel < t.Maxlocklevel)) goto LA62;
			memset((void*)LOC64, 0, sizeof(LOC64));
			LOC64[0] = HEX24_227488((*(*s).Typ).Locklevel);
			LOC64[1] = HEX24_227488(t.Maxlocklevel);
			LOC65 = 0;
			LOC65 = nsuFormatOpenArray(((NimStringDesc*) &TMP3225), LOC64, 2);
			localerror_196966((*s).Info, LOC65);
		}
		goto LA57;
		LA62: ;
		LA57: ;
	}
	LA39: ;
	BeforeRet: ;
}

N_NIMCALL(void, seteffectsforproctype_382811)(ttype224852* t, tnode224816* n) {
	tnode224816* effects;
	tnode224816* raisesspec;
	tnode224816* tagsspec;
	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) 151));
		LA4: ;
		if (!!(LOC3)) goto LA5;
		LOC7 = 0;
		LOC7 = HEX24_197126(TMP3251);
		internalerror_197006(LOC7);
	}
	LA5: ;
	raisesspec = effectspec_378338(n, ((NU8) 152));
	tagsspec = effectspec_378338(n, ((NU8) 157));
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = !(raisesspec == 0);
		if (LOC10) goto LA11;
		LOC10 = !(tagsspec == 0);
		LA11: ;
		if (!LOC10) goto LA12;
		{
			NI LOC16;
			NimStringDesc* LOC19;
			LOC16 = 0;
			LOC16 = len_225364(effects);
			if (!!((LOC16 == 0))) goto LA17;
			LOC19 = 0;
			LOC19 = HEX24_197126(TMP3252);
			internalerror_197006(LOC19);
		}
		LA17: ;
		if ((*effects).kindU.S6.Sons) nimGCunrefNoCycle((*effects).kindU.S6.Sons);
		(*effects).kindU.S6.Sons = (tnodeseq224810*) newSeqRC1((&NTI224810), 4);
		{
			if (!!(raisesspec == 0)) goto LA22;
			asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[0]), raisesspec);
		}
		LA22: ;
		{
			if (!!(tagsspec == 0)) goto LA26;
			asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[3]), tagsspec);
		}
		LA26: ;
	}
	LA12: ;
}

N_NIMCALL(void, tracktoplevelstmt_383410)(tsym224846* module, tnode224816* n) {
	tnode224816* effects;
	tnodeseq224810* LOC5;
	teffects375008 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 = (tnodeseq224810*) newSeq((&NTI224810), 0);
	effects = newnode_227207(((NU8) 151), (*n).Info, LOC5, NIM_NIL);
	memset((void*)(&t), 0, sizeof(t));
	initeffects_382990(effects, module, (&t));
	t.Istoplevel = NIM_TRUE;
	track_377278((&t), n);
	BeforeRet: ;
}

N_NIMCALL(tnode224816*, documenteffect_378452)(tnode224816* n, tnode224816* x, NU8 effecttype, NI idx) {
	tnode224816* result;
	tnode224816* spec;
	result = 0;
	spec = effectspec_378338(x, effecttype);
	{
		tsym224846* s;
		tnode224816* actual;
		tnode224816* real;
		tnode224816* effects;
		NI LOC10;
		tnodeseq224810* LOC23;
		TY290286 LOC24;
		tident199021* LOC25;
		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_225364(actual);
			if (!!((LOC7 == 4))) goto LA8;
			goto BeforeRet;
		}
		LA8: ;
		real = (*actual).kindU.S6.Sons->data[idx];
		LOC10 = 0;
		LOC10 = len_225364(real);
		effects = newnodei_227007(((NU8) 41), (*n).Info, LOC10);
		{
			NI i_378552;
			NI HEX3Atmp_378601;
			NI LOC12;
			NI res_378604;
			i_378552 = 0;
			HEX3Atmp_378601 = 0;
			LOC12 = 0;
			LOC12 = len_225364(real);
			HEX3Atmp_378601 = (LOC12 - 1);
			res_378604 = 0;
			{
				while (1) {
					NimStringDesc* t;
					tnode224816* LOC15;
					tident199021* LOC21;
					tnode224816* LOC22;
					if (!(res_378604 <= HEX3Atmp_378601)) goto LA14;
					i_378552 = res_378604;
					LOC15 = 0;
					LOC15 = HEX5BHEX5D_225698(real, i_378552);
					t = typetostring_262031((*LOC15).Typ, ((NU8) 0));
					{
						NIM_BOOL LOC18;
						LOC18 = 0;
						LOC18 = nsuStartsWith(t, ((NimStringDesc*) &TMP4635));
						if (!LOC18) goto LA19;
						t = copyStr(t, 4);
					}
					LA19: ;
					LOC21 = 0;
					LOC21 = getident_199472(t);
					asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[i_378552]), newidentnode_225125(LOC21, (*n).Info));
					LOC22 = 0;
					LOC22 = HEX5BHEX5D_225698(real, i_378552);
					asgnRefNoCycle((void**) (&(*(*effects).kindU.S6.Sons->data[i_378552]).Typ), (*LOC22).Typ);
					res_378604 += 1;
				} LA14: ;
			}
		}
		LOC23 = 0;
		LOC23 = (tnodeseq224810*) newSeq((&NTI224810), 2);
		memset((void*)LOC24, 0, sizeof(LOC24));
		LOC25 = 0;
		LOC25 = getident_199472(specialwords_203332[(effecttype)- 0]);
		LOC24[0] = newidentnode_225125(LOC25, (*n).Info);
		LOC24[1] = effects;
		asgnRefNoCycle((void**) (&LOC23->data[0]), LOC24[0]);
		asgnRefNoCycle((void**) (&LOC23->data[1]), LOC24[1]);
		result = newnode_227207(((NU8) 34), (*n).Info, LOC23, NIM_NIL);
	}
	LA3: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, documentraises_378621)(tnode224816* n) {
	tnode224816* pragmas;
	tnode224816* p1;
	tnode224816* p2;
	{
		if (!!(((*(*n).kindU.S6.Sons->data[0]).Kind == ((NU8) 3)))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	pragmas = (*n).kindU.S6.Sons->data[4];
	p1 = documenteffect_378452(n, pragmas, ((NU8) 152), 0);
	p2 = documenteffect_378452(n, pragmas, ((NU8) 157), 3);
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = !((p1 == NIM_NIL));
		if (LOC7) goto LA8;
		LOC7 = !((p2 == NIM_NIL));
		LA8: ;
		if (!LOC7) goto LA9;
		{
			if (!((*pragmas).Kind == ((NU8) 1))) goto LA13;
			asgnRefNoCycle((void**) (&(*n).kindU.S6.Sons->data[4]), newnodei_225138(((NU8) 90), (*n).Info));
		}
		LA13: ;
		{
			if (!!((p1 == NIM_NIL))) goto LA17;
			add_225498((*n).kindU.S6.Sons->data[4], p1);
		}
		LA17: ;
		{
			if (!!((p2 == NIM_NIL))) goto LA21;
			add_225498((*n).kindU.S6.Sons->data[4], p2);
		}
		LA21: ;
	}
	LA9: ;
	BeforeRet: ;
}
NIM_EXTERNC N_NOINLINE(void, HEX00_sempass2Init)(void) {
}

NIM_EXTERNC N_NOINLINE(void, HEX00_sempass2DatInit)(void) {
}

