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

#include <string.h>
typedef struct tsym225846 tsym225846;
typedef struct tnode225816 tnode225816;
typedef struct tidobj200015 tidobj200015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct ttypeseq225848 ttypeseq225848;
typedef struct ttype225852 ttype225852;
typedef struct TGenericSeq TGenericSeq;
typedef struct tscope225840 tscope225840;
typedef struct TY225947 TY225947;
typedef struct tinstantiation225836 tinstantiation225836;
typedef struct tstrtable225820 tstrtable225820;
typedef struct tsymseq225818 tsymseq225818;
typedef struct tident200021 tident200021;
typedef struct tlineinfo195539 tlineinfo195539;
typedef struct tloc225830 tloc225830;
typedef struct trope177009 trope177009;
typedef struct tlib225834 tlib225834;
typedef struct NimStringDesc NimStringDesc;
typedef struct tnodeseq225810 tnodeseq225810;
typedef struct intset222056 intset222056;
typedef struct ttrunk222052 ttrunk222052;
typedef struct ttrunkseq222054 ttrunkseq222054;
typedef struct TY84945 TY84945;
typedef struct teffects376008 teffects376008;
typedef struct TY343680 TY343680;
typedef struct tcell45133 tcell45133;
typedef struct tcellseq45149 tcellseq45149;
typedef struct tgcheap47216 tgcheap47216;
typedef struct tcellset45145 tcellset45145;
typedef struct tpagedesc45141 tpagedesc45141;
typedef struct tmemregion27410 tmemregion27410;
typedef struct tsmallchunk26640 tsmallchunk26640;
typedef struct tllchunk27404 tllchunk27404;
typedef struct tbigchunk26642 tbigchunk26642;
typedef struct tintset26617 tintset26617;
typedef struct ttrunk26613 ttrunk26613;
typedef struct tavlnode27408 tavlnode27408;
typedef struct tgcstat47214 tgcstat47214;
typedef struct TY268080 TY268080;
typedef struct TY268081 TY268081;
typedef struct TY225936 TY225936;
typedef struct tlistentry127022 tlistentry127022;
typedef struct tbasechunk26638 tbasechunk26638;
typedef struct tfreecell26630 tfreecell26630;
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  tidobj200015  {
  TNimObject Sup;
NI Id;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  tstrtable225820  {
NI Counter;
tsymseq225818* Data;
};
struct  tlineinfo195539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
struct  tloc225830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype225852* T;
trope177009* R;
trope177009* Heaproot;
};
struct  tsym225846  {
  tidobj200015 Sup;
NU8 Kind;
union {
struct {ttypeseq225848* Typeinstcache;
tscope225840* Typscope;
} S1;
struct {TY225947* Procinstcache;
tscope225840* Scope;
} S2;
struct {TY225947* Usedgenerics;
tstrtable225820 Tab;
} S3;
struct {tsym225846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype225852* Typ;
tident200021* Name;
tlineinfo195539 Info;
tsym225846* Owner;
NU32 Flags;
tnode225816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc225830 Loc;
tlib225834* Annex;
tnode225816* Constraint;
};
struct  ttype225852  {
  tidobj200015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq225848* Sons;
tnode225816* N;
tsym225846* Owner;
tsym225846* Sym;
tsym225846* Destructor;
tsym225846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc225830 Loc;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  tnode225816  {
ttype225852* Typ;
tlineinfo195539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym225846* Sym;
} S4;
struct {tident200021* Ident;
} S5;
struct {tnodeseq225810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
typedef N_NIMCALL_PTR(NIM_BOOL, TY383358) (tnode225816* a, tnode225816* b);
struct  intset222056  {
NI Counter;
NI Max;
ttrunk222052* Head;
ttrunkseq222054* Data;
};
struct  tident200021  {
  tidobj200015 Sup;
NimStringDesc* S;
tident200021* Next;
NI H;
};
typedef NimStringDesc* TY169969[2];
struct TY84945 {
NimStringDesc* Field0;
NI Field1;
};
struct  teffects376008  {
tnode225816* Exc;
tnode225816* Tags;
NI Bottom;
NI Intrystmt;
tsym225846* Owner;
TY343680* Init;
tnodeseq225810* Guards;
tnodeseq225810* 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  tcell45133  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq45149  {
NI Len;
NI Cap;
tcell45133** D;
};
struct  tcellset45145  {
NI Counter;
NI Max;
tpagedesc45141* Head;
tpagedesc45141** Data;
};
typedef tsmallchunk26640* TY27422[512];
typedef ttrunk26613* ttrunkbuckets26615[256];
struct  tintset26617  {
ttrunkbuckets26615 Data;
};
struct  tmemregion27410  {
NI Minlargeobj;
NI Maxlargeobj;
TY27422 Freesmallchunks;
tllchunk27404* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk26642* Freechunkslist;
tintset26617 Chunkstarts;
tavlnode27408* Root;
tavlnode27408* Deleted;
tavlnode27408* Last;
tavlnode27408* Freeavlnodes;
};
struct  tgcstat47214  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap47216  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq45149 Zct;
tcellseq45149 Decstack;
tcellset45145 Cycleroots;
tcellseq45149 Tempstack;
NI Recgclock;
tmemregion27410 Region;
tgcstat47214 Stat;
};
typedef NU8 TY517462[20];
struct TY268081 {
NI Field0;
NI Field1;
};
typedef tnode225816* TY291286[2];
typedef NimStringDesc* TY204333[255];
struct  tscope225840  {
NI Depthlevel;
tstrtable225820 Symbols;
tnodeseq225810* Usingsyms;
tscope225840* Parent;
};
struct  tinstantiation225836  {
tsym225846* Sym;
ttypeseq225848* Concretetypes;
TY225936* Usedby;
};
struct  trope177009  {
  TNimObject Sup;
trope177009* Left;
trope177009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tlistentry127022  {
  TNimObject Sup;
tlistentry127022* Prev;
tlistentry127022* Next;
};
struct  tlib225834  {
  tlistentry127022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope177009* Name;
tnode225816* Path;
};
typedef NI TY26620[8];
struct  ttrunk222052  {
ttrunk222052* Next;
NI Key;
TY26620 Bits;
};
struct  tpagedesc45141  {
tpagedesc45141* Next;
NI Key;
TY26620 Bits;
};
struct  tbasechunk26638  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk26640  {
  tbasechunk26638 Sup;
tsmallchunk26640* Next;
tsmallchunk26640* Prev;
tfreecell26630* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk27404  {
NI Size;
NI Acc;
tllchunk27404* Next;
};
struct  tbigchunk26642  {
  tbasechunk26638 Sup;
tbigchunk26642* Next;
tbigchunk26642* Prev;
NI Align;
NF Data;
};
struct  ttrunk26613  {
ttrunk26613* Next;
NI Key;
TY26620 Bits;
};
typedef tavlnode27408* TY27414[2];
struct  tavlnode27408  {
TY27414 Link;
NI Key;
NI Upperbound;
NI Level;
};
struct  tfreecell26630  {
tfreecell26630* Next;
NI Zerofield;
};
struct ttypeseq225848 {
  TGenericSeq Sup;
  ttype225852* data[SEQ_DECL_SIZE];
};
struct TY225947 {
  TGenericSeq Sup;
  tinstantiation225836* data[SEQ_DECL_SIZE];
};
struct tsymseq225818 {
  TGenericSeq Sup;
  tsym225846* data[SEQ_DECL_SIZE];
};
struct tnodeseq225810 {
  TGenericSeq Sup;
  tnode225816* data[SEQ_DECL_SIZE];
};
struct ttrunkseq222054 {
  TGenericSeq Sup;
  ttrunk222052* data[SEQ_DECL_SIZE];
};
struct TY343680 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
struct TY268080 {
  TGenericSeq Sup;
  TY268081 data[SEQ_DECL_SIZE];
};
struct TY225936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
static N_INLINE(NI, len_226364)(tnode225816* n);
N_NIMCALL(tnode225816*, effectspec_379338)(tnode225816* n, NU8 effecttype);
static N_INLINE(NI, sonslen_226249)(tnode225816* n);
N_NIMCALL(NU8, whichpragma_262304)(tnode225816* n);
N_NIMCALL(tnode225816*, newnodei_226138)(NU8 kind, tlineinfo195539 info);
N_NIMCALL(void, add_226498)(tnode225816* father, tnode225816* son);
N_NIMCALL(void, checkraisesspec_383352)(tnode225816* spec, tnode225816* real, NimStringDesc* msg, NIM_BOOL hints, TY383358 effectpredicate);
N_NIMCALL(void, initintset_222950)(intset222056* Result);
N_NOINLINE(void, chckNil)(void* p);
static N_INLINE(tnode225816*, HEX5BHEX5D_226698)(tnode225816* n, NI i);
N_NIMCALL(void, incl_222869)(intset222056* s, NI key);
N_NIMCALL(void, pushinfocontext_196930)(tlineinfo195539 info);
N_NIMCALL(void, localerror_197955)(tlineinfo195539 info, NU16 msg, NimStringDesc* arg);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, typetostring_263031)(ttype225852* typ, NU8 prefer);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(void, popinfocontext_196957)(void);
N_NIMCALL(NIM_BOOL, contains_222837)(intset222056* s, NI key);
N_NIMCALL(void, message_197976)(tlineinfo195539 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_250058)(tnode225816* n, NU8 renderflags);
N_NIMCALL(NIM_BOOL, subtyperelation_383302)(tnode225816* spec, tnode225816* real);
N_NIMCALL(NI, safeinheritancediff_273032)(ttype225852* a, ttype225852* b);
N_NIMCALL(ttype225852*, exctype_377371)(tnode225816* n);
N_NIMCALL(ttype225852*, getebase_377345)(void);
N_NIMCALL(tsym225846*, getcompilerproc_282036)(NimStringDesc* name);
N_NIMCALL(ttype225852*, systypefromname_282261)(NimStringDesc* name);
N_NIMCALL(ttype225852*, skiptypes_230245)(ttype225852* t, NU64 kinds);
N_NIMCALL(void, localerror_197966)(tlineinfo195539 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_228488)(NI16 x);
N_NIMCALL(void, internalerror_198006)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_198126)(TY84945 x_198130);
N_NIMCALL(void, initeffects_383990)(tnode225816* effects, tsym225846* s, teffects376008* t);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(tcell45133*, usrtocell_48846)(void* usr);
static N_INLINE(void, rtladdzct_50404)(tcell45133* c);
N_NOINLINE(void, addzct_48817)(tcellseq45149* s, tcell45133* 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_378278)(teffects376008* tracked, tnode225816* n);
N_NIMCALL(void, usevar_376930)(teffects376008* a, tnode225816* n);
N_NIMCALL(NIM_BOOL, islocalvar_376069)(teffects376008* a, tsym225846* s);
static N_INLINE(NIM_BOOL, contains_376951)(NI* a_376957, NI a_376957Len0, NI item_376960);
static N_INLINE(NI, find_376963)(NI* a_376968, NI a_376968Len0, NI item_376970);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, guardglobal_376264)(teffects376008* a, tnode225816* n, tsym225846* guard);
static N_INLINE(NIM_BOOL, isgcedmem_230276)(ttype225852* t);
N_NIMCALL(void, warnaboutgcunsafe_376921)(tnode225816* n);
N_NIMCALL(void, addeffect_377460)(teffects376008* a, tnode225816* e, NIM_BOOL uselineinfo);
N_NIMCALL(NIM_BOOL, sametype_268351)(ttype225852* a, ttype225852* b, NU8 flags);
N_NIMCALL(NIM_BOOL, HEX3DHEX3D_197579)(tlineinfo195539 a, tlineinfo195539 b);
N_NIMCALL(void, throws_377309)(tnode225816* tracked, tnode225816* n);
static N_INLINE(NI, safelen_226424)(tnode225816* n);
N_NIMCALL(void, mergelocklevels_379904)(teffects376008* tracked, tnode225816* n, NI16 locklevel);
N_NIMCALL(NI16, getlocklevel_379844)(tsym225846* s);
N_NIMCALL(void, propagateeffects_379918)(teffects376008* tracked, tnode225816* n, tsym225846* s);
N_NIMCALL(void, mergeeffects_377713)(teffects376008* a, tnode225816* b, tnode225816* comesfrom);
N_NIMCALL(tnode225816*, createraise_377391)(tnode225816* n);
N_NIMCALL(tnode225816*, newnode_226090)(NU8 kind);
N_NIMCALL(void, mergetags_377774)(teffects376008* a, tnode225816* b, tnode225816* comesfrom);
N_NIMCALL(void, addtag_377655)(teffects376008* a, tnode225816* e, NIM_BOOL uselineinfo);
N_NIMCALL(tnode225816*, createtag_377412)(tnode225816* n);
N_NIMCALL(NIM_BOOL, isforwardedproc_379230)(tnode225816* n);
N_NIMCALL(NIM_BOOL, isindirectcall_379113)(tnode225816* n, tsym225846* owner);
N_NIMCALL(void, assumetheworst_380127)(teffects376008* tracked, tnode225816* n, ttype225852* op);
N_NIMCALL(NIM_BOOL, importedfromc_379798)(tnode225816* n);
N_NIMCALL(void, trackoperand_380212)(teffects376008* tracked, tnode225816* n, ttype225852* paramtype);
N_NIMCALL(tnode225816*, skipconvandclosure_235305)(tnode225816* n);
N_NIMCALL(tnode225816*, skipconv_273732)(tnode225816* n);
N_NIMCALL(NIM_BOOL, isownedprocvar_380139)(tnode225816* n, tsym225846* owner);
N_NIMCALL(void, notnilcheck_380009)(teffects376008* tracked, tnode225816* n_380012, ttype225852* paramtype);
N_NIMCALL(NIM_BOOL, containsnode_232212)(tnode225816* n, TY517462 kinds);
N_NIMCALL(NU8, impliesnotnil_373055)(tnodeseq225810* facts, tnode225816* arg);
N_NIMCALL(ttype225852*, paramtype_381809)(ttype225852* op, NI i);
N_NIMCALL(NI, len_230005)(ttype225852* n);
N_NIMCALL(void, initvarvianew_376852)(teffects376008* a, tnode225816* n);
N_NIMCALL(void, initvar_376695)(teffects376008* a, tnode225816* n, NIM_BOOL volatilecheck);
static N_INLINE(void, makevolatile_376640)(teffects376008* a, tsym225846* s);
N_NIMCALL(tsym225846*, getmodule_235243)(tsym225846* s);
N_NIMCALL(void, guarddotaccess_376343)(teffects376008* a, tnode225816* n);
N_NIMCALL(tsym225846*, lookupinrecord_235236)(tnode225816* n, tident200021* field);
N_NIMCALL(tnode225816*, newnodei_228007)(NU8 kind, tlineinfo195539 info, NI children);
N_NIMCALL(tnode225816*, newsymnode_226132)(tsym225846* sym);
N_NIMCALL(NIM_BOOL, sametree_370425)(tnode225816* a, tnode225816* b);
N_NIMCALL(void, checkfieldaccess_375021)(tnodeseq225810* m, tnode225816* n);
N_NIMCALL(void, tracktrystmt_378285)(teffects376008* tracked, tnode225816* n);
N_NIMCALL(void, addtointersection_377217)(TY268080** inter, NI s);
N_NIMCALL(void, catchesall_378214)(teffects376008* tracked);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, catches_377890)(teffects376008* tracked, ttype225852* e_377893);
N_NIMCALL(void, trackpragmastmt_379276)(teffects376008* tracked, tnode225816* n);
N_NIMCALL(void, listeffects_377835)(teffects376008* a);
N_NIMCALL(void, invalidatefacts_370774)(tnodeseq225810** m, tnode225816* n);
N_NIMCALL(void, addasgnfact_374618)(tnodeseq225810** m, tnode225816* key, tnode225816* value);
static N_INLINE(tnode225816*, lastson_226261)(tnode225816* n);
N_NIMCALL(void, trackcase_380617)(teffects376008* tracked, tnode225816* n);
N_NIMCALL(NIM_BOOL, interestingcaseexpr_368395)(tnode225816* m);
N_NIMCALL(void, addcasebranchfacts_374755)(tnodeseq225810** m, tnode225816* n, NI i);
N_NIMCALL(NIM_BOOL, breaksblock_380521)(tnode225816* n);
N_NIMCALL(void, trackif_381034)(teffects376008* tracked, tnode225816* n);
N_NIMCALL(void, addfact_370349)(tnodeseq225810** m, tnode225816* n_370353);
N_NIMCALL(void, addfactneg_370396)(tnodeseq225810** m, tnode225816* n_370400);
N_NIMCALL(void, trackblock_381611)(teffects376008* tracked, tnode225816* n);
N_NIMCALL(NIM_BOOL, hassubnodewith_226308)(tnode225816* n, NU8 kind);
N_NIMCALL(NIM_BOOL, istrue_381730)(tnode225816* n);
N_NIMCALL(void, adddiscriminantfact_374518)(tnodeseq225810** m, tnode225816* n);
N_NIMCALL(void, locklocations_376197)(teffects376008* a, tnode225816* pragma);
N_NIMCALL(NI16, getlocklevel_376123)(ttype225852* t_376125);
static N_INLINE(NIM_BOOL, isemptytype_232991)(ttype225852* t);
N_NIMCALL(tnode225816*, newnode_228207)(NU8 kind, tlineinfo195539 info, tnodeseq225810* sons, ttype225852* typ);
N_NIMCALL(tnode225816*, documenteffect_379452)(tnode225816* n, tnode225816* 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(tnode225816*, newidentnode_226125)(tident200021* ident, tlineinfo195539 info);
N_NIMCALL(tident200021*, getident_200472)(NimStringDesc* identifier);
STRING_LITERAL(TMP3142, "can raise an unlisted exception: ", 33);
STRING_LITERAL(TMP3143, "Exception", 9);
STRING_LITERAL(TMP3144, "Exception", 9);
STRING_LITERAL(TMP3145, "E_Base", 6);
STRING_LITERAL(TMP3146, "can have an unlisted effect: ", 29);
STRING_LITERAL(TMP3147, "base method is GC-safe, but \'$1\' is not", 39);
STRING_LITERAL(TMP3148, "base method has lock level $1, but dispatcher has $2", 52);
STRING_LITERAL(TMP3193, "compiler/sempass2.nim", 21);
NIM_CONST TY84945 TMP3192 = {((NimStringDesc*) &TMP3193),
824}
;
STRING_LITERAL(TMP3194, "unguarded access: ", 18);
STRING_LITERAL(TMP3195, "expected lock level < ", 22);
STRING_LITERAL(TMP3196, " but got lock level ", 20);
STRING_LITERAL(TMP3197, "RootEffect", 10);
STRING_LITERAL(TMP3198, "RootEffect", 10);
STRING_LITERAL(TMP3199, "TEffect", 7);
NIM_CONST TY84945 TMP3200 = {((NimStringDesc*) &TMP3193),
489}
;
static NIM_CONST TY517462 TMP3201 = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00,
0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TMP3213, "cannot prove \'$1\' is not nil", 28);
STRING_LITERAL(TMP3214, "\'$1\' is provably nil", 20);
STRING_LITERAL(TMP3215, "invalid guard field: ", 21);
STRING_LITERAL(TMP3216, "locks pragma without argument", 29);
STRING_LITERAL(TMP3217, "invalid lock level: ", 20);
STRING_LITERAL(TMP3218, "multi-lock requires the same static lock level for every operan"
"d", 64);
STRING_LITERAL(TMP3219, "invalid nested locking", 22);
STRING_LITERAL(TMP3220, "result", 6);
STRING_LITERAL(TMP3221, "\'$1\' is not GC-safe", 19);
STRING_LITERAL(TMP3222, "declared lock level is $1, but real lock level is $2", 52);
NIM_CONST TY84945 TMP3248 = {((NimStringDesc*) &TMP3193),
797}
;
NIM_CONST TY84945 TMP3249 = {((NimStringDesc*) &TMP3193),
803}
;
STRING_LITERAL(TMP4632, "ref ", 4);
extern NIM_CONST TY204333 specialwords_204332;
extern TNimType NTI225810; /* TNodeSeq */
extern tgcheap47216 gch_47244;
extern TNimType NTI343680; /* seq[int] */
extern NU64 gnotes_196302;
extern NU8 gcmd_169120;
extern TNimType NTI268080; /* seq[tuple[a: int, b: int]] */
extern NU32 gglobaloptions_169118;

static N_INLINE(NI, len_226364)(tnode225816* 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_226249)(tnode225816* 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(tnode225816*, effectspec_379338)(tnode225816* n, NU8 effecttype) {
	tnode225816* result;
	result = 0;
	{
		NI i_379355;
		NI HEX3Atmp_379432;
		NI LOC2;
		NI res_379435;
		i_379355 = 0;
		HEX3Atmp_379432 = 0;
		LOC2 = 0;
		LOC2 = sonslen_226249(n);
		HEX3Atmp_379432 = (NI64)(LOC2 - 1);
		res_379435 = 0;
		{
			while (1) {
				tnode225816* it;
				if (!(res_379435 <= HEX3Atmp_379432)) goto LA4;
				i_379355 = res_379435;
				it = (*n).kindU.S6.Sons->data[i_379355];
				{
					NIM_BOOL LOC7;
					NU8 LOC9;
					LOC7 = 0;
					LOC7 = ((*it).Kind == ((NU8) 34));
					if (!(LOC7)) goto LA8;
					LOC9 = 0;
					LOC9 = whichpragma_262304(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_226138(((NU8) 39), (*result).Info);
						add_226498(result, (*it).kindU.S6.Sons->data[1]);
					}
					LA14: ;
					goto BeforeRet;
				}
				LA10: ;
				res_379435 += 1;
			} LA4: ;
		}
	}
	BeforeRet: ;
	return result;
}

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

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

N_NIMCALL(void, checkraisesspec_383352)(tnode225816* spec, tnode225816* real, NimStringDesc* msg, NIM_BOOL hints, TY383358 effectpredicate) {
	intset222056 used;
	memset((void*)(&used), 0, sizeof(used));
	chckNil((void*)(&used));
	memset((void*)(&used), 0, sizeof(used));
	initintset_222950((&used));
	{
		tnode225816* r_383364;
		r_383364 = 0;
		{
			NI i_383421;
			NI HEX3Atmp_383423;
			NI LOC3;
			NI res_383425;
			i_383421 = 0;
			HEX3Atmp_383423 = 0;
			LOC3 = 0;
			LOC3 = len_226364(real);
			HEX3Atmp_383423 = (LOC3 - 1);
			res_383425 = 0;
			{
				while (1) {
					if (!(res_383425 <= HEX3Atmp_383423)) goto LA5;
					i_383421 = res_383425;
					r_383364 = (*real).kindU.S6.Sons->data[i_383421];
					{
						NimStringDesc* LOC17;
						NimStringDesc* LOC18;
						{
							NI s_383387;
							NI HEX3Atmp_383413;
							NI LOC8;
							NI res_383416;
							s_383387 = 0;
							HEX3Atmp_383413 = 0;
							LOC8 = 0;
							LOC8 = len_226364(spec);
							HEX3Atmp_383413 = (LOC8 - 1);
							res_383416 = 0;
							{
								while (1) {
									if (!(res_383416 <= HEX3Atmp_383413)) goto LA10;
									s_383387 = res_383416;
									{
										tnode225816* LOC13;
										NIM_BOOL LOC14;
										LOC13 = 0;
										LOC13 = HEX5BHEX5D_226698(spec, s_383387);
										LOC14 = 0;
										LOC14 = effectpredicate(LOC13, r_383364);
										if (!LOC14) goto LA15;
										incl_222869((&used), s_383387);
										goto LA6;
									}
									LA15: ;
									res_383416 += 1;
								} LA10: ;
							}
						}
						pushinfocontext_196930((*spec).Info);
						LOC17 = 0;
						LOC18 = 0;
						LOC18 = typetostring_263031((*r_383364).Typ, ((NU8) 0));
						LOC17 = rawNewString(msg->Sup.len + LOC18->Sup.len + 0);
appendString(LOC17, msg);
appendString(LOC17, LOC18);
						localerror_197955((*r_383364).Info, ((NU16) 4), LOC17);
						popinfocontext_196957();
					} LA6: ;
					res_383425 += 1;
				} LA5: ;
			}
		}
	}
	{
		if (!hints) goto LA21;
		{
			NI s_383410;
			NI HEX3Atmp_383427;
			NI LOC24;
			NI res_383430;
			s_383410 = 0;
			HEX3Atmp_383427 = 0;
			LOC24 = 0;
			LOC24 = len_226364(spec);
			HEX3Atmp_383427 = (LOC24 - 1);
			res_383430 = 0;
			{
				while (1) {
					if (!(res_383430 <= HEX3Atmp_383427)) goto LA26;
					s_383410 = res_383430;
					{
						NIM_BOOL LOC29;
						tnode225816* LOC32;
						tnode225816* LOC33;
						NimStringDesc* LOC34;
						LOC29 = 0;
						LOC29 = contains_222837((&used), s_383410);
						if (!!(LOC29)) goto LA30;
						LOC32 = 0;
						LOC32 = HEX5BHEX5D_226698(spec, s_383410);
						LOC33 = 0;
						LOC33 = HEX5BHEX5D_226698(spec, s_383410);
						LOC34 = 0;
						LOC34 = rendertree_250058(LOC33, 0);
						message_197976((*LOC32).Info, ((NU16) 262), LOC34);
					}
					LA30: ;
					res_383430 += 1;
				} LA26: ;
			}
		}
	}
	LA21: ;
}

N_NIMCALL(ttype225852*, getebase_377345)(void) {
	ttype225852* result;
	result = 0;
	{
		tsym225846* LOC3;
		LOC3 = 0;
		LOC3 = getcompilerproc_282036(((NimStringDesc*) &TMP3143));
		if (!!((LOC3 == NIM_NIL))) goto LA4;
		result = systypefromname_282261(((NimStringDesc*) &TMP3144));
	}
	goto LA1;
	LA4: ;
	{
		result = systypefromname_282261(((NimStringDesc*) &TMP3145));
	}
	LA1: ;
	return result;
}

N_NIMCALL(ttype225852*, exctype_377371)(tnode225816* n) {
	ttype225852* result;
	ttype225852* t;
	result = 0;
	{
		if (!((*n).Kind == ((NU8) 1))) goto LA3;
		t = getebase_377345();
	}
	goto LA1;
	LA3: ;
	{
		t = (*n).Typ;
	}
	LA1: ;
	result = skiptypes_230245(t, IL64(211106247215360));
	return result;
}

N_NIMCALL(NIM_BOOL, subtyperelation_383302)(tnode225816* spec, tnode225816* real) {
	NIM_BOOL result;
	ttype225852* LOC1;
	NI LOC2;
	result = 0;
	LOC1 = 0;
	LOC1 = exctype_377371(real);
	LOC2 = 0;
	LOC2 = safeinheritancediff_273032(LOC1, (*spec).Typ);
	result = (LOC2 <= 0);
	return result;
}

N_NIMCALL(void, checkmethodeffects_383471)(tsym225846* disp, tsym225846* branch) {
	tnode225816* actual;
	tnode225816* p;
	tnode225816* raisesspec;
	tnode225816* tagsspec;
	actual = (*(*(*branch).Typ).N).kindU.S6.Sons->data[0];
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = len_226364(actual);
		if (!!((LOC3 == 4))) goto LA4;
		goto BeforeRet;
	}
	LA4: ;
	p = (*(*disp).Ast).kindU.S6.Sons->data[4];
	raisesspec = effectspec_379338(p, ((NU8) 152));
	{
		if (!!(raisesspec == 0)) goto LA8;
		checkraisesspec_383352(raisesspec, (*actual).kindU.S6.Sons->data[0], ((NimStringDesc*) &TMP3142), NIM_FALSE, subtyperelation_383302);
	}
	LA8: ;
	tagsspec = effectspec_379338(p, ((NU8) 157));
	{
		if (!!(tagsspec == 0)) goto LA12;
		checkraisesspec_383352(tagsspec, (*actual).kindU.S6.Sons->data[3], ((NimStringDesc*) &TMP3146), NIM_FALSE, subtyperelation_383302);
	}
	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*) &TMP3147), (*(*branch).Name).S);
		localerror_197966((*branch).Info, LOC20);
	}
	LA18: ;
	{
		TY169969 LOC25;
		NimStringDesc* LOC26;
		if (!((*(*disp).Typ).Locklevel < (*(*branch).Typ).Locklevel)) goto LA23;
		memset((void*)LOC25, 0, sizeof(LOC25));
		LOC25[0] = HEX24_228488((*(*branch).Typ).Locklevel);
		LOC25[1] = HEX24_228488((*(*disp).Typ).Locklevel);
		LOC26 = 0;
		LOC26 = nsuFormatOpenArray(((NimStringDesc*) &TMP3148), LOC25, 2);
		message_197976((*branch).Info, ((NU16) 257), LOC26);
	}
	LA23: ;
	BeforeRet: ;
}

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

static N_INLINE(void, rtladdzct_50404)(tcell45133* c) {
	addzct_48817((&gch_47244.Zct), c);
}

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

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

N_NIMCALL(void, initeffects_383990)(tnode225816* effects, tsym225846* s, teffects376008* t) {
	if ((*effects).kindU.S6.Sons) nimGCunrefNoCycle((*effects).kindU.S6.Sons);
	(*effects).kindU.S6.Sons = (tnodeseq225810*) newSeqRC1((&NTI225810), 4);
	asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[0]), newnodei_226138(((NU8) 151), (*s).Info));
	asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[3]), newnodei_226138(((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), (TY343680*) newSeq((&NTI343680), 0));
	unsureAsgnRef((void**) (&(*t).Guards), (tnodeseq225810*) newSeq((&NTI225810), 0));
	unsureAsgnRef((void**) (&(*t).Locked), (tnodeseq225810*) newSeq((&NTI225810), 0));
}

N_NIMCALL(NIM_BOOL, islocalvar_376069)(teffects376008* a, tsym225846* 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_376963)(NI* a_376968, NI a_376968Len0, NI item_376970) {
	NI result;
	result = 0;
	{
		NI i_376983;
		NI i_376999;
		i_376983 = 0;
		i_376999 = 0;
		{
			while (1) {
				if (!(i_376999 < a_376968Len0)) goto LA3;
				i_376983 = a_376968[i_376999];
				{
					if (!(i_376983 == item_376970)) goto LA6;
					goto BeforeRet;
				}
				LA6: ;
				result += 1;
				i_376999 += 1;
			} LA3: ;
		}
	}
	result = -1;
	BeforeRet: ;
	return result;
}

static N_INLINE(NIM_BOOL, contains_376951)(NI* a_376957, NI a_376957Len0, NI item_376960) {
	NIM_BOOL result;
	NI LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = find_376963(a_376957, a_376957Len0, item_376960);
	result = (0 <= LOC1);
	goto BeforeRet;
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, guardglobal_376264)(teffects376008* a, tnode225816* n, tsym225846* guard) {
	{
		tnode225816* l_376281;
		tnodeseq225810* HEX3Atmp_376322;
		NI i_376325;
		NI l_376327;
		l_376281 = 0;
		HEX3Atmp_376322 = 0;
		HEX3Atmp_376322 = (*a).Locked;
		i_376325 = 0;
		l_376327 = HEX3Atmp_376322->Sup.len;
		{
			while (1) {
				if (!(i_376325 < l_376327)) goto LA3;
				l_376281 = HEX3Atmp_376322->data[i_376325];
				{
					NIM_BOOL LOC6;
					LOC6 = 0;
					LOC6 = ((*l_376281).Kind == ((NU8) 3));
					if (!(LOC6)) goto LA7;
					LOC6 = ((*l_376281).kindU.S4.Sym == guard);
					LA7: ;
					if (!LOC6) goto LA8;
					goto BeforeRet;
				}
				LA8: ;
				i_376325 += 1;
			} LA3: ;
		}
	}
	{
		NimStringDesc* LOC14;
		NimStringDesc* LOC15;
		if (!!((*a).Istoplevel)) goto LA12;
		LOC14 = 0;
		LOC15 = 0;
		LOC15 = rendertree_250058(n, 0);
		LOC14 = rawNewString(LOC15->Sup.len + 18);
appendString(LOC14, ((NimStringDesc*) &TMP3194));
appendString(LOC14, LOC15);
		localerror_197955((*n).Info, ((NU16) 4), LOC14);
	}
	LA12: ;
	BeforeRet: ;
}

static N_INLINE(NIM_BOOL, isgcedmem_230276)(ttype225852* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = ((289406976 &(IL64(1)<<(((*t).Kind)&IL64(63))))!=0);
	if (LOC1) goto LA2;
	LOC3 = 0;
	LOC3 = ((*t).Kind == ((NU8) 25));
	if (!(LOC3)) goto LA4;
	LOC3 = ((*t).Callconv == ((NU8) 8));
	LA4: ;
	LOC1 = LOC3;
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(void, warnaboutgcunsafe_376921)(tnode225816* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_250058(n, 0);
	message_197976((*n).Info, ((NU16) 253), LOC1);
}

N_NIMCALL(void, usevar_376930)(teffects376008* a, tnode225816* n) {
	tsym225846* s;
	s = (*n).kindU.S4.Sym;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = islocalvar_376069(a, s);
		if (!LOC3) goto LA4;
		{
			NIM_BOOL LOC8;
			LOC8 = 0;
			LOC8 = contains_376951((*a).Init->data, (*a).Init->Sup.len, (*s).Sup.Id);
			if (!!(LOC8)) goto LA9;
			{
				if (!!(((196608 & (*(*s).Typ).Flags) == 0))) goto LA13;
				message_197976((*n).Info, ((NU16) 250), (*(*s).Name).S);
			}
			goto LA11;
			LA13: ;
			{
				message_197976((*n).Info, ((NU16) 255), (*(*s).Name).S);
			}
			LA11: ;
			(*a).Init = (TY343680*) 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_376264(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_230276((*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_196302 &(IL64(1)<<(((((NU16) 253)- 230))&IL64(63))))!=0)) goto LA36;
				warnaboutgcunsafe_376921(n);
			}
			LA36: ;
			(*a).Gcunsafe = NIM_TRUE;
		}
		LA32: ;
	}
	LA20: ;
}

N_NIMCALL(void, throws_377309)(tnode225816* tracked, tnode225816* 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_226498(tracked, n);
	}
	LA5: ;
}

N_NIMCALL(void, addeffect_377460)(teffects376008* a, tnode225816* e, NIM_BOOL uselineinfo) {
	tnode225816* aa;
	aa = (*a).Exc;
	{
		NI i_377623;
		NI HEX3Atmp_377634;
		NI HEX3Atmp_377635;
		NI LOC2;
		NI res_377638;
		i_377623 = 0;
		HEX3Atmp_377634 = 0;
		HEX3Atmp_377635 = 0;
		HEX3Atmp_377634 = (*a).Bottom;
		LOC2 = 0;
		LOC2 = len_226364(aa);
		HEX3Atmp_377635 = (LOC2 - 1);
		res_377638 = HEX3Atmp_377634;
		{
			while (1) {
				if (!(res_377638 <= HEX3Atmp_377635)) goto LA4;
				i_377623 = res_377638;
				{
					tnode225816* LOC7;
					ttype225852* LOC8;
					ttype225852* LOC9;
					NIM_BOOL LOC10;
					LOC7 = 0;
					LOC7 = HEX5BHEX5D_226698(aa, i_377623);
					LOC8 = 0;
					LOC8 = exctype_377371(LOC7);
					LOC9 = 0;
					LOC9 = exctype_377371(e);
					LOC10 = 0;
					LOC10 = sametype_268351(LOC8, LOC9, 0);
					if (!LOC10) goto LA11;
					{
						NIM_BOOL LOC15;
						LOC15 = 0;
						LOC15 = !(uselineinfo);
						if (LOC15) goto LA16;
						LOC15 = (gcmd_169120 == ((NU8) 8));
						LA16: ;
						if (!LOC15) goto LA17;
						goto BeforeRet;
					}
					goto LA13;
					LA17: ;
					{
						tnode225816* LOC20;
						NIM_BOOL LOC21;
						LOC20 = 0;
						LOC20 = HEX5BHEX5D_226698(aa, i_377623);
						LOC21 = 0;
						LOC21 = HEX3DHEX3D_197579((*LOC20).Info, (*e).Info);
						if (!LOC21) goto LA22;
						goto BeforeRet;
					}
					goto LA13;
					LA22: ;
					LA13: ;
				}
				LA11: ;
				res_377638 += 1;
			} LA4: ;
		}
	}
	throws_377309((*a).Exc, e);
	BeforeRet: ;
}

static N_INLINE(NI, safelen_226424)(tnode225816* 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_379904)(teffects376008* tracked, tnode225816* 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_228488((*tracked).Currlocklevel);
			LOC11 = 0;
			LOC11 = HEX24_228488(locklevel);
			LOC9 = rawNewString(LOC10->Sup.len + LOC11->Sup.len + 42);
appendString(LOC9, ((NimStringDesc*) &TMP3195));
appendString(LOC9, LOC10);
appendString(LOC9, ((NimStringDesc*) &TMP3196));
appendString(LOC9, LOC11);
			localerror_197955((*n).Info, ((NU16) 4), LOC9);
		}
		LA7: ;
		(*tracked).Maxlocklevel = (((*tracked).Maxlocklevel >= locklevel) ? (*tracked).Maxlocklevel : locklevel);
	}
	LA3: ;
}

N_NIMCALL(NI16, getlocklevel_379844)(tsym225846* 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(tnode225816*, createraise_377391)(tnode225816* n) {
	tnode225816* result;
	result = 0;
	result = newnode_226090(((NU8) 4));
	asgnRefNoCycle((void**) (&(*result).Typ), getebase_377345());
	{
		if (!!(n == 0)) goto LA3;
		(*result).Info = (*n).Info;
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, mergeeffects_377713)(teffects376008* a, tnode225816* b, tnode225816* comesfrom) {
	{
		tnode225816* LOC5;
		if (!b == 0) goto LA3;
		LOC5 = 0;
		LOC5 = createraise_377391(comesfrom);
		addeffect_377460(a, LOC5, NIM_TRUE);
	}
	goto LA1;
	LA3: ;
	{
		{
			tnode225816* effect_377729;
			effect_377729 = 0;
			{
				NI i_377751;
				NI HEX3Atmp_377753;
				NI LOC9;
				NI res_377755;
				i_377751 = 0;
				HEX3Atmp_377753 = 0;
				LOC9 = 0;
				LOC9 = len_226364(b);
				HEX3Atmp_377753 = (LOC9 - 1);
				res_377755 = 0;
				{
					while (1) {
						if (!(res_377755 <= HEX3Atmp_377753)) goto LA11;
						i_377751 = res_377755;
						effect_377729 = (*b).kindU.S6.Sons->data[i_377751];
						addeffect_377460(a, effect_377729, !((comesfrom == NIM_NIL)));
						res_377755 += 1;
					} LA11: ;
				}
			}
		}
	}
	LA1: ;
}

N_NIMCALL(void, addtag_377655)(teffects376008* a, tnode225816* e, NIM_BOOL uselineinfo) {
	tnode225816* aa;
	aa = (*a).Tags;
	{
		NI i_377682;
		NI HEX3Atmp_377693;
		NI LOC2;
		NI res_377696;
		i_377682 = 0;
		HEX3Atmp_377693 = 0;
		LOC2 = 0;
		LOC2 = len_226364(aa);
		HEX3Atmp_377693 = (LOC2 - 1);
		res_377696 = 0;
		{
			while (1) {
				if (!(res_377696 <= HEX3Atmp_377693)) goto LA4;
				i_377682 = res_377696;
				{
					tnode225816* LOC7;
					ttype225852* LOC8;
					ttype225852* LOC9;
					NIM_BOOL LOC10;
					LOC7 = 0;
					LOC7 = HEX5BHEX5D_226698(aa, i_377682);
					LOC8 = 0;
					LOC8 = skiptypes_230245((*LOC7).Typ, IL64(211106247215360));
					LOC9 = 0;
					LOC9 = skiptypes_230245((*e).Typ, IL64(211106247215360));
					LOC10 = 0;
					LOC10 = sametype_268351(LOC8, LOC9, 0);
					if (!LOC10) goto LA11;
					{
						NIM_BOOL LOC15;
						LOC15 = 0;
						LOC15 = !(uselineinfo);
						if (LOC15) goto LA16;
						LOC15 = (gcmd_169120 == ((NU8) 8));
						LA16: ;
						if (!LOC15) goto LA17;
						goto BeforeRet;
					}
					goto LA13;
					LA17: ;
					{
						tnode225816* LOC20;
						NIM_BOOL LOC21;
						LOC20 = 0;
						LOC20 = HEX5BHEX5D_226698(aa, i_377682);
						LOC21 = 0;
						LOC21 = HEX3DHEX3D_197579((*LOC20).Info, (*e).Info);
						if (!LOC21) goto LA22;
						goto BeforeRet;
					}
					goto LA13;
					LA22: ;
					LA13: ;
				}
				LA11: ;
				res_377696 += 1;
			} LA4: ;
		}
	}
	throws_377309((*a).Tags, e);
	BeforeRet: ;
}

N_NIMCALL(tnode225816*, createtag_377412)(tnode225816* n) {
	tnode225816* result;
	result = 0;
	result = newnode_226090(((NU8) 4));
	{
		tsym225846* LOC3;
		LOC3 = 0;
		LOC3 = getcompilerproc_282036(((NimStringDesc*) &TMP3197));
		if (!!((LOC3 == NIM_NIL))) goto LA4;
		asgnRefNoCycle((void**) (&(*result).Typ), systypefromname_282261(((NimStringDesc*) &TMP3198)));
	}
	goto LA1;
	LA4: ;
	{
		asgnRefNoCycle((void**) (&(*result).Typ), systypefromname_282261(((NimStringDesc*) &TMP3199)));
	}
	LA1: ;
	{
		if (!!(n == 0)) goto LA9;
		(*result).Info = (*n).Info;
	}
	LA9: ;
	return result;
}

N_NIMCALL(void, mergetags_377774)(teffects376008* a, tnode225816* b, tnode225816* comesfrom) {
	{
		tnode225816* LOC5;
		if (!b == 0) goto LA3;
		LOC5 = 0;
		LOC5 = createtag_377412(comesfrom);
		addtag_377655(a, LOC5, NIM_TRUE);
	}
	goto LA1;
	LA3: ;
	{
		{
			tnode225816* effect_377790;
			effect_377790 = 0;
			{
				NI i_377812;
				NI HEX3Atmp_377814;
				NI LOC9;
				NI res_377816;
				i_377812 = 0;
				HEX3Atmp_377814 = 0;
				LOC9 = 0;
				LOC9 = len_226364(b);
				HEX3Atmp_377814 = (LOC9 - 1);
				res_377816 = 0;
				{
					while (1) {
						if (!(res_377816 <= HEX3Atmp_377814)) goto LA11;
						i_377812 = res_377816;
						effect_377790 = (*b).kindU.S6.Sons->data[i_377812];
						addtag_377655(a, effect_377790, !((comesfrom == NIM_NIL)));
						res_377816 += 1;
					} LA11: ;
				}
			}
		}
	}
	LA1: ;
}

N_NIMCALL(void, propagateeffects_379918)(teffects376008* tracked, tnode225816* n, tsym225846* s) {
	tnode225816* pragma;
	tnode225816* spec;
	tnode225816* tagspec;
	NI16 LOC11;
	pragma = (*(*s).Ast).kindU.S6.Sons->data[4];
	spec = effectspec_379338(pragma, ((NU8) 152));
	mergeeffects_377713(tracked, spec, n);
	tagspec = effectspec_379338(pragma, ((NU8) 157));
	mergetags_377774(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_196302 &(IL64(1)<<(((((NU16) 253)- 230))&IL64(63))))!=0)) goto LA9;
			warnaboutgcunsafe_376921(n);
		}
		LA9: ;
		(*tracked).Gcunsafe = NIM_TRUE;
	}
	LA5: ;
	LOC11 = 0;
	LOC11 = getlocklevel_379844(s);
	mergelocklevels_379904(tracked, n, LOC11);
}

N_NIMCALL(NIM_BOOL, isforwardedproc_379230)(tnode225816* 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_379113)(tnode225816* n, tsym225846* 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_380127)(teffects376008* tracked, tnode225816* n, ttype225852* op) {
	tnode225816* LOC1;
	tnode225816* LOC2;
	NI16 locklevel;
	LOC1 = 0;
	LOC1 = createraise_377391(n);
	addeffect_377460(tracked, LOC1, NIM_TRUE);
	LOC2 = 0;
	LOC2 = createtag_377412(n);
	addtag_377655(tracked, LOC2, NIM_TRUE);
	{
		if (!((*op).Locklevel == ((NI16) -1))) goto LA5;
		locklevel = ((NI16) 1001);
	}
	goto LA3;
	LA5: ;
	{
		locklevel = (*op).Locklevel;
	}
	LA3: ;
	mergelocklevels_379904(tracked, n, locklevel);
}

N_NIMCALL(NIM_BOOL, importedfromc_379798)(tnode225816* 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_380139)(tnode225816* n, tsym225846* 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_380009)(teffects376008* tracked, tnode225816* n_380012, ttype225852* paramtype) {
	tnode225816* n;
	n = skipconv_273732(n_380012);
	{
		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_232212(n, TMP3201);
				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_373055((*tracked).Guards, n);
		switch (LOC25) {
		case ((NU8) 0):
		{
			NimStringDesc* LOC27;
			NimStringDesc* LOC28;
			LOC27 = 0;
			LOC27 = rendertree_250058(n, 0);
			LOC28 = 0;
			LOC28 = nsuFormatSingleElem(((NimStringDesc*) &TMP3213), LOC27);
			message_197976((*n).Info, ((NU16) 4), LOC28);
		}
		break;
		case ((NU8) 1):
		{
			NimStringDesc* LOC30;
			NimStringDesc* LOC31;
			LOC30 = 0;
			LOC30 = rendertree_250058(n, 0);
			LOC31 = 0;
			LOC31 = nsuFormatSingleElem(((NimStringDesc*) &TMP3214), LOC30);
			message_197976((*n).Info, ((NU16) 4), LOC31);
		}
		break;
		case ((NU8) 2):
		{
		}
		break;
		}
	}
	LA9: ;
	BeforeRet: ;
}

N_NIMCALL(void, trackoperand_380212)(teffects376008* tracked, tnode225816* n, ttype225852* paramtype) {
	tnode225816* a;
	ttype225852* op;
	a = skipconvandclosure_235305(n);
	op = (*a).Typ;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		tnode225816* effectlist;
		tnode225816* 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_198126(TMP3200);
			internalerror_198006(LOC13);
		}
		LA11: ;
		effectlist = (*(*op).N).kindU.S6.Sons->data[0];
		s = skipconv_273732(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_379918(tracked, n, (*s).kindU.S4.Sym);
		}
		goto LA14;
		LA18: ;
		{
			NI LOC21;
			LOC21 = 0;
			LOC21 = len_226364(effectlist);
			if (!(LOC21 == 0)) goto LA22;
			{
				NIM_BOOL LOC26;
				LOC26 = 0;
				LOC26 = isforwardedproc_379230(n);
				if (!LOC26) goto LA27;
				propagateeffects_379918(tracked, n, (*n).kindU.S4.Sym);
			}
			goto LA24;
			LA27: ;
			{
				NIM_BOOL LOC30;
				LOC30 = 0;
				LOC30 = isownedprocvar_380139(a, (*tracked).Owner);
				if (!!(LOC30)) goto LA31;
				assumetheworst_380127(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_380139(a, (*tracked).Owner);
				LOC35 = !(LOC37);
				LA36: ;
				if (!LOC35) goto LA38;
				{
					if (!((gnotes_196302 &(IL64(1)<<(((((NU16) 253)- 230))&IL64(63))))!=0)) goto LA42;
					warnaboutgcunsafe_376921(n);
				}
				LA42: ;
				(*tracked).Gcunsafe = NIM_TRUE;
			}
			LA38: ;
		}
		goto LA14;
		LA22: ;
		{
			mergeeffects_377713(tracked, (*effectlist).kindU.S6.Sons->data[0], n);
			mergetags_377774(tracked, (*effectlist).kindU.S6.Sons->data[3], n);
			{
				if (!((130 & (*op).Flags) == 0)) goto LA47;
				{
					if (!((gnotes_196302 &(IL64(1)<<(((((NU16) 253)- 230))&IL64(63))))!=0)) goto LA51;
					warnaboutgcunsafe_376921(n);
				}
				LA51: ;
				(*tracked).Gcunsafe = NIM_TRUE;
			}
			LA47: ;
		}
		LA14: ;
	}
	LA7: ;
	notnilcheck_380009(tracked, n, paramtype);
}

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

static N_INLINE(void, makevolatile_376640)(teffects376008* a, tsym225846* s) {
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC5;
		tsym225846* LOC7;
		LOC3 = 0;
		LOC3 = (0 < (*a).Intrystmt);
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = (gcmd_169120 == ((NU8) 2));
		if (LOC5) goto LA6;
		LOC7 = 0;
		LOC7 = getmodule_235243((*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_376695)(teffects376008* a, tnode225816* n, NIM_BOOL volatilecheck) {
	tsym225846* s;
	{
		if (!!(((*n).Kind == ((NU8) 3)))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	s = (*n).kindU.S4.Sym;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = islocalvar_376069(a, s);
		if (!LOC7) goto LA8;
		{
			if (!volatilecheck) goto LA12;
			makevolatile_376640(a, s);
		}
		LA12: ;
		{
			NI x_376811;
			TY343680* HEX3Atmp_376831;
			NI i_376834;
			NI l_376836;
			x_376811 = 0;
			HEX3Atmp_376831 = 0;
			HEX3Atmp_376831 = (*a).Init;
			i_376834 = 0;
			l_376836 = HEX3Atmp_376831->Sup.len;
			{
				while (1) {
					if (!(i_376834 < l_376836)) goto LA16;
					x_376811 = HEX3Atmp_376831->data[i_376834];
					{
						if (!(x_376811 == (*s).Sup.Id)) goto LA19;
						goto BeforeRet;
					}
					LA19: ;
					i_376834 += 1;
				} LA16: ;
			}
		}
		(*a).Init = (TY343680*) incrSeq(&((*a).Init)->Sup, sizeof(NI));
		(*a).Init->data[(*a).Init->Sup.len-1] = (*s).Sup.Id;
	}
	LA8: ;
	BeforeRet: ;
}

N_NIMCALL(void, initvarvianew_376852)(teffects376008* a, tnode225816* n) {
	tsym225846* 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_376695(a, n, NIM_TRUE);
	}
	goto LA5;
	LA7: ;
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = islocalvar_376069(a, s);
		if (!LOC10) goto LA11;
		makevolatile_376640(a, s);
	}
	goto LA5;
	LA11: ;
	LA5: ;
	BeforeRet: ;
}

N_NIMCALL(void, guarddotaccess_376343)(teffects376008* a, tnode225816* n) {
	tnode225816* ri;
	tsym225846* 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: ;
	{
		tsym225846* field;
		ttype225852* ty;
		if (!((*g).Kind == ((NU8) 0))) goto LA15;
		field = NIM_NIL;
		ty = skiptypes_230245((*(*n).kindU.S6.Sons->data[0]).Typ, IL64(211106247256320));
		{
			if (!((*ty).Kind == ((NU8) 18))) goto LA19;
			field = lookupinrecord_235236((*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_235236((*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_230245(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*) &TMP3215));
appendString(LOC38, (*(*g).Name).S);
			localerror_197955((*n).Info, ((NU16) 4), LOC38);
			goto BeforeRet;
		}
		LA36: ;
		g = field;
	}
	LA15: ;
	{
		tnode225816* dot;
		NimStringDesc* LOC51;
		NimStringDesc* LOC52;
		if (!((*g).Kind == ((NU8) 19))) goto LA41;
		dot = newnodei_228007(((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_226132(g));
		asgnRefNoCycle((void**) (&(*dot).Typ), (*g).Typ);
		{
			tnode225816* l_376609;
			tnodeseq225810* HEX3Atmp_376613;
			NI i_376616;
			NI l_376618;
			l_376609 = 0;
			HEX3Atmp_376613 = 0;
			HEX3Atmp_376613 = (*a).Locked;
			i_376616 = 0;
			l_376618 = HEX3Atmp_376613->Sup.len;
			{
				while (1) {
					if (!(i_376616 < l_376618)) goto LA45;
					l_376609 = HEX3Atmp_376613->data[i_376616];
					{
						NIM_BOOL LOC48;
						LOC48 = 0;
						LOC48 = sametree_370425(dot, l_376609);
						if (!LOC48) goto LA49;
						goto BeforeRet;
					}
					LA49: ;
					i_376616 += 1;
				} LA45: ;
			}
		}
		LOC51 = 0;
		LOC52 = 0;
		LOC52 = rendertree_250058(n, 0);
		LOC51 = rawNewString(LOC52->Sup.len + 18);
appendString(LOC51, ((NimStringDesc*) &TMP3194));
appendString(LOC51, LOC52);
		localerror_197955((*n).Info, ((NU16) 4), LOC51);
	}
	goto LA39;
	LA41: ;
	{
		guardglobal_376264(a, n, g);
	}
	LA39: ;
	BeforeRet: ;
}

N_NIMCALL(void, addtointersection_377217)(TY268080** inter, NI s) {
	TY268081 LOC8;
	{
		NI j_377254;
		NI HEX3Atmp_377289;
		NI res_377292;
		j_377254 = 0;
		HEX3Atmp_377289 = 0;
		HEX3Atmp_377289 = ((*inter)->Sup.len - 1);
		res_377292 = 0;
		{
			while (1) {
				if (!(res_377292 <= HEX3Atmp_377289)) goto LA3;
				j_377254 = res_377292;
				{
					if (!(s == (*inter)->data[j_377254].Field0)) goto LA6;
					(*inter)->data[j_377254].Field1 += 1;
					goto BeforeRet;
				}
				LA6: ;
				res_377292 += 1;
			} LA3: ;
		}
	}
	LOC8.Field0 = s;
	LOC8.Field1 = 1;
	(*inter) = (TY268080*) incrSeq(&((*inter))->Sup, sizeof(TY268081));
	(*inter)->data[(*inter)->Sup.len-1] = LOC8;
	BeforeRet: ;
}

N_NIMCALL(void, catchesall_378214)(teffects376008* tracked) {
	{
		if (!!((*(*tracked).Exc).kindU.S6.Sons == 0)) goto LA3;
		(*(*tracked).Exc).kindU.S6.Sons = (tnodeseq225810*) setLengthSeq(&((*(*tracked).Exc).kindU.S6.Sons)->Sup, sizeof(tnode225816*), (*tracked).Bottom);
	}
	LA3: ;
}

N_NIMCALL(void, catches_377890)(teffects376008* tracked, ttype225852* e_377893) {
	ttype225852* e;
	NI l;
	NI i;
	e = skiptypes_230245(e_377893, IL64(211106247215360));
	l = len_226364((*tracked).Exc);
	i = (*tracked).Bottom;
	{
		while (1) {
			if (!(i < l)) goto LA2;
			{
				tnode225816* LOC5;
				ttype225852* LOC6;
				NI LOC7;
				LOC5 = 0;
				LOC5 = HEX5BHEX5D_226698((*tracked).Exc, i);
				LOC6 = 0;
				LOC6 = exctype_377371(LOC5);
				LOC7 = 0;
				LOC7 = safeinheritancediff_273032(LOC6, e);
				if (!(LOC7 <= 0)) goto LA8;
				asgnRefNoCycle((void**) (&(*(*tracked).Exc).kindU.S6.Sons->data[i]), (*(*tracked).Exc).kindU.S6.Sons->data[(NI64)(l - 1)]);
				l -= 1;
			}
			goto LA3;
			LA8: ;
			{
				i += 1;
			}
			LA3: ;
		} LA2: ;
	}
	{
		if (!!((*(*tracked).Exc).kindU.S6.Sons == 0)) goto LA13;
		(*(*tracked).Exc).kindU.S6.Sons = (tnodeseq225810*) setLengthSeq(&((*(*tracked).Exc).kindU.S6.Sons)->Sup, sizeof(tnode225816*), l);
	}
	goto LA11;
	LA13: ;
	{
	}
	LA11: ;
}

N_NIMCALL(void, tracktrystmt_378285)(teffects376008* tracked, tnode225816* n) {
	NI oldbottom;
	NI oldstate;
	TY268080* inter;
	NI branches;
	NIM_BOOL hasfinally;
	oldbottom = (*tracked).Bottom;
	(*tracked).Bottom = len_226364((*tracked).Exc);
	oldstate = (*tracked).Init->Sup.len;
	inter = (TY268080*) newSeq((&NTI268080), 0);
	(*tracked).Intrystmt += 1;
	track_378278(tracked, (*n).kindU.S6.Sons->data[0]);
	(*tracked).Intrystmt -= 1;
	{
		NI i_378393;
		NI HEX3Atmp_379033;
		NI res_379036;
		i_378393 = 0;
		HEX3Atmp_379033 = 0;
		HEX3Atmp_379033 = ((*tracked).Init->Sup.len - 1);
		res_379036 = oldstate;
		{
			while (1) {
				if (!(res_379036 <= HEX3Atmp_379033)) goto LA3;
				i_378393 = res_379036;
				addtointersection_377217((&inter), (*tracked).Init->data[i_378393]);
				res_379036 += 1;
			} LA3: ;
		}
	}
	branches = 1;
	hasfinally = NIM_FALSE;
	{
		NI i_378418;
		NI HEX3Atmp_379051;
		NI LOC5;
		NI res_379054;
		i_378418 = 0;
		HEX3Atmp_379051 = 0;
		LOC5 = 0;
		LOC5 = len_226364(n);
		HEX3Atmp_379051 = (LOC5 - 1);
		res_379054 = 1;
		{
			while (1) {
				tnode225816* b;
				NI blen;
				if (!(res_379054 <= HEX3Atmp_379051)) goto LA7;
				i_378418 = res_379054;
				b = (*n).kindU.S6.Sons->data[i_378418];
				blen = sonslen_226249(b);
				{
					if (!((*b).Kind == ((NU8) 87))) goto LA10;
					branches += 1;
					{
						if (!(blen == 1)) goto LA14;
						catchesall_378214(tracked);
					}
					goto LA12;
					LA14: ;
					{
						{
							NI j_378468;
							NI HEX3Atmp_379040;
							NI res_379043;
							j_378468 = 0;
							HEX3Atmp_379040 = 0;
							HEX3Atmp_379040 = (NI64)(blen - 2);
							res_379043 = 0;
							{
								while (1) {
									if (!(res_379043 <= HEX3Atmp_379040)) goto LA19;
									j_378468 = res_379043;
									catches_377890(tracked, (*(*b).kindU.S6.Sons->data[j_378468]).Typ);
									res_379043 += 1;
								} LA19: ;
							}
						}
					}
					LA12: ;
					(*tracked).Init = (TY343680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
					track_378278(tracked, (*b).kindU.S6.Sons->data[(NI64)(blen - 1)]);
					{
						NI i_378677;
						NI HEX3Atmp_379046;
						NI res_379049;
						i_378677 = 0;
						HEX3Atmp_379046 = 0;
						HEX3Atmp_379046 = ((*tracked).Init->Sup.len - 1);
						res_379049 = oldstate;
						{
							while (1) {
								if (!(res_379049 <= HEX3Atmp_379046)) goto LA22;
								i_378677 = res_379049;
								addtointersection_377217((&inter), (*tracked).Init->data[i_378677]);
								res_379049 += 1;
							} LA22: ;
						}
					}
				}
				goto LA8;
				LA10: ;
				{
					(*tracked).Init = (TY343680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
					track_378278(tracked, (*b).kindU.S6.Sons->data[(NI64)(blen - 1)]);
					hasfinally = NIM_TRUE;
				}
				LA8: ;
				res_379054 += 1;
			} LA7: ;
		}
	}
	(*tracked).Bottom = oldbottom;
	{
		if (!!(hasfinally)) goto LA26;
		(*tracked).Init = (TY343680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	}
	LA26: ;
	{
		NI id_379011;
		NI count_379012;
		NI i_379059;
		NI l_379061;
		id_379011 = 0;
		count_379012 = 0;
		i_379059 = 0;
		l_379061 = inter->Sup.len;
		{
			while (1) {
				if (!(i_379059 < l_379061)) goto LA30;
				id_379011 = inter->data[i_379059].Field0;
				count_379012 = inter->data[i_379059].Field1;
				{
					if (!(count_379012 == branches)) goto LA33;
					(*tracked).Init = (TY343680*) incrSeq(&((*tracked).Init)->Sup, sizeof(NI));
					(*tracked).Init->data[(*tracked).Init->Sup.len-1] = id_379011;
				}
				LA33: ;
				i_379059 += 1;
			} LA30: ;
		}
	}
}

N_NIMCALL(void, listeffects_377835)(teffects376008* a) {
	{
		tnode225816* e_377838;
		tnode225816* HEX3Atmp_377841;
		e_377838 = 0;
		HEX3Atmp_377841 = 0;
		HEX3Atmp_377841 = (*a).Exc;
		{
			NI i_377845;
			NI HEX3Atmp_377847;
			NI LOC3;
			NI res_377849;
			i_377845 = 0;
			HEX3Atmp_377847 = 0;
			LOC3 = 0;
			LOC3 = len_226364(HEX3Atmp_377841);
			HEX3Atmp_377847 = (LOC3 - 1);
			res_377849 = 0;
			{
				while (1) {
					NimStringDesc* LOC6;
					if (!(res_377849 <= HEX3Atmp_377847)) goto LA5;
					i_377845 = res_377849;
					e_377838 = (*HEX3Atmp_377841).kindU.S6.Sons->data[i_377845];
					LOC6 = 0;
					LOC6 = typetostring_263031((*e_377838).Typ, ((NU8) 0));
					message_197976((*e_377838).Info, ((NU16) 275), LOC6);
					res_377849 += 1;
				} LA5: ;
			}
		}
	}
	{
		tnode225816* e_377839;
		tnode225816* HEX3Atmp_377851;
		e_377839 = 0;
		HEX3Atmp_377851 = 0;
		HEX3Atmp_377851 = (*a).Tags;
		{
			NI i_377855;
			NI HEX3Atmp_377857;
			NI LOC9;
			NI res_377859;
			i_377855 = 0;
			HEX3Atmp_377857 = 0;
			LOC9 = 0;
			LOC9 = len_226364(HEX3Atmp_377851);
			HEX3Atmp_377857 = (LOC9 - 1);
			res_377859 = 0;
			{
				while (1) {
					NimStringDesc* LOC12;
					if (!(res_377859 <= HEX3Atmp_377857)) goto LA11;
					i_377855 = res_377859;
					e_377839 = (*HEX3Atmp_377851).kindU.S6.Sons->data[i_377855];
					LOC12 = 0;
					LOC12 = typetostring_263031((*e_377839).Typ, ((NU8) 0));
					message_197976((*e_377839).Info, ((NU16) 275), LOC12);
					res_377859 += 1;
				} LA11: ;
			}
		}
	}
}

N_NIMCALL(void, trackpragmastmt_379276)(teffects376008* tracked, tnode225816* n) {
	{
		NI i_379292;
		NI HEX3Atmp_379318;
		NI LOC2;
		NI res_379321;
		i_379292 = 0;
		HEX3Atmp_379318 = 0;
		LOC2 = 0;
		LOC2 = sonslen_226249(n);
		HEX3Atmp_379318 = (NI64)(LOC2 - 1);
		res_379321 = 0;
		{
			while (1) {
				tnode225816* it;
				if (!(res_379321 <= HEX3Atmp_379318)) goto LA4;
				i_379292 = res_379321;
				it = (*n).kindU.S6.Sons->data[i_379292];
				{
					NU8 LOC7;
					LOC7 = 0;
					LOC7 = whichpragma_262304(it);
					if (!(LOC7 == ((NU8) 156))) goto LA8;
					listeffects_377835(tracked);
				}
				LA8: ;
				res_379321 += 1;
			} LA4: ;
		}
	}
}

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

N_NIMCALL(NIM_BOOL, breaksblock_380521)(tnode225816* n) {
	NIM_BOOL result;
	result = 0;
	switch ((*n).Kind) {
	case ((NU8) 115):
	case ((NU8) 126):
	{
		{
			tnode225816* c_380525;
			c_380525 = 0;
			{
				NI i_380594;
				NI HEX3Atmp_380596;
				NI LOC4;
				NI res_380598;
				i_380594 = 0;
				HEX3Atmp_380596 = 0;
				LOC4 = 0;
				LOC4 = len_226364(n);
				HEX3Atmp_380596 = (LOC4 - 1);
				res_380598 = 0;
				{
					while (1) {
						if (!(res_380598 <= HEX3Atmp_380596)) goto LA6;
						i_380594 = res_380598;
						c_380525 = (*n).kindU.S6.Sons->data[i_380594];
						{
							NIM_BOOL LOC9;
							LOC9 = 0;
							LOC9 = breaksblock_380521(c_380525);
							if (!LOC9) goto LA10;
							result = NIM_TRUE;
							goto BeforeRet;
						}
						LA10: ;
						res_380598 += 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_380617)(teffects376008* tracked, tnode225816* n) {
	NI oldstate;
	NI oldfacts;
	NIM_BOOL interesting;
	NIM_BOOL LOC1;
	TY268080* inter;
	NI tocover;
	NIM_BOOL exh;
	ttype225852* LOC24;
	track_378278(tracked, (*n).kindU.S6.Sons->data[0]);
	oldstate = (*tracked).Init->Sup.len;
	oldfacts = (*tracked).Guards->Sup.len;
	LOC1 = 0;
	LOC1 = interestingcaseexpr_368395((*n).kindU.S6.Sons->data[0]);
	if (!(LOC1)) goto LA2;
	LOC1 = ((gnotes_196302 &(IL64(1)<<(((((NU16) 251)- 230))&IL64(63))))!=0);
	LA2: ;
	interesting = LOC1;
	inter = (TY268080*) newSeq((&NTI268080), 0);
	tocover = 0;
	{
		NI i_380730;
		NI HEX3Atmp_380981;
		NI LOC4;
		NI res_380984;
		i_380730 = 0;
		HEX3Atmp_380981 = 0;
		LOC4 = 0;
		LOC4 = len_226364(n);
		HEX3Atmp_380981 = (LOC4 - 1);
		res_380984 = 1;
		{
			while (1) {
				tnode225816* branch;
				if (!(res_380984 <= HEX3Atmp_380981)) goto LA6;
				i_380730 = res_380984;
				branch = (*n).kindU.S6.Sons->data[i_380730];
				(*tracked).Init = (TY343680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
				{
					if (!interesting) goto LA9;
					(*tracked).Guards = (tnodeseq225810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode225816*), oldfacts);
					addcasebranchfacts_374755((&(*tracked).Guards), n, i_380730);
				}
				LA9: ;
				{
					NI i_380800;
					NI HEX3Atmp_380970;
					NI LOC12;
					NI res_380973;
					i_380800 = 0;
					HEX3Atmp_380970 = 0;
					LOC12 = 0;
					LOC12 = len_226364(branch);
					HEX3Atmp_380970 = (LOC12 - 1);
					res_380973 = 0;
					{
						while (1) {
							if (!(res_380973 <= HEX3Atmp_380970)) goto LA14;
							i_380800 = res_380973;
							track_378278(tracked, (*branch).kindU.S6.Sons->data[i_380800]);
							res_380973 += 1;
						} LA14: ;
					}
				}
				{
					tnode225816* LOC17;
					NIM_BOOL LOC18;
					LOC17 = 0;
					LOC17 = lastson_226261(branch);
					LOC18 = 0;
					LOC18 = breaksblock_380521(LOC17);
					if (!!(LOC18)) goto LA19;
					tocover += 1;
				}
				LA19: ;
				{
					NI i_380859;
					NI HEX3Atmp_380976;
					NI res_380979;
					i_380859 = 0;
					HEX3Atmp_380976 = 0;
					HEX3Atmp_380976 = ((*tracked).Init->Sup.len - 1);
					res_380979 = oldstate;
					{
						while (1) {
							if (!(res_380979 <= HEX3Atmp_380976)) goto LA23;
							i_380859 = res_380979;
							addtointersection_377217((&inter), (*tracked).Init->data[i_380859]);
							res_380979 += 1;
						} LA23: ;
					}
				}
				res_380984 += 1;
			} LA6: ;
		}
	}
	LOC24 = 0;
	LOC24 = skiptypes_230245((*(*n).kindU.S6.Sons->data[0]).Typ, IL64(211106242013184));
	switch ((*LOC24).Kind) {
	case ((NU8) 36) ... ((NU8) 39):
	case ((NU8) 28):
	{
		tnode225816* LOC26;
		LOC26 = 0;
		LOC26 = lastson_226261(n);
		exh = ((*LOC26).Kind == ((NU8) 88));
	}
	break;
	default:
	{
		exh = NIM_TRUE;
	}
	break;
	}
	(*tracked).Init = (TY343680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	{
		if (!exh) goto LA30;
		{
			NI id_380931;
			NI count_380932;
			NI i_380989;
			NI l_380991;
			id_380931 = 0;
			count_380932 = 0;
			i_380989 = 0;
			l_380991 = inter->Sup.len;
			{
				while (1) {
					if (!(i_380989 < l_380991)) goto LA34;
					id_380931 = inter->data[i_380989].Field0;
					count_380932 = inter->data[i_380989].Field1;
					{
						if (!(tocover <= count_380932)) goto LA37;
						(*tracked).Init = (TY343680*) incrSeq(&((*tracked).Init)->Sup, sizeof(NI));
						(*tracked).Init->data[(*tracked).Init->Sup.len-1] = id_380931;
					}
					LA37: ;
					i_380989 += 1;
				} LA34: ;
			}
		}
	}
	LA30: ;
	(*tracked).Guards = (tnodeseq225810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode225816*), oldfacts);
}

N_NIMCALL(void, trackif_381034)(teffects376008* tracked, tnode225816* n) {
	NI oldfacts;
	NI oldstate;
	TY268080* inter;
	NI tocover;
	track_378278(tracked, (*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[0]);
	oldfacts = (*tracked).Guards->Sup.len;
	addfact_370349((&(*tracked).Guards), (*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[0]);
	oldstate = (*tracked).Init->Sup.len;
	inter = (TY268080*) newSeq((&NTI268080), 0);
	tocover = 0;
	track_378278(tracked, (*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[1]);
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = breaksblock_380521((*(*n).kindU.S6.Sons->data[0]).kindU.S6.Sons->data[1]);
		if (!!(LOC3)) goto LA4;
		tocover += 1;
	}
	LA4: ;
	{
		NI i_381241;
		NI HEX3Atmp_381516;
		NI res_381519;
		i_381241 = 0;
		HEX3Atmp_381516 = 0;
		HEX3Atmp_381516 = ((*tracked).Init->Sup.len - 1);
		res_381519 = oldstate;
		{
			while (1) {
				if (!(res_381519 <= HEX3Atmp_381516)) goto LA8;
				i_381241 = res_381519;
				addtointersection_377217((&inter), (*tracked).Init->data[i_381241]);
				res_381519 += 1;
			} LA8: ;
		}
	}
	{
		NI i_381264;
		NI HEX3Atmp_381540;
		NI LOC10;
		NI res_381543;
		i_381264 = 0;
		HEX3Atmp_381540 = 0;
		LOC10 = 0;
		LOC10 = len_226364(n);
		HEX3Atmp_381540 = (LOC10 - 1);
		res_381543 = 1;
		{
			while (1) {
				tnode225816* branch;
				if (!(res_381543 <= HEX3Atmp_381540)) goto LA12;
				i_381264 = res_381543;
				branch = (*n).kindU.S6.Sons->data[i_381264];
				(*tracked).Guards = (tnodeseq225810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode225816*), oldfacts);
				{
					NI j_381306;
					NI HEX3Atmp_381523;
					NI res_381526;
					j_381306 = 0;
					HEX3Atmp_381523 = 0;
					HEX3Atmp_381523 = (NI64)(i_381264 - 1);
					res_381526 = 0;
					{
						while (1) {
							if (!(res_381526 <= HEX3Atmp_381523)) goto LA15;
							j_381306 = res_381526;
							addfactneg_370396((&(*tracked).Guards), (*(*n).kindU.S6.Sons->data[j_381306]).kindU.S6.Sons->data[0]);
							res_381526 += 1;
						} LA15: ;
					}
				}
				{
					NI LOC18;
					LOC18 = 0;
					LOC18 = len_226364(branch);
					if (!(1 < LOC18)) goto LA19;
					addfact_370349((&(*tracked).Guards), (*branch).kindU.S6.Sons->data[0]);
				}
				LA19: ;
				(*tracked).Init = (TY343680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
				{
					NI i_381389;
					NI HEX3Atmp_381529;
					NI LOC22;
					NI res_381532;
					i_381389 = 0;
					HEX3Atmp_381529 = 0;
					LOC22 = 0;
					LOC22 = len_226364(branch);
					HEX3Atmp_381529 = (LOC22 - 1);
					res_381532 = 0;
					{
						while (1) {
							if (!(res_381532 <= HEX3Atmp_381529)) goto LA24;
							i_381389 = res_381532;
							track_378278(tracked, (*branch).kindU.S6.Sons->data[i_381389]);
							res_381532 += 1;
						} LA24: ;
					}
				}
				{
					tnode225816* LOC27;
					NIM_BOOL LOC28;
					LOC27 = 0;
					LOC27 = lastson_226261(branch);
					LOC28 = 0;
					LOC28 = breaksblock_380521(LOC27);
					if (!!(LOC28)) goto LA29;
					tocover += 1;
				}
				LA29: ;
				{
					NI i_381448;
					NI HEX3Atmp_381535;
					NI res_381538;
					i_381448 = 0;
					HEX3Atmp_381535 = 0;
					HEX3Atmp_381535 = ((*tracked).Init->Sup.len - 1);
					res_381538 = oldstate;
					{
						while (1) {
							if (!(res_381538 <= HEX3Atmp_381535)) goto LA33;
							i_381448 = res_381538;
							addtointersection_377217((&inter), (*tracked).Init->data[i_381448]);
							res_381538 += 1;
						} LA33: ;
					}
				}
				res_381543 += 1;
			} LA12: ;
		}
	}
	(*tracked).Init = (TY343680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	{
		tnode225816* LOC36;
		NI LOC37;
		LOC36 = 0;
		LOC36 = lastson_226261(n);
		LOC37 = 0;
		LOC37 = len_226364(LOC36);
		if (!(LOC37 == 1)) goto LA38;
		{
			NI id_381478;
			NI count_381479;
			NI i_381548;
			NI l_381550;
			id_381478 = 0;
			count_381479 = 0;
			i_381548 = 0;
			l_381550 = inter->Sup.len;
			{
				while (1) {
					if (!(i_381548 < l_381550)) goto LA42;
					id_381478 = inter->data[i_381548].Field0;
					count_381479 = inter->data[i_381548].Field1;
					{
						if (!(tocover <= count_381479)) goto LA45;
						(*tracked).Init = (TY343680*) incrSeq(&((*tracked).Init)->Sup, sizeof(NI));
						(*tracked).Init->data[(*tracked).Init->Sup.len-1] = id_381478;
					}
					LA45: ;
					i_381548 += 1;
				} LA42: ;
			}
		}
	}
	LA38: ;
	(*tracked).Guards = (tnodeseq225810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode225816*), oldfacts);
}

N_NIMCALL(void, trackblock_381611)(teffects376008* tracked, tnode225816* n) {
	{
		NI oldstate;
		if (!((*n).Kind == ((NU8) 115) || (*n).Kind == ((NU8) 126))) goto LA3;
		oldstate = -1;
		{
			NI i_381651;
			NI HEX3Atmp_381710;
			NI LOC6;
			NI res_381713;
			i_381651 = 0;
			HEX3Atmp_381710 = 0;
			LOC6 = 0;
			LOC6 = len_226364(n);
			HEX3Atmp_381710 = (LOC6 - 1);
			res_381713 = 0;
			{
				while (1) {
					if (!(res_381713 <= HEX3Atmp_381710)) goto LA8;
					i_381651 = res_381713;
					{
						NIM_BOOL LOC11;
						LOC11 = 0;
						LOC11 = hassubnodewith_226308((*n).kindU.S6.Sons->data[i_381651], ((NU8) 110));
						if (!LOC11) goto LA12;
						{
							if (!(oldstate < 0)) goto LA16;
							oldstate = (*tracked).Init->Sup.len;
						}
						LA16: ;
					}
					LA12: ;
					track_378278(tracked, (*n).kindU.S6.Sons->data[i_381651]);
					res_381713 += 1;
				} LA8: ;
			}
		}
		{
			if (!(0 < oldstate)) goto LA20;
			(*tracked).Init = (TY343680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
		}
		LA20: ;
	}
	goto LA1;
	LA3: ;
	{
		track_378278(tracked, n);
	}
	LA1: ;
}

N_NIMCALL(NIM_BOOL, istrue_381730)(tnode225816* 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_376123)(ttype225852* t_376125) {
	NI16 result;
	ttype225852* t;
	result = 0;
	t = t_376125;
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = ((*t).Kind == ((NU8) 11));
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = len_230005(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_376197)(teffects376008* a, tnode225816* pragma) {
	NI16 firstll;
	{
		if (!!(((*pragma).Kind == ((NU8) 34)))) goto LA3;
		localerror_197955((*pragma).Info, ((NU16) 4), ((NimStringDesc*) &TMP3216));
		goto BeforeRet;
	}
	LA3: ;
	firstll = ((NI16) -1);
	{
		tnode225816* x_376211;
		tnode225816* HEX3Atmp_376237;
		x_376211 = 0;
		HEX3Atmp_376237 = 0;
		HEX3Atmp_376237 = HEX5BHEX5D_226698(pragma, 1);
		{
			NI i_376241;
			NI HEX3Atmp_376243;
			NI LOC7;
			NI res_376245;
			i_376241 = 0;
			HEX3Atmp_376243 = 0;
			LOC7 = 0;
			LOC7 = len_226364(HEX3Atmp_376237);
			HEX3Atmp_376243 = (LOC7 - 1);
			res_376245 = 0;
			{
				while (1) {
					NI16 thisll;
					if (!(res_376245 <= HEX3Atmp_376243)) goto LA9;
					i_376241 = res_376245;
					x_376211 = (*HEX3Atmp_376237).kindU.S6.Sons->data[i_376241];
					thisll = getlocklevel_376123((*x_376211).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_228488(thisll);
							LOC20 = rawNewString(LOC21->Sup.len + 20);
appendString(LOC20, ((NimStringDesc*) &TMP3217));
appendString(LOC20, LOC21);
							localerror_197966((*x_376211).Info, LOC20);
						}
						goto LA14;
						LA18: ;
						{
							if (!(firstll < ((NI16) 0))) goto LA23;
							firstll = thisll;
						}
						goto LA14;
						LA23: ;
						{
							if (!!((firstll == thisll))) goto LA26;
							localerror_197955((*x_376211).Info, ((NU16) 4), ((NimStringDesc*) &TMP3218));
						}
						goto LA14;
						LA26: ;
						LA14: ;
						(*a).Maxlocklevel = (((*a).Maxlocklevel >= firstll) ? (*a).Maxlocklevel : firstll);
					}
					LA12: ;
					(*a).Locked = (tnodeseq225810*) incrSeq(&((*a).Locked)->Sup, sizeof(tnode225816*));
					asgnRefNoCycle((void**) (&(*a).Locked->data[(*a).Locked->Sup.len-1]), x_376211);
					res_376245 += 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_197955((*pragma).Info, ((NU16) 4), ((NimStringDesc*) &TMP3219));
		}
		LA38: ;
		(*a).Currlocklevel = firstll;
	}
	LA32: ;
	BeforeRet: ;
}

N_NIMCALL(void, track_378278)(teffects376008* tracked, tnode225816* n) {
	switch ((*n).Kind) {
	case ((NU8) 3):
	{
		usevar_376930(tracked, n);
	}
	break;
	case ((NU8) 108):
	{
		(*(*n).kindU.S6.Sons->data[0]).Info = (*n).Info;
		addeffect_377460(tracked, (*n).kindU.S6.Sons->data[0], NIM_FALSE);
		{
			NI i_381948;
			NI HEX3Atmp_383141;
			NI LOC4;
			NI res_383144;
			i_381948 = 0;
			HEX3Atmp_383141 = 0;
			LOC4 = 0;
			LOC4 = safelen_226424(n);
			HEX3Atmp_383141 = (LOC4 - 1);
			res_383144 = 0;
			{
				while (1) {
					if (!(res_383144 <= HEX3Atmp_383141)) goto LA6;
					i_381948 = res_383144;
					track_378278(tracked, (*n).kindU.S6.Sons->data[i_381948]);
					res_383144 += 1;
				} LA6: ;
			}
		}
	}
	break;
	case ((NU8) 27):
	case ((NU8) 29):
	case ((NU8) 30):
	case ((NU8) 31):
	case ((NU8) 26):
	case ((NU8) 28):
	case ((NU8) 32):
	{
		tnode225816* a;
		ttype225852* op;
		a = (*n).kindU.S6.Sons->data[0];
		op = (*a).Typ;
		{
			NIM_BOOL LOC10;
			NIM_BOOL LOC11;
			tnode225816* 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_379844((*a).kindU.S4.Sym);
				mergelocklevels_379904(tracked, n, LOC24);
			}
			goto LA16;
			LA18: ;
			{
				mergelocklevels_379904(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_379918(tracked, n, (*a).kindU.S4.Sym);
			}
			goto LA26;
			LA30: ;
			{
				NI LOC33;
				LOC33 = 0;
				LOC33 = len_226364(effectlist);
				if (!(LOC33 == 0)) goto LA34;
				{
					NIM_BOOL LOC38;
					LOC38 = 0;
					LOC38 = isforwardedproc_379230(a);
					if (!LOC38) goto LA39;
					propagateeffects_379918(tracked, n, (*a).kindU.S4.Sym);
				}
				goto LA36;
				LA39: ;
				{
					NIM_BOOL LOC42;
					LOC42 = 0;
					LOC42 = isindirectcall_379113(a, (*tracked).Owner);
					if (!LOC42) goto LA43;
					assumetheworst_380127(tracked, n, op);
				}
				goto LA36;
				LA43: ;
				LA36: ;
			}
			goto LA26;
			LA34: ;
			{
				mergeeffects_377713(tracked, (*effectlist).kindU.S6.Sons->data[0], n);
				mergetags_377774(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_379798(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_376921(n);
						(*tracked).Gcunsafe = NIM_TRUE;
					}
					LA57: ;
				}
				LA51: ;
			}
			LA26: ;
		}
		LA14: ;
		{
			NI i_382281;
			NI HEX3Atmp_383147;
			NI LOC60;
			NI res_383150;
			i_382281 = 0;
			HEX3Atmp_383147 = 0;
			LOC60 = 0;
			LOC60 = len_226364(n);
			HEX3Atmp_383147 = (LOC60 - 1);
			res_383150 = 1;
			{
				while (1) {
					ttype225852* LOC63;
					if (!(res_383150 <= HEX3Atmp_383147)) goto LA62;
					i_382281 = res_383150;
					LOC63 = 0;
					LOC63 = paramtype_381809(op, i_382281);
					trackoperand_380212(tracked, (*n).kindU.S6.Sons->data[i_382281], LOC63);
					res_383150 += 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_376852(tracked, (*n).kindU.S6.Sons->data[1]);
		}
		LA68: ;
		{
			NI i_382368;
			NI HEX3Atmp_383153;
			NI LOC71;
			NI res_383156;
			i_382368 = 0;
			HEX3Atmp_383153 = 0;
			LOC71 = 0;
			LOC71 = safelen_226424(n);
			HEX3Atmp_383153 = (LOC71 - 1);
			res_383156 = 0;
			{
				while (1) {
					if (!(res_383156 <= HEX3Atmp_383153)) goto LA73;
					i_382368 = res_383156;
					track_378278(tracked, (*n).kindU.S6.Sons->data[i_382368]);
					res_383156 += 1;
				} LA73: ;
			}
		}
	}
	break;
	case ((NU8) 45):
	{
		guarddotaccess_376343(tracked, n);
		{
			NI i_382404;
			NI HEX3Atmp_383159;
			NI LOC76;
			NI res_383162;
			i_382404 = 0;
			HEX3Atmp_383159 = 0;
			LOC76 = 0;
			LOC76 = len_226364(n);
			HEX3Atmp_383159 = (LOC76 - 1);
			res_383162 = 0;
			{
				while (1) {
					if (!(res_383162 <= HEX3Atmp_383159)) goto LA78;
					i_382404 = res_383162;
					track_378278(tracked, (*n).kindU.S6.Sons->data[i_382404]);
					res_383162 += 1;
				} LA78: ;
			}
		}
	}
	break;
	case ((NU8) 46):
	{
		track_378278(tracked, (*n).kindU.S6.Sons->data[0]);
		{
			if (!((gnotes_196302 &(IL64(1)<<(((((NU16) 251)- 230))&IL64(63))))!=0)) goto LA82;
			checkfieldaccess_375021((*tracked).Guards, n);
		}
		LA82: ;
	}
	break;
	case ((NU8) 106):
	{
		tracktrystmt_378285(tracked, n);
	}
	break;
	case ((NU8) 90):
	{
		trackpragmastmt_379276(tracked, n);
	}
	break;
	case ((NU8) 73):
	case ((NU8) 74):
	{
		track_378278(tracked, (*n).kindU.S6.Sons->data[1]);
		initvar_376695(tracked, (*n).kindU.S6.Sons->data[0], NIM_TRUE);
		invalidatefacts_370774((&(*tracked).Guards), (*n).kindU.S6.Sons->data[0]);
		track_378278(tracked, (*n).kindU.S6.Sons->data[0]);
		addasgnfact_374618((&(*tracked).Guards), (*n).kindU.S6.Sons->data[0], (*n).kindU.S6.Sons->data[1]);
		notnilcheck_380009(tracked, (*n).kindU.S6.Sons->data[1], (*(*n).kindU.S6.Sons->data[0]).Typ);
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		{
			tnode225816* child_382601;
			child_382601 = 0;
			{
				NI i_383174;
				NI HEX3Atmp_383176;
				NI LOC90;
				NI res_383178;
				i_383174 = 0;
				HEX3Atmp_383176 = 0;
				LOC90 = 0;
				LOC90 = len_226364(n);
				HEX3Atmp_383176 = (LOC90 - 1);
				res_383178 = 0;
				{
					while (1) {
						tnode225816* last;
						if (!(res_383178 <= HEX3Atmp_383176)) goto LA92;
						i_383174 = res_383178;
						child_382601 = (*n).kindU.S6.Sons->data[i_383174];
						last = lastson_226261(child_382601);
						{
							NIM_BOOL LOC95;
							LOC95 = 0;
							LOC95 = ((*child_382601).Kind == ((NU8) 35));
							if (!(LOC95)) goto LA96;
							LOC95 = !(((*last).Kind == ((NU8) 1)));
							LA96: ;
							if (!LOC95) goto LA97;
							track_378278(tracked, last);
							{
								NI i_382631;
								NI HEX3Atmp_383166;
								NI LOC100;
								NI res_383169;
								i_382631 = 0;
								HEX3Atmp_383166 = 0;
								LOC100 = 0;
								LOC100 = len_226364(child_382601);
								HEX3Atmp_383166 = (NI64)(LOC100 - 3);
								res_383169 = 0;
								{
									while (1) {
										if (!(res_383169 <= HEX3Atmp_383166)) goto LA102;
										i_382631 = res_383169;
										initvar_376695(tracked, (*child_382601).kindU.S6.Sons->data[i_382631], NIM_FALSE);
										addasgnfact_374618((&(*tracked).Guards), (*child_382601).kindU.S6.Sons->data[i_382631], last);
										notnilcheck_380009(tracked, last, (*(*child_382601).kindU.S6.Sons->data[i_382631]).Typ);
										res_383169 += 1;
									} LA102: ;
								}
							}
						}
						LA97: ;
						res_383178 += 1;
					} LA92: ;
				}
			}
		}
	}
	break;
	case ((NU8) 97):
	{
		trackcase_380617(tracked, n);
	}
	break;
	case ((NU8) 92):
	case ((NU8) 48):
	{
		trackif_381034(tracked, n);
	}
	break;
	case ((NU8) 112):
	case ((NU8) 127):
	{
		trackblock_381611(tracked, (*n).kindU.S6.Sons->data[1]);
	}
	break;
	case ((NU8) 96):
	{
		track_378278(tracked, (*n).kindU.S6.Sons->data[0]);
		{
			NIM_BOOL LOC109;
			LOC109 = 0;
			LOC109 = istrue_381730((*n).kindU.S6.Sons->data[0]);
			if (!LOC109) goto LA110;
			trackblock_381611(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_370349((&(*tracked).Guards), (*n).kindU.S6.Sons->data[0]);
			track_378278(tracked, (*n).kindU.S6.Sons->data[1]);
			(*tracked).Init = (TY343680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
			(*tracked).Guards = (tnodeseq225810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode225816*), oldfacts);
		}
		LA107: ;
	}
	break;
	case ((NU8) 94):
	case ((NU8) 95):
	{
		NI oldstate;
		oldstate = (*tracked).Init->Sup.len;
		{
			NI i_382849;
			NI HEX3Atmp_383180;
			NI LOC115;
			NI res_383183;
			i_382849 = 0;
			HEX3Atmp_383180 = 0;
			LOC115 = 0;
			LOC115 = len_226364(n);
			HEX3Atmp_383180 = (LOC115 - 1);
			res_383183 = 0;
			{
				while (1) {
					if (!(res_383183 <= HEX3Atmp_383180)) goto LA117;
					i_382849 = res_383183;
					track_378278(tracked, (*n).kindU.S6.Sons->data[i_382849]);
					res_383183 += 1;
				} LA117: ;
			}
		}
		(*tracked).Init = (TY343680*) setLengthSeq(&((*tracked).Init)->Sup, sizeof(NI), oldstate);
	}
	break;
	case ((NU8) 38):
	{
		NI oldfacts;
		track_378278(tracked, (*n).kindU.S6.Sons->data[0]);
		oldfacts = (*tracked).Guards->Sup.len;
		{
			NI i_382927;
			NI HEX3Atmp_383186;
			NI LOC120;
			NI res_383189;
			i_382927 = 0;
			HEX3Atmp_383186 = 0;
			LOC120 = 0;
			LOC120 = len_226364(n);
			HEX3Atmp_383186 = (LOC120 - 1);
			res_383189 = 1;
			{
				while (1) {
					tnode225816* x;
					if (!(res_383189 <= HEX3Atmp_383186)) goto LA122;
					i_382927 = res_383189;
					x = (*n).kindU.S6.Sons->data[i_382927];
					track_378278(tracked, x);
					{
						if (!(((*(*(*x).kindU.S6.Sons->data[0]).kindU.S4.Sym).Flags &(1<<((((NU8) 18))&31)))!=0)) goto LA125;
						adddiscriminantfact_374518((&(*tracked).Guards), x);
					}
					LA125: ;
					res_383189 += 1;
				} LA122: ;
			}
		}
		(*tracked).Guards = (tnodeseq225810*) setLengthSeq(&((*tracked).Guards)->Sup, sizeof(tnode225816*), oldfacts);
	}
	break;
	case ((NU8) 91):
	{
		tnode225816* pragmalist;
		NI oldlocked;
		NI16 oldlocklevel;
		tnode225816* LOC137;
		pragmalist = (*n).kindU.S6.Sons->data[0];
		oldlocked = (*tracked).Locked->Sup.len;
		oldlocklevel = (*tracked).Currlocklevel;
		{
			NI i_383050;
			NI HEX3Atmp_383192;
			NI LOC129;
			NI res_383195;
			i_383050 = 0;
			HEX3Atmp_383192 = 0;
			LOC129 = 0;
			LOC129 = len_226364(pragmalist);
			HEX3Atmp_383192 = (LOC129 - 1);
			res_383195 = 0;
			{
				while (1) {
					if (!(res_383195 <= HEX3Atmp_383192)) goto LA131;
					i_383050 = res_383195;
					{
						NU8 LOC134;
						LOC134 = 0;
						LOC134 = whichpragma_262304((*pragmalist).kindU.S6.Sons->data[i_383050]);
						if (!(LOC134 == ((NU8) 191))) goto LA135;
						locklocations_376197(tracked, (*pragmalist).kindU.S6.Sons->data[i_383050]);
					}
					LA135: ;
					res_383195 += 1;
				} LA131: ;
			}
		}
		LOC137 = 0;
		LOC137 = lastson_226261(n);
		track_378278(tracked, LOC137);
		(*tracked).Locked = (tnodeseq225810*) setLengthSeq(&((*tracked).Locked)->Sup, sizeof(tnode225816*), 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_383125;
			NI HEX3Atmp_383198;
			NI LOC141;
			NI res_383201;
			i_383125 = 0;
			HEX3Atmp_383198 = 0;
			LOC141 = 0;
			LOC141 = safelen_226424(n);
			HEX3Atmp_383198 = (LOC141 - 1);
			res_383201 = 0;
			{
				while (1) {
					if (!(res_383201 <= HEX3Atmp_383198)) goto LA143;
					i_383125 = res_383201;
					track_378278(tracked, (*n).kindU.S6.Sons->data[i_383125]);
					res_383201 += 1;
				} LA143: ;
			}
		}
	}
	break;
	}
}

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

N_NIMCALL(void, trackproc_384148)(tsym225846* s, tnode225816* body) {
	tnode225816* effects;
	teffects376008 t;
	tnode225816* p;
	tnode225816* raisesspec;
	tnode225816* tagsspec;
	effects = (*(*(*s).Typ).N).kindU.S6.Sons->data[0];
	{
		NimStringDesc* LOC5;
		if (!!(((*effects).Kind == ((NU8) 151)))) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_198126(TMP3192);
		internalerror_198006(LOC5);
	}
	LA3: ;
	{
		if (!(((*s).Flags &(1<<((((NU8) 4))&31)))!=0)) goto LA8;
		goto BeforeRet;
	}
	LA8: ;
	{
		NI LOC12;
		LOC12 = 0;
		LOC12 = len_226364(effects);
		if (!(LOC12 == 4)) goto LA13;
		goto BeforeRet;
	}
	LA13: ;
	memset((void*)(&t), 0, sizeof(t));
	initeffects_383990(effects, s, (&t));
	track_378278((&t), body);
	{
		NIM_BOOL LOC17;
		NIM_BOOL LOC18;
		NIM_BOOL LOC19;
		tsym225846* res;
		LOC17 = 0;
		LOC18 = 0;
		LOC19 = 0;
		LOC19 = isemptytype_232991((*(*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_376951(t.Init->data, t.Init->Sup.len, (*res).Sup.Id);
			if (!!(LOC26)) goto LA27;
			message_197976((*body).Info, ((NU16) 250), ((NimStringDesc*) &TMP3220));
		}
		LA27: ;
	}
	LA22: ;
	p = (*(*s).Ast).kindU.S6.Sons->data[4];
	raisesspec = effectspec_379338(p, ((NU8) 152));
	{
		if (!!(raisesspec == 0)) goto LA31;
		checkraisesspec_383352(raisesspec, t.Exc, ((NimStringDesc*) &TMP3142), NIM_TRUE, subtyperelation_383302);
		asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[0]), raisesspec);
	}
	LA31: ;
	tagsspec = effectspec_379338(p, ((NU8) 157));
	{
		if (!!(tagsspec == 0)) goto LA35;
		checkraisesspec_383352(tagsspec, t.Tags, ((NimStringDesc*) &TMP3146), NIM_FALSE, subtyperelation_383302);
		asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[3]), tagsspec);
	}
	LA35: ;
	{
		if (!((gglobaloptions_169118 &(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_169118 &(1<<((((NU8) 21))&31)))!=0)) goto LA49;
				LOC51 = 0;
				LOC51 = nsuFormatSingleElem(((NimStringDesc*) &TMP3221), (*(*s).Name).S);
				localerror_197966((*s).Info, LOC51);
			}
			goto LA47;
			LA49: ;
			{
				localerror_197955((*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: ;
		{
			TY169969 LOC64;
			NimStringDesc* LOC65;
			if (!((*(*s).Typ).Locklevel < t.Maxlocklevel)) goto LA62;
			memset((void*)LOC64, 0, sizeof(LOC64));
			LOC64[0] = HEX24_228488((*(*s).Typ).Locklevel);
			LOC64[1] = HEX24_228488(t.Maxlocklevel);
			LOC65 = 0;
			LOC65 = nsuFormatOpenArray(((NimStringDesc*) &TMP3222), LOC64, 2);
			localerror_197966((*s).Info, LOC65);
		}
		goto LA57;
		LA62: ;
		LA57: ;
	}
	LA39: ;
	BeforeRet: ;
}

N_NIMCALL(void, seteffectsforproctype_383811)(ttype225852* t, tnode225816* n) {
	tnode225816* effects;
	tnode225816* raisesspec;
	tnode225816* 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_198126(TMP3248);
		internalerror_198006(LOC7);
	}
	LA5: ;
	raisesspec = effectspec_379338(n, ((NU8) 152));
	tagsspec = effectspec_379338(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_226364(effects);
			if (!!((LOC16 == 0))) goto LA17;
			LOC19 = 0;
			LOC19 = HEX24_198126(TMP3249);
			internalerror_198006(LOC19);
		}
		LA17: ;
		if ((*effects).kindU.S6.Sons) nimGCunrefNoCycle((*effects).kindU.S6.Sons);
		(*effects).kindU.S6.Sons = (tnodeseq225810*) newSeqRC1((&NTI225810), 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_384410)(tsym225846* module, tnode225816* n) {
	tnode225816* effects;
	tnodeseq225810* LOC5;
	teffects376008 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 = (tnodeseq225810*) newSeq((&NTI225810), 0);
	effects = newnode_228207(((NU8) 151), (*n).Info, LOC5, NIM_NIL);
	memset((void*)(&t), 0, sizeof(t));
	initeffects_383990(effects, module, (&t));
	t.Istoplevel = NIM_TRUE;
	track_378278((&t), n);
	BeforeRet: ;
}

N_NIMCALL(tnode225816*, documenteffect_379452)(tnode225816* n, tnode225816* x, NU8 effecttype, NI idx) {
	tnode225816* result;
	tnode225816* spec;
	result = 0;
	spec = effectspec_379338(x, effecttype);
	{
		tsym225846* s;
		tnode225816* actual;
		tnode225816* real;
		tnode225816* effects;
		NI LOC10;
		tnodeseq225810* LOC23;
		TY291286 LOC24;
		tident200021* 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_226364(actual);
			if (!!((LOC7 == 4))) goto LA8;
			goto BeforeRet;
		}
		LA8: ;
		real = (*actual).kindU.S6.Sons->data[idx];
		LOC10 = 0;
		LOC10 = len_226364(real);
		effects = newnodei_228007(((NU8) 41), (*n).Info, LOC10);
		{
			NI i_379552;
			NI HEX3Atmp_379601;
			NI LOC12;
			NI res_379604;
			i_379552 = 0;
			HEX3Atmp_379601 = 0;
			LOC12 = 0;
			LOC12 = len_226364(real);
			HEX3Atmp_379601 = (LOC12 - 1);
			res_379604 = 0;
			{
				while (1) {
					NimStringDesc* t;
					tnode225816* LOC15;
					tident200021* LOC21;
					tnode225816* LOC22;
					if (!(res_379604 <= HEX3Atmp_379601)) goto LA14;
					i_379552 = res_379604;
					LOC15 = 0;
					LOC15 = HEX5BHEX5D_226698(real, i_379552);
					t = typetostring_263031((*LOC15).Typ, ((NU8) 0));
					{
						NIM_BOOL LOC18;
						LOC18 = 0;
						LOC18 = nsuStartsWith(t, ((NimStringDesc*) &TMP4632));
						if (!LOC18) goto LA19;
						t = copyStr(t, 4);
					}
					LA19: ;
					LOC21 = 0;
					LOC21 = getident_200472(t);
					asgnRefNoCycle((void**) (&(*effects).kindU.S6.Sons->data[i_379552]), newidentnode_226125(LOC21, (*n).Info));
					LOC22 = 0;
					LOC22 = HEX5BHEX5D_226698(real, i_379552);
					asgnRefNoCycle((void**) (&(*(*effects).kindU.S6.Sons->data[i_379552]).Typ), (*LOC22).Typ);
					res_379604 += 1;
				} LA14: ;
			}
		}
		LOC23 = 0;
		LOC23 = (tnodeseq225810*) newSeq((&NTI225810), 2);
		memset((void*)LOC24, 0, sizeof(LOC24));
		LOC25 = 0;
		LOC25 = getident_200472(specialwords_204332[(effecttype)- 0]);
		LOC24[0] = newidentnode_226125(LOC25, (*n).Info);
		LOC24[1] = effects;
		asgnRefNoCycle((void**) (&LOC23->data[0]), LOC24[0]);
		asgnRefNoCycle((void**) (&LOC23->data[1]), LOC24[1]);
		result = newnode_228207(((NU8) 34), (*n).Info, LOC23, NIM_NIL);
	}
	LA3: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, documentraises_379621)(tnode225816* n) {
	tnode225816* pragmas;
	tnode225816* p1;
	tnode225816* 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_379452(n, pragmas, ((NU8) 152), 0);
	p2 = documenteffect_379452(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_226138(((NU8) 90), (*n).Info));
		}
		LA13: ;
		{
			if (!!((p1 == NIM_NIL))) goto LA17;
			add_226498((*n).kindU.S6.Sons->data[4], p1);
		}
		LA17: ;
		{
			if (!!((p2 == NIM_NIL))) goto LA21;
			add_226498((*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) {
}

