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

#include "nimbase.h"
#include <string.h>
typedef struct Tsym225841 Tsym225841;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Cell48946 Cell48946;
typedef struct TNimType TNimType;
typedef struct Cellseq48962 Cellseq48962;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48958 Cellset48958;
typedef struct Pagedesc48954 Pagedesc48954;
typedef struct Memregion30891 Memregion30891;
typedef struct Smallchunk30843 Smallchunk30843;
typedef struct Llchunk30885 Llchunk30885;
typedef struct Bigchunk30845 Bigchunk30845;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30889 Avlnode30889;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Tnodeseq225803 Tnodeseq225803;
typedef struct Tnode225809 Tnode225809;
typedef struct Ttype225847 Ttype225847;
typedef struct Tlineinfo190352 Tlineinfo190352;
typedef struct Tident198021 Tident198021;
typedef struct Tidobj198015 Tidobj198015;
typedef struct TNimObject TNimObject;
typedef struct TNimNode TNimNode;
typedef struct Ttypeseq225843 Ttypeseq225843;
typedef struct Tscope225835 Tscope225835;
typedef struct TY225944 TY225944;
typedef struct Tstrtable225813 Tstrtable225813;
typedef struct Tsymseq225811 Tsymseq225811;
typedef struct Tloc225823 Tloc225823;
typedef struct Ropeobj176009 Ropeobj176009;
typedef struct Tlib225827 Tlib225827;
typedef struct TY259855 TY259855;
typedef struct TY90959 TY90959;
typedef struct Treplacements360219 Treplacements360219;
typedef struct TY360220 TY360220;
typedef struct Basechunk30841 Basechunk30841;
typedef struct Freecell30833 Freecell30833;
typedef struct Tinstantiation225831 Tinstantiation225831;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct TY225932 TY225932;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Cell48946  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48962  {
NI len;
NI cap;
Cell48946** d;
};
struct  Cellset48958  {
NI counter;
NI max;
Pagedesc48954* head;
Pagedesc48954** data;
};
typedef Smallchunk30843* TY30906[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30891  {
NI minlargeobj;
NI maxlargeobj;
TY30906 freesmallchunks;
Llchunk30885* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30845* freechunkslist;
Intset30817 chunkstarts;
Avlnode30889* root;
Avlnode30889* deleted;
Avlnode30889* last;
Avlnode30889* freeavlnodes;
};
struct  Gcstat51014  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51018  {
Gcstack51016* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq48962 zct;
Cellseq48962 decstack;
Cellset48958 cycleroots;
Cellseq48962 tempstack;
NI recgclock;
Memregion30891 region;
Gcstat51014 stat;
};
struct  Tlineinfo190352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode225809  {
Ttype225847* typ;
Tlineinfo190352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym225841* sym;
} S4;
struct {Tident198021* ident;
} S5;
struct {Tnodeseq225803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef N_NIMCALL_PTR(void, TY3889) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3894) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3889 marker;
TY3894 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj198015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable225813  {
NI counter;
Tsymseq225811* data;
};
struct  Tloc225823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype225847* t;
Ropeobj176009* r;
Ropeobj176009* heaproot;
};
struct  Tsym225841  {
  Tidobj198015 Sup;
NU8 kind;
union{
struct {Ttypeseq225843* typeinstcache;
Tscope225835* typscope;
} S1;
struct {TY225944* procinstcache;
Tsym225841* gcunsafetyreason;
} S2;
struct {TY225944* usedgenerics;
Tstrtable225813 tab;
} S3;
struct {Tsym225841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype225847* typ;
Tident198021* name;
Tlineinfo190352 info;
Tsym225841* owner;
NU32 flags;
Tnode225809* ast;
NU32 options;
NI position;
NI offset;
Tloc225823 loc;
Tlib225827* annex;
Tnode225809* constraint;
};
struct  Tident198021  {
  Tidobj198015 Sup;
NimStringDesc* s;
Tident198021* next;
NI h;
};
struct TY259855 {
NI Field0;
NI Field1;
};
struct TY90959 {
NimStringDesc* Field0;
NI Field1;
};
struct  Ttype225847  {
  Tidobj198015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq225843* sons;
Tnode225809* n;
Tsym225841* owner;
Tsym225841* sym;
Tsym225841* destructor;
Tsym225841* deepcopy;
Tsym225841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc225823 loc;
};
typedef NU8 TY495057[32];
struct TY360220 {
Tnode225809* Field0;
Tnode225809* Field1;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30822[8];
struct  Pagedesc48954  {
Pagedesc48954* next;
NI key;
TY30822 bits;
};
struct  Basechunk30841  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30843  {
  Basechunk30841 Sup;
Smallchunk30843* next;
Smallchunk30843* prev;
Freecell30833* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30885  {
NI size;
NI acc;
Llchunk30885* next;
};
struct  Bigchunk30845  {
  Basechunk30841 Sup;
Bigchunk30845* next;
Bigchunk30845* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30822 bits;
};
typedef Avlnode30889* TY30896[2];
struct  Avlnode30889  {
TY30896 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope225835  {
NI depthlevel;
Tstrtable225813 symbols;
Tnodeseq225803* usingsyms;
Tscope225835* parent;
};
struct  Ropeobj176009  {
  TNimObject Sup;
Ropeobj176009* left;
Ropeobj176009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Tlib225827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj176009* name;
Tnode225809* path;
};
struct  Freecell30833  {
Freecell30833* next;
NI zerofield;
};
struct  Tinstantiation225831  {
Tsym225841* sym;
Ttypeseq225843* concretetypes;
TY225932* usedby;
NI compilesid;
};
struct Tnodeseq225803 {
  TGenericSeq Sup;
  Tnode225809* data[SEQ_DECL_SIZE];
};
struct Treplacements360219 {
  TGenericSeq Sup;
  TY360220 data[SEQ_DECL_SIZE];
};
struct Ttypeseq225843 {
  TGenericSeq Sup;
  Ttype225847* data[SEQ_DECL_SIZE];
};
struct TY225944 {
  TGenericSeq Sup;
  Tinstantiation225831* data[SEQ_DECL_SIZE];
};
struct Tsymseq225811 {
  TGenericSeq Sup;
  Tsym225841* data[SEQ_DECL_SIZE];
};
struct TY225932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Tsym225841*, createmagic_231048)(NimStringDesc* name, NU8 m);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell48946*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48946* c);
N_NOINLINE(void, addzct_52617)(Cellseq48962* s, Cell48946* c);
N_NIMCALL(NU8, doesimply_359193)(Tnodeseq225803* facts, Tnode225809* prop);
N_NIMCALL(NU8, factimplies_359143)(Tnode225809* fact, Tnode225809* prop);
N_NIMCALL(NU8, getmagic_254417)(Tnode225809* op);
N_NIMCALL(NU8, HEX7E_359133)(NU8 x);
N_NIMCALL(NU8, impliesisnil_358995)(Tnode225809* fact, Tnode225809* eq);
N_NIMCALL(NIM_BOOL, sametree_358462)(Tnode225809* a, Tnode225809* b);
N_NIMCALL(Tsym225841*, canonopr_358451)(Tsym225841* opr);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NI, sonslen_228387)(Tnode225809* n);
N_NIMCALL(NU8, valueisnil_358965)(Tnode225809* n);
N_NIMCALL(Tnode225809*, skipconv_264935)(Tnode225809* n);
N_NIMCALL(void, internalerror_196172)(Tlineinfo190352 info, NimStringDesc* errmsg);
N_NIMCALL(NU8, implieseq_358724)(Tnode225809* fact, Tnode225809* eq);
N_NIMCALL(NIM_BOOL, islocation_357116)(Tnode225809* n);
N_NIMCALL(NIM_BOOL, isvalue_357095)(Tnode225809* n);
N_NIMCALL(NIM_BOOL, valuesunequal_358711)(Tnode225809* a, Tnode225809* b);
N_NIMCALL(NIM_BOOL, samevalue_233324)(Tnode225809* a, Tnode225809* b);
N_NIMCALL(NIM_BOOL, inset_276019)(Tnode225809* s, Tnode225809* elem);
N_NIMCALL(NU8, impliesle_359060)(Tnode225809* fact, Tnode225809* x, Tnode225809* c);
N_NIMCALL(NU8, impliesge_359019)(Tnode225809* fact, Tnode225809* x, Tnode225809* c);
N_NIMCALL(void, internalerror_196191)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_196279)(TY90959 x);
N_NIMCALL(NIM_BOOL, levalue_233374)(Tnode225809* a, Tnode225809* b);
N_NIMCALL(Tnode225809*, pred_357809)(Tnode225809* n);
N_NIMCALL(Tnode225809*, copynode_229660)(Tnode225809* src);
N_NIMCALL(NU8, implieslt_359095)(Tnode225809* fact, Tnode225809* x, Tnode225809* c);
N_NIMCALL(NU8, impliesin_358930)(Tnode225809* fact, Tnode225809* loc, Tnode225809* aset);
N_NIMCALL(NU8, comparesets_358918)(Tnode225809* a, Tnode225809* b);
N_NIMCALL(NIM_BOOL, equalsets_276082)(Tnode225809* a, Tnode225809* b);
static N_INLINE(NI, len_226098)(Tnode225809* n);
N_NIMCALL(Tnode225809*, intersectsets_276061)(Tnode225809* a, Tnode225809* b);
N_NIMCALL(NU8, leimpliesin_358760)(Tnode225809* x, Tnode225809* c, Tnode225809* aset);
N_NIMCALL(Tnode225809*, newintnode_226607)(NU8 kind, NI64 intval);
N_NIMCALL(NI64, firstord_255004)(Ttype225847* t);
N_NIMCALL(NU8, geimpliesin_358839)(Tnode225809* x, Tnode225809* c, Tnode225809* aset);
N_NIMCALL(NI64, lastord_255010)(Ttype225847* t);
N_NIMCALL(Tnode225809*, neg_357323)(Tnode225809* n);
N_NIMCALL(Tnode225809*, swapargs_357307)(Tnode225809* fact, Tsym225841* newop);
N_NIMCALL(Tnode225809*, newnodei_227407)(NU8 kind, Tlineinfo190352 info, NI children);
N_NIMCALL(Tnode225809*, newsymnode_227325)(Tsym225841* sym);
N_NIMCALL(Ttype225847*, skiptypes_229167)(Ttype225847* t, NU64 kinds);
N_NIMCALL(Tnode225809*, newnodeit_227807)(NU8 kind, Tlineinfo190352 info, Ttype225847* typ);
N_NIMCALL(void, add_226165)(Tnode225809* father, Tnode225809* son);
N_NIMCALL(NI64, lengthord_255016)(Ttype225847* t);
N_NIMCALL(Tnode225809*, complement_276550)(Tnode225809* a);
N_NIMCALL(Tnode225809*, buildcall_357478)(Tsym225841* op, Tnode225809* a);
N_NIMCALL(Tnode225809*, buildproperfieldcheck_361183)(Tnode225809* access, Tnode225809* check);
N_NIMCALL(Tnode225809*, copytree_230028)(Tnode225809* src);
N_NIMCALL(void, message_196161)(Tlineinfo190352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_247059)(Tnode225809* n, NU8 renderflags);
N_NIMCALL(NIM_BOOL, hassubtree_358618)(Tnode225809* n, Tnode225809* x);
static N_INLINE(NI, safelen_226126)(Tnode225809* n);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(NIM_BOOL, isletlocation_357239)(Tnode225809* m, NIM_BOOL isapprox);
N_NIMCALL(NIM_BOOL, isconstexpr_254442)(Tnode225809* n);
N_NIMCALL(NIM_BOOL, islet_357127)(Tnode225809* n);
N_NIMCALL(NIM_BOOL, isvar_357179)(Tnode225809* n);
N_NIMCALL(Tnode225809*, buildof_360882)(Tnode225809* it, Tnode225809* loc);
N_NIMCALL(Ttype225847*, settype_360872)(Tnode225809* n);
N_NIMCALL(Ttype225847*, newtype_228140)(NU8 kind, Tsym225841* owner);
N_NIMCALL(void, addsonskipintlit_274731)(Ttype225847* father, Ttype225847* son);
N_NIMCALL(Tnode225809*, buildelse_360929)(Tnode225809* n);
N_NIMCALL(Tnode225809*, usefulfact_358172)(Tnode225809* n);
static N_INLINE(Tnode225809*, HEX5BHEX5D_226244)(Tnode225809* n, NI i);
N_NIMCALL(Tnode225809*, lastson_228406)(Tnode225809* n);
N_NIMCALL(void, addfact_358392)(Tnodeseq225803** m, Tnode225809* nn);
N_NIMCALL(Tnode225809*, shallowcopy_229817)(Tnode225809* src);
N_NIMCALL(Tnode225809*, canon_357843)(Tnode225809* n);
N_NIMCALL(Tnode225809*, buildcall_357491)(Tsym225841* op, Tnode225809* a, Tnode225809* b);
N_NIMCALL(Tnode225809*, minusone_357693)(void);
N_NIMCALL(Tnode225809*, negate_357618)(Tnode225809* a, Tnode225809* b_357621, Tnode225809* res);
N_NIMCALL(NI64, HEX7CHEX2BHEX7C_292019)(NI64 a, NI64 b);
N_NIMCALL(Tnode225809*, reassociation_357767)(Tnode225809* n);
N_NIMCALL(Tnode225809*, HEX7CHEX2BHEX7C_357506)(Tnode225809* a, Tnode225809* b);
N_NIMCALL(Tnode225809*, HEX7CHEX2AHEX7C_357562)(Tnode225809* a, Tnode225809* b);
N_NIMCALL(NI64, HEX7CHEX2AHEX7C_292073)(NI64 a, NI64 b);
N_NIMCALL(Tnode225809*, zero_357675)(void);
N_NIMCALL(Tnode225809*, HEX7CHEX2DHEX7C_357534)(Tnode225809* a, Tnode225809* b);
N_NIMCALL(NI64, HEX7CHEX2DHEX7C_292030)(NI64 a, NI64 b);
N_NIMCALL(NU8, ple_359630)(Tnodeseq225803* m, Tnode225809* a, Tnode225809* b);
N_NIMCALL(NIM_BOOL, isordinaltype_255093)(Ttype225847* t);
N_NIMCALL(Tnode225809*, one_357684)(void);
N_NIMCALL(Tnode225809*, HEX7CdivHEX7C_357590)(Tnode225809* a, Tnode225809* b);
N_NIMCALL(NIM_BOOL, isminusone_359600)(Tnode225809* n);
N_NIMCALL(NU8, pleviamodel_359622)(Tnodeseq225803* model, Tnode225809* aa, Tnode225809* bb);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP4268)(void* p, NI op);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(Tnode225809*, applyreplacements_360268)(Tnode225809* n, Treplacements360219* rep);
N_NIMCALL(Tnode225809*, replacesubtree_360226)(Tnode225809* n, Tnode225809* x, Tnode225809* by);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_85804, TNimType* mt);
N_NIMCALL(NU8, pleviamodelrec_360434)(Tnodeseq225803** m, Tnode225809* a, Tnode225809* b);
STRING_LITERAL(TMP984, "<=", 2);
STRING_LITERAL(TMP985, "<", 1);
STRING_LITERAL(TMP986, "and", 3);
STRING_LITERAL(TMP987, "or", 2);
STRING_LITERAL(TMP988, "isnil", 5);
STRING_LITERAL(TMP989, "==", 2);
STRING_LITERAL(TMP990, "+", 1);
STRING_LITERAL(TMP991, "-", 1);
STRING_LITERAL(TMP992, "*", 1);
STRING_LITERAL(TMP993, "div", 3);
STRING_LITERAL(TMP994, "len", 3);
STRING_LITERAL(TMP3476, "impliesIsNil", 12);
NIM_CONST TY259855 TMP3477 = {((NI) 1),
((NI) 2)}
;
NIM_CONST TY259855 TMP3478 = {((NI) 2),
((NI) 1)}
;
STRING_LITERAL(TMP3479, "impliesEq", 9);
STRING_LITERAL(TMP3481, "compiler/guards.nim", 19);
NIM_CONST TY90959 TMP3480 = {((NimStringDesc*) &TMP3481),
((NI) 574)}
;
STRING_LITERAL(TMP3482, "impliesGe", 9);
STRING_LITERAL(TMP3483, "impliesLe", 9);
STRING_LITERAL(TMP3484, "impliesIn", 9);
static NIM_CONST TY495057 TMP4266 = {
0x00, 0x01, 0x00, 0x02, 0x3F, 0xF0, 0x7E, 0xF0,
0x20, 0x81, 0x24, 0x53, 0x00, 0x00, 0x00, 0x80,
0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
NIM_CONST TY495057 someadd_357029 = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0A, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
NIM_CONST TY495057 somemul_357033 = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x20, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
static NIM_CONST TY495057 TMP4269 = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x20, 0x81, 0x24, 0x53, 0x00, 0x00, 0x00, 0x80,
0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
static NIM_CONST TY495057 TMP4270 = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x40, 0x2A, 0x49, 0x04, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
Tsym225841* ople_357293;
extern Gcheap51018 gch_51059;
Tsym225841* oplt_357294;
Tsym225841* opand_357295;
Tsym225841* opor_357296;
Tsym225841* opisnil_357297;
Tsym225841* opeq_357298;
Tsym225841* opadd_357299;
Tsym225841* opsub_357300;
Tsym225841* opmul_357301;
Tsym225841* opdiv_357302;
Tsym225841* oplen_357303;
extern Tsym225841* opnot_231060;
extern Tsym225841* opcontains_231061;
TNimType NTI360220; /* tuple[a: PNode, b: PNode] */
extern TNimType NTI225801; /* PNode */
TNimType NTI360219; /* TReplacements */
extern TNimType NTI225803; /* TNodeSeq */

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

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

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

N_NIMCALL(NU8, HEX7E_359133)(NU8 x) {
	NU8 result;
	result = 0;
	switch (x) {
	case ((NU8) 0):
	{
		result = ((NU8) 0);
	}
	break;
	case ((NU8) 1):
	{
		result = ((NU8) 2);
	}
	break;
	case ((NU8) 2):
	{
		result = ((NU8) 1);
	}
	break;
	}
	return result;
}

N_NIMCALL(Tsym225841*, canonopr_358451)(Tsym225841* opr) {
	Tsym225841* result;
	result = 0;
	switch ((*opr).magic) {
	case ((NU8) 69):
	case ((NU8) 72):
	case ((NU8) 79):
	case ((NU8) 82):
	case ((NU8) 85):
	case ((NU8) 88):
	case ((NU8) 94):
	case ((NU8) 89):
	case ((NU8) 127):
	case ((NU8) 130):
	case ((NU8) 92):
	{
		result = opeq_357298;
	}
	break;
	case ((NU8) 70):
	case ((NU8) 73):
	case ((NU8) 75):
	case ((NU8) 77):
	case ((NU8) 80):
	case ((NU8) 83):
	case ((NU8) 86):
	case ((NU8) 90):
	case ((NU8) 128):
	{
		result = ople_357293;
	}
	break;
	case ((NU8) 71):
	case ((NU8) 74):
	case ((NU8) 76):
	case ((NU8) 78):
	case ((NU8) 81):
	case ((NU8) 84):
	case ((NU8) 87):
	case ((NU8) 91):
	case ((NU8) 129):
	{
		result = oplt_357294;
	}
	break;
	case ((NU8) 32):
	case ((NU8) 33):
	case ((NU8) 34):
	case ((NU8) 35):
	case ((NU8) 36):
	case ((NU8) 37):
	{
		result = oplen_357303;
	}
	break;
	case ((NU8) 44):
	case ((NU8) 51):
	case ((NU8) 49):
	{
		result = opadd_357299;
	}
	break;
	case ((NU8) 45):
	case ((NU8) 52):
	case ((NU8) 50):
	{
		result = opsub_357300;
	}
	break;
	case ((NU8) 46):
	case ((NU8) 53):
	{
		result = opmul_357301;
	}
	break;
	case ((NU8) 47):
	case ((NU8) 54):
	{
		result = opdiv_357302;
	}
	break;
	default:
	{
		result = opr;
	}
	break;
	}
	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;
}

N_NIMCALL(NIM_BOOL, sametree_358462)(Tnode225809* a, Tnode225809* b) {
	NIM_BOOL result;
{	result = 0;
	result = NIM_FALSE;
	{
		if (!(a == b)) goto LA3;
		result = NIM_TRUE;
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		NIM_BOOL LOC7;
		LOC6 = 0;
		LOC7 = 0;
		LOC7 = !((a == NIM_NIL));
		if (!(LOC7)) goto LA8;
		LOC7 = !((b == NIM_NIL));
		LA8: ;
		LOC6 = LOC7;
		if (!(LOC6)) goto LA9;
		LOC6 = ((*a).kind == (*b).kind);
		LA9: ;
		if (!LOC6) goto LA10;
		switch ((*a).kind) {
		case ((NU8) 3):
		{
			result = ((*a).kindU.S4.sym == (*b).kindU.S4.sym);
			{
				NIM_BOOL LOC15;
				NIM_BOOL LOC19;
				Tsym225841* LOC21;
				Tsym225841* LOC22;
				LOC15 = 0;
				LOC15 = !(result);
				if (!(LOC15)) goto LA16;
				LOC15 = !(((*(*a).kindU.S4.sym).magic == ((NU8) 0)));
				LA16: ;
				if (!LOC15) goto LA17;
				LOC19 = 0;
				LOC19 = ((*(*a).kindU.S4.sym).magic == (*(*b).kindU.S4.sym).magic);
				if (LOC19) goto LA20;
				LOC21 = 0;
				LOC21 = canonopr_358451((*a).kindU.S4.sym);
				LOC22 = 0;
				LOC22 = canonopr_358451((*b).kindU.S4.sym);
				LOC19 = (LOC21 == LOC22);
				LA20: ;
				result = LOC19;
			}
			LA17: ;
		}
		break;
		case ((NU8) 2):
		{
			result = ((*(*a).kindU.S5.ident).Sup.id == (*(*b).kindU.S5.ident).Sup.id);
		}
		break;
		case ((NU8) 5) ... ((NU8) 10):
		{
			result = ((*a).kindU.S1.intval == (*b).kindU.S1.intval);
		}
		break;
		case ((NU8) 16) ... ((NU8) 18):
		{
			result = ((*a).kindU.S2.floatval == (*b).kindU.S2.floatval);
		}
		break;
		case ((NU8) 20) ... ((NU8) 22):
		{
			result = eqStrings((*a).kindU.S3.strval, (*b).kindU.S3.strval);
		}
		break;
		case ((NU8) 4):
		{
			result = ((*a).typ == (*b).typ);
		}
		break;
		case ((NU8) 1):
		case ((NU8) 23):
		{
			result = NIM_TRUE;
		}
		break;
		default:
		{
			{
				NI LOC32;
				NI LOC33;
				LOC32 = 0;
				LOC32 = sonslen_228387(a);
				LOC33 = 0;
				LOC33 = sonslen_228387(b);
				if (!(LOC32 == LOC33)) goto LA34;
				{
					NI i_358592;
					NI HEX3Atmp_358596;
					NI LOC37;
					NI res_358599;
					i_358592 = 0;
					HEX3Atmp_358596 = 0;
					LOC37 = 0;
					LOC37 = sonslen_228387(a);
					HEX3Atmp_358596 = (NI)(LOC37 - ((NI) 1));
					res_358599 = ((NI) 0);
					{
						while (1) {
							if (!(res_358599 <= HEX3Atmp_358596)) goto LA39;
							i_358592 = res_358599;
							{
								NIM_BOOL LOC42;
								LOC42 = 0;
								LOC42 = sametree_358462((*a).kindU.S6.sons->data[i_358592], (*b).kindU.S6.sons->data[i_358592]);
								if (!!(LOC42)) goto LA43;
								goto BeforeRet;
							}
							LA43: ;
							res_358599 += ((NI) 1);
						} LA39: ;
					}
				}
				result = NIM_TRUE;
			}
			LA34: ;
		}
		break;
		}
	}
	goto LA1;
	LA10: ;
	LA1: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NU8, valueisnil_358965)(Tnode225809* n) {
	NU8 result;
	result = 0;
	{
		if (!((*n).kind == ((NU8) 23))) goto LA3;
		result = ((NU8) 2);
	}
	goto LA1;
	LA3: ;
	{
		if (!((*n).kind >= ((NU8) 20) && (*n).kind <= ((NU8) 22) || (*n).kind == ((NU8) 41) || (*n).kind == ((NU8) 38))) goto LA6;
		result = ((NU8) 1);
	}
	goto LA1;
	LA6: ;
	{
		result = ((NU8) 0);
	}
	LA1: ;
	return result;
}

N_NIMCALL(NU8, impliesisnil_358995)(Tnode225809* fact, Tnode225809* eq) {
	NU8 result;
	result = 0;
	switch ((*(*(*fact).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).magic) {
	case ((NU8) 156):
	{
		{
			NIM_BOOL LOC4;
			LOC4 = 0;
			LOC4 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 1)], (*eq).kindU.S6.sons->data[((NI) 1)]);
			if (!LOC4) goto LA5;
			result = ((NU8) 2);
		}
		LA5: ;
	}
	break;
	case ((NU8) 69):
	case ((NU8) 72):
	case ((NU8) 79):
	case ((NU8) 82):
	case ((NU8) 85):
	case ((NU8) 88):
	case ((NU8) 94):
	case ((NU8) 89):
	case ((NU8) 127):
	case ((NU8) 130):
	case ((NU8) 92):
	{
		{
			NIM_BOOL LOC10;
			Tnode225809* LOC13;
			LOC10 = 0;
			LOC10 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 1)], (*eq).kindU.S6.sons->data[((NI) 1)]);
			if (!LOC10) goto LA11;
			LOC13 = 0;
			LOC13 = skipconv_264935((*fact).kindU.S6.sons->data[((NI) 2)]);
			result = valueisnil_358965(LOC13);
		}
		goto LA8;
		LA11: ;
		{
			NIM_BOOL LOC15;
			Tnode225809* LOC18;
			LOC15 = 0;
			LOC15 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 2)], (*eq).kindU.S6.sons->data[((NI) 1)]);
			if (!LOC15) goto LA16;
			LOC18 = 0;
			LOC18 = skipconv_264935((*fact).kindU.S6.sons->data[((NI) 1)]);
			result = valueisnil_358965(LOC18);
		}
		goto LA8;
		LA16: ;
		LA8: ;
	}
	break;
	case ((NU8) 98):
	case ((NU8) 126):
	case ((NU8) 125):
	{
		internalerror_196172((*eq).info, ((NimStringDesc*) &TMP3476));
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

N_NIMCALL(NIM_BOOL, isvalue_357095)(Tnode225809* n) {
	NIM_BOOL result;
	result = 0;
	result = ((*n).kind >= ((NU8) 5) && (*n).kind <= ((NU8) 23));
	return result;
}

N_NIMCALL(NIM_BOOL, islocation_357116)(Tnode225809* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = isvalue_357095(n);
	result = !(LOC1);
	return result;
}

N_NIMCALL(NIM_BOOL, valuesunequal_358711)(Tnode225809* a, Tnode225809* b) {
	NIM_BOOL result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC7;
		LOC3 = 0;
		LOC3 = isvalue_357095(a);
		if (!(LOC3)) goto LA4;
		LOC3 = isvalue_357095(b);
		LA4: ;
		if (!LOC3) goto LA5;
		LOC7 = 0;
		LOC7 = samevalue_233324(a, b);
		result = !(LOC7);
	}
	LA5: ;
	return result;
}

N_NIMCALL(NU8, implieseq_358724)(Tnode225809* fact, Tnode225809* eq) {
	NU8 result;
	TY259855 LOC1;
	NI loc;
	NI val;
	result = 0;
	{
		NIM_BOOL LOC4;
		LOC4 = 0;
		LOC4 = islocation_357116((*eq).kindU.S6.sons->data[((NI) 1)]);
		if (!LOC4) goto LA5;
		LOC1 = TMP3477;
	}
	goto LA2;
	LA5: ;
	{
		LOC1 = TMP3478;
	}
	LA2: ;
	loc = LOC1.Field0;
	val = LOC1.Field1;
	switch ((*(*(*fact).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).magic) {
	case ((NU8) 69):
	case ((NU8) 72):
	case ((NU8) 79):
	case ((NU8) 82):
	case ((NU8) 85):
	case ((NU8) 88):
	case ((NU8) 94):
	case ((NU8) 89):
	case ((NU8) 127):
	case ((NU8) 130):
	case ((NU8) 92):
	{
		{
			NIM_BOOL LOC11;
			LOC11 = 0;
			LOC11 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 1)], (*eq).kindU.S6.sons->data[loc]);
			if (!LOC11) goto LA12;
			{
				NIM_BOOL LOC16;
				LOC16 = 0;
				LOC16 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 2)], (*eq).kindU.S6.sons->data[val]);
				if (!LOC16) goto LA17;
				result = ((NU8) 2);
			}
			goto LA14;
			LA17: ;
			{
				NIM_BOOL LOC20;
				LOC20 = 0;
				LOC20 = valuesunequal_358711((*fact).kindU.S6.sons->data[((NI) 2)], (*eq).kindU.S6.sons->data[val]);
				if (!LOC20) goto LA21;
				result = ((NU8) 1);
			}
			goto LA14;
			LA21: ;
			LA14: ;
		}
		goto LA9;
		LA12: ;
		{
			NIM_BOOL LOC24;
			LOC24 = 0;
			LOC24 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 2)], (*eq).kindU.S6.sons->data[loc]);
			if (!LOC24) goto LA25;
			{
				NIM_BOOL LOC29;
				LOC29 = 0;
				LOC29 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 1)], (*eq).kindU.S6.sons->data[val]);
				if (!LOC29) goto LA30;
				result = ((NU8) 2);
			}
			goto LA27;
			LA30: ;
			{
				NIM_BOOL LOC33;
				LOC33 = 0;
				LOC33 = valuesunequal_358711((*fact).kindU.S6.sons->data[((NI) 1)], (*eq).kindU.S6.sons->data[val]);
				if (!LOC33) goto LA34;
				result = ((NU8) 1);
			}
			goto LA27;
			LA34: ;
			LA27: ;
		}
		goto LA9;
		LA25: ;
		LA9: ;
	}
	break;
	case ((NU8) 147):
	{
		{
			NIM_BOOL LOC39;
			LOC39 = 0;
			LOC39 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 2)], (*eq).kindU.S6.sons->data[loc]);
			if (!(LOC39)) goto LA40;
			LOC39 = isvalue_357095((*eq).kindU.S6.sons->data[val]);
			LA40: ;
			if (!LOC39) goto LA41;
			{
				NIM_BOOL LOC45;
				LOC45 = 0;
				LOC45 = inset_276019((*fact).kindU.S6.sons->data[((NI) 1)], (*eq).kindU.S6.sons->data[val]);
				if (!LOC45) goto LA46;
				result = ((NU8) 2);
			}
			goto LA43;
			LA46: ;
			{
				result = ((NU8) 1);
			}
			LA43: ;
		}
		LA41: ;
	}
	break;
	case ((NU8) 98):
	case ((NU8) 126):
	case ((NU8) 125):
	{
		internalerror_196172((*eq).info, ((NimStringDesc*) &TMP3479));
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode225809*, pred_357809)(Tnode225809* n) {
	Tnode225809* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*n).kind >= ((NU8) 5) && (*n).kind <= ((NU8) 15));
		if (!(LOC3)) goto LA4;
		LOC3 = !(((*n).kindU.S1.intval == (IL64(-9223372036854775807) - IL64(1))));
		LA4: ;
		if (!LOC3) goto LA5;
		result = copynode_229660(n);
		(*result).kindU.S1.intval -= ((NI) 1);
	}
	goto LA1;
	LA5: ;
	{
		result = n;
	}
	LA1: ;
	return result;
}

N_NIMCALL(NU8, impliesge_359019)(Tnode225809* fact, Tnode225809* x, Tnode225809* c) {
	NU8 result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NimStringDesc* LOC6;
		LOC3 = 0;
		LOC3 = islocation_357116(x);
		if (!!(LOC3)) goto LA4;
		LOC6 = 0;
		LOC6 = HEX24_196279(TMP3480);
		internalerror_196191(LOC6);
	}
	LA4: ;
	switch ((*(*(*fact).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).magic) {
	case ((NU8) 69):
	case ((NU8) 72):
	case ((NU8) 79):
	case ((NU8) 82):
	case ((NU8) 85):
	case ((NU8) 88):
	case ((NU8) 94):
	case ((NU8) 89):
	case ((NU8) 127):
	case ((NU8) 130):
	case ((NU8) 92):
	{
		{
			NIM_BOOL LOC10;
			LOC10 = 0;
			LOC10 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 1)], x);
			if (!LOC10) goto LA11;
			{
				NIM_BOOL LOC15;
				LOC15 = 0;
				LOC15 = isvalue_357095((*fact).kindU.S6.sons->data[((NI) 2)]);
				if (!(LOC15)) goto LA16;
				LOC15 = isvalue_357095(c);
				LA16: ;
				if (!LOC15) goto LA17;
				{
					NIM_BOOL LOC21;
					LOC21 = 0;
					LOC21 = levalue_233374(c, (*fact).kindU.S6.sons->data[((NI) 2)]);
					if (!LOC21) goto LA22;
					result = ((NU8) 2);
				}
				goto LA19;
				LA22: ;
				{
					result = ((NU8) 1);
				}
				LA19: ;
			}
			LA17: ;
		}
		goto LA8;
		LA11: ;
		{
			NIM_BOOL LOC26;
			LOC26 = 0;
			LOC26 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 2)], x);
			if (!LOC26) goto LA27;
			{
				NIM_BOOL LOC31;
				LOC31 = 0;
				LOC31 = isvalue_357095((*fact).kindU.S6.sons->data[((NI) 1)]);
				if (!(LOC31)) goto LA32;
				LOC31 = isvalue_357095(c);
				LA32: ;
				if (!LOC31) goto LA33;
				{
					NIM_BOOL LOC37;
					LOC37 = 0;
					LOC37 = levalue_233374(c, (*fact).kindU.S6.sons->data[((NI) 1)]);
					if (!LOC37) goto LA38;
					result = ((NU8) 2);
				}
				goto LA35;
				LA38: ;
				{
					result = ((NU8) 1);
				}
				LA35: ;
			}
			LA33: ;
		}
		goto LA8;
		LA27: ;
		LA8: ;
	}
	break;
	case ((NU8) 71):
	case ((NU8) 74):
	case ((NU8) 76):
	case ((NU8) 78):
	case ((NU8) 81):
	case ((NU8) 84):
	case ((NU8) 87):
	case ((NU8) 91):
	case ((NU8) 129):
	{
		{
			NIM_BOOL LOC44;
			LOC44 = 0;
			LOC44 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 1)], x);
			if (!LOC44) goto LA45;
			{
				NIM_BOOL LOC49;
				LOC49 = 0;
				LOC49 = isvalue_357095((*fact).kindU.S6.sons->data[((NI) 2)]);
				if (!(LOC49)) goto LA50;
				LOC49 = isvalue_357095(c);
				LA50: ;
				if (!LOC49) goto LA51;
				{
					NIM_BOOL LOC55;
					LOC55 = 0;
					LOC55 = levalue_233374((*fact).kindU.S6.sons->data[((NI) 2)], c);
					if (!LOC55) goto LA56;
					result = ((NU8) 1);
				}
				LA56: ;
			}
			LA51: ;
		}
		goto LA42;
		LA45: ;
		{
			NIM_BOOL LOC59;
			LOC59 = 0;
			LOC59 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 2)], x);
			if (!LOC59) goto LA60;
			{
				NIM_BOOL LOC64;
				LOC64 = 0;
				LOC64 = isvalue_357095((*fact).kindU.S6.sons->data[((NI) 1)]);
				if (!(LOC64)) goto LA65;
				LOC64 = isvalue_357095(c);
				LA65: ;
				if (!LOC64) goto LA66;
				{
					Tnode225809* LOC70;
					NIM_BOOL LOC71;
					LOC70 = 0;
					LOC70 = pred_357809(c);
					LOC71 = 0;
					LOC71 = levalue_233374(LOC70, (*fact).kindU.S6.sons->data[((NI) 1)]);
					if (!LOC71) goto LA72;
					result = ((NU8) 2);
				}
				LA72: ;
			}
			LA66: ;
		}
		goto LA42;
		LA60: ;
		LA42: ;
	}
	break;
	case ((NU8) 70):
	case ((NU8) 73):
	case ((NU8) 75):
	case ((NU8) 77):
	case ((NU8) 80):
	case ((NU8) 83):
	case ((NU8) 86):
	case ((NU8) 90):
	case ((NU8) 128):
	{
		{
			NIM_BOOL LOC77;
			LOC77 = 0;
			LOC77 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 1)], x);
			if (!LOC77) goto LA78;
			{
				NIM_BOOL LOC82;
				LOC82 = 0;
				LOC82 = isvalue_357095((*fact).kindU.S6.sons->data[((NI) 2)]);
				if (!(LOC82)) goto LA83;
				LOC82 = isvalue_357095(c);
				LA83: ;
				if (!LOC82) goto LA84;
				{
					NIM_BOOL LOC88;
					LOC88 = 0;
					LOC88 = levalue_233374((*fact).kindU.S6.sons->data[((NI) 2)], c);
					if (!LOC88) goto LA89;
					result = ((NU8) 1);
				}
				LA89: ;
			}
			LA84: ;
		}
		goto LA75;
		LA78: ;
		{
			NIM_BOOL LOC92;
			LOC92 = 0;
			LOC92 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 2)], x);
			if (!LOC92) goto LA93;
			{
				NIM_BOOL LOC97;
				LOC97 = 0;
				LOC97 = isvalue_357095((*fact).kindU.S6.sons->data[((NI) 1)]);
				if (!(LOC97)) goto LA98;
				LOC97 = isvalue_357095(c);
				LA98: ;
				if (!LOC97) goto LA99;
				{
					NIM_BOOL LOC103;
					LOC103 = 0;
					LOC103 = levalue_233374(c, (*fact).kindU.S6.sons->data[((NI) 1)]);
					if (!LOC103) goto LA104;
					result = ((NU8) 2);
				}
				LA104: ;
			}
			LA99: ;
		}
		goto LA75;
		LA93: ;
		LA75: ;
	}
	break;
	case ((NU8) 98):
	case ((NU8) 126):
	case ((NU8) 125):
	{
		internalerror_196172((*x).info, ((NimStringDesc*) &TMP3482));
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

N_NIMCALL(NU8, impliesle_359060)(Tnode225809* fact, Tnode225809* x, Tnode225809* c) {
	NU8 result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = islocation_357116(x);
		if (!!(LOC3)) goto LA4;
		result = impliesge_359019(fact, c, x);
		goto BeforeRet;
	}
	LA4: ;
	switch ((*(*(*fact).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).magic) {
	case ((NU8) 69):
	case ((NU8) 72):
	case ((NU8) 79):
	case ((NU8) 82):
	case ((NU8) 85):
	case ((NU8) 88):
	case ((NU8) 94):
	case ((NU8) 89):
	case ((NU8) 127):
	case ((NU8) 130):
	case ((NU8) 92):
	{
		{
			NIM_BOOL LOC9;
			LOC9 = 0;
			LOC9 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 1)], x);
			if (!LOC9) goto LA10;
			{
				NIM_BOOL LOC14;
				LOC14 = 0;
				LOC14 = isvalue_357095((*fact).kindU.S6.sons->data[((NI) 2)]);
				if (!(LOC14)) goto LA15;
				LOC14 = isvalue_357095(c);
				LA15: ;
				if (!LOC14) goto LA16;
				{
					NIM_BOOL LOC20;
					LOC20 = 0;
					LOC20 = levalue_233374((*fact).kindU.S6.sons->data[((NI) 2)], c);
					if (!LOC20) goto LA21;
					result = ((NU8) 2);
				}
				goto LA18;
				LA21: ;
				{
					result = ((NU8) 1);
				}
				LA18: ;
			}
			LA16: ;
		}
		goto LA7;
		LA10: ;
		{
			NIM_BOOL LOC25;
			LOC25 = 0;
			LOC25 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 2)], x);
			if (!LOC25) goto LA26;
			{
				NIM_BOOL LOC30;
				LOC30 = 0;
				LOC30 = isvalue_357095((*fact).kindU.S6.sons->data[((NI) 1)]);
				if (!(LOC30)) goto LA31;
				LOC30 = isvalue_357095(c);
				LA31: ;
				if (!LOC30) goto LA32;
				{
					NIM_BOOL LOC36;
					LOC36 = 0;
					LOC36 = levalue_233374((*fact).kindU.S6.sons->data[((NI) 1)], c);
					if (!LOC36) goto LA37;
					result = ((NU8) 2);
				}
				goto LA34;
				LA37: ;
				{
					result = ((NU8) 1);
				}
				LA34: ;
			}
			LA32: ;
		}
		goto LA7;
		LA26: ;
		LA7: ;
	}
	break;
	case ((NU8) 71):
	case ((NU8) 74):
	case ((NU8) 76):
	case ((NU8) 78):
	case ((NU8) 81):
	case ((NU8) 84):
	case ((NU8) 87):
	case ((NU8) 91):
	case ((NU8) 129):
	{
		{
			NIM_BOOL LOC43;
			LOC43 = 0;
			LOC43 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 1)], x);
			if (!LOC43) goto LA44;
			{
				NIM_BOOL LOC48;
				LOC48 = 0;
				LOC48 = isvalue_357095((*fact).kindU.S6.sons->data[((NI) 2)]);
				if (!(LOC48)) goto LA49;
				LOC48 = isvalue_357095(c);
				LA49: ;
				if (!LOC48) goto LA50;
				{
					Tnode225809* LOC54;
					NIM_BOOL LOC55;
					LOC54 = 0;
					LOC54 = pred_357809(c);
					LOC55 = 0;
					LOC55 = levalue_233374((*fact).kindU.S6.sons->data[((NI) 2)], LOC54);
					if (!LOC55) goto LA56;
					result = ((NU8) 2);
				}
				LA56: ;
			}
			LA50: ;
		}
		goto LA41;
		LA44: ;
		{
			NIM_BOOL LOC59;
			LOC59 = 0;
			LOC59 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 2)], x);
			if (!LOC59) goto LA60;
			{
				NIM_BOOL LOC64;
				LOC64 = 0;
				LOC64 = isvalue_357095((*fact).kindU.S6.sons->data[((NI) 1)]);
				if (!(LOC64)) goto LA65;
				LOC64 = isvalue_357095(c);
				LA65: ;
				if (!LOC64) goto LA66;
				{
					NIM_BOOL LOC70;
					LOC70 = 0;
					LOC70 = levalue_233374(c, (*fact).kindU.S6.sons->data[((NI) 1)]);
					if (!LOC70) goto LA71;
					result = ((NU8) 1);
				}
				LA71: ;
			}
			LA66: ;
		}
		goto LA41;
		LA60: ;
		LA41: ;
	}
	break;
	case ((NU8) 70):
	case ((NU8) 73):
	case ((NU8) 75):
	case ((NU8) 77):
	case ((NU8) 80):
	case ((NU8) 83):
	case ((NU8) 86):
	case ((NU8) 90):
	case ((NU8) 128):
	{
		{
			NIM_BOOL LOC76;
			LOC76 = 0;
			LOC76 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 1)], x);
			if (!LOC76) goto LA77;
			{
				NIM_BOOL LOC81;
				LOC81 = 0;
				LOC81 = isvalue_357095((*fact).kindU.S6.sons->data[((NI) 2)]);
				if (!(LOC81)) goto LA82;
				LOC81 = isvalue_357095(c);
				LA82: ;
				if (!LOC81) goto LA83;
				{
					NIM_BOOL LOC87;
					LOC87 = 0;
					LOC87 = levalue_233374((*fact).kindU.S6.sons->data[((NI) 2)], c);
					if (!LOC87) goto LA88;
					result = ((NU8) 2);
				}
				LA88: ;
			}
			LA83: ;
		}
		goto LA74;
		LA77: ;
		{
			NIM_BOOL LOC91;
			LOC91 = 0;
			LOC91 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 2)], x);
			if (!LOC91) goto LA92;
			{
				NIM_BOOL LOC96;
				LOC96 = 0;
				LOC96 = isvalue_357095((*fact).kindU.S6.sons->data[((NI) 1)]);
				if (!(LOC96)) goto LA97;
				LOC96 = isvalue_357095(c);
				LA97: ;
				if (!LOC96) goto LA98;
				{
					Tnode225809* LOC102;
					NIM_BOOL LOC103;
					LOC102 = 0;
					LOC102 = pred_357809((*fact).kindU.S6.sons->data[((NI) 1)]);
					LOC103 = 0;
					LOC103 = levalue_233374(c, LOC102);
					if (!LOC103) goto LA104;
					result = ((NU8) 1);
				}
				LA104: ;
			}
			LA98: ;
		}
		goto LA74;
		LA92: ;
		LA74: ;
	}
	break;
	case ((NU8) 98):
	case ((NU8) 126):
	case ((NU8) 125):
	{
		internalerror_196172((*x).info, ((NimStringDesc*) &TMP3483));
	}
	break;
	default:
	{
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NU8, implieslt_359095)(Tnode225809* fact, Tnode225809* x, Tnode225809* c) {
	NU8 result;
	Tnode225809* p;
	result = 0;
	p = pred_357809(c);
	{
		if (!!((p == c))) goto LA3;
		result = impliesle_359060(fact, x, p);
	}
	goto LA1;
	LA3: ;
	{
		Tnode225809* q;
		q = pred_357809(x);
		{
			if (!!((q == x))) goto LA8;
			result = impliesle_359060(fact, q, c);
		}
		LA8: ;
	}
	LA1: ;
	return result;
}

static N_INLINE(NI, len_226098)(Tnode225809* 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(NU8, comparesets_358918)(Tnode225809* a, Tnode225809* b) {
	NU8 result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = equalsets_276082(a, b);
		if (!LOC3) goto LA4;
		result = ((NU8) 2);
	}
	goto LA1;
	LA4: ;
	{
		Tnode225809* LOC7;
		NI LOC8;
		LOC7 = 0;
		LOC7 = intersectsets_276061(a, b);
		LOC8 = 0;
		LOC8 = len_226098(LOC7);
		if (!(LOC8 == ((NI) 0))) goto LA9;
		result = ((NU8) 1);
	}
	goto LA1;
	LA9: ;
	LA1: ;
	return result;
}

N_NIMCALL(NU8, leimpliesin_358760)(Tnode225809* x, Tnode225809* c, Tnode225809* aset) {
	NU8 result;
	result = 0;
	{
		Tnode225809* value;
		NI64 LOC5;
		if (!((*c).kind >= ((NU8) 5) && (*c).kind <= ((NU8) 15))) goto LA3;
		LOC5 = 0;
		LOC5 = firstord_255004((*x).typ);
		value = newintnode_226607((*c).kind, LOC5);
		{
			NI i;
			NI pos;
			NI neg;
			if (!((NI64)((*c).kindU.S1.intval - (*value).kindU.S1.intval) < IL64(1000))) goto LA8;
			i = 0;
			pos = 0;
			neg = 0;
			{
				while (1) {
					if (!((*value).kindU.S1.intval <= (*c).kindU.S1.intval)) goto LA11;
					{
						NIM_BOOL LOC14;
						LOC14 = 0;
						LOC14 = inset_276019(aset, value);
						if (!LOC14) goto LA15;
						pos += ((NI) 1);
					}
					goto LA12;
					LA15: ;
					{
						neg += ((NI) 1);
					}
					LA12: ;
					i += ((NI) 1);
					(*value).kindU.S1.intval += ((NI) 1);
				} LA11: ;
			}
			{
				if (!(pos == i)) goto LA20;
				result = ((NU8) 2);
			}
			goto LA18;
			LA20: ;
			{
				if (!(neg == i)) goto LA23;
				result = ((NU8) 1);
			}
			goto LA18;
			LA23: ;
			LA18: ;
		}
		LA8: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(NU8, geimpliesin_358839)(Tnode225809* x, Tnode225809* c, Tnode225809* aset) {
	NU8 result;
	result = 0;
	{
		Tnode225809* value;
		NI64 max;
		if (!((*c).kind >= ((NU8) 5) && (*c).kind <= ((NU8) 15))) goto LA3;
		value = newintnode_226607((*c).kind, (*c).kindU.S1.intval);
		max = lastord_255010((*x).typ);
		{
			NI i;
			NI pos;
			NI neg;
			if (!((NI64)(max - (*value).kindU.S1.intval) < IL64(1000))) goto LA7;
			i = 0;
			pos = 0;
			neg = 0;
			{
				while (1) {
					if (!((*value).kindU.S1.intval <= max)) goto LA10;
					{
						NIM_BOOL LOC13;
						LOC13 = 0;
						LOC13 = inset_276019(aset, value);
						if (!LOC13) goto LA14;
						pos += ((NI) 1);
					}
					goto LA11;
					LA14: ;
					{
						neg += ((NI) 1);
					}
					LA11: ;
					i += ((NI) 1);
					(*value).kindU.S1.intval += ((NI) 1);
				} LA10: ;
			}
			{
				if (!(pos == i)) goto LA19;
				result = ((NU8) 2);
			}
			goto LA17;
			LA19: ;
			{
				if (!(neg == i)) goto LA22;
				result = ((NU8) 1);
			}
			goto LA17;
			LA22: ;
			LA17: ;
		}
		LA7: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(NU8, impliesin_358930)(Tnode225809* fact, Tnode225809* loc, Tnode225809* aset) {
	NU8 result;
	result = 0;
	switch ((*(*(*fact).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).magic) {
	case ((NU8) 69):
	case ((NU8) 72):
	case ((NU8) 79):
	case ((NU8) 82):
	case ((NU8) 85):
	case ((NU8) 88):
	case ((NU8) 94):
	case ((NU8) 89):
	case ((NU8) 127):
	case ((NU8) 130):
	case ((NU8) 92):
	{
		{
			NIM_BOOL LOC4;
			LOC4 = 0;
			LOC4 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 1)], loc);
			if (!LOC4) goto LA5;
			{
				NIM_BOOL LOC9;
				LOC9 = 0;
				LOC9 = inset_276019(aset, (*fact).kindU.S6.sons->data[((NI) 2)]);
				if (!LOC9) goto LA10;
				result = ((NU8) 2);
			}
			goto LA7;
			LA10: ;
			{
				result = ((NU8) 1);
			}
			LA7: ;
		}
		goto LA2;
		LA5: ;
		{
			NIM_BOOL LOC14;
			LOC14 = 0;
			LOC14 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 2)], loc);
			if (!LOC14) goto LA15;
			{
				NIM_BOOL LOC19;
				LOC19 = 0;
				LOC19 = inset_276019(aset, (*fact).kindU.S6.sons->data[((NI) 1)]);
				if (!LOC19) goto LA20;
				result = ((NU8) 2);
			}
			goto LA17;
			LA20: ;
			{
				result = ((NU8) 1);
			}
			LA17: ;
		}
		goto LA2;
		LA15: ;
		LA2: ;
	}
	break;
	case ((NU8) 147):
	{
		{
			NIM_BOOL LOC26;
			LOC26 = 0;
			LOC26 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 2)], loc);
			if (!LOC26) goto LA27;
			result = comparesets_358918((*fact).kindU.S6.sons->data[((NI) 1)], aset);
		}
		LA27: ;
	}
	break;
	case ((NU8) 70):
	case ((NU8) 73):
	case ((NU8) 75):
	case ((NU8) 77):
	case ((NU8) 80):
	case ((NU8) 83):
	case ((NU8) 86):
	case ((NU8) 90):
	case ((NU8) 128):
	{
		{
			NIM_BOOL LOC32;
			LOC32 = 0;
			LOC32 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 1)], loc);
			if (!LOC32) goto LA33;
			result = leimpliesin_358760((*fact).kindU.S6.sons->data[((NI) 1)], (*fact).kindU.S6.sons->data[((NI) 2)], aset);
		}
		goto LA30;
		LA33: ;
		{
			NIM_BOOL LOC36;
			LOC36 = 0;
			LOC36 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 2)], loc);
			if (!LOC36) goto LA37;
			result = geimpliesin_358839((*fact).kindU.S6.sons->data[((NI) 2)], (*fact).kindU.S6.sons->data[((NI) 1)], aset);
		}
		goto LA30;
		LA37: ;
		LA30: ;
	}
	break;
	case ((NU8) 71):
	case ((NU8) 74):
	case ((NU8) 76):
	case ((NU8) 78):
	case ((NU8) 81):
	case ((NU8) 84):
	case ((NU8) 87):
	case ((NU8) 91):
	case ((NU8) 129):
	{
		{
			NIM_BOOL LOC42;
			Tnode225809* LOC45;
			LOC42 = 0;
			LOC42 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 1)], loc);
			if (!LOC42) goto LA43;
			LOC45 = 0;
			LOC45 = pred_357809((*fact).kindU.S6.sons->data[((NI) 2)]);
			result = leimpliesin_358760((*fact).kindU.S6.sons->data[((NI) 1)], LOC45, aset);
		}
		goto LA40;
		LA43: ;
		{
			NIM_BOOL LOC47;
			Tnode225809* LOC50;
			LOC47 = 0;
			LOC47 = sametree_358462((*fact).kindU.S6.sons->data[((NI) 2)], loc);
			if (!LOC47) goto LA48;
			LOC50 = 0;
			LOC50 = pred_357809((*fact).kindU.S6.sons->data[((NI) 1)]);
			result = geimpliesin_358839((*fact).kindU.S6.sons->data[((NI) 2)], LOC50, aset);
		}
		goto LA40;
		LA48: ;
		LA40: ;
	}
	break;
	case ((NU8) 98):
	case ((NU8) 126):
	case ((NU8) 125):
	{
		internalerror_196172((*loc).info, ((NimStringDesc*) &TMP3484));
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

N_NIMCALL(NU8, factimplies_359143)(Tnode225809* fact, Tnode225809* prop) {
	NU8 result;
	NU8 LOC1;
{	result = 0;
	LOC1 = 0;
	LOC1 = getmagic_254417(fact);
	switch (LOC1) {
	case ((NU8) 98):
	{
		Tnode225809* arg;
		NU8 LOC3;
		arg = (*fact).kindU.S6.sons->data[((NI) 1)];
		LOC3 = 0;
		LOC3 = getmagic_254417(arg);
		switch (LOC3) {
		case ((NU8) 156):
		case ((NU8) 88):
		{
			NU8 LOC5;
			LOC5 = 0;
			LOC5 = factimplies_359143(arg, prop);
			result = HEX7E_359133(LOC5);
			goto BeforeRet;
		}
		break;
		case ((NU8) 125):
		{
			NU8 a;
			NU8 b;
			a = factimplies_359143((*arg).kindU.S6.sons->data[((NI) 1)], prop);
			b = factimplies_359143((*arg).kindU.S6.sons->data[((NI) 2)], prop);
			{
				if (!(a == b)) goto LA9;
				result = HEX7E_359133(a);
				goto BeforeRet;
			}
			LA9: ;
			result = ((NU8) 0);
			goto BeforeRet;
		}
		break;
		default:
		{
			result = ((NU8) 0);
			goto BeforeRet;
		}
		break;
		}
	}
	break;
	case ((NU8) 125):
	{
		result = factimplies_359143((*fact).kindU.S6.sons->data[((NI) 1)], prop);
		{
			if (!!((result == ((NU8) 0)))) goto LA15;
			goto BeforeRet;
		}
		LA15: ;
		result = factimplies_359143((*fact).kindU.S6.sons->data[((NI) 2)], prop);
		goto BeforeRet;
	}
	break;
	default:
	{
	}
	break;
	}
	switch ((*(*(*prop).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).magic) {
	case ((NU8) 98):
	{
		NU8 LOC19;
		LOC19 = 0;
		LOC19 = factimplies_359143(fact, (*prop).kindU.S6.sons->data[((NI) 1)]);
		result = HEX7E_359133(LOC19);
	}
	break;
	case ((NU8) 156):
	{
		result = impliesisnil_358995(fact, prop);
	}
	break;
	case ((NU8) 69):
	case ((NU8) 72):
	case ((NU8) 79):
	case ((NU8) 82):
	case ((NU8) 85):
	case ((NU8) 88):
	case ((NU8) 94):
	case ((NU8) 89):
	case ((NU8) 127):
	case ((NU8) 130):
	case ((NU8) 92):
	{
		result = implieseq_358724(fact, prop);
	}
	break;
	case ((NU8) 70):
	case ((NU8) 73):
	case ((NU8) 75):
	case ((NU8) 77):
	case ((NU8) 80):
	case ((NU8) 83):
	case ((NU8) 86):
	case ((NU8) 90):
	case ((NU8) 128):
	{
		result = impliesle_359060(fact, (*prop).kindU.S6.sons->data[((NI) 1)], (*prop).kindU.S6.sons->data[((NI) 2)]);
	}
	break;
	case ((NU8) 71):
	case ((NU8) 74):
	case ((NU8) 76):
	case ((NU8) 78):
	case ((NU8) 81):
	case ((NU8) 84):
	case ((NU8) 87):
	case ((NU8) 91):
	case ((NU8) 129):
	{
		result = implieslt_359095(fact, (*prop).kindU.S6.sons->data[((NI) 1)], (*prop).kindU.S6.sons->data[((NI) 2)]);
	}
	break;
	case ((NU8) 147):
	{
		result = impliesin_358930(fact, (*prop).kindU.S6.sons->data[((NI) 2)], (*prop).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	default:
	{
		result = ((NU8) 0);
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NU8, doesimply_359193)(Tnodeseq225803* facts, Tnode225809* prop) {
	NU8 result;
{	result = 0;
	{
		Tnode225809* f_359410;
		NI i_359433;
		NI L_359435;
		f_359410 = 0;
		i_359433 = ((NI) 0);
		L_359435 = (facts ? facts->Sup.len : 0);
		{
			while (1) {
				if (!(i_359433 < L_359435)) goto LA3;
				f_359410 = facts->data[i_359433];
				{
					if (!!(f_359410 == 0)) goto LA6;
					result = factimplies_359143(f_359410, prop);
					{
						if (!!((result == ((NU8) 0)))) goto LA10;
						goto BeforeRet;
					}
					LA10: ;
				}
				LA6: ;
				i_359433 += ((NI) 1);
			} LA3: ;
		}
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode225809*, swapargs_357307)(Tnode225809* fact, Tsym225841* newop) {
	Tnode225809* result;
	result = 0;
	result = newnodei_227407(((NU8) 27), (*fact).info, ((NI) 3));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_227325(newop));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), (*fact).kindU.S6.sons->data[((NI) 2)]);
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), (*fact).kindU.S6.sons->data[((NI) 1)]);
	return result;
}

N_NIMCALL(Tnode225809*, neg_357323)(Tnode225809* n) {
	Tnode225809* result;
	NU8 LOC5;
{	result = 0;
	{
		if (!(n == NIM_NIL)) goto LA3;
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA3: ;
	LOC5 = 0;
	LOC5 = getmagic_254417(n);
	switch (LOC5) {
	case ((NU8) 98):
	{
		result = (*n).kindU.S6.sons->data[((NI) 1)];
	}
	break;
	case ((NU8) 71):
	case ((NU8) 74):
	case ((NU8) 76):
	case ((NU8) 78):
	case ((NU8) 81):
	case ((NU8) 84):
	case ((NU8) 87):
	case ((NU8) 91):
	case ((NU8) 129):
	{
		result = swapargs_357307(n, ople_357293);
	}
	break;
	case ((NU8) 70):
	case ((NU8) 73):
	case ((NU8) 75):
	case ((NU8) 77):
	case ((NU8) 80):
	case ((NU8) 83):
	case ((NU8) 86):
	case ((NU8) 90):
	case ((NU8) 128):
	{
		result = swapargs_357307(n, oplt_357294);
	}
	break;
	case ((NU8) 147):
	{
		Ttype225847* t;
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 39)))) goto LA12;
			result = NIM_NIL;
			goto BeforeRet;
		}
		LA12: ;
		t = skiptypes_229167((*(*n).kindU.S6.sons->data[((NI) 2)]).typ, IL64(211106232576256));
		result = newnodei_227407(((NU8) 27), (*n).info, ((NI) 3));
		asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), (*n).kindU.S6.sons->data[((NI) 0)]);
		asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), (*n).kindU.S6.sons->data[((NI) 2)]);
		{
			Tnode225809* s;
			if (!((*t).kind == ((NU8) 14))) goto LA16;
			s = newnodeit_227807(((NU8) 39), (*n).info, (*(*n).kindU.S6.sons->data[((NI) 1)]).typ);
			{
				Tnode225809* e_357368;
				Tnode225809* HEX3Atmp_357449;
				e_357368 = 0;
				HEX3Atmp_357449 = 0;
				HEX3Atmp_357449 = (*t).n;
				{
					NI i_357453;
					NI HEX3Atmp_357455;
					NI LOC20;
					NI res_357457;
					i_357453 = 0;
					HEX3Atmp_357455 = 0;
					LOC20 = 0;
					LOC20 = len_226098(HEX3Atmp_357449);
					HEX3Atmp_357455 = (LOC20 - 1);
					res_357457 = ((NI) 0);
					{
						while (1) {
							Tnode225809* easnode;
							if (!(res_357457 <= HEX3Atmp_357455)) goto LA22;
							i_357453 = res_357457;
							e_357368 = (*HEX3Atmp_357449).kindU.S6.sons->data[i_357453];
							easnode = newintnode_226607(((NU8) 6), ((NI64) ((*(*e_357368).kindU.S4.sym).position)));
							{
								NIM_BOOL LOC25;
								LOC25 = 0;
								LOC25 = inset_276019((*n).kindU.S6.sons->data[((NI) 1)], easnode);
								if (!!(LOC25)) goto LA26;
								add_226165(s, easnode);
							}
							LA26: ;
							res_357457 += ((NI) 1);
						} LA22: ;
					}
				}
			}
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), s);
		}
		goto LA14;
		LA16: ;
		{
			NIM_BOOL LOC29;
			NI64 LOC31;
			LOC29 = 0;
			LOC29 = !(((285212672 &(IL64(1)<<(((*t).kind)&IL64(63))))!=0));
			if (!(LOC29)) goto LA30;
			LOC31 = 0;
			LOC31 = lengthord_255016(t);
			LOC29 = (LOC31 < IL64(1000));
			LA30: ;
			if (!LOC29) goto LA32;
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), complement_276550((*n).kindU.S6.sons->data[((NI) 1)]));
		}
		goto LA14;
		LA32: ;
		{
			result = NIM_NIL;
		}
		LA14: ;
	}
	break;
	case ((NU8) 126):
	{
		Tnode225809* a;
		Tnode225809* b;
		a = neg_357323((*n).kindU.S6.sons->data[((NI) 1)]);
		b = neg_357323((*n).kindU.S6.sons->data[((NI) 2)]);
		{
			NIM_BOOL LOC38;
			LOC38 = 0;
			LOC38 = !((a == NIM_NIL));
			if (!(LOC38)) goto LA39;
			LOC38 = !((b == NIM_NIL));
			LA39: ;
			if (!LOC38) goto LA40;
			result = newnodei_227407(((NU8) 27), (*n).info, ((NI) 3));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_227325(opand_357295));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), a);
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), b);
		}
		goto LA36;
		LA40: ;
		{
			if (!!((a == NIM_NIL))) goto LA43;
			result = a;
		}
		goto LA36;
		LA43: ;
		{
			if (!!((b == NIM_NIL))) goto LA46;
			result = b;
		}
		goto LA36;
		LA46: ;
		LA36: ;
	}
	break;
	default:
	{
		result = newnodei_227407(((NU8) 27), (*n).info, ((NI) 2));
		asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_227325(opnot_231060));
		asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), n);
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode225809*, buildcall_357478)(Tsym225841* op, Tnode225809* a) {
	Tnode225809* result;
	result = 0;
	result = newnodei_227407(((NU8) 27), (*a).info, ((NI) 2));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_227325(op));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), a);
	return result;
}

N_NIMCALL(NU8, impliesnotnil_359451)(Tnodeseq225803* facts, Tnode225809* arg) {
	NU8 result;
	Tnode225809* LOC1;
	Tnode225809* LOC2;
	result = 0;
	LOC1 = 0;
	LOC1 = buildcall_357478(opisnil_357297, arg);
	LOC2 = 0;
	LOC2 = neg_357323(LOC1);
	result = doesimply_359193(facts, LOC2);
	return result;
}

N_NIMCALL(Tnode225809*, buildproperfieldcheck_361183)(Tnode225809* access, Tnode225809* check) {
	Tnode225809* result;
	result = 0;
	{
		if (!((*(*check).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 39))) goto LA3;
		result = copytree_230028(check);
		{
			Tnode225809* a;
			if (!((*access).kind == ((NU8) 45))) goto LA7;
			a = copytree_230028(access);
			asgnRefNoCycle((void**) (&(*a).kindU.S6.sons->data[((NI) 1)]), (*check).kindU.S6.sons->data[((NI) 2)]);
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), a);
		}
		LA7: ;
	}
	goto LA1;
	LA3: ;
	{
		Tnode225809* LOC10;
		LOC10 = 0;
		LOC10 = buildproperfieldcheck_361183(access, (*check).kindU.S6.sons->data[((NI) 1)]);
		result = neg_357323(LOC10);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, checkfieldaccess_361409)(Tnodeseq225803* m, Tnode225809* n) {
	{
		NI i_361424;
		NI HEX3Atmp_361451;
		NI LOC2;
		NI res_361454;
		i_361424 = 0;
		HEX3Atmp_361451 = 0;
		LOC2 = 0;
		LOC2 = len_226098(n);
		HEX3Atmp_361451 = (NI)(LOC2 - ((NI) 1));
		res_361454 = ((NI) 1);
		{
			while (1) {
				Tnode225809* check;
				if (!(res_361454 <= HEX3Atmp_361451)) goto LA4;
				i_361424 = res_361454;
				check = buildproperfieldcheck_361183((*n).kindU.S6.sons->data[((NI) 0)], (*n).kindU.S6.sons->data[i_361424]);
				{
					NIM_BOOL LOC7;
					NU8 LOC9;
					NimStringDesc* LOC12;
					LOC7 = 0;
					LOC7 = !((check == NIM_NIL));
					if (!(LOC7)) goto LA8;
					LOC9 = 0;
					LOC9 = doesimply_359193(m, check);
					LOC7 = !((LOC9 == ((NU8) 2)));
					LA8: ;
					if (!LOC7) goto LA10;
					LOC12 = 0;
					LOC12 = rendertree_247059((*n).kindU.S6.sons->data[((NI) 0)], 0);
					message_196161((*n).info, ((NU16) 258), LOC12);
					goto LA1;
				}
				LA10: ;
				res_361454 += ((NI) 1);
			} LA4: ;
		}
	} LA1: ;
}

static N_INLINE(NI, safelen_226126)(Tnode225809* n) {
	NI result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*n).kind >= ((NU8) 0) && (*n).kind <= ((NU8) 23));
		if (LOC3) goto LA4;
		LOC3 = (*n).kindU.S6.sons == 0;
		LA4: ;
		if (!LOC3) goto LA5;
		result = ((NI) 0);
	}
	goto LA1;
	LA5: ;
	{
		result = ((*n).kindU.S6.sons ? (*n).kindU.S6.sons->Sup.len : 0);
	}
	LA1: ;
	return result;
}

N_NIMCALL(NIM_BOOL, hassubtree_358618)(Tnode225809* n, Tnode225809* x) {
	NIM_BOOL result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = sametree_358462(n, x);
		if (!LOC3) goto LA4;
		result = NIM_TRUE;
	}
	goto LA1;
	LA4: ;
	{
		{
			NI i_358634;
			NI HEX3Atmp_358637;
			NI LOC8;
			NI res_358640;
			i_358634 = 0;
			HEX3Atmp_358637 = 0;
			LOC8 = 0;
			LOC8 = safelen_226126(n);
			HEX3Atmp_358637 = (NI)(LOC8 - ((NI) 1));
			res_358640 = ((NI) 0);
			{
				while (1) {
					if (!(res_358640 <= HEX3Atmp_358637)) goto LA10;
					i_358634 = res_358640;
					{
						NIM_BOOL LOC13;
						LOC13 = 0;
						LOC13 = hassubtree_358618((*n).kindU.S6.sons->data[i_358634], x);
						if (!LOC13) goto LA14;
						result = NIM_TRUE;
						goto BeforeRet;
					}
					LA14: ;
					res_358640 += ((NI) 1);
				} LA10: ;
			}
		}
	}
	LA1: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, invalidatefacts_358659)(Tnodeseq225803** m, Tnode225809* n) {
	{
		NI i_358674;
		NI HEX3Atmp_358689;
		NI res_358692;
		i_358674 = 0;
		HEX3Atmp_358689 = 0;
		HEX3Atmp_358689 = ((*m) ? ((*m)->Sup.len-1) : -1);
		res_358692 = ((NI) 0);
		{
			while (1) {
				if (!(res_358692 <= HEX3Atmp_358689)) goto LA3;
				i_358674 = res_358692;
				{
					NIM_BOOL LOC6;
					LOC6 = 0;
					LOC6 = !(((*m)->data[i_358674] == NIM_NIL));
					if (!(LOC6)) goto LA7;
					LOC6 = hassubtree_358618((*m)->data[i_358674], n);
					LA7: ;
					if (!LOC6) goto LA8;
					asgnRefNoCycle((void**) (&(*m)->data[i_358674]), NIM_NIL);
				}
				LA8: ;
				res_358692 += ((NI) 1);
			} LA3: ;
		}
	}
}

N_NIMCALL(void, addasgnfact_361086)(Tnodeseq225803** m, Tnode225809* key, Tnode225809* value) {
	Tnode225809* fact;
	fact = newnodei_227407(((NU8) 27), (*key).info, ((NI) 3));
	asgnRefNoCycle((void**) (&(*fact).kindU.S6.sons->data[((NI) 0)]), newsymnode_227325(opeq_357298));
	asgnRefNoCycle((void**) (&(*fact).kindU.S6.sons->data[((NI) 1)]), key);
	asgnRefNoCycle((void**) (&(*fact).kindU.S6.sons->data[((NI) 2)]), value);
	(*m) = (Tnodeseq225803*) incrSeqV2(&((*m))->Sup, sizeof(Tnode225809*));
	asgnRefNoCycle((void**) (&(*m)->data[(*m)->Sup.len]), fact);
	++(*m)->Sup.len;
}

N_NIMCALL(NIM_BOOL, islet_357127)(Tnode225809* n) {
	NIM_BOOL result;
	result = 0;
	{
		if (!((*n).kind == ((NU8) 3))) goto LA3;
		{
			if (!((2097696 &(1<<(((*(*n).kindU.S4.sym).kind)&31)))!=0)) goto LA7;
			result = NIM_TRUE;
		}
		goto LA5;
		LA7: ;
		{
			NIM_BOOL LOC10;
			Ttype225847* LOC12;
			LOC10 = 0;
			LOC10 = ((*(*n).kindU.S4.sym).kind == ((NU8) 3));
			if (!(LOC10)) goto LA11;
			LOC12 = 0;
			LOC12 = skiptypes_229167((*(*n).kindU.S4.sym).typ, IL64(211106232576256));
			LOC10 = !(((*LOC12).kind == ((NU8) 23)));
			LA11: ;
			if (!LOC10) goto LA13;
			result = NIM_TRUE;
		}
		goto LA5;
		LA13: ;
		LA5: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(NIM_BOOL, isvar_357179)(Tnode225809* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC2;
	result = 0;
	LOC1 = 0;
	LOC2 = 0;
	LOC2 = ((*n).kind == ((NU8) 3));
	if (!(LOC2)) goto LA3;
	LOC2 = ((2304 &(1<<(((*(*n).kindU.S4.sym).kind)&31)))!=0);
	LA3: ;
	LOC1 = LOC2;
	if (!(LOC1)) goto LA4;
	LOC1 = ((32776 & (*(*n).kindU.S4.sym).flags) == 0);
	LA4: ;
	result = LOC1;
	return result;
}

N_NIMCALL(NIM_BOOL, isletlocation_357239)(Tnode225809* m, NIM_BOOL isapprox) {
	NIM_BOOL result;
	Tnode225809* n;
	NI derefs;
	NIM_BOOL LOC15;
{	result = 0;
	n = m;
	derefs = ((NI) 0);
	{
		while (1) {
			switch ((*n).kind) {
			case ((NU8) 45):
			case ((NU8) 46):
			case ((NU8) 67):
			case ((NU8) 66):
			{
				n = (*n).kindU.S6.sons->data[((NI) 0)];
			}
			break;
			case ((NU8) 47):
			case ((NU8) 65):
			{
				n = (*n).kindU.S6.sons->data[((NI) 0)];
				derefs += ((NI) 1);
			}
			break;
			case ((NU8) 42):
			{
				{
					NIM_BOOL LOC8;
					LOC8 = 0;
					LOC8 = isconstexpr_254442((*n).kindU.S6.sons->data[((NI) 1)]);
					if (LOC8) goto LA9;
					LOC8 = islet_357127((*n).kindU.S6.sons->data[((NI) 1)]);
					LA9: ;
					if (!LOC8) goto LA10;
					n = (*n).kindU.S6.sons->data[((NI) 0)];
				}
				goto LA6;
				LA10: ;
				{
					goto BeforeRet;
				}
				LA6: ;
			}
			break;
			case ((NU8) 58):
			case ((NU8) 59):
			case ((NU8) 60):
			{
				n = (*n).kindU.S6.sons->data[((NI) 1)];
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
		}
	} LA1: ;
	LOC15 = 0;
	LOC15 = islet_357127(n);
	if (!(LOC15)) goto LA16;
	LOC15 = (derefs <= ((NI) (isapprox)));
	LA16: ;
	result = LOC15;
	{
		NIM_BOOL LOC19;
		LOC19 = 0;
		LOC19 = !(result);
		if (!(LOC19)) goto LA20;
		LOC19 = isapprox;
		LA20: ;
		if (!LOC19) goto LA21;
		result = isvar_357179(n);
	}
	LA21: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_BOOL, interestingcaseexpr_357283)(Tnode225809* m) {
	NIM_BOOL result;
	result = 0;
	result = isletlocation_357239(m, NIM_TRUE);
	return result;
}

N_NIMCALL(Ttype225847*, settype_360872)(Tnode225809* n) {
	Ttype225847* result;
	result = 0;
	result = newtype_228140(((NU8) 19), (*(*n).typ).owner);
	addsonskipintlit_274731(result, (*n).typ);
	return result;
}

N_NIMCALL(Tnode225809*, buildof_360882)(Tnode225809* it, Tnode225809* loc) {
	Tnode225809* result;
	Tnode225809* s;
	NI LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = len_226098(it);
	s = newnodei_227407(((NU8) 39), (*it).info, (NI)(LOC1 - ((NI) 1)));
	asgnRefNoCycle((void**) (&(*s).typ), settype_360872(loc));
	{
		NI i_360900;
		NI HEX3Atmp_360907;
		NI LOC3;
		NI res_360910;
		i_360900 = 0;
		HEX3Atmp_360907 = 0;
		LOC3 = 0;
		LOC3 = len_226098(it);
		HEX3Atmp_360907 = (NI)(LOC3 - ((NI) 2));
		res_360910 = ((NI) 0);
		{
			while (1) {
				if (!(res_360910 <= HEX3Atmp_360907)) goto LA5;
				i_360900 = res_360910;
				asgnRefNoCycle((void**) (&(*s).kindU.S6.sons->data[i_360900]), (*it).kindU.S6.sons->data[i_360900]);
				res_360910 += ((NI) 1);
			} LA5: ;
		}
	}
	result = newnodei_227407(((NU8) 27), (*it).info, ((NI) 3));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_227325(opcontains_231061));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), s);
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), loc);
	return result;
}

N_NIMCALL(Tnode225809*, buildelse_360929)(Tnode225809* n) {
	Tnode225809* result;
	Tnode225809* s;
	Ttype225847* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = settype_360872((*n).kindU.S6.sons->data[((NI) 0)]);
	s = newnodeit_227807(((NU8) 39), (*n).info, LOC1);
	{
		NI i_360946;
		NI HEX3Atmp_361028;
		NI LOC3;
		NI res_361031;
		i_360946 = 0;
		HEX3Atmp_361028 = 0;
		LOC3 = 0;
		LOC3 = len_226098(n);
		HEX3Atmp_361028 = (NI)(LOC3 - ((NI) 2));
		res_361031 = ((NI) 1);
		{
			while (1) {
				Tnode225809* branch;
				if (!(res_361031 <= HEX3Atmp_361028)) goto LA5;
				i_360946 = res_361031;
				branch = (*n).kindU.S6.sons->data[i_360946];
				{
					NI j_361012;
					NI HEX3Atmp_361021;
					NI LOC7;
					NI res_361024;
					j_361012 = 0;
					HEX3Atmp_361021 = 0;
					LOC7 = 0;
					LOC7 = len_226098(branch);
					HEX3Atmp_361021 = (NI)(LOC7 - ((NI) 2));
					res_361024 = ((NI) 0);
					{
						while (1) {
							if (!(res_361024 <= HEX3Atmp_361021)) goto LA9;
							j_361012 = res_361024;
							add_226165(s, (*branch).kindU.S6.sons->data[j_361012]);
							res_361024 += ((NI) 1);
						} LA9: ;
					}
				}
				res_361031 += ((NI) 1);
			} LA5: ;
		}
	}
	result = newnodei_227407(((NU8) 27), (*n).info, ((NI) 3));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_227325(opcontains_231061));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), s);
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), (*n).kindU.S6.sons->data[((NI) 0)]);
	return result;
}

N_NIMCALL(void, addcasebranchfacts_361137)(Tnodeseq225803** m, Tnode225809* n, NI i) {
	Tnode225809* branch;
	branch = (*n).kindU.S6.sons->data[i];
	{
		Tnode225809* LOC5;
		if (!((*branch).kind == ((NU8) 85))) goto LA3;
		LOC5 = 0;
		LOC5 = buildof_360882(branch, (*n).kindU.S6.sons->data[((NI) 0)]);
		(*m) = (Tnodeseq225803*) incrSeqV2(&((*m))->Sup, sizeof(Tnode225809*));
		asgnRefNoCycle((void**) (&(*m)->data[(*m)->Sup.len]), LOC5);
		++(*m)->Sup.len;
	}
	goto LA1;
	LA3: ;
	{
		Tnode225809* LOC7;
		Tnode225809* LOC8;
		LOC7 = 0;
		LOC7 = buildelse_360929(n);
		LOC8 = 0;
		LOC8 = neg_357323(LOC7);
		(*m) = (Tnodeseq225803*) incrSeqV2(&((*m))->Sup, sizeof(Tnode225809*));
		asgnRefNoCycle((void**) (&(*m)->data[(*m)->Sup.len]), LOC8);
		++(*m)->Sup.len;
	}
	LA1: ;
}

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

N_NIMCALL(Tnode225809*, usefulfact_358172)(Tnode225809* n) {
	Tnode225809* result;
	NU8 LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getmagic_254417(n);
	switch (LOC1) {
	case ((NU8) 69):
	case ((NU8) 72):
	case ((NU8) 79):
	case ((NU8) 82):
	case ((NU8) 85):
	case ((NU8) 88):
	case ((NU8) 94):
	case ((NU8) 89):
	case ((NU8) 127):
	case ((NU8) 130):
	case ((NU8) 92):
	{
		{
			NIM_BOOL LOC5;
			Tnode225809* LOC6;
			NIM_BOOL LOC8;
			LOC5 = 0;
			LOC6 = 0;
			LOC6 = skipconv_264935((*n).kindU.S6.sons->data[((NI) 2)]);
			LOC5 = ((*LOC6).kind == ((NU8) 23));
			if (!(LOC5)) goto LA7;
			LOC8 = 0;
			LOC8 = isletlocation_357239((*n).kindU.S6.sons->data[((NI) 1)], NIM_FALSE);
			if (LOC8) goto LA9;
			LOC8 = isvar_357179((*n).kindU.S6.sons->data[((NI) 1)]);
			LA9: ;
			LOC5 = LOC8;
			LA7: ;
			if (!LOC5) goto LA10;
			result = buildcall_357478(opisnil_357297, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		goto LA3;
		LA10: ;
		{
			{
				NIM_BOOL LOC15;
				LOC15 = 0;
				LOC15 = isletlocation_357239((*n).kindU.S6.sons->data[((NI) 1)], NIM_TRUE);
				if (LOC15) goto LA16;
				LOC15 = isletlocation_357239((*n).kindU.S6.sons->data[((NI) 2)], NIM_TRUE);
				LA16: ;
				if (!LOC15) goto LA17;
				result = n;
			}
			LA17: ;
		}
		LA3: ;
	}
	break;
	case ((NU8) 70) ... ((NU8) 71):
	case ((NU8) 73) ... ((NU8) 78):
	case ((NU8) 80) ... ((NU8) 81):
	case ((NU8) 83) ... ((NU8) 84):
	case ((NU8) 86) ... ((NU8) 87):
	case ((NU8) 90) ... ((NU8) 91):
	case ((NU8) 128) ... ((NU8) 129):
	{
		{
			NIM_BOOL LOC22;
			LOC22 = 0;
			LOC22 = isletlocation_357239((*n).kindU.S6.sons->data[((NI) 1)], NIM_TRUE);
			if (LOC22) goto LA23;
			LOC22 = isletlocation_357239((*n).kindU.S6.sons->data[((NI) 2)], NIM_TRUE);
			LA23: ;
			if (!LOC22) goto LA24;
			result = n;
		}
		goto LA20;
		LA24: ;
		{
			NIM_BOOL LOC27;
			Tnode225809* LOC28;
			NU8 LOC29;
			Tnode225809* LOC31;
			NU8 LOC32;
			LOC27 = 0;
			LOC28 = 0;
			LOC28 = HEX5BHEX5D_226244(n, ((NI) 1));
			LOC29 = 0;
			LOC29 = getmagic_254417(LOC28);
			LOC27 = (LOC29 == ((NU8) 32) || LOC29 == ((NU8) 33) || LOC29 == ((NU8) 34) || LOC29 == ((NU8) 35) || LOC29 == ((NU8) 36) || LOC29 == ((NU8) 37));
			if (LOC27) goto LA30;
			LOC31 = 0;
			LOC31 = HEX5BHEX5D_226244(n, ((NI) 2));
			LOC32 = 0;
			LOC32 = getmagic_254417(LOC31);
			LOC27 = (LOC32 == ((NU8) 32) || LOC32 == ((NU8) 33) || LOC32 == ((NU8) 34) || LOC32 == ((NU8) 35) || LOC32 == ((NU8) 36) || LOC32 == ((NU8) 37));
			LA30: ;
			if (!LOC27) goto LA33;
			result = n;
		}
		goto LA20;
		LA33: ;
		LA20: ;
	}
	break;
	case ((NU8) 156):
	{
		{
			NIM_BOOL LOC38;
			LOC38 = 0;
			LOC38 = isletlocation_357239((*n).kindU.S6.sons->data[((NI) 1)], NIM_FALSE);
			if (LOC38) goto LA39;
			LOC38 = isvar_357179((*n).kindU.S6.sons->data[((NI) 1)]);
			LA39: ;
			if (!LOC38) goto LA40;
			result = n;
		}
		LA40: ;
	}
	break;
	case ((NU8) 146):
	case ((NU8) 147):
	{
		{
			NIM_BOOL LOC45;
			LOC45 = 0;
			LOC45 = isletlocation_357239((*n).kindU.S6.sons->data[((NI) 1)], NIM_TRUE);
			if (!LOC45) goto LA46;
			result = n;
		}
		LA46: ;
	}
	break;
	case ((NU8) 125):
	{
		Tnode225809* a;
		Tnode225809* b;
		a = usefulfact_358172((*n).kindU.S6.sons->data[((NI) 1)]);
		b = usefulfact_358172((*n).kindU.S6.sons->data[((NI) 2)]);
		{
			NIM_BOOL LOC51;
			LOC51 = 0;
			LOC51 = !((a == NIM_NIL));
			if (!(LOC51)) goto LA52;
			LOC51 = !((b == NIM_NIL));
			LA52: ;
			if (!LOC51) goto LA53;
			result = newnodei_227407(((NU8) 27), (*n).info, ((NI) 3));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_227325(opand_357295));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), a);
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), b);
		}
		goto LA49;
		LA53: ;
		{
			if (!!((a == NIM_NIL))) goto LA56;
			result = a;
		}
		goto LA49;
		LA56: ;
		{
			if (!!((b == NIM_NIL))) goto LA59;
			result = b;
		}
		goto LA49;
		LA59: ;
		LA49: ;
	}
	break;
	case ((NU8) 98):
	{
		Tnode225809* a;
		a = usefulfact_358172((*n).kindU.S6.sons->data[((NI) 1)]);
		{
			if (!!((a == NIM_NIL))) goto LA64;
			result = neg_357323(a);
		}
		LA64: ;
	}
	break;
	case ((NU8) 126):
	{
		Tnode225809* a;
		Tnode225809* LOC67;
		Tnode225809* b;
		Tnode225809* LOC68;
		LOC67 = 0;
		LOC67 = usefulfact_358172((*n).kindU.S6.sons->data[((NI) 1)]);
		a = neg_357323(LOC67);
		LOC68 = 0;
		LOC68 = usefulfact_358172((*n).kindU.S6.sons->data[((NI) 2)]);
		b = neg_357323(LOC68);
		{
			NIM_BOOL LOC71;
			LOC71 = 0;
			LOC71 = !((a == NIM_NIL));
			if (!(LOC71)) goto LA72;
			LOC71 = !((b == NIM_NIL));
			LA72: ;
			if (!LOC71) goto LA73;
			result = newnodei_227407(((NU8) 27), (*n).info, ((NI) 3));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_227325(opand_357295));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), a);
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), b);
			result = neg_357323(result);
		}
		LA73: ;
	}
	break;
	default:
	{
		{
			NIM_BOOL LOC78;
			LOC78 = 0;
			LOC78 = ((*n).kind == ((NU8) 3));
			if (!(LOC78)) goto LA79;
			LOC78 = ((*(*n).kindU.S4.sym).kind == ((NU8) 9));
			LA79: ;
			if (!LOC78) goto LA80;
			{
				if (!!(((*(*n).kindU.S4.sym).ast == NIM_NIL))) goto LA84;
				result = usefulfact_358172((*(*n).kindU.S4.sym).ast);
			}
			LA84: ;
		}
		goto LA76;
		LA80: ;
		{
			Tnode225809* LOC89;
			if (!((*n).kind == ((NU8) 126))) goto LA87;
			LOC89 = 0;
			LOC89 = lastson_228406(n);
			result = usefulfact_358172(LOC89);
		}
		goto LA76;
		LA87: ;
		LA76: ;
	}
	break;
	}
	return result;
}

N_NIMCALL(void, addfact_358392)(Tnodeseq225803** m, Tnode225809* nn) {
	Tnode225809* n;
	n = usefulfact_358172(nn);
	{
		if (!!((n == NIM_NIL))) goto LA3;
		(*m) = (Tnodeseq225803*) incrSeqV2(&((*m))->Sup, sizeof(Tnode225809*));
		asgnRefNoCycle((void**) (&(*m)->data[(*m)->Sup.len]), n);
		++(*m)->Sup.len;
	}
	LA3: ;
}

N_NIMCALL(void, addfactneg_358426)(Tnodeseq225803** m, Tnode225809* n_358430) {
	Tnode225809* n;
	n = neg_357323(n_358430);
	{
		if (!!((n == NIM_NIL))) goto LA3;
		addfact_358392(m, n);
	}
	LA3: ;
}

N_NIMCALL(void, adddiscriminantfact_361059)(Tnodeseq225803** m, Tnode225809* n) {
	Tnode225809* fact;
	fact = newnodei_227407(((NU8) 27), (*n).info, ((NI) 3));
	asgnRefNoCycle((void**) (&(*fact).kindU.S6.sons->data[((NI) 0)]), newsymnode_227325(opeq_357298));
	asgnRefNoCycle((void**) (&(*fact).kindU.S6.sons->data[((NI) 1)]), (*n).kindU.S6.sons->data[((NI) 0)]);
	asgnRefNoCycle((void**) (&(*fact).kindU.S6.sons->data[((NI) 2)]), (*n).kindU.S6.sons->data[((NI) 1)]);
	(*m) = (Tnodeseq225803*) incrSeqV2(&((*m))->Sup, sizeof(Tnode225809*));
	asgnRefNoCycle((void**) (&(*m)->data[(*m)->Sup.len]), fact);
	++(*m)->Sup.len;
}

N_NIMCALL(Tnode225809*, buildcall_357491)(Tsym225841* op, Tnode225809* a, Tnode225809* b) {
	Tnode225809* result;
	result = 0;
	result = newnodei_227407(((NU8) 29), (*a).info, ((NI) 3));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_227325(op));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), a);
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), b);
	return result;
}

N_NIMCALL(Tnode225809*, minusone_357693)(void) {
	Tnode225809* result;
	result = 0;
	result = newintnode_226607(((NU8) 6), IL64(-1));
	return result;
}

N_NIMCALL(Tnode225809*, negate_357618)(Tnode225809* a, Tnode225809* b_357621, Tnode225809* res) {
	Tnode225809* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		Tnode225809* b;
		LOC3 = 0;
		LOC3 = ((*b_357621).kind >= ((NU8) 5) && (*b_357621).kind <= ((NU8) 15));
		if (!(LOC3)) goto LA4;
		LOC3 = !(((*b_357621).kindU.S1.intval == (IL64(-9223372036854775807) - IL64(1))));
		LA4: ;
		if (!LOC3) goto LA5;
		b = copynode_229660(b_357621);
		(*b).kindU.S1.intval = -((*b).kindU.S1.intval);
		{
			if (!((*a).kind >= ((NU8) 5) && (*a).kind <= ((NU8) 15))) goto LA9;
			(*b).kindU.S1.intval = HEX7CHEX2BHEX7C_292019((*b).kindU.S1.intval, (*a).kindU.S1.intval);
			result = b;
		}
		goto LA7;
		LA9: ;
		{
			result = buildcall_357491(opadd_357299, a, b);
		}
		LA7: ;
	}
	goto LA1;
	LA5: ;
	{
		Tnode225809* b;
		if (!((*b_357621).kind >= ((NU8) 16) && (*b_357621).kind <= ((NU8) 18))) goto LA13;
		b = copynode_229660(b_357621);
		(*b).kindU.S2.floatval = -((*b).kindU.S2.floatval);
		result = buildcall_357491(opadd_357299, a, b);
	}
	goto LA1;
	LA13: ;
	{
		result = res;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, HEX7CHEX2BHEX7C_357506)(Tnode225809* a, Tnode225809* b) {
	Tnode225809* result;
	result = 0;
	result = copynode_229660(a);
	{
		if (!((*a).kind >= ((NU8) 5) && (*a).kind <= ((NU8) 15))) goto LA3;
		(*result).kindU.S1.intval = HEX7CHEX2BHEX7C_292019((*a).kindU.S1.intval, (*b).kindU.S1.intval);
	}
	goto LA1;
	LA3: ;
	{
		(*result).kindU.S2.floatval = ((NF)((*a).kindU.S2.floatval) + (NF)((*b).kindU.S2.floatval));
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, HEX7CHEX2AHEX7C_357562)(Tnode225809* a, Tnode225809* b) {
	Tnode225809* result;
	result = 0;
	result = copynode_229660(a);
	{
		if (!((*a).kind >= ((NU8) 5) && (*a).kind <= ((NU8) 15))) goto LA3;
		(*result).kindU.S1.intval = HEX7CHEX2AHEX7C_292073((*a).kindU.S1.intval, (*b).kindU.S1.intval);
	}
	goto LA1;
	LA3: ;
	{
		(*result).kindU.S2.floatval = ((NF)((*a).kindU.S2.floatval) * (NF)((*b).kindU.S2.floatval));
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, zero_357675)(void) {
	Tnode225809* result;
	result = 0;
	result = newintnode_226607(((NU8) 6), IL64(0));
	return result;
}

N_NIMCALL(Tnode225809*, reassociation_357767)(Tnode225809* n) {
	Tnode225809* result;
	NU8 LOC1;
	result = 0;
	result = n;
	LOC1 = 0;
	LOC1 = getmagic_254417(result);
	switch (LOC1) {
	case ((NU8) 44):
	case ((NU8) 51):
	case ((NU8) 49):
	{
		{
			NIM_BOOL LOC5;
			NIM_BOOL LOC6;
			Tnode225809* LOC7;
			Tnode225809* LOC9;
			NU8 LOC10;
			Tnode225809* LOC12;
			Tnode225809* LOC13;
			Tnode225809* LOC16;
			Tnode225809* LOC17;
			Tnode225809* LOC18;
			Tnode225809* LOC19;
			Tnode225809* LOC20;
			Tnode225809* LOC21;
			LOC5 = 0;
			LOC6 = 0;
			LOC7 = 0;
			LOC7 = HEX5BHEX5D_226244(result, ((NI) 2));
			LOC6 = isvalue_357095(LOC7);
			if (!(LOC6)) goto LA8;
			LOC9 = 0;
			LOC9 = HEX5BHEX5D_226244(result, ((NI) 1));
			LOC10 = 0;
			LOC10 = getmagic_254417(LOC9);
			LOC6 = (LOC10 == ((NU8) 44) || LOC10 == ((NU8) 51) || LOC10 == ((NU8) 49));
			LA8: ;
			LOC5 = LOC6;
			if (!(LOC5)) goto LA11;
			LOC12 = 0;
			LOC12 = HEX5BHEX5D_226244(result, ((NI) 1));
			LOC13 = 0;
			LOC13 = HEX5BHEX5D_226244(LOC12, ((NI) 2));
			LOC5 = isvalue_357095(LOC13);
			LA11: ;
			if (!LOC5) goto LA14;
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_226244(result, ((NI) 1));
			LOC17 = 0;
			LOC17 = HEX5BHEX5D_226244(LOC16, ((NI) 1));
			LOC18 = 0;
			LOC18 = HEX5BHEX5D_226244(result, ((NI) 1));
			LOC19 = 0;
			LOC19 = HEX5BHEX5D_226244(LOC18, ((NI) 2));
			LOC20 = 0;
			LOC20 = HEX5BHEX5D_226244(result, ((NI) 2));
			LOC21 = 0;
			LOC21 = HEX7CHEX2BHEX7C_357506(LOC19, LOC20);
			result = buildcall_357491(opadd_357299, LOC17, LOC21);
			{
				Tnode225809* LOC24;
				LOC24 = 0;
				LOC24 = HEX5BHEX5D_226244(result, ((NI) 2));
				if (!((*LOC24).kindU.S1.intval == IL64(0))) goto LA25;
				result = HEX5BHEX5D_226244(result, ((NI) 1));
			}
			LA25: ;
		}
		LA14: ;
	}
	break;
	case ((NU8) 46):
	case ((NU8) 53):
	{
		{
			NIM_BOOL LOC30;
			NIM_BOOL LOC31;
			Tnode225809* LOC32;
			Tnode225809* LOC34;
			NU8 LOC35;
			Tnode225809* LOC37;
			Tnode225809* LOC38;
			Tnode225809* LOC41;
			Tnode225809* LOC42;
			Tnode225809* LOC43;
			Tnode225809* LOC44;
			Tnode225809* LOC45;
			Tnode225809* LOC46;
			LOC30 = 0;
			LOC31 = 0;
			LOC32 = 0;
			LOC32 = HEX5BHEX5D_226244(result, ((NI) 2));
			LOC31 = isvalue_357095(LOC32);
			if (!(LOC31)) goto LA33;
			LOC34 = 0;
			LOC34 = HEX5BHEX5D_226244(result, ((NI) 1));
			LOC35 = 0;
			LOC35 = getmagic_254417(LOC34);
			LOC31 = (LOC35 == ((NU8) 46) || LOC35 == ((NU8) 53));
			LA33: ;
			LOC30 = LOC31;
			if (!(LOC30)) goto LA36;
			LOC37 = 0;
			LOC37 = HEX5BHEX5D_226244(result, ((NI) 1));
			LOC38 = 0;
			LOC38 = HEX5BHEX5D_226244(LOC37, ((NI) 2));
			LOC30 = isvalue_357095(LOC38);
			LA36: ;
			if (!LOC30) goto LA39;
			LOC41 = 0;
			LOC41 = HEX5BHEX5D_226244(result, ((NI) 1));
			LOC42 = 0;
			LOC42 = HEX5BHEX5D_226244(LOC41, ((NI) 1));
			LOC43 = 0;
			LOC43 = HEX5BHEX5D_226244(result, ((NI) 1));
			LOC44 = 0;
			LOC44 = HEX5BHEX5D_226244(LOC43, ((NI) 2));
			LOC45 = 0;
			LOC45 = HEX5BHEX5D_226244(result, ((NI) 2));
			LOC46 = 0;
			LOC46 = HEX7CHEX2AHEX7C_357562(LOC44, LOC45);
			result = buildcall_357491(opmul_357301, LOC42, LOC46);
			{
				Tnode225809* LOC49;
				LOC49 = 0;
				LOC49 = HEX5BHEX5D_226244(result, ((NI) 2));
				if (!((*LOC49).kindU.S1.intval == IL64(1))) goto LA50;
				result = HEX5BHEX5D_226244(result, ((NI) 1));
			}
			goto LA47;
			LA50: ;
			{
				Tnode225809* LOC53;
				LOC53 = 0;
				LOC53 = HEX5BHEX5D_226244(result, ((NI) 2));
				if (!((*LOC53).kindU.S1.intval == IL64(0))) goto LA54;
				result = zero_357675();
			}
			goto LA47;
			LA54: ;
			LA47: ;
		}
		LA39: ;
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode225809*, HEX7CHEX2DHEX7C_357534)(Tnode225809* a, Tnode225809* b) {
	Tnode225809* result;
	result = 0;
	result = copynode_229660(a);
	{
		if (!((*a).kind >= ((NU8) 5) && (*a).kind <= ((NU8) 15))) goto LA3;
		(*result).kindU.S1.intval = HEX7CHEX2DHEX7C_292030((*a).kindU.S1.intval, (*b).kindU.S1.intval);
	}
	goto LA1;
	LA3: ;
	{
		(*result).kindU.S2.floatval = ((NF)((*a).kindU.S2.floatval) - (NF)((*b).kindU.S2.floatval));
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, canon_357843)(Tnode225809* n) {
	Tnode225809* result;
	NU8 LOC19;
	NU8 LOC51;
	result = 0;
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = safelen_226126(n);
		if (!(((NI) 1) <= LOC3)) goto LA4;
		result = shallowcopy_229817(n);
		{
			NI i_357867;
			NI HEX3Atmp_358138;
			NI LOC7;
			NI res_358141;
			i_357867 = 0;
			HEX3Atmp_358138 = 0;
			LOC7 = 0;
			LOC7 = len_226098(n);
			HEX3Atmp_358138 = (LOC7 - 1);
			res_358141 = ((NI) 0);
			{
				while (1) {
					if (!(res_358141 <= HEX3Atmp_358138)) goto LA9;
					i_357867 = res_358141;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_357867]), canon_357843((*n).kindU.S6.sons->data[i_357867]));
					res_358141 += ((NI) 1);
				} LA9: ;
			}
		}
	}
	goto LA1;
	LA4: ;
	{
		NIM_BOOL LOC11;
		NIM_BOOL LOC12;
		NU8 LOC15;
		LOC11 = 0;
		LOC12 = 0;
		LOC12 = ((*n).kind == ((NU8) 3));
		if (!(LOC12)) goto LA13;
		LOC12 = ((*(*n).kindU.S4.sym).kind == ((NU8) 9));
		LA13: ;
		LOC11 = LOC12;
		if (!(LOC11)) goto LA14;
		LOC15 = 0;
		LOC15 = getmagic_254417((*(*n).kindU.S4.sym).ast);
		LOC11 = ((TMP4266[LOC15/8] &(1<<(LOC15%8)))!=0);
		LA14: ;
		if (!LOC11) goto LA16;
		result = copytree_230028((*(*n).kindU.S4.sym).ast);
	}
	goto LA1;
	LA16: ;
	{
		result = n;
	}
	LA1: ;
	LOC19 = 0;
	LOC19 = getmagic_254417(result);
	switch (LOC19) {
	case ((NU8) 69):
	case ((NU8) 44):
	case ((NU8) 46):
	case ((NU8) 60):
	case ((NU8) 61):
	case ((NU8) 72):
	case ((NU8) 79):
	case ((NU8) 82):
	case ((NU8) 85):
	case ((NU8) 88):
	case ((NU8) 94):
	case ((NU8) 89):
	case ((NU8) 127):
	case ((NU8) 130):
	case ((NU8) 92):
	case ((NU8) 51):
	case ((NU8) 49):
	case ((NU8) 53):
	case ((NU8) 62):
	case ((NU8) 63):
	{
		{
			NIM_BOOL LOC23;
			NIM_BOOL LOC25;
			LOC23 = 0;
			LOC23 = isvalue_357095((*result).kindU.S6.sons->data[((NI) 1)]);
			if (!(LOC23)) goto LA24;
			LOC25 = 0;
			LOC25 = isvalue_357095((*result).kindU.S6.sons->data[((NI) 2)]);
			LOC23 = !(LOC25);
			LA24: ;
			if (!LOC23) goto LA26;
			result = swapargs_357307(result, (*(*result).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym);
		}
		LA26: ;
	}
	break;
	case ((NU8) 8):
	{
		Tnode225809* LOC29;
		Tnode225809* LOC30;
		Tnode225809* LOC31;
		LOC29 = 0;
		LOC29 = HEX5BHEX5D_226244(result, ((NI) 1));
		LOC30 = 0;
		LOC30 = buildcall_357478(oplen_357303, LOC29);
		LOC31 = 0;
		LOC31 = minusone_357693();
		result = buildcall_357491(opadd_357299, LOC30, LOC31);
	}
	break;
	case ((NU8) 25):
	{
		Tnode225809* LOC33;
		Tnode225809* LOC34;
		LOC33 = 0;
		LOC33 = HEX5BHEX5D_226244(result, ((NI) 1));
		LOC34 = 0;
		LOC34 = minusone_357693();
		result = buildcall_357491(opadd_357299, LOC33, LOC34);
	}
	break;
	case ((NU8) 45):
	case ((NU8) 52):
	case ((NU8) 50):
	{
		Tnode225809* LOC36;
		Tnode225809* LOC37;
		LOC36 = 0;
		LOC36 = HEX5BHEX5D_226244(result, ((NI) 1));
		LOC37 = 0;
		LOC37 = HEX5BHEX5D_226244(result, ((NI) 2));
		result = negate_357618(LOC36, LOC37, result);
	}
	break;
	case ((NU8) 32):
	case ((NU8) 33):
	case ((NU8) 34):
	case ((NU8) 35):
	case ((NU8) 36):
	case ((NU8) 37):
	{
		asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_227325(oplen_357303));
	}
	break;
	case ((NU8) 71):
	case ((NU8) 74):
	case ((NU8) 76):
	case ((NU8) 78):
	case ((NU8) 81):
	case ((NU8) 84):
	case ((NU8) 87):
	case ((NU8) 91):
	case ((NU8) 129):
	{
		Tnode225809* y;
		Tnode225809* LOC40;
		Tnode225809* p;
		Tnode225809* minus;
		Tnode225809* LOC48;
		Tnode225809* LOC49;
		LOC40 = 0;
		LOC40 = HEX5BHEX5D_226244(n, ((NI) 2));
		y = canon_357843(LOC40);
		p = pred_357809(y);
		{
			if (!!((p == y))) goto LA43;
			minus = p;
		}
		goto LA41;
		LA43: ;
		{
			Tnode225809* LOC46;
			Tnode225809* LOC47;
			LOC46 = 0;
			LOC46 = minusone_357693();
			LOC47 = 0;
			LOC47 = buildcall_357491(opadd_357299, y, LOC46);
			minus = canon_357843(LOC47);
		}
		LA41: ;
		LOC48 = 0;
		LOC48 = HEX5BHEX5D_226244(n, ((NI) 1));
		LOC49 = 0;
		LOC49 = canon_357843(LOC48);
		result = buildcall_357491(ople_357293, LOC49, minus);
	}
	break;
	default:
	{
	}
	break;
	}
	result = skipconv_264935(result);
	result = reassociation_357767(result);
	LOC51 = 0;
	LOC51 = getmagic_254417(result);
	switch (LOC51) {
	case ((NU8) 70):
	case ((NU8) 73):
	case ((NU8) 75):
	case ((NU8) 77):
	case ((NU8) 80):
	case ((NU8) 83):
	case ((NU8) 86):
	case ((NU8) 90):
	case ((NU8) 128):
	{
		Tnode225809* x;
		Tnode225809* y;
		x = HEX5BHEX5D_226244(result, ((NI) 1));
		y = HEX5BHEX5D_226244(result, ((NI) 2));
		{
			NIM_BOOL LOC55;
			NIM_BOOL LOC56;
			NIM_BOOL LOC57;
			NI LOC59;
			Tnode225809* LOC61;
			Tnode225809* LOC63;
			NU8 LOC66;
			LOC55 = 0;
			LOC56 = 0;
			LOC57 = 0;
			LOC57 = ((*x).kind == ((NU8) 27) || (*x).kind == ((NU8) 29) || (*x).kind == ((NU8) 30) || (*x).kind == ((NU8) 31) || (*x).kind == ((NU8) 26) || (*x).kind == ((NU8) 28) || (*x).kind == ((NU8) 32));
			if (!(LOC57)) goto LA58;
			LOC59 = 0;
			LOC59 = len_226098(x);
			LOC57 = (LOC59 == ((NI) 3));
			LA58: ;
			LOC56 = LOC57;
			if (!(LOC56)) goto LA60;
			LOC61 = 0;
			LOC61 = HEX5BHEX5D_226244(x, ((NI) 2));
			LOC56 = isvalue_357095(LOC61);
			LA60: ;
			LOC55 = LOC56;
			if (!(LOC55)) goto LA62;
			LOC63 = 0;
			LOC63 = HEX5BHEX5D_226244(x, ((NI) 1));
			LOC55 = isletlocation_357239(LOC63, NIM_TRUE);
			LA62: ;
			if (!LOC55) goto LA64;
			LOC66 = 0;
			LOC66 = getmagic_254417(x);
			switch (LOC66) {
			case ((NU8) 45):
			case ((NU8) 52):
			case ((NU8) 50):
			{
				Tnode225809* LOC68;
				Tnode225809* LOC69;
				Tnode225809* LOC70;
				Tnode225809* LOC71;
				Tnode225809* LOC72;
				LOC68 = 0;
				LOC68 = HEX5BHEX5D_226244(result, ((NI) 0));
				LOC69 = 0;
				LOC69 = HEX5BHEX5D_226244(x, ((NI) 1));
				LOC70 = 0;
				LOC70 = HEX5BHEX5D_226244(x, ((NI) 2));
				LOC71 = 0;
				LOC71 = buildcall_357491(opadd_357299, y, LOC70);
				LOC72 = 0;
				LOC72 = reassociation_357767(LOC71);
				result = buildcall_357491((*LOC68).kindU.S4.sym, LOC69, LOC72);
			}
			break;
			case ((NU8) 44):
			case ((NU8) 51):
			case ((NU8) 49):
			{
				Tnode225809* plus;
				Tnode225809* LOC74;
				Tnode225809* LOC75;
				LOC74 = 0;
				LOC74 = HEX5BHEX5D_226244(x, ((NI) 2));
				LOC75 = 0;
				LOC75 = negate_357618(y, LOC74, NIM_NIL);
				plus = reassociation_357767(LOC75);
				{
					Tnode225809* LOC80;
					Tnode225809* LOC81;
					if (!!((plus == NIM_NIL))) goto LA78;
					LOC80 = 0;
					LOC80 = HEX5BHEX5D_226244(result, ((NI) 0));
					LOC81 = 0;
					LOC81 = HEX5BHEX5D_226244(x, ((NI) 1));
					result = buildcall_357491((*LOC80).kindU.S4.sym, LOC81, plus);
				}
				LA78: ;
			}
			break;
			default:
			{
			}
			break;
			}
		}
		goto LA53;
		LA64: ;
		{
			NIM_BOOL LOC84;
			NIM_BOOL LOC85;
			NIM_BOOL LOC86;
			NI LOC88;
			Tnode225809* LOC90;
			Tnode225809* LOC92;
			NU8 LOC95;
			LOC84 = 0;
			LOC85 = 0;
			LOC86 = 0;
			LOC86 = ((*y).kind == ((NU8) 27) || (*y).kind == ((NU8) 29) || (*y).kind == ((NU8) 30) || (*y).kind == ((NU8) 31) || (*y).kind == ((NU8) 26) || (*y).kind == ((NU8) 28) || (*y).kind == ((NU8) 32));
			if (!(LOC86)) goto LA87;
			LOC88 = 0;
			LOC88 = len_226098(y);
			LOC86 = (LOC88 == ((NI) 3));
			LA87: ;
			LOC85 = LOC86;
			if (!(LOC85)) goto LA89;
			LOC90 = 0;
			LOC90 = HEX5BHEX5D_226244(y, ((NI) 2));
			LOC85 = isvalue_357095(LOC90);
			LA89: ;
			LOC84 = LOC85;
			if (!(LOC84)) goto LA91;
			LOC92 = 0;
			LOC92 = HEX5BHEX5D_226244(y, ((NI) 1));
			LOC84 = isletlocation_357239(LOC92, NIM_TRUE);
			LA91: ;
			if (!LOC84) goto LA93;
			LOC95 = 0;
			LOC95 = getmagic_254417(y);
			switch (LOC95) {
			case ((NU8) 45):
			case ((NU8) 52):
			case ((NU8) 50):
			{
				Tnode225809* LOC97;
				Tnode225809* LOC98;
				Tnode225809* LOC99;
				Tnode225809* LOC100;
				Tnode225809* LOC101;
				LOC97 = 0;
				LOC97 = HEX5BHEX5D_226244(result, ((NI) 0));
				LOC98 = 0;
				LOC98 = HEX5BHEX5D_226244(y, ((NI) 1));
				LOC99 = 0;
				LOC99 = HEX5BHEX5D_226244(y, ((NI) 2));
				LOC100 = 0;
				LOC100 = buildcall_357491(opadd_357299, x, LOC99);
				LOC101 = 0;
				LOC101 = reassociation_357767(LOC100);
				result = buildcall_357491((*LOC97).kindU.S4.sym, LOC98, LOC101);
			}
			break;
			case ((NU8) 44):
			case ((NU8) 51):
			case ((NU8) 49):
			{
				Tnode225809* plus;
				Tnode225809* LOC103;
				Tnode225809* LOC104;
				LOC103 = 0;
				LOC103 = HEX5BHEX5D_226244(y, ((NI) 2));
				LOC104 = 0;
				LOC104 = negate_357618(x, LOC103, NIM_NIL);
				plus = reassociation_357767(LOC104);
				{
					NIM_BOOL LOC107;
					NIM_BOOL LOC109;
					Tnode225809* LOC112;
					Tnode225809* LOC113;
					LOC107 = 0;
					LOC107 = !((plus == NIM_NIL));
					if (!(LOC107)) goto LA108;
					LOC109 = 0;
					LOC109 = isletlocation_357239(x, NIM_TRUE);
					LOC107 = !(LOC109);
					LA108: ;
					if (!LOC107) goto LA110;
					LOC112 = 0;
					LOC112 = HEX5BHEX5D_226244(result, ((NI) 0));
					LOC113 = 0;
					LOC113 = HEX5BHEX5D_226244(y, ((NI) 1));
					result = buildcall_357491((*LOC112).kindU.S4.sym, plus, LOC113);
				}
				LA110: ;
			}
			break;
			default:
			{
			}
			break;
			}
		}
		goto LA53;
		LA93: ;
		{
			NIM_BOOL LOC116;
			NIM_BOOL LOC117;
			NU8 LOC119;
			Tnode225809* LOC121;
			Tnode225809* LOC124;
			LOC116 = 0;
			LOC117 = 0;
			LOC117 = isvalue_357095(x);
			if (!(LOC117)) goto LA118;
			LOC119 = 0;
			LOC119 = getmagic_254417(y);
			LOC117 = (LOC119 == ((NU8) 44) || LOC119 == ((NU8) 51) || LOC119 == ((NU8) 49));
			LA118: ;
			LOC116 = LOC117;
			if (!(LOC116)) goto LA120;
			LOC121 = 0;
			LOC121 = HEX5BHEX5D_226244(y, ((NI) 2));
			LOC116 = isvalue_357095(LOC121);
			LA120: ;
			if (!LOC116) goto LA122;
			LOC124 = 0;
			LOC124 = HEX5BHEX5D_226244(y, ((NI) 2));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), HEX7CHEX2DHEX7C_357534(x, LOC124));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), HEX5BHEX5D_226244(y, ((NI) 1)));
		}
		goto LA53;
		LA122: ;
		{
			NIM_BOOL LOC126;
			NIM_BOOL LOC127;
			NU8 LOC129;
			Tnode225809* LOC131;
			Tnode225809* LOC134;
			LOC126 = 0;
			LOC127 = 0;
			LOC127 = isvalue_357095(x);
			if (!(LOC127)) goto LA128;
			LOC129 = 0;
			LOC129 = getmagic_254417(y);
			LOC127 = (LOC129 == ((NU8) 45) || LOC129 == ((NU8) 52) || LOC129 == ((NU8) 50));
			LA128: ;
			LOC126 = LOC127;
			if (!(LOC126)) goto LA130;
			LOC131 = 0;
			LOC131 = HEX5BHEX5D_226244(y, ((NI) 2));
			LOC126 = isvalue_357095(LOC131);
			LA130: ;
			if (!LOC126) goto LA132;
			LOC134 = 0;
			LOC134 = HEX5BHEX5D_226244(y, ((NI) 2));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), HEX7CHEX2BHEX7C_357506(x, LOC134));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), HEX5BHEX5D_226244(y, ((NI) 1)));
		}
		goto LA53;
		LA132: ;
		LA53: ;
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

N_NIMCALL(void, addfactle_360849)(Tnodeseq225803** m, Tnode225809* a, Tnode225809* b) {
	Tnode225809* LOC1;
	Tnode225809* LOC2;
	LOC1 = 0;
	LOC1 = buildcall_357491(ople_357293, a, b);
	LOC2 = 0;
	LOC2 = canon_357843(LOC1);
	(*m) = (Tnodeseq225803*) incrSeqV2(&((*m))->Sup, sizeof(Tnode225809*));
	asgnRefNoCycle((void**) (&(*m)->data[(*m)->Sup.len]), LOC2);
	++(*m)->Sup.len;
}

N_NIMCALL(Tnode225809*, one_357684)(void) {
	Tnode225809* result;
	result = 0;
	result = newintnode_226607(((NU8) 6), IL64(1));
	return result;
}

N_NIMCALL(Tnode225809*, HEX7CdivHEX7C_357590)(Tnode225809* a, Tnode225809* b) {
	Tnode225809* result;
	result = 0;
	result = copynode_229660(a);
	{
		if (!((*a).kind >= ((NU8) 5) && (*a).kind <= ((NU8) 15))) goto LA3;
		(*result).kindU.S1.intval = (NI64)((*a).kindU.S1.intval / (*b).kindU.S1.intval);
	}
	goto LA1;
	LA3: ;
	{
		(*result).kindU.S2.floatval = ((NF)((*a).kindU.S2.floatval) / (NF)((*b).kindU.S2.floatval));
	}
	LA1: ;
	return result;
}

N_NIMCALL(NIM_BOOL, isminusone_359600)(Tnode225809* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*n).kind >= ((NU8) 5) && (*n).kind <= ((NU8) 15));
	if (!(LOC1)) goto LA2;
	LOC1 = ((*n).kindU.S1.intval == IL64(-1));
	LA2: ;
	result = LOC1;
	return result;
}
N_NIMCALL(void, TMP4268)(void* p, NI op) {
	Treplacements360219* a;
	NI LOC1;
	a = (Treplacements360219*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1].Field0, op);
	nimGCvisit((void*)a->data[LOC1].Field1, op);
	}
}

N_NIMCALL(Tnode225809*, replacesubtree_360226)(Tnode225809* n, Tnode225809* x, Tnode225809* by) {
	Tnode225809* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = sametree_358462(n, x);
		if (!LOC3) goto LA4;
		result = by;
	}
	goto LA1;
	LA4: ;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = hassubtree_358618(n, x);
		if (!LOC7) goto LA8;
		result = shallowcopy_229817(n);
		{
			NI i_360242;
			NI HEX3Atmp_360246;
			NI LOC11;
			NI res_360249;
			i_360242 = 0;
			HEX3Atmp_360246 = 0;
			LOC11 = 0;
			LOC11 = safelen_226126(n);
			HEX3Atmp_360246 = (NI)(LOC11 - ((NI) 1));
			res_360249 = ((NI) 0);
			{
				while (1) {
					if (!(res_360249 <= HEX3Atmp_360246)) goto LA13;
					i_360242 = res_360249;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_360242]), replacesubtree_360226((*n).kindU.S6.sons->data[i_360242], x, by));
					res_360249 += ((NI) 1);
				} LA13: ;
			}
		}
	}
	goto LA1;
	LA8: ;
	{
		result = n;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode225809*, applyreplacements_360268)(Tnode225809* n, Treplacements360219* rep) {
	Tnode225809* result;
	result = 0;
	result = n;
	{
		TY360220 x_360411;
		NI i_360416;
		NI L_360418;
		memset((void*)(&x_360411), 0, sizeof(x_360411));
		i_360416 = ((NI) 0);
		L_360418 = (rep ? rep->Sup.len : 0);
		{
			while (1) {
				if (!(i_360416 < L_360418)) goto LA3;
				x_360411.Field0 = rep->data[i_360416].Field0;
				x_360411.Field1 = rep->data[i_360416].Field1;
				result = replacesubtree_360226(result, x_360411.Field0, x_360411.Field1);
				i_360416 += ((NI) 1);
			} LA3: ;
		}
	}
	return result;
}

N_NIMCALL(NU8, pleviamodelrec_360434)(Tnodeseq225803** m, Tnode225809* a, Tnode225809* b) {
	NU8 result;
{	result = 0;
	{
		NI i_360451;
		NI HEX3Atmp_360602;
		NI res_360605;
		i_360451 = 0;
		HEX3Atmp_360602 = 0;
		HEX3Atmp_360602 = ((*m) ? ((*m)->Sup.len-1) : -1);
		res_360605 = ((NI) 0);
		{
			while (1) {
				Tnode225809* fact;
				if (!(res_360605 <= HEX3Atmp_360602)) goto LA3;
				i_360451 = res_360605;
				fact = (*m)->data[i_360451];
				{
					NIM_BOOL LOC6;
					NU8 LOC8;
					Tnode225809* x;
					Tnode225809* y;
					LOC6 = 0;
					LOC6 = !((fact == NIM_NIL));
					if (!(LOC6)) goto LA7;
					LOC8 = 0;
					LOC8 = getmagic_254417(fact);
					LOC6 = ((TMP4270[LOC8/8] &(1<<(LOC8%8)))!=0);
					LA7: ;
					if (!LOC6) goto LA9;
					asgnRefNoCycle((void**) (&(*m)->data[i_360451]), NIM_NIL);
					x = HEX5BHEX5D_226244(fact, ((NI) 1));
					y = HEX5BHEX5D_226244(fact, ((NI) 2));
					{
						NIM_BOOL LOC13;
						NIM_BOOL LOC14;
						NIM_BOOL LOC15;
						NU8 LOC17;
						NU8 LOC19;
						Tnode225809* LOC21;
						Tnode225809* LOC22;
						LOC13 = 0;
						LOC14 = 0;
						LOC15 = 0;
						LOC15 = sametree_358462(x, a);
						if (!(LOC15)) goto LA16;
						LOC17 = 0;
						LOC17 = getmagic_254417(y);
						LOC15 = (LOC17 == ((NU8) 44) || LOC17 == ((NU8) 51) || LOC17 == ((NU8) 49));
						LA16: ;
						LOC14 = LOC15;
						if (!(LOC14)) goto LA18;
						LOC19 = 0;
						LOC19 = getmagic_254417(b);
						LOC14 = (LOC19 == ((NU8) 44) || LOC19 == ((NU8) 51) || LOC19 == ((NU8) 49));
						LA18: ;
						LOC13 = LOC14;
						if (!(LOC13)) goto LA20;
						LOC21 = 0;
						LOC21 = HEX5BHEX5D_226244(y, ((NI) 1));
						LOC22 = 0;
						LOC22 = HEX5BHEX5D_226244(b, ((NI) 1));
						LOC13 = sametree_358462(LOC21, LOC22);
						LA20: ;
						if (!LOC13) goto LA23;
						{
							Tnode225809* LOC27;
							Tnode225809* LOC28;
							NU8 LOC29;
							LOC27 = 0;
							LOC27 = HEX5BHEX5D_226244(b, ((NI) 2));
							LOC28 = 0;
							LOC28 = HEX5BHEX5D_226244(y, ((NI) 2));
							LOC29 = 0;
							LOC29 = ple_359630((*m), LOC27, LOC28);
							if (!(LOC29 == ((NU8) 2))) goto LA30;
							result = ((NU8) 2);
							goto BeforeRet;
						}
						LA30: ;
					}
					LA23: ;
					{
						NU8 LOC34;
						LOC34 = 0;
						LOC34 = ple_359630((*m), a, x);
						if (!(LOC34 == ((NU8) 2))) goto LA35;
						{
							NU8 LOC39;
							LOC39 = 0;
							LOC39 = ple_359630((*m), y, b);
							if (!(LOC39 == ((NU8) 2))) goto LA40;
							result = ((NU8) 2);
							goto BeforeRet;
						}
						LA40: ;
					}
					LA35: ;
					result = impliesle_359060(fact, a, b);
					{
						if (!!((result == ((NU8) 0)))) goto LA44;
						goto BeforeRet;
					}
					LA44: ;
				}
				LA9: ;
				res_360605 += ((NI) 1);
			} LA3: ;
		}
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NU8, pleviamodel_359622)(Tnodeseq225803* model, Tnode225809* aa, Tnode225809* bb) {
	NU8 result;
	Treplacements360219* replacements;
	Tnodeseq225803* m;
	Tnode225809* a;
	Tnode225809* b;
	result = 0;
	replacements = (Treplacements360219*) newSeq((&NTI360219), 0);
	{
		Tnode225809* fact_360656;
		NI i_360789;
		NI L_360791;
		fact_360656 = 0;
		i_360789 = ((NI) 0);
		L_360791 = (model ? model->Sup.len : 0);
		{
			while (1) {
				if (!(i_360789 < L_360791)) goto LA3;
				fact_360656 = model->data[i_360789];
				{
					NIM_BOOL LOC6;
					NU8 LOC8;
					Tnode225809* a;
					Tnode225809* b;
					LOC6 = 0;
					LOC6 = !((fact_360656 == NIM_NIL));
					if (!(LOC6)) goto LA7;
					LOC8 = 0;
					LOC8 = getmagic_254417(fact_360656);
					LOC6 = ((TMP4269[LOC8/8] &(1<<(LOC8%8)))!=0);
					LA7: ;
					if (!LOC6) goto LA9;
					a = HEX5BHEX5D_226244(fact_360656, ((NI) 1));
					b = HEX5BHEX5D_226244(fact_360656, ((NI) 2));
					{
						TY360220 LOC15;
						if (!((*a).kind == ((NU8) 3))) goto LA13;
						memset((void*)(&LOC15), 0, sizeof(LOC15));
						LOC15.Field0 = a;
						LOC15.Field1 = b;
						replacements = (Treplacements360219*) incrSeqV2(&(replacements)->Sup, sizeof(TY360220));
						asgnRefNoCycle((void**) (&replacements->data[replacements->Sup.len].Field0), LOC15.Field0);
						asgnRefNoCycle((void**) (&replacements->data[replacements->Sup.len].Field1), LOC15.Field1);
						++replacements->Sup.len;
					}
					goto LA11;
					LA13: ;
					{
						TY360220 LOC17;
						memset((void*)(&LOC17), 0, sizeof(LOC17));
						LOC17.Field0 = b;
						LOC17.Field1 = a;
						replacements = (Treplacements360219*) incrSeqV2(&(replacements)->Sup, sizeof(TY360220));
						asgnRefNoCycle((void**) (&replacements->data[replacements->Sup.len].Field0), LOC17.Field0);
						asgnRefNoCycle((void**) (&replacements->data[replacements->Sup.len].Field1), LOC17.Field1);
						++replacements->Sup.len;
					}
					LA11: ;
				}
				LA9: ;
				i_360789 += ((NI) 1);
			} LA3: ;
		}
	}
	m = 0;
	a = aa;
	b = bb;
	{
		if (!(((NI) 0) < (replacements ? replacements->Sup.len : 0))) goto LA20;
		m = (Tnodeseq225803*) newSeq((&NTI225803), 0);
		{
			Tnode225809* fact_360749;
			NI i_360796;
			NI L_360798;
			fact_360749 = 0;
			i_360796 = ((NI) 0);
			L_360798 = (model ? model->Sup.len : 0);
			{
				while (1) {
					if (!(i_360796 < L_360798)) goto LA24;
					fact_360749 = model->data[i_360796];
					{
						NIM_BOOL LOC27;
						NU8 LOC29;
						Tnode225809* LOC32;
						Tnode225809* LOC33;
						LOC27 = 0;
						LOC27 = !((fact_360749 == NIM_NIL));
						if (!(LOC27)) goto LA28;
						LOC29 = 0;
						LOC29 = getmagic_254417(fact_360749);
						LOC27 = !(((TMP4269[LOC29/8] &(1<<(LOC29%8)))!=0));
						LA28: ;
						if (!LOC27) goto LA30;
						LOC32 = 0;
						LOC32 = applyreplacements_360268(fact_360749, replacements);
						LOC33 = 0;
						LOC33 = canon_357843(LOC32);
						m = (Tnodeseq225803*) incrSeqV2(&(m)->Sup, sizeof(Tnode225809*));
						asgnRefNoCycle((void**) (&m->data[m->Sup.len]), LOC33);
						++m->Sup.len;
					}
					LA30: ;
					i_360796 += ((NI) 1);
				} LA24: ;
			}
		}
		a = applyreplacements_360268(aa, replacements);
		b = applyreplacements_360268(bb, replacements);
	}
	goto LA18;
	LA20: ;
	{
		genericSeqAssign((&m), model, (&NTI225803));
	}
	LA18: ;
	result = pleviamodelrec_360434((&m), a, b);
	return result;
}

N_NIMCALL(NU8, ple_359630)(Tnodeseq225803* m, Tnode225809* a, Tnode225809* b) {
	NU8 result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isvalue_357095(a);
		if (!(LOC3)) goto LA4;
		LOC3 = isvalue_357095(b);
		LA4: ;
		if (!LOC3) goto LA5;
		{
			NIM_BOOL LOC9;
			LOC9 = 0;
			LOC9 = levalue_233374(a, b);
			if (!LOC9) goto LA10;
			result = ((NU8) 2);
		}
		goto LA7;
		LA10: ;
		{
			result = ((NU8) 1);
		}
		LA7: ;
		goto BeforeRet;
	}
	LA5: ;
	{
		NIM_BOOL LOC15;
		NIM_BOOL LOC16;
		LOC15 = 0;
		LOC16 = 0;
		LOC16 = isvalue_357095(b);
		if (!(LOC16)) goto LA17;
		LOC16 = !(((*a).typ == NIM_NIL));
		LA17: ;
		LOC15 = LOC16;
		if (!(LOC15)) goto LA18;
		LOC15 = isordinaltype_255093((*a).typ);
		LA18: ;
		if (!LOC15) goto LA19;
		{
			NI64 LOC23;
			LOC23 = 0;
			LOC23 = lastord_255010((*a).typ);
			if (!(LOC23 <= (*b).kindU.S1.intval)) goto LA24;
			result = ((NU8) 2);
			goto BeforeRet;
		}
		LA24: ;
	}
	LA19: ;
	{
		NIM_BOOL LOC28;
		NIM_BOOL LOC29;
		LOC28 = 0;
		LOC29 = 0;
		LOC29 = isvalue_357095(a);
		if (!(LOC29)) goto LA30;
		LOC29 = !(((*b).typ == NIM_NIL));
		LA30: ;
		LOC28 = LOC29;
		if (!(LOC28)) goto LA31;
		LOC28 = isordinaltype_255093((*b).typ);
		LA31: ;
		if (!LOC28) goto LA32;
		{
			NI64 LOC36;
			LOC36 = 0;
			LOC36 = firstord_255004((*b).typ);
			if (!(LOC36 <= (*a).kindU.S1.intval)) goto LA37;
			result = ((NU8) 2);
			goto BeforeRet;
		}
		LA37: ;
	}
	LA32: ;
	{
		NIM_BOOL LOC41;
		LOC41 = 0;
		LOC41 = sametree_358462(a, b);
		if (!LOC41) goto LA42;
		result = ((NU8) 2);
		goto BeforeRet;
	}
	LA42: ;
	{
		NIM_BOOL LOC46;
		NU8 LOC47;
		LOC46 = 0;
		LOC47 = 0;
		LOC47 = getmagic_254417(b);
		LOC46 = (LOC47 == ((NU8) 32) || LOC47 == ((NU8) 33) || LOC47 == ((NU8) 34) || LOC47 == ((NU8) 35) || LOC47 == ((NU8) 36) || LOC47 == ((NU8) 37));
		if (!(LOC46)) goto LA48;
		LOC46 = isvalue_357095(a);
		LA48: ;
		if (!LOC46) goto LA49;
		{
			if (!((*a).kindU.S1.intval <= IL64(0))) goto LA53;
			result = ((NU8) 2);
			goto BeforeRet;
		}
		LA53: ;
	}
	LA49: ;
	{
		NIM_BOOL LOC57;
		NIM_BOOL LOC58;
		NU8 LOC59;
		Tnode225809* LOC61;
		Tnode225809* LOC62;
		NU8 LOC63;
		Tnode225809* LOC65;
		NU8 LOC66;
		LOC57 = 0;
		LOC58 = 0;
		LOC59 = 0;
		LOC59 = getmagic_254417(b);
		LOC58 = (LOC59 == ((NU8) 44) || LOC59 == ((NU8) 51) || LOC59 == ((NU8) 49));
		if (!(LOC58)) goto LA60;
		LOC61 = 0;
		LOC61 = zero_357675();
		LOC62 = 0;
		LOC62 = HEX5BHEX5D_226244(b, ((NI) 2));
		LOC63 = 0;
		LOC63 = ple_359630(m, LOC61, LOC62);
		LOC58 = (LOC63 == ((NU8) 2));
		LA60: ;
		LOC57 = LOC58;
		if (!(LOC57)) goto LA64;
		LOC65 = 0;
		LOC65 = HEX5BHEX5D_226244(b, ((NI) 1));
		LOC66 = 0;
		LOC66 = ple_359630(m, a, LOC65);
		LOC57 = (LOC66 == ((NU8) 2));
		LA64: ;
		if (!LOC57) goto LA67;
		result = ((NU8) 2);
		goto BeforeRet;
	}
	LA67: ;
	{
		NIM_BOOL LOC71;
		NIM_BOOL LOC72;
		NU8 LOC73;
		Tnode225809* LOC75;
		Tnode225809* LOC76;
		NU8 LOC77;
		Tnode225809* LOC79;
		NU8 LOC80;
		LOC71 = 0;
		LOC72 = 0;
		LOC73 = 0;
		LOC73 = getmagic_254417(a);
		LOC72 = (LOC73 == ((NU8) 44) || LOC73 == ((NU8) 51) || LOC73 == ((NU8) 49));
		if (!(LOC72)) goto LA74;
		LOC75 = 0;
		LOC75 = HEX5BHEX5D_226244(a, ((NI) 2));
		LOC76 = 0;
		LOC76 = zero_357675();
		LOC77 = 0;
		LOC77 = ple_359630(m, LOC75, LOC76);
		LOC72 = (LOC77 == ((NU8) 2));
		LA74: ;
		LOC71 = LOC72;
		if (!(LOC71)) goto LA78;
		LOC79 = 0;
		LOC79 = HEX5BHEX5D_226244(a, ((NI) 1));
		LOC80 = 0;
		LOC80 = ple_359630(m, LOC79, b);
		LOC71 = (LOC80 == ((NU8) 2));
		LA78: ;
		if (!LOC71) goto LA81;
		result = ((NU8) 2);
		goto BeforeRet;
	}
	LA81: ;
	{
		NU8 LOC85;
		LOC85 = 0;
		LOC85 = getmagic_254417(b);
		if (!(LOC85 == ((NU8) 46) || LOC85 == ((NU8) 53))) goto LA86;
		{
			NIM_BOOL LOC90;
			NIM_BOOL LOC91;
			Tnode225809* LOC92;
			NU8 LOC93;
			Tnode225809* LOC95;
			Tnode225809* LOC96;
			NU8 LOC97;
			Tnode225809* LOC99;
			Tnode225809* LOC100;
			NU8 LOC101;
			LOC90 = 0;
			LOC91 = 0;
			LOC92 = 0;
			LOC92 = HEX5BHEX5D_226244(b, ((NI) 1));
			LOC93 = 0;
			LOC93 = ple_359630(m, a, LOC92);
			LOC91 = (LOC93 == ((NU8) 2));
			if (!(LOC91)) goto LA94;
			LOC95 = 0;
			LOC95 = one_357684();
			LOC96 = 0;
			LOC96 = HEX5BHEX5D_226244(b, ((NI) 2));
			LOC97 = 0;
			LOC97 = ple_359630(m, LOC95, LOC96);
			LOC91 = (LOC97 == ((NU8) 2));
			LA94: ;
			LOC90 = LOC91;
			if (!(LOC90)) goto LA98;
			LOC99 = 0;
			LOC99 = zero_357675();
			LOC100 = 0;
			LOC100 = HEX5BHEX5D_226244(b, ((NI) 1));
			LOC101 = 0;
			LOC101 = ple_359630(m, LOC99, LOC100);
			LOC90 = (LOC101 == ((NU8) 2));
			LA98: ;
			if (!LOC90) goto LA102;
			result = ((NU8) 2);
			goto BeforeRet;
		}
		LA102: ;
	}
	LA86: ;
	{
		NIM_BOOL LOC106;
		NIM_BOOL LOC107;
		NIM_BOOL LOC108;
		NU8 LOC109;
		Tnode225809* LOC111;
		Tnode225809* LOC113;
		NU8 LOC114;
		Tnode225809* LOC116;
		Tnode225809* LOC117;
		LOC106 = 0;
		LOC107 = 0;
		LOC108 = 0;
		LOC109 = 0;
		LOC109 = getmagic_254417(a);
		LOC108 = (LOC109 == ((NU8) 46) || LOC109 == ((NU8) 53));
		if (!(LOC108)) goto LA110;
		LOC111 = 0;
		LOC111 = HEX5BHEX5D_226244(a, ((NI) 2));
		LOC108 = isvalue_357095(LOC111);
		LA110: ;
		LOC107 = LOC108;
		if (!(LOC107)) goto LA112;
		LOC113 = 0;
		LOC113 = HEX5BHEX5D_226244(a, ((NI) 1));
		LOC114 = 0;
		LOC114 = getmagic_254417(LOC113);
		LOC107 = (LOC114 == ((NU8) 47) || LOC114 == ((NU8) 54));
		LA112: ;
		LOC106 = LOC107;
		if (!(LOC106)) goto LA115;
		LOC116 = 0;
		LOC116 = HEX5BHEX5D_226244(a, ((NI) 1));
		LOC117 = 0;
		LOC117 = HEX5BHEX5D_226244(LOC116, ((NI) 2));
		LOC106 = isvalue_357095(LOC117);
		LA115: ;
		if (!LOC106) goto LA118;
		{
			Tnode225809* LOC122;
			Tnode225809* LOC123;
			Tnode225809* LOC124;
			Tnode225809* LOC125;
			Tnode225809* LOC126;
			Tnode225809* LOC127;
			Tnode225809* LOC128;
			NU8 LOC129;
			LOC122 = 0;
			LOC122 = HEX5BHEX5D_226244(a, ((NI) 1));
			LOC123 = 0;
			LOC123 = HEX5BHEX5D_226244(LOC122, ((NI) 1));
			LOC124 = 0;
			LOC124 = HEX5BHEX5D_226244(a, ((NI) 1));
			LOC125 = 0;
			LOC125 = HEX5BHEX5D_226244(LOC124, ((NI) 2));
			LOC126 = 0;
			LOC126 = HEX5BHEX5D_226244(a, ((NI) 2));
			LOC127 = 0;
			LOC127 = HEX7CdivHEX7C_357590(LOC125, LOC126);
			LOC128 = 0;
			LOC128 = buildcall_357491(opdiv_357302, LOC123, LOC127);
			LOC129 = 0;
			LOC129 = ple_359630(m, LOC128, b);
			if (!(LOC129 == ((NU8) 2))) goto LA130;
			result = ((NU8) 2);
			goto BeforeRet;
		}
		LA130: ;
	}
	LA118: ;
	{
		NIM_BOOL LOC134;
		NIM_BOOL LOC135;
		NU8 LOC136;
		NIM_BOOL LOC138;
		Tnode225809* LOC139;
		NU8 LOC140;
		NIM_BOOL LOC142;
		Tnode225809* x;
		Tnode225809* LOC143;
		NIM_BOOL LOC145;
		Tnode225809* dc;
		Tnode225809* LOC146;
		Tnode225809* y;
		NIM_BOOL LOC149;
		NU8 LOC150;
		NIM_BOOL LOC152;
		Tnode225809* x2;
		Tnode225809* ec;
		LOC134 = 0;
		LOC135 = 0;
		LOC136 = 0;
		LOC136 = getmagic_254417(a);
		LOC135 = ((someadd_357029[LOC136/8] &(1<<(LOC136%8)))!=0);
		if (!(LOC135)) goto LA137;
		LOC138 = 0;
		LOC139 = 0;
		LOC139 = HEX5BHEX5D_226244(a, ((NI) 1));
		LOC140 = 0;
		LOC140 = getmagic_254417(LOC139);
		LOC138 = ((somemul_357033[LOC140/8] &(1<<(LOC140%8)))!=0);
		if (!(LOC138)) goto LA141;
		LOC142 = 0;
		LOC143 = 0;
		LOC143 = HEX5BHEX5D_226244(a, ((NI) 1));
		x = HEX5BHEX5D_226244(LOC143, ((NI) 1));
		LOC142 = NIM_TRUE;
		if (!(LOC142)) goto LA144;
		LOC145 = 0;
		LOC146 = 0;
		LOC146 = HEX5BHEX5D_226244(a, ((NI) 1));
		dc = HEX5BHEX5D_226244(LOC146, ((NI) 2));
		LOC145 = ((*dc).kind >= ((NU8) 5) && (*dc).kind <= ((NU8) 15));
		if (!(LOC145)) goto LA147;
		y = HEX5BHEX5D_226244(a, ((NI) 2));
		LOC145 = NIM_TRUE;
		LA147: ;
		LOC142 = LOC145;
		LA144: ;
		LOC138 = LOC142;
		LA141: ;
		LOC135 = LOC138;
		LA137: ;
		LOC134 = LOC135;
		if (!(LOC134)) goto LA148;
		LOC149 = 0;
		LOC150 = 0;
		LOC150 = getmagic_254417(b);
		LOC149 = ((somemul_357033[LOC150/8] &(1<<(LOC150%8)))!=0);
		if (!(LOC149)) goto LA151;
		LOC152 = 0;
		x2 = HEX5BHEX5D_226244(b, ((NI) 1));
		LOC152 = NIM_TRUE;
		if (!(LOC152)) goto LA153;
		ec = HEX5BHEX5D_226244(b, ((NI) 2));
		LOC152 = ((*ec).kind >= ((NU8) 5) && (*ec).kind <= ((NU8) 15));
		LA153: ;
		LOC149 = LOC152;
		LA151: ;
		LOC134 = LOC149;
		LA148: ;
		if (!LOC134) goto LA154;
		{
			NIM_BOOL LOC158;
			Tnode225809* ec1;
			Tnode225809* LOC161;
			LOC158 = 0;
			LOC158 = sametree_358462(x, x2);
			if (!LOC158) goto LA159;
			LOC161 = 0;
			LOC161 = minusone_357693();
			ec1 = buildcall_357491(opadd_357299, ec, LOC161);
			{
				NIM_BOOL LOC164;
				NIM_BOOL LOC165;
				NIM_BOOL LOC166;
				NIM_BOOL LOC167;
				Tnode225809* LOC168;
				NU8 LOC169;
				Tnode225809* LOC171;
				NU8 LOC172;
				Tnode225809* LOC174;
				NU8 LOC175;
				NU8 LOC177;
				NU8 LOC179;
				LOC164 = 0;
				LOC165 = 0;
				LOC166 = 0;
				LOC167 = 0;
				LOC168 = 0;
				LOC168 = newintnode_226607(((NU8) 6), IL64(1));
				LOC169 = 0;
				LOC169 = ple_359630(m, LOC168, x);
				LOC167 = (LOC169 == ((NU8) 2));
				if (!(LOC167)) goto LA170;
				LOC171 = 0;
				LOC171 = newintnode_226607(((NU8) 6), IL64(1));
				LOC172 = 0;
				LOC172 = ple_359630(m, LOC171, ec);
				LOC167 = (LOC172 == ((NU8) 2));
				LA170: ;
				LOC166 = LOC167;
				if (!(LOC166)) goto LA173;
				LOC174 = 0;
				LOC174 = newintnode_226607(((NU8) 6), IL64(1));
				LOC175 = 0;
				LOC175 = ple_359630(m, LOC174, dc);
				LOC166 = (LOC175 == ((NU8) 2));
				LA173: ;
				LOC165 = LOC166;
				if (!(LOC165)) goto LA176;
				LOC177 = 0;
				LOC177 = ple_359630(m, dc, ec1);
				LOC165 = (LOC177 == ((NU8) 2));
				LA176: ;
				LOC164 = LOC165;
				if (!(LOC164)) goto LA178;
				LOC179 = 0;
				LOC179 = ple_359630(m, y, x);
				LOC164 = (LOC179 == ((NU8) 2));
				LA178: ;
				if (!LOC164) goto LA180;
				result = ((NU8) 2);
				goto BeforeRet;
			}
			LA180: ;
		}
		LA159: ;
	}
	goto LA132;
	LA154: ;
	{
		NIM_BOOL LOC183;
		NIM_BOOL LOC184;
		NU8 LOC185;
		NIM_BOOL LOC187;
		Tnode225809* x;
		Tnode225809* dc;
		NIM_BOOL LOC190;
		NU8 LOC191;
		NIM_BOOL LOC193;
		Tnode225809* LOC194;
		NU8 LOC195;
		NIM_BOOL LOC197;
		Tnode225809* x2;
		Tnode225809* LOC198;
		NIM_BOOL LOC200;
		Tnode225809* ec;
		Tnode225809* LOC201;
		Tnode225809* y;
		LOC183 = 0;
		LOC184 = 0;
		LOC185 = 0;
		LOC185 = getmagic_254417(a);
		LOC184 = ((somemul_357033[LOC185/8] &(1<<(LOC185%8)))!=0);
		if (!(LOC184)) goto LA186;
		LOC187 = 0;
		x = HEX5BHEX5D_226244(a, ((NI) 1));
		LOC187 = NIM_TRUE;
		if (!(LOC187)) goto LA188;
		dc = HEX5BHEX5D_226244(a, ((NI) 2));
		LOC187 = ((*dc).kind >= ((NU8) 5) && (*dc).kind <= ((NU8) 15));
		LA188: ;
		LOC184 = LOC187;
		LA186: ;
		LOC183 = LOC184;
		if (!(LOC183)) goto LA189;
		LOC190 = 0;
		LOC191 = 0;
		LOC191 = getmagic_254417(b);
		LOC190 = ((someadd_357029[LOC191/8] &(1<<(LOC191%8)))!=0);
		if (!(LOC190)) goto LA192;
		LOC193 = 0;
		LOC194 = 0;
		LOC194 = HEX5BHEX5D_226244(b, ((NI) 1));
		LOC195 = 0;
		LOC195 = getmagic_254417(LOC194);
		LOC193 = ((somemul_357033[LOC195/8] &(1<<(LOC195%8)))!=0);
		if (!(LOC193)) goto LA196;
		LOC197 = 0;
		LOC198 = 0;
		LOC198 = HEX5BHEX5D_226244(b, ((NI) 1));
		x2 = HEX5BHEX5D_226244(LOC198, ((NI) 1));
		LOC197 = NIM_TRUE;
		if (!(LOC197)) goto LA199;
		LOC200 = 0;
		LOC201 = 0;
		LOC201 = HEX5BHEX5D_226244(b, ((NI) 1));
		ec = HEX5BHEX5D_226244(LOC201, ((NI) 2));
		LOC200 = ((*ec).kind >= ((NU8) 5) && (*ec).kind <= ((NU8) 15));
		if (!(LOC200)) goto LA202;
		y = HEX5BHEX5D_226244(b, ((NI) 2));
		LOC200 = NIM_TRUE;
		LA202: ;
		LOC197 = LOC200;
		LA199: ;
		LOC193 = LOC197;
		LA196: ;
		LOC190 = LOC193;
		LA192: ;
		LOC183 = LOC190;
		LA189: ;
		if (!LOC183) goto LA203;
		{
			NIM_BOOL LOC207;
			Tnode225809* ec1;
			Tnode225809* LOC210;
			LOC207 = 0;
			LOC207 = sametree_358462(x, x2);
			if (!LOC207) goto LA208;
			LOC210 = 0;
			LOC210 = minusone_357693();
			ec1 = buildcall_357491(opadd_357299, ec, LOC210);
			{
				NIM_BOOL LOC213;
				NIM_BOOL LOC214;
				NIM_BOOL LOC215;
				NIM_BOOL LOC216;
				Tnode225809* LOC217;
				NU8 LOC218;
				Tnode225809* LOC220;
				NU8 LOC221;
				Tnode225809* LOC223;
				NU8 LOC224;
				NU8 LOC226;
				Tnode225809* LOC228;
				NU8 LOC229;
				LOC213 = 0;
				LOC214 = 0;
				LOC215 = 0;
				LOC216 = 0;
				LOC217 = 0;
				LOC217 = newintnode_226607(((NU8) 6), IL64(1));
				LOC218 = 0;
				LOC218 = ple_359630(m, LOC217, x);
				LOC216 = (LOC218 == ((NU8) 2));
				if (!(LOC216)) goto LA219;
				LOC220 = 0;
				LOC220 = newintnode_226607(((NU8) 6), IL64(1));
				LOC221 = 0;
				LOC221 = ple_359630(m, LOC220, ec);
				LOC216 = (LOC221 == ((NU8) 2));
				LA219: ;
				LOC215 = LOC216;
				if (!(LOC215)) goto LA222;
				LOC223 = 0;
				LOC223 = newintnode_226607(((NU8) 6), IL64(1));
				LOC224 = 0;
				LOC224 = ple_359630(m, LOC223, dc);
				LOC215 = (LOC224 == ((NU8) 2));
				LA222: ;
				LOC214 = LOC215;
				if (!(LOC214)) goto LA225;
				LOC226 = 0;
				LOC226 = ple_359630(m, dc, ec1);
				LOC214 = (LOC226 == ((NU8) 2));
				LA225: ;
				LOC213 = LOC214;
				if (!(LOC213)) goto LA227;
				LOC228 = 0;
				LOC228 = zero_357675();
				LOC229 = 0;
				LOC229 = ple_359630(m, y, LOC228);
				LOC213 = (LOC229 == ((NU8) 2));
				LA227: ;
				if (!LOC213) goto LA230;
				result = ((NU8) 2);
				goto BeforeRet;
			}
			LA230: ;
		}
		LA208: ;
	}
	goto LA132;
	LA203: ;
	LA132: ;
	{
		NIM_BOOL LOC234;
		NU8 LOC235;
		NU8 LOC237;
		NU8 LOC238;
		LOC234 = 0;
		LOC235 = 0;
		LOC235 = getmagic_254417(a);
		LOC234 = (LOC235 >= ((NU8) 44) && LOC235 <= ((NU8) 46) || LOC235 >= ((NU8) 49) && LOC235 <= ((NU8) 53) || LOC235 >= ((NU8) 60) && LOC235 <= ((NU8) 63));
		if (!(LOC234)) goto LA236;
		LOC237 = 0;
		LOC237 = getmagic_254417(a);
		LOC238 = 0;
		LOC238 = getmagic_254417(b);
		LOC234 = (LOC237 == LOC238);
		LA236: ;
		if (!LOC234) goto LA239;
		{
			NIM_BOOL LOC243;
			Tnode225809* LOC244;
			Tnode225809* LOC245;
			Tnode225809* LOC247;
			Tnode225809* LOC248;
			NU8 LOC249;
			LOC243 = 0;
			LOC244 = 0;
			LOC244 = HEX5BHEX5D_226244(a, ((NI) 1));
			LOC245 = 0;
			LOC245 = HEX5BHEX5D_226244(b, ((NI) 1));
			LOC243 = sametree_358462(LOC244, LOC245);
			if (!(LOC243)) goto LA246;
			LOC247 = 0;
			LOC247 = HEX5BHEX5D_226244(a, ((NI) 2));
			LOC248 = 0;
			LOC248 = HEX5BHEX5D_226244(b, ((NI) 2));
			LOC249 = 0;
			LOC249 = ple_359630(m, LOC247, LOC248);
			LOC243 = (LOC249 == ((NU8) 2));
			LA246: ;
			if (!LOC243) goto LA250;
			result = ((NU8) 2);
			goto BeforeRet;
		}
		goto LA241;
		LA250: ;
		{
			NIM_BOOL LOC253;
			Tnode225809* LOC254;
			Tnode225809* LOC255;
			Tnode225809* LOC257;
			Tnode225809* LOC258;
			NU8 LOC259;
			LOC253 = 0;
			LOC254 = 0;
			LOC254 = HEX5BHEX5D_226244(a, ((NI) 2));
			LOC255 = 0;
			LOC255 = HEX5BHEX5D_226244(b, ((NI) 2));
			LOC253 = sametree_358462(LOC254, LOC255);
			if (!(LOC253)) goto LA256;
			LOC257 = 0;
			LOC257 = HEX5BHEX5D_226244(a, ((NI) 1));
			LOC258 = 0;
			LOC258 = HEX5BHEX5D_226244(b, ((NI) 1));
			LOC259 = 0;
			LOC259 = ple_359630(m, LOC257, LOC258);
			LOC253 = (LOC259 == ((NU8) 2));
			LA256: ;
			if (!LOC253) goto LA260;
			result = ((NU8) 2);
			goto BeforeRet;
		}
		goto LA241;
		LA260: ;
		LA241: ;
	}
	LA239: ;
	{
		NU8 LOC264;
		LOC264 = 0;
		LOC264 = getmagic_254417(a);
		if (!(LOC264 == ((NU8) 47) || LOC264 == ((NU8) 54))) goto LA265;
		{
			NIM_BOOL LOC269;
			NIM_BOOL LOC270;
			Tnode225809* LOC271;
			Tnode225809* LOC272;
			NU8 LOC273;
			Tnode225809* LOC275;
			NU8 LOC276;
			Tnode225809* LOC278;
			NU8 LOC279;
			LOC269 = 0;
			LOC270 = 0;
			LOC271 = 0;
			LOC271 = one_357684();
			LOC272 = 0;
			LOC272 = HEX5BHEX5D_226244(a, ((NI) 2));
			LOC273 = 0;
			LOC273 = ple_359630(m, LOC271, LOC272);
			LOC270 = (LOC273 == ((NU8) 2));
			if (!(LOC270)) goto LA274;
			LOC275 = 0;
			LOC275 = zero_357675();
			LOC276 = 0;
			LOC276 = ple_359630(m, LOC275, b);
			LOC270 = (LOC276 == ((NU8) 2));
			LA274: ;
			LOC269 = LOC270;
			if (!(LOC269)) goto LA277;
			LOC278 = 0;
			LOC278 = HEX5BHEX5D_226244(a, ((NI) 1));
			LOC279 = 0;
			LOC279 = ple_359630(m, LOC278, b);
			LOC269 = (LOC279 == ((NU8) 2));
			LA277: ;
			if (!LOC269) goto LA280;
			result = ((NU8) 2);
			goto BeforeRet;
		}
		LA280: ;
		{
			NU8 LOC284;
			LOC284 = 0;
			LOC284 = getmagic_254417(b);
			if (!(LOC284 == ((NU8) 47) || LOC284 == ((NU8) 54))) goto LA285;
			{
				NIM_BOOL LOC289;
				Tnode225809* LOC290;
				Tnode225809* LOC291;
				Tnode225809* LOC293;
				Tnode225809* LOC294;
				NU8 LOC295;
				LOC289 = 0;
				LOC290 = 0;
				LOC290 = HEX5BHEX5D_226244(a, ((NI) 1));
				LOC291 = 0;
				LOC291 = HEX5BHEX5D_226244(b, ((NI) 1));
				LOC289 = sametree_358462(LOC290, LOC291);
				if (!(LOC289)) goto LA292;
				LOC293 = 0;
				LOC293 = HEX5BHEX5D_226244(b, ((NI) 2));
				LOC294 = 0;
				LOC294 = HEX5BHEX5D_226244(a, ((NI) 2));
				LOC295 = 0;
				LOC295 = ple_359630(m, LOC293, LOC294);
				LOC289 = (LOC295 == ((NU8) 2));
				LA292: ;
				if (!LOC289) goto LA296;
				result = ((NU8) 2);
				goto BeforeRet;
			}
			LA296: ;
		}
		LA285: ;
		{
			NIM_BOOL LOC300;
			NIM_BOOL LOC301;
			Tnode225809* LOC302;
			NU8 LOC304;
			Tnode225809* LOC306;
			LOC300 = 0;
			LOC301 = 0;
			LOC302 = 0;
			LOC302 = HEX5BHEX5D_226244(a, ((NI) 2));
			LOC301 = isvalue_357095(LOC302);
			if (!(LOC301)) goto LA303;
			LOC304 = 0;
			LOC304 = getmagic_254417(b);
			LOC301 = (LOC304 == ((NU8) 44) || LOC304 == ((NU8) 51) || LOC304 == ((NU8) 49));
			LA303: ;
			LOC300 = LOC301;
			if (!(LOC300)) goto LA305;
			LOC306 = 0;
			LOC306 = HEX5BHEX5D_226244(b, ((NI) 2));
			LOC300 = isminusone_359600(LOC306);
			LA305: ;
			if (!LOC300) goto LA307;
			{
				NIM_BOOL LOC311;
				Tnode225809* LOC312;
				Tnode225809* LOC313;
				NU8 LOC314;
				Tnode225809* LOC316;
				Tnode225809* LOC317;
				LOC311 = 0;
				LOC312 = 0;
				LOC312 = HEX5BHEX5D_226244(a, ((NI) 2));
				LOC313 = 0;
				LOC313 = HEX5BHEX5D_226244(a, ((NI) 1));
				LOC314 = 0;
				LOC314 = ple_359630(m, LOC312, LOC313);
				LOC311 = (LOC314 == ((NU8) 2));
				if (!(LOC311)) goto LA315;
				LOC316 = 0;
				LOC316 = HEX5BHEX5D_226244(a, ((NI) 1));
				LOC317 = 0;
				LOC317 = HEX5BHEX5D_226244(b, ((NI) 1));
				LOC311 = sametree_358462(LOC316, LOC317);
				LA315: ;
				if (!LOC311) goto LA318;
				result = ((NU8) 2);
				goto BeforeRet;
			}
			LA318: ;
		}
		LA307: ;
	}
	LA265: ;
	{
		NU8 LOC322;
		LOC322 = 0;
		LOC322 = getmagic_254417(b);
		if (!(LOC322 == ((NU8) 61) || LOC322 == ((NU8) 63))) goto LA323;
		{
			NIM_BOOL LOC327;
			Tnode225809* LOC328;
			NU8 LOC329;
			Tnode225809* LOC331;
			NU8 LOC332;
			LOC327 = 0;
			LOC328 = 0;
			LOC328 = HEX5BHEX5D_226244(b, ((NI) 1));
			LOC329 = 0;
			LOC329 = ple_359630(m, a, LOC328);
			LOC327 = (LOC329 == ((NU8) 2));
			if (LOC327) goto LA330;
			LOC331 = 0;
			LOC331 = HEX5BHEX5D_226244(b, ((NI) 2));
			LOC332 = 0;
			LOC332 = ple_359630(m, a, LOC331);
			LOC327 = (LOC332 == ((NU8) 2));
			LA330: ;
			if (!LOC327) goto LA333;
			result = ((NU8) 2);
			goto BeforeRet;
		}
		LA333: ;
	}
	LA323: ;
	{
		NU8 LOC337;
		LOC337 = 0;
		LOC337 = getmagic_254417(a);
		if (!(LOC337 == ((NU8) 60) || LOC337 == ((NU8) 62))) goto LA338;
		{
			NIM_BOOL LOC342;
			Tnode225809* LOC343;
			NU8 LOC344;
			Tnode225809* LOC346;
			NU8 LOC347;
			LOC342 = 0;
			LOC343 = 0;
			LOC343 = HEX5BHEX5D_226244(a, ((NI) 1));
			LOC344 = 0;
			LOC344 = ple_359630(m, LOC343, b);
			LOC342 = (LOC344 == ((NU8) 2));
			if (LOC342) goto LA345;
			LOC346 = 0;
			LOC346 = HEX5BHEX5D_226244(a, ((NI) 2));
			LOC347 = 0;
			LOC347 = ple_359630(m, LOC346, b);
			LOC342 = (LOC347 == ((NU8) 2));
			LA345: ;
			if (!LOC342) goto LA348;
			result = ((NU8) 2);
			goto BeforeRet;
		}
		LA348: ;
	}
	LA338: ;
	result = pleviamodel_359622(m, a, b);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NU8, provele_360823)(Tnodeseq225803* m, Tnode225809* a, Tnode225809* b) {
	NU8 result;
	Tnode225809* x;
	Tnode225809* LOC1;
	Tnode225809* LOC2;
	Tnode225809* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = buildcall_357491(ople_357293, a, b);
	x = canon_357843(LOC1);
	LOC2 = 0;
	LOC2 = HEX5BHEX5D_226244(x, ((NI) 1));
	LOC3 = 0;
	LOC3 = HEX5BHEX5D_226244(x, ((NI) 2));
	result = ple_359630(m, LOC2, LOC3);
	{
		Tnode225809* y;
		Tnode225809* LOC8;
		Tnode225809* LOC9;
		Tnode225809* LOC10;
		Tnode225809* LOC11;
		Tnode225809* LOC12;
		NU8 LOC13;
		if (!(result == ((NU8) 0))) goto LA6;
		LOC8 = 0;
		LOC8 = one_357684();
		LOC9 = 0;
		LOC9 = buildcall_357491(opadd_357299, b, LOC8);
		LOC10 = 0;
		LOC10 = buildcall_357491(ople_357293, LOC9, a);
		y = canon_357843(LOC10);
		LOC11 = 0;
		LOC11 = HEX5BHEX5D_226244(y, ((NI) 1));
		LOC12 = 0;
		LOC12 = HEX5BHEX5D_226244(y, ((NI) 2));
		LOC13 = 0;
		LOC13 = ple_359630(m, LOC11, LOC12);
		result = HEX7E_359133(LOC13);
	}
	LA6: ;
	return result;
}

N_NIMCALL(Tnode225809*, lowbound_357702)(Tnode225809* x) {
	Tnode225809* result;
	NI64 LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = firstord_255004((*x).typ);
	result = newintnode_226607(((NU8) 6), LOC1);
	(*result).info = (*x).info;
	return result;
}

N_NIMCALL(Tnode225809*, highbound_357712)(Tnode225809* x) {
	Tnode225809* result;
	Ttype225847* typ;
	result = 0;
	typ = skiptypes_229167((*x).typ, IL64(211106232576256));
	{
		NI64 LOC5;
		if (!((65552 &(IL64(1)<<(((*typ).kind)&IL64(63))))!=0)) goto LA3;
		LOC5 = 0;
		LOC5 = lastord_255010(typ);
		result = newintnode_226607(((NU8) 6), LOC5);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC7;
		NIM_BOOL LOC8;
		NI LOC13;
		LOC7 = 0;
		LOC8 = 0;
		LOC8 = ((*typ).kind == ((NU8) 24));
		if (!(LOC8)) goto LA9;
		LOC8 = ((*x).kind == ((NU8) 3));
		LA9: ;
		LOC7 = LOC8;
		if (!(LOC7)) goto LA10;
		LOC7 = ((*(*x).kindU.S4.sym).kind == ((NU8) 10));
		LA10: ;
		if (!LOC7) goto LA11;
		LOC13 = 0;
		LOC13 = len_226098((*(*x).kindU.S4.sym).ast);
		result = newintnode_226607(((NU8) 6), ((NI64) ((NI)(LOC13 - ((NI) 1)))));
	}
	goto LA1;
	LA11: ;
	{
		Tnode225809* LOC15;
		Tnode225809* LOC16;
		LOC15 = 0;
		LOC15 = buildcall_357478(oplen_357303, x);
		LOC16 = 0;
		LOC16 = minusone_357693();
		result = buildcall_357491(opadd_357299, LOC15, LOC16);
	}
	LA1: ;
	(*result).info = (*x).info;
	return result;
}

N_NIMCALL(Tnode225809*, HEX2BHEX40_358160)(Tnode225809* a, NI64 b) {
	Tnode225809* result;
	Tnode225809* LOC1;
	result = 0;
	LOC1 = 0;
	{
		Tnode225809* LOC6;
		if (!!((b == IL64(0)))) goto LA4;
		LOC6 = 0;
		LOC6 = newintnode_226607(((NU8) 6), b);
		LOC1 = buildcall_357491(opadd_357299, a, LOC6);
	}
	goto LA2;
	LA4: ;
	{
		LOC1 = a;
	}
	LA2: ;
	result = canon_357843(LOC1);
	return result;
}

N_NIMCALL(NI64, simpleslice_359464)(Tnode225809* a, Tnode225809* b) {
	NI64 result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = sametree_358462(a, b);
		if (!LOC3) goto LA4;
		{
			NIM_BOOL LOC8;
			NU8 LOC9;
			Tnode225809* LOC11;
			Tnode225809* LOC14;
			LOC8 = 0;
			LOC9 = 0;
			LOC9 = getmagic_254417(a);
			LOC8 = (LOC9 == ((NU8) 44) || LOC9 == ((NU8) 51) || LOC9 == ((NU8) 49));
			if (!(LOC8)) goto LA10;
			LOC11 = 0;
			LOC11 = HEX5BHEX5D_226244(a, ((NI) 2));
			LOC8 = ((*LOC11).kind >= ((NU8) 5) && (*LOC11).kind <= ((NU8) 15));
			LA10: ;
			if (!LOC8) goto LA12;
			LOC14 = 0;
			LOC14 = HEX5BHEX5D_226244(a, ((NI) 2));
			result = (*LOC14).kindU.S1.intval;
		}
		goto LA6;
		LA12: ;
		{
			result = IL64(0);
		}
		LA6: ;
	}
	goto LA1;
	LA4: ;
	{
		result = IL64(-1);
	}
	LA1: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_guardsInit000)(void) {
	asgnRefNoCycle((void**) (&ople_357293), createmagic_231048(((NimStringDesc*) &TMP984), ((NU8) 70)));
	asgnRefNoCycle((void**) (&oplt_357294), createmagic_231048(((NimStringDesc*) &TMP985), ((NU8) 71)));
	asgnRefNoCycle((void**) (&opand_357295), createmagic_231048(((NimStringDesc*) &TMP986), ((NU8) 125)));
	asgnRefNoCycle((void**) (&opor_357296), createmagic_231048(((NimStringDesc*) &TMP987), ((NU8) 126)));
	asgnRefNoCycle((void**) (&opisnil_357297), createmagic_231048(((NimStringDesc*) &TMP988), ((NU8) 156)));
	asgnRefNoCycle((void**) (&opeq_357298), createmagic_231048(((NimStringDesc*) &TMP989), ((NU8) 69)));
	asgnRefNoCycle((void**) (&opadd_357299), createmagic_231048(((NimStringDesc*) &TMP990), ((NU8) 44)));
	asgnRefNoCycle((void**) (&opsub_357300), createmagic_231048(((NimStringDesc*) &TMP991), ((NU8) 45)));
	asgnRefNoCycle((void**) (&opmul_357301), createmagic_231048(((NimStringDesc*) &TMP992), ((NU8) 46)));
	asgnRefNoCycle((void**) (&opdiv_357302), createmagic_231048(((NimStringDesc*) &TMP993), ((NU8) 47)));
	asgnRefNoCycle((void**) (&oplen_357303), createmagic_231048(((NimStringDesc*) &TMP994), ((NU8) 35)));
}

NIM_EXTERNC N_NOINLINE(void, compiler_guardsDatInit000)(void) {
static TNimNode* TMP4267[2];
static TNimNode TMP982[3];
NTI360220.size = sizeof(TY360220);
NTI360220.kind = 18;
NTI360220.base = 0;
NTI360220.flags = 2;
TMP4267[0] = &TMP982[1];
TMP982[1].kind = 1;
TMP982[1].offset = offsetof(TY360220, Field0);
TMP982[1].typ = (&NTI225801);
TMP982[1].name = "Field0";
TMP4267[1] = &TMP982[2];
TMP982[2].kind = 1;
TMP982[2].offset = offsetof(TY360220, Field1);
TMP982[2].typ = (&NTI225801);
TMP982[2].name = "Field1";
TMP982[0].len = 2; TMP982[0].kind = 2; TMP982[0].sons = &TMP4267[0];
NTI360220.node = &TMP982[0];
NTI360219.size = sizeof(Treplacements360219*);
NTI360219.kind = 24;
NTI360219.base = (&NTI360220);
NTI360219.flags = 2;
NTI360219.marker = TMP4268;
}

