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

#include <math.h>

#include <setjmp.h>

#include <string.h>
typedef struct tnode226816 tnode226816;
typedef struct ttype226852 ttype226852;
typedef struct tlineinfo196539 tlineinfo196539;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tsym226846 tsym226846;
typedef struct tident201021 tident201021;
typedef struct tnodeseq226810 tnodeseq226810;
typedef struct tidobj201015 tidobj201015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct ttypeseq226848 ttypeseq226848;
typedef struct tscope226840 tscope226840;
typedef struct TY226947 TY226947;
typedef struct tinstantiation226836 tinstantiation226836;
typedef struct tstrtable226820 tstrtable226820;
typedef struct tsymseq226818 tsymseq226818;
typedef struct tloc226830 tloc226830;
typedef struct trope178009 trope178009;
typedef struct tlib226834 tlib226834;
typedef struct tcell44935 tcell44935;
typedef struct tcellseq44951 tcellseq44951;
typedef struct tgcheap47016 tgcheap47016;
typedef struct tcellset44947 tcellset44947;
typedef struct tpagedesc44943 tpagedesc44943;
typedef struct tmemregion27210 tmemregion27210;
typedef struct tsmallchunk26440 tsmallchunk26440;
typedef struct tllchunk27204 tllchunk27204;
typedef struct tbigchunk26442 tbigchunk26442;
typedef struct tintset26417 tintset26417;
typedef struct ttrunk26413 ttrunk26413;
typedef struct tavlnode27208 tavlnode27208;
typedef struct tgcstat47014 tgcstat47014;
typedef struct tinfocpu175463 tinfocpu175463;
typedef struct tinfoos175048 tinfoos175048;
typedef struct Exception Exception;
typedef struct TSafePoint TSafePoint;
typedef struct TY84745 TY84745;
typedef struct TY226936 TY226936;
typedef struct tlistentry127022 tlistentry127022;
typedef struct tbasechunk26438 tbasechunk26438;
typedef struct tfreecell26430 tfreecell26430;
struct  tlineinfo196539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  tnode226816  {
ttype226852* Typ;
tlineinfo196539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym226846* Sym;
} S4;
struct {tident201021* Ident;
} S5;
struct {tnodeseq226810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
typedef N_NIMCALL_PTR(void, TY3089) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3094) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3089 marker;
TY3094 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  tidobj201015  {
  TNimObject Sup;
NI Id;
};
struct  tstrtable226820  {
NI Counter;
tsymseq226818* Data;
};
struct  tloc226830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype226852* T;
trope178009* R;
trope178009* Heaproot;
};
struct  tsym226846  {
  tidobj201015 Sup;
NU8 Kind;
union {
struct {ttypeseq226848* Typeinstcache;
tscope226840* Typscope;
} S1;
struct {TY226947* Procinstcache;
tscope226840* Scope;
} S2;
struct {TY226947* Usedgenerics;
tstrtable226820 Tab;
} S3;
struct {tsym226846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype226852* Typ;
tident201021* Name;
tlineinfo196539 Info;
tsym226846* Owner;
NU32 Flags;
tnode226816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc226830 Loc;
tlib226834* Annex;
tnode226816* Constraint;
};
struct  tcell44935  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq44951  {
NI Len;
NI Cap;
tcell44935** D;
};
struct  tcellset44947  {
NI Counter;
NI Max;
tpagedesc44943* Head;
tpagedesc44943** Data;
};
typedef tsmallchunk26440* TY27222[512];
typedef ttrunk26413* ttrunkbuckets26415[256];
struct  tintset26417  {
ttrunkbuckets26415 Data;
};
struct  tmemregion27210  {
NI Minlargeobj;
NI Maxlargeobj;
TY27222 Freesmallchunks;
tllchunk27204* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk26442* Freechunkslist;
tintset26417 Chunkstarts;
tavlnode27208* Root;
tavlnode27208* Deleted;
tavlnode27208* Last;
tavlnode27208* Freeavlnodes;
};
struct  tgcstat47014  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap47016  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq44951 Zct;
tcellseq44951 Decstack;
tcellset44947 Cycleroots;
tcellseq44951 Tempstack;
NI Recgclock;
tmemregion27210 Region;
tgcstat47014 Stat;
};
struct  ttype226852  {
  tidobj201015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq226848* Sons;
tnode226816* N;
tsym226846* Owner;
tsym226846* Sym;
tsym226846* Destructor;
tsym226846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc226830 Loc;
};
struct tinfocpu175463 {
NimStringDesc* Field0;
NI Field1;
NU8 Field2;
NI Field3;
NI Field4;
};
typedef tinfocpu175463 TY175481[14];
struct tinfoos175048 {
NimStringDesc* Field0;
NimStringDesc* Field1;
NimStringDesc* Field2;
NimStringDesc* Field3;
NimStringDesc* Field4;
NimStringDesc* Field5;
NimStringDesc* Field6;
NimStringDesc* Field7;
NimStringDesc* Field8;
NimStringDesc* Field9;
NimStringDesc* Field10;
NimStringDesc* Field11;
NU8 Field12;
};
typedef tinfoos175048 TY175070[23];
struct  Exception  {
  TNimObject Sup;
Exception* parent;
NCSTRING name;
NimStringDesc* message;
NimStringDesc* trace;
};
typedef struct {
N_NIMCALL_PTR(NIM_BOOL, ClPrc) (Exception* e, void* ClEnv);
void* ClEnv;
} TY14809;
struct  TSafePoint  {
TSafePoint* prev;
NI status;
jmp_buf context;
NIM_BOOL hasRaiseAction;
TY14809 raiseAction;
};
struct  tident201021  {
  tidobj201015 Sup;
NimStringDesc* S;
tident201021* Next;
NI H;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct TY84745 {
NimStringDesc* Field0;
NI Field1;
};
typedef NimStringDesc* TY170969[2];
struct  tscope226840  {
NI Depthlevel;
tstrtable226820 Symbols;
tnodeseq226810* Usingsyms;
tscope226840* Parent;
};
struct  tinstantiation226836  {
tsym226846* Sym;
ttypeseq226848* Concretetypes;
TY226936* Usedby;
};
struct  trope178009  {
  TNimObject Sup;
trope178009* Left;
trope178009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tlistentry127022  {
  TNimObject Sup;
tlistentry127022* Prev;
tlistentry127022* Next;
};
struct  tlib226834  {
  tlistentry127022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope178009* Name;
tnode226816* Path;
};
typedef NI TY26420[16];
struct  tpagedesc44943  {
tpagedesc44943* Next;
NI Key;
TY26420 Bits;
};
struct  tbasechunk26438  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk26440  {
  tbasechunk26438 Sup;
tsmallchunk26440* Next;
tsmallchunk26440* Prev;
tfreecell26430* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk27204  {
NI Size;
NI Acc;
tllchunk27204* Next;
};
struct  tbigchunk26442  {
  tbasechunk26438 Sup;
tbigchunk26442* Next;
tbigchunk26442* Prev;
NI Align;
NF Data;
};
struct  ttrunk26413  {
ttrunk26413* Next;
NI Key;
TY26420 Bits;
};
typedef tavlnode27208* TY27214[2];
struct  tavlnode27208  {
TY27214 Link;
NI Key;
NI Upperbound;
NI Level;
};
struct  tfreecell26430  {
tfreecell26430* Next;
NI Zerofield;
};
struct tnodeseq226810 {
  TGenericSeq Sup;
  tnode226816* data[SEQ_DECL_SIZE];
};
struct ttypeseq226848 {
  TGenericSeq Sup;
  ttype226852* data[SEQ_DECL_SIZE];
};
struct TY226947 {
  TGenericSeq Sup;
  tinstantiation226836* data[SEQ_DECL_SIZE];
};
struct tsymseq226818 {
  TGenericSeq Sup;
  tsym226846* data[SEQ_DECL_SIZE];
};
struct TY226936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, internalerror_198987)(tlineinfo196539 info, NimStringDesc* errmsg);
N_NIMCALL(tnode226816*, newsymnode_228755)(tsym226846* sym, tlineinfo196539 info);
N_NIMCALL(ttype226852*, newtype_227083)(NU8 kind, tsym226846* owner);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(tcell44935*, usrtocell_48646)(void* usr);
static N_INLINE(void, rtladdzct_50204)(tcell44935* c);
N_NOINLINE(void, addzct_48617)(tcellseq44951* s, tcell44935* c);
N_NIMCALL(void, addsonskipintlit_283572)(ttype226852* father, ttype226852* son);
N_NIMCALL(ttype226852*, skiptypes_231245)(ttype226852* t, NU64 kinds);
N_NIMCALL(tnode226816*, newintnode_227096)(NU8 kind, NI64 intval);
N_NIMCALL(ttype226852*, getintlittype_283477)(tnode226816* literal);
N_NIMCALL(tnode226816*, newstrnode_227118)(NU8 kind, NimStringDesc* strval);
N_NIMCALL(tnode226816*, newintnodet_305028)(NI64 intval, tnode226816* n);
N_NIMCALL(tnode226816*, newstrnodet_305042)(NimStringDesc* strval, tnode226816* n);
N_NIMCALL(NimStringDesc*, ntgetDateStr)(void);
N_NIMCALL(NimStringDesc*, ntgetClockStr)(void);
N_NIMCALL(NimStringDesc*, nsuToLowerStr)(NimStringDesc* s);
N_NIMCALL(tnode226816*, getapptype_307451)(tnode226816* n);
N_NIMCALL(tnode226816*, newfloatnodet_305035)(NF floatval, tnode226816* n);
N_NIMCALL(tnode226816*, newfloatnode_227111)(NU8 kind, NF floatval);
N_NIMCALL(ttype226852*, getfloatlittype_283521)(tnode226816* literal);
N_NIMCALL(tnode226816*, copytree_227329)(tnode226816* src);
N_NIMCALL(tnode226816*, newsymnodetypedesc_308153)(tsym226846* s, tlineinfo196539 info);
N_NIMCALL(tnode226816*, copynode_227323)(tnode226816* src);
N_NIMCALL(tnode226816*, getconstifexpr_306783)(tsym226846* c, tnode226816* n);
static N_INLINE(NI, sonslen_227249)(tnode226816* n);
static N_INLINE(NI, len_227364)(tnode226816* n);
N_NIMCALL(tnode226816*, getconstexpr_305004)(tsym226846* m, tnode226816* n);
N_NIMCALL(NI64, getordvalue_264187)(tnode226816* n);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
static N_INLINE(void, popSafePoint)(void);
N_NIMCALL(NI64, computesize_264193)(ttype226852* typ);
N_NIMCALL(void, localerror_198955)(tlineinfo196539 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NI64, getsize_264199)(ttype226852* typ);
N_NIMCALL(NI64, firstord_264004)(ttype226852* t);
N_NIMCALL(NI64, lastord_264010)(ttype226852* t);
static N_INLINE(tnode226816*, HEX5BHEX5D_227698)(tnode226816* n, NI i);
N_NIMCALL(tnode226816*, getarrayconstr_307539)(tsym226846* m, tnode226816* n);
N_NIMCALL(tnode226816*, magiccall_307311)(tsym226846* m, tnode226816* n);
N_NIMCALL(tnode226816*, evalop_305011)(NU16 m, tnode226816* n, tnode226816* a, tnode226816* b, tnode226816* c);
N_NIMCALL(NI64, getint_233538)(tnode226816* a);
N_NIMCALL(NF, getfloat_233562)(tnode226816* a);
N_NIMCALL(NI64, cardset_285089)(tnode226816* s);
N_NIMCALL(NimStringDesc*, getstr_233587)(tnode226816* a);
N_NIMCALL(NI64, lengthord_264016)(ttype226852* t);
static N_INLINE(NI, cmpStrings)(NimStringDesc* a, NimStringDesc* b);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NIM_BOOL, containssets_285075)(tnode226816* a, tnode226816* b);
N_NIMCALL(NIM_BOOL, equalsets_285082)(tnode226816* a, tnode226816* b);
N_NIMCALL(tnode226816*, intersectsets_285061)(tnode226816* a, tnode226816* b);
N_NIMCALL(tnode226816*, unionsets_285047)(tnode226816* a, tnode226816* b);
N_NIMCALL(tnode226816*, diffsets_285054)(tnode226816* a, tnode226816* b);
N_NIMCALL(tnode226816*, symdiffsets_285068)(tnode226816* a, tnode226816* b);
N_NIMCALL(NimStringDesc*, getstrorchar_233611)(tnode226816* a);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(NIM_BOOL, inset_285019)(tnode226816* s, tnode226816* elem);
N_NIMCALL(NimStringDesc*, nimInt64ToStr)(NI64 x);
N_NIMCALL(NimStringDesc*, copyStr)(NimStringDesc* s, NI start);
N_NIMCALL(NimStringDesc*, copyStr)(NimStringDesc* s, NI first);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI start_74828, NI last);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI first, NI last);
N_NIMCALL(NimStringDesc*, nimFloatToStr)(NF f);
N_NIMCALL(NimStringDesc*, ordinalvaltostring_305091)(tnode226816* a);
N_NIMCALL(NimStringDesc*, nimCharToStr)(NIM_CHAR x);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(NIM_BOOL, testcompileoption_209634)(NimStringDesc* switch_209636, tlineinfo196539 info);
N_NIMCALL(NIM_BOOL, testcompileoptionarg_209505)(NimStringDesc* switch_209507, NimStringDesc* arg, tlineinfo196539 info);
N_NIMCALL(NimStringDesc*, reprEnum)(NI e_80907, TNimType* typ);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, rendertree_251058)(tnode226816* n, NU8 renderflags);
N_NIMCALL(tnode226816*, foldconstrstr_308054)(tsym226846* m, tnode226816* n);
N_NIMCALL(tnode226816*, newnodeit_227145)(NU8 kind, tlineinfo196539 info, ttype226852* typ);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(tnode226816*, evalis_306343)(tnode226816* n, tnode226816* a);
N_NIMCALL(void, internalerror_199006)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_199126)(TY84745 x_199130);
N_NIMCALL(NimStringDesc*, nsuNormalize)(NimStringDesc* s);
N_NIMCALL(NIM_BOOL, sametype_269351)(ttype226852* a, ttype226852* b, NU8 flags);
N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass);
static N_INLINE(Exception*, getCurrentException)(void);
static N_INLINE(void, popCurrentException)(void);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_51025)(tcell44935* c);
static N_INLINE(NIM_BOOL, canbecycleroot_48667)(tcell44935* c);
static N_INLINE(void, rtladdcycleroot_49429)(tcell44935* c);
N_NOINLINE(void, incl_45671)(tcellset44947* s, tcell44935* cell);
static N_INLINE(void, decref_50604)(tcell44935* c);
N_NIMCALL(void, reraiseException)(void);
N_NIMCALL(void, addson_227287)(tnode226816* father, tnode226816* son);
N_NIMCALL(NIM_BOOL, levalueconv_305021)(tnode226816* a, tnode226816* b);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(NimStringDesc*, msgkindtostring_198378)(NU16 kind);
N_NIMCALL(NimStringDesc*, typetostring_264031)(ttype226852* typ, NU8 prefer);
N_NIMCALL(tnode226816*, foldconv_307512)(tnode226816* n, tnode226816* a, NIM_BOOL check);
N_NIMCALL(void, rangecheck_307500)(tnode226816* n, NI64 value);
N_NIMCALL(tnode226816*, foldarrayaccess_307576)(tsym226846* m, tnode226816* n);
N_NIMCALL(tnode226816*, foldfieldaccess_307780)(tsym226846* m, tnode226816* n);
static N_INLINE(NIM_BOOL, isintrange_305250)(ttype226852* t);
N_NIMCALL(ttype226852*, makerange_305408)(ttype226852* typ, NI64 first, NI64 last);
N_NIMCALL(tnode226816*, newnode_227090)(NU8 kind);
N_NIMCALL(NI64, HEX7CHEX2DHEX7C_304034)(NI64 a, NI64 b);
static N_INLINE(NIM_BOOL, isfloatrange_305217)(ttype226852* t);
N_NIMCALL(ttype226852*, makerangef_305440)(ttype226852* typ, NF first, NF last);
N_NIMCALL(NI64, HEX7CabsHEX7C_304046)(NI64 a);
static N_INLINE(NIM_BOOL, isintlit_264386)(ttype226852* t);
N_NIMCALL(NI64, HEX7CHEX2BHEX7C_304019)(NI64 a, NI64 b);
N_NIMCALL(NI64, pickminint_305304)(tnode226816* n);
N_NIMCALL(NI64, pickmaxint_305356)(tnode226816* n);
N_NIMCALL(NIM_BOOL, isintrangeorlit_305294)(ttype226852* t);
N_NIMCALL(ttype226852*, pickintrange_305283)(ttype226852* a, ttype226852* b);
N_NIMCALL(NI64, HEX7CHEX2AHEX7C_304078)(NI64 a, NI64 b);
N_NIMCALL(NI64, HEX7CdivHEX7C_304056)(NI64 a, NI64 b);
STRING_LITERAL(TMP2836, "leValueConv", 11);
extern NIM_CONST TY175481 cpu_175480;
extern NIM_CONST TY175070 os_175069;
STRING_LITERAL(TMP3100, "lib", 3);
STRING_LITERAL(TMP3101, "staticlib", 9);
STRING_LITERAL(TMP3102, "gui", 3);
STRING_LITERAL(TMP3103, "console", 7);
STRING_LITERAL(TMP3104, "getConstIfExpr()", 16);
STRING_LITERAL(TMP3106, "sizeof", 6);
STRING_LITERAL(TMP3110, "constant folding for shl", 24);
STRING_LITERAL(TMP3111, "constant folding for shr", 24);
STRING_LITERAL(TMP3113, "false", 5);
STRING_LITERAL(TMP3114, "true", 4);
STRING_LITERAL(TMP3115, "ordinalValToString", 18);
STRING_LITERAL(TMP3116, "no symbol for ordinal value: ", 29);
STRING_LITERAL(TMP3117, "evalOp(", 7);
STRING_LITERAL(TMP3118, "", 0);
STRING_LITERAL(TMP3120, "compiler/semfold.nim", 20);
NIM_CONST TY84745 TMP3119 = {((NimStringDesc*) &TMP3120),
242}
;
NIM_CONST TY84745 TMP3121 = {((NimStringDesc*) &TMP3120),
243}
;
STRING_LITERAL(TMP3122, "closure", 7);
STRING_LITERAL(TMP3123, "iterator", 8);
STRING_LITERAL(TMP3124, "cannot convert ", 15);
STRING_LITERAL(TMP3125, " to ", 4);
STRING_LITERAL(TMP3126, "pickMinInt", 10);
STRING_LITERAL(TMP3127, "pickMaxInt", 10);
extern tgcheap47016 gch_47044;
extern NU8 targetcpu_175587;
extern NU8 targetos_175589;
extern NU32 gglobaloptions_170118;
extern TSafePoint* exchandler_16243;
extern TNimType NTI226532; /* TMagic */
extern TNimType NTI3243; /* OverflowError */
extern Exception* currexception_16245;
extern TNimType NTI3241; /* DivByZeroError */

N_NIMCALL(NIM_BOOL, levalueconv_305021)(tnode226816* a, tnode226816* b) {
	NIM_BOOL result;
	result = 0;
	result = NIM_FALSE;
	switch ((*a).Kind) {
	case ((NU8) 5) ... ((NU8) 15):
	{
		switch ((*b).Kind) {
		case ((NU8) 5) ... ((NU8) 15):
		{
			result = ((*a).kindU.S1.Intval <= (*b).kindU.S1.Intval);
		}
		break;
		case ((NU8) 16) ... ((NU8) 19):
		{
			NI LOC4;
			LOC4 = 0;
			LOC4 = lrint((*b).kindU.S2.Floatval);
			result = ((*a).kindU.S1.Intval <= ((NI64) (LOC4)));
		}
		break;
		default:
		{
			internalerror_198987((*a).Info, ((NimStringDesc*) &TMP2836));
		}
		break;
		}
	}
	break;
	case ((NU8) 16) ... ((NU8) 19):
	{
		switch ((*b).Kind) {
		case ((NU8) 16) ... ((NU8) 19):
		{
			result = ((*a).kindU.S2.Floatval <= (*b).kindU.S2.Floatval);
		}
		break;
		case ((NU8) 5) ... ((NU8) 15):
		{
			result = ((*a).kindU.S2.Floatval <= ((double) (((NI) ((*b).kindU.S1.Intval)))));
		}
		break;
		default:
		{
			internalerror_198987((*a).Info, ((NimStringDesc*) &TMP2836));
		}
		break;
		}
	}
	break;
	default:
	{
		internalerror_198987((*a).Info, ((NimStringDesc*) &TMP2836));
	}
	break;
	}
	return result;
}

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

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

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

N_NIMCALL(tnode226816*, newsymnodetypedesc_308153)(tsym226846* s, tlineinfo196539 info) {
	tnode226816* result;
	result = 0;
	result = newsymnode_228755(s, info);
	asgnRefNoCycle((void**) (&(*result).Typ), newtype_227083(((NU8) 8), (*s).Owner));
	addsonskipintlit_283572((*result).Typ, (*s).Typ);
	return result;
}

N_NIMCALL(tnode226816*, newintnodet_305028)(NI64 intval, tnode226816* n) {
	tnode226816* result;
	ttype226852* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = skiptypes_231245((*n).Typ, IL64(211106242013440));
	switch ((*LOC1).Kind) {
	case ((NU8) 31):
	{
		result = newintnode_227096(((NU8) 6), intval);
		asgnRefNoCycle((void**) (&(*result).Typ), getintlittype_283477(result));
	}
	break;
	case ((NU8) 2):
	{
		result = newintnode_227096(((NU8) 5), intval);
		asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
	}
	break;
	default:
	{
		result = newintnode_227096(((NU8) 6), intval);
		asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
	}
	break;
	}
	(*result).Info = (*n).Info;
	return result;
}

N_NIMCALL(tnode226816*, newstrnodet_305042)(NimStringDesc* strval, tnode226816* n) {
	tnode226816* result;
	result = 0;
	result = newstrnode_227118(((NU8) 20), strval);
	asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
	(*result).Info = (*n).Info;
	return result;
}

N_NIMCALL(tnode226816*, getapptype_307451)(tnode226816* n) {
	tnode226816* result;
	result = 0;
	{
		if (!((gglobaloptions_170118 &(1<<((((NU8) 8))&31)))!=0)) goto LA3;
		result = newstrnodet_305042(((NimStringDesc*) &TMP3100), n);
	}
	goto LA1;
	LA3: ;
	{
		if (!((gglobaloptions_170118 &(1<<((((NU8) 9))&31)))!=0)) goto LA6;
		result = newstrnodet_305042(((NimStringDesc*) &TMP3101), n);
	}
	goto LA1;
	LA6: ;
	{
		if (!((gglobaloptions_170118 &(1<<((((NU8) 10))&31)))!=0)) goto LA9;
		result = newstrnodet_305042(((NimStringDesc*) &TMP3102), n);
	}
	goto LA1;
	LA9: ;
	{
		result = newstrnodet_305042(((NimStringDesc*) &TMP3103), n);
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode226816*, newfloatnodet_305035)(NF floatval, tnode226816* n) {
	tnode226816* result;
	result = 0;
	result = newfloatnode_227111(((NU8) 16), floatval);
	{
		ttype226852* LOC3;
		LOC3 = 0;
		LOC3 = skiptypes_231245((*n).Typ, IL64(211106242013440));
		if (!((*LOC3).Kind == ((NU8) 36))) goto LA4;
		asgnRefNoCycle((void**) (&(*result).Typ), getfloatlittype_283521(result));
	}
	goto LA1;
	LA4: ;
	{
		asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
	}
	LA1: ;
	(*result).Info = (*n).Info;
	return result;
}

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

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

N_NIMCALL(tnode226816*, getconstifexpr_306783)(tsym226846* c, tnode226816* n) {
	tnode226816* result;
	result = 0;
	result = NIM_NIL;
	{
		NI i_306800;
		NI HEX3Atmp_306928;
		NI LOC2;
		NI res_306931;
		i_306800 = 0;
		HEX3Atmp_306928 = 0;
		LOC2 = 0;
		LOC2 = sonslen_227249(n);
		HEX3Atmp_306928 = (NI32)(LOC2 - 1);
		res_306931 = 0;
		{
			while (1) {
				tnode226816* it;
				if (!(res_306931 <= HEX3Atmp_306928)) goto LA4;
				i_306800 = res_306931;
				it = (*n).kindU.S6.Sons->data[i_306800];
				{
					NI LOC7;
					tnode226816* e;
					LOC7 = 0;
					LOC7 = len_227364(it);
					if (!(LOC7 == 2)) goto LA8;
					e = getconstexpr_305004(c, (*it).kindU.S6.Sons->data[0]);
					{
						if (!(e == NIM_NIL)) goto LA12;
						result = NIM_NIL;
						goto BeforeRet;
					}
					LA12: ;
					{
						NI64 LOC16;
						LOC16 = 0;
						LOC16 = getordvalue_264187(e);
						if (!!((LOC16 == IL64(0)))) goto LA17;
						{
							if (!(result == NIM_NIL)) goto LA21;
							result = getconstexpr_305004(c, (*it).kindU.S6.Sons->data[1]);
							{
								if (!(result == NIM_NIL)) goto LA25;
								goto BeforeRet;
							}
							LA25: ;
						}
						LA21: ;
					}
					LA17: ;
				}
				goto LA5;
				LA8: ;
				{
					NI LOC28;
					LOC28 = 0;
					LOC28 = len_227364(it);
					if (!(LOC28 == 1)) goto LA29;
					{
						if (!(result == NIM_NIL)) goto LA33;
						result = getconstexpr_305004(c, (*it).kindU.S6.Sons->data[0]);
					}
					LA33: ;
				}
				goto LA5;
				LA29: ;
				{
					internalerror_198987((*it).Info, ((NimStringDesc*) &TMP3104));
				}
				LA5: ;
				res_306931 += 1;
			} LA4: ;
		}
	}
	BeforeRet: ;
	return result;
}

static N_INLINE(void, pushSafePoint)(TSafePoint* s) {
	(*s).hasRaiseAction = NIM_FALSE;
	(*s).prev = exchandler_16243;
	exchandler_16243 = s;
}

static N_INLINE(void, popSafePoint)(void) {
	exchandler_16243 = (*exchandler_16243).prev;
}

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

N_NIMCALL(tnode226816*, getarrayconstr_307539)(tsym226846* m, tnode226816* n) {
	tnode226816* result;
	result = 0;
	{
		if (!((*n).Kind == ((NU8) 41))) goto LA3;
		result = n;
	}
	goto LA1;
	LA3: ;
	{
		result = getconstexpr_305004(m, n);
		{
			if (!(result == NIM_NIL)) goto LA8;
			result = n;
		}
		LA8: ;
	}
	LA1: ;
	return result;
}

static N_INLINE(NI, cmpStrings)(NimStringDesc* a, NimStringDesc* b) {
	NI result;
	int LOC13;
	result = 0;
	{
		if (!(a == b)) goto LA3;
		result = 0;
		goto BeforeRet;
	}
	LA3: ;
	{
		if (!(a == NIM_NIL)) goto LA7;
		result = -1;
		goto BeforeRet;
	}
	LA7: ;
	{
		if (!(b == NIM_NIL)) goto LA11;
		result = 1;
		goto BeforeRet;
	}
	LA11: ;
	LOC13 = 0;
	LOC13 = strcmp(((NCSTRING) ((*a).data)), ((NCSTRING) ((*b).data)));
	result = ((NI) (LOC13));
	goto BeforeRet;
	BeforeRet: ;
	return result;
}

static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) {
	NIM_BOOL result;
	NIM_BOOL LOC11;
	int LOC13;
	result = 0;
	{
		if (!(a == b)) goto LA3;
		result = NIM_TRUE;
		goto BeforeRet;
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = (a == NIM_NIL);
		if (LOC7) goto LA8;
		LOC7 = (b == NIM_NIL);
		LA8: ;
		if (!LOC7) goto LA9;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA9: ;
	LOC11 = 0;
	LOC11 = ((*a).Sup.len == (*b).Sup.len);
	if (!(LOC11)) goto LA12;
	LOC13 = 0;
	LOC13 = memcmp(((NCSTRING) ((*a).data)), ((NCSTRING) ((*b).data)), (NI32)((*a).Sup.len * 1));
	LOC11 = (LOC13 == ((NI32) 0));
	LA12: ;
	result = LOC11;
	goto BeforeRet;
	BeforeRet: ;
	return result;
}

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

N_NIMCALL(NimStringDesc*, ordinalvaltostring_305091)(tnode226816* a) {
	NimStringDesc* result;
	NI64 x;
	ttype226852* t;
	result = 0;
	x = getint_233538(a);
	t = skiptypes_231245((*a).Typ, IL64(211106233624832));
	switch ((*t).Kind) {
	case ((NU8) 2):
	{
		result = nimCharToStr(((NIM_CHAR) ((NI)(((NI) (x)) & 255))));
	}
	break;
	case ((NU8) 14):
	{
		tnode226816* n;
		NimStringDesc* LOC20;
		NimStringDesc* LOC21;
		n = (*t).N;
		{
			NI i_305112;
			NI HEX3Atmp_305197;
			NI LOC4;
			NI res_305200;
			i_305112 = 0;
			HEX3Atmp_305197 = 0;
			LOC4 = 0;
			LOC4 = sonslen_227249(n);
			HEX3Atmp_305197 = (NI32)(LOC4 - 1);
			res_305200 = 0;
			{
				while (1) {
					tsym226846* field;
					if (!(res_305200 <= HEX3Atmp_305197)) goto LA6;
					i_305112 = res_305200;
					{
						if (!!(((*(*n).kindU.S6.Sons->data[i_305112]).Kind == ((NU8) 3)))) goto LA9;
						internalerror_198987((*a).Info, ((NimStringDesc*) &TMP3115));
					}
					LA9: ;
					field = (*(*n).kindU.S6.Sons->data[i_305112]).kindU.S4.Sym;
					{
						if (!(((NI64) ((*field).Position)) == x)) goto LA13;
						{
							if (!((*field).Ast == NIM_NIL)) goto LA17;
							result = copyString((*(*field).Name).S);
							goto BeforeRet;
						}
						goto LA15;
						LA17: ;
						{
							result = copyString((*(*field).Ast).kindU.S3.Strval);
							goto BeforeRet;
						}
						LA15: ;
					}
					LA13: ;
					res_305200 += 1;
				} LA6: ;
			}
		}
		LOC20 = 0;
		LOC21 = 0;
		LOC21 = nimInt64ToStr(x);
		LOC20 = rawNewString(LOC21->Sup.len + 29);
appendString(LOC20, ((NimStringDesc*) &TMP3116));
appendString(LOC20, LOC21);
		internalerror_198987((*a).Info, LOC20);
	}
	break;
	default:
	{
		result = nimInt64ToStr(x);
	}
	break;
	}
	BeforeRet: ;
	return result;
}

static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c) {
	(*dest).data[((*dest).Sup.len)- 0] = c;
	(*dest).data[((NI32)((*dest).Sup.len + 1))- 0] = 0;
	(*dest).Sup.len += 1;
}

N_NIMCALL(tnode226816*, evalop_305011)(NU16 m, tnode226816* n, tnode226816* a, tnode226816* b, tnode226816* c) {
	tnode226816* result;
	result = 0;
	result = NIM_NIL;
	switch (m) {
	case ((NU16) 23):
	{
		NI64 LOC2;
		LOC2 = 0;
		LOC2 = getordvalue_264187(a);
		result = newintnodet_305028(LOC2, n);
	}
	break;
	case ((NU16) 34):
	{
		NI64 LOC4;
		LOC4 = 0;
		LOC4 = getint_233538(a);
		result = newintnodet_305028(LOC4, n);
	}
	break;
	case ((NU16) 101):
	case ((NU16) 102):
	{
		NI64 LOC6;
		LOC6 = 0;
		LOC6 = getint_233538(a);
		result = newintnodet_305028(-(LOC6), n);
	}
	break;
	case ((NU16) 111):
	{
		NF LOC8;
		LOC8 = 0;
		LOC8 = getfloat_233562(a);
		result = newfloatnodet_305035(-(LOC8), n);
	}
	break;
	case ((NU16) 105):
	{
		NI64 LOC10;
		LOC10 = 0;
		LOC10 = getint_233538(a);
		result = newintnodet_305028((NI64)(IL64(1) - LOC10), n);
	}
	break;
	case ((NU16) 33):
	{
		NI64 LOC12;
		LOC12 = 0;
		LOC12 = cardset_285089(a);
		result = newintnodet_305028(LOC12, n);
	}
	break;
	case ((NU16) 107):
	case ((NU16) 109):
	{
		NI64 LOC14;
		LOC14 = 0;
		LOC14 = getint_233538(a);
		result = newintnodet_305028((NI64)((NU64) ~(LOC14)), n);
	}
	break;
	case ((NU16) 28):
	{
		NimStringDesc* LOC16;
		LOC16 = 0;
		LOC16 = getstr_233587(a);
		result = newintnodet_305028(((NI64) (LOC16->Sup.len)), n);
	}
	break;
	case ((NU16) 29):
	{
		NI64 LOC18;
		LOC18 = 0;
		LOC18 = lengthord_264016((*a).Typ);
		result = newintnodet_305028(LOC18, n);
	}
	break;
	case ((NU16) 30):
	case ((NU16) 27):
	{
		NI LOC20;
		LOC20 = 0;
		LOC20 = sonslen_227249(a);
		result = newintnodet_305028(((NI64) (LOC20)), n);
	}
	break;
	case ((NU16) 106):
	case ((NU16) 108):
	case ((NU16) 110):
	{
		result = a;
	}
	break;
	case ((NU16) 122):
	case ((NU16) 123):
	{
		NI64 LOC23;
		LOC23 = 0;
		LOC23 = getint_233538(a);
		result = newfloatnodet_305035(((double) (((NI) (LOC23)))), n);
	}
	break;
	case ((NU16) 124):
	case ((NU16) 125):
	{
		NF LOC25;
		LOC25 = 0;
		LOC25 = getfloat_233562(a);
		result = newintnodet_305028(((NI64) (float64ToInt32(LOC25))), n);
	}
	break;
	case ((NU16) 112):
	{
		NF LOC27;
		LOC27 = 0;
		LOC27 = getfloat_233562(a);
		result = newfloatnodet_305035((LOC27 > 0? (LOC27) : -(LOC27)), n);
	}
	break;
	case ((NU16) 103):
	case ((NU16) 104):
	{
		{
			NI64 LOC31;
			LOC31 = 0;
			LOC31 = getint_233538(a);
			if (!(IL64(0) <= LOC31)) goto LA32;
			result = a;
		}
		goto LA29;
		LA32: ;
		{
			NI64 LOC35;
			LOC35 = 0;
			LOC35 = getint_233538(a);
			result = newintnodet_305028(-(LOC35), n);
		}
		LA29: ;
	}
	break;
	case ((NU16) 113):
	case ((NU16) 114):
	case ((NU16) 115):
	case ((NU16) 116):
	case ((NU16) 117):
	case ((NU16) 118):
	{
		NI64 LOC37;
		NI64 LOC38;
		LOC37 = 0;
		LOC37 = getint_233538(a);
		LOC38 = 0;
		LOC38 = getsize_264199((*a).Typ);
		result = newintnodet_305028((NI64)(LOC37 & (NI64)((NI64)((NU64)(IL64(1)) << (NU64)((NI64)(LOC38 * IL64(8)))) - IL64(1))), n);
	}
	break;
	case ((NU16) 119):
	{
		NI64 LOC40;
		LOC40 = 0;
		LOC40 = getint_233538(a);
		result = newintnodet_305028(((NI64) ((NI64)(LOC40 & IL64(255)))), n);
	}
	break;
	case ((NU16) 120):
	{
		NI64 LOC42;
		LOC42 = 0;
		LOC42 = getint_233538(a);
		result = newintnodet_305028(((NI64) ((NI64)(LOC42 & IL64(65535)))), n);
	}
	break;
	case ((NU16) 121):
	{
		NI64 LOC44;
		LOC44 = 0;
		LOC44 = getint_233538(a);
		result = newintnodet_305028(((NI64) ((NI64)(LOC44 & IL64(4294967295)))), n);
	}
	break;
	case ((NU16) 18):
	{
		NI64 LOC46;
		LOC46 = 0;
		LOC46 = getordvalue_264187(a);
		result = newintnodet_305028((NI64)(LOC46 - IL64(1)), n);
	}
	break;
	case ((NU16) 19):
	{
		NI64 LOC48;
		NI64 LOC49;
		LOC48 = 0;
		LOC48 = getordvalue_264187(a);
		LOC49 = 0;
		LOC49 = getint_233538(b);
		result = newintnodet_305028((NI64)(LOC48 + LOC49), n);
	}
	break;
	case ((NU16) 20):
	{
		NI64 LOC51;
		NI64 LOC52;
		LOC51 = 0;
		LOC51 = getordvalue_264187(a);
		LOC52 = 0;
		LOC52 = getint_233538(b);
		result = newintnodet_305028((NI64)(LOC51 - LOC52), n);
	}
	break;
	case ((NU16) 37):
	case ((NU16) 42):
	{
		NI64 LOC54;
		NI64 LOC55;
		LOC54 = 0;
		LOC54 = getint_233538(a);
		LOC55 = 0;
		LOC55 = getint_233538(b);
		result = newintnodet_305028((NI64)(LOC54 + LOC55), n);
	}
	break;
	case ((NU16) 38):
	case ((NU16) 43):
	{
		NI64 LOC57;
		NI64 LOC58;
		LOC57 = 0;
		LOC57 = getint_233538(a);
		LOC58 = 0;
		LOC58 = getint_233538(b);
		result = newintnodet_305028((NI64)(LOC57 - LOC58), n);
	}
	break;
	case ((NU16) 39):
	case ((NU16) 44):
	{
		NI64 LOC60;
		NI64 LOC61;
		LOC60 = 0;
		LOC60 = getint_233538(a);
		LOC61 = 0;
		LOC61 = getint_233538(b);
		result = newintnodet_305028((NI64)(LOC60 * LOC61), n);
	}
	break;
	case ((NU16) 56):
	case ((NU16) 63):
	{
		{
			NI64 LOC65;
			NI64 LOC66;
			NI64 LOC69;
			LOC65 = 0;
			LOC65 = getint_233538(b);
			LOC66 = 0;
			LOC66 = getint_233538(a);
			if (!(LOC65 < LOC66)) goto LA67;
			LOC69 = 0;
			LOC69 = getint_233538(b);
			result = newintnodet_305028(LOC69, n);
		}
		goto LA63;
		LA67: ;
		{
			NI64 LOC71;
			LOC71 = 0;
			LOC71 = getint_233538(a);
			result = newintnodet_305028(LOC71, n);
		}
		LA63: ;
	}
	break;
	case ((NU16) 57):
	case ((NU16) 64):
	{
		{
			NI64 LOC75;
			NI64 LOC76;
			NI64 LOC79;
			LOC75 = 0;
			LOC75 = getint_233538(b);
			LOC76 = 0;
			LOC76 = getint_233538(a);
			if (!(LOC75 < LOC76)) goto LA77;
			LOC79 = 0;
			LOC79 = getint_233538(a);
			result = newintnodet_305028(LOC79, n);
		}
		goto LA73;
		LA77: ;
		{
			NI64 LOC81;
			LOC81 = 0;
			LOC81 = getint_233538(b);
			result = newintnodet_305028(LOC81, n);
		}
		LA73: ;
	}
	break;
	case ((NU16) 52):
	case ((NU16) 59):
	{
		ttype226852* LOC83;
		LOC83 = 0;
		LOC83 = skiptypes_231245((*n).Typ, IL64(211106233624832));
		switch ((*LOC83).Kind) {
		case ((NU8) 32):
		{
			NI64 LOC85;
			NI64 LOC86;
			LOC85 = 0;
			LOC85 = getint_233538(a);
			LOC86 = 0;
			LOC86 = getint_233538(b);
			result = newintnodet_305028(((NI64) ((NI8)((NU8)(((NI8) (LOC85))) << (NU8)(((NI8) (LOC86)))))), n);
		}
		break;
		case ((NU8) 33):
		{
			NI64 LOC88;
			NI64 LOC89;
			LOC88 = 0;
			LOC88 = getint_233538(a);
			LOC89 = 0;
			LOC89 = getint_233538(b);
			result = newintnodet_305028(((NI64) ((NI16)((NU16)(((NI16) (LOC88))) << (NU16)(((NI16) (LOC89)))))), n);
		}
		break;
		case ((NU8) 34):
		{
			NI64 LOC91;
			NI64 LOC92;
			LOC91 = 0;
			LOC91 = getint_233538(a);
			LOC92 = 0;
			LOC92 = getint_233538(b);
			result = newintnodet_305028(((NI64) ((NI32)((NU32)(((NI32) (LOC91))) << (NU32)(((NI32) (LOC92)))))), n);
		}
		break;
		case ((NU8) 35):
		case ((NU8) 31):
		case ((NU8) 40) ... ((NU8) 44):
		{
			NI64 LOC94;
			NI64 LOC95;
			LOC94 = 0;
			LOC94 = getint_233538(a);
			LOC95 = 0;
			LOC95 = getint_233538(b);
			result = newintnodet_305028((NI64)((NU64)(LOC94) << (NU64)(LOC95)), n);
		}
		break;
		default:
		{
			internalerror_198987((*n).Info, ((NimStringDesc*) &TMP3110));
		}
		break;
		}
	}
	break;
	case ((NU16) 51):
	case ((NU16) 58):
	{
		ttype226852* LOC98;
		LOC98 = 0;
		LOC98 = skiptypes_231245((*n).Typ, IL64(211106233624832));
		switch ((*LOC98).Kind) {
		case ((NU8) 32):
		{
			NI64 LOC100;
			NI64 LOC101;
			LOC100 = 0;
			LOC100 = getint_233538(a);
			LOC101 = 0;
			LOC101 = getint_233538(b);
			result = newintnodet_305028(((NI64) ((NI8)((NU8)(((NI8) (LOC100))) >> (NU8)(((NI8) (LOC101)))))), n);
		}
		break;
		case ((NU8) 33):
		{
			NI64 LOC103;
			NI64 LOC104;
			LOC103 = 0;
			LOC103 = getint_233538(a);
			LOC104 = 0;
			LOC104 = getint_233538(b);
			result = newintnodet_305028(((NI64) ((NI16)((NU16)(((NI16) (LOC103))) >> (NU16)(((NI16) (LOC104)))))), n);
		}
		break;
		case ((NU8) 34):
		{
			NI64 LOC106;
			NI64 LOC107;
			LOC106 = 0;
			LOC106 = getint_233538(a);
			LOC107 = 0;
			LOC107 = getint_233538(b);
			result = newintnodet_305028(((NI64) ((NI32)((NU32)(((NI32) (LOC106))) >> (NU32)(((NI32) (LOC107)))))), n);
		}
		break;
		case ((NU8) 35):
		case ((NU8) 31):
		case ((NU8) 40) ... ((NU8) 44):
		{
			NI64 LOC109;
			NI64 LOC110;
			LOC109 = 0;
			LOC109 = getint_233538(a);
			LOC110 = 0;
			LOC110 = getint_233538(b);
			result = newintnodet_305028((NI64)((NU64)(LOC109) >> (NU64)(LOC110)), n);
		}
		break;
		default:
		{
			internalerror_198987((*n).Info, ((NimStringDesc*) &TMP3111));
		}
		break;
		}
	}
	break;
	case ((NU16) 40):
	case ((NU16) 45):
	{
		NI64 y;
		y = getint_233538(b);
		{
			NI64 LOC117;
			if (!!((y == IL64(0)))) goto LA115;
			LOC117 = 0;
			LOC117 = getint_233538(a);
			result = newintnodet_305028((NI64)(LOC117 / y), n);
		}
		LA115: ;
	}
	break;
	case ((NU16) 41):
	case ((NU16) 46):
	{
		NI64 y;
		y = getint_233538(b);
		{
			NI64 LOC123;
			if (!!((y == IL64(0)))) goto LA121;
			LOC123 = 0;
			LOC123 = getint_233538(a);
			result = newintnodet_305028((NI64)(LOC123 % y), n);
		}
		LA121: ;
	}
	break;
	case ((NU16) 47):
	{
		NF LOC125;
		NF LOC126;
		LOC125 = 0;
		LOC125 = getfloat_233562(a);
		LOC126 = 0;
		LOC126 = getfloat_233562(b);
		result = newfloatnodet_305035(((NF)(LOC125) + (NF)(LOC126)), n);
	}
	break;
	case ((NU16) 48):
	{
		NF LOC128;
		NF LOC129;
		LOC128 = 0;
		LOC128 = getfloat_233562(a);
		LOC129 = 0;
		LOC129 = getfloat_233562(b);
		result = newfloatnodet_305035(((NF)(LOC128) - (NF)(LOC129)), n);
	}
	break;
	case ((NU16) 49):
	{
		NF LOC131;
		NF LOC132;
		LOC131 = 0;
		LOC131 = getfloat_233562(a);
		LOC132 = 0;
		LOC132 = getfloat_233562(b);
		result = newfloatnodet_305035(((NF)(LOC131) * (NF)(LOC132)), n);
	}
	break;
	case ((NU16) 50):
	{
		{
			NF LOC136;
			LOC136 = 0;
			LOC136 = getfloat_233562(b);
			if (!(LOC136 == 0.0)) goto LA137;
			{
				NF LOC141;
				LOC141 = 0;
				LOC141 = getfloat_233562(a);
				if (!(LOC141 == 0.0)) goto LA142;
				result = newfloatnodet_305035(NAN, n);
			}
			goto LA139;
			LA142: ;
			{
				result = newfloatnodet_305035(INF, n);
			}
			LA139: ;
		}
		goto LA134;
		LA137: ;
		{
			NF LOC146;
			NF LOC147;
			LOC146 = 0;
			LOC146 = getfloat_233562(a);
			LOC147 = 0;
			LOC147 = getfloat_233562(b);
			result = newfloatnodet_305035(((NF)(LOC146) / (NF)(LOC147)), n);
		}
		LA134: ;
	}
	break;
	case ((NU16) 66):
	{
		{
			NF LOC151;
			NF LOC152;
			NF LOC155;
			LOC151 = 0;
			LOC151 = getfloat_233562(b);
			LOC152 = 0;
			LOC152 = getfloat_233562(a);
			if (!(LOC151 < LOC152)) goto LA153;
			LOC155 = 0;
			LOC155 = getfloat_233562(a);
			result = newfloatnodet_305035(LOC155, n);
		}
		goto LA149;
		LA153: ;
		{
			NF LOC157;
			LOC157 = 0;
			LOC157 = getfloat_233562(b);
			result = newfloatnodet_305035(LOC157, n);
		}
		LA149: ;
	}
	break;
	case ((NU16) 65):
	{
		{
			NF LOC161;
			NF LOC162;
			NF LOC165;
			LOC161 = 0;
			LOC161 = getfloat_233562(b);
			LOC162 = 0;
			LOC162 = getfloat_233562(a);
			if (!(LOC161 < LOC162)) goto LA163;
			LOC165 = 0;
			LOC165 = getfloat_233562(b);
			result = newfloatnodet_305035(LOC165, n);
		}
		goto LA159;
		LA163: ;
		{
			NF LOC167;
			LOC167 = 0;
			LOC167 = getfloat_233562(a);
			result = newfloatnodet_305035(LOC167, n);
		}
		LA159: ;
	}
	break;
	case ((NU16) 168):
	{
		result = newintnodet_305028(((NI64) (((*a).Kind == ((NU8) 23)))), n);
	}
	break;
	case ((NU16) 74):
	case ((NU16) 77):
	case ((NU16) 93):
	case ((NU16) 87):
	case ((NU16) 90):
	{
		NI64 LOC170;
		NI64 LOC171;
		LOC170 = 0;
		LOC170 = getordvalue_264187(a);
		LOC171 = 0;
		LOC171 = getordvalue_264187(b);
		result = newintnodet_305028(((NI64) ((LOC170 < LOC171))), n);
	}
	break;
	case ((NU16) 73):
	case ((NU16) 76):
	case ((NU16) 92):
	case ((NU16) 86):
	case ((NU16) 89):
	{
		NI64 LOC173;
		NI64 LOC174;
		LOC173 = 0;
		LOC173 = getordvalue_264187(a);
		LOC174 = 0;
		LOC174 = getordvalue_264187(b);
		result = newintnodet_305028(((NI64) ((LOC173 <= LOC174))), n);
	}
	break;
	case ((NU16) 72):
	case ((NU16) 75):
	case ((NU16) 91):
	case ((NU16) 85):
	case ((NU16) 88):
	{
		NI64 LOC176;
		NI64 LOC177;
		LOC176 = 0;
		LOC176 = getordvalue_264187(a);
		LOC177 = 0;
		LOC177 = getordvalue_264187(b);
		result = newintnodet_305028(((NI64) ((LOC176 == LOC177))), n);
	}
	break;
	case ((NU16) 80):
	{
		NF LOC179;
		NF LOC180;
		LOC179 = 0;
		LOC179 = getfloat_233562(a);
		LOC180 = 0;
		LOC180 = getfloat_233562(b);
		result = newintnodet_305028(((NI64) ((LOC179 < LOC180))), n);
	}
	break;
	case ((NU16) 79):
	{
		NF LOC182;
		NF LOC183;
		LOC182 = 0;
		LOC182 = getfloat_233562(a);
		LOC183 = 0;
		LOC183 = getfloat_233562(b);
		result = newintnodet_305028(((NI64) ((LOC182 <= LOC183))), n);
	}
	break;
	case ((NU16) 78):
	{
		NF LOC185;
		NF LOC186;
		LOC185 = 0;
		LOC185 = getfloat_233562(a);
		LOC186 = 0;
		LOC186 = getfloat_233562(b);
		result = newintnodet_305028(((NI64) ((LOC185 == LOC186))), n);
	}
	break;
	case ((NU16) 138):
	{
		NimStringDesc* LOC188;
		NimStringDesc* LOC189;
		LOC188 = 0;
		LOC188 = getstr_233587(a);
		LOC189 = 0;
		LOC189 = getstr_233587(b);
		result = newintnodet_305028(((NI64) ((cmpStrings(LOC188, LOC189) < 0))), n);
	}
	break;
	case ((NU16) 137):
	{
		NimStringDesc* LOC191;
		NimStringDesc* LOC192;
		LOC191 = 0;
		LOC191 = getstr_233587(a);
		LOC192 = 0;
		LOC192 = getstr_233587(b);
		result = newintnodet_305028(((NI64) ((cmpStrings(LOC191, LOC192) <= 0))), n);
	}
	break;
	case ((NU16) 136):
	{
		NimStringDesc* LOC194;
		NimStringDesc* LOC195;
		LOC194 = 0;
		LOC194 = getstr_233587(a);
		LOC195 = 0;
		LOC195 = getstr_233587(b);
		result = newintnodet_305028(((NI64) (eqStrings(LOC194, LOC195))), n);
	}
	break;
	case ((NU16) 82):
	case ((NU16) 84):
	{
		NI64 LOC197;
		NI64 LOC198;
		LOC197 = 0;
		LOC197 = getordvalue_264187(a);
		LOC198 = 0;
		LOC198 = getordvalue_264187(b);
		result = newintnodet_305028(((NI64) (((NU64)(LOC197) < (NU64)(LOC198)))), n);
	}
	break;
	case ((NU16) 81):
	case ((NU16) 83):
	{
		NI64 LOC200;
		NI64 LOC201;
		LOC200 = 0;
		LOC200 = getordvalue_264187(a);
		LOC201 = 0;
		LOC201 = getordvalue_264187(b);
		result = newintnodet_305028(((NI64) (((NU64)(LOC200) <= (NU64)(LOC201)))), n);
	}
	break;
	case ((NU16) 53):
	case ((NU16) 60):
	case ((NU16) 134):
	{
		NI64 LOC203;
		NI64 LOC204;
		LOC203 = 0;
		LOC203 = getint_233538(a);
		LOC204 = 0;
		LOC204 = getint_233538(b);
		result = newintnodet_305028((NI64)(LOC203 & LOC204), n);
	}
	break;
	case ((NU16) 54):
	case ((NU16) 61):
	case ((NU16) 135):
	{
		NI64 LOC206;
		NI64 LOC207;
		LOC206 = 0;
		LOC206 = getint_233538(a);
		LOC207 = 0;
		LOC207 = getint_233538(b);
		result = newintnodet_305028((NI64)(LOC206 | LOC207), n);
	}
	break;
	case ((NU16) 55):
	case ((NU16) 62):
	case ((NU16) 99):
	{
		NI64 LOC209;
		NI64 LOC210;
		LOC209 = 0;
		LOC209 = getint_233538(a);
		LOC210 = 0;
		LOC210 = getint_233538(b);
		result = newintnodet_305028((NI64)(LOC209 ^ LOC210), n);
	}
	break;
	case ((NU16) 67):
	{
		NI64 LOC212;
		NI64 LOC213;
		LOC212 = 0;
		LOC212 = getint_233538(a);
		LOC213 = 0;
		LOC213 = getint_233538(b);
		result = newintnodet_305028((NI64)((NU64)(LOC212) + (NU64)(LOC213)), n);
	}
	break;
	case ((NU16) 68):
	{
		NI64 LOC215;
		NI64 LOC216;
		LOC215 = 0;
		LOC215 = getint_233538(a);
		LOC216 = 0;
		LOC216 = getint_233538(b);
		result = newintnodet_305028((NI64)((NU64)(LOC215) - (NU64)(LOC216)), n);
	}
	break;
	case ((NU16) 69):
	{
		NI64 LOC218;
		NI64 LOC219;
		LOC218 = 0;
		LOC218 = getint_233538(a);
		LOC219 = 0;
		LOC219 = getint_233538(b);
		result = newintnodet_305028((NI64)((NU64)(LOC218) * (NU64)(LOC219)), n);
	}
	break;
	case ((NU16) 71):
	{
		NI64 y;
		y = getint_233538(b);
		{
			NI64 LOC225;
			if (!!((y == IL64(0)))) goto LA223;
			LOC225 = 0;
			LOC225 = getint_233538(a);
			result = newintnodet_305028((NI64)((NU64)(LOC225) % (NU64)(y)), n);
		}
		LA223: ;
	}
	break;
	case ((NU16) 70):
	{
		NI64 y;
		y = getint_233538(b);
		{
			NI64 LOC231;
			if (!!((y == IL64(0)))) goto LA229;
			LOC231 = 0;
			LOC231 = getint_233538(a);
			result = newintnodet_305028((NI64)((NU64)(LOC231) / (NU64)(y)), n);
		}
		LA229: ;
	}
	break;
	case ((NU16) 140):
	{
		NIM_BOOL LOC233;
		LOC233 = 0;
		LOC233 = containssets_285075(a, b);
		result = newintnodet_305028(((NI64) (LOC233)), n);
	}
	break;
	case ((NU16) 139):
	{
		NIM_BOOL LOC235;
		LOC235 = 0;
		LOC235 = equalsets_285082(a, b);
		result = newintnodet_305028(((NI64) (LOC235)), n);
	}
	break;
	case ((NU16) 141):
	{
		NIM_BOOL LOC237;
		NIM_BOOL LOC239;
		LOC237 = 0;
		LOC237 = containssets_285075(a, b);
		if (!(LOC237)) goto LA238;
		LOC239 = 0;
		LOC239 = equalsets_285082(a, b);
		LOC237 = !(LOC239);
		LA238: ;
		result = newintnodet_305028(((NI64) (LOC237)), n);
	}
	break;
	case ((NU16) 142):
	{
		result = intersectsets_285061(a, b);
		(*result).Info = (*n).Info;
	}
	break;
	case ((NU16) 143):
	{
		result = unionsets_285047(a, b);
		(*result).Info = (*n).Info;
	}
	break;
	case ((NU16) 144):
	{
		result = diffsets_285054(a, b);
		(*result).Info = (*n).Info;
	}
	break;
	case ((NU16) 145):
	{
		result = symdiffsets_285068(a, b);
		(*result).Info = (*n).Info;
	}
	break;
	case ((NU16) 146):
	{
		NimStringDesc* LOC245;
		NimStringDesc* LOC246;
		NimStringDesc* LOC247;
		LOC245 = 0;
		LOC246 = 0;
		LOC246 = getstrorchar_233611(a);
		LOC247 = 0;
		LOC247 = getstrorchar_233611(b);
		LOC245 = rawNewString(LOC246->Sup.len + LOC247->Sup.len + 0);
appendString(LOC245, LOC246);
appendString(LOC245, LOC247);
		result = newstrnodet_305042(LOC245, n);
	}
	break;
	case ((NU16) 159):
	{
		NIM_BOOL LOC249;
		LOC249 = 0;
		LOC249 = inset_285019(a, b);
		result = newintnodet_305028(((NI64) (LOC249)), n);
	}
	break;
	case ((NU16) 160):
	{
	}
	break;
	case ((NU16) 128):
	case ((NU16) 129):
	{
		NI64 LOC252;
		NimStringDesc* LOC253;
		LOC252 = 0;
		LOC252 = getordvalue_264187(a);
		LOC253 = 0;
		LOC253 = nimInt64ToStr(LOC252);
		result = newstrnodet_305042(LOC253, n);
	}
	break;
	case ((NU16) 127):
	{
		{
			NI64 LOC257;
			LOC257 = 0;
			LOC257 = getordvalue_264187(a);
			if (!(LOC257 == IL64(0))) goto LA258;
			result = newstrnodet_305042(((NimStringDesc*) &TMP3113), n);
		}
		goto LA255;
		LA258: ;
		{
			result = newstrnodet_305042(((NimStringDesc*) &TMP3114), n);
		}
		LA255: ;
	}
	break;
	case ((NU16) 170):
	{
		NimStringDesc* LOC262;
		NI64 LOC263;
		NimStringDesc* LOC264;
		LOC262 = 0;
		LOC262 = getstr_233587(a);
		LOC263 = 0;
		LOC263 = getordvalue_264187(b);
		LOC264 = 0;
		LOC264 = copyStr(LOC262, ((NI) (LOC263)));
		result = newstrnodet_305042(LOC264, n);
	}
	break;
	case ((NU16) 171):
	{
		NimStringDesc* LOC266;
		NI64 LOC267;
		NI64 LOC268;
		NimStringDesc* LOC269;
		LOC266 = 0;
		LOC266 = getstr_233587(a);
		LOC267 = 0;
		LOC267 = getordvalue_264187(b);
		LOC268 = 0;
		LOC268 = getordvalue_264187(c);
		LOC269 = 0;
		LOC269 = copyStrLast(LOC266, ((NI) (LOC267)), ((NI) (LOC268)));
		result = newstrnodet_305042(LOC269, n);
	}
	break;
	case ((NU16) 130):
	{
		NF LOC271;
		NimStringDesc* LOC272;
		LOC271 = 0;
		LOC271 = getfloat_233562(a);
		LOC272 = 0;
		LOC272 = nimFloatToStr(LOC271);
		result = newstrnodet_305042(LOC272, n);
	}
	break;
	case ((NU16) 131):
	case ((NU16) 126):
	{
		NimStringDesc* LOC274;
		LOC274 = 0;
		LOC274 = getstrorchar_233611(a);
		result = newstrnodet_305042(LOC274, n);
	}
	break;
	case ((NU16) 132):
	{
		result = a;
	}
	break;
	case ((NU16) 133):
	{
		NimStringDesc* LOC277;
		LOC277 = 0;
		LOC277 = ordinalvaltostring_305091(a);
		result = newstrnodet_305042(LOC277, n);
	}
	break;
	case ((NU16) 169):
	{
		result = copytree_227329(a);
		asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
	}
	break;
	case ((NU16) 226):
	{
		NimStringDesc* LOC280;
		NIM_BOOL LOC281;
		LOC280 = 0;
		LOC280 = getstr_233587(a);
		LOC281 = 0;
		LOC281 = testcompileoption_209634(LOC280, (*n).Info);
		result = newintnodet_305028(((NI64) (LOC281)), n);
	}
	break;
	case ((NU16) 227):
	{
		NimStringDesc* LOC283;
		NimStringDesc* LOC284;
		NIM_BOOL LOC285;
		LOC283 = 0;
		LOC283 = getstr_233587(a);
		LOC284 = 0;
		LOC284 = getstr_233587(b);
		LOC285 = 0;
		LOC285 = testcompileoptionarg_209505(LOC283, LOC284, (*n).Info);
		result = newintnodet_305028(((NI64) (LOC285)), n);
	}
	break;
	case ((NU16) 172):
	case ((NU16) 173):
	case ((NU16) 161):
	case ((NU16) 21):
	case ((NU16) 22):
	case ((NU16) 10):
	case ((NU16) 167):
	case ((NU16) 155):
	case ((NU16) 156):
	case ((NU16) 157):
	case ((NU16) 162):
	case ((NU16) 163):
	case ((NU16) 14):
	case ((NU16) 15):
	case ((NU16) 16):
	case ((NU16) 7):
	case ((NU16) 228) ... ((NU16) 260):
	case ((NU16) 94):
	case ((NU16) 12):
	case ((NU16) 13):
	case ((NU16) 263):
	case ((NU16) 213):
	case ((NU16) 166):
	{
	}
	break;
	default:
	{
		NimStringDesc* LOC288;
		LOC288 = 0;
		LOC288 = rawNewString(reprEnum(m, (&NTI226532))->Sup.len + 8);
appendString(LOC288, ((NimStringDesc*) &TMP3117));
appendString(LOC288, reprEnum(m, (&NTI226532)));
appendChar(LOC288, 41);
		internalerror_198987((*a).Info, LOC288);
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode226816*, magiccall_307311)(tsym226846* m, tnode226816* n) {
	tnode226816* result;
	tsym226846* s;
	tnode226816* a;
	tnode226816* b;
	tnode226816* c;
	result = 0;
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_227249(n);
		if (!(LOC3 <= 1)) goto LA4;
		goto BeforeRet;
	}
	LA4: ;
	s = (*(*n).kindU.S6.Sons->data[0]).kindU.S4.Sym;
	a = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[1]);
	b = 0;
	c = 0;
	{
		if (!(a == NIM_NIL)) goto LA8;
		goto BeforeRet;
	}
	LA8: ;
	{
		NI LOC12;
		LOC12 = 0;
		LOC12 = sonslen_227249(n);
		if (!(2 < LOC12)) goto LA13;
		b = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[2]);
		{
			if (!(b == NIM_NIL)) goto LA17;
			goto BeforeRet;
		}
		LA17: ;
		{
			NI LOC21;
			LOC21 = 0;
			LOC21 = sonslen_227249(n);
			if (!(3 < LOC21)) goto LA22;
			c = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[3]);
			{
				if (!(c == NIM_NIL)) goto LA26;
				goto BeforeRet;
			}
			LA26: ;
		}
		LA22: ;
	}
	LA13: ;
	result = evalop_305011((*s).Magic, n, a, b, c);
	BeforeRet: ;
	return result;
}

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

N_NIMCALL(tnode226816*, foldconstrstr_308054)(tsym226846* m, tnode226816* n) {
	tnode226816* result;
	NimStringDesc* LOC1;
	result = 0;
	result = newnodeit_227145(((NU8) 20), (*n).Info, (*n).Typ);
	LOC1 = 0;
	LOC1 = (*result).kindU.S3.Strval; (*result).kindU.S3.Strval = copyStringRC1(((NimStringDesc*) &TMP3118));
	if (LOC1) nimGCunrefNoCycle(LOC1);
	{
		NI i_308085;
		NI HEX3Atmp_308133;
		NI LOC3;
		NI res_308136;
		i_308085 = 0;
		HEX3Atmp_308133 = 0;
		LOC3 = 0;
		LOC3 = sonslen_227249(n);
		HEX3Atmp_308133 = (NI32)(LOC3 - 1);
		res_308136 = 1;
		{
			while (1) {
				tnode226816* a;
				NimStringDesc* LOC10;
				if (!(res_308136 <= HEX3Atmp_308133)) goto LA5;
				i_308085 = res_308136;
				a = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[i_308085]);
				{
					if (!(a == NIM_NIL)) goto LA8;
					result = NIM_NIL;
					goto BeforeRet;
				}
				LA8: ;
				LOC10 = 0;
				LOC10 = getstrorchar_233611(a);
				(*result).kindU.S3.Strval = resizeString((*result).kindU.S3.Strval, LOC10->Sup.len + 0);
appendString((*result).kindU.S3.Strval, LOC10);
				res_308136 += 1;
			} LA5: ;
		}
	}
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode226816*, evalis_306343)(tnode226816* n, tnode226816* a) {
	tnode226816* result;
	ttype226852* t1;
	result = 0;
	{
		NIM_BOOL LOC3;
		NimStringDesc* LOC7;
		LOC3 = 0;
		LOC3 = ((*a).Kind == ((NU8) 3));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*(*a).kindU.S4.Sym).Kind == ((NU8) 7));
		LA4: ;
		if (!!(LOC3)) goto LA5;
		LOC7 = 0;
		LOC7 = HEX24_199126(TMP3119);
		internalerror_199006(LOC7);
	}
	LA5: ;
	{
		NIM_BOOL LOC10;
		NI LOC11;
		tnode226816* LOC13;
		NimStringDesc* LOC16;
		LOC10 = 0;
		LOC11 = 0;
		LOC11 = sonslen_227249(n);
		LOC10 = (LOC11 == 3);
		if (!(LOC10)) goto LA12;
		LOC13 = 0;
		LOC13 = HEX5BHEX5D_227698(n, 2);
		LOC10 = ((*LOC13).Kind >= ((NU8) 20) && (*LOC13).Kind <= ((NU8) 22) || (*LOC13).Kind == ((NU8) 4));
		LA12: ;
		if (!!(LOC10)) goto LA14;
		LOC16 = 0;
		LOC16 = HEX24_199126(TMP3121);
		internalerror_199006(LOC16);
	}
	LA14: ;
	t1 = (*(*a).kindU.S4.Sym).Typ;
	{
		tnode226816* LOC19;
		tnode226816* LOC22;
		NimStringDesc* LOC23;
		LOC19 = 0;
		LOC19 = HEX5BHEX5D_227698(n, 2);
		if (!((*LOC19).Kind >= ((NU8) 20) && (*LOC19).Kind <= ((NU8) 22))) goto LA20;
		LOC22 = 0;
		LOC22 = HEX5BHEX5D_227698(n, 2);
		LOC23 = 0;
		LOC23 = nsuNormalize((*LOC22).kindU.S3.Strval);
		if (eqStrings(LOC23, ((NimStringDesc*) &TMP3122))) goto LA24;
		if (eqStrings(LOC23, ((NimStringDesc*) &TMP3123))) goto LA25;
		goto LA26;
		LA24: ;
		{
			ttype226852* t;
			NIM_BOOL LOC29;
			NIM_BOOL LOC30;
			t = skiptypes_231245(t1, IL64(211106233624832));
			LOC29 = 0;
			LOC30 = 0;
			LOC30 = ((*t).Kind == ((NU8) 25));
			if (!(LOC30)) goto LA31;
			LOC30 = ((*t).Callconv == ((NU8) 8));
			LA31: ;
			LOC29 = LOC30;
			if (!(LOC29)) goto LA32;
			LOC29 = !((((*t).Flags &(1<<((((NU8) 14))&31)))!=0));
			LA32: ;
			result = newintnode_227096(((NU8) 6), ((NI64) (LOC29)));
		}
		goto LA27;
		LA25: ;
		{
			ttype226852* t;
			NIM_BOOL LOC34;
			NIM_BOOL LOC35;
			t = skiptypes_231245(t1, IL64(211106233624832));
			LOC34 = 0;
			LOC35 = 0;
			LOC35 = ((*t).Kind == ((NU8) 25));
			if (!(LOC35)) goto LA36;
			LOC35 = ((*t).Callconv == ((NU8) 8));
			LA36: ;
			LOC34 = LOC35;
			if (!(LOC34)) goto LA37;
			LOC34 = (((*t).Flags &(1<<((((NU8) 14))&31)))!=0);
			LA37: ;
			result = newintnode_227096(((NU8) 6), ((NI64) (LOC34)));
		}
		goto LA27;
		LA26: ;
		{
		}
		LA27: ;
	}
	goto LA17;
	LA20: ;
	{
		ttype226852* t2;
		tnode226816* LOC40;
		NIM_BOOL match;
		LOC40 = 0;
		LOC40 = HEX5BHEX5D_227698(n, 2);
		t2 = (*LOC40).Typ;
		match = sametype_269351(t1, t2, 0);
		result = newintnode_227096(((NU8) 6), ((NI64) (match)));
	}
	LA17: ;
	asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
	return result;
}

static N_INLINE(Exception*, getCurrentException)(void) {
	Exception* result;
	result = 0;
	result = currexception_16245;
	return result;
}

static N_INLINE(NIM_BOOL, canbecycleroot_48667)(tcell44935* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).Typ).flags &(1<<((((NU8) 1))&7)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_49429)(tcell44935* c) {
	{
		if (!!((((NI) ((NI)((*c).Refcount & 3))) == 3))) goto LA3;
		(*c).Refcount = (NI)((NI)((*c).Refcount & -4) | 3);
		incl_45671((&gch_47044.Cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, incref_51025)(tcell44935* c) {
	(*c).Refcount = (NI)((NU32)((*c).Refcount) + (NU32)(8));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_48667(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_49429(c);
	}
	LA4: ;
}

static N_INLINE(void, decref_50604)(tcell44935* c) {
	{
		(*c).Refcount -= 8;
		if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA3;
		rtladdzct_50204(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_48667(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_49429(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		tcell44935* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_48646(src);
		incref_51025(LOC5);
	}
	LA3: ;
	{
		tcell44935* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_48646((*dest));
		decref_50604(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

static N_INLINE(void, popCurrentException)(void) {
	asgnRef((void**) (&currexception_16245), (*currexception_16245).parent);
}

N_NIMCALL(void, rangecheck_307500)(tnode226816* n, NI64 value) {
	{
		NIM_BOOL LOC3;
		NI64 LOC4;
		NI64 LOC6;
		NimStringDesc* LOC9;
		NimStringDesc* LOC10;
		NimStringDesc* LOC11;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = firstord_264004((*n).Typ);
		LOC3 = (value < LOC4);
		if (LOC3) goto LA5;
		LOC6 = 0;
		LOC6 = lastord_264010((*n).Typ);
		LOC3 = (LOC6 < value);
		LA5: ;
		if (!LOC3) goto LA7;
		LOC9 = 0;
		LOC10 = 0;
		LOC10 = nimInt64ToStr(value);
		LOC11 = 0;
		LOC11 = typetostring_264031((*n).Typ, ((NU8) 0));
		LOC9 = rawNewString(LOC10->Sup.len + LOC11->Sup.len + 19);
appendString(LOC9, ((NimStringDesc*) &TMP3124));
appendString(LOC9, LOC10);
appendString(LOC9, ((NimStringDesc*) &TMP3125));
appendString(LOC9, LOC11);
		localerror_198955((*n).Info, ((NU16) 4), LOC9);
	}
	LA7: ;
}

N_NIMCALL(tnode226816*, foldconv_307512)(tnode226816* n, tnode226816* a, NIM_BOOL check) {
	tnode226816* result;
	ttype226852* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = skiptypes_231245((*n).Typ, IL64(211106233624832));
	switch ((*LOC1).Kind) {
	case ((NU8) 31) ... ((NU8) 35):
	{
		ttype226852* LOC3;
		LOC3 = 0;
		LOC3 = skiptypes_231245((*a).Typ, IL64(211106233624832));
		switch ((*LOC3).Kind) {
		case ((NU8) 36) ... ((NU8) 38):
		{
			NF LOC5;
			LOC5 = 0;
			LOC5 = getfloat_233562(a);
			result = newintnodet_305028(((NI64) (((NI) (LOC5)))), n);
		}
		break;
		case ((NU8) 2):
		{
			NI64 LOC7;
			LOC7 = 0;
			LOC7 = getordvalue_264187(a);
			result = newintnodet_305028(LOC7, n);
		}
		break;
		default:
		{
			result = a;
			asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
		}
		break;
		}
		{
			if (!check) goto LA11;
			rangecheck_307500(n, (*result).kindU.S1.Intval);
		}
		LA11: ;
	}
	break;
	case ((NU8) 36) ... ((NU8) 38):
	{
		ttype226852* LOC14;
		LOC14 = 0;
		LOC14 = skiptypes_231245((*a).Typ, IL64(211106233624832));
		switch ((*LOC14).Kind) {
		case ((NU8) 31) ... ((NU8) 35):
		case ((NU8) 14):
		case ((NU8) 1):
		case ((NU8) 2):
		{
			NI64 LOC16;
			LOC16 = 0;
			LOC16 = getordvalue_264187(a);
			result = newfloatnodet_305035(((double) (((NI) (LOC16)))), n);
		}
		break;
		default:
		{
			result = a;
			asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
		}
		break;
		}
	}
	break;
	case ((NU8) 27):
	case ((NU8) 48):
	case ((NU8) 25):
	{
	}
	break;
	default:
	{
		result = a;
		asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode226816*, foldarrayaccess_307576)(tsym226846* m, tnode226816* n) {
	tnode226816* result;
	tnode226816* x;
	tnode226816* y;
	NI64 idx;
	result = 0;
	x = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[0]);
	{
		NIM_BOOL LOC3;
		ttype226852* LOC5;
		LOC3 = 0;
		LOC3 = (x == NIM_NIL);
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = skiptypes_231245((*x).Typ, 2048);
		LOC3 = ((*LOC5).Kind == ((NU8) 8));
		LA4: ;
		if (!LOC3) goto LA6;
		goto BeforeRet;
	}
	LA6: ;
	y = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[1]);
	{
		if (!(y == NIM_NIL)) goto LA10;
		goto BeforeRet;
	}
	LA10: ;
	idx = getordvalue_264187(y);
	switch ((*x).Kind) {
	case ((NU8) 37):
	{
		{
			NIM_BOOL LOC15;
			NI LOC17;
			LOC15 = 0;
			LOC15 = (IL64(0) <= idx);
			if (!(LOC15)) goto LA16;
			LOC17 = 0;
			LOC17 = sonslen_227249(x);
			LOC15 = (idx < ((NI64) (LOC17)));
			LA16: ;
			if (!LOC15) goto LA18;
			result = (*x).kindU.S6.Sons->data[idx];
			{
				if (!((*result).Kind == ((NU8) 34))) goto LA22;
				result = (*result).kindU.S6.Sons->data[1];
			}
			LA22: ;
		}
		goto LA13;
		LA18: ;
		{
			localerror_198955((*n).Info, ((NU16) 82), ((NimStringDesc*) &TMP3118));
		}
		LA13: ;
	}
	break;
	case ((NU8) 41):
	{
		NI64 LOC26;
		LOC26 = 0;
		LOC26 = firstord_264004((*x).Typ);
		idx = (NI64)(idx - LOC26);
		{
			NIM_BOOL LOC29;
			NI LOC31;
			LOC29 = 0;
			LOC29 = (IL64(0) <= idx);
			if (!(LOC29)) goto LA30;
			LOC31 = 0;
			LOC31 = len_227364(x);
			LOC29 = (idx < ((NI64) (LOC31)));
			LA30: ;
			if (!LOC29) goto LA32;
			result = (*x).kindU.S6.Sons->data[idx];
		}
		goto LA27;
		LA32: ;
		{
			localerror_198955((*n).Info, ((NU16) 82), ((NimStringDesc*) &TMP3118));
		}
		LA27: ;
	}
	break;
	case ((NU8) 20) ... ((NU8) 22):
	{
		result = newnodeit_227145(((NU8) 5), (*x).Info, (*n).Typ);
		{
			NIM_BOOL LOC38;
			LOC38 = 0;
			LOC38 = (IL64(0) <= idx);
			if (!(LOC38)) goto LA39;
			LOC38 = (idx < ((NI64) ((*x).kindU.S3.Strval->Sup.len)));
			LA39: ;
			if (!LOC38) goto LA40;
			(*result).kindU.S1.Intval = ((NI64) (((NU8)((*x).kindU.S3.Strval->data[idx]))));
		}
		goto LA36;
		LA40: ;
		{
			if (!(idx == ((NI64) ((*x).kindU.S3.Strval->Sup.len)))) goto LA43;
		}
		goto LA36;
		LA43: ;
		{
			localerror_198955((*n).Info, ((NU16) 82), ((NimStringDesc*) &TMP3118));
		}
		LA36: ;
	}
	break;
	default:
	{
	}
	break;
	}
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode226816*, foldfieldaccess_307780)(tsym226846* m, tnode226816* n) {
	tnode226816* result;
	tnode226816* x;
	tsym226846* field;
	result = 0;
	x = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[0]);
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (x == NIM_NIL);
		if (LOC3) goto LA4;
		LOC3 = !(((*x).Kind == ((NU8) 38) || (*x).Kind == ((NU8) 37)));
		LA4: ;
		if (!LOC3) goto LA5;
		goto BeforeRet;
	}
	LA5: ;
	field = (*(*n).kindU.S6.Sons->data[1]).kindU.S4.Sym;
	{
		NI i_307914;
		NI HEX3Atmp_308033;
		NI HEX3Atmp_308034;
		NI LOC8;
		NI res_308037;
		i_307914 = 0;
		HEX3Atmp_308033 = 0;
		HEX3Atmp_308034 = 0;
		HEX3Atmp_308033 = ((*x).Kind == ((NU8) 38));
		LOC8 = 0;
		LOC8 = sonslen_227249(x);
		HEX3Atmp_308034 = (NI32)(LOC8 - 1);
		res_308037 = ((NI) (HEX3Atmp_308033));
		{
			while (1) {
				tnode226816* it;
				if (!(res_308037 <= HEX3Atmp_308034)) goto LA10;
				i_307914 = res_308037;
				it = (*x).kindU.S6.Sons->data[i_307914];
				{
					if (!!(((*it).Kind == ((NU8) 34)))) goto LA13;
					result = (*x).kindU.S6.Sons->data[(*field).Position];
					{
						if (!((*result).Kind == ((NU8) 34))) goto LA17;
						result = (*result).kindU.S6.Sons->data[1];
					}
					LA17: ;
					goto BeforeRet;
				}
				LA13: ;
				{
					if (!((*(*(*(*it).kindU.S6.Sons->data[0]).kindU.S4.Sym).Name).Sup.Id == (*(*field).Name).Sup.Id)) goto LA21;
					result = (*(*x).kindU.S6.Sons->data[i_307914]).kindU.S6.Sons->data[1];
					goto BeforeRet;
				}
				LA21: ;
				res_308037 += 1;
			} LA10: ;
		}
	}
	localerror_198955((*n).Info, ((NU16) 209), (*(*field).Name).S);
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode226816*, getconstexpr_305004)(tsym226846* m, tnode226816* n) {
	tnode226816* volatile result;
	result = 0;
	result = NIM_NIL;
	switch ((*n).Kind) {
	case ((NU8) 3):
	{
		tsym226846* s;
		s = (*n).kindU.S4.Sym;
		switch ((*s).Kind) {
		case ((NU8) 20):
		{
			result = newintnodet_305028(((NI64) ((*s).Position)), n);
		}
		break;
		case ((NU8) 10):
		{
			switch ((*s).Magic) {
			case ((NU16) 215):
			{
				result = newintnodet_305028(((NI64) ((((*m).Flags &(1<<((((NU8) 12))&31)))!=0))), n);
			}
			break;
			case ((NU16) 216):
			{
				NimStringDesc* LOC6;
				LOC6 = 0;
				LOC6 = ntgetDateStr();
				result = newstrnodet_305042(LOC6, n);
			}
			break;
			case ((NU16) 217):
			{
				NimStringDesc* LOC8;
				LOC8 = 0;
				LOC8 = ntgetClockStr();
				result = newstrnodet_305042(LOC8, n);
			}
			break;
			case ((NU16) 219):
			{
				result = newintnodet_305028(((NI64) (cpu_175480[(targetcpu_175587)- 1].Field2)), n);
			}
			break;
			case ((NU16) 220):
			{
				NimStringDesc* LOC11;
				LOC11 = 0;
				LOC11 = nsuToLowerStr(os_175069[(targetos_175589)- 1].Field0);
				result = newstrnodet_305042(LOC11, n);
			}
			break;
			case ((NU16) 221):
			{
				NimStringDesc* LOC13;
				LOC13 = 0;
				LOC13 = nsuToLowerStr(cpu_175480[(targetcpu_175587)- 1].Field0);
				result = newstrnodet_305042(LOC13, n);
			}
			break;
			case ((NU16) 222):
			{
				result = getapptype_307451(n);
			}
			break;
			case ((NU16) 223):
			{
				result = newfloatnodet_305035(NAN, n);
			}
			break;
			case ((NU16) 224):
			{
				result = newfloatnodet_305035(INF, n);
			}
			break;
			case ((NU16) 225):
			{
				result = newfloatnodet_305035(-INF, n);
			}
			break;
			default:
			{
				{
					if (!!((((*s).Flags &(1<<((((NU8) 25))&31)))!=0))) goto LA21;
					result = copytree_227329((*s).Ast);
				}
				LA21: ;
			}
			break;
			}
		}
		break;
		case ((NU8) 12):
		case ((NU8) 13):
		{
			result = n;
		}
		break;
		case ((NU8) 7):
		{
			result = newsymnodetypedesc_308153(s, (*n).Info);
		}
		break;
		case ((NU8) 4):
		{
			{
				if (!((*(*s).Typ).Kind == ((NU8) 59))) goto LA28;
				{
					if (!!(((*(*s).Typ).N == NIM_NIL))) goto LA32;
					result = (*(*s).Typ).N;
					asgnRefNoCycle((void**) (&(*result).Typ), (*(*s).Typ).Sons->data[0]);
				}
				LA32: ;
			}
			goto LA26;
			LA28: ;
			{
				result = newsymnodetypedesc_308153(s, (*n).Info);
			}
			LA26: ;
		}
		break;
		default:
		{
		}
		break;
		}
	}
	break;
	case ((NU8) 5) ... ((NU8) 23):
	{
		result = copynode_227323(n);
	}
	break;
	case ((NU8) 48):
	{
		result = getconstifexpr_306783(m, n);
	}
	break;
	case ((NU8) 27):
	case ((NU8) 26):
	case ((NU8) 28):
	case ((NU8) 30):
	case ((NU8) 29):
	{
		tsym226846* s;
		TSafePoint TMP3105;
		{
			if (!!(((*(*n).kindU.S6.Sons->data[0]).Kind == ((NU8) 3)))) goto LA41;
			goto BeforeRet;
		}
		LA41: ;
		s = (*(*n).kindU.S6.Sons->data[0]).kindU.S4.Sym;
		{
			if (!!(((*s).Kind == ((NU8) 12)))) goto LA45;
			goto BeforeRet;
		}
		LA45: ;
		pushSafePoint(&TMP3105);
		TMP3105.status = setjmp(TMP3105.context);
		if (TMP3105.status == 0) {
			switch ((*s).Magic) {
			case ((NU16) 0):
			{
				popSafePoint();
				goto BeforeRet;
			}
			break;
			case ((NU16) 6):
			{
				tnode226816* a;
				a = (*n).kindU.S6.Sons->data[1];
				{
					NI64 LOC52;
					LOC52 = 0;
					LOC52 = computesize_264193((*a).Typ);
					if (!(LOC52 < IL64(0))) goto LA53;
					localerror_198955((*a).Info, ((NU16) 77), ((NimStringDesc*) &TMP3106));
					result = NIM_NIL;
				}
				goto LA50;
				LA53: ;
				{
					ttype226852* LOC56;
					NI64 LOC59;
					LOC56 = 0;
					LOC56 = skiptypes_231245((*a).Typ, IL64(211106232576256));
					if (!((*LOC56).Kind >= ((NU8) 1) && (*LOC56).Kind <= ((NU8) 2) || (*LOC56).Kind == ((NU8) 14) || (*LOC56).Kind == ((NU8) 19) || (*LOC56).Kind >= ((NU8) 21) && (*LOC56).Kind <= ((NU8) 22) || (*LOC56).Kind >= ((NU8) 24) && (*LOC56).Kind <= ((NU8) 26) || (*LOC56).Kind >= ((NU8) 28) && (*LOC56).Kind <= ((NU8) 29) || (*LOC56).Kind >= ((NU8) 31) && (*LOC56).Kind <= ((NU8) 44) || (*LOC56).Kind == ((NU8) 50))) goto LA57;
					LOC59 = 0;
					LOC59 = getsize_264199((*a).Typ);
					result = newintnodet_305028(LOC59, n);
				}
				goto LA50;
				LA57: ;
				{
					result = NIM_NIL;
				}
				LA50: ;
			}
			break;
			case ((NU16) 4):
			{
				NI64 LOC62;
				LOC62 = 0;
				LOC62 = firstord_264004((*(*n).kindU.S6.Sons->data[1]).Typ);
				result = newintnodet_305028(LOC62, n);
			}
			break;
			case ((NU16) 5):
			{
				{
					ttype226852* LOC66;
					tnode226816* LOC69;
					ttype226852* LOC70;
					NI64 LOC71;
					LOC66 = 0;
					LOC66 = skiptypes_231245((*(*n).kindU.S6.Sons->data[1]).Typ, IL64(211106240964864));
					if (!!(((*LOC66).Kind == ((NU8) 27) || (*LOC66).Kind == ((NU8) 48) || (*LOC66).Kind == ((NU8) 24) || (*LOC66).Kind == ((NU8) 28)))) goto LA67;
					LOC69 = 0;
					LOC69 = HEX5BHEX5D_227698(n, 1);
					LOC70 = 0;
					LOC70 = skiptypes_231245((*LOC69).Typ, IL64(211106240964864));
					LOC71 = 0;
					LOC71 = lastord_264010(LOC70);
					result = newintnodet_305028(LOC71, n);
				}
				goto LA64;
				LA67: ;
				{
					tnode226816* a;
					a = getarrayconstr_307539(m, (*n).kindU.S6.Sons->data[1]);
					{
						NI LOC77;
						if (!((*a).Kind == ((NU8) 41))) goto LA75;
						LOC77 = 0;
						LOC77 = sonslen_227249(a);
						result = newintnodet_305028(((NI64) ((NI32)(LOC77 - 1))), n);
					}
					LA75: ;
				}
				LA64: ;
			}
			break;
			case ((NU16) 27):
			{
				tnode226816* a;
				a = getarrayconstr_307539(m, (*n).kindU.S6.Sons->data[1]);
				{
					NI LOC83;
					if (!((*a).Kind == ((NU8) 41))) goto LA81;
					LOC83 = 0;
					LOC83 = sonslen_227249(a);
					result = newintnodet_305028(((NI64) (LOC83)), n);
				}
				goto LA79;
				LA81: ;
				{
					result = magiccall_307311(m, n);
				}
				LA79: ;
			}
			break;
			case ((NU16) 29):
			{
				NI64 LOC86;
				LOC86 = 0;
				LOC86 = lengthord_264016((*(*n).kindU.S6.Sons->data[1]).Typ);
				result = newintnodet_305028(LOC86, n);
			}
			break;
			case ((NU16) 165):
			{
				tnode226816* LOC88;
				NimStringDesc* LOC89;
				LOC88 = 0;
				LOC88 = HEX5BHEX5D_227698(n, 1);
				LOC89 = 0;
				LOC89 = rendertree_251058(LOC88, 4);
				result = newstrnodet_305042(LOC89, n);
			}
			break;
			case ((NU16) 146):
			{
				result = foldconstrstr_308054(m, n);
			}
			break;
			case ((NU16) 8):
			{
				tnode226816* a;
				tnode226816* LOC92;
				LOC92 = 0;
				LOC92 = HEX5BHEX5D_227698(n, 1);
				a = getconstexpr_305004(m, LOC92);
				{
					NIM_BOOL LOC95;
					NIM_BOOL LOC96;
					LOC95 = 0;
					LOC96 = 0;
					LOC96 = !((a == NIM_NIL));
					if (!(LOC96)) goto LA97;
					LOC96 = ((*a).Kind == ((NU8) 3));
					LA97: ;
					LOC95 = LOC96;
					if (!(LOC95)) goto LA98;
					LOC95 = ((*(*a).kindU.S4.Sym).Kind == ((NU8) 7));
					LA98: ;
					if (!LOC95) goto LA99;
					result = evalis_306343(n, a);
				}
				LA99: ;
			}
			break;
			default:
			{
				result = magiccall_307311(m, n);
			}
			break;
			}
			popSafePoint();
		}
		else {
			popSafePoint();
			if (isObj(getCurrentException()->Sup.m_type, (&NTI3243))) {
				TMP3105.status = 0;
				localerror_198955((*n).Info, ((NU16) 76), ((NimStringDesc*) &TMP3118));
				popCurrentException();
			}
			else 			if (isObj(getCurrentException()->Sup.m_type, (&NTI3241))) {
				TMP3105.status = 0;
				localerror_198955((*n).Info, ((NU16) 73), ((NimStringDesc*) &TMP3118));
				popCurrentException();
			}
		}
		if (TMP3105.status != 0) reraiseException();
	}
	break;
	case ((NU8) 63):
	{
		tnode226816* a;
		a = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[0]);
		{
			if (!!((a == NIM_NIL))) goto LA108;
			result = n;
			asgnRefNoCycle((void**) (&(*n).kindU.S6.Sons->data[0]), a);
		}
		LA108: ;
	}
	break;
	case ((NU8) 41):
	{
		result = copytree_227329(n);
		{
			NI i_308592;
			NI HEX3Atmp_309283;
			NI LOC112;
			NI res_309286;
			i_308592 = 0;
			HEX3Atmp_309283 = 0;
			LOC112 = 0;
			LOC112 = sonslen_227249(n);
			HEX3Atmp_309283 = (NI32)(LOC112 - 1);
			res_309286 = 0;
			{
				while (1) {
					tnode226816* a;
					if (!(res_309286 <= HEX3Atmp_309283)) goto LA114;
					i_308592 = res_309286;
					a = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[i_308592]);
					{
						if (!(a == NIM_NIL)) goto LA117;
						result = NIM_NIL;
						goto BeforeRet;
					}
					LA117: ;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.Sons->data[i_308592]), a);
					res_309286 += 1;
				} LA114: ;
			}
		}
		(*result).Flags |= ((NI16)1)<<((((NU8) 4))%(sizeof(NI16)*8));
	}
	break;
	case ((NU8) 44):
	{
		tnode226816* a;
		tnode226816* b;
		a = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[0]);
		{
			if (!(a == NIM_NIL)) goto LA122;
			goto BeforeRet;
		}
		LA122: ;
		b = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[1]);
		{
			if (!(b == NIM_NIL)) goto LA126;
			goto BeforeRet;
		}
		LA126: ;
		result = copynode_227323(n);
		addson_227287(result, a);
		addson_227287(result, b);
	}
	break;
	case ((NU8) 39):
	{
		result = copytree_227329(n);
		{
			NI i_308731;
			NI HEX3Atmp_309289;
			NI LOC130;
			NI res_309292;
			i_308731 = 0;
			HEX3Atmp_309289 = 0;
			LOC130 = 0;
			LOC130 = sonslen_227249(n);
			HEX3Atmp_309289 = (NI32)(LOC130 - 1);
			res_309292 = 0;
			{
				while (1) {
					tnode226816* a;
					if (!(res_309292 <= HEX3Atmp_309289)) goto LA132;
					i_308731 = res_309292;
					a = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[i_308731]);
					{
						if (!(a == NIM_NIL)) goto LA135;
						result = NIM_NIL;
						goto BeforeRet;
					}
					LA135: ;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.Sons->data[i_308731]), a);
					res_309292 += 1;
				} LA132: ;
			}
		}
		(*result).Flags |= ((NI16)1)<<((((NU8) 4))%(sizeof(NI16)*8));
	}
	break;
	case ((NU8) 38):
	{
		result = copytree_227329(n);
		{
			NI i_308806;
			NI HEX3Atmp_309295;
			NI LOC139;
			NI res_309298;
			i_308806 = 0;
			HEX3Atmp_309295 = 0;
			LOC139 = 0;
			LOC139 = sonslen_227249(n);
			HEX3Atmp_309295 = (NI32)(LOC139 - 1);
			res_309298 = 1;
			{
				while (1) {
					tnode226816* a;
					if (!(res_309298 <= HEX3Atmp_309295)) goto LA141;
					i_308806 = res_309298;
					a = getconstexpr_305004(m, (*(*n).kindU.S6.Sons->data[i_308806]).kindU.S6.Sons->data[1]);
					{
						if (!(a == NIM_NIL)) goto LA144;
						result = NIM_NIL;
						goto BeforeRet;
					}
					LA144: ;
					asgnRefNoCycle((void**) (&(*(*result).kindU.S6.Sons->data[i_308806]).kindU.S6.Sons->data[1]), a);
					res_309298 += 1;
				} LA141: ;
			}
		}
		(*result).Flags |= ((NI16)1)<<((((NU8) 4))%(sizeof(NI16)*8));
	}
	break;
	case ((NU8) 37):
	{
		result = copytree_227329(n);
		{
			NIM_BOOL LOC149;
			NI LOC150;
			LOC149 = 0;
			LOC150 = 0;
			LOC150 = sonslen_227249(n);
			LOC149 = (0 < LOC150);
			if (!(LOC149)) goto LA151;
			LOC149 = ((*(*n).kindU.S6.Sons->data[0]).Kind == ((NU8) 34));
			LA151: ;
			if (!LOC149) goto LA152;
			{
				NI i_308933;
				NI HEX3Atmp_309301;
				NI LOC155;
				NI res_309304;
				i_308933 = 0;
				HEX3Atmp_309301 = 0;
				LOC155 = 0;
				LOC155 = sonslen_227249(n);
				HEX3Atmp_309301 = (NI32)(LOC155 - 1);
				res_309304 = 0;
				{
					while (1) {
						tnode226816* a;
						if (!(res_309304 <= HEX3Atmp_309301)) goto LA157;
						i_308933 = res_309304;
						a = getconstexpr_305004(m, (*(*n).kindU.S6.Sons->data[i_308933]).kindU.S6.Sons->data[1]);
						{
							if (!(a == NIM_NIL)) goto LA160;
							result = NIM_NIL;
							goto BeforeRet;
						}
						LA160: ;
						asgnRefNoCycle((void**) (&(*(*result).kindU.S6.Sons->data[i_308933]).kindU.S6.Sons->data[1]), a);
						res_309304 += 1;
					} LA157: ;
				}
			}
		}
		goto LA147;
		LA152: ;
		{
			{
				NI i_309020;
				NI HEX3Atmp_309307;
				NI LOC164;
				NI res_309310;
				i_309020 = 0;
				HEX3Atmp_309307 = 0;
				LOC164 = 0;
				LOC164 = sonslen_227249(n);
				HEX3Atmp_309307 = (NI32)(LOC164 - 1);
				res_309310 = 0;
				{
					while (1) {
						tnode226816* a;
						if (!(res_309310 <= HEX3Atmp_309307)) goto LA166;
						i_309020 = res_309310;
						a = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[i_309020]);
						{
							if (!(a == NIM_NIL)) goto LA169;
							result = NIM_NIL;
							goto BeforeRet;
						}
						LA169: ;
						asgnRefNoCycle((void**) (&(*result).kindU.S6.Sons->data[i_309020]), a);
						res_309310 += 1;
					} LA166: ;
				}
			}
		}
		LA147: ;
		(*result).Flags |= ((NI16)1)<<((((NU8) 4))%(sizeof(NI16)*8));
	}
	break;
	case ((NU8) 68):
	case ((NU8) 69):
	case ((NU8) 70):
	{
		tnode226816* a;
		a = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[0]);
		{
			if (!(a == NIM_NIL)) goto LA174;
			goto BeforeRet;
		}
		LA174: ;
		{
			NIM_BOOL LOC178;
			LOC178 = 0;
			LOC178 = levalueconv_305021((*n).kindU.S6.Sons->data[1], a);
			if (!(LOC178)) goto LA179;
			LOC178 = levalueconv_305021(a, (*n).kindU.S6.Sons->data[2]);
			LA179: ;
			if (!LOC178) goto LA180;
			result = a;
			asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
		}
		goto LA176;
		LA180: ;
		{
			NimStringDesc* LOC183;
			TY170969 LOC184;
			NimStringDesc* LOC185;
			LOC183 = 0;
			LOC183 = msgkindtostring_198378(((NU16) 142));
			memset((void*)LOC184, 0, sizeof(LOC184));
			LOC184[0] = typetostring_264031((*(*n).kindU.S6.Sons->data[0]).Typ, ((NU8) 0));
			LOC184[1] = typetostring_264031((*n).Typ, ((NU8) 0));
			LOC185 = 0;
			LOC185 = nsuFormatOpenArray(LOC183, LOC184, 2);
			localerror_198955((*n).Info, ((NU16) 4), LOC185);
		}
		LA176: ;
	}
	break;
	case ((NU8) 71):
	case ((NU8) 72):
	{
		tnode226816* a;
		a = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[0]);
		{
			if (!(a == NIM_NIL)) goto LA189;
			goto BeforeRet;
		}
		LA189: ;
		result = a;
		asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
	}
	break;
	case ((NU8) 58):
	case ((NU8) 59):
	case ((NU8) 60):
	{
		tnode226816* a;
		a = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[1]);
		{
			if (!(a == NIM_NIL)) goto LA194;
			goto BeforeRet;
		}
		LA194: ;
		result = foldconv_307512(n, a, ((*n).Kind == ((NU8) 58)));
	}
	break;
	case ((NU8) 61):
	{
		tnode226816* a;
		a = getconstexpr_305004(m, (*n).kindU.S6.Sons->data[1]);
		{
			if (!(a == NIM_NIL)) goto LA199;
			goto BeforeRet;
		}
		LA199: ;
		{
			if (!((*(*n).Typ).Kind == ((NU8) 26) || (*(*n).Typ).Kind == ((NU8) 29) || (*(*n).Typ).Kind == ((NU8) 22) || (*(*n).Typ).Kind == ((NU8) 21) || (*(*n).Typ).Kind == ((NU8) 24) || (*(*n).Typ).Kind == ((NU8) 25) || (*(*n).Typ).Kind == ((NU8) 28) || (*(*n).Typ).Kind == ((NU8) 50))) goto LA203;
			result = a;
			asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
		}
		LA203: ;
	}
	break;
	case ((NU8) 42):
	{
		result = foldarrayaccess_307576(m, n);
	}
	break;
	case ((NU8) 45):
	{
		result = foldfieldaccess_307780(m, n);
	}
	break;
	default:
	{
	}
	break;
	}
	BeforeRet: ;
	return result;
}

static N_INLINE(NIM_BOOL, isintrange_305250)(ttype226852* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*t).Kind == ((NU8) 20));
	if (!(LOC1)) goto LA2;
	LOC1 = ((*(*t).Sons->data[0]).Kind >= ((NU8) 31) && (*(*t).Sons->data[0]).Kind <= ((NU8) 35) || (*(*t).Sons->data[0]).Kind >= ((NU8) 41) && (*(*t).Sons->data[0]).Kind <= ((NU8) 43));
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(ttype226852*, makerange_305408)(ttype226852* typ, NI64 first, NI64 last) {
	ttype226852* result;
	NI64 mina;
	NI64 maxa;
	tnode226816* lowernode;
	result = 0;
	mina = ((first <= last) ? first : last);
	maxa = ((first >= last) ? first : last);
	lowernode = newintnode_227096(((NU8) 6), mina);
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*typ).Kind == ((NU8) 31));
		if (!(LOC3)) goto LA4;
		LOC3 = (mina == maxa);
		LA4: ;
		if (!LOC3) goto LA5;
		result = getintlittype_283477(lowernode);
	}
	goto LA1;
	LA5: ;
	{
		tnode226816* n;
		tnode226816* LOC8;
		ttype226852* LOC9;
		n = newnode_227090(((NU8) 44));
		addson_227287(n, lowernode);
		LOC8 = 0;
		LOC8 = newintnode_227096(((NU8) 6), maxa);
		addson_227287(n, LOC8);
		result = newtype_227083(((NU8) 20), (*typ).Owner);
		asgnRefNoCycle((void**) (&(*result).N), n);
		LOC9 = 0;
		LOC9 = skiptypes_231245(typ, 1048576);
		addsonskipintlit_283572(result, LOC9);
	}
	LA1: ;
	return result;
}

static N_INLINE(NIM_BOOL, isfloatrange_305217)(ttype226852* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*t).Kind == ((NU8) 20));
	if (!(LOC1)) goto LA2;
	LOC1 = ((*(*t).Sons->data[0]).Kind >= ((NU8) 36) && (*(*t).Sons->data[0]).Kind <= ((NU8) 39));
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(ttype226852*, makerangef_305440)(ttype226852* typ, NF first, NF last) {
	ttype226852* result;
	tnode226816* n;
	tnode226816* LOC1;
	tnode226816* LOC2;
	ttype226852* LOC3;
	result = 0;
	n = newnode_227090(((NU8) 44));
	LOC1 = 0;
	LOC1 = newfloatnode_227111(((NU8) 16), ((first <= last) ? first : last));
	addson_227287(n, LOC1);
	LOC2 = 0;
	LOC2 = newfloatnode_227111(((NU8) 16), ((first >= last) ? first : last));
	addson_227287(n, LOC2);
	result = newtype_227083(((NU8) 20), (*typ).Owner);
	asgnRefNoCycle((void**) (&(*result).N), n);
	LOC3 = 0;
	LOC3 = skiptypes_231245(typ, 1048576);
	addsonskipintlit_283572(result, LOC3);
	return result;
}

static N_INLINE(NIM_BOOL, isintlit_264386)(ttype226852* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC2;
	result = 0;
	LOC1 = 0;
	LOC2 = 0;
	LOC2 = ((*t).Kind == ((NU8) 31));
	if (!(LOC2)) goto LA3;
	LOC2 = !(((*t).N == NIM_NIL));
	LA3: ;
	LOC1 = LOC2;
	if (!(LOC1)) goto LA4;
	LOC1 = ((*(*t).N).Kind == ((NU8) 6));
	LA4: ;
	result = LOC1;
	return result;
}

N_NIMCALL(NI64, pickminint_305304)(tnode226816* n) {
	NI64 result;
	result = 0;
	{
		if (!((*n).Kind >= ((NU8) 6) && (*n).Kind <= ((NU8) 15))) goto LA3;
		result = (*n).kindU.S1.Intval;
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = isintlit_264386((*n).Typ);
		if (!LOC6) goto LA7;
		result = (*(*(*n).Typ).N).kindU.S1.Intval;
	}
	goto LA1;
	LA7: ;
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = isintrange_305250((*n).Typ);
		if (!LOC10) goto LA11;
		result = firstord_264004((*n).Typ);
	}
	goto LA1;
	LA11: ;
	{
		internalerror_198987((*n).Info, ((NimStringDesc*) &TMP3126));
	}
	LA1: ;
	return result;
}

N_NIMCALL(NI64, pickmaxint_305356)(tnode226816* n) {
	NI64 result;
	result = 0;
	{
		if (!((*n).Kind >= ((NU8) 6) && (*n).Kind <= ((NU8) 15))) goto LA3;
		result = (*n).kindU.S1.Intval;
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = isintlit_264386((*n).Typ);
		if (!LOC6) goto LA7;
		result = (*(*(*n).Typ).N).kindU.S1.Intval;
	}
	goto LA1;
	LA7: ;
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = isintrange_305250((*n).Typ);
		if (!LOC10) goto LA11;
		result = lastord_264010((*n).Typ);
	}
	goto LA1;
	LA11: ;
	{
		internalerror_198987((*n).Info, ((NimStringDesc*) &TMP3127));
	}
	LA1: ;
	return result;
}

N_NIMCALL(NIM_BOOL, isintrangeorlit_305294)(ttype226852* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = isintrange_305250(t);
	if (LOC1) goto LA2;
	LOC1 = isintlit_264386(t);
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(ttype226852*, pickintrange_305283)(ttype226852* a, ttype226852* b) {
	ttype226852* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isintrange_305250(a);
		if (!LOC3) goto LA4;
		result = a;
	}
	goto LA1;
	LA4: ;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = isintrange_305250(b);
		if (!LOC7) goto LA8;
		result = b;
	}
	goto LA1;
	LA8: ;
	{
		result = a;
	}
	LA1: ;
	return result;
}

N_NIMCALL(ttype226852*, getintervaltype_305464)(NU16 m, tnode226816* n) {
	ttype226852* result;
	result = 0;
	result = (*n).Typ;
	switch (m) {
	case ((NU16) 101):
	case ((NU16) 102):
	{
		ttype226852* a;
		a = (*(*n).kindU.S6.Sons->data[1]).Typ;
		{
			NIM_BOOL LOC4;
			NI64 LOC7;
			NI64 LOC8;
			NI64 LOC9;
			NI64 LOC10;
			LOC4 = 0;
			LOC4 = isintrange_305250(a);
			if (!LOC4) goto LA5;
			LOC7 = 0;
			LOC7 = lastord_264010(a);
			LOC8 = 0;
			LOC8 = HEX7CHEX2DHEX7C_304034(IL64(0), LOC7);
			LOC9 = 0;
			LOC9 = firstord_264004(a);
			LOC10 = 0;
			LOC10 = HEX7CHEX2DHEX7C_304034(IL64(0), LOC9);
			result = makerange_305408(a, LOC8, LOC10);
		}
		LA5: ;
	}
	break;
	case ((NU16) 111):
	{
		ttype226852* a;
		a = (*(*n).kindU.S6.Sons->data[1]).Typ;
		{
			NIM_BOOL LOC14;
			NF LOC17;
			NF LOC18;
			LOC14 = 0;
			LOC14 = isfloatrange_305217(a);
			if (!LOC14) goto LA15;
			LOC17 = 0;
			LOC17 = getfloat_233562((*(*a).N).kindU.S6.Sons->data[1]);
			LOC18 = 0;
			LOC18 = getfloat_233562((*(*a).N).kindU.S6.Sons->data[0]);
			result = makerangef_305440(a, -(LOC17), -(LOC18));
		}
		LA15: ;
	}
	break;
	case ((NU16) 112):
	{
		ttype226852* a;
		a = (*(*n).kindU.S6.Sons->data[1]).Typ;
		{
			NIM_BOOL LOC22;
			NF LOC25;
			NF LOC26;
			LOC22 = 0;
			LOC22 = isfloatrange_305217(a);
			if (!LOC22) goto LA23;
			LOC25 = 0;
			LOC25 = getfloat_233562((*(*a).N).kindU.S6.Sons->data[1]);
			LOC26 = 0;
			LOC26 = getfloat_233562((*(*a).N).kindU.S6.Sons->data[0]);
			result = makerangef_305440(a, (LOC25 > 0? (LOC25) : -(LOC25)), (LOC26 > 0? (LOC26) : -(LOC26)));
		}
		LA23: ;
	}
	break;
	case ((NU16) 103):
	case ((NU16) 104):
	{
		ttype226852* a;
		a = (*(*n).kindU.S6.Sons->data[1]).Typ;
		{
			NIM_BOOL LOC30;
			NI64 LOC33;
			NI64 LOC34;
			NI64 LOC35;
			NI64 LOC36;
			LOC30 = 0;
			LOC30 = isintrange_305250(a);
			if (!LOC30) goto LA31;
			LOC33 = 0;
			LOC33 = getint_233538((*(*a).N).kindU.S6.Sons->data[1]);
			LOC34 = 0;
			LOC34 = HEX7CabsHEX7C_304046(LOC33);
			LOC35 = 0;
			LOC35 = getint_233538((*(*a).N).kindU.S6.Sons->data[0]);
			LOC36 = 0;
			LOC36 = HEX7CabsHEX7C_304046(LOC35);
			result = makerange_305408(a, LOC34, LOC36);
		}
		LA31: ;
	}
	break;
	case ((NU16) 19):
	{
		ttype226852* a;
		ttype226852* b;
		a = (*(*n).kindU.S6.Sons->data[1]).Typ;
		b = (*(*n).kindU.S6.Sons->data[2]).Typ;
		{
			NIM_BOOL LOC40;
			NI64 LOC44;
			NI64 LOC45;
			NI64 LOC46;
			NI64 LOC47;
			NI64 LOC48;
			NI64 LOC49;
			LOC40 = 0;
			LOC40 = isintrange_305250(a);
			if (!(LOC40)) goto LA41;
			LOC40 = isintlit_264386(b);
			LA41: ;
			if (!LOC40) goto LA42;
			LOC44 = 0;
			LOC44 = pickminint_305304((*n).kindU.S6.Sons->data[1]);
			LOC45 = 0;
			LOC45 = pickminint_305304((*n).kindU.S6.Sons->data[2]);
			LOC46 = 0;
			LOC46 = HEX7CHEX2BHEX7C_304019(LOC44, LOC45);
			LOC47 = 0;
			LOC47 = pickmaxint_305356((*n).kindU.S6.Sons->data[1]);
			LOC48 = 0;
			LOC48 = pickmaxint_305356((*n).kindU.S6.Sons->data[2]);
			LOC49 = 0;
			LOC49 = HEX7CHEX2BHEX7C_304019(LOC47, LOC48);
			result = makerange_305408(a, LOC46, LOC49);
		}
		LA42: ;
	}
	break;
	case ((NU16) 20):
	{
		ttype226852* a;
		ttype226852* b;
		a = (*(*n).kindU.S6.Sons->data[1]).Typ;
		b = (*(*n).kindU.S6.Sons->data[2]).Typ;
		{
			NIM_BOOL LOC53;
			NI64 LOC57;
			NI64 LOC58;
			NI64 LOC59;
			NI64 LOC60;
			NI64 LOC61;
			NI64 LOC62;
			LOC53 = 0;
			LOC53 = isintrange_305250(a);
			if (!(LOC53)) goto LA54;
			LOC53 = isintlit_264386(b);
			LA54: ;
			if (!LOC53) goto LA55;
			LOC57 = 0;
			LOC57 = pickminint_305304((*n).kindU.S6.Sons->data[1]);
			LOC58 = 0;
			LOC58 = pickminint_305304((*n).kindU.S6.Sons->data[2]);
			LOC59 = 0;
			LOC59 = HEX7CHEX2DHEX7C_304034(LOC57, LOC58);
			LOC60 = 0;
			LOC60 = pickmaxint_305356((*n).kindU.S6.Sons->data[1]);
			LOC61 = 0;
			LOC61 = pickmaxint_305356((*n).kindU.S6.Sons->data[2]);
			LOC62 = 0;
			LOC62 = HEX7CHEX2DHEX7C_304034(LOC60, LOC61);
			result = makerange_305408(a, LOC59, LOC62);
		}
		LA55: ;
	}
	break;
	case ((NU16) 37):
	case ((NU16) 42):
	case ((NU16) 67):
	{
		tnode226816* a_305801;
		tnode226816* b_305803;
		a_305801 = (*n).kindU.S6.Sons->data[1];
		b_305803 = (*n).kindU.S6.Sons->data[2];
		{
			NIM_BOOL LOC66;
			ttype226852* LOC70;
			NI64 LOC71;
			NI64 LOC72;
			NI64 LOC73;
			NI64 LOC74;
			NI64 LOC75;
			NI64 LOC76;
			LOC66 = 0;
			LOC66 = isintrangeorlit_305294((*a_305801).Typ);
			if (!(LOC66)) goto LA67;
			LOC66 = isintrangeorlit_305294((*b_305803).Typ);
			LA67: ;
			if (!LOC66) goto LA68;
			LOC70 = 0;
			LOC70 = pickintrange_305283((*a_305801).Typ, (*b_305803).Typ);
			LOC71 = 0;
			LOC71 = pickminint_305304(a_305801);
			LOC72 = 0;
			LOC72 = pickminint_305304(b_305803);
			LOC73 = 0;
			LOC73 = HEX7CHEX2BHEX7C_304019(LOC71, LOC72);
			LOC74 = 0;
			LOC74 = pickmaxint_305356(a_305801);
			LOC75 = 0;
			LOC75 = pickmaxint_305356(b_305803);
			LOC76 = 0;
			LOC76 = HEX7CHEX2BHEX7C_304019(LOC74, LOC75);
			result = makerange_305408(LOC70, LOC73, LOC76);
		}
		LA68: ;
	}
	break;
	case ((NU16) 39):
	case ((NU16) 44):
	case ((NU16) 69):
	{
		tnode226816* a_305833;
		tnode226816* b_305835;
		a_305833 = (*n).kindU.S6.Sons->data[1];
		b_305835 = (*n).kindU.S6.Sons->data[2];
		{
			NIM_BOOL LOC80;
			ttype226852* LOC84;
			NI64 LOC85;
			NI64 LOC86;
			NI64 LOC87;
			NI64 LOC88;
			NI64 LOC89;
			NI64 LOC90;
			LOC80 = 0;
			LOC80 = isintrangeorlit_305294((*a_305833).Typ);
			if (!(LOC80)) goto LA81;
			LOC80 = isintrangeorlit_305294((*b_305835).Typ);
			LA81: ;
			if (!LOC80) goto LA82;
			LOC84 = 0;
			LOC84 = pickintrange_305283((*a_305833).Typ, (*b_305835).Typ);
			LOC85 = 0;
			LOC85 = pickminint_305304(a_305833);
			LOC86 = 0;
			LOC86 = pickminint_305304(b_305835);
			LOC87 = 0;
			LOC87 = HEX7CHEX2AHEX7C_304078(LOC85, LOC86);
			LOC88 = 0;
			LOC88 = pickmaxint_305356(a_305833);
			LOC89 = 0;
			LOC89 = pickmaxint_305356(b_305835);
			LOC90 = 0;
			LOC90 = HEX7CHEX2AHEX7C_304078(LOC88, LOC89);
			result = makerange_305408(LOC84, LOC87, LOC90);
		}
		LA82: ;
	}
	break;
	case ((NU16) 38):
	case ((NU16) 43):
	case ((NU16) 68):
	{
		tnode226816* a_305865;
		tnode226816* b_305867;
		a_305865 = (*n).kindU.S6.Sons->data[1];
		b_305867 = (*n).kindU.S6.Sons->data[2];
		{
			NIM_BOOL LOC94;
			NI64 LOC98;
			NI64 LOC99;
			NI64 LOC100;
			NI64 LOC101;
			NI64 LOC102;
			NI64 LOC103;
			LOC94 = 0;
			LOC94 = isintrange_305250((*a_305865).Typ);
			if (!(LOC94)) goto LA95;
			LOC94 = ((*b_305867).Kind >= ((NU8) 6) && (*b_305867).Kind <= ((NU8) 15));
			LA95: ;
			if (!LOC94) goto LA96;
			LOC98 = 0;
			LOC98 = pickminint_305304(a_305865);
			LOC99 = 0;
			LOC99 = pickminint_305304(b_305867);
			LOC100 = 0;
			LOC100 = HEX7CHEX2DHEX7C_304034(LOC98, LOC99);
			LOC101 = 0;
			LOC101 = pickmaxint_305356(a_305865);
			LOC102 = 0;
			LOC102 = pickmaxint_305356(b_305867);
			LOC103 = 0;
			LOC103 = HEX7CHEX2DHEX7C_304034(LOC101, LOC102);
			result = makerange_305408((*a_305865).Typ, LOC100, LOC103);
		}
		LA96: ;
	}
	break;
	case ((NU16) 53):
	case ((NU16) 60):
	{
		tnode226816* a;
		tnode226816* b;
		a = (*n).kindU.S6.Sons->data[1];
		b = (*n).kindU.S6.Sons->data[2];
		{
			tnode226816* LOC109;
			if (!!(((*b).Kind >= ((NU8) 6) && (*b).Kind <= ((NU8) 14)))) goto LA107;
			LOC109 = 0;
			LOC109 = a;
			a = b;
			b = LOC109;
		}
		LA107: ;
		{
			NI64 x;
			if (!((*b).Kind >= ((NU8) 6) && (*b).Kind <= ((NU8) 14))) goto LA112;
			x = HEX7CHEX2BHEX7C_304019((*b).kindU.S1.Intval, IL64(1));
			{
				NIM_BOOL LOC116;
				LOC116 = 0;
				LOC116 = ((NI64)(x & -(x)) == x);
				if (!(LOC116)) goto LA117;
				LOC116 = (IL64(0) <= x);
				LA117: ;
				if (!LOC116) goto LA118;
				result = makerange_305408((*a).Typ, IL64(0), (*b).kindU.S1.Intval);
			}
			LA118: ;
		}
		LA112: ;
	}
	break;
	case ((NU16) 71):
	{
		tnode226816* a;
		tnode226816* b;
		a = (*n).kindU.S6.Sons->data[1];
		b = (*n).kindU.S6.Sons->data[2];
		{
			if (!((*b).Kind >= ((NU8) 6) && (*b).Kind <= ((NU8) 14))) goto LA123;
			{
				if (!(IL64(0) <= (*b).kindU.S1.Intval)) goto LA127;
				result = makerange_305408((*a).Typ, IL64(0), (NI64)((*b).kindU.S1.Intval - IL64(1)));
			}
			goto LA125;
			LA127: ;
			{
				result = makerange_305408((*a).Typ, (NI64)((*b).kindU.S1.Intval + IL64(1)), IL64(0));
			}
			LA125: ;
		}
		LA123: ;
	}
	break;
	case ((NU16) 41):
	case ((NU16) 46):
	{
		tnode226816* a;
		tnode226816* b;
		a = (*n).kindU.S6.Sons->data[1];
		b = (*n).kindU.S6.Sons->data[2];
		{
			if (!((*b).Kind >= ((NU8) 6) && (*b).Kind <= ((NU8) 15))) goto LA133;
			{
				if (!(IL64(0) <= (*b).kindU.S1.Intval)) goto LA137;
				result = makerange_305408((*a).Typ, -((NI64)((*b).kindU.S1.Intval - IL64(1))), (NI64)((*b).kindU.S1.Intval - IL64(1)));
			}
			goto LA135;
			LA137: ;
			{
				result = makerange_305408((*a).Typ, (NI64)((*b).kindU.S1.Intval + IL64(1)), -((NI64)((*b).kindU.S1.Intval + IL64(1))));
			}
			LA135: ;
		}
		LA133: ;
	}
	break;
	case ((NU16) 40):
	case ((NU16) 45):
	case ((NU16) 70):
	{
		tnode226816* a_306213;
		tnode226816* b_306215;
		a_306213 = (*n).kindU.S6.Sons->data[1];
		b_306215 = (*n).kindU.S6.Sons->data[2];
		{
			NIM_BOOL LOC143;
			NI64 LOC147;
			NI64 LOC148;
			NI64 LOC149;
			NI64 LOC150;
			NI64 LOC151;
			NI64 LOC152;
			LOC143 = 0;
			LOC143 = isintrange_305250((*a_306213).Typ);
			if (!(LOC143)) goto LA144;
			LOC143 = ((*b_306215).Kind >= ((NU8) 6) && (*b_306215).Kind <= ((NU8) 15));
			LA144: ;
			if (!LOC143) goto LA145;
			LOC147 = 0;
			LOC147 = pickminint_305304(a_306213);
			LOC148 = 0;
			LOC148 = pickminint_305304(b_306215);
			LOC149 = 0;
			LOC149 = HEX7CdivHEX7C_304056(LOC147, LOC148);
			LOC150 = 0;
			LOC150 = pickmaxint_305356(a_306213);
			LOC151 = 0;
			LOC151 = pickmaxint_305356(b_306215);
			LOC152 = 0;
			LOC152 = HEX7CdivHEX7C_304056(LOC150, LOC151);
			result = makerange_305408((*a_306213).Typ, LOC149, LOC152);
		}
		LA145: ;
	}
	break;
	case ((NU16) 56):
	case ((NU16) 63):
	{
		tnode226816* a_306259;
		tnode226816* b_306261;
		a_306259 = (*n).kindU.S6.Sons->data[1];
		b_306261 = (*n).kindU.S6.Sons->data[2];
		{
			NIM_BOOL LOC156;
			ttype226852* LOC160;
			NI64 LOC161;
			NI64 LOC162;
			NI64 LOC163;
			NI64 LOC164;
			LOC156 = 0;
			LOC156 = isintrangeorlit_305294((*a_306259).Typ);
			if (!(LOC156)) goto LA157;
			LOC156 = isintrangeorlit_305294((*b_306261).Typ);
			LA157: ;
			if (!LOC156) goto LA158;
			LOC160 = 0;
			LOC160 = pickintrange_305283((*a_306259).Typ, (*b_306261).Typ);
			LOC161 = 0;
			LOC161 = pickminint_305304(a_306259);
			LOC162 = 0;
			LOC162 = pickminint_305304(b_306261);
			LOC163 = 0;
			LOC163 = pickmaxint_305356(a_306259);
			LOC164 = 0;
			LOC164 = pickmaxint_305356(b_306261);
			result = makerange_305408(LOC160, ((LOC161 <= LOC162) ? LOC161 : LOC162), ((LOC163 <= LOC164) ? LOC163 : LOC164));
		}
		LA158: ;
	}
	break;
	case ((NU16) 57):
	case ((NU16) 64):
	{
		tnode226816* a_306297;
		tnode226816* b_306299;
		a_306297 = (*n).kindU.S6.Sons->data[1];
		b_306299 = (*n).kindU.S6.Sons->data[2];
		{
			NIM_BOOL LOC168;
			ttype226852* LOC172;
			NI64 LOC173;
			NI64 LOC174;
			NI64 LOC175;
			NI64 LOC176;
			LOC168 = 0;
			LOC168 = isintrangeorlit_305294((*a_306297).Typ);
			if (!(LOC168)) goto LA169;
			LOC168 = isintrangeorlit_305294((*b_306299).Typ);
			LA169: ;
			if (!LOC168) goto LA170;
			LOC172 = 0;
			LOC172 = pickintrange_305283((*a_306297).Typ, (*b_306299).Typ);
			LOC173 = 0;
			LOC173 = pickminint_305304(a_306297);
			LOC174 = 0;
			LOC174 = pickminint_305304(b_306299);
			LOC175 = 0;
			LOC175 = pickmaxint_305356(a_306297);
			LOC176 = 0;
			LOC176 = pickmaxint_305356(b_306299);
			result = makerange_305408(LOC172, ((LOC173 >= LOC174) ? LOC173 : LOC174), ((LOC175 >= LOC176) ? LOC175 : LOC176));
		}
		LA170: ;
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}
NIM_EXTERNC N_NOINLINE(void, HEX00_semfoldInit)(void) {
}

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

