/* Generated by Nim Compiler v0.13.0 */
/*   (c) 2015 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64

#include "nimbase.h"
#include <math.h>
#include <setjmp.h>
#include <string.h>
typedef struct Tnode215790 Tnode215790;
typedef struct Ttype215828 Ttype215828;
typedef struct Tlineinfo183337 Tlineinfo183337;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tsym215822 Tsym215822;
typedef struct Tident190012 Tident190012;
typedef struct Tnodeseq215784 Tnodeseq215784;
typedef struct Tidobj190006 Tidobj190006;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Ttypeseq215824 Ttypeseq215824;
typedef struct Tscope215816 Tscope215816;
typedef struct TY215925 TY215925;
typedef struct Tstrtable215794 Tstrtable215794;
typedef struct Tsymseq215792 Tsymseq215792;
typedef struct Tloc215804 Tloc215804;
typedef struct Ropeobj170006 Ropeobj170006;
typedef struct Tlib215808 Tlib215808;
typedef struct Cell47504 Cell47504;
typedef struct Cellseq47520 Cellseq47520;
typedef struct Gcheap49818 Gcheap49818;
typedef struct Gcstack49816 Gcstack49816;
typedef struct Cellset47516 Cellset47516;
typedef struct Pagedesc47512 Pagedesc47512;
typedef struct Memregion29688 Memregion29688;
typedef struct Smallchunk29640 Smallchunk29640;
typedef struct Llchunk29682 Llchunk29682;
typedef struct Bigchunk29642 Bigchunk29642;
typedef struct Intset29614 Intset29614;
typedef struct Trunk29610 Trunk29610;
typedef struct Avlnode29686 Avlnode29686;
typedef struct Gcstat49814 Gcstat49814;
typedef struct Tinfocpu168462 Tinfocpu168462;
typedef struct Tinfoos168037 Tinfoos168037;
typedef struct Exception Exception;
typedef struct TSafePoint TSafePoint;
typedef struct TY88687 TY88687;
typedef struct Tinstantiation215812 Tinstantiation215812;
typedef struct Tlistentry135010 Tlistentry135010;
typedef struct Basechunk29638 Basechunk29638;
typedef struct Freecell29630 Freecell29630;
typedef struct TY215913 TY215913;
struct  Tlineinfo183337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tnode215790  {
Ttype215828* typ;
Tlineinfo183337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym215822* sym;
} S4;
struct {Tident190012* ident;
} S5;
struct {Tnodeseq215784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef N_NIMCALL_PTR(void, TY3489) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3494) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3489 marker;
TY3494 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj190006  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable215794  {
NI counter;
Tsymseq215792* data;
};
struct  Tloc215804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype215828* t;
Ropeobj170006* r;
Ropeobj170006* heaproot;
};
struct  Tsym215822  {
  Tidobj190006 Sup;
NU8 kind;
union{
struct {Ttypeseq215824* typeinstcache;
Tscope215816* typscope;
} S1;
struct {TY215925* procinstcache;
Tsym215822* gcunsafetyreason;
} S2;
struct {TY215925* usedgenerics;
Tstrtable215794 tab;
} S3;
struct {Tsym215822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype215828* typ;
Tident190012* name;
Tlineinfo183337 info;
Tsym215822* owner;
NU32 flags;
Tnode215790* ast;
NU32 options;
NI position;
NI offset;
Tloc215804 loc;
Tlib215808* annex;
Tnode215790* constraint;
};
struct  Cell47504  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47520  {
NI len;
NI cap;
Cell47504** d;
};
struct  Cellset47516  {
NI counter;
NI max;
Pagedesc47512* head;
Pagedesc47512** data;
};
typedef Smallchunk29640* TY29703[512];
typedef Trunk29610* Trunkbuckets29612[256];
struct  Intset29614  {
Trunkbuckets29612 data;
};
struct  Memregion29688  {
NI minlargeobj;
NI maxlargeobj;
TY29703 freesmallchunks;
Llchunk29682* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk29642* freechunkslist;
Intset29614 chunkstarts;
Avlnode29686* root;
Avlnode29686* deleted;
Avlnode29686* last;
Avlnode29686* freeavlnodes;
};
struct  Gcstat49814  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap49818  {
Gcstack49816* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq47520 zct;
Cellseq47520 decstack;
Cellset47516 cycleroots;
Cellseq47520 tempstack;
NI recgclock;
Memregion29688 region;
Gcstat49814 stat;
};
struct  Ttype215828  {
  Tidobj190006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq215824* sons;
Tnode215790* n;
Tsym215822* owner;
Tsym215822* sym;
Tsym215822* destructor;
Tsym215822* deepcopy;
Tsym215822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc215804 loc;
};
struct Tinfocpu168462 {
NimStringDesc* Field0;
NI Field1;
NU8 Field2;
NI Field3;
NI Field4;
};
typedef Tinfocpu168462 TY168490[18];
struct Tinfoos168037 {
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 Tinfoos168037 TY168069[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;
} TY17811;
struct  TSafePoint  {
TSafePoint* prev;
NI status;
jmp_buf context;
NIM_BOOL hasRaiseAction;
TY17811 raiseAction;
};
struct  Tident190012  {
  Tidobj190006 Sup;
NimStringDesc* s;
Tident190012* next;
NI h;
};
struct TY88687 {
NimStringDesc* Field0;
NI Field1;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
typedef NimStringDesc* TY185169[2];
struct  Tscope215816  {
NI depthlevel;
Tstrtable215794 symbols;
Tnodeseq215784* usingsyms;
Tscope215816* parent;
};
struct  Ropeobj170006  {
  TNimObject Sup;
Ropeobj170006* left;
Ropeobj170006* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry135010  {
  TNimObject Sup;
Tlistentry135010* prev;
Tlistentry135010* next;
};
struct  Tlib215808  {
  Tlistentry135010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj170006* name;
Tnode215790* path;
};
struct  Gcstack49816  {
Gcstack49816* prev;
Gcstack49816* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29619[8];
struct  Pagedesc47512  {
Pagedesc47512* next;
NI key;
TY29619 bits;
};
struct  Basechunk29638  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk29640  {
  Basechunk29638 Sup;
Smallchunk29640* next;
Smallchunk29640* prev;
Freecell29630* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk29682  {
NI size;
NI acc;
Llchunk29682* next;
};
struct  Bigchunk29642  {
  Basechunk29638 Sup;
Bigchunk29642* next;
Bigchunk29642* prev;
NI align;
NF data;
};
struct  Trunk29610  {
Trunk29610* next;
NI key;
TY29619 bits;
};
typedef Avlnode29686* TY29693[2];
struct  Avlnode29686  {
TY29693 link;
NI key;
NI upperbound;
NI level;
};
struct  Tinstantiation215812  {
Tsym215822* sym;
Ttypeseq215824* concretetypes;
TY215913* usedby;
NI compilesid;
};
struct  Freecell29630  {
Freecell29630* next;
NI zerofield;
};
struct Tnodeseq215784 {
  TGenericSeq Sup;
  Tnode215790* data[SEQ_DECL_SIZE];
};
struct Ttypeseq215824 {
  TGenericSeq Sup;
  Ttype215828* data[SEQ_DECL_SIZE];
};
struct TY215925 {
  TGenericSeq Sup;
  Tinstantiation215812* data[SEQ_DECL_SIZE];
};
struct Tsymseq215792 {
  TGenericSeq Sup;
  Tsym215822* data[SEQ_DECL_SIZE];
};
struct TY215913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, internalerror_188100)(Tlineinfo183337 info, NimStringDesc* errmsg);
N_NIMCALL(Tnode215790*, newsymnode_217241)(Tsym215822* sym, Tlineinfo183337 info);
N_NIMCALL(Ttype215828*, newtype_218107)(NU8 kind, Tsym215822* owner);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell47504*, usrtocell_51440)(void* usr);
static N_INLINE(void, rtladdzct_53001)(Cell47504* c);
N_NOINLINE(void, addzct_51417)(Cellseq47520* s, Cell47504* c);
N_NIMCALL(void, addsonskipintlit_259680)(Ttype215828* father, Ttype215828* son);
N_NIMCALL(Ttype215828*, skiptypes_219113)(Ttype215828* t, NU64 kinds);
N_NIMCALL(Tnode215790*, newintnode_216659)(NU8 kind, NI64 intval);
N_NIMCALL(Ttype215828*, getintlittype_259627)(Tnode215790* literal);
N_NIMCALL(Tnode215790*, newstrnode_216677)(NU8 kind, NimStringDesc* strval);
N_NIMCALL(Tnode215790*, newintnodet_276016)(NI64 intval, Tnode215790* n);
N_NIMCALL(Tnode215790*, newstrnodet_276024)(NimStringDesc* strval, Tnode215790* n);
N_NIMCALL(NimStringDesc*, ntgetDateStr)(void);
N_NIMCALL(NimStringDesc*, ntgetClockStr)(void);
N_NIMCALL(NimStringDesc*, nsuToLowerStr)(NimStringDesc* s);
N_NIMCALL(Tnode215790*, getapptype_277068)(Tnode215790* n);
N_NIMCALL(Tnode215790*, newfloatnodet_276020)(NF floatval, Tnode215790* n);
N_NIMCALL(Tnode215790*, newfloatnode_216671)(NU8 kind, NF floatval);
N_NIMCALL(Ttype215828*, getfloatlittype_259649)(Tnode215790* literal);
N_NIMCALL(Tnode215790*, copytree_219822)(Tnode215790* src);
N_NIMCALL(Tnode215790*, newsymnodetypedesc_277496)(Tsym215822* s, Tlineinfo183337 info);
N_NIMCALL(Tnode215790*, copynode_219542)(Tnode215790* src);
N_NIMCALL(Tnode215790*, getconstifexpr_276826)(Tsym215822* c, Tnode215790* n);
N_NIMCALL(NI, sonslen_218351)(Tnode215790* n);
static N_INLINE(NI, len_216059)(Tnode215790* n);
N_NIMCALL(Tnode215790*, getconstexpr_276001)(Tsym215822* m, Tnode215790* n);
N_NIMCALL(NI64, getordvalue_241118)(Tnode215790* n);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
static N_INLINE(void, popSafePoint)(void);
N_NIMCALL(NI64, computesize_241121)(Ttype215828* typ);
N_NIMCALL(void, localerror_188080)(Tlineinfo183337 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NI64, getsize_241124)(Ttype215828* typ);
N_NIMCALL(NI64, firstord_241001)(Ttype215828* t);
N_NIMCALL(NI64, lastord_241004)(Ttype215828* t);
static N_INLINE(Tnode215790*, HEX5BHEX5D_216238)(Tnode215790* n, NI i);
N_NIMCALL(Tnode215790*, getarrayconstr_277114)(Tsym215822* m, Tnode215790* n);
N_NIMCALL(Tnode215790*, magiccall_277015)(Tsym215822* m, Tnode215790* n);
N_NIMCALL(Tnode215790*, evalop_276005)(NU8 m, Tnode215790* n, Tnode215790* a, Tnode215790* b, Tnode215790* c);
N_NIMCALL(NI64, getint_220293)(Tnode215790* a);
N_NIMCALL(NF, getfloat_220298)(Tnode215790* a);
N_NIMCALL(NI64, cardset_261050)(Tnode215790* s);
N_NIMCALL(NimStringDesc*, getstr_220303)(Tnode215790* a);
N_NIMCALL(NI64, lengthord_241007)(Ttype215828* t);
N_NIMCALL(NI64, HEX7CHEX2DHEX7C_275012)(NI64 a, NI64 b);
N_NIMCALL(NI64, HEX7CHEX2BHEX7C_275007)(NI64 a, NI64 b);
N_NIMCALL(NI64, HEX7CHEX2AHEX7C_275031)(NI64 a, NI64 b);
N_NIMCALL(NI64, HEX7CdivHEX7C_275021)(NI64 a, NI64 b);
N_NIMCALL(NI64, HEX7CmodHEX7C_275026)(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_261042)(Tnode215790* a, Tnode215790* b);
N_NIMCALL(NIM_BOOL, equalsets_261046)(Tnode215790* a, Tnode215790* b);
N_NIMCALL(Tnode215790*, intersectsets_261034)(Tnode215790* a, Tnode215790* b);
N_NIMCALL(Tnode215790*, unionsets_261026)(Tnode215790* a, Tnode215790* b);
N_NIMCALL(Tnode215790*, diffsets_261030)(Tnode215790* a, Tnode215790* b);
N_NIMCALL(Tnode215790*, symdiffsets_261038)(Tnode215790* a, Tnode215790* b);
N_NIMCALL(NimStringDesc*, getstrorchar_220308)(Tnode215790* a);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(NIM_BOOL, inset_261010)(Tnode215790* s, Tnode215790* 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_79810, NI last);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI first, NI last);
N_NIMCALL(NimStringDesc*, nimFloatToStr)(NF f);
N_NIMCALL(NimStringDesc*, ordinalvaltostring_276052)(Tnode215790* a);
N_NIMCALL(NimStringDesc*, nimCharToStr)(NIM_CHAR x);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(NIM_BOOL, testcompileoption_201609)(NimStringDesc* switch_201611, Tlineinfo183337 info);
N_NIMCALL(NIM_BOOL, testcompileoptionarg_201493)(NimStringDesc* switch_201495, NimStringDesc* arg, Tlineinfo183337 info);
N_NIMCALL(NIM_BOOL, exprstructuralequivalent_240099)(Tnode215790* a, Tnode215790* b, NIM_BOOL strictsymequality);
N_NIMCALL(NimStringDesc*, rendertree_234044)(Tnode215790* n, NU8 renderflags);
N_NIMCALL(Tnode215790*, foldconstrstr_277455)(Tsym215822* m, Tnode215790* n);
N_NIMCALL(Tnode215790*, newnodeit_217801)(NU8 kind, Tlineinfo183337 info, Ttype215828* typ);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(Tnode215790*, evalis_276470)(Tnode215790* n, Tnode215790* a);
N_NIMCALL(void, internalerror_188113)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_188183)(TY88687 x);
N_NIMCALL(NimStringDesc*, nsuNormalize)(NimStringDesc* s);
N_NIMCALL(NIM_BOOL, sametype_245628)(Ttype215828* a, Ttype215828* 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_53819)(Cell47504* c);
static N_INLINE(NIM_BOOL, canbecycleroot_51458)(Cell47504* c);
static N_INLINE(void, rtladdcycleroot_52220)(Cell47504* c);
N_NOINLINE(void, incl_48247)(Cellset47516* s, Cell47504* cell);
static N_INLINE(void, decref_53401)(Cell47504* c);
N_NIMCALL(void, reraiseException)(void);
N_NIMCALL(void, addson_217807)(Tnode215790* father, Tnode215790* son);
N_NIMCALL(NIM_BOOL, levalueconv_276012)(Tnode215790* a, Tnode215790* b);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(NimStringDesc*, msgkindtostring_184743)(NU16 kind);
N_NIMCALL(NimStringDesc*, typetostring_241017)(Ttype215828* typ, NU8 prefer);
N_NIMCALL(Tnode215790*, foldconv_277106)(Tnode215790* n, Tnode215790* a, NIM_BOOL check);
N_NIMCALL(void, rangecheck_277102)(Tnode215790* n, NI64 value);
N_NIMCALL(Tnode215790*, foldarrayaccess_277140)(Tsym215822* m, Tnode215790* n);
N_NIMCALL(Tnode215790*, foldfieldaccess_277209)(Tsym215822* m, Tnode215790* n);
static N_INLINE(NIM_BOOL, isintrange_276136)(Ttype215828* t);
N_NIMCALL(Ttype215828*, makerange_276203)(Ttype215828* typ, NI64 first, NI64 last);
N_NIMCALL(Tnode215790*, newnode_216401)(NU8 kind);
static N_INLINE(NIM_BOOL, isfloatrange_276112)(Ttype215828* t);
N_NIMCALL(Ttype215828*, makerangef_276242)(Ttype215828* typ, NF first, NF last);
N_NIMCALL(NI64, HEX7CabsHEX7C_275017)(NI64 a);
static N_INLINE(NIM_BOOL, isintlit_241222)(Ttype215828* t);
N_NIMCALL(NI64, pickminint_276169)(Tnode215790* n);
N_NIMCALL(NI64, pickmaxint_276186)(Tnode215790* n);
N_NIMCALL(NIM_BOOL, isintrangeorlit_276165)(Ttype215828* t);
N_NIMCALL(Ttype215828*, pickintrange_276160)(Ttype215828* a, Ttype215828* b);
STRING_LITERAL(TMP2971, "leValueConv", 11);
extern NIM_CONST TY168490 Cpu_168476;
extern NIM_CONST TY168069 Os_168055;
STRING_LITERAL(TMP3403, "lib", 3);
STRING_LITERAL(TMP3404, "staticlib", 9);
STRING_LITERAL(TMP3405, "gui", 3);
STRING_LITERAL(TMP3406, "console", 7);
STRING_LITERAL(TMP3407, "getConstIfExpr()", 16);
STRING_LITERAL(TMP3409, "sizeof", 6);
STRING_LITERAL(TMP3413, "constant folding for shl", 24);
STRING_LITERAL(TMP3414, "constant folding for shr", 24);
STRING_LITERAL(TMP3416, "false", 5);
STRING_LITERAL(TMP3417, "true", 4);
STRING_LITERAL(TMP3418, "ordinalValToString", 18);
STRING_LITERAL(TMP3419, "no symbol for ordinal value: ", 29);
STRING_LITERAL(TMP3420, "", 0);
STRING_LITERAL(TMP3422, "compiler/semfold.nim", 20);
NIM_CONST TY88687 TMP3421 = {((NimStringDesc*) &TMP3422),
((NI) 252)}
;
NIM_CONST TY88687 TMP3423 = {((NimStringDesc*) &TMP3422),
((NI) 253)}
;
STRING_LITERAL(TMP3424, "closure", 7);
STRING_LITERAL(TMP3425, "iterator", 8);
STRING_LITERAL(TMP3426, "cannot convert ", 15);
STRING_LITERAL(TMP3427, " to ", 4);
STRING_LITERAL(TMP3428, "pickMinInt", 10);
STRING_LITERAL(TMP3429, "pickMaxInt", 10);
extern Gcheap49818 gch_49859;
extern NU8 targetcpu_168601;
extern NU8 targetos_168603;
extern NU32 gglobaloptions_161121;
extern TSafePoint* exchandler_19437;
extern TNimType NTI3640; /* OverflowError */
extern Exception* currexception_19439;
extern TNimType NTI3638; /* DivByZeroError */

N_NIMCALL(NIM_BOOL, levalueconv_276012)(Tnode215790* a, Tnode215790* 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_188100((*a).info, ((NimStringDesc*) &TMP2971));
		}
		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_188100((*a).info, ((NimStringDesc*) &TMP2971));
		}
		break;
		}
	}
	break;
	default:
	{
		internalerror_188100((*a).info, ((NimStringDesc*) &TMP2971));
	}
	break;
	}
	return result;
}

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

static N_INLINE(void, rtladdzct_53001)(Cell47504* c) {
	addzct_51417((&gch_49859.zct), c);
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell47504* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_51440(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell47504* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_51440((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA11;
			rtladdzct_53001(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(Tnode215790*, newsymnodetypedesc_277496)(Tsym215822* s, Tlineinfo183337 info) {
	Tnode215790* result;
	result = 0;
	result = newsymnode_217241(s, info);
	asgnRefNoCycle((void**) (&(*result).typ), newtype_218107(((NU8) 8), (*s).owner));
	addsonskipintlit_259680((*result).typ, (*s).typ);
	return result;
}

N_NIMCALL(Tnode215790*, newintnodet_276016)(NI64 intval, Tnode215790* n) {
	Tnode215790* result;
	Ttype215828* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = skiptypes_219113((*n).typ, IL64(211106242013440));
	switch ((*LOC1).kind) {
	case ((NU8) 31):
	{
		result = newintnode_216659(((NU8) 6), intval);
		asgnRefNoCycle((void**) (&(*result).typ), getintlittype_259627(result));
	}
	break;
	case ((NU8) 2):
	{
		result = newintnode_216659(((NU8) 5), intval);
		asgnRefNoCycle((void**) (&(*result).typ), (*n).typ);
	}
	break;
	default:
	{
		result = newintnode_216659(((NU8) 6), intval);
		asgnRefNoCycle((void**) (&(*result).typ), (*n).typ);
	}
	break;
	}
	(*result).info = (*n).info;
	return result;
}

N_NIMCALL(Tnode215790*, newstrnodet_276024)(NimStringDesc* strval, Tnode215790* n) {
	Tnode215790* result;
	result = 0;
	result = newstrnode_216677(((NU8) 20), strval);
	asgnRefNoCycle((void**) (&(*result).typ), (*n).typ);
	(*result).info = (*n).info;
	return result;
}

N_NIMCALL(Tnode215790*, getapptype_277068)(Tnode215790* n) {
	Tnode215790* result;
	result = 0;
	{
		if (!((gglobaloptions_161121 &(1U<<((NU)(((NU8) 8))&31U)))!=0)) goto LA3;
		result = newstrnodet_276024(((NimStringDesc*) &TMP3403), n);
	}
	goto LA1;
	LA3: ;
	{
		if (!((gglobaloptions_161121 &(1U<<((NU)(((NU8) 9))&31U)))!=0)) goto LA6;
		result = newstrnodet_276024(((NimStringDesc*) &TMP3404), n);
	}
	goto LA1;
	LA6: ;
	{
		if (!((gglobaloptions_161121 &(1U<<((NU)(((NU8) 10))&31U)))!=0)) goto LA9;
		result = newstrnodet_276024(((NimStringDesc*) &TMP3405), n);
	}
	goto LA1;
	LA9: ;
	{
		result = newstrnodet_276024(((NimStringDesc*) &TMP3406), n);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode215790*, newfloatnodet_276020)(NF floatval, Tnode215790* n) {
	Tnode215790* result;
	result = 0;
	result = newfloatnode_216671(((NU8) 16), floatval);
	{
		Ttype215828* LOC3;
		LOC3 = 0;
		LOC3 = skiptypes_219113((*n).typ, IL64(211106242013440));
		if (!((*LOC3).kind == ((NU8) 36))) goto LA4;
		asgnRefNoCycle((void**) (&(*result).typ), getfloatlittype_259649(result));
	}
	goto LA1;
	LA4: ;
	{
		asgnRefNoCycle((void**) (&(*result).typ), (*n).typ);
	}
	LA1: ;
	(*result).info = (*n).info;
	return result;
}

static N_INLINE(NI, len_216059)(Tnode215790* 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(Tnode215790*, getconstifexpr_276826)(Tsym215822* c, Tnode215790* n) {
	Tnode215790* result;
{	result = 0;
	result = NIM_NIL;
	{
		NI i_276842;
		NI HEX3Atmp_276900;
		NI LOC2;
		NI res_276903;
		i_276842 = 0;
		HEX3Atmp_276900 = 0;
		LOC2 = 0;
		LOC2 = sonslen_218351(n);
		HEX3Atmp_276900 = (NI)(LOC2 - ((NI) 1));
		res_276903 = ((NI) 0);
		{
			while (1) {
				Tnode215790* it;
				if (!(res_276903 <= HEX3Atmp_276900)) goto LA4;
				i_276842 = res_276903;
				it = (*n).kindU.S6.sons->data[i_276842];
				{
					NI LOC7;
					Tnode215790* e;
					LOC7 = 0;
					LOC7 = len_216059(it);
					if (!(LOC7 == ((NI) 2))) goto LA8;
					e = getconstexpr_276001(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_241118(e);
						if (!!((LOC16 == IL64(0)))) goto LA17;
						{
							if (!(result == NIM_NIL)) goto LA21;
							result = getconstexpr_276001(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_216059(it);
					if (!(LOC28 == ((NI) 1))) goto LA29;
					{
						if (!(result == NIM_NIL)) goto LA33;
						result = getconstexpr_276001(c, (*it).kindU.S6.sons->data[((NI) 0)]);
					}
					LA33: ;
				}
				goto LA5;
				LA29: ;
				{
					internalerror_188100((*it).info, ((NimStringDesc*) &TMP3407));
				}
				LA5: ;
				res_276903 += ((NI) 1);
			} LA4: ;
		}
	}
	}BeforeRet: ;
	return result;
}

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

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

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

N_NIMCALL(Tnode215790*, getarrayconstr_277114)(Tsym215822* m, Tnode215790* n) {
	Tnode215790* result;
	result = 0;
	{
		if (!((*n).kind == ((NU8) 41))) goto LA3;
		result = n;
	}
	goto LA1;
	LA3: ;
	{
		result = getconstexpr_276001(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_276052)(Tnode215790* a) {
	NimStringDesc* result;
	NI64 x;
	Ttype215828* t;
{	result = 0;
	x = getint_220293(a);
	t = skiptypes_219113((*a).typ, IL64(211106233624832));
	switch ((*t).kind) {
	case ((NU8) 2):
	{
		result = nimCharToStr(((NIM_CHAR) ((NI)(((NI) (x)) & ((NI) 255)))));
	}
	break;
	case ((NU8) 14):
	{
		Tnode215790* n;
		NimStringDesc* LOC20;
		NimStringDesc* LOC21;
		n = (*t).n;
		{
			NI i_276072;
			NI HEX3Atmp_276105;
			NI LOC4;
			NI res_276108;
			i_276072 = 0;
			HEX3Atmp_276105 = 0;
			LOC4 = 0;
			LOC4 = sonslen_218351(n);
			HEX3Atmp_276105 = (NI)(LOC4 - ((NI) 1));
			res_276108 = ((NI) 0);
			{
				while (1) {
					Tsym215822* field;
					if (!(res_276108 <= HEX3Atmp_276105)) goto LA6;
					i_276072 = res_276108;
					{
						if (!!(((*(*n).kindU.S6.sons->data[i_276072]).kind == ((NU8) 3)))) goto LA9;
						internalerror_188100((*a).info, ((NimStringDesc*) &TMP3418));
					}
					LA9: ;
					field = (*(*n).kindU.S6.sons->data[i_276072]).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_276108 += ((NI) 1);
				} LA6: ;
			}
		}
		LOC20 = 0;
		LOC21 = 0;
		LOC21 = nimInt64ToStr(x);
		LOC20 = rawNewString(LOC21->Sup.len + 29);
appendString(LOC20, ((NimStringDesc*) &TMP3419));
appendString(LOC20, LOC21);
		internalerror_188100((*a).info, LOC20);
	}
	break;
	default:
	{
		result = nimInt64ToStr(x);
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode215790*, evalop_276005)(NU8 m, Tnode215790* n, Tnode215790* a, Tnode215790* b, Tnode215790* c) {
	Tnode215790* result;
	result = 0;
	result = NIM_NIL;
	switch (m) {
	case ((NU8) 28):
	{
		NI64 LOC2;
		LOC2 = 0;
		LOC2 = getordvalue_241118(a);
		result = newintnodet_276016(LOC2, n);
	}
	break;
	case ((NU8) 41):
	{
		NI64 LOC4;
		LOC4 = 0;
		LOC4 = getint_220293(a);
		result = newintnodet_276016(LOC4, n);
	}
	break;
	case ((NU8) 95):
	case ((NU8) 96):
	{
		NI64 LOC6;
		LOC6 = 0;
		LOC6 = getint_220293(a);
		result = newintnodet_276016(-(LOC6), n);
	}
	break;
	case ((NU8) 102):
	{
		NF LOC8;
		LOC8 = 0;
		LOC8 = getfloat_220298(a);
		result = newfloatnodet_276020(-(LOC8), n);
	}
	break;
	case ((NU8) 98):
	{
		NI64 LOC10;
		LOC10 = 0;
		LOC10 = getint_220293(a);
		result = newintnodet_276016((NI64)(IL64(1) - LOC10), n);
	}
	break;
	case ((NU8) 40):
	{
		NI64 LOC12;
		LOC12 = 0;
		LOC12 = cardset_261050(a);
		result = newintnodet_276016(LOC12, n);
	}
	break;
	case ((NU8) 100):
	{
		NI64 LOC14;
		LOC14 = 0;
		LOC14 = getint_220293(a);
		result = newintnodet_276016((NI64)((NU64) ~(LOC14)), n);
	}
	break;
	case ((NU8) 33):
	case ((NU8) 36):
	{
		{
			if (!((*a).kind == ((NU8) 23))) goto LA18;
			result = newintnodet_276016(IL64(0), n);
		}
		goto LA16;
		LA18: ;
		{
			NimStringDesc* LOC21;
			LOC21 = 0;
			LOC21 = getstr_220303(a);
			result = newintnodet_276016(((NI64) ((LOC21 ? LOC21->Sup.len : 0))), n);
		}
		LA16: ;
	}
	break;
	case ((NU8) 34):
	{
		NI64 LOC23;
		LOC23 = 0;
		LOC23 = lengthord_241007((*a).typ);
		result = newintnodet_276016(LOC23, n);
	}
	break;
	case ((NU8) 35):
	case ((NU8) 32):
	case ((NU8) 37):
	{
		{
			if (!((*a).kind == ((NU8) 23))) goto LA27;
			result = newintnodet_276016(IL64(0), n);
		}
		goto LA25;
		LA27: ;
		{
			NI LOC30;
			LOC30 = 0;
			LOC30 = sonslen_218351(a);
			result = newintnodet_276016(((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_220293(a);
		result = newfloatnodet_276020(((double) (((NI) (LOC33)))), n);
	}
	break;
	case ((NU8) 115):
	case ((NU8) 116):
	{
		NF LOC35;
		LOC35 = 0;
		LOC35 = getfloat_220298(a);
		result = newintnodet_276016(((NI64) (float64ToInt32(LOC35))), n);
	}
	break;
	case ((NU8) 103):
	{
		NF LOC37;
		LOC37 = 0;
		LOC37 = getfloat_220298(a);
		result = newfloatnodet_276020((LOC37 > 0? (LOC37) : -(LOC37)), n);
	}
	break;
	case ((NU8) 97):
	{
		{
			NI64 LOC41;
			LOC41 = 0;
			LOC41 = getint_220293(a);
			if (!(IL64(0) <= LOC41)) goto LA42;
			result = a;
		}
		goto LA39;
		LA42: ;
		{
			NI64 LOC45;
			LOC45 = 0;
			LOC45 = getint_220293(a);
			result = newintnodet_276016(-(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_220293(a);
		LOC48 = 0;
		LOC48 = getsize_241124((*a).typ);
		result = newintnodet_276016((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_220293(a);
		result = newintnodet_276016(((NI64) ((NI64)(LOC50 & IL64(255)))), n);
	}
	break;
	case ((NU8) 111):
	{
		NI64 LOC52;
		LOC52 = 0;
		LOC52 = getint_220293(a);
		result = newintnodet_276016(((NI64) ((NI64)(LOC52 & IL64(65535)))), n);
	}
	break;
	case ((NU8) 112):
	{
		NI64 LOC54;
		LOC54 = 0;
		LOC54 = getint_220293(a);
		result = newintnodet_276016(((NI64) ((NI64)(LOC54 & IL64(4294967295)))), n);
	}
	break;
	case ((NU8) 25):
	{
		NI64 LOC56;
		NI64 LOC57;
		LOC56 = 0;
		LOC56 = getordvalue_241118(a);
		LOC57 = 0;
		LOC57 = HEX7CHEX2DHEX7C_275012(LOC56, IL64(1));
		result = newintnodet_276016(LOC57, n);
	}
	break;
	case ((NU8) 49):
	{
		NI64 LOC59;
		NI64 LOC60;
		NI64 LOC61;
		LOC59 = 0;
		LOC59 = getordvalue_241118(a);
		LOC60 = 0;
		LOC60 = getint_220293(b);
		LOC61 = 0;
		LOC61 = HEX7CHEX2BHEX7C_275007(LOC59, LOC60);
		result = newintnodet_276016(LOC61, n);
	}
	break;
	case ((NU8) 50):
	{
		NI64 LOC63;
		NI64 LOC64;
		NI64 LOC65;
		LOC63 = 0;
		LOC63 = getordvalue_241118(a);
		LOC64 = 0;
		LOC64 = getint_220293(b);
		LOC65 = 0;
		LOC65 = HEX7CHEX2DHEX7C_275012(LOC63, LOC64);
		result = newintnodet_276016(LOC65, n);
	}
	break;
	case ((NU8) 44):
	{
		NI64 LOC67;
		NI64 LOC68;
		NI64 LOC69;
		LOC67 = 0;
		LOC67 = getint_220293(a);
		LOC68 = 0;
		LOC68 = getint_220293(b);
		LOC69 = 0;
		LOC69 = HEX7CHEX2BHEX7C_275007(LOC67, LOC68);
		result = newintnodet_276016(LOC69, n);
	}
	break;
	case ((NU8) 45):
	{
		NI64 LOC71;
		NI64 LOC72;
		NI64 LOC73;
		LOC71 = 0;
		LOC71 = getint_220293(a);
		LOC72 = 0;
		LOC72 = getint_220293(b);
		LOC73 = 0;
		LOC73 = HEX7CHEX2DHEX7C_275012(LOC71, LOC72);
		result = newintnodet_276016(LOC73, n);
	}
	break;
	case ((NU8) 46):
	{
		NI64 LOC75;
		NI64 LOC76;
		NI64 LOC77;
		LOC75 = 0;
		LOC75 = getint_220293(a);
		LOC76 = 0;
		LOC76 = getint_220293(b);
		LOC77 = 0;
		LOC77 = HEX7CHEX2AHEX7C_275031(LOC75, LOC76);
		result = newintnodet_276016(LOC77, n);
	}
	break;
	case ((NU8) 60):
	{
		{
			NI64 LOC81;
			NI64 LOC82;
			NI64 LOC85;
			LOC81 = 0;
			LOC81 = getint_220293(b);
			LOC82 = 0;
			LOC82 = getint_220293(a);
			if (!(LOC81 < LOC82)) goto LA83;
			LOC85 = 0;
			LOC85 = getint_220293(b);
			result = newintnodet_276016(LOC85, n);
		}
		goto LA79;
		LA83: ;
		{
			NI64 LOC87;
			LOC87 = 0;
			LOC87 = getint_220293(a);
			result = newintnodet_276016(LOC87, n);
		}
		LA79: ;
	}
	break;
	case ((NU8) 61):
	{
		{
			NI64 LOC91;
			NI64 LOC92;
			NI64 LOC95;
			LOC91 = 0;
			LOC91 = getint_220293(b);
			LOC92 = 0;
			LOC92 = getint_220293(a);
			if (!(LOC91 < LOC92)) goto LA93;
			LOC95 = 0;
			LOC95 = getint_220293(a);
			result = newintnodet_276016(LOC95, n);
		}
		goto LA89;
		LA93: ;
		{
			NI64 LOC97;
			LOC97 = 0;
			LOC97 = getint_220293(b);
			result = newintnodet_276016(LOC97, n);
		}
		LA89: ;
	}
	break;
	case ((NU8) 56):
	{
		Ttype215828* LOC99;
		LOC99 = 0;
		LOC99 = skiptypes_219113((*n).typ, IL64(211106233624832));
		switch ((*LOC99).kind) {
		case ((NU8) 32):
		{
			NI64 LOC101;
			NI64 LOC102;
			LOC101 = 0;
			LOC101 = getint_220293(a);
			LOC102 = 0;
			LOC102 = getint_220293(b);
			result = newintnodet_276016(((NI64) ((NI8)((NU8)(((NI8) (LOC101))) << (NU8)(((NI8) (LOC102)))))), n);
		}
		break;
		case ((NU8) 33):
		{
			NI64 LOC104;
			NI64 LOC105;
			LOC104 = 0;
			LOC104 = getint_220293(a);
			LOC105 = 0;
			LOC105 = getint_220293(b);
			result = newintnodet_276016(((NI64) ((NI16)((NU16)(((NI16) (LOC104))) << (NU16)(((NI16) (LOC105)))))), n);
		}
		break;
		case ((NU8) 34):
		{
			NI64 LOC107;
			NI64 LOC108;
			LOC107 = 0;
			LOC107 = getint_220293(a);
			LOC108 = 0;
			LOC108 = getint_220293(b);
			result = newintnodet_276016(((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_220293(a);
			LOC111 = 0;
			LOC111 = getint_220293(b);
			result = newintnodet_276016((NI64)((NU64)(LOC110) << (NU64)(LOC111)), n);
		}
		break;
		default:
		{
			internalerror_188100((*n).info, ((NimStringDesc*) &TMP3413));
		}
		break;
		}
	}
	break;
	case ((NU8) 55):
	{
		Ttype215828* LOC114;
		LOC114 = 0;
		LOC114 = skiptypes_219113((*n).typ, IL64(211106233624832));
		switch ((*LOC114).kind) {
		case ((NU8) 32):
		{
			NI64 LOC116;
			NI64 LOC117;
			LOC116 = 0;
			LOC116 = getint_220293(a);
			LOC117 = 0;
			LOC117 = getint_220293(b);
			result = newintnodet_276016(((NI64) ((NI8)((NU8)(((NI8) (LOC116))) >> (NU8)(((NI8) (LOC117)))))), n);
		}
		break;
		case ((NU8) 33):
		{
			NI64 LOC119;
			NI64 LOC120;
			LOC119 = 0;
			LOC119 = getint_220293(a);
			LOC120 = 0;
			LOC120 = getint_220293(b);
			result = newintnodet_276016(((NI64) ((NI16)((NU16)(((NI16) (LOC119))) >> (NU16)(((NI16) (LOC120)))))), n);
		}
		break;
		case ((NU8) 34):
		{
			NI64 LOC122;
			NI64 LOC123;
			LOC122 = 0;
			LOC122 = getint_220293(a);
			LOC123 = 0;
			LOC123 = getint_220293(b);
			result = newintnodet_276016(((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_220293(a);
			LOC126 = 0;
			LOC126 = getint_220293(b);
			result = newintnodet_276016((NI64)((NU64)(LOC125) >> (NU64)(LOC126)), n);
		}
		break;
		default:
		{
			internalerror_188100((*n).info, ((NimStringDesc*) &TMP3414));
		}
		break;
		}
	}
	break;
	case ((NU8) 47):
	{
		NI64 y;
		y = getint_220293(b);
		{
			NI64 LOC133;
			NI64 LOC134;
			if (!!((y == IL64(0)))) goto LA131;
			LOC133 = 0;
			LOC133 = getint_220293(a);
			LOC134 = 0;
			LOC134 = HEX7CdivHEX7C_275021(LOC133, y);
			result = newintnodet_276016(LOC134, n);
		}
		LA131: ;
	}
	break;
	case ((NU8) 48):
	{
		NI64 y;
		y = getint_220293(b);
		{
			NI64 LOC140;
			NI64 LOC141;
			if (!!((y == IL64(0)))) goto LA138;
			LOC140 = 0;
			LOC140 = getint_220293(a);
			LOC141 = 0;
			LOC141 = HEX7CmodHEX7C_275026(LOC140, y);
			result = newintnodet_276016(LOC141, n);
		}
		LA138: ;
	}
	break;
	case ((NU8) 51):
	{
		NF LOC143;
		NF LOC144;
		LOC143 = 0;
		LOC143 = getfloat_220298(a);
		LOC144 = 0;
		LOC144 = getfloat_220298(b);
		result = newfloatnodet_276020(((NF)(LOC143) + (NF)(LOC144)), n);
	}
	break;
	case ((NU8) 52):
	{
		NF LOC146;
		NF LOC147;
		LOC146 = 0;
		LOC146 = getfloat_220298(a);
		LOC147 = 0;
		LOC147 = getfloat_220298(b);
		result = newfloatnodet_276020(((NF)(LOC146) - (NF)(LOC147)), n);
	}
	break;
	case ((NU8) 53):
	{
		NF LOC149;
		NF LOC150;
		LOC149 = 0;
		LOC149 = getfloat_220298(a);
		LOC150 = 0;
		LOC150 = getfloat_220298(b);
		result = newfloatnodet_276020(((NF)(LOC149) * (NF)(LOC150)), n);
	}
	break;
	case ((NU8) 54):
	{
		{
			NF LOC154;
			LOC154 = 0;
			LOC154 = getfloat_220298(b);
			if (!(LOC154 == 0.0)) goto LA155;
			{
				NF LOC159;
				LOC159 = 0;
				LOC159 = getfloat_220298(a);
				if (!(LOC159 == 0.0)) goto LA160;
				result = newfloatnodet_276020(NAN, n);
			}
			goto LA157;
			LA160: ;
			{
				result = newfloatnodet_276020(INF, n);
			}
			LA157: ;
		}
		goto LA152;
		LA155: ;
		{
			NF LOC164;
			NF LOC165;
			LOC164 = 0;
			LOC164 = getfloat_220298(a);
			LOC165 = 0;
			LOC165 = getfloat_220298(b);
			result = newfloatnodet_276020(((NF)(LOC164) / (NF)(LOC165)), n);
		}
		LA152: ;
	}
	break;
	case ((NU8) 63):
	{
		{
			NF LOC169;
			NF LOC170;
			NF LOC173;
			LOC169 = 0;
			LOC169 = getfloat_220298(b);
			LOC170 = 0;
			LOC170 = getfloat_220298(a);
			if (!(LOC169 < LOC170)) goto LA171;
			LOC173 = 0;
			LOC173 = getfloat_220298(a);
			result = newfloatnodet_276020(LOC173, n);
		}
		goto LA167;
		LA171: ;
		{
			NF LOC175;
			LOC175 = 0;
			LOC175 = getfloat_220298(b);
			result = newfloatnodet_276020(LOC175, n);
		}
		LA167: ;
	}
	break;
	case ((NU8) 62):
	{
		{
			NF LOC179;
			NF LOC180;
			NF LOC183;
			LOC179 = 0;
			LOC179 = getfloat_220298(b);
			LOC180 = 0;
			LOC180 = getfloat_220298(a);
			if (!(LOC179 < LOC180)) goto LA181;
			LOC183 = 0;
			LOC183 = getfloat_220298(b);
			result = newfloatnodet_276020(LOC183, n);
		}
		goto LA177;
		LA181: ;
		{
			NF LOC185;
			LOC185 = 0;
			LOC185 = getfloat_220298(a);
			result = newfloatnodet_276020(LOC185, n);
		}
		LA177: ;
	}
	break;
	case ((NU8) 156):
	{
		result = newintnodet_276016(((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_241118(a);
		LOC189 = 0;
		LOC189 = getordvalue_241118(b);
		result = newintnodet_276016(((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_241118(a);
		LOC192 = 0;
		LOC192 = getordvalue_241118(b);
		result = newintnodet_276016(((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_241118(a);
		LOC195 = 0;
		LOC195 = getordvalue_241118(b);
		result = newintnodet_276016(((NI64) ((LOC194 == LOC195))), n);
	}
	break;
	case ((NU8) 74):
	{
		NF LOC197;
		NF LOC198;
		LOC197 = 0;
		LOC197 = getfloat_220298(a);
		LOC198 = 0;
		LOC198 = getfloat_220298(b);
		result = newintnodet_276016(((NI64) ((LOC197 < LOC198))), n);
	}
	break;
	case ((NU8) 73):
	{
		NF LOC200;
		NF LOC201;
		LOC200 = 0;
		LOC200 = getfloat_220298(a);
		LOC201 = 0;
		LOC201 = getfloat_220298(b);
		result = newintnodet_276016(((NI64) ((LOC200 <= LOC201))), n);
	}
	break;
	case ((NU8) 72):
	{
		NF LOC203;
		NF LOC204;
		LOC203 = 0;
		LOC203 = getfloat_220298(a);
		LOC204 = 0;
		LOC204 = getfloat_220298(b);
		result = newintnodet_276016(((NI64) ((LOC203 == LOC204))), n);
	}
	break;
	case ((NU8) 129):
	{
		NimStringDesc* LOC206;
		NimStringDesc* LOC207;
		LOC206 = 0;
		LOC206 = getstr_220303(a);
		LOC207 = 0;
		LOC207 = getstr_220303(b);
		result = newintnodet_276016(((NI64) ((cmpStrings(LOC206, LOC207) < 0))), n);
	}
	break;
	case ((NU8) 128):
	{
		NimStringDesc* LOC209;
		NimStringDesc* LOC210;
		LOC209 = 0;
		LOC209 = getstr_220303(a);
		LOC210 = 0;
		LOC210 = getstr_220303(b);
		result = newintnodet_276016(((NI64) ((cmpStrings(LOC209, LOC210) <= 0))), n);
	}
	break;
	case ((NU8) 127):
	{
		NimStringDesc* LOC212;
		NimStringDesc* LOC213;
		LOC212 = 0;
		LOC212 = getstr_220303(a);
		LOC213 = 0;
		LOC213 = getstr_220303(b);
		result = newintnodet_276016(((NI64) (eqStrings(LOC212, LOC213))), n);
	}
	break;
	case ((NU8) 76):
	case ((NU8) 78):
	{
		NI64 LOC215;
		NI64 LOC216;
		LOC215 = 0;
		LOC215 = getordvalue_241118(a);
		LOC216 = 0;
		LOC216 = getordvalue_241118(b);
		result = newintnodet_276016(((NI64) (((NU64)(LOC215) < (NU64)(LOC216)))), n);
	}
	break;
	case ((NU8) 75):
	case ((NU8) 77):
	{
		NI64 LOC218;
		NI64 LOC219;
		LOC218 = 0;
		LOC218 = getordvalue_241118(a);
		LOC219 = 0;
		LOC219 = getordvalue_241118(b);
		result = newintnodet_276016(((NI64) (((NU64)(LOC218) <= (NU64)(LOC219)))), n);
	}
	break;
	case ((NU8) 57):
	case ((NU8) 125):
	{
		NI64 LOC221;
		NI64 LOC222;
		LOC221 = 0;
		LOC221 = getint_220293(a);
		LOC222 = 0;
		LOC222 = getint_220293(b);
		result = newintnodet_276016((NI64)(LOC221 & LOC222), n);
	}
	break;
	case ((NU8) 58):
	case ((NU8) 126):
	{
		NI64 LOC224;
		NI64 LOC225;
		LOC224 = 0;
		LOC224 = getint_220293(a);
		LOC225 = 0;
		LOC225 = getint_220293(b);
		result = newintnodet_276016((NI64)(LOC224 | LOC225), n);
	}
	break;
	case ((NU8) 59):
	case ((NU8) 93):
	{
		NI64 LOC227;
		NI64 LOC228;
		LOC227 = 0;
		LOC227 = getint_220293(a);
		LOC228 = 0;
		LOC228 = getint_220293(b);
		result = newintnodet_276016((NI64)(LOC227 ^ LOC228), n);
	}
	break;
	case ((NU8) 64):
	{
		NI64 LOC230;
		NI64 LOC231;
		LOC230 = 0;
		LOC230 = getint_220293(a);
		LOC231 = 0;
		LOC231 = getint_220293(b);
		result = newintnodet_276016((NI64)((NU64)(LOC230) + (NU64)(LOC231)), n);
	}
	break;
	case ((NU8) 65):
	{
		NI64 LOC233;
		NI64 LOC234;
		LOC233 = 0;
		LOC233 = getint_220293(a);
		LOC234 = 0;
		LOC234 = getint_220293(b);
		result = newintnodet_276016((NI64)((NU64)(LOC233) - (NU64)(LOC234)), n);
	}
	break;
	case ((NU8) 66):
	{
		NI64 LOC236;
		NI64 LOC237;
		LOC236 = 0;
		LOC236 = getint_220293(a);
		LOC237 = 0;
		LOC237 = getint_220293(b);
		result = newintnodet_276016((NI64)((NU64)(LOC236) * (NU64)(LOC237)), n);
	}
	break;
	case ((NU8) 68):
	{
		NI64 y;
		y = getint_220293(b);
		{
			NI64 LOC243;
			if (!!((y == IL64(0)))) goto LA241;
			LOC243 = 0;
			LOC243 = getint_220293(a);
			result = newintnodet_276016((NI64)((NU64)(LOC243) % (NU64)(y)), n);
		}
		LA241: ;
	}
	break;
	case ((NU8) 67):
	{
		NI64 y;
		y = getint_220293(b);
		{
			NI64 LOC249;
			if (!!((y == IL64(0)))) goto LA247;
			LOC249 = 0;
			LOC249 = getint_220293(a);
			result = newintnodet_276016((NI64)((NU64)(LOC249) / (NU64)(y)), n);
		}
		LA247: ;
	}
	break;
	case ((NU8) 131):
	{
		NIM_BOOL LOC251;
		LOC251 = 0;
		LOC251 = containssets_261042(a, b);
		result = newintnodet_276016(((NI64) (LOC251)), n);
	}
	break;
	case ((NU8) 130):
	{
		NIM_BOOL LOC253;
		LOC253 = 0;
		LOC253 = equalsets_261046(a, b);
		result = newintnodet_276016(((NI64) (LOC253)), n);
	}
	break;
	case ((NU8) 132):
	{
		NIM_BOOL LOC255;
		NIM_BOOL LOC257;
		LOC255 = 0;
		LOC255 = containssets_261042(a, b);
		if (!(LOC255)) goto LA256;
		LOC257 = 0;
		LOC257 = equalsets_261046(a, b);
		LOC255 = !(LOC257);
		LA256: ;
		result = newintnodet_276016(((NI64) (LOC255)), n);
	}
	break;
	case ((NU8) 133):
	{
		result = intersectsets_261034(a, b);
		(*result).info = (*n).info;
	}
	break;
	case ((NU8) 134):
	{
		result = unionsets_261026(a, b);
		(*result).info = (*n).info;
	}
	break;
	case ((NU8) 135):
	{
		result = diffsets_261030(a, b);
		(*result).info = (*n).info;
	}
	break;
	case ((NU8) 136):
	{
		result = symdiffsets_261038(a, b);
		(*result).info = (*n).info;
	}
	break;
	case ((NU8) 137):
	{
		NimStringDesc* LOC263;
		NimStringDesc* LOC264;
		NimStringDesc* LOC265;
		LOC263 = 0;
		LOC264 = 0;
		LOC264 = getstrorchar_220308(a);
		LOC265 = 0;
		LOC265 = getstrorchar_220308(b);
		LOC263 = rawNewString(LOC264->Sup.len + LOC265->Sup.len + 0);
appendString(LOC263, LOC264);
appendString(LOC263, LOC265);
		result = newstrnodet_276024(LOC263, n);
	}
	break;
	case ((NU8) 147):
	{
		NIM_BOOL LOC267;
		LOC267 = 0;
		LOC267 = inset_261010(a, b);
		result = newintnodet_276016(((NI64) (LOC267)), n);
	}
	break;
	case ((NU8) 148):
	{
	}
	break;
	case ((NU8) 119):
	case ((NU8) 120):
	{
		NI64 LOC270;
		NimStringDesc* LOC271;
		LOC270 = 0;
		LOC270 = getordvalue_241118(a);
		LOC271 = 0;
		LOC271 = nimInt64ToStr(LOC270);
		result = newstrnodet_276024(LOC271, n);
	}
	break;
	case ((NU8) 118):
	{
		{
			NI64 LOC275;
			LOC275 = 0;
			LOC275 = getordvalue_241118(a);
			if (!(LOC275 == IL64(0))) goto LA276;
			result = newstrnodet_276024(((NimStringDesc*) &TMP3416), n);
		}
		goto LA273;
		LA276: ;
		{
			result = newstrnodet_276024(((NimStringDesc*) &TMP3417), n);
		}
		LA273: ;
	}
	break;
	case ((NU8) 158):
	{
		NimStringDesc* LOC280;
		NI64 LOC281;
		NimStringDesc* LOC282;
		LOC280 = 0;
		LOC280 = getstr_220303(a);
		LOC281 = 0;
		LOC281 = getordvalue_241118(b);
		LOC282 = 0;
		LOC282 = copyStr(LOC280, ((NI) (LOC281)));
		result = newstrnodet_276024(LOC282, n);
	}
	break;
	case ((NU8) 159):
	{
		NimStringDesc* LOC284;
		NI64 LOC285;
		NI64 LOC286;
		NimStringDesc* LOC287;
		LOC284 = 0;
		LOC284 = getstr_220303(a);
		LOC285 = 0;
		LOC285 = getordvalue_241118(b);
		LOC286 = 0;
		LOC286 = getordvalue_241118(c);
		LOC287 = 0;
		LOC287 = copyStrLast(LOC284, ((NI) (LOC285)), ((NI) (LOC286)));
		result = newstrnodet_276024(LOC287, n);
	}
	break;
	case ((NU8) 121):
	{
		NF LOC289;
		NimStringDesc* LOC290;
		LOC289 = 0;
		LOC289 = getfloat_220298(a);
		LOC290 = 0;
		LOC290 = nimFloatToStr(LOC289);
		result = newstrnodet_276024(LOC290, n);
	}
	break;
	case ((NU8) 122):
	case ((NU8) 117):
	{
		NimStringDesc* LOC292;
		LOC292 = 0;
		LOC292 = getstrorchar_220308(a);
		result = newstrnodet_276024(LOC292, n);
	}
	break;
	case ((NU8) 123):
	{
		result = a;
	}
	break;
	case ((NU8) 124):
	{
		NimStringDesc* LOC295;
		LOC295 = 0;
		LOC295 = ordinalvaltostring_276052(a);
		result = newstrnodet_276024(LOC295, n);
	}
	break;
	case ((NU8) 157):
	{
		result = copytree_219822(a);
		asgnRefNoCycle((void**) (&(*result).typ), (*n).typ);
	}
	break;
	case ((NU8) 214):
	{
		NimStringDesc* LOC298;
		NIM_BOOL LOC299;
		LOC298 = 0;
		LOC298 = getstr_220303(a);
		LOC299 = 0;
		LOC299 = testcompileoption_201609(LOC298, (*n).info);
		result = newintnodet_276016(((NI64) (LOC299)), n);
	}
	break;
	case ((NU8) 215):
	{
		NimStringDesc* LOC301;
		NimStringDesc* LOC302;
		NIM_BOOL LOC303;
		LOC301 = 0;
		LOC301 = getstr_220303(a);
		LOC302 = 0;
		LOC302 = getstr_220303(b);
		LOC303 = 0;
		LOC303 = testcompileoptionarg_201493(LOC301, LOC302, (*n).info);
		result = newintnodet_276016(((NI64) (LOC303)), n);
	}
	break;
	case ((NU8) 94):
	{
		NIM_BOOL LOC305;
		LOC305 = 0;
		LOC305 = exprstructuralequivalent_240099(a, b, NIM_TRUE);
		result = newintnodet_276016(((NI64) (LOC305)), n);
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode215790*, magiccall_277015)(Tsym215822* m, Tnode215790* n) {
	Tnode215790* result;
	Tsym215822* s;
	Tnode215790* a;
	Tnode215790* b;
	Tnode215790* c;
{	result = 0;
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_218351(n);
		if (!(LOC3 <= ((NI) 1))) goto LA4;
		goto BeforeRet;
	}
	LA4: ;
	s = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
	a = getconstexpr_276001(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_218351(n);
		if (!(((NI) 2) < LOC12)) goto LA13;
		b = getconstexpr_276001(m, (*n).kindU.S6.sons->data[((NI) 2)]);
		{
			if (!(b == NIM_NIL)) goto LA17;
			goto BeforeRet;
		}
		LA17: ;
		{
			NI LOC21;
			LOC21 = 0;
			LOC21 = sonslen_218351(n);
			if (!(((NI) 3) < LOC21)) goto LA22;
			c = getconstexpr_276001(m, (*n).kindU.S6.sons->data[((NI) 3)]);
			{
				if (!(c == NIM_NIL)) goto LA26;
				goto BeforeRet;
			}
			LA26: ;
		}
		LA22: ;
	}
	LA13: ;
	result = evalop_276005((*s).magic, n, a, b, c);
	}BeforeRet: ;
	return result;
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell47504* c;
	c = usrtocell_51440(p);
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3;
		rtladdzct_53001(c);
	}
	LA3: ;
}

N_NIMCALL(Tnode215790*, foldconstrstr_277455)(Tsym215822* m, Tnode215790* n) {
	Tnode215790* result;
	NimStringDesc* LOC1;
{	result = 0;
	result = newnodeit_217801(((NU8) 20), (*n).info, (*n).typ);
	LOC1 = 0;
	LOC1 = (*result).kindU.S3.strval; (*result).kindU.S3.strval = copyStringRC1(((NimStringDesc*) &TMP3420));
	if (LOC1) nimGCunrefNoCycle(LOC1);
	{
		NI i_277472;
		NI HEX3Atmp_277489;
		NI LOC3;
		NI res_277492;
		i_277472 = 0;
		HEX3Atmp_277489 = 0;
		LOC3 = 0;
		LOC3 = sonslen_218351(n);
		HEX3Atmp_277489 = (NI)(LOC3 - ((NI) 1));
		res_277492 = ((NI) 1);
		{
			while (1) {
				Tnode215790* a;
				NimStringDesc* LOC10;
				if (!(res_277492 <= HEX3Atmp_277489)) goto LA5;
				i_277472 = res_277492;
				a = getconstexpr_276001(m, (*n).kindU.S6.sons->data[i_277472]);
				{
					if (!(a == NIM_NIL)) goto LA8;
					result = NIM_NIL;
					goto BeforeRet;
				}
				LA8: ;
				LOC10 = 0;
				LOC10 = getstrorchar_220308(a);
				(*result).kindU.S3.strval = resizeString((*result).kindU.S3.strval, LOC10->Sup.len + 0);
appendString((*result).kindU.S3.strval, LOC10);
				res_277492 += ((NI) 1);
			} LA5: ;
		}
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode215790*, evalis_276470)(Tnode215790* n, Tnode215790* a) {
	Tnode215790* result;
	Ttype215828* 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_188183(TMP3421);
		internalerror_188113(LOC7);
	}
	LA5: ;
	{
		NIM_BOOL LOC10;
		NI LOC11;
		Tnode215790* LOC13;
		NimStringDesc* LOC16;
		LOC10 = 0;
		LOC11 = 0;
		LOC11 = sonslen_218351(n);
		LOC10 = (LOC11 == ((NI) 3));
		if (!(LOC10)) goto LA12;
		LOC13 = 0;
		LOC13 = HEX5BHEX5D_216238(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_188183(TMP3423);
		internalerror_188113(LOC16);
	}
	LA14: ;
	t1 = (*(*a).kindU.S4.sym).typ;
	{
		Tnode215790* LOC19;
		Tnode215790* LOC22;
		NimStringDesc* LOC23;
		LOC19 = 0;
		LOC19 = HEX5BHEX5D_216238(n, ((NI) 2));
		if (!((*LOC19).kind >= ((NU8) 20) && (*LOC19).kind <= ((NU8) 22))) goto LA20;
		LOC22 = 0;
		LOC22 = HEX5BHEX5D_216238(n, ((NI) 2));
		LOC23 = 0;
		LOC23 = nsuNormalize((*LOC22).kindU.S3.strval);
		if (eqStrings(LOC23, ((NimStringDesc*) &TMP3424))) goto LA24;
		if (eqStrings(LOC23, ((NimStringDesc*) &TMP3425))) goto LA25;
		goto LA26;
		LA24: ;
		{
			Ttype215828* t;
			NIM_BOOL LOC29;
			NIM_BOOL LOC30;
			t = skiptypes_219113(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 &(1U<<((NU)(((NU8) 14))&31U)))!=0));
			LA32: ;
			result = newintnode_216659(((NU8) 6), ((NI64) (LOC29)));
		}
		goto LA27;
		LA25: ;
		{
			Ttype215828* t;
			NIM_BOOL LOC34;
			NIM_BOOL LOC35;
			t = skiptypes_219113(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 &(1U<<((NU)(((NU8) 14))&31U)))!=0);
			LA37: ;
			result = newintnode_216659(((NU8) 6), ((NI64) (LOC34)));
		}
		goto LA27;
		LA26: ;
		{
		}
		LA27: ;
	}
	goto LA17;
	LA20: ;
	{
		Ttype215828* t2;
		Tnode215790* LOC40;
		NIM_BOOL match;
		LOC40 = 0;
		LOC40 = HEX5BHEX5D_216238(n, ((NI) 2));
		t2 = (*LOC40).typ;
		match = sametype_245628(t1, t2, 0);
		result = newintnode_216659(((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_19439;
	return result;
}

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

static N_INLINE(void, rtladdcycleroot_52220)(Cell47504* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_48247((&gch_49859.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, incref_53819)(Cell47504* c) {
	(*c).refcount = (NI)((NU64)((*c).refcount) + (NU64)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_51458(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_52220(c);
	}
	LA4: ;
}

static N_INLINE(void, decref_53401)(Cell47504* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3;
		rtladdzct_53001(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_51458(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_52220(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Cell47504* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_51440(src);
		incref_53819(LOC5);
	}
	LA3: ;
	{
		Cell47504* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_51440((*dest));
		decref_53401(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

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

N_NIMCALL(void, rangecheck_277102)(Tnode215790* n, NI64 value) {
	{
		NIM_BOOL LOC3;
		NI64 LOC4;
		NI64 LOC6;
		NimStringDesc* LOC9;
		NimStringDesc* LOC10;
		NimStringDesc* LOC11;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = firstord_241001((*n).typ);
		LOC3 = (value < LOC4);
		if (LOC3) goto LA5;
		LOC6 = 0;
		LOC6 = lastord_241004((*n).typ);
		LOC3 = (LOC6 < value);
		LA5: ;
		if (!LOC3) goto LA7;
		LOC9 = 0;
		LOC10 = 0;
		LOC10 = nimInt64ToStr(value);
		LOC11 = 0;
		LOC11 = typetostring_241017((*n).typ, ((NU8) 0));
		LOC9 = rawNewString(LOC10->Sup.len + LOC11->Sup.len + 19);
appendString(LOC9, ((NimStringDesc*) &TMP3426));
appendString(LOC9, LOC10);
appendString(LOC9, ((NimStringDesc*) &TMP3427));
appendString(LOC9, LOC11);
		localerror_188080((*n).info, ((NU16) 4), LOC9);
	}
	LA7: ;
}

N_NIMCALL(Tnode215790*, foldconv_277106)(Tnode215790* n, Tnode215790* a, NIM_BOOL check) {
	Tnode215790* result;
	Ttype215828* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = skiptypes_219113((*n).typ, IL64(211106233624832));
	switch ((*LOC1).kind) {
	case ((NU8) 31) ... ((NU8) 35):
	case ((NU8) 40) ... ((NU8) 44):
	{
		Ttype215828* LOC3;
		LOC3 = 0;
		LOC3 = skiptypes_219113((*a).typ, IL64(211106233624832));
		switch ((*LOC3).kind) {
		case ((NU8) 36) ... ((NU8) 38):
		{
			NF LOC5;
			LOC5 = 0;
			LOC5 = getfloat_220298(a);
			result = newintnodet_276016(((NI64) (((NI) (LOC5)))), n);
		}
		break;
		case ((NU8) 2):
		{
			NI64 LOC7;
			LOC7 = 0;
			LOC7 = getordvalue_241118(a);
			result = newintnodet_276016(LOC7, n);
		}
		break;
		default:
		{
			result = a;
			asgnRefNoCycle((void**) (&(*result).typ), (*n).typ);
		}
		break;
		}
		{
			if (!check) goto LA11;
			rangecheck_277102(n, (*result).kindU.S1.intval);
		}
		LA11: ;
	}
	break;
	case ((NU8) 36) ... ((NU8) 38):
	{
		Ttype215828* LOC14;
		LOC14 = 0;
		LOC14 = skiptypes_219113((*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_241118(a);
			result = newfloatnodet_276020(((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(Tnode215790*, foldarrayaccess_277140)(Tsym215822* m, Tnode215790* n) {
	Tnode215790* result;
	Tnode215790* x;
	Tnode215790* y;
	NI64 idx;
{	result = 0;
	x = getconstexpr_276001(m, (*n).kindU.S6.sons->data[((NI) 0)]);
	{
		NIM_BOOL LOC3;
		Ttype215828* LOC5;
		LOC3 = 0;
		LOC3 = (x == NIM_NIL);
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = skiptypes_219113((*x).typ, 2048);
		LOC3 = ((*LOC5).kind == ((NU8) 8));
		LA4: ;
		if (!LOC3) goto LA6;
		goto BeforeRet;
	}
	LA6: ;
	y = getconstexpr_276001(m, (*n).kindU.S6.sons->data[((NI) 1)]);
	{
		if (!(y == NIM_NIL)) goto LA10;
		goto BeforeRet;
	}
	LA10: ;
	idx = getordvalue_241118(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_218351(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_188080((*n).info, ((NU16) 86), ((NimStringDesc*) &TMP3420));
		}
		LA13: ;
	}
	break;
	case ((NU8) 41):
	{
		NI64 LOC26;
		LOC26 = 0;
		LOC26 = firstord_241001((*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_216059(x);
			LOC29 = (idx < ((NI64) (LOC31)));
			LA30: ;
			if (!LOC29) goto LA32;
			result = (*x).kindU.S6.sons->data[idx];
		}
		goto LA27;
		LA32: ;
		{
			localerror_188080((*n).info, ((NU16) 86), ((NimStringDesc*) &TMP3420));
		}
		LA27: ;
	}
	break;
	case ((NU8) 20) ... ((NU8) 22):
	{
		result = newnodeit_217801(((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_188080((*n).info, ((NU16) 86), ((NimStringDesc*) &TMP3420));
		}
		LA36: ;
	}
	break;
	default:
	{
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode215790*, foldfieldaccess_277209)(Tsym215822* m, Tnode215790* n) {
	Tnode215790* result;
	Tnode215790* x;
	Tsym215822* field;
{	result = 0;
	x = getconstexpr_276001(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_277415;
		NI HEX3Atmp_277447;
		NI HEX3Atmp_277448;
		NI LOC8;
		NI res_277451;
		i_277415 = 0;
		HEX3Atmp_277447 = 0;
		HEX3Atmp_277448 = 0;
		HEX3Atmp_277447 = ((*x).kind == ((NU8) 38));
		LOC8 = 0;
		LOC8 = sonslen_218351(x);
		HEX3Atmp_277448 = (NI)(LOC8 - ((NI) 1));
		res_277451 = ((NI) (HEX3Atmp_277447));
		{
			while (1) {
				Tnode215790* it;
				if (!(res_277451 <= HEX3Atmp_277448)) goto LA10;
				i_277415 = res_277451;
				it = (*x).kindU.S6.sons->data[i_277415];
				{
					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_277415]).kindU.S6.sons->data[((NI) 1)];
					goto BeforeRet;
				}
				LA21: ;
				res_277451 += ((NI) 1);
			} LA10: ;
		}
	}
	localerror_188080((*n).info, ((NU16) 214), (*(*field).name).s);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode215790*, getconstexpr_276001)(Tsym215822* m, Tnode215790* n) {
	Tnode215790* volatile result;
{	result = 0;
	result = NIM_NIL;
	switch ((*n).kind) {
	case ((NU8) 3):
	{
		Tsym215822* s;
		s = (*n).kindU.S4.sym;
		switch ((*s).kind) {
		case ((NU8) 19):
		{
			result = newintnodet_276016(((NI64) ((*s).position)), n);
		}
		break;
		case ((NU8) 10):
		{
			switch ((*s).magic) {
			case ((NU8) 203):
			{
				result = newintnodet_276016(((NI64) ((((*m).flags &(1U<<((NU)(((NU8) 12))&31U)))!=0))), n);
			}
			break;
			case ((NU8) 204):
			{
				NimStringDesc* LOC6;
				LOC6 = 0;
				LOC6 = ntgetDateStr();
				result = newstrnodet_276024(LOC6, n);
			}
			break;
			case ((NU8) 205):
			{
				NimStringDesc* LOC8;
				LOC8 = 0;
				LOC8 = ntgetClockStr();
				result = newstrnodet_276024(LOC8, n);
			}
			break;
			case ((NU8) 207):
			{
				result = newintnodet_276016(((NI64) (Cpu_168476[(targetcpu_168601)- 1].Field2)), n);
			}
			break;
			case ((NU8) 208):
			{
				NimStringDesc* LOC11;
				LOC11 = 0;
				LOC11 = nsuToLowerStr(Os_168055[(targetos_168603)- 1].Field0);
				result = newstrnodet_276024(LOC11, n);
			}
			break;
			case ((NU8) 209):
			{
				NimStringDesc* LOC13;
				LOC13 = 0;
				LOC13 = nsuToLowerStr(Cpu_168476[(targetcpu_168601)- 1].Field0);
				result = newstrnodet_276024(LOC13, n);
			}
			break;
			case ((NU8) 210):
			{
				result = getapptype_277068(n);
			}
			break;
			case ((NU8) 211):
			{
				result = newfloatnodet_276020(NAN, n);
			}
			break;
			case ((NU8) 212):
			{
				result = newfloatnodet_276020(INF, n);
			}
			break;
			case ((NU8) 213):
			{
				result = newfloatnodet_276020(-INF, n);
			}
			break;
			default:
			{
				{
					if (!!((((*s).flags &(1U<<((NU)(((NU8) 25))&31U)))!=0))) goto LA21;
					result = copytree_219822((*s).ast);
				}
				LA21: ;
			}
			break;
			}
		}
		break;
		case ((NU8) 12):
		case ((NU8) 13):
		{
			result = n;
		}
		break;
		case ((NU8) 7):
		{
			result = newsymnodetypedesc_277496(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_277496(s, (*n).info);
			}
			LA26: ;
		}
		break;
		default:
		{
		}
		break;
		}
	}
	break;
	case ((NU8) 5) ... ((NU8) 23):
	{
		result = copynode_219542(n);
	}
	break;
	case ((NU8) 48):
	{
		result = getconstifexpr_276826(m, n);
	}
	break;
	case ((NU8) 27):
	case ((NU8) 29):
	case ((NU8) 30):
	case ((NU8) 31):
	case ((NU8) 26):
	case ((NU8) 28):
	case ((NU8) 32):
	{
		Tsym215822* s;
		TSafePoint TMP3408;
		{
			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(&TMP3408);
		TMP3408.status = setjmp(TMP3408.context);
		if (TMP3408.status == 0) {
			switch ((*s).magic) {
			case ((NU8) 0):
			{
				popSafePoint();
				goto BeforeRet;
			}
			break;
			case ((NU8) 9):
			{
				Tnode215790* a;
				a = (*n).kindU.S6.sons->data[((NI) 1)];
				{
					NI64 LOC52;
					LOC52 = 0;
					LOC52 = computesize_241121((*a).typ);
					if (!(LOC52 < IL64(0))) goto LA53;
					localerror_188080((*a).info, ((NU16) 81), ((NimStringDesc*) &TMP3409));
					result = NIM_NIL;
				}
				goto LA50;
				LA53: ;
				{
					Ttype215828* LOC56;
					NI64 LOC59;
					LOC56 = 0;
					LOC56 = skiptypes_219113((*a).typ, IL64(211106232576256));
					if (!((IL64(1161083061026822) &((NU64)1<<((NU)((*LOC56).kind)&63U)))!=0)) goto LA57;
					LOC59 = 0;
					LOC59 = getsize_241124((*a).typ);
					result = newintnodet_276016(LOC59, n);
				}
				goto LA50;
				LA57: ;
				{
					result = NIM_NIL;
				}
				LA50: ;
			}
			break;
			case ((NU8) 7):
			{
				NI64 LOC62;
				LOC62 = 0;
				LOC62 = firstord_241001((*(*n).kindU.S6.sons->data[((NI) 1)]).typ);
				result = newintnodet_276016(LOC62, n);
			}
			break;
			case ((NU8) 8):
			{
				{
					Ttype215828* LOC66;
					Tnode215790* LOC69;
					Ttype215828* LOC70;
					NI64 LOC71;
					LOC66 = 0;
					LOC66 = skiptypes_219113((*(*n).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106240964864));
					if (!!(((IL64(281475933011968) &((NU64)1<<((NU)((*LOC66).kind)&63U)))!=0))) goto LA67;
					LOC69 = 0;
					LOC69 = HEX5BHEX5D_216238(n, ((NI) 1));
					LOC70 = 0;
					LOC70 = skiptypes_219113((*LOC69).typ, IL64(211106240964864));
					LOC71 = 0;
					LOC71 = lastord_241004(LOC70);
					result = newintnodet_276016(LOC71, n);
				}
				goto LA64;
				LA67: ;
				{
					Tnode215790* a;
					a = getarrayconstr_277114(m, (*n).kindU.S6.sons->data[((NI) 1)]);
					{
						NI LOC77;
						if (!((*a).kind == ((NU8) 41))) goto LA75;
						LOC77 = 0;
						LOC77 = sonslen_218351(a);
						result = newintnodet_276016(((NI64) ((NI)(LOC77 - ((NI) 1)))), n);
					}
					LA75: ;
				}
				LA64: ;
			}
			break;
			case ((NU8) 32):
			{
				Tnode215790* a;
				a = getarrayconstr_277114(m, (*n).kindU.S6.sons->data[((NI) 1)]);
				{
					NI LOC83;
					if (!((*a).kind == ((NU8) 41))) goto LA81;
					LOC83 = 0;
					LOC83 = sonslen_218351(a);
					result = newintnodet_276016(((NI64) (LOC83)), n);
				}
				goto LA79;
				LA81: ;
				{
					result = magiccall_277015(m, n);
				}
				LA79: ;
			}
			break;
			case ((NU8) 34):
			{
				NI64 LOC86;
				LOC86 = 0;
				LOC86 = lengthord_241007((*(*n).kindU.S6.sons->data[((NI) 1)]).typ);
				result = newintnodet_276016(LOC86, n);
			}
			break;
			case ((NU8) 153):
			{
				Tnode215790* LOC88;
				NimStringDesc* LOC89;
				LOC88 = 0;
				LOC88 = HEX5BHEX5D_216238(n, ((NI) 1));
				LOC89 = 0;
				LOC89 = rendertree_234044(LOC88, 4);
				result = newstrnodet_276024(LOC89, n);
			}
			break;
			case ((NU8) 137):
			{
				result = foldconstrstr_277455(m, n);
			}
			break;
			case ((NU8) 11):
			{
				Tnode215790* a;
				Tnode215790* LOC92;
				LOC92 = 0;
				LOC92 = HEX5BHEX5D_216238(n, ((NI) 1));
				a = getconstexpr_276001(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_276470(n, a);
				}
				LA99: ;
			}
			break;
			default:
			{
				result = magiccall_277015(m, n);
			}
			break;
			}
			popSafePoint();
		}
		else {
			popSafePoint();
			if (isObj(getCurrentException()->Sup.m_type, (&NTI3640))) {
				TMP3408.status = 0;
				localerror_188080((*n).info, ((NU16) 80), ((NimStringDesc*) &TMP3420));
				popCurrentException();
			}
			else 			if (isObj(getCurrentException()->Sup.m_type, (&NTI3638))) {
				TMP3408.status = 0;
				localerror_188080((*n).info, ((NU16) 77), ((NimStringDesc*) &TMP3420));
				popCurrentException();
			}
		}
		if (TMP3408.status != 0) reraiseException();
	}
	break;
	case ((NU8) 63):
	{
		Tnode215790* a;
		a = getconstexpr_276001(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_219822(n);
		{
			NI i_277732;
			NI HEX3Atmp_278022;
			NI LOC112;
			NI res_278025;
			i_277732 = 0;
			HEX3Atmp_278022 = 0;
			LOC112 = 0;
			LOC112 = sonslen_218351(n);
			HEX3Atmp_278022 = (NI)(LOC112 - ((NI) 1));
			res_278025 = ((NI) 0);
			{
				while (1) {
					Tnode215790* a;
					if (!(res_278025 <= HEX3Atmp_278022)) goto LA114;
					i_277732 = res_278025;
					a = getconstexpr_276001(m, (*n).kindU.S6.sons->data[i_277732]);
					{
						if (!(a == NIM_NIL)) goto LA117;
						result = NIM_NIL;
						goto BeforeRet;
					}
					LA117: ;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_277732]), a);
					res_278025 += ((NI) 1);
				} LA114: ;
			}
		}
		(*result).flags |= ((NU16)1)<<((((NU8) 4))%(sizeof(NU16)*8));
	}
	break;
	case ((NU8) 44):
	{
		Tnode215790* a;
		Tnode215790* b;
		a = getconstexpr_276001(m, (*n).kindU.S6.sons->data[((NI) 0)]);
		{
			if (!(a == NIM_NIL)) goto LA122;
			goto BeforeRet;
		}
		LA122: ;
		b = getconstexpr_276001(m, (*n).kindU.S6.sons->data[((NI) 1)]);
		{
			if (!(b == NIM_NIL)) goto LA126;
			goto BeforeRet;
		}
		LA126: ;
		result = copynode_219542(n);
		addson_217807(result, a);
		addson_217807(result, b);
	}
	break;
	case ((NU8) 39):
	{
		result = copytree_219822(n);
		{
			NI i_277797;
			NI HEX3Atmp_278030;
			NI LOC130;
			NI res_278033;
			i_277797 = 0;
			HEX3Atmp_278030 = 0;
			LOC130 = 0;
			LOC130 = sonslen_218351(n);
			HEX3Atmp_278030 = (NI)(LOC130 - ((NI) 1));
			res_278033 = ((NI) 0);
			{
				while (1) {
					Tnode215790* a;
					if (!(res_278033 <= HEX3Atmp_278030)) goto LA132;
					i_277797 = res_278033;
					a = getconstexpr_276001(m, (*n).kindU.S6.sons->data[i_277797]);
					{
						if (!(a == NIM_NIL)) goto LA135;
						result = NIM_NIL;
						goto BeforeRet;
					}
					LA135: ;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_277797]), a);
					res_278033 += ((NI) 1);
				} LA132: ;
			}
		}
		(*result).flags |= ((NU16)1)<<((((NU8) 4))%(sizeof(NU16)*8));
	}
	break;
	case ((NU8) 38):
	{
		result = copytree_219822(n);
		{
			NI i_277834;
			NI HEX3Atmp_278038;
			NI LOC139;
			NI res_278041;
			i_277834 = 0;
			HEX3Atmp_278038 = 0;
			LOC139 = 0;
			LOC139 = sonslen_218351(n);
			HEX3Atmp_278038 = (NI)(LOC139 - ((NI) 1));
			res_278041 = ((NI) 1);
			{
				while (1) {
					Tnode215790* a;
					if (!(res_278041 <= HEX3Atmp_278038)) goto LA141;
					i_277834 = res_278041;
					a = getconstexpr_276001(m, (*(*n).kindU.S6.sons->data[i_277834]).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_277834]).kindU.S6.sons->data[((NI) 1)]), a);
					res_278041 += ((NI) 1);
				} LA141: ;
			}
		}
		(*result).flags |= ((NU16)1)<<((((NU8) 4))%(sizeof(NU16)*8));
	}
	break;
	case ((NU8) 37):
	{
		result = copytree_219822(n);
		{
			NIM_BOOL LOC149;
			NI LOC150;
			LOC149 = 0;
			LOC150 = 0;
			LOC150 = sonslen_218351(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_277883;
				NI HEX3Atmp_278046;
				NI LOC155;
				NI res_278049;
				i_277883 = 0;
				HEX3Atmp_278046 = 0;
				LOC155 = 0;
				LOC155 = sonslen_218351(n);
				HEX3Atmp_278046 = (NI)(LOC155 - ((NI) 1));
				res_278049 = ((NI) 0);
				{
					while (1) {
						Tnode215790* a;
						if (!(res_278049 <= HEX3Atmp_278046)) goto LA157;
						i_277883 = res_278049;
						a = getconstexpr_276001(m, (*(*n).kindU.S6.sons->data[i_277883]).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_277883]).kindU.S6.sons->data[((NI) 1)]), a);
						res_278049 += ((NI) 1);
					} LA157: ;
				}
			}
		}
		goto LA147;
		LA152: ;
		{
			{
				NI i_277912;
				NI HEX3Atmp_278054;
				NI LOC164;
				NI res_278057;
				i_277912 = 0;
				HEX3Atmp_278054 = 0;
				LOC164 = 0;
				LOC164 = sonslen_218351(n);
				HEX3Atmp_278054 = (NI)(LOC164 - ((NI) 1));
				res_278057 = ((NI) 0);
				{
					while (1) {
						Tnode215790* a;
						if (!(res_278057 <= HEX3Atmp_278054)) goto LA166;
						i_277912 = res_278057;
						a = getconstexpr_276001(m, (*n).kindU.S6.sons->data[i_277912]);
						{
							if (!(a == NIM_NIL)) goto LA169;
							result = NIM_NIL;
							goto BeforeRet;
						}
						LA169: ;
						asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_277912]), a);
						res_278057 += ((NI) 1);
					} LA166: ;
				}
			}
		}
		LA147: ;
		(*result).flags |= ((NU16)1)<<((((NU8) 4))%(sizeof(NU16)*8));
	}
	break;
	case ((NU8) 68):
	case ((NU8) 69):
	case ((NU8) 70):
	{
		Tnode215790* a;
		a = getconstexpr_276001(m, (*n).kindU.S6.sons->data[((NI) 0)]);
		{
			if (!(a == NIM_NIL)) goto LA174;
			goto BeforeRet;
		}
		LA174: ;
		{
			NIM_BOOL LOC178;
			LOC178 = 0;
			LOC178 = levalueconv_276012((*n).kindU.S6.sons->data[((NI) 1)], a);
			if (!(LOC178)) goto LA179;
			LOC178 = levalueconv_276012(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;
			TY185169 LOC184;
			NimStringDesc* LOC185;
			LOC183 = 0;
			LOC183 = msgkindtostring_184743(((NU16) 146));
			memset((void*)LOC184, 0, sizeof(LOC184));
			LOC184[0] = typetostring_241017((*(*n).kindU.S6.sons->data[((NI) 0)]).typ, ((NU8) 0));
			LOC184[1] = typetostring_241017((*n).typ, ((NU8) 0));
			LOC185 = 0;
			LOC185 = nsuFormatOpenArray(LOC183, LOC184, 2);
			localerror_188080((*n).info, ((NU16) 4), LOC185);
		}
		LA176: ;
	}
	break;
	case ((NU8) 71):
	case ((NU8) 72):
	{
		Tnode215790* a;
		a = getconstexpr_276001(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):
	{
		Tnode215790* a;
		a = getconstexpr_276001(m, (*n).kindU.S6.sons->data[((NI) 1)]);
		{
			if (!(a == NIM_NIL)) goto LA194;
			goto BeforeRet;
		}
		LA194: ;
		result = foldconv_277106(n, a, ((*n).kind == ((NU8) 58)));
	}
	break;
	case ((NU8) 61):
	{
		Tnode215790* a;
		a = getconstexpr_276001(m, (*n).kindU.S6.sons->data[((NI) 1)]);
		{
			if (!(a == NIM_NIL)) goto LA199;
			goto BeforeRet;
		}
		LA199: ;
		{
			if (!((IL64(1125900835880960) &((NU64)1<<((NU)((*(*n).typ).kind)&63U)))!=0)) goto LA203;
			result = a;
			asgnRefNoCycle((void**) (&(*result).typ), (*n).typ);
		}
		LA203: ;
	}
	break;
	case ((NU8) 42):
	{
		result = foldarrayaccess_277140(m, n);
	}
	break;
	case ((NU8) 45):
	{
		result = foldfieldaccess_277209(m, n);
	}
	break;
	default:
	{
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

static N_INLINE(NIM_BOOL, isintrange_276136)(Ttype215828* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*t).kind == ((NU8) 20));
	if (!(LOC1)) goto LA2;
	LOC1 = ((IL64(15459734781952) &((NU64)1<<((NU)((*(*t).sons->data[((NI) 0)]).kind)&63U)))!=0);
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(Ttype215828*, makerange_276203)(Ttype215828* typ, NI64 first, NI64 last) {
	Ttype215828* result;
	NI64 mina;
	NI64 maxa;
	Tnode215790* lowernode;
	result = 0;
	mina = ((first <= last) ? first : last);
	maxa = ((first >= last) ? first : last);
	lowernode = newintnode_216659(((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_259627(lowernode);
	}
	goto LA1;
	LA5: ;
	{
		if (!((IL64(18691697672192) &((NU64)1<<((NU)((*typ).kind)&63U)))!=0)) goto LA8;
		result = typ;
	}
	goto LA1;
	LA8: ;
	{
		Tnode215790* n;
		Tnode215790* LOC11;
		Ttype215828* LOC12;
		n = newnode_216401(((NU8) 44));
		addson_217807(n, lowernode);
		LOC11 = 0;
		LOC11 = newintnode_216659(((NU8) 6), maxa);
		addson_217807(n, LOC11);
		result = newtype_218107(((NU8) 20), (*typ).owner);
		asgnRefNoCycle((void**) (&(*result).n), n);
		LOC12 = 0;
		LOC12 = skiptypes_219113(typ, 1048576);
		addsonskipintlit_259680(result, LOC12);
	}
	LA1: ;
	return result;
}

static N_INLINE(NIM_BOOL, isfloatrange_276112)(Ttype215828* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*t).kind == ((NU8) 20));
	if (!(LOC1)) goto LA2;
	LOC1 = ((IL64(1030792151040) &((NU64)1<<((NU)((*(*t).sons->data[((NI) 0)]).kind)&63U)))!=0);
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(Ttype215828*, makerangef_276242)(Ttype215828* typ, NF first, NF last) {
	Ttype215828* result;
	Tnode215790* n;
	Tnode215790* LOC1;
	Tnode215790* LOC2;
	Ttype215828* LOC3;
	result = 0;
	n = newnode_216401(((NU8) 44));
	LOC1 = 0;
	LOC1 = newfloatnode_216671(((NU8) 16), ((first <= last) ? first : last));
	addson_217807(n, LOC1);
	LOC2 = 0;
	LOC2 = newfloatnode_216671(((NU8) 16), ((first >= last) ? first : last));
	addson_217807(n, LOC2);
	result = newtype_218107(((NU8) 20), (*typ).owner);
	asgnRefNoCycle((void**) (&(*result).n), n);
	LOC3 = 0;
	LOC3 = skiptypes_219113(typ, 1048576);
	addsonskipintlit_259680(result, LOC3);
	return result;
}

static N_INLINE(NIM_BOOL, isintlit_241222)(Ttype215828* 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_276169)(Tnode215790* 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_241222((*n).typ);
		if (!LOC6) goto LA7;
		result = (*(*(*n).typ).n).kindU.S1.intval;
	}
	goto LA1;
	LA7: ;
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = isintrange_276136((*n).typ);
		if (!LOC10) goto LA11;
		result = firstord_241001((*n).typ);
	}
	goto LA1;
	LA11: ;
	{
		internalerror_188100((*n).info, ((NimStringDesc*) &TMP3428));
	}
	LA1: ;
	return result;
}

N_NIMCALL(NI64, pickmaxint_276186)(Tnode215790* 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_241222((*n).typ);
		if (!LOC6) goto LA7;
		result = (*(*(*n).typ).n).kindU.S1.intval;
	}
	goto LA1;
	LA7: ;
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = isintrange_276136((*n).typ);
		if (!LOC10) goto LA11;
		result = lastord_241004((*n).typ);
	}
	goto LA1;
	LA11: ;
	{
		internalerror_188100((*n).info, ((NimStringDesc*) &TMP3429));
	}
	LA1: ;
	return result;
}

N_NIMCALL(NIM_BOOL, isintrangeorlit_276165)(Ttype215828* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = isintrange_276136(t);
	if (LOC1) goto LA2;
	LOC1 = isintlit_241222(t);
	LA2: ;
	result = LOC1;
	return result;
}

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

N_NIMCALL(Ttype215828*, getintervaltype_276262)(NU8 m, Tnode215790* n) {
	Ttype215828* result;
	result = 0;
	result = (*n).typ;
	switch (m) {
	case ((NU8) 95):
	case ((NU8) 96):
	{
		Ttype215828* 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_276136(a);
			if (!LOC4) goto LA5;
			LOC7 = 0;
			LOC7 = lastord_241004(a);
			LOC8 = 0;
			LOC8 = HEX7CHEX2DHEX7C_275012(IL64(0), LOC7);
			LOC9 = 0;
			LOC9 = firstord_241001(a);
			LOC10 = 0;
			LOC10 = HEX7CHEX2DHEX7C_275012(IL64(0), LOC9);
			result = makerange_276203(a, LOC8, LOC10);
		}
		LA5: ;
	}
	break;
	case ((NU8) 102):
	{
		Ttype215828* a;
		a = (*(*n).kindU.S6.sons->data[((NI) 1)]).typ;
		{
			NIM_BOOL LOC14;
			NF LOC17;
			NF LOC18;
			LOC14 = 0;
			LOC14 = isfloatrange_276112(a);
			if (!LOC14) goto LA15;
			LOC17 = 0;
			LOC17 = getfloat_220298((*(*a).n).kindU.S6.sons->data[((NI) 1)]);
			LOC18 = 0;
			LOC18 = getfloat_220298((*(*a).n).kindU.S6.sons->data[((NI) 0)]);
			result = makerangef_276242(a, -(LOC17), -(LOC18));
		}
		LA15: ;
	}
	break;
	case ((NU8) 103):
	{
		Ttype215828* a;
		a = (*(*n).kindU.S6.sons->data[((NI) 1)]).typ;
		{
			NIM_BOOL LOC22;
			LOC22 = 0;
			LOC22 = isfloatrange_276112(a);
			if (!LOC22) goto LA23;
			{
				Tnode215790* LOC27;
				NF LOC30;
				LOC27 = 0;
				LOC27 = HEX5BHEX5D_216238((*a).n, ((NI) 0));
				if (!((*LOC27).kindU.S2.floatval <= 0.0)) goto LA28;
				LOC30 = 0;
				LOC30 = getfloat_220298((*(*a).n).kindU.S6.sons->data[((NI) 0)]);
				result = makerangef_276242(a, 0.0, (LOC30 > 0? (LOC30) : -(LOC30)));
			}
			goto LA25;
			LA28: ;
			{
				NF LOC32;
				NF LOC33;
				LOC32 = 0;
				LOC32 = getfloat_220298((*(*a).n).kindU.S6.sons->data[((NI) 1)]);
				LOC33 = 0;
				LOC33 = getfloat_220298((*(*a).n).kindU.S6.sons->data[((NI) 0)]);
				result = makerangef_276242(a, (LOC32 > 0? (LOC32) : -(LOC32)), (LOC33 > 0? (LOC33) : -(LOC33)));
			}
			LA25: ;
		}
		LA23: ;
	}
	break;
	case ((NU8) 97):
	{
		Ttype215828* a;
		a = (*(*n).kindU.S6.sons->data[((NI) 1)]).typ;
		{
			NIM_BOOL LOC37;
			LOC37 = 0;
			LOC37 = isintrange_276136(a);
			if (!LOC37) goto LA38;
			{
				Tnode215790* LOC42;
				NI64 LOC45;
				NI64 LOC46;
				LOC42 = 0;
				LOC42 = HEX5BHEX5D_216238((*a).n, ((NI) 0));
				if (!((*LOC42).kindU.S1.intval <= IL64(0))) goto LA43;
				LOC45 = 0;
				LOC45 = getint_220293((*(*a).n).kindU.S6.sons->data[((NI) 0)]);
				LOC46 = 0;
				LOC46 = HEX7CabsHEX7C_275017(LOC45);
				result = makerange_276203(a, IL64(0), LOC46);
			}
			goto LA40;
			LA43: ;
			{
				NI64 LOC48;
				NI64 LOC49;
				NI64 LOC50;
				NI64 LOC51;
				LOC48 = 0;
				LOC48 = getint_220293((*(*a).n).kindU.S6.sons->data[((NI) 1)]);
				LOC49 = 0;
				LOC49 = HEX7CabsHEX7C_275017(LOC48);
				LOC50 = 0;
				LOC50 = getint_220293((*(*a).n).kindU.S6.sons->data[((NI) 0)]);
				LOC51 = 0;
				LOC51 = HEX7CabsHEX7C_275017(LOC50);
				result = makerange_276203(a, LOC49, LOC51);
			}
			LA40: ;
		}
		LA38: ;
	}
	break;
	case ((NU8) 49):
	{
		Ttype215828* a;
		Ttype215828* 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_276136(a);
			if (!(LOC55)) goto LA56;
			LOC55 = isintlit_241222(b);
			LA56: ;
			if (!LOC55) goto LA57;
			LOC59 = 0;
			LOC59 = pickminint_276169((*n).kindU.S6.sons->data[((NI) 1)]);
			LOC60 = 0;
			LOC60 = pickminint_276169((*n).kindU.S6.sons->data[((NI) 2)]);
			LOC61 = 0;
			LOC61 = HEX7CHEX2BHEX7C_275007(LOC59, LOC60);
			LOC62 = 0;
			LOC62 = pickmaxint_276186((*n).kindU.S6.sons->data[((NI) 1)]);
			LOC63 = 0;
			LOC63 = pickmaxint_276186((*n).kindU.S6.sons->data[((NI) 2)]);
			LOC64 = 0;
			LOC64 = HEX7CHEX2BHEX7C_275007(LOC62, LOC63);
			result = makerange_276203(a, LOC61, LOC64);
		}
		LA57: ;
	}
	break;
	case ((NU8) 50):
	{
		Ttype215828* a;
		Ttype215828* 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_276136(a);
			if (!(LOC68)) goto LA69;
			LOC68 = isintlit_241222(b);
			LA69: ;
			if (!LOC68) goto LA70;
			LOC72 = 0;
			LOC72 = pickminint_276169((*n).kindU.S6.sons->data[((NI) 1)]);
			LOC73 = 0;
			LOC73 = pickminint_276169((*n).kindU.S6.sons->data[((NI) 2)]);
			LOC74 = 0;
			LOC74 = HEX7CHEX2DHEX7C_275012(LOC72, LOC73);
			LOC75 = 0;
			LOC75 = pickmaxint_276186((*n).kindU.S6.sons->data[((NI) 1)]);
			LOC76 = 0;
			LOC76 = pickmaxint_276186((*n).kindU.S6.sons->data[((NI) 2)]);
			LOC77 = 0;
			LOC77 = HEX7CHEX2DHEX7C_275012(LOC75, LOC76);
			result = makerange_276203(a, LOC74, LOC77);
		}
		LA70: ;
	}
	break;
	case ((NU8) 44):
	case ((NU8) 64):
	{
		Tnode215790* a_276323;
		Tnode215790* b_276325;
		a_276323 = (*n).kindU.S6.sons->data[((NI) 1)];
		b_276325 = (*n).kindU.S6.sons->data[((NI) 2)];
		{
			NIM_BOOL LOC81;
			Ttype215828* LOC85;
			NI64 LOC86;
			NI64 LOC87;
			NI64 LOC88;
			NI64 LOC89;
			NI64 LOC90;
			NI64 LOC91;
			LOC81 = 0;
			LOC81 = isintrangeorlit_276165((*a_276323).typ);
			if (!(LOC81)) goto LA82;
			LOC81 = isintrangeorlit_276165((*b_276325).typ);
			LA82: ;
			if (!LOC81) goto LA83;
			LOC85 = 0;
			LOC85 = pickintrange_276160((*a_276323).typ, (*b_276325).typ);
			LOC86 = 0;
			LOC86 = pickminint_276169(a_276323);
			LOC87 = 0;
			LOC87 = pickminint_276169(b_276325);
			LOC88 = 0;
			LOC88 = HEX7CHEX2BHEX7C_275007(LOC86, LOC87);
			LOC89 = 0;
			LOC89 = pickmaxint_276186(a_276323);
			LOC90 = 0;
			LOC90 = pickmaxint_276186(b_276325);
			LOC91 = 0;
			LOC91 = HEX7CHEX2BHEX7C_275007(LOC89, LOC90);
			result = makerange_276203(LOC85, LOC88, LOC91);
		}
		LA83: ;
	}
	break;
	case ((NU8) 46):
	case ((NU8) 66):
	{
		Tnode215790* a_276329;
		Tnode215790* b_276331;
		a_276329 = (*n).kindU.S6.sons->data[((NI) 1)];
		b_276331 = (*n).kindU.S6.sons->data[((NI) 2)];
		{
			NIM_BOOL LOC95;
			Ttype215828* LOC99;
			NI64 LOC100;
			NI64 LOC101;
			NI64 LOC102;
			NI64 LOC103;
			NI64 LOC104;
			NI64 LOC105;
			LOC95 = 0;
			LOC95 = isintrangeorlit_276165((*a_276329).typ);
			if (!(LOC95)) goto LA96;
			LOC95 = isintrangeorlit_276165((*b_276331).typ);
			LA96: ;
			if (!LOC95) goto LA97;
			LOC99 = 0;
			LOC99 = pickintrange_276160((*a_276329).typ, (*b_276331).typ);
			LOC100 = 0;
			LOC100 = pickminint_276169(a_276329);
			LOC101 = 0;
			LOC101 = pickminint_276169(b_276331);
			LOC102 = 0;
			LOC102 = HEX7CHEX2AHEX7C_275031(LOC100, LOC101);
			LOC103 = 0;
			LOC103 = pickmaxint_276186(a_276329);
			LOC104 = 0;
			LOC104 = pickmaxint_276186(b_276331);
			LOC105 = 0;
			LOC105 = HEX7CHEX2AHEX7C_275031(LOC103, LOC104);
			result = makerange_276203(LOC99, LOC102, LOC105);
		}
		LA97: ;
	}
	break;
	case ((NU8) 45):
	case ((NU8) 65):
	{
		Tnode215790* a_276335;
		Tnode215790* b_276337;
		a_276335 = (*n).kindU.S6.sons->data[((NI) 1)];
		b_276337 = (*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_276136((*a_276335).typ);
			if (!(LOC109)) goto LA110;
			LOC109 = ((*b_276337).kind >= ((NU8) 6) && (*b_276337).kind <= ((NU8) 15));
			LA110: ;
			if (!LOC109) goto LA111;
			LOC113 = 0;
			LOC113 = pickminint_276169(a_276335);
			LOC114 = 0;
			LOC114 = pickminint_276169(b_276337);
			LOC115 = 0;
			LOC115 = HEX7CHEX2DHEX7C_275012(LOC113, LOC114);
			LOC116 = 0;
			LOC116 = pickmaxint_276186(a_276335);
			LOC117 = 0;
			LOC117 = pickmaxint_276186(b_276337);
			LOC118 = 0;
			LOC118 = HEX7CHEX2DHEX7C_275012(LOC116, LOC117);
			result = makerange_276203((*a_276335).typ, LOC115, LOC118);
		}
		LA111: ;
	}
	break;
	case ((NU8) 57):
	{
		Tnode215790* a;
		Tnode215790* b;
		a = (*n).kindU.S6.sons->data[((NI) 1)];
		b = (*n).kindU.S6.sons->data[((NI) 2)];
		{
			Tnode215790* 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_275007((*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_276203((*a).typ, IL64(0), (*b).kindU.S1.intval);
			}
			LA133: ;
		}
		LA127: ;
	}
	break;
	case ((NU8) 68):
	{
		Tnode215790* a;
		Tnode215790* 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_276203((*a).typ, IL64(0), (NI64)((*b).kindU.S1.intval - IL64(1)));
			}
			goto LA140;
			LA142: ;
			{
				result = makerange_276203((*a).typ, (NI64)((*b).kindU.S1.intval + IL64(1)), IL64(0));
			}
			LA140: ;
		}
		LA138: ;
	}
	break;
	case ((NU8) 48):
	{
		Tnode215790* a;
		Tnode215790* 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_276203((*a).typ, -((NI64)((*b).kindU.S1.intval - IL64(1))), (NI64)((*b).kindU.S1.intval - IL64(1)));
			}
			goto LA150;
			LA152: ;
			{
				result = makerange_276203((*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):
	{
		Tnode215790* a_276426;
		Tnode215790* b_276428;
		a_276426 = (*n).kindU.S6.sons->data[((NI) 1)];
		b_276428 = (*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_276136((*a_276426).typ);
			if (!(LOC158)) goto LA159;
			LOC158 = ((*b_276428).kind >= ((NU8) 6) && (*b_276428).kind <= ((NU8) 15));
			LA159: ;
			if (!LOC158) goto LA160;
			LOC162 = 0;
			LOC162 = pickminint_276169(a_276426);
			LOC163 = 0;
			LOC163 = pickminint_276169(b_276428);
			LOC164 = 0;
			LOC164 = HEX7CdivHEX7C_275021(LOC162, LOC163);
			LOC165 = 0;
			LOC165 = pickmaxint_276186(a_276426);
			LOC166 = 0;
			LOC166 = pickmaxint_276186(b_276428);
			LOC167 = 0;
			LOC167 = HEX7CdivHEX7C_275021(LOC165, LOC166);
			result = makerange_276203((*a_276426).typ, LOC164, LOC167);
		}
		LA160: ;
	}
	break;
	case ((NU8) 60):
	{
		Tnode215790* a_276443;
		Tnode215790* b_276445;
		a_276443 = (*n).kindU.S6.sons->data[((NI) 1)];
		b_276445 = (*n).kindU.S6.sons->data[((NI) 2)];
		{
			NIM_BOOL LOC171;
			Ttype215828* LOC175;
			NI64 LOC176;
			NI64 LOC177;
			NI64 LOC178;
			NI64 LOC179;
			LOC171 = 0;
			LOC171 = isintrangeorlit_276165((*a_276443).typ);
			if (!(LOC171)) goto LA172;
			LOC171 = isintrangeorlit_276165((*b_276445).typ);
			LA172: ;
			if (!LOC171) goto LA173;
			LOC175 = 0;
			LOC175 = pickintrange_276160((*a_276443).typ, (*b_276445).typ);
			LOC176 = 0;
			LOC176 = pickminint_276169(a_276443);
			LOC177 = 0;
			LOC177 = pickminint_276169(b_276445);
			LOC178 = 0;
			LOC178 = pickmaxint_276186(a_276443);
			LOC179 = 0;
			LOC179 = pickmaxint_276186(b_276445);
			result = makerange_276203(LOC175, ((LOC176 <= LOC177) ? LOC176 : LOC177), ((LOC178 <= LOC179) ? LOC178 : LOC179));
		}
		LA173: ;
	}
	break;
	case ((NU8) 61):
	{
		Tnode215790* a_276457;
		Tnode215790* b_276459;
		a_276457 = (*n).kindU.S6.sons->data[((NI) 1)];
		b_276459 = (*n).kindU.S6.sons->data[((NI) 2)];
		{
			NIM_BOOL LOC183;
			Ttype215828* LOC187;
			NI64 LOC188;
			NI64 LOC189;
			NI64 LOC190;
			NI64 LOC191;
			LOC183 = 0;
			LOC183 = isintrangeorlit_276165((*a_276457).typ);
			if (!(LOC183)) goto LA184;
			LOC183 = isintrangeorlit_276165((*b_276459).typ);
			LA184: ;
			if (!LOC183) goto LA185;
			LOC187 = 0;
			LOC187 = pickintrange_276160((*a_276457).typ, (*b_276459).typ);
			LOC188 = 0;
			LOC188 = pickminint_276169(a_276457);
			LOC189 = 0;
			LOC189 = pickminint_276169(b_276459);
			LOC190 = 0;
			LOC190 = pickmaxint_276186(a_276457);
			LOC191 = 0;
			LOC191 = pickmaxint_276186(b_276459);
			result = makerange_276203(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) {
}

