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

#include <string.h>
typedef struct tsym226846 tsym226846;
typedef struct tnode226816 tnode226816;
typedef struct tidobj201015 tidobj201015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct ttypeseq226848 ttypeseq226848;
typedef struct ttype226852 ttype226852;
typedef struct TGenericSeq TGenericSeq;
typedef struct tscope226840 tscope226840;
typedef struct TY226947 TY226947;
typedef struct tinstantiation226836 tinstantiation226836;
typedef struct tstrtable226820 tstrtable226820;
typedef struct tsymseq226818 tsymseq226818;
typedef struct tident201021 tident201021;
typedef struct tlineinfo196539 tlineinfo196539;
typedef struct tloc226830 tloc226830;
typedef struct trope178009 trope178009;
typedef struct tlib226834 tlib226834;
typedef struct NimStringDesc NimStringDesc;
typedef struct tnodeseq226810 tnodeseq226810;
typedef struct intset223056 intset223056;
typedef struct ttrunk223052 ttrunk223052;
typedef struct ttrunkseq223054 ttrunkseq223054;
typedef struct TY84945 TY84945;
typedef struct teffects377008 teffects377008;
typedef struct TY344680 TY344680;
typedef struct tcell44933 tcell44933;
typedef struct tcellseq44949 tcellseq44949;
typedef struct tgcheap47016 tgcheap47016;
typedef struct tcellset44945 tcellset44945;
typedef struct tpagedesc44941 tpagedesc44941;
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 TY269080 TY269080;
typedef struct TY269081 TY269081;
typedef struct TY226936 TY226936;
typedef struct tlistentry127022 tlistentry127022;
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  tidobj201015  {
  TNimObject Sup;
NI Id;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  tstrtable226820  {
NI Counter;
tsymseq226818* Data;
};
struct  tlineinfo196539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
struct  tloc226830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype226852* T;
trope178009* R;
trope178009* Heaproot;
};
struct  tsym226846  {
  tidobj201015 Sup;
NU8 Kind;
union {
struct {ttypeseq226848* Typeinstcache;
tscope226840* Typscope;
} S1;
struct {TY226947* Procinstcache;
tscope226840* Scope;
} S2;
struct {TY226947* Usedgenerics;
tstrtable226820 Tab;
} S3;
struct {tsym226846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype226852* Typ;
tident201021* Name;
tlineinfo196539 Info;
tsym226846* Owner;
NU32 Flags;
tnode226816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc226830 Loc;
tlib226834* Annex;
tnode226816* Constraint;
};
struct  ttype226852  {
  tidobj201015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq226848* Sons;
tnode226816* N;
tsym226846* Owner;
tsym226846* Sym;
tsym226846* Destructor;
tsym226846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc226830 Loc;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  tnode226816  {
ttype226852* Typ;
tlineinfo196539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym226846* Sym;
} S4;
struct {tident201021* Ident;
} S5;
struct {tnodeseq226810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
typedef N_NIMCALL_PTR(NIM_BOOL, TY384358) (tnode226816* a, tnode226816* b);
struct  intset223056  {
NI Counter;
NI Max;
ttrunk223052* Head;
ttrunkseq223054* Data;
};
struct  tident201021  {
  tidobj201015 Sup;
NimStringDesc* S;
tident201021* Next;
NI H;
};
typedef NimStringDesc* TY170969[2];
struct TY84945 {
NimStringDesc* Field0;
NI Field1;
};
struct  teffects377008  {
tnode226816* Exc;
tnode226816* Tags;
NI Bottom;
NI Intrystmt;
tsym226846* Owner;
TY344680* Init;
tnodeseq226810* Guards;
tnodeseq226810* 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  tcell44933  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq44949  {
NI Len;
NI Cap;
tcell44933** D;
};
struct  tcellset44945  {
NI Counter;
NI Max;
tpagedesc44941* Head;
tpagedesc44941** 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;
tcellseq44949 Zct;
tcellseq44949 Decstack;
tcellset44945 Cycleroots;
tcellseq44949 Tempstack;
NI Recgclock;
tmemregion27210 Region;
tgcstat47014 Stat;
};
typedef NU8 TY518462[20];
struct TY269081 {
NI Field0;
NI Field1;
};
typedef tnode226816* TY292287[2];
typedef NimStringDesc* TY205333[255];
struct  tscope226840  {
NI Depthlevel;
tstrtable226820 Symbols;
tnodeseq226810* Usingsyms;
tscope226840* Parent;
};
struct  tinstantiation226836  {
tsym226846* Sym;
ttypeseq226848* Concretetypes;
TY226936* Usedby;
};
struct  trope178009  {
  TNimObject Sup;
trope178009* Left;
trope178009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tlistentry127022  {
  TNimObject Sup;
tlistentry127022* Prev;
tlistentry127022* Next;
};
struct  tlib226834  {
  tlistentry127022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope178009* Name;
tnode226816* Path;
};
typedef NI TY26420[16];
struct  ttrunk223052  {
ttrunk223052* Next;
NI Key;
TY26420 Bits;
};
struct  tpagedesc44941  {
tpagedesc44941* 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 ttypeseq226848 {
  TGenericSeq Sup;
  ttype226852* data[SEQ_DECL_SIZE];
};
struct TY226947 {
  TGenericSeq Sup;
  tinstantiation226836* data[SEQ_DECL_SIZE];
};
struct tsymseq226818 {
  TGenericSeq Sup;
  tsym226846* data[SEQ_DECL_SIZE];
};
struct tnodeseq226810 {
  TGenericSeq Sup;
  tnode226816* data[SEQ_DECL_SIZE];
};
struct ttrunkseq223054 {
  TGenericSeq Sup;
  ttrunk223052* data[SEQ_DECL_SIZE];
};
struct TY344680 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
struct TY269080 {
  TGenericSeq Sup;
  TY269081 data[SEQ_DECL_SIZE];
};
struct TY226936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
static N_INLINE(NI, len_227364)(tnode226816* n);
N_NIMCALL(tnode226816*, effectspec_380338)(tnode226816* n, NU8 effecttype);
static N_INLINE(NI, sonslen_227249)(tnode226816* n);
N_NIMCALL(NU8, whichpragma_263304)(tnode226816* n);
N_NIMCALL(tnode226816*, newnodei_227138)(NU8 kind, tlineinfo196539 info);
N_NIMCALL(void, add_227498)(tnode226816* father, tnode226816* son);
N_NIMCALL(void, checkraisesspec_384352)(tnode226816* spec, tnode226816* real, NimStringDesc* msg, NIM_BOOL hints, TY384358 effectpredicate);
N_NIMCALL(void, initintset_223950)(intset223056* Result);
N_NOINLINE(void, chckNil)(void* p);
static N_INLINE(tnode226816*, HEX5BHEX5D_227698)(tnode226816* n, NI i);
N_NIMCALL(void, incl_223869)(intset223056* s, NI key);
N_NIMCALL(void, pushinfocontext_197930)(tlineinfo196539 info);
N_NIMCALL(void, localerror_198955)(tlineinfo196539 info, NU16 msg, NimStringDesc* arg);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, typetostring_264031)(ttype226852* typ, NU8 prefer);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(void, popinfocontext_197957)(void);
N_NIMCALL(NIM_BOOL, contains_223837)(intset223056 s, NI key);
N_NIMCALL(void, message_198976)(tlineinfo196539 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_251058)(tnode226816* n, NU8 renderflags);
N_NIMCALL(NIM_BOOL, subtyperelation_384302)(tnode226816* spec, tnode226816* real);
N_NIMCALL(NI, safeinheritancediff_274032)(ttype226852* a, ttype226852* b);
N_NIMCALL(ttype226852*, exctype_378371)(tnode226816* n);
N_NIMCALL(ttype226852*, getebase_378345)(void);
N_NIMCALL(tsym226846*, getcompilerproc_283036)(NimStringDesc* name);
N_NIMCALL(ttype226852*, systypefromname_283261)(NimStringDesc* name);
N_NIMCALL(ttype226852*, skiptypes_231245)(ttype226852* t, NU64 kinds);
N_NIMCALL(void, localerror_198966)(tlineinfo196539 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_229488)(NI16 x);
N_NIMCALL(void, internalerror_199006)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_199126)(TY84945 x_199130);
N_NIMCALL(void, initeffects_384990)(tnode226816* effects, tsym226846* s, teffects377008* t);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(tcell44933*, usrtocell_48646)(void* usr);
static N_INLINE(void, rtladdzct_50204)(tcell44933* c);
N_NOINLINE(void, addzct_48617)(tcellseq44949* s, tcell44933* 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_379278)(teffects377008* tracked, tnode226816* n);
N_NIMCALL(void, usevar_377930)(teffects377008* a, tnode226816* n);
N_NIMCALL(NIM_BOOL, islocalvar_377069)(teffects377008* a, tsym226846* s);
static N_INLINE(NIM_BOOL, contains_377951)(NI* a_377957, NI a_377957Len0, NI item_377960);
static N_INLINE(NI, find_377963)(NI* a_377968, NI a_377968Len0, NI item_377970);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, guardglobal_377264)(teffects377008* a, tnode226816* n, tsym226846* guard);
static N_INLINE(NIM_BOOL, isgcedmem_231276)(ttype226852* t);
N_NIMCALL(void, warnaboutgcunsafe_377921)(tnode226816* n);
N_NIMCALL(void, addeffect_378460)(teffects377008* a, tnode226816* e, NIM_BOOL uselineinfo);
N_NIMCALL(NIM_BOOL, sametype_269351)(ttype226852* a, ttype226852* b, NU8 flags);
N_NIMCALL(NIM_BOOL, HEX3DHEX3D_198579)(tlineinfo196539 a, tlineinfo196539 b);
N_NIMCALL(void, throws_378309)(tnode226816* tracked, tnode226816* n);
static N_INLINE(NI, safelen_227424)(tnode226816* n);
N_NIMCALL(void, mergelocklevels_380904)(teffects377008* tracked, tnode226816* n, NI16 locklevel);
N_NIMCALL(NI16, getlocklevel_380844)(tsym226846* s);
N_NIMCALL(void, propagateeffects_380918)(teffects377008* tracked, tnode226816* n, tsym226846* s);
N_NIMCALL(void, mergeeffects_378713)(teffects377008* a, tnode226816* b, tnode226816* comesfrom);
N_NIMCALL(tnode226816*, createraise_378391)(tnode226816* n);
N_NIMCALL(tnode226816*, newnode_227090)(NU8 kind);
N_NIMCALL(void, mergetags_378774)(teffects377008* a, tnode226816* b, tnode226816* comesfrom);
N_NIMCALL(void, addtag_378655)(teffects377008* a, tnode226816* e, NIM_BOOL uselineinfo);
N_NIMCALL(tnode226816*, createtag_378412)(tnode226816* n);
N_NIMCALL(NIM_BOOL, isforwardedproc_380230)(tnode226816* n);
N_NIMCALL(NIM_BOOL, isindirectcall_380113)(tnode226816* n, tsym226846* owner);
N_NIMCALL(void, assumetheworst_381127)(teffects377008* tracked, tnode226816* n, ttype226852* op);
N_NIMCALL(NIM_BOOL, importedfromc_380798)(tnode226816* n);
N_NIMCALL(void, trackoperand_381212)(teffects377008* tracked, tnode226816* n, ttype226852* paramtype);
N_NIMCALL(tnode226816*, skipconvandclosure_236305)(tnode226816* n);
N_NIMCALL(tnode226816*, skipconv_274732)(tnode226816* n);
N_NIMCALL(NIM_BOOL, isownedprocvar_381139)(tnode226816* n, tsym226846* owner);
N_NIMCALL(void, notnilcheck_381009)(teffects377008* tracked, tnode226816* n_381012, ttype226852* paramtype);
N_NIMCALL(NIM_BOOL, containsnode_233212)(tnode226816* n, TY518462 kinds);
N_NIMCALL(NU8, impliesnotnil_374055)(tnodeseq226810* facts, tnode226816* arg);
N_NIMCALL(ttype226852*, paramtype_382809)(ttype226852* op, NI i);
N_NIMCALL(NI, len_231005)(ttype226852* n);
N_NIMCALL(void, initvarvianew_377852)(teffects377008* a, tnode226816* n);
N_NIMCALL(void, initvar_377695)(teffects377008* a, tnode226816* n, NIM_BOOL volatilecheck);
static N_INLINE(void, makevolatile_377640)(teffects377008* a, tsym226846* s);
N_NIMCALL(tsym226846*, getmodule_236243)(tsym226846* s);
N_NIMCALL(void, guarddotaccess_377343)(teffects377008* a, tnode226816* n);
N_NIMCALL(tsym226846*, lookupinrecord_236236)(tnode226816* n, tident201021* field);
N_NIMCALL(tnode226816*, newnodei_229007)(NU8 kind, tlineinfo196539 info, NI children);
N_NIMCALL(tnode226816*, newsymnode_227132)(tsym226846* sym);
N_NIMCALL(NIM_BOOL, sametree_371425)(tnode226816* a, tnode226816* b);
N_NIMCALL(void, checkfieldaccess_376021)(tnodeseq226810* m, tnode226816* n);
N_NIMCALL(void, tracktrystmt_379285)(teffects377008* tracked, tnode226816* n);
N_NIMCALL(void, addtointersection_378217)(TY269080** inter, NI s);
N_NIMCALL(void, catchesall_379214)(teffects377008* tracked);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, catches_378890)(teffects377008* tracked, ttype226852* e_378893);
N_NIMCALL(void, trackpragmastmt_380276)(teffects377008* tracked, tnode226816* n);
N_NIMCALL(void, listeffects_378835)(teffects377008* a);
N_NIMCALL(void, invalidatefacts_371774)(tnodeseq226810** m, tnode226816* n);
N_NIMCALL(void, addasgnfact_375618)(tnodeseq226810** m, tnode226816* key, tnode226816* value);
static N_INLINE(tnode226816*, lastson_227261)(tnode226816* n);
N_NIMCALL(void, trackcase_381617)(teffects377008* tracked, tnode226816* n);
N_NIMCALL(NIM_BOOL, interestingcaseexpr_369395)(tnode226816* m);
N_NIMCALL(void, addcasebranchfacts_375755)(tnodeseq226810** m, tnode226816* n, NI i);
N_NIMCALL(NIM_BOOL, breaksblock_381521)(tnode226816* n);
N_NIMCALL(void, trackif_382034)(teffects377008* tracked, tnode226816* n);
N_NIMCALL(void, addfact_371349)(tnodeseq226810** m, tnode226816* n_371353);
N_NIMCALL(void, addfactneg_371396)(tnodeseq226810** m, tnode226816* n_371400);
N_NIMCALL(void, trackblock_382611)(teffects377008* tracked, tnode226816* n);
N_NIMCALL(NIM_BOOL, hassubnodewith_227308)(tnode226816* n, NU8 kind);
N_NIMCALL(NIM_BOOL, istrue_382730)(tnode226816* n);
N_NIMCALL(void, adddiscriminantfact_375518)(tnodeseq226810** m, tnode226816* n);
N_NIMCALL(void, locklocations_377197)(teffects377008* a, tnode226816* pragma);
N_NIMCALL(NI16, getlocklevel_377123)(ttype226852* t_377125);
static N_INLINE(NIM_BOOL, isemptytype_233990)(ttype226852* t);
N_NIMCALL(tnode226816*, newnode_229207)(NU8 kind, tlineinfo196539 info, tnodeseq226810* sons, ttype226852* typ);
N_NIMCALL(tnode226816*, documenteffect_380452)(tnode226816* n, tnode226816* 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(tnode226816*, newidentnode_227125)(tident201021* ident, tlineinfo196539 info);
N_NIMCALL(tident201021*, getident_201472)(NimStringDesc* identifier);
STRING_LITERAL(TMP3147, "can raise an unlisted exception: ", 33);
STRING_LITERAL(TMP3148, "Exception", 9);
STRING_LITERAL(TMP3149, "Exception", 9);
STRING_LITERAL(TMP3150, "E_Base", 6);
STRING_LITERAL(TMP3151, "can have an unlisted effect: ", 29);
STRING_LITERAL(TMP3152, "base method is GC-safe, but \'$1\' is not", 39);
STRING_LITERAL(TMP3153, "base method has lock level $1, but dispatcher has $2", 52);
STRING_LITERAL(TMP3198, "compiler/sempass2.nim", 21);
NIM_CONST TY84945 TMP3197 = {((NimStringDesc*) &TMP3198),
824}
;
STRING_LITERAL(TMP3199, "unguarded access: ", 18);
STRING_LITERAL(TMP3200, "expected lock level < ", 22);
STRING_LITERAL(TMP3201, " but got lock level ", 20);
STRING_LITERAL(TMP3202, "RootEffect", 10);
STRING_LITERAL(TMP3203, "RootEffect", 10);
STRING_LITERAL(TMP3204, "TEffect", 7);
NIM_CONST TY84945 TMP3205 = {((NimStringDesc*) &TMP3198),
489}
;
static NIM_CONST TY518462 TMP3206 = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00,
0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TMP3218, "cannot prove \'$1\' is not nil", 28);
STRING_LITERAL(TMP3219, "\'$1\' is provably nil", 20);
STRING_LITERAL(TMP3220, "invalid guard field: ", 21);
STRING_LITERAL(TMP3221, "locks pragma without argument", 29);
STRING_LITERAL(TMP3222, "invalid lock level: ", 20);
STRING_LITERAL(TMP3223, "multi-lock requires the same static lock level for every operan"
"d", 64);
STRING_LITERAL(TMP3224, "invalid nested locking", 22);
STRING_LITERAL(TMP3225, "result", 6);
STRING_LITERAL(TMP3226, "\'$1\' is not GC-safe", 19);
STRING_LITERAL(TMP3227, "declared lock level is $1, but real lock level is $2", 52);
NIM_CONST TY84945 TMP3253 = {((NimStringDesc*) &TMP3198),
797}
;
NIM_CONST TY84945 TMP3254 = {((NimStringDesc*) &TMP3198),
803}
;
STRING_LITERAL(TMP4637, "ref ", 4);
extern NIM_CONST TY205333 specialwords_205332;
extern TNimType NTI226810; /* TNodeSeq */
extern tgcheap47016 gch_47044;
extern TNimType NTI344680; /* seq[int] */
extern NU64 gnotes_197305;
extern NU8 gcmd_170120;
extern TNimType NTI269080; /* seq[tuple[a: int, b: int]] */
extern NU32 gglobaloptions_170118;

static N_INLINE(NI, len_227364)(tnode226816* 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_227249)(tnode226816* 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(tnode226816*, effectspec_380338)(tnode226816* n, NU8 effecttype) {
	tnode226816* result;
	result = 0;
	{
		NI i_380355;
		NI HEX3Atmp_380432;
		NI LOC2;
		NI res_380435;
		i_380355 = 0;
		HEX3Atmp_380432 = 0;
		LOC2 = 0;
		LOC2 = sonslen_227249(n);
		HEX3Atmp_380432 = (NI32)(LOC2 - 1);
		res_380435 = 0;
		{
			while (1) {
				tnode226816* it;
				if (!(res_380435 <= HEX3Atmp_380432)) goto LA4;
				i_380355 = res_380435;
				it = (*n).kindU.S6.Sons->data[i_380355];
				{
					NIM_BOOL LOC7;
					NU8 LOC9;
					LOC7 = 0;
					LOC7 = ((*it).Kind == ((NU8) 34));
					if (!(LOC7)) goto LA8;
					LOC9 = 0;
					LOC9 = whichpragma_263304(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_227138(((NU8) 39), (*result).Info);
						add_227498(result, (*it).kindU.S6.Sons->data[1]);
					}
					LA14: ;
					goto BeforeRet;
				}
				LA10: ;
				res_380435 += 1;
			} LA4: ;
		}
	}
	BeforeRet: ;
	return result;
}

static N_INLINE(tnode226816*, HEX5BHEX5D_227698)(tnode226816* n, NI i) {
	tnode226816* 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)), (NI32)((*src).Sup.len + 1));
	(*dest).Sup.len += (*src).Sup.len;
}

N_NIMCALL(void, checkraisesspec_384352)(tnode226816* spec, tnode226816* real, NimStringDesc* msg, NIM_BOOL hints, TY384358 effectpredicate) {
	intset223056 used;
	memset((void*)(&used), 0, sizeof(used));
	chckNil((void*)(&used));
	memset((void*)(&used), 0, sizeof(used));
	initintset_223950((&used));
	{
		tnode226816* r_384364;
		r_384364 = 0;
		{
			NI i_384421;
			NI HEX3Atmp_384423;
			NI LOC3;
			NI res_384425;
			i_384421 = 0;
			HEX3Atmp_384423 = 0;
			LOC3 = 0;
			LOC3 = len_227364(real);
			HEX3Atmp_384423 = (LOC3 - 1);
			res_384425 = 0;
			{
				while (1) {
					if (!(res_384425 <= HEX3Atmp_384423)) goto LA5;
					i_384421 = res_384425;
					r_384364 = (*real).kindU.S6.Sons->data[i_384421];
					{
						NimStringDesc* LOC17;
						NimStringDesc* LOC18;
						{
							NI s_384387;
							NI HEX3Atmp_384413;
							NI LOC8;
							NI res_384416;
							s_384387 = 0;
							HEX3Atmp_384413 = 0;
							LOC8 = 0;
							LOC8 = len_227364(spec);
							HEX3Atmp_384413 = (LOC8 - 1);
							res_384416 = 0;
							{
								while (1) {
									if (!(res_384416 <= HEX3Atmp_384413)) goto LA10;
									s_384387 = res_384416;
									{
										tnode226816* LOC13;
										NIM_BOOL LOC14;
										LOC13 = 0;
										LOC13 = HEX5BHEX5D_227698(spec, s_384387);
										LOC14 = 0;
										LOC14 = effectpredicate(LOC13, r_384364);
										if (!LOC14) goto LA15;
										incl_223869((&used), s_384387);
										goto LA6;
									}
									LA15: ;
									res_384416 += 1;
								} LA10: ;
							}
						}
						pushinfocontext_197930((*spec).Info);
						LOC17 = 0;
						LOC18 = 0;
						LOC18 = typetostring_264031((*r_384364).Typ, ((NU8) 0));
						LOC17 = rawNewString(msg->Sup.len + LOC18->Sup.len + 0);
appendString(LOC17, msg);
appendString(LOC17, LOC18);
						localerror_198955((*r_384364).Info, ((NU16) 4), LOC17);
						popinfocontext_197957();
					} LA6: ;
					res_384425 += 1;
				} LA5: ;
			}
		}
	}
	{
		if (!hints) goto LA21;
		{
			NI s_384410;
			NI HEX3Atmp_384427;
			NI LOC24;
			NI res_384430;
			s_384410 = 0;
			HEX3Atmp_384427 = 0;
			LOC24 = 0;
			LOC24 = len_227364(spec);
			HEX3Atmp_384427 = (LOC24 - 1);
			res_384430 = 0;
			{
				while (1) {
					if (!(res_384430 <= HEX3Atmp_384427)) goto LA26;
					s_384410 = res_384430;
					{
						NIM_BOOL LOC29;
						tnode226816* LOC32;
						tnode226816* LOC33;
						NimStringDesc* LOC34;
						LOC29 = 0;
						LOC29 = contains_223837(used, s_384410);
						if (!!(LOC29)) goto LA30;
						LOC32 = 0;
						LOC32 = HEX5BHEX5D_227698(spec, s_384410);
						LOC33 = 0;
						LOC33 = HEX5BHEX5D_227698(spec, s_384410);
						LOC34 = 0;
						LOC34 = rendertree_251058(LOC33, 0);
						message_198976((*LOC32).Info, ((NU16) 262), LOC34);
					}
					LA30: ;
					res_384430 += 1;
				} LA26: ;
			}
		}
	}
	LA21: ;
}

N_NIMCALL(ttype226852*, getebase_378345)(void) {
	ttype226852* result;
	result = 0;
	{
		tsym226846* LOC3;
		LOC3 = 0;
		LOC3 = getcompilerproc_283036(((NimStringDesc*) &TMP3148));
		if (!!((LOC3 == NIM_NIL))) goto LA4;
		result = systypefromname_283261(((NimStringDesc*) &TMP3149));
	}
	goto LA1;
	LA4: ;
	{
		result = systypefromname_283261(((NimStringDesc*) &TMP3150));
	}
	LA1: ;
	return result;
}

N_NIMCALL(ttype226852*, exctype_378371)(tnode226816* n) {
	ttype226852* result;
	ttype226852* t;
	result = 0;
	{
		if (!((*n).Kind == ((NU8) 1))) goto LA3;
		t = getebase_378345();
	}
	goto LA1;
	LA3: ;
	{
		t = (*n).Typ;
	}
	LA1: ;
	result = skiptypes_231245(t, IL64(211106247215360));
	return result;
}

N_NIMCALL(NIM_BOOL, subtyperelation_384302)(tnode226816* spec, tnode226816* real) {
	NIM_BOOL result;
	ttype226852* LOC1;
	NI LOC2;
	result = 0;
	LOC1 = 0;
	LOC1 = exctype_378371(real);
	LOC2 = 0;
	LOC2 = safeinheritancediff_274032(LOC1, (*spec).Typ);
	result = (LOC2 <= 0);
	return result;
}

N_NIMCALL(void, checkmethodeffects_384471)(tsym226846* disp, tsym226846* branch) {
	tnode226816* actual;
	tnode226816* p;
	tnode226816* raisesspec;
	tnode226816* tagsspec;
	actual = (*(*(*branch).Typ).N).kindU.S6.Sons->data[0];
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = len_227364(actual);
		if (!!((LOC3 == 4))) goto LA4;
		goto BeforeRet;
	}
	LA4: ;
	p = (*(*disp).Ast).kindU.S6.Sons->data[4];
	raisesspec = effectspec_380338(p, ((NU8) 152));
	{
		if (!!(raisesspec == 0)) goto LA8;
		checkraisesspec_384352(raisesspec, (*actual).kindU.S6.Sons->data[0], ((NimStringDesc*) &TMP3147), NIM_FALSE, subtyperelation_384302);
	}
	LA8: ;
	tagsspec = effectspec_380338(p, ((NU8) 157));
	{
		if (!!(tagsspec == 0)) goto LA12;
		checkraisesspec_384352(tagsspec, (*actual).kindU.S6.Sons->data[3], ((NimStringDesc*) &TMP3151), NIM_FALSE, subtyperelation_384302);
	}
	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*) &TMP3152), (*(*branch).Name).S);
		localerror_198966((*branch).Info, LOC20);
	}
	LA18: ;
	{
		TY170969 LOC25;
		NimStringDesc* LOC26;
		if (!((*(*disp).Typ).Locklevel < (*(*branch).Typ).Locklevel)) goto LA23;
		memset((void*)LOC25, 0, sizeof(LOC25));
		LOC25[0] = HEX24_229488((*(*branch).Typ).Locklevel);
		LOC25[1] = HEX24_229488((*(*disp).Typ).Locklevel);
		LOC26 = 0;
		LOC26 = nsuFormatOpenArray(((NimStringDesc*) &TMP3153), LOC25, 2);
		message_198976((*branch).Info, ((NU16) 257), LOC26);
	}
	LA23: ;
	BeforeRet: ;
}

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

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

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

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

N_NIMCALL(void, initeffects_384990)(tnode226816* effects, tsym226846* s, teffects377008* t) {
	if ((*effects).kindU.S6.Sons) nimGCunrefNoCycle((*effects).kindU.S6.Sons);
	(*effects).kindU.S6.Sons = (tnodeseq226810*) newSeqRC1((&NTI226810), 4);
	asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[0]), newnodei_227138(((NU8) 151), (*s).Info));
	asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[3]), newnodei_227138(((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), (TY344680*) newSeq((&NTI344680), 0));
	unsureAsgnRef((void**) (&(*t).Guards), (tnodeseq226810*) newSeq((&NTI226810), 0));
	unsureAsgnRef((void**) (&(*t).Locked), (tnodeseq226810*) newSeq((&NTI226810), 0));
}

N_NIMCALL(NIM_BOOL, islocalvar_377069)(teffects377008* a, tsym226846* 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_377963)(NI* a_377968, NI a_377968Len0, NI item_377970) {
	NI result;
	result = 0;
	{
		NI i_377983;
		NI i_377999;
		i_377983 = 0;
		i_377999 = 0;
		{
			while (1) {
				if (!(i_377999 < a_377968Len0)) goto LA3;
				i_377983 = a_377968[i_377999];
				{
					if (!(i_377983 == item_377970)) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
				result += 1;
				i_377999 += 1;
			} LA3: ;
		}
	}
	result = -1;
	BeforeRet: ;
	return result;
}

static N_INLINE(NIM_BOOL, contains_377951)(NI* a_377957, NI a_377957Len0, NI item_377960) {
	NIM_BOOL result;
	NI LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = find_377963(a_377957, a_377957Len0, item_377960);
	result = (0 <= LOC1);
	goto BeforeRet;
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, guardglobal_377264)(teffects377008* a, tnode226816* n, tsym226846* guard) {
	{
		tnode226816* l_377281;
		tnodeseq226810* HEX3Atmp_377322;
		NI i_377325;
		NI l_377327;
		l_377281 = 0;
		HEX3Atmp_377322 = 0;
		HEX3Atmp_377322 = (*a).Locked;
		i_377325 = 0;
		l_377327 = HEX3Atmp_377322->Sup.len;
		{
			while (1) {
				if (!(i_377325 < l_377327)) goto LA3;
				l_377281 = HEX3Atmp_377322->data[i_377325];
				{
					NIM_BOOL LOC6;
					LOC6 = 0;
					LOC6 = ((*l_377281).Kind == ((NU8) 3));
					if (!(LOC6)) goto LA7;
					LOC6 = ((*l_377281).kindU.S4.Sym == guard);
					LA7: ;
					if (!LOC6) goto LA8;
					goto BeforeRet;
				}
				LA8: ;
				i_377325 += 1;
			} LA3: ;
		}
	}
	{
		NimStringDesc* LOC14;
		NimStringDesc* LOC15;
		if (!!((*a).Istoplevel)) goto LA12;
		LOC14 = 0;
		LOC15 = 0;
		LOC15 = rendertree_251058(n, 0);
		LOC14 = rawNewString(LOC15->Sup.len + 18);
appendString(LOC14, ((NimStringDesc*) &TMP3199));
appendString(LOC14, LOC15);
		localerror_198955((*n).Info, ((NU16) 4), LOC14);
	}
	LA12: ;
	BeforeRet: ;
}

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

N_NIMCALL(void, warnaboutgcunsafe_377921)(tnode226816* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_251058(n, 0);
	message_198976((*n).Info, ((NU16) 253), LOC1);
}

N_NIMCALL(void, usevar_377930)(teffects377008* a, tnode226816* n) {
	tsym226846* s;
	s = (*n).kindU.S4.Sym;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = islocalvar_377069(a, s);
		if (!LOC3) goto LA4;
		{
			NIM_BOOL LOC8;
			LOC8 = 0;
			LOC8 = contains_377951((*a).Init->data, (*a).Init->Sup.len, (*s).Sup.Id);
			if (!!(LOC8)) goto LA9;
			{
				if (!!(((196608 & (*(*s).Typ).Flags) == 0))) goto LA13;
				message_198976((*n).Info, ((NU16) 250), (*(*s).Name).S);
			}
			goto LA11;
			LA13: ;
			{
				message_198976((*n).Info, ((NU16) 255), (*(*s).Name).S);
			}
			LA11: ;
			(*a).Init = (TY344680*) 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_377264(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_231276((*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_197305 &(IL64(1)<<(((((NU16) 253)- 230))&IL64(63))))!=0)) goto LA36;
				warnaboutgcunsafe_377921(n);
			}
			LA36: ;
			(*a).Gcunsafe = NIM_TRUE;
		}
		LA32: ;
	}
	LA20: ;
}

N_NIMCALL(void, throws_378309)(tnode226816* tracked, tnode226816* 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_227498(tracked, n);
	}
	LA5: ;
}

N_NIMCALL(void, addeffect_378460)(teffects377008* a, tnode226816* e, NIM_BOOL uselineinfo) {
	tnode226816* aa;
	aa = (*a).Exc;
	{
		NI i_378623;
		NI HEX3Atmp_378634;
		NI HEX3Atmp_378635;
		NI LOC2;
		NI res_378638;
		i_378623 = 0;
		HEX3Atmp_378634 = 0;
		HEX3Atmp_378635 = 0;
		HEX3Atmp_378634 = (*a).Bottom;
		LOC2 = 0;
		LOC2 = len_227364(aa);
		HEX3Atmp_378635 = (LOC2 - 1);
		res_378638 = HEX3Atmp_378634;
		{
			while (1) {
				if (!(res_378638 <= HEX3Atmp_378635)) goto LA4;
				i_378623 = res_378638;
				{
					tnode226816* LOC7;
					ttype226852* LOC8;
					ttype226852* LOC9;
					NIM_BOOL LOC10;
					LOC7 = 0;
					LOC7 = HEX5BHEX5D_227698(aa, i_378623);
					LOC8 = 0;
					LOC8 = exctype_378371(LOC7);
					LOC9 = 0;
					LOC9 = exctype_378371(e);
					LOC10 = 0;
					LOC10 = sametype_269351(LOC8, LOC9, 0);
					if (!LOC10) goto LA11;
					{
						NIM_BOOL LOC15;
						LOC15 = 0;
						LOC15 = !(uselineinfo);
						if (LOC15) goto LA16;
						LOC15 = (gcmd_170120 == ((NU8) 8));
						LA16: ;
						if (!LOC15) goto LA17;
						goto BeforeRet;
					}
					goto LA13;
					LA17: ;
					{
						tnode226816* LOC20;
						NIM_BOOL LOC21;
						LOC20 = 0;
						LOC20 = HEX5BHEX5D_227698(aa, i_378623);
						LOC21 = 0;
						LOC21 = HEX3DHEX3D_198579((*LOC20).Info, (*e).Info);
						if (!LOC21) goto LA22;
						goto BeforeRet;
					}
					goto LA13;
					LA22: ;
					LA13: ;
				}
				LA11: ;
				res_378638 += 1;
			} LA4: ;
		}
	}
	throws_378309((*a).Exc, e);
	BeforeRet: ;
}

static N_INLINE(NI, safelen_227424)(tnode226816* 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_380904)(teffects377008* tracked, tnode226816* 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_229488((*tracked).Currlocklevel);
			LOC11 = 0;
			LOC11 = HEX24_229488(locklevel);
			LOC9 = rawNewString(LOC10->Sup.len + LOC11->Sup.len + 42);
appendString(LOC9, ((NimStringDesc*) &TMP3200));
appendString(LOC9, LOC10);
appendString(LOC9, ((NimStringDesc*) &TMP3201));
appendString(LOC9, LOC11);
			localerror_198955((*n).Info, ((NU16) 4), LOC9);
		}
		LA7: ;
		(*tracked).Maxlocklevel = (((*tracked).Maxlocklevel >= locklevel) ? (*tracked).Maxlocklevel : locklevel);
	}
	LA3: ;
}

N_NIMCALL(NI16, getlocklevel_380844)(tsym226846* 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(tnode226816*, createraise_378391)(tnode226816* n) {
	tnode226816* result;
	result = 0;
	result = newnode_227090(((NU8) 4));
	asgnRefNoCycle((void**) (&(*result).Typ), getebase_378345());
	{
		if (!!(n == 0)) goto LA3;
		(*result).Info = (*n).Info;
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, mergeeffects_378713)(teffects377008* a, tnode226816* b, tnode226816* comesfrom) {
	{
		tnode226816* LOC5;
		if (!b == 0) goto LA3;
		LOC5 = 0;
		LOC5 = createraise_378391(comesfrom);
		addeffect_378460(a, LOC5, NIM_TRUE);
	}
	goto LA1;
	LA3: ;
	{
		{
			tnode226816* effect_378729;
			effect_378729 = 0;
			{
				NI i_378751;
				NI HEX3Atmp_378753;
				NI LOC9;
				NI res_378755;
				i_378751 = 0;
				HEX3Atmp_378753 = 0;
				LOC9 = 0;
				LOC9 = len_227364(b);
				HEX3Atmp_378753 = (LOC9 - 1);
				res_378755 = 0;
				{
					while (1) {
						if (!(res_378755 <= HEX3Atmp_378753)) goto LA11;
						i_378751 = res_378755;
						effect_378729 = (*b).kindU.S6.Sons->data[i_378751];
						addeffect_378460(a, effect_378729, !((comesfrom == NIM_NIL)));
						res_378755 += 1;
					} LA11: ;
				}
			}
		}
	}
	LA1: ;
}

N_NIMCALL(void, addtag_378655)(teffects377008* a, tnode226816* e, NIM_BOOL uselineinfo) {
	tnode226816* aa;
	aa = (*a).Tags;
	{
		NI i_378682;
		NI HEX3Atmp_378693;
		NI LOC2;
		NI res_378696;
		i_378682 = 0;
		HEX3Atmp_378693 = 0;
		LOC2 = 0;
		LOC2 = len_227364(aa);
		HEX3Atmp_378693 = (LOC2 - 1);
		res_378696 = 0;
		{
			while (1) {
				if (!(res_378696 <= HEX3Atmp_378693)) goto LA4;
				i_378682 = res_378696;
				{
					tnode226816* LOC7;
					ttype226852* LOC8;
					ttype226852* LOC9;
					NIM_BOOL LOC10;
					LOC7 = 0;
					LOC7 = HEX5BHEX5D_227698(aa, i_378682);
					LOC8 = 0;
					LOC8 = skiptypes_231245((*LOC7).Typ, IL64(211106247215360));
					LOC9 = 0;
					LOC9 = skiptypes_231245((*e).Typ, IL64(211106247215360));
					LOC10 = 0;
					LOC10 = sametype_269351(LOC8, LOC9, 0);
					if (!LOC10) goto LA11;
					{
						NIM_BOOL LOC15;
						LOC15 = 0;
						LOC15 = !(uselineinfo);
						if (LOC15) goto LA16;
						LOC15 = (gcmd_170120 == ((NU8) 8));
						LA16: ;
						if (!LOC15) goto LA17;
						goto BeforeRet;
					}
					goto LA13;
					LA17: ;
					{
						tnode226816* LOC20;
						NIM_BOOL LOC21;
						LOC20 = 0;
						LOC20 = HEX5BHEX5D_227698(aa, i_378682);
						LOC21 = 0;
						LOC21 = HEX3DHEX3D_198579((*LOC20).Info, (*e).Info);
						if (!LOC21) goto LA22;
						goto BeforeRet;
					}
					goto LA13;
					LA22: ;
					LA13: ;
				}
				LA11: ;
				res_378696 += 1;
			} LA4: ;
		}
	}
	throws_378309((*a).Tags, e);
	BeforeRet: ;
}

N_NIMCALL(tnode226816*, createtag_378412)(tnode226816* n) {
	tnode226816* result;
	result = 0;
	result = newnode_227090(((NU8) 4));
	{
		tsym226846* LOC3;
		LOC3 = 0;
		LOC3 = getcompilerproc_283036(((NimStringDesc*) &TMP3202));
		if (!!((LOC3 == NIM_NIL))) goto LA4;
		asgnRefNoCycle((void**) (&(*result).Typ), systypefromname_283261(((NimStringDesc*) &TMP3203)));
	}
	goto LA1;
	LA4: ;
	{
		asgnRefNoCycle((void**) (&(*result).Typ), systypefromname_283261(((NimStringDesc*) &TMP3204)));
	}
	LA1: ;
	{
		if (!!(n == 0)) goto LA9;
		(*result).Info = (*n).Info;
	}
	LA9: ;
	return result;
}

N_NIMCALL(void, mergetags_378774)(teffects377008* a, tnode226816* b, tnode226816* comesfrom) {
	{
		tnode226816* LOC5;
		if (!b == 0) goto LA3;
		LOC5 = 0;
		LOC5 = createtag_378412(comesfrom);
		addtag_378655(a, LOC5, NIM_TRUE);
	}
	goto LA1;
	LA3: ;
	{
		{
			tnode226816* effect_378790;
			effect_378790 = 0;
			{
				NI i_378812;
				NI HEX3Atmp_378814;
				NI LOC9;
				NI res_378816;
				i_378812 = 0;
				HEX3Atmp_378814 = 0;
				LOC9 = 0;
				LOC9 = len_227364(b);
				HEX3Atmp_378814 = (LOC9 - 1);
				res_378816 = 0;
				{
					while (1) {
						if (!(res_378816 <= HEX3Atmp_378814)) goto LA11;
						i_378812 = res_378816;
						effect_378790 = (*b).kindU.S6.Sons->data[i_378812];
						addtag_378655(a, effect_378790, !((comesfrom == NIM_NIL)));
						res_378816 += 1;
					} LA11: ;
				}
			}
		}
	}
	LA1: ;
}

N_NIMCALL(void, propagateeffects_380918)(teffects377008* tracked, tnode226816* n, tsym226846* s) {
	tnode226816* pragma;
	tnode226816* spec;
	tnode226816* tagspec;
	NI16 LOC11;
	pragma = (*(*s).Ast).kindU.S6.Sons->data[4];
	spec = effectspec_380338(pragma, ((NU8) 152));
	mergeeffects_378713(tracked, spec, n);
	tagspec = effectspec_380338(pragma, ((NU8) 157));
	mergetags_378774(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_197305 &(IL64(1)<<(((((NU16) 253)- 230))&IL64(63))))!=0)) goto LA9;
			warnaboutgcunsafe_377921(n);
		}
		LA9: ;
		(*tracked).Gcunsafe = NIM_TRUE;
	}
	LA5: ;
	LOC11 = 0;
	LOC11 = getlocklevel_380844(s);
	mergelocklevels_380904(tracked, n, LOC11);
}

N_NIMCALL(NIM_BOOL, isforwardedproc_380230)(tnode226816* 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_380113)(tnode226816* n, tsym226846* 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_381127)(teffects377008* tracked, tnode226816* n, ttype226852* op) {
	tnode226816* LOC1;
	tnode226816* LOC2;
	NI16 locklevel;
	LOC1 = 0;
	LOC1 = createraise_378391(n);
	addeffect_378460(tracked, LOC1, NIM_TRUE);
	LOC2 = 0;
	LOC2 = createtag_378412(n);
	addtag_378655(tracked, LOC2, NIM_TRUE);
	{
		if (!((*op).Locklevel == ((NI16) -1))) goto LA5;
		locklevel = ((NI16) 1001);
	}
	goto LA3;
	LA5: ;
	{
		locklevel = (*op).Locklevel;
	}
	LA3: ;
	mergelocklevels_380904(tracked, n, locklevel);
}

N_NIMCALL(NIM_BOOL, importedfromc_380798)(tnode226816* 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_381139)(tnode226816* n, tsym226846* 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_381009)(teffects377008* tracked, tnode226816* n_381012, ttype226852* paramtype) {
	tnode226816* n;
	n = skipconv_274732(n_381012);
	{
		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_233212(n, TMP3206);
				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_374055((*tracked).Guards, n);
		switch (LOC25) {
		case ((NU8) 0):
		{
			NimStringDesc* LOC27;
			NimStringDesc* LOC28;
			LOC27 = 0;
			LOC27 = rendertree_251058(n, 0);
			LOC28 = 0;
			LOC28 = nsuFormatSingleElem(((NimStringDesc*) &TMP3218), LOC27);
			message_198976((*n).Info, ((NU16) 4), LOC28);
		}
		break;
		case ((NU8) 1):
		{
			NimStringDesc* LOC30;
			NimStringDesc* LOC31;
			LOC30 = 0;
			LOC30 = rendertree_251058(n, 0);
			LOC31 = 0;
			LOC31 = nsuFormatSingleElem(((NimStringDesc*) &TMP3219), LOC30);
			message_198976((*n).Info, ((NU16) 4), LOC31);
		}
		break;
		case ((NU8) 2):
		{
		}
		break;
		}
	}
	LA9: ;
	BeforeRet: ;
}

N_NIMCALL(void, trackoperand_381212)(teffects377008* tracked, tnode226816* n, ttype226852* paramtype) {
	tnode226816* a;
	ttype226852* op;
	a = skipconvandclosure_236305(n);
	op = (*a).Typ;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		tnode226816* effectlist;
		tnode226816* 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_199126(TMP3205);
			internalerror_199006(LOC13);
		}
		LA11: ;
		effectlist = (*(*op).N).kindU.S6.Sons->data[0];
		s = skipconv_274732(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_380918(tracked, n, (*s).kindU.S4.Sym);
		}
		goto LA14;
		LA18: ;
		{
			NI LOC21;
			LOC21 = 0;
			LOC21 = len_227364(effectlist);
			if (!(LOC21 == 0)) goto LA22;
			{
				NIM_BOOL LOC26;
				LOC26 = 0;
				LOC26 = isforwardedproc_380230(n);
				if (!LOC26) goto LA27;
				propagateeffects_380918(tracked, n, (*n).kindU.S4.Sym);
			}
			goto LA24;
			LA27: ;
			{
				NIM_BOOL LOC30;
				LOC30 = 0;
				LOC30 = isownedprocvar_381139(a, (*tracked).Owner);
				if (!!(LOC30)) goto LA31;
				assumetheworst_381127(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_381139(a, (*tracked).Owner);
				LOC35 = !(LOC37);
				LA36: ;
				if (!LOC35) goto LA38;
				{
					if (!((gnotes_197305 &(IL64(1)<<(((((NU16) 253)- 230))&IL64(63))))!=0)) goto LA42;
					warnaboutgcunsafe_377921(n);
				}
				LA42: ;
				(*tracked).Gcunsafe = NIM_TRUE;
			}
			LA38: ;
		}
		goto LA14;
		LA22: ;
		{
			mergeeffects_378713(tracked, (*effectlist).kindU.S6.Sons->data[0], n);
			mergetags_378774(tracked, (*effectlist).kindU.S6.Sons->data[3], n);
			{
				if (!((130 & (*op).Flags) == 0)) goto LA47;
				{
					if (!((gnotes_197305 &(IL64(1)<<(((((NU16) 253)- 230))&IL64(63))))!=0)) goto LA51;
					warnaboutgcunsafe_377921(n);
				}
				LA51: ;
				(*tracked).Gcunsafe = NIM_TRUE;
			}
			LA47: ;
		}
		LA14: ;
	}
	LA7: ;
	notnilcheck_381009(tracked, n, paramtype);
}

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

static N_INLINE(void, makevolatile_377640)(teffects377008* a, tsym226846* s) {
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC5;
		tsym226846* LOC7;
		LOC3 = 0;
		LOC3 = (0 < (*a).Intrystmt);
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = (gcmd_170120 == ((NU8) 2));
		if (LOC5) goto LA6;
		LOC7 = 0;
		LOC7 = getmodule_236243((*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_377695)(teffects377008* a, tnode226816* n, NIM_BOOL volatilecheck) {
	tsym226846* s;
	{
		if (!!(((*n).Kind == ((NU8) 3)))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	s = (*n).kindU.S4.Sym;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = islocalvar_377069(a, s);
		if (!LOC7) goto LA8;
		{
			if (!volatilecheck) goto LA12;
			makevolatile_377640(a, s);
		}
		LA12: ;
		{
			NI x_377811;
			TY344680* HEX3Atmp_377831;
			NI i_377834;
			NI l_377836;
			x_377811 = 0;
			HEX3Atmp_377831 = 0;
			HEX3Atmp_377831 = (*a).Init;
			i_377834 = 0;
			l_377836 = HEX3Atmp_377831->Sup.len;
			{
				while (1) {
					if (!(i_377834 < l_377836)) goto LA16;
					x_377811 = HEX3Atmp_377831->data[i_377834];
					{
						if (!(x_377811 == (*s).Sup.Id)) goto LA19;
						goto BeforeRet;
					}
					LA19: ;
					i_377834 += 1;
				} LA16: ;
			}
		}
		(*a).Init = (TY344680*) incrSeq(&((*a).Init)->Sup, sizeof(NI));
		(*a).Init->data[(*a).Init->Sup.len-1] = (*s).Sup.Id;
	}
	LA8: ;
	BeforeRet: ;
}

N_NIMCALL(void, initvarvianew_377852)(teffects377008* a, tnode226816* n) {
	tsym226846* 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_377695(a, n, NIM_TRUE);
	}
	goto LA5;
	LA7: ;
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = islocalvar_377069(a, s);
		if (!LOC10) goto LA11;
		makevolatile_377640(a, s);
	}
	goto LA5;
	LA11: ;
	LA5: ;
	BeforeRet: ;
}

N_NIMCALL(void, guarddotaccess_377343)(teffects377008* a, tnode226816* n) {
	tnode226816* ri;
	tsym226846* 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: ;
	{
		tsym226846* field;
		ttype226852* ty;
		if (!((*g).Kind == ((NU8) 0))) goto LA15;
		field = NIM_NIL;
		ty = skiptypes_231245((*(*n).kindU.S6.Sons->data[0]).Typ, IL64(211106247256320));
		{
			if (!((*ty).Kind == ((NU8) 18))) goto LA19;
			field = lookupinrecord_236236((*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_236236((*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_231245(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*) &TMP3220));
appendString(LOC38, (*(*g).Name).S);
			localerror_198955((*n).Info, ((NU16) 4), LOC38);
			goto BeforeRet;
		}
		LA36: ;
		g = field;
	}
	LA15: ;
	{
		tnode226816* dot;
		NimStringDesc* LOC51;
		NimStringDesc* LOC52;
		if (!((*g).Kind == ((NU8) 19))) goto LA41;
		dot = newnodei_229007(((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_227132(g));
		asgnRefNoCycle((void**) (&(*dot).Typ), (*g).Typ);
		{
			tnode226816* l_377609;
			tnodeseq226810* HEX3Atmp_377613;
			NI i_377616;
			NI l_377618;
			l_377609 = 0;
			HEX3Atmp_377613 = 0;
			HEX3Atmp_377613 = (*a).Locked;
			i_377616 = 0;
			l_377618 = HEX3Atmp_377613->Sup.len;
			{
				while (1) {
					if (!(i_377616 < l_377618)) goto LA45;
					l_377609 = HEX3Atmp_377613->data[i_377616];
					{
						NIM_BOOL LOC48;
						LOC48 = 0;
						LOC48 = sametree_371425(dot, l_377609);
						if (!LOC48) goto LA49;
						goto BeforeRet;
					}
					LA49: ;
					i_377616 += 1;
				} LA45: ;
			}
		}
		LOC51 = 0;
		LOC52 = 0;
		LOC52 = rendertree_251058(n, 0);
		LOC51 = rawNewString(LOC52->Sup.len + 18);
appendString(LOC51, ((NimStringDesc*) &TMP3199));
appendString(LOC51, LOC52);
		localerror_198955((*n).Info, ((NU16) 4), LOC51);
	}
	goto LA39;
	LA41: ;
	{
		guardglobal_377264(a, n, g);
	}
	LA39: ;
	BeforeRet: ;
}

N_NIMCALL(void, addtointersection_378217)(TY269080** inter, NI s) {
	TY269081 LOC8;
	{
		NI j_378254;
		NI HEX3Atmp_378289;
		NI res_378292;
		j_378254 = 0;
		HEX3Atmp_378289 = 0;
		HEX3Atmp_378289 = ((*inter)->Sup.len - 1);
		res_378292 = 0;
		{
			while (1) {
				if (!(res_378292 <= HEX3Atmp_378289)) goto LA3;
				j_378254 = res_378292;
				{
					if (!(s == (*inter)->data[j_378254].Field0)) goto LA6;
					(*inter)->data[j_378254].Field1 += 1;
					goto BeforeRet;
				}
				LA6: ;
				res_378292 += 1;
			} LA3: ;
		}
	}
	LOC8.Field0 = s;
	LOC8.Field1 = 1;
	(*inter) = (TY269080*) incrSeq(&((*inter))->Sup, sizeof(TY269081));
	(*inter)->data[(*inter)->Sup.len-1] = LOC8;
	BeforeRet: ;
}

N_NIMCALL(void, catchesall_379214)(teffects377008* tracked) {
	{
		if (!!((*(*tracked).Exc).kindU.S6.Sons == 0)) goto LA3;
		(*(*tracked).Exc).kindU.S6.Sons = (tnodeseq226810*) setLengthSeq(&((*(*tracked).Exc).kindU.S6.Sons)->Sup, sizeof(tnode226816*), (*tracked).Bottom);
	}
	LA3: ;
}

N_NIMCALL(void, catches_378890)(teffects377008* tracked, ttype226852* e_378893) {
	ttype226852* e;
	NI l;
	NI i;
	e = skiptypes_231245(e_378893, IL64(211106247215360));
	l = len_227364((*tracked).Exc);
	i = (*tracked).Bottom;
	{
		while (1) {
			if (!(i < l)) goto LA2;
			{
				tnode226816* LOC5;
				ttype226852* LOC6;
				NI LOC7;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_227698((*tracked).Exc, i);
				LOC6 = 0;
				LOC6 = exctype_378371(LOC5);
				LOC7 = 0;
				LOC7 = safeinheritancediff_274032(LOC6, e);
				if (!(LOC7 <= 0)) goto LA8;
				asgnRefNoCycle((void**) (&(*(*tracked).Exc).kindU.S6.Sons->data[i]), (*(*tracked).Exc).kindU.S6.Sons->data[(NI32)(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 = (tnodeseq226810*) setLengthSeq(&((*(*tracked).Exc).kindU.S6.Sons)->Sup, sizeof(tnode226816*), l);
	}
	goto LA11;
	LA13: ;
	{
	}
	LA11: ;
}

N_NIMCALL(void, tracktrystmt_379285)(teffects377008* tracked, tnode226816* n) {
	NI oldbottom;
	NI oldstate;
	TY269080* inter;
	NI branches;
	NIM_BOOL hasfinally;
	oldbottom = (*tracked).Bottom;
	(*tracked).Bottom = len_227364((*tracked).Exc);
	oldstate = (*tracked).Init->Sup.len;
	inter = (TY269080*) newSeq((&NTI269080), 0);
	(*tracked).Intrystmt += 1;
	track_379278(tracked, (*n).kindU.S6.Sons->data[0]);
	(*tracked).Intrystmt -= 1;
	{
		NI i_379393;
		NI HEX3Atmp_380033;
		NI res_380036;
		i_379393 = 0;
		HEX3Atmp_380033 = 0;
		HEX3Atmp_380033 = ((*tracked).Init->Sup.len - 1);
		res_380036 = oldstate;
		{
			while (1) {
				if (!(res_380036 <= HEX3Atmp_380033)) goto LA3;
				i_379393 = res_380036;
				addtointersection_378217((&inter), (*tracked).Init->data[i_379393]);
				res_380036 += 1;
			} LA3: ;
		}
	}
	branches = 1;
	hasfinally = NIM_FALSE;
	{
		NI i_379418;
		NI HEX3Atmp_380051;
		NI LOC5;
		NI res_380054;
		i_379418 = 0;
		HEX3Atmp_380051 = 0;
		LOC5 = 0;
		LOC5 = len_227364(n);
		HEX3Atmp_380051 = (LOC5 - 1);
		res_380054 = 1;
		{
			while (1) {
				tnode226816* b;
				NI blen;
				if (!(res_380054 <= HEX3Atmp_380051)) goto LA7;
				i_379418 = res_380054;
				b = (*n).kindU.S6.Sons->data[i_379418];
				blen = sonslen_227249(b);
				{
					if (!((*b).Kind == ((NU8) 87))) goto LA10;
					branches += 1;
					{
						if (!(blen == 1)) goto LA14;
						catchesall_379214(tracked);
					}
					goto LA12;
					LA14: ;
					{
						{
							NI j_379468;
							NI HEX3Atmp_380040;
							NI res_380043;
							j_379468 = 0;
							HEX3Atmp_380040 = 0;
							HEX3Atmp_380040 = (NI32)(blen - 2);
							res_380043 = 0;
							{
								while (1) {
									if (!(res_380043 <= HEX3Atmp_380040)) goto LA19;
									j_379468 = res_380043;
									catches_378890(tracked, (*(*b).kindU.S6.Sons->data[j_379468]).Typ);
									res_380043 += 1;
								} LA19: ;
							}
						}
					}
					LA12: ;
					(*tracked).Init = (TY344680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
					track_379278(tracked, (*b).kindU.S6.Sons->data[(NI32)(blen - 1)]);
					{
						NI i_379677;
						NI HEX3Atmp_380046;
						NI res_380049;
						i_379677 = 0;
						HEX3Atmp_380046 = 0;
						HEX3Atmp_380046 = ((*tracked).Init->Sup.len - 1);
						res_380049 = oldstate;
						{
							while (1) {
								if (!(res_380049 <= HEX3Atmp_380046)) goto LA22;
								i_379677 = res_380049;
								addtointersection_378217((&inter), (*tracked).Init->data[i_379677]);
								res_380049 += 1;
							} LA22: ;
						}
					}
				}
				goto LA8;
				LA10: ;
				{
					(*tracked).Init = (TY344680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
					track_379278(tracked, (*b).kindU.S6.Sons->data[(NI32)(blen - 1)]);
					hasfinally = NIM_TRUE;
				}
				LA8: ;
				res_380054 += 1;
			} LA7: ;
		}
	}
	(*tracked).Bottom = oldbottom;
	{
		if (!!(hasfinally)) goto LA26;
		(*tracked).Init = (TY344680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	}
	LA26: ;
	{
		NI id_380011;
		NI count_380012;
		NI i_380059;
		NI l_380061;
		id_380011 = 0;
		count_380012 = 0;
		i_380059 = 0;
		l_380061 = inter->Sup.len;
		{
			while (1) {
				if (!(i_380059 < l_380061)) goto LA30;
				id_380011 = inter->data[i_380059].Field0;
				count_380012 = inter->data[i_380059].Field1;
				{
					if (!(count_380012 == branches)) goto LA33;
					(*tracked).Init = (TY344680*) incrSeq(&((*tracked).Init)->Sup, sizeof(NI));
					(*tracked).Init->data[(*tracked).Init->Sup.len-1] = id_380011;
				}
				LA33: ;
				i_380059 += 1;
			} LA30: ;
		}
	}
}

N_NIMCALL(void, listeffects_378835)(teffects377008* a) {
	{
		tnode226816* e_378838;
		tnode226816* HEX3Atmp_378841;
		e_378838 = 0;
		HEX3Atmp_378841 = 0;
		HEX3Atmp_378841 = (*a).Exc;
		{
			NI i_378845;
			NI HEX3Atmp_378847;
			NI LOC3;
			NI res_378849;
			i_378845 = 0;
			HEX3Atmp_378847 = 0;
			LOC3 = 0;
			LOC3 = len_227364(HEX3Atmp_378841);
			HEX3Atmp_378847 = (LOC3 - 1);
			res_378849 = 0;
			{
				while (1) {
					NimStringDesc* LOC6;
					if (!(res_378849 <= HEX3Atmp_378847)) goto LA5;
					i_378845 = res_378849;
					e_378838 = (*HEX3Atmp_378841).kindU.S6.Sons->data[i_378845];
					LOC6 = 0;
					LOC6 = typetostring_264031((*e_378838).Typ, ((NU8) 0));
					message_198976((*e_378838).Info, ((NU16) 275), LOC6);
					res_378849 += 1;
				} LA5: ;
			}
		}
	}
	{
		tnode226816* e_378839;
		tnode226816* HEX3Atmp_378851;
		e_378839 = 0;
		HEX3Atmp_378851 = 0;
		HEX3Atmp_378851 = (*a).Tags;
		{
			NI i_378855;
			NI HEX3Atmp_378857;
			NI LOC9;
			NI res_378859;
			i_378855 = 0;
			HEX3Atmp_378857 = 0;
			LOC9 = 0;
			LOC9 = len_227364(HEX3Atmp_378851);
			HEX3Atmp_378857 = (LOC9 - 1);
			res_378859 = 0;
			{
				while (1) {
					NimStringDesc* LOC12;
					if (!(res_378859 <= HEX3Atmp_378857)) goto LA11;
					i_378855 = res_378859;
					e_378839 = (*HEX3Atmp_378851).kindU.S6.Sons->data[i_378855];
					LOC12 = 0;
					LOC12 = typetostring_264031((*e_378839).Typ, ((NU8) 0));
					message_198976((*e_378839).Info, ((NU16) 275), LOC12);
					res_378859 += 1;
				} LA11: ;
			}
		}
	}
}

N_NIMCALL(void, trackpragmastmt_380276)(teffects377008* tracked, tnode226816* n) {
	{
		NI i_380292;
		NI HEX3Atmp_380318;
		NI LOC2;
		NI res_380321;
		i_380292 = 0;
		HEX3Atmp_380318 = 0;
		LOC2 = 0;
		LOC2 = sonslen_227249(n);
		HEX3Atmp_380318 = (NI32)(LOC2 - 1);
		res_380321 = 0;
		{
			while (1) {
				tnode226816* it;
				if (!(res_380321 <= HEX3Atmp_380318)) goto LA4;
				i_380292 = res_380321;
				it = (*n).kindU.S6.Sons->data[i_380292];
				{
					NU8 LOC7;
					LOC7 = 0;
					LOC7 = whichpragma_263304(it);
					if (!(LOC7 == ((NU8) 156))) goto LA8;
					listeffects_378835(tracked);
				}
				LA8: ;
				res_380321 += 1;
			} LA4: ;
		}
	}
}

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

N_NIMCALL(NIM_BOOL, breaksblock_381521)(tnode226816* n) {
	NIM_BOOL result;
	result = 0;
	switch ((*n).Kind) {
	case ((NU8) 115):
	case ((NU8) 126):
	{
		{
			tnode226816* c_381525;
			c_381525 = 0;
			{
				NI i_381594;
				NI HEX3Atmp_381596;
				NI LOC4;
				NI res_381598;
				i_381594 = 0;
				HEX3Atmp_381596 = 0;
				LOC4 = 0;
				LOC4 = len_227364(n);
				HEX3Atmp_381596 = (LOC4 - 1);
				res_381598 = 0;
				{
					while (1) {
						if (!(res_381598 <= HEX3Atmp_381596)) goto LA6;
						i_381594 = res_381598;
						c_381525 = (*n).kindU.S6.Sons->data[i_381594];
						{
							NIM_BOOL LOC9;
							LOC9 = 0;
							LOC9 = breaksblock_381521(c_381525);
							if (!LOC9) goto LA10;
							result = NIM_TRUE;
							goto BeforeRet;
						}
						LA10: ;
						res_381598 += 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_381617)(teffects377008* tracked, tnode226816* n) {
	NI oldstate;
	NI oldfacts;
	NIM_BOOL interesting;
	NIM_BOOL LOC1;
	TY269080* inter;
	NI tocover;
	NIM_BOOL exh;
	ttype226852* LOC24;
	track_379278(tracked, (*n).kindU.S6.Sons->data[0]);
	oldstate = (*tracked).Init->Sup.len;
	oldfacts = (*tracked).Guards->Sup.len;
	LOC1 = 0;
	LOC1 = interestingcaseexpr_369395((*n).kindU.S6.Sons->data[0]);
	if (!(LOC1)) goto LA2;
	LOC1 = ((gnotes_197305 &(IL64(1)<<(((((NU16) 251)- 230))&IL64(63))))!=0);
	LA2: ;
	interesting = LOC1;
	inter = (TY269080*) newSeq((&NTI269080), 0);
	tocover = 0;
	{
		NI i_381730;
		NI HEX3Atmp_381981;
		NI LOC4;
		NI res_381984;
		i_381730 = 0;
		HEX3Atmp_381981 = 0;
		LOC4 = 0;
		LOC4 = len_227364(n);
		HEX3Atmp_381981 = (LOC4 - 1);
		res_381984 = 1;
		{
			while (1) {
				tnode226816* branch;
				if (!(res_381984 <= HEX3Atmp_381981)) goto LA6;
				i_381730 = res_381984;
				branch = (*n).kindU.S6.Sons->data[i_381730];
				(*tracked).Init = (TY344680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
				{
					if (!interesting) goto LA9;
					(*tracked).Guards = (tnodeseq226810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode226816*), oldfacts);
					addcasebranchfacts_375755((&(*tracked).Guards), n, i_381730);
				}
				LA9: ;
				{
					NI i_381800;
					NI HEX3Atmp_381970;
					NI LOC12;
					NI res_381973;
					i_381800 = 0;
					HEX3Atmp_381970 = 0;
					LOC12 = 0;
					LOC12 = len_227364(branch);
					HEX3Atmp_381970 = (LOC12 - 1);
					res_381973 = 0;
					{
						while (1) {
							if (!(res_381973 <= HEX3Atmp_381970)) goto LA14;
							i_381800 = res_381973;
							track_379278(tracked, (*branch).kindU.S6.Sons->data[i_381800]);
							res_381973 += 1;
						} LA14: ;
					}
				}
				{
					tnode226816* LOC17;
					NIM_BOOL LOC18;
					LOC17 = 0;
					LOC17 = lastson_227261(branch);
					LOC18 = 0;
					LOC18 = breaksblock_381521(LOC17);
					if (!!(LOC18)) goto LA19;
					tocover += 1;
				}
				LA19: ;
				{
					NI i_381859;
					NI HEX3Atmp_381976;
					NI res_381979;
					i_381859 = 0;
					HEX3Atmp_381976 = 0;
					HEX3Atmp_381976 = ((*tracked).Init->Sup.len - 1);
					res_381979 = oldstate;
					{
						while (1) {
							if (!(res_381979 <= HEX3Atmp_381976)) goto LA23;
							i_381859 = res_381979;
							addtointersection_378217((&inter), (*tracked).Init->data[i_381859]);
							res_381979 += 1;
						} LA23: ;
					}
				}
				res_381984 += 1;
			} LA6: ;
		}
	}
	LOC24 = 0;
	LOC24 = skiptypes_231245((*(*n).kindU.S6.Sons->data[0]).Typ, IL64(211106242013184));
	switch ((*LOC24).Kind) {
	case ((NU8) 36) ... ((NU8) 39):
	case ((NU8) 28):
	{
		tnode226816* LOC26;
		LOC26 = 0;
		LOC26 = lastson_227261(n);
		exh = ((*LOC26).Kind == ((NU8) 88));
	}
	break;
	default:
	{
		exh = NIM_TRUE;
	}
	break;
	}
	(*tracked).Init = (TY344680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	{
		if (!exh) goto LA30;
		{
			NI id_381931;
			NI count_381932;
			NI i_381989;
			NI l_381991;
			id_381931 = 0;
			count_381932 = 0;
			i_381989 = 0;
			l_381991 = inter->Sup.len;
			{
				while (1) {
					if (!(i_381989 < l_381991)) goto LA34;
					id_381931 = inter->data[i_381989].Field0;
					count_381932 = inter->data[i_381989].Field1;
					{
						if (!(tocover <= count_381932)) goto LA37;
						(*tracked).Init = (TY344680*) incrSeq(&((*tracked).Init)->Sup, sizeof(NI));
						(*tracked).Init->data[(*tracked).Init->Sup.len-1] = id_381931;
					}
					LA37: ;
					i_381989 += 1;
				} LA34: ;
			}
		}
	}
	LA30: ;
	(*tracked).Guards = (tnodeseq226810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode226816*), oldfacts);
}

N_NIMCALL(void, trackif_382034)(teffects377008* tracked, tnode226816* n) {
	NI oldfacts;
	NI oldstate;
	TY269080* inter;
	NI tocover;
	track_379278(tracked, (*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[0]);
	oldfacts = (*tracked).Guards->Sup.len;
	addfact_371349((&(*tracked).Guards), (*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[0]);
	oldstate = (*tracked).Init->Sup.len;
	inter = (TY269080*) newSeq((&NTI269080), 0);
	tocover = 0;
	track_379278(tracked, (*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[1]);
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = breaksblock_381521((*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[1]);
		if (!!(LOC3)) goto LA4;
		tocover += 1;
	}
	LA4: ;
	{
		NI i_382241;
		NI HEX3Atmp_382516;
		NI res_382519;
		i_382241 = 0;
		HEX3Atmp_382516 = 0;
		HEX3Atmp_382516 = ((*tracked).Init->Sup.len - 1);
		res_382519 = oldstate;
		{
			while (1) {
				if (!(res_382519 <= HEX3Atmp_382516)) goto LA8;
				i_382241 = res_382519;
				addtointersection_378217((&inter), (*tracked).Init->data[i_382241]);
				res_382519 += 1;
			} LA8: ;
		}
	}
	{
		NI i_382264;
		NI HEX3Atmp_382540;
		NI LOC10;
		NI res_382543;
		i_382264 = 0;
		HEX3Atmp_382540 = 0;
		LOC10 = 0;
		LOC10 = len_227364(n);
		HEX3Atmp_382540 = (LOC10 - 1);
		res_382543 = 1;
		{
			while (1) {
				tnode226816* branch;
				if (!(res_382543 <= HEX3Atmp_382540)) goto LA12;
				i_382264 = res_382543;
				branch = (*n).kindU.S6.Sons->data[i_382264];
				(*tracked).Guards = (tnodeseq226810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode226816*), oldfacts);
				{
					NI j_382306;
					NI HEX3Atmp_382523;
					NI res_382526;
					j_382306 = 0;
					HEX3Atmp_382523 = 0;
					HEX3Atmp_382523 = (NI32)(i_382264 - 1);
					res_382526 = 0;
					{
						while (1) {
							if (!(res_382526 <= HEX3Atmp_382523)) goto LA15;
							j_382306 = res_382526;
							addfactneg_371396((&(*tracked).Guards), (*(*n).kindU.S6.Sons->data[j_382306]).kindU.S6.Sons->data[0]);
							res_382526 += 1;
						} LA15: ;
					}
				}
				{
					NI LOC18;
					LOC18 = 0;
					LOC18 = len_227364(branch);
					if (!(1 < LOC18)) goto LA19;
					addfact_371349((&(*tracked).Guards), (*branch).kindU.S6.Sons->data[0]);
				}
				LA19: ;
				(*tracked).Init = (TY344680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
				{
					NI i_382389;
					NI HEX3Atmp_382529;
					NI LOC22;
					NI res_382532;
					i_382389 = 0;
					HEX3Atmp_382529 = 0;
					LOC22 = 0;
					LOC22 = len_227364(branch);
					HEX3Atmp_382529 = (LOC22 - 1);
					res_382532 = 0;
					{
						while (1) {
							if (!(res_382532 <= HEX3Atmp_382529)) goto LA24;
							i_382389 = res_382532;
							track_379278(tracked, (*branch).kindU.S6.Sons->data[i_382389]);
							res_382532 += 1;
						} LA24: ;
					}
				}
				{
					tnode226816* LOC27;
					NIM_BOOL LOC28;
					LOC27 = 0;
					LOC27 = lastson_227261(branch);
					LOC28 = 0;
					LOC28 = breaksblock_381521(LOC27);
					if (!!(LOC28)) goto LA29;
					tocover += 1;
				}
				LA29: ;
				{
					NI i_382448;
					NI HEX3Atmp_382535;
					NI res_382538;
					i_382448 = 0;
					HEX3Atmp_382535 = 0;
					HEX3Atmp_382535 = ((*tracked).Init->Sup.len - 1);
					res_382538 = oldstate;
					{
						while (1) {
							if (!(res_382538 <= HEX3Atmp_382535)) goto LA33;
							i_382448 = res_382538;
							addtointersection_378217((&inter), (*tracked).Init->data[i_382448]);
							res_382538 += 1;
						} LA33: ;
					}
				}
				res_382543 += 1;
			} LA12: ;
		}
	}
	(*tracked).Init = (TY344680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	{
		tnode226816* LOC36;
		NI LOC37;
		LOC36 = 0;
		LOC36 = lastson_227261(n);
		LOC37 = 0;
		LOC37 = len_227364(LOC36);
		if (!(LOC37 == 1)) goto LA38;
		{
			NI id_382478;
			NI count_382479;
			NI i_382548;
			NI l_382550;
			id_382478 = 0;
			count_382479 = 0;
			i_382548 = 0;
			l_382550 = inter->Sup.len;
			{
				while (1) {
					if (!(i_382548 < l_382550)) goto LA42;
					id_382478 = inter->data[i_382548].Field0;
					count_382479 = inter->data[i_382548].Field1;
					{
						if (!(tocover <= count_382479)) goto LA45;
						(*tracked).Init = (TY344680*) incrSeq(&((*tracked).Init)->Sup, sizeof(NI));
						(*tracked).Init->data[(*tracked).Init->Sup.len-1] = id_382478;
					}
					LA45: ;
					i_382548 += 1;
				} LA42: ;
			}
		}
	}
	LA38: ;
	(*tracked).Guards = (tnodeseq226810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode226816*), oldfacts);
}

N_NIMCALL(void, trackblock_382611)(teffects377008* tracked, tnode226816* n) {
	{
		NI oldstate;
		if (!((*n).Kind == ((NU8) 115) || (*n).Kind == ((NU8) 126))) goto LA3;
		oldstate = -1;
		{
			NI i_382651;
			NI HEX3Atmp_382710;
			NI LOC6;
			NI res_382713;
			i_382651 = 0;
			HEX3Atmp_382710 = 0;
			LOC6 = 0;
			LOC6 = len_227364(n);
			HEX3Atmp_382710 = (LOC6 - 1);
			res_382713 = 0;
			{
				while (1) {
					if (!(res_382713 <= HEX3Atmp_382710)) goto LA8;
					i_382651 = res_382713;
					{
						NIM_BOOL LOC11;
						LOC11 = 0;
						LOC11 = hassubnodewith_227308((*n).kindU.S6.Sons->data[i_382651], ((NU8) 110));
						if (!LOC11) goto LA12;
						{
							if (!(oldstate < 0)) goto LA16;
							oldstate = (*tracked).Init->Sup.len;
						}
						LA16: ;
					}
					LA12: ;
					track_379278(tracked, (*n).kindU.S6.Sons->data[i_382651]);
					res_382713 += 1;
				} LA8: ;
			}
		}
		{
			if (!(0 < oldstate)) goto LA20;
			(*tracked).Init = (TY344680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
		}
		LA20: ;
	}
	goto LA1;
	LA3: ;
	{
		track_379278(tracked, n);
	}
	LA1: ;
}

N_NIMCALL(NIM_BOOL, istrue_382730)(tnode226816* 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_377123)(ttype226852* t_377125) {
	NI16 result;
	ttype226852* t;
	result = 0;
	t = t_377125;
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = ((*t).Kind == ((NU8) 11));
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = len_231005(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_377197)(teffects377008* a, tnode226816* pragma) {
	NI16 firstll;
	{
		if (!!(((*pragma).Kind == ((NU8) 34)))) goto LA3;
		localerror_198955((*pragma).Info, ((NU16) 4), ((NimStringDesc*) &TMP3221));
		goto BeforeRet;
	}
	LA3: ;
	firstll = ((NI16) -1);
	{
		tnode226816* x_377211;
		tnode226816* HEX3Atmp_377237;
		x_377211 = 0;
		HEX3Atmp_377237 = 0;
		HEX3Atmp_377237 = HEX5BHEX5D_227698(pragma, 1);
		{
			NI i_377241;
			NI HEX3Atmp_377243;
			NI LOC7;
			NI res_377245;
			i_377241 = 0;
			HEX3Atmp_377243 = 0;
			LOC7 = 0;
			LOC7 = len_227364(HEX3Atmp_377237);
			HEX3Atmp_377243 = (LOC7 - 1);
			res_377245 = 0;
			{
				while (1) {
					NI16 thisll;
					if (!(res_377245 <= HEX3Atmp_377243)) goto LA9;
					i_377241 = res_377245;
					x_377211 = (*HEX3Atmp_377237).kindU.S6.Sons->data[i_377241];
					thisll = getlocklevel_377123((*x_377211).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_229488(thisll);
							LOC20 = rawNewString(LOC21->Sup.len + 20);
appendString(LOC20, ((NimStringDesc*) &TMP3222));
appendString(LOC20, LOC21);
							localerror_198966((*x_377211).Info, LOC20);
						}
						goto LA14;
						LA18: ;
						{
							if (!(firstll < ((NI16) 0))) goto LA23;
							firstll = thisll;
						}
						goto LA14;
						LA23: ;
						{
							if (!!((firstll == thisll))) goto LA26;
							localerror_198955((*x_377211).Info, ((NU16) 4), ((NimStringDesc*) &TMP3223));
						}
						goto LA14;
						LA26: ;
						LA14: ;
						(*a).Maxlocklevel = (((*a).Maxlocklevel >= firstll) ? (*a).Maxlocklevel : firstll);
					}
					LA12: ;
					(*a).Locked = (tnodeseq226810*) incrSeq(&((*a).Locked)->Sup, sizeof(tnode226816*));
					asgnRefNoCycle((void**) (&(*a).Locked->data[(*a).Locked->Sup.len-1]), x_377211);
					res_377245 += 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_198955((*pragma).Info, ((NU16) 4), ((NimStringDesc*) &TMP3224));
		}
		LA38: ;
		(*a).Currlocklevel = firstll;
	}
	LA32: ;
	BeforeRet: ;
}

N_NIMCALL(void, track_379278)(teffects377008* tracked, tnode226816* n) {
	switch ((*n).Kind) {
	case ((NU8) 3):
	{
		usevar_377930(tracked, n);
	}
	break;
	case ((NU8) 108):
	{
		(*(*n).kindU.S6.Sons->data[0]).Info = (*n).Info;
		addeffect_378460(tracked, (*n).kindU.S6.Sons->data[0], NIM_FALSE);
		{
			NI i_382948;
			NI HEX3Atmp_384141;
			NI LOC4;
			NI res_384144;
			i_382948 = 0;
			HEX3Atmp_384141 = 0;
			LOC4 = 0;
			LOC4 = safelen_227424(n);
			HEX3Atmp_384141 = (LOC4 - 1);
			res_384144 = 0;
			{
				while (1) {
					if (!(res_384144 <= HEX3Atmp_384141)) goto LA6;
					i_382948 = res_384144;
					track_379278(tracked, (*n).kindU.S6.Sons->data[i_382948]);
					res_384144 += 1;
				} LA6: ;
			}
		}
	}
	break;
	case ((NU8) 27):
	case ((NU8) 29):
	case ((NU8) 30):
	case ((NU8) 31):
	case ((NU8) 26):
	case ((NU8) 28):
	case ((NU8) 32):
	{
		tnode226816* a;
		ttype226852* op;
		a = (*n).kindU.S6.Sons->data[0];
		op = (*a).Typ;
		{
			NIM_BOOL LOC10;
			NIM_BOOL LOC11;
			tnode226816* 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_380844((*a).kindU.S4.Sym);
				mergelocklevels_380904(tracked, n, LOC24);
			}
			goto LA16;
			LA18: ;
			{
				mergelocklevels_380904(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_380918(tracked, n, (*a).kindU.S4.Sym);
			}
			goto LA26;
			LA30: ;
			{
				NI LOC33;
				LOC33 = 0;
				LOC33 = len_227364(effectlist);
				if (!(LOC33 == 0)) goto LA34;
				{
					NIM_BOOL LOC38;
					LOC38 = 0;
					LOC38 = isforwardedproc_380230(a);
					if (!LOC38) goto LA39;
					propagateeffects_380918(tracked, n, (*a).kindU.S4.Sym);
				}
				goto LA36;
				LA39: ;
				{
					NIM_BOOL LOC42;
					LOC42 = 0;
					LOC42 = isindirectcall_380113(a, (*tracked).Owner);
					if (!LOC42) goto LA43;
					assumetheworst_381127(tracked, n, op);
				}
				goto LA36;
				LA43: ;
				LA36: ;
			}
			goto LA26;
			LA34: ;
			{
				mergeeffects_378713(tracked, (*effectlist).kindU.S6.Sons->data[0], n);
				mergetags_378774(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_380798(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_377921(n);
						(*tracked).Gcunsafe = NIM_TRUE;
					}
					LA57: ;
				}
				LA51: ;
			}
			LA26: ;
		}
		LA14: ;
		{
			NI i_383281;
			NI HEX3Atmp_384147;
			NI LOC60;
			NI res_384150;
			i_383281 = 0;
			HEX3Atmp_384147 = 0;
			LOC60 = 0;
			LOC60 = len_227364(n);
			HEX3Atmp_384147 = (LOC60 - 1);
			res_384150 = 1;
			{
				while (1) {
					ttype226852* LOC63;
					if (!(res_384150 <= HEX3Atmp_384147)) goto LA62;
					i_383281 = res_384150;
					LOC63 = 0;
					LOC63 = paramtype_382809(op, i_383281);
					trackoperand_381212(tracked, (*n).kindU.S6.Sons->data[i_383281], LOC63);
					res_384150 += 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_377852(tracked, (*n).kindU.S6.Sons->data[1]);
		}
		LA68: ;
		{
			NI i_383368;
			NI HEX3Atmp_384153;
			NI LOC71;
			NI res_384156;
			i_383368 = 0;
			HEX3Atmp_384153 = 0;
			LOC71 = 0;
			LOC71 = safelen_227424(n);
			HEX3Atmp_384153 = (LOC71 - 1);
			res_384156 = 0;
			{
				while (1) {
					if (!(res_384156 <= HEX3Atmp_384153)) goto LA73;
					i_383368 = res_384156;
					track_379278(tracked, (*n).kindU.S6.Sons->data[i_383368]);
					res_384156 += 1;
				} LA73: ;
			}
		}
	}
	break;
	case ((NU8) 45):
	{
		guarddotaccess_377343(tracked, n);
		{
			NI i_383404;
			NI HEX3Atmp_384159;
			NI LOC76;
			NI res_384162;
			i_383404 = 0;
			HEX3Atmp_384159 = 0;
			LOC76 = 0;
			LOC76 = len_227364(n);
			HEX3Atmp_384159 = (LOC76 - 1);
			res_384162 = 0;
			{
				while (1) {
					if (!(res_384162 <= HEX3Atmp_384159)) goto LA78;
					i_383404 = res_384162;
					track_379278(tracked, (*n).kindU.S6.Sons->data[i_383404]);
					res_384162 += 1;
				} LA78: ;
			}
		}
	}
	break;
	case ((NU8) 46):
	{
		track_379278(tracked, (*n).kindU.S6.Sons->data[0]);
		{
			if (!((gnotes_197305 &(IL64(1)<<(((((NU16) 251)- 230))&IL64(63))))!=0)) goto LA82;
			checkfieldaccess_376021((*tracked).Guards, n);
		}
		LA82: ;
	}
	break;
	case ((NU8) 106):
	{
		tracktrystmt_379285(tracked, n);
	}
	break;
	case ((NU8) 90):
	{
		trackpragmastmt_380276(tracked, n);
	}
	break;
	case ((NU8) 73):
	case ((NU8) 74):
	{
		track_379278(tracked, (*n).kindU.S6.Sons->data[1]);
		initvar_377695(tracked, (*n).kindU.S6.Sons->data[0], NIM_TRUE);
		invalidatefacts_371774((&(*tracked).Guards), (*n).kindU.S6.Sons->data[0]);
		track_379278(tracked, (*n).kindU.S6.Sons->data[0]);
		addasgnfact_375618((&(*tracked).Guards), (*n).kindU.S6.Sons->data[0], (*n).kindU.S6.Sons->data[1]);
		notnilcheck_381009(tracked, (*n).kindU.S6.Sons->data[1], (*(*n).kindU.S6.Sons->data[0]).Typ);
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		{
			tnode226816* child_383601;
			child_383601 = 0;
			{
				NI i_384174;
				NI HEX3Atmp_384176;
				NI LOC90;
				NI res_384178;
				i_384174 = 0;
				HEX3Atmp_384176 = 0;
				LOC90 = 0;
				LOC90 = len_227364(n);
				HEX3Atmp_384176 = (LOC90 - 1);
				res_384178 = 0;
				{
					while (1) {
						tnode226816* last;
						if (!(res_384178 <= HEX3Atmp_384176)) goto LA92;
						i_384174 = res_384178;
						child_383601 = (*n).kindU.S6.Sons->data[i_384174];
						last = lastson_227261(child_383601);
						{
							NIM_BOOL LOC95;
							LOC95 = 0;
							LOC95 = ((*child_383601).Kind == ((NU8) 35));
							if (!(LOC95)) goto LA96;
							LOC95 = !(((*last).Kind == ((NU8) 1)));
							LA96: ;
							if (!LOC95) goto LA97;
							track_379278(tracked, last);
							{
								NI i_383631;
								NI HEX3Atmp_384166;
								NI LOC100;
								NI res_384169;
								i_383631 = 0;
								HEX3Atmp_384166 = 0;
								LOC100 = 0;
								LOC100 = len_227364(child_383601);
								HEX3Atmp_384166 = (NI32)(LOC100 - 3);
								res_384169 = 0;
								{
									while (1) {
										if (!(res_384169 <= HEX3Atmp_384166)) goto LA102;
										i_383631 = res_384169;
										initvar_377695(tracked, (*child_383601).kindU.S6.Sons->data[i_383631], NIM_FALSE);
										addasgnfact_375618((&(*tracked).Guards), (*child_383601).kindU.S6.Sons->data[i_383631], last);
										notnilcheck_381009(tracked, last, (*(*child_383601).kindU.S6.Sons->data[i_383631]).Typ);
										res_384169 += 1;
									} LA102: ;
								}
							}
						}
						LA97: ;
						res_384178 += 1;
					} LA92: ;
				}
			}
		}
	}
	break;
	case ((NU8) 97):
	{
		trackcase_381617(tracked, n);
	}
	break;
	case ((NU8) 92):
	case ((NU8) 48):
	{
		trackif_382034(tracked, n);
	}
	break;
	case ((NU8) 112):
	case ((NU8) 127):
	{
		trackblock_382611(tracked, (*n).kindU.S6.Sons->data[1]);
	}
	break;
	case ((NU8) 96):
	{
		track_379278(tracked, (*n).kindU.S6.Sons->data[0]);
		{
			NIM_BOOL LOC109;
			LOC109 = 0;
			LOC109 = istrue_382730((*n).kindU.S6.Sons->data[0]);
			if (!LOC109) goto LA110;
			trackblock_382611(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_371349((&(*tracked).Guards), (*n).kindU.S6.Sons->data[0]);
			track_379278(tracked, (*n).kindU.S6.Sons->data[1]);
			(*tracked).Init = (TY344680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
			(*tracked).Guards = (tnodeseq226810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode226816*), oldfacts);
		}
		LA107: ;
	}
	break;
	case ((NU8) 94):
	case ((NU8) 95):
	{
		NI oldstate;
		oldstate = (*tracked).Init->Sup.len;
		{
			NI i_383849;
			NI HEX3Atmp_384180;
			NI LOC115;
			NI res_384183;
			i_383849 = 0;
			HEX3Atmp_384180 = 0;
			LOC115 = 0;
			LOC115 = len_227364(n);
			HEX3Atmp_384180 = (LOC115 - 1);
			res_384183 = 0;
			{
				while (1) {
					if (!(res_384183 <= HEX3Atmp_384180)) goto LA117;
					i_383849 = res_384183;
					track_379278(tracked, (*n).kindU.S6.Sons->data[i_383849]);
					res_384183 += 1;
				} LA117: ;
			}
		}
		(*tracked).Init = (TY344680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	}
	break;
	case ((NU8) 38):
	{
		NI oldfacts;
		track_379278(tracked, (*n).kindU.S6.Sons->data[0]);
		oldfacts = (*tracked).Guards->Sup.len;
		{
			NI i_383927;
			NI HEX3Atmp_384186;
			NI LOC120;
			NI res_384189;
			i_383927 = 0;
			HEX3Atmp_384186 = 0;
			LOC120 = 0;
			LOC120 = len_227364(n);
			HEX3Atmp_384186 = (LOC120 - 1);
			res_384189 = 1;
			{
				while (1) {
					tnode226816* x;
					if (!(res_384189 <= HEX3Atmp_384186)) goto LA122;
					i_383927 = res_384189;
					x = (*n).kindU.S6.Sons->data[i_383927];
					track_379278(tracked, x);
					{
						if (!(((*(*(*x).kindU.S6.Sons->data[0]).kindU.S4.Sym).Flags &(1<<((((NU8) 18))&31)))!=0)) goto LA125;
						adddiscriminantfact_375518((&(*tracked).Guards), x);
					}
					LA125: ;
					res_384189 += 1;
				} LA122: ;
			}
		}
		(*tracked).Guards = (tnodeseq226810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode226816*), oldfacts);
	}
	break;
	case ((NU8) 91):
	{
		tnode226816* pragmalist;
		NI oldlocked;
		NI16 oldlocklevel;
		tnode226816* LOC137;
		pragmalist = (*n).kindU.S6.Sons->data[0];
		oldlocked = (*tracked).Locked->Sup.len;
		oldlocklevel = (*tracked).Currlocklevel;
		{
			NI i_384050;
			NI HEX3Atmp_384192;
			NI LOC129;
			NI res_384195;
			i_384050 = 0;
			HEX3Atmp_384192 = 0;
			LOC129 = 0;
			LOC129 = len_227364(pragmalist);
			HEX3Atmp_384192 = (LOC129 - 1);
			res_384195 = 0;
			{
				while (1) {
					if (!(res_384195 <= HEX3Atmp_384192)) goto LA131;
					i_384050 = res_384195;
					{
						NU8 LOC134;
						LOC134 = 0;
						LOC134 = whichpragma_263304((*pragmalist).kindU.S6.Sons->data[i_384050]);
						if (!(LOC134 == ((NU8) 191))) goto LA135;
						locklocations_377197(tracked, (*pragmalist).kindU.S6.Sons->data[i_384050]);
					}
					LA135: ;
					res_384195 += 1;
				} LA131: ;
			}
		}
		LOC137 = 0;
		LOC137 = lastson_227261(n);
		track_379278(tracked, LOC137);
		(*tracked).Locked = (tnodeseq226810*) setLengthSeq(&((*tracked).Locked)->Sup, sizeof(tnode226816*), 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_384125;
			NI HEX3Atmp_384198;
			NI LOC141;
			NI res_384201;
			i_384125 = 0;
			HEX3Atmp_384198 = 0;
			LOC141 = 0;
			LOC141 = safelen_227424(n);
			HEX3Atmp_384198 = (LOC141 - 1);
			res_384201 = 0;
			{
				while (1) {
					if (!(res_384201 <= HEX3Atmp_384198)) goto LA143;
					i_384125 = res_384201;
					track_379278(tracked, (*n).kindU.S6.Sons->data[i_384125]);
					res_384201 += 1;
				} LA143: ;
			}
		}
	}
	break;
	}
}

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

N_NIMCALL(void, trackproc_385148)(tsym226846* s, tnode226816* body) {
	tnode226816* effects;
	teffects377008 t;
	tnode226816* p;
	tnode226816* raisesspec;
	tnode226816* tagsspec;
	effects = (*(*(*s).Typ).N).kindU.S6.Sons->data[0];
	{
		NimStringDesc* LOC5;
		if (!!(((*effects).Kind == ((NU8) 151)))) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_199126(TMP3197);
		internalerror_199006(LOC5);
	}
	LA3: ;
	{
		if (!(((*s).Flags &(1<<((((NU8) 4))&31)))!=0)) goto LA8;
		goto BeforeRet;
	}
	LA8: ;
	{
		NI LOC12;
		LOC12 = 0;
		LOC12 = len_227364(effects);
		if (!(LOC12 == 4)) goto LA13;
		goto BeforeRet;
	}
	LA13: ;
	memset((void*)(&t), 0, sizeof(t));
	initeffects_384990(effects, s, (&t));
	track_379278((&t), body);
	{
		NIM_BOOL LOC17;
		NIM_BOOL LOC18;
		NIM_BOOL LOC19;
		tsym226846* res;
		LOC17 = 0;
		LOC18 = 0;
		LOC19 = 0;
		LOC19 = isemptytype_233990((*(*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_377951(t.Init->data, t.Init->Sup.len, (*res).Sup.Id);
			if (!!(LOC26)) goto LA27;
			message_198976((*body).Info, ((NU16) 250), ((NimStringDesc*) &TMP3225));
		}
		LA27: ;
	}
	LA22: ;
	p = (*(*s).Ast).kindU.S6.Sons->data[4];
	raisesspec = effectspec_380338(p, ((NU8) 152));
	{
		if (!!(raisesspec == 0)) goto LA31;
		checkraisesspec_384352(raisesspec, t.Exc, ((NimStringDesc*) &TMP3147), NIM_TRUE, subtyperelation_384302);
		asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[0]), raisesspec);
	}
	LA31: ;
	tagsspec = effectspec_380338(p, ((NU8) 157));
	{
		if (!!(tagsspec == 0)) goto LA35;
		checkraisesspec_384352(tagsspec, t.Tags, ((NimStringDesc*) &TMP3151), NIM_FALSE, subtyperelation_384302);
		asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[3]), tagsspec);
	}
	LA35: ;
	{
		if (!((gglobaloptions_170118 &(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_170118 &(1<<((((NU8) 21))&31)))!=0)) goto LA49;
				LOC51 = 0;
				LOC51 = nsuFormatSingleElem(((NimStringDesc*) &TMP3226), (*(*s).Name).S);
				localerror_198966((*s).Info, LOC51);
			}
			goto LA47;
			LA49: ;
			{
				localerror_198955((*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: ;
		{
			TY170969 LOC64;
			NimStringDesc* LOC65;
			if (!((*(*s).Typ).Locklevel < t.Maxlocklevel)) goto LA62;
			memset((void*)LOC64, 0, sizeof(LOC64));
			LOC64[0] = HEX24_229488((*(*s).Typ).Locklevel);
			LOC64[1] = HEX24_229488(t.Maxlocklevel);
			LOC65 = 0;
			LOC65 = nsuFormatOpenArray(((NimStringDesc*) &TMP3227), LOC64, 2);
			localerror_198966((*s).Info, LOC65);
		}
		goto LA57;
		LA62: ;
		LA57: ;
	}
	LA39: ;
	BeforeRet: ;
}

N_NIMCALL(void, seteffectsforproctype_384811)(ttype226852* t, tnode226816* n) {
	tnode226816* effects;
	tnode226816* raisesspec;
	tnode226816* 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_199126(TMP3253);
		internalerror_199006(LOC7);
	}
	LA5: ;
	raisesspec = effectspec_380338(n, ((NU8) 152));
	tagsspec = effectspec_380338(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_227364(effects);
			if (!!((LOC16 == 0))) goto LA17;
			LOC19 = 0;
			LOC19 = HEX24_199126(TMP3254);
			internalerror_199006(LOC19);
		}
		LA17: ;
		if ((*effects).kindU.S6.Sons) nimGCunrefNoCycle((*effects).kindU.S6.Sons);
		(*effects).kindU.S6.Sons = (tnodeseq226810*) newSeqRC1((&NTI226810), 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_385410)(tsym226846* module, tnode226816* n) {
	tnode226816* effects;
	tnodeseq226810* LOC5;
	teffects377008 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 = (tnodeseq226810*) newSeq((&NTI226810), 0);
	effects = newnode_229207(((NU8) 151), (*n).Info, LOC5, NIM_NIL);
	memset((void*)(&t), 0, sizeof(t));
	initeffects_384990(effects, module, (&t));
	t.Istoplevel = NIM_TRUE;
	track_379278((&t), n);
	BeforeRet: ;
}

N_NIMCALL(tnode226816*, documenteffect_380452)(tnode226816* n, tnode226816* x, NU8 effecttype, NI idx) {
	tnode226816* result;
	tnode226816* spec;
	result = 0;
	spec = effectspec_380338(x, effecttype);
	{
		tsym226846* s;
		tnode226816* actual;
		tnode226816* real;
		tnode226816* effects;
		NI LOC10;
		tnodeseq226810* LOC23;
		TY292287 LOC24;
		tident201021* 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_227364(actual);
			if (!!((LOC7 == 4))) goto LA8;
			goto BeforeRet;
		}
		LA8: ;
		real = (*actual).kindU.S6.Sons->data[idx];
		LOC10 = 0;
		LOC10 = len_227364(real);
		effects = newnodei_229007(((NU8) 41), (*n).Info, LOC10);
		{
			NI i_380552;
			NI HEX3Atmp_380601;
			NI LOC12;
			NI res_380604;
			i_380552 = 0;
			HEX3Atmp_380601 = 0;
			LOC12 = 0;
			LOC12 = len_227364(real);
			HEX3Atmp_380601 = (LOC12 - 1);
			res_380604 = 0;
			{
				while (1) {
					NimStringDesc* t;
					tnode226816* LOC15;
					tident201021* LOC21;
					tnode226816* LOC22;
					if (!(res_380604 <= HEX3Atmp_380601)) goto LA14;
					i_380552 = res_380604;
					LOC15 = 0;
					LOC15 = HEX5BHEX5D_227698(real, i_380552);
					t = typetostring_264031((*LOC15).Typ, ((NU8) 0));
					{
						NIM_BOOL LOC18;
						LOC18 = 0;
						LOC18 = nsuStartsWith(t, ((NimStringDesc*) &TMP4637));
						if (!LOC18) goto LA19;
						t = copyStr(t, 4);
					}
					LA19: ;
					LOC21 = 0;
					LOC21 = getident_201472(t);
					asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[i_380552]), newidentnode_227125(LOC21, (*n).Info));
					LOC22 = 0;
					LOC22 = HEX5BHEX5D_227698(real, i_380552);
					asgnRefNoCycle((void**) (&(*(*effects).kindU.S6.Sons->data[i_380552]).Typ), (*LOC22).Typ);
					res_380604 += 1;
				} LA14: ;
			}
		}
		LOC23 = 0;
		LOC23 = (tnodeseq226810*) newSeq((&NTI226810), 2);
		memset((void*)LOC24, 0, sizeof(LOC24));
		LOC25 = 0;
		LOC25 = getident_201472(specialwords_205332[(effecttype)- 0]);
		LOC24[0] = newidentnode_227125(LOC25, (*n).Info);
		LOC24[1] = effects;
		asgnRefNoCycle((void**) (&LOC23->data[0]), LOC24[0]);
		asgnRefNoCycle((void**) (&LOC23->data[1]), LOC24[1]);
		result = newnode_229207(((NU8) 34), (*n).Info, LOC23, NIM_NIL);
	}
	LA3: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, documentraises_380621)(tnode226816* n) {
	tnode226816* pragmas;
	tnode226816* p1;
	tnode226816* 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_380452(n, pragmas, ((NU8) 152), 0);
	p2 = documenteffect_380452(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_227138(((NU8) 90), (*n).Info));
		}
		LA13: ;
		{
			if (!!((p1 == NIM_NIL))) goto LA17;
			add_227498((*n).kindU.S6.Sons->data[4], p1);
		}
		LA17: ;
		{
			if (!!((p2 == NIM_NIL))) goto LA21;
			add_227498((*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) {
}

