/* Generated by Nim Compiler v0.12.0 */
/*   (c) 2015 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 Tnode224809 Tnode224809;
typedef struct Ttype224847 Ttype224847;
typedef struct Tlineinfo189352 Tlineinfo189352;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tsym224841 Tsym224841;
typedef struct Tident197021 Tident197021;
typedef struct Tnodeseq224803 Tnodeseq224803;
typedef struct Tidobj197015 Tidobj197015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Ttypeseq224843 Ttypeseq224843;
typedef struct Tscope224835 Tscope224835;
typedef struct TY224944 TY224944;
typedef struct Tstrtable224813 Tstrtable224813;
typedef struct Tsymseq224811 Tsymseq224811;
typedef struct Tloc224823 Tloc224823;
typedef struct Ropeobj175009 Ropeobj175009;
typedef struct Tlib224827 Tlib224827;
typedef struct Cell48946 Cell48946;
typedef struct Cellseq48962 Cellseq48962;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48958 Cellset48958;
typedef struct Pagedesc48954 Pagedesc48954;
typedef struct Memregion30890 Memregion30890;
typedef struct Smallchunk30842 Smallchunk30842;
typedef struct Llchunk30884 Llchunk30884;
typedef struct Bigchunk30844 Bigchunk30844;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30888 Avlnode30888;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Tinfocpu173483 Tinfocpu173483;
typedef struct Tinfoos173049 Tinfoos173049;
typedef struct Exception Exception;
typedef struct TSafePoint TSafePoint;
typedef struct TY90959 TY90959;
typedef struct Tinstantiation224831 Tinstantiation224831;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct TY224932 TY224932;
struct  Tlineinfo189352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tnode224809  {
Ttype224847* typ;
Tlineinfo189352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym224841* sym;
} S4;
struct {Tident197021* ident;
} S5;
struct {Tnodeseq224803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef N_NIMCALL_PTR(void, TY3889) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3894) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3889 marker;
TY3894 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj197015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable224813  {
NI counter;
Tsymseq224811* data;
};
struct  Tloc224823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype224847* t;
Ropeobj175009* r;
Ropeobj175009* heaproot;
};
struct  Tsym224841  {
  Tidobj197015 Sup;
NU8 kind;
union{
struct {Ttypeseq224843* typeinstcache;
Tscope224835* typscope;
} S1;
struct {TY224944* procinstcache;
Tsym224841* gcunsafetyreason;
} S2;
struct {TY224944* usedgenerics;
Tstrtable224813 tab;
} S3;
struct {Tsym224841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype224847* typ;
Tident197021* name;
Tlineinfo189352 info;
Tsym224841* owner;
NU32 flags;
Tnode224809* ast;
NU32 options;
NI position;
NI offset;
Tloc224823 loc;
Tlib224827* annex;
Tnode224809* constraint;
};
struct  Cell48946  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48962  {
NI len;
NI cap;
Cell48946** d;
};
struct  Cellset48958  {
NI counter;
NI max;
Pagedesc48954* head;
Pagedesc48954** data;
};
typedef Smallchunk30842* TY30905[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30890  {
NI minlargeobj;
NI maxlargeobj;
TY30905 freesmallchunks;
Llchunk30884* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30844* freechunkslist;
Intset30817 chunkstarts;
Avlnode30888* root;
Avlnode30888* deleted;
Avlnode30888* last;
Avlnode30888* freeavlnodes;
};
struct  Gcstat51014  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51018  {
Gcstack51016* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq48962 zct;
Cellseq48962 decstack;
Cellset48958 cycleroots;
Cellseq48962 tempstack;
NI recgclock;
Memregion30890 region;
Gcstat51014 stat;
};
struct  Ttype224847  {
  Tidobj197015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq224843* sons;
Tnode224809* n;
Tsym224841* owner;
Tsym224841* sym;
Tsym224841* destructor;
Tsym224841* deepcopy;
Tsym224841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc224823 loc;
};
struct Tinfocpu173483 {
NimStringDesc* Field0;
NI Field1;
NU8 Field2;
NI Field3;
NI Field4;
};
typedef Tinfocpu173483 TY173514[18];
struct Tinfoos173049 {
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 Tinfoos173049 TY173084[24];
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;
} TY19211;
struct  TSafePoint  {
TSafePoint* prev;
NI status;
jmp_buf context;
NIM_BOOL hasRaiseAction;
TY19211 raiseAction;
};
struct  Tident197021  {
  Tidobj197015 Sup;
NimStringDesc* s;
Tident197021* next;
NI h;
};
struct TY90959 {
NimStringDesc* Field0;
NI Field1;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
typedef NimStringDesc* TY192306[2];
struct  Tscope224835  {
NI depthlevel;
Tstrtable224813 symbols;
Tnodeseq224803* usingsyms;
Tscope224835* parent;
};
struct  Ropeobj175009  {
  TNimObject Sup;
Ropeobj175009* left;
Ropeobj175009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Tlib224827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj175009* name;
Tnode224809* path;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30821[16];
struct  Pagedesc48954  {
Pagedesc48954* next;
NI key;
TY30821 bits;
};
struct  Basechunk30840  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30842  {
  Basechunk30840 Sup;
Smallchunk30842* next;
Smallchunk30842* prev;
Freecell30832* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30884  {
NI size;
NI acc;
Llchunk30884* next;
};
struct  Bigchunk30844  {
  Basechunk30840 Sup;
Bigchunk30844* next;
Bigchunk30844* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30821 bits;
};
typedef Avlnode30888* TY30895[2];
struct  Avlnode30888  {
TY30895 link;
NI key;
NI upperbound;
NI level;
};
struct  Tinstantiation224831  {
Tsym224841* sym;
Ttypeseq224843* concretetypes;
TY224932* usedby;
NI compilesid;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct Tnodeseq224803 {
  TGenericSeq Sup;
  Tnode224809* data[SEQ_DECL_SIZE];
};
struct Ttypeseq224843 {
  TGenericSeq Sup;
  Ttype224847* data[SEQ_DECL_SIZE];
};
struct TY224944 {
  TGenericSeq Sup;
  Tinstantiation224831* data[SEQ_DECL_SIZE];
};
struct Tsymseq224811 {
  TGenericSeq Sup;
  Tsym224841* data[SEQ_DECL_SIZE];
};
struct TY224932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, internalerror_195172)(Tlineinfo189352 info, NimStringDesc* errmsg);
N_NIMCALL(Tnode224809*, newsymnode_226338)(Tsym224841* sym, Tlineinfo189352 info);
N_NIMCALL(Ttype224847*, newtype_227140)(NU8 kind, Tsym224841* owner);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell48946*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48946* c);
N_NOINLINE(void, addzct_52617)(Cellseq48962* s, Cell48946* c);
N_NIMCALL(void, addsonskipintlit_273729)(Ttype224847* father, Ttype224847* son);
N_NIMCALL(Ttype224847*, skiptypes_228167)(Ttype224847* t, NU64 kinds);
N_NIMCALL(Tnode224809*, newintnode_225608)(NU8 kind, NI64 intval);
N_NIMCALL(Ttype224847*, getintlittype_273660)(Tnode224809* literal);
N_NIMCALL(Tnode224809*, newstrnode_225644)(NU8 kind, NimStringDesc* strval);
N_NIMCALL(Tnode224809*, newintnodet_292028)(NI64 intval, Tnode224809* n);
N_NIMCALL(Tnode224809*, newstrnodet_292042)(NimStringDesc* strval, Tnode224809* n);
N_NIMCALL(NimStringDesc*, ntgetDateStr)(void);
N_NIMCALL(NimStringDesc*, ntgetClockStr)(void);
N_NIMCALL(NimStringDesc*, nsuToLowerStr)(NimStringDesc* s);
N_NIMCALL(Tnode224809*, getapptype_293226)(Tnode224809* n);
N_NIMCALL(Tnode224809*, newfloatnodet_292035)(NF floatval, Tnode224809* n);
N_NIMCALL(Tnode224809*, newfloatnode_225632)(NU8 kind, NF floatval);
N_NIMCALL(Ttype224847*, getfloatlittype_273686)(Tnode224809* literal);
N_NIMCALL(Tnode224809*, copytree_229028)(Tnode224809* src);
N_NIMCALL(Tnode224809*, newsymnodetypedesc_293736)(Tsym224841* s, Tlineinfo189352 info);
N_NIMCALL(Tnode224809*, copynode_228660)(Tnode224809* src);
N_NIMCALL(Tnode224809*, getconstifexpr_292945)(Tsym224841* c, Tnode224809* n);
N_NIMCALL(NI, sonslen_227387)(Tnode224809* n);
static N_INLINE(NI, len_225098)(Tnode224809* n);
N_NIMCALL(Tnode224809*, getconstexpr_292004)(Tsym224841* m, Tnode224809* n);
N_NIMCALL(NI64, getordvalue_254178)(Tnode224809* n);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
static N_INLINE(void, popSafePoint)(void);
N_NIMCALL(NI64, computesize_254184)(Ttype224847* typ);
N_NIMCALL(void, localerror_195128)(Tlineinfo189352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NI64, getsize_254190)(Ttype224847* typ);
N_NIMCALL(NI64, firstord_254004)(Ttype224847* t);
N_NIMCALL(NI64, lastord_254010)(Ttype224847* t);
static N_INLINE(Tnode224809*, HEX5BHEX5D_225244)(Tnode224809* n, NI i);
N_NIMCALL(Tnode224809*, getarrayconstr_293290)(Tsym224841* m, Tnode224809* n);
N_NIMCALL(Tnode224809*, magiccall_293167)(Tsym224841* m, Tnode224809* n);
N_NIMCALL(Tnode224809*, evalop_292011)(NU8 m, Tnode224809* n, Tnode224809* a, Tnode224809* b, Tnode224809* c);
N_NIMCALL(NI64, getint_229605)(Tnode224809* a);
N_NIMCALL(NF, getfloat_229616)(Tnode224809* a);
N_NIMCALL(NI64, cardset_275089)(Tnode224809* s);
N_NIMCALL(NimStringDesc*, getstr_229627)(Tnode224809* a);
N_NIMCALL(NI64, lengthord_254016)(Ttype224847* t);
N_NIMCALL(NI64, HEX7CHEX2DHEX7C_291030)(NI64 a, NI64 b);
N_NIMCALL(NI64, HEX7CHEX2BHEX7C_291019)(NI64 a, NI64 b);
N_NIMCALL(NI64, HEX7CHEX2AHEX7C_291073)(NI64 a, NI64 b);
N_NIMCALL(NI64, HEX7CdivHEX7C_291051)(NI64 a, NI64 b);
N_NIMCALL(NI64, HEX7CmodHEX7C_291062)(NI64 a, NI64 b);
static N_INLINE(NI, cmpStrings)(NimStringDesc* a, NimStringDesc* b);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NIM_BOOL, containssets_275075)(Tnode224809* a, Tnode224809* b);
N_NIMCALL(NIM_BOOL, equalsets_275082)(Tnode224809* a, Tnode224809* b);
N_NIMCALL(Tnode224809*, intersectsets_275061)(Tnode224809* a, Tnode224809* b);
N_NIMCALL(Tnode224809*, unionsets_275047)(Tnode224809* a, Tnode224809* b);
N_NIMCALL(Tnode224809*, diffsets_275054)(Tnode224809* a, Tnode224809* b);
N_NIMCALL(Tnode224809*, symdiffsets_275068)(Tnode224809* a, Tnode224809* b);
N_NIMCALL(NimStringDesc*, getstrorchar_229638)(Tnode224809* a);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(NIM_BOOL, inset_275019)(Tnode224809* s, Tnode224809* 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_81016, NI last);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI first, NI last);
N_NIMCALL(NimStringDesc*, nimFloatToStr)(NF f);
N_NIMCALL(NimStringDesc*, ordinalvaltostring_292091)(Tnode224809* a);
N_NIMCALL(NimStringDesc*, nimCharToStr)(NIM_CHAR x);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(NIM_BOOL, testcompileoption_210705)(NimStringDesc* switch_210707, Tlineinfo189352 info);
N_NIMCALL(NIM_BOOL, testcompileoptionarg_210583)(NimStringDesc* switch_210585, NimStringDesc* arg, Tlineinfo189352 info);
N_NIMCALL(NIM_BOOL, exprstructuralequivalent_253149)(Tnode224809* a, Tnode224809* b, NIM_BOOL strictsymequality);
N_NIMCALL(NimStringDesc*, rendertree_246059)(Tnode224809* n, NU8 renderflags);
N_NIMCALL(Tnode224809*, foldconstrstr_293679)(Tsym224841* m, Tnode224809* n);
N_NIMCALL(Tnode224809*, newnodeit_226807)(NU8 kind, Tlineinfo189352 info, Ttype224847* typ);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(Tnode224809*, evalis_292581)(Tnode224809* n, Tnode224809* a);
N_NIMCALL(void, internalerror_195191)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_195279)(TY90959 x);
N_NIMCALL(NimStringDesc*, nsuNormalize)(NimStringDesc* s);
N_NIMCALL(NIM_BOOL, sametype_259092)(Ttype224847* a, Ttype224847* 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_55022)(Cell48946* c);
static N_INLINE(NIM_BOOL, canbecycleroot_52667)(Cell48946* c);
static N_INLINE(void, rtladdcycleroot_53423)(Cell48946* c);
N_NOINLINE(void, incl_49665)(Cellset48958* s, Cell48946* cell);
static N_INLINE(void, decref_54604)(Cell48946* c);
N_NIMCALL(void, reraiseException)(void);
N_NIMCALL(void, addson_226819)(Tnode224809* father, Tnode224809* son);
N_NIMCALL(NIM_BOOL, levalueconv_292021)(Tnode224809* a, Tnode224809* b);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(NimStringDesc*, msgkindtostring_191406)(NU16 kind);
N_NIMCALL(NimStringDesc*, typetostring_254032)(Ttype224847* typ, NU8 prefer);
N_NIMCALL(Tnode224809*, foldconv_293276)(Tnode224809* n, Tnode224809* a, NIM_BOOL check);
N_NIMCALL(void, rangecheck_293266)(Tnode224809* n, NI64 value);
N_NIMCALL(Tnode224809*, foldarrayaccess_293322)(Tsym224841* m, Tnode224809* n);
N_NIMCALL(Tnode224809*, foldfieldaccess_293397)(Tsym224841* m, Tnode224809* n);
static N_INLINE(NIM_BOOL, isintrange_292196)(Ttype224847* t);
N_NIMCALL(Ttype224847*, makerange_292293)(Ttype224847* typ, NI64 first, NI64 last);
N_NIMCALL(Tnode224809*, newnode_225401)(NU8 kind);
static N_INLINE(NIM_BOOL, isfloatrange_292166)(Ttype224847* t);
N_NIMCALL(Ttype224847*, makerangef_292338)(Ttype224847* typ, NF first, NF last);
N_NIMCALL(NI64, HEX7CabsHEX7C_291041)(NI64 a);
static N_INLINE(NIM_BOOL, isintlit_254327)(Ttype224847* t);
N_NIMCALL(NI64, pickminint_292247)(Tnode224809* n);
N_NIMCALL(NI64, pickmaxint_292270)(Tnode224809* n);
N_NIMCALL(NIM_BOOL, isintrangeorlit_292237)(Ttype224847* t);
N_NIMCALL(Ttype224847*, pickintrange_292226)(Ttype224847* a, Ttype224847* b);
STRING_LITERAL(TMP2928, "leValueConv", 11);
extern NIM_CONST TY173514 Cpu_173500;
extern NIM_CONST TY173084 Os_173070;
STRING_LITERAL(TMP3366, "lib", 3);
STRING_LITERAL(TMP3367, "staticlib", 9);
STRING_LITERAL(TMP3368, "gui", 3);
STRING_LITERAL(TMP3369, "console", 7);
STRING_LITERAL(TMP3370, "getConstIfExpr()", 16);
STRING_LITERAL(TMP3372, "sizeof", 6);
STRING_LITERAL(TMP3376, "constant folding for shl", 24);
STRING_LITERAL(TMP3377, "constant folding for shr", 24);
STRING_LITERAL(TMP3379, "false", 5);
STRING_LITERAL(TMP3380, "true", 4);
STRING_LITERAL(TMP3381, "ordinalValToString", 18);
STRING_LITERAL(TMP3382, "no symbol for ordinal value: ", 29);
STRING_LITERAL(TMP3383, "", 0);
STRING_LITERAL(TMP3385, "compiler/semfold.nim", 20);
NIM_CONST TY90959 TMP3384 = {((NimStringDesc*) &TMP3385),
((NI) 252)}
;
NIM_CONST TY90959 TMP3386 = {((NimStringDesc*) &TMP3385),
((NI) 253)}
;
STRING_LITERAL(TMP3387, "closure", 7);
STRING_LITERAL(TMP3388, "iterator", 8);
STRING_LITERAL(TMP3389, "cannot convert ", 15);
STRING_LITERAL(TMP3390, " to ", 4);
STRING_LITERAL(TMP3391, "pickMinInt", 10);
STRING_LITERAL(TMP3392, "pickMaxInt", 10);
extern Gcheap51018 gch_51059;
extern NU8 targetcpu_173628;
extern NU8 targetos_173630;
extern NU32 gglobaloptions_166132;
extern TSafePoint* exchandler_20843;
extern TNimType NTI4043; /* OverflowError */
extern Exception* currexception_20845;
extern TNimType NTI4041; /* DivByZeroError */

N_NIMCALL(NIM_BOOL, levalueconv_292021)(Tnode224809* a, Tnode224809* 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_195172((*a).info, ((NimStringDesc*) &TMP2928));
		}
		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_195172((*a).info, ((NimStringDesc*) &TMP2928));
		}
		break;
		}
	}
	break;
	default:
	{
		internalerror_195172((*a).info, ((NimStringDesc*) &TMP2928));
	}
	break;
	}
	return result;
}

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

static N_INLINE(void, rtladdzct_54204)(Cell48946* c) {
	addzct_52617((&gch_51059.zct), c);
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell48946* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_52646(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell48946* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_52646((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA11;
			rtladdzct_54204(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(Tnode224809*, newsymnodetypedesc_293736)(Tsym224841* s, Tlineinfo189352 info) {
	Tnode224809* result;
	result = 0;
	result = newsymnode_226338(s, info);
	asgnRefNoCycle((void**) (&(*result).typ), newtype_227140(((NU8) 8), (*s).owner));
	addsonskipintlit_273729((*result).typ, (*s).typ);
	return result;
}

N_NIMCALL(Tnode224809*, newintnodet_292028)(NI64 intval, Tnode224809* n) {
	Tnode224809* result;
	Ttype224847* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = skiptypes_228167((*n).typ, IL64(211106242013440));
	switch ((*LOC1).kind) {
	case ((NU8) 31):
	{
		result = newintnode_225608(((NU8) 6), intval);
		asgnRefNoCycle((void**) (&(*result).typ), getintlittype_273660(result));
	}
	break;
	case ((NU8) 2):
	{
		result = newintnode_225608(((NU8) 5), intval);
		asgnRefNoCycle((void**) (&(*result).typ), (*n).typ);
	}
	break;
	default:
	{
		result = newintnode_225608(((NU8) 6), intval);
		asgnRefNoCycle((void**) (&(*result).typ), (*n).typ);
	}
	break;
	}
	(*result).info = (*n).info;
	return result;
}

N_NIMCALL(Tnode224809*, newstrnodet_292042)(NimStringDesc* strval, Tnode224809* n) {
	Tnode224809* result;
	result = 0;
	result = newstrnode_225644(((NU8) 20), strval);
	asgnRefNoCycle((void**) (&(*result).typ), (*n).typ);
	(*result).info = (*n).info;
	return result;
}

N_NIMCALL(Tnode224809*, getapptype_293226)(Tnode224809* n) {
	Tnode224809* result;
	result = 0;
	{
		if (!((gglobaloptions_166132 &(1<<((((NU8) 8))&31)))!=0)) goto LA3;
		result = newstrnodet_292042(((NimStringDesc*) &TMP3366), n);
	}
	goto LA1;
	LA3: ;
	{
		if (!((gglobaloptions_166132 &(1<<((((NU8) 9))&31)))!=0)) goto LA6;
		result = newstrnodet_292042(((NimStringDesc*) &TMP3367), n);
	}
	goto LA1;
	LA6: ;
	{
		if (!((gglobaloptions_166132 &(1<<((((NU8) 10))&31)))!=0)) goto LA9;
		result = newstrnodet_292042(((NimStringDesc*) &TMP3368), n);
	}
	goto LA1;
	LA9: ;
	{
		result = newstrnodet_292042(((NimStringDesc*) &TMP3369), n);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode224809*, newfloatnodet_292035)(NF floatval, Tnode224809* n) {
	Tnode224809* result;
	result = 0;
	result = newfloatnode_225632(((NU8) 16), floatval);
	{
		Ttype224847* LOC3;
		LOC3 = 0;
		LOC3 = skiptypes_228167((*n).typ, IL64(211106242013440));
		if (!((*LOC3).kind == ((NU8) 36))) goto LA4;
		asgnRefNoCycle((void**) (&(*result).typ), getfloatlittype_273686(result));
	}
	goto LA1;
	LA4: ;
	{
		asgnRefNoCycle((void**) (&(*result).typ), (*n).typ);
	}
	LA1: ;
	(*result).info = (*n).info;
	return result;
}

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

N_NIMCALL(Tnode224809*, getconstifexpr_292945)(Tsym224841* c, Tnode224809* n) {
	Tnode224809* result;
{	result = 0;
	result = NIM_NIL;
	{
		NI i_292962;
		NI HEX3Atmp_293020;
		NI LOC2;
		NI res_293023;
		i_292962 = 0;
		HEX3Atmp_293020 = 0;
		LOC2 = 0;
		LOC2 = sonslen_227387(n);
		HEX3Atmp_293020 = (NI)(LOC2 - ((NI) 1));
		res_293023 = ((NI) 0);
		{
			while (1) {
				Tnode224809* it;
				if (!(res_293023 <= HEX3Atmp_293020)) goto LA4;
				i_292962 = res_293023;
				it = (*n).kindU.S6.sons->data[i_292962];
				{
					NI LOC7;
					Tnode224809* e;
					LOC7 = 0;
					LOC7 = len_225098(it);
					if (!(LOC7 == ((NI) 2))) goto LA8;
					e = getconstexpr_292004(c, (*it).kindU.S6.sons->data[((NI) 0)]);
					{
						if (!(e == NIM_NIL)) goto LA12;
						result = NIM_NIL;
						goto BeforeRet;
					}
					LA12: ;
					{
						NI64 LOC16;
						LOC16 = 0;
						LOC16 = getordvalue_254178(e);
						if (!!((LOC16 == IL64(0)))) goto LA17;
						{
							if (!(result == NIM_NIL)) goto LA21;
							result = getconstexpr_292004(c, (*it).kindU.S6.sons->data[((NI) 1)]);
							{
								if (!(result == NIM_NIL)) goto LA25;
								goto BeforeRet;
							}
							LA25: ;
						}
						LA21: ;
					}
					LA17: ;
				}
				goto LA5;
				LA8: ;
				{
					NI LOC28;
					LOC28 = 0;
					LOC28 = len_225098(it);
					if (!(LOC28 == ((NI) 1))) goto LA29;
					{
						if (!(result == NIM_NIL)) goto LA33;
						result = getconstexpr_292004(c, (*it).kindU.S6.sons->data[((NI) 0)]);
					}
					LA33: ;
				}
				goto LA5;
				LA29: ;
				{
					internalerror_195172((*it).info, ((NimStringDesc*) &TMP3370));
				}
				LA5: ;
				res_293023 += ((NI) 1);
			} LA4: ;
		}
	}
	}BeforeRet: ;
	return result;
}

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

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

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

N_NIMCALL(Tnode224809*, getarrayconstr_293290)(Tsym224841* m, Tnode224809* n) {
	Tnode224809* result;
	result = 0;
	{
		if (!((*n).kind == ((NU8) 41))) goto LA3;
		result = n;
	}
	goto LA1;
	LA3: ;
	{
		result = getconstexpr_292004(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 = ((NI) 0);
		goto BeforeRet;
	}
	LA3: ;
	{
		if (!(a == NIM_NIL)) goto LA7;
		result = ((NI) -1);
		goto BeforeRet;
	}
	LA7: ;
	{
		if (!(b == NIM_NIL)) goto LA11;
		result = ((NI) 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)), (*a).Sup.len);
	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)), (NI)((*src).Sup.len + ((NI) 1)));
	(*dest).Sup.len += (*src).Sup.len;
}

N_NIMCALL(NimStringDesc*, ordinalvaltostring_292091)(Tnode224809* a) {
	NimStringDesc* result;
	NI64 x;
	Ttype224847* t;
{	result = 0;
	x = getint_229605(a);
	t = skiptypes_228167((*a).typ, IL64(211106233624832));
	switch ((*t).kind) {
	case ((NU8) 2):
	{
		result = nimCharToStr(((NIM_CHAR) ((NI)(((NI) (x)) & ((NI) 255)))));
	}
	break;
	case ((NU8) 14):
	{
		Tnode224809* n;
		NimStringDesc* LOC20;
		NimStringDesc* LOC21;
		n = (*t).n;
		{
			NI i_292112;
			NI HEX3Atmp_292144;
			NI LOC4;
			NI res_292147;
			i_292112 = 0;
			HEX3Atmp_292144 = 0;
			LOC4 = 0;
			LOC4 = sonslen_227387(n);
			HEX3Atmp_292144 = (NI)(LOC4 - ((NI) 1));
			res_292147 = ((NI) 0);
			{
				while (1) {
					Tsym224841* field;
					if (!(res_292147 <= HEX3Atmp_292144)) goto LA6;
					i_292112 = res_292147;
					{
						if (!!(((*(*n).kindU.S6.sons->data[i_292112]).kind == ((NU8) 3)))) goto LA9;
						internalerror_195172((*a).info, ((NimStringDesc*) &TMP3381));
					}
					LA9: ;
					field = (*(*n).kindU.S6.sons->data[i_292112]).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_292147 += ((NI) 1);
				} LA6: ;
			}
		}
		LOC20 = 0;
		LOC21 = 0;
		LOC21 = nimInt64ToStr(x);
		LOC20 = rawNewString(LOC21->Sup.len + 29);
appendString(LOC20, ((NimStringDesc*) &TMP3382));
appendString(LOC20, LOC21);
		internalerror_195172((*a).info, LOC20);
	}
	break;
	default:
	{
		result = nimInt64ToStr(x);
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode224809*, evalop_292011)(NU8 m, Tnode224809* n, Tnode224809* a, Tnode224809* b, Tnode224809* c) {
	Tnode224809* result;
	result = 0;
	result = NIM_NIL;
	switch (m) {
	case ((NU8) 28):
	{
		NI64 LOC2;
		LOC2 = 0;
		LOC2 = getordvalue_254178(a);
		result = newintnodet_292028(LOC2, n);
	}
	break;
	case ((NU8) 41):
	{
		NI64 LOC4;
		LOC4 = 0;
		LOC4 = getint_229605(a);
		result = newintnodet_292028(LOC4, n);
	}
	break;
	case ((NU8) 95):
	case ((NU8) 96):
	{
		NI64 LOC6;
		LOC6 = 0;
		LOC6 = getint_229605(a);
		result = newintnodet_292028(-(LOC6), n);
	}
	break;
	case ((NU8) 102):
	{
		NF LOC8;
		LOC8 = 0;
		LOC8 = getfloat_229616(a);
		result = newfloatnodet_292035(-(LOC8), n);
	}
	break;
	case ((NU8) 98):
	{
		NI64 LOC10;
		LOC10 = 0;
		LOC10 = getint_229605(a);
		result = newintnodet_292028((NI64)(IL64(1) - LOC10), n);
	}
	break;
	case ((NU8) 40):
	{
		NI64 LOC12;
		LOC12 = 0;
		LOC12 = cardset_275089(a);
		result = newintnodet_292028(LOC12, n);
	}
	break;
	case ((NU8) 100):
	{
		NI64 LOC14;
		LOC14 = 0;
		LOC14 = getint_229605(a);
		result = newintnodet_292028((NI64)((NU64) ~(LOC14)), n);
	}
	break;
	case ((NU8) 33):
	case ((NU8) 36):
	{
		{
			if (!((*a).kind == ((NU8) 23))) goto LA18;
			result = newintnodet_292028(IL64(0), n);
		}
		goto LA16;
		LA18: ;
		{
			NimStringDesc* LOC21;
			LOC21 = 0;
			LOC21 = getstr_229627(a);
			result = newintnodet_292028(((NI64) ((LOC21 ? LOC21->Sup.len : 0))), n);
		}
		LA16: ;
	}
	break;
	case ((NU8) 34):
	{
		NI64 LOC23;
		LOC23 = 0;
		LOC23 = lengthord_254016((*a).typ);
		result = newintnodet_292028(LOC23, n);
	}
	break;
	case ((NU8) 35):
	case ((NU8) 32):
	case ((NU8) 37):
	{
		{
			if (!((*a).kind == ((NU8) 23))) goto LA27;
			result = newintnodet_292028(IL64(0), n);
		}
		goto LA25;
		LA27: ;
		{
			NI LOC30;
			LOC30 = 0;
			LOC30 = sonslen_227387(a);
			result = newintnodet_292028(((NI64) (LOC30)), n);
		}
		LA25: ;
	}
	break;
	case ((NU8) 99):
	case ((NU8) 101):
	{
		result = a;
	}
	break;
	case ((NU8) 113):
	case ((NU8) 114):
	{
		NI64 LOC33;
		LOC33 = 0;
		LOC33 = getint_229605(a);
		result = newfloatnodet_292035(((double) (((NI) (LOC33)))), n);
	}
	break;
	case ((NU8) 115):
	case ((NU8) 116):
	{
		NF LOC35;
		LOC35 = 0;
		LOC35 = getfloat_229616(a);
		result = newintnodet_292028(((NI64) (float64ToInt32(LOC35))), n);
	}
	break;
	case ((NU8) 103):
	{
		NF LOC37;
		LOC37 = 0;
		LOC37 = getfloat_229616(a);
		result = newfloatnodet_292035((LOC37 > 0? (LOC37) : -(LOC37)), n);
	}
	break;
	case ((NU8) 97):
	{
		{
			NI64 LOC41;
			LOC41 = 0;
			LOC41 = getint_229605(a);
			if (!(IL64(0) <= LOC41)) goto LA42;
			result = a;
		}
		goto LA39;
		LA42: ;
		{
			NI64 LOC45;
			LOC45 = 0;
			LOC45 = getint_229605(a);
			result = newintnodet_292028(-(LOC45), n);
		}
		LA39: ;
	}
	break;
	case ((NU8) 104):
	case ((NU8) 105):
	case ((NU8) 106):
	case ((NU8) 107):
	case ((NU8) 108):
	case ((NU8) 109):
	{
		NI64 LOC47;
		NI64 LOC48;
		LOC47 = 0;
		LOC47 = getint_229605(a);
		LOC48 = 0;
		LOC48 = getsize_254190((*a).typ);
		result = newintnodet_292028((NI64)(LOC47 & (NI64)((NI64)((NU64)(IL64(1)) << (NU64)((NI64)(LOC48 * IL64(8)))) - IL64(1))), n);
	}
	break;
	case ((NU8) 110):
	{
		NI64 LOC50;
		LOC50 = 0;
		LOC50 = getint_229605(a);
		result = newintnodet_292028(((NI64) ((NI64)(LOC50 & IL64(255)))), n);
	}
	break;
	case ((NU8) 111):
	{
		NI64 LOC52;
		LOC52 = 0;
		LOC52 = getint_229605(a);
		result = newintnodet_292028(((NI64) ((NI64)(LOC52 & IL64(65535)))), n);
	}
	break;
	case ((NU8) 112):
	{
		NI64 LOC54;
		LOC54 = 0;
		LOC54 = getint_229605(a);
		result = newintnodet_292028(((NI64) ((NI64)(LOC54 & IL64(4294967295)))), n);
	}
	break;
	case ((NU8) 25):
	{
		NI64 LOC56;
		NI64 LOC57;
		LOC56 = 0;
		LOC56 = getordvalue_254178(a);
		LOC57 = 0;
		LOC57 = HEX7CHEX2DHEX7C_291030(LOC56, IL64(1));
		result = newintnodet_292028(LOC57, n);
	}
	break;
	case ((NU8) 49):
	{
		NI64 LOC59;
		NI64 LOC60;
		NI64 LOC61;
		LOC59 = 0;
		LOC59 = getordvalue_254178(a);
		LOC60 = 0;
		LOC60 = getint_229605(b);
		LOC61 = 0;
		LOC61 = HEX7CHEX2BHEX7C_291019(LOC59, LOC60);
		result = newintnodet_292028(LOC61, n);
	}
	break;
	case ((NU8) 50):
	{
		NI64 LOC63;
		NI64 LOC64;
		NI64 LOC65;
		LOC63 = 0;
		LOC63 = getordvalue_254178(a);
		LOC64 = 0;
		LOC64 = getint_229605(b);
		LOC65 = 0;
		LOC65 = HEX7CHEX2DHEX7C_291030(LOC63, LOC64);
		result = newintnodet_292028(LOC65, n);
	}
	break;
	case ((NU8) 44):
	{
		NI64 LOC67;
		NI64 LOC68;
		NI64 LOC69;
		LOC67 = 0;
		LOC67 = getint_229605(a);
		LOC68 = 0;
		LOC68 = getint_229605(b);
		LOC69 = 0;
		LOC69 = HEX7CHEX2BHEX7C_291019(LOC67, LOC68);
		result = newintnodet_292028(LOC69, n);
	}
	break;
	case ((NU8) 45):
	{
		NI64 LOC71;
		NI64 LOC72;
		NI64 LOC73;
		LOC71 = 0;
		LOC71 = getint_229605(a);
		LOC72 = 0;
		LOC72 = getint_229605(b);
		LOC73 = 0;
		LOC73 = HEX7CHEX2DHEX7C_291030(LOC71, LOC72);
		result = newintnodet_292028(LOC73, n);
	}
	break;
	case ((NU8) 46):
	{
		NI64 LOC75;
		NI64 LOC76;
		NI64 LOC77;
		LOC75 = 0;
		LOC75 = getint_229605(a);
		LOC76 = 0;
		LOC76 = getint_229605(b);
		LOC77 = 0;
		LOC77 = HEX7CHEX2AHEX7C_291073(LOC75, LOC76);
		result = newintnodet_292028(LOC77, n);
	}
	break;
	case ((NU8) 60):
	{
		{
			NI64 LOC81;
			NI64 LOC82;
			NI64 LOC85;
			LOC81 = 0;
			LOC81 = getint_229605(b);
			LOC82 = 0;
			LOC82 = getint_229605(a);
			if (!(LOC81 < LOC82)) goto LA83;
			LOC85 = 0;
			LOC85 = getint_229605(b);
			result = newintnodet_292028(LOC85, n);
		}
		goto LA79;
		LA83: ;
		{
			NI64 LOC87;
			LOC87 = 0;
			LOC87 = getint_229605(a);
			result = newintnodet_292028(LOC87, n);
		}
		LA79: ;
	}
	break;
	case ((NU8) 61):
	{
		{
			NI64 LOC91;
			NI64 LOC92;
			NI64 LOC95;
			LOC91 = 0;
			LOC91 = getint_229605(b);
			LOC92 = 0;
			LOC92 = getint_229605(a);
			if (!(LOC91 < LOC92)) goto LA93;
			LOC95 = 0;
			LOC95 = getint_229605(a);
			result = newintnodet_292028(LOC95, n);
		}
		goto LA89;
		LA93: ;
		{
			NI64 LOC97;
			LOC97 = 0;
			LOC97 = getint_229605(b);
			result = newintnodet_292028(LOC97, n);
		}
		LA89: ;
	}
	break;
	case ((NU8) 56):
	{
		Ttype224847* LOC99;
		LOC99 = 0;
		LOC99 = skiptypes_228167((*n).typ, IL64(211106233624832));
		switch ((*LOC99).kind) {
		case ((NU8) 32):
		{
			NI64 LOC101;
			NI64 LOC102;
			LOC101 = 0;
			LOC101 = getint_229605(a);
			LOC102 = 0;
			LOC102 = getint_229605(b);
			result = newintnodet_292028(((NI64) ((NI8)((NU8)(((NI8) (LOC101))) << (NU8)(((NI8) (LOC102)))))), n);
		}
		break;
		case ((NU8) 33):
		{
			NI64 LOC104;
			NI64 LOC105;
			LOC104 = 0;
			LOC104 = getint_229605(a);
			LOC105 = 0;
			LOC105 = getint_229605(b);
			result = newintnodet_292028(((NI64) ((NI16)((NU16)(((NI16) (LOC104))) << (NU16)(((NI16) (LOC105)))))), n);
		}
		break;
		case ((NU8) 34):
		{
			NI64 LOC107;
			NI64 LOC108;
			LOC107 = 0;
			LOC107 = getint_229605(a);
			LOC108 = 0;
			LOC108 = getint_229605(b);
			result = newintnodet_292028(((NI64) ((NI32)((NU32)(((NI32) (LOC107))) << (NU32)(((NI32) (LOC108)))))), n);
		}
		break;
		case ((NU8) 35):
		case ((NU8) 31):
		case ((NU8) 40) ... ((NU8) 44):
		{
			NI64 LOC110;
			NI64 LOC111;
			LOC110 = 0;
			LOC110 = getint_229605(a);
			LOC111 = 0;
			LOC111 = getint_229605(b);
			result = newintnodet_292028((NI64)((NU64)(LOC110) << (NU64)(LOC111)), n);
		}
		break;
		default:
		{
			internalerror_195172((*n).info, ((NimStringDesc*) &TMP3376));
		}
		break;
		}
	}
	break;
	case ((NU8) 55):
	{
		Ttype224847* LOC114;
		LOC114 = 0;
		LOC114 = skiptypes_228167((*n).typ, IL64(211106233624832));
		switch ((*LOC114).kind) {
		case ((NU8) 32):
		{
			NI64 LOC116;
			NI64 LOC117;
			LOC116 = 0;
			LOC116 = getint_229605(a);
			LOC117 = 0;
			LOC117 = getint_229605(b);
			result = newintnodet_292028(((NI64) ((NI8)((NU8)(((NI8) (LOC116))) >> (NU8)(((NI8) (LOC117)))))), n);
		}
		break;
		case ((NU8) 33):
		{
			NI64 LOC119;
			NI64 LOC120;
			LOC119 = 0;
			LOC119 = getint_229605(a);
			LOC120 = 0;
			LOC120 = getint_229605(b);
			result = newintnodet_292028(((NI64) ((NI16)((NU16)(((NI16) (LOC119))) >> (NU16)(((NI16) (LOC120)))))), n);
		}
		break;
		case ((NU8) 34):
		{
			NI64 LOC122;
			NI64 LOC123;
			LOC122 = 0;
			LOC122 = getint_229605(a);
			LOC123 = 0;
			LOC123 = getint_229605(b);
			result = newintnodet_292028(((NI64) ((NI32)((NU32)(((NI32) (LOC122))) >> (NU32)(((NI32) (LOC123)))))), n);
		}
		break;
		case ((NU8) 35):
		case ((NU8) 31):
		case ((NU8) 40) ... ((NU8) 44):
		{
			NI64 LOC125;
			NI64 LOC126;
			LOC125 = 0;
			LOC125 = getint_229605(a);
			LOC126 = 0;
			LOC126 = getint_229605(b);
			result = newintnodet_292028((NI64)((NU64)(LOC125) >> (NU64)(LOC126)), n);
		}
		break;
		default:
		{
			internalerror_195172((*n).info, ((NimStringDesc*) &TMP3377));
		}
		break;
		}
	}
	break;
	case ((NU8) 47):
	{
		NI64 y;
		y = getint_229605(b);
		{
			NI64 LOC133;
			NI64 LOC134;
			if (!!((y == IL64(0)))) goto LA131;
			LOC133 = 0;
			LOC133 = getint_229605(a);
			LOC134 = 0;
			LOC134 = HEX7CdivHEX7C_291051(LOC133, y);
			result = newintnodet_292028(LOC134, n);
		}
		LA131: ;
	}
	break;
	case ((NU8) 48):
	{
		NI64 y;
		y = getint_229605(b);
		{
			NI64 LOC140;
			NI64 LOC141;
			if (!!((y == IL64(0)))) goto LA138;
			LOC140 = 0;
			LOC140 = getint_229605(a);
			LOC141 = 0;
			LOC141 = HEX7CmodHEX7C_291062(LOC140, y);
			result = newintnodet_292028(LOC141, n);
		}
		LA138: ;
	}
	break;
	case ((NU8) 51):
	{
		NF LOC143;
		NF LOC144;
		LOC143 = 0;
		LOC143 = getfloat_229616(a);
		LOC144 = 0;
		LOC144 = getfloat_229616(b);
		result = newfloatnodet_292035(((NF)(LOC143) + (NF)(LOC144)), n);
	}
	break;
	case ((NU8) 52):
	{
		NF LOC146;
		NF LOC147;
		LOC146 = 0;
		LOC146 = getfloat_229616(a);
		LOC147 = 0;
		LOC147 = getfloat_229616(b);
		result = newfloatnodet_292035(((NF)(LOC146) - (NF)(LOC147)), n);
	}
	break;
	case ((NU8) 53):
	{
		NF LOC149;
		NF LOC150;
		LOC149 = 0;
		LOC149 = getfloat_229616(a);
		LOC150 = 0;
		LOC150 = getfloat_229616(b);
		result = newfloatnodet_292035(((NF)(LOC149) * (NF)(LOC150)), n);
	}
	break;
	case ((NU8) 54):
	{
		{
			NF LOC154;
			LOC154 = 0;
			LOC154 = getfloat_229616(b);
			if (!(LOC154 == 0.0)) goto LA155;
			{
				NF LOC159;
				LOC159 = 0;
				LOC159 = getfloat_229616(a);
				if (!(LOC159 == 0.0)) goto LA160;
				result = newfloatnodet_292035(NAN, n);
			}
			goto LA157;
			LA160: ;
			{
				result = newfloatnodet_292035(INF, n);
			}
			LA157: ;
		}
		goto LA152;
		LA155: ;
		{
			NF LOC164;
			NF LOC165;
			LOC164 = 0;
			LOC164 = getfloat_229616(a);
			LOC165 = 0;
			LOC165 = getfloat_229616(b);
			result = newfloatnodet_292035(((NF)(LOC164) / (NF)(LOC165)), n);
		}
		LA152: ;
	}
	break;
	case ((NU8) 63):
	{
		{
			NF LOC169;
			NF LOC170;
			NF LOC173;
			LOC169 = 0;
			LOC169 = getfloat_229616(b);
			LOC170 = 0;
			LOC170 = getfloat_229616(a);
			if (!(LOC169 < LOC170)) goto LA171;
			LOC173 = 0;
			LOC173 = getfloat_229616(a);
			result = newfloatnodet_292035(LOC173, n);
		}
		goto LA167;
		LA171: ;
		{
			NF LOC175;
			LOC175 = 0;
			LOC175 = getfloat_229616(b);
			result = newfloatnodet_292035(LOC175, n);
		}
		LA167: ;
	}
	break;
	case ((NU8) 62):
	{
		{
			NF LOC179;
			NF LOC180;
			NF LOC183;
			LOC179 = 0;
			LOC179 = getfloat_229616(b);
			LOC180 = 0;
			LOC180 = getfloat_229616(a);
			if (!(LOC179 < LOC180)) goto LA181;
			LOC183 = 0;
			LOC183 = getfloat_229616(b);
			result = newfloatnodet_292035(LOC183, n);
		}
		goto LA177;
		LA181: ;
		{
			NF LOC185;
			LOC185 = 0;
			LOC185 = getfloat_229616(a);
			result = newfloatnodet_292035(LOC185, n);
		}
		LA177: ;
	}
	break;
	case ((NU8) 156):
	{
		result = newintnodet_292028(((NI64) (((*a).kind == ((NU8) 23)))), n);
	}
	break;
	case ((NU8) 71):
	case ((NU8) 87):
	case ((NU8) 81):
	case ((NU8) 84):
	{
		NI64 LOC188;
		NI64 LOC189;
		LOC188 = 0;
		LOC188 = getordvalue_254178(a);
		LOC189 = 0;
		LOC189 = getordvalue_254178(b);
		result = newintnodet_292028(((NI64) ((LOC188 < LOC189))), n);
	}
	break;
	case ((NU8) 70):
	case ((NU8) 86):
	case ((NU8) 80):
	case ((NU8) 83):
	{
		NI64 LOC191;
		NI64 LOC192;
		LOC191 = 0;
		LOC191 = getordvalue_254178(a);
		LOC192 = 0;
		LOC192 = getordvalue_254178(b);
		result = newintnodet_292028(((NI64) ((LOC191 <= LOC192))), n);
	}
	break;
	case ((NU8) 69):
	case ((NU8) 85):
	case ((NU8) 79):
	case ((NU8) 82):
	{
		NI64 LOC194;
		NI64 LOC195;
		LOC194 = 0;
		LOC194 = getordvalue_254178(a);
		LOC195 = 0;
		LOC195 = getordvalue_254178(b);
		result = newintnodet_292028(((NI64) ((LOC194 == LOC195))), n);
	}
	break;
	case ((NU8) 74):
	{
		NF LOC197;
		NF LOC198;
		LOC197 = 0;
		LOC197 = getfloat_229616(a);
		LOC198 = 0;
		LOC198 = getfloat_229616(b);
		result = newintnodet_292028(((NI64) ((LOC197 < LOC198))), n);
	}
	break;
	case ((NU8) 73):
	{
		NF LOC200;
		NF LOC201;
		LOC200 = 0;
		LOC200 = getfloat_229616(a);
		LOC201 = 0;
		LOC201 = getfloat_229616(b);
		result = newintnodet_292028(((NI64) ((LOC200 <= LOC201))), n);
	}
	break;
	case ((NU8) 72):
	{
		NF LOC203;
		NF LOC204;
		LOC203 = 0;
		LOC203 = getfloat_229616(a);
		LOC204 = 0;
		LOC204 = getfloat_229616(b);
		result = newintnodet_292028(((NI64) ((LOC203 == LOC204))), n);
	}
	break;
	case ((NU8) 129):
	{
		NimStringDesc* LOC206;
		NimStringDesc* LOC207;
		LOC206 = 0;
		LOC206 = getstr_229627(a);
		LOC207 = 0;
		LOC207 = getstr_229627(b);
		result = newintnodet_292028(((NI64) ((cmpStrings(LOC206, LOC207) < 0))), n);
	}
	break;
	case ((NU8) 128):
	{
		NimStringDesc* LOC209;
		NimStringDesc* LOC210;
		LOC209 = 0;
		LOC209 = getstr_229627(a);
		LOC210 = 0;
		LOC210 = getstr_229627(b);
		result = newintnodet_292028(((NI64) ((cmpStrings(LOC209, LOC210) <= 0))), n);
	}
	break;
	case ((NU8) 127):
	{
		NimStringDesc* LOC212;
		NimStringDesc* LOC213;
		LOC212 = 0;
		LOC212 = getstr_229627(a);
		LOC213 = 0;
		LOC213 = getstr_229627(b);
		result = newintnodet_292028(((NI64) (eqStrings(LOC212, LOC213))), n);
	}
	break;
	case ((NU8) 76):
	case ((NU8) 78):
	{
		NI64 LOC215;
		NI64 LOC216;
		LOC215 = 0;
		LOC215 = getordvalue_254178(a);
		LOC216 = 0;
		LOC216 = getordvalue_254178(b);
		result = newintnodet_292028(((NI64) (((NU64)(LOC215) < (NU64)(LOC216)))), n);
	}
	break;
	case ((NU8) 75):
	case ((NU8) 77):
	{
		NI64 LOC218;
		NI64 LOC219;
		LOC218 = 0;
		LOC218 = getordvalue_254178(a);
		LOC219 = 0;
		LOC219 = getordvalue_254178(b);
		result = newintnodet_292028(((NI64) (((NU64)(LOC218) <= (NU64)(LOC219)))), n);
	}
	break;
	case ((NU8) 57):
	case ((NU8) 125):
	{
		NI64 LOC221;
		NI64 LOC222;
		LOC221 = 0;
		LOC221 = getint_229605(a);
		LOC222 = 0;
		LOC222 = getint_229605(b);
		result = newintnodet_292028((NI64)(LOC221 & LOC222), n);
	}
	break;
	case ((NU8) 58):
	case ((NU8) 126):
	{
		NI64 LOC224;
		NI64 LOC225;
		LOC224 = 0;
		LOC224 = getint_229605(a);
		LOC225 = 0;
		LOC225 = getint_229605(b);
		result = newintnodet_292028((NI64)(LOC224 | LOC225), n);
	}
	break;
	case ((NU8) 59):
	case ((NU8) 93):
	{
		NI64 LOC227;
		NI64 LOC228;
		LOC227 = 0;
		LOC227 = getint_229605(a);
		LOC228 = 0;
		LOC228 = getint_229605(b);
		result = newintnodet_292028((NI64)(LOC227 ^ LOC228), n);
	}
	break;
	case ((NU8) 64):
	{
		NI64 LOC230;
		NI64 LOC231;
		LOC230 = 0;
		LOC230 = getint_229605(a);
		LOC231 = 0;
		LOC231 = getint_229605(b);
		result = newintnodet_292028((NI64)((NU64)(LOC230) + (NU64)(LOC231)), n);
	}
	break;
	case ((NU8) 65):
	{
		NI64 LOC233;
		NI64 LOC234;
		LOC233 = 0;
		LOC233 = getint_229605(a);
		LOC234 = 0;
		LOC234 = getint_229605(b);
		result = newintnodet_292028((NI64)((NU64)(LOC233) - (NU64)(LOC234)), n);
	}
	break;
	case ((NU8) 66):
	{
		NI64 LOC236;
		NI64 LOC237;
		LOC236 = 0;
		LOC236 = getint_229605(a);
		LOC237 = 0;
		LOC237 = getint_229605(b);
		result = newintnodet_292028((NI64)((NU64)(LOC236) * (NU64)(LOC237)), n);
	}
	break;
	case ((NU8) 68):
	{
		NI64 y;
		y = getint_229605(b);
		{
			NI64 LOC243;
			if (!!((y == IL64(0)))) goto LA241;
			LOC243 = 0;
			LOC243 = getint_229605(a);
			result = newintnodet_292028((NI64)((NU64)(LOC243) % (NU64)(y)), n);
		}
		LA241: ;
	}
	break;
	case ((NU8) 67):
	{
		NI64 y;
		y = getint_229605(b);
		{
			NI64 LOC249;
			if (!!((y == IL64(0)))) goto LA247;
			LOC249 = 0;
			LOC249 = getint_229605(a);
			result = newintnodet_292028((NI64)((NU64)(LOC249) / (NU64)(y)), n);
		}
		LA247: ;
	}
	break;
	case ((NU8) 131):
	{
		NIM_BOOL LOC251;
		LOC251 = 0;
		LOC251 = containssets_275075(a, b);
		result = newintnodet_292028(((NI64) (LOC251)), n);
	}
	break;
	case ((NU8) 130):
	{
		NIM_BOOL LOC253;
		LOC253 = 0;
		LOC253 = equalsets_275082(a, b);
		result = newintnodet_292028(((NI64) (LOC253)), n);
	}
	break;
	case ((NU8) 132):
	{
		NIM_BOOL LOC255;
		NIM_BOOL LOC257;
		LOC255 = 0;
		LOC255 = containssets_275075(a, b);
		if (!(LOC255)) goto LA256;
		LOC257 = 0;
		LOC257 = equalsets_275082(a, b);
		LOC255 = !(LOC257);
		LA256: ;
		result = newintnodet_292028(((NI64) (LOC255)), n);
	}
	break;
	case ((NU8) 133):
	{
		result = intersectsets_275061(a, b);
		(*result).info = (*n).info;
	}
	break;
	case ((NU8) 134):
	{
		result = unionsets_275047(a, b);
		(*result).info = (*n).info;
	}
	break;
	case ((NU8) 135):
	{
		result = diffsets_275054(a, b);
		(*result).info = (*n).info;
	}
	break;
	case ((NU8) 136):
	{
		result = symdiffsets_275068(a, b);
		(*result).info = (*n).info;
	}
	break;
	case ((NU8) 137):
	{
		NimStringDesc* LOC263;
		NimStringDesc* LOC264;
		NimStringDesc* LOC265;
		LOC263 = 0;
		LOC264 = 0;
		LOC264 = getstrorchar_229638(a);
		LOC265 = 0;
		LOC265 = getstrorchar_229638(b);
		LOC263 = rawNewString(LOC264->Sup.len + LOC265->Sup.len + 0);
appendString(LOC263, LOC264);
appendString(LOC263, LOC265);
		result = newstrnodet_292042(LOC263, n);
	}
	break;
	case ((NU8) 147):
	{
		NIM_BOOL LOC267;
		LOC267 = 0;
		LOC267 = inset_275019(a, b);
		result = newintnodet_292028(((NI64) (LOC267)), n);
	}
	break;
	case ((NU8) 148):
	{
	}
	break;
	case ((NU8) 119):
	case ((NU8) 120):
	{
		NI64 LOC270;
		NimStringDesc* LOC271;
		LOC270 = 0;
		LOC270 = getordvalue_254178(a);
		LOC271 = 0;
		LOC271 = nimInt64ToStr(LOC270);
		result = newstrnodet_292042(LOC271, n);
	}
	break;
	case ((NU8) 118):
	{
		{
			NI64 LOC275;
			LOC275 = 0;
			LOC275 = getordvalue_254178(a);
			if (!(LOC275 == IL64(0))) goto LA276;
			result = newstrnodet_292042(((NimStringDesc*) &TMP3379), n);
		}
		goto LA273;
		LA276: ;
		{
			result = newstrnodet_292042(((NimStringDesc*) &TMP3380), n);
		}
		LA273: ;
	}
	break;
	case ((NU8) 158):
	{
		NimStringDesc* LOC280;
		NI64 LOC281;
		NimStringDesc* LOC282;
		LOC280 = 0;
		LOC280 = getstr_229627(a);
		LOC281 = 0;
		LOC281 = getordvalue_254178(b);
		LOC282 = 0;
		LOC282 = copyStr(LOC280, ((NI) (LOC281)));
		result = newstrnodet_292042(LOC282, n);
	}
	break;
	case ((NU8) 159):
	{
		NimStringDesc* LOC284;
		NI64 LOC285;
		NI64 LOC286;
		NimStringDesc* LOC287;
		LOC284 = 0;
		LOC284 = getstr_229627(a);
		LOC285 = 0;
		LOC285 = getordvalue_254178(b);
		LOC286 = 0;
		LOC286 = getordvalue_254178(c);
		LOC287 = 0;
		LOC287 = copyStrLast(LOC284, ((NI) (LOC285)), ((NI) (LOC286)));
		result = newstrnodet_292042(LOC287, n);
	}
	break;
	case ((NU8) 121):
	{
		NF LOC289;
		NimStringDesc* LOC290;
		LOC289 = 0;
		LOC289 = getfloat_229616(a);
		LOC290 = 0;
		LOC290 = nimFloatToStr(LOC289);
		result = newstrnodet_292042(LOC290, n);
	}
	break;
	case ((NU8) 122):
	case ((NU8) 117):
	{
		NimStringDesc* LOC292;
		LOC292 = 0;
		LOC292 = getstrorchar_229638(a);
		result = newstrnodet_292042(LOC292, n);
	}
	break;
	case ((NU8) 123):
	{
		result = a;
	}
	break;
	case ((NU8) 124):
	{
		NimStringDesc* LOC295;
		LOC295 = 0;
		LOC295 = ordinalvaltostring_292091(a);
		result = newstrnodet_292042(LOC295, n);
	}
	break;
	case ((NU8) 157):
	{
		result = copytree_229028(a);
		asgnRefNoCycle((void**) (&(*result).typ), (*n).typ);
	}
	break;
	case ((NU8) 214):
	{
		NimStringDesc* LOC298;
		NIM_BOOL LOC299;
		LOC298 = 0;
		LOC298 = getstr_229627(a);
		LOC299 = 0;
		LOC299 = testcompileoption_210705(LOC298, (*n).info);
		result = newintnodet_292028(((NI64) (LOC299)), n);
	}
	break;
	case ((NU8) 215):
	{
		NimStringDesc* LOC301;
		NimStringDesc* LOC302;
		NIM_BOOL LOC303;
		LOC301 = 0;
		LOC301 = getstr_229627(a);
		LOC302 = 0;
		LOC302 = getstr_229627(b);
		LOC303 = 0;
		LOC303 = testcompileoptionarg_210583(LOC301, LOC302, (*n).info);
		result = newintnodet_292028(((NI64) (LOC303)), n);
	}
	break;
	case ((NU8) 94):
	{
		NIM_BOOL LOC305;
		LOC305 = 0;
		LOC305 = exprstructuralequivalent_253149(a, b, NIM_TRUE);
		result = newintnodet_292028(((NI64) (LOC305)), n);
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode224809*, magiccall_293167)(Tsym224841* m, Tnode224809* n) {
	Tnode224809* result;
	Tsym224841* s;
	Tnode224809* a;
	Tnode224809* b;
	Tnode224809* c;
{	result = 0;
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_227387(n);
		if (!(LOC3 <= ((NI) 1))) goto LA4;
		goto BeforeRet;
	}
	LA4: ;
	s = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
	a = getconstexpr_292004(m, (*n).kindU.S6.sons->data[((NI) 1)]);
	b = 0;
	c = 0;
	{
		if (!(a == NIM_NIL)) goto LA8;
		goto BeforeRet;
	}
	LA8: ;
	{
		NI LOC12;
		LOC12 = 0;
		LOC12 = sonslen_227387(n);
		if (!(((NI) 2) < LOC12)) goto LA13;
		b = getconstexpr_292004(m, (*n).kindU.S6.sons->data[((NI) 2)]);
		{
			if (!(b == NIM_NIL)) goto LA17;
			goto BeforeRet;
		}
		LA17: ;
		{
			NI LOC21;
			LOC21 = 0;
			LOC21 = sonslen_227387(n);
			if (!(((NI) 3) < LOC21)) goto LA22;
			c = getconstexpr_292004(m, (*n).kindU.S6.sons->data[((NI) 3)]);
			{
				if (!(c == NIM_NIL)) goto LA26;
				goto BeforeRet;
			}
			LA26: ;
		}
		LA22: ;
	}
	LA13: ;
	result = evalop_292011((*s).magic, n, a, b, c);
	}BeforeRet: ;
	return result;
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell48946* c;
	c = usrtocell_52646(p);
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_54204(c);
	}
	LA3: ;
}

N_NIMCALL(Tnode224809*, foldconstrstr_293679)(Tsym224841* m, Tnode224809* n) {
	Tnode224809* result;
	NimStringDesc* LOC1;
{	result = 0;
	result = newnodeit_226807(((NU8) 20), (*n).info, (*n).typ);
	LOC1 = 0;
	LOC1 = (*result).kindU.S3.strval; (*result).kindU.S3.strval = copyStringRC1(((NimStringDesc*) &TMP3383));
	if (LOC1) nimGCunrefNoCycle(LOC1);
	{
		NI i_293697;
		NI HEX3Atmp_293714;
		NI LOC3;
		NI res_293717;
		i_293697 = 0;
		HEX3Atmp_293714 = 0;
		LOC3 = 0;
		LOC3 = sonslen_227387(n);
		HEX3Atmp_293714 = (NI)(LOC3 - ((NI) 1));
		res_293717 = ((NI) 1);
		{
			while (1) {
				Tnode224809* a;
				NimStringDesc* LOC10;
				if (!(res_293717 <= HEX3Atmp_293714)) goto LA5;
				i_293697 = res_293717;
				a = getconstexpr_292004(m, (*n).kindU.S6.sons->data[i_293697]);
				{
					if (!(a == NIM_NIL)) goto LA8;
					result = NIM_NIL;
					goto BeforeRet;
				}
				LA8: ;
				LOC10 = 0;
				LOC10 = getstrorchar_229638(a);
				(*result).kindU.S3.strval = resizeString((*result).kindU.S3.strval, LOC10->Sup.len + 0);
appendString((*result).kindU.S3.strval, LOC10);
				res_293717 += ((NI) 1);
			} LA5: ;
		}
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode224809*, evalis_292581)(Tnode224809* n, Tnode224809* a) {
	Tnode224809* result;
	Ttype224847* 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_195279(TMP3384);
		internalerror_195191(LOC7);
	}
	LA5: ;
	{
		NIM_BOOL LOC10;
		NI LOC11;
		Tnode224809* LOC13;
		NimStringDesc* LOC16;
		LOC10 = 0;
		LOC11 = 0;
		LOC11 = sonslen_227387(n);
		LOC10 = (LOC11 == ((NI) 3));
		if (!(LOC10)) goto LA12;
		LOC13 = 0;
		LOC13 = HEX5BHEX5D_225244(n, ((NI) 2));
		LOC10 = ((*LOC13).kind >= ((NU8) 20) && (*LOC13).kind <= ((NU8) 22) || (*LOC13).kind == ((NU8) 4));
		LA12: ;
		if (!!(LOC10)) goto LA14;
		LOC16 = 0;
		LOC16 = HEX24_195279(TMP3386);
		internalerror_195191(LOC16);
	}
	LA14: ;
	t1 = (*(*a).kindU.S4.sym).typ;
	{
		Tnode224809* LOC19;
		Tnode224809* LOC22;
		NimStringDesc* LOC23;
		LOC19 = 0;
		LOC19 = HEX5BHEX5D_225244(n, ((NI) 2));
		if (!((*LOC19).kind >= ((NU8) 20) && (*LOC19).kind <= ((NU8) 22))) goto LA20;
		LOC22 = 0;
		LOC22 = HEX5BHEX5D_225244(n, ((NI) 2));
		LOC23 = 0;
		LOC23 = nsuNormalize((*LOC22).kindU.S3.strval);
		if (eqStrings(LOC23, ((NimStringDesc*) &TMP3387))) goto LA24;
		if (eqStrings(LOC23, ((NimStringDesc*) &TMP3388))) goto LA25;
		goto LA26;
		LA24: ;
		{
			Ttype224847* t;
			NIM_BOOL LOC29;
			NIM_BOOL LOC30;
			t = skiptypes_228167(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_225608(((NU8) 6), ((NI64) (LOC29)));
		}
		goto LA27;
		LA25: ;
		{
			Ttype224847* t;
			NIM_BOOL LOC34;
			NIM_BOOL LOC35;
			t = skiptypes_228167(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_225608(((NU8) 6), ((NI64) (LOC34)));
		}
		goto LA27;
		LA26: ;
		{
		}
		LA27: ;
	}
	goto LA17;
	LA20: ;
	{
		Ttype224847* t2;
		Tnode224809* LOC40;
		NIM_BOOL match;
		LOC40 = 0;
		LOC40 = HEX5BHEX5D_225244(n, ((NI) 2));
		t2 = (*LOC40).typ;
		match = sametype_259092(t1, t2, 0);
		result = newintnode_225608(((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_20845;
	return result;
}

static N_INLINE(NIM_BOOL, canbecycleroot_52667)(Cell48946* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).typ).flags &(1<<((((NU8) 1))&7)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_53423)(Cell48946* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_49665((&gch_51059.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, incref_55022)(Cell48946* c) {
	(*c).refcount = (NI)((NU32)((*c).refcount) + (NU32)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_52667(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_53423(c);
	}
	LA4: ;
}

static N_INLINE(void, decref_54604)(Cell48946* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_54204(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_52667(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_53423(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Cell48946* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_52646(src);
		incref_55022(LOC5);
	}
	LA3: ;
	{
		Cell48946* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_52646((*dest));
		decref_54604(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

static N_INLINE(void, popCurrentException)(void) {
	asgnRef((void**) (&currexception_20845), NIM_NIL);
}

N_NIMCALL(void, rangecheck_293266)(Tnode224809* n, NI64 value) {
	{
		NIM_BOOL LOC3;
		NI64 LOC4;
		NI64 LOC6;
		NimStringDesc* LOC9;
		NimStringDesc* LOC10;
		NimStringDesc* LOC11;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = firstord_254004((*n).typ);
		LOC3 = (value < LOC4);
		if (LOC3) goto LA5;
		LOC6 = 0;
		LOC6 = lastord_254010((*n).typ);
		LOC3 = (LOC6 < value);
		LA5: ;
		if (!LOC3) goto LA7;
		LOC9 = 0;
		LOC10 = 0;
		LOC10 = nimInt64ToStr(value);
		LOC11 = 0;
		LOC11 = typetostring_254032((*n).typ, ((NU8) 0));
		LOC9 = rawNewString(LOC10->Sup.len + LOC11->Sup.len + 19);
appendString(LOC9, ((NimStringDesc*) &TMP3389));
appendString(LOC9, LOC10);
appendString(LOC9, ((NimStringDesc*) &TMP3390));
appendString(LOC9, LOC11);
		localerror_195128((*n).info, ((NU16) 4), LOC9);
	}
	LA7: ;
}

N_NIMCALL(Tnode224809*, foldconv_293276)(Tnode224809* n, Tnode224809* a, NIM_BOOL check) {
	Tnode224809* result;
	Ttype224847* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = skiptypes_228167((*n).typ, IL64(211106233624832));
	switch ((*LOC1).kind) {
	case ((NU8) 31) ... ((NU8) 35):
	case ((NU8) 40) ... ((NU8) 44):
	{
		Ttype224847* LOC3;
		LOC3 = 0;
		LOC3 = skiptypes_228167((*a).typ, IL64(211106233624832));
		switch ((*LOC3).kind) {
		case ((NU8) 36) ... ((NU8) 38):
		{
			NF LOC5;
			LOC5 = 0;
			LOC5 = getfloat_229616(a);
			result = newintnodet_292028(((NI64) (((NI) (LOC5)))), n);
		}
		break;
		case ((NU8) 2):
		{
			NI64 LOC7;
			LOC7 = 0;
			LOC7 = getordvalue_254178(a);
			result = newintnodet_292028(LOC7, n);
		}
		break;
		default:
		{
			result = a;
			asgnRefNoCycle((void**) (&(*result).typ), (*n).typ);
		}
		break;
		}
		{
			if (!check) goto LA11;
			rangecheck_293266(n, (*result).kindU.S1.intval);
		}
		LA11: ;
	}
	break;
	case ((NU8) 36) ... ((NU8) 38):
	{
		Ttype224847* LOC14;
		LOC14 = 0;
		LOC14 = skiptypes_228167((*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_254178(a);
			result = newfloatnodet_292035(((double) (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(Tnode224809*, foldarrayaccess_293322)(Tsym224841* m, Tnode224809* n) {
	Tnode224809* result;
	Tnode224809* x;
	Tnode224809* y;
	NI64 idx;
{	result = 0;
	x = getconstexpr_292004(m, (*n).kindU.S6.sons->data[((NI) 0)]);
	{
		NIM_BOOL LOC3;
		Ttype224847* LOC5;
		LOC3 = 0;
		LOC3 = (x == NIM_NIL);
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = skiptypes_228167((*x).typ, 2048);
		LOC3 = ((*LOC5).kind == ((NU8) 8));
		LA4: ;
		if (!LOC3) goto LA6;
		goto BeforeRet;
	}
	LA6: ;
	y = getconstexpr_292004(m, (*n).kindU.S6.sons->data[((NI) 1)]);
	{
		if (!(y == NIM_NIL)) goto LA10;
		goto BeforeRet;
	}
	LA10: ;
	idx = getordvalue_254178(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_227387(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[((NI) 1)];
			}
			LA22: ;
		}
		goto LA13;
		LA18: ;
		{
			localerror_195128((*n).info, ((NU16) 86), ((NimStringDesc*) &TMP3383));
		}
		LA13: ;
	}
	break;
	case ((NU8) 41):
	{
		NI64 LOC26;
		LOC26 = 0;
		LOC26 = firstord_254004((*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_225098(x);
			LOC29 = (idx < ((NI64) (LOC31)));
			LA30: ;
			if (!LOC29) goto LA32;
			result = (*x).kindU.S6.sons->data[idx];
		}
		goto LA27;
		LA32: ;
		{
			localerror_195128((*n).info, ((NU16) 86), ((NimStringDesc*) &TMP3383));
		}
		LA27: ;
	}
	break;
	case ((NU8) 20) ... ((NU8) 22):
	{
		result = newnodeit_226807(((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 ? (*x).kindU.S3.strval->Sup.len : 0))));
			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 ? (*x).kindU.S3.strval->Sup.len : 0))))) goto LA43;
		}
		goto LA36;
		LA43: ;
		{
			localerror_195128((*n).info, ((NU16) 86), ((NimStringDesc*) &TMP3383));
		}
		LA36: ;
	}
	break;
	default:
	{
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode224809*, foldfieldaccess_293397)(Tsym224841* m, Tnode224809* n) {
	Tnode224809* result;
	Tnode224809* x;
	Tsym224841* field;
{	result = 0;
	x = getconstexpr_292004(m, (*n).kindU.S6.sons->data[((NI) 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[((NI) 1)]).kindU.S4.sym;
	{
		NI i_293624;
		NI HEX3Atmp_293656;
		NI HEX3Atmp_293657;
		NI LOC8;
		NI res_293660;
		i_293624 = 0;
		HEX3Atmp_293656 = 0;
		HEX3Atmp_293657 = 0;
		HEX3Atmp_293656 = ((*x).kind == ((NU8) 38));
		LOC8 = 0;
		LOC8 = sonslen_227387(x);
		HEX3Atmp_293657 = (NI)(LOC8 - ((NI) 1));
		res_293660 = ((NI) (HEX3Atmp_293656));
		{
			while (1) {
				Tnode224809* it;
				if (!(res_293660 <= HEX3Atmp_293657)) goto LA10;
				i_293624 = res_293660;
				it = (*x).kindU.S6.sons->data[i_293624];
				{
					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[((NI) 1)];
					}
					LA17: ;
					goto BeforeRet;
				}
				LA13: ;
				{
					if (!((*(*(*(*it).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).name).Sup.id == (*(*field).name).Sup.id)) goto LA21;
					result = (*(*x).kindU.S6.sons->data[i_293624]).kindU.S6.sons->data[((NI) 1)];
					goto BeforeRet;
				}
				LA21: ;
				res_293660 += ((NI) 1);
			} LA10: ;
		}
	}
	localerror_195128((*n).info, ((NU16) 214), (*(*field).name).s);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode224809*, getconstexpr_292004)(Tsym224841* m, Tnode224809* n) {
	Tnode224809* volatile result;
{	result = 0;
	result = NIM_NIL;
	switch ((*n).kind) {
	case ((NU8) 3):
	{
		Tsym224841* s;
		s = (*n).kindU.S4.sym;
		switch ((*s).kind) {
		case ((NU8) 20):
		{
			result = newintnodet_292028(((NI64) ((*s).position)), n);
		}
		break;
		case ((NU8) 10):
		{
			switch ((*s).magic) {
			case ((NU8) 203):
			{
				result = newintnodet_292028(((NI64) ((((*m).flags &(1<<((((NU8) 12))&31)))!=0))), n);
			}
			break;
			case ((NU8) 204):
			{
				NimStringDesc* LOC6;
				LOC6 = 0;
				LOC6 = ntgetDateStr();
				result = newstrnodet_292042(LOC6, n);
			}
			break;
			case ((NU8) 205):
			{
				NimStringDesc* LOC8;
				LOC8 = 0;
				LOC8 = ntgetClockStr();
				result = newstrnodet_292042(LOC8, n);
			}
			break;
			case ((NU8) 207):
			{
				result = newintnodet_292028(((NI64) (Cpu_173500[(targetcpu_173628)- 1].Field2)), n);
			}
			break;
			case ((NU8) 208):
			{
				NimStringDesc* LOC11;
				LOC11 = 0;
				LOC11 = nsuToLowerStr(Os_173070[(targetos_173630)- 1].Field0);
				result = newstrnodet_292042(LOC11, n);
			}
			break;
			case ((NU8) 209):
			{
				NimStringDesc* LOC13;
				LOC13 = 0;
				LOC13 = nsuToLowerStr(Cpu_173500[(targetcpu_173628)- 1].Field0);
				result = newstrnodet_292042(LOC13, n);
			}
			break;
			case ((NU8) 210):
			{
				result = getapptype_293226(n);
			}
			break;
			case ((NU8) 211):
			{
				result = newfloatnodet_292035(NAN, n);
			}
			break;
			case ((NU8) 212):
			{
				result = newfloatnodet_292035(INF, n);
			}
			break;
			case ((NU8) 213):
			{
				result = newfloatnodet_292035(-INF, n);
			}
			break;
			default:
			{
				{
					if (!!((((*s).flags &(1<<((((NU8) 25))&31)))!=0))) goto LA21;
					result = copytree_229028((*s).ast);
				}
				LA21: ;
			}
			break;
			}
		}
		break;
		case ((NU8) 12):
		case ((NU8) 13):
		{
			result = n;
		}
		break;
		case ((NU8) 7):
		{
			result = newsymnodetypedesc_293736(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[((NI) 0)]);
				}
				LA32: ;
			}
			goto LA26;
			LA28: ;
			{
				result = newsymnodetypedesc_293736(s, (*n).info);
			}
			LA26: ;
		}
		break;
		default:
		{
		}
		break;
		}
	}
	break;
	case ((NU8) 5) ... ((NU8) 23):
	{
		result = copynode_228660(n);
	}
	break;
	case ((NU8) 48):
	{
		result = getconstifexpr_292945(m, n);
	}
	break;
	case ((NU8) 27):
	case ((NU8) 29):
	case ((NU8) 30):
	case ((NU8) 31):
	case ((NU8) 26):
	case ((NU8) 28):
	case ((NU8) 32):
	{
		Tsym224841* s;
		TSafePoint TMP3371;
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)))) goto LA41;
			goto BeforeRet;
		}
		LA41: ;
		s = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		{
			if (!!(((*s).kind == ((NU8) 12)))) goto LA45;
			goto BeforeRet;
		}
		LA45: ;
		pushSafePoint(&TMP3371);
		TMP3371.status = _setjmp(TMP3371.context);
		if (TMP3371.status == 0) {
			switch ((*s).magic) {
			case ((NU8) 0):
			{
				popSafePoint();
				goto BeforeRet;
			}
			break;
			case ((NU8) 9):
			{
				Tnode224809* a;
				a = (*n).kindU.S6.sons->data[((NI) 1)];
				{
					NI64 LOC52;
					LOC52 = 0;
					LOC52 = computesize_254184((*a).typ);
					if (!(LOC52 < IL64(0))) goto LA53;
					localerror_195128((*a).info, ((NU16) 81), ((NimStringDesc*) &TMP3372));
					result = NIM_NIL;
				}
				goto LA50;
				LA53: ;
				{
					Ttype224847* LOC56;
					NI64 LOC59;
					LOC56 = 0;
					LOC56 = skiptypes_228167((*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_254190((*a).typ);
					result = newintnodet_292028(LOC59, n);
				}
				goto LA50;
				LA57: ;
				{
					result = NIM_NIL;
				}
				LA50: ;
			}
			break;
			case ((NU8) 7):
			{
				NI64 LOC62;
				LOC62 = 0;
				LOC62 = firstord_254004((*(*n).kindU.S6.sons->data[((NI) 1)]).typ);
				result = newintnodet_292028(LOC62, n);
			}
			break;
			case ((NU8) 8):
			{
				{
					Ttype224847* LOC66;
					Tnode224809* LOC69;
					Ttype224847* LOC70;
					NI64 LOC71;
					LOC66 = 0;
					LOC66 = skiptypes_228167((*(*n).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106240964864));
					if (!!(((*LOC66).kind == ((NU8) 24) || (*LOC66).kind == ((NU8) 28) || (*LOC66).kind == ((NU8) 29) || (*LOC66).kind == ((NU8) 27) || (*LOC66).kind == ((NU8) 48)))) goto LA67;
					LOC69 = 0;
					LOC69 = HEX5BHEX5D_225244(n, ((NI) 1));
					LOC70 = 0;
					LOC70 = skiptypes_228167((*LOC69).typ, IL64(211106240964864));
					LOC71 = 0;
					LOC71 = lastord_254010(LOC70);
					result = newintnodet_292028(LOC71, n);
				}
				goto LA64;
				LA67: ;
				{
					Tnode224809* a;
					a = getarrayconstr_293290(m, (*n).kindU.S6.sons->data[((NI) 1)]);
					{
						NI LOC77;
						if (!((*a).kind == ((NU8) 41))) goto LA75;
						LOC77 = 0;
						LOC77 = sonslen_227387(a);
						result = newintnodet_292028(((NI64) ((NI)(LOC77 - ((NI) 1)))), n);
					}
					LA75: ;
				}
				LA64: ;
			}
			break;
			case ((NU8) 32):
			{
				Tnode224809* a;
				a = getarrayconstr_293290(m, (*n).kindU.S6.sons->data[((NI) 1)]);
				{
					NI LOC83;
					if (!((*a).kind == ((NU8) 41))) goto LA81;
					LOC83 = 0;
					LOC83 = sonslen_227387(a);
					result = newintnodet_292028(((NI64) (LOC83)), n);
				}
				goto LA79;
				LA81: ;
				{
					result = magiccall_293167(m, n);
				}
				LA79: ;
			}
			break;
			case ((NU8) 34):
			{
				NI64 LOC86;
				LOC86 = 0;
				LOC86 = lengthord_254016((*(*n).kindU.S6.sons->data[((NI) 1)]).typ);
				result = newintnodet_292028(LOC86, n);
			}
			break;
			case ((NU8) 153):
			{
				Tnode224809* LOC88;
				NimStringDesc* LOC89;
				LOC88 = 0;
				LOC88 = HEX5BHEX5D_225244(n, ((NI) 1));
				LOC89 = 0;
				LOC89 = rendertree_246059(LOC88, 4);
				result = newstrnodet_292042(LOC89, n);
			}
			break;
			case ((NU8) 137):
			{
				result = foldconstrstr_293679(m, n);
			}
			break;
			case ((NU8) 11):
			{
				Tnode224809* a;
				Tnode224809* LOC92;
				LOC92 = 0;
				LOC92 = HEX5BHEX5D_225244(n, ((NI) 1));
				a = getconstexpr_292004(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_292581(n, a);
				}
				LA99: ;
			}
			break;
			default:
			{
				result = magiccall_293167(m, n);
			}
			break;
			}
			popSafePoint();
		}
		else {
			popSafePoint();
			if (isObj(getCurrentException()->Sup.m_type, (&NTI4043))) {
				TMP3371.status = 0;
				localerror_195128((*n).info, ((NU16) 80), ((NimStringDesc*) &TMP3383));
				popCurrentException();
			}
			else 			if (isObj(getCurrentException()->Sup.m_type, (&NTI4041))) {
				TMP3371.status = 0;
				localerror_195128((*n).info, ((NU16) 77), ((NimStringDesc*) &TMP3383));
				popCurrentException();
			}
		}
		if (TMP3371.status != 0) reraiseException();
	}
	break;
	case ((NU8) 63):
	{
		Tnode224809* a;
		a = getconstexpr_292004(m, (*n).kindU.S6.sons->data[((NI) 0)]);
		{
			if (!!((a == NIM_NIL))) goto LA108;
			result = n;
			asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 0)]), a);
		}
		LA108: ;
	}
	break;
	case ((NU8) 41):
	{
		result = copytree_229028(n);
		{
			NI i_293979;
			NI HEX3Atmp_294273;
			NI LOC112;
			NI res_294276;
			i_293979 = 0;
			HEX3Atmp_294273 = 0;
			LOC112 = 0;
			LOC112 = sonslen_227387(n);
			HEX3Atmp_294273 = (NI)(LOC112 - ((NI) 1));
			res_294276 = ((NI) 0);
			{
				while (1) {
					Tnode224809* a;
					if (!(res_294276 <= HEX3Atmp_294273)) goto LA114;
					i_293979 = res_294276;
					a = getconstexpr_292004(m, (*n).kindU.S6.sons->data[i_293979]);
					{
						if (!(a == NIM_NIL)) goto LA117;
						result = NIM_NIL;
						goto BeforeRet;
					}
					LA117: ;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_293979]), a);
					res_294276 += ((NI) 1);
				} LA114: ;
			}
		}
		(*result).flags |= ((NU16)1)<<((((NU8) 4))%(sizeof(NU16)*8));
	}
	break;
	case ((NU8) 44):
	{
		Tnode224809* a;
		Tnode224809* b;
		a = getconstexpr_292004(m, (*n).kindU.S6.sons->data[((NI) 0)]);
		{
			if (!(a == NIM_NIL)) goto LA122;
			goto BeforeRet;
		}
		LA122: ;
		b = getconstexpr_292004(m, (*n).kindU.S6.sons->data[((NI) 1)]);
		{
			if (!(b == NIM_NIL)) goto LA126;
			goto BeforeRet;
		}
		LA126: ;
		result = copynode_228660(n);
		addson_226819(result, a);
		addson_226819(result, b);
	}
	break;
	case ((NU8) 39):
	{
		result = copytree_229028(n);
		{
			NI i_294045;
			NI HEX3Atmp_294281;
			NI LOC130;
			NI res_294284;
			i_294045 = 0;
			HEX3Atmp_294281 = 0;
			LOC130 = 0;
			LOC130 = sonslen_227387(n);
			HEX3Atmp_294281 = (NI)(LOC130 - ((NI) 1));
			res_294284 = ((NI) 0);
			{
				while (1) {
					Tnode224809* a;
					if (!(res_294284 <= HEX3Atmp_294281)) goto LA132;
					i_294045 = res_294284;
					a = getconstexpr_292004(m, (*n).kindU.S6.sons->data[i_294045]);
					{
						if (!(a == NIM_NIL)) goto LA135;
						result = NIM_NIL;
						goto BeforeRet;
					}
					LA135: ;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_294045]), a);
					res_294284 += ((NI) 1);
				} LA132: ;
			}
		}
		(*result).flags |= ((NU16)1)<<((((NU8) 4))%(sizeof(NU16)*8));
	}
	break;
	case ((NU8) 38):
	{
		result = copytree_229028(n);
		{
			NI i_294083;
			NI HEX3Atmp_294289;
			NI LOC139;
			NI res_294292;
			i_294083 = 0;
			HEX3Atmp_294289 = 0;
			LOC139 = 0;
			LOC139 = sonslen_227387(n);
			HEX3Atmp_294289 = (NI)(LOC139 - ((NI) 1));
			res_294292 = ((NI) 1);
			{
				while (1) {
					Tnode224809* a;
					if (!(res_294292 <= HEX3Atmp_294289)) goto LA141;
					i_294083 = res_294292;
					a = getconstexpr_292004(m, (*(*n).kindU.S6.sons->data[i_294083]).kindU.S6.sons->data[((NI) 1)]);
					{
						if (!(a == NIM_NIL)) goto LA144;
						result = NIM_NIL;
						goto BeforeRet;
					}
					LA144: ;
					asgnRefNoCycle((void**) (&(*(*result).kindU.S6.sons->data[i_294083]).kindU.S6.sons->data[((NI) 1)]), a);
					res_294292 += ((NI) 1);
				} LA141: ;
			}
		}
		(*result).flags |= ((NU16)1)<<((((NU8) 4))%(sizeof(NU16)*8));
	}
	break;
	case ((NU8) 37):
	{
		result = copytree_229028(n);
		{
			NIM_BOOL LOC149;
			NI LOC150;
			LOC149 = 0;
			LOC150 = 0;
			LOC150 = sonslen_227387(n);
			LOC149 = (((NI) 0) < LOC150);
			if (!(LOC149)) goto LA151;
			LOC149 = ((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 34));
			LA151: ;
			if (!LOC149) goto LA152;
			{
				NI i_294133;
				NI HEX3Atmp_294297;
				NI LOC155;
				NI res_294300;
				i_294133 = 0;
				HEX3Atmp_294297 = 0;
				LOC155 = 0;
				LOC155 = sonslen_227387(n);
				HEX3Atmp_294297 = (NI)(LOC155 - ((NI) 1));
				res_294300 = ((NI) 0);
				{
					while (1) {
						Tnode224809* a;
						if (!(res_294300 <= HEX3Atmp_294297)) goto LA157;
						i_294133 = res_294300;
						a = getconstexpr_292004(m, (*(*n).kindU.S6.sons->data[i_294133]).kindU.S6.sons->data[((NI) 1)]);
						{
							if (!(a == NIM_NIL)) goto LA160;
							result = NIM_NIL;
							goto BeforeRet;
						}
						LA160: ;
						asgnRefNoCycle((void**) (&(*(*result).kindU.S6.sons->data[i_294133]).kindU.S6.sons->data[((NI) 1)]), a);
						res_294300 += ((NI) 1);
					} LA157: ;
				}
			}
		}
		goto LA147;
		LA152: ;
		{
			{
				NI i_294163;
				NI HEX3Atmp_294305;
				NI LOC164;
				NI res_294308;
				i_294163 = 0;
				HEX3Atmp_294305 = 0;
				LOC164 = 0;
				LOC164 = sonslen_227387(n);
				HEX3Atmp_294305 = (NI)(LOC164 - ((NI) 1));
				res_294308 = ((NI) 0);
				{
					while (1) {
						Tnode224809* a;
						if (!(res_294308 <= HEX3Atmp_294305)) goto LA166;
						i_294163 = res_294308;
						a = getconstexpr_292004(m, (*n).kindU.S6.sons->data[i_294163]);
						{
							if (!(a == NIM_NIL)) goto LA169;
							result = NIM_NIL;
							goto BeforeRet;
						}
						LA169: ;
						asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_294163]), a);
						res_294308 += ((NI) 1);
					} LA166: ;
				}
			}
		}
		LA147: ;
		(*result).flags |= ((NU16)1)<<((((NU8) 4))%(sizeof(NU16)*8));
	}
	break;
	case ((NU8) 68):
	case ((NU8) 69):
	case ((NU8) 70):
	{
		Tnode224809* a;
		a = getconstexpr_292004(m, (*n).kindU.S6.sons->data[((NI) 0)]);
		{
			if (!(a == NIM_NIL)) goto LA174;
			goto BeforeRet;
		}
		LA174: ;
		{
			NIM_BOOL LOC178;
			LOC178 = 0;
			LOC178 = levalueconv_292021((*n).kindU.S6.sons->data[((NI) 1)], a);
			if (!(LOC178)) goto LA179;
			LOC178 = levalueconv_292021(a, (*n).kindU.S6.sons->data[((NI) 2)]);
			LA179: ;
			if (!LOC178) goto LA180;
			result = a;
			asgnRefNoCycle((void**) (&(*result).typ), (*n).typ);
		}
		goto LA176;
		LA180: ;
		{
			NimStringDesc* LOC183;
			TY192306 LOC184;
			NimStringDesc* LOC185;
			LOC183 = 0;
			LOC183 = msgkindtostring_191406(((NU16) 146));
			memset((void*)LOC184, 0, sizeof(LOC184));
			LOC184[0] = typetostring_254032((*(*n).kindU.S6.sons->data[((NI) 0)]).typ, ((NU8) 0));
			LOC184[1] = typetostring_254032((*n).typ, ((NU8) 0));
			LOC185 = 0;
			LOC185 = nsuFormatOpenArray(LOC183, LOC184, 2);
			localerror_195128((*n).info, ((NU16) 4), LOC185);
		}
		LA176: ;
	}
	break;
	case ((NU8) 71):
	case ((NU8) 72):
	{
		Tnode224809* a;
		a = getconstexpr_292004(m, (*n).kindU.S6.sons->data[((NI) 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):
	{
		Tnode224809* a;
		a = getconstexpr_292004(m, (*n).kindU.S6.sons->data[((NI) 1)]);
		{
			if (!(a == NIM_NIL)) goto LA194;
			goto BeforeRet;
		}
		LA194: ;
		result = foldconv_293276(n, a, ((*n).kind == ((NU8) 58)));
	}
	break;
	case ((NU8) 61):
	{
		Tnode224809* a;
		a = getconstexpr_292004(m, (*n).kindU.S6.sons->data[((NI) 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_293322(m, n);
	}
	break;
	case ((NU8) 45):
	{
		result = foldfieldaccess_293397(m, n);
	}
	break;
	default:
	{
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

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

N_NIMCALL(Ttype224847*, makerange_292293)(Ttype224847* typ, NI64 first, NI64 last) {
	Ttype224847* result;
	NI64 mina;
	NI64 maxa;
	Tnode224809* lowernode;
	result = 0;
	mina = ((first <= last) ? first : last);
	maxa = ((first >= last) ? first : last);
	lowernode = newintnode_225608(((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_273660(lowernode);
	}
	goto LA1;
	LA5: ;
	{
		if (!((*typ).kind == ((NU8) 40) || (*typ).kind == ((NU8) 44))) goto LA8;
		result = typ;
	}
	goto LA1;
	LA8: ;
	{
		Tnode224809* n;
		Tnode224809* LOC11;
		Ttype224847* LOC12;
		n = newnode_225401(((NU8) 44));
		addson_226819(n, lowernode);
		LOC11 = 0;
		LOC11 = newintnode_225608(((NU8) 6), maxa);
		addson_226819(n, LOC11);
		result = newtype_227140(((NU8) 20), (*typ).owner);
		asgnRefNoCycle((void**) (&(*result).n), n);
		LOC12 = 0;
		LOC12 = skiptypes_228167(typ, 1048576);
		addsonskipintlit_273729(result, LOC12);
	}
	LA1: ;
	return result;
}

static N_INLINE(NIM_BOOL, isfloatrange_292166)(Ttype224847* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*t).kind == ((NU8) 20));
	if (!(LOC1)) goto LA2;
	LOC1 = ((*(*t).sons->data[((NI) 0)]).kind >= ((NU8) 36) && (*(*t).sons->data[((NI) 0)]).kind <= ((NU8) 39));
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(Ttype224847*, makerangef_292338)(Ttype224847* typ, NF first, NF last) {
	Ttype224847* result;
	Tnode224809* n;
	Tnode224809* LOC1;
	Tnode224809* LOC2;
	Ttype224847* LOC3;
	result = 0;
	n = newnode_225401(((NU8) 44));
	LOC1 = 0;
	LOC1 = newfloatnode_225632(((NU8) 16), ((first <= last) ? first : last));
	addson_226819(n, LOC1);
	LOC2 = 0;
	LOC2 = newfloatnode_225632(((NU8) 16), ((first >= last) ? first : last));
	addson_226819(n, LOC2);
	result = newtype_227140(((NU8) 20), (*typ).owner);
	asgnRefNoCycle((void**) (&(*result).n), n);
	LOC3 = 0;
	LOC3 = skiptypes_228167(typ, 1048576);
	addsonskipintlit_273729(result, LOC3);
	return result;
}

static N_INLINE(NIM_BOOL, isintlit_254327)(Ttype224847* 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_292247)(Tnode224809* 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_254327((*n).typ);
		if (!LOC6) goto LA7;
		result = (*(*(*n).typ).n).kindU.S1.intval;
	}
	goto LA1;
	LA7: ;
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = isintrange_292196((*n).typ);
		if (!LOC10) goto LA11;
		result = firstord_254004((*n).typ);
	}
	goto LA1;
	LA11: ;
	{
		internalerror_195172((*n).info, ((NimStringDesc*) &TMP3391));
	}
	LA1: ;
	return result;
}

N_NIMCALL(NI64, pickmaxint_292270)(Tnode224809* 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_254327((*n).typ);
		if (!LOC6) goto LA7;
		result = (*(*(*n).typ).n).kindU.S1.intval;
	}
	goto LA1;
	LA7: ;
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = isintrange_292196((*n).typ);
		if (!LOC10) goto LA11;
		result = lastord_254010((*n).typ);
	}
	goto LA1;
	LA11: ;
	{
		internalerror_195172((*n).info, ((NimStringDesc*) &TMP3392));
	}
	LA1: ;
	return result;
}

N_NIMCALL(NIM_BOOL, isintrangeorlit_292237)(Ttype224847* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = isintrange_292196(t);
	if (LOC1) goto LA2;
	LOC1 = isintlit_254327(t);
	LA2: ;
	result = LOC1;
	return result;
}

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

N_NIMCALL(Ttype224847*, getintervaltype_292364)(NU8 m, Tnode224809* n) {
	Ttype224847* result;
	result = 0;
	result = (*n).typ;
	switch (m) {
	case ((NU8) 95):
	case ((NU8) 96):
	{
		Ttype224847* a;
		a = (*(*n).kindU.S6.sons->data[((NI) 1)]).typ;
		{
			NIM_BOOL LOC4;
			NI64 LOC7;
			NI64 LOC8;
			NI64 LOC9;
			NI64 LOC10;
			LOC4 = 0;
			LOC4 = isintrange_292196(a);
			if (!LOC4) goto LA5;
			LOC7 = 0;
			LOC7 = lastord_254010(a);
			LOC8 = 0;
			LOC8 = HEX7CHEX2DHEX7C_291030(IL64(0), LOC7);
			LOC9 = 0;
			LOC9 = firstord_254004(a);
			LOC10 = 0;
			LOC10 = HEX7CHEX2DHEX7C_291030(IL64(0), LOC9);
			result = makerange_292293(a, LOC8, LOC10);
		}
		LA5: ;
	}
	break;
	case ((NU8) 102):
	{
		Ttype224847* a;
		a = (*(*n).kindU.S6.sons->data[((NI) 1)]).typ;
		{
			NIM_BOOL LOC14;
			NF LOC17;
			NF LOC18;
			LOC14 = 0;
			LOC14 = isfloatrange_292166(a);
			if (!LOC14) goto LA15;
			LOC17 = 0;
			LOC17 = getfloat_229616((*(*a).n).kindU.S6.sons->data[((NI) 1)]);
			LOC18 = 0;
			LOC18 = getfloat_229616((*(*a).n).kindU.S6.sons->data[((NI) 0)]);
			result = makerangef_292338(a, -(LOC17), -(LOC18));
		}
		LA15: ;
	}
	break;
	case ((NU8) 103):
	{
		Ttype224847* a;
		a = (*(*n).kindU.S6.sons->data[((NI) 1)]).typ;
		{
			NIM_BOOL LOC22;
			LOC22 = 0;
			LOC22 = isfloatrange_292166(a);
			if (!LOC22) goto LA23;
			{
				Tnode224809* LOC27;
				NF LOC30;
				LOC27 = 0;
				LOC27 = HEX5BHEX5D_225244((*a).n, ((NI) 0));
				if (!((*LOC27).kindU.S2.floatval <= 0.0)) goto LA28;
				LOC30 = 0;
				LOC30 = getfloat_229616((*(*a).n).kindU.S6.sons->data[((NI) 0)]);
				result = makerangef_292338(a, 0.0, (LOC30 > 0? (LOC30) : -(LOC30)));
			}
			goto LA25;
			LA28: ;
			{
				NF LOC32;
				NF LOC33;
				LOC32 = 0;
				LOC32 = getfloat_229616((*(*a).n).kindU.S6.sons->data[((NI) 1)]);
				LOC33 = 0;
				LOC33 = getfloat_229616((*(*a).n).kindU.S6.sons->data[((NI) 0)]);
				result = makerangef_292338(a, (LOC32 > 0? (LOC32) : -(LOC32)), (LOC33 > 0? (LOC33) : -(LOC33)));
			}
			LA25: ;
		}
		LA23: ;
	}
	break;
	case ((NU8) 97):
	{
		Ttype224847* a;
		a = (*(*n).kindU.S6.sons->data[((NI) 1)]).typ;
		{
			NIM_BOOL LOC37;
			LOC37 = 0;
			LOC37 = isintrange_292196(a);
			if (!LOC37) goto LA38;
			{
				Tnode224809* LOC42;
				NI64 LOC45;
				NI64 LOC46;
				LOC42 = 0;
				LOC42 = HEX5BHEX5D_225244((*a).n, ((NI) 0));
				if (!((*LOC42).kindU.S1.intval <= IL64(0))) goto LA43;
				LOC45 = 0;
				LOC45 = getint_229605((*(*a).n).kindU.S6.sons->data[((NI) 0)]);
				LOC46 = 0;
				LOC46 = HEX7CabsHEX7C_291041(LOC45);
				result = makerange_292293(a, IL64(0), LOC46);
			}
			goto LA40;
			LA43: ;
			{
				NI64 LOC48;
				NI64 LOC49;
				NI64 LOC50;
				NI64 LOC51;
				LOC48 = 0;
				LOC48 = getint_229605((*(*a).n).kindU.S6.sons->data[((NI) 1)]);
				LOC49 = 0;
				LOC49 = HEX7CabsHEX7C_291041(LOC48);
				LOC50 = 0;
				LOC50 = getint_229605((*(*a).n).kindU.S6.sons->data[((NI) 0)]);
				LOC51 = 0;
				LOC51 = HEX7CabsHEX7C_291041(LOC50);
				result = makerange_292293(a, LOC49, LOC51);
			}
			LA40: ;
		}
		LA38: ;
	}
	break;
	case ((NU8) 49):
	{
		Ttype224847* a;
		Ttype224847* b;
		a = (*(*n).kindU.S6.sons->data[((NI) 1)]).typ;
		b = (*(*n).kindU.S6.sons->data[((NI) 2)]).typ;
		{
			NIM_BOOL LOC55;
			NI64 LOC59;
			NI64 LOC60;
			NI64 LOC61;
			NI64 LOC62;
			NI64 LOC63;
			NI64 LOC64;
			LOC55 = 0;
			LOC55 = isintrange_292196(a);
			if (!(LOC55)) goto LA56;
			LOC55 = isintlit_254327(b);
			LA56: ;
			if (!LOC55) goto LA57;
			LOC59 = 0;
			LOC59 = pickminint_292247((*n).kindU.S6.sons->data[((NI) 1)]);
			LOC60 = 0;
			LOC60 = pickminint_292247((*n).kindU.S6.sons->data[((NI) 2)]);
			LOC61 = 0;
			LOC61 = HEX7CHEX2BHEX7C_291019(LOC59, LOC60);
			LOC62 = 0;
			LOC62 = pickmaxint_292270((*n).kindU.S6.sons->data[((NI) 1)]);
			LOC63 = 0;
			LOC63 = pickmaxint_292270((*n).kindU.S6.sons->data[((NI) 2)]);
			LOC64 = 0;
			LOC64 = HEX7CHEX2BHEX7C_291019(LOC62, LOC63);
			result = makerange_292293(a, LOC61, LOC64);
		}
		LA57: ;
	}
	break;
	case ((NU8) 50):
	{
		Ttype224847* a;
		Ttype224847* b;
		a = (*(*n).kindU.S6.sons->data[((NI) 1)]).typ;
		b = (*(*n).kindU.S6.sons->data[((NI) 2)]).typ;
		{
			NIM_BOOL LOC68;
			NI64 LOC72;
			NI64 LOC73;
			NI64 LOC74;
			NI64 LOC75;
			NI64 LOC76;
			NI64 LOC77;
			LOC68 = 0;
			LOC68 = isintrange_292196(a);
			if (!(LOC68)) goto LA69;
			LOC68 = isintlit_254327(b);
			LA69: ;
			if (!LOC68) goto LA70;
			LOC72 = 0;
			LOC72 = pickminint_292247((*n).kindU.S6.sons->data[((NI) 1)]);
			LOC73 = 0;
			LOC73 = pickminint_292247((*n).kindU.S6.sons->data[((NI) 2)]);
			LOC74 = 0;
			LOC74 = HEX7CHEX2DHEX7C_291030(LOC72, LOC73);
			LOC75 = 0;
			LOC75 = pickmaxint_292270((*n).kindU.S6.sons->data[((NI) 1)]);
			LOC76 = 0;
			LOC76 = pickmaxint_292270((*n).kindU.S6.sons->data[((NI) 2)]);
			LOC77 = 0;
			LOC77 = HEX7CHEX2DHEX7C_291030(LOC75, LOC76);
			result = makerange_292293(a, LOC74, LOC77);
		}
		LA70: ;
	}
	break;
	case ((NU8) 44):
	case ((NU8) 64):
	{
		Tnode224809* a_292425;
		Tnode224809* b_292427;
		a_292425 = (*n).kindU.S6.sons->data[((NI) 1)];
		b_292427 = (*n).kindU.S6.sons->data[((NI) 2)];
		{
			NIM_BOOL LOC81;
			Ttype224847* LOC85;
			NI64 LOC86;
			NI64 LOC87;
			NI64 LOC88;
			NI64 LOC89;
			NI64 LOC90;
			NI64 LOC91;
			LOC81 = 0;
			LOC81 = isintrangeorlit_292237((*a_292425).typ);
			if (!(LOC81)) goto LA82;
			LOC81 = isintrangeorlit_292237((*b_292427).typ);
			LA82: ;
			if (!LOC81) goto LA83;
			LOC85 = 0;
			LOC85 = pickintrange_292226((*a_292425).typ, (*b_292427).typ);
			LOC86 = 0;
			LOC86 = pickminint_292247(a_292425);
			LOC87 = 0;
			LOC87 = pickminint_292247(b_292427);
			LOC88 = 0;
			LOC88 = HEX7CHEX2BHEX7C_291019(LOC86, LOC87);
			LOC89 = 0;
			LOC89 = pickmaxint_292270(a_292425);
			LOC90 = 0;
			LOC90 = pickmaxint_292270(b_292427);
			LOC91 = 0;
			LOC91 = HEX7CHEX2BHEX7C_291019(LOC89, LOC90);
			result = makerange_292293(LOC85, LOC88, LOC91);
		}
		LA83: ;
	}
	break;
	case ((NU8) 46):
	case ((NU8) 66):
	{
		Tnode224809* a_292431;
		Tnode224809* b_292433;
		a_292431 = (*n).kindU.S6.sons->data[((NI) 1)];
		b_292433 = (*n).kindU.S6.sons->data[((NI) 2)];
		{
			NIM_BOOL LOC95;
			Ttype224847* LOC99;
			NI64 LOC100;
			NI64 LOC101;
			NI64 LOC102;
			NI64 LOC103;
			NI64 LOC104;
			NI64 LOC105;
			LOC95 = 0;
			LOC95 = isintrangeorlit_292237((*a_292431).typ);
			if (!(LOC95)) goto LA96;
			LOC95 = isintrangeorlit_292237((*b_292433).typ);
			LA96: ;
			if (!LOC95) goto LA97;
			LOC99 = 0;
			LOC99 = pickintrange_292226((*a_292431).typ, (*b_292433).typ);
			LOC100 = 0;
			LOC100 = pickminint_292247(a_292431);
			LOC101 = 0;
			LOC101 = pickminint_292247(b_292433);
			LOC102 = 0;
			LOC102 = HEX7CHEX2AHEX7C_291073(LOC100, LOC101);
			LOC103 = 0;
			LOC103 = pickmaxint_292270(a_292431);
			LOC104 = 0;
			LOC104 = pickmaxint_292270(b_292433);
			LOC105 = 0;
			LOC105 = HEX7CHEX2AHEX7C_291073(LOC103, LOC104);
			result = makerange_292293(LOC99, LOC102, LOC105);
		}
		LA97: ;
	}
	break;
	case ((NU8) 45):
	case ((NU8) 65):
	{
		Tnode224809* a_292437;
		Tnode224809* b_292439;
		a_292437 = (*n).kindU.S6.sons->data[((NI) 1)];
		b_292439 = (*n).kindU.S6.sons->data[((NI) 2)];
		{
			NIM_BOOL LOC109;
			NI64 LOC113;
			NI64 LOC114;
			NI64 LOC115;
			NI64 LOC116;
			NI64 LOC117;
			NI64 LOC118;
			LOC109 = 0;
			LOC109 = isintrange_292196((*a_292437).typ);
			if (!(LOC109)) goto LA110;
			LOC109 = ((*b_292439).kind >= ((NU8) 6) && (*b_292439).kind <= ((NU8) 15));
			LA110: ;
			if (!LOC109) goto LA111;
			LOC113 = 0;
			LOC113 = pickminint_292247(a_292437);
			LOC114 = 0;
			LOC114 = pickminint_292247(b_292439);
			LOC115 = 0;
			LOC115 = HEX7CHEX2DHEX7C_291030(LOC113, LOC114);
			LOC116 = 0;
			LOC116 = pickmaxint_292270(a_292437);
			LOC117 = 0;
			LOC117 = pickmaxint_292270(b_292439);
			LOC118 = 0;
			LOC118 = HEX7CHEX2DHEX7C_291030(LOC116, LOC117);
			result = makerange_292293((*a_292437).typ, LOC115, LOC118);
		}
		LA111: ;
	}
	break;
	case ((NU8) 57):
	{
		Tnode224809* a;
		Tnode224809* b;
		a = (*n).kindU.S6.sons->data[((NI) 1)];
		b = (*n).kindU.S6.sons->data[((NI) 2)];
		{
			Tnode224809* LOC124;
			if (!!(((*b).kind >= ((NU8) 6) && (*b).kind <= ((NU8) 15)))) goto LA122;
			LOC124 = 0;
			LOC124 = a;
			a = b;
			b = LOC124;
		}
		LA122: ;
		{
			NI64 x;
			if (!((*b).kind >= ((NU8) 6) && (*b).kind <= ((NU8) 15))) goto LA127;
			x = HEX7CHEX2BHEX7C_291019((*b).kindU.S1.intval, IL64(1));
			{
				NIM_BOOL LOC131;
				LOC131 = 0;
				LOC131 = ((NI64)(x & -(x)) == x);
				if (!(LOC131)) goto LA132;
				LOC131 = (IL64(0) <= x);
				LA132: ;
				if (!LOC131) goto LA133;
				result = makerange_292293((*a).typ, IL64(0), (*b).kindU.S1.intval);
			}
			LA133: ;
		}
		LA127: ;
	}
	break;
	case ((NU8) 68):
	{
		Tnode224809* a;
		Tnode224809* b;
		a = (*n).kindU.S6.sons->data[((NI) 1)];
		b = (*n).kindU.S6.sons->data[((NI) 2)];
		{
			if (!((*a).kind >= ((NU8) 6) && (*a).kind <= ((NU8) 15))) goto LA138;
			{
				if (!(IL64(0) <= (*b).kindU.S1.intval)) goto LA142;
				result = makerange_292293((*a).typ, IL64(0), (NI64)((*b).kindU.S1.intval - IL64(1)));
			}
			goto LA140;
			LA142: ;
			{
				result = makerange_292293((*a).typ, (NI64)((*b).kindU.S1.intval + IL64(1)), IL64(0));
			}
			LA140: ;
		}
		LA138: ;
	}
	break;
	case ((NU8) 48):
	{
		Tnode224809* a;
		Tnode224809* b;
		a = (*n).kindU.S6.sons->data[((NI) 1)];
		b = (*n).kindU.S6.sons->data[((NI) 2)];
		{
			if (!((*b).kind >= ((NU8) 6) && (*b).kind <= ((NU8) 15))) goto LA148;
			{
				if (!(IL64(0) <= (*b).kindU.S1.intval)) goto LA152;
				result = makerange_292293((*a).typ, -((NI64)((*b).kindU.S1.intval - IL64(1))), (NI64)((*b).kindU.S1.intval - IL64(1)));
			}
			goto LA150;
			LA152: ;
			{
				result = makerange_292293((*a).typ, (NI64)((*b).kindU.S1.intval + IL64(1)), -((NI64)((*b).kindU.S1.intval + IL64(1))));
			}
			LA150: ;
		}
		LA148: ;
	}
	break;
	case ((NU8) 47):
	case ((NU8) 67):
	{
		Tnode224809* a_292528;
		Tnode224809* b_292530;
		a_292528 = (*n).kindU.S6.sons->data[((NI) 1)];
		b_292530 = (*n).kindU.S6.sons->data[((NI) 2)];
		{
			NIM_BOOL LOC158;
			NI64 LOC162;
			NI64 LOC163;
			NI64 LOC164;
			NI64 LOC165;
			NI64 LOC166;
			NI64 LOC167;
			LOC158 = 0;
			LOC158 = isintrange_292196((*a_292528).typ);
			if (!(LOC158)) goto LA159;
			LOC158 = ((*b_292530).kind >= ((NU8) 6) && (*b_292530).kind <= ((NU8) 15));
			LA159: ;
			if (!LOC158) goto LA160;
			LOC162 = 0;
			LOC162 = pickminint_292247(a_292528);
			LOC163 = 0;
			LOC163 = pickminint_292247(b_292530);
			LOC164 = 0;
			LOC164 = HEX7CdivHEX7C_291051(LOC162, LOC163);
			LOC165 = 0;
			LOC165 = pickmaxint_292270(a_292528);
			LOC166 = 0;
			LOC166 = pickmaxint_292270(b_292530);
			LOC167 = 0;
			LOC167 = HEX7CdivHEX7C_291051(LOC165, LOC166);
			result = makerange_292293((*a_292528).typ, LOC164, LOC167);
		}
		LA160: ;
	}
	break;
	case ((NU8) 60):
	{
		Tnode224809* a_292545;
		Tnode224809* b_292547;
		a_292545 = (*n).kindU.S6.sons->data[((NI) 1)];
		b_292547 = (*n).kindU.S6.sons->data[((NI) 2)];
		{
			NIM_BOOL LOC171;
			Ttype224847* LOC175;
			NI64 LOC176;
			NI64 LOC177;
			NI64 LOC178;
			NI64 LOC179;
			LOC171 = 0;
			LOC171 = isintrangeorlit_292237((*a_292545).typ);
			if (!(LOC171)) goto LA172;
			LOC171 = isintrangeorlit_292237((*b_292547).typ);
			LA172: ;
			if (!LOC171) goto LA173;
			LOC175 = 0;
			LOC175 = pickintrange_292226((*a_292545).typ, (*b_292547).typ);
			LOC176 = 0;
			LOC176 = pickminint_292247(a_292545);
			LOC177 = 0;
			LOC177 = pickminint_292247(b_292547);
			LOC178 = 0;
			LOC178 = pickmaxint_292270(a_292545);
			LOC179 = 0;
			LOC179 = pickmaxint_292270(b_292547);
			result = makerange_292293(LOC175, ((LOC176 <= LOC177) ? LOC176 : LOC177), ((LOC178 <= LOC179) ? LOC178 : LOC179));
		}
		LA173: ;
	}
	break;
	case ((NU8) 61):
	{
		Tnode224809* a_292559;
		Tnode224809* b_292561;
		a_292559 = (*n).kindU.S6.sons->data[((NI) 1)];
		b_292561 = (*n).kindU.S6.sons->data[((NI) 2)];
		{
			NIM_BOOL LOC183;
			Ttype224847* LOC187;
			NI64 LOC188;
			NI64 LOC189;
			NI64 LOC190;
			NI64 LOC191;
			LOC183 = 0;
			LOC183 = isintrangeorlit_292237((*a_292559).typ);
			if (!(LOC183)) goto LA184;
			LOC183 = isintrangeorlit_292237((*b_292561).typ);
			LA184: ;
			if (!LOC183) goto LA185;
			LOC187 = 0;
			LOC187 = pickintrange_292226((*a_292559).typ, (*b_292561).typ);
			LOC188 = 0;
			LOC188 = pickminint_292247(a_292559);
			LOC189 = 0;
			LOC189 = pickminint_292247(b_292561);
			LOC190 = 0;
			LOC190 = pickmaxint_292270(a_292559);
			LOC191 = 0;
			LOC191 = pickmaxint_292270(b_292561);
			result = makerange_292293(LOC187, ((LOC188 >= LOC189) ? LOC188 : LOC189), ((LOC190 >= LOC191) ? LOC190 : LOC191));
		}
		LA185: ;
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_semfoldInit000)(void) {
}

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

