/* 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 tnode225816 tnode225816;
typedef struct ttype225852 ttype225852;
typedef struct tlineinfo195539 tlineinfo195539;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tsym225846 tsym225846;
typedef struct tident200021 tident200021;
typedef struct tnodeseq225810 tnodeseq225810;
typedef struct tidobj200015 tidobj200015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct ttypeseq225848 ttypeseq225848;
typedef struct tscope225840 tscope225840;
typedef struct TY225947 TY225947;
typedef struct tinstantiation225836 tinstantiation225836;
typedef struct tstrtable225820 tstrtable225820;
typedef struct tsymseq225818 tsymseq225818;
typedef struct tloc225830 tloc225830;
typedef struct trope177009 trope177009;
typedef struct tlib225834 tlib225834;
typedef struct tcell45135 tcell45135;
typedef struct tcellseq45151 tcellseq45151;
typedef struct tgcheap47216 tgcheap47216;
typedef struct tcellset45147 tcellset45147;
typedef struct tpagedesc45143 tpagedesc45143;
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 tinfocpu174463 tinfocpu174463;
typedef struct tinfoos174048 tinfoos174048;
typedef struct Exception Exception;
typedef struct TSafePoint TSafePoint;
typedef struct TY84945 TY84945;
typedef struct TY225936 TY225936;
typedef struct tlistentry127022 tlistentry127022;
typedef struct tbasechunk26638 tbasechunk26638;
typedef struct tfreecell26630 tfreecell26630;
struct  tlineinfo195539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
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(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  tstrtable225820  {
NI Counter;
tsymseq225818* Data;
};
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  tcell45135  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq45151  {
NI Len;
NI Cap;
tcell45135** D;
};
struct  tcellset45147  {
NI Counter;
NI Max;
tpagedesc45143* Head;
tpagedesc45143** 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;
tcellseq45151 Zct;
tcellseq45151 Decstack;
tcellset45147 Cycleroots;
tcellseq45151 Tempstack;
NI Recgclock;
tmemregion27410 Region;
tgcstat47214 Stat;
};
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 tinfocpu174463 {
NimStringDesc* Field0;
NI Field1;
NU8 Field2;
NI Field3;
NI Field4;
};
typedef tinfocpu174463 TY174481[14];
struct tinfoos174048 {
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 tinfoos174048 TY174070[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;
} TY15009;
struct  TSafePoint  {
TSafePoint* prev;
NI status;
jmp_buf context;
NIM_BOOL hasRaiseAction;
TY15009 raiseAction;
};
struct  tident200021  {
  tidobj200015 Sup;
NimStringDesc* S;
tident200021* Next;
NI H;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct TY84945 {
NimStringDesc* Field0;
NI Field1;
};
typedef NimStringDesc* TY169969[2];
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[16];
struct  tpagedesc45143  {
tpagedesc45143* 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 tnodeseq225810 {
  TGenericSeq Sup;
  tnode225816* data[SEQ_DECL_SIZE];
};
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 TY225936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, internalerror_197987)(tlineinfo195539 info, NimStringDesc* errmsg);
N_NIMCALL(tnode225816*, newsymnode_227755)(tsym225846* sym, tlineinfo195539 info);
N_NIMCALL(ttype225852*, newtype_226083)(NU8 kind, tsym225846* owner);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(tcell45135*, usrtocell_48846)(void* usr);
static N_INLINE(void, rtladdzct_50404)(tcell45135* c);
N_NOINLINE(void, addzct_48817)(tcellseq45151* s, tcell45135* c);
N_NIMCALL(void, addsonskipintlit_282572)(ttype225852* father, ttype225852* son);
N_NIMCALL(ttype225852*, skiptypes_230245)(ttype225852* t, NU64 kinds);
N_NIMCALL(tnode225816*, newintnode_226096)(NU8 kind, NI64 intval);
N_NIMCALL(ttype225852*, getintlittype_282477)(tnode225816* literal);
N_NIMCALL(tnode225816*, newstrnode_226118)(NU8 kind, NimStringDesc* strval);
N_NIMCALL(tnode225816*, newintnodet_304028)(NI64 intval, tnode225816* n);
N_NIMCALL(tnode225816*, newstrnodet_304042)(NimStringDesc* strval, tnode225816* n);
N_NIMCALL(NimStringDesc*, ntgetDateStr)(void);
N_NIMCALL(NimStringDesc*, ntgetClockStr)(void);
N_NIMCALL(NimStringDesc*, nsuToLowerStr)(NimStringDesc* s);
N_NIMCALL(tnode225816*, getapptype_306451)(tnode225816* n);
N_NIMCALL(tnode225816*, newfloatnodet_304035)(NF floatval, tnode225816* n);
N_NIMCALL(tnode225816*, newfloatnode_226111)(NU8 kind, NF floatval);
N_NIMCALL(ttype225852*, getfloatlittype_282521)(tnode225816* literal);
N_NIMCALL(tnode225816*, copytree_226329)(tnode225816* src);
N_NIMCALL(tnode225816*, newsymnodetypedesc_307153)(tsym225846* s, tlineinfo195539 info);
N_NIMCALL(tnode225816*, copynode_226323)(tnode225816* src);
N_NIMCALL(tnode225816*, getconstifexpr_305783)(tsym225846* c, tnode225816* n);
static N_INLINE(NI, sonslen_226249)(tnode225816* n);
static N_INLINE(NI, len_226364)(tnode225816* n);
N_NIMCALL(tnode225816*, getconstexpr_304004)(tsym225846* m, tnode225816* n);
N_NIMCALL(NI64, getordvalue_263187)(tnode225816* n);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
static N_INLINE(void, popSafePoint)(void);
N_NIMCALL(NI64, computesize_263193)(ttype225852* typ);
N_NIMCALL(void, localerror_197955)(tlineinfo195539 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NI64, getsize_263199)(ttype225852* typ);
N_NIMCALL(NI64, firstord_263004)(ttype225852* t);
N_NIMCALL(NI64, lastord_263010)(ttype225852* t);
static N_INLINE(tnode225816*, HEX5BHEX5D_226698)(tnode225816* n, NI i);
N_NIMCALL(tnode225816*, getarrayconstr_306539)(tsym225846* m, tnode225816* n);
N_NIMCALL(tnode225816*, magiccall_306311)(tsym225846* m, tnode225816* n);
N_NIMCALL(tnode225816*, evalop_304011)(NU16 m, tnode225816* n, tnode225816* a, tnode225816* b, tnode225816* c);
N_NIMCALL(NI64, getint_232538)(tnode225816* a);
N_NIMCALL(NF, getfloat_232562)(tnode225816* a);
N_NIMCALL(NI64, cardset_284089)(tnode225816* s);
N_NIMCALL(NimStringDesc*, getstr_232587)(tnode225816* a);
N_NIMCALL(NI64, lengthord_263016)(ttype225852* 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_284075)(tnode225816* a, tnode225816* b);
N_NIMCALL(NIM_BOOL, equalsets_284082)(tnode225816* a, tnode225816* b);
N_NIMCALL(tnode225816*, intersectsets_284061)(tnode225816* a, tnode225816* b);
N_NIMCALL(tnode225816*, unionsets_284047)(tnode225816* a, tnode225816* b);
N_NIMCALL(tnode225816*, diffsets_284054)(tnode225816* a, tnode225816* b);
N_NIMCALL(tnode225816*, symdiffsets_284068)(tnode225816* a, tnode225816* b);
N_NIMCALL(NimStringDesc*, getstrorchar_232611)(tnode225816* a);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(NIM_BOOL, inset_284019)(tnode225816* s, tnode225816* 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_75028, NI last);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI first, NI last);
N_NIMCALL(NimStringDesc*, nimFloatToStr)(NF f);
N_NIMCALL(NimStringDesc*, ordinalvaltostring_304091)(tnode225816* a);
N_NIMCALL(NimStringDesc*, nimCharToStr)(NIM_CHAR x);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(NIM_BOOL, testcompileoption_208634)(NimStringDesc* switch_208636, tlineinfo195539 info);
N_NIMCALL(NIM_BOOL, testcompileoptionarg_208505)(NimStringDesc* switch_208507, NimStringDesc* arg, tlineinfo195539 info);
N_NIMCALL(NimStringDesc*, reprEnum)(NI e_81107, TNimType* typ);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, rendertree_250058)(tnode225816* n, NU8 renderflags);
N_NIMCALL(tnode225816*, foldconstrstr_307054)(tsym225846* m, tnode225816* n);
N_NIMCALL(tnode225816*, newnodeit_226145)(NU8 kind, tlineinfo195539 info, ttype225852* typ);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(tnode225816*, evalis_305343)(tnode225816* n, tnode225816* a);
N_NIMCALL(void, internalerror_198006)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_198126)(TY84945 x_198130);
N_NIMCALL(NimStringDesc*, nsuNormalize)(NimStringDesc* s);
N_NIMCALL(NIM_BOOL, sametype_268351)(ttype225852* a, ttype225852* 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_51225)(tcell45135* c);
static N_INLINE(NIM_BOOL, canbecycleroot_48867)(tcell45135* c);
static N_INLINE(void, rtladdcycleroot_49629)(tcell45135* c);
N_NOINLINE(void, incl_45871)(tcellset45147* s, tcell45135* cell);
static N_INLINE(void, decref_50804)(tcell45135* c);
N_NIMCALL(void, reraiseException)(void);
N_NIMCALL(void, addson_226287)(tnode225816* father, tnode225816* son);
N_NIMCALL(NIM_BOOL, levalueconv_304021)(tnode225816* a, tnode225816* b);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(NimStringDesc*, msgkindtostring_197378)(NU16 kind);
N_NIMCALL(NimStringDesc*, typetostring_263031)(ttype225852* typ, NU8 prefer);
N_NIMCALL(tnode225816*, foldconv_306512)(tnode225816* n, tnode225816* a, NIM_BOOL check);
N_NIMCALL(void, rangecheck_306500)(tnode225816* n, NI64 value);
N_NIMCALL(tnode225816*, foldarrayaccess_306576)(tsym225846* m, tnode225816* n);
N_NIMCALL(tnode225816*, foldfieldaccess_306780)(tsym225846* m, tnode225816* n);
static N_INLINE(NIM_BOOL, isintrange_304250)(ttype225852* t);
N_NIMCALL(ttype225852*, makerange_304408)(ttype225852* typ, NI64 first, NI64 last);
N_NIMCALL(tnode225816*, newnode_226090)(NU8 kind);
N_NIMCALL(NI64, HEX7CHEX2DHEX7C_303034)(NI64 a, NI64 b);
static N_INLINE(NIM_BOOL, isfloatrange_304217)(ttype225852* t);
N_NIMCALL(ttype225852*, makerangef_304440)(ttype225852* typ, NF first, NF last);
N_NIMCALL(NI64, HEX7CabsHEX7C_303046)(NI64 a);
static N_INLINE(NIM_BOOL, isintlit_263386)(ttype225852* t);
N_NIMCALL(NI64, HEX7CHEX2BHEX7C_303019)(NI64 a, NI64 b);
N_NIMCALL(NI64, pickminint_304304)(tnode225816* n);
N_NIMCALL(NI64, pickmaxint_304356)(tnode225816* n);
N_NIMCALL(NIM_BOOL, isintrangeorlit_304294)(ttype225852* t);
N_NIMCALL(ttype225852*, pickintrange_304283)(ttype225852* a, ttype225852* b);
N_NIMCALL(NI64, HEX7CHEX2AHEX7C_303078)(NI64 a, NI64 b);
N_NIMCALL(NI64, HEX7CdivHEX7C_303056)(NI64 a, NI64 b);
STRING_LITERAL(TMP2832, "leValueConv", 11);
extern NIM_CONST TY174481 cpu_174480;
extern NIM_CONST TY174070 os_174069;
STRING_LITERAL(TMP3095, "lib", 3);
STRING_LITERAL(TMP3096, "staticlib", 9);
STRING_LITERAL(TMP3097, "gui", 3);
STRING_LITERAL(TMP3098, "console", 7);
STRING_LITERAL(TMP3099, "getConstIfExpr()", 16);
STRING_LITERAL(TMP3101, "sizeof", 6);
STRING_LITERAL(TMP3105, "constant folding for shl", 24);
STRING_LITERAL(TMP3106, "constant folding for shr", 24);
STRING_LITERAL(TMP3108, "false", 5);
STRING_LITERAL(TMP3109, "true", 4);
STRING_LITERAL(TMP3110, "ordinalValToString", 18);
STRING_LITERAL(TMP3111, "no symbol for ordinal value: ", 29);
STRING_LITERAL(TMP3112, "evalOp(", 7);
STRING_LITERAL(TMP3113, "", 0);
STRING_LITERAL(TMP3115, "compiler/semfold.nim", 20);
NIM_CONST TY84945 TMP3114 = {((NimStringDesc*) &TMP3115),
242}
;
NIM_CONST TY84945 TMP3116 = {((NimStringDesc*) &TMP3115),
243}
;
STRING_LITERAL(TMP3117, "closure", 7);
STRING_LITERAL(TMP3118, "iterator", 8);
STRING_LITERAL(TMP3119, "cannot convert ", 15);
STRING_LITERAL(TMP3120, " to ", 4);
STRING_LITERAL(TMP3121, "pickMinInt", 10);
STRING_LITERAL(TMP3122, "pickMaxInt", 10);
extern tgcheap47216 gch_47244;
extern NU8 targetcpu_174587;
extern NU8 targetos_174589;
extern NU32 gglobaloptions_169118;
extern TSafePoint* exchandler_16443;
extern TNimType NTI225532; /* TMagic */
extern TNimType NTI3243; /* OverflowError */
extern Exception* currexception_16445;
extern TNimType NTI3241; /* DivByZeroError */

N_NIMCALL(NIM_BOOL, levalueconv_304021)(tnode225816* a, tnode225816* 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_197987((*a).Info, ((NimStringDesc*) &TMP2832));
		}
		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_197987((*a).Info, ((NimStringDesc*) &TMP2832));
		}
		break;
		}
	}
	break;
	default:
	{
		internalerror_197987((*a).Info, ((NimStringDesc*) &TMP2832));
	}
	break;
	}
	return result;
}

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

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

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

N_NIMCALL(tnode225816*, newsymnodetypedesc_307153)(tsym225846* s, tlineinfo195539 info) {
	tnode225816* result;
	result = 0;
	result = newsymnode_227755(s, info);
	asgnRefNoCycle((void**) (&(*result).Typ), newtype_226083(((NU8) 8), (*s).Owner));
	addsonskipintlit_282572((*result).Typ, (*s).Typ);
	return result;
}

N_NIMCALL(tnode225816*, newintnodet_304028)(NI64 intval, tnode225816* n) {
	tnode225816* result;
	ttype225852* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = skiptypes_230245((*n).Typ, IL64(211106242013440));
	switch ((*LOC1).Kind) {
	case ((NU8) 31):
	{
		result = newintnode_226096(((NU8) 6), intval);
		asgnRefNoCycle((void**) (&(*result).Typ), getintlittype_282477(result));
	}
	break;
	case ((NU8) 2):
	{
		result = newintnode_226096(((NU8) 5), intval);
		asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
	}
	break;
	default:
	{
		result = newintnode_226096(((NU8) 6), intval);
		asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
	}
	break;
	}
	(*result).Info = (*n).Info;
	return result;
}

N_NIMCALL(tnode225816*, newstrnodet_304042)(NimStringDesc* strval, tnode225816* n) {
	tnode225816* result;
	result = 0;
	result = newstrnode_226118(((NU8) 20), strval);
	asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
	(*result).Info = (*n).Info;
	return result;
}

N_NIMCALL(tnode225816*, getapptype_306451)(tnode225816* n) {
	tnode225816* result;
	result = 0;
	{
		if (!((gglobaloptions_169118 &(1<<((((NU8) 8))&31)))!=0)) goto LA3;
		result = newstrnodet_304042(((NimStringDesc*) &TMP3095), n);
	}
	goto LA1;
	LA3: ;
	{
		if (!((gglobaloptions_169118 &(1<<((((NU8) 9))&31)))!=0)) goto LA6;
		result = newstrnodet_304042(((NimStringDesc*) &TMP3096), n);
	}
	goto LA1;
	LA6: ;
	{
		if (!((gglobaloptions_169118 &(1<<((((NU8) 10))&31)))!=0)) goto LA9;
		result = newstrnodet_304042(((NimStringDesc*) &TMP3097), n);
	}
	goto LA1;
	LA9: ;
	{
		result = newstrnodet_304042(((NimStringDesc*) &TMP3098), n);
	}
	LA1: ;
	return result;
}

N_NIMCALL(tnode225816*, newfloatnodet_304035)(NF floatval, tnode225816* n) {
	tnode225816* result;
	result = 0;
	result = newfloatnode_226111(((NU8) 16), floatval);
	{
		ttype225852* LOC3;
		LOC3 = 0;
		LOC3 = skiptypes_230245((*n).Typ, IL64(211106242013440));
		if (!((*LOC3).Kind == ((NU8) 36))) goto LA4;
		asgnRefNoCycle((void**) (&(*result).Typ), getfloatlittype_282521(result));
	}
	goto LA1;
	LA4: ;
	{
		asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
	}
	LA1: ;
	(*result).Info = (*n).Info;
	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;
}

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;
}

N_NIMCALL(tnode225816*, getconstifexpr_305783)(tsym225846* c, tnode225816* n) {
	tnode225816* result;
	result = 0;
	result = NIM_NIL;
	{
		NI i_305800;
		NI HEX3Atmp_305928;
		NI LOC2;
		NI res_305931;
		i_305800 = 0;
		HEX3Atmp_305928 = 0;
		LOC2 = 0;
		LOC2 = sonslen_226249(n);
		HEX3Atmp_305928 = (NI32)(LOC2 - 1);
		res_305931 = 0;
		{
			while (1) {
				tnode225816* it;
				if (!(res_305931 <= HEX3Atmp_305928)) goto LA4;
				i_305800 = res_305931;
				it = (*n).kindU.S6.Sons->data[i_305800];
				{
					NI LOC7;
					tnode225816* e;
					LOC7 = 0;
					LOC7 = len_226364(it);
					if (!(LOC7 == 2)) goto LA8;
					e = getconstexpr_304004(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_263187(e);
						if (!!((LOC16 == IL64(0)))) goto LA17;
						{
							if (!(result == NIM_NIL)) goto LA21;
							result = getconstexpr_304004(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_226364(it);
					if (!(LOC28 == 1)) goto LA29;
					{
						if (!(result == NIM_NIL)) goto LA33;
						result = getconstexpr_304004(c, (*it).kindU.S6.Sons->data[0]);
					}
					LA33: ;
				}
				goto LA5;
				LA29: ;
				{
					internalerror_197987((*it).Info, ((NimStringDesc*) &TMP3099));
				}
				LA5: ;
				res_305931 += 1;
			} LA4: ;
		}
	}
	BeforeRet: ;
	return result;
}

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

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

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

N_NIMCALL(tnode225816*, getarrayconstr_306539)(tsym225846* m, tnode225816* n) {
	tnode225816* result;
	result = 0;
	{
		if (!((*n).Kind == ((NU8) 41))) goto LA3;
		result = n;
	}
	goto LA1;
	LA3: ;
	{
		result = getconstexpr_304004(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_304091)(tnode225816* a) {
	NimStringDesc* result;
	NI64 x;
	ttype225852* t;
	result = 0;
	x = getint_232538(a);
	t = skiptypes_230245((*a).Typ, IL64(211106233624832));
	switch ((*t).Kind) {
	case ((NU8) 2):
	{
		result = nimCharToStr(((NIM_CHAR) ((NI)(((NI) (x)) & 255))));
	}
	break;
	case ((NU8) 14):
	{
		tnode225816* n;
		NimStringDesc* LOC20;
		NimStringDesc* LOC21;
		n = (*t).N;
		{
			NI i_304112;
			NI HEX3Atmp_304197;
			NI LOC4;
			NI res_304200;
			i_304112 = 0;
			HEX3Atmp_304197 = 0;
			LOC4 = 0;
			LOC4 = sonslen_226249(n);
			HEX3Atmp_304197 = (NI32)(LOC4 - 1);
			res_304200 = 0;
			{
				while (1) {
					tsym225846* field;
					if (!(res_304200 <= HEX3Atmp_304197)) goto LA6;
					i_304112 = res_304200;
					{
						if (!!(((*(*n).kindU.S6.Sons->data[i_304112]).Kind == ((NU8) 3)))) goto LA9;
						internalerror_197987((*a).Info, ((NimStringDesc*) &TMP3110));
					}
					LA9: ;
					field = (*(*n).kindU.S6.Sons->data[i_304112]).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_304200 += 1;
				} LA6: ;
			}
		}
		LOC20 = 0;
		LOC21 = 0;
		LOC21 = nimInt64ToStr(x);
		LOC20 = rawNewString(LOC21->Sup.len + 29);
appendString(LOC20, ((NimStringDesc*) &TMP3111));
appendString(LOC20, LOC21);
		internalerror_197987((*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(tnode225816*, evalop_304011)(NU16 m, tnode225816* n, tnode225816* a, tnode225816* b, tnode225816* c) {
	tnode225816* result;
	result = 0;
	result = NIM_NIL;
	switch (m) {
	case ((NU16) 23):
	{
		NI64 LOC2;
		LOC2 = 0;
		LOC2 = getordvalue_263187(a);
		result = newintnodet_304028(LOC2, n);
	}
	break;
	case ((NU16) 34):
	{
		NI64 LOC4;
		LOC4 = 0;
		LOC4 = getint_232538(a);
		result = newintnodet_304028(LOC4, n);
	}
	break;
	case ((NU16) 101):
	case ((NU16) 102):
	{
		NI64 LOC6;
		LOC6 = 0;
		LOC6 = getint_232538(a);
		result = newintnodet_304028(-(LOC6), n);
	}
	break;
	case ((NU16) 111):
	{
		NF LOC8;
		LOC8 = 0;
		LOC8 = getfloat_232562(a);
		result = newfloatnodet_304035(-(LOC8), n);
	}
	break;
	case ((NU16) 105):
	{
		NI64 LOC10;
		LOC10 = 0;
		LOC10 = getint_232538(a);
		result = newintnodet_304028((NI64)(IL64(1) - LOC10), n);
	}
	break;
	case ((NU16) 33):
	{
		NI64 LOC12;
		LOC12 = 0;
		LOC12 = cardset_284089(a);
		result = newintnodet_304028(LOC12, n);
	}
	break;
	case ((NU16) 107):
	case ((NU16) 109):
	{
		NI64 LOC14;
		LOC14 = 0;
		LOC14 = getint_232538(a);
		result = newintnodet_304028((NI64)((NU64) ~(LOC14)), n);
	}
	break;
	case ((NU16) 28):
	{
		NimStringDesc* LOC16;
		LOC16 = 0;
		LOC16 = getstr_232587(a);
		result = newintnodet_304028(((NI64) (LOC16->Sup.len)), n);
	}
	break;
	case ((NU16) 29):
	{
		NI64 LOC18;
		LOC18 = 0;
		LOC18 = lengthord_263016((*a).Typ);
		result = newintnodet_304028(LOC18, n);
	}
	break;
	case ((NU16) 30):
	case ((NU16) 27):
	{
		NI LOC20;
		LOC20 = 0;
		LOC20 = sonslen_226249(a);
		result = newintnodet_304028(((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_232538(a);
		result = newfloatnodet_304035(((double) (((NI) (LOC23)))), n);
	}
	break;
	case ((NU16) 124):
	case ((NU16) 125):
	{
		NF LOC25;
		LOC25 = 0;
		LOC25 = getfloat_232562(a);
		result = newintnodet_304028(((NI64) (float64ToInt32(LOC25))), n);
	}
	break;
	case ((NU16) 112):
	{
		NF LOC27;
		LOC27 = 0;
		LOC27 = getfloat_232562(a);
		result = newfloatnodet_304035((LOC27 > 0? (LOC27) : -(LOC27)), n);
	}
	break;
	case ((NU16) 103):
	case ((NU16) 104):
	{
		{
			NI64 LOC31;
			LOC31 = 0;
			LOC31 = getint_232538(a);
			if (!(IL64(0) <= LOC31)) goto LA32;
			result = a;
		}
		goto LA29;
		LA32: ;
		{
			NI64 LOC35;
			LOC35 = 0;
			LOC35 = getint_232538(a);
			result = newintnodet_304028(-(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_232538(a);
		LOC38 = 0;
		LOC38 = getsize_263199((*a).Typ);
		result = newintnodet_304028((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_232538(a);
		result = newintnodet_304028(((NI64) ((NI64)(LOC40 & IL64(255)))), n);
	}
	break;
	case ((NU16) 120):
	{
		NI64 LOC42;
		LOC42 = 0;
		LOC42 = getint_232538(a);
		result = newintnodet_304028(((NI64) ((NI64)(LOC42 & IL64(65535)))), n);
	}
	break;
	case ((NU16) 121):
	{
		NI64 LOC44;
		LOC44 = 0;
		LOC44 = getint_232538(a);
		result = newintnodet_304028(((NI64) ((NI64)(LOC44 & IL64(4294967295)))), n);
	}
	break;
	case ((NU16) 18):
	{
		NI64 LOC46;
		LOC46 = 0;
		LOC46 = getordvalue_263187(a);
		result = newintnodet_304028((NI64)(LOC46 - IL64(1)), n);
	}
	break;
	case ((NU16) 19):
	{
		NI64 LOC48;
		NI64 LOC49;
		LOC48 = 0;
		LOC48 = getordvalue_263187(a);
		LOC49 = 0;
		LOC49 = getint_232538(b);
		result = newintnodet_304028((NI64)(LOC48 + LOC49), n);
	}
	break;
	case ((NU16) 20):
	{
		NI64 LOC51;
		NI64 LOC52;
		LOC51 = 0;
		LOC51 = getordvalue_263187(a);
		LOC52 = 0;
		LOC52 = getint_232538(b);
		result = newintnodet_304028((NI64)(LOC51 - LOC52), n);
	}
	break;
	case ((NU16) 37):
	case ((NU16) 42):
	{
		NI64 LOC54;
		NI64 LOC55;
		LOC54 = 0;
		LOC54 = getint_232538(a);
		LOC55 = 0;
		LOC55 = getint_232538(b);
		result = newintnodet_304028((NI64)(LOC54 + LOC55), n);
	}
	break;
	case ((NU16) 38):
	case ((NU16) 43):
	{
		NI64 LOC57;
		NI64 LOC58;
		LOC57 = 0;
		LOC57 = getint_232538(a);
		LOC58 = 0;
		LOC58 = getint_232538(b);
		result = newintnodet_304028((NI64)(LOC57 - LOC58), n);
	}
	break;
	case ((NU16) 39):
	case ((NU16) 44):
	{
		NI64 LOC60;
		NI64 LOC61;
		LOC60 = 0;
		LOC60 = getint_232538(a);
		LOC61 = 0;
		LOC61 = getint_232538(b);
		result = newintnodet_304028((NI64)(LOC60 * LOC61), n);
	}
	break;
	case ((NU16) 56):
	case ((NU16) 63):
	{
		{
			NI64 LOC65;
			NI64 LOC66;
			NI64 LOC69;
			LOC65 = 0;
			LOC65 = getint_232538(b);
			LOC66 = 0;
			LOC66 = getint_232538(a);
			if (!(LOC65 < LOC66)) goto LA67;
			LOC69 = 0;
			LOC69 = getint_232538(b);
			result = newintnodet_304028(LOC69, n);
		}
		goto LA63;
		LA67: ;
		{
			NI64 LOC71;
			LOC71 = 0;
			LOC71 = getint_232538(a);
			result = newintnodet_304028(LOC71, n);
		}
		LA63: ;
	}
	break;
	case ((NU16) 57):
	case ((NU16) 64):
	{
		{
			NI64 LOC75;
			NI64 LOC76;
			NI64 LOC79;
			LOC75 = 0;
			LOC75 = getint_232538(b);
			LOC76 = 0;
			LOC76 = getint_232538(a);
			if (!(LOC75 < LOC76)) goto LA77;
			LOC79 = 0;
			LOC79 = getint_232538(a);
			result = newintnodet_304028(LOC79, n);
		}
		goto LA73;
		LA77: ;
		{
			NI64 LOC81;
			LOC81 = 0;
			LOC81 = getint_232538(b);
			result = newintnodet_304028(LOC81, n);
		}
		LA73: ;
	}
	break;
	case ((NU16) 52):
	case ((NU16) 59):
	{
		ttype225852* LOC83;
		LOC83 = 0;
		LOC83 = skiptypes_230245((*n).Typ, IL64(211106233624832));
		switch ((*LOC83).Kind) {
		case ((NU8) 32):
		{
			NI64 LOC85;
			NI64 LOC86;
			LOC85 = 0;
			LOC85 = getint_232538(a);
			LOC86 = 0;
			LOC86 = getint_232538(b);
			result = newintnodet_304028(((NI64) ((NI8)((NU8)(((NI8) (LOC85))) << (NU8)(((NI8) (LOC86)))))), n);
		}
		break;
		case ((NU8) 33):
		{
			NI64 LOC88;
			NI64 LOC89;
			LOC88 = 0;
			LOC88 = getint_232538(a);
			LOC89 = 0;
			LOC89 = getint_232538(b);
			result = newintnodet_304028(((NI64) ((NI16)((NU16)(((NI16) (LOC88))) << (NU16)(((NI16) (LOC89)))))), n);
		}
		break;
		case ((NU8) 34):
		{
			NI64 LOC91;
			NI64 LOC92;
			LOC91 = 0;
			LOC91 = getint_232538(a);
			LOC92 = 0;
			LOC92 = getint_232538(b);
			result = newintnodet_304028(((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_232538(a);
			LOC95 = 0;
			LOC95 = getint_232538(b);
			result = newintnodet_304028((NI64)((NU64)(LOC94) << (NU64)(LOC95)), n);
		}
		break;
		default:
		{
			internalerror_197987((*n).Info, ((NimStringDesc*) &TMP3105));
		}
		break;
		}
	}
	break;
	case ((NU16) 51):
	case ((NU16) 58):
	{
		ttype225852* LOC98;
		LOC98 = 0;
		LOC98 = skiptypes_230245((*n).Typ, IL64(211106233624832));
		switch ((*LOC98).Kind) {
		case ((NU8) 32):
		{
			NI64 LOC100;
			NI64 LOC101;
			LOC100 = 0;
			LOC100 = getint_232538(a);
			LOC101 = 0;
			LOC101 = getint_232538(b);
			result = newintnodet_304028(((NI64) ((NI8)((NU8)(((NI8) (LOC100))) >> (NU8)(((NI8) (LOC101)))))), n);
		}
		break;
		case ((NU8) 33):
		{
			NI64 LOC103;
			NI64 LOC104;
			LOC103 = 0;
			LOC103 = getint_232538(a);
			LOC104 = 0;
			LOC104 = getint_232538(b);
			result = newintnodet_304028(((NI64) ((NI16)((NU16)(((NI16) (LOC103))) >> (NU16)(((NI16) (LOC104)))))), n);
		}
		break;
		case ((NU8) 34):
		{
			NI64 LOC106;
			NI64 LOC107;
			LOC106 = 0;
			LOC106 = getint_232538(a);
			LOC107 = 0;
			LOC107 = getint_232538(b);
			result = newintnodet_304028(((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_232538(a);
			LOC110 = 0;
			LOC110 = getint_232538(b);
			result = newintnodet_304028((NI64)((NU64)(LOC109) >> (NU64)(LOC110)), n);
		}
		break;
		default:
		{
			internalerror_197987((*n).Info, ((NimStringDesc*) &TMP3106));
		}
		break;
		}
	}
	break;
	case ((NU16) 40):
	case ((NU16) 45):
	{
		NI64 y;
		y = getint_232538(b);
		{
			NI64 LOC117;
			if (!!((y == IL64(0)))) goto LA115;
			LOC117 = 0;
			LOC117 = getint_232538(a);
			result = newintnodet_304028((NI64)(LOC117 / y), n);
		}
		LA115: ;
	}
	break;
	case ((NU16) 41):
	case ((NU16) 46):
	{
		NI64 y;
		y = getint_232538(b);
		{
			NI64 LOC123;
			if (!!((y == IL64(0)))) goto LA121;
			LOC123 = 0;
			LOC123 = getint_232538(a);
			result = newintnodet_304028((NI64)(LOC123 % y), n);
		}
		LA121: ;
	}
	break;
	case ((NU16) 47):
	{
		NF LOC125;
		NF LOC126;
		LOC125 = 0;
		LOC125 = getfloat_232562(a);
		LOC126 = 0;
		LOC126 = getfloat_232562(b);
		result = newfloatnodet_304035(((NF)(LOC125) + (NF)(LOC126)), n);
	}
	break;
	case ((NU16) 48):
	{
		NF LOC128;
		NF LOC129;
		LOC128 = 0;
		LOC128 = getfloat_232562(a);
		LOC129 = 0;
		LOC129 = getfloat_232562(b);
		result = newfloatnodet_304035(((NF)(LOC128) - (NF)(LOC129)), n);
	}
	break;
	case ((NU16) 49):
	{
		NF LOC131;
		NF LOC132;
		LOC131 = 0;
		LOC131 = getfloat_232562(a);
		LOC132 = 0;
		LOC132 = getfloat_232562(b);
		result = newfloatnodet_304035(((NF)(LOC131) * (NF)(LOC132)), n);
	}
	break;
	case ((NU16) 50):
	{
		{
			NF LOC136;
			LOC136 = 0;
			LOC136 = getfloat_232562(b);
			if (!(LOC136 == 0.0)) goto LA137;
			{
				NF LOC141;
				LOC141 = 0;
				LOC141 = getfloat_232562(a);
				if (!(LOC141 == 0.0)) goto LA142;
				result = newfloatnodet_304035(NAN, n);
			}
			goto LA139;
			LA142: ;
			{
				result = newfloatnodet_304035(INF, n);
			}
			LA139: ;
		}
		goto LA134;
		LA137: ;
		{
			NF LOC146;
			NF LOC147;
			LOC146 = 0;
			LOC146 = getfloat_232562(a);
			LOC147 = 0;
			LOC147 = getfloat_232562(b);
			result = newfloatnodet_304035(((NF)(LOC146) / (NF)(LOC147)), n);
		}
		LA134: ;
	}
	break;
	case ((NU16) 66):
	{
		{
			NF LOC151;
			NF LOC152;
			NF LOC155;
			LOC151 = 0;
			LOC151 = getfloat_232562(b);
			LOC152 = 0;
			LOC152 = getfloat_232562(a);
			if (!(LOC151 < LOC152)) goto LA153;
			LOC155 = 0;
			LOC155 = getfloat_232562(a);
			result = newfloatnodet_304035(LOC155, n);
		}
		goto LA149;
		LA153: ;
		{
			NF LOC157;
			LOC157 = 0;
			LOC157 = getfloat_232562(b);
			result = newfloatnodet_304035(LOC157, n);
		}
		LA149: ;
	}
	break;
	case ((NU16) 65):
	{
		{
			NF LOC161;
			NF LOC162;
			NF LOC165;
			LOC161 = 0;
			LOC161 = getfloat_232562(b);
			LOC162 = 0;
			LOC162 = getfloat_232562(a);
			if (!(LOC161 < LOC162)) goto LA163;
			LOC165 = 0;
			LOC165 = getfloat_232562(b);
			result = newfloatnodet_304035(LOC165, n);
		}
		goto LA159;
		LA163: ;
		{
			NF LOC167;
			LOC167 = 0;
			LOC167 = getfloat_232562(a);
			result = newfloatnodet_304035(LOC167, n);
		}
		LA159: ;
	}
	break;
	case ((NU16) 168):
	{
		result = newintnodet_304028(((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_263187(a);
		LOC171 = 0;
		LOC171 = getordvalue_263187(b);
		result = newintnodet_304028(((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_263187(a);
		LOC174 = 0;
		LOC174 = getordvalue_263187(b);
		result = newintnodet_304028(((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_263187(a);
		LOC177 = 0;
		LOC177 = getordvalue_263187(b);
		result = newintnodet_304028(((NI64) ((LOC176 == LOC177))), n);
	}
	break;
	case ((NU16) 80):
	{
		NF LOC179;
		NF LOC180;
		LOC179 = 0;
		LOC179 = getfloat_232562(a);
		LOC180 = 0;
		LOC180 = getfloat_232562(b);
		result = newintnodet_304028(((NI64) ((LOC179 < LOC180))), n);
	}
	break;
	case ((NU16) 79):
	{
		NF LOC182;
		NF LOC183;
		LOC182 = 0;
		LOC182 = getfloat_232562(a);
		LOC183 = 0;
		LOC183 = getfloat_232562(b);
		result = newintnodet_304028(((NI64) ((LOC182 <= LOC183))), n);
	}
	break;
	case ((NU16) 78):
	{
		NF LOC185;
		NF LOC186;
		LOC185 = 0;
		LOC185 = getfloat_232562(a);
		LOC186 = 0;
		LOC186 = getfloat_232562(b);
		result = newintnodet_304028(((NI64) ((LOC185 == LOC186))), n);
	}
	break;
	case ((NU16) 138):
	{
		NimStringDesc* LOC188;
		NimStringDesc* LOC189;
		LOC188 = 0;
		LOC188 = getstr_232587(a);
		LOC189 = 0;
		LOC189 = getstr_232587(b);
		result = newintnodet_304028(((NI64) ((cmpStrings(LOC188, LOC189) < 0))), n);
	}
	break;
	case ((NU16) 137):
	{
		NimStringDesc* LOC191;
		NimStringDesc* LOC192;
		LOC191 = 0;
		LOC191 = getstr_232587(a);
		LOC192 = 0;
		LOC192 = getstr_232587(b);
		result = newintnodet_304028(((NI64) ((cmpStrings(LOC191, LOC192) <= 0))), n);
	}
	break;
	case ((NU16) 136):
	{
		NimStringDesc* LOC194;
		NimStringDesc* LOC195;
		LOC194 = 0;
		LOC194 = getstr_232587(a);
		LOC195 = 0;
		LOC195 = getstr_232587(b);
		result = newintnodet_304028(((NI64) (eqStrings(LOC194, LOC195))), n);
	}
	break;
	case ((NU16) 82):
	case ((NU16) 84):
	{
		NI64 LOC197;
		NI64 LOC198;
		LOC197 = 0;
		LOC197 = getordvalue_263187(a);
		LOC198 = 0;
		LOC198 = getordvalue_263187(b);
		result = newintnodet_304028(((NI64) (((NU64)(LOC197) < (NU64)(LOC198)))), n);
	}
	break;
	case ((NU16) 81):
	case ((NU16) 83):
	{
		NI64 LOC200;
		NI64 LOC201;
		LOC200 = 0;
		LOC200 = getordvalue_263187(a);
		LOC201 = 0;
		LOC201 = getordvalue_263187(b);
		result = newintnodet_304028(((NI64) (((NU64)(LOC200) <= (NU64)(LOC201)))), n);
	}
	break;
	case ((NU16) 53):
	case ((NU16) 60):
	case ((NU16) 134):
	{
		NI64 LOC203;
		NI64 LOC204;
		LOC203 = 0;
		LOC203 = getint_232538(a);
		LOC204 = 0;
		LOC204 = getint_232538(b);
		result = newintnodet_304028((NI64)(LOC203 & LOC204), n);
	}
	break;
	case ((NU16) 54):
	case ((NU16) 61):
	case ((NU16) 135):
	{
		NI64 LOC206;
		NI64 LOC207;
		LOC206 = 0;
		LOC206 = getint_232538(a);
		LOC207 = 0;
		LOC207 = getint_232538(b);
		result = newintnodet_304028((NI64)(LOC206 | LOC207), n);
	}
	break;
	case ((NU16) 55):
	case ((NU16) 62):
	case ((NU16) 99):
	{
		NI64 LOC209;
		NI64 LOC210;
		LOC209 = 0;
		LOC209 = getint_232538(a);
		LOC210 = 0;
		LOC210 = getint_232538(b);
		result = newintnodet_304028((NI64)(LOC209 ^ LOC210), n);
	}
	break;
	case ((NU16) 67):
	{
		NI64 LOC212;
		NI64 LOC213;
		LOC212 = 0;
		LOC212 = getint_232538(a);
		LOC213 = 0;
		LOC213 = getint_232538(b);
		result = newintnodet_304028((NI64)((NU64)(LOC212) + (NU64)(LOC213)), n);
	}
	break;
	case ((NU16) 68):
	{
		NI64 LOC215;
		NI64 LOC216;
		LOC215 = 0;
		LOC215 = getint_232538(a);
		LOC216 = 0;
		LOC216 = getint_232538(b);
		result = newintnodet_304028((NI64)((NU64)(LOC215) - (NU64)(LOC216)), n);
	}
	break;
	case ((NU16) 69):
	{
		NI64 LOC218;
		NI64 LOC219;
		LOC218 = 0;
		LOC218 = getint_232538(a);
		LOC219 = 0;
		LOC219 = getint_232538(b);
		result = newintnodet_304028((NI64)((NU64)(LOC218) * (NU64)(LOC219)), n);
	}
	break;
	case ((NU16) 71):
	{
		NI64 y;
		y = getint_232538(b);
		{
			NI64 LOC225;
			if (!!((y == IL64(0)))) goto LA223;
			LOC225 = 0;
			LOC225 = getint_232538(a);
			result = newintnodet_304028((NI64)((NU64)(LOC225) % (NU64)(y)), n);
		}
		LA223: ;
	}
	break;
	case ((NU16) 70):
	{
		NI64 y;
		y = getint_232538(b);
		{
			NI64 LOC231;
			if (!!((y == IL64(0)))) goto LA229;
			LOC231 = 0;
			LOC231 = getint_232538(a);
			result = newintnodet_304028((NI64)((NU64)(LOC231) / (NU64)(y)), n);
		}
		LA229: ;
	}
	break;
	case ((NU16) 140):
	{
		NIM_BOOL LOC233;
		LOC233 = 0;
		LOC233 = containssets_284075(a, b);
		result = newintnodet_304028(((NI64) (LOC233)), n);
	}
	break;
	case ((NU16) 139):
	{
		NIM_BOOL LOC235;
		LOC235 = 0;
		LOC235 = equalsets_284082(a, b);
		result = newintnodet_304028(((NI64) (LOC235)), n);
	}
	break;
	case ((NU16) 141):
	{
		NIM_BOOL LOC237;
		NIM_BOOL LOC239;
		LOC237 = 0;
		LOC237 = containssets_284075(a, b);
		if (!(LOC237)) goto LA238;
		LOC239 = 0;
		LOC239 = equalsets_284082(a, b);
		LOC237 = !(LOC239);
		LA238: ;
		result = newintnodet_304028(((NI64) (LOC237)), n);
	}
	break;
	case ((NU16) 142):
	{
		result = intersectsets_284061(a, b);
		(*result).Info = (*n).Info;
	}
	break;
	case ((NU16) 143):
	{
		result = unionsets_284047(a, b);
		(*result).Info = (*n).Info;
	}
	break;
	case ((NU16) 144):
	{
		result = diffsets_284054(a, b);
		(*result).Info = (*n).Info;
	}
	break;
	case ((NU16) 145):
	{
		result = symdiffsets_284068(a, b);
		(*result).Info = (*n).Info;
	}
	break;
	case ((NU16) 146):
	{
		NimStringDesc* LOC245;
		NimStringDesc* LOC246;
		NimStringDesc* LOC247;
		LOC245 = 0;
		LOC246 = 0;
		LOC246 = getstrorchar_232611(a);
		LOC247 = 0;
		LOC247 = getstrorchar_232611(b);
		LOC245 = rawNewString(LOC246->Sup.len + LOC247->Sup.len + 0);
appendString(LOC245, LOC246);
appendString(LOC245, LOC247);
		result = newstrnodet_304042(LOC245, n);
	}
	break;
	case ((NU16) 159):
	{
		NIM_BOOL LOC249;
		LOC249 = 0;
		LOC249 = inset_284019(a, b);
		result = newintnodet_304028(((NI64) (LOC249)), n);
	}
	break;
	case ((NU16) 160):
	{
	}
	break;
	case ((NU16) 128):
	case ((NU16) 129):
	{
		NI64 LOC252;
		NimStringDesc* LOC253;
		LOC252 = 0;
		LOC252 = getordvalue_263187(a);
		LOC253 = 0;
		LOC253 = nimInt64ToStr(LOC252);
		result = newstrnodet_304042(LOC253, n);
	}
	break;
	case ((NU16) 127):
	{
		{
			NI64 LOC257;
			LOC257 = 0;
			LOC257 = getordvalue_263187(a);
			if (!(LOC257 == IL64(0))) goto LA258;
			result = newstrnodet_304042(((NimStringDesc*) &TMP3108), n);
		}
		goto LA255;
		LA258: ;
		{
			result = newstrnodet_304042(((NimStringDesc*) &TMP3109), n);
		}
		LA255: ;
	}
	break;
	case ((NU16) 170):
	{
		NimStringDesc* LOC262;
		NI64 LOC263;
		NimStringDesc* LOC264;
		LOC262 = 0;
		LOC262 = getstr_232587(a);
		LOC263 = 0;
		LOC263 = getordvalue_263187(b);
		LOC264 = 0;
		LOC264 = copyStr(LOC262, ((NI) (LOC263)));
		result = newstrnodet_304042(LOC264, n);
	}
	break;
	case ((NU16) 171):
	{
		NimStringDesc* LOC266;
		NI64 LOC267;
		NI64 LOC268;
		NimStringDesc* LOC269;
		LOC266 = 0;
		LOC266 = getstr_232587(a);
		LOC267 = 0;
		LOC267 = getordvalue_263187(b);
		LOC268 = 0;
		LOC268 = getordvalue_263187(c);
		LOC269 = 0;
		LOC269 = copyStrLast(LOC266, ((NI) (LOC267)), ((NI) (LOC268)));
		result = newstrnodet_304042(LOC269, n);
	}
	break;
	case ((NU16) 130):
	{
		NF LOC271;
		NimStringDesc* LOC272;
		LOC271 = 0;
		LOC271 = getfloat_232562(a);
		LOC272 = 0;
		LOC272 = nimFloatToStr(LOC271);
		result = newstrnodet_304042(LOC272, n);
	}
	break;
	case ((NU16) 131):
	case ((NU16) 126):
	{
		NimStringDesc* LOC274;
		LOC274 = 0;
		LOC274 = getstrorchar_232611(a);
		result = newstrnodet_304042(LOC274, n);
	}
	break;
	case ((NU16) 132):
	{
		result = a;
	}
	break;
	case ((NU16) 133):
	{
		NimStringDesc* LOC277;
		LOC277 = 0;
		LOC277 = ordinalvaltostring_304091(a);
		result = newstrnodet_304042(LOC277, n);
	}
	break;
	case ((NU16) 169):
	{
		result = copytree_226329(a);
		asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
	}
	break;
	case ((NU16) 226):
	{
		NimStringDesc* LOC280;
		NIM_BOOL LOC281;
		LOC280 = 0;
		LOC280 = getstr_232587(a);
		LOC281 = 0;
		LOC281 = testcompileoption_208634(LOC280, (*n).Info);
		result = newintnodet_304028(((NI64) (LOC281)), n);
	}
	break;
	case ((NU16) 227):
	{
		NimStringDesc* LOC283;
		NimStringDesc* LOC284;
		NIM_BOOL LOC285;
		LOC283 = 0;
		LOC283 = getstr_232587(a);
		LOC284 = 0;
		LOC284 = getstr_232587(b);
		LOC285 = 0;
		LOC285 = testcompileoptionarg_208505(LOC283, LOC284, (*n).Info);
		result = newintnodet_304028(((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, (&NTI225532))->Sup.len + 8);
appendString(LOC288, ((NimStringDesc*) &TMP3112));
appendString(LOC288, reprEnum(m, (&NTI225532)));
appendChar(LOC288, 41);
		internalerror_197987((*a).Info, LOC288);
	}
	break;
	}
	return result;
}

N_NIMCALL(tnode225816*, magiccall_306311)(tsym225846* m, tnode225816* n) {
	tnode225816* result;
	tsym225846* s;
	tnode225816* a;
	tnode225816* b;
	tnode225816* c;
	result = 0;
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_226249(n);
		if (!(LOC3 <= 1)) goto LA4;
		goto BeforeRet;
	}
	LA4: ;
	s = (*(*n).kindU.S6.Sons->data[0]).kindU.S4.Sym;
	a = getconstexpr_304004(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_226249(n);
		if (!(2 < LOC12)) goto LA13;
		b = getconstexpr_304004(m, (*n).kindU.S6.Sons->data[2]);
		{
			if (!(b == NIM_NIL)) goto LA17;
			goto BeforeRet;
		}
		LA17: ;
		{
			NI LOC21;
			LOC21 = 0;
			LOC21 = sonslen_226249(n);
			if (!(3 < LOC21)) goto LA22;
			c = getconstexpr_304004(m, (*n).kindU.S6.Sons->data[3]);
			{
				if (!(c == NIM_NIL)) goto LA26;
				goto BeforeRet;
			}
			LA26: ;
		}
		LA22: ;
	}
	LA13: ;
	result = evalop_304011((*s).Magic, n, a, b, c);
	BeforeRet: ;
	return result;
}

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

N_NIMCALL(tnode225816*, foldconstrstr_307054)(tsym225846* m, tnode225816* n) {
	tnode225816* result;
	NimStringDesc* LOC1;
	result = 0;
	result = newnodeit_226145(((NU8) 20), (*n).Info, (*n).Typ);
	LOC1 = 0;
	LOC1 = (*result).kindU.S3.Strval; (*result).kindU.S3.Strval = copyStringRC1(((NimStringDesc*) &TMP3113));
	if (LOC1) nimGCunrefNoCycle(LOC1);
	{
		NI i_307085;
		NI HEX3Atmp_307133;
		NI LOC3;
		NI res_307136;
		i_307085 = 0;
		HEX3Atmp_307133 = 0;
		LOC3 = 0;
		LOC3 = sonslen_226249(n);
		HEX3Atmp_307133 = (NI32)(LOC3 - 1);
		res_307136 = 1;
		{
			while (1) {
				tnode225816* a;
				NimStringDesc* LOC10;
				if (!(res_307136 <= HEX3Atmp_307133)) goto LA5;
				i_307085 = res_307136;
				a = getconstexpr_304004(m, (*n).kindU.S6.Sons->data[i_307085]);
				{
					if (!(a == NIM_NIL)) goto LA8;
					result = NIM_NIL;
					goto BeforeRet;
				}
				LA8: ;
				LOC10 = 0;
				LOC10 = getstrorchar_232611(a);
				(*result).kindU.S3.Strval = resizeString((*result).kindU.S3.Strval, LOC10->Sup.len + 0);
appendString((*result).kindU.S3.Strval, LOC10);
				res_307136 += 1;
			} LA5: ;
		}
	}
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode225816*, evalis_305343)(tnode225816* n, tnode225816* a) {
	tnode225816* result;
	ttype225852* 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_198126(TMP3114);
		internalerror_198006(LOC7);
	}
	LA5: ;
	{
		NIM_BOOL LOC10;
		NI LOC11;
		tnode225816* LOC13;
		NimStringDesc* LOC16;
		LOC10 = 0;
		LOC11 = 0;
		LOC11 = sonslen_226249(n);
		LOC10 = (LOC11 == 3);
		if (!(LOC10)) goto LA12;
		LOC13 = 0;
		LOC13 = HEX5BHEX5D_226698(n, 2);
		LOC10 = ((*LOC13).Kind >= ((NU8) 20) && (*LOC13).Kind <= ((NU8) 22) || (*LOC13).Kind == ((NU8) 4));
		LA12: ;
		if (!!(LOC10)) goto LA14;
		LOC16 = 0;
		LOC16 = HEX24_198126(TMP3116);
		internalerror_198006(LOC16);
	}
	LA14: ;
	t1 = (*(*a).kindU.S4.Sym).Typ;
	{
		tnode225816* LOC19;
		tnode225816* LOC22;
		NimStringDesc* LOC23;
		LOC19 = 0;
		LOC19 = HEX5BHEX5D_226698(n, 2);
		if (!((*LOC19).Kind >= ((NU8) 20) && (*LOC19).Kind <= ((NU8) 22))) goto LA20;
		LOC22 = 0;
		LOC22 = HEX5BHEX5D_226698(n, 2);
		LOC23 = 0;
		LOC23 = nsuNormalize((*LOC22).kindU.S3.Strval);
		if (eqStrings(LOC23, ((NimStringDesc*) &TMP3117))) goto LA24;
		if (eqStrings(LOC23, ((NimStringDesc*) &TMP3118))) goto LA25;
		goto LA26;
		LA24: ;
		{
			ttype225852* t;
			NIM_BOOL LOC29;
			NIM_BOOL LOC30;
			t = skiptypes_230245(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_226096(((NU8) 6), ((NI64) (LOC29)));
		}
		goto LA27;
		LA25: ;
		{
			ttype225852* t;
			NIM_BOOL LOC34;
			NIM_BOOL LOC35;
			t = skiptypes_230245(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_226096(((NU8) 6), ((NI64) (LOC34)));
		}
		goto LA27;
		LA26: ;
		{
		}
		LA27: ;
	}
	goto LA17;
	LA20: ;
	{
		ttype225852* t2;
		tnode225816* LOC40;
		NIM_BOOL match;
		LOC40 = 0;
		LOC40 = HEX5BHEX5D_226698(n, 2);
		t2 = (*LOC40).Typ;
		match = sametype_268351(t1, t2, 0);
		result = newintnode_226096(((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_16445;
	return result;
}

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

static N_INLINE(void, rtladdcycleroot_49629)(tcell45135* c) {
	{
		if (!!((((NI) ((NI)((*c).Refcount & 3))) == 3))) goto LA3;
		(*c).Refcount = (NI)((NI)((*c).Refcount & -4) | 3);
		incl_45871((&gch_47244.Cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, incref_51225)(tcell45135* c) {
	(*c).Refcount = (NI)((NU32)((*c).Refcount) + (NU32)(8));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_48867(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_49629(c);
	}
	LA4: ;
}

static N_INLINE(void, decref_50804)(tcell45135* c) {
	{
		(*c).Refcount -= 8;
		if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA3;
		rtladdzct_50404(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_48867(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_49629(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		tcell45135* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_48846(src);
		incref_51225(LOC5);
	}
	LA3: ;
	{
		tcell45135* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_48846((*dest));
		decref_50804(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

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

N_NIMCALL(void, rangecheck_306500)(tnode225816* n, NI64 value) {
	{
		NIM_BOOL LOC3;
		NI64 LOC4;
		NI64 LOC6;
		NimStringDesc* LOC9;
		NimStringDesc* LOC10;
		NimStringDesc* LOC11;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = firstord_263004((*n).Typ);
		LOC3 = (value < LOC4);
		if (LOC3) goto LA5;
		LOC6 = 0;
		LOC6 = lastord_263010((*n).Typ);
		LOC3 = (LOC6 < value);
		LA5: ;
		if (!LOC3) goto LA7;
		LOC9 = 0;
		LOC10 = 0;
		LOC10 = nimInt64ToStr(value);
		LOC11 = 0;
		LOC11 = typetostring_263031((*n).Typ, ((NU8) 0));
		LOC9 = rawNewString(LOC10->Sup.len + LOC11->Sup.len + 19);
appendString(LOC9, ((NimStringDesc*) &TMP3119));
appendString(LOC9, LOC10);
appendString(LOC9, ((NimStringDesc*) &TMP3120));
appendString(LOC9, LOC11);
		localerror_197955((*n).Info, ((NU16) 4), LOC9);
	}
	LA7: ;
}

N_NIMCALL(tnode225816*, foldconv_306512)(tnode225816* n, tnode225816* a, NIM_BOOL check) {
	tnode225816* result;
	ttype225852* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = skiptypes_230245((*n).Typ, IL64(211106233624832));
	switch ((*LOC1).Kind) {
	case ((NU8) 31) ... ((NU8) 35):
	{
		ttype225852* LOC3;
		LOC3 = 0;
		LOC3 = skiptypes_230245((*a).Typ, IL64(211106233624832));
		switch ((*LOC3).Kind) {
		case ((NU8) 36) ... ((NU8) 38):
		{
			NF LOC5;
			LOC5 = 0;
			LOC5 = getfloat_232562(a);
			result = newintnodet_304028(((NI64) (((NI) (LOC5)))), n);
		}
		break;
		case ((NU8) 2):
		{
			NI64 LOC7;
			LOC7 = 0;
			LOC7 = getordvalue_263187(a);
			result = newintnodet_304028(LOC7, n);
		}
		break;
		default:
		{
			result = a;
			asgnRefNoCycle((void**) (&(*result).Typ), (*n).Typ);
		}
		break;
		}
		{
			if (!check) goto LA11;
			rangecheck_306500(n, (*result).kindU.S1.Intval);
		}
		LA11: ;
	}
	break;
	case ((NU8) 36) ... ((NU8) 38):
	{
		ttype225852* LOC14;
		LOC14 = 0;
		LOC14 = skiptypes_230245((*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_263187(a);
			result = newfloatnodet_304035(((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(tnode225816*, foldarrayaccess_306576)(tsym225846* m, tnode225816* n) {
	tnode225816* result;
	tnode225816* x;
	tnode225816* y;
	NI64 idx;
	result = 0;
	x = getconstexpr_304004(m, (*n).kindU.S6.Sons->data[0]);
	{
		NIM_BOOL LOC3;
		ttype225852* LOC5;
		LOC3 = 0;
		LOC3 = (x == NIM_NIL);
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = skiptypes_230245((*x).Typ, 2048);
		LOC3 = ((*LOC5).Kind == ((NU8) 8));
		LA4: ;
		if (!LOC3) goto LA6;
		goto BeforeRet;
	}
	LA6: ;
	y = getconstexpr_304004(m, (*n).kindU.S6.Sons->data[1]);
	{
		if (!(y == NIM_NIL)) goto LA10;
		goto BeforeRet;
	}
	LA10: ;
	idx = getordvalue_263187(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_226249(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_197955((*n).Info, ((NU16) 82), ((NimStringDesc*) &TMP3113));
		}
		LA13: ;
	}
	break;
	case ((NU8) 41):
	{
		NI64 LOC26;
		LOC26 = 0;
		LOC26 = firstord_263004((*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_226364(x);
			LOC29 = (idx < ((NI64) (LOC31)));
			LA30: ;
			if (!LOC29) goto LA32;
			result = (*x).kindU.S6.Sons->data[idx];
		}
		goto LA27;
		LA32: ;
		{
			localerror_197955((*n).Info, ((NU16) 82), ((NimStringDesc*) &TMP3113));
		}
		LA27: ;
	}
	break;
	case ((NU8) 20) ... ((NU8) 22):
	{
		result = newnodeit_226145(((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_197955((*n).Info, ((NU16) 82), ((NimStringDesc*) &TMP3113));
		}
		LA36: ;
	}
	break;
	default:
	{
	}
	break;
	}
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode225816*, foldfieldaccess_306780)(tsym225846* m, tnode225816* n) {
	tnode225816* result;
	tnode225816* x;
	tsym225846* field;
	result = 0;
	x = getconstexpr_304004(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_306914;
		NI HEX3Atmp_307033;
		NI HEX3Atmp_307034;
		NI LOC8;
		NI res_307037;
		i_306914 = 0;
		HEX3Atmp_307033 = 0;
		HEX3Atmp_307034 = 0;
		HEX3Atmp_307033 = ((*x).Kind == ((NU8) 38));
		LOC8 = 0;
		LOC8 = sonslen_226249(x);
		HEX3Atmp_307034 = (NI32)(LOC8 - 1);
		res_307037 = ((NI) (HEX3Atmp_307033));
		{
			while (1) {
				tnode225816* it;
				if (!(res_307037 <= HEX3Atmp_307034)) goto LA10;
				i_306914 = res_307037;
				it = (*x).kindU.S6.Sons->data[i_306914];
				{
					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_306914]).kindU.S6.Sons->data[1];
					goto BeforeRet;
				}
				LA21: ;
				res_307037 += 1;
			} LA10: ;
		}
	}
	localerror_197955((*n).Info, ((NU16) 209), (*(*field).Name).S);
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode225816*, getconstexpr_304004)(tsym225846* m, tnode225816* n) {
	tnode225816* volatile result;
	result = 0;
	result = NIM_NIL;
	switch ((*n).Kind) {
	case ((NU8) 3):
	{
		tsym225846* s;
		s = (*n).kindU.S4.Sym;
		switch ((*s).Kind) {
		case ((NU8) 20):
		{
			result = newintnodet_304028(((NI64) ((*s).Position)), n);
		}
		break;
		case ((NU8) 10):
		{
			switch ((*s).Magic) {
			case ((NU16) 215):
			{
				result = newintnodet_304028(((NI64) ((((*m).Flags &(1<<((((NU8) 12))&31)))!=0))), n);
			}
			break;
			case ((NU16) 216):
			{
				NimStringDesc* LOC6;
				LOC6 = 0;
				LOC6 = ntgetDateStr();
				result = newstrnodet_304042(LOC6, n);
			}
			break;
			case ((NU16) 217):
			{
				NimStringDesc* LOC8;
				LOC8 = 0;
				LOC8 = ntgetClockStr();
				result = newstrnodet_304042(LOC8, n);
			}
			break;
			case ((NU16) 219):
			{
				result = newintnodet_304028(((NI64) (cpu_174480[(targetcpu_174587)- 1].Field2)), n);
			}
			break;
			case ((NU16) 220):
			{
				NimStringDesc* LOC11;
				LOC11 = 0;
				LOC11 = nsuToLowerStr(os_174069[(targetos_174589)- 1].Field0);
				result = newstrnodet_304042(LOC11, n);
			}
			break;
			case ((NU16) 221):
			{
				NimStringDesc* LOC13;
				LOC13 = 0;
				LOC13 = nsuToLowerStr(cpu_174480[(targetcpu_174587)- 1].Field0);
				result = newstrnodet_304042(LOC13, n);
			}
			break;
			case ((NU16) 222):
			{
				result = getapptype_306451(n);
			}
			break;
			case ((NU16) 223):
			{
				result = newfloatnodet_304035(NAN, n);
			}
			break;
			case ((NU16) 224):
			{
				result = newfloatnodet_304035(INF, n);
			}
			break;
			case ((NU16) 225):
			{
				result = newfloatnodet_304035(-INF, n);
			}
			break;
			default:
			{
				{
					if (!!((((*s).Flags &(1<<((((NU8) 25))&31)))!=0))) goto LA21;
					result = copytree_226329((*s).Ast);
				}
				LA21: ;
			}
			break;
			}
		}
		break;
		case ((NU8) 12):
		case ((NU8) 13):
		{
			result = n;
		}
		break;
		case ((NU8) 7):
		{
			result = newsymnodetypedesc_307153(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_307153(s, (*n).Info);
			}
			LA26: ;
		}
		break;
		default:
		{
		}
		break;
		}
	}
	break;
	case ((NU8) 5) ... ((NU8) 23):
	{
		result = copynode_226323(n);
	}
	break;
	case ((NU8) 48):
	{
		result = getconstifexpr_305783(m, n);
	}
	break;
	case ((NU8) 27):
	case ((NU8) 26):
	case ((NU8) 28):
	case ((NU8) 30):
	case ((NU8) 29):
	{
		tsym225846* s;
		TSafePoint TMP3100;
		{
			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(&TMP3100);
		TMP3100.status = _setjmp(TMP3100.context);
		if (TMP3100.status == 0) {
			switch ((*s).Magic) {
			case ((NU16) 0):
			{
				popSafePoint();
				goto BeforeRet;
			}
			break;
			case ((NU16) 6):
			{
				tnode225816* a;
				a = (*n).kindU.S6.Sons->data[1];
				{
					NI64 LOC52;
					LOC52 = 0;
					LOC52 = computesize_263193((*a).Typ);
					if (!(LOC52 < IL64(0))) goto LA53;
					localerror_197955((*a).Info, ((NU16) 77), ((NimStringDesc*) &TMP3101));
					result = NIM_NIL;
				}
				goto LA50;
				LA53: ;
				{
					ttype225852* LOC56;
					NI64 LOC59;
					LOC56 = 0;
					LOC56 = skiptypes_230245((*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_263199((*a).Typ);
					result = newintnodet_304028(LOC59, n);
				}
				goto LA50;
				LA57: ;
				{
					result = NIM_NIL;
				}
				LA50: ;
			}
			break;
			case ((NU16) 4):
			{
				NI64 LOC62;
				LOC62 = 0;
				LOC62 = firstord_263004((*(*n).kindU.S6.Sons->data[1]).Typ);
				result = newintnodet_304028(LOC62, n);
			}
			break;
			case ((NU16) 5):
			{
				{
					ttype225852* LOC66;
					tnode225816* LOC69;
					ttype225852* LOC70;
					NI64 LOC71;
					LOC66 = 0;
					LOC66 = skiptypes_230245((*(*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_226698(n, 1);
					LOC70 = 0;
					LOC70 = skiptypes_230245((*LOC69).Typ, IL64(211106240964864));
					LOC71 = 0;
					LOC71 = lastord_263010(LOC70);
					result = newintnodet_304028(LOC71, n);
				}
				goto LA64;
				LA67: ;
				{
					tnode225816* a;
					a = getarrayconstr_306539(m, (*n).kindU.S6.Sons->data[1]);
					{
						NI LOC77;
						if (!((*a).Kind == ((NU8) 41))) goto LA75;
						LOC77 = 0;
						LOC77 = sonslen_226249(a);
						result = newintnodet_304028(((NI64) ((NI32)(LOC77 - 1))), n);
					}
					LA75: ;
				}
				LA64: ;
			}
			break;
			case ((NU16) 27):
			{
				tnode225816* a;
				a = getarrayconstr_306539(m, (*n).kindU.S6.Sons->data[1]);
				{
					NI LOC83;
					if (!((*a).Kind == ((NU8) 41))) goto LA81;
					LOC83 = 0;
					LOC83 = sonslen_226249(a);
					result = newintnodet_304028(((NI64) (LOC83)), n);
				}
				goto LA79;
				LA81: ;
				{
					result = magiccall_306311(m, n);
				}
				LA79: ;
			}
			break;
			case ((NU16) 29):
			{
				NI64 LOC86;
				LOC86 = 0;
				LOC86 = lengthord_263016((*(*n).kindU.S6.Sons->data[1]).Typ);
				result = newintnodet_304028(LOC86, n);
			}
			break;
			case ((NU16) 165):
			{
				tnode225816* LOC88;
				NimStringDesc* LOC89;
				LOC88 = 0;
				LOC88 = HEX5BHEX5D_226698(n, 1);
				LOC89 = 0;
				LOC89 = rendertree_250058(LOC88, 4);
				result = newstrnodet_304042(LOC89, n);
			}
			break;
			case ((NU16) 146):
			{
				result = foldconstrstr_307054(m, n);
			}
			break;
			case ((NU16) 8):
			{
				tnode225816* a;
				tnode225816* LOC92;
				LOC92 = 0;
				LOC92 = HEX5BHEX5D_226698(n, 1);
				a = getconstexpr_304004(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_305343(n, a);
				}
				LA99: ;
			}
			break;
			default:
			{
				result = magiccall_306311(m, n);
			}
			break;
			}
			popSafePoint();
		}
		else {
			popSafePoint();
			if (isObj(getCurrentException()->Sup.m_type, (&NTI3243))) {
				TMP3100.status = 0;
				localerror_197955((*n).Info, ((NU16) 76), ((NimStringDesc*) &TMP3113));
				popCurrentException();
			}
			else 			if (isObj(getCurrentException()->Sup.m_type, (&NTI3241))) {
				TMP3100.status = 0;
				localerror_197955((*n).Info, ((NU16) 73), ((NimStringDesc*) &TMP3113));
				popCurrentException();
			}
		}
		if (TMP3100.status != 0) reraiseException();
	}
	break;
	case ((NU8) 63):
	{
		tnode225816* a;
		a = getconstexpr_304004(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_226329(n);
		{
			NI i_307592;
			NI HEX3Atmp_308283;
			NI LOC112;
			NI res_308286;
			i_307592 = 0;
			HEX3Atmp_308283 = 0;
			LOC112 = 0;
			LOC112 = sonslen_226249(n);
			HEX3Atmp_308283 = (NI32)(LOC112 - 1);
			res_308286 = 0;
			{
				while (1) {
					tnode225816* a;
					if (!(res_308286 <= HEX3Atmp_308283)) goto LA114;
					i_307592 = res_308286;
					a = getconstexpr_304004(m, (*n).kindU.S6.Sons->data[i_307592]);
					{
						if (!(a == NIM_NIL)) goto LA117;
						result = NIM_NIL;
						goto BeforeRet;
					}
					LA117: ;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.Sons->data[i_307592]), a);
					res_308286 += 1;
				} LA114: ;
			}
		}
		(*result).Flags |= ((NI16)1)<<((((NU8) 4))%(sizeof(NI16)*8));
	}
	break;
	case ((NU8) 44):
	{
		tnode225816* a;
		tnode225816* b;
		a = getconstexpr_304004(m, (*n).kindU.S6.Sons->data[0]);
		{
			if (!(a == NIM_NIL)) goto LA122;
			goto BeforeRet;
		}
		LA122: ;
		b = getconstexpr_304004(m, (*n).kindU.S6.Sons->data[1]);
		{
			if (!(b == NIM_NIL)) goto LA126;
			goto BeforeRet;
		}
		LA126: ;
		result = copynode_226323(n);
		addson_226287(result, a);
		addson_226287(result, b);
	}
	break;
	case ((NU8) 39):
	{
		result = copytree_226329(n);
		{
			NI i_307731;
			NI HEX3Atmp_308289;
			NI LOC130;
			NI res_308292;
			i_307731 = 0;
			HEX3Atmp_308289 = 0;
			LOC130 = 0;
			LOC130 = sonslen_226249(n);
			HEX3Atmp_308289 = (NI32)(LOC130 - 1);
			res_308292 = 0;
			{
				while (1) {
					tnode225816* a;
					if (!(res_308292 <= HEX3Atmp_308289)) goto LA132;
					i_307731 = res_308292;
					a = getconstexpr_304004(m, (*n).kindU.S6.Sons->data[i_307731]);
					{
						if (!(a == NIM_NIL)) goto LA135;
						result = NIM_NIL;
						goto BeforeRet;
					}
					LA135: ;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.Sons->data[i_307731]), a);
					res_308292 += 1;
				} LA132: ;
			}
		}
		(*result).Flags |= ((NI16)1)<<((((NU8) 4))%(sizeof(NI16)*8));
	}
	break;
	case ((NU8) 38):
	{
		result = copytree_226329(n);
		{
			NI i_307806;
			NI HEX3Atmp_308295;
			NI LOC139;
			NI res_308298;
			i_307806 = 0;
			HEX3Atmp_308295 = 0;
			LOC139 = 0;
			LOC139 = sonslen_226249(n);
			HEX3Atmp_308295 = (NI32)(LOC139 - 1);
			res_308298 = 1;
			{
				while (1) {
					tnode225816* a;
					if (!(res_308298 <= HEX3Atmp_308295)) goto LA141;
					i_307806 = res_308298;
					a = getconstexpr_304004(m, (*(*n).kindU.S6.Sons->data[i_307806]).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_307806]).kindU.S6.Sons->data[1]), a);
					res_308298 += 1;
				} LA141: ;
			}
		}
		(*result).Flags |= ((NI16)1)<<((((NU8) 4))%(sizeof(NI16)*8));
	}
	break;
	case ((NU8) 37):
	{
		result = copytree_226329(n);
		{
			NIM_BOOL LOC149;
			NI LOC150;
			LOC149 = 0;
			LOC150 = 0;
			LOC150 = sonslen_226249(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_307933;
				NI HEX3Atmp_308301;
				NI LOC155;
				NI res_308304;
				i_307933 = 0;
				HEX3Atmp_308301 = 0;
				LOC155 = 0;
				LOC155 = sonslen_226249(n);
				HEX3Atmp_308301 = (NI32)(LOC155 - 1);
				res_308304 = 0;
				{
					while (1) {
						tnode225816* a;
						if (!(res_308304 <= HEX3Atmp_308301)) goto LA157;
						i_307933 = res_308304;
						a = getconstexpr_304004(m, (*(*n).kindU.S6.Sons->data[i_307933]).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_307933]).kindU.S6.Sons->data[1]), a);
						res_308304 += 1;
					} LA157: ;
				}
			}
		}
		goto LA147;
		LA152: ;
		{
			{
				NI i_308020;
				NI HEX3Atmp_308307;
				NI LOC164;
				NI res_308310;
				i_308020 = 0;
				HEX3Atmp_308307 = 0;
				LOC164 = 0;
				LOC164 = sonslen_226249(n);
				HEX3Atmp_308307 = (NI32)(LOC164 - 1);
				res_308310 = 0;
				{
					while (1) {
						tnode225816* a;
						if (!(res_308310 <= HEX3Atmp_308307)) goto LA166;
						i_308020 = res_308310;
						a = getconstexpr_304004(m, (*n).kindU.S6.Sons->data[i_308020]);
						{
							if (!(a == NIM_NIL)) goto LA169;
							result = NIM_NIL;
							goto BeforeRet;
						}
						LA169: ;
						asgnRefNoCycle((void**) (&(*result).kindU.S6.Sons->data[i_308020]), a);
						res_308310 += 1;
					} LA166: ;
				}
			}
		}
		LA147: ;
		(*result).Flags |= ((NI16)1)<<((((NU8) 4))%(sizeof(NI16)*8));
	}
	break;
	case ((NU8) 68):
	case ((NU8) 69):
	case ((NU8) 70):
	{
		tnode225816* a;
		a = getconstexpr_304004(m, (*n).kindU.S6.Sons->data[0]);
		{
			if (!(a == NIM_NIL)) goto LA174;
			goto BeforeRet;
		}
		LA174: ;
		{
			NIM_BOOL LOC178;
			LOC178 = 0;
			LOC178 = levalueconv_304021((*n).kindU.S6.Sons->data[1], a);
			if (!(LOC178)) goto LA179;
			LOC178 = levalueconv_304021(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;
			TY169969 LOC184;
			NimStringDesc* LOC185;
			LOC183 = 0;
			LOC183 = msgkindtostring_197378(((NU16) 142));
			memset((void*)LOC184, 0, sizeof(LOC184));
			LOC184[0] = typetostring_263031((*(*n).kindU.S6.Sons->data[0]).Typ, ((NU8) 0));
			LOC184[1] = typetostring_263031((*n).Typ, ((NU8) 0));
			LOC185 = 0;
			LOC185 = nsuFormatOpenArray(LOC183, LOC184, 2);
			localerror_197955((*n).Info, ((NU16) 4), LOC185);
		}
		LA176: ;
	}
	break;
	case ((NU8) 71):
	case ((NU8) 72):
	{
		tnode225816* a;
		a = getconstexpr_304004(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):
	{
		tnode225816* a;
		a = getconstexpr_304004(m, (*n).kindU.S6.Sons->data[1]);
		{
			if (!(a == NIM_NIL)) goto LA194;
			goto BeforeRet;
		}
		LA194: ;
		result = foldconv_306512(n, a, ((*n).Kind == ((NU8) 58)));
	}
	break;
	case ((NU8) 61):
	{
		tnode225816* a;
		a = getconstexpr_304004(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_306576(m, n);
	}
	break;
	case ((NU8) 45):
	{
		result = foldfieldaccess_306780(m, n);
	}
	break;
	default:
	{
	}
	break;
	}
	BeforeRet: ;
	return result;
}

static N_INLINE(NIM_BOOL, isintrange_304250)(ttype225852* 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(ttype225852*, makerange_304408)(ttype225852* typ, NI64 first, NI64 last) {
	ttype225852* result;
	NI64 mina;
	NI64 maxa;
	tnode225816* lowernode;
	result = 0;
	mina = ((first <= last) ? first : last);
	maxa = ((first >= last) ? first : last);
	lowernode = newintnode_226096(((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_282477(lowernode);
	}
	goto LA1;
	LA5: ;
	{
		tnode225816* n;
		tnode225816* LOC8;
		ttype225852* LOC9;
		n = newnode_226090(((NU8) 44));
		addson_226287(n, lowernode);
		LOC8 = 0;
		LOC8 = newintnode_226096(((NU8) 6), maxa);
		addson_226287(n, LOC8);
		result = newtype_226083(((NU8) 20), (*typ).Owner);
		asgnRefNoCycle((void**) (&(*result).N), n);
		LOC9 = 0;
		LOC9 = skiptypes_230245(typ, 1048576);
		addsonskipintlit_282572(result, LOC9);
	}
	LA1: ;
	return result;
}

static N_INLINE(NIM_BOOL, isfloatrange_304217)(ttype225852* 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(ttype225852*, makerangef_304440)(ttype225852* typ, NF first, NF last) {
	ttype225852* result;
	tnode225816* n;
	tnode225816* LOC1;
	tnode225816* LOC2;
	ttype225852* LOC3;
	result = 0;
	n = newnode_226090(((NU8) 44));
	LOC1 = 0;
	LOC1 = newfloatnode_226111(((NU8) 16), ((first <= last) ? first : last));
	addson_226287(n, LOC1);
	LOC2 = 0;
	LOC2 = newfloatnode_226111(((NU8) 16), ((first >= last) ? first : last));
	addson_226287(n, LOC2);
	result = newtype_226083(((NU8) 20), (*typ).Owner);
	asgnRefNoCycle((void**) (&(*result).N), n);
	LOC3 = 0;
	LOC3 = skiptypes_230245(typ, 1048576);
	addsonskipintlit_282572(result, LOC3);
	return result;
}

static N_INLINE(NIM_BOOL, isintlit_263386)(ttype225852* 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_304304)(tnode225816* 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_263386((*n).Typ);
		if (!LOC6) goto LA7;
		result = (*(*(*n).Typ).N).kindU.S1.Intval;
	}
	goto LA1;
	LA7: ;
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = isintrange_304250((*n).Typ);
		if (!LOC10) goto LA11;
		result = firstord_263004((*n).Typ);
	}
	goto LA1;
	LA11: ;
	{
		internalerror_197987((*n).Info, ((NimStringDesc*) &TMP3121));
	}
	LA1: ;
	return result;
}

N_NIMCALL(NI64, pickmaxint_304356)(tnode225816* 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_263386((*n).Typ);
		if (!LOC6) goto LA7;
		result = (*(*(*n).Typ).N).kindU.S1.Intval;
	}
	goto LA1;
	LA7: ;
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = isintrange_304250((*n).Typ);
		if (!LOC10) goto LA11;
		result = lastord_263010((*n).Typ);
	}
	goto LA1;
	LA11: ;
	{
		internalerror_197987((*n).Info, ((NimStringDesc*) &TMP3122));
	}
	LA1: ;
	return result;
}

N_NIMCALL(NIM_BOOL, isintrangeorlit_304294)(ttype225852* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = isintrange_304250(t);
	if (LOC1) goto LA2;
	LOC1 = isintlit_263386(t);
	LA2: ;
	result = LOC1;
	return result;
}

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

N_NIMCALL(ttype225852*, getintervaltype_304464)(NU16 m, tnode225816* n) {
	ttype225852* result;
	result = 0;
	result = (*n).Typ;
	switch (m) {
	case ((NU16) 101):
	case ((NU16) 102):
	{
		ttype225852* a;
		a = (*(*n).kindU.S6.Sons->data[1]).Typ;
		{
			NIM_BOOL LOC4;
			NI64 LOC7;
			NI64 LOC8;
			NI64 LOC9;
			NI64 LOC10;
			LOC4 = 0;
			LOC4 = isintrange_304250(a);
			if (!LOC4) goto LA5;
			LOC7 = 0;
			LOC7 = lastord_263010(a);
			LOC8 = 0;
			LOC8 = HEX7CHEX2DHEX7C_303034(IL64(0), LOC7);
			LOC9 = 0;
			LOC9 = firstord_263004(a);
			LOC10 = 0;
			LOC10 = HEX7CHEX2DHEX7C_303034(IL64(0), LOC9);
			result = makerange_304408(a, LOC8, LOC10);
		}
		LA5: ;
	}
	break;
	case ((NU16) 111):
	{
		ttype225852* a;
		a = (*(*n).kindU.S6.Sons->data[1]).Typ;
		{
			NIM_BOOL LOC14;
			NF LOC17;
			NF LOC18;
			LOC14 = 0;
			LOC14 = isfloatrange_304217(a);
			if (!LOC14) goto LA15;
			LOC17 = 0;
			LOC17 = getfloat_232562((*(*a).N).kindU.S6.Sons->data[1]);
			LOC18 = 0;
			LOC18 = getfloat_232562((*(*a).N).kindU.S6.Sons->data[0]);
			result = makerangef_304440(a, -(LOC17), -(LOC18));
		}
		LA15: ;
	}
	break;
	case ((NU16) 112):
	{
		ttype225852* a;
		a = (*(*n).kindU.S6.Sons->data[1]).Typ;
		{
			NIM_BOOL LOC22;
			NF LOC25;
			NF LOC26;
			LOC22 = 0;
			LOC22 = isfloatrange_304217(a);
			if (!LOC22) goto LA23;
			LOC25 = 0;
			LOC25 = getfloat_232562((*(*a).N).kindU.S6.Sons->data[1]);
			LOC26 = 0;
			LOC26 = getfloat_232562((*(*a).N).kindU.S6.Sons->data[0]);
			result = makerangef_304440(a, (LOC25 > 0? (LOC25) : -(LOC25)), (LOC26 > 0? (LOC26) : -(LOC26)));
		}
		LA23: ;
	}
	break;
	case ((NU16) 103):
	case ((NU16) 104):
	{
		ttype225852* a;
		a = (*(*n).kindU.S6.Sons->data[1]).Typ;
		{
			NIM_BOOL LOC30;
			NI64 LOC33;
			NI64 LOC34;
			NI64 LOC35;
			NI64 LOC36;
			LOC30 = 0;
			LOC30 = isintrange_304250(a);
			if (!LOC30) goto LA31;
			LOC33 = 0;
			LOC33 = getint_232538((*(*a).N).kindU.S6.Sons->data[1]);
			LOC34 = 0;
			LOC34 = HEX7CabsHEX7C_303046(LOC33);
			LOC35 = 0;
			LOC35 = getint_232538((*(*a).N).kindU.S6.Sons->data[0]);
			LOC36 = 0;
			LOC36 = HEX7CabsHEX7C_303046(LOC35);
			result = makerange_304408(a, LOC34, LOC36);
		}
		LA31: ;
	}
	break;
	case ((NU16) 19):
	{
		ttype225852* a;
		ttype225852* 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_304250(a);
			if (!(LOC40)) goto LA41;
			LOC40 = isintlit_263386(b);
			LA41: ;
			if (!LOC40) goto LA42;
			LOC44 = 0;
			LOC44 = pickminint_304304((*n).kindU.S6.Sons->data[1]);
			LOC45 = 0;
			LOC45 = pickminint_304304((*n).kindU.S6.Sons->data[2]);
			LOC46 = 0;
			LOC46 = HEX7CHEX2BHEX7C_303019(LOC44, LOC45);
			LOC47 = 0;
			LOC47 = pickmaxint_304356((*n).kindU.S6.Sons->data[1]);
			LOC48 = 0;
			LOC48 = pickmaxint_304356((*n).kindU.S6.Sons->data[2]);
			LOC49 = 0;
			LOC49 = HEX7CHEX2BHEX7C_303019(LOC47, LOC48);
			result = makerange_304408(a, LOC46, LOC49);
		}
		LA42: ;
	}
	break;
	case ((NU16) 20):
	{
		ttype225852* a;
		ttype225852* 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_304250(a);
			if (!(LOC53)) goto LA54;
			LOC53 = isintlit_263386(b);
			LA54: ;
			if (!LOC53) goto LA55;
			LOC57 = 0;
			LOC57 = pickminint_304304((*n).kindU.S6.Sons->data[1]);
			LOC58 = 0;
			LOC58 = pickminint_304304((*n).kindU.S6.Sons->data[2]);
			LOC59 = 0;
			LOC59 = HEX7CHEX2DHEX7C_303034(LOC57, LOC58);
			LOC60 = 0;
			LOC60 = pickmaxint_304356((*n).kindU.S6.Sons->data[1]);
			LOC61 = 0;
			LOC61 = pickmaxint_304356((*n).kindU.S6.Sons->data[2]);
			LOC62 = 0;
			LOC62 = HEX7CHEX2DHEX7C_303034(LOC60, LOC61);
			result = makerange_304408(a, LOC59, LOC62);
		}
		LA55: ;
	}
	break;
	case ((NU16) 37):
	case ((NU16) 42):
	case ((NU16) 67):
	{
		tnode225816* a_304801;
		tnode225816* b_304803;
		a_304801 = (*n).kindU.S6.Sons->data[1];
		b_304803 = (*n).kindU.S6.Sons->data[2];
		{
			NIM_BOOL LOC66;
			ttype225852* LOC70;
			NI64 LOC71;
			NI64 LOC72;
			NI64 LOC73;
			NI64 LOC74;
			NI64 LOC75;
			NI64 LOC76;
			LOC66 = 0;
			LOC66 = isintrangeorlit_304294((*a_304801).Typ);
			if (!(LOC66)) goto LA67;
			LOC66 = isintrangeorlit_304294((*b_304803).Typ);
			LA67: ;
			if (!LOC66) goto LA68;
			LOC70 = 0;
			LOC70 = pickintrange_304283((*a_304801).Typ, (*b_304803).Typ);
			LOC71 = 0;
			LOC71 = pickminint_304304(a_304801);
			LOC72 = 0;
			LOC72 = pickminint_304304(b_304803);
			LOC73 = 0;
			LOC73 = HEX7CHEX2BHEX7C_303019(LOC71, LOC72);
			LOC74 = 0;
			LOC74 = pickmaxint_304356(a_304801);
			LOC75 = 0;
			LOC75 = pickmaxint_304356(b_304803);
			LOC76 = 0;
			LOC76 = HEX7CHEX2BHEX7C_303019(LOC74, LOC75);
			result = makerange_304408(LOC70, LOC73, LOC76);
		}
		LA68: ;
	}
	break;
	case ((NU16) 39):
	case ((NU16) 44):
	case ((NU16) 69):
	{
		tnode225816* a_304833;
		tnode225816* b_304835;
		a_304833 = (*n).kindU.S6.Sons->data[1];
		b_304835 = (*n).kindU.S6.Sons->data[2];
		{
			NIM_BOOL LOC80;
			ttype225852* LOC84;
			NI64 LOC85;
			NI64 LOC86;
			NI64 LOC87;
			NI64 LOC88;
			NI64 LOC89;
			NI64 LOC90;
			LOC80 = 0;
			LOC80 = isintrangeorlit_304294((*a_304833).Typ);
			if (!(LOC80)) goto LA81;
			LOC80 = isintrangeorlit_304294((*b_304835).Typ);
			LA81: ;
			if (!LOC80) goto LA82;
			LOC84 = 0;
			LOC84 = pickintrange_304283((*a_304833).Typ, (*b_304835).Typ);
			LOC85 = 0;
			LOC85 = pickminint_304304(a_304833);
			LOC86 = 0;
			LOC86 = pickminint_304304(b_304835);
			LOC87 = 0;
			LOC87 = HEX7CHEX2AHEX7C_303078(LOC85, LOC86);
			LOC88 = 0;
			LOC88 = pickmaxint_304356(a_304833);
			LOC89 = 0;
			LOC89 = pickmaxint_304356(b_304835);
			LOC90 = 0;
			LOC90 = HEX7CHEX2AHEX7C_303078(LOC88, LOC89);
			result = makerange_304408(LOC84, LOC87, LOC90);
		}
		LA82: ;
	}
	break;
	case ((NU16) 38):
	case ((NU16) 43):
	case ((NU16) 68):
	{
		tnode225816* a_304865;
		tnode225816* b_304867;
		a_304865 = (*n).kindU.S6.Sons->data[1];
		b_304867 = (*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_304250((*a_304865).Typ);
			if (!(LOC94)) goto LA95;
			LOC94 = ((*b_304867).Kind >= ((NU8) 6) && (*b_304867).Kind <= ((NU8) 15));
			LA95: ;
			if (!LOC94) goto LA96;
			LOC98 = 0;
			LOC98 = pickminint_304304(a_304865);
			LOC99 = 0;
			LOC99 = pickminint_304304(b_304867);
			LOC100 = 0;
			LOC100 = HEX7CHEX2DHEX7C_303034(LOC98, LOC99);
			LOC101 = 0;
			LOC101 = pickmaxint_304356(a_304865);
			LOC102 = 0;
			LOC102 = pickmaxint_304356(b_304867);
			LOC103 = 0;
			LOC103 = HEX7CHEX2DHEX7C_303034(LOC101, LOC102);
			result = makerange_304408((*a_304865).Typ, LOC100, LOC103);
		}
		LA96: ;
	}
	break;
	case ((NU16) 53):
	case ((NU16) 60):
	{
		tnode225816* a;
		tnode225816* b;
		a = (*n).kindU.S6.Sons->data[1];
		b = (*n).kindU.S6.Sons->data[2];
		{
			tnode225816* 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_303019((*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_304408((*a).Typ, IL64(0), (*b).kindU.S1.Intval);
			}
			LA118: ;
		}
		LA112: ;
	}
	break;
	case ((NU16) 71):
	{
		tnode225816* a;
		tnode225816* 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_304408((*a).Typ, IL64(0), (NI64)((*b).kindU.S1.Intval - IL64(1)));
			}
			goto LA125;
			LA127: ;
			{
				result = makerange_304408((*a).Typ, (NI64)((*b).kindU.S1.Intval + IL64(1)), IL64(0));
			}
			LA125: ;
		}
		LA123: ;
	}
	break;
	case ((NU16) 41):
	case ((NU16) 46):
	{
		tnode225816* a;
		tnode225816* 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_304408((*a).Typ, -((NI64)((*b).kindU.S1.Intval - IL64(1))), (NI64)((*b).kindU.S1.Intval - IL64(1)));
			}
			goto LA135;
			LA137: ;
			{
				result = makerange_304408((*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):
	{
		tnode225816* a_305213;
		tnode225816* b_305215;
		a_305213 = (*n).kindU.S6.Sons->data[1];
		b_305215 = (*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_304250((*a_305213).Typ);
			if (!(LOC143)) goto LA144;
			LOC143 = ((*b_305215).Kind >= ((NU8) 6) && (*b_305215).Kind <= ((NU8) 15));
			LA144: ;
			if (!LOC143) goto LA145;
			LOC147 = 0;
			LOC147 = pickminint_304304(a_305213);
			LOC148 = 0;
			LOC148 = pickminint_304304(b_305215);
			LOC149 = 0;
			LOC149 = HEX7CdivHEX7C_303056(LOC147, LOC148);
			LOC150 = 0;
			LOC150 = pickmaxint_304356(a_305213);
			LOC151 = 0;
			LOC151 = pickmaxint_304356(b_305215);
			LOC152 = 0;
			LOC152 = HEX7CdivHEX7C_303056(LOC150, LOC151);
			result = makerange_304408((*a_305213).Typ, LOC149, LOC152);
		}
		LA145: ;
	}
	break;
	case ((NU16) 56):
	case ((NU16) 63):
	{
		tnode225816* a_305259;
		tnode225816* b_305261;
		a_305259 = (*n).kindU.S6.Sons->data[1];
		b_305261 = (*n).kindU.S6.Sons->data[2];
		{
			NIM_BOOL LOC156;
			ttype225852* LOC160;
			NI64 LOC161;
			NI64 LOC162;
			NI64 LOC163;
			NI64 LOC164;
			LOC156 = 0;
			LOC156 = isintrangeorlit_304294((*a_305259).Typ);
			if (!(LOC156)) goto LA157;
			LOC156 = isintrangeorlit_304294((*b_305261).Typ);
			LA157: ;
			if (!LOC156) goto LA158;
			LOC160 = 0;
			LOC160 = pickintrange_304283((*a_305259).Typ, (*b_305261).Typ);
			LOC161 = 0;
			LOC161 = pickminint_304304(a_305259);
			LOC162 = 0;
			LOC162 = pickminint_304304(b_305261);
			LOC163 = 0;
			LOC163 = pickmaxint_304356(a_305259);
			LOC164 = 0;
			LOC164 = pickmaxint_304356(b_305261);
			result = makerange_304408(LOC160, ((LOC161 <= LOC162) ? LOC161 : LOC162), ((LOC163 <= LOC164) ? LOC163 : LOC164));
		}
		LA158: ;
	}
	break;
	case ((NU16) 57):
	case ((NU16) 64):
	{
		tnode225816* a_305297;
		tnode225816* b_305299;
		a_305297 = (*n).kindU.S6.Sons->data[1];
		b_305299 = (*n).kindU.S6.Sons->data[2];
		{
			NIM_BOOL LOC168;
			ttype225852* LOC172;
			NI64 LOC173;
			NI64 LOC174;
			NI64 LOC175;
			NI64 LOC176;
			LOC168 = 0;
			LOC168 = isintrangeorlit_304294((*a_305297).Typ);
			if (!(LOC168)) goto LA169;
			LOC168 = isintrangeorlit_304294((*b_305299).Typ);
			LA169: ;
			if (!LOC168) goto LA170;
			LOC172 = 0;
			LOC172 = pickintrange_304283((*a_305297).Typ, (*b_305299).Typ);
			LOC173 = 0;
			LOC173 = pickminint_304304(a_305297);
			LOC174 = 0;
			LOC174 = pickminint_304304(b_305299);
			LOC175 = 0;
			LOC175 = pickmaxint_304356(a_305297);
			LOC176 = 0;
			LOC176 = pickmaxint_304356(b_305299);
			result = makerange_304408(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) {
}

