/* 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 Tsym223841 Tsym223841;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Cell48947 Cell48947;
typedef struct TNimType TNimType;
typedef struct Cellseq48963 Cellseq48963;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48959 Cellset48959;
typedef struct Pagedesc48955 Pagedesc48955;
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 Tnodeseq223803 Tnodeseq223803;
typedef struct Tnode223809 Tnode223809;
typedef struct Ttype223847 Ttype223847;
typedef struct Tlineinfo188352 Tlineinfo188352;
typedef struct Tident196021 Tident196021;
typedef struct Tidobj196015 Tidobj196015;
typedef struct TNimObject TNimObject;
typedef struct TNimNode TNimNode;
typedef struct Ttypeseq223843 Ttypeseq223843;
typedef struct Tscope223835 Tscope223835;
typedef struct TY223944 TY223944;
typedef struct Tstrtable223813 Tstrtable223813;
typedef struct Tsymseq223811 Tsymseq223811;
typedef struct Tloc223823 Tloc223823;
typedef struct Ropeobj174009 Ropeobj174009;
typedef struct Tlib223827 Tlib223827;
typedef struct TY257855 TY257855;
typedef struct TY90959 TY90959;
typedef struct Treplacements358219 Treplacements358219;
typedef struct TY358220 TY358220;
typedef struct Basechunk30841 Basechunk30841;
typedef struct Freecell30833 Freecell30833;
typedef struct Tinstantiation223831 Tinstantiation223831;
typedef struct Tlistentry139022 Tlistentry139022;
typedef struct TY223932 TY223932;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Cell48947  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48963  {
NI len;
NI cap;
Cell48947** d;
};
struct  Cellset48959  {
NI counter;
NI max;
Pagedesc48955* head;
Pagedesc48955** 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;
Cellseq48963 zct;
Cellseq48963 decstack;
Cellset48959 cycleroots;
Cellseq48963 tempstack;
NI recgclock;
Memregion30891 region;
Gcstat51014 stat;
};
struct  Tlineinfo188352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode223809  {
Ttype223847* typ;
Tlineinfo188352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym223841* sym;
} S4;
struct {Tident196021* ident;
} S5;
struct {Tnodeseq223803* 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  Tidobj196015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable223813  {
NI counter;
Tsymseq223811* data;
};
struct  Tloc223823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype223847* t;
Ropeobj174009* r;
Ropeobj174009* heaproot;
};
struct  Tsym223841  {
  Tidobj196015 Sup;
NU8 kind;
union{
struct {Ttypeseq223843* typeinstcache;
Tscope223835* typscope;
} S1;
struct {TY223944* procinstcache;
Tsym223841* gcunsafetyreason;
} S2;
struct {TY223944* usedgenerics;
Tstrtable223813 tab;
} S3;
struct {Tsym223841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype223847* typ;
Tident196021* name;
Tlineinfo188352 info;
Tsym223841* owner;
NU32 flags;
Tnode223809* ast;
NU32 options;
NI position;
NI offset;
Tloc223823 loc;
Tlib223827* annex;
Tnode223809* constraint;
};
struct  Tident196021  {
  Tidobj196015 Sup;
NimStringDesc* s;
Tident196021* next;
NI h;
};
struct TY257855 {
NI Field0;
NI Field1;
};
struct TY90959 {
NimStringDesc* Field0;
NI Field1;
};
struct  Ttype223847  {
  Tidobj196015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq223843* sons;
Tnode223809* n;
Tsym223841* owner;
Tsym223841* sym;
Tsym223841* destructor;
Tsym223841* deepcopy;
Tsym223841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc223823 loc;
};
typedef NU8 TY493057[32];
struct TY358220 {
Tnode223809* Field0;
Tnode223809* 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  Pagedesc48955  {
Pagedesc48955* 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  Tscope223835  {
NI depthlevel;
Tstrtable223813 symbols;
Tnodeseq223803* usingsyms;
Tscope223835* parent;
};
struct  Ropeobj174009  {
  TNimObject Sup;
Ropeobj174009* left;
Ropeobj174009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry139022  {
  TNimObject Sup;
Tlistentry139022* prev;
Tlistentry139022* next;
};
struct  Tlib223827  {
  Tlistentry139022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj174009* name;
Tnode223809* path;
};
struct  Freecell30833  {
Freecell30833* next;
NI zerofield;
};
struct  Tinstantiation223831  {
Tsym223841* sym;
Ttypeseq223843* concretetypes;
TY223932* usedby;
NI compilesid;
};
struct Tnodeseq223803 {
  TGenericSeq Sup;
  Tnode223809* data[SEQ_DECL_SIZE];
};
struct Treplacements358219 {
  TGenericSeq Sup;
  TY358220 data[SEQ_DECL_SIZE];
};
struct Ttypeseq223843 {
  TGenericSeq Sup;
  Ttype223847* data[SEQ_DECL_SIZE];
};
struct TY223944 {
  TGenericSeq Sup;
  Tinstantiation223831* data[SEQ_DECL_SIZE];
};
struct Tsymseq223811 {
  TGenericSeq Sup;
  Tsym223841* data[SEQ_DECL_SIZE];
};
struct TY223932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Tsym223841*, createmagic_229048)(NimStringDesc* name, NU8 m);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell48947*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48947* c);
N_NOINLINE(void, addzct_52617)(Cellseq48963* s, Cell48947* c);
N_NIMCALL(NU8, doesimply_357193)(Tnodeseq223803* facts, Tnode223809* prop);
N_NIMCALL(NU8, factimplies_357143)(Tnode223809* fact, Tnode223809* prop);
N_NIMCALL(NU8, getmagic_252417)(Tnode223809* op);
N_NIMCALL(NU8, HEX7E_357133)(NU8 x);
N_NIMCALL(NU8, impliesisnil_356995)(Tnode223809* fact, Tnode223809* eq);
N_NIMCALL(NIM_BOOL, sametree_356462)(Tnode223809* a, Tnode223809* b);
N_NIMCALL(Tsym223841*, canonopr_356451)(Tsym223841* opr);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NI, sonslen_226387)(Tnode223809* n);
N_NIMCALL(NU8, valueisnil_356965)(Tnode223809* n);
N_NIMCALL(Tnode223809*, skipconv_262935)(Tnode223809* n);
N_NIMCALL(void, internalerror_194172)(Tlineinfo188352 info, NimStringDesc* errmsg);
N_NIMCALL(NU8, implieseq_356724)(Tnode223809* fact, Tnode223809* eq);
N_NIMCALL(NIM_BOOL, islocation_355116)(Tnode223809* n);
N_NIMCALL(NIM_BOOL, isvalue_355095)(Tnode223809* n);
N_NIMCALL(NIM_BOOL, valuesunequal_356711)(Tnode223809* a, Tnode223809* b);
N_NIMCALL(NIM_BOOL, samevalue_231324)(Tnode223809* a, Tnode223809* b);
N_NIMCALL(NIM_BOOL, inset_274019)(Tnode223809* s, Tnode223809* elem);
N_NIMCALL(NU8, impliesle_357060)(Tnode223809* fact, Tnode223809* x, Tnode223809* c);
N_NIMCALL(NU8, impliesge_357019)(Tnode223809* fact, Tnode223809* x, Tnode223809* c);
N_NIMCALL(void, internalerror_194191)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_194279)(TY90959 x);
N_NIMCALL(NIM_BOOL, levalue_231374)(Tnode223809* a, Tnode223809* b);
N_NIMCALL(Tnode223809*, pred_355809)(Tnode223809* n);
N_NIMCALL(Tnode223809*, copynode_227660)(Tnode223809* src);
N_NIMCALL(NU8, implieslt_357095)(Tnode223809* fact, Tnode223809* x, Tnode223809* c);
N_NIMCALL(NU8, impliesin_356930)(Tnode223809* fact, Tnode223809* loc, Tnode223809* aset);
N_NIMCALL(NU8, comparesets_356918)(Tnode223809* a, Tnode223809* b);
N_NIMCALL(NIM_BOOL, equalsets_274082)(Tnode223809* a, Tnode223809* b);
static N_INLINE(NI, len_224098)(Tnode223809* n);
N_NIMCALL(Tnode223809*, intersectsets_274061)(Tnode223809* a, Tnode223809* b);
N_NIMCALL(NU8, leimpliesin_356760)(Tnode223809* x, Tnode223809* c, Tnode223809* aset);
N_NIMCALL(Tnode223809*, newintnode_224607)(NU8 kind, NI64 intval);
N_NIMCALL(NI64, firstord_253004)(Ttype223847* t);
N_NIMCALL(NU8, geimpliesin_356839)(Tnode223809* x, Tnode223809* c, Tnode223809* aset);
N_NIMCALL(NI64, lastord_253010)(Ttype223847* t);
N_NIMCALL(Tnode223809*, neg_355323)(Tnode223809* n);
N_NIMCALL(Tnode223809*, swapargs_355307)(Tnode223809* fact, Tsym223841* newop);
N_NIMCALL(Tnode223809*, newnodei_225407)(NU8 kind, Tlineinfo188352 info, NI children);
N_NIMCALL(Tnode223809*, newsymnode_225325)(Tsym223841* sym);
N_NIMCALL(Ttype223847*, skiptypes_227167)(Ttype223847* t, NU64 kinds);
N_NIMCALL(Tnode223809*, newnodeit_225807)(NU8 kind, Tlineinfo188352 info, Ttype223847* typ);
N_NIMCALL(void, add_224165)(Tnode223809* father, Tnode223809* son);
N_NIMCALL(NI64, lengthord_253016)(Ttype223847* t);
N_NIMCALL(Tnode223809*, complement_274550)(Tnode223809* a);
N_NIMCALL(Tnode223809*, buildcall_355478)(Tsym223841* op, Tnode223809* a);
N_NIMCALL(Tnode223809*, buildproperfieldcheck_359183)(Tnode223809* access, Tnode223809* check);
N_NIMCALL(Tnode223809*, copytree_228028)(Tnode223809* src);
N_NIMCALL(void, message_194161)(Tlineinfo188352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_245059)(Tnode223809* n, NU8 renderflags);
N_NIMCALL(NIM_BOOL, hassubtree_356618)(Tnode223809* n, Tnode223809* x);
static N_INLINE(NI, safelen_224126)(Tnode223809* n);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(NIM_BOOL, isletlocation_355239)(Tnode223809* m, NIM_BOOL isapprox);
N_NIMCALL(NIM_BOOL, isconstexpr_252442)(Tnode223809* n);
N_NIMCALL(NIM_BOOL, islet_355127)(Tnode223809* n);
N_NIMCALL(NIM_BOOL, isvar_355179)(Tnode223809* n);
N_NIMCALL(Tnode223809*, buildof_358882)(Tnode223809* it, Tnode223809* loc);
N_NIMCALL(Ttype223847*, settype_358872)(Tnode223809* n);
N_NIMCALL(Ttype223847*, newtype_226140)(NU8 kind, Tsym223841* owner);
N_NIMCALL(void, addsonskipintlit_272731)(Ttype223847* father, Ttype223847* son);
N_NIMCALL(Tnode223809*, buildelse_358929)(Tnode223809* n);
N_NIMCALL(Tnode223809*, usefulfact_356172)(Tnode223809* n);
static N_INLINE(Tnode223809*, HEX5BHEX5D_224244)(Tnode223809* n, NI i);
N_NIMCALL(Tnode223809*, lastson_226406)(Tnode223809* n);
N_NIMCALL(void, addfact_356392)(Tnodeseq223803** m, Tnode223809* nn);
N_NIMCALL(Tnode223809*, shallowcopy_227817)(Tnode223809* src);
N_NIMCALL(Tnode223809*, canon_355843)(Tnode223809* n);
N_NIMCALL(Tnode223809*, buildcall_355491)(Tsym223841* op, Tnode223809* a, Tnode223809* b);
N_NIMCALL(Tnode223809*, minusone_355693)(void);
N_NIMCALL(Tnode223809*, negate_355618)(Tnode223809* a, Tnode223809* b_355621, Tnode223809* res);
N_NIMCALL(NI64, HEX7CHEX2BHEX7C_290019)(NI64 a, NI64 b);
N_NIMCALL(Tnode223809*, reassociation_355767)(Tnode223809* n);
N_NIMCALL(Tnode223809*, HEX7CHEX2BHEX7C_355506)(Tnode223809* a, Tnode223809* b);
N_NIMCALL(Tnode223809*, HEX7CHEX2AHEX7C_355562)(Tnode223809* a, Tnode223809* b);
N_NIMCALL(NI64, HEX7CHEX2AHEX7C_290073)(NI64 a, NI64 b);
N_NIMCALL(Tnode223809*, zero_355675)(void);
N_NIMCALL(Tnode223809*, HEX7CHEX2DHEX7C_355534)(Tnode223809* a, Tnode223809* b);
N_NIMCALL(NI64, HEX7CHEX2DHEX7C_290030)(NI64 a, NI64 b);
N_NIMCALL(NU8, ple_357630)(Tnodeseq223803* m, Tnode223809* a, Tnode223809* b);
N_NIMCALL(NIM_BOOL, isordinaltype_253093)(Ttype223847* t);
N_NIMCALL(Tnode223809*, one_355684)(void);
N_NIMCALL(Tnode223809*, HEX7CdivHEX7C_355590)(Tnode223809* a, Tnode223809* b);
N_NIMCALL(NIM_BOOL, isminusone_357600)(Tnode223809* n);
N_NIMCALL(NU8, pleviamodel_357622)(Tnodeseq223803* model, Tnode223809* aa, Tnode223809* bb);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP4266)(void* p, NI op);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(Tnode223809*, applyreplacements_358268)(Tnode223809* n, Treplacements358219* rep);
N_NIMCALL(Tnode223809*, replacesubtree_358226)(Tnode223809* n, Tnode223809* x, Tnode223809* by);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_85804, TNimType* mt);
N_NIMCALL(NU8, pleviamodelrec_358434)(Tnodeseq223803** m, Tnode223809* a, Tnode223809* b);
STRING_LITERAL(TMP982, "<=", 2);
STRING_LITERAL(TMP983, "<", 1);
STRING_LITERAL(TMP984, "and", 3);
STRING_LITERAL(TMP985, "or", 2);
STRING_LITERAL(TMP986, "isnil", 5);
STRING_LITERAL(TMP987, "==", 2);
STRING_LITERAL(TMP988, "+", 1);
STRING_LITERAL(TMP989, "-", 1);
STRING_LITERAL(TMP990, "*", 1);
STRING_LITERAL(TMP991, "div", 3);
STRING_LITERAL(TMP992, "len", 3);
STRING_LITERAL(TMP3474, "impliesIsNil", 12);
NIM_CONST TY257855 TMP3475 = {((NI) 1),
((NI) 2)}
;
NIM_CONST TY257855 TMP3476 = {((NI) 2),
((NI) 1)}
;
STRING_LITERAL(TMP3477, "impliesEq", 9);
STRING_LITERAL(TMP3479, "compiler/guards.nim", 19);
NIM_CONST TY90959 TMP3478 = {((NimStringDesc*) &TMP3479),
((NI) 574)}
;
STRING_LITERAL(TMP3480, "impliesGe", 9);
STRING_LITERAL(TMP3481, "impliesLe", 9);
STRING_LITERAL(TMP3482, "impliesIn", 9);
static NIM_CONST TY493057 TMP4264 = {
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 TY493057 someadd_355029 = {
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 TY493057 somemul_355033 = {
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 TY493057 TMP4267 = {
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 TY493057 TMP4268 = {
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}
;
Tsym223841* ople_355293;
extern Gcheap51018 gch_51059;
Tsym223841* oplt_355294;
Tsym223841* opand_355295;
Tsym223841* opor_355296;
Tsym223841* opisnil_355297;
Tsym223841* opeq_355298;
Tsym223841* opadd_355299;
Tsym223841* opsub_355300;
Tsym223841* opmul_355301;
Tsym223841* opdiv_355302;
Tsym223841* oplen_355303;
extern Tsym223841* opnot_229060;
extern Tsym223841* opcontains_229061;
TNimType NTI358220; /* tuple[a: PNode, b: PNode] */
extern TNimType NTI223801; /* PNode */
TNimType NTI358219; /* TReplacements */
extern TNimType NTI223803; /* TNodeSeq */

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

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

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell48947* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_52646(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell48947* 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_357133)(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(Tsym223841*, canonopr_356451)(Tsym223841* opr) {
	Tsym223841* 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_355298;
	}
	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_355293;
	}
	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_355294;
	}
	break;
	case ((NU8) 32):
	case ((NU8) 33):
	case ((NU8) 34):
	case ((NU8) 35):
	case ((NU8) 36):
	case ((NU8) 37):
	{
		result = oplen_355303;
	}
	break;
	case ((NU8) 44):
	case ((NU8) 51):
	case ((NU8) 49):
	{
		result = opadd_355299;
	}
	break;
	case ((NU8) 45):
	case ((NU8) 52):
	case ((NU8) 50):
	{
		result = opsub_355300;
	}
	break;
	case ((NU8) 46):
	case ((NU8) 53):
	{
		result = opmul_355301;
	}
	break;
	case ((NU8) 47):
	case ((NU8) 54):
	{
		result = opdiv_355302;
	}
	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_356462)(Tnode223809* a, Tnode223809* 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;
				Tsym223841* LOC21;
				Tsym223841* 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_356451((*a).kindU.S4.sym);
				LOC22 = 0;
				LOC22 = canonopr_356451((*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_226387(a);
				LOC33 = 0;
				LOC33 = sonslen_226387(b);
				if (!(LOC32 == LOC33)) goto LA34;
				{
					NI i_356592;
					NI HEX3Atmp_356596;
					NI LOC37;
					NI res_356599;
					i_356592 = 0;
					HEX3Atmp_356596 = 0;
					LOC37 = 0;
					LOC37 = sonslen_226387(a);
					HEX3Atmp_356596 = (NI)(LOC37 - ((NI) 1));
					res_356599 = ((NI) 0);
					{
						while (1) {
							if (!(res_356599 <= HEX3Atmp_356596)) goto LA39;
							i_356592 = res_356599;
							{
								NIM_BOOL LOC42;
								LOC42 = 0;
								LOC42 = sametree_356462((*a).kindU.S6.sons->data[i_356592], (*b).kindU.S6.sons->data[i_356592]);
								if (!!(LOC42)) goto LA43;
								goto BeforeRet;
							}
							LA43: ;
							res_356599 += ((NI) 1);
						} LA39: ;
					}
				}
				result = NIM_TRUE;
			}
			LA34: ;
		}
		break;
		}
	}
	goto LA1;
	LA10: ;
	LA1: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NU8, valueisnil_356965)(Tnode223809* 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_356995)(Tnode223809* fact, Tnode223809* 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_356462((*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;
			Tnode223809* LOC13;
			LOC10 = 0;
			LOC10 = sametree_356462((*fact).kindU.S6.sons->data[((NI) 1)], (*eq).kindU.S6.sons->data[((NI) 1)]);
			if (!LOC10) goto LA11;
			LOC13 = 0;
			LOC13 = skipconv_262935((*fact).kindU.S6.sons->data[((NI) 2)]);
			result = valueisnil_356965(LOC13);
		}
		goto LA8;
		LA11: ;
		{
			NIM_BOOL LOC15;
			Tnode223809* LOC18;
			LOC15 = 0;
			LOC15 = sametree_356462((*fact).kindU.S6.sons->data[((NI) 2)], (*eq).kindU.S6.sons->data[((NI) 1)]);
			if (!LOC15) goto LA16;
			LOC18 = 0;
			LOC18 = skipconv_262935((*fact).kindU.S6.sons->data[((NI) 1)]);
			result = valueisnil_356965(LOC18);
		}
		goto LA8;
		LA16: ;
		LA8: ;
	}
	break;
	case ((NU8) 98):
	case ((NU8) 126):
	case ((NU8) 125):
	{
		internalerror_194172((*eq).info, ((NimStringDesc*) &TMP3474));
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

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

N_NIMCALL(NIM_BOOL, islocation_355116)(Tnode223809* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = isvalue_355095(n);
	result = !(LOC1);
	return result;
}

N_NIMCALL(NIM_BOOL, valuesunequal_356711)(Tnode223809* a, Tnode223809* b) {
	NIM_BOOL result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC7;
		LOC3 = 0;
		LOC3 = isvalue_355095(a);
		if (!(LOC3)) goto LA4;
		LOC3 = isvalue_355095(b);
		LA4: ;
		if (!LOC3) goto LA5;
		LOC7 = 0;
		LOC7 = samevalue_231324(a, b);
		result = !(LOC7);
	}
	LA5: ;
	return result;
}

N_NIMCALL(NU8, implieseq_356724)(Tnode223809* fact, Tnode223809* eq) {
	NU8 result;
	TY257855 LOC1;
	NI loc;
	NI val;
	result = 0;
	{
		NIM_BOOL LOC4;
		LOC4 = 0;
		LOC4 = islocation_355116((*eq).kindU.S6.sons->data[((NI) 1)]);
		if (!LOC4) goto LA5;
		LOC1 = TMP3475;
	}
	goto LA2;
	LA5: ;
	{
		LOC1 = TMP3476;
	}
	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_356462((*fact).kindU.S6.sons->data[((NI) 1)], (*eq).kindU.S6.sons->data[loc]);
			if (!LOC11) goto LA12;
			{
				NIM_BOOL LOC16;
				LOC16 = 0;
				LOC16 = sametree_356462((*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_356711((*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_356462((*fact).kindU.S6.sons->data[((NI) 2)], (*eq).kindU.S6.sons->data[loc]);
			if (!LOC24) goto LA25;
			{
				NIM_BOOL LOC29;
				LOC29 = 0;
				LOC29 = sametree_356462((*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_356711((*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_356462((*fact).kindU.S6.sons->data[((NI) 2)], (*eq).kindU.S6.sons->data[loc]);
			if (!(LOC39)) goto LA40;
			LOC39 = isvalue_355095((*eq).kindU.S6.sons->data[val]);
			LA40: ;
			if (!LOC39) goto LA41;
			{
				NIM_BOOL LOC45;
				LOC45 = 0;
				LOC45 = inset_274019((*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_194172((*eq).info, ((NimStringDesc*) &TMP3477));
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode223809*, pred_355809)(Tnode223809* n) {
	Tnode223809* 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_227660(n);
		(*result).kindU.S1.intval -= ((NI) 1);
	}
	goto LA1;
	LA5: ;
	{
		result = n;
	}
	LA1: ;
	return result;
}

N_NIMCALL(NU8, impliesge_357019)(Tnode223809* fact, Tnode223809* x, Tnode223809* c) {
	NU8 result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NimStringDesc* LOC6;
		LOC3 = 0;
		LOC3 = islocation_355116(x);
		if (!!(LOC3)) goto LA4;
		LOC6 = 0;
		LOC6 = HEX24_194279(TMP3478);
		internalerror_194191(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_356462((*fact).kindU.S6.sons->data[((NI) 1)], x);
			if (!LOC10) goto LA11;
			{
				NIM_BOOL LOC15;
				LOC15 = 0;
				LOC15 = isvalue_355095((*fact).kindU.S6.sons->data[((NI) 2)]);
				if (!(LOC15)) goto LA16;
				LOC15 = isvalue_355095(c);
				LA16: ;
				if (!LOC15) goto LA17;
				{
					NIM_BOOL LOC21;
					LOC21 = 0;
					LOC21 = levalue_231374(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_356462((*fact).kindU.S6.sons->data[((NI) 2)], x);
			if (!LOC26) goto LA27;
			{
				NIM_BOOL LOC31;
				LOC31 = 0;
				LOC31 = isvalue_355095((*fact).kindU.S6.sons->data[((NI) 1)]);
				if (!(LOC31)) goto LA32;
				LOC31 = isvalue_355095(c);
				LA32: ;
				if (!LOC31) goto LA33;
				{
					NIM_BOOL LOC37;
					LOC37 = 0;
					LOC37 = levalue_231374(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_356462((*fact).kindU.S6.sons->data[((NI) 1)], x);
			if (!LOC44) goto LA45;
			{
				NIM_BOOL LOC49;
				LOC49 = 0;
				LOC49 = isvalue_355095((*fact).kindU.S6.sons->data[((NI) 2)]);
				if (!(LOC49)) goto LA50;
				LOC49 = isvalue_355095(c);
				LA50: ;
				if (!LOC49) goto LA51;
				{
					NIM_BOOL LOC55;
					LOC55 = 0;
					LOC55 = levalue_231374((*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_356462((*fact).kindU.S6.sons->data[((NI) 2)], x);
			if (!LOC59) goto LA60;
			{
				NIM_BOOL LOC64;
				LOC64 = 0;
				LOC64 = isvalue_355095((*fact).kindU.S6.sons->data[((NI) 1)]);
				if (!(LOC64)) goto LA65;
				LOC64 = isvalue_355095(c);
				LA65: ;
				if (!LOC64) goto LA66;
				{
					Tnode223809* LOC70;
					NIM_BOOL LOC71;
					LOC70 = 0;
					LOC70 = pred_355809(c);
					LOC71 = 0;
					LOC71 = levalue_231374(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_356462((*fact).kindU.S6.sons->data[((NI) 1)], x);
			if (!LOC77) goto LA78;
			{
				NIM_BOOL LOC82;
				LOC82 = 0;
				LOC82 = isvalue_355095((*fact).kindU.S6.sons->data[((NI) 2)]);
				if (!(LOC82)) goto LA83;
				LOC82 = isvalue_355095(c);
				LA83: ;
				if (!LOC82) goto LA84;
				{
					NIM_BOOL LOC88;
					LOC88 = 0;
					LOC88 = levalue_231374((*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_356462((*fact).kindU.S6.sons->data[((NI) 2)], x);
			if (!LOC92) goto LA93;
			{
				NIM_BOOL LOC97;
				LOC97 = 0;
				LOC97 = isvalue_355095((*fact).kindU.S6.sons->data[((NI) 1)]);
				if (!(LOC97)) goto LA98;
				LOC97 = isvalue_355095(c);
				LA98: ;
				if (!LOC97) goto LA99;
				{
					NIM_BOOL LOC103;
					LOC103 = 0;
					LOC103 = levalue_231374(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_194172((*x).info, ((NimStringDesc*) &TMP3480));
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

N_NIMCALL(NU8, impliesle_357060)(Tnode223809* fact, Tnode223809* x, Tnode223809* c) {
	NU8 result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = islocation_355116(x);
		if (!!(LOC3)) goto LA4;
		result = impliesge_357019(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_356462((*fact).kindU.S6.sons->data[((NI) 1)], x);
			if (!LOC9) goto LA10;
			{
				NIM_BOOL LOC14;
				LOC14 = 0;
				LOC14 = isvalue_355095((*fact).kindU.S6.sons->data[((NI) 2)]);
				if (!(LOC14)) goto LA15;
				LOC14 = isvalue_355095(c);
				LA15: ;
				if (!LOC14) goto LA16;
				{
					NIM_BOOL LOC20;
					LOC20 = 0;
					LOC20 = levalue_231374((*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_356462((*fact).kindU.S6.sons->data[((NI) 2)], x);
			if (!LOC25) goto LA26;
			{
				NIM_BOOL LOC30;
				LOC30 = 0;
				LOC30 = isvalue_355095((*fact).kindU.S6.sons->data[((NI) 1)]);
				if (!(LOC30)) goto LA31;
				LOC30 = isvalue_355095(c);
				LA31: ;
				if (!LOC30) goto LA32;
				{
					NIM_BOOL LOC36;
					LOC36 = 0;
					LOC36 = levalue_231374((*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_356462((*fact).kindU.S6.sons->data[((NI) 1)], x);
			if (!LOC43) goto LA44;
			{
				NIM_BOOL LOC48;
				LOC48 = 0;
				LOC48 = isvalue_355095((*fact).kindU.S6.sons->data[((NI) 2)]);
				if (!(LOC48)) goto LA49;
				LOC48 = isvalue_355095(c);
				LA49: ;
				if (!LOC48) goto LA50;
				{
					Tnode223809* LOC54;
					NIM_BOOL LOC55;
					LOC54 = 0;
					LOC54 = pred_355809(c);
					LOC55 = 0;
					LOC55 = levalue_231374((*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_356462((*fact).kindU.S6.sons->data[((NI) 2)], x);
			if (!LOC59) goto LA60;
			{
				NIM_BOOL LOC64;
				LOC64 = 0;
				LOC64 = isvalue_355095((*fact).kindU.S6.sons->data[((NI) 1)]);
				if (!(LOC64)) goto LA65;
				LOC64 = isvalue_355095(c);
				LA65: ;
				if (!LOC64) goto LA66;
				{
					NIM_BOOL LOC70;
					LOC70 = 0;
					LOC70 = levalue_231374(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_356462((*fact).kindU.S6.sons->data[((NI) 1)], x);
			if (!LOC76) goto LA77;
			{
				NIM_BOOL LOC81;
				LOC81 = 0;
				LOC81 = isvalue_355095((*fact).kindU.S6.sons->data[((NI) 2)]);
				if (!(LOC81)) goto LA82;
				LOC81 = isvalue_355095(c);
				LA82: ;
				if (!LOC81) goto LA83;
				{
					NIM_BOOL LOC87;
					LOC87 = 0;
					LOC87 = levalue_231374((*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_356462((*fact).kindU.S6.sons->data[((NI) 2)], x);
			if (!LOC91) goto LA92;
			{
				NIM_BOOL LOC96;
				LOC96 = 0;
				LOC96 = isvalue_355095((*fact).kindU.S6.sons->data[((NI) 1)]);
				if (!(LOC96)) goto LA97;
				LOC96 = isvalue_355095(c);
				LA97: ;
				if (!LOC96) goto LA98;
				{
					Tnode223809* LOC102;
					NIM_BOOL LOC103;
					LOC102 = 0;
					LOC102 = pred_355809((*fact).kindU.S6.sons->data[((NI) 1)]);
					LOC103 = 0;
					LOC103 = levalue_231374(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_194172((*x).info, ((NimStringDesc*) &TMP3481));
	}
	break;
	default:
	{
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NU8, implieslt_357095)(Tnode223809* fact, Tnode223809* x, Tnode223809* c) {
	NU8 result;
	Tnode223809* p;
	result = 0;
	p = pred_355809(c);
	{
		if (!!((p == c))) goto LA3;
		result = impliesle_357060(fact, x, p);
	}
	goto LA1;
	LA3: ;
	{
		Tnode223809* q;
		q = pred_355809(x);
		{
			if (!!((q == x))) goto LA8;
			result = impliesle_357060(fact, q, c);
		}
		LA8: ;
	}
	LA1: ;
	return result;
}

static N_INLINE(NI, len_224098)(Tnode223809* 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_356918)(Tnode223809* a, Tnode223809* b) {
	NU8 result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = equalsets_274082(a, b);
		if (!LOC3) goto LA4;
		result = ((NU8) 2);
	}
	goto LA1;
	LA4: ;
	{
		Tnode223809* LOC7;
		NI LOC8;
		LOC7 = 0;
		LOC7 = intersectsets_274061(a, b);
		LOC8 = 0;
		LOC8 = len_224098(LOC7);
		if (!(LOC8 == ((NI) 0))) goto LA9;
		result = ((NU8) 1);
	}
	goto LA1;
	LA9: ;
	LA1: ;
	return result;
}

N_NIMCALL(NU8, leimpliesin_356760)(Tnode223809* x, Tnode223809* c, Tnode223809* aset) {
	NU8 result;
	result = 0;
	{
		Tnode223809* value;
		NI64 LOC5;
		if (!((*c).kind >= ((NU8) 5) && (*c).kind <= ((NU8) 15))) goto LA3;
		LOC5 = 0;
		LOC5 = firstord_253004((*x).typ);
		value = newintnode_224607((*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_274019(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_356839)(Tnode223809* x, Tnode223809* c, Tnode223809* aset) {
	NU8 result;
	result = 0;
	{
		Tnode223809* value;
		NI64 max;
		if (!((*c).kind >= ((NU8) 5) && (*c).kind <= ((NU8) 15))) goto LA3;
		value = newintnode_224607((*c).kind, (*c).kindU.S1.intval);
		max = lastord_253010((*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_274019(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_356930)(Tnode223809* fact, Tnode223809* loc, Tnode223809* 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_356462((*fact).kindU.S6.sons->data[((NI) 1)], loc);
			if (!LOC4) goto LA5;
			{
				NIM_BOOL LOC9;
				LOC9 = 0;
				LOC9 = inset_274019(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_356462((*fact).kindU.S6.sons->data[((NI) 2)], loc);
			if (!LOC14) goto LA15;
			{
				NIM_BOOL LOC19;
				LOC19 = 0;
				LOC19 = inset_274019(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_356462((*fact).kindU.S6.sons->data[((NI) 2)], loc);
			if (!LOC26) goto LA27;
			result = comparesets_356918((*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_356462((*fact).kindU.S6.sons->data[((NI) 1)], loc);
			if (!LOC32) goto LA33;
			result = leimpliesin_356760((*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_356462((*fact).kindU.S6.sons->data[((NI) 2)], loc);
			if (!LOC36) goto LA37;
			result = geimpliesin_356839((*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;
			Tnode223809* LOC45;
			LOC42 = 0;
			LOC42 = sametree_356462((*fact).kindU.S6.sons->data[((NI) 1)], loc);
			if (!LOC42) goto LA43;
			LOC45 = 0;
			LOC45 = pred_355809((*fact).kindU.S6.sons->data[((NI) 2)]);
			result = leimpliesin_356760((*fact).kindU.S6.sons->data[((NI) 1)], LOC45, aset);
		}
		goto LA40;
		LA43: ;
		{
			NIM_BOOL LOC47;
			Tnode223809* LOC50;
			LOC47 = 0;
			LOC47 = sametree_356462((*fact).kindU.S6.sons->data[((NI) 2)], loc);
			if (!LOC47) goto LA48;
			LOC50 = 0;
			LOC50 = pred_355809((*fact).kindU.S6.sons->data[((NI) 1)]);
			result = geimpliesin_356839((*fact).kindU.S6.sons->data[((NI) 2)], LOC50, aset);
		}
		goto LA40;
		LA48: ;
		LA40: ;
	}
	break;
	case ((NU8) 98):
	case ((NU8) 126):
	case ((NU8) 125):
	{
		internalerror_194172((*loc).info, ((NimStringDesc*) &TMP3482));
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

N_NIMCALL(NU8, factimplies_357143)(Tnode223809* fact, Tnode223809* prop) {
	NU8 result;
	NU8 LOC1;
{	result = 0;
	LOC1 = 0;
	LOC1 = getmagic_252417(fact);
	switch (LOC1) {
	case ((NU8) 98):
	{
		Tnode223809* arg;
		NU8 LOC3;
		arg = (*fact).kindU.S6.sons->data[((NI) 1)];
		LOC3 = 0;
		LOC3 = getmagic_252417(arg);
		switch (LOC3) {
		case ((NU8) 156):
		case ((NU8) 88):
		{
			NU8 LOC5;
			LOC5 = 0;
			LOC5 = factimplies_357143(arg, prop);
			result = HEX7E_357133(LOC5);
			goto BeforeRet;
		}
		break;
		case ((NU8) 125):
		{
			NU8 a;
			NU8 b;
			a = factimplies_357143((*arg).kindU.S6.sons->data[((NI) 1)], prop);
			b = factimplies_357143((*arg).kindU.S6.sons->data[((NI) 2)], prop);
			{
				if (!(a == b)) goto LA9;
				result = HEX7E_357133(a);
				goto BeforeRet;
			}
			LA9: ;
			result = ((NU8) 0);
			goto BeforeRet;
		}
		break;
		default:
		{
			result = ((NU8) 0);
			goto BeforeRet;
		}
		break;
		}
	}
	break;
	case ((NU8) 125):
	{
		result = factimplies_357143((*fact).kindU.S6.sons->data[((NI) 1)], prop);
		{
			if (!!((result == ((NU8) 0)))) goto LA15;
			goto BeforeRet;
		}
		LA15: ;
		result = factimplies_357143((*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_357143(fact, (*prop).kindU.S6.sons->data[((NI) 1)]);
		result = HEX7E_357133(LOC19);
	}
	break;
	case ((NU8) 156):
	{
		result = impliesisnil_356995(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_356724(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_357060(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_357095(fact, (*prop).kindU.S6.sons->data[((NI) 1)], (*prop).kindU.S6.sons->data[((NI) 2)]);
	}
	break;
	case ((NU8) 147):
	{
		result = impliesin_356930(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_357193)(Tnodeseq223803* facts, Tnode223809* prop) {
	NU8 result;
{	result = 0;
	{
		Tnode223809* f_357410;
		NI i_357433;
		NI L_357435;
		f_357410 = 0;
		i_357433 = ((NI) 0);
		L_357435 = (facts ? facts->Sup.len : 0);
		{
			while (1) {
				if (!(i_357433 < L_357435)) goto LA3;
				f_357410 = facts->data[i_357433];
				{
					if (!!(f_357410 == 0)) goto LA6;
					result = factimplies_357143(f_357410, prop);
					{
						if (!!((result == ((NU8) 0)))) goto LA10;
						goto BeforeRet;
					}
					LA10: ;
				}
				LA6: ;
				i_357433 += ((NI) 1);
			} LA3: ;
		}
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode223809*, swapargs_355307)(Tnode223809* fact, Tsym223841* newop) {
	Tnode223809* result;
	result = 0;
	result = newnodei_225407(((NU8) 27), (*fact).info, ((NI) 3));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_225325(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(Tnode223809*, neg_355323)(Tnode223809* n) {
	Tnode223809* result;
	NU8 LOC5;
{	result = 0;
	{
		if (!(n == NIM_NIL)) goto LA3;
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA3: ;
	LOC5 = 0;
	LOC5 = getmagic_252417(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_355307(n, ople_355293);
	}
	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_355307(n, oplt_355294);
	}
	break;
	case ((NU8) 147):
	{
		Ttype223847* t;
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 39)))) goto LA12;
			result = NIM_NIL;
			goto BeforeRet;
		}
		LA12: ;
		t = skiptypes_227167((*(*n).kindU.S6.sons->data[((NI) 2)]).typ, IL64(211106232576256));
		result = newnodei_225407(((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)]);
		{
			Tnode223809* s;
			if (!((*t).kind == ((NU8) 14))) goto LA16;
			s = newnodeit_225807(((NU8) 39), (*n).info, (*(*n).kindU.S6.sons->data[((NI) 1)]).typ);
			{
				Tnode223809* e_355368;
				Tnode223809* HEX3Atmp_355449;
				e_355368 = 0;
				HEX3Atmp_355449 = 0;
				HEX3Atmp_355449 = (*t).n;
				{
					NI i_355453;
					NI HEX3Atmp_355455;
					NI LOC20;
					NI res_355457;
					i_355453 = 0;
					HEX3Atmp_355455 = 0;
					LOC20 = 0;
					LOC20 = len_224098(HEX3Atmp_355449);
					HEX3Atmp_355455 = (LOC20 - 1);
					res_355457 = ((NI) 0);
					{
						while (1) {
							Tnode223809* easnode;
							if (!(res_355457 <= HEX3Atmp_355455)) goto LA22;
							i_355453 = res_355457;
							e_355368 = (*HEX3Atmp_355449).kindU.S6.sons->data[i_355453];
							easnode = newintnode_224607(((NU8) 6), ((NI64) ((*(*e_355368).kindU.S4.sym).position)));
							{
								NIM_BOOL LOC25;
								LOC25 = 0;
								LOC25 = inset_274019((*n).kindU.S6.sons->data[((NI) 1)], easnode);
								if (!!(LOC25)) goto LA26;
								add_224165(s, easnode);
							}
							LA26: ;
							res_355457 += ((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_253016(t);
			LOC29 = (LOC31 < IL64(1000));
			LA30: ;
			if (!LOC29) goto LA32;
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), complement_274550((*n).kindU.S6.sons->data[((NI) 1)]));
		}
		goto LA14;
		LA32: ;
		{
			result = NIM_NIL;
		}
		LA14: ;
	}
	break;
	case ((NU8) 126):
	{
		Tnode223809* a;
		Tnode223809* b;
		a = neg_355323((*n).kindU.S6.sons->data[((NI) 1)]);
		b = neg_355323((*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_225407(((NU8) 27), (*n).info, ((NI) 3));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_225325(opand_355295));
			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_225407(((NU8) 27), (*n).info, ((NI) 2));
		asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_225325(opnot_229060));
		asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), n);
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode223809*, buildcall_355478)(Tsym223841* op, Tnode223809* a) {
	Tnode223809* result;
	result = 0;
	result = newnodei_225407(((NU8) 27), (*a).info, ((NI) 2));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_225325(op));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), a);
	return result;
}

N_NIMCALL(NU8, impliesnotnil_357451)(Tnodeseq223803* facts, Tnode223809* arg) {
	NU8 result;
	Tnode223809* LOC1;
	Tnode223809* LOC2;
	result = 0;
	LOC1 = 0;
	LOC1 = buildcall_355478(opisnil_355297, arg);
	LOC2 = 0;
	LOC2 = neg_355323(LOC1);
	result = doesimply_357193(facts, LOC2);
	return result;
}

N_NIMCALL(Tnode223809*, buildproperfieldcheck_359183)(Tnode223809* access, Tnode223809* check) {
	Tnode223809* result;
	result = 0;
	{
		if (!((*(*check).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 39))) goto LA3;
		result = copytree_228028(check);
		{
			Tnode223809* a;
			if (!((*access).kind == ((NU8) 45))) goto LA7;
			a = copytree_228028(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: ;
	{
		Tnode223809* LOC10;
		LOC10 = 0;
		LOC10 = buildproperfieldcheck_359183(access, (*check).kindU.S6.sons->data[((NI) 1)]);
		result = neg_355323(LOC10);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, checkfieldaccess_359409)(Tnodeseq223803* m, Tnode223809* n) {
	{
		NI i_359424;
		NI HEX3Atmp_359451;
		NI LOC2;
		NI res_359454;
		i_359424 = 0;
		HEX3Atmp_359451 = 0;
		LOC2 = 0;
		LOC2 = len_224098(n);
		HEX3Atmp_359451 = (NI)(LOC2 - ((NI) 1));
		res_359454 = ((NI) 1);
		{
			while (1) {
				Tnode223809* check;
				if (!(res_359454 <= HEX3Atmp_359451)) goto LA4;
				i_359424 = res_359454;
				check = buildproperfieldcheck_359183((*n).kindU.S6.sons->data[((NI) 0)], (*n).kindU.S6.sons->data[i_359424]);
				{
					NIM_BOOL LOC7;
					NU8 LOC9;
					NimStringDesc* LOC12;
					LOC7 = 0;
					LOC7 = !((check == NIM_NIL));
					if (!(LOC7)) goto LA8;
					LOC9 = 0;
					LOC9 = doesimply_357193(m, check);
					LOC7 = !((LOC9 == ((NU8) 2)));
					LA8: ;
					if (!LOC7) goto LA10;
					LOC12 = 0;
					LOC12 = rendertree_245059((*n).kindU.S6.sons->data[((NI) 0)], 0);
					message_194161((*n).info, ((NU16) 258), LOC12);
					goto LA1;
				}
				LA10: ;
				res_359454 += ((NI) 1);
			} LA4: ;
		}
	} LA1: ;
}

static N_INLINE(NI, safelen_224126)(Tnode223809* 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_356618)(Tnode223809* n, Tnode223809* x) {
	NIM_BOOL result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = sametree_356462(n, x);
		if (!LOC3) goto LA4;
		result = NIM_TRUE;
	}
	goto LA1;
	LA4: ;
	{
		{
			NI i_356634;
			NI HEX3Atmp_356637;
			NI LOC8;
			NI res_356640;
			i_356634 = 0;
			HEX3Atmp_356637 = 0;
			LOC8 = 0;
			LOC8 = safelen_224126(n);
			HEX3Atmp_356637 = (NI)(LOC8 - ((NI) 1));
			res_356640 = ((NI) 0);
			{
				while (1) {
					if (!(res_356640 <= HEX3Atmp_356637)) goto LA10;
					i_356634 = res_356640;
					{
						NIM_BOOL LOC13;
						LOC13 = 0;
						LOC13 = hassubtree_356618((*n).kindU.S6.sons->data[i_356634], x);
						if (!LOC13) goto LA14;
						result = NIM_TRUE;
						goto BeforeRet;
					}
					LA14: ;
					res_356640 += ((NI) 1);
				} LA10: ;
			}
		}
	}
	LA1: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, invalidatefacts_356659)(Tnodeseq223803** m, Tnode223809* n) {
	{
		NI i_356674;
		NI HEX3Atmp_356689;
		NI res_356692;
		i_356674 = 0;
		HEX3Atmp_356689 = 0;
		HEX3Atmp_356689 = ((*m) ? ((*m)->Sup.len-1) : -1);
		res_356692 = ((NI) 0);
		{
			while (1) {
				if (!(res_356692 <= HEX3Atmp_356689)) goto LA3;
				i_356674 = res_356692;
				{
					NIM_BOOL LOC6;
					LOC6 = 0;
					LOC6 = !(((*m)->data[i_356674] == NIM_NIL));
					if (!(LOC6)) goto LA7;
					LOC6 = hassubtree_356618((*m)->data[i_356674], n);
					LA7: ;
					if (!LOC6) goto LA8;
					asgnRefNoCycle((void**) (&(*m)->data[i_356674]), NIM_NIL);
				}
				LA8: ;
				res_356692 += ((NI) 1);
			} LA3: ;
		}
	}
}

N_NIMCALL(void, addasgnfact_359086)(Tnodeseq223803** m, Tnode223809* key, Tnode223809* value) {
	Tnode223809* fact;
	fact = newnodei_225407(((NU8) 27), (*key).info, ((NI) 3));
	asgnRefNoCycle((void**) (&(*fact).kindU.S6.sons->data[((NI) 0)]), newsymnode_225325(opeq_355298));
	asgnRefNoCycle((void**) (&(*fact).kindU.S6.sons->data[((NI) 1)]), key);
	asgnRefNoCycle((void**) (&(*fact).kindU.S6.sons->data[((NI) 2)]), value);
	(*m) = (Tnodeseq223803*) incrSeqV2(&((*m))->Sup, sizeof(Tnode223809*));
	asgnRefNoCycle((void**) (&(*m)->data[(*m)->Sup.len]), fact);
	++(*m)->Sup.len;
}

N_NIMCALL(NIM_BOOL, islet_355127)(Tnode223809* 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;
			Ttype223847* LOC12;
			LOC10 = 0;
			LOC10 = ((*(*n).kindU.S4.sym).kind == ((NU8) 3));
			if (!(LOC10)) goto LA11;
			LOC12 = 0;
			LOC12 = skiptypes_227167((*(*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_355179)(Tnode223809* 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_355239)(Tnode223809* m, NIM_BOOL isapprox) {
	NIM_BOOL result;
	Tnode223809* 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_252442((*n).kindU.S6.sons->data[((NI) 1)]);
					if (LOC8) goto LA9;
					LOC8 = islet_355127((*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_355127(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_355179(n);
	}
	LA21: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_BOOL, interestingcaseexpr_355283)(Tnode223809* m) {
	NIM_BOOL result;
	result = 0;
	result = isletlocation_355239(m, NIM_TRUE);
	return result;
}

N_NIMCALL(Ttype223847*, settype_358872)(Tnode223809* n) {
	Ttype223847* result;
	result = 0;
	result = newtype_226140(((NU8) 19), (*(*n).typ).owner);
	addsonskipintlit_272731(result, (*n).typ);
	return result;
}

N_NIMCALL(Tnode223809*, buildof_358882)(Tnode223809* it, Tnode223809* loc) {
	Tnode223809* result;
	Tnode223809* s;
	NI LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = len_224098(it);
	s = newnodei_225407(((NU8) 39), (*it).info, (NI)(LOC1 - ((NI) 1)));
	asgnRefNoCycle((void**) (&(*s).typ), settype_358872(loc));
	{
		NI i_358900;
		NI HEX3Atmp_358907;
		NI LOC3;
		NI res_358910;
		i_358900 = 0;
		HEX3Atmp_358907 = 0;
		LOC3 = 0;
		LOC3 = len_224098(it);
		HEX3Atmp_358907 = (NI)(LOC3 - ((NI) 2));
		res_358910 = ((NI) 0);
		{
			while (1) {
				if (!(res_358910 <= HEX3Atmp_358907)) goto LA5;
				i_358900 = res_358910;
				asgnRefNoCycle((void**) (&(*s).kindU.S6.sons->data[i_358900]), (*it).kindU.S6.sons->data[i_358900]);
				res_358910 += ((NI) 1);
			} LA5: ;
		}
	}
	result = newnodei_225407(((NU8) 27), (*it).info, ((NI) 3));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_225325(opcontains_229061));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), s);
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), loc);
	return result;
}

N_NIMCALL(Tnode223809*, buildelse_358929)(Tnode223809* n) {
	Tnode223809* result;
	Tnode223809* s;
	Ttype223847* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = settype_358872((*n).kindU.S6.sons->data[((NI) 0)]);
	s = newnodeit_225807(((NU8) 39), (*n).info, LOC1);
	{
		NI i_358946;
		NI HEX3Atmp_359028;
		NI LOC3;
		NI res_359031;
		i_358946 = 0;
		HEX3Atmp_359028 = 0;
		LOC3 = 0;
		LOC3 = len_224098(n);
		HEX3Atmp_359028 = (NI)(LOC3 - ((NI) 2));
		res_359031 = ((NI) 1);
		{
			while (1) {
				Tnode223809* branch;
				if (!(res_359031 <= HEX3Atmp_359028)) goto LA5;
				i_358946 = res_359031;
				branch = (*n).kindU.S6.sons->data[i_358946];
				{
					NI j_359012;
					NI HEX3Atmp_359021;
					NI LOC7;
					NI res_359024;
					j_359012 = 0;
					HEX3Atmp_359021 = 0;
					LOC7 = 0;
					LOC7 = len_224098(branch);
					HEX3Atmp_359021 = (NI)(LOC7 - ((NI) 2));
					res_359024 = ((NI) 0);
					{
						while (1) {
							if (!(res_359024 <= HEX3Atmp_359021)) goto LA9;
							j_359012 = res_359024;
							add_224165(s, (*branch).kindU.S6.sons->data[j_359012]);
							res_359024 += ((NI) 1);
						} LA9: ;
					}
				}
				res_359031 += ((NI) 1);
			} LA5: ;
		}
	}
	result = newnodei_225407(((NU8) 27), (*n).info, ((NI) 3));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_225325(opcontains_229061));
	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_359137)(Tnodeseq223803** m, Tnode223809* n, NI i) {
	Tnode223809* branch;
	branch = (*n).kindU.S6.sons->data[i];
	{
		Tnode223809* LOC5;
		if (!((*branch).kind == ((NU8) 85))) goto LA3;
		LOC5 = 0;
		LOC5 = buildof_358882(branch, (*n).kindU.S6.sons->data[((NI) 0)]);
		(*m) = (Tnodeseq223803*) incrSeqV2(&((*m))->Sup, sizeof(Tnode223809*));
		asgnRefNoCycle((void**) (&(*m)->data[(*m)->Sup.len]), LOC5);
		++(*m)->Sup.len;
	}
	goto LA1;
	LA3: ;
	{
		Tnode223809* LOC7;
		Tnode223809* LOC8;
		LOC7 = 0;
		LOC7 = buildelse_358929(n);
		LOC8 = 0;
		LOC8 = neg_355323(LOC7);
		(*m) = (Tnodeseq223803*) incrSeqV2(&((*m))->Sup, sizeof(Tnode223809*));
		asgnRefNoCycle((void**) (&(*m)->data[(*m)->Sup.len]), LOC8);
		++(*m)->Sup.len;
	}
	LA1: ;
}

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

N_NIMCALL(Tnode223809*, usefulfact_356172)(Tnode223809* n) {
	Tnode223809* result;
	NU8 LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getmagic_252417(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;
			Tnode223809* LOC6;
			NIM_BOOL LOC8;
			LOC5 = 0;
			LOC6 = 0;
			LOC6 = skipconv_262935((*n).kindU.S6.sons->data[((NI) 2)]);
			LOC5 = ((*LOC6).kind == ((NU8) 23));
			if (!(LOC5)) goto LA7;
			LOC8 = 0;
			LOC8 = isletlocation_355239((*n).kindU.S6.sons->data[((NI) 1)], NIM_FALSE);
			if (LOC8) goto LA9;
			LOC8 = isvar_355179((*n).kindU.S6.sons->data[((NI) 1)]);
			LA9: ;
			LOC5 = LOC8;
			LA7: ;
			if (!LOC5) goto LA10;
			result = buildcall_355478(opisnil_355297, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		goto LA3;
		LA10: ;
		{
			{
				NIM_BOOL LOC15;
				LOC15 = 0;
				LOC15 = isletlocation_355239((*n).kindU.S6.sons->data[((NI) 1)], NIM_TRUE);
				if (LOC15) goto LA16;
				LOC15 = isletlocation_355239((*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_355239((*n).kindU.S6.sons->data[((NI) 1)], NIM_TRUE);
			if (LOC22) goto LA23;
			LOC22 = isletlocation_355239((*n).kindU.S6.sons->data[((NI) 2)], NIM_TRUE);
			LA23: ;
			if (!LOC22) goto LA24;
			result = n;
		}
		goto LA20;
		LA24: ;
		{
			NIM_BOOL LOC27;
			Tnode223809* LOC28;
			NU8 LOC29;
			Tnode223809* LOC31;
			NU8 LOC32;
			LOC27 = 0;
			LOC28 = 0;
			LOC28 = HEX5BHEX5D_224244(n, ((NI) 1));
			LOC29 = 0;
			LOC29 = getmagic_252417(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_224244(n, ((NI) 2));
			LOC32 = 0;
			LOC32 = getmagic_252417(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_355239((*n).kindU.S6.sons->data[((NI) 1)], NIM_FALSE);
			if (LOC38) goto LA39;
			LOC38 = isvar_355179((*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_355239((*n).kindU.S6.sons->data[((NI) 1)], NIM_TRUE);
			if (!LOC45) goto LA46;
			result = n;
		}
		LA46: ;
	}
	break;
	case ((NU8) 125):
	{
		Tnode223809* a;
		Tnode223809* b;
		a = usefulfact_356172((*n).kindU.S6.sons->data[((NI) 1)]);
		b = usefulfact_356172((*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_225407(((NU8) 27), (*n).info, ((NI) 3));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_225325(opand_355295));
			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):
	{
		Tnode223809* a;
		a = usefulfact_356172((*n).kindU.S6.sons->data[((NI) 1)]);
		{
			if (!!((a == NIM_NIL))) goto LA64;
			result = neg_355323(a);
		}
		LA64: ;
	}
	break;
	case ((NU8) 126):
	{
		Tnode223809* a;
		Tnode223809* LOC67;
		Tnode223809* b;
		Tnode223809* LOC68;
		LOC67 = 0;
		LOC67 = usefulfact_356172((*n).kindU.S6.sons->data[((NI) 1)]);
		a = neg_355323(LOC67);
		LOC68 = 0;
		LOC68 = usefulfact_356172((*n).kindU.S6.sons->data[((NI) 2)]);
		b = neg_355323(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_225407(((NU8) 27), (*n).info, ((NI) 3));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_225325(opand_355295));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), a);
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), b);
			result = neg_355323(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_356172((*(*n).kindU.S4.sym).ast);
			}
			LA84: ;
		}
		goto LA76;
		LA80: ;
		{
			Tnode223809* LOC89;
			if (!((*n).kind == ((NU8) 126))) goto LA87;
			LOC89 = 0;
			LOC89 = lastson_226406(n);
			result = usefulfact_356172(LOC89);
		}
		goto LA76;
		LA87: ;
		LA76: ;
	}
	break;
	}
	return result;
}

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

N_NIMCALL(void, addfactneg_356426)(Tnodeseq223803** m, Tnode223809* n_356430) {
	Tnode223809* n;
	n = neg_355323(n_356430);
	{
		if (!!((n == NIM_NIL))) goto LA3;
		addfact_356392(m, n);
	}
	LA3: ;
}

N_NIMCALL(void, adddiscriminantfact_359059)(Tnodeseq223803** m, Tnode223809* n) {
	Tnode223809* fact;
	fact = newnodei_225407(((NU8) 27), (*n).info, ((NI) 3));
	asgnRefNoCycle((void**) (&(*fact).kindU.S6.sons->data[((NI) 0)]), newsymnode_225325(opeq_355298));
	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) = (Tnodeseq223803*) incrSeqV2(&((*m))->Sup, sizeof(Tnode223809*));
	asgnRefNoCycle((void**) (&(*m)->data[(*m)->Sup.len]), fact);
	++(*m)->Sup.len;
}

N_NIMCALL(Tnode223809*, buildcall_355491)(Tsym223841* op, Tnode223809* a, Tnode223809* b) {
	Tnode223809* result;
	result = 0;
	result = newnodei_225407(((NU8) 29), (*a).info, ((NI) 3));
	asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 0)]), newsymnode_225325(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(Tnode223809*, minusone_355693)(void) {
	Tnode223809* result;
	result = 0;
	result = newintnode_224607(((NU8) 6), IL64(-1));
	return result;
}

N_NIMCALL(Tnode223809*, negate_355618)(Tnode223809* a, Tnode223809* b_355621, Tnode223809* res) {
	Tnode223809* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		Tnode223809* b;
		LOC3 = 0;
		LOC3 = ((*b_355621).kind >= ((NU8) 5) && (*b_355621).kind <= ((NU8) 15));
		if (!(LOC3)) goto LA4;
		LOC3 = !(((*b_355621).kindU.S1.intval == (IL64(-9223372036854775807) - IL64(1))));
		LA4: ;
		if (!LOC3) goto LA5;
		b = copynode_227660(b_355621);
		(*b).kindU.S1.intval = -((*b).kindU.S1.intval);
		{
			if (!((*a).kind >= ((NU8) 5) && (*a).kind <= ((NU8) 15))) goto LA9;
			(*b).kindU.S1.intval = HEX7CHEX2BHEX7C_290019((*b).kindU.S1.intval, (*a).kindU.S1.intval);
			result = b;
		}
		goto LA7;
		LA9: ;
		{
			result = buildcall_355491(opadd_355299, a, b);
		}
		LA7: ;
	}
	goto LA1;
	LA5: ;
	{
		Tnode223809* b;
		if (!((*b_355621).kind >= ((NU8) 16) && (*b_355621).kind <= ((NU8) 18))) goto LA13;
		b = copynode_227660(b_355621);
		(*b).kindU.S2.floatval = -((*b).kindU.S2.floatval);
		result = buildcall_355491(opadd_355299, a, b);
	}
	goto LA1;
	LA13: ;
	{
		result = res;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode223809*, HEX7CHEX2BHEX7C_355506)(Tnode223809* a, Tnode223809* b) {
	Tnode223809* result;
	result = 0;
	result = copynode_227660(a);
	{
		if (!((*a).kind >= ((NU8) 5) && (*a).kind <= ((NU8) 15))) goto LA3;
		(*result).kindU.S1.intval = HEX7CHEX2BHEX7C_290019((*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(Tnode223809*, HEX7CHEX2AHEX7C_355562)(Tnode223809* a, Tnode223809* b) {
	Tnode223809* result;
	result = 0;
	result = copynode_227660(a);
	{
		if (!((*a).kind >= ((NU8) 5) && (*a).kind <= ((NU8) 15))) goto LA3;
		(*result).kindU.S1.intval = HEX7CHEX2AHEX7C_290073((*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(Tnode223809*, zero_355675)(void) {
	Tnode223809* result;
	result = 0;
	result = newintnode_224607(((NU8) 6), IL64(0));
	return result;
}

N_NIMCALL(Tnode223809*, reassociation_355767)(Tnode223809* n) {
	Tnode223809* result;
	NU8 LOC1;
	result = 0;
	result = n;
	LOC1 = 0;
	LOC1 = getmagic_252417(result);
	switch (LOC1) {
	case ((NU8) 44):
	case ((NU8) 51):
	case ((NU8) 49):
	{
		{
			NIM_BOOL LOC5;
			NIM_BOOL LOC6;
			Tnode223809* LOC7;
			Tnode223809* LOC9;
			NU8 LOC10;
			Tnode223809* LOC12;
			Tnode223809* LOC13;
			Tnode223809* LOC16;
			Tnode223809* LOC17;
			Tnode223809* LOC18;
			Tnode223809* LOC19;
			Tnode223809* LOC20;
			Tnode223809* LOC21;
			LOC5 = 0;
			LOC6 = 0;
			LOC7 = 0;
			LOC7 = HEX5BHEX5D_224244(result, ((NI) 2));
			LOC6 = isvalue_355095(LOC7);
			if (!(LOC6)) goto LA8;
			LOC9 = 0;
			LOC9 = HEX5BHEX5D_224244(result, ((NI) 1));
			LOC10 = 0;
			LOC10 = getmagic_252417(LOC9);
			LOC6 = (LOC10 == ((NU8) 44) || LOC10 == ((NU8) 51) || LOC10 == ((NU8) 49));
			LA8: ;
			LOC5 = LOC6;
			if (!(LOC5)) goto LA11;
			LOC12 = 0;
			LOC12 = HEX5BHEX5D_224244(result, ((NI) 1));
			LOC13 = 0;
			LOC13 = HEX5BHEX5D_224244(LOC12, ((NI) 2));
			LOC5 = isvalue_355095(LOC13);
			LA11: ;
			if (!LOC5) goto LA14;
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_224244(result, ((NI) 1));
			LOC17 = 0;
			LOC17 = HEX5BHEX5D_224244(LOC16, ((NI) 1));
			LOC18 = 0;
			LOC18 = HEX5BHEX5D_224244(result, ((NI) 1));
			LOC19 = 0;
			LOC19 = HEX5BHEX5D_224244(LOC18, ((NI) 2));
			LOC20 = 0;
			LOC20 = HEX5BHEX5D_224244(result, ((NI) 2));
			LOC21 = 0;
			LOC21 = HEX7CHEX2BHEX7C_355506(LOC19, LOC20);
			result = buildcall_355491(opadd_355299, LOC17, LOC21);
			{
				Tnode223809* LOC24;
				LOC24 = 0;
				LOC24 = HEX5BHEX5D_224244(result, ((NI) 2));
				if (!((*LOC24).kindU.S1.intval == IL64(0))) goto LA25;
				result = HEX5BHEX5D_224244(result, ((NI) 1));
			}
			LA25: ;
		}
		LA14: ;
	}
	break;
	case ((NU8) 46):
	case ((NU8) 53):
	{
		{
			NIM_BOOL LOC30;
			NIM_BOOL LOC31;
			Tnode223809* LOC32;
			Tnode223809* LOC34;
			NU8 LOC35;
			Tnode223809* LOC37;
			Tnode223809* LOC38;
			Tnode223809* LOC41;
			Tnode223809* LOC42;
			Tnode223809* LOC43;
			Tnode223809* LOC44;
			Tnode223809* LOC45;
			Tnode223809* LOC46;
			LOC30 = 0;
			LOC31 = 0;
			LOC32 = 0;
			LOC32 = HEX5BHEX5D_224244(result, ((NI) 2));
			LOC31 = isvalue_355095(LOC32);
			if (!(LOC31)) goto LA33;
			LOC34 = 0;
			LOC34 = HEX5BHEX5D_224244(result, ((NI) 1));
			LOC35 = 0;
			LOC35 = getmagic_252417(LOC34);
			LOC31 = (LOC35 == ((NU8) 46) || LOC35 == ((NU8) 53));
			LA33: ;
			LOC30 = LOC31;
			if (!(LOC30)) goto LA36;
			LOC37 = 0;
			LOC37 = HEX5BHEX5D_224244(result, ((NI) 1));
			LOC38 = 0;
			LOC38 = HEX5BHEX5D_224244(LOC37, ((NI) 2));
			LOC30 = isvalue_355095(LOC38);
			LA36: ;
			if (!LOC30) goto LA39;
			LOC41 = 0;
			LOC41 = HEX5BHEX5D_224244(result, ((NI) 1));
			LOC42 = 0;
			LOC42 = HEX5BHEX5D_224244(LOC41, ((NI) 1));
			LOC43 = 0;
			LOC43 = HEX5BHEX5D_224244(result, ((NI) 1));
			LOC44 = 0;
			LOC44 = HEX5BHEX5D_224244(LOC43, ((NI) 2));
			LOC45 = 0;
			LOC45 = HEX5BHEX5D_224244(result, ((NI) 2));
			LOC46 = 0;
			LOC46 = HEX7CHEX2AHEX7C_355562(LOC44, LOC45);
			result = buildcall_355491(opmul_355301, LOC42, LOC46);
			{
				Tnode223809* LOC49;
				LOC49 = 0;
				LOC49 = HEX5BHEX5D_224244(result, ((NI) 2));
				if (!((*LOC49).kindU.S1.intval == IL64(1))) goto LA50;
				result = HEX5BHEX5D_224244(result, ((NI) 1));
			}
			goto LA47;
			LA50: ;
			{
				Tnode223809* LOC53;
				LOC53 = 0;
				LOC53 = HEX5BHEX5D_224244(result, ((NI) 2));
				if (!((*LOC53).kindU.S1.intval == IL64(0))) goto LA54;
				result = zero_355675();
			}
			goto LA47;
			LA54: ;
			LA47: ;
		}
		LA39: ;
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode223809*, HEX7CHEX2DHEX7C_355534)(Tnode223809* a, Tnode223809* b) {
	Tnode223809* result;
	result = 0;
	result = copynode_227660(a);
	{
		if (!((*a).kind >= ((NU8) 5) && (*a).kind <= ((NU8) 15))) goto LA3;
		(*result).kindU.S1.intval = HEX7CHEX2DHEX7C_290030((*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(Tnode223809*, canon_355843)(Tnode223809* n) {
	Tnode223809* result;
	NU8 LOC19;
	NU8 LOC51;
	result = 0;
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = safelen_224126(n);
		if (!(((NI) 1) <= LOC3)) goto LA4;
		result = shallowcopy_227817(n);
		{
			NI i_355867;
			NI HEX3Atmp_356138;
			NI LOC7;
			NI res_356141;
			i_355867 = 0;
			HEX3Atmp_356138 = 0;
			LOC7 = 0;
			LOC7 = len_224098(n);
			HEX3Atmp_356138 = (LOC7 - 1);
			res_356141 = ((NI) 0);
			{
				while (1) {
					if (!(res_356141 <= HEX3Atmp_356138)) goto LA9;
					i_355867 = res_356141;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_355867]), canon_355843((*n).kindU.S6.sons->data[i_355867]));
					res_356141 += ((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_252417((*(*n).kindU.S4.sym).ast);
		LOC11 = ((TMP4264[LOC15/8] &(1<<(LOC15%8)))!=0);
		LA14: ;
		if (!LOC11) goto LA16;
		result = copytree_228028((*(*n).kindU.S4.sym).ast);
	}
	goto LA1;
	LA16: ;
	{
		result = n;
	}
	LA1: ;
	LOC19 = 0;
	LOC19 = getmagic_252417(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_355095((*result).kindU.S6.sons->data[((NI) 1)]);
			if (!(LOC23)) goto LA24;
			LOC25 = 0;
			LOC25 = isvalue_355095((*result).kindU.S6.sons->data[((NI) 2)]);
			LOC23 = !(LOC25);
			LA24: ;
			if (!LOC23) goto LA26;
			result = swapargs_355307(result, (*(*result).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym);
		}
		LA26: ;
	}
	break;
	case ((NU8) 8):
	{
		Tnode223809* LOC29;
		Tnode223809* LOC30;
		Tnode223809* LOC31;
		LOC29 = 0;
		LOC29 = HEX5BHEX5D_224244(result, ((NI) 1));
		LOC30 = 0;
		LOC30 = buildcall_355478(oplen_355303, LOC29);
		LOC31 = 0;
		LOC31 = minusone_355693();
		result = buildcall_355491(opadd_355299, LOC30, LOC31);
	}
	break;
	case ((NU8) 25):
	{
		Tnode223809* LOC33;
		Tnode223809* LOC34;
		LOC33 = 0;
		LOC33 = HEX5BHEX5D_224244(result, ((NI) 1));
		LOC34 = 0;
		LOC34 = minusone_355693();
		result = buildcall_355491(opadd_355299, LOC33, LOC34);
	}
	break;
	case ((NU8) 45):
	case ((NU8) 52):
	case ((NU8) 50):
	{
		Tnode223809* LOC36;
		Tnode223809* LOC37;
		LOC36 = 0;
		LOC36 = HEX5BHEX5D_224244(result, ((NI) 1));
		LOC37 = 0;
		LOC37 = HEX5BHEX5D_224244(result, ((NI) 2));
		result = negate_355618(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_225325(oplen_355303));
	}
	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):
	{
		Tnode223809* y;
		Tnode223809* LOC40;
		Tnode223809* p;
		Tnode223809* minus;
		Tnode223809* LOC48;
		Tnode223809* LOC49;
		LOC40 = 0;
		LOC40 = HEX5BHEX5D_224244(n, ((NI) 2));
		y = canon_355843(LOC40);
		p = pred_355809(y);
		{
			if (!!((p == y))) goto LA43;
			minus = p;
		}
		goto LA41;
		LA43: ;
		{
			Tnode223809* LOC46;
			Tnode223809* LOC47;
			LOC46 = 0;
			LOC46 = minusone_355693();
			LOC47 = 0;
			LOC47 = buildcall_355491(opadd_355299, y, LOC46);
			minus = canon_355843(LOC47);
		}
		LA41: ;
		LOC48 = 0;
		LOC48 = HEX5BHEX5D_224244(n, ((NI) 1));
		LOC49 = 0;
		LOC49 = canon_355843(LOC48);
		result = buildcall_355491(ople_355293, LOC49, minus);
	}
	break;
	default:
	{
	}
	break;
	}
	result = skipconv_262935(result);
	result = reassociation_355767(result);
	LOC51 = 0;
	LOC51 = getmagic_252417(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):
	{
		Tnode223809* x;
		Tnode223809* y;
		x = HEX5BHEX5D_224244(result, ((NI) 1));
		y = HEX5BHEX5D_224244(result, ((NI) 2));
		{
			NIM_BOOL LOC55;
			NIM_BOOL LOC56;
			NIM_BOOL LOC57;
			NI LOC59;
			Tnode223809* LOC61;
			Tnode223809* 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_224098(x);
			LOC57 = (LOC59 == ((NI) 3));
			LA58: ;
			LOC56 = LOC57;
			if (!(LOC56)) goto LA60;
			LOC61 = 0;
			LOC61 = HEX5BHEX5D_224244(x, ((NI) 2));
			LOC56 = isvalue_355095(LOC61);
			LA60: ;
			LOC55 = LOC56;
			if (!(LOC55)) goto LA62;
			LOC63 = 0;
			LOC63 = HEX5BHEX5D_224244(x, ((NI) 1));
			LOC55 = isletlocation_355239(LOC63, NIM_TRUE);
			LA62: ;
			if (!LOC55) goto LA64;
			LOC66 = 0;
			LOC66 = getmagic_252417(x);
			switch (LOC66) {
			case ((NU8) 45):
			case ((NU8) 52):
			case ((NU8) 50):
			{
				Tnode223809* LOC68;
				Tnode223809* LOC69;
				Tnode223809* LOC70;
				Tnode223809* LOC71;
				Tnode223809* LOC72;
				LOC68 = 0;
				LOC68 = HEX5BHEX5D_224244(result, ((NI) 0));
				LOC69 = 0;
				LOC69 = HEX5BHEX5D_224244(x, ((NI) 1));
				LOC70 = 0;
				LOC70 = HEX5BHEX5D_224244(x, ((NI) 2));
				LOC71 = 0;
				LOC71 = buildcall_355491(opadd_355299, y, LOC70);
				LOC72 = 0;
				LOC72 = reassociation_355767(LOC71);
				result = buildcall_355491((*LOC68).kindU.S4.sym, LOC69, LOC72);
			}
			break;
			case ((NU8) 44):
			case ((NU8) 51):
			case ((NU8) 49):
			{
				Tnode223809* plus;
				Tnode223809* LOC74;
				Tnode223809* LOC75;
				LOC74 = 0;
				LOC74 = HEX5BHEX5D_224244(x, ((NI) 2));
				LOC75 = 0;
				LOC75 = negate_355618(y, LOC74, NIM_NIL);
				plus = reassociation_355767(LOC75);
				{
					Tnode223809* LOC80;
					Tnode223809* LOC81;
					if (!!((plus == NIM_NIL))) goto LA78;
					LOC80 = 0;
					LOC80 = HEX5BHEX5D_224244(result, ((NI) 0));
					LOC81 = 0;
					LOC81 = HEX5BHEX5D_224244(x, ((NI) 1));
					result = buildcall_355491((*LOC80).kindU.S4.sym, LOC81, plus);
				}
				LA78: ;
			}
			break;
			default:
			{
			}
			break;
			}
		}
		goto LA53;
		LA64: ;
		{
			NIM_BOOL LOC84;
			NIM_BOOL LOC85;
			NIM_BOOL LOC86;
			NI LOC88;
			Tnode223809* LOC90;
			Tnode223809* 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_224098(y);
			LOC86 = (LOC88 == ((NI) 3));
			LA87: ;
			LOC85 = LOC86;
			if (!(LOC85)) goto LA89;
			LOC90 = 0;
			LOC90 = HEX5BHEX5D_224244(y, ((NI) 2));
			LOC85 = isvalue_355095(LOC90);
			LA89: ;
			LOC84 = LOC85;
			if (!(LOC84)) goto LA91;
			LOC92 = 0;
			LOC92 = HEX5BHEX5D_224244(y, ((NI) 1));
			LOC84 = isletlocation_355239(LOC92, NIM_TRUE);
			LA91: ;
			if (!LOC84) goto LA93;
			LOC95 = 0;
			LOC95 = getmagic_252417(y);
			switch (LOC95) {
			case ((NU8) 45):
			case ((NU8) 52):
			case ((NU8) 50):
			{
				Tnode223809* LOC97;
				Tnode223809* LOC98;
				Tnode223809* LOC99;
				Tnode223809* LOC100;
				Tnode223809* LOC101;
				LOC97 = 0;
				LOC97 = HEX5BHEX5D_224244(result, ((NI) 0));
				LOC98 = 0;
				LOC98 = HEX5BHEX5D_224244(y, ((NI) 1));
				LOC99 = 0;
				LOC99 = HEX5BHEX5D_224244(y, ((NI) 2));
				LOC100 = 0;
				LOC100 = buildcall_355491(opadd_355299, x, LOC99);
				LOC101 = 0;
				LOC101 = reassociation_355767(LOC100);
				result = buildcall_355491((*LOC97).kindU.S4.sym, LOC98, LOC101);
			}
			break;
			case ((NU8) 44):
			case ((NU8) 51):
			case ((NU8) 49):
			{
				Tnode223809* plus;
				Tnode223809* LOC103;
				Tnode223809* LOC104;
				LOC103 = 0;
				LOC103 = HEX5BHEX5D_224244(y, ((NI) 2));
				LOC104 = 0;
				LOC104 = negate_355618(x, LOC103, NIM_NIL);
				plus = reassociation_355767(LOC104);
				{
					NIM_BOOL LOC107;
					NIM_BOOL LOC109;
					Tnode223809* LOC112;
					Tnode223809* LOC113;
					LOC107 = 0;
					LOC107 = !((plus == NIM_NIL));
					if (!(LOC107)) goto LA108;
					LOC109 = 0;
					LOC109 = isletlocation_355239(x, NIM_TRUE);
					LOC107 = !(LOC109);
					LA108: ;
					if (!LOC107) goto LA110;
					LOC112 = 0;
					LOC112 = HEX5BHEX5D_224244(result, ((NI) 0));
					LOC113 = 0;
					LOC113 = HEX5BHEX5D_224244(y, ((NI) 1));
					result = buildcall_355491((*LOC112).kindU.S4.sym, plus, LOC113);
				}
				LA110: ;
			}
			break;
			default:
			{
			}
			break;
			}
		}
		goto LA53;
		LA93: ;
		{
			NIM_BOOL LOC116;
			NIM_BOOL LOC117;
			NU8 LOC119;
			Tnode223809* LOC121;
			Tnode223809* LOC124;
			LOC116 = 0;
			LOC117 = 0;
			LOC117 = isvalue_355095(x);
			if (!(LOC117)) goto LA118;
			LOC119 = 0;
			LOC119 = getmagic_252417(y);
			LOC117 = (LOC119 == ((NU8) 44) || LOC119 == ((NU8) 51) || LOC119 == ((NU8) 49));
			LA118: ;
			LOC116 = LOC117;
			if (!(LOC116)) goto LA120;
			LOC121 = 0;
			LOC121 = HEX5BHEX5D_224244(y, ((NI) 2));
			LOC116 = isvalue_355095(LOC121);
			LA120: ;
			if (!LOC116) goto LA122;
			LOC124 = 0;
			LOC124 = HEX5BHEX5D_224244(y, ((NI) 2));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), HEX7CHEX2DHEX7C_355534(x, LOC124));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), HEX5BHEX5D_224244(y, ((NI) 1)));
		}
		goto LA53;
		LA122: ;
		{
			NIM_BOOL LOC126;
			NIM_BOOL LOC127;
			NU8 LOC129;
			Tnode223809* LOC131;
			Tnode223809* LOC134;
			LOC126 = 0;
			LOC127 = 0;
			LOC127 = isvalue_355095(x);
			if (!(LOC127)) goto LA128;
			LOC129 = 0;
			LOC129 = getmagic_252417(y);
			LOC127 = (LOC129 == ((NU8) 45) || LOC129 == ((NU8) 52) || LOC129 == ((NU8) 50));
			LA128: ;
			LOC126 = LOC127;
			if (!(LOC126)) goto LA130;
			LOC131 = 0;
			LOC131 = HEX5BHEX5D_224244(y, ((NI) 2));
			LOC126 = isvalue_355095(LOC131);
			LA130: ;
			if (!LOC126) goto LA132;
			LOC134 = 0;
			LOC134 = HEX5BHEX5D_224244(y, ((NI) 2));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 1)]), HEX7CHEX2BHEX7C_355506(x, LOC134));
			asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[((NI) 2)]), HEX5BHEX5D_224244(y, ((NI) 1)));
		}
		goto LA53;
		LA132: ;
		LA53: ;
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

N_NIMCALL(void, addfactle_358849)(Tnodeseq223803** m, Tnode223809* a, Tnode223809* b) {
	Tnode223809* LOC1;
	Tnode223809* LOC2;
	LOC1 = 0;
	LOC1 = buildcall_355491(ople_355293, a, b);
	LOC2 = 0;
	LOC2 = canon_355843(LOC1);
	(*m) = (Tnodeseq223803*) incrSeqV2(&((*m))->Sup, sizeof(Tnode223809*));
	asgnRefNoCycle((void**) (&(*m)->data[(*m)->Sup.len]), LOC2);
	++(*m)->Sup.len;
}

N_NIMCALL(Tnode223809*, one_355684)(void) {
	Tnode223809* result;
	result = 0;
	result = newintnode_224607(((NU8) 6), IL64(1));
	return result;
}

N_NIMCALL(Tnode223809*, HEX7CdivHEX7C_355590)(Tnode223809* a, Tnode223809* b) {
	Tnode223809* result;
	result = 0;
	result = copynode_227660(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_357600)(Tnode223809* 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, TMP4266)(void* p, NI op) {
	Treplacements358219* a;
	NI LOC1;
	a = (Treplacements358219*)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(Tnode223809*, replacesubtree_358226)(Tnode223809* n, Tnode223809* x, Tnode223809* by) {
	Tnode223809* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = sametree_356462(n, x);
		if (!LOC3) goto LA4;
		result = by;
	}
	goto LA1;
	LA4: ;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = hassubtree_356618(n, x);
		if (!LOC7) goto LA8;
		result = shallowcopy_227817(n);
		{
			NI i_358242;
			NI HEX3Atmp_358246;
			NI LOC11;
			NI res_358249;
			i_358242 = 0;
			HEX3Atmp_358246 = 0;
			LOC11 = 0;
			LOC11 = safelen_224126(n);
			HEX3Atmp_358246 = (NI)(LOC11 - ((NI) 1));
			res_358249 = ((NI) 0);
			{
				while (1) {
					if (!(res_358249 <= HEX3Atmp_358246)) goto LA13;
					i_358242 = res_358249;
					asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_358242]), replacesubtree_358226((*n).kindU.S6.sons->data[i_358242], x, by));
					res_358249 += ((NI) 1);
				} LA13: ;
			}
		}
	}
	goto LA1;
	LA8: ;
	{
		result = n;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode223809*, applyreplacements_358268)(Tnode223809* n, Treplacements358219* rep) {
	Tnode223809* result;
	result = 0;
	result = n;
	{
		TY358220 x_358411;
		NI i_358416;
		NI L_358418;
		memset((void*)(&x_358411), 0, sizeof(x_358411));
		i_358416 = ((NI) 0);
		L_358418 = (rep ? rep->Sup.len : 0);
		{
			while (1) {
				if (!(i_358416 < L_358418)) goto LA3;
				x_358411.Field0 = rep->data[i_358416].Field0;
				x_358411.Field1 = rep->data[i_358416].Field1;
				result = replacesubtree_358226(result, x_358411.Field0, x_358411.Field1);
				i_358416 += ((NI) 1);
			} LA3: ;
		}
	}
	return result;
}

N_NIMCALL(NU8, pleviamodelrec_358434)(Tnodeseq223803** m, Tnode223809* a, Tnode223809* b) {
	NU8 result;
{	result = 0;
	{
		NI i_358451;
		NI HEX3Atmp_358602;
		NI res_358605;
		i_358451 = 0;
		HEX3Atmp_358602 = 0;
		HEX3Atmp_358602 = ((*m) ? ((*m)->Sup.len-1) : -1);
		res_358605 = ((NI) 0);
		{
			while (1) {
				Tnode223809* fact;
				if (!(res_358605 <= HEX3Atmp_358602)) goto LA3;
				i_358451 = res_358605;
				fact = (*m)->data[i_358451];
				{
					NIM_BOOL LOC6;
					NU8 LOC8;
					Tnode223809* x;
					Tnode223809* y;
					LOC6 = 0;
					LOC6 = !((fact == NIM_NIL));
					if (!(LOC6)) goto LA7;
					LOC8 = 0;
					LOC8 = getmagic_252417(fact);
					LOC6 = ((TMP4268[LOC8/8] &(1<<(LOC8%8)))!=0);
					LA7: ;
					if (!LOC6) goto LA9;
					asgnRefNoCycle((void**) (&(*m)->data[i_358451]), NIM_NIL);
					x = HEX5BHEX5D_224244(fact, ((NI) 1));
					y = HEX5BHEX5D_224244(fact, ((NI) 2));
					{
						NIM_BOOL LOC13;
						NIM_BOOL LOC14;
						NIM_BOOL LOC15;
						NU8 LOC17;
						NU8 LOC19;
						Tnode223809* LOC21;
						Tnode223809* LOC22;
						LOC13 = 0;
						LOC14 = 0;
						LOC15 = 0;
						LOC15 = sametree_356462(x, a);
						if (!(LOC15)) goto LA16;
						LOC17 = 0;
						LOC17 = getmagic_252417(y);
						LOC15 = (LOC17 == ((NU8) 44) || LOC17 == ((NU8) 51) || LOC17 == ((NU8) 49));
						LA16: ;
						LOC14 = LOC15;
						if (!(LOC14)) goto LA18;
						LOC19 = 0;
						LOC19 = getmagic_252417(b);
						LOC14 = (LOC19 == ((NU8) 44) || LOC19 == ((NU8) 51) || LOC19 == ((NU8) 49));
						LA18: ;
						LOC13 = LOC14;
						if (!(LOC13)) goto LA20;
						LOC21 = 0;
						LOC21 = HEX5BHEX5D_224244(y, ((NI) 1));
						LOC22 = 0;
						LOC22 = HEX5BHEX5D_224244(b, ((NI) 1));
						LOC13 = sametree_356462(LOC21, LOC22);
						LA20: ;
						if (!LOC13) goto LA23;
						{
							Tnode223809* LOC27;
							Tnode223809* LOC28;
							NU8 LOC29;
							LOC27 = 0;
							LOC27 = HEX5BHEX5D_224244(b, ((NI) 2));
							LOC28 = 0;
							LOC28 = HEX5BHEX5D_224244(y, ((NI) 2));
							LOC29 = 0;
							LOC29 = ple_357630((*m), LOC27, LOC28);
							if (!(LOC29 == ((NU8) 2))) goto LA30;
							result = ((NU8) 2);
							goto BeforeRet;
						}
						LA30: ;
					}
					LA23: ;
					{
						NU8 LOC34;
						LOC34 = 0;
						LOC34 = ple_357630((*m), a, x);
						if (!(LOC34 == ((NU8) 2))) goto LA35;
						{
							NU8 LOC39;
							LOC39 = 0;
							LOC39 = ple_357630((*m), y, b);
							if (!(LOC39 == ((NU8) 2))) goto LA40;
							result = ((NU8) 2);
							goto BeforeRet;
						}
						LA40: ;
					}
					LA35: ;
					result = impliesle_357060(fact, a, b);
					{
						if (!!((result == ((NU8) 0)))) goto LA44;
						goto BeforeRet;
					}
					LA44: ;
				}
				LA9: ;
				res_358605 += ((NI) 1);
			} LA3: ;
		}
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NU8, pleviamodel_357622)(Tnodeseq223803* model, Tnode223809* aa, Tnode223809* bb) {
	NU8 result;
	Treplacements358219* replacements;
	Tnodeseq223803* m;
	Tnode223809* a;
	Tnode223809* b;
	result = 0;
	replacements = (Treplacements358219*) newSeq((&NTI358219), 0);
	{
		Tnode223809* fact_358656;
		NI i_358789;
		NI L_358791;
		fact_358656 = 0;
		i_358789 = ((NI) 0);
		L_358791 = (model ? model->Sup.len : 0);
		{
			while (1) {
				if (!(i_358789 < L_358791)) goto LA3;
				fact_358656 = model->data[i_358789];
				{
					NIM_BOOL LOC6;
					NU8 LOC8;
					Tnode223809* a;
					Tnode223809* b;
					LOC6 = 0;
					LOC6 = !((fact_358656 == NIM_NIL));
					if (!(LOC6)) goto LA7;
					LOC8 = 0;
					LOC8 = getmagic_252417(fact_358656);
					LOC6 = ((TMP4267[LOC8/8] &(1<<(LOC8%8)))!=0);
					LA7: ;
					if (!LOC6) goto LA9;
					a = HEX5BHEX5D_224244(fact_358656, ((NI) 1));
					b = HEX5BHEX5D_224244(fact_358656, ((NI) 2));
					{
						TY358220 LOC15;
						if (!((*a).kind == ((NU8) 3))) goto LA13;
						memset((void*)(&LOC15), 0, sizeof(LOC15));
						LOC15.Field0 = a;
						LOC15.Field1 = b;
						replacements = (Treplacements358219*) incrSeqV2(&(replacements)->Sup, sizeof(TY358220));
						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: ;
					{
						TY358220 LOC17;
						memset((void*)(&LOC17), 0, sizeof(LOC17));
						LOC17.Field0 = b;
						LOC17.Field1 = a;
						replacements = (Treplacements358219*) incrSeqV2(&(replacements)->Sup, sizeof(TY358220));
						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_358789 += ((NI) 1);
			} LA3: ;
		}
	}
	m = 0;
	a = aa;
	b = bb;
	{
		if (!(((NI) 0) < (replacements ? replacements->Sup.len : 0))) goto LA20;
		m = (Tnodeseq223803*) newSeq((&NTI223803), 0);
		{
			Tnode223809* fact_358749;
			NI i_358796;
			NI L_358798;
			fact_358749 = 0;
			i_358796 = ((NI) 0);
			L_358798 = (model ? model->Sup.len : 0);
			{
				while (1) {
					if (!(i_358796 < L_358798)) goto LA24;
					fact_358749 = model->data[i_358796];
					{
						NIM_BOOL LOC27;
						NU8 LOC29;
						Tnode223809* LOC32;
						Tnode223809* LOC33;
						LOC27 = 0;
						LOC27 = !((fact_358749 == NIM_NIL));
						if (!(LOC27)) goto LA28;
						LOC29 = 0;
						LOC29 = getmagic_252417(fact_358749);
						LOC27 = !(((TMP4267[LOC29/8] &(1<<(LOC29%8)))!=0));
						LA28: ;
						if (!LOC27) goto LA30;
						LOC32 = 0;
						LOC32 = applyreplacements_358268(fact_358749, replacements);
						LOC33 = 0;
						LOC33 = canon_355843(LOC32);
						m = (Tnodeseq223803*) incrSeqV2(&(m)->Sup, sizeof(Tnode223809*));
						asgnRefNoCycle((void**) (&m->data[m->Sup.len]), LOC33);
						++m->Sup.len;
					}
					LA30: ;
					i_358796 += ((NI) 1);
				} LA24: ;
			}
		}
		a = applyreplacements_358268(aa, replacements);
		b = applyreplacements_358268(bb, replacements);
	}
	goto LA18;
	LA20: ;
	{
		genericSeqAssign((&m), model, (&NTI223803));
	}
	LA18: ;
	result = pleviamodelrec_358434((&m), a, b);
	return result;
}

N_NIMCALL(NU8, ple_357630)(Tnodeseq223803* m, Tnode223809* a, Tnode223809* b) {
	NU8 result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isvalue_355095(a);
		if (!(LOC3)) goto LA4;
		LOC3 = isvalue_355095(b);
		LA4: ;
		if (!LOC3) goto LA5;
		{
			NIM_BOOL LOC9;
			LOC9 = 0;
			LOC9 = levalue_231374(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_355095(b);
		if (!(LOC16)) goto LA17;
		LOC16 = !(((*a).typ == NIM_NIL));
		LA17: ;
		LOC15 = LOC16;
		if (!(LOC15)) goto LA18;
		LOC15 = isordinaltype_253093((*a).typ);
		LA18: ;
		if (!LOC15) goto LA19;
		{
			NI64 LOC23;
			LOC23 = 0;
			LOC23 = lastord_253010((*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_355095(a);
		if (!(LOC29)) goto LA30;
		LOC29 = !(((*b).typ == NIM_NIL));
		LA30: ;
		LOC28 = LOC29;
		if (!(LOC28)) goto LA31;
		LOC28 = isordinaltype_253093((*b).typ);
		LA31: ;
		if (!LOC28) goto LA32;
		{
			NI64 LOC36;
			LOC36 = 0;
			LOC36 = firstord_253004((*b).typ);
			if (!(LOC36 <= (*a).kindU.S1.intval)) goto LA37;
			result = ((NU8) 2);
			goto BeforeRet;
		}
		LA37: ;
	}
	LA32: ;
	{
		NIM_BOOL LOC41;
		LOC41 = 0;
		LOC41 = sametree_356462(a, b);
		if (!LOC41) goto LA42;
		result = ((NU8) 2);
		goto BeforeRet;
	}
	LA42: ;
	{
		NIM_BOOL LOC46;
		NU8 LOC47;
		LOC46 = 0;
		LOC47 = 0;
		LOC47 = getmagic_252417(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_355095(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;
		Tnode223809* LOC61;
		Tnode223809* LOC62;
		NU8 LOC63;
		Tnode223809* LOC65;
		NU8 LOC66;
		LOC57 = 0;
		LOC58 = 0;
		LOC59 = 0;
		LOC59 = getmagic_252417(b);
		LOC58 = (LOC59 == ((NU8) 44) || LOC59 == ((NU8) 51) || LOC59 == ((NU8) 49));
		if (!(LOC58)) goto LA60;
		LOC61 = 0;
		LOC61 = zero_355675();
		LOC62 = 0;
		LOC62 = HEX5BHEX5D_224244(b, ((NI) 2));
		LOC63 = 0;
		LOC63 = ple_357630(m, LOC61, LOC62);
		LOC58 = (LOC63 == ((NU8) 2));
		LA60: ;
		LOC57 = LOC58;
		if (!(LOC57)) goto LA64;
		LOC65 = 0;
		LOC65 = HEX5BHEX5D_224244(b, ((NI) 1));
		LOC66 = 0;
		LOC66 = ple_357630(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;
		Tnode223809* LOC75;
		Tnode223809* LOC76;
		NU8 LOC77;
		Tnode223809* LOC79;
		NU8 LOC80;
		LOC71 = 0;
		LOC72 = 0;
		LOC73 = 0;
		LOC73 = getmagic_252417(a);
		LOC72 = (LOC73 == ((NU8) 44) || LOC73 == ((NU8) 51) || LOC73 == ((NU8) 49));
		if (!(LOC72)) goto LA74;
		LOC75 = 0;
		LOC75 = HEX5BHEX5D_224244(a, ((NI) 2));
		LOC76 = 0;
		LOC76 = zero_355675();
		LOC77 = 0;
		LOC77 = ple_357630(m, LOC75, LOC76);
		LOC72 = (LOC77 == ((NU8) 2));
		LA74: ;
		LOC71 = LOC72;
		if (!(LOC71)) goto LA78;
		LOC79 = 0;
		LOC79 = HEX5BHEX5D_224244(a, ((NI) 1));
		LOC80 = 0;
		LOC80 = ple_357630(m, LOC79, b);
		LOC71 = (LOC80 == ((NU8) 2));
		LA78: ;
		if (!LOC71) goto LA81;
		result = ((NU8) 2);
		goto BeforeRet;
	}
	LA81: ;
	{
		NU8 LOC85;
		LOC85 = 0;
		LOC85 = getmagic_252417(b);
		if (!(LOC85 == ((NU8) 46) || LOC85 == ((NU8) 53))) goto LA86;
		{
			NIM_BOOL LOC90;
			NIM_BOOL LOC91;
			Tnode223809* LOC92;
			NU8 LOC93;
			Tnode223809* LOC95;
			Tnode223809* LOC96;
			NU8 LOC97;
			Tnode223809* LOC99;
			Tnode223809* LOC100;
			NU8 LOC101;
			LOC90 = 0;
			LOC91 = 0;
			LOC92 = 0;
			LOC92 = HEX5BHEX5D_224244(b, ((NI) 1));
			LOC93 = 0;
			LOC93 = ple_357630(m, a, LOC92);
			LOC91 = (LOC93 == ((NU8) 2));
			if (!(LOC91)) goto LA94;
			LOC95 = 0;
			LOC95 = one_355684();
			LOC96 = 0;
			LOC96 = HEX5BHEX5D_224244(b, ((NI) 2));
			LOC97 = 0;
			LOC97 = ple_357630(m, LOC95, LOC96);
			LOC91 = (LOC97 == ((NU8) 2));
			LA94: ;
			LOC90 = LOC91;
			if (!(LOC90)) goto LA98;
			LOC99 = 0;
			LOC99 = zero_355675();
			LOC100 = 0;
			LOC100 = HEX5BHEX5D_224244(b, ((NI) 1));
			LOC101 = 0;
			LOC101 = ple_357630(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;
		Tnode223809* LOC111;
		Tnode223809* LOC113;
		NU8 LOC114;
		Tnode223809* LOC116;
		Tnode223809* LOC117;
		LOC106 = 0;
		LOC107 = 0;
		LOC108 = 0;
		LOC109 = 0;
		LOC109 = getmagic_252417(a);
		LOC108 = (LOC109 == ((NU8) 46) || LOC109 == ((NU8) 53));
		if (!(LOC108)) goto LA110;
		LOC111 = 0;
		LOC111 = HEX5BHEX5D_224244(a, ((NI) 2));
		LOC108 = isvalue_355095(LOC111);
		LA110: ;
		LOC107 = LOC108;
		if (!(LOC107)) goto LA112;
		LOC113 = 0;
		LOC113 = HEX5BHEX5D_224244(a, ((NI) 1));
		LOC114 = 0;
		LOC114 = getmagic_252417(LOC113);
		LOC107 = (LOC114 == ((NU8) 47) || LOC114 == ((NU8) 54));
		LA112: ;
		LOC106 = LOC107;
		if (!(LOC106)) goto LA115;
		LOC116 = 0;
		LOC116 = HEX5BHEX5D_224244(a, ((NI) 1));
		LOC117 = 0;
		LOC117 = HEX5BHEX5D_224244(LOC116, ((NI) 2));
		LOC106 = isvalue_355095(LOC117);
		LA115: ;
		if (!LOC106) goto LA118;
		{
			Tnode223809* LOC122;
			Tnode223809* LOC123;
			Tnode223809* LOC124;
			Tnode223809* LOC125;
			Tnode223809* LOC126;
			Tnode223809* LOC127;
			Tnode223809* LOC128;
			NU8 LOC129;
			LOC122 = 0;
			LOC122 = HEX5BHEX5D_224244(a, ((NI) 1));
			LOC123 = 0;
			LOC123 = HEX5BHEX5D_224244(LOC122, ((NI) 1));
			LOC124 = 0;
			LOC124 = HEX5BHEX5D_224244(a, ((NI) 1));
			LOC125 = 0;
			LOC125 = HEX5BHEX5D_224244(LOC124, ((NI) 2));
			LOC126 = 0;
			LOC126 = HEX5BHEX5D_224244(a, ((NI) 2));
			LOC127 = 0;
			LOC127 = HEX7CdivHEX7C_355590(LOC125, LOC126);
			LOC128 = 0;
			LOC128 = buildcall_355491(opdiv_355302, LOC123, LOC127);
			LOC129 = 0;
			LOC129 = ple_357630(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;
		Tnode223809* LOC139;
		NU8 LOC140;
		NIM_BOOL LOC142;
		Tnode223809* x;
		Tnode223809* LOC143;
		NIM_BOOL LOC145;
		Tnode223809* dc;
		Tnode223809* LOC146;
		Tnode223809* y;
		NIM_BOOL LOC149;
		NU8 LOC150;
		NIM_BOOL LOC152;
		Tnode223809* x2;
		Tnode223809* ec;
		LOC134 = 0;
		LOC135 = 0;
		LOC136 = 0;
		LOC136 = getmagic_252417(a);
		LOC135 = ((someadd_355029[LOC136/8] &(1<<(LOC136%8)))!=0);
		if (!(LOC135)) goto LA137;
		LOC138 = 0;
		LOC139 = 0;
		LOC139 = HEX5BHEX5D_224244(a, ((NI) 1));
		LOC140 = 0;
		LOC140 = getmagic_252417(LOC139);
		LOC138 = ((somemul_355033[LOC140/8] &(1<<(LOC140%8)))!=0);
		if (!(LOC138)) goto LA141;
		LOC142 = 0;
		LOC143 = 0;
		LOC143 = HEX5BHEX5D_224244(a, ((NI) 1));
		x = HEX5BHEX5D_224244(LOC143, ((NI) 1));
		LOC142 = NIM_TRUE;
		if (!(LOC142)) goto LA144;
		LOC145 = 0;
		LOC146 = 0;
		LOC146 = HEX5BHEX5D_224244(a, ((NI) 1));
		dc = HEX5BHEX5D_224244(LOC146, ((NI) 2));
		LOC145 = ((*dc).kind >= ((NU8) 5) && (*dc).kind <= ((NU8) 15));
		if (!(LOC145)) goto LA147;
		y = HEX5BHEX5D_224244(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_252417(b);
		LOC149 = ((somemul_355033[LOC150/8] &(1<<(LOC150%8)))!=0);
		if (!(LOC149)) goto LA151;
		LOC152 = 0;
		x2 = HEX5BHEX5D_224244(b, ((NI) 1));
		LOC152 = NIM_TRUE;
		if (!(LOC152)) goto LA153;
		ec = HEX5BHEX5D_224244(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;
			Tnode223809* ec1;
			Tnode223809* LOC161;
			LOC158 = 0;
			LOC158 = sametree_356462(x, x2);
			if (!LOC158) goto LA159;
			LOC161 = 0;
			LOC161 = minusone_355693();
			ec1 = buildcall_355491(opadd_355299, ec, LOC161);
			{
				NIM_BOOL LOC164;
				NIM_BOOL LOC165;
				NIM_BOOL LOC166;
				NIM_BOOL LOC167;
				Tnode223809* LOC168;
				NU8 LOC169;
				Tnode223809* LOC171;
				NU8 LOC172;
				Tnode223809* LOC174;
				NU8 LOC175;
				NU8 LOC177;
				NU8 LOC179;
				LOC164 = 0;
				LOC165 = 0;
				LOC166 = 0;
				LOC167 = 0;
				LOC168 = 0;
				LOC168 = newintnode_224607(((NU8) 6), IL64(1));
				LOC169 = 0;
				LOC169 = ple_357630(m, LOC168, x);
				LOC167 = (LOC169 == ((NU8) 2));
				if (!(LOC167)) goto LA170;
				LOC171 = 0;
				LOC171 = newintnode_224607(((NU8) 6), IL64(1));
				LOC172 = 0;
				LOC172 = ple_357630(m, LOC171, ec);
				LOC167 = (LOC172 == ((NU8) 2));
				LA170: ;
				LOC166 = LOC167;
				if (!(LOC166)) goto LA173;
				LOC174 = 0;
				LOC174 = newintnode_224607(((NU8) 6), IL64(1));
				LOC175 = 0;
				LOC175 = ple_357630(m, LOC174, dc);
				LOC166 = (LOC175 == ((NU8) 2));
				LA173: ;
				LOC165 = LOC166;
				if (!(LOC165)) goto LA176;
				LOC177 = 0;
				LOC177 = ple_357630(m, dc, ec1);
				LOC165 = (LOC177 == ((NU8) 2));
				LA176: ;
				LOC164 = LOC165;
				if (!(LOC164)) goto LA178;
				LOC179 = 0;
				LOC179 = ple_357630(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;
		Tnode223809* x;
		Tnode223809* dc;
		NIM_BOOL LOC190;
		NU8 LOC191;
		NIM_BOOL LOC193;
		Tnode223809* LOC194;
		NU8 LOC195;
		NIM_BOOL LOC197;
		Tnode223809* x2;
		Tnode223809* LOC198;
		NIM_BOOL LOC200;
		Tnode223809* ec;
		Tnode223809* LOC201;
		Tnode223809* y;
		LOC183 = 0;
		LOC184 = 0;
		LOC185 = 0;
		LOC185 = getmagic_252417(a);
		LOC184 = ((somemul_355033[LOC185/8] &(1<<(LOC185%8)))!=0);
		if (!(LOC184)) goto LA186;
		LOC187 = 0;
		x = HEX5BHEX5D_224244(a, ((NI) 1));
		LOC187 = NIM_TRUE;
		if (!(LOC187)) goto LA188;
		dc = HEX5BHEX5D_224244(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_252417(b);
		LOC190 = ((someadd_355029[LOC191/8] &(1<<(LOC191%8)))!=0);
		if (!(LOC190)) goto LA192;
		LOC193 = 0;
		LOC194 = 0;
		LOC194 = HEX5BHEX5D_224244(b, ((NI) 1));
		LOC195 = 0;
		LOC195 = getmagic_252417(LOC194);
		LOC193 = ((somemul_355033[LOC195/8] &(1<<(LOC195%8)))!=0);
		if (!(LOC193)) goto LA196;
		LOC197 = 0;
		LOC198 = 0;
		LOC198 = HEX5BHEX5D_224244(b, ((NI) 1));
		x2 = HEX5BHEX5D_224244(LOC198, ((NI) 1));
		LOC197 = NIM_TRUE;
		if (!(LOC197)) goto LA199;
		LOC200 = 0;
		LOC201 = 0;
		LOC201 = HEX5BHEX5D_224244(b, ((NI) 1));
		ec = HEX5BHEX5D_224244(LOC201, ((NI) 2));
		LOC200 = ((*ec).kind >= ((NU8) 5) && (*ec).kind <= ((NU8) 15));
		if (!(LOC200)) goto LA202;
		y = HEX5BHEX5D_224244(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;
			Tnode223809* ec1;
			Tnode223809* LOC210;
			LOC207 = 0;
			LOC207 = sametree_356462(x, x2);
			if (!LOC207) goto LA208;
			LOC210 = 0;
			LOC210 = minusone_355693();
			ec1 = buildcall_355491(opadd_355299, ec, LOC210);
			{
				NIM_BOOL LOC213;
				NIM_BOOL LOC214;
				NIM_BOOL LOC215;
				NIM_BOOL LOC216;
				Tnode223809* LOC217;
				NU8 LOC218;
				Tnode223809* LOC220;
				NU8 LOC221;
				Tnode223809* LOC223;
				NU8 LOC224;
				NU8 LOC226;
				Tnode223809* LOC228;
				NU8 LOC229;
				LOC213 = 0;
				LOC214 = 0;
				LOC215 = 0;
				LOC216 = 0;
				LOC217 = 0;
				LOC217 = newintnode_224607(((NU8) 6), IL64(1));
				LOC218 = 0;
				LOC218 = ple_357630(m, LOC217, x);
				LOC216 = (LOC218 == ((NU8) 2));
				if (!(LOC216)) goto LA219;
				LOC220 = 0;
				LOC220 = newintnode_224607(((NU8) 6), IL64(1));
				LOC221 = 0;
				LOC221 = ple_357630(m, LOC220, ec);
				LOC216 = (LOC221 == ((NU8) 2));
				LA219: ;
				LOC215 = LOC216;
				if (!(LOC215)) goto LA222;
				LOC223 = 0;
				LOC223 = newintnode_224607(((NU8) 6), IL64(1));
				LOC224 = 0;
				LOC224 = ple_357630(m, LOC223, dc);
				LOC215 = (LOC224 == ((NU8) 2));
				LA222: ;
				LOC214 = LOC215;
				if (!(LOC214)) goto LA225;
				LOC226 = 0;
				LOC226 = ple_357630(m, dc, ec1);
				LOC214 = (LOC226 == ((NU8) 2));
				LA225: ;
				LOC213 = LOC214;
				if (!(LOC213)) goto LA227;
				LOC228 = 0;
				LOC228 = zero_355675();
				LOC229 = 0;
				LOC229 = ple_357630(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_252417(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_252417(a);
		LOC238 = 0;
		LOC238 = getmagic_252417(b);
		LOC234 = (LOC237 == LOC238);
		LA236: ;
		if (!LOC234) goto LA239;
		{
			NIM_BOOL LOC243;
			Tnode223809* LOC244;
			Tnode223809* LOC245;
			Tnode223809* LOC247;
			Tnode223809* LOC248;
			NU8 LOC249;
			LOC243 = 0;
			LOC244 = 0;
			LOC244 = HEX5BHEX5D_224244(a, ((NI) 1));
			LOC245 = 0;
			LOC245 = HEX5BHEX5D_224244(b, ((NI) 1));
			LOC243 = sametree_356462(LOC244, LOC245);
			if (!(LOC243)) goto LA246;
			LOC247 = 0;
			LOC247 = HEX5BHEX5D_224244(a, ((NI) 2));
			LOC248 = 0;
			LOC248 = HEX5BHEX5D_224244(b, ((NI) 2));
			LOC249 = 0;
			LOC249 = ple_357630(m, LOC247, LOC248);
			LOC243 = (LOC249 == ((NU8) 2));
			LA246: ;
			if (!LOC243) goto LA250;
			result = ((NU8) 2);
			goto BeforeRet;
		}
		goto LA241;
		LA250: ;
		{
			NIM_BOOL LOC253;
			Tnode223809* LOC254;
			Tnode223809* LOC255;
			Tnode223809* LOC257;
			Tnode223809* LOC258;
			NU8 LOC259;
			LOC253 = 0;
			LOC254 = 0;
			LOC254 = HEX5BHEX5D_224244(a, ((NI) 2));
			LOC255 = 0;
			LOC255 = HEX5BHEX5D_224244(b, ((NI) 2));
			LOC253 = sametree_356462(LOC254, LOC255);
			if (!(LOC253)) goto LA256;
			LOC257 = 0;
			LOC257 = HEX5BHEX5D_224244(a, ((NI) 1));
			LOC258 = 0;
			LOC258 = HEX5BHEX5D_224244(b, ((NI) 1));
			LOC259 = 0;
			LOC259 = ple_357630(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_252417(a);
		if (!(LOC264 == ((NU8) 47) || LOC264 == ((NU8) 54))) goto LA265;
		{
			NIM_BOOL LOC269;
			NIM_BOOL LOC270;
			Tnode223809* LOC271;
			Tnode223809* LOC272;
			NU8 LOC273;
			Tnode223809* LOC275;
			NU8 LOC276;
			Tnode223809* LOC278;
			NU8 LOC279;
			LOC269 = 0;
			LOC270 = 0;
			LOC271 = 0;
			LOC271 = one_355684();
			LOC272 = 0;
			LOC272 = HEX5BHEX5D_224244(a, ((NI) 2));
			LOC273 = 0;
			LOC273 = ple_357630(m, LOC271, LOC272);
			LOC270 = (LOC273 == ((NU8) 2));
			if (!(LOC270)) goto LA274;
			LOC275 = 0;
			LOC275 = zero_355675();
			LOC276 = 0;
			LOC276 = ple_357630(m, LOC275, b);
			LOC270 = (LOC276 == ((NU8) 2));
			LA274: ;
			LOC269 = LOC270;
			if (!(LOC269)) goto LA277;
			LOC278 = 0;
			LOC278 = HEX5BHEX5D_224244(a, ((NI) 1));
			LOC279 = 0;
			LOC279 = ple_357630(m, LOC278, b);
			LOC269 = (LOC279 == ((NU8) 2));
			LA277: ;
			if (!LOC269) goto LA280;
			result = ((NU8) 2);
			goto BeforeRet;
		}
		LA280: ;
		{
			NU8 LOC284;
			LOC284 = 0;
			LOC284 = getmagic_252417(b);
			if (!(LOC284 == ((NU8) 47) || LOC284 == ((NU8) 54))) goto LA285;
			{
				NIM_BOOL LOC289;
				Tnode223809* LOC290;
				Tnode223809* LOC291;
				Tnode223809* LOC293;
				Tnode223809* LOC294;
				NU8 LOC295;
				LOC289 = 0;
				LOC290 = 0;
				LOC290 = HEX5BHEX5D_224244(a, ((NI) 1));
				LOC291 = 0;
				LOC291 = HEX5BHEX5D_224244(b, ((NI) 1));
				LOC289 = sametree_356462(LOC290, LOC291);
				if (!(LOC289)) goto LA292;
				LOC293 = 0;
				LOC293 = HEX5BHEX5D_224244(b, ((NI) 2));
				LOC294 = 0;
				LOC294 = HEX5BHEX5D_224244(a, ((NI) 2));
				LOC295 = 0;
				LOC295 = ple_357630(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;
			Tnode223809* LOC302;
			NU8 LOC304;
			Tnode223809* LOC306;
			LOC300 = 0;
			LOC301 = 0;
			LOC302 = 0;
			LOC302 = HEX5BHEX5D_224244(a, ((NI) 2));
			LOC301 = isvalue_355095(LOC302);
			if (!(LOC301)) goto LA303;
			LOC304 = 0;
			LOC304 = getmagic_252417(b);
			LOC301 = (LOC304 == ((NU8) 44) || LOC304 == ((NU8) 51) || LOC304 == ((NU8) 49));
			LA303: ;
			LOC300 = LOC301;
			if (!(LOC300)) goto LA305;
			LOC306 = 0;
			LOC306 = HEX5BHEX5D_224244(b, ((NI) 2));
			LOC300 = isminusone_357600(LOC306);
			LA305: ;
			if (!LOC300) goto LA307;
			{
				NIM_BOOL LOC311;
				Tnode223809* LOC312;
				Tnode223809* LOC313;
				NU8 LOC314;
				Tnode223809* LOC316;
				Tnode223809* LOC317;
				LOC311 = 0;
				LOC312 = 0;
				LOC312 = HEX5BHEX5D_224244(a, ((NI) 2));
				LOC313 = 0;
				LOC313 = HEX5BHEX5D_224244(a, ((NI) 1));
				LOC314 = 0;
				LOC314 = ple_357630(m, LOC312, LOC313);
				LOC311 = (LOC314 == ((NU8) 2));
				if (!(LOC311)) goto LA315;
				LOC316 = 0;
				LOC316 = HEX5BHEX5D_224244(a, ((NI) 1));
				LOC317 = 0;
				LOC317 = HEX5BHEX5D_224244(b, ((NI) 1));
				LOC311 = sametree_356462(LOC316, LOC317);
				LA315: ;
				if (!LOC311) goto LA318;
				result = ((NU8) 2);
				goto BeforeRet;
			}
			LA318: ;
		}
		LA307: ;
	}
	LA265: ;
	{
		NU8 LOC322;
		LOC322 = 0;
		LOC322 = getmagic_252417(b);
		if (!(LOC322 == ((NU8) 61) || LOC322 == ((NU8) 63))) goto LA323;
		{
			NIM_BOOL LOC327;
			Tnode223809* LOC328;
			NU8 LOC329;
			Tnode223809* LOC331;
			NU8 LOC332;
			LOC327 = 0;
			LOC328 = 0;
			LOC328 = HEX5BHEX5D_224244(b, ((NI) 1));
			LOC329 = 0;
			LOC329 = ple_357630(m, a, LOC328);
			LOC327 = (LOC329 == ((NU8) 2));
			if (LOC327) goto LA330;
			LOC331 = 0;
			LOC331 = HEX5BHEX5D_224244(b, ((NI) 2));
			LOC332 = 0;
			LOC332 = ple_357630(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_252417(a);
		if (!(LOC337 == ((NU8) 60) || LOC337 == ((NU8) 62))) goto LA338;
		{
			NIM_BOOL LOC342;
			Tnode223809* LOC343;
			NU8 LOC344;
			Tnode223809* LOC346;
			NU8 LOC347;
			LOC342 = 0;
			LOC343 = 0;
			LOC343 = HEX5BHEX5D_224244(a, ((NI) 1));
			LOC344 = 0;
			LOC344 = ple_357630(m, LOC343, b);
			LOC342 = (LOC344 == ((NU8) 2));
			if (LOC342) goto LA345;
			LOC346 = 0;
			LOC346 = HEX5BHEX5D_224244(a, ((NI) 2));
			LOC347 = 0;
			LOC347 = ple_357630(m, LOC346, b);
			LOC342 = (LOC347 == ((NU8) 2));
			LA345: ;
			if (!LOC342) goto LA348;
			result = ((NU8) 2);
			goto BeforeRet;
		}
		LA348: ;
	}
	LA338: ;
	result = pleviamodel_357622(m, a, b);
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NU8, provele_358823)(Tnodeseq223803* m, Tnode223809* a, Tnode223809* b) {
	NU8 result;
	Tnode223809* x;
	Tnode223809* LOC1;
	Tnode223809* LOC2;
	Tnode223809* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = buildcall_355491(ople_355293, a, b);
	x = canon_355843(LOC1);
	LOC2 = 0;
	LOC2 = HEX5BHEX5D_224244(x, ((NI) 1));
	LOC3 = 0;
	LOC3 = HEX5BHEX5D_224244(x, ((NI) 2));
	result = ple_357630(m, LOC2, LOC3);
	{
		Tnode223809* y;
		Tnode223809* LOC8;
		Tnode223809* LOC9;
		Tnode223809* LOC10;
		Tnode223809* LOC11;
		Tnode223809* LOC12;
		NU8 LOC13;
		if (!(result == ((NU8) 0))) goto LA6;
		LOC8 = 0;
		LOC8 = one_355684();
		LOC9 = 0;
		LOC9 = buildcall_355491(opadd_355299, b, LOC8);
		LOC10 = 0;
		LOC10 = buildcall_355491(ople_355293, LOC9, a);
		y = canon_355843(LOC10);
		LOC11 = 0;
		LOC11 = HEX5BHEX5D_224244(y, ((NI) 1));
		LOC12 = 0;
		LOC12 = HEX5BHEX5D_224244(y, ((NI) 2));
		LOC13 = 0;
		LOC13 = ple_357630(m, LOC11, LOC12);
		result = HEX7E_357133(LOC13);
	}
	LA6: ;
	return result;
}

N_NIMCALL(Tnode223809*, lowbound_355702)(Tnode223809* x) {
	Tnode223809* result;
	NI64 LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = firstord_253004((*x).typ);
	result = newintnode_224607(((NU8) 6), LOC1);
	(*result).info = (*x).info;
	return result;
}

N_NIMCALL(Tnode223809*, highbound_355712)(Tnode223809* x) {
	Tnode223809* result;
	Ttype223847* typ;
	result = 0;
	typ = skiptypes_227167((*x).typ, IL64(211106232576256));
	{
		NI64 LOC5;
		if (!((65552 &(IL64(1)<<(((*typ).kind)&IL64(63))))!=0)) goto LA3;
		LOC5 = 0;
		LOC5 = lastord_253010(typ);
		result = newintnode_224607(((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_224098((*(*x).kindU.S4.sym).ast);
		result = newintnode_224607(((NU8) 6), ((NI64) ((NI)(LOC13 - ((NI) 1)))));
	}
	goto LA1;
	LA11: ;
	{
		Tnode223809* LOC15;
		Tnode223809* LOC16;
		LOC15 = 0;
		LOC15 = buildcall_355478(oplen_355303, x);
		LOC16 = 0;
		LOC16 = minusone_355693();
		result = buildcall_355491(opadd_355299, LOC15, LOC16);
	}
	LA1: ;
	(*result).info = (*x).info;
	return result;
}

N_NIMCALL(Tnode223809*, HEX2BHEX40_356160)(Tnode223809* a, NI64 b) {
	Tnode223809* result;
	Tnode223809* LOC1;
	result = 0;
	LOC1 = 0;
	{
		Tnode223809* LOC6;
		if (!!((b == IL64(0)))) goto LA4;
		LOC6 = 0;
		LOC6 = newintnode_224607(((NU8) 6), b);
		LOC1 = buildcall_355491(opadd_355299, a, LOC6);
	}
	goto LA2;
	LA4: ;
	{
		LOC1 = a;
	}
	LA2: ;
	result = canon_355843(LOC1);
	return result;
}

N_NIMCALL(NI64, simpleslice_357464)(Tnode223809* a, Tnode223809* b) {
	NI64 result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = sametree_356462(a, b);
		if (!LOC3) goto LA4;
		{
			NIM_BOOL LOC8;
			NU8 LOC9;
			Tnode223809* LOC11;
			Tnode223809* LOC14;
			LOC8 = 0;
			LOC9 = 0;
			LOC9 = getmagic_252417(a);
			LOC8 = (LOC9 == ((NU8) 44) || LOC9 == ((NU8) 51) || LOC9 == ((NU8) 49));
			if (!(LOC8)) goto LA10;
			LOC11 = 0;
			LOC11 = HEX5BHEX5D_224244(a, ((NI) 2));
			LOC8 = ((*LOC11).kind >= ((NU8) 5) && (*LOC11).kind <= ((NU8) 15));
			LA10: ;
			if (!LOC8) goto LA12;
			LOC14 = 0;
			LOC14 = HEX5BHEX5D_224244(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_355293), createmagic_229048(((NimStringDesc*) &TMP982), ((NU8) 70)));
	asgnRefNoCycle((void**) (&oplt_355294), createmagic_229048(((NimStringDesc*) &TMP983), ((NU8) 71)));
	asgnRefNoCycle((void**) (&opand_355295), createmagic_229048(((NimStringDesc*) &TMP984), ((NU8) 125)));
	asgnRefNoCycle((void**) (&opor_355296), createmagic_229048(((NimStringDesc*) &TMP985), ((NU8) 126)));
	asgnRefNoCycle((void**) (&opisnil_355297), createmagic_229048(((NimStringDesc*) &TMP986), ((NU8) 156)));
	asgnRefNoCycle((void**) (&opeq_355298), createmagic_229048(((NimStringDesc*) &TMP987), ((NU8) 69)));
	asgnRefNoCycle((void**) (&opadd_355299), createmagic_229048(((NimStringDesc*) &TMP988), ((NU8) 44)));
	asgnRefNoCycle((void**) (&opsub_355300), createmagic_229048(((NimStringDesc*) &TMP989), ((NU8) 45)));
	asgnRefNoCycle((void**) (&opmul_355301), createmagic_229048(((NimStringDesc*) &TMP990), ((NU8) 46)));
	asgnRefNoCycle((void**) (&opdiv_355302), createmagic_229048(((NimStringDesc*) &TMP991), ((NU8) 47)));
	asgnRefNoCycle((void**) (&oplen_355303), createmagic_229048(((NimStringDesc*) &TMP992), ((NU8) 35)));
}

NIM_EXTERNC N_NOINLINE(void, compiler_guardsDatInit000)(void) {
static TNimNode* TMP4265[2];
static TNimNode TMP980[3];
NTI358220.size = sizeof(TY358220);
NTI358220.kind = 18;
NTI358220.base = 0;
NTI358220.flags = 2;
TMP4265[0] = &TMP980[1];
TMP980[1].kind = 1;
TMP980[1].offset = offsetof(TY358220, Field0);
TMP980[1].typ = (&NTI223801);
TMP980[1].name = "Field0";
TMP4265[1] = &TMP980[2];
TMP980[2].kind = 1;
TMP980[2].offset = offsetof(TY358220, Field1);
TMP980[2].typ = (&NTI223801);
TMP980[2].name = "Field1";
TMP980[0].len = 2; TMP980[0].kind = 2; TMP980[0].sons = &TMP4265[0];
NTI358220.node = &TMP980[0];
NTI358219.size = sizeof(Treplacements358219*);
NTI358219.kind = 24;
NTI358219.base = (&NTI358220);
NTI358219.flags = 2;
NTI358219.marker = TMP4266;
}

