Files
csources-nimble/nimble-linux/@m..@s..@sNim@slib@ssystem.nim.c
T
2022-09-19 10:00:41 +03:00

9966 lines
387 KiB
C

/* Generated by Nim Compiler v1.7.1 */
#define NIM_INTBITS 64
#include "nimbase.h"
#include <sys/types.h>
#include <pthread.h>
#include <string.h>
#include <setjmp.h>
#include <sys/mman.h>
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <signal.h>
#include <dlfcn.h>
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef far
#undef powerpc
#undef unix
# define nimfr_(proc, file) \
TFrame FR_; \
FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_);
# define nimfrs_(proc, file, slots, length) \
struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \
FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_);
# define nimln_(n, file) \
FR_.line = n; FR_.filename = file;
# define nimfr_(proc, file) \
TFrame FR_; \
FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_);
# define nimfrs_(proc, file, slots, length) \
struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \
FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_);
# define nimln_(n, file) \
FR_.line = n; FR_.filename = file;
typedef struct Exception Exception;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
typedef struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw;
typedef struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w;
typedef struct tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ;
typedef struct tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ;
typedef struct tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ;
typedef struct tyObject_ArithmeticDefect__cT9c9bHlHSpA1QTnKbHjnIkA tyObject_ArithmeticDefect__cT9c9bHlHSpA1QTnKbHjnIkA;
typedef struct tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA;
typedef struct RootObj RootObj;
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
typedef struct TSafePoint TSafePoint;
typedef struct tyObject_RangeDefect__Rp9adJYTsbbIUzQ8fWxwgdA tyObject_RangeDefect__Rp9adJYTsbbIUzQ8fWxwgdA;
typedef struct tyObject_IndexDefect__n6tGEPHKkh7E1AP9bj30WrQ tyObject_IndexDefect__n6tGEPHKkh7E1AP9bj30WrQ;
typedef struct tyObject_ReraiseDefect__E0L0wGYS1gPD81VLstNO2g tyObject_ReraiseDefect__E0L0wGYS1gPD81VLstNO2g;
typedef struct tySequence__aNpJjaoUowCQc7fBn3wtDQ tySequence__aNpJjaoUowCQc7fBn3wtDQ;
typedef struct tyTuple__JfHvHzMrhKkWAUvQKe0i1A tyTuple__JfHvHzMrhKkWAUvQKe0i1A;
typedef struct tyObject_Env_systemdotnim_system___diB2NTuAIWY0FO9c5IUJRGg tyObject_Env_systemdotnim_system___diB2NTuAIWY0FO9c5IUJRGg;
typedef struct GcFrameHeader GcFrameHeader;
typedef struct tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ;
typedef struct tyObject_DivByZeroDefect__n3A4gjRrFZBuNnTYx1h9a8w tyObject_DivByZeroDefect__n3A4gjRrFZBuNnTYx1h9a8w;
typedef struct tyTuple__UV3llMMYFckfui8YMBuUZA tyTuple__UV3llMMYFckfui8YMBuUZA;
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
typedef struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw;
typedef struct tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw;
typedef struct tyObject_ObjectConversionDefect__EfCTmzvWG9bLXrm0uv9b9aSyA tyObject_ObjectConversionDefect__EfCTmzvWG9bLXrm0uv9b9aSyA;
typedef struct tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA;
typedef struct tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct tyObject_FieldDefect__GuXpRSBAcOXR7KZUhKKcgQ tyObject_FieldDefect__GuXpRSBAcOXR7KZUhKKcgQ;
typedef struct tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag;
typedef struct tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg;
typedef struct tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ;
typedef struct tySequence__kLwf9aGQcuduFr4gekUDa2w tySequence__kLwf9aGQcuduFr4gekUDa2w;
typedef struct tyTuple__gDWaEqPfhOauJWKMBm8bzg tyTuple__gDWaEqPfhOauJWKMBm8bzg;
typedef struct tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w;
typedef struct tySequence__oLpBKXzW3hF9aCVMo5EymfQ tySequence__oLpBKXzW3hF9aCVMo5EymfQ;
typedef struct tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q;
typedef struct tyObject_EOFError__KGSY1JdrNB7Xi8KDhXFhSg tyObject_EOFError__KGSY1JdrNB7Xi8KDhXFhSg;
typedef struct tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw;
typedef struct tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg;
typedef struct tySequence__4eRCaZmrYLLw2k30GPTiMw tySequence__4eRCaZmrYLLw2k30GPTiMw;
typedef struct tyObject_Table__Ji6x6JQ0gVMaFr8AIk18Ug tyObject_Table__Ji6x6JQ0gVMaFr8AIk18Ug;
typedef struct tySequence__SFipDZIkFtPcrLs0AGBBjQ tySequence__SFipDZIkFtPcrLs0AGBBjQ;
typedef struct tyTuple__BjxoJYFE5BulbiU15SM6nQ tyTuple__BjxoJYFE5BulbiU15SM6nQ;
typedef struct tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA;
typedef struct tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw;
typedef struct tyObject_OrderedTable__b2SAayIK9c6IoZnFt9cutJhQ tyObject_OrderedTable__b2SAayIK9c6IoZnFt9cutJhQ;
typedef struct tySequence__ZkxkVxJvB9aqet9cfVQmFTZw tySequence__ZkxkVxJvB9aqet9cfVQmFTZw;
typedef struct tyObject_PackageMetaData__EO1rPizWROcibmAlVzA30w tyObject_PackageMetaData__EO1rPizWROcibmAlVzA30w;
typedef struct tyObject_HashSet__aCgx9aJWOlGNhL9b41LIC4Wg tyObject_HashSet__aCgx9aJWOlGNhL9b41LIC4Wg;
typedef struct tySequence__72hOjuY2LKiowAwLCg19a9bA tySequence__72hOjuY2LKiowAwLCg19a9bA;
typedef struct tySequence__fhDBBEpmMT58akJuEEHXxQ tySequence__fhDBBEpmMT58akJuEEHXxQ;
typedef struct tyTuple__xNm5d5jOgkHsR74FkVoLcA tyTuple__xNm5d5jOgkHsR74FkVoLcA;
typedef struct tyObject_LockFileDep__PkUOL8vzIvRRmF9bLOPRlhg tyObject_LockFileDep__PkUOL8vzIvRRmF9bLOPRlhg;
typedef struct tyObject_Checksums__aZcxVfkZCt9bd29bg29aMe9aaA tyObject_Checksums__aZcxVfkZCt9bd29bg29aMe9aaA;
typedef struct tySequence__in1FW1qSci1jSFiiXbB78A tySequence__in1FW1qSci1jSFiiXbB78A;
typedef struct tyObject_HashSet__S9b3RqpNNDk9amlBpWXvpREw tyObject_HashSet__S9b3RqpNNDk9amlBpWXvpREw;
typedef struct tySequence__RBGWdFK21Jif565tKJm9bJw tySequence__RBGWdFK21Jif565tKJm9bJw;
typedef struct tySequence__jKfNJ7fLGpPDIVgcXny4Hw tySequence__jKfNJ7fLGpPDIVgcXny4Hw;
typedef struct tySequence__MFIxnpZlYyn0JQ9av9cKcm2Q tySequence__MFIxnpZlYyn0JQ9av9cKcm2Q;
typedef struct tySequence__HhwRVSXQRFCCEUo2zMKJVg tySequence__HhwRVSXQRFCCEUo2zMKJVg;
typedef struct tyTuple__LCURwohbLBusrL8hdCnvng tyTuple__LCURwohbLBusrL8hdCnvng;
typedef struct tyObject_NilAccessDefect__xZt69cPlcabgaxihmyHZ3oQ tyObject_NilAccessDefect__xZt69cPlcabgaxihmyHZ3oQ;
typedef struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw tyTuple__QeWl6B6ffS4pU6WWrtcrDw;
typedef struct tyTuple__8ZxhPt1NwfElsJs8zUSV9bg tyTuple__8ZxhPt1NwfElsJs8zUSV9bg;
typedef struct tyTuple__m8l9a4rYFktlUTIniXgnvog tyTuple__m8l9a4rYFktlUTIniXgnvog;
typedef struct tyTuple__r1NtfsBxxsYs1cV48P1DyA tyTuple__r1NtfsBxxsYs1cV48P1DyA;
typedef struct tyTuple__K5qjubrU2Nh2oUNdlLHbFg tyTuple__K5qjubrU2Nh2oUNdlLHbFg;
typedef N_NIMCALL_PTR(NIM_BOOL, tyProc__9axCnCRMUx32AHzFgBrzSMg) (Exception* e);
typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void);
typedef N_NIMCALL_PTR(void, tyProc__NFmM6mqUOVW3cJg4yvk8Fw) (Exception* e);
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
struct TNimType {
NI size;
NI align;
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
TNimType* base;
TNimNode* node;
void* finalizer;
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
};
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {
void* bottom;
};
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {
NI len;
NI cap;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
};
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SPr7N6UKfuF549bNPiUvSRw[256];
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {
tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
};
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {
tyArray__0aOLqZchNi8nWtMTi8ND8w link;
NI key;
NI upperBound;
NI level;
};
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
NI Field1;
};
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {
NI len;
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
};
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {
NI minLargeObj;
NI maxLargeObj;
tyArray__SPr7N6UKfuF549bNPiUvSRw freeSmallChunks;
NU32 flBitmap;
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
NI currMem;
NI maxMem;
NI freeMem;
NI occ;
NI lastSize;
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
NIM_BOOL locked;
NIM_BOOL blockChunkSizeIncrease;
NI nextChunkSize;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
};
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {
NI stackScans;
NI cycleCollections;
NI maxThreshold;
NI maxStackSize;
NI maxStackCells;
NI cycleTableSize;
NI64 maxPause;
};
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {
NI counter;
NI max;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
};
typedef long tyArray__xDUyu9aScDpt0JZLU6q9aEZQ[5];
struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw {
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* head;
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* tail;
pthread_mutex_t lock;
};
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {
tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
NI cycleThreshold;
NI zctThreshold;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
NI recGcLock;
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw toDispose;
NI gcThreadId;
};
typedef tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* tyUncheckedArray__qYl1ErvQvkPpq9bTvm2UvTg[1];
struct TGenericSeq {
NI len;
NI reserved;
};
struct NimStringDesc {
TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef long tyArray__TcvIiMAJvcwzNLsZkfnFnQ[25];
typedef NU tyArray__VqSA39cBDWnwnJySTumCdjw[8];
struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw {
tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* next;
NI key;
tyArray__VqSA39cBDWnwnJySTumCdjw bits;
};
struct tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w {
NI prevSize;
NI size;
};
struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ {
tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w Sup;
tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* next;
tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* prev;
tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ* freeList;
NI free;
NI acc;
NIM_ALIGN(16) NU8 data[SEQ_DECL_SIZE];
};
struct tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ {
tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ* next;
NI zeroField;
};
struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg {
tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w Sup;
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* next;
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* prev;
NIM_ALIGN(16) NU8 data[SEQ_DECL_SIZE];
};
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {
NI refcount;
TNimType* typ;
};
struct tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ {
NI Field0;
NI Field1;
};
typedef NI8 tyArray__mkmEeKAWtk2yS9bBb1lUWXA[256];
struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw {
NI size;
NI acc;
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* next;
};
typedef N_NIMCALL_PTR(void, Finalizer) (void* self);
typedef NU8 tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ;
typedef NU8 tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
typedef NI tyArray__OQPb4glXtXQGOV29cAX1uQg[4];
struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg {
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* next;
NU key;
tyArray__OQPb4glXtXQGOV29cAX1uQg bits;
};
typedef tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* tyUncheckedArray__xm0FYDlyTP1z2D1LZJL9bqQ[1];
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {
tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct RootObj {
TNimType* m_type;
};
struct Exception {
RootObj Sup;
Exception* parent;
NCSTRING name;
NimStringDesc* message;
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
Exception* up;
};
struct tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA {
Exception Sup;
};
struct tyObject_ArithmeticDefect__cT9c9bHlHSpA1QTnKbHjnIkA {
tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;
};
struct tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ {
tyObject_ArithmeticDefect__cT9c9bHlHSpA1QTnKbHjnIkA Sup;
};
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {
NCSTRING procname;
NI line;
NCSTRING filename;
};
struct TSafePoint {
TSafePoint* prev;
NI status;
jmp_buf context;
};
struct tyObject_RangeDefect__Rp9adJYTsbbIUzQ8fWxwgdA {
tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;
};
struct tyObject_IndexDefect__n6tGEPHKkh7E1AP9bj30WrQ {
tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;
};
struct tyObject_ReraiseDefect__E0L0wGYS1gPD81VLstNO2g {
tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;
};
typedef void* tyArray__Rrw59cMvNu8cDA9cQDh4v2oA[100];
struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg {
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* next;
NI dataLen;
tyArray__Rrw59cMvNu8cDA9cQDh4v2oA d;
};
typedef TFrame* tyArray__pFdcUVk36Xt0LD9bLg3YaIQ[128];
typedef NU8 tyEnum_ThreadType__H77H4LSuveAOpXr9bJRsUtw;
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (void* ClE_0);
void* ClE_0;
} tyProc__HzVCwACFYM9cx9aV62PdjtuA;
struct tyTuple__JfHvHzMrhKkWAUvQKe0i1A {
void* Field0;
tyObject_Env_systemdotnim_system___diB2NTuAIWY0FO9c5IUJRGg* Field1;
};
struct tyObject_Env_systemdotnim_system___diB2NTuAIWY0FO9c5IUJRGg {
RootObj Sup;
};
typedef N_NIMCALL_PTR(void, tyProc__W6IXMh2CA4X1rFYGjUb4yg) (NimStringDesc* msg);
struct tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ {
tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;
};
typedef N_NOCONV_PTR(void, tyProc__ZEo3s9cIqJYP74f7GMZM2FA) (int a);
typedef tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ tyArray__9aTRall1siQT9bXabu2aKXUg[3500];
struct tyObject_DivByZeroDefect__n3A4gjRrFZBuNnTYx1h9a8w {
tyObject_ArithmeticDefect__cT9c9bHlHSpA1QTnKbHjnIkA Sup;
};
struct tyTuple__UV3llMMYFckfui8YMBuUZA {
NimStringDesc* Field0;
NimStringDesc* Field1;
};
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA {
Exception Sup;
};
struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw {
tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;
};
struct tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw {
tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;
};
struct tyObject_ObjectConversionDefect__EfCTmzvWG9bLXrm0uv9b9aSyA {
tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;
};
struct tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA {
tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;
NI32 errorCode;
};
struct tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g {
tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;
};
struct tyObject_FieldDefect__GuXpRSBAcOXR7KZUhKKcgQ {
tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;
};
typedef NF tyArray__yp9a149boki9cCCWgfXI0Ip4A[23];
typedef NIM_CHAR tyArray__PGLh8drTnaWr3s1qUUSq2Q[500];
struct tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag {
tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw Sup;
};
struct tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg {
tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA Sup;
};
typedef struct {
N_NIMCALL_PTR(NimStringDesc*, ClP_0) (NimStringDesc* identity, void* ClE_0);
void* ClE_0;
} tyProc__oFHfEKFsiYTMAy9a42cSiKw;
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (NimStringDesc* hint, tyTuple__UV3llMMYFckfui8YMBuUZA* Result, void* ClE_0);
void* ClE_0;
} tyProc__lYMtBEH0vEMRzoDaCw5CJg;
struct tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ {
RootObj Sup;
tyProc__oFHfEKFsiYTMAy9a42cSiKw serverGetPskFunc;
tyProc__lYMtBEH0vEMRzoDaCw5CJg clientGetPskFunc;
};
struct tyTuple__gDWaEqPfhOauJWKMBm8bzg {
NimStringDesc* Field0;
tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w* Field1;
};
typedef NU8 tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg;
typedef NCSTRING tyUncheckedArray__nvS6J9clHMUMHfoZd8Ad2zg[1];
struct tyObject_EOFError__KGSY1JdrNB7Xi8KDhXFhSg {
tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw Sup;
};
struct tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg {
tySequence__4eRCaZmrYLLw2k30GPTiMw* data;
NI counter;
};
struct tyObject_Table__Ji6x6JQ0gVMaFr8AIk18Ug {
tySequence__SFipDZIkFtPcrLs0AGBBjQ* data;
NI counter;
};
struct tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA {
NimStringDesc* version;
};
struct tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw {
NimStringDesc* hashValue;
};
struct tyTuple__BjxoJYFE5BulbiU15SM6nQ {
NimStringDesc* Field0;
tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA Field1;
tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw Field2;
};
struct tyObject_OrderedTable__b2SAayIK9c6IoZnFt9cutJhQ {
tySequence__ZkxkVxJvB9aqet9cfVQmFTZw* data;
NI counter;
NI first;
NI last;
};
typedef NU8 tyEnum_DownloadMethod__IqkMKe5PGkzDG0ayIWPJ6w;
struct tyObject_HashSet__aCgx9aJWOlGNhL9b41LIC4Wg {
tySequence__72hOjuY2LKiowAwLCg19a9bA* data;
NI counter;
};
struct tyObject_PackageMetaData__EO1rPizWROcibmAlVzA30w {
NimStringDesc* url;
tyEnum_DownloadMethod__IqkMKe5PGkzDG0ayIWPJ6w downloadMethod;
tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw vcsRevision;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* files;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* binaries;
tyObject_HashSet__aCgx9aJWOlGNhL9b41LIC4Wg specialVersions;
};
struct tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw {
NimStringDesc* myPath;
NIM_BOOL isNimScript;
NIM_BOOL isMinimal;
NIM_BOOL isInstalled;
tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg nimbleTasks;
tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg postHooks;
tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg preHooks;
NimStringDesc* author;
NimStringDesc* description;
NimStringDesc* license;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* skipDirs;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* skipFiles;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* skipExt;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* installDirs;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* installFiles;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* installExt;
tySequence__kLwf9aGQcuduFr4gekUDa2w* requires;
tyObject_Table__Ji6x6JQ0gVMaFr8AIk18Ug bin;
NimStringDesc* binDir;
NimStringDesc* srcDir;
NimStringDesc* backend;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* foreignDeps;
tyTuple__BjxoJYFE5BulbiU15SM6nQ basicInfo;
tyObject_OrderedTable__b2SAayIK9c6IoZnFt9cutJhQ lockedDeps;
tyObject_PackageMetaData__EO1rPizWROcibmAlVzA30w metaData;
NIM_BOOL isLink;
};
struct tyTuple__xNm5d5jOgkHsR74FkVoLcA {
tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA Field0;
NimStringDesc* Field1;
};
struct tyObject_Checksums__aZcxVfkZCt9bd29bg29aMe9aaA {
tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw sha1;
};
typedef NU16 tySet_tyEnum_FilePermission__uTVeDpjCH6aWw9c74YkAskA;
typedef NU8 tyEnum_FilePermission__uTVeDpjCH6aWw9c74YkAskA;
struct tyObject_HashSet__S9b3RqpNNDk9amlBpWXvpREw {
tySequence__RBGWdFK21Jif565tKJm9bJw* data;
NI counter;
};
typedef NU8 tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg;
struct tyTuple__LCURwohbLBusrL8hdCnvng {
tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg Field0;
NimStringDesc* Field1;
};
struct tyObject_NilAccessDefect__xZt69cPlcabgaxihmyHZ3oQ {
tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;
};
typedef int tyArray__hxJupwhxfpZMyjfyvw0J9ag[1];
struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw {
NI Field0;
NimStringDesc* Field1;
};
struct tyTuple__8ZxhPt1NwfElsJs8zUSV9bg {
NI Field0;
NimStringDesc* Field1;
NimStringDesc* Field2;
};
struct tyObject_LockFileDep__PkUOL8vzIvRRmF9bLOPRlhg {
tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA version;
tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw vcsRevision;
NimStringDesc* url;
tyEnum_DownloadMethod__IqkMKe5PGkzDG0ayIWPJ6w downloadMethod;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* dependencies;
tyObject_Checksums__aZcxVfkZCt9bd29bg29aMe9aaA checksums;
};
struct tyTuple__m8l9a4rYFktlUTIniXgnvog {
NI Field0;
NI Field1;
NimStringDesc* Field2;
tyObject_LockFileDep__PkUOL8vzIvRRmF9bLOPRlhg Field3;
};
struct tyTuple__r1NtfsBxxsYs1cV48P1DyA {
NI Field0;
tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA Field1;
};
struct tyTuple__K5qjubrU2Nh2oUNdlLHbFg {
NI Field0;
tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw* Field1;
};
struct tySequence__uB9b75OUPRENsBAu4AnoePA {
TGenericSeq Sup;
tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];
};
struct tySequence__aNpJjaoUowCQc7fBn3wtDQ {
TGenericSeq Sup;
tyProc__HzVCwACFYM9cx9aV62PdjtuA data[SEQ_DECL_SIZE];
};
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ {
TGenericSeq Sup;
NimStringDesc* data[SEQ_DECL_SIZE];
};
struct tySequence__kLwf9aGQcuduFr4gekUDa2w {
TGenericSeq Sup;
tyTuple__gDWaEqPfhOauJWKMBm8bzg data[SEQ_DECL_SIZE];
};
struct tySequence__oLpBKXzW3hF9aCVMo5EymfQ {
TGenericSeq Sup;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* data[SEQ_DECL_SIZE];
};
struct tySequence__fhDBBEpmMT58akJuEEHXxQ {
TGenericSeq Sup;
tyTuple__xNm5d5jOgkHsR74FkVoLcA data[SEQ_DECL_SIZE];
};
struct tySequence__in1FW1qSci1jSFiiXbB78A {
TGenericSeq Sup;
tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA data[SEQ_DECL_SIZE];
};
struct tySequence__jKfNJ7fLGpPDIVgcXny4Hw {
TGenericSeq Sup;
tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw* data[SEQ_DECL_SIZE];
};
struct tySequence__MFIxnpZlYyn0JQ9av9cKcm2Q {
TGenericSeq Sup;
tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw data[SEQ_DECL_SIZE];
};
struct tySequence__HhwRVSXQRFCCEUo2zMKJVg {
TGenericSeq Sup;
tyTuple__LCURwohbLBusrL8hdCnvng data[SEQ_DECL_SIZE];
};
struct tySequence__4eRCaZmrYLLw2k30GPTiMw {
TGenericSeq Sup;
tyTuple__QeWl6B6ffS4pU6WWrtcrDw data[SEQ_DECL_SIZE];
};
struct tySequence__SFipDZIkFtPcrLs0AGBBjQ {
TGenericSeq Sup;
tyTuple__8ZxhPt1NwfElsJs8zUSV9bg data[SEQ_DECL_SIZE];
};
struct tySequence__ZkxkVxJvB9aqet9cfVQmFTZw {
TGenericSeq Sup;
tyTuple__m8l9a4rYFktlUTIniXgnvog data[SEQ_DECL_SIZE];
};
struct tySequence__72hOjuY2LKiowAwLCg19a9bA {
TGenericSeq Sup;
tyTuple__r1NtfsBxxsYs1cV48P1DyA data[SEQ_DECL_SIZE];
};
struct tySequence__RBGWdFK21Jif565tKJm9bJw {
TGenericSeq Sup;
tyTuple__K5qjubrU2Nh2oUNdlLHbFg data[SEQ_DECL_SIZE];
};
N_LIB_PRIVATE N_NIMCALL(void, initGC__system_2684)(void);
N_LIB_PRIVATE N_NIMCALL(void, init__system_5452)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, NI cap);
N_LIB_PRIVATE N_NOCONV(void*, alloc0Impl__system_1745)(NI size);
N_LIB_PRIVATE N_NIMCALL(void*, alloc0__system_5346)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* allocator, NI size);
N_LIB_PRIVATE N_NIMCALL(void*, alloc__system_5342)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* allocator, NI size);
N_LIB_PRIVATE N_NIMCALL(void*, rawAlloc__system_5126)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI requestedSize);
static N_INLINE(NI, roundup__system_4262)(NI x, NI v);
static N_INLINE(void, nimFrame)(TFrame* s);
N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_3527)(void);
N_LIB_PRIVATE N_NIMCALL(void, writeStackTrace__system_2295)(void);
N_LIB_PRIVATE N_NIMCALL(void, rawWriteStackTrace__system_3376)(NimStringDesc** s);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
static N_INLINE(void, copyMem__system_1727)(void* dest, void* source, NI size);
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewStringNoInit)(NI space);
N_LIB_PRIVATE N_NIMCALL(void*, newObjNoInit)(TNimType* typ, NI size);
N_LIB_PRIVATE N_NIMCALL(void*, rawNewObj__system_6301)(TNimType* typ, NI size, tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
N_LIB_PRIVATE N_NIMCALL(void, collectCT__system_5884)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
static N_INLINE(NI, getOccupiedMem__system_5386)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a);
static N_INLINE(void, popFrame)(void);
N_LIB_PRIVATE N_NIMCALL(void, collectCTBody__system_6508)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
N_LIB_PRIVATE N_NOINLINE(NI, stackSize__system_6030)(void);
N_LIB_PRIVATE N_NOINLINE(NI, stackSize__system_6026)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack);
static N_INLINE(NI, minuspercent___system_716)(NI x, NI y);
static N_INLINE(void, prepareForInteriorPointerChecking__system_5307)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a);
N_LIB_PRIVATE N_NIMCALL(NI, lowGauge__system_4665)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* n);
N_LIB_PRIVATE N_NIMCALL(NI, highGauge__system_4673)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* n);
CLANG_NO_SANITIZE_ADDRESS N_LIB_PRIVATE void markStackAndRegisters__system_6454(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
N_LIB_PRIVATE N_NIMCALL(void, setPosition__system_6042)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack, void* position);
N_LIB_PRIVATE N_NIMCALL(tyObject_GcStack__7fytPA5bBsob6See21YMRA*, getActiveStack__system_6048)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isActiveStack__system_6051)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack);
static N_INLINE(NI, pluspercent___system_696)(NI x, NI y);
static N_INLINE(NIM_BOOL, ltpercent___system_1005)(NI x, NI y);
static N_INLINE(void, gcMark__system_6445)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch, void* p);
N_LIB_PRIVATE N_NIMCALL(void*, interiorAllocatedPtr__system_5309)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, void* p);
static N_INLINE(NIM_BOOL, isAccessible__system_5028)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, void* p);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__system_4791)(tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* s, NI key);
N_LIB_PRIVATE N_NIMCALL(tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*, intSetGet__system_4752)(tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* t, NI key);
static N_INLINE(NI, pageIndex__system_4994)(void* p);
static N_INLINE(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*, pageAddr__system_5001)(void* p);
static N_INLINE(NIM_BOOL, chunkUnused__system_4918)(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c);
static N_INLINE(NIM_BOOL, isSmallChunk__system_4912)(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c);
static N_INLINE(NI, percentpercent___system_776)(NI x, NI y);
static N_INLINE(NIM_BOOL, lteqpercent___system_985)(NI x, NI y);
N_LIB_PRIVATE N_NIMCALL(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*, inRange__system_4693)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root, NI key);
static N_INLINE(void, incRef__system_5898)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(void, add__system_5426)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NOCONV(void*, allocImpl__system_1743)(NI size);
N_LIB_PRIVATE N_NOCONV(void, dealloc)(void* p);
N_LIB_PRIVATE N_NOCONV(void, deallocImpl__system_1747)(void* p);
N_LIB_PRIVATE N_NIMCALL(void, dealloc__system_5350)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* allocator, void* p);
N_LIB_PRIVATE N_NIMCALL(void, rawDealloc__system_5255)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, void* p);
static N_INLINE(void, listAdd__system_5143)(tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ** head, tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c);
static N_INLINE(void, listRemove__system_5196)(tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ** head, tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c);
N_LIB_PRIVATE N_NIMCALL(void, freeBigChunk__system_5061)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c);
N_LIB_PRIVATE N_NIMCALL(void, removeChunkFromMatrix__system_4477)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* b);
static N_INLINE(tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ, mappingInsert__system_4428)(NI r);
static N_INLINE(void, nimZeroMem)(void* p, NI size);
static N_INLINE(void, nimSetMem__systemZmemory_7)(void* a, int v, NI size);
static N_INLINE(NI, msbit__system_4385)(NU32 x);
static N_INLINE(void, clearBit__system_4403)(NI nr, NU32* dest);
N_LIB_PRIVATE N_NIMCALL(void, excl__system_4844)(tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* s, NI key);
static N_INLINE(NI, pageIndex__system_4987)(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c);
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, splitChunk2__system_5051)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c, NI size);
static N_INLINE(void, updatePrevSize__system_5046)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c, NI prevSize);
N_LIB_PRIVATE N_NIMCALL(void, incl__system_4822)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* s, NI key);
N_LIB_PRIVATE N_NIMCALL(tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*, intSetPut__system_4774)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* t, NI key);
N_LIB_PRIVATE N_NIMCALL(void*, llAlloc__system_4542)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size);
static N_INLINE(void*, osAllocPages__system_4282)(NI size);
N_LIB_PRIVATE N_NOINLINE(void, raiseOutOfMem__system_4257)(void);
static N_INLINE(void, rawWrite)(FILE* f, NCSTRING s);
static N_INLINE(NI, nimCStrLen)(NCSTRING a);
static N_INLINE(void, incCurrMem__system_4525)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI bytes);
static N_INLINE(void, zeroMem__system_1724)(void* p, NI size);
N_LIB_PRIVATE N_NIMCALL(void, addChunkToMatrix__system_4516)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* b);
static N_INLINE(void, setBit__system_4396)(NI nr, NU32* dest);
N_LIB_PRIVATE N_NIMCALL(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*, getBottom__system_4568)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a);
N_LIB_PRIVATE N_NIMCALL(void, del__system_4724)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t, NI x);
static N_INLINE(void, deallocAvlNode__system_4606)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* n);
N_LIB_PRIVATE N_NIMCALL(void, skew__system_4705)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t);
N_LIB_PRIVATE N_NIMCALL(void, split__system_4708)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t);
N_LIB_PRIVATE N_NIMCALL(void, freeHugeChunk__system_5101)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c);
static N_INLINE(void, decCurrMem__system_4532)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI bytes);
static N_INLINE(void, osDeallocPages__system_4288)(void* p, NI size);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, collectZCT__system_6412)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
N_LIB_PRIVATE N_NIMCALL(void, prepareDealloc__system_6072)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell);
static N_INLINE(void*, cellToUsr__system_5857)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell);
N_LIB_PRIVATE N_NIMCALL(void, forAllChildren__system_5888)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op);
N_LIB_PRIVATE N_NIMCALL(void, forAllChildrenAux__system_5894)(void* dest, TNimType* mt, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op);
N_LIB_PRIVATE N_NIMCALL(void, doOperation__system_5891)(void* p, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op);
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__system_5860)(void* usr);
static N_INLINE(void, decRef__system_5905)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(void, rtlAddZCT__system_5903)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NOINLINE(void, addZCT__system_5854)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NIMCALL(void, markS__system_6373)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NIMCALL(void, incl__system_5583)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell);
N_LIB_PRIVATE N_NIMCALL(tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*, cellSetPut__system_5529)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* t, NU key);
static N_INLINE(NI, nextTry__system_5486)(NI h, NI maxHash);
N_LIB_PRIVATE N_NIMCALL(void, cellSetEnlarge__system_5516)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* t);
N_LIB_PRIVATE N_NIMCALL(void, cellSetRawInsert__system_5499)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* t, tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data, tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* desc);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, containsOrIncl__system_5629)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell);
N_LIB_PRIVATE N_NIMCALL(tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*, cellSetGet__system_5490)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* t, NU key);
N_LIB_PRIVATE N_NIMCALL(void, forAllSlotsAux__system_6189)(void* dest, TNimNode* n, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op);
N_LIB_PRIVATE N_NIMCALL(TNimNode*, selectBranch__system_4211)(void* aa, TNimNode* n);
N_LIB_PRIVATE N_NIMCALL(NU, getDiscriminant__system_4191)(void* aa, TNimNode* n);
static N_INLINE(NI, starpercent___system_736)(NI x, NI y);
N_LIB_PRIVATE N_NIMCALL(NI, align__system_1624)(NI address, NI alignment);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
static N_INLINE(void, sysFatal__system_3933)(NimStringDesc* message) __attribute__((noreturn));
N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
static N_NIMCALL(void, Marker_tyRef__vU9aO9cTqOMn6CBzhV8rX7Sw)(void* p, NI op);
static N_NIMCALL(void, Marker_tySequence__uB9b75OUPRENsBAu4AnoePA)(void* p, NI op);
static N_NIMCALL(void, Marker_tyRef__r8GBEWywN07B3Rat3azS4Q)(void* p, NI op);
N_LIB_PRIVATE N_NOINLINE(void*, newObj)(TNimType* typ, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
N_LIB_PRIVATE N_NOINLINE(void*, newObjRC1)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
N_LIB_PRIVATE N_NIMCALL(void, rawWriteStackTrace__system_3382)(tySequence__uB9b75OUPRENsBAu4AnoePA** s);
N_LIB_PRIVATE N_NIMCALL(void, auxWriteStackTrace__system_3173)(TFrame* f, tySequence__uB9b75OUPRENsBAu4AnoePA** s);
N_LIB_PRIVATE N_NIMCALL(tySequence__uB9b75OUPRENsBAu4AnoePA*, newSeq__system_3195)(NI len);
N_LIB_PRIVATE N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isOnStack__system_5886)(void* p);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, setLengthSeqV2)(TGenericSeq* s, TNimType* typ, NI newLen);
static N_INLINE(NI, resize__system_6563)(NI old);
N_LIB_PRIVATE N_NIMCALL(void*, dataPointer__system_6553)(TGenericSeq* a, NI elemAlign);
N_LIB_PRIVATE N_NIMCALL(void*, dataPointer__system_6557)(TGenericSeq* a, NI elemAlign, NI elemSize, NI index);
N_LIB_PRIVATE N_NIMCALL(TNimType*, extGetCellType)(void* c);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
static N_INLINE(void, asgnRef)(void** dest, void* src);
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionAux__system_3421)(Exception* e);
static N_INLINE(void, pushCurrentException)(Exception* e);
N_LIB_PRIVATE N_NIMCALL(void, reportUnhandledError__system_3410)(Exception* e);
N_LIB_PRIVATE N_NIMCALL(void, reportUnhandledErrorAux__system_3393)(Exception* e);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___system_3244)(tySequence__uB9b75OUPRENsBAu4AnoePA* stackTraceEntries);
N_LIB_PRIVATE N_NIMCALL(void, add__system_2594)(NimStringDesc** x, NCSTRING y);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
static N_INLINE(void, addInt__stdZprivateZdigitsutils_189)(NimStringDesc** result, NI x);
N_LIB_PRIVATE N_NIMCALL(void, addInt__stdZprivateZdigitsutils_167)(NimStringDesc** result, NI64 x);
static N_INLINE(void, sysFatal__system_3682)(NimStringDesc* message) __attribute__((noreturn));
static N_NIMCALL(void, Marker_tyRef__dJLgQyYmAVYQWHiOSBBTyA)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___systemZdollars_11)(NI64 x);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, mnewString)(NI len);
static N_INLINE(void, sysFatal__system_3602)(NimStringDesc* message) __attribute__((noreturn));
static N_NIMCALL(void, Marker_tyRef__RJnHOb9cQV3neNC9cDkRgMyw)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___systemZdollars_8)(NI x);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___stdZassertions_23)(NimStringDesc** dest);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, cstrToNimstr)(NCSTRING str);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toNimStr)(NCSTRING str, NI len);
static N_INLINE(void, showErrorMessage2__system_3074)(NimStringDesc* data);
N_LIB_PRIVATE N_NIMCALL(void, showErrorMessage__system_3066)(NCSTRING data, NI length);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
static N_INLINE(void, popSafePoint)(void);
static N_INLINE(TFrame*, getFrame)(void);
static N_INLINE(void, setFrame)(TFrame* s);
static N_INLINE(void, popCurrentException)(void);
N_LIB_PRIVATE N_NIMCALL(void, reraiseException)(void);
static N_INLINE(void, sysFatal__system_3464)(NimStringDesc* message) __attribute__((noreturn));
static N_NIMCALL(void, Marker_tyRef__uG62cfJZ15c2siK3CKLmnQ)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(void, writeToStdErr__system_3061)(NCSTRING msg, NI length);
static N_INLINE(void, rawWriteString)(FILE* f, NCSTRING s, NI length);
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(void, collectCycles__system_6414)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
static N_INLINE(void, acquire__coreZlocks_71)(pthread_mutex_t* lock);
N_LIB_PRIVATE N_NIMCALL(void, nimGCunref)(void* p);
static N_INLINE(void, release__coreZlocks_73)(pthread_mutex_t* lock);
N_LIB_PRIVATE N_NIMCALL(void, cellsetReset__system_6187)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* s);
N_LIB_PRIVATE N_NIMCALL(void, deinit__system_5478)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* s);
N_LIB_PRIVATE N_NIMCALL(void, init__system_5458)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* s);
N_LIB_PRIVATE N_NIMCALL(void, markGlobals__system_6381)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
N_LIB_PRIVATE N_NIMCALL(void, sweep__system_6369)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
static N_INLINE(NIM_BOOL, isCell__system_4975)(void* p);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__system_5551)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell);
N_LIB_PRIVATE N_NIMCALL(void, freeCyclicCell__system_6365)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NIMCALL(NI, getOccupiedMem__system_1936)(void);
N_LIB_PRIVATE N_NIMCALL(void, unmarkStackAndRegisters__system_6500)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
static N_INLINE(void, addNewObjToZCT__system_6286)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* res, tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
N_LIB_PRIVATE N_NIMCALL(void, auxWriteStackTrace__system_3268)(TFrame* f, NimStringDesc** s);
N_LIB_PRIVATE N_NIMCALL(tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*, getSmallChunk__system_5105)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a);
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, getBigChunk__system_5082)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size);
static N_INLINE(void, mappingSearch__system_4410)(NI* r, NI* fl, NI* sl);
static N_INLINE(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, findSuitableBlock__system_4442)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI* fl, NI* sl);
static N_INLINE(NI, lsbit__system_4393)(NU32 x);
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, requestOsChunks__system_5005)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size);
static N_INLINE(void*, osTryAllocPages__system_4285)(NI size);
N_LIB_PRIVATE N_NIMCALL(void, addHeapLink__system_4609)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* p, NI size);
N_LIB_PRIVATE N_NIMCALL(void, splitChunk__system_5056)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c, NI size);
N_LIB_PRIVATE N_NIMCALL(void, removeChunkFromMatrix2__system_4507)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* b, NI fl, NI sl);
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, getHugeChunk__system_5097)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size);
N_LIB_PRIVATE N_NIMCALL(void, add__system_4715)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t, NI key, NI upperBound);
N_LIB_PRIVATE N_NIMCALL(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*, allocAvlNode__system_4584)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI key, NI upperBound);
N_LIB_PRIVATE N_NIMCALL(void, init__system_6184)(tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw* t);
static N_INLINE(NI, atomicInc__system_2306)(NI* memLoc, NI x);
static N_NIMCALL(void, Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA)(void* p, NI op);
static N_NIMCALL(void, Marker_tySequence__aNpJjaoUowCQc7fBn3wtDQ)(void* p, NI op);
static N_NIMCALL(void, TM__Q5wkpxktOdTGvlSRo9bzt9aw_36)(void);
N_LIB_PRIVATE N_NIMCALL(void, nimRegisterThreadLocalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc);
static N_NIMCALL(void, TM__Q5wkpxktOdTGvlSRo9bzt9aw_37)(void);
N_LIB_PRIVATE N_NOCONV(void, signalHandler)(int sign);
static N_INLINE(void, GC_disable__system_2549)(void);
static N_INLINE(void, GC_enable__system_2550)(void);
static N_NIMCALL(void, Marker_tyRef__S8DV6hfcgC9c0IiUsAoR29cQ)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(void, registerSignalHandler__system_3556)(void);
N_LIB_PRIVATE N_NOCONV(void, colonanonymous___system_5817)(void);
N_LIB_PRIVATE N_NIMCALL(NI, getRefcount)(void* p);
static N_INLINE(void, sysFatal__system_3956)(NimStringDesc* message) __attribute__((noreturn));
static N_NIMCALL(void, Marker_tyRef__obtqFYsgt5FfJISwpnmjwA)(void* p, NI op);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
static N_INLINE(NIM_BOOL, equalMem__system_1735)(void* a, void* b, NI size);
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size);
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
static N_NIMCALL(void, Marker_tyRef__Ie1m0dv1ZHg72IgPRr1cDw)(void* p, NI op);
static N_NIMCALL(void, Marker_tyRef__HMIVdYjdZYWskTmTQVo5BQ)(void* p, NI op);
static N_INLINE(void, sysFatal__system_3723)(NimStringDesc* message) __attribute__((noreturn));
static N_NIMCALL(void, Marker_tyRef__aKAxoL0lF8g0PZNf9a2PBpQ)(void* p, NI op);
static N_NIMCALL(void, Marker_tyRef__9clYsYwyjCqe2PFTuCI3Ubg)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
N_LIB_PRIVATE N_NIMCALL(void, genericAssignAux__system_7074)(void* dest, void* src, TNimType* mt, NIM_BOOL shallow);
N_LIB_PRIVATE N_NIMCALL(void*, nimNewSeqOfCap)(TNimType* typ, NI cap);
N_LIB_PRIVATE N_NIMCALL(void, genericAssignAux__system_7079)(void* dest, void* src, TNimNode* n, NIM_BOOL shallow);
N_LIB_PRIVATE N_NIMCALL(void, genericResetAux__system_7071)(void* dest, TNimNode* n);
N_LIB_PRIVATE N_NIMCALL(void, genericReset)(void* dest, TNimType* mt);
static N_INLINE(void, chckObjAsgn)(TNimType* a, TNimType* b);
static N_INLINE(void, sysFatal__system_3848)(NimStringDesc* message) __attribute__((noreturn));
static N_NIMCALL(void, Marker_tyRef__C0A9bPZSVeyr2BWpBf4Jxqw)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__system_8723)(NimStringDesc* s, NI first, NI last);
static N_INLINE(void, sysFatal__system_3649)(NimStringDesc* message) __attribute__((noreturn));
static N_NIMCALL(void, Marker_tyRef__hbLyubjZp2zbEfAXJ8yMLg)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, reprEnum)(NI e, TNimType* typ);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimBoolToStr)(NIM_BOOL x);
static N_INLINE(void, addEscapedChar__system_8472)(NimStringDesc** s, NIM_CHAR c);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__stdZassertions_56)(NimStringDesc* msg);
static N_NIMCALL(void, Marker_tyRef__8SzoIAgLw9ci2v0yafHj9b6Q)(void* p, NI op);
static N_NIMCALL(void, Marker_tyRef__HV2B9a6TW6WPpQna2mQFeQQ)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(void, procAddrError)(NCSTRING name);
static N_INLINE(void*, seqToPtr__nimble_11569)(tySequence__kLwf9aGQcuduFr4gekUDa2w* x);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___nimble_11590)(tyTuple__gDWaEqPfhOauJWKMBm8bzg x, tyTuple__gDWaEqPfhOauJWKMBm8bzg y);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___nimblepkgZversion_162)(tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w* range1, tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w* range2);
static N_INLINE(void*, seqToPtr__pureZjson_2100)(tySequence__oLpBKXzW3hF9aCVMo5EymfQ* x);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___pureZjson_2067)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* a, tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* b);
static N_INLINE(NI, cmpStrings)(NimStringDesc* a, NimStringDesc* b);
static N_NIMCALL(void, Marker_tyRef__LEclZrWX2FQAodlapxGITw)(void* p, NI op);
static N_NIMCALL(void, Marker_tyRef__gcKyg9bhR5vWTJg3cREMk0Q)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___nimblepkgZdevelopfile_12876)(tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw* p);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___nimblepkgZdevelopfile_13396)(tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg s);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___nimblepkgZpaths_57)(NimStringDesc* lhs, NimStringDesc* rhs);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___pureZjson_4518)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* node);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___nimble_3516)(tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg s);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___pureZhttpcore_2620)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ* x);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___nimble_4069)(tySequence__kLwf9aGQcuduFr4gekUDa2w* x);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___nimblepkgZversion_1054)(tyTuple__gDWaEqPfhOauJWKMBm8bzg dep);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___nimble_4602)(tyObject_Table__Ji6x6JQ0gVMaFr8AIk18Ug t);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___nimble_5098)(tyTuple__BjxoJYFE5BulbiU15SM6nQ x);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___nimble_5489)(tyObject_OrderedTable__b2SAayIK9c6IoZnFt9cutJhQ* t);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___nimble_5569)(tyObject_LockFileDep__PkUOL8vzIvRRmF9bLOPRlhg* x);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___nimble_5695)(tyObject_Checksums__aZcxVfkZCt9bd29bg29aMe9aaA x);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___nimble_5961)(tyObject_PackageMetaData__EO1rPizWROcibmAlVzA30w* x);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___nimble_6182)(tyObject_HashSet__aCgx9aJWOlGNhL9b41LIC4Wg s);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___pureZos_977)(tySet_tyEnum_FilePermission__uTVeDpjCH6aWw9c74YkAskA x);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___nimblepkgZversion_129)(tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA ver, tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA ver2);
static N_INLINE(void*, seqToPtr__nimble_11860)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ* x);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___nimble_15421)(tyTuple__xNm5d5jOgkHsR74FkVoLcA x, tyTuple__xNm5d5jOgkHsR74FkVoLcA y);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, lt___nimble_15431)(tyTuple__xNm5d5jOgkHsR74FkVoLcA x, tyTuple__xNm5d5jOgkHsR74FkVoLcA y);
N_LIB_PRIVATE N_NIMCALL(NI, cmp__nimblepkgZversion_154)(tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA a, tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA b);
N_LIB_PRIVATE N_NIMCALL(NI, cmp__system_1549)(NimStringDesc* x, NimStringDesc* y);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___nimblepkgZdevelopfile_31622)(tyObject_HashSet__S9b3RqpNNDk9amlBpWXvpREw s);
N_LIB_PRIVATE N_NIMCALL(void, setPosition__system_6045)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack, void* position);
static N_INLINE(void, sysFatal__system_3784)(NimStringDesc* message) __attribute__((noreturn));
static N_NIMCALL(void, Marker_tyRef__9aBnjTxiD7kSbLtZVd9aMijA)(void* p, NI op);
static N_INLINE(void, initStackBottomWith)(void* locals);
N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_2, "No stack traceback available\012", 29);
N_LIB_PRIVATE NIM_CONST tyArray__mkmEeKAWtk2yS9bBb1lUWXA fsLookupTable__system_4384 = {((NI8) -1),
((NI8) 0),
((NI8) 1),
((NI8) 1),
((NI8) 2),
((NI8) 2),
((NI8) 2),
((NI8) 2),
((NI8) 3),
((NI8) 3),
((NI8) 3),
((NI8) 3),
((NI8) 3),
((NI8) 3),
((NI8) 3),
((NI8) 3),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7)}
;
N_LIB_PRIVATE TNimType NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_;
N_LIB_PRIVATE TNimType NTIexception__XEycrCsme5C8CVWAYEcdBQ_;
N_LIB_PRIVATE TNimType NTIrefexception__vU9aO9cTqOMn6CBzhV8rX7Sw_;
N_LIB_PRIVATE TNimType NTIcstring__S9agCYBinaYZnGWcjTdxclg_;
N_LIB_PRIVATE TNimType NTIstring__77mFvmsOLKik79ci2hXkHEg_;
N_LIB_PRIVATE TNimType NTIstacktraceentry__oLyohQ7O2XOvGnflOss8EA_;
N_LIB_PRIVATE TNimType NTIint__rR5Bzr1D5krxoo1NcNyeMA_;
N_LIB_PRIVATE TNimType NTIseqLstacktraceentryT__uB9b75OUPRENsBAu4AnoePA_;
N_LIB_PRIVATE TNimType NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_;
N_LIB_PRIVATE TNimType NTIarithmeticdefect__cT9c9bHlHSpA1QTnKbHjnIkA_;
N_LIB_PRIVATE TNimType NTIoverflowdefect__9cxMi1BPLc3UKt9br86bGfGQ_;
N_LIB_PRIVATE TNimType NTIrefoverflowdefect__r8GBEWywN07B3Rat3azS4Q_;
static NIM_CONST tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA TM__Q5wkpxktOdTGvlSRo9bzt9aw_8 = {((NCSTRING) NIM_NIL), ((NI) -10), ((NCSTRING) NIM_NIL)}
;
static NIM_CONST tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA TM__Q5wkpxktOdTGvlSRo9bzt9aw_9 = {((NCSTRING) NIM_NIL), ((NI) -100), ((NCSTRING) NIM_NIL)}
;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_10, "[[reraised from:\012", 17);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_11, "]]\012", 3);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_12, "(", 1);
N_LIB_PRIVATE TNimType NTIrangedefect__Rp9adJYTsbbIUzQ8fWxwgdA_;
N_LIB_PRIVATE TNimType NTIrefrangedefect__dJLgQyYmAVYQWHiOSBBTyA_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_13, "value out of range: ", 20);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_14, " notin ", 7);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_15, " .. ", 4);
N_LIB_PRIVATE TNimType NTIindexdefect__n6tGEPHKkh7E1AP9bj30WrQ_;
N_LIB_PRIVATE TNimType NTIrefindexdefect__RJnHOb9cQV3neNC9cDkRgMyw_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_16, "index out of bounds, the container is empty", 43);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_17, "index ", 6);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_18, " not in 0 .. ", 13);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_19, "value out of range", 18);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_20, ", ", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_21, ")", 1);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_22, "\012", 1);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_23, "Error: unhandled exception: ", 28);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_24, " [", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_25, "]\012", 2);
N_LIB_PRIVATE TNimType NTIreraisedefect__E0L0wGYS1gPD81VLstNO2g_;
N_LIB_PRIVATE TNimType NTIrefreraisedefect__uG62cfJZ15c2siK3CKLmnQ_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_27, "no exception to reraise", 23);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_28, "over- or underflow", 18);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_31, "Traceback (most recent call last)\012", 34);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_32, " calls omitted) ...\012", 20);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_33, "Error: call depth limit reached in a debug build (", 50);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_34, " function calls). You can change it with -d:nimCallDepthLimit=<int> but really try to avoid deep recursions instead.\012", 117);
N_LIB_PRIVATE TNimType NTIprocLTLOclosure_gcsafeOT__HzVCwACFYM9cx9aV62PdjtuA_;
N_LIB_PRIVATE TNimType NTIpointer__vr5DoT1jILTGdRlYv1OYpw_;
N_LIB_PRIVATE TNimType NTIobject__diB2NTuAIWY0FO9c5IUJRGg_;
N_LIB_PRIVATE TNimType NTIrefobject__HsJiUUcO9cHBdUCi0HwkSTA_;
N_LIB_PRIVATE TNimType NTIseqLprocLTLOclosure_gcsafeOTT__aNpJjaoUowCQc7fBn3wtDQ_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_38, "SIGINT: Interrupted by Ctrl-C.\012", 31);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_39, "SIGSEGV: Illegal storage access. (Attempt to read from nil\?)\012", 61);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_40, "SIGABRT: Abnormal termination.\012", 31);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_41, "SIGFPE: Arithmetic error.\012", 26);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_42, "SIGILL: Illegal operation.\012", 27);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_43, "SIGBUS: Illegal storage access. (Attempt to read from nil\?)\012", 60);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_44, "SIGPIPE: Pipe closed.\012", 22);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_45, "unknown signal\012", 15);
N_LIB_PRIVATE TNimType NTIassertiondefect__PtYxPmY5X0dorfvxAFbJpQ_;
N_LIB_PRIVATE TNimType NTIrefassertiondefect__S8DV6hfcgC9c0IiUsAoR29cQ_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_46, "API usage error: GC_enable called but GC is already enabled", 59);
N_LIB_PRIVATE TNimType NTIint5452__Aav8dQoMlCFnZRxA0IhTHQ_;
N_LIB_PRIVATE TNimType NTIbool__VaVACK0bpYmqIQ0mKcHfQQ_;
N_LIB_PRIVATE TNimType NTIcint__nlCscttRCss70IBTyuBqnA_;
N_LIB_PRIVATE TNimType NTIdivbyzerodefect__n3A4gjRrFZBuNnTYx1h9a8w_;
N_LIB_PRIVATE TNimType NTIrefdivbyzerodefect__obtqFYsgt5FfJISwpnmjwA_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_47, "division by zero", 16);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_48, "index out of bounds: ", 21);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_49, "..", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_50, " notin 0..", 10);
N_LIB_PRIVATE TNimType NTIcatchableerror__qrLSDoe2oBoAqNtJ9badtnA_;
N_LIB_PRIVATE TNimType NTIvalueerror__yoNlBGx0D2tRizIdhQuENw_;
N_LIB_PRIVATE TNimType NTIrefvalueerror__Ie1m0dv1ZHg72IgPRr1cDw_;
N_LIB_PRIVATE TNimType NTIioerror__iLZrPn9anoh9ad1MmO0RczFw_;
N_LIB_PRIVATE TNimType NTIrefioerror__HMIVdYjdZYWskTmTQVo5BQ_;
N_LIB_PRIVATE TNimType NTIobjectconversiondefect__EfCTmzvWG9bLXrm0uv9b9aSyA_;
N_LIB_PRIVATE TNimType NTIrefobjectconversiondefect__aKAxoL0lF8g0PZNf9a2PBpQ_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_56, "invalid object conversion", 25);
N_LIB_PRIVATE TNimType NTIfloat__w9bl9a1ul9ctRJWiMl9cNnIMvg_;
N_LIB_PRIVATE TNimType NTIoserror__BeJgrOdDsczOwEWOZbRfKA_;
N_LIB_PRIVATE TNimType NTIint5150__sVg18TP9cLifHyygRe9cro9aA_;
N_LIB_PRIVATE TNimType NTIrefoserror__9clYsYwyjCqe2PFTuCI3Ubg_;
N_LIB_PRIVATE TNimType NTIchar__nmiMWKVIe46vacnhAFrQvw_;
N_LIB_PRIVATE TNimType NTIobjectassignmentdefect__6toVe0IizlEwN9bORXEdX3g_;
N_LIB_PRIVATE TNimType NTIrefobjectassignmentdefect__C0A9bPZSVeyr2BWpBf4Jxqw_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_59, "invalid object assignment", 25);
extern TNimType NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_;
N_LIB_PRIVATE TNimType NTIfielddefect__GuXpRSBAcOXR7KZUhKKcgQ_;
N_LIB_PRIVATE TNimType NTIreffielddefect__hbLyubjZp2zbEfAXJ8yMLg_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_60, "\'", 1);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_61, " (invalid data!)", 16);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_62, "true", 4);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_63, "false", 5);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_64, "\"", 1);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_65, "\\a", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_66, "\\b", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_67, "\\t", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_68, "\\n", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_69, "\\v", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_70, "\\f", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_71, "\\r", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_72, "\\e", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_73, "\\\\", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_74, "\\\'", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_75, "\\\"", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_76, "\\x", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_77, "0123456789ABCDEF", 16);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_79, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim(261, 11) `len(a) == L` the length of the string changed while iterating over it", 134);
N_LIB_PRIVATE NIM_CONST tyArray__yp9a149boki9cCCWgfXI0Ip4A powtens__system_6821 = {1.0,
10.0,
100.0,
1000.0,
10000.0,
100000.0,
1000000.0,
10000000.0,
100000000.0,
1000000000.0,
10000000000.0,
100000000000.0,
1000000000000.0,
10000000000000.0,
100000000000000.0,
1000000000000000.0,
10000000000000000.0,
1e+17,
1e+18,
1e+19,
1e+20,
1e+21,
1e+22}
;
N_LIB_PRIVATE TNimType NTIkeyerror__t7nhKLvXTQS9cS8ByJU9bIag_;
N_LIB_PRIVATE TNimType NTIrefkeyerror__8SzoIAgLw9ci2v0yafHj9b6Q_;
N_LIB_PRIVATE TNimType NTIlibraryerror__x1muge9crz9aAVqWWUrEL9aXg_;
N_LIB_PRIVATE TNimType NTIreflibraryerror__HV2B9a6TW6WPpQna2mQFeQQ_;
extern TNimType NTIsslcontextextrainternal__t2PQ49cw9cyPD5BKolxzFbTw_;
extern TNimType NTIsslcontextextrainternal58objecttype__22zILeNTc8ClX7DrPZ3XOQ_;
N_LIB_PRIVATE TNimType NTIint__hLlQjbV9bLNq5PFxYcqacsA_;
N_LIB_PRIVATE TNimType NTIint__xHTZrq9aYs6boc9bCba0JbpQ_;
extern TNimType NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_88, " not in ", 8);
N_LIB_PRIVATE TNimType NTIuncheckedarrayLcstringT__nvS6J9clHMUMHfoZd8Ad2zg_;
N_LIB_PRIVATE TNimType NTIcstringarray__vCtGdhfQAmBlRFXaVFklkQ_;
N_LIB_PRIVATE TNimType NTIeoferror__KGSY1JdrNB7Xi8KDhXFhSg_;
N_LIB_PRIVATE TNimType NTIrefeoferror__LEclZrWX2FQAodlapxGITw_;
N_LIB_PRIVATE TNimType NTIrefcatchableerror__gcKyg9bhR5vWTJg3cREMk0Q_;
extern TNimType NTIrefpackageinfo__Vn9czOTOfQFb3bzsN39b49caw_;
extern TNimType NTIseqLtupleLver58version_tag58stringTT__fhDBBEpmMT58akJuEEHXxQ_;
extern TNimType NTIdownloadmethod__IqkMKe5PGkzDG0ayIWPJ6w_;
extern TNimType NTIseqLversionT__in1FW1qSci1jSFiiXbB78A_;
extern TNimType NTIfilepermission__uTVeDpjCH6aWw9c74YkAskA_;
extern TNimType NTIseqLrefpackageinfoT__jKfNJ7fLGpPDIVgcXny4Hw_;
extern TNimType NTIseqLpackageinfoT__MFIxnpZlYyn0JQ9av9cKcm2Q_;
extern TNimType NTIseqLtupleLkind58pathcomponent_path58stringTT__HhwRVSXQRFCCEUo2zMKJVg_;
N_LIB_PRIVATE TNimType NTInilaccessdefect__xZt69cPlcabgaxihmyHZ3oQ_;
N_LIB_PRIVATE TNimType NTIrefnilaccessdefect__9aBnjTxiD7kSbLtZVd9aMijA_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_98, "cannot dispatch; dispatcher is nil", 34);
N_LIB_PRIVATE NI nim_program_result;
N_LIB_PRIVATE tyProc__9axCnCRMUx32AHzFgBrzSMg globalRaiseHook__system_2577;
N_LIB_PRIVATE NIM_THREADVAR tyProc__9axCnCRMUx32AHzFgBrzSMg localRaiseHook__system_2580;
N_LIB_PRIVATE tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ outOfMemHook__system_2582;
N_LIB_PRIVATE tyProc__NFmM6mqUOVW3cJg4yvk8Fw unhandledExceptionHook__system_2585;
N_LIB_PRIVATE TNimType strDesc__system_2698 = {((NI) 8), 0, ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 28), 2, NIM_NIL, NIM_NIL, NIM_NIL, NIM_NIL, NIM_NIL}
;
N_LIB_PRIVATE NIM_THREADVAR tyEnum_ThreadType__H77H4LSuveAOpXr9bJRsUtw threadType__system_2813;
N_LIB_PRIVATE NIM_THREADVAR tySequence__aNpJjaoUowCQc7fBn3wtDQ* threadDestructionHandlers__system_2830;
N_LIB_PRIVATE NIM_THREADVAR NI threadId__system_3040;
N_LIB_PRIVATE tyProc__W6IXMh2CA4X1rFYGjUb4yg errorMessageWriter__system_3058;
N_LIB_PRIVATE NIM_THREADVAR TFrame* framePtr__system_3094;
N_LIB_PRIVATE NIM_THREADVAR TSafePoint* excHandler__system_3095;
N_LIB_PRIVATE NIM_THREADVAR Exception* currException__system_3096;
N_LIB_PRIVATE NIM_THREADVAR GcFrameHeader* gcFramePtr__system_3097;
N_LIB_PRIVATE tyProc__W6IXMh2CA4X1rFYGjUb4yg onUnhandledException__system_3392;
N_LIB_PRIVATE NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__system_5793;
N_LIB_PRIVATE tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg sharedHeap__system_5815;
N_LIB_PRIVATE pthread_mutex_t heapLock__system_5816;
N_LIB_PRIVATE NI globalMarkersLen;
N_LIB_PRIVATE tyArray__9aTRall1siQT9bXabu2aKXUg globalMarkers;
N_LIB_PRIVATE NI threadLocalMarkersLen;
N_LIB_PRIVATE tyArray__9aTRall1siQT9bXabu2aKXUg threadLocalMarkers;
N_LIB_PRIVATE NI gHeapidGenerator__system_6126;
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) {
void* T1_;
T1_ = (void*)0;
T1_ = memcpy(dest, source, ((size_t) (size)));
}
static N_INLINE(void, copyMem__system_1727)(void* dest, void* source, NI size) {
nimCopyMem(dest, source, size);
}
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
{
if (!!((src == ((NimStringDesc*) NIM_NIL)))) goto LA3_;
copyMem__system_1727(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
(*dest).Sup.len += (*src).Sup.len;
}
LA3_: ;
}
static N_INLINE(void, popFrame)(void) {
framePtr__system_3094 = (*framePtr__system_3094).prev;
}
static N_INLINE(NI, getOccupiedMem__system_5386)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a) {
NI result;
nimfr_("getOccupiedMem", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (NI)0;
nimln_(1009, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (*a).occ;
popFrame();
return result;
}
static N_INLINE(NI, minuspercent___system_716)(NI x, NI y) {
NI result;
nimfr_("-%", "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
result = (NI)0;
nimln_(414, "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
nimln_(418, "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y))))));
popFrame();
return result;
}
N_LIB_PRIVATE N_NOINLINE(NI, stackSize__system_6026)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack) {
NI result;
void* volatile pos;
nimfr_("stackSize", "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
result = (NI)0;
nimln_(221, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
pos = ((void*) ((&pos)));
nimln_(223, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
{
if (!!((pos == NIM_NIL))) goto LA3_;
nimln_(227, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
result = minuspercent___system_716(((NI) (ptrdiff_t) ((*stack).bottom)), ((NI) (ptrdiff_t) (pos)));
}
goto LA1_;
LA3_: ;
{
nimln_(229, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
result = ((NI) 0);
}
LA1_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NOINLINE(NI, stackSize__system_6030)(void) {
NI result;
nimfr_("stackSize", "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
result = (NI)0;
nimln_(232, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
result = ((NI) 0);
{
tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack;
NI T2_;
stack = (tyObject_GcStack__7fytPA5bBsob6See21YMRA*)0;
nimln_(233, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
stack = (&gch__system_5793.stack);
nimln_(234, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
T2_ = (NI)0;
T2_ = stackSize__system_6026(stack);
result = (NI)(result + T2_);
}
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, lowGauge__system_4665)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* n) {
NI result;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* it;
nimfr_("lowGauge", "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
result = (NI)0;
nimln_(15, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
it = n;
{
nimln_(16, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
while (1) {
if (!!(((*it).link[(((NI) 0))- 0] == it))) goto LA2;
nimln_(17, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
result = (*it).key;
nimln_(18, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
it = (*it).link[(((NI) 0))- 0];
} LA2: ;
}
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, highGauge__system_4673)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* n) {
NI result;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* it;
nimfr_("highGauge", "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
result = (NI)0;
nimln_(21, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
result = ((NI) -1);
nimln_(22, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
it = n;
{
nimln_(23, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
while (1) {
if (!!(((*it).link[(((NI) 0))- 0] == it))) goto LA2;
nimln_(24, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
result = (*it).upperBound;
nimln_(25, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
it = (*it).link[(((NI) 1))- 0];
} LA2: ;
}
popFrame();
return result;
}
static N_INLINE(void, prepareForInteriorPointerChecking__system_5307)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a) {
nimfr_("prepareForInteriorPointerChecking", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(894, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).minLargeObj = lowGauge__system_4665((*a).root);
nimln_(895, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).maxLargeObj = highGauge__system_4673((*a).root);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, setPosition__system_6042)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack, void* position) {
nimfr_("setPosition", "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(tyObject_GcStack__7fytPA5bBsob6See21YMRA*, getActiveStack__system_6048)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
tyObject_GcStack__7fytPA5bBsob6See21YMRA* result;
nimfr_("getActiveStack", "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
result = (tyObject_GcStack__7fytPA5bBsob6See21YMRA*)0;
nimln_(254, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
result = (&(*gch).stack);
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isActiveStack__system_6051)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack) {
NIM_BOOL result;
nimfr_("isActiveStack", "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
result = (NIM_BOOL)0;
nimln_(255, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
result = NIM_TRUE;
popFrame();
return result;
}
static N_INLINE(NI, pluspercent___system_696)(NI x, NI y) {
NI result;
nimfr_("+%", "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
result = (NI)0;
nimln_(403, "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
nimln_(407, "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y))))));
popFrame();
return result;
}
static N_INLINE(NIM_BOOL, ltpercent___system_1005)(NI x, NI y) {
NIM_BOOL result;
nimfr_("<%", "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = (NIM_BOOL)0;
nimln_(186, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
nimln_(188, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y))));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*, intSetGet__system_4752)(tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* t, NI key) {
tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* result;
tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* it;
nimfr_("intSetGet", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{ result = (tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*)0;
nimln_(323, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
it = (*t).data[((NI)(key & ((NI) 255)))- 0];
{
nimln_(324, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
while (1) {
if (!!((it == ((tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*) NIM_NIL)))) goto LA2;
nimln_(325, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!((*it).key == key)) goto LA5_;
result = it;
goto BeforeRet_;
}
LA5_: ;
nimln_(326, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
it = (*it).next;
} LA2: ;
}
nimln_(327, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = ((tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*) NIM_NIL);
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__system_4791)(tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* s, NI key) {
NIM_BOOL result;
tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* t;
nimfr_("contains", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (NIM_BOOL)0;
nimln_(338, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
t = intSetGet__system_4752(s, (NI)((NI64)(key) >> (NU64)(((NI) 9))));
nimln_(339, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NI u;
if (!!((t == ((tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*) NIM_NIL)))) goto LA3_;
nimln_(340, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
u = (NI)(key & ((NI) 511));
nimln_(341, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = !(((NU)((*t).bits[((NI)((NI64)(u) >> (NU64)(((NI) 6))))- 0] & (NU)((NU64)(((NU) 1)) << (NU64)((NI)(u & ((NI) 63))))) == ((NU) 0)));
}
goto LA1_;
LA3_: ;
{
nimln_(343, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = NIM_FALSE;
}
LA1_: ;
popFrame();
return result;
}
static N_INLINE(NI, pageIndex__system_4994)(void* p) {
NI result;
nimfr_("pageIndex", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (NI)0;
nimln_(414, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (NI)((NI64)(((NI) (ptrdiff_t) (p))) >> (NU64)(((NI) 12)));
popFrame();
return result;
}
static N_INLINE(NIM_BOOL, isAccessible__system_5028)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, void* p) {
NIM_BOOL result;
NI T1_;
nimfr_("isAccessible", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (NIM_BOOL)0;
nimln_(492, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T1_ = (NI)0;
T1_ = pageIndex__system_4994(p);
result = contains__system_4791((&(*a).chunkStarts), T1_);
popFrame();
return result;
}
static N_INLINE(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*, pageAddr__system_5001)(void* p) {
tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* result;
nimfr_("pageAddr", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*)0;
nimln_(417, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = ((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*) ((NI)(((NI) (ptrdiff_t) (p)) & ((NI) -4096))));
popFrame();
return result;
}
static N_INLINE(NIM_BOOL, chunkUnused__system_4918)(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c) {
NIM_BOOL result;
nimfr_("chunkUnused", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (NIM_BOOL)0;
nimln_(379, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = ((NI)((*c).prevSize & ((NI) 1)) == ((NI) 0));
popFrame();
return result;
}
static N_INLINE(NIM_BOOL, isSmallChunk__system_4912)(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c) {
NIM_BOOL result;
nimfr_("isSmallChunk", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (NIM_BOOL)0;
nimln_(376, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = ((*c).size <= ((NI) 4032));
popFrame();
return result;
}
static N_INLINE(NI, percentpercent___system_776)(NI x, NI y) {
NI result;
nimfr_("%%", "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
result = (NI)0;
nimln_(447, "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
nimln_(451, "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
result = ((NI) ((NU)((NU64)(((NU) (x))) % (NU64)(((NU) (y))))));
popFrame();
return result;
}
static N_INLINE(NIM_BOOL, lteqpercent___system_985)(NI x, NI y) {
NIM_BOOL result;
nimfr_("<=%", "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = (NIM_BOOL)0;
nimln_(177, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
nimln_(179, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = ((NU64)(((NU) (x))) <= (NU64)(((NU) (y))));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*, inRange__system_4693)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root, NI key) {
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* result;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* it;
nimfr_("inRange", "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
{ result = (tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*)0;
nimln_(34, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
it = root;
{
nimln_(35, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
while (1) {
NIM_BOOL T9_;
if (!!(((*it).link[(((NI) 0))- 0] == it))) goto LA2;
nimln_(36, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
{
NIM_BOOL T5_;
T5_ = (NIM_BOOL)0;
T5_ = lteqpercent___system_985((*it).key, key);
if (!(T5_)) goto LA6_;
T5_ = ltpercent___system_1005(key, (*it).upperBound);
LA6_: ;
if (!T5_) goto LA7_;
result = it;
goto BeforeRet_;
}
LA7_: ;
nimln_(37, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
T9_ = (NIM_BOOL)0;
T9_ = ltpercent___system_1005((*it).key, key);
it = (*it).link[(T9_)- 0];
} LA2: ;
}
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void*, interiorAllocatedPtr__system_5309)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, void* p) {
void* result;
nimfr_("interiorAllocatedPtr", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (void*)0;
nimln_(898, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T3_;
tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c;
T3_ = (NIM_BOOL)0;
T3_ = isAccessible__system_5028(a, p);
if (!T3_) goto LA4_;
nimln_(899, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
c = pageAddr__system_5001(p);
nimln_(900, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T8_;
T8_ = (NIM_BOOL)0;
T8_ = chunkUnused__system_4918(c);
if (!!(T8_)) goto LA9_;
nimln_(901, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T13_;
tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c_2;
NI offset;
T13_ = (NIM_BOOL)0;
T13_ = isSmallChunk__system_4912(c);
if (!T13_) goto LA14_;
nimln_(902, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
c_2 = ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) (c));
nimln_(903, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
offset = minuspercent___system_716((NI)(((NI) (ptrdiff_t) (p)) & ((NI) 4095)), ((NI) 64));
nimln_(905, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T18_;
tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ* d;
NI T21_;
NI T22_;
NI T23_;
T18_ = (NIM_BOOL)0;
T18_ = ltpercent___system_1005(offset, (*c_2).acc);
if (!T18_) goto LA19_;
nimln_(908, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(909, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(908, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T21_ = (NI)0;
T21_ = pluspercent___system_696(((NI) (ptrdiff_t) ((*c_2).data)), offset);
nimln_(909, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T22_ = (NI)0;
T22_ = percentpercent___system_776(offset, (*c_2).Sup.size);
T23_ = (NI)0;
T23_ = minuspercent___system_716(T21_, T22_);
d = ((tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ*) (T23_));
nimln_(910, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T26_;
T26_ = (NIM_BOOL)0;
T26_ = ltpercent___system_1005(((NI) 1), (*d).zeroField);
if (!T26_) goto LA27_;
nimln_(911, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = ((void*) (d));
}
LA27_: ;
}
LA19_: ;
}
goto LA11_;
LA14_: ;
{
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c_3;
NU8* d_2;
nimln_(914, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
c_3 = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (c));
nimln_(915, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
d_2 = (*c_3).data;
nimln_(916, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T32_;
T32_ = (NIM_BOOL)0;
T32_ = (((void*) (d_2)) <= p);
if (!(T32_)) goto LA33_;
T32_ = ltpercent___system_1005(((NI) 1), (*((tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ*) (d_2))).zeroField);
LA33_: ;
if (!T32_) goto LA34_;
nimln_(917, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = ((void*) (d_2));
}
LA34_: ;
}
LA11_: ;
}
LA9_: ;
}
goto LA1_;
LA4_: ;
{
NI q;
nimln_(920, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
q = ((NI) (ptrdiff_t) (p));
nimln_(921, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T39_;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* avlNode;
T39_ = (NIM_BOOL)0;
T39_ = lteqpercent___system_985((*a).minLargeObj, q);
if (!(T39_)) goto LA40_;
T39_ = lteqpercent___system_985(q, (*a).maxLargeObj);
LA40_: ;
if (!T39_) goto LA41_;
nimln_(924, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
avlNode = inRange__system_4693((*a).root, q);
nimln_(925, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
void* k;
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c_4;
tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* T47_;
if (!!((avlNode == ((tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*) NIM_NIL)))) goto LA45_;
nimln_(926, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
k = ((void*) ((*avlNode).key));
nimln_(927, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T47_ = (tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*)0;
T47_ = pageAddr__system_5001(k);
c_4 = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (T47_));
nimln_(929, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T50_;
T50_ = (NIM_BOOL)0;
T50_ = ltpercent___system_1005(((NI) 1), (*((tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ*) (k))).zeroField);
if (!T50_) goto LA51_;
nimln_(930, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = k;
}
LA51_: ;
}
LA45_: ;
}
LA41_: ;
}
LA1_: ;
popFrame();
return result;
}
static N_INLINE(void, incRef__system_5898)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
nimfr_("incRef", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
nimln_(231, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
(*c).refcount = pluspercent___system_696((*c).refcount, ((NI) 8));
popFrame();
}
N_LIB_PRIVATE N_NOCONV(void*, allocImpl__system_1743)(NI size) {
void* result;
result = (void*)0;
result = alloc__system_5342((&gch__system_5793.region), size);
return result;
}
static N_INLINE(void, listAdd__system_5143)(tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ** head, tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c) {
nimfr_("listAdd", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(504, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c).next = (*head);
nimln_(505, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!!(((*head) == ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) NIM_NIL)))) goto LA3_;
nimln_(507, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*(*head)).prev = c;
}
LA3_: ;
nimln_(508, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*head) = c;
popFrame();
}
static N_INLINE(void, listRemove__system_5196)(tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ** head, tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c) {
nimfr_("listRemove", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(512, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!(c == (*head))) goto LA3_;
nimln_(513, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*head) = (*c).next;
nimln_(515, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!!(((*head) == ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) NIM_NIL)))) goto LA7_;
(*(*head)).prev = ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) NIM_NIL);
}
LA7_: ;
}
goto LA1_;
LA3_: ;
{
nimln_(518, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*(*c).prev).next = (*c).next;
nimln_(519, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!!(((*c).next == ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) NIM_NIL)))) goto LA12_;
(*(*c).next).prev = (*c).prev;
}
LA12_: ;
}
LA1_: ;
nimln_(520, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c).next = ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) NIM_NIL);
nimln_(521, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c).prev = ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) NIM_NIL);
popFrame();
}
static N_INLINE(void, nimSetMem__systemZmemory_7)(void* a, int v, NI size) {
void* T1_;
T1_ = (void*)0;
T1_ = memset(a, v, ((size_t) (size)));
}
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
nimSetMem__systemZmemory_7(p, ((int) 0), size);
}
static N_INLINE(NI, msbit__system_4385)(NU32 x) {
NI result;
NI a;
nimfr_("msbit", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (NI)0;
nimln_(146, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!((NU32)(x) <= (NU32)(((NU32) 65535)))) goto LA3_;
nimln_(147, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!((NU32)(x) <= (NU32)(((NU32) 255)))) goto LA7_;
a = ((NI) 0);
}
goto LA5_;
LA7_: ;
{
a = ((NI) 8);
}
LA5_: ;
}
goto LA1_;
LA3_: ;
{
nimln_(149, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!((NU32)(x) <= (NU32)(((NU32) 16777215)))) goto LA13_;
a = ((NI) 16);
}
goto LA11_;
LA13_: ;
{
a = ((NI) 24);
}
LA11_: ;
}
LA1_: ;
nimln_(150, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (NI)(((NI) (fsLookupTable__system_4384[((NU32)((NU32)(x) >> (NU64)(a)))- 0])) + a);
popFrame();
return result;
}
static N_INLINE(tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ, mappingInsert__system_4428)(NI r) {
tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ result;
nimfr_("mappingInsert", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimZeroMem((void*)(&result), sizeof(tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ));
nimln_(179, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result.Field0 = msbit__system_4385(((NU32) (r)));
nimln_(180, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result.Field1 = (NI)((NI)((NI64)(r) >> (NU64)((NI)(result.Field0 - ((NI) 5)))) - ((NI) 32));
nimln_(181, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result.Field0 -= ((NI) 6);
popFrame();
return result;
}
static N_INLINE(void, clearBit__system_4403)(NI nr, NU32* dest) {
nimfr_("clearBit", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(159, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*dest) = (NU32)((*dest) & (NU32)((NU32) ~((NU32)((NU64)(((NU32) 1)) << (NU64)((NI)(nr & ((NI) 31)))))));
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, removeChunkFromMatrix__system_4477)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* b) {
tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ T1_;
NI fl;
NI sl;
nimfr_("removeChunkFromMatrix", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(204, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T1_ = mappingInsert__system_4428((*b).Sup.size);
fl = T1_.Field0;
sl = T1_.Field1;
nimln_(205, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!!(((*b).next == ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL)))) goto LA4_;
(*(*b).next).prev = (*b).prev;
}
LA4_: ;
nimln_(206, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!!(((*b).prev == ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL)))) goto LA8_;
(*(*b).prev).next = (*b).next;
}
LA8_: ;
nimln_(207, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!((*a).matrix[(fl)- 0][(sl)- 0] == b)) goto LA12_;
nimln_(208, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).matrix[(fl)- 0][(sl)- 0] = (*b).next;
nimln_(209, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!((*a).matrix[(fl)- 0][(sl)- 0] == ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL))) goto LA16_;
nimln_(198, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
clearBit__system_4403(sl, (&(*a).slBitmap[(fl)- 0]));
nimln_(210, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
nimln_(199, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
if (!((*a).slBitmap[(fl)- 0] == ((NU32) 0))) goto LA20_;
nimln_(201, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
clearBit__system_4403(fl, (&(*a).flBitmap));
}
LA20_: ;
}
LA16_: ;
}
LA12_: ;
nimln_(211, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*b).prev = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL);
nimln_(212, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*b).next = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, excl__system_4844)(tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* s, NI key) {
tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* t;
nimfr_("excl", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(351, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
t = intSetGet__system_4752((&(*s)), (NI)((NI64)(key) >> (NU64)(((NI) 9))));
nimln_(352, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NI u;
if (!!((t == ((tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*) NIM_NIL)))) goto LA3_;
nimln_(353, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
u = (NI)(key & ((NI) 511));
nimln_(354, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(355, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*t).bits[((NI)((NI64)(u) >> (NU64)(((NI) 6))))- 0] = (NU)((*t).bits[((NI)((NI64)(u) >> (NU64)(((NI) 6))))- 0] & (NU)((NU64) ~((NU)((NU64)(((NU) 1)) << (NU64)((NI)(u & ((NI) 63)))))));
}
LA3_: ;
popFrame();
}
static N_INLINE(NI, pageIndex__system_4987)(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c) {
NI result;
nimfr_("pageIndex", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (NI)0;
nimln_(411, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (NI)((NI64)(((NI) (ptrdiff_t) (c))) >> (NU64)(((NI) 12)));
popFrame();
return result;
}
static N_INLINE(void, updatePrevSize__system_5046)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c, NI prevSize) {
tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* ri;
NI T1_;
nimfr_("updatePrevSize", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(525, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T1_ = (NI)0;
T1_ = pluspercent___system_696(((NI) (ptrdiff_t) (c)), (*c).Sup.size);
ri = ((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*) (T1_));
nimln_(527, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T4_;
T4_ = (NIM_BOOL)0;
T4_ = isAccessible__system_5028((&(*a)), ((void*) (ri)));
if (!T4_) goto LA5_;
nimln_(528, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*ri).prevSize = (NI)(prevSize | (NI)((*ri).prevSize & ((NI) 1)));
}
LA5_: ;
popFrame();
}
static N_INLINE(NI, nimCStrLen)(NCSTRING a) {
NI result;
size_t T1_;
result = (NI)0;
T1_ = (size_t)0;
T1_ = strlen(a);
result = ((NI) (T1_));
return result;
}
static N_INLINE(void, rawWrite)(FILE* f, NCSTRING s) {
int T1_;
int T2_;
T1_ = (int)0;
T1_ = fwrite(((void*) (s)), ((size_t) 1), ((size_t) ((s ? nimCStrLen(s) : 0))), f);
(void)(T1_);
T2_ = (int)0;
T2_ = fflush(f);
(void)(T2_);
}
N_LIB_PRIVATE N_NOINLINE(void, raiseOutOfMem__system_4257)(void) {
nimfr_("raiseOutOfMem", "/home/yyoncho/Sources/nim/Nim/lib/system/mmdisp.nim");
nimln_(47, "/home/yyoncho/Sources/nim/Nim/lib/system/mmdisp.nim");
{
if (!!((outOfMemHook__system_2582 == NIM_NIL))) goto LA3_;
outOfMemHook__system_2582();
}
LA3_: ;
nimln_(48, "/home/yyoncho/Sources/nim/Nim/lib/system/mmdisp.nim");
rawWrite(stderr, "out of memory\012");
nimln_(49, "/home/yyoncho/Sources/nim/Nim/lib/system/mmdisp.nim");
exit(((NI) 1));
popFrame();
}
static N_INLINE(void*, osAllocPages__system_4282)(NI size) {
void* result;
nimfr_("osAllocPages", "/home/yyoncho/Sources/nim/Nim/lib/system/osalloc.nim");
result = (void*)0;
nimln_(142, "/home/yyoncho/Sources/nim/Nim/lib/system/osalloc.nim");
result = mmap(NIM_NIL, ((size_t) (size)), ((int) 3), ((int) 34), ((int) -1), ((NI) 0));
nimln_(144, "/home/yyoncho/Sources/nim/Nim/lib/system/osalloc.nim");
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = (result == NIM_NIL);
if (T3_) goto LA4_;
T3_ = (result == ((void*) (((NI) -1))));
LA4_: ;
if (!T3_) goto LA5_;
nimln_(145, "/home/yyoncho/Sources/nim/Nim/lib/system/osalloc.nim");
raiseOutOfMem__system_4257();
}
LA5_: ;
popFrame();
return result;
}
static N_INLINE(void, incCurrMem__system_4525)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI bytes) {
nimfr_("incCurrMem", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(234, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).currMem += bytes;
popFrame();
}
static N_INLINE(void, zeroMem__system_1724)(void* p, NI size) {
nimZeroMem(p, size);
}
N_LIB_PRIVATE N_NIMCALL(void*, llAlloc__system_4542)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size) {
void* result;
nimfr_("llAlloc", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (void*)0;
nimln_(249, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T3_;
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* old;
void* T7_;
T3_ = (NIM_BOOL)0;
T3_ = ((*a).llmem == ((tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw*) NIM_NIL));
if (T3_) goto LA4_;
T3_ = ((*(*a).llmem).size < size);
LA4_: ;
if (!T3_) goto LA5_;
nimln_(254, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
old = (*a).llmem;
nimln_(255, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T7_ = (void*)0;
T7_ = osAllocPages__system_4282(((NI) 4096));
(*a).llmem = ((tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw*) (T7_));
nimln_(258, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
incCurrMem__system_4525(a, ((NI) 4096));
nimln_(259, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*(*a).llmem).size = ((NI) 4072);
nimln_(260, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*(*a).llmem).acc = ((NI) 24);
nimln_(261, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*(*a).llmem).next = old;
}
LA5_: ;
nimln_(262, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = ((void*) ((NI)(((NI) (ptrdiff_t) ((*a).llmem)) + (*(*a).llmem).acc)));
nimln_(263, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*(*a).llmem).size -= size;
nimln_(264, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*(*a).llmem).acc += size;
nimln_(265, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
zeroMem__system_1724(result, ((NI) (size)));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*, intSetPut__system_4774)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* t, NI key) {
tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* result;
nimfr_("intSetPut", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*)0;
nimln_(330, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = intSetGet__system_4752((&(*t)), key);
nimln_(331, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
void* T5_;
if (!(result == ((tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*) NIM_NIL))) goto LA3_;
nimln_(332, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T5_ = (void*)0;
T5_ = llAlloc__system_4542(a, ((NI) 80));
result = ((tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*) (T5_));
nimln_(333, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).next = (*t).data[((NI)(key & ((NI) 255)))- 0];
nimln_(334, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*t).data[((NI)(key & ((NI) 255)))- 0] = result;
nimln_(335, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).key = key;
}
LA3_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, incl__system_4822)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* s, NI key) {
tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* t;
NI u;
nimfr_("incl", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(346, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
t = intSetPut__system_4774(a, s, (NI)((NI64)(key) >> (NU64)(((NI) 9))));
nimln_(347, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
u = (NI)(key & ((NI) 511));
nimln_(348, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*t).bits[((NI)((NI64)(u) >> (NU64)(((NI) 6))))- 0] = (NU)((*t).bits[((NI)((NI64)(u) >> (NU64)(((NI) 6))))- 0] | (NU)((NU64)(((NU) 1)) << (NU64)((NI)(u & ((NI) 63)))));
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, splitChunk2__system_5051)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c, NI size) {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* result;
NI T1_;
NI T2_;
nimfr_("splitChunk2", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*)0;
nimln_(531, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T1_ = (NI)0;
T1_ = pluspercent___system_696(((NI) (ptrdiff_t) (c)), size);
result = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (T1_));
nimln_(532, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).Sup.size = (NI)((*c).Sup.size - size);
nimln_(536, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).next = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL);
nimln_(537, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).prev = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL);
nimln_(539, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).Sup.prevSize = size;
nimln_(543, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
updatePrevSize__system_5046(a, c, (*result).Sup.size);
nimln_(544, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c).Sup.size = size;
nimln_(545, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T2_ = (NI)0;
T2_ = pageIndex__system_4987((*((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w**) (&(result)))));
incl__system_4822(a, (&(*a).chunkStarts), T2_);
popFrame();
return result;
}
static N_INLINE(void, setBit__system_4396)(NI nr, NU32* dest) {
nimfr_("setBit", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(156, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*dest) = (NU32)((*dest) | (NU32)((NU64)(((NU32) 1)) << (NU64)((NI)(nr & ((NI) 31)))));
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addChunkToMatrix__system_4516)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* b) {
tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ T1_;
NI fl;
NI sl;
nimfr_("addChunkToMatrix", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(224, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T1_ = mappingInsert__system_4428((*b).Sup.size);
fl = T1_.Field0;
sl = T1_.Field1;
nimln_(225, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*b).prev = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL);
nimln_(226, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*b).next = (*a).matrix[(fl)- 0][(sl)- 0];
nimln_(227, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!!(((*a).matrix[(fl)- 0][(sl)- 0] == ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL)))) goto LA4_;
nimln_(228, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*(*a).matrix[(fl)- 0][(sl)- 0]).prev = b;
}
LA4_: ;
nimln_(229, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).matrix[(fl)- 0][(sl)- 0] = b;
nimln_(230, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
setBit__system_4396(sl, (&(*a).slBitmap[(fl)- 0]));
nimln_(231, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
setBit__system_4396(fl, (&(*a).flBitmap));
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, freeBigChunk__system_5061)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c) {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c_2;
NI prevSize;
tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* ri;
NI T24_;
nimfr_("freeBigChunk", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(552, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
c_2 = c;
nimln_(554, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).freeMem += (*c_2).Sup.size;
nimln_(555, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c_2).Sup.prevSize = (NI)((*c_2).Sup.prevSize & ((NI) -2));
nimln_(557, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
prevSize = (*c_2).Sup.prevSize;
nimln_(558, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* le;
NI T5_;
if (!!((prevSize == ((NI) 0)))) goto LA3_;
nimln_(559, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T5_ = (NI)0;
T5_ = minuspercent___system_716(((NI) (ptrdiff_t) (c_2)), prevSize);
le = ((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*) (T5_));
nimln_(561, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T8_;
T8_ = (NIM_BOOL)0;
T8_ = isAccessible__system_5028((&(*a)), ((void*) (le)));
if (!(T8_)) goto LA9_;
T8_ = chunkUnused__system_4918(le);
LA9_: ;
if (!T8_) goto LA10_;
nimln_(563, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T14_;
NIM_BOOL T15_;
NI T19_;
T14_ = (NIM_BOOL)0;
T15_ = (NIM_BOOL)0;
T15_ = isSmallChunk__system_4912(le);
T14_ = !(T15_);
if (!(T14_)) goto LA16_;
T14_ = ((*le).size < ((NI) 1056964608));
LA16_: ;
if (!T14_) goto LA17_;
nimln_(564, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
removeChunkFromMatrix__system_4477(a, ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (le)));
nimln_(565, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*le).size += (*c_2).Sup.size;
nimln_(566, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T19_ = (NI)0;
T19_ = pageIndex__system_4987((*((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w**) (&(c_2)))));
excl__system_4844((&(*a).chunkStarts), T19_);
nimln_(567, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
c_2 = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (le));
nimln_(568, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* rest;
if (!(((NI) 1056964608) < (*c_2).Sup.size)) goto LA22_;
nimln_(569, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
rest = splitChunk2__system_5051(a, c_2, ((NI) 1056964608));
nimln_(570, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
addChunkToMatrix__system_4516(a, c_2);
nimln_(571, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
c_2 = rest;
}
LA22_: ;
}
LA17_: ;
}
LA10_: ;
}
LA3_: ;
nimln_(573, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T24_ = (NI)0;
T24_ = pluspercent___system_696(((NI) (ptrdiff_t) (c_2)), (*c_2).Sup.size);
ri = ((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*) (T24_));
nimln_(575, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T27_;
T27_ = (NIM_BOOL)0;
T27_ = isAccessible__system_5028((&(*a)), ((void*) (ri)));
if (!(T27_)) goto LA28_;
T27_ = chunkUnused__system_4918(ri);
LA28_: ;
if (!T27_) goto LA29_;
nimln_(577, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T33_;
NIM_BOOL T34_;
NI T38_;
T33_ = (NIM_BOOL)0;
T34_ = (NIM_BOOL)0;
T34_ = isSmallChunk__system_4912(ri);
T33_ = !(T34_);
if (!(T33_)) goto LA35_;
T33_ = ((*c_2).Sup.size < ((NI) 1056964608));
LA35_: ;
if (!T33_) goto LA36_;
nimln_(578, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
removeChunkFromMatrix__system_4477(a, ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (ri)));
nimln_(579, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c_2).Sup.size += (*ri).size;
nimln_(580, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T38_ = (NI)0;
T38_ = pageIndex__system_4987(ri);
excl__system_4844((&(*a).chunkStarts), T38_);
nimln_(581, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* rest_2;
if (!(((NI) 1056964608) < (*c_2).Sup.size)) goto LA41_;
nimln_(582, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
rest_2 = splitChunk2__system_5051(a, c_2, ((NI) 1056964608));
nimln_(583, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
addChunkToMatrix__system_4516(a, rest_2);
}
LA41_: ;
}
LA36_: ;
}
LA29_: ;
nimln_(584, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
addChunkToMatrix__system_4516(a, c_2);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*, getBottom__system_4568)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a) {
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* result;
nimfr_("getBottom", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*)0;
nimln_(268, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (&(*a).bottomData);
nimln_(269, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!((*result).link[(((NI) 0))- 0] == ((tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*) NIM_NIL))) goto LA3_;
nimln_(270, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).link[(((NI) 0))- 0] = result;
nimln_(271, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).link[(((NI) 1))- 0] = result;
}
LA3_: ;
popFrame();
return result;
}
static N_INLINE(void, deallocAvlNode__system_4606)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* n) {
nimfr_("deallocAvlNode", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(294, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*n).link[(((NI) 0))- 0] = (*a).freeAvlNodes;
nimln_(295, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).freeAvlNodes = n;
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, skew__system_4705)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t) {
nimfr_("skew", "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
nimln_(40, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
{
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* temp;
if (!((*(*(*t)).link[(((NI) 0))- 0]).level == (*(*t)).level)) goto LA3_;
nimln_(41, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
temp = (*t);
nimln_(42, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*t) = (*(*t)).link[(((NI) 0))- 0];
nimln_(43, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*temp).link[(((NI) 0))- 0] = (*(*t)).link[(((NI) 1))- 0];
nimln_(44, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*(*t)).link[(((NI) 1))- 0] = temp;
}
LA3_: ;
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, split__system_4708)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t) {
nimfr_("split", "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
nimln_(47, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
{
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* temp;
if (!((*(*(*(*t)).link[(((NI) 1))- 0]).link[(((NI) 1))- 0]).level == (*(*t)).level)) goto LA3_;
nimln_(48, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
temp = (*t);
nimln_(49, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*t) = (*(*t)).link[(((NI) 1))- 0];
nimln_(50, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*temp).link[(((NI) 1))- 0] = (*(*t)).link[(((NI) 0))- 0];
nimln_(51, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*(*t)).link[(((NI) 0))- 0] = temp;
nimln_(52, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*(*t)).level += ((NI) 1);
}
LA3_: ;
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, del__system_4724)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t, NI x) {
nimfr_("del", "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
{ nimln_(74, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
{
if (!((*(*t)).link[(((NI) 0))- 0] == (*t))) goto LA3_;
goto BeforeRet_;
}
LA3_: ;
nimln_(75, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*a).last = (*t);
nimln_(76, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
{
NIM_BOOL T7_;
T7_ = (NIM_BOOL)0;
T7_ = ltpercent___system_1005(x, (*(*t)).key);
if (!T7_) goto LA8_;
nimln_(77, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
del__system_4724(a, &(*(*t)).link[(((NI) 0))- 0], x);
}
goto LA5_;
LA8_: ;
{
nimln_(79, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*a).deleted = (*t);
nimln_(80, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
del__system_4724(a, &(*(*t)).link[(((NI) 1))- 0], x);
}
LA5_: ;
nimln_(81, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
{
NIM_BOOL T13_;
NIM_BOOL T14_;
T13_ = (NIM_BOOL)0;
T14_ = (NIM_BOOL)0;
T14_ = ((*t) == (*a).last);
if (!(T14_)) goto LA15_;
T14_ = !(((*(*a).deleted).link[(((NI) 0))- 0] == (*a).deleted));
LA15_: ;
T13_ = T14_;
if (!(T13_)) goto LA16_;
T13_ = (x == (*(*a).deleted).key);
LA16_: ;
if (!T13_) goto LA17_;
nimln_(82, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*(*a).deleted).key = (*(*t)).key;
nimln_(83, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*(*a).deleted).upperBound = (*(*t)).upperBound;
nimln_(84, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*a).deleted = getBottom__system_4568(a);
nimln_(85, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*t) = (*(*t)).link[(((NI) 1))- 0];
nimln_(86, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
deallocAvlNode__system_4606(a, (*a).last);
}
goto LA11_;
LA17_: ;
{
NIM_BOOL T20_;
nimln_(87, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
T20_ = (NIM_BOOL)0;
T20_ = ((*(*(*t)).link[(((NI) 0))- 0]).level < (NI)((*(*t)).level - ((NI) 1)));
if (T20_) goto LA21_;
nimln_(88, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
T20_ = ((*(*(*t)).link[(((NI) 1))- 0]).level < (NI)((*(*t)).level - ((NI) 1)));
LA21_: ;
if (!T20_) goto LA22_;
nimln_(89, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*(*t)).level -= ((NI) 1);
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
{
if (!((*(*t)).level < (*(*(*t)).link[(((NI) 1))- 0]).level)) goto LA26_;
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*(*(*t)).link[(((NI) 1))- 0]).level = (*(*t)).level;
}
LA26_: ;
nimln_(92, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
skew__system_4705(t);
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
skew__system_4705(&(*(*t)).link[(((NI) 1))- 0]);
nimln_(94, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
skew__system_4705(&(*(*(*t)).link[(((NI) 1))- 0]).link[(((NI) 1))- 0]);
nimln_(95, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
split__system_4708(t);
nimln_(96, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
split__system_4708(&(*(*t)).link[(((NI) 1))- 0]);
}
goto LA11_;
LA22_: ;
LA11_: ;
}BeforeRet_: ;
popFrame();
}
static N_INLINE(void, decCurrMem__system_4532)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI bytes) {
nimfr_("decCurrMem", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(237, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).maxMem = (((*a).maxMem >= (*a).currMem) ? (*a).maxMem : (*a).currMem);
nimln_(238, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).currMem -= bytes;
popFrame();
}
static N_INLINE(void, osDeallocPages__system_4288)(void* p, NI size) {
int T1_;
nimfr_("osDeallocPages", "/home/yyoncho/Sources/nim/Nim/lib/system/osalloc.nim");
nimln_(153, "/home/yyoncho/Sources/nim/Nim/lib/system/osalloc.nim");
T1_ = (int)0;
T1_ = munmap(p, ((size_t) (size)));
(void)(T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, freeHugeChunk__system_5101)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c) {
NI size;
NI T1_;
nimfr_("freeHugeChunk", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(628, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
size = (*c).Sup.size;
nimln_(630, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T1_ = (NI)0;
T1_ = pageIndex__system_4987(&c->Sup);
excl__system_4844((&(*a).chunkStarts), T1_);
nimln_(631, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
decCurrMem__system_4532(a, size);
nimln_(632, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
osDeallocPages__system_4288(((void*) (c)), size);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, rawDealloc__system_5255)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, void* p) {
tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c;
nimfr_("rawDealloc", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(829, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
c = pageAddr__system_5001(p);
nimln_(830, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T3_;
tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c_2;
NI s;
tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ* f;
T3_ = (NIM_BOOL)0;
T3_ = isSmallChunk__system_4912(c);
if (!T3_) goto LA4_;
nimln_(832, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
c_2 = ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) (c));
nimln_(833, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
s = (*c_2).Sup.size;
nimln_(834, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).occ -= s;
nimln_(839, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
f = ((tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ*) (p));
nimln_(843, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*f).zeroField = ((NI) 0);
nimln_(844, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*f).next = (*c_2).freeList;
nimln_(845, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c_2).freeList = f;
nimln_(851, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!((*c_2).free < s)) goto LA8_;
nimln_(853, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
listAdd__system_5143(&(*a).freeSmallChunks[((NI)(s / ((NI) 16)))- 0], c_2);
nimln_(854, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c_2).free += s;
}
goto LA6_;
LA8_: ;
{
nimln_(856, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c_2).free += s;
nimln_(857, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!((*c_2).free == ((NI) 4032))) goto LA13_;
nimln_(858, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
listRemove__system_5196(&(*a).freeSmallChunks[((NI)(s / ((NI) 16)))- 0], c_2);
nimln_(859, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c_2).Sup.size = ((NI) 4096);
nimln_(860, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
freeBigChunk__system_5061(a, ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (c_2)));
}
LA13_: ;
}
LA6_: ;
}
goto LA1_;
LA4_: ;
{
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c_3;
nimln_(867, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
c_3 = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (c));
nimln_(868, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).occ -= (*c_3).Sup.size;
nimln_(871, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).deleted = getBottom__system_4568(a);
nimln_(872, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
del__system_4724(a, &(*a).root, ((NI) (ptrdiff_t) ((*c_3).data)));
nimln_(873, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!(((NI) 1056964609) <= (*c_3).Sup.size)) goto LA18_;
freeHugeChunk__system_5101(a, c_3);
}
goto LA16_;
LA18_: ;
{
nimln_(874, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
freeBigChunk__system_5061(a, c_3);
}
LA16_: ;
}
LA1_: ;
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, dealloc__system_5350)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* allocator, void* p) {
void* x;
NI T1_;
nimfr_("dealloc", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(965, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T1_ = (NI)0;
T1_ = minuspercent___system_716(((NI) (ptrdiff_t) (p)), ((NI) 16));
x = ((void*) (T1_));
nimln_(969, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
rawDealloc__system_5255(allocator, x);
popFrame();
}
N_LIB_PRIVATE N_NOCONV(void, deallocImpl__system_1747)(void* p) {
dealloc__system_5350((&gch__system_5793.region), p);
}
N_LIB_PRIVATE N_NOCONV(void, dealloc)(void* p) {
deallocImpl__system_1747(p);
}
static N_INLINE(void, add__system_5426)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
nimfr_("add", "/home/yyoncho/Sources/nim/Nim/lib/system/cellseqs_v1.nim");
nimln_(24, "/home/yyoncho/Sources/nim/Nim/lib/system/cellseqs_v1.nim");
{
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
void* T5_;
if (!((*s).cap <= (*s).len)) goto LA3_;
nimln_(25, "/home/yyoncho/Sources/nim/Nim/lib/system/cellseqs_v1.nim");
(*s).cap = (NI)((NI)((*s).cap * ((NI) 3)) / ((NI) 2));
nimln_(26, "/home/yyoncho/Sources/nim/Nim/lib/system/cellseqs_v1.nim");
T5_ = (void*)0;
T5_ = allocImpl__system_1743(((NI) ((NI)((*s).cap * ((NI) 8)))));
d = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g**) (T5_));
nimln_(27, "/home/yyoncho/Sources/nim/Nim/lib/system/cellseqs_v1.nim");
copyMem__system_1727(((void*) (d)), ((void*) ((*s).d)), ((NI) ((NI)((*s).len * ((NI) 8)))));
nimln_(28, "/home/yyoncho/Sources/nim/Nim/lib/system/cellseqs_v1.nim");
dealloc(((void*) ((*s).d)));
nimln_(29, "/home/yyoncho/Sources/nim/Nim/lib/system/cellseqs_v1.nim");
(*s).d = d;
}
LA3_: ;
nimln_(31, "/home/yyoncho/Sources/nim/Nim/lib/system/cellseqs_v1.nim");
(*s).d[(*s).len] = c;
nimln_(32, "/home/yyoncho/Sources/nim/Nim/lib/system/cellseqs_v1.nim");
(*s).len += ((NI) 1);
popFrame();
}
static N_INLINE(void, gcMark__system_6445)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch, void* p) {
NI c;
c = ((NI) (ptrdiff_t) (p));
{
NIM_BOOL T3_;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* objStart;
void* T6_;
T3_ = (NIM_BOOL)0;
T3_ = ltpercent___system_1005(((NI) 4096), c);
if (!T3_) goto LA4_;
T6_ = (void*)0;
T6_ = interiorAllocatedPtr__system_5309((&(*gch).region), p);
objStart = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T6_));
{
if (!!((objStart == ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) NIM_NIL)))) goto LA9_;
incRef__system_5898(objStart);
add__system_5426((&(*gch).decStack), objStart);
}
LA9_: ;
}
LA4_: ;
}
CLANG_NO_SANITIZE_ADDRESS N_LIB_PRIVATE void markStackAndRegisters__system_6454(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
jmp_buf registers;
tyObject_GcStack__7fytPA5bBsob6See21YMRA* T1_;
T1_ = (tyObject_GcStack__7fytPA5bBsob6See21YMRA*)0;
T1_ = getActiveStack__system_6048(gch);
setPosition__system_6042(T1_, ((void*) ((&registers))));
{
int T4_;
T4_ = (int)0;
T4_ = setjmp(registers);
if (!(T4_ == ((NI32) 0))) goto LA5_;
{
tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack;
NI max;
NI sp;
stack = (tyObject_GcStack__7fytPA5bBsob6See21YMRA*)0;
stack = (&(*gch).stack);
max = ((NI) (ptrdiff_t) ((*stack).bottom));
sp = ((NI) (ptrdiff_t) ((&registers)));
{
NIM_BOOL T10_;
NI regEnd;
T10_ = (NIM_BOOL)0;
T10_ = isActiveStack__system_6051(stack);
if (!T10_) goto LA11_;
regEnd = pluspercent___system_696(sp, ((NI)sizeof(jmp_buf)));
{
while (1) {
NIM_BOOL T15_;
NI T16_;
T15_ = (NIM_BOOL)0;
T15_ = ltpercent___system_1005(sp, regEnd);
if (!T15_) goto LA14;
gcMark__system_6445(gch, (*((void**) (sp))));
T16_ = (NI)0;
T16_ = pluspercent___system_696(sp, ((NI) 4));
gcMark__system_6445(gch, (*((void**) (T16_))));
sp = pluspercent___system_696(sp, ((NI) 8));
} LA14: ;
}
}
LA11_: ;
sp = (NI)(sp & ((NI) -8));
{
while (1) {
NIM_BOOL T19_;
T19_ = (NIM_BOOL)0;
T19_ = ltpercent___system_1005(sp, (NI)(max - ((NI) 64)));
if (!T19_) goto LA18;
gcMark__system_6445(gch, ((void**) (sp))[(((NI) 0))- 0]);
gcMark__system_6445(gch, ((void**) (sp))[(((NI) 1))- 0]);
gcMark__system_6445(gch, ((void**) (sp))[(((NI) 2))- 0]);
gcMark__system_6445(gch, ((void**) (sp))[(((NI) 3))- 0]);
gcMark__system_6445(gch, ((void**) (sp))[(((NI) 4))- 0]);
gcMark__system_6445(gch, ((void**) (sp))[(((NI) 5))- 0]);
gcMark__system_6445(gch, ((void**) (sp))[(((NI) 6))- 0]);
gcMark__system_6445(gch, ((void**) (sp))[(((NI) 7))- 0]);
sp = pluspercent___system_696(sp, ((NI) 64));
} LA18: ;
}
{
while (1) {
NIM_BOOL T22_;
T22_ = (NIM_BOOL)0;
T22_ = lteqpercent___system_985(sp, max);
if (!T22_) goto LA21;
gcMark__system_6445(gch, (*((void**) (sp))));
sp = pluspercent___system_696(sp, ((NI) 8));
} LA21: ;
}
}
}
LA5_: ;
}
static N_INLINE(void*, cellToUsr__system_5857)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell) {
void* result;
NI T1_;
nimfr_("cellToUsr", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
result = (void*)0;
nimln_(173, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
T1_ = (NI)0;
T1_ = pluspercent___system_696(((NI) (ptrdiff_t) (cell)), ((NI) 16));
result = ((void*) (T1_));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, prepareDealloc__system_6072)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell) {
TNimType* t;
nimfr_("prepareDealloc", "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
nimln_(422, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
t = (*cell).typ;
nimln_(423, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
{
void* T5_;
if (!!(((*t).finalizer == NIM_NIL))) goto LA3_;
nimln_(429, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
gch__system_5793.recGcLock += ((NI) 1);
nimln_(430, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
T5_ = (void*)0;
T5_ = cellToUsr__system_5857(cell);
((Finalizer) ((*t).finalizer))(T5_);
nimln_(431, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
gch__system_5793.recGcLock -= ((NI) 1);
}
LA3_: ;
popFrame();
}
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__system_5860)(void* usr) {
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result;
NI T1_;
nimfr_("usrToCell", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
nimln_(177, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
T1_ = (NI)0;
T1_ = minuspercent___system_716(((NI) (ptrdiff_t) (usr)), ((NI) 16));
result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_));
popFrame();
return result;
}
N_LIB_PRIVATE N_NOINLINE(void, addZCT__system_5854)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
nimfr_("addZCT", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
nimln_(167, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
{
if (!((NI)((*c).refcount & ((NI) 4)) == ((NI) 0))) goto LA3_;
nimln_(168, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
(*c).refcount = (NI)((*c).refcount | ((NI) 4));
nimln_(169, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
add__system_5426(s, c);
}
LA3_: ;
popFrame();
}
static N_INLINE(void, rtlAddZCT__system_5903)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
nimfr_("rtlAddZCT", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
nimln_(243, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
addZCT__system_5854((&gch__system_5793.zct), c);
popFrame();
}
static N_INLINE(void, decRef__system_5905)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
nimfr_("decRef", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
nimln_(248, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
(*c).refcount = minuspercent___system_716((*c).refcount, ((NI) 8));
nimln_(249, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = ltpercent___system_1005((*c).refcount, ((NI) 8));
if (!T3_) goto LA4_;
nimln_(250, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
rtlAddZCT__system_5903(c);
}
LA4_: ;
popFrame();
}
static N_INLINE(NI, nextTry__system_5486)(NI h, NI maxHash) {
NI result;
nimfr_("nextTry", "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
result = (NI)0;
nimln_(109, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
result = (NI)((NI)((NI)(((NI) 5) * h) + ((NI) 1)) & maxHash);
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, cellSetRawInsert__system_5499)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* t, tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data, tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* desc) {
NI h;
nimfr_("cellSetRawInsert", "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
nimln_(122, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
h = (NI)(((NI) ((*desc).key)) & (*t).max);
{
nimln_(123, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
while (1) {
if (!!((data[h] == ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*) NIM_NIL)))) goto LA2;
nimln_(125, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
h = nextTry__system_5486(h, (*t).max);
} LA2: ;
}
nimln_(127, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
data[h] = desc;
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, cellSetEnlarge__system_5516)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* t) {
NI oldMax;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** n;
void* T1_;
nimfr_("cellSetEnlarge", "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
nimln_(130, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
oldMax = (*t).max;
nimln_(131, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*t).max = (NI)((NI)((NI)((*t).max + ((NI) 1)) * ((NI) 2)) - ((NI) 1));
nimln_(132, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
T1_ = (void*)0;
T1_ = alloc0Impl__system_1745(((NI) ((NI)((NI)((*t).max + ((NI) 1)) * ((NI) 8)))));
n = ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg**) (T1_));
{
NI i;
NI res;
i = (NI)0;
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
if (!(res <= oldMax)) goto LA4;
nimln_(133, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
i = res;
{
nimln_(134, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
if (!!(((*t).data[i] == ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*) NIM_NIL)))) goto LA7_;
nimln_(135, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
cellSetRawInsert__system_5499((&(*t)), n, (*t).data[i]);
}
LA7_: ;
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res += ((NI) 1);
} LA4: ;
}
}
nimln_(136, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
dealloc(((void*) ((*t).data)));
nimln_(137, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*t).data = n;
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*, cellSetPut__system_5529)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* t, NU key) {
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* result;
NI h;
void* T19_;
nimfr_("cellSetPut", "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
{ result = (tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*)0;
nimln_(140, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
h = (NI)(((NI) (key)) & (*t).max);
{
nimln_(141, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
while (1) {
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* x;
nimln_(142, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
x = (*t).data[h];
nimln_(143, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
{
if (!(x == ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*) NIM_NIL))) goto LA5_;
goto LA1;
}
LA5_: ;
nimln_(144, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
{
if (!((*x).key == key)) goto LA9_;
result = x;
goto BeforeRet_;
}
LA9_: ;
nimln_(145, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
h = nextTry__system_5486(h, (*t).max);
}
} LA1: ;
nimln_(147, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
{
NIM_BOOL T13_;
T13_ = (NIM_BOOL)0;
T13_ = ((NI)((NI)((*t).max + ((NI) 1)) * ((NI) 2)) < (NI)((*t).counter * ((NI) 3)));
if (T13_) goto LA14_;
T13_ = ((NI)((NI)((*t).max + ((NI) 1)) - (*t).counter) < ((NI) 4));
LA14_: ;
if (!T13_) goto LA15_;
nimln_(148, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
cellSetEnlarge__system_5516(t);
}
LA15_: ;
nimln_(149, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*t).counter += ((NI) 1);
nimln_(150, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
h = (NI)(((NI) (key)) & (*t).max);
{
nimln_(151, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
while (1) {
if (!!(((*t).data[h] == ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*) NIM_NIL)))) goto LA18;
h = nextTry__system_5486(h, (*t).max);
} LA18: ;
}
nimln_(154, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
T19_ = (void*)0;
T19_ = alloc0Impl__system_1745(((NI) 48));
result = ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*) (T19_));
nimln_(155, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*result).next = (*t).head;
nimln_(156, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*result).key = key;
nimln_(157, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*t).head = result;
nimln_(158, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*t).data[h] = result;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, incl__system_5583)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell) {
NU u;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* t;
nimfr_("incl", "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
nimln_(172, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
u = ((NU) (ptrdiff_t) (cell));
nimln_(173, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
t = cellSetPut__system_5529(s, (NU)((NU64)(u) >> (NU64)(((NI) 12))));
nimln_(174, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
u = (NU)((NU64)((NU)((NU64)(u) % (NU64)(((NU) 4096)))) / (NU64)(((NU) 16)));
nimln_(175, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*t).bits[((NU)((NU64)(u) >> (NU64)(((NI) 6))))- 0] = (NI)((*t).bits[((NU)((NU64)(u) >> (NU64)(((NI) 6))))- 0] | (NI)((NU64)(((NI) 1)) << (NU64)((NU)(u & ((NU) 63)))));
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*, cellSetGet__system_5490)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* t, NU key) {
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* result;
NI h;
nimfr_("cellSetGet", "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
{ result = (tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*)0;
nimln_(115, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
h = (NI)(((NI) (key)) & (*t).max);
{
nimln_(116, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
while (1) {
if (!!(((*t).data[h] == ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*) NIM_NIL)))) goto LA2;
nimln_(117, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
{
if (!((*(*t).data[h]).key == key)) goto LA5_;
result = (*t).data[h];
goto BeforeRet_;
}
LA5_: ;
nimln_(118, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
h = nextTry__system_5486(h, (*t).max);
} LA2: ;
}
nimln_(119, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
result = ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*) NIM_NIL);
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, containsOrIncl__system_5629)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell) {
NIM_BOOL result;
NU u;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* t;
nimfr_("containsOrIncl", "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
result = (NIM_BOOL)0;
nimln_(186, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
u = ((NU) (ptrdiff_t) (cell));
nimln_(187, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
t = cellSetGet__system_5490((&(*s)), (NU)((NU64)(u) >> (NU64)(((NI) 12))));
nimln_(188, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
{
if (!!((t == ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*) NIM_NIL)))) goto LA3_;
nimln_(189, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
u = (NU)((NU64)((NU)((NU64)(u) % (NU64)(((NU) 4096)))) / (NU64)(((NU) 16)));
nimln_(190, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
result = !(((NI)((*t).bits[((NU)((NU64)(u) >> (NU64)(((NI) 6))))- 0] & (NI)((NU64)(((NI) 1)) << (NU64)((NU)(u & ((NU) 63))))) == ((NI) 0)));
nimln_(191, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
{
if (!!(result)) goto LA7_;
nimln_(192, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
nimln_(193, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*t).bits[((NU)((NU64)(u) >> (NU64)(((NI) 6))))- 0] = (NI)((*t).bits[((NU)((NU64)(u) >> (NU64)(((NI) 6))))- 0] | (NI)((NU64)(((NI) 1)) << (NU64)((NU)(u & ((NU) 63)))));
}
LA7_: ;
}
goto LA1_;
LA3_: ;
{
nimln_(195, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
incl__system_5583(s, cell);
nimln_(196, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
result = NIM_FALSE;
}
LA1_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, markS__system_6373)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
incl__system_5583((&(*gch).marked), c);
forAllChildren__system_5888(c, ((tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ) 1));
{
while (1) {
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* d;
if (!(((NI) 0) < (*gch).tempStack.len)) goto LA2;
(*gch).tempStack.len -= ((NI) 1);
d = (*gch).tempStack.d[(*gch).tempStack.len];
{
NIM_BOOL T5_;
T5_ = (NIM_BOOL)0;
T5_ = containsOrIncl__system_5629((&(*gch).marked), d);
if (!!(T5_)) goto LA6_;
forAllChildren__system_5888(d, ((tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ) 1));
}
LA6_: ;
} LA2: ;
}
}
N_LIB_PRIVATE N_NIMCALL(void, doOperation__system_5891)(void* p, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op) {
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c;
{ {
if (!(p == NIM_NIL)) goto LA3_;
goto BeforeRet_;
}
LA3_: ;
c = usrToCell__system_5860(p);
switch (op) {
case ((tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ) 2):
{
decRef__system_5905(c);
}
break;
case ((tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ) 3):
{
add__system_5426((&gch__system_5793.tempStack), c);
}
break;
case ((tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ) 0):
{
markS__system_6373((&gch__system_5793), c);
}
break;
case ((tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ) 1):
{
add__system_5426((&gch__system_5793.tempStack), c);
}
break;
}
}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(NU, getDiscriminant__system_4191)(void* aa, TNimNode* n) {
NU result;
NU d;
NU a;
nimfr_("getDiscriminant", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{ result = (NU)0;
d = (NU)0;
nimln_(2389, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
a = ((NU) (ptrdiff_t) (aa));
nimln_(2390, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
switch ((*(*n).typ).size) {
case ((NI) 1):
{
nimln_(2391, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
d = ((NU) ((*((NU8*) ((NU)((NU64)(a) + (NU64)(((NU) ((*n).offset)))))))));
}
break;
case ((NI) 2):
{
nimln_(2392, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
d = ((NU) ((*((NU16*) ((NU)((NU64)(a) + (NU64)(((NU) ((*n).offset)))))))));
}
break;
case ((NI) 4):
{
nimln_(2393, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
d = ((NU) ((*((NU32*) ((NU)((NU64)(a) + (NU64)(((NU) ((*n).offset)))))))));
}
break;
case ((NI) 8):
{
nimln_(2394, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
d = ((NU) ((*((NU64*) ((NU)((NU64)(a) + (NU64)(((NU) ((*n).offset)))))))));
}
break;
default:
{
nimln_(2396, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
d = ((NU) 0);
}
break;
}
nimln_(2398, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = d;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(TNimNode*, selectBranch__system_4211)(void* aa, TNimNode* n) {
TNimNode* result;
NU discr;
nimfr_("selectBranch", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = (TNimNode*)0;
nimln_(2401, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
discr = getDiscriminant__system_4191(aa, n);
nimln_(2402, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
if (!((NU64)(discr) < (NU64)(((NU) ((*n).len))))) goto LA3_;
nimln_(2403, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = (*n).sons[(discr)- 0];
nimln_(2404, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
if (!(result == ((TNimNode*) NIM_NIL))) goto LA7_;
result = (*n).sons[((*n).len)- 0];
}
LA7_: ;
}
goto LA1_;
LA3_: ;
{
nimln_(2407, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = (*n).sons[((*n).len)- 0];
}
LA1_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, forAllSlotsAux__system_6189)(void* dest, TNimNode* n, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op) {
NI d;
d = ((NI) (ptrdiff_t) (dest));
switch ((*n).kind) {
case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 1):
{
NI T2_;
T2_ = (NI)0;
T2_ = pluspercent___system_696(d, (*n).offset);
forAllChildrenAux__system_5894(((void*) (T2_)), (*n).typ, op);
}
break;
case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 2):
{
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
colontmp_ = (NI)((*n).len - ((NI) 1));
res = ((NI) 0);
{
while (1) {
if (!(res <= colontmp_)) goto LA6;
i = res;
{
if (!((*(*n).sons[(i)- 0]).kind == ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 1))) goto LA9_;
{
NI T15_;
if (!((289406976 &((NU64)1<<((NU)((*(*(*n).sons[(i)- 0]).typ).kind)&63U)))!=0)) goto LA13_;
T15_ = (NI)0;
T15_ = pluspercent___system_696(d, (*(*n).sons[(i)- 0]).offset);
doOperation__system_5891((*((void**) (T15_))), op);
}
goto LA11_;
LA13_: ;
{
NI T17_;
T17_ = (NI)0;
T17_ = pluspercent___system_696(d, (*(*n).sons[(i)- 0]).offset);
forAllChildrenAux__system_5894(((void*) (T17_)), (*(*n).sons[(i)- 0]).typ, op);
}
LA11_: ;
}
goto LA7_;
LA9_: ;
{
forAllSlotsAux__system_6189(dest, (*n).sons[(i)- 0], op);
}
LA7_: ;
res += ((NI) 1);
} LA6: ;
}
}
}
break;
case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 3):
{
TNimNode* m;
m = selectBranch__system_4211(dest, n);
{
if (!!((m == ((TNimNode*) NIM_NIL)))) goto LA22_;
forAllSlotsAux__system_6189(dest, m, op);
}
LA22_: ;
}
break;
case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 0):
{
}
break;
}
}
static N_INLINE(NI, starpercent___system_736)(NI x, NI y) {
NI result;
nimfr_("*%", "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
result = (NI)0;
nimln_(425, "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
nimln_(429, "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
result = ((NI) ((NU)((NU64)(((NU) (x))) * (NU64)(((NU) (y))))));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, forAllChildrenAux__system_5894)(void* dest, TNimType* mt, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op) {
NI d;
{ d = ((NI) (ptrdiff_t) (dest));
{
if (!(dest == NIM_NIL)) goto LA3_;
goto BeforeRet_;
}
LA3_: ;
{
if (!!((((*mt).flags &((NU8)1<<((NU)(((tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ) 0))&7U)))!=0))) goto LA7_;
switch ((*mt).kind) {
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 22):
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 28):
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 24):
{
doOperation__system_5891((*((void**) (d))), op);
}
break;
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 17):
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 18):
{
forAllSlotsAux__system_6189(dest, (*mt).node, op);
}
break;
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 16):
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 4):
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 27):
{
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
colontmp_ = (NI)((NI)((*mt).size / (*(*mt).base).size) - ((NI) 1));
res = ((NI) 0);
{
while (1) {
NI T15_;
NI T16_;
if (!(res <= colontmp_)) goto LA14;
i = res;
T15_ = (NI)0;
T15_ = starpercent___system_736(i, (*(*mt).base).size);
T16_ = (NI)0;
T16_ = pluspercent___system_696(d, T15_);
forAllChildrenAux__system_5894(((void*) (T16_)), (*mt).base, op);
res += ((NI) 1);
} LA14: ;
}
}
}
break;
default:
{
}
break;
}
}
LA7_: ;
}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op) {
doOperation__system_5891(d, ((tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ) (op)));
}
static N_NIMCALL(void, Marker_tyRef__vU9aO9cTqOMn6CBzhV8rX7Sw)(void* p, NI op) {
Exception* a;
a = (Exception*)p;
nimGCvisit((void*)(*a).parent, op);
nimGCvisit((void*)(*a).message, op);
nimGCvisit((void*)(*a).trace, op);
nimGCvisit((void*)(*a).up, op);
}
static N_NIMCALL(void, Marker_tySequence__uB9b75OUPRENsBAu4AnoePA)(void* p, NI op) {
tySequence__uB9b75OUPRENsBAu4AnoePA* a;
NI T1_;
a = (tySequence__uB9b75OUPRENsBAu4AnoePA*)p;
T1_ = (NI)0;
}
static N_NIMCALL(void, Marker_tyRef__r8GBEWywN07B3Rat3azS4Q)(void* p, NI op) {
tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ* a;
a = (tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ*)p;
nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.up, op);
}
N_LIB_PRIVATE N_NOINLINE(void*, newObj)(TNimType* typ, NI size) {
void* result;
nimfr_("newObj", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
result = (void*)0;
nimln_(486, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
result = rawNewObj__system_6301(typ, size, (&gch__system_5793));
nimln_(487, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
zeroMem__system_1724(result, ((NI) (size)));
popFrame();
return result;
}
N_LIB_PRIVATE N_NOINLINE(void*, newObjRC1)(TNimType* typ, NI size) {
void* result;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* res;
void* T1_;
nimfr_("newObjRC1", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
result = (void*)0;
nimln_(505, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
collectCT__system_5884((&gch__system_5793));
nimln_(508, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
T1_ = (void*)0;
T1_ = rawAlloc__system_5126((&gch__system_5793.region), (NI)(size + ((NI) 16)));
res = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_));
nimln_(512, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
(*res).typ = typ;
nimln_(514, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
(*res).refcount = ((NI) 8);
nimln_(522, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
result = cellToUsr__system_5857(res);
nimln_(523, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
zeroMem__system_1724(result, ((NI) (size)));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src) {
NimStringDesc* result;
result = (NimStringDesc*)0;
{
if (!!((src == ((NimStringDesc*) NIM_NIL)))) goto LA3_;
{
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T9_;
if (!!(((NI)((*src).Sup.reserved & ((NI) (IL64(-9223372036854775807) - IL64(1)))) == ((NI) 0)))) goto LA7_;
result = src;
T9_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
T9_ = usrToCell__system_5860(((void*) (result)));
incRef__system_5898(T9_);
}
goto LA5_;
LA7_: ;
{
NI s;
void* T15_;
s = (*src).Sup.len;
{
if (!(s < ((NI) 7))) goto LA13_;
s = ((NI) 7);
}
LA13_: ;
T15_ = (void*)0;
T15_ = newObjRC1((&strDesc__system_2698), (NI)((NI)(((NI) 16) + s) + ((NI) 1)));
result = ((NimStringDesc*) (T15_));
(*result).Sup.reserved = s;
(*result).Sup.len = (*src).Sup.len;
copyMem__system_1727(((void*) ((*result).data)), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
}
LA5_: ;
}
LA3_: ;
return result;
}
static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
nimfr_("nimGCunrefNoCycle", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
nimln_(276, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
T1_ = usrToCell__system_5860(p);
decRef__system_5905(T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void*, newSeq)(TNimType* typ, NI len) {
void* result;
NI size;
NI T1_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_6;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_7;
nimfr_("newSeq", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
result = (void*)0;
nimln_(493, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
T1_ = (NI)0;
T1_ = align__system_1624(((NI) 16), (*(*typ).base).align);
if (nimMulInt(len, (*(*typ).base).size, &TM__Q5wkpxktOdTGvlSRo9bzt9aw_6)) { raiseOverflow(); };
if (nimAddInt(T1_, (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_6), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_7)) { raiseOverflow(); };
size = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_7);
nimln_(494, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
result = newObj(typ, size);
nimln_(495, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
(*((TGenericSeq*) (result))).len = len;
nimln_(496, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
(*((TGenericSeq*) (result))).reserved = len;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__uB9b75OUPRENsBAu4AnoePA*, newSeq__system_3195)(NI len) {
tySequence__uB9b75OUPRENsBAu4AnoePA* result;
nimfr_("newSeq", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_NIL;
nimln_(690, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = (tySequence__uB9b75OUPRENsBAu4AnoePA*) newSeq((&NTIseqLstacktraceentryT__uB9b75OUPRENsBAu4AnoePA_), len);
popFrame();
return result;
}
N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isOnStack__system_5886)(void* p) {
NIM_BOOL result;
void* volatile stackTop;
NI a;
tyObject_GcStack__7fytPA5bBsob6See21YMRA* T1_;
NI b;
NI T2_;
NI x;
NIM_BOOL T3_;
nimfr_("isOnStack", "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
result = (NIM_BOOL)0;
nimln_(314, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
stackTop = ((void*) ((&stackTop)));
nimln_(315, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
T1_ = (tyObject_GcStack__7fytPA5bBsob6See21YMRA*)0;
T1_ = getActiveStack__system_6048((&gch__system_5793));
a = ((NI) (ptrdiff_t) ((*T1_).bottom));
nimln_(316, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
b = ((NI) (ptrdiff_t) (stackTop));
nimln_(318, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
T2_ = (NI)0;
T2_ = a;
a = b;
b = T2_;
nimln_(319, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
x = ((NI) (ptrdiff_t) (p));
nimln_(320, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
T3_ = (NIM_BOOL)0;
T3_ = lteqpercent___system_985(a, x);
if (!(T3_)) goto LA4_;
T3_ = lteqpercent___system_985(x, b);
LA4_: ;
result = T3_;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src) {
nimfr_("unsureAsgnRef", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
nimln_(297, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = isOnStack__system_5886(((void*) (dest)));
if (!!(T3_)) goto LA4_;
nimln_(298, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
{
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
if (!!((src == NIM_NIL))) goto LA8_;
T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
T10_ = usrToCell__system_5860(src);
incRef__system_5898(T10_);
}
LA8_: ;
nimln_(302, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
{
NIM_BOOL T13_;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T16_;
T13_ = (NIM_BOOL)0;
T13_ = lteqpercent___system_985(((NI) 4096), ((NI) (ptrdiff_t) ((*dest))));
if (!T13_) goto LA14_;
T16_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
T16_ = usrToCell__system_5860((*dest));
decRef__system_5905(T16_);
}
LA14_: ;
}
goto LA1_;
LA4_: ;
{
}
LA1_: ;
nimln_(307, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
(*dest) = src;
popFrame();
}
static N_INLINE(NI, resize__system_6563)(NI old) {
NI result;
result = (NI)0;
{
if (!(old <= ((NI) 0))) goto LA3_;
result = ((NI) 4);
}
goto LA1_;
LA3_: ;
{
if (!(old < ((NI) 65536))) goto LA6_;
result = (NI)(old * ((NI) 2));
}
goto LA1_;
LA6_: ;
{
result = (NI)((NI)(old * ((NI) 3)) / ((NI) 2));
}
LA1_: ;
return result;
}
N_LIB_PRIVATE N_NIMCALL(void*, dataPointer__system_6553)(TGenericSeq* a, NI elemAlign) {
void* result;
NI T1_;
NI T2_;
result = (void*)0;
T1_ = (NI)0;
T1_ = align__system_1624(((NI) 16), elemAlign);
T2_ = (NI)0;
T2_ = pluspercent___system_696(((NI) (ptrdiff_t) (a)), T1_);
result = ((void*) (T2_));
return result;
}
N_LIB_PRIVATE N_NIMCALL(void*, dataPointer__system_6557)(TGenericSeq* a, NI elemAlign, NI elemSize, NI index) {
void* result;
NI T1_;
NI T2_;
NI T3_;
NI T4_;
result = (void*)0;
T1_ = (NI)0;
T1_ = align__system_1624(((NI) 16), elemAlign);
T2_ = (NI)0;
T2_ = pluspercent___system_696(((NI) (ptrdiff_t) (a)), T1_);
T3_ = (NI)0;
T3_ = starpercent___system_736(index, elemSize);
T4_ = (NI)0;
T4_ = pluspercent___system_696(T2_, T3_);
result = ((void*) (T4_));
return result;
}
N_LIB_PRIVATE N_NIMCALL(TNimType*, extGetCellType)(void* c) {
TNimType* result;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
nimfr_("extGetCellType", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
result = (TNimType*)0;
nimln_(181, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
T1_ = usrToCell__system_5860(c);
result = (*T1_).typ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, setLengthSeqV2)(TGenericSeq* s, TNimType* typ, NI newLen) {
TGenericSeq* result;
result = (TGenericSeq*)0;
{
void* T5_;
if (!(s == ((TGenericSeq*) NIM_NIL))) goto LA3_;
T5_ = (void*)0;
T5_ = newSeq(typ, newLen);
result = ((TGenericSeq*) (T5_));
}
goto LA1_;
LA3_: ;
{
NI elemSize;
NI elemAlign;
elemSize = (*(*typ).base).size;
elemAlign = (*(*typ).base).align;
{
NI r;
NI T11_;
void* T12_;
void* T13_;
void* T14_;
if (!((NI)((*s).reserved & ((NI) IL64(4611686018427387903))) < newLen)) goto LA9_;
T11_ = (NI)0;
T11_ = resize__system_6563((NI)((*s).reserved & ((NI) IL64(4611686018427387903))));
r = ((T11_ >= newLen) ? T11_ : newLen);
T12_ = (void*)0;
T12_ = newSeq(typ, r);
result = ((TGenericSeq*) (T12_));
T13_ = (void*)0;
T13_ = dataPointer__system_6553(result, elemAlign);
T14_ = (void*)0;
T14_ = dataPointer__system_6553(s, elemAlign);
copyMem__system_1727(T13_, T14_, ((NI) ((NI)((*s).len * elemSize))));
(*s).len = ((NI) 0);
}
goto LA7_;
LA9_: ;
{
void* T27_;
NI T28_;
NI T29_;
if (!(newLen < (*s).len)) goto LA16_;
result = s;
{
if (!!((((*(*typ).base).flags &((NU8)1<<((NU)(((tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ) 0))&7U)))!=0))) goto LA20_;
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
colontmp_ = (NI)((*result).len - ((NI) 1));
res = newLen;
{
while (1) {
void* T25_;
TNimType* T26_;
if (!(res <= colontmp_)) goto LA24;
i = res;
T25_ = (void*)0;
T25_ = dataPointer__system_6557(result, elemAlign, elemSize, i);
T26_ = (TNimType*)0;
T26_ = extGetCellType(((void*) (result)));
forAllChildrenAux__system_5894(T25_, (*T26_).base, ((tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ) 2));
res += ((NI) 1);
} LA24: ;
}
}
}
LA20_: ;
T27_ = (void*)0;
T27_ = dataPointer__system_6557(result, elemAlign, elemSize, newLen);
T28_ = (NI)0;
T28_ = minuspercent___system_716((*result).len, newLen);
T29_ = (NI)0;
T29_ = starpercent___system_736(T28_, elemSize);
zeroMem__system_1724(T27_, ((NI) (T29_)));
}
goto LA7_;
LA16_: ;
{
void* T31_;
NI T32_;
NI T33_;
result = s;
T31_ = (void*)0;
T31_ = dataPointer__system_6557(result, elemAlign, elemSize, (*result).len);
T32_ = (NI)0;
T32_ = minuspercent___system_716(newLen, (*result).len);
T33_ = (NI)0;
T33_ = starpercent___system_736(T32_, elemSize);
zeroMem__system_1724(T31_, ((NI) (T33_)));
}
LA7_: ;
(*result).len = newLen;
}
LA1_: ;
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, auxWriteStackTrace__system_3173)(TFrame* f, tySequence__uB9b75OUPRENsBAu4AnoePA** s) {
TFrame* it;
NI i;
NI last;
it = f;
i = ((NI) 0);
{
while (1) {
if (!!((it == ((TFrame*) NIM_NIL)))) goto LA2;
i += ((NI) 1);
it = (*it).prev;
} LA2: ;
}
last = (NI)(i - ((NI) 1));
{
NI T5_;
T5_ = ((*s) ? (*s)->Sup.len : 0);
if (!(T5_ == ((NI) 0))) goto LA6_;
unsureAsgnRef((void**) (&(*s)), newSeq__system_3195(((NI) (i))));
}
goto LA3_;
LA6_: ;
{
NI T9_;
T9_ = ((*s) ? (*s)->Sup.len : 0);
last = (NI)((NI)(T9_ + i) - ((NI) 1));
unsureAsgnRef((void**) (&(*s)), (tySequence__uB9b75OUPRENsBAu4AnoePA*) setLengthSeqV2(&((*s))->Sup, (&NTIseqLstacktraceentryT__uB9b75OUPRENsBAu4AnoePA_), ((NI) ((NI)(last + ((NI) 1))))));
}
LA3_: ;
it = f;
{
while (1) {
tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA T12_;
if (!!((it == ((TFrame*) NIM_NIL)))) goto LA11;
nimZeroMem((void*)(&T12_), sizeof(tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA));
T12_.procname = (*it).procname;
T12_.line = (*it).line;
T12_.filename = (*it).filename;
(*s)->data[last] = T12_;
it = (*it).prev;
last -= ((NI) 1);
} LA11: ;
}
}
N_LIB_PRIVATE N_NIMCALL(void, rawWriteStackTrace__system_3382)(tySequence__uB9b75OUPRENsBAu4AnoePA** s) {
auxWriteStackTrace__system_3173(framePtr__system_3094, s);
}
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ) {
TGenericSeq* result;
result = (TGenericSeq*)0;
{
void* T5_;
if (!(s == ((TGenericSeq*) NIM_NIL))) goto LA3_;
T5_ = (void*)0;
T5_ = newSeq(typ, ((NI) 1));
result = ((TGenericSeq*) (T5_));
(*result).len = ((NI) 0);
}
goto LA1_;
LA3_: ;
{
result = s;
{
NI r;
void* T11_;
void* T12_;
void* T13_;
if (!((NI)((*result).reserved & ((NI) IL64(4611686018427387903))) <= (*result).len)) goto LA9_;
r = resize__system_6563((NI)((*result).reserved & ((NI) IL64(4611686018427387903))));
T11_ = (void*)0;
T11_ = newSeq(typ, r);
result = ((TGenericSeq*) (T11_));
(*result).len = (*s).len;
T12_ = (void*)0;
T12_ = dataPointer__system_6553(result, (*(*typ).base).align);
T13_ = (void*)0;
T13_ = dataPointer__system_6553(s, (*(*typ).base).align);
copyMem__system_1727(T12_, T13_, ((NI) ((NI)((*s).len * (*(*typ).base).size))));
(*s).len = ((NI) 0);
}
LA9_: ;
}
LA1_: ;
return result;
}
static N_INLINE(void, asgnRef)(void** dest, void* src) {
nimfr_("asgnRef", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
nimln_(286, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
{
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_;
if (!!((src == NIM_NIL))) goto LA3_;
T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
T5_ = usrToCell__system_5860(src);
incRef__system_5898(T5_);
}
LA3_: ;
nimln_(287, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
{
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
if (!!(((*dest) == NIM_NIL))) goto LA8_;
T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
T10_ = usrToCell__system_5860((*dest));
decRef__system_5905(T10_);
}
LA8_: ;
nimln_(288, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
(*dest) = src;
popFrame();
}
static N_INLINE(void, pushCurrentException)(Exception* e) {
asgnRef((void**) (&(*e).up), currException__system_3096);
asgnRef((void**) (&currException__system_3096), e);
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space) {
NimStringDesc* result;
NI s;
void* T5_;
result = (NimStringDesc*)0;
s = space;
{
if (!(s < ((NI) 7))) goto LA3_;
s = ((NI) 7);
}
LA3_: ;
T5_ = (void*)0;
T5_ = newObj((&strDesc__system_2698), (NI)((NI)(((NI) 16) + s) + ((NI) 1)));
result = ((NimStringDesc*) (T5_));
(*result).Sup.reserved = s;
(*result).Sup.len = ((NI) 0);
return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c) {
NimStringDesc* result;
result = (NimStringDesc*)0;
{
if (!(s == ((NimStringDesc*) NIM_NIL))) goto LA3_;
result = rawNewStringNoInit(((NI) 1));
(*result).Sup.len = ((NI) 0);
}
goto LA1_;
LA3_: ;
{
result = s;
{
NI r;
if (!((NI)((*result).Sup.reserved & ((NI) IL64(4611686018427387903))) <= (*result).Sup.len)) goto LA8_;
r = resize__system_6563((NI)((*result).Sup.reserved & ((NI) IL64(4611686018427387903))));
result = rawNewStringNoInit(r);
(*result).Sup.len = (*s).Sup.len;
copyMem__system_1727(((void*) ((&(*result).data[((NI) 0)]))), ((void*) ((&(*s).data[((NI) 0)]))), ((NI) ((NI)((*s).Sup.len + ((NI) 1)))));
(*result).Sup.reserved = r;
}
LA8_: ;
}
LA1_: ;
(*result).data[(*result).Sup.len] = c;
(*result).data[(NI)((*result).Sup.len + ((NI) 1))] = 0;
(*result).Sup.len += ((NI) 1);
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, add__system_2594)(NimStringDesc** x, NCSTRING y) {
NI i;
i = ((NI) 0);
{
if (!!((((void*) (y)) == NIM_NIL))) goto LA3_;
{
while (1) {
if (!!(((NU8)(y[i]) == (NU8)(0)))) goto LA6;
unsureAsgnRef((void**) (&(*x)), addChar((*x), y[i]));
i += ((NI) 1);
} LA6: ;
}
}
LA3_: ;
}
static N_NIMCALL(void, Marker_tyRef__dJLgQyYmAVYQWHiOSBBTyA)(void* p, NI op) {
tyObject_RangeDefect__Rp9adJYTsbbIUzQ8fWxwgdA* a;
a = (tyObject_RangeDefect__Rp9adJYTsbbIUzQ8fWxwgdA*)p;
nimGCvisit((void*)(*a).Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
static N_INLINE(void, sysFatal__system_3682)(NimStringDesc* message) {
tyObject_RangeDefect__Rp9adJYTsbbIUzQ8fWxwgdA* T1_;
NimStringDesc* T2_;
nimfr_("sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
T1_ = NIM_NIL;
T1_ = (tyObject_RangeDefect__Rp9adJYTsbbIUzQ8fWxwgdA*) newObj((&NTIrefrangedefect__dJLgQyYmAVYQWHiOSBBTyA_), sizeof(tyObject_RangeDefect__Rp9adJYTsbbIUzQ8fWxwgdA));
(*T1_).Sup.Sup.Sup.m_type = (&NTIrangedefect__Rp9adJYTsbbIUzQ8fWxwgdA_);
(*T1_).Sup.Sup.name = "RangeDefect";
T2_ = NIM_NIL;
T2_ = (*T1_).Sup.Sup.message; (*T1_).Sup.Sup.message = copyStringRC1(message);
if (T2_) nimGCunrefNoCycle(T2_);
nimln_(53, "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
raiseExceptionEx((Exception*)T1_, "RangeDefect", "sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim", 53);
popFrame();
}
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b) {
NimStringDesc* T1_;
NimStringDesc* T2_;
NimStringDesc* T3_;
NimStringDesc* T4_;
T1_ = NIM_NIL;
T2_ = NIM_NIL;
T2_ = dollar___systemZdollars_11(i);
T3_ = NIM_NIL;
T3_ = dollar___systemZdollars_11(a);
T4_ = NIM_NIL;
T4_ = dollar___systemZdollars_11(b);
T1_ = rawNewString((T2_ ? T2_->Sup.len : 0) + (T3_ ? T3_->Sup.len : 0) + (T4_ ? T4_->Sup.len : 0) + 31);
appendString(T1_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_13));
appendString(T1_, T2_);
appendString(T1_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_14));
appendString(T1_, T3_);
appendString(T1_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_15));
appendString(T1_, T4_);
sysFatal__system_3682(T1_);
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, mnewString)(NI len) {
NimStringDesc* result;
result = (NimStringDesc*)0;
result = rawNewString(len);
(*result).Sup.len = len;
return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newLen) {
NimStringDesc* result;
NI n;
result = (NimStringDesc*)0;
n = ((newLen >= ((NI) 0)) ? newLen : ((NI) 0));
{
if (!(s == ((NimStringDesc*) NIM_NIL))) goto LA3_;
result = mnewString(newLen);
}
goto LA1_;
LA3_: ;
{
if (!(n <= (NI)((*s).Sup.reserved & ((NI) IL64(4611686018427387903))))) goto LA6_;
result = s;
}
goto LA1_;
LA6_: ;
{
NI sp;
NI T9_;
T9_ = (NI)0;
T9_ = resize__system_6563((NI)((*s).Sup.reserved & ((NI) IL64(4611686018427387903))));
sp = ((T9_ >= newLen) ? T9_ : newLen);
result = rawNewStringNoInit(sp);
(*result).Sup.len = (*s).Sup.len;
copyMem__system_1727(((void*) ((&(*result).data[((NI) 0)]))), ((void*) ((&(*s).data[((NI) 0)]))), ((NI) ((NI)((*s).Sup.len + ((NI) 1)))));
zeroMem__system_1724(((void*) ((&(*result).data[(*s).Sup.len]))), ((NI) ((NI)(newLen - (*s).Sup.len))));
(*result).Sup.reserved = sp;
}
LA1_: ;
(*result).Sup.len = n;
(*result).data[n] = 0;
return result;
}
static N_NIMCALL(void, Marker_tyRef__RJnHOb9cQV3neNC9cDkRgMyw)(void* p, NI op) {
tyObject_IndexDefect__n6tGEPHKkh7E1AP9bj30WrQ* a;
a = (tyObject_IndexDefect__n6tGEPHKkh7E1AP9bj30WrQ*)p;
nimGCvisit((void*)(*a).Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
static N_INLINE(void, sysFatal__system_3602)(NimStringDesc* message) {
tyObject_IndexDefect__n6tGEPHKkh7E1AP9bj30WrQ* T1_;
NimStringDesc* T2_;
nimfr_("sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
T1_ = NIM_NIL;
T1_ = (tyObject_IndexDefect__n6tGEPHKkh7E1AP9bj30WrQ*) newObj((&NTIrefindexdefect__RJnHOb9cQV3neNC9cDkRgMyw_), sizeof(tyObject_IndexDefect__n6tGEPHKkh7E1AP9bj30WrQ));
(*T1_).Sup.Sup.Sup.m_type = (&NTIindexdefect__n6tGEPHKkh7E1AP9bj30WrQ_);
(*T1_).Sup.Sup.name = "IndexDefect";
T2_ = NIM_NIL;
T2_ = (*T1_).Sup.Sup.message; (*T1_).Sup.Sup.message = copyStringRC1(message);
if (T2_) nimGCunrefNoCycle(T2_);
nimln_(53, "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
raiseExceptionEx((Exception*)T1_, "IndexDefect", "sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim", 53);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src) {
NimStringDesc* result;
result = (NimStringDesc*)0;
{
if (!!((src == ((NimStringDesc*) NIM_NIL)))) goto LA3_;
{
if (!!(((NI)((*src).Sup.reserved & ((NI) (IL64(-9223372036854775807) - IL64(1)))) == ((NI) 0)))) goto LA7_;
result = src;
}
goto LA5_;
LA7_: ;
{
result = rawNewStringNoInit((*src).Sup.len);
(*result).Sup.len = (*src).Sup.len;
copyMem__system_1727(((void*) ((*result).data)), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
}
LA5_: ;
}
LA3_: ;
return result;
}
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n) {
NimStringDesc* T1_;
T1_ = NIM_NIL;
{
if (!(n < ((NI) 0))) goto LA4_;
T1_ = copyString(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_16));
}
goto LA2_;
LA4_: ;
{
NimStringDesc* T7_;
NimStringDesc* T8_;
NimStringDesc* T9_;
T7_ = NIM_NIL;
T8_ = NIM_NIL;
T8_ = dollar___systemZdollars_8(i);
T9_ = NIM_NIL;
T9_ = dollar___systemZdollars_8(n);
T7_ = rawNewString((T8_ ? T8_->Sup.len : 0) + (T9_ ? T9_->Sup.len : 0) + 19);
appendString(T7_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_17));
appendString(T7_, T8_);
appendString(T7_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_18));
appendString(T7_, T9_);
T1_ = T7_;
}
LA2_: ;
sysFatal__system_3602(T1_);
}
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorNoArgs)(void) {
sysFatal__system_3682(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_19));
}
static N_INLINE(void, addInt__stdZprivateZdigitsutils_189)(NimStringDesc** result, NI x) {
nimfr_("addInt", "/home/yyoncho/Sources/nim/Nim/lib/std/private/digitsutils.nim");
nimln_(117, "/home/yyoncho/Sources/nim/Nim/lib/std/private/digitsutils.nim");
addInt__stdZprivateZdigitsutils_167(result, ((NI64) (x)));
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___system_3244)(tySequence__uB9b75OUPRENsBAu4AnoePA* stackTraceEntries) {
NimStringDesc* result;
tySequence__uB9b75OUPRENsBAu4AnoePA* s;
result = NIM_NIL;
s = stackTraceEntries;
result = rawNewString(((NI) 2000));
{
NI i;
NI colontmp_;
NI T2_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
T2_ = (s ? s->Sup.len : 0);
colontmp_ = (NI)(T2_ - ((NI) 1));
res = ((NI) 0);
{
while (1) {
if (!(res <= colontmp_)) goto LA4;
i = res;
{
if (!(s->data[i].line == ((NI) -10))) goto LA7_;
result = resizeString(result, 17);
appendString(result, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_10));
}
goto LA5_;
LA7_: ;
{
if (!(s->data[i].line == ((NI) -100))) goto LA10_;
result = resizeString(result, 3);
appendString(result, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_11));
}
goto LA5_;
LA10_: ;
{
NI oldLenX60gensym84_;
oldLenX60gensym84_ = (result ? result->Sup.len : 0);
add__system_2594((&result), s->data[i].filename);
{
if (!(((NI) 0) < s->data[i].line)) goto LA15_;
result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_12));
addInt__stdZprivateZdigitsutils_189((&result), s->data[i].line);
{
if (!NIM_FALSE) goto LA19_;
result = resizeString(result, 2);
appendString(result, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_20));
addInt__stdZprivateZdigitsutils_189((&result), ((NI) 0));
}
LA19_: ;
result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_21));
}
LA15_: ;
{
NI kX60gensym84_;
NI colontmp__2;
NI res_2;
kX60gensym84_ = (NI)0;
colontmp__2 = (NI)0;
colontmp__2 = ((((NI) 1) >= (NI)(((NI) 25) - (NI)((result ? result->Sup.len : 0) - oldLenX60gensym84_))) ? ((NI) 1) : (NI)(((NI) 25) - (NI)((result ? result->Sup.len : 0) - oldLenX60gensym84_)));
res_2 = ((NI) 1);
{
while (1) {
if (!(res_2 <= colontmp__2)) goto LA23;
kX60gensym84_ = res_2;
result = addChar(result, 32);
res_2 += ((NI) 1);
} LA23: ;
}
}
add__system_2594((&result), s->data[i].procname);
result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_22));
}
LA5_: ;
res += ((NI) 1);
} LA4: ;
}
}
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___stdZassertions_23)(NimStringDesc** dest) {
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toNimStr)(NCSTRING str, NI len) {
NimStringDesc* result;
result = (NimStringDesc*)0;
result = rawNewStringNoInit(len);
(*result).Sup.len = len;
copyMem__system_1727(((void*) ((*result).data)), ((void*) (str)), ((NI) ((NI)(len + ((NI) 1)))));
return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, cstrToNimstr)(NCSTRING str) {
NimStringDesc* result;
result = (NimStringDesc*)0;
{
if (!(((void*) (str)) == NIM_NIL)) goto LA3_;
result = ((NimStringDesc*) NIM_NIL);
}
goto LA1_;
LA3_: ;
{
result = toNimStr(str, (str ? nimCStrLen(str) : 0));
}
LA1_: ;
return result;
}
static N_INLINE(void, pushSafePoint)(TSafePoint* s) {
(*s).prev = excHandler__system_3095;
excHandler__system_3095 = s;
}
static N_INLINE(void, popSafePoint)(void) {
excHandler__system_3095 = (*excHandler__system_3095).prev;
}
static N_INLINE(TFrame*, getFrame)(void) {
TFrame* result;
result = (TFrame*)0;
result = framePtr__system_3094;
return result;
}
static N_INLINE(void, setFrame)(TFrame* s) {
framePtr__system_3094 = s;
}
static N_INLINE(void, popCurrentException)(void) {
asgnRef((void**) (&currException__system_3096), (*currException__system_3096).up);
}
static N_NIMCALL(void, Marker_tyRef__uG62cfJZ15c2siK3CKLmnQ)(void* p, NI op) {
tyObject_ReraiseDefect__E0L0wGYS1gPD81VLstNO2g* a;
a = (tyObject_ReraiseDefect__E0L0wGYS1gPD81VLstNO2g*)p;
nimGCvisit((void*)(*a).Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
static N_INLINE(void, sysFatal__system_3464)(NimStringDesc* message) {
tyObject_ReraiseDefect__E0L0wGYS1gPD81VLstNO2g* T1_;
NimStringDesc* T2_;
nimfr_("sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
T1_ = NIM_NIL;
T1_ = (tyObject_ReraiseDefect__E0L0wGYS1gPD81VLstNO2g*) newObj((&NTIrefreraisedefect__uG62cfJZ15c2siK3CKLmnQ_), sizeof(tyObject_ReraiseDefect__E0L0wGYS1gPD81VLstNO2g));
(*T1_).Sup.Sup.Sup.m_type = (&NTIreraisedefect__E0L0wGYS1gPD81VLstNO2g_);
(*T1_).Sup.Sup.name = "ReraiseDefect";
T2_ = NIM_NIL;
T2_ = (*T1_).Sup.Sup.message; (*T1_).Sup.Sup.message = copyStringRC1(message);
if (T2_) nimGCunrefNoCycle(T2_);
nimln_(53, "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
raiseExceptionEx((Exception*)T1_, "ReraiseDefect", "sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim", 53);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, reraiseException)(void) {
{
if (!(currException__system_3096 == ((Exception*) NIM_NIL))) goto LA3_;
sysFatal__system_3464(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_27));
}
goto LA1_;
LA3_: ;
{
raiseExceptionAux__system_3421(currException__system_3096);
}
LA1_: ;
}
static N_INLINE(void, rawWriteString)(FILE* f, NCSTRING s, NI length) {
int T1_;
int T2_;
T1_ = (int)0;
T1_ = fwrite(((void*) (s)), ((size_t) 1), ((size_t) (length)), f);
(void)(T1_);
T2_ = (int)0;
T2_ = fflush(f);
(void)(T2_);
}
N_LIB_PRIVATE N_NIMCALL(void, writeToStdErr__system_3061)(NCSTRING msg, NI length) {
rawWriteString(stderr, msg, length);
}
N_LIB_PRIVATE N_NIMCALL(void, showErrorMessage__system_3066)(NCSTRING data, NI length) {
NIM_BOOL volatile toWrite;
TFrame* _nimCurFrame;
_nimCurFrame = getFrame();
toWrite = NIM_TRUE;
{
TSafePoint TM__Q5wkpxktOdTGvlSRo9bzt9aw_26;
NimStringDesc* T5_;
if (!!((errorMessageWriter__system_3058 == NIM_NIL))) goto LA3_;
pushSafePoint(&TM__Q5wkpxktOdTGvlSRo9bzt9aw_26);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_26.status = setjmp(TM__Q5wkpxktOdTGvlSRo9bzt9aw_26.context);
if (TM__Q5wkpxktOdTGvlSRo9bzt9aw_26.status == 0) {
T5_ = NIM_NIL;
T5_ = cstrToNimstr(data);
errorMessageWriter__system_3058(T5_);
toWrite = NIM_FALSE;
popSafePoint();
}
else {
popSafePoint();
setFrame(_nimCurFrame);
{
TM__Q5wkpxktOdTGvlSRo9bzt9aw_26.status = 0;
popCurrentException();
}
}
if (TM__Q5wkpxktOdTGvlSRo9bzt9aw_26.status != 0) reraiseException();
}
LA3_: ;
{
if (!toWrite) goto LA10_;
writeToStdErr__system_3061(data, length);
}
LA10_: ;
}
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s) {
NCSTRING result;
result = (NCSTRING)0;
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = (s == ((NimStringDesc*) NIM_NIL));
if (T3_) goto LA4_;
T3_ = ((*s).Sup.len == ((NI) 0));
LA4_: ;
if (!T3_) goto LA5_;
result = "";
}
goto LA1_;
LA5_: ;
{
result = ((NCSTRING) ((*s).data));
}
LA1_: ;
return result;
}
static N_INLINE(void, showErrorMessage2__system_3074)(NimStringDesc* data) {
showErrorMessage__system_3066(nimToCStringConv(data), (data ? data->Sup.len : 0));
}
N_LIB_PRIVATE N_NIMCALL(void, reportUnhandledErrorAux__system_3393)(Exception* e) {
NimStringDesc* buf;
NimStringDesc* T7_;
buf = rawNewString(((NI) 2000));
{
NI T3_;
T3_ = ((*e).trace ? (*e).trace->Sup.len : 0);
if (!(T3_ == ((NI) 0))) goto LA4_;
rawWriteStackTrace__system_3376((&buf));
}
goto LA1_;
LA4_: ;
{
NimStringDesc* trace;
trace = dollar___system_3244((*e).trace);
buf = resizeString(buf, (trace ? trace->Sup.len : 0) + 0);
appendString(buf, trace);
eqdestroy___stdZassertions_23((&trace));
}
LA1_: ;
buf = resizeString(buf, 28);
appendString(buf, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_23));
buf = resizeString(buf, ((*e).message ? (*e).message->Sup.len : 0) + 0);
appendString(buf, (*e).message);
buf = resizeString(buf, 2);
appendString(buf, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_24));
T7_ = NIM_NIL;
T7_ = cstrToNimstr((*e).name);
buf = resizeString(buf, (T7_ ? T7_->Sup.len : 0) + 0);
appendString(buf, T7_);
buf = resizeString(buf, 2);
appendString(buf, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_25));
{
if (!!((onUnhandledException__system_3392 == NIM_NIL))) goto LA10_;
onUnhandledException__system_3392(buf);
}
goto LA8_;
LA10_: ;
{
showErrorMessage2__system_3074(buf);
}
LA8_: ;
eqdestroy___stdZassertions_23((&buf));
}
N_LIB_PRIVATE N_NIMCALL(void, reportUnhandledError__system_3410)(Exception* e) {
{
if (!!((unhandledExceptionHook__system_2585 == NIM_NIL))) goto LA3_;
unhandledExceptionHook__system_2585(e);
}
LA3_: ;
reportUnhandledErrorAux__system_3393(e);
}
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionAux__system_3421)(Exception* e) {
{ {
if (!!((localRaiseHook__system_2580 == NIM_NIL))) goto LA3_;
{
NIM_BOOL T7_;
T7_ = (NIM_BOOL)0;
T7_ = localRaiseHook__system_2580(e);
if (!!(T7_)) goto LA8_;
goto BeforeRet_;
}
LA8_: ;
}
LA3_: ;
{
if (!!((globalRaiseHook__system_2577 == NIM_NIL))) goto LA12_;
{
NIM_BOOL T16_;
T16_ = (NIM_BOOL)0;
T16_ = globalRaiseHook__system_2577(e);
if (!!(T16_)) goto LA17_;
goto BeforeRet_;
}
LA17_: ;
}
LA12_: ;
{
if (!!((excHandler__system_3095 == ((TSafePoint*) NIM_NIL)))) goto LA21_;
pushCurrentException(e);
longjmp((*excHandler__system_3095).context, ((int) 1));
}
goto LA19_;
LA21_: ;
{
reportUnhandledError__system_3410(e);
exit(((NI) 1));
}
LA19_: ;
}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line) {
{
if (!((*e).name == 0)) goto LA3_;
(*e).name = ename;
}
LA3_: ;
{
NI T7_;
T7_ = ((*e).trace ? (*e).trace->Sup.len : 0);
if (!(T7_ == ((NI) 0))) goto LA8_;
rawWriteStackTrace__system_3382((&(*e).trace));
}
goto LA5_;
LA8_: ;
{
NI T13_;
NI T14_;
if (!!((framePtr__system_3094 == ((TFrame*) NIM_NIL)))) goto LA11_;
asgnRef((void**) (&(*e).trace), (tySequence__uB9b75OUPRENsBAu4AnoePA*) incrSeqV3((TGenericSeq*)((*e).trace), (&NTIseqLstacktraceentryT__uB9b75OUPRENsBAu4AnoePA_)));
T13_ = (*e).trace->Sup.len++;
(*e).trace->data[T13_] = TM__Q5wkpxktOdTGvlSRo9bzt9aw_8;
auxWriteStackTrace__system_3173(framePtr__system_3094, (&(*e).trace));
asgnRef((void**) (&(*e).trace), (tySequence__uB9b75OUPRENsBAu4AnoePA*) incrSeqV3((TGenericSeq*)((*e).trace), (&NTIseqLstacktraceentryT__uB9b75OUPRENsBAu4AnoePA_)));
T14_ = (*e).trace->Sup.len++;
(*e).trace->data[T14_] = TM__Q5wkpxktOdTGvlSRo9bzt9aw_9;
}
goto LA5_;
LA11_: ;
LA5_: ;
raiseExceptionAux__system_3421(e);
}
static N_INLINE(void, sysFatal__system_3933)(NimStringDesc* message) {
tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ* T1_;
NimStringDesc* T2_;
nimfr_("sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
T1_ = NIM_NIL;
T1_ = (tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ*) newObj((&NTIrefoverflowdefect__r8GBEWywN07B3Rat3azS4Q_), sizeof(tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ));
(*T1_).Sup.Sup.Sup.Sup.m_type = (&NTIoverflowdefect__9cxMi1BPLc3UKt9br86bGfGQ_);
(*T1_).Sup.Sup.Sup.name = "OverflowDefect";
T2_ = NIM_NIL;
T2_ = (*T1_).Sup.Sup.Sup.message; (*T1_).Sup.Sup.Sup.message = copyStringRC1(message);
if (T2_) nimGCunrefNoCycle(T2_);
nimln_(53, "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
raiseExceptionEx((Exception*)T1_, "OverflowDefect", "sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim", 53);
popFrame();
}
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void) {
sysFatal__system_3933(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_28));
}
N_LIB_PRIVATE N_NIMCALL(NI, align__system_1624)(NI address, NI alignment) {
NI result;
nimfr_("align", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = (NI)0;
nimln_(1196, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
if (!(alignment == ((NI) 0))) goto LA3_;
nimln_(1198, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = address;
}
goto LA1_;
LA3_: ;
{
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_3;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_29;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_30;
nimln_(1200, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
if (nimSubInt(alignment, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_3)) { raiseOverflow(); };
if (nimAddInt(address, (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_3), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_29)) { raiseOverflow(); };
if (nimSubInt(alignment, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_30)) { raiseOverflow(); };
result = (NI)((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_29) & (NI)((NU64) ~((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_30))));
}
LA1_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, forAllChildren__system_5888)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op) {
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
marker = (*(*cell).typ).marker;
{
void* T5_;
if (!!((marker == NIM_NIL))) goto LA3_;
T5_ = (void*)0;
T5_ = cellToUsr__system_5857(cell);
marker(T5_, ((NI) (op)));
}
goto LA1_;
LA3_: ;
{
switch ((*(*cell).typ).kind) {
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 22):
{
void* T8_;
T8_ = (void*)0;
T8_ = cellToUsr__system_5857(cell);
forAllChildrenAux__system_5894(T8_, (*(*cell).typ).base, op);
}
break;
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 24):
{
NI d;
void* T10_;
TGenericSeq* s;
T10_ = (void*)0;
T10_ = cellToUsr__system_5857(cell);
d = ((NI) (ptrdiff_t) (T10_));
s = ((TGenericSeq*) (d));
{
if (!!((s == ((TGenericSeq*) NIM_NIL)))) goto LA13_;
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
colontmp_ = (NI)((*s).len - ((NI) 1));
res = ((NI) 0);
{
while (1) {
NI T18_;
NI T19_;
NI T20_;
NI T21_;
if (!(res <= colontmp_)) goto LA17;
i = res;
T18_ = (NI)0;
T18_ = align__system_1624(((NI) 16), (*(*(*cell).typ).base).align);
T19_ = (NI)0;
T19_ = pluspercent___system_696(d, T18_);
T20_ = (NI)0;
T20_ = starpercent___system_736(i, (*(*(*cell).typ).base).size);
T21_ = (NI)0;
T21_ = pluspercent___system_696(T19_, T20_);
forAllChildrenAux__system_5894(((void*) (T21_)), (*(*cell).typ).base, op);
res += ((NI) 1);
} LA17: ;
}
}
}
LA13_: ;
}
break;
default:
{
}
break;
}
}
LA1_: ;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, collectZCT__system_6412)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
NIM_BOOL result;
NI* L;
result = (NIM_BOOL)0;
L = (&(*gch).zct.len);
{
while (1) {
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c;
if (!(((NI) 0) < (*L))) goto LA2;
c = (*gch).zct.d[((NI) 0)];
(*c).refcount = (NI)((*c).refcount & ((NI) -5));
(*gch).zct.d[((NI) 0)] = (*gch).zct.d[(NI)((*L) - ((NI) 1))];
(*L) -= ((NI) 1);
{
NIM_BOOL T5_;
T5_ = (NIM_BOOL)0;
T5_ = ltpercent___system_1005((*c).refcount, ((NI) 8));
if (!T5_) goto LA6_;
prepareDealloc__system_6072(c);
forAllChildren__system_5888(c, ((tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ) 2));
rawDealloc__system_5255((&(*gch).region), ((void*) (c)));
}
LA6_: ;
} LA2: ;
}
result = NIM_TRUE;
return result;
}
static N_INLINE(void, acquire__coreZlocks_71)(pthread_mutex_t* lock) {
pthread_mutex_lock(lock);
}
N_LIB_PRIVATE N_NIMCALL(void, nimGCunref)(void* p) {
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell;
NI L;
NI i;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T7_;
nimfr_("nimGCunref", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
nimln_(254, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
cell = usrToCell__system_5860(p);
nimln_(255, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
L = (NI)(gch__system_5793.additionalRoots.len - ((NI) 1));
nimln_(256, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
i = L;
nimln_(257, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
d = gch__system_5793.additionalRoots.d;
{
nimln_(258, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
while (1) {
if (!(((NI) 0) <= i)) goto LA2;
nimln_(259, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
{
if (!(d[i] == cell)) goto LA5_;
nimln_(260, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
d[i] = d[L];
nimln_(261, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
gch__system_5793.additionalRoots.len -= ((NI) 1);
nimln_(262, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
goto LA1;
}
LA5_: ;
nimln_(263, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
i -= ((NI) 1);
} LA2: ;
} LA1: ;
nimln_(264, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
T7_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
T7_ = usrToCell__system_5860(p);
decRef__system_5905(T7_);
popFrame();
}
static N_INLINE(void, release__coreZlocks_73)(pthread_mutex_t* lock) {
pthread_mutex_unlock(lock);
}
N_LIB_PRIVATE N_NIMCALL(void, deinit__system_5478)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* s) {
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* it;
nimfr_("deinit", "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
nimln_(98, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
it = (*s).head;
{
nimln_(99, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
while (1) {
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* n;
if (!!((it == ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*) NIM_NIL)))) goto LA2;
nimln_(100, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
n = (*it).next;
nimln_(101, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
dealloc(((void*) (it)));
nimln_(102, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
it = n;
} LA2: ;
}
nimln_(103, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*s).head = ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*) NIM_NIL);
nimln_(104, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
dealloc(((void*) ((*s).data)));
nimln_(105, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*s).data = ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg**) NIM_NIL);
nimln_(106, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*s).counter = ((NI) 0);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, init__system_5458)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* s) {
void* T1_;
nimfr_("init", "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
nimln_(92, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
T1_ = (void*)0;
T1_ = alloc0Impl__system_1745(((NI) 8192));
(*s).data = ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg**) (T1_));
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*s).max = ((NI) 1023);
nimln_(94, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*s).counter = ((NI) 0);
nimln_(95, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
(*s).head = ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*) NIM_NIL);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, cellsetReset__system_6187)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* s) {
nimfr_("cellsetReset", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
nimln_(333, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
deinit__system_5478(s);
nimln_(334, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
init__system_5458(s);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, markGlobals__system_6381)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
{
if (!((*gch).gcThreadId == ((NI) 0))) goto LA3_;
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
colontmp_ = (NI)(globalMarkersLen - ((NI) 1));
res = ((NI) 0);
{
while (1) {
if (!(res <= colontmp_)) goto LA7;
i = res;
globalMarkers[(i)- 0]();
res += ((NI) 1);
} LA7: ;
}
}
}
LA3_: ;
{
NI i_2;
NI colontmp__2;
NI res_2;
i_2 = (NI)0;
colontmp__2 = (NI)0;
colontmp__2 = (NI)(threadLocalMarkersLen - ((NI) 1));
res_2 = ((NI) 0);
{
while (1) {
if (!(res_2 <= colontmp__2)) goto LA10;
i_2 = res_2;
threadLocalMarkers[(i_2)- 0]();
res_2 += ((NI) 1);
} LA10: ;
}
}
d = (*gch).additionalRoots.d;
{
NI i_3;
NI colontmp__3;
NI res_3;
i_3 = (NI)0;
colontmp__3 = (NI)0;
colontmp__3 = (NI)((*gch).additionalRoots.len - ((NI) 1));
res_3 = ((NI) 0);
{
while (1) {
if (!(res_3 <= colontmp__3)) goto LA13;
i_3 = res_3;
markS__system_6373(gch, d[i_3]);
res_3 += ((NI) 1);
} LA13: ;
}
}
}
static N_INLINE(NIM_BOOL, isCell__system_4975)(void* p) {
NIM_BOOL result;
nimfr_("isCell", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (NIM_BOOL)0;
nimln_(407, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = ltpercent___system_1005(((NI) 1), (*((tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ*) (p))).zeroField);
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__system_5551)(tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell) {
NIM_BOOL result;
NU u;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* t;
nimfr_("contains", "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
result = (NIM_BOOL)0;
nimln_(163, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
u = ((NU) (ptrdiff_t) (cell));
nimln_(164, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
t = cellSetGet__system_5490(s, (NU)((NU64)(u) >> (NU64)(((NI) 12))));
nimln_(165, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
{
if (!!((t == ((tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg*) NIM_NIL)))) goto LA3_;
nimln_(166, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
u = (NU)((NU64)((NU)((NU64)(u) % (NU64)(((NU) 4096)))) / (NU64)(((NU) 16)));
nimln_(167, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
result = !(((NI)((*t).bits[((NU)((NU64)(u) >> (NU64)(((NI) 6))))- 0] & (NI)((NU64)(((NI) 1)) << (NU64)((NU)(u & ((NU) 63))))) == ((NI) 0)));
}
goto LA1_;
LA3_: ;
{
nimln_(169, "/home/yyoncho/Sources/nim/Nim/lib/system/cellsets.nim");
result = NIM_FALSE;
}
LA1_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, freeCyclicCell__system_6365)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
prepareDealloc__system_6072(c);
rawDealloc__system_5255((&(*gch).region), ((void*) (c)));
}
N_LIB_PRIVATE N_NIMCALL(void, sweep__system_6369)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
{
void* x;
x = (void*)0;
(*gch).region.locked = NIM_TRUE;
{
NI s;
s = (NI)0;
{
NI h;
NI res;
h = (NI)0;
res = ((NI) 0);
{
while (1) {
tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* r;
if (!(res <= ((NI) 255))) goto LA5;
h = res;
r = (*gch).region.chunkStarts.data[(h)- 0];
{
while (1) {
NI i;
if (!!((r == ((tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*) NIM_NIL)))) goto LA7;
i = ((NI) 0);
{
while (1) {
NU w;
NI j;
if (!(i <= ((NI) 7))) goto LA9;
w = (*r).bits[(i)- 0];
j = ((NI) 0);
{
while (1) {
if (!!((w == ((NU) 0)))) goto LA11;
{
NI T16_;
if (!!(((NU)(w & ((NU) 1)) == ((NU) 0)))) goto LA14_;
T16_ = (NI)0;
T16_ = pluspercent___system_696((NI)((NU64)(i) << (NU64)(((NI) 6))), j);
s = (NI)((NI)((NU64)((*r).key) << (NU64)(((NI) 9))) | T16_);
{
NIM_BOOL T19_;
tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c;
T19_ = (NIM_BOOL)0;
T19_ = contains__system_4791((&(*gch).region.chunkStarts), s);
if (!T19_) goto LA20_;
c = ((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*) ((NI)((NU64)(s) << (NU64)(((NI) 12)))));
{
NIM_BOOL T24_;
T24_ = (NIM_BOOL)0;
T24_ = chunkUnused__system_4918(c);
if (!!(T24_)) goto LA25_;
{
NIM_BOOL T29_;
tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c_2;
NI size;
NI a;
NI limit;
T29_ = (NIM_BOOL)0;
T29_ = isSmallChunk__system_4912(c);
if (!T29_) goto LA30_;
c_2 = ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) (c));
size = (*c_2).Sup.size;
a = ((NI) (ptrdiff_t) ((*c_2).data));
limit = (NI)(a + (*c_2).acc);
{
while (1) {
NIM_BOOL T34_;
T34_ = (NIM_BOOL)0;
T34_ = ltpercent___system_1005(a, limit);
if (!T34_) goto LA33;
x = ((void*) (a));
{
NIM_BOOL T37_;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c_3;
T37_ = (NIM_BOOL)0;
T37_ = isCell__system_4975(x);
if (!T37_) goto LA38_;
c_3 = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (x));
{
NIM_BOOL T42_;
T42_ = (NIM_BOOL)0;
T42_ = contains__system_5551((&(*gch).marked), c_3);
if (!!(T42_)) goto LA43_;
freeCyclicCell__system_6365(gch, c_3);
}
LA43_: ;
}
LA38_: ;
a = pluspercent___system_696(a, size);
} LA33: ;
}
}
goto LA27_;
LA30_: ;
{
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c_4;
c_4 = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (c));
x = ((void*) ((*c_4).data));
{
NIM_BOOL T48_;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c_5;
T48_ = (NIM_BOOL)0;
T48_ = isCell__system_4975(x);
if (!T48_) goto LA49_;
c_5 = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (x));
{
NIM_BOOL T53_;
T53_ = (NIM_BOOL)0;
T53_ = contains__system_5551((&(*gch).marked), c_5);
if (!!(T53_)) goto LA54_;
freeCyclicCell__system_6365(gch, c_5);
}
LA54_: ;
}
LA49_: ;
}
LA27_: ;
}
LA25_: ;
}
LA20_: ;
}
LA14_: ;
j += ((NI) 1);
w = (NU)((NU64)(w) >> (NU64)(((NI) 1)));
} LA11: ;
}
i += ((NI) 1);
} LA9: ;
}
r = (*r).next;
} LA7: ;
}
res += ((NI) 1);
} LA5: ;
}
}
}
(*gch).region.locked = NIM_FALSE;
}
}
N_LIB_PRIVATE N_NIMCALL(void, collectCycles__system_6414)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
{
void* c;
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* it;
c = (void*)0;
acquire__coreZlocks_71((&(*gch).toDispose.lock));
it = (*gch).toDispose.head;
{
while (1) {
if (!!((it == ((tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg*) NIM_NIL)))) goto LA3;
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
colontmp_ = (NI)((*it).dataLen - ((NI) 1));
res = ((NI) 0);
{
while (1) {
if (!(res <= colontmp_)) goto LA6;
i = res;
c = (*it).d[(i)- 0];
nimGCunref(c);
res += ((NI) 1);
} LA6: ;
}
}
it = (*it).next;
} LA3: ;
}
release__coreZlocks_73((&(*gch).toDispose.lock));
}
{
while (1) {
NIM_BOOL T9_;
if (!(((NI) 0) < (*gch).zct.len)) goto LA8;
T9_ = (NIM_BOOL)0;
T9_ = collectZCT__system_6412(gch);
(void)(T9_);
} LA8: ;
}
cellsetReset__system_6187((&(*gch).marked));
d = (*gch).decStack.d;
{
NI i_2;
NI colontmp__2;
NI res_2;
i_2 = (NI)0;
colontmp__2 = (NI)0;
colontmp__2 = (NI)((*gch).decStack.len - ((NI) 1));
res_2 = ((NI) 0);
{
while (1) {
if (!(res_2 <= colontmp__2)) goto LA12;
i_2 = res_2;
markS__system_6373(gch, d[i_2]);
res_2 += ((NI) 1);
} LA12: ;
}
}
markGlobals__system_6381(gch);
sweep__system_6369(gch);
}
N_LIB_PRIVATE N_NIMCALL(NI, getOccupiedMem__system_1936)(void) {
NI result;
result = (NI)0;
result = gch__system_5793.region.occ;
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, unmarkStackAndRegisters__system_6500)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
d = (*gch).decStack.d;
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
colontmp_ = (NI)((*gch).decStack.len - ((NI) 1));
res = ((NI) 0);
{
while (1) {
if (!(res <= colontmp_)) goto LA3;
i = res;
decRef__system_5905(d[i]);
res += ((NI) 1);
} LA3: ;
}
}
(*gch).decStack.len = ((NI) 0);
}
N_LIB_PRIVATE N_NIMCALL(void, collectCTBody__system_6508)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
NI T1_;
T1_ = (NI)0;
T1_ = stackSize__system_6030();
(*gch).stat.maxStackSize = (((*gch).stat.maxStackSize >= T1_) ? (*gch).stat.maxStackSize : T1_);
prepareForInteriorPointerChecking__system_5307((&(*gch).region));
markStackAndRegisters__system_6454(gch);
(*gch).stat.maxStackCells = (((*gch).stat.maxStackCells >= (*gch).decStack.len) ? (*gch).stat.maxStackCells : (*gch).decStack.len);
(*gch).stat.stackScans += ((NI) 1);
{
NIM_BOOL T4_;
T4_ = (NIM_BOOL)0;
T4_ = collectZCT__system_6412(gch);
if (!T4_) goto LA5_;
{
NIM_BOOL T9_;
NI T10_;
NI T14_;
T9_ = (NIM_BOOL)0;
T10_ = (NI)0;
T10_ = getOccupiedMem__system_5386((&(*gch).region));
T9_ = ((*gch).cycleThreshold <= T10_);
if (T9_) goto LA11_;
T9_ = NIM_FALSE;
LA11_: ;
if (!T9_) goto LA12_;
collectCycles__system_6414(gch);
(*gch).stat.cycleCollections += ((NI) 1);
T14_ = (NI)0;
T14_ = getOccupiedMem__system_1936();
(*gch).cycleThreshold = ((((NI) 4194304) >= (NI)(T14_ * ((NI) 2))) ? ((NI) 4194304) : (NI)(T14_ * ((NI) 2)));
(*gch).stat.maxThreshold = (((*gch).stat.maxThreshold >= (*gch).cycleThreshold) ? (*gch).stat.maxThreshold : (*gch).cycleThreshold);
}
LA12_: ;
}
LA5_: ;
unmarkStackAndRegisters__system_6500(gch);
}
N_LIB_PRIVATE N_NIMCALL(void, collectCT__system_5884)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
{
NIM_BOOL T3_;
NIM_BOOL T4_;
NIM_BOOL T5_;
NIM_BOOL T7_;
NI T9_;
T3_ = (NIM_BOOL)0;
T4_ = (NIM_BOOL)0;
T5_ = (NIM_BOOL)0;
T5_ = ((*gch).zctThreshold <= (*gch).zct.len);
if (T5_) goto LA6_;
T7_ = (NIM_BOOL)0;
T7_ = NIM_TRUE;
if (!(T7_)) goto LA8_;
T9_ = (NI)0;
T9_ = getOccupiedMem__system_5386((&(*gch).region));
T7_ = ((*gch).cycleThreshold <= T9_);
LA8_: ;
T5_ = T7_;
LA6_: ;
T4_ = T5_;
if (T4_) goto LA10_;
T4_ = NIM_FALSE;
LA10_: ;
T3_ = T4_;
if (!(T3_)) goto LA11_;
T3_ = ((*gch).recGcLock == ((NI) 0));
LA11_: ;
if (!T3_) goto LA12_;
collectCTBody__system_6508(gch);
(*gch).zctThreshold = ((((NI) 500) >= (NI)((*gch).zct.len * ((NI) 2))) ? ((NI) 500) : (NI)((*gch).zct.len * ((NI) 2)));
}
LA12_: ;
}
static N_INLINE(void, addNewObjToZCT__system_6286)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* res, tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
NI L;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
{ L = (*gch).zct.len;
d = (*gch).zct.d;
{
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c;
if (!(((NI) 8) < L)) goto LA3_;
c = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
c = d[(NI)(L - ((NI) 1))];
{
NIM_BOOL T7_;
T7_ = (NIM_BOOL)0;
T7_ = lteqpercent___system_985(((NI) 8), (*c).refcount);
if (!T7_) goto LA8_;
(*c).refcount = (NI)((*c).refcount & ((NI) -5));
d[(NI)(L - ((NI) 1))] = res;
goto BeforeRet_;
}
LA8_: ;
c = d[(NI)(L - ((NI) 2))];
{
NIM_BOOL T12_;
T12_ = (NIM_BOOL)0;
T12_ = lteqpercent___system_985(((NI) 8), (*c).refcount);
if (!T12_) goto LA13_;
(*c).refcount = (NI)((*c).refcount & ((NI) -5));
d[(NI)(L - ((NI) 2))] = res;
goto BeforeRet_;
}
LA13_: ;
c = d[(NI)(L - ((NI) 3))];
{
NIM_BOOL T17_;
T17_ = (NIM_BOOL)0;
T17_ = lteqpercent___system_985(((NI) 8), (*c).refcount);
if (!T17_) goto LA18_;
(*c).refcount = (NI)((*c).refcount & ((NI) -5));
d[(NI)(L - ((NI) 3))] = res;
goto BeforeRet_;
}
LA18_: ;
c = d[(NI)(L - ((NI) 4))];
{
NIM_BOOL T22_;
T22_ = (NIM_BOOL)0;
T22_ = lteqpercent___system_985(((NI) 8), (*c).refcount);
if (!T22_) goto LA23_;
(*c).refcount = (NI)((*c).refcount & ((NI) -5));
d[(NI)(L - ((NI) 4))] = res;
goto BeforeRet_;
}
LA23_: ;
c = d[(NI)(L - ((NI) 5))];
{
NIM_BOOL T27_;
T27_ = (NIM_BOOL)0;
T27_ = lteqpercent___system_985(((NI) 8), (*c).refcount);
if (!T27_) goto LA28_;
(*c).refcount = (NI)((*c).refcount & ((NI) -5));
d[(NI)(L - ((NI) 5))] = res;
goto BeforeRet_;
}
LA28_: ;
c = d[(NI)(L - ((NI) 6))];
{
NIM_BOOL T32_;
T32_ = (NIM_BOOL)0;
T32_ = lteqpercent___system_985(((NI) 8), (*c).refcount);
if (!T32_) goto LA33_;
(*c).refcount = (NI)((*c).refcount & ((NI) -5));
d[(NI)(L - ((NI) 6))] = res;
goto BeforeRet_;
}
LA33_: ;
c = d[(NI)(L - ((NI) 7))];
{
NIM_BOOL T37_;
T37_ = (NIM_BOOL)0;
T37_ = lteqpercent___system_985(((NI) 8), (*c).refcount);
if (!T37_) goto LA38_;
(*c).refcount = (NI)((*c).refcount & ((NI) -5));
d[(NI)(L - ((NI) 7))] = res;
goto BeforeRet_;
}
LA38_: ;
c = d[(NI)(L - ((NI) 8))];
{
NIM_BOOL T42_;
T42_ = (NIM_BOOL)0;
T42_ = lteqpercent___system_985(((NI) 8), (*c).refcount);
if (!T42_) goto LA43_;
(*c).refcount = (NI)((*c).refcount & ((NI) -5));
d[(NI)(L - ((NI) 8))] = res;
goto BeforeRet_;
}
LA43_: ;
add__system_5426((&(*gch).zct), res);
}
goto LA1_;
LA3_: ;
{
d[L] = res;
(*gch).zct.len += ((NI) 1);
}
LA1_: ;
}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void*, rawNewObj__system_6301)(TNimType* typ, NI size, tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
void* result;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* res;
void* T1_;
result = (void*)0;
collectCT__system_5884(gch);
T1_ = (void*)0;
T1_ = rawAlloc__system_5126((&(*gch).region), (NI)(size + ((NI) 16)));
res = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_));
(*res).typ = typ;
(*res).refcount = ((NI) 4);
addNewObjToZCT__system_6286(res, gch);
result = cellToUsr__system_5857(res);
return result;
}
N_LIB_PRIVATE N_NIMCALL(void*, newObjNoInit)(TNimType* typ, NI size) {
void* result;
nimfr_("newObjNoInit", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
result = (void*)0;
nimln_(482, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
result = rawNewObj__system_6301(typ, size, (&gch__system_5793));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewStringNoInit)(NI space) {
NimStringDesc* result;
NI s;
void* T5_;
result = (NimStringDesc*)0;
s = space;
{
if (!(s < ((NI) 7))) goto LA3_;
s = ((NI) 7);
}
LA3_: ;
T5_ = (void*)0;
T5_ = newObjNoInit((&strDesc__system_2698), (NI)((NI)(((NI) 16) + s) + ((NI) 1)));
result = ((NimStringDesc*) (T5_));
(*result).Sup.reserved = s;
(*result).Sup.len = ((NI) 0);
return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen) {
NimStringDesc* result;
result = (NimStringDesc*)0;
{
if (!(dest == ((NimStringDesc*) NIM_NIL))) goto LA3_;
result = rawNewStringNoInit(addlen);
}
goto LA1_;
LA3_: ;
{
if (!((NI)((*dest).Sup.len + addlen) <= (NI)((*dest).Sup.reserved & ((NI) IL64(4611686018427387903))))) goto LA6_;
result = dest;
}
goto LA1_;
LA6_: ;
{
NI sp;
NI T9_;
T9_ = (NI)0;
T9_ = resize__system_6563((NI)((*dest).Sup.reserved & ((NI) IL64(4611686018427387903))));
sp = ((T9_ >= (NI)((*dest).Sup.len + addlen)) ? T9_ : (NI)((*dest).Sup.len + addlen));
result = rawNewStringNoInit(sp);
(*result).Sup.len = (*dest).Sup.len;
copyMem__system_1727(((void*) ((&(*result).data[((NI) 0)]))), ((void*) ((&(*dest).data[((NI) 0)]))), ((NI) ((NI)((*dest).Sup.len + ((NI) 1)))));
(*result).Sup.reserved = sp;
}
LA1_: ;
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, auxWriteStackTrace__system_3268)(TFrame* f, NimStringDesc** s) {
tyArray__pFdcUVk36Xt0LD9bLg3YaIQ tempFrames;
TFrame* it;
NI i;
NI total;
TFrame* b;
NI skipped;
nimZeroMem((void*)tempFrames, sizeof(tyArray__pFdcUVk36Xt0LD9bLg3YaIQ));
it = f;
i = ((NI) 0);
total = ((NI) 0);
{
while (1) {
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = !((it == ((TFrame*) NIM_NIL)));
if (!(T3_)) goto LA4_;
T3_ = (i <= ((NI) 95));
LA4_: ;
if (!T3_) goto LA2;
tempFrames[(i)- 0] = it;
i += ((NI) 1);
total += ((NI) 1);
it = (*it).prev;
} LA2: ;
}
b = it;
{
while (1) {
if (!!((it == ((TFrame*) NIM_NIL)))) goto LA6;
total += ((NI) 1);
it = (*it).prev;
} LA6: ;
}
skipped = ((NI) 0);
{
if (!(((NI) 128) < total)) goto LA9_;
skipped = (NI)((NI)((NI)(total - i) - ((NI) 32)) + ((NI) 1));
{
NI j;
NI res;
j = (NI)0;
res = ((NI) 1);
{
while (1) {
if (!(res <= skipped)) goto LA13;
j = res;
{
if (!!((b == ((TFrame*) NIM_NIL)))) goto LA16_;
b = (*b).prev;
}
LA16_: ;
res += ((NI) 1);
} LA13: ;
}
}
tempFrames[(i)- 0] = ((TFrame*) NIM_NIL);
i += ((NI) 1);
}
LA9_: ;
{
while (1) {
NIM_BOOL T20_;
T20_ = (NIM_BOOL)0;
T20_ = !((b == ((TFrame*) NIM_NIL)));
if (!(T20_)) goto LA21_;
T20_ = (i <= ((NI) 127));
LA21_: ;
if (!T20_) goto LA19;
tempFrames[(i)- 0] = b;
i += ((NI) 1);
b = (*b).prev;
} LA19: ;
}
{
NI j_2;
NI colontmp_;
NI res_2;
j_2 = (NI)0;
colontmp_ = (NI)0;
colontmp_ = (NI)(i - ((NI) 1));
res_2 = colontmp_;
{
while (1) {
if (!(((NI) 0) <= res_2)) goto LA24;
j_2 = res_2;
{
NimStringDesc* T29_;
if (!(tempFrames[(j_2)- 0] == ((TFrame*) NIM_NIL))) goto LA27_;
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 1));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_12));
T29_ = NIM_NIL;
T29_ = dollar___systemZdollars_8(skipped);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T29_ ? T29_->Sup.len : 0) + 0));
appendString((*s), T29_);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 20));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_32));
}
goto LA25_;
LA27_: ;
{
NI oldLenX60gensym93_;
oldLenX60gensym93_ = ((*s) ? (*s)->Sup.len : 0);
add__system_2594(s, (*tempFrames[(j_2)- 0]).filename);
{
if (!(((NI) 0) < (*tempFrames[(j_2)- 0]).line)) goto LA33_;
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 1));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_12));
addInt__stdZprivateZdigitsutils_189(s, (*tempFrames[(j_2)- 0]).line);
{
if (!NIM_FALSE) goto LA37_;
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 2));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_20));
addInt__stdZprivateZdigitsutils_189(s, ((NI) 0));
}
LA37_: ;
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 1));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_21));
}
LA33_: ;
{
NI kX60gensym93_;
NI colontmp__2;
NI res_3;
kX60gensym93_ = (NI)0;
colontmp__2 = (NI)0;
colontmp__2 = ((((NI) 1) >= (NI)(((NI) 25) - (NI)(((*s) ? (*s)->Sup.len : 0) - oldLenX60gensym93_))) ? ((NI) 1) : (NI)(((NI) 25) - (NI)(((*s) ? (*s)->Sup.len : 0) - oldLenX60gensym93_)));
res_3 = ((NI) 1);
{
while (1) {
if (!(res_3 <= colontmp__2)) goto LA41;
kX60gensym93_ = res_3;
unsureAsgnRef((void**) (&(*s)), addChar((*s), 32));
res_3 += ((NI) 1);
} LA41: ;
}
}
add__system_2594(s, (*tempFrames[(j_2)- 0]).procname);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 1));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_22));
}
LA25_: ;
res_2 -= ((NI) 1);
} LA24: ;
}
}
}
N_LIB_PRIVATE N_NIMCALL(void, rawWriteStackTrace__system_3376)(NimStringDesc** s) {
{
if (!(framePtr__system_3094 == ((TFrame*) NIM_NIL))) goto LA3_;
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 29));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_2));
}
goto LA1_;
LA3_: ;
{
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 34));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_31));
auxWriteStackTrace__system_3268(framePtr__system_3094, s);
}
LA1_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, writeStackTrace__system_2295)(void) {
NimStringDesc* s;
s = ((NimStringDesc*) NIM_NIL);
rawWriteStackTrace__system_3376((&s));
showErrorMessage2__system_3074(s);
}
N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_3527)(void) {
NimStringDesc* msg;
NimStringDesc* T1_;
NimStringDesc* T2_;
writeStackTrace__system_2295();
T1_ = NIM_NIL;
T2_ = NIM_NIL;
T2_ = dollar___systemZdollars_8(((NI) 2000));
T1_ = rawNewString((T2_ ? T2_->Sup.len : 0) + 167);
appendString(T1_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_33));
appendString(T1_, T2_);
appendString(T1_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_34));
msg = T1_;
showErrorMessage2__system_3074(msg);
exit(((NI) 1));
}
static N_INLINE(void, nimFrame)(TFrame* s) {
{
if (!(framePtr__system_3094 == ((TFrame*) NIM_NIL))) goto LA3_;
(*s).calldepth = ((NI16) 0);
}
goto LA1_;
LA3_: ;
{
(*s).calldepth = (NI16)((*framePtr__system_3094).calldepth + ((NI16) 1));
}
LA1_: ;
(*s).prev = framePtr__system_3094;
framePtr__system_3094 = s;
{
if (!((*s).calldepth == ((NI16) 2000))) goto LA8_;
callDepthLimitReached__system_3527();
}
LA8_: ;
}
static N_INLINE(NI, roundup__system_4262)(NI x, NI v) {
NI result;
nimfr_("roundup", "/home/yyoncho/Sources/nim/Nim/lib/system/osalloc.nim");
result = (NI)0;
nimln_(11, "/home/yyoncho/Sources/nim/Nim/lib/system/osalloc.nim");
result = (NI)((NI)(x + (NI)(v - ((NI) 1))) & (NI)((NU64) ~((NI)(v - ((NI) 1)))));
popFrame();
return result;
}
static N_INLINE(void, mappingSearch__system_4410)(NI* r, NI* fl, NI* sl) {
NI t;
NI T1_;
NI T2_;
nimfr_("mappingSearch", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(165, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T1_ = (NI)0;
T1_ = msbit__system_4385(((NU32) ((*r))));
T2_ = (NI)0;
T2_ = roundup__system_4262((NI)((NU64)(((NI) 1)) << (NU64)((NI)(T1_ - ((NI) 5)))), ((NI) 4096));
t = (NI)(T2_ - ((NI) 1));
nimln_(166, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*r) = (NI)((*r) + t);
nimln_(167, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*r) = (NI)((*r) & (NI)((NU64) ~(t)));
nimln_(168, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*r) = (((*r) <= ((NI) 1056964608)) ? (*r) : ((NI) 1056964608));
nimln_(169, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*fl) = msbit__system_4385(((NU32) ((*r))));
nimln_(170, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*sl) = (NI)((NI)((NI64)((*r)) >> (NU64)((NI)((*fl) - ((NI) 5)))) - ((NI) 32));
nimln_(171, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*fl) -= ((NI) 6);
popFrame();
}
static N_INLINE(NI, lsbit__system_4393)(NU32 x) {
NI result;
nimfr_("lsbit", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (NI)0;
nimln_(153, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = msbit__system_4385((NU32)(x & (NU32)((NU32)((NU32)((NU32) ~(x))) + (NU32)(((NU32) 1)))));
popFrame();
return result;
}
static N_INLINE(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, findSuitableBlock__system_4442)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI* fl, NI* sl) {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* result;
NU32 tmp;
nimfr_("findSuitableBlock", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*)0;
nimln_(186, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
tmp = (NU32)((*a).slBitmap[((*fl))- 0] & (NU32)((NU64)(((NU32) IL64(4294967295))) << (NU64)((*sl))));
nimln_(187, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL);
nimln_(188, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!!((tmp == ((NU32) 0)))) goto LA3_;
nimln_(189, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*sl) = lsbit__system_4393(tmp);
nimln_(190, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (*a).matrix[((*fl))- 0][((*sl))- 0];
}
goto LA1_;
LA3_: ;
{
nimln_(192, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*fl) = lsbit__system_4393((NU32)((*a).flBitmap & (NU32)((NU64)(((NU32) IL64(4294967295))) << (NU64)((NI)((*fl) + ((NI) 1))))));
nimln_(193, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!(((NI) 0) < (*fl))) goto LA8_;
nimln_(194, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*sl) = lsbit__system_4393((*a).slBitmap[((*fl))- 0]);
nimln_(195, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (*a).matrix[((*fl))- 0][((*sl))- 0];
}
LA8_: ;
}
LA1_: ;
popFrame();
return result;
}
static N_INLINE(void*, osTryAllocPages__system_4285)(NI size) {
void* result;
nimfr_("osTryAllocPages", "/home/yyoncho/Sources/nim/Nim/lib/system/osalloc.nim");
result = (void*)0;
nimln_(148, "/home/yyoncho/Sources/nim/Nim/lib/system/osalloc.nim");
result = mmap(NIM_NIL, ((size_t) (size)), ((int) 3), ((int) 34), ((int) -1), ((NI) 0));
nimln_(150, "/home/yyoncho/Sources/nim/Nim/lib/system/osalloc.nim");
{
if (!(result == ((void*) (((NI) -1))))) goto LA3_;
result = NIM_NIL;
}
LA3_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, addHeapLink__system_4609)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* p, NI size) {
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* it;
nimfr_("addHeapLink", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(298, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
it = (&(*a).heapLinks);
{
nimln_(299, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
while (1) {
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = !((it == ((tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg*) NIM_NIL)));
if (!(T3_)) goto LA4_;
T3_ = (((NI) 30) <= (*it).len);
LA4_: ;
if (!T3_) goto LA2;
it = (*it).next;
} LA2: ;
}
nimln_(300, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* n;
void* T9_;
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* colontmp_;
NI colontmp__2;
if (!(it == ((tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg*) NIM_NIL))) goto LA7_;
nimln_(301, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T9_ = (void*)0;
T9_ = llAlloc__system_4542(a, ((NI) 496));
n = ((tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg*) (T9_));
nimln_(302, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*n).next = (*a).heapLinks.next;
nimln_(303, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).heapLinks.next = n;
nimln_(304, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
colontmp_ = p;
colontmp__2 = size;
(*n).chunks[(((NI) 0))- 0].Field0 = colontmp_;
(*n).chunks[(((NI) 0))- 0].Field1 = colontmp__2;
nimln_(305, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*n).len = ((NI) 1);
}
goto LA5_;
LA7_: ;
{
NI L;
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* colontmp__3;
NI colontmp__4;
nimln_(307, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
L = (*it).len;
nimln_(308, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
colontmp__3 = p;
colontmp__4 = size;
(*it).chunks[(L)- 0].Field0 = colontmp__3;
(*it).chunks[(L)- 0].Field1 = colontmp__4;
nimln_(309, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*it).len += ((NI) 1);
}
LA5_: ;
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, requestOsChunks__system_5005)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size) {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* result;
NI size_2;
NI nxt;
tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* next;
NI lastSize;
NI prv;
tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* prev;
nimfr_("requestOsChunks", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*)0;
nimln_(433, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NI usedMem;
if (!!((*a).blockChunkSizeIncrease)) goto LA3_;
nimln_(434, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
usedMem = (*a).occ;
nimln_(438, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!(usedMem < ((NI) 65536))) goto LA7_;
nimln_(439, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).nextChunkSize = ((NI) 16384);
}
goto LA5_;
LA7_: ;
{
NI T10_;
nimln_(441, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T10_ = (NI)0;
T10_ = roundup__system_4262((NI)((NI64)(usedMem) >> (NU64)(((NI) 2))), ((NI) 4096));
(*a).nextChunkSize = ((T10_ <= (NI)((*a).nextChunkSize * ((NI) 2))) ? T10_ : (NI)((*a).nextChunkSize * ((NI) 2)));
nimln_(442, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).nextChunkSize = (((*a).nextChunkSize <= ((NI) 1056964608)) ? (*a).nextChunkSize : ((NI) 1056964608));
}
LA5_: ;
}
LA3_: ;
nimln_(444, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
size_2 = size;
nimln_(445, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
void* T15_;
if (!((*a).nextChunkSize < size_2)) goto LA13_;
nimln_(446, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T15_ = (void*)0;
T15_ = osAllocPages__system_4282(size_2);
result = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (T15_));
}
goto LA11_;
LA13_: ;
{
void* T17_;
nimln_(448, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T17_ = (void*)0;
T17_ = osTryAllocPages__system_4285((*a).nextChunkSize);
result = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (T17_));
nimln_(449, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
void* T22_;
if (!(result == ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL))) goto LA20_;
nimln_(450, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T22_ = (void*)0;
T22_ = osAllocPages__system_4282(size_2);
result = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (T22_));
nimln_(451, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).blockChunkSizeIncrease = NIM_TRUE;
}
goto LA18_;
LA20_: ;
{
nimln_(453, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
size_2 = (*a).nextChunkSize;
}
LA18_: ;
}
LA11_: ;
nimln_(455, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
incCurrMem__system_4525(a, size_2);
nimln_(456, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).freeMem += size_2;
nimln_(457, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
addHeapLink__system_4609(a, result, size_2);
nimln_(467, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).next = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL);
nimln_(468, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).prev = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL);
nimln_(469, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).Sup.size = size_2;
nimln_(471, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nxt = pluspercent___system_696(((NI) (ptrdiff_t) (result)), size_2);
nimln_(473, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
next = ((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*) (nxt));
nimln_(474, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NI T26_;
NIM_BOOL T27_;
T26_ = (NI)0;
T26_ = pageIndex__system_4987(next);
T27_ = (NIM_BOOL)0;
T27_ = contains__system_4791((&(*a).chunkStarts), T26_);
if (!T27_) goto LA28_;
nimln_(476, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*next).prevSize = (NI)(size_2 | (NI)((*next).prevSize & ((NI) 1)));
}
LA28_: ;
nimln_(478, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!!(((*a).lastSize == ((NI) 0)))) goto LA32_;
lastSize = (*a).lastSize;
}
goto LA30_;
LA32_: ;
{
lastSize = ((NI) 4096);
}
LA30_: ;
nimln_(479, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
prv = minuspercent___system_716(((NI) (ptrdiff_t) (result)), lastSize);
nimln_(481, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
prev = ((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*) (prv));
nimln_(482, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NIM_BOOL T37_;
NI T38_;
T37_ = (NIM_BOOL)0;
T38_ = (NI)0;
T38_ = pageIndex__system_4987(prev);
T37_ = contains__system_4791((&(*a).chunkStarts), T38_);
if (!(T37_)) goto LA39_;
T37_ = ((*prev).size == lastSize);
LA39_: ;
if (!T37_) goto LA40_;
nimln_(484, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).Sup.prevSize = (NI)(lastSize | (NI)((*result).Sup.prevSize & ((NI) 1)));
}
goto LA35_;
LA40_: ;
{
nimln_(486, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).Sup.prevSize = (NI)(((NI) 0) | (NI)((*result).Sup.prevSize & ((NI) 1)));
}
LA35_: ;
nimln_(488, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).lastSize = size_2;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, splitChunk__system_5056)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c, NI size) {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* rest;
nimfr_("splitChunk", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(548, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
rest = splitChunk2__system_5051(a, c, size);
nimln_(549, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
addChunkToMatrix__system_4516(a, rest);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, removeChunkFromMatrix2__system_4507)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* b, NI fl, NI sl) {
nimfr_("removeChunkFromMatrix2", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
nimln_(215, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).matrix[(fl)- 0][(sl)- 0] = (*b).next;
nimln_(216, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!!(((*a).matrix[(fl)- 0][(sl)- 0] == ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL)))) goto LA3_;
nimln_(217, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*(*a).matrix[(fl)- 0][(sl)- 0]).prev = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL);
}
goto LA1_;
LA3_: ;
{
nimln_(198, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
clearBit__system_4403(sl, (&(*a).slBitmap[(fl)- 0]));
nimln_(219, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
nimln_(199, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
if (!((*a).slBitmap[(fl)- 0] == ((NU32) 0))) goto LA8_;
nimln_(201, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
clearBit__system_4403(fl, (&(*a).flBitmap));
}
LA8_: ;
}
LA1_: ;
nimln_(220, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*b).prev = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL);
nimln_(221, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*b).next = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, getBigChunk__system_5082)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size) {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* result;
NI size_2;
NI fl;
NI sl;
NI T19_;
nimfr_("getBigChunk", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*)0;
nimln_(588, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
size_2 = size;
nimln_(589, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
fl = ((NI) 0);
nimln_(590, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
sl = ((NI) 0);
nimln_(591, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
mappingSearch__system_4410((&size_2), (&fl), (&sl));
nimln_(593, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = findSuitableBlock__system_4442((&(*a)), (&fl), (&sl));
nimln_(594, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!(result == ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL))) goto LA3_;
nimln_(595, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!(size_2 < ((NI) 524288))) goto LA7_;
nimln_(596, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = requestOsChunks__system_5005(a, ((NI) 524288));
nimln_(597, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
splitChunk__system_5056(a, result, size_2);
}
goto LA5_;
LA7_: ;
{
nimln_(599, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = requestOsChunks__system_5005(a, size_2);
nimln_(601, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!(size_2 < (*result).Sup.size)) goto LA12_;
nimln_(602, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
splitChunk__system_5056(a, result, size_2);
}
LA12_: ;
}
LA5_: ;
}
goto LA1_;
LA3_: ;
{
nimln_(604, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
removeChunkFromMatrix2__system_4507(a, result, fl, sl);
nimln_(605, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!((NI)(size_2 + ((NI) 4096)) <= (*result).Sup.size)) goto LA17_;
nimln_(606, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
splitChunk__system_5056(a, result, size_2);
}
LA17_: ;
}
LA1_: ;
nimln_(608, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).Sup.prevSize = ((NI) 1);
nimln_(611, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T19_ = (NI)0;
T19_ = pageIndex__system_4987((*((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w**) (&(result)))));
incl__system_4822(a, (&(*a).chunkStarts), T19_);
nimln_(612, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).freeMem -= size_2;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*, getSmallChunk__system_5105)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a) {
tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* result;
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* res;
nimfr_("getSmallChunk", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*)0;
nimln_(635, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
res = getBigChunk__system_5082(a, ((NI) 4096));
nimln_(638, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) (res));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, getHugeChunk__system_5097)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size) {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* result;
void* T1_;
NI T2_;
nimfr_("getHugeChunk", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*)0;
nimln_(615, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T1_ = (void*)0;
T1_ = osAllocPages__system_4282(size);
result = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (T1_));
nimln_(616, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
incCurrMem__system_4525(a, size);
nimln_(620, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).next = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL);
nimln_(621, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).prev = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) NIM_NIL);
nimln_(622, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).Sup.size = size;
nimln_(624, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).Sup.prevSize = ((NI) 1);
nimln_(625, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T2_ = (NI)0;
T2_ = pageIndex__system_4987((*((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w**) (&(result)))));
incl__system_4822(a, (&(*a).chunkStarts), T2_);
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*, allocAvlNode__system_4584)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI key, NI upperBound) {
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* result;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* bottom;
nimfr_("allocAvlNode", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*)0;
nimln_(274, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!!(((*a).freeAvlNodes == ((tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*) NIM_NIL)))) goto LA3_;
nimln_(275, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (*a).freeAvlNodes;
nimln_(276, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).freeAvlNodes = (*(*a).freeAvlNodes).link[(((NI) 0))- 0];
}
goto LA1_;
LA3_: ;
{
void* T6_;
nimln_(278, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T6_ = (void*)0;
T6_ = llAlloc__system_4542(a, ((NI) 40));
result = ((tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*) (T6_));
}
LA1_: ;
nimln_(281, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).key = key;
nimln_(282, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).upperBound = upperBound;
nimln_(283, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
bottom = getBottom__system_4568(a);
nimln_(284, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).link[(((NI) 0))- 0] = bottom;
nimln_(285, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).link[(((NI) 1))- 0] = bottom;
nimln_(286, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*result).level = ((NI) 1);
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, add__system_4715)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t, NI key, NI upperBound) {
nimfr_("add", "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
nimln_(55, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
{
if (!((*(*t)).link[(((NI) 0))- 0] == (*t))) goto LA3_;
nimln_(56, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
(*t) = allocAvlNode__system_4584(a, key, upperBound);
}
goto LA1_;
LA3_: ;
{
nimln_(58, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
{
NIM_BOOL T8_;
T8_ = (NIM_BOOL)0;
T8_ = ltpercent___system_1005(key, (*(*t)).key);
if (!T8_) goto LA9_;
nimln_(62, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
add__system_4715(a, &(*(*t)).link[(((NI) 0))- 0], key, upperBound);
}
goto LA6_;
LA9_: ;
{
NIM_BOOL T12_;
nimln_(63, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
T12_ = (NIM_BOOL)0;
T12_ = ltpercent___system_1005((*(*t)).key, key);
if (!T12_) goto LA13_;
nimln_(67, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
add__system_4715(a, &(*(*t)).link[(((NI) 1))- 0], key, upperBound);
}
goto LA6_;
LA13_: ;
{
}
LA6_: ;
nimln_(70, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
skew__system_4705(t);
nimln_(71, "/home/yyoncho/Sources/nim/Nim/lib/system/avltree.nim");
split__system_4708(t);
}
LA1_: ;
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void*, rawAlloc__system_5126)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI requestedSize) {
void* result;
NI size;
nimfr_("rawAlloc", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (void*)0;
nimln_(752, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
size = roundup__system_4262(requestedSize, ((NI) 16));
nimln_(757, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NI s;
tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c;
if (!(size <= ((NI) 4032))) goto LA3_;
nimln_(759, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
s = (NI)(size / ((NI) 16));
nimln_(760, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
c = (*a).freeSmallChunks[(s)- 0];
nimln_(761, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!(c == ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) NIM_NIL))) goto LA7_;
nimln_(762, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
c = getSmallChunk__system_5105(a);
nimln_(763, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c).freeList = ((tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ*) NIM_NIL);
nimln_(765, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c).Sup.size = size;
nimln_(766, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c).acc = size;
nimln_(767, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c).free = (NI)(((NI) 4032) - size);
nimln_(768, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c).next = ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) NIM_NIL);
nimln_(769, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c).prev = ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) NIM_NIL);
nimln_(770, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
listAdd__system_5143(&(*a).freeSmallChunks[(s)- 0], c);
nimln_(771, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = ((void*) ((*c).data));
}
goto LA5_;
LA7_: ;
{
nimln_(779, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
NI T14_;
if (!((*c).freeList == ((tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ*) NIM_NIL))) goto LA12_;
nimln_(782, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T14_ = (NI)0;
T14_ = pluspercent___system_696(((NI) (ptrdiff_t) ((*c).data)), (*c).acc);
result = ((void*) (T14_));
nimln_(783, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c).acc += size;
}
goto LA10_;
LA12_: ;
{
nimln_(785, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = ((void*) ((*c).freeList));
nimln_(788, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c).freeList = (*(*c).freeList).next;
}
LA10_: ;
nimln_(789, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*c).free -= size;
}
LA5_: ;
nimln_(793, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!((*c).free < size)) goto LA18_;
nimln_(795, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
listRemove__system_5196(&(*a).freeSmallChunks[(s)- 0], c);
}
LA18_: ;
nimln_(800, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).occ += size;
}
goto LA1_;
LA3_: ;
{
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c_2;
NI T30_;
nimln_(803, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
size = (NI)(requestedSize + ((NI) 32));
nimln_(805, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!(((NI) 1056964609) <= size)) goto LA23_;
c_2 = getHugeChunk__system_5097(a, size);
}
goto LA21_;
LA23_: ;
{
nimln_(806, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
c_2 = getBigChunk__system_5082(a, size);
}
LA21_: ;
nimln_(809, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = ((void*) ((*c_2).data));
nimln_(812, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
{
if (!((*a).root == ((tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*) NIM_NIL))) goto LA28_;
(*a).root = getBottom__system_4568(a);
}
LA28_: ;
nimln_(813, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T30_ = (NI)0;
T30_ = pluspercent___system_696(((NI) (ptrdiff_t) (result)), size);
add__system_4715(a, &(*a).root, ((NI) (ptrdiff_t) (result)), T30_);
nimln_(814, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*a).occ += (*c_2).Sup.size;
}
LA1_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void*, alloc__system_5342)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* allocator, NI size) {
void* result;
NI T1_;
nimfr_("alloc", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (void*)0;
nimln_(950, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = rawAlloc__system_5126(allocator, (NI)(((NI) (size)) + ((NI) 16)));
nimln_(951, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
(*((tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ*) (result))).zeroField = ((NI) 1);
nimln_(953, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
T1_ = (NI)0;
T1_ = pluspercent___system_696(((NI) (ptrdiff_t) (result)), ((NI) 16));
result = ((void*) (T1_));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void*, alloc0__system_5346)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* allocator, NI size) {
void* result;
nimfr_("alloc0", "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = (void*)0;
nimln_(959, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
result = alloc__system_5342(allocator, size);
nimln_(960, "/home/yyoncho/Sources/nim/Nim/lib/system/alloc.nim");
zeroMem__system_1724(result, size);
popFrame();
return result;
}
N_LIB_PRIVATE N_NOCONV(void*, alloc0Impl__system_1745)(NI size) {
void* result;
result = (void*)0;
result = alloc0__system_5346((&gch__system_5793.region), size);
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, init__system_5452)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, NI cap) {
void* T1_;
nimfr_("init", "/home/yyoncho/Sources/nim/Nim/lib/system/cellseqs_v1.nim");
nimln_(35, "/home/yyoncho/Sources/nim/Nim/lib/system/cellseqs_v1.nim");
(*s).len = ((NI) 0);
nimln_(36, "/home/yyoncho/Sources/nim/Nim/lib/system/cellseqs_v1.nim");
(*s).cap = cap;
nimln_(37, "/home/yyoncho/Sources/nim/Nim/lib/system/cellseqs_v1.nim");
T1_ = (void*)0;
T1_ = alloc0Impl__system_1745(((NI) ((NI)(cap * ((NI) 8)))));
(*s).d = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g**) (T1_));
popFrame();
}
static N_INLINE(NI, atomicInc__system_2306)(NI* memLoc, NI x) {
NI result;
result = (NI)0;
result = __atomic_add_fetch(memLoc, x, __ATOMIC_SEQ_CST);
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, initGC__system_2684)(void) {
NI T1_;
nimfr_("initGC", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
nimln_(313, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
gch__system_5793.cycleThreshold = ((NI) 4194304);
nimln_(314, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
gch__system_5793.zctThreshold = ((NI) 500);
nimln_(315, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
gch__system_5793.stat.stackScans = ((NI) 0);
nimln_(316, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
gch__system_5793.stat.cycleCollections = ((NI) 0);
nimln_(317, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
gch__system_5793.stat.maxThreshold = ((NI) 0);
nimln_(318, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
gch__system_5793.stat.maxStackSize = ((NI) 0);
nimln_(319, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
gch__system_5793.stat.maxStackCells = ((NI) 0);
nimln_(320, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
gch__system_5793.stat.cycleTableSize = ((NI) 0);
nimln_(322, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
init__system_5452((&gch__system_5793.zct), ((NI) 1024));
nimln_(323, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
init__system_5452((&gch__system_5793.tempStack), ((NI) 1024));
nimln_(324, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
init__system_5452((&gch__system_5793.decStack), ((NI) 1024));
nimln_(325, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
init__system_5458((&gch__system_5793.marked));
nimln_(326, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
init__system_5452((&gch__system_5793.additionalRoots), ((NI) 1024));
nimln_(328, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
init__system_6184((&gch__system_5793.toDispose));
nimln_(329, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
T1_ = (NI)0;
T1_ = atomicInc__system_2306((&gHeapidGenerator__system_6126), ((NI) 1));
gch__system_5793.gcThreadId = (NI)(T1_ - ((NI) 1));
popFrame();
}
static N_NIMCALL(void, Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA)(void* p, NI op) {
tyObject_Env_systemdotnim_system___diB2NTuAIWY0FO9c5IUJRGg* a;
a = (tyObject_Env_systemdotnim_system___diB2NTuAIWY0FO9c5IUJRGg*)p;
}
static N_NIMCALL(void, Marker_tySequence__aNpJjaoUowCQc7fBn3wtDQ)(void* p, NI op) {
tySequence__aNpJjaoUowCQc7fBn3wtDQ* a;
NI T1_;
a = (tySequence__aNpJjaoUowCQc7fBn3wtDQ*)p;
T1_ = (NI)0;
for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
nimGCvisit((void*)a->data[T1_].ClE_0, op);
}
}
static N_NIMCALL(void, TM__Q5wkpxktOdTGvlSRo9bzt9aw_36)(void) {
nimGCvisit((void*)threadDestructionHandlers__system_2830, 0);
}
N_LIB_PRIVATE N_NIMCALL(void, nimRegisterThreadLocalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc) {
nimfr_("nimRegisterThreadLocalMarker", "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
nimln_(478, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
{
if (!(threadLocalMarkersLen <= ((NI) 3499))) goto LA3_;
nimln_(479, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
threadLocalMarkers[(threadLocalMarkersLen)- 0] = markerProc;
nimln_(480, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
threadLocalMarkersLen += ((NI) 1);
}
goto LA1_;
LA3_: ;
{
nimln_(482, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
rawWrite(stderr, "[GC] cannot register thread local variable; too many thread local variables");
nimln_(483, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
exit(((NI) 1));
}
LA1_: ;
popFrame();
}
static N_NIMCALL(void, TM__Q5wkpxktOdTGvlSRo9bzt9aw_37)(void) {
nimGCvisit((void*)currException__system_3096, 0);
}
static N_INLINE(void, GC_disable__system_2549)(void) {
gch__system_5793.recGcLock += ((NI) 1);
}
static N_NIMCALL(void, Marker_tyRef__S8DV6hfcgC9c0IiUsAoR29cQ)(void* p, NI op) {
tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ* a;
a = (tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ*)p;
nimGCvisit((void*)(*a).Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
static N_INLINE(void, GC_enable__system_2550)(void) {
{
tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ* T5_;
NimStringDesc* T6_;
if (!(gch__system_5793.recGcLock <= ((NI) 0))) goto LA3_;
T5_ = NIM_NIL;
T5_ = (tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ*) newObj((&NTIrefassertiondefect__S8DV6hfcgC9c0IiUsAoR29cQ_), sizeof(tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ));
(*T5_).Sup.Sup.Sup.m_type = (&NTIassertiondefect__PtYxPmY5X0dorfvxAFbJpQ_);
(*T5_).Sup.Sup.name = "AssertionDefect";
T6_ = NIM_NIL;
T6_ = (*T5_).Sup.Sup.message; (*T5_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_46));
if (T6_) nimGCunrefNoCycle(T6_);
asgnRef((void**) (&(*T5_).Sup.Sup.parent), ((Exception*) NIM_NIL));
raiseExceptionEx((Exception*)T5_, "AssertionDefect", "GC_enable", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim", 895);
}
LA3_: ;
gch__system_5793.recGcLock -= ((NI) 1);
}
N_LIB_PRIVATE N_NOCONV(void, signalHandler)(int sign) {
NimStringDesc* buf;
tyProc__ZEo3s9cIqJYP74f7GMZM2FA T26_;
int T27_;
GC_disable__system_2549();
buf = rawNewString(((NI) 2000));
rawWriteStackTrace__system_3376((&buf));
{
if (!(sign == ((int) 2))) goto LA3_;
buf = resizeString(buf, 31);
appendString(buf, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_38));
}
goto LA1_;
LA3_: ;
{
if (!(sign == ((int) 11))) goto LA6_;
buf = resizeString(buf, 61);
appendString(buf, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_39));
}
goto LA1_;
LA6_: ;
{
if (!(sign == ((int) 6))) goto LA9_;
buf = resizeString(buf, 31);
appendString(buf, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_40));
}
goto LA1_;
LA9_: ;
{
if (!(sign == ((int) 8))) goto LA12_;
buf = resizeString(buf, 26);
appendString(buf, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_41));
}
goto LA1_;
LA12_: ;
{
if (!(sign == ((int) 4))) goto LA15_;
buf = resizeString(buf, 27);
appendString(buf, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_42));
}
goto LA1_;
LA15_: ;
{
if (!NIM_FALSE) goto LA18_;
buf = resizeString(buf, 60);
appendString(buf, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_43));
}
goto LA1_;
LA18_: ;
{
{
{
if (!(sign == ((int) 13))) goto LA24_;
buf = resizeString(buf, 22);
appendString(buf, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_44));
goto LA21;
}
LA24_: ;
buf = resizeString(buf, 15);
appendString(buf, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_45));
} LA21: ;
}
LA1_: ;
showErrorMessage2__system_3074(buf);
GC_enable__system_2550();
T26_ = (tyProc__ZEo3s9cIqJYP74f7GMZM2FA)0;
T26_ = signal(sign, ((tyProc__ZEo3s9cIqJYP74f7GMZM2FA) 0));
T27_ = (int)0;
T27_ = raise(sign);
(void)(T27_);
}
N_LIB_PRIVATE N_NIMCALL(void, registerSignalHandler__system_3556)(void) {
tyProc__ZEo3s9cIqJYP74f7GMZM2FA T1_;
tyProc__ZEo3s9cIqJYP74f7GMZM2FA T2_;
tyProc__ZEo3s9cIqJYP74f7GMZM2FA T3_;
tyProc__ZEo3s9cIqJYP74f7GMZM2FA T4_;
tyProc__ZEo3s9cIqJYP74f7GMZM2FA T5_;
tyProc__ZEo3s9cIqJYP74f7GMZM2FA T6_;
T1_ = (tyProc__ZEo3s9cIqJYP74f7GMZM2FA)0;
T1_ = signal(((int) 2), signalHandler);
T2_ = (tyProc__ZEo3s9cIqJYP74f7GMZM2FA)0;
T2_ = signal(((int) 11), signalHandler);
T3_ = (tyProc__ZEo3s9cIqJYP74f7GMZM2FA)0;
T3_ = signal(((int) 6), signalHandler);
T4_ = (tyProc__ZEo3s9cIqJYP74f7GMZM2FA)0;
T4_ = signal(((int) 8), signalHandler);
T5_ = (tyProc__ZEo3s9cIqJYP74f7GMZM2FA)0;
T5_ = signal(((int) 4), signalHandler);
T6_ = (tyProc__ZEo3s9cIqJYP74f7GMZM2FA)0;
T6_ = signal(((int) 13), SIG_IGN);
}
N_LIB_PRIVATE N_NOCONV(void, colonanonymous___system_5817)(void) {
pthread_mutex_destroy((&heapLock__system_5816));
}
N_LIB_PRIVATE N_NIMCALL(NI, getRefcount)(void* p) {
NI result;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
nimfr_("internRefcount", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
result = (NI)0;
nimln_(184, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
T1_ = usrToCell__system_5860(p);
result = (NI)((NI64)((*T1_).refcount) >> (NU64)(((NI) 3)));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc) {
nimfr_("nimRegisterGlobalMarker", "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
nimln_(470, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
{
if (!(globalMarkersLen <= ((NI) 3499))) goto LA3_;
nimln_(471, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
globalMarkers[(globalMarkersLen)- 0] = markerProc;
nimln_(472, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
globalMarkersLen += ((NI) 1);
}
goto LA1_;
LA3_: ;
{
nimln_(474, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
rawWrite(stderr, "[GC] cannot register global variable; too many global variables");
nimln_(475, "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
exit(((NI) 1));
}
LA1_: ;
popFrame();
}
static N_NIMCALL(void, Marker_tyRef__obtqFYsgt5FfJISwpnmjwA)(void* p, NI op) {
tyObject_DivByZeroDefect__n3A4gjRrFZBuNnTYx1h9a8w* a;
a = (tyObject_DivByZeroDefect__n3A4gjRrFZBuNnTYx1h9a8w*)p;
nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.up, op);
}
static N_INLINE(void, sysFatal__system_3956)(NimStringDesc* message) {
tyObject_DivByZeroDefect__n3A4gjRrFZBuNnTYx1h9a8w* T1_;
NimStringDesc* T2_;
nimfr_("sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
T1_ = NIM_NIL;
T1_ = (tyObject_DivByZeroDefect__n3A4gjRrFZBuNnTYx1h9a8w*) newObj((&NTIrefdivbyzerodefect__obtqFYsgt5FfJISwpnmjwA_), sizeof(tyObject_DivByZeroDefect__n3A4gjRrFZBuNnTYx1h9a8w));
(*T1_).Sup.Sup.Sup.Sup.m_type = (&NTIdivbyzerodefect__n3A4gjRrFZBuNnTYx1h9a8w_);
(*T1_).Sup.Sup.Sup.name = "DivByZeroDefect";
T2_ = NIM_NIL;
T2_ = (*T1_).Sup.Sup.Sup.message; (*T1_).Sup.Sup.Sup.message = copyStringRC1(message);
if (T2_) nimGCunrefNoCycle(T2_);
nimln_(53, "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
raiseExceptionEx((Exception*)T1_, "DivByZeroDefect", "sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim", 53);
popFrame();
}
N_LIB_PRIVATE N_NOINLINE(void, raiseDivByZero)(void) {
sysFatal__system_3956(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_47));
}
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError4)(NI l1, NI h1, NI h2) {
NimStringDesc* T1_;
NimStringDesc* T2_;
NimStringDesc* T3_;
NimStringDesc* T4_;
T1_ = NIM_NIL;
T2_ = NIM_NIL;
T2_ = dollar___systemZdollars_8(l1);
T3_ = NIM_NIL;
T3_ = dollar___systemZdollars_8(h1);
T4_ = NIM_NIL;
T4_ = dollar___systemZdollars_8((NI)(h2 - ((NI) 1)));
T1_ = rawNewString((T2_ ? T2_->Sup.len : 0) + (T3_ ? T3_->Sup.len : 0) + (T4_ ? T4_->Sup.len : 0) + 33);
appendString(T1_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_48));
appendString(T1_, T2_);
appendString(T1_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_49));
appendString(T1_, T3_);
appendString(T1_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_50));
appendString(T1_, T4_);
sysFatal__system_3602(T1_);
}
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) {
int result;
result = (int)0;
result = memcmp(a, b, ((size_t) (size)));
return result;
}
static N_INLINE(NIM_BOOL, equalMem__system_1735)(void* a, void* b, NI size) {
NIM_BOOL result;
int T1_;
result = (NIM_BOOL)0;
T1_ = (int)0;
T1_ = nimCmpMem(a, b, size);
result = (T1_ == ((NI32) 0));
return result;
}
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) {
NIM_BOOL result;
NI alen;
NI blen;
nimfr_("eqStrings", "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{ result = (NIM_BOOL)0;
nimln_(27, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
alen = (a ? a->Sup.len : 0);
nimln_(28, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
blen = (b ? b->Sup.len : 0);
nimln_(29, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
if (!(alen == blen)) goto LA3_;
nimln_(30, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
if (!(alen == ((NI) 0))) goto LA7_;
result = NIM_TRUE;
goto BeforeRet_;
}
LA7_: ;
nimln_(31, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = equalMem__system_1735(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((NI) (alen)));
goto BeforeRet_;
}
LA3_: ;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___nimblepkgZcli_243)(tyTuple__UV3llMMYFckfui8YMBuUZA x, tyTuple__UV3llMMYFckfui8YMBuUZA y) {
NIM_BOOL result;
nimfr_("==", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{ result = (NIM_BOOL)0;
nimln_(1888, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
if (!!(eqStrings(x.Field0, y.Field0))) goto LA3_;
result = NIM_FALSE;
goto BeforeRet_;
}
LA3_: ;
{
if (!!(eqStrings(x.Field1, y.Field1))) goto LA7_;
result = NIM_FALSE;
goto BeforeRet_;
}
LA7_: ;
nimln_(1889, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_TRUE;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__system_8723)(NimStringDesc* s, NI first, NI last) {
NimStringDesc* result;
NI first_2;
NI L;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_51;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_52;
nimfr_("substr", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_NIL;
nimln_(3080, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
first_2 = ((first >= ((NI) 0)) ? first : ((NI) 0));
nimln_(3081, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
if (nimSubInt(((last <= ((s ? s->Sup.len : 0)-1)) ? last : ((s ? s->Sup.len : 0)-1)), first_2, &TM__Q5wkpxktOdTGvlSRo9bzt9aw_51)) { raiseOverflow(); };
if (nimAddInt((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_51), ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_52)) { raiseOverflow(); };
L = (((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_52) >= ((NI) 0)) ? (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_52) : ((NI) 0));
nimln_(3082, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
if ((L) < ((NI) 0) || (L) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(L, ((NI) 0), ((NI) IL64(9223372036854775807))); }
result = mnewString(((NI) (L)));
{
NI i;
NI colontmp_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_53;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
nimln_(3083, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
if (nimSubInt(L, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_53)) { raiseOverflow(); };
colontmp_ = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_53);
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_54;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_55;
if (!(res <= colontmp_)) goto LA3;
nimln_(3083, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
i = res;
if (i < 0 || i >= (result ? result->Sup.len : 0)){ raiseIndexError2(i,(result ? result->Sup.len : 0)-1); }
nimln_(3084, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
if (nimAddInt(i, first_2, &TM__Q5wkpxktOdTGvlSRo9bzt9aw_54)) { raiseOverflow(); };
if ((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_54) < 0 || (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_54) >= (s ? s->Sup.len : 0)){ raiseIndexError2((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_54),(s ? s->Sup.len : 0)-1); }
result->data[i] = s->data[(NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_54)];
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
if (nimAddInt(res, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_55)) { raiseOverflow(); };
res = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_55);
} LA3: ;
}
}
popFrame();
return result;
}
static N_NIMCALL(void, Marker_tyRef__Ie1m0dv1ZHg72IgPRr1cDw)(void* p, NI op) {
tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* a;
a = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)p;
nimGCvisit((void*)(*a).Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
static N_NIMCALL(void, Marker_tyRef__HMIVdYjdZYWskTmTQVo5BQ)(void* p, NI op) {
tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw* a;
a = (tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw*)p;
nimGCvisit((void*)(*a).Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimCharToStr)(NIM_CHAR x) {
NimStringDesc* result;
nimfr_("nimCharToStr", "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = NIM_NIL;
nimln_(221, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = mnewString(((NI) 1));
nimln_(222, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result->data[((NI) 0)] = x;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass) {
NIM_BOOL result;
TNimType* x;
{ result = (NIM_BOOL)0;
x = obj;
{
if (!(x == subclass)) goto LA3_;
result = NIM_TRUE;
goto BeforeRet_;
}
LA3_: ;
{
while (1) {
if (!!((x == subclass))) goto LA6;
{
if (!(x == ((TNimType*) NIM_NIL))) goto LA9_;
result = NIM_FALSE;
goto BeforeRet_;
}
LA9_: ;
x = (*x).base;
} LA6: ;
}
result = NIM_TRUE;
goto BeforeRet_;
}BeforeRet_: ;
return result;
}
static N_NIMCALL(void, Marker_tyRef__aKAxoL0lF8g0PZNf9a2PBpQ)(void* p, NI op) {
tyObject_ObjectConversionDefect__EfCTmzvWG9bLXrm0uv9b9aSyA* a;
a = (tyObject_ObjectConversionDefect__EfCTmzvWG9bLXrm0uv9b9aSyA*)p;
nimGCvisit((void*)(*a).Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
static N_INLINE(void, sysFatal__system_3723)(NimStringDesc* message) {
tyObject_ObjectConversionDefect__EfCTmzvWG9bLXrm0uv9b9aSyA* T1_;
NimStringDesc* T2_;
nimfr_("sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
T1_ = NIM_NIL;
T1_ = (tyObject_ObjectConversionDefect__EfCTmzvWG9bLXrm0uv9b9aSyA*) newObj((&NTIrefobjectconversiondefect__aKAxoL0lF8g0PZNf9a2PBpQ_), sizeof(tyObject_ObjectConversionDefect__EfCTmzvWG9bLXrm0uv9b9aSyA));
(*T1_).Sup.Sup.Sup.m_type = (&NTIobjectconversiondefect__EfCTmzvWG9bLXrm0uv9b9aSyA_);
(*T1_).Sup.Sup.name = "ObjectConversionDefect";
T2_ = NIM_NIL;
T2_ = (*T1_).Sup.Sup.message; (*T1_).Sup.Sup.message = copyStringRC1(message);
if (T2_) nimGCunrefNoCycle(T2_);
nimln_(53, "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
raiseExceptionEx((Exception*)T1_, "ObjectConversionDefect", "sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim", 53);
popFrame();
}
N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void) {
sysFatal__system_3723(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_56));
}
static N_NIMCALL(void, Marker_tyRef__9clYsYwyjCqe2PFTuCI3Ubg)(void* p, NI op) {
tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA* a;
a = (tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA*)p;
nimGCvisit((void*)(*a).Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
N_LIB_PRIVATE N_NIMCALL(void*, nimNewSeqOfCap)(TNimType* typ, NI cap) {
void* result;
NI s;
NI T1_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_57;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_58;
nimfr_("nimNewSeqOfCap", "/home/yyoncho/Sources/nim/Nim/lib/system/mmdisp.nim");
result = (void*)0;
nimln_(103, "/home/yyoncho/Sources/nim/Nim/lib/system/mmdisp.nim");
T1_ = (NI)0;
T1_ = align__system_1624(((NI) 16), (*(*typ).base).align);
if (nimMulInt(cap, (*(*typ).base).size, &TM__Q5wkpxktOdTGvlSRo9bzt9aw_57)) { raiseOverflow(); };
if (nimAddInt(T1_, (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_57), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_58)) { raiseOverflow(); };
s = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_58);
nimln_(105, "/home/yyoncho/Sources/nim/Nim/lib/system/mmdisp.nim");
{
if (!(((*(*typ).base).flags &((NU8)1<<((NU)(((tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ) 0))&7U)))!=0)) goto LA4_;
result = newObjNoInit(typ, s);
}
goto LA2_;
LA4_: ;
{
result = newObj(typ, s);
}
LA2_: ;
nimln_(108, "/home/yyoncho/Sources/nim/Nim/lib/system/mmdisp.nim");
(*((TGenericSeq*) (result))).len = ((NI) 0);
nimln_(109, "/home/yyoncho/Sources/nim/Nim/lib/system/mmdisp.nim");
(*((TGenericSeq*) (result))).reserved = cap;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, genericReset)(void* dest, TNimType* mt) {
NI d;
nimfr_("genericReset", "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
nimln_(241, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
d = ((NI) (ptrdiff_t) (dest));
nimln_(243, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
switch ((*mt).kind) {
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 22):
{
nimln_(245, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
unsureAsgnRef(((void**) (dest)), NIM_NIL);
}
break;
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 28):
{
nimln_(252, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
unsureAsgnRef(((void**) (dest)), NIM_NIL);
}
break;
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 24):
{
nimln_(258, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
unsureAsgnRef(((void**) (dest)), NIM_NIL);
}
break;
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 18):
{
nimln_(260, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
genericResetAux__system_7071(dest, (*mt).node);
}
break;
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 17):
{
TNimType** pint;
nimln_(262, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
genericResetAux__system_7071(dest, (*mt).node);
nimln_(268, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
pint = ((TNimType**) (dest));
nimln_(269, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
(*pint) = ((TNimType*) NIM_NIL);
}
break;
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 16):
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 4):
{
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
nimln_(271, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
colontmp_ = (NI)((NI)((*mt).size / (*(*mt).base).size) - ((NI) 1));
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
NI T10_;
NI T11_;
if (!(res <= colontmp_)) goto LA9;
nimln_(271, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
i = res;
nimln_(272, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T10_ = (NI)0;
T10_ = starpercent___system_736(i, (*(*mt).base).size);
T11_ = (NI)0;
T11_ = pluspercent___system_696(d, T10_);
nimln_(271, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
genericReset(((void*) (T11_)), (*mt).base);
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res += ((NI) 1);
} LA9: ;
}
}
}
break;
default:
{
nimln_(274, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
zeroMem__system_1724(dest, ((NI) ((*mt).size)));
}
break;
}
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, genericResetAux__system_7071)(void* dest, TNimNode* n) {
NI d;
nimfr_("genericResetAux", "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
nimln_(229, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
d = ((NI) (ptrdiff_t) (dest));
nimln_(230, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
switch ((*n).kind) {
case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 0):
{
}
break;
case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 1):
{
NI T3_;
nimln_(232, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T3_ = (NI)0;
T3_ = pluspercent___system_696(d, (*n).offset);
genericReset(((void*) (T3_)), (*n).typ);
}
break;
case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 2):
{
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
nimln_(234, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
colontmp_ = (NI)((*n).len - ((NI) 1));
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
if (!(res <= colontmp_)) goto LA7;
nimln_(234, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
i = res;
genericResetAux__system_7071(dest, (*n).sons[(i)- 0]);
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res += ((NI) 1);
} LA7: ;
}
}
}
break;
case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 3):
{
TNimNode* m;
NI T13_;
nimln_(236, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
m = selectBranch__system_4211(dest, n);
nimln_(237, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
{
if (!!((m == ((TNimNode*) NIM_NIL)))) goto LA11_;
genericResetAux__system_7071(dest, m);
}
LA11_: ;
nimln_(238, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T13_ = (NI)0;
T13_ = pluspercent___system_696(d, (*n).offset);
zeroMem__system_1724(((void*) (T13_)), ((NI) ((*(*n).typ).size)));
}
break;
}
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, genericAssignAux__system_7079)(void* dest, void* src, TNimNode* n, NIM_BOOL shallow) {
NI d;
NI s;
nimfr_("genericAssignAux", "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
nimln_(18, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
d = ((NI) (ptrdiff_t) (dest));
nimln_(19, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
s = ((NI) (ptrdiff_t) (src));
nimln_(20, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
switch ((*n).kind) {
case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 1):
{
NI T2_;
NI T3_;
nimln_(22, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T2_ = (NI)0;
T2_ = pluspercent___system_696(d, (*n).offset);
nimln_(23, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T3_ = (NI)0;
T3_ = pluspercent___system_696(s, (*n).offset);
nimln_(22, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
genericAssignAux__system_7074(((void*) (T2_)), ((void*) (T3_)), (*n).typ, shallow);
}
break;
case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 2):
{
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
nimln_(25, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
colontmp_ = (NI)((*n).len - ((NI) 1));
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
if (!(res <= colontmp_)) goto LA7;
nimln_(25, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
i = res;
genericAssignAux__system_7079(dest, src, (*n).sons[(i)- 0], shallow);
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res += ((NI) 1);
} LA7: ;
}
}
}
break;
case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 3):
{
TNimNode* dd;
TNimNode* m;
NI T15_;
NI T16_;
nimln_(28, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
dd = selectBranch__system_4211(dest, n);
nimln_(29, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
m = selectBranch__system_4211(src, n);
nimln_(32, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
{
NIM_BOOL T11_;
T11_ = (NIM_BOOL)0;
T11_ = !((m == dd));
if (!(T11_)) goto LA12_;
T11_ = !((dd == ((TNimNode*) NIM_NIL)));
LA12_: ;
if (!T11_) goto LA13_;
nimln_(33, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
genericResetAux__system_7071(dest, dd);
}
LA13_: ;
nimln_(34, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T15_ = (NI)0;
T15_ = pluspercent___system_696(d, (*n).offset);
T16_ = (NI)0;
T16_ = pluspercent___system_696(s, (*n).offset);
copyMem__system_1727(((void*) (T15_)), ((void*) (T16_)), ((NI) ((*(*n).typ).size)));
nimln_(36, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
{
if (!!((m == ((TNimNode*) NIM_NIL)))) goto LA19_;
nimln_(37, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
genericAssignAux__system_7079(dest, src, m, shallow);
}
LA19_: ;
}
break;
case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 0):
{
}
break;
}
popFrame();
}
static N_NIMCALL(void, Marker_tyRef__C0A9bPZSVeyr2BWpBf4Jxqw)(void* p, NI op) {
tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g* a;
a = (tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g*)p;
nimGCvisit((void*)(*a).Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
static N_INLINE(void, sysFatal__system_3848)(NimStringDesc* message) {
tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g* T1_;
NimStringDesc* T2_;
nimfr_("sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
T1_ = NIM_NIL;
T1_ = (tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g*) newObj((&NTIrefobjectassignmentdefect__C0A9bPZSVeyr2BWpBf4Jxqw_), sizeof(tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g));
(*T1_).Sup.Sup.Sup.m_type = (&NTIobjectassignmentdefect__6toVe0IizlEwN9bORXEdX3g_);
(*T1_).Sup.Sup.name = "ObjectAssignmentDefect";
T2_ = NIM_NIL;
T2_ = (*T1_).Sup.Sup.message; (*T1_).Sup.Sup.message = copyStringRC1(message);
if (T2_) nimGCunrefNoCycle(T2_);
nimln_(53, "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
raiseExceptionEx((Exception*)T1_, "ObjectAssignmentDefect", "sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim", 53);
popFrame();
}
static N_INLINE(void, chckObjAsgn)(TNimType* a, TNimType* b) {
{
if (!!((a == b))) goto LA3_;
sysFatal__system_3848(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_59));
}
LA3_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, genericAssignAux__system_7074)(void* dest, void* src, TNimType* mt, NIM_BOOL shallow) {
NI d;
NI s;
nimfr_("genericAssignAux", "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
{ nimln_(59, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
d = ((NI) (ptrdiff_t) (dest));
nimln_(60, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
s = ((NI) (ptrdiff_t) (src));
nimln_(62, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
switch ((*mt).kind) {
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 28):
{
void** x;
void* s2;
nimln_(69, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
x = ((void**) (dest));
nimln_(70, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
s2 = (*((void**) (s)));
nimln_(71, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
{
NIM_BOOL T4_;
NIM_BOOL T5_;
T4_ = (NIM_BOOL)0;
T5_ = (NIM_BOOL)0;
T5_ = (s2 == NIM_NIL);
if (T5_) goto LA6_;
T5_ = shallow;
LA6_: ;
T4_ = T5_;
if (T4_) goto LA7_;
nimln_(72, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T4_ = !(((NI)((*((TGenericSeq*) (s2))).reserved & ((NI) (IL64(-9223372036854775807) - IL64(1)))) == ((NI) 0)));
LA7_: ;
if (!T4_) goto LA8_;
nimln_(73, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
unsureAsgnRef(x, s2);
}
goto LA2_;
LA8_: ;
{
NimStringDesc* T11_;
nimln_(75, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T11_ = (NimStringDesc*)0;
T11_ = copyString(((NimStringDesc*) (s2)));
unsureAsgnRef(x, ((void*) (T11_)));
}
LA2_: ;
}
break;
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 24):
{
void* s2_2;
TGenericSeq* seq;
void** x_2;
nimln_(80, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
s2_2 = (*((void**) (src)));
nimln_(81, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
seq = ((TGenericSeq*) (s2_2));
nimln_(82, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
x_2 = ((void**) (dest));
nimln_(83, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
{
NIM_BOOL T15_;
NIM_BOOL T16_;
T15_ = (NIM_BOOL)0;
T16_ = (NIM_BOOL)0;
T16_ = (s2_2 == NIM_NIL);
if (T16_) goto LA17_;
T16_ = shallow;
LA17_: ;
T15_ = T16_;
if (T15_) goto LA18_;
T15_ = !(((NI)((*seq).reserved & ((NI) (IL64(-9223372036854775807) - IL64(1)))) == ((NI) 0)));
LA18_: ;
if (!T15_) goto LA19_;
nimln_(85, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
unsureAsgnRef(x_2, s2_2);
nimln_(86, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
goto BeforeRet_;
}
LA19_: ;
nimln_(88, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
{
void* ss;
NI dst;
NI T25_;
NI T26_;
NI T27_;
NI T28_;
NI T29_;
if (!(((*(*mt).base).flags &((NU8)1<<((NU)(((tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ) 0))&7U)))!=0)) goto LA23_;
nimln_(89, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
ss = nimNewSeqOfCap(mt, (*seq).len);
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
(*((TGenericSeq*) (ss))).len = (*seq).len;
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
unsureAsgnRef(x_2, ss);
nimln_(92, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
dst = ((NI) (ptrdiff_t) ((*((void**) (dest)))));
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T25_ = (NI)0;
T25_ = align__system_1624(((NI) 16), (*(*mt).base).align);
T26_ = (NI)0;
T26_ = pluspercent___system_696(dst, T25_);
nimln_(94, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T27_ = (NI)0;
T27_ = align__system_1624(((NI) 16), (*(*mt).base).align);
T28_ = (NI)0;
T28_ = pluspercent___system_696(((NI) (ptrdiff_t) (s2_2)), T27_);
nimln_(95, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T29_ = (NI)0;
T29_ = starpercent___system_736((*seq).len, (*(*mt).base).size);
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
copyMem__system_1727(((void*) (T26_)), ((void*) (T28_)), ((NI) (T29_)));
}
goto LA21_;
LA23_: ;
{
void* T31_;
NI dst_2;
nimln_(97, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T31_ = (void*)0;
T31_ = newSeq(mt, (*seq).len);
unsureAsgnRef(x_2, T31_);
nimln_(98, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
dst_2 = ((NI) (ptrdiff_t) ((*((void**) (dest)))));
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
nimln_(99, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
colontmp_ = (NI)((*seq).len - ((NI) 1));
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
NI T35_;
NI T36_;
NI T37_;
NI T38_;
NI T39_;
NI T40_;
NI T41_;
NI T42_;
if (!(res <= colontmp_)) goto LA34;
nimln_(99, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
i = res;
nimln_(101, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T35_ = (NI)0;
T35_ = align__system_1624(((NI) 16), (*(*mt).base).align);
T36_ = (NI)0;
T36_ = pluspercent___system_696(dst_2, T35_);
T37_ = (NI)0;
T37_ = starpercent___system_736(i, (*(*mt).base).size);
T38_ = (NI)0;
T38_ = pluspercent___system_696(T36_, T37_);
nimln_(102, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T39_ = (NI)0;
T39_ = align__system_1624(((NI) 16), (*(*mt).base).align);
T40_ = (NI)0;
T40_ = pluspercent___system_696(((NI) (ptrdiff_t) (s2_2)), T39_);
T41_ = (NI)0;
T41_ = starpercent___system_736(i, (*(*mt).base).size);
T42_ = (NI)0;
T42_ = pluspercent___system_696(T40_, T41_);
nimln_(99, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
genericAssignAux__system_7074(((void*) (T38_)), ((void*) (T42_)), (*mt).base, shallow);
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res += ((NI) 1);
} LA34: ;
}
}
}
LA21_: ;
}
break;
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 17):
{
TNimType* it;
TNimType** pint;
TNimType* srcType;
nimln_(105, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
it = (*mt).base;
{
nimln_(108, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
while (1) {
if (!!((it == ((TNimType*) NIM_NIL)))) goto LA45;
nimln_(109, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
genericAssignAux__system_7079(dest, src, (*it).node, shallow);
nimln_(110, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
it = (*it).base;
} LA45: ;
}
nimln_(111, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
genericAssignAux__system_7079(dest, src, (*mt).node, shallow);
nimln_(119, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
pint = ((TNimType**) (dest));
nimln_(125, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
srcType = (*((TNimType**) (src)));
nimln_(126, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
{
if (!!((srcType == ((TNimType*) NIM_NIL)))) goto LA48_;
nimln_(129, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
chckObjAsgn(srcType, mt);
}
LA48_: ;
nimln_(130, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
(*pint) = mt;
}
break;
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 18):
{
nimln_(132, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
genericAssignAux__system_7079(dest, src, (*mt).node, shallow);
}
break;
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 16):
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 4):
{
{
NI i_2;
NI colontmp__2;
NI res_2;
i_2 = (NI)0;
colontmp__2 = (NI)0;
nimln_(134, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
colontmp__2 = (NI)((NI)((*mt).size / (*(*mt).base).size) - ((NI) 1));
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res_2 = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
NI T55_;
NI T56_;
NI T57_;
NI T58_;
if (!(res_2 <= colontmp__2)) goto LA54;
nimln_(134, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
i_2 = res_2;
nimln_(135, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T55_ = (NI)0;
T55_ = starpercent___system_736(i_2, (*(*mt).base).size);
T56_ = (NI)0;
T56_ = pluspercent___system_696(d, T55_);
nimln_(136, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
T57_ = (NI)0;
T57_ = starpercent___system_736(i_2, (*(*mt).base).size);
T58_ = (NI)0;
T58_ = pluspercent___system_696(s, T57_);
nimln_(134, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
genericAssignAux__system_7074(((void*) (T56_)), ((void*) (T58_)), (*mt).base, shallow);
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res_2 += ((NI) 1);
} LA54: ;
}
}
}
break;
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 22):
{
nimln_(138, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
unsureAsgnRef(((void**) (dest)), (*((void**) (s))));
}
break;
default:
{
nimln_(140, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
copyMem__system_1727(dest, src, ((NI) ((*mt).size)));
}
break;
}
}BeforeRet_: ;
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt) {
nimfr_("genericAssign", "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
nimln_(143, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
genericAssignAux__system_7074(dest, src, mt, NIM_FALSE);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, genericSeqAssign)(void* dest, void* src, TNimType* mt) {
void* src_2;
nimfr_("genericSeqAssign", "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
nimln_(178, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
src_2 = src;
nimln_(179, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
genericAssign(dest, ((void*) ((&src_2))), mt);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, newSeq__stdZsyncio_504)(NI len) {
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result;
nimfr_("newSeq", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_NIL;
nimln_(690, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) newSeq((&NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_), len);
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__system_8735)(NimStringDesc* s, NI first) {
NimStringDesc* result;
nimfr_("substr", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_NIL;
nimln_(3087, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = substr__system_8723(s, first, ((s ? s->Sup.len : 0)-1));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, hashString)(NimStringDesc* s) {
NI result;
NU h;
nimfr_("hashString", "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = (NI)0;
nimln_(36, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
h = ((NU) 0);
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
nimln_(37, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
colontmp_ = (NI)((s ? s->Sup.len : 0) - ((NI) 1));
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
if (!(res <= colontmp_)) goto LA3;
nimln_(37, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
i = res;
nimln_(38, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
h = (NU)((NU64)(h) + (NU64)(((NU) (((NU8)(s->data[i]))))));
nimln_(39, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
h = (NU)((NU64)(h) + (NU64)((NU)((NU64)(h) << (NU64)(((NI) 10)))));
nimln_(40, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
h = (NU)(h ^ (NU)((NU64)(h) >> (NU64)(((NI) 6))));
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res += ((NI) 1);
} LA3: ;
}
}
nimln_(41, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
h = (NU)((NU64)(h) + (NU64)((NU)((NU64)(h) << (NU64)(((NI) 3)))));
nimln_(42, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
h = (NU)(h ^ (NU)((NU64)(h) >> (NU64)(((NI) 11))));
nimln_(43, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
h = (NU)((NU64)(h) + (NU64)((NU)((NU64)(h) << (NU64)(((NI) 15)))));
nimln_(44, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = ((NI) (h));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, genericShallowAssign)(void* dest, void* src, TNimType* mt) {
nimfr_("genericShallowAssign", "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
nimln_(146, "/home/yyoncho/Sources/nim/Nim/lib/system/assign.nim");
genericAssignAux__system_7074(dest, src, mt, NIM_TRUE);
popFrame();
}
static N_NIMCALL(void, Marker_tyRef__hbLyubjZp2zbEfAXJ8yMLg)(void* p, NI op) {
tyObject_FieldDefect__GuXpRSBAcOXR7KZUhKKcgQ* a;
a = (tyObject_FieldDefect__GuXpRSBAcOXR7KZUhKKcgQ*)p;
nimGCvisit((void*)(*a).Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
static N_INLINE(void, sysFatal__system_3649)(NimStringDesc* message) {
tyObject_FieldDefect__GuXpRSBAcOXR7KZUhKKcgQ* T1_;
NimStringDesc* T2_;
nimfr_("sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
T1_ = NIM_NIL;
T1_ = (tyObject_FieldDefect__GuXpRSBAcOXR7KZUhKKcgQ*) newObj((&NTIreffielddefect__hbLyubjZp2zbEfAXJ8yMLg_), sizeof(tyObject_FieldDefect__GuXpRSBAcOXR7KZUhKKcgQ));
(*T1_).Sup.Sup.Sup.m_type = (&NTIfielddefect__GuXpRSBAcOXR7KZUhKKcgQ_);
(*T1_).Sup.Sup.name = "FieldDefect";
T2_ = NIM_NIL;
T2_ = (*T1_).Sup.Sup.message; (*T1_).Sup.Sup.message = copyStringRC1(message);
if (T2_) nimGCunrefNoCycle(T2_);
nimln_(53, "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
raiseExceptionEx((Exception*)T1_, "FieldDefect", "sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim", 53);
popFrame();
}
N_LIB_PRIVATE N_NOINLINE(void, raiseFieldError2)(NimStringDesc* f, NimStringDesc* discVal) {
NimStringDesc* T1_;
T1_ = NIM_NIL;
T1_ = rawNewString((f ? f->Sup.len : 0) + (discVal ? discVal->Sup.len : 0) + 1);
appendString(T1_, f);
appendString(T1_, discVal);
appendString(T1_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_60));
sysFatal__system_3649(T1_);
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, reprEnum)(NI e, TNimType* typ) {
NimStringDesc* result;
TNimNode* n;
NimStringDesc* T19_;
NimStringDesc* T20_;
nimfr_("reprEnum", "/home/yyoncho/Sources/nim/Nim/lib/system/repr.nim");
{ result = NIM_NIL;
nimln_(61, "/home/yyoncho/Sources/nim/Nim/lib/system/repr.nim");
n = (*typ).node;
nimln_(62, "/home/yyoncho/Sources/nim/Nim/lib/system/repr.nim");
{
NI o;
if (!!((((*typ).flags &((NU8)1<<((NU)(((tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ) 2))&7U)))!=0))) goto LA3_;
nimln_(63, "/home/yyoncho/Sources/nim/Nim/lib/system/repr.nim");
o = (NI)(e - (*(*n).sons[(((NI) 0))- 0]).offset);
nimln_(64, "/home/yyoncho/Sources/nim/Nim/lib/system/repr.nim");
{
NIM_BOOL T7_;
T7_ = (NIM_BOOL)0;
T7_ = (((NI) 0) <= o);
if (!(T7_)) goto LA8_;
T7_ = ltpercent___system_1005(o, (*(*typ).node).len);
LA8_: ;
if (!T7_) goto LA9_;
nimln_(65, "/home/yyoncho/Sources/nim/Nim/lib/system/repr.nim");
result = cstrToNimstr((*(*n).sons[(o)- 0]).name);
goto BeforeRet_;
}
LA9_: ;
}
goto LA1_;
LA3_: ;
{
TNimNode** s;
nimln_(68, "/home/yyoncho/Sources/nim/Nim/lib/system/repr.nim");
s = (*n).sons;
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
nimln_(69, "/home/yyoncho/Sources/nim/Nim/lib/system/repr.nim");
colontmp_ = (NI)((*n).len - ((NI) 1));
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
if (!(res <= colontmp_)) goto LA14;
nimln_(69, "/home/yyoncho/Sources/nim/Nim/lib/system/repr.nim");
i = res;
{
nimln_(70, "/home/yyoncho/Sources/nim/Nim/lib/system/repr.nim");
if (!((*s[(i)- 0]).offset == e)) goto LA17_;
nimln_(71, "/home/yyoncho/Sources/nim/Nim/lib/system/repr.nim");
result = cstrToNimstr((*s[(i)- 0]).name);
goto BeforeRet_;
}
LA17_: ;
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res += ((NI) 1);
} LA14: ;
}
}
}
LA1_: ;
nimln_(73, "/home/yyoncho/Sources/nim/Nim/lib/system/repr.nim");
T19_ = NIM_NIL;
T20_ = NIM_NIL;
T20_ = dollar___systemZdollars_8(e);
T19_ = rawNewString((T20_ ? T20_->Sup.len : 0) + 16);
appendString(T19_, T20_);
appendString(T19_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_61));
result = T19_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimBoolToStr)(NIM_BOOL x) {
NimStringDesc* result;
nimfr_("nimBoolToStr", "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{ result = NIM_NIL;
nimln_(218, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
if (!x) goto LA3_;
result = copyString(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_62));
}
goto LA1_;
LA3_: ;
{
result = copyString(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_63));
}
LA1_: ;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, reprDiscriminant)(NI e, TNimType* typ) {
NimStringDesc* result;
nimfr_("reprDiscriminant", "/home/yyoncho/Sources/nim/Nim/lib/system/repr_impl.nim");
result = NIM_NIL;
nimln_(12, "/home/yyoncho/Sources/nim/Nim/lib/system/repr_impl.nim");
switch ((*typ).kind) {
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 14):
{
nimln_(13, "/home/yyoncho/Sources/nim/Nim/lib/system/repr_impl.nim");
result = reprEnum(e, typ);
}
break;
case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 1):
{
nimln_(14, "/home/yyoncho/Sources/nim/Nim/lib/system/repr_impl.nim");
result = nimBoolToStr(!((e == ((NI) 0))));
}
break;
default:
{
nimln_(15, "/home/yyoncho/Sources/nim/Nim/lib/system/repr_impl.nim");
result = dollar___systemZdollars_8(e);
}
break;
}
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, nimLeaveFinally)(void) {
{
if (!!((excHandler__system_3095 == ((TSafePoint*) NIM_NIL)))) goto LA3_;
longjmp((*excHandler__system_3095).context, ((int) 1));
}
goto LA1_;
LA3_: ;
{
reportUnhandledError__system_3410(currException__system_3096);
exit(((NI) 1));
}
LA1_: ;
}
static N_INLINE(void, addEscapedChar__system_8472)(NimStringDesc** s, NIM_CHAR c) {
nimfr_("addEscapedChar", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2889, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
switch (((NU8)(c))) {
case 7:
{
nimln_(2890, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 2));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_65));
}
break;
case 8:
{
nimln_(2891, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 2));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_66));
}
break;
case 9:
{
nimln_(2892, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 2));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_67));
}
break;
case 10:
{
nimln_(2893, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 2));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_68));
}
break;
case 11:
{
nimln_(2894, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 2));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_69));
}
break;
case 12:
{
nimln_(2895, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 2));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_70));
}
break;
case 13:
{
nimln_(2896, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 2));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_71));
}
break;
case 27:
{
nimln_(2897, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 2));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_72));
}
break;
case 92:
{
nimln_(2898, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 2));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_73));
}
break;
case 39:
{
nimln_(2899, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 2));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_74));
}
break;
case 34:
{
nimln_(2900, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 2));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_75));
}
break;
case 32 ... 33:
case 35 ... 38:
case 40 ... 91:
case 93 ... 126:
{
nimln_(2901, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), addChar((*s), c));
}
break;
default:
{
NI n;
nimln_(2903, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 2));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_76));
nimln_(2905, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
n = ((NU8)(c));
nimln_(2906, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
if ((NI)((NI64)((NI)(n & ((NI) 240))) >> (NU64)(((NI) 4))) < 0 || (NI)((NI64)((NI)(n & ((NI) 240))) >> (NU64)(((NI) 4))) >= (((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_77) ? ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_77)->Sup.len : 0)){ raiseIndexError2((NI)((NI64)((NI)(n & ((NI) 240))) >> (NU64)(((NI) 4))),(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_77) ? ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_77)->Sup.len : 0)-1); }
unsureAsgnRef((void**) (&(*s)), addChar((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_77)->data[(NI)((NI64)((NI)(n & ((NI) 240))) >> (NU64)(((NI) 4)))]));
nimln_(2907, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
if ((NI)(n & ((NI) 15)) < 0 || (NI)(n & ((NI) 15)) >= (((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_77) ? ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_77)->Sup.len : 0)){ raiseIndexError2((NI)(n & ((NI) 15)),(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_77) ? ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_77)->Sup.len : 0)-1); }
unsureAsgnRef((void**) (&(*s)), addChar((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_77)->data[(NI)(n & ((NI) 15))]));
}
break;
}
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__pureZos_457)(NimStringDesc** s, NimStringDesc* x) {
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2934, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 1));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_64));
{
NIM_CHAR c;
NI i;
NI L;
c = (NIM_CHAR)0;
nimln_(256, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
i = ((NI) 0);
nimln_(257, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
L = (x ? x->Sup.len : 0);
{
nimln_(258, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
while (1) {
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_78;
if (!(i < L)) goto LA3;
nimln_(2935, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
if (i < 0 || i >= (x ? x->Sup.len : 0)){ raiseIndexError2(i,(x ? x->Sup.len : 0)-1); }
c = x->data[i];
{
nimln_(2938, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
if (!((NU8)(c) <= (NU8)(127))) goto LA6_;
nimln_(2939, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
addEscapedChar__system_8472(s, c);
}
goto LA4_;
LA6_: ;
{
nimln_(2941, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), addChar((*s), c));
}
LA4_: ;
nimln_(260, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
if (nimAddInt(i, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_78)) { raiseOverflow(); };
i = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_78);
nimln_(261, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
{
if (!!(((x ? x->Sup.len : 0) == L))) goto LA11_;
failedAssertImpl__stdZassertions_56(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_79));
}
LA11_: ;
} LA3: ;
}
}
nimln_(2942, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), 1));
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_64));
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(NI, nimParseBiggestFloat)(NimStringDesc* s, NF* number, NI start) {
NI result;
NI i;
NF sign;
NI kdigits;
NI fdigits;
NI exponent;
NU64 integer;
NI fracExponent;
NI expSign;
NI firstDigit;
NIM_BOOL hasSign;
NI realExponent;
NIM_BOOL expNegative;
NI absExponent;
NI digits;
tyArray__PGLh8drTnaWr3s1qUUSq2Q t;
NI ti;
NI maxlen;
NI endPos;
nimfr_("nimParseBiggestFloat", "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{ result = (NI)0;
nimln_(68, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
i = start;
nimln_(69, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
sign = 1.0;
nimln_(70, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
kdigits = ((NI) 0);
fdigits = ((NI) 0);
nimln_(71, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
exponent = ((NI) 0);
nimln_(72, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
integer = 0ULL;
nimln_(73, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
fracExponent = ((NI) 0);
nimln_(74, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
expSign = ((NI) 1);
nimln_(75, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
firstDigit = ((NI) -1);
nimln_(76, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
hasSign = NIM_FALSE;
nimln_(79, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T3_;
NIM_BOOL T5_;
T3_ = (NIM_BOOL)0;
T3_ = (i < (s ? s->Sup.len : 0));
if (!(T3_)) goto LA4_;
T5_ = (NIM_BOOL)0;
T5_ = ((NU8)(s->data[i]) == (NU8)(43));
if (T5_) goto LA6_;
T5_ = ((NU8)(s->data[i]) == (NU8)(45));
LA6_: ;
T3_ = T5_;
LA4_: ;
if (!T3_) goto LA7_;
nimln_(80, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
hasSign = NIM_TRUE;
nimln_(81, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
if (!((NU8)(s->data[i]) == (NU8)(45))) goto LA11_;
nimln_(82, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
sign = -1.0;
}
LA11_: ;
nimln_(83, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
i += ((NI) 1);
}
LA7_: ;
nimln_(86, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T15_;
NIM_BOOL T17_;
T15_ = (NIM_BOOL)0;
T15_ = ((NI)(i + ((NI) 2)) < (s ? s->Sup.len : 0));
if (!(T15_)) goto LA16_;
T17_ = (NIM_BOOL)0;
T17_ = ((NU8)(s->data[i]) == (NU8)(78));
if (T17_) goto LA18_;
T17_ = ((NU8)(s->data[i]) == (NU8)(110));
LA18_: ;
T15_ = T17_;
LA16_: ;
if (!T15_) goto LA19_;
nimln_(87, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T23_;
T23_ = (NIM_BOOL)0;
T23_ = ((NU8)(s->data[(NI)(i + ((NI) 1))]) == (NU8)(65));
if (T23_) goto LA24_;
T23_ = ((NU8)(s->data[(NI)(i + ((NI) 1))]) == (NU8)(97));
LA24_: ;
if (!T23_) goto LA25_;
nimln_(88, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T29_;
T29_ = (NIM_BOOL)0;
T29_ = ((NU8)(s->data[(NI)(i + ((NI) 2))]) == (NU8)(78));
if (T29_) goto LA30_;
T29_ = ((NU8)(s->data[(NI)(i + ((NI) 2))]) == (NU8)(110));
LA30_: ;
if (!T29_) goto LA31_;
nimln_(89, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T35_;
T35_ = (NIM_BOOL)0;
T35_ = ((s ? s->Sup.len : 0) <= (NI)(i + ((NI) 3)));
if (T35_) goto LA36_;
T35_ = !((((NU8)(s->data[(NI)(i + ((NI) 3))])) >= ((NU8)(97)) && ((NU8)(s->data[(NI)(i + ((NI) 3))])) <= ((NU8)(122)) || ((NU8)(s->data[(NI)(i + ((NI) 3))])) >= ((NU8)(65)) && ((NU8)(s->data[(NI)(i + ((NI) 3))])) <= ((NU8)(90)) || ((NU8)(s->data[(NI)(i + ((NI) 3))])) >= ((NU8)(48)) && ((NU8)(s->data[(NI)(i + ((NI) 3))])) <= ((NU8)(57)) || ((NU8)(s->data[(NI)(i + ((NI) 3))])) == ((NU8)(95))));
LA36_: ;
if (!T35_) goto LA37_;
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
(*number) = NAN;
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = (NI)((NI)(i + ((NI) 3)) - start);
goto BeforeRet_;
}
LA37_: ;
}
LA31_: ;
}
LA25_: ;
nimln_(92, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = ((NI) 0);
goto BeforeRet_;
}
LA19_: ;
nimln_(95, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T41_;
NIM_BOOL T43_;
T41_ = (NIM_BOOL)0;
T41_ = ((NI)(i + ((NI) 2)) < (s ? s->Sup.len : 0));
if (!(T41_)) goto LA42_;
T43_ = (NIM_BOOL)0;
T43_ = ((NU8)(s->data[i]) == (NU8)(73));
if (T43_) goto LA44_;
T43_ = ((NU8)(s->data[i]) == (NU8)(105));
LA44_: ;
T41_ = T43_;
LA42_: ;
if (!T41_) goto LA45_;
nimln_(96, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T49_;
T49_ = (NIM_BOOL)0;
T49_ = ((NU8)(s->data[(NI)(i + ((NI) 1))]) == (NU8)(78));
if (T49_) goto LA50_;
T49_ = ((NU8)(s->data[(NI)(i + ((NI) 1))]) == (NU8)(110));
LA50_: ;
if (!T49_) goto LA51_;
nimln_(97, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T55_;
T55_ = (NIM_BOOL)0;
T55_ = ((NU8)(s->data[(NI)(i + ((NI) 2))]) == (NU8)(70));
if (T55_) goto LA56_;
T55_ = ((NU8)(s->data[(NI)(i + ((NI) 2))]) == (NU8)(102));
LA56_: ;
if (!T55_) goto LA57_;
nimln_(98, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T61_;
T61_ = (NIM_BOOL)0;
T61_ = ((s ? s->Sup.len : 0) <= (NI)(i + ((NI) 3)));
if (T61_) goto LA62_;
T61_ = !((((NU8)(s->data[(NI)(i + ((NI) 3))])) >= ((NU8)(97)) && ((NU8)(s->data[(NI)(i + ((NI) 3))])) <= ((NU8)(122)) || ((NU8)(s->data[(NI)(i + ((NI) 3))])) >= ((NU8)(65)) && ((NU8)(s->data[(NI)(i + ((NI) 3))])) <= ((NU8)(90)) || ((NU8)(s->data[(NI)(i + ((NI) 3))])) >= ((NU8)(48)) && ((NU8)(s->data[(NI)(i + ((NI) 3))])) <= ((NU8)(57)) || ((NU8)(s->data[(NI)(i + ((NI) 3))])) == ((NU8)(95))));
LA62_: ;
if (!T61_) goto LA63_;
nimln_(99, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
(*number) = ((NF)(INF) * (NF)(sign));
nimln_(100, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = (NI)((NI)(i + ((NI) 3)) - start);
goto BeforeRet_;
}
LA63_: ;
}
LA57_: ;
}
LA51_: ;
nimln_(101, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = ((NI) 0);
goto BeforeRet_;
}
LA45_: ;
nimln_(103, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T67_;
T67_ = (NIM_BOOL)0;
T67_ = (i < (s ? s->Sup.len : 0));
if (!(T67_)) goto LA68_;
T67_ = (((NU8)(s->data[i])) >= ((NU8)(48)) && ((NU8)(s->data[i])) <= ((NU8)(57)));
LA68_: ;
if (!T67_) goto LA69_;
nimln_(104, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
firstDigit = (NI)(((NU8)(s->data[i])) - ((NI) 48));
}
LA69_: ;
{
nimln_(106, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
while (1) {
NIM_BOOL T73_;
T73_ = (NIM_BOOL)0;
T73_ = (i < (s ? s->Sup.len : 0));
if (!(T73_)) goto LA74_;
T73_ = (((NU8)(s->data[i])) >= ((NU8)(48)) && ((NU8)(s->data[i])) <= ((NU8)(57)));
LA74_: ;
if (!T73_) goto LA72;
nimln_(107, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
kdigits += ((NI) 1);
nimln_(108, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
integer = (NU64)((NU64)((NU64)((NU64)(integer) * (NU64)(10ULL))) + (NU64)(((NU64) ((NI)(((NU8)(s->data[i])) - ((NI) 48))))));
nimln_(109, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
i += ((NI) 1);
{
nimln_(110, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
while (1) {
NIM_BOOL T77_;
T77_ = (NIM_BOOL)0;
T77_ = (i < (s ? s->Sup.len : 0));
if (!(T77_)) goto LA78_;
T77_ = ((NU8)(s->data[i]) == (NU8)(95));
LA78_: ;
if (!T77_) goto LA76;
i += ((NI) 1);
} LA76: ;
}
} LA72: ;
}
nimln_(113, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T81_;
T81_ = (NIM_BOOL)0;
T81_ = (i < (s ? s->Sup.len : 0));
if (!(T81_)) goto LA82_;
T81_ = ((NU8)(s->data[i]) == (NU8)(46));
LA82_: ;
if (!T81_) goto LA83_;
nimln_(114, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
i += ((NI) 1);
nimln_(116, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
if (!(kdigits <= ((NI) 0))) goto LA87_;
{
nimln_(117, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
while (1) {
NIM_BOOL T91_;
T91_ = (NIM_BOOL)0;
T91_ = (i < (s ? s->Sup.len : 0));
if (!(T91_)) goto LA92_;
T91_ = ((NU8)(s->data[i]) == (NU8)(48));
LA92_: ;
if (!T91_) goto LA90;
nimln_(118, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
fracExponent += ((NI) 1);
nimln_(119, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
i += ((NI) 1);
{
nimln_(120, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
while (1) {
NIM_BOOL T95_;
T95_ = (NIM_BOOL)0;
T95_ = (i < (s ? s->Sup.len : 0));
if (!(T95_)) goto LA96_;
T95_ = ((NU8)(s->data[i]) == (NU8)(95));
LA96_: ;
if (!T95_) goto LA94;
i += ((NI) 1);
} LA94: ;
}
} LA90: ;
}
}
LA87_: ;
nimln_(122, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T99_;
NIM_BOOL T100_;
T99_ = (NIM_BOOL)0;
T100_ = (NIM_BOOL)0;
T100_ = (firstDigit == ((NI) -1));
if (!(T100_)) goto LA101_;
T100_ = (i < (s ? s->Sup.len : 0));
LA101_: ;
T99_ = T100_;
if (!(T99_)) goto LA102_;
T99_ = (((NU8)(s->data[i])) >= ((NU8)(48)) && ((NU8)(s->data[i])) <= ((NU8)(57)));
LA102_: ;
if (!T99_) goto LA103_;
nimln_(123, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
firstDigit = (NI)(((NU8)(s->data[i])) - ((NI) 48));
}
LA103_: ;
{
nimln_(125, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
while (1) {
NIM_BOOL T107_;
T107_ = (NIM_BOOL)0;
T107_ = (i < (s ? s->Sup.len : 0));
if (!(T107_)) goto LA108_;
T107_ = (((NU8)(s->data[i])) >= ((NU8)(48)) && ((NU8)(s->data[i])) <= ((NU8)(57)));
LA108_: ;
if (!T107_) goto LA106;
nimln_(126, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
fdigits += ((NI) 1);
nimln_(127, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
fracExponent += ((NI) 1);
nimln_(128, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
integer = (NU64)((NU64)((NU64)((NU64)(integer) * (NU64)(10ULL))) + (NU64)(((NU64) ((NI)(((NU8)(s->data[i])) - ((NI) 48))))));
nimln_(129, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
i += ((NI) 1);
{
nimln_(130, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
while (1) {
NIM_BOOL T111_;
T111_ = (NIM_BOOL)0;
T111_ = (i < (s ? s->Sup.len : 0));
if (!(T111_)) goto LA112_;
T111_ = ((NU8)(s->data[i]) == (NU8)(95));
LA112_: ;
if (!T111_) goto LA110;
i += ((NI) 1);
} LA110: ;
}
} LA106: ;
}
}
LA83_: ;
nimln_(133, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T115_;
NIM_BOOL T117_;
NIM_BOOL T119_;
T115_ = (NIM_BOOL)0;
T115_ = ((NI)(kdigits + fdigits) <= ((NI) 0));
if (!(T115_)) goto LA116_;
nimln_(134, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
T117_ = (NIM_BOOL)0;
T117_ = (i == start);
if (T117_) goto LA118_;
nimln_(135, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
T119_ = (NIM_BOOL)0;
T119_ = (i == (NI)(start + ((NI) 1)));
if (!(T119_)) goto LA120_;
T119_ = hasSign;
LA120_: ;
T117_ = T119_;
LA118_: ;
T115_ = T117_;
LA116_: ;
if (!T115_) goto LA121_;
nimln_(136, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = ((NI) 0);
goto BeforeRet_;
}
LA121_: ;
nimln_(138, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T125_;
T125_ = (NIM_BOOL)0;
T125_ = ((NI)(i + ((NI) 1)) < (s ? s->Sup.len : 0));
if (!(T125_)) goto LA126_;
T125_ = (((NU8)(s->data[i])) == ((NU8)(101)) || ((NU8)(s->data[i])) == ((NU8)(69)));
LA126_: ;
if (!T125_) goto LA127_;
nimln_(139, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
i += ((NI) 1);
nimln_(140, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T131_;
T131_ = (NIM_BOOL)0;
T131_ = ((NU8)(s->data[i]) == (NU8)(43));
if (T131_) goto LA132_;
T131_ = ((NU8)(s->data[i]) == (NU8)(45));
LA132_: ;
if (!T131_) goto LA133_;
nimln_(141, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
if (!((NU8)(s->data[i]) == (NU8)(45))) goto LA137_;
nimln_(142, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
expSign = ((NI) -1);
}
LA137_: ;
nimln_(144, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
i += ((NI) 1);
}
LA133_: ;
nimln_(145, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
if (!!((((NU8)(s->data[i])) >= ((NU8)(48)) && ((NU8)(s->data[i])) <= ((NU8)(57))))) goto LA141_;
nimln_(146, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = ((NI) 0);
goto BeforeRet_;
}
LA141_: ;
{
nimln_(147, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
while (1) {
NIM_BOOL T145_;
T145_ = (NIM_BOOL)0;
T145_ = (i < (s ? s->Sup.len : 0));
if (!(T145_)) goto LA146_;
T145_ = (((NU8)(s->data[i])) >= ((NU8)(48)) && ((NU8)(s->data[i])) <= ((NU8)(57)));
LA146_: ;
if (!T145_) goto LA144;
nimln_(148, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
exponent = (NI)((NI)(exponent * ((NI) 10)) + (NI)(((NU8)(s->data[i])) - ((NI) 48)));
nimln_(149, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
i += ((NI) 1);
{
nimln_(150, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
while (1) {
NIM_BOOL T149_;
T149_ = (NIM_BOOL)0;
T149_ = (i < (s ? s->Sup.len : 0));
if (!(T149_)) goto LA150_;
T149_ = ((NU8)(s->data[i]) == (NU8)(95));
LA150_: ;
if (!T149_) goto LA148;
i += ((NI) 1);
} LA148: ;
}
} LA144: ;
}
}
LA127_: ;
nimln_(152, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
realExponent = (NI)((NI)(expSign * exponent) - fracExponent);
nimln_(153, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
expNegative = (realExponent < ((NI) 0));
nimln_(154, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
absExponent = (realExponent > 0? (realExponent) : -(realExponent));
nimln_(157, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
if (!(((NI) 999) < absExponent)) goto LA153_;
nimln_(158, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
if (!expNegative) goto LA157_;
nimln_(159, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
(*number) = ((NF)(0.0) * (NF)(sign));
}
goto LA155_;
LA157_: ;
{
nimln_(161, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
(*number) = ((NF)(INF) * (NF)(sign));
}
LA155_: ;
nimln_(162, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = (NI)(i - start);
goto BeforeRet_;
}
LA153_: ;
nimln_(166, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
digits = (NI)(kdigits + fdigits);
nimln_(167, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T162_;
NIM_BOOL T164_;
NI slop;
T162_ = (NIM_BOOL)0;
T162_ = (digits <= ((NI) 15));
if (T162_) goto LA163_;
T164_ = (NIM_BOOL)0;
T164_ = (digits <= ((NI) 16));
if (!(T164_)) goto LA165_;
T164_ = (firstDigit <= ((NI) 8));
LA165_: ;
T162_ = T164_;
LA163_: ;
if (!T162_) goto LA166_;
nimln_(169, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
if (!(absExponent <= ((NI) 22))) goto LA170_;
nimln_(170, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
if (!expNegative) goto LA174_;
nimln_(171, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
(*number) = ((NF)(((NF)(sign) * (NF)(((NF) (integer))))) / (NF)(powtens__system_6821[(absExponent)- 0]));
}
goto LA172_;
LA174_: ;
{
nimln_(173, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
(*number) = ((NF)(((NF)(sign) * (NF)(((NF) (integer))))) * (NF)(powtens__system_6821[(absExponent)- 0]));
}
LA172_: ;
nimln_(174, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = (NI)(i - start);
goto BeforeRet_;
}
LA170_: ;
nimln_(178, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
slop = (NI)((NI)(((NI) 15) - kdigits) - fdigits);
nimln_(179, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T179_;
T179_ = (NIM_BOOL)0;
T179_ = (absExponent <= (NI)(((NI) 22) + slop));
if (!(T179_)) goto LA180_;
T179_ = !(expNegative);
LA180_: ;
if (!T179_) goto LA181_;
nimln_(180, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
(*number) = ((NF)(((NF)(((NF)(sign) * (NF)(((NF) (integer))))) * (NF)(powtens__system_6821[(slop)- 0]))) * (NF)(powtens__system_6821[((NI)(absExponent - slop))- 0]));
nimln_(181, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = (NI)(i - start);
goto BeforeRet_;
}
LA181_: ;
}
LA166_: ;
nimZeroMem((void*)t, sizeof(tyArray__PGLh8drTnaWr3s1qUUSq2Q));
nimln_(185, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
ti = ((NI) 0);
nimln_(186, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
maxlen = ((NI) 494);
nimln_(188, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
endPos = i;
nimln_(189, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = (NI)(endPos - start);
nimln_(190, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
i = start;
nimln_(192, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
NIM_BOOL T185_;
T185_ = (NIM_BOOL)0;
T185_ = (i < endPos);
if (!(T185_)) goto LA186_;
T185_ = ((NU8)(s->data[i]) == (NU8)(46));
LA186_: ;
if (!T185_) goto LA187_;
i += ((NI) 1);
}
LA187_: ;
{
nimln_(193, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
while (1) {
NIM_BOOL T191_;
T191_ = (NIM_BOOL)0;
T191_ = (i < endPos);
if (!(T191_)) goto LA192_;
T191_ = (((NU8)(s->data[i])) >= ((NU8)(48)) && ((NU8)(s->data[i])) <= ((NU8)(57)) || ((NU8)(s->data[i])) == ((NU8)(43)) || ((NU8)(s->data[i])) == ((NU8)(45)));
LA192_: ;
if (!T191_) goto LA190;
nimln_(194, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
if (!(ti < maxlen)) goto LA195_;
nimln_(195, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
t[(ti)- 0] = s->data[i];
ti += ((NI) 1);
}
LA195_: ;
nimln_(196, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
i += ((NI) 1);
{
nimln_(197, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
while (1) {
NIM_BOOL T199_;
T199_ = (NIM_BOOL)0;
T199_ = (i < endPos);
if (!(T199_)) goto LA200_;
T199_ = (((NU8)(s->data[i])) == ((NU8)(46)) || ((NU8)(s->data[i])) == ((NU8)(95)));
LA200_: ;
if (!T199_) goto LA198;
nimln_(198, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
i += ((NI) 1);
} LA198: ;
}
} LA190: ;
}
nimln_(201, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
t[(ti)- 0] = 69;
nimln_(202, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
ti += ((NI) 1);
nimln_(203, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
if (!expNegative) goto LA203_;
t[(ti)- 0] = 45;
}
goto LA201_;
LA203_: ;
{
t[(ti)- 0] = 43;
}
LA201_: ;
nimln_(204, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
ti += ((NI) 4);
nimln_(207, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
t[((NI)(ti - ((NI) 1)))- 0] = ((NIM_CHAR) ((NI)(((NI) 48) + (NI)(absExponent % ((NI) 10)))));
nimln_(208, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
absExponent = (NI)(absExponent / ((NI) 10));
nimln_(209, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
t[((NI)(ti - ((NI) 2)))- 0] = ((NIM_CHAR) ((NI)(((NI) 48) + (NI)(absExponent % ((NI) 10)))));
nimln_(210, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
absExponent = (NI)(absExponent / ((NI) 10));
nimln_(211, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
t[((NI)(ti - ((NI) 3)))- 0] = ((NIM_CHAR) ((NI)(((NI) 48) + (NI)(absExponent % ((NI) 10)))));
nimln_(212, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
(*number) = strtod(((NCSTRING) (t)), ((NCSTRING*) NIM_NIL));
}BeforeRet_: ;
popFrame();
return result;
}
static N_NIMCALL(void, Marker_tyRef__8SzoIAgLw9ci2v0yafHj9b6Q)(void* p, NI op) {
tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag* a;
a = (tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag*)p;
nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.up, op);
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimblepkgZpackageinfo_640)(NimStringDesc** s, NIM_BOOL x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = nimBoolToStr(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
static N_NIMCALL(void, Marker_tyRef__HV2B9a6TW6WPpQna2mQFeQQ)(void* p, NI op) {
tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg* a;
a = (tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg*)p;
nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.up, op);
}
N_LIB_PRIVATE N_NIMCALL(void*, nimLoadLibrary)(NimStringDesc* path) {
void* result;
int flags;
result = (void*)0;
flags = ((int) 2);
result = dlopen(nimToCStringConv(path), flags);
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, nimLoadLibraryError)(NimStringDesc* path) {
rawWrite(stderr, "could not load: ");
rawWrite(stderr, nimToCStringConv(path));
rawWrite(stderr, "\012(compile with -d:nimDebugDlOpen for more information)");
rawWrite(stderr, "\012");
exit(((NI) 1));
}
N_LIB_PRIVATE N_NIMCALL(void, procAddrError)(NCSTRING name) {
rawWrite(stderr, "could not import: ");
rawWrite(stderr, name);
rawWrite(stderr, "\012");
exit(((NI) 1));
}
N_LIB_PRIVATE N_NIMCALL(void*, nimGetProcAddr)(void* lib, NCSTRING name) {
void* result;
result = (void*)0;
result = dlsym(lib, name);
{
if (!(result == NIM_NIL)) goto LA3_;
procAddrError(name);
}
LA3_: ;
return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ*, new__pureZnet_1093)(void) {
tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ* result;
tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ* r;
nimfr_("new", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{ result = NIM_NIL;
r = NIM_NIL;
nimln_(916, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
r = (tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ*) newObj((&NTIsslcontextextrainternal__t2PQ49cw9cyPD5BKolxzFbTw_), sizeof(tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ));
(*r).Sup.m_type = (&NTIsslcontextextrainternal58objecttype__22zILeNTc8ClX7DrPZ3XOQ_);
nimln_(917, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = r;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, clamp__pureZstreams_618)(NI x, NI a, NI b) {
NI result;
nimfr_("clamp", "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{ result = (NI)0;
nimln_(264, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{
if (!(x < a)) goto LA3_;
result = a;
goto BeforeRet_;
}
LA3_: ;
nimln_(265, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{
if (!(b < x)) goto LA7_;
result = b;
goto BeforeRet_;
}
LA7_: ;
nimln_(266, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = x;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
static N_INLINE(void*, seqToPtr__nimble_11569)(tySequence__kLwf9aGQcuduFr4gekUDa2w* x) {
void* result;
nimfr_("seqToPtr", "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = (void*)0;
nimln_(296, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = ((void*) (x));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___nimble_11590)(tyTuple__gDWaEqPfhOauJWKMBm8bzg x, tyTuple__gDWaEqPfhOauJWKMBm8bzg y) {
NIM_BOOL result;
nimfr_("==", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{ result = (NIM_BOOL)0;
nimln_(1888, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
if (!!(eqStrings(x.Field0, y.Field0))) goto LA3_;
result = NIM_FALSE;
goto BeforeRet_;
}
LA3_: ;
{
NIM_BOOL T7_;
T7_ = (NIM_BOOL)0;
T7_ = eqeq___nimblepkgZversion_162(x.Field1, y.Field1);
if (!!(T7_)) goto LA8_;
result = NIM_FALSE;
goto BeforeRet_;
}
LA8_: ;
nimln_(1889, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_TRUE;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___nimble_11554)(tySequence__kLwf9aGQcuduFr4gekUDa2w* x, tySequence__kLwf9aGQcuduFr4gekUDa2w* y) {
NIM_BOOL result;
nimfr_("==", "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{ result = (NIM_BOOL)0;
nimln_(298, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{
void* T3_;
void* T4_;
T3_ = (void*)0;
T3_ = seqToPtr__nimble_11569(x);
T4_ = (void*)0;
T4_ = seqToPtr__nimble_11569(y);
if (!(T3_ == T4_)) goto LA5_;
nimln_(299, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = NIM_TRUE;
goto BeforeRet_;
}
LA5_: ;
nimln_(305, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{
NI T9_;
NI T10_;
T9_ = (x ? x->Sup.len : 0);
T10_ = (y ? y->Sup.len : 0);
if (!!((T9_ == T10_))) goto LA11_;
nimln_(306, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = NIM_FALSE;
goto BeforeRet_;
}
LA11_: ;
{
NI i;
NI colontmp_;
NI T14_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_80;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
nimln_(308, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
T14_ = (x ? x->Sup.len : 0);
if (nimSubInt(T14_, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_80)) { raiseOverflow(); };
colontmp_ = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_80);
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_81;
if (!(res <= colontmp_)) goto LA16;
nimln_(308, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
i = res;
{
NIM_BOOL T19_;
nimln_(309, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
if (i < 0 || i >= (x ? x->Sup.len : 0)){ raiseIndexError2(i,(x ? x->Sup.len : 0)-1); }
if (i < 0 || i >= (y ? y->Sup.len : 0)){ raiseIndexError2(i,(y ? y->Sup.len : 0)-1); }
T19_ = (NIM_BOOL)0;
T19_ = eqeq___nimble_11590(x->data[i], y->data[i]);
if (!!(T19_)) goto LA20_;
nimln_(310, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = NIM_FALSE;
goto BeforeRet_;
}
LA20_: ;
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
if (nimAddInt(res, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_81)) { raiseOverflow(); };
res = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_81);
} LA16: ;
}
}
nimln_(312, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = NIM_TRUE;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
static N_INLINE(void*, seqToPtr__pureZjson_2100)(tySequence__oLpBKXzW3hF9aCVMo5EymfQ* x) {
void* result;
nimfr_("seqToPtr", "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = (void*)0;
nimln_(296, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = ((void*) (x));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___pureZjson_2084)(tySequence__oLpBKXzW3hF9aCVMo5EymfQ* x, tySequence__oLpBKXzW3hF9aCVMo5EymfQ* y) {
NIM_BOOL result;
nimfr_("==", "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{ result = (NIM_BOOL)0;
nimln_(298, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{
void* T3_;
void* T4_;
T3_ = (void*)0;
T3_ = seqToPtr__pureZjson_2100(x);
T4_ = (void*)0;
T4_ = seqToPtr__pureZjson_2100(y);
if (!(T3_ == T4_)) goto LA5_;
nimln_(299, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = NIM_TRUE;
goto BeforeRet_;
}
LA5_: ;
nimln_(305, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{
NI T9_;
NI T10_;
T9_ = (x ? x->Sup.len : 0);
T10_ = (y ? y->Sup.len : 0);
if (!!((T9_ == T10_))) goto LA11_;
nimln_(306, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = NIM_FALSE;
goto BeforeRet_;
}
LA11_: ;
{
NI i;
NI colontmp_;
NI T14_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_82;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
nimln_(308, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
T14_ = (x ? x->Sup.len : 0);
if (nimSubInt(T14_, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_82)) { raiseOverflow(); };
colontmp_ = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_82);
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_83;
if (!(res <= colontmp_)) goto LA16;
nimln_(308, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
i = res;
{
NIM_BOOL T19_;
nimln_(309, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
if (i < 0 || i >= (x ? x->Sup.len : 0)){ raiseIndexError2(i,(x ? x->Sup.len : 0)-1); }
if (i < 0 || i >= (y ? y->Sup.len : 0)){ raiseIndexError2(i,(y ? y->Sup.len : 0)-1); }
T19_ = (NIM_BOOL)0;
T19_ = eqeq___pureZjson_2067(x->data[i], y->data[i]);
if (!!(T19_)) goto LA20_;
nimln_(310, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = NIM_FALSE;
goto BeforeRet_;
}
LA20_: ;
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
if (nimAddInt(res, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_83)) { raiseOverflow(); };
res = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_83);
} LA16: ;
}
}
nimln_(312, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = NIM_TRUE;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__pureZjson_5444)(NimStringDesc** s, tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg x) {
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (reprEnum((NI)x, (&NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_)) ? reprEnum((NI)x, (&NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_))->Sup.len : 0) + 0));
appendString((*s), reprEnum((NI)x, (&NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_)));
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, add__nimblepkgZpackageparser_395)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ** x, NimStringDesc** y, NI yLen_0) {
NI xl;
NI T1_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_84;
nimfr_("add", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(1318, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = ((*x) ? (*x)->Sup.len : 0);
xl = T1_;
nimln_(1319, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
if (nimAddInt(xl, yLen_0, &TM__Q5wkpxktOdTGvlSRo9bzt9aw_84)) { raiseOverflow(); };
if (((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_84)) < ((NI) 0) || ((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_84)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_84), ((NI) 0), ((NI) IL64(9223372036854775807))); }
unsureAsgnRef((void**) (&(*x)), (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) setLengthSeqV2(&((*x))->Sup, (&NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_), ((NI) ((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_84)))));
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
nimln_(1320, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
colontmp_ = (yLen_0-1);
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_85;
NimStringDesc* T5_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_86;
if (!(res <= colontmp_)) goto LA4;
nimln_(1320, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
i = res;
if (nimAddInt(xl, i, &TM__Q5wkpxktOdTGvlSRo9bzt9aw_85)) { raiseOverflow(); };
if ((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_85) < 0 || (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_85) >= ((*x) ? (*x)->Sup.len : 0)){ raiseIndexError2((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_85),((*x) ? (*x)->Sup.len : 0)-1); }
if (i < 0 || i >= yLen_0){ raiseIndexError2(i,yLen_0-1); }
T5_ = NIM_NIL;
T5_ = (*x)->data[(NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_85)]; (*x)->data[(NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_85)] = copyStringRC1(y[i]);
if (T5_) nimGCunrefNoCycle(T5_);
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
if (nimAddInt(res, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_86)) { raiseOverflow(); };
res = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_86);
} LA4: ;
}
}
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, del__nimblepkgZpackageparser_343)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ** x, NI i) {
NI xl;
NI T1_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_87;
nimfr_("del", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(1341, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = ((*x) ? (*x)->Sup.len : 0);
if (nimSubInt(T1_, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_87)) { raiseOverflow(); };
xl = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_87);
if (i < 0 || i >= ((*x) ? (*x)->Sup.len : 0)){ raiseIndexError2(i,((*x) ? (*x)->Sup.len : 0)-1); }
nimln_(1342, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
if (xl < 0 || xl >= ((*x) ? (*x)->Sup.len : 0)){ raiseIndexError2(xl,((*x) ? (*x)->Sup.len : 0)-1); }
asgnRef((void**) (&(*x)->data[i]), (*x)->data[xl]);
nimln_(1343, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
if ((xl) < ((NI) 0) || (xl) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(xl, ((NI) 0), ((NI) IL64(9223372036854775807))); }
unsureAsgnRef((void**) (&(*x)), (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) setLengthSeqV2(&((*x))->Sup, (&NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_), ((NI) (xl))));
popFrame();
}
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError3)(NI i, NI a, NI b) {
NimStringDesc* T1_;
T1_ = NIM_NIL;
{
if (!(b < a)) goto LA4_;
T1_ = copyString(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_16));
}
goto LA2_;
LA4_: ;
{
NimStringDesc* T7_;
NimStringDesc* T8_;
NimStringDesc* T9_;
NimStringDesc* T10_;
T7_ = NIM_NIL;
T8_ = NIM_NIL;
T8_ = dollar___systemZdollars_8(i);
T9_ = NIM_NIL;
T9_ = dollar___systemZdollars_8(a);
T10_ = NIM_NIL;
T10_ = dollar___systemZdollars_8(b);
T7_ = rawNewString((T8_ ? T8_->Sup.len : 0) + (T9_ ? T9_->Sup.len : 0) + (T10_ ? T10_->Sup.len : 0) + 18);
appendString(T7_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_17));
appendString(T7_, T8_);
appendString(T7_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_88));
appendString(T7_, T9_);
appendString(T7_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_15));
appendString(T7_, T10_);
T1_ = T7_;
}
LA2_: ;
sysFatal__system_3602(T1_);
}
N_LIB_PRIVATE N_NIMCALL(NI64, clamp__pureZtimes_1457)(NI64 x, NI64 a, NI64 b) {
NI64 result;
nimfr_("clamp", "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{ result = (NI64)0;
nimln_(264, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{
if (!(x < a)) goto LA3_;
result = a;
goto BeforeRet_;
}
LA3_: ;
nimln_(265, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{
if (!(b < x)) goto LA7_;
result = b;
goto BeforeRet_;
}
LA7_: ;
nimln_(266, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = x;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NCSTRING*, allocCStringArray__system_2755)(NimStringDesc** a, NI aLen_0) {
NCSTRING* result;
void* T1_;
NimStringDesc** x;
result = (NCSTRING*)0;
T1_ = (void*)0;
T1_ = alloc0Impl__system_1745(((NI) ((NI)((NI)(aLen_0 + ((NI) 1)) * ((NI) 8)))));
result = ((NCSTRING*) (T1_));
x = ((NimStringDesc**) (a));
{
NI i;
NI colontmp_;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
colontmp_ = (aLen_0-1);
res = ((NI) 0);
{
while (1) {
void* T5_;
if (!(res <= colontmp_)) goto LA4;
i = res;
T5_ = (void*)0;
T5_ = alloc0Impl__system_1745(((NI) ((NI)((x[i] ? x[i]->Sup.len : 0) + ((NI) 1)))));
result[i] = ((NCSTRING) (T5_));
copyMem__system_1727(((void*) (result[i])), ((void*) ((&x[i]->data[((NI) 0)]))), ((NI) ((x[i] ? x[i]->Sup.len : 0))));
res += ((NI) 1);
} LA4: ;
}
}
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, deallocCStringArray__system_2789)(NCSTRING* a) {
NI i;
i = ((NI) 0);
{
while (1) {
if (!!((((void*) (a[i])) == NIM_NIL))) goto LA2;
dealloc(((void*) (a[i])));
i += ((NI) 1);
} LA2: ;
}
dealloc(((void*) (a)));
}
static N_INLINE(NI, cmpStrings)(NimStringDesc* a, NimStringDesc* b) {
NI result;
NI alen;
NI blen;
NI minlen;
nimfr_("cmpStrings", "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = (NI)0;
nimln_(16, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
alen = (a ? a->Sup.len : 0);
nimln_(17, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
blen = (b ? b->Sup.len : 0);
nimln_(18, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
minlen = ((alen <= blen) ? alen : blen);
nimln_(19, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
int T5_;
if (!(((NI) 0) < minlen)) goto LA3_;
nimln_(20, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
T5_ = (int)0;
T5_ = memcmp(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((size_t) (minlen)));
result = ((NI) (T5_));
nimln_(21, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
{
if (!(result == ((NI) 0))) goto LA8_;
nimln_(22, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = (NI)(alen - blen);
}
LA8_: ;
}
goto LA1_;
LA3_: ;
{
nimln_(24, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
result = (NI)(alen - blen);
}
LA1_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, cmp__nimblepkgZchecksums_84)(NimStringDesc* x, NimStringDesc* y) {
NI result;
nimfr_("cmp", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{ result = (NI)0;
nimln_(967, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
if (!eqStrings(x, y)) goto LA3_;
result = ((NI) 0);
goto BeforeRet_;
}
LA3_: ;
nimln_(968, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
if (!(cmpStrings(x, y) < 0)) goto LA7_;
result = ((NI) -1);
goto BeforeRet_;
}
LA7_: ;
nimln_(969, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = ((NI) 1);
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
static N_NIMCALL(void, Marker_tyRef__LEclZrWX2FQAodlapxGITw)(void* p, NI op) {
tyObject_EOFError__KGSY1JdrNB7Xi8KDhXFhSg* a;
a = (tyObject_EOFError__KGSY1JdrNB7Xi8KDhXFhSg*)p;
nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.Sup.up, op);
}
N_LIB_PRIVATE N_NIMCALL(NI, cmp__system_1549)(NimStringDesc* x, NimStringDesc* y) {
NI result;
NI minlen;
int T1_;
result = (NI)0;
minlen = (((x ? x->Sup.len : 0) <= (y ? y->Sup.len : 0)) ? (x ? x->Sup.len : 0) : (y ? y->Sup.len : 0));
T1_ = (int)0;
T1_ = nimCmpMem(((void*) (nimToCStringConv(x))), ((void*) (nimToCStringConv(y))), ((NI) (((size_t) (minlen)))));
result = ((NI) (T1_));
{
if (!(result == ((NI) 0))) goto LA4_;
result = (NI)((x ? x->Sup.len : 0) - (y ? y->Sup.len : 0));
}
LA4_: ;
return result;
}
static N_NIMCALL(void, Marker_tyRef__gcKyg9bhR5vWTJg3cREMk0Q)(void* p, NI op) {
tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* a;
a = (tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*)p;
nimGCvisit((void*)(*a).Sup.parent, op);
nimGCvisit((void*)(*a).Sup.message, op);
nimGCvisit((void*)(*a).Sup.trace, op);
nimGCvisit((void*)(*a).Sup.up, op);
}
N_LIB_PRIVATE N_NIMCALL(tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw*, new__nimblepkgZdevelopfile_3337)(void) {
tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw* result;
tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw* r;
nimfr_("new", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{ result = NIM_NIL;
r = NIM_NIL;
nimln_(916, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
r = (tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw*) newObj((&NTIrefpackageinfo__Vn9czOTOfQFb3bzsN39b49caw_), sizeof(tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw));
nimln_(917, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = r;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimblepkgZdevelopfile_13328)(NimStringDesc** s, tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw* x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___nimblepkgZdevelopfile_12876(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimblepkgZdevelopfile_13404)(NimStringDesc** s, NimStringDesc* x) {
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (x ? x->Sup.len : 0) + 0));
appendString((*s), x);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimblepkgZdevelopfile_13337)(NimStringDesc** s, tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___nimblepkgZdevelopfile_13396(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___nimblepkgZdevelopfile_14344)(tyTuple__UV3llMMYFckfui8YMBuUZA x, tyTuple__UV3llMMYFckfui8YMBuUZA y) {
NIM_BOOL result;
nimfr_("==", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{ result = (NIM_BOOL)0;
nimln_(1888, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = eqeq___nimblepkgZpaths_57(x.Field0, y.Field0);
if (!!(T3_)) goto LA4_;
result = NIM_FALSE;
goto BeforeRet_;
}
LA4_: ;
{
NIM_BOOL T8_;
T8_ = (NIM_BOOL)0;
T8_ = eqeq___nimblepkgZpaths_57(x.Field1, y.Field1);
if (!!(T8_)) goto LA9_;
result = NIM_FALSE;
goto BeforeRet_;
}
LA9_: ;
nimln_(1889, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_TRUE;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__stdZjsonutils_449)(NimStringDesc** s, tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___pureZjson_4518(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__pureZstrutils_1296)(NimStringDesc** s, NI x) {
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2949, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
addInt__stdZprivateZdigitsutils_189(s, x);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(tySequence__fhDBBEpmMT58akJuEEHXxQ*, newSeq__nimblepkgZdownload_215)(NI len) {
tySequence__fhDBBEpmMT58akJuEEHXxQ* result;
nimfr_("newSeq", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_NIL;
nimln_(690, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = (tySequence__fhDBBEpmMT58akJuEEHXxQ*) newSeq((&NTIseqLtupleLver58version_tag58stringTT__fhDBBEpmMT58akJuEEHXxQ_), len);
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimble_3453)(NimStringDesc** s, tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___nimble_3516(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__pureZhttpcore_2614)(NimStringDesc** s, tySequence__sM4lkSb7zS6F7OVMvW9cffQ* x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___pureZhttpcore_2620(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimble_4088)(NimStringDesc** s, tyTuple__gDWaEqPfhOauJWKMBm8bzg x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___nimblepkgZversion_1054(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimble_4063)(NimStringDesc** s, tySequence__kLwf9aGQcuduFr4gekUDa2w* x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___nimble_4069(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimble_4539)(NimStringDesc** s, tyObject_Table__Ji6x6JQ0gVMaFr8AIk18Ug x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___nimble_4602(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimble_5134)(NimStringDesc** s, tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA x) {
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (x.version ? x.version->Sup.len : 0) + 0));
appendString((*s), x.version);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimble_5147)(NimStringDesc** s, tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw x) {
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (x.hashValue ? x.hashValue->Sup.len : 0) + 0));
appendString((*s), x.hashValue);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimble_5092)(NimStringDesc** s, tyTuple__BjxoJYFE5BulbiU15SM6nQ x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___nimble_5098(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimble_5630)(NimStringDesc** s, tyEnum_DownloadMethod__IqkMKe5PGkzDG0ayIWPJ6w x) {
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (reprEnum((NI)x, (&NTIdownloadmethod__IqkMKe5PGkzDG0ayIWPJ6w_)) ? reprEnum((NI)x, (&NTIdownloadmethod__IqkMKe5PGkzDG0ayIWPJ6w_))->Sup.len : 0) + 0));
appendString((*s), reprEnum((NI)x, (&NTIdownloadmethod__IqkMKe5PGkzDG0ayIWPJ6w_)));
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimble_5689)(NimStringDesc** s, tyObject_Checksums__aZcxVfkZCt9bd29bg29aMe9aaA x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___nimble_5695(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimble_5563)(NimStringDesc** s, tyObject_LockFileDep__PkUOL8vzIvRRmF9bLOPRlhg* x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___nimble_5569(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimble_5426)(NimStringDesc** s, tyObject_OrderedTable__b2SAayIK9c6IoZnFt9cutJhQ* x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___nimble_5489(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimble_6119)(NimStringDesc** s, tyObject_HashSet__aCgx9aJWOlGNhL9b41LIC4Wg x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___nimble_6182(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimble_5955)(NimStringDesc** s, tyObject_PackageMetaData__EO1rPizWROcibmAlVzA30w* x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___nimble_5961(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(tySequence__in1FW1qSci1jSFiiXbB78A*, newSeq__nimblepkgZpackagemetadatafile_201)(NI len) {
tySequence__in1FW1qSci1jSFiiXbB78A* result;
nimfr_("newSeq", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_NIL;
nimln_(690, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = (tySequence__in1FW1qSci1jSFiiXbB78A*) newSeq((&NTIseqLversionT__in1FW1qSci1jSFiiXbB78A_), len);
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, amp___nimble_10125)(NimStringDesc* x, tySequence__sM4lkSb7zS6F7OVMvW9cffQ* y) {
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result;
NI T1_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_89;
NimStringDesc* T2_;
nimfr_("&", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_NIL;
nimln_(1721, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = (y ? y->Sup.len : 0);
if (nimAddInt(T1_, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_89)) { raiseOverflow(); };
if (((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_89)) < ((NI) 0) || ((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_89)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_89), ((NI) 0), ((NI) IL64(9223372036854775807))); }
result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) newSeq((&NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_), ((NI) ((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_89))));
if (((NI) 0) < 0 || ((NI) 0) >= (result ? result->Sup.len : 0)){ raiseIndexError2(((NI) 0),(result ? result->Sup.len : 0)-1); }
nimln_(1722, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T2_ = NIM_NIL;
T2_ = result->data[((NI) 0)]; result->data[((NI) 0)] = copyStringRC1(x);
if (T2_) nimGCunrefNoCycle(T2_);
{
NI i;
NI colontmp_;
NI T4_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_90;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
nimln_(1723, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T4_ = (y ? y->Sup.len : 0);
if (nimSubInt(T4_, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_90)) { raiseOverflow(); };
colontmp_ = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_90);
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_91;
NimStringDesc* T7_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_92;
if (!(res <= colontmp_)) goto LA6;
nimln_(1723, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
i = res;
nimln_(1724, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
if (nimAddInt(i, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_91)) { raiseOverflow(); };
if ((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_91) < 0 || (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_91) >= (result ? result->Sup.len : 0)){ raiseIndexError2((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_91),(result ? result->Sup.len : 0)-1); }
nimln_(1723, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
if (i < 0 || i >= (y ? y->Sup.len : 0)){ raiseIndexError2(i,(y ? y->Sup.len : 0)-1); }
T7_ = NIM_NIL;
T7_ = result->data[(NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_91)]; result->data[(NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_91)] = copyStringRC1(y->data[i]);
if (T7_) nimGCunrefNoCycle(T7_);
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
if (nimAddInt(res, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_92)) { raiseOverflow(); };
res = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_92);
} LA6: ;
}
}
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__pureZos_1013)(NimStringDesc** s, tyEnum_FilePermission__uTVeDpjCH6aWw9c74YkAskA x) {
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (reprEnum((NI)x, (&NTIfilepermission__uTVeDpjCH6aWw9c74YkAskA_)) ? reprEnum((NI)x, (&NTIfilepermission__uTVeDpjCH6aWw9c74YkAskA_))->Sup.len : 0) + 0));
appendString((*s), reprEnum((NI)x, (&NTIfilepermission__uTVeDpjCH6aWw9c74YkAskA_)));
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__pureZos_971)(NimStringDesc** s, tySet_tyEnum_FilePermission__uTVeDpjCH6aWw9c74YkAskA x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___pureZos_977(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___nimblepkgZreversedeps_36)(tyTuple__BjxoJYFE5BulbiU15SM6nQ x, tyTuple__BjxoJYFE5BulbiU15SM6nQ y) {
NIM_BOOL result;
nimfr_("==", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{ result = (NIM_BOOL)0;
nimln_(1888, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
if (!!(eqStrings(x.Field0, y.Field0))) goto LA3_;
result = NIM_FALSE;
goto BeforeRet_;
}
LA3_: ;
{
NIM_BOOL T7_;
T7_ = (NIM_BOOL)0;
T7_ = eqeq___nimblepkgZversion_129(x.Field1, y.Field1);
if (!!(T7_)) goto LA8_;
result = NIM_FALSE;
goto BeforeRet_;
}
LA8_: ;
{
if (!!(eqStrings(x.Field2.hashValue, y.Field2.hashValue))) goto LA12_;
result = NIM_FALSE;
goto BeforeRet_;
}
LA12_: ;
nimln_(1889, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_TRUE;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, amp___nimble_9494)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ* x, NimStringDesc* y) {
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result;
NI T1_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_93;
NI T7_;
NimStringDesc* T8_;
nimfr_("&", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_NIL;
nimln_(1709, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = (x ? x->Sup.len : 0);
if (nimAddInt(T1_, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_93)) { raiseOverflow(); };
if (((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_93)) < ((NI) 0) || ((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_93)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_93), ((NI) 0), ((NI) IL64(9223372036854775807))); }
result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) newSeq((&NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_), ((NI) ((NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_93))));
{
NI i;
NI colontmp_;
NI T3_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_94;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
nimln_(1710, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T3_ = (x ? x->Sup.len : 0);
if (nimSubInt(T3_, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_94)) { raiseOverflow(); };
colontmp_ = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_94);
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
NimStringDesc* T6_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_95;
if (!(res <= colontmp_)) goto LA5;
nimln_(1710, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
i = res;
if (i < 0 || i >= (result ? result->Sup.len : 0)){ raiseIndexError2(i,(result ? result->Sup.len : 0)-1); }
if (i < 0 || i >= (x ? x->Sup.len : 0)){ raiseIndexError2(i,(x ? x->Sup.len : 0)-1); }
T6_ = NIM_NIL;
T6_ = result->data[i]; result->data[i] = copyStringRC1(x->data[i]);
if (T6_) nimGCunrefNoCycle(T6_);
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
if (nimAddInt(res, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_95)) { raiseOverflow(); };
res = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_95);
} LA5: ;
}
}
nimln_(1712, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T7_ = (x ? x->Sup.len : 0);
if (T7_ < 0 || T7_ >= (result ? result->Sup.len : 0)){ raiseIndexError2(T7_,(result ? result->Sup.len : 0)-1); }
T8_ = NIM_NIL;
T8_ = result->data[T7_]; result->data[T7_] = copyStringRC1(y);
if (T8_) nimGCunrefNoCycle(T8_);
popFrame();
return result;
}
static N_INLINE(void*, seqToPtr__nimble_11860)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ* x) {
void* result;
nimfr_("seqToPtr", "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = (void*)0;
nimln_(296, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = ((void*) (x));
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___nimble_11845)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ* x, tySequence__sM4lkSb7zS6F7OVMvW9cffQ* y) {
NIM_BOOL result;
nimfr_("==", "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{ result = (NIM_BOOL)0;
nimln_(298, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{
void* T3_;
void* T4_;
T3_ = (void*)0;
T3_ = seqToPtr__nimble_11860(x);
T4_ = (void*)0;
T4_ = seqToPtr__nimble_11860(y);
if (!(T3_ == T4_)) goto LA5_;
nimln_(299, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = NIM_TRUE;
goto BeforeRet_;
}
LA5_: ;
nimln_(305, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
{
NI T9_;
NI T10_;
T9_ = (x ? x->Sup.len : 0);
T10_ = (y ? y->Sup.len : 0);
if (!!((T9_ == T10_))) goto LA11_;
nimln_(306, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = NIM_FALSE;
goto BeforeRet_;
}
LA11_: ;
{
NI i;
NI colontmp_;
NI T14_;
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_96;
NI res;
i = (NI)0;
colontmp_ = (NI)0;
nimln_(308, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
T14_ = (x ? x->Sup.len : 0);
if (nimSubInt(T14_, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_96)) { raiseOverflow(); };
colontmp_ = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_96);
nimln_(90, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
res = ((NI) 0);
{
nimln_(91, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
while (1) {
NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_97;
if (!(res <= colontmp_)) goto LA16;
nimln_(308, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
i = res;
{
nimln_(309, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
if (i < 0 || i >= (x ? x->Sup.len : 0)){ raiseIndexError2(i,(x ? x->Sup.len : 0)-1); }
if (i < 0 || i >= (y ? y->Sup.len : 0)){ raiseIndexError2(i,(y ? y->Sup.len : 0)-1); }
if (!!(eqStrings(x->data[i], y->data[i]))) goto LA19_;
nimln_(310, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = NIM_FALSE;
goto BeforeRet_;
}
LA19_: ;
nimln_(93, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators_1.nim");
if (nimAddInt(res, ((NI) 1), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_97)) { raiseOverflow(); };
res = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_97);
} LA16: ;
}
}
nimln_(312, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
result = NIM_TRUE;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__fhDBBEpmMT58akJuEEHXxQ*, newSeq__nimble_15457)(NI len) {
tySequence__fhDBBEpmMT58akJuEEHXxQ* result;
nimfr_("newSeq", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_NIL;
nimln_(690, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = (tySequence__fhDBBEpmMT58akJuEEHXxQ*) newSeq((&NTIseqLtupleLver58version_tag58stringTT__fhDBBEpmMT58akJuEEHXxQ_), len);
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___nimble_15421)(tyTuple__xNm5d5jOgkHsR74FkVoLcA x, tyTuple__xNm5d5jOgkHsR74FkVoLcA y) {
NIM_BOOL result;
nimfr_("==", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{ result = (NIM_BOOL)0;
nimln_(1888, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = eqeq___nimblepkgZversion_129(x.Field0, y.Field0);
if (!!(T3_)) goto LA4_;
result = NIM_FALSE;
goto BeforeRet_;
}
LA4_: ;
{
if (!!(eqStrings(x.Field1, y.Field1))) goto LA8_;
result = NIM_FALSE;
goto BeforeRet_;
}
LA8_: ;
nimln_(1889, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_TRUE;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, lt___nimble_15431)(tyTuple__xNm5d5jOgkHsR74FkVoLcA x, tyTuple__xNm5d5jOgkHsR74FkVoLcA y) {
NIM_BOOL result;
NI c;
NI c_2;
nimfr_("<", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{ result = (NIM_BOOL)0;
nimln_(1904, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
c = cmp__nimblepkgZversion_154(x.Field0, y.Field0);
nimln_(1905, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
if (!(c < ((NI) 0))) goto LA3_;
result = NIM_TRUE;
goto BeforeRet_;
}
LA3_: ;
nimln_(1906, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
if (!(((NI) 0) < c)) goto LA7_;
result = NIM_FALSE;
goto BeforeRet_;
}
LA7_: ;
nimln_(1904, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
c_2 = cmp__system_1549(x.Field1, y.Field1);
nimln_(1905, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
if (!(c_2 < ((NI) 0))) goto LA11_;
result = NIM_TRUE;
goto BeforeRet_;
}
LA11_: ;
nimln_(1906, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
if (!(((NI) 0) < c_2)) goto LA15_;
result = NIM_FALSE;
goto BeforeRet_;
}
LA15_: ;
nimln_(1907, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_FALSE;
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, cmp__nimble_15416)(tyTuple__xNm5d5jOgkHsR74FkVoLcA x, tyTuple__xNm5d5jOgkHsR74FkVoLcA y) {
NI result;
nimfr_("cmp", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{ result = (NI)0;
nimln_(967, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = eqeq___nimble_15421(x, y);
if (!T3_) goto LA4_;
result = ((NI) 0);
goto BeforeRet_;
}
LA4_: ;
nimln_(968, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
{
NIM_BOOL T8_;
T8_ = (NIM_BOOL)0;
T8_ = lt___nimble_15431(x, y);
if (!T8_) goto LA9_;
result = ((NI) -1);
goto BeforeRet_;
}
LA9_: ;
nimln_(969, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = ((NI) 1);
goto BeforeRet_;
}BeforeRet_: ;
popFrame();
return result;
}
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorU)(NU64 i, NU64 a, NU64 b) {
sysFatal__system_3682(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_19));
}
N_LIB_PRIVATE N_NIMCALL(void, quit__system_8161)(NimStringDesc* errormsg, NI errorcode) {
nimfr_("quit", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2506, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
rawWrite(stderr, nimToCStringConv(errormsg));
nimln_(2507, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
rawWrite(stderr, "\012");
nimln_(2508, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
exit(errorcode);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__nimblepkgZdevelopfile_31563)(NimStringDesc** s, tyObject_HashSet__S9b3RqpNNDk9amlBpWXvpREw x) {
NimStringDesc* T1_;
nimfr_("addQuoted", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
nimln_(2955, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
T1_ = NIM_NIL;
T1_ = dollar___nimblepkgZdevelopfile_31622(x);
unsureAsgnRef((void**) (&(*s)), resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0));
appendString((*s), T1_);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(tySequence__jKfNJ7fLGpPDIVgcXny4Hw*, newSeq__nimblepkgZdevelopfile_32375)(NI len) {
tySequence__jKfNJ7fLGpPDIVgcXny4Hw* result;
nimfr_("newSeq", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_NIL;
nimln_(690, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = (tySequence__jKfNJ7fLGpPDIVgcXny4Hw*) newSeq((&NTIseqLrefpackageinfoT__jKfNJ7fLGpPDIVgcXny4Hw_), len);
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, newSeq__nimblepkgZdevelopfile_1323)(NI len) {
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result;
nimfr_("newSeq", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_NIL;
nimln_(690, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) newSeq((&NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_), len);
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__MFIxnpZlYyn0JQ9av9cKcm2Q*, newSeq__nimble_17492)(NI len) {
tySequence__MFIxnpZlYyn0JQ9av9cKcm2Q* result;
nimfr_("newSeq", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_NIL;
nimln_(690, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = (tySequence__MFIxnpZlYyn0JQ9av9cKcm2Q*) newSeq((&NTIseqLpackageinfoT__MFIxnpZlYyn0JQ9av9cKcm2Q_), len);
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__HhwRVSXQRFCCEUo2zMKJVg*, newSeq__nimble_17031)(NI len) {
tySequence__HhwRVSXQRFCCEUo2zMKJVg* result;
nimfr_("newSeq", "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = NIM_NIL;
nimln_(690, "/home/yyoncho/Sources/nim/Nim/lib/system.nim");
result = (tySequence__HhwRVSXQRFCCEUo2zMKJVg*) newSeq((&NTIseqLtupleLkind58pathcomponent_path58stringTT__HhwRVSXQRFCCEUo2zMKJVg_), len);
popFrame();
return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getStackTrace__system_3051)(Exception* e) {
NimStringDesc* result;
result = NIM_NIL;
{
if (!!((e == 0))) goto LA3_;
result = dollar___system_3244((*e).trace);
}
goto LA1_;
LA3_: ;
{
result = ((NimStringDesc*) NIM_NIL);
}
LA1_: ;
return result;
}
N_LIB_PRIVATE N_NIMCALL(void, setPosition__system_6045)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack, void* position) {
nimfr_("setPosition", "/home/yyoncho/Sources/nim/Nim/lib/system/gc_common.nim");
popFrame();
}
N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom) {
{
if (!(gch__system_5793.stack.bottom == NIM_NIL)) goto LA3_;
gch__system_5793.stack.bottom = theStackBottom;
}
goto LA1_;
LA3_: ;
{
NI a;
NI b;
if (!!((theStackBottom == gch__system_5793.stack.bottom))) goto LA6_;
a = ((NI) (ptrdiff_t) (theStackBottom));
b = ((NI) (ptrdiff_t) (gch__system_5793.stack.bottom));
gch__system_5793.stack.bottom = ((void*) (((a >= b) ? a : b)));
}
goto LA1_;
LA6_: ;
LA1_: ;
setPosition__system_6045((&gch__system_5793.stack), theStackBottom);
}
static N_NIMCALL(void, Marker_tyRef__9aBnjTxiD7kSbLtZVd9aMijA)(void* p, NI op) {
tyObject_NilAccessDefect__xZt69cPlcabgaxihmyHZ3oQ* a;
a = (tyObject_NilAccessDefect__xZt69cPlcabgaxihmyHZ3oQ*)p;
nimGCvisit((void*)(*a).Sup.Sup.parent, op);
nimGCvisit((void*)(*a).Sup.Sup.message, op);
nimGCvisit((void*)(*a).Sup.Sup.trace, op);
nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
static N_INLINE(void, sysFatal__system_3784)(NimStringDesc* message) {
tyObject_NilAccessDefect__xZt69cPlcabgaxihmyHZ3oQ* T1_;
NimStringDesc* T2_;
nimfr_("sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
T1_ = NIM_NIL;
T1_ = (tyObject_NilAccessDefect__xZt69cPlcabgaxihmyHZ3oQ*) newObj((&NTIrefnilaccessdefect__9aBnjTxiD7kSbLtZVd9aMijA_), sizeof(tyObject_NilAccessDefect__xZt69cPlcabgaxihmyHZ3oQ));
(*T1_).Sup.Sup.Sup.m_type = (&NTInilaccessdefect__xZt69cPlcabgaxihmyHZ3oQ_);
(*T1_).Sup.Sup.name = "NilAccessDefect";
T2_ = NIM_NIL;
T2_ = (*T1_).Sup.Sup.message; (*T1_).Sup.Sup.message = copyStringRC1(message);
if (T2_) nimGCunrefNoCycle(T2_);
nimln_(53, "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim");
raiseExceptionEx((Exception*)T1_, "NilAccessDefect", "sysFatal", "/home/yyoncho/Sources/nim/Nim/lib/system/fatal.nim", 53);
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, chckNilDisp)(void* p) {
{
if (!(p == NIM_NIL)) goto LA3_;
sysFatal__system_3784(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_98));
}
LA3_: ;
}
N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath__system_3871)(TNimType* obj, TNimType* subclass, TNimType** cache) {
NIM_BOOL result;
TNimType* x;
{ result = (NIM_BOOL)0;
x = (*obj).base;
{
while (1) {
if (!!((x == subclass))) goto LA2;
{
if (!(x == ((TNimType*) NIM_NIL))) goto LA5_;
cache[(((NI) 0))- 0] = obj;
result = NIM_FALSE;
goto BeforeRet_;
}
LA5_: ;
x = (*x).base;
} LA2: ;
}
cache[(((NI) 1))- 0] = obj;
result = NIM_TRUE;
goto BeforeRet_;
}BeforeRet_: ;
return result;
}
static N_INLINE(void, initStackBottomWith)(void* locals) {
nimGC_setStackBottom(locals);
}
N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsNimatslibatssystemdotnim_Init000)(void) {
{
TFrame FR_; FR_.len = 0;
nimRegisterThreadLocalMarker(TM__Q5wkpxktOdTGvlSRo9bzt9aw_36);
nimRegisterThreadLocalMarker(TM__Q5wkpxktOdTGvlSRo9bzt9aw_37);
}/* preInitProc end */
{
initGC__system_2684();
threadType__system_2813 = ((tyEnum_ThreadType__H77H4LSuveAOpXr9bJRsUtw) 1);
registerSignalHandler__system_3556();
pthread_mutex_init((&heapLock__system_5816), ((pthread_mutexattr_t*) NIM_NIL));
atexit(colonanonymous___system_5817);
}
}
N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsNimatslibatssystemdotnim_DatInit000)(void) {
static TNimNode* TM__Q5wkpxktOdTGvlSRo9bzt9aw_4_5[5];
static TNimNode* TM__Q5wkpxktOdTGvlSRo9bzt9aw_5_3[3];
static TNimNode* TM__Q5wkpxktOdTGvlSRo9bzt9aw_35_2[2];
static TNimNode TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[34];
NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_.size = sizeof(RootObj);
NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_.align = NIM_ALIGNOF(RootObj);
NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_.kind = 17;
NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_.base = 0;
NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_.flags = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[0].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[0].kind = 2;
NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[0];
NTIexception__XEycrCsme5C8CVWAYEcdBQ_.size = sizeof(Exception);
NTIexception__XEycrCsme5C8CVWAYEcdBQ_.align = NIM_ALIGNOF(Exception);
NTIexception__XEycrCsme5C8CVWAYEcdBQ_.kind = 17;
NTIexception__XEycrCsme5C8CVWAYEcdBQ_.base = (&NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_4_5[0] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[2];
NTIrefexception__vU9aO9cTqOMn6CBzhV8rX7Sw_.size = sizeof(Exception*);
NTIrefexception__vU9aO9cTqOMn6CBzhV8rX7Sw_.align = NIM_ALIGNOF(Exception*);
NTIrefexception__vU9aO9cTqOMn6CBzhV8rX7Sw_.kind = 22;
NTIrefexception__vU9aO9cTqOMn6CBzhV8rX7Sw_.base = (&NTIexception__XEycrCsme5C8CVWAYEcdBQ_);
NTIrefexception__vU9aO9cTqOMn6CBzhV8rX7Sw_.marker = Marker_tyRef__vU9aO9cTqOMn6CBzhV8rX7Sw;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[2].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[2].offset = offsetof(Exception, parent);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[2].typ = (&NTIrefexception__vU9aO9cTqOMn6CBzhV8rX7Sw_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[2].name = "parent";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_4_5[1] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[3];
NTIcstring__S9agCYBinaYZnGWcjTdxclg_.size = sizeof(NCSTRING);
NTIcstring__S9agCYBinaYZnGWcjTdxclg_.align = NIM_ALIGNOF(NCSTRING);
NTIcstring__S9agCYBinaYZnGWcjTdxclg_.kind = 29;
NTIcstring__S9agCYBinaYZnGWcjTdxclg_.base = 0;
NTIcstring__S9agCYBinaYZnGWcjTdxclg_.flags = 3;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[3].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[3].offset = offsetof(Exception, name);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[3].typ = (&NTIcstring__S9agCYBinaYZnGWcjTdxclg_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[3].name = "name";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_4_5[2] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[4];
NTIstring__77mFvmsOLKik79ci2hXkHEg_.size = sizeof(NimStringDesc*);
NTIstring__77mFvmsOLKik79ci2hXkHEg_.align = NIM_ALIGNOF(NimStringDesc*);
NTIstring__77mFvmsOLKik79ci2hXkHEg_.kind = 28;
NTIstring__77mFvmsOLKik79ci2hXkHEg_.base = 0;
NTIstring__77mFvmsOLKik79ci2hXkHEg_.flags = 2;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[4].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[4].offset = offsetof(Exception, message);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[4].typ = (&NTIstring__77mFvmsOLKik79ci2hXkHEg_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[4].name = "msg";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_4_5[3] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[5];
NTIstacktraceentry__oLyohQ7O2XOvGnflOss8EA_.size = sizeof(tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA);
NTIstacktraceentry__oLyohQ7O2XOvGnflOss8EA_.align = NIM_ALIGNOF(tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA);
NTIstacktraceentry__oLyohQ7O2XOvGnflOss8EA_.kind = 18;
NTIstacktraceentry__oLyohQ7O2XOvGnflOss8EA_.base = 0;
NTIstacktraceentry__oLyohQ7O2XOvGnflOss8EA_.flags = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_5_3[0] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[7];
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[7].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[7].offset = offsetof(tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA, procname);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[7].typ = (&NTIcstring__S9agCYBinaYZnGWcjTdxclg_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[7].name = "procname";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_5_3[1] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[8];
NTIint__rR5Bzr1D5krxoo1NcNyeMA_.size = sizeof(NI);
NTIint__rR5Bzr1D5krxoo1NcNyeMA_.align = NIM_ALIGNOF(NI);
NTIint__rR5Bzr1D5krxoo1NcNyeMA_.kind = 31;
NTIint__rR5Bzr1D5krxoo1NcNyeMA_.base = 0;
NTIint__rR5Bzr1D5krxoo1NcNyeMA_.flags = 3;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[8].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[8].offset = offsetof(tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA, line);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[8].typ = (&NTIint__rR5Bzr1D5krxoo1NcNyeMA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[8].name = "line";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_5_3[2] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[9];
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[9].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[9].offset = offsetof(tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA, filename);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[9].typ = (&NTIcstring__S9agCYBinaYZnGWcjTdxclg_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[9].name = "filename";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[6].len = 3; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[6].kind = 2; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[6].sons = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_5_3[0];
NTIstacktraceentry__oLyohQ7O2XOvGnflOss8EA_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[6];
NTIseqLstacktraceentryT__uB9b75OUPRENsBAu4AnoePA_.size = sizeof(tySequence__uB9b75OUPRENsBAu4AnoePA*);
NTIseqLstacktraceentryT__uB9b75OUPRENsBAu4AnoePA_.align = NIM_ALIGNOF(tySequence__uB9b75OUPRENsBAu4AnoePA*);
NTIseqLstacktraceentryT__uB9b75OUPRENsBAu4AnoePA_.kind = 24;
NTIseqLstacktraceentryT__uB9b75OUPRENsBAu4AnoePA_.base = (&NTIstacktraceentry__oLyohQ7O2XOvGnflOss8EA_);
NTIseqLstacktraceentryT__uB9b75OUPRENsBAu4AnoePA_.marker = Marker_tySequence__uB9b75OUPRENsBAu4AnoePA;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[5].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[5].offset = offsetof(Exception, trace);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[5].typ = (&NTIseqLstacktraceentryT__uB9b75OUPRENsBAu4AnoePA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[5].name = "trace";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_4_5[4] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[10];
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[10].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[10].offset = offsetof(Exception, up);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[10].typ = (&NTIrefexception__vU9aO9cTqOMn6CBzhV8rX7Sw_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[10].name = "up";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[1].len = 5; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[1].kind = 2; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[1].sons = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_4_5[0];
NTIexception__XEycrCsme5C8CVWAYEcdBQ_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[1];
NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_.size = sizeof(tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA);
NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_.align = NIM_ALIGNOF(tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA);
NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_.kind = 17;
NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_.base = (&NTIexception__XEycrCsme5C8CVWAYEcdBQ_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[11].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[11].kind = 2;
NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[11];
NTIarithmeticdefect__cT9c9bHlHSpA1QTnKbHjnIkA_.size = sizeof(tyObject_ArithmeticDefect__cT9c9bHlHSpA1QTnKbHjnIkA);
NTIarithmeticdefect__cT9c9bHlHSpA1QTnKbHjnIkA_.align = NIM_ALIGNOF(tyObject_ArithmeticDefect__cT9c9bHlHSpA1QTnKbHjnIkA);
NTIarithmeticdefect__cT9c9bHlHSpA1QTnKbHjnIkA_.kind = 17;
NTIarithmeticdefect__cT9c9bHlHSpA1QTnKbHjnIkA_.base = (&NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[12].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[12].kind = 2;
NTIarithmeticdefect__cT9c9bHlHSpA1QTnKbHjnIkA_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[12];
NTIoverflowdefect__9cxMi1BPLc3UKt9br86bGfGQ_.size = sizeof(tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ);
NTIoverflowdefect__9cxMi1BPLc3UKt9br86bGfGQ_.align = NIM_ALIGNOF(tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ);
NTIoverflowdefect__9cxMi1BPLc3UKt9br86bGfGQ_.kind = 17;
NTIoverflowdefect__9cxMi1BPLc3UKt9br86bGfGQ_.base = (&NTIarithmeticdefect__cT9c9bHlHSpA1QTnKbHjnIkA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[13].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[13].kind = 2;
NTIoverflowdefect__9cxMi1BPLc3UKt9br86bGfGQ_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[13];
NTIrefoverflowdefect__r8GBEWywN07B3Rat3azS4Q_.size = sizeof(tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ*);
NTIrefoverflowdefect__r8GBEWywN07B3Rat3azS4Q_.align = NIM_ALIGNOF(tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ*);
NTIrefoverflowdefect__r8GBEWywN07B3Rat3azS4Q_.kind = 22;
NTIrefoverflowdefect__r8GBEWywN07B3Rat3azS4Q_.base = (&NTIoverflowdefect__9cxMi1BPLc3UKt9br86bGfGQ_);
NTIrefoverflowdefect__r8GBEWywN07B3Rat3azS4Q_.marker = Marker_tyRef__r8GBEWywN07B3Rat3azS4Q;
NTIrangedefect__Rp9adJYTsbbIUzQ8fWxwgdA_.size = sizeof(tyObject_RangeDefect__Rp9adJYTsbbIUzQ8fWxwgdA);
NTIrangedefect__Rp9adJYTsbbIUzQ8fWxwgdA_.align = NIM_ALIGNOF(tyObject_RangeDefect__Rp9adJYTsbbIUzQ8fWxwgdA);
NTIrangedefect__Rp9adJYTsbbIUzQ8fWxwgdA_.kind = 17;
NTIrangedefect__Rp9adJYTsbbIUzQ8fWxwgdA_.base = (&NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[14].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[14].kind = 2;
NTIrangedefect__Rp9adJYTsbbIUzQ8fWxwgdA_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[14];
NTIrefrangedefect__dJLgQyYmAVYQWHiOSBBTyA_.size = sizeof(tyObject_RangeDefect__Rp9adJYTsbbIUzQ8fWxwgdA*);
NTIrefrangedefect__dJLgQyYmAVYQWHiOSBBTyA_.align = NIM_ALIGNOF(tyObject_RangeDefect__Rp9adJYTsbbIUzQ8fWxwgdA*);
NTIrefrangedefect__dJLgQyYmAVYQWHiOSBBTyA_.kind = 22;
NTIrefrangedefect__dJLgQyYmAVYQWHiOSBBTyA_.base = (&NTIrangedefect__Rp9adJYTsbbIUzQ8fWxwgdA_);
NTIrefrangedefect__dJLgQyYmAVYQWHiOSBBTyA_.marker = Marker_tyRef__dJLgQyYmAVYQWHiOSBBTyA;
NTIindexdefect__n6tGEPHKkh7E1AP9bj30WrQ_.size = sizeof(tyObject_IndexDefect__n6tGEPHKkh7E1AP9bj30WrQ);
NTIindexdefect__n6tGEPHKkh7E1AP9bj30WrQ_.align = NIM_ALIGNOF(tyObject_IndexDefect__n6tGEPHKkh7E1AP9bj30WrQ);
NTIindexdefect__n6tGEPHKkh7E1AP9bj30WrQ_.kind = 17;
NTIindexdefect__n6tGEPHKkh7E1AP9bj30WrQ_.base = (&NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[15].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[15].kind = 2;
NTIindexdefect__n6tGEPHKkh7E1AP9bj30WrQ_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[15];
NTIrefindexdefect__RJnHOb9cQV3neNC9cDkRgMyw_.size = sizeof(tyObject_IndexDefect__n6tGEPHKkh7E1AP9bj30WrQ*);
NTIrefindexdefect__RJnHOb9cQV3neNC9cDkRgMyw_.align = NIM_ALIGNOF(tyObject_IndexDefect__n6tGEPHKkh7E1AP9bj30WrQ*);
NTIrefindexdefect__RJnHOb9cQV3neNC9cDkRgMyw_.kind = 22;
NTIrefindexdefect__RJnHOb9cQV3neNC9cDkRgMyw_.base = (&NTIindexdefect__n6tGEPHKkh7E1AP9bj30WrQ_);
NTIrefindexdefect__RJnHOb9cQV3neNC9cDkRgMyw_.marker = Marker_tyRef__RJnHOb9cQV3neNC9cDkRgMyw;
NTIreraisedefect__E0L0wGYS1gPD81VLstNO2g_.size = sizeof(tyObject_ReraiseDefect__E0L0wGYS1gPD81VLstNO2g);
NTIreraisedefect__E0L0wGYS1gPD81VLstNO2g_.align = NIM_ALIGNOF(tyObject_ReraiseDefect__E0L0wGYS1gPD81VLstNO2g);
NTIreraisedefect__E0L0wGYS1gPD81VLstNO2g_.kind = 17;
NTIreraisedefect__E0L0wGYS1gPD81VLstNO2g_.base = (&NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[16].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[16].kind = 2;
NTIreraisedefect__E0L0wGYS1gPD81VLstNO2g_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[16];
NTIrefreraisedefect__uG62cfJZ15c2siK3CKLmnQ_.size = sizeof(tyObject_ReraiseDefect__E0L0wGYS1gPD81VLstNO2g*);
NTIrefreraisedefect__uG62cfJZ15c2siK3CKLmnQ_.align = NIM_ALIGNOF(tyObject_ReraiseDefect__E0L0wGYS1gPD81VLstNO2g*);
NTIrefreraisedefect__uG62cfJZ15c2siK3CKLmnQ_.kind = 22;
NTIrefreraisedefect__uG62cfJZ15c2siK3CKLmnQ_.base = (&NTIreraisedefect__E0L0wGYS1gPD81VLstNO2g_);
NTIrefreraisedefect__uG62cfJZ15c2siK3CKLmnQ_.marker = Marker_tyRef__uG62cfJZ15c2siK3CKLmnQ;
NTIprocLTLOclosure_gcsafeOT__HzVCwACFYM9cx9aV62PdjtuA_.size = sizeof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A);
NTIprocLTLOclosure_gcsafeOT__HzVCwACFYM9cx9aV62PdjtuA_.align = NIM_ALIGNOF(tyTuple__JfHvHzMrhKkWAUvQKe0i1A);
NTIprocLTLOclosure_gcsafeOT__HzVCwACFYM9cx9aV62PdjtuA_.kind = 18;
NTIprocLTLOclosure_gcsafeOT__HzVCwACFYM9cx9aV62PdjtuA_.base = 0;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_35_2[0] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[18];
NTIpointer__vr5DoT1jILTGdRlYv1OYpw_.size = sizeof(void*);
NTIpointer__vr5DoT1jILTGdRlYv1OYpw_.align = NIM_ALIGNOF(void*);
NTIpointer__vr5DoT1jILTGdRlYv1OYpw_.kind = 26;
NTIpointer__vr5DoT1jILTGdRlYv1OYpw_.base = 0;
NTIpointer__vr5DoT1jILTGdRlYv1OYpw_.flags = 3;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[18].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[18].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field0);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[18].typ = (&NTIpointer__vr5DoT1jILTGdRlYv1OYpw_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[18].name = "Field0";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_35_2[1] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[19];
NTIobject__diB2NTuAIWY0FO9c5IUJRGg_.size = sizeof(tyObject_Env_systemdotnim_system___diB2NTuAIWY0FO9c5IUJRGg);
NTIobject__diB2NTuAIWY0FO9c5IUJRGg_.align = NIM_ALIGNOF(tyObject_Env_systemdotnim_system___diB2NTuAIWY0FO9c5IUJRGg);
NTIobject__diB2NTuAIWY0FO9c5IUJRGg_.kind = 17;
NTIobject__diB2NTuAIWY0FO9c5IUJRGg_.base = (&NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_);
NTIobject__diB2NTuAIWY0FO9c5IUJRGg_.flags = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[20].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[20].kind = 2;
NTIobject__diB2NTuAIWY0FO9c5IUJRGg_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[20];
NTIrefobject__HsJiUUcO9cHBdUCi0HwkSTA_.size = sizeof(tyObject_Env_systemdotnim_system___diB2NTuAIWY0FO9c5IUJRGg*);
NTIrefobject__HsJiUUcO9cHBdUCi0HwkSTA_.align = NIM_ALIGNOF(tyObject_Env_systemdotnim_system___diB2NTuAIWY0FO9c5IUJRGg*);
NTIrefobject__HsJiUUcO9cHBdUCi0HwkSTA_.kind = 22;
NTIrefobject__HsJiUUcO9cHBdUCi0HwkSTA_.base = (&NTIobject__diB2NTuAIWY0FO9c5IUJRGg_);
NTIrefobject__HsJiUUcO9cHBdUCi0HwkSTA_.marker = Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[19].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[19].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field1);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[19].typ = (&NTIrefobject__HsJiUUcO9cHBdUCi0HwkSTA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[19].name = "Field1";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[17].len = 2; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[17].kind = 2; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[17].sons = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_35_2[0];
NTIprocLTLOclosure_gcsafeOT__HzVCwACFYM9cx9aV62PdjtuA_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[17];
NTIseqLprocLTLOclosure_gcsafeOTT__aNpJjaoUowCQc7fBn3wtDQ_.size = sizeof(tySequence__aNpJjaoUowCQc7fBn3wtDQ*);
NTIseqLprocLTLOclosure_gcsafeOTT__aNpJjaoUowCQc7fBn3wtDQ_.align = NIM_ALIGNOF(tySequence__aNpJjaoUowCQc7fBn3wtDQ*);
NTIseqLprocLTLOclosure_gcsafeOTT__aNpJjaoUowCQc7fBn3wtDQ_.kind = 24;
NTIseqLprocLTLOclosure_gcsafeOTT__aNpJjaoUowCQc7fBn3wtDQ_.base = (&NTIprocLTLOclosure_gcsafeOT__HzVCwACFYM9cx9aV62PdjtuA_);
NTIseqLprocLTLOclosure_gcsafeOTT__aNpJjaoUowCQc7fBn3wtDQ_.marker = Marker_tySequence__aNpJjaoUowCQc7fBn3wtDQ;
NTIassertiondefect__PtYxPmY5X0dorfvxAFbJpQ_.size = sizeof(tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ);
NTIassertiondefect__PtYxPmY5X0dorfvxAFbJpQ_.align = NIM_ALIGNOF(tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ);
NTIassertiondefect__PtYxPmY5X0dorfvxAFbJpQ_.kind = 17;
NTIassertiondefect__PtYxPmY5X0dorfvxAFbJpQ_.base = (&NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[21].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[21].kind = 2;
NTIassertiondefect__PtYxPmY5X0dorfvxAFbJpQ_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[21];
NTIrefassertiondefect__S8DV6hfcgC9c0IiUsAoR29cQ_.size = sizeof(tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ*);
NTIrefassertiondefect__S8DV6hfcgC9c0IiUsAoR29cQ_.align = NIM_ALIGNOF(tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ*);
NTIrefassertiondefect__S8DV6hfcgC9c0IiUsAoR29cQ_.kind = 22;
NTIrefassertiondefect__S8DV6hfcgC9c0IiUsAoR29cQ_.base = (&NTIassertiondefect__PtYxPmY5X0dorfvxAFbJpQ_);
NTIrefassertiondefect__S8DV6hfcgC9c0IiUsAoR29cQ_.marker = Marker_tyRef__S8DV6hfcgC9c0IiUsAoR29cQ;
NTIint5452__Aav8dQoMlCFnZRxA0IhTHQ_.size = sizeof(NI64);
NTIint5452__Aav8dQoMlCFnZRxA0IhTHQ_.align = NIM_ALIGNOF(NI64);
NTIint5452__Aav8dQoMlCFnZRxA0IhTHQ_.kind = 35;
NTIint5452__Aav8dQoMlCFnZRxA0IhTHQ_.base = 0;
NTIint5452__Aav8dQoMlCFnZRxA0IhTHQ_.flags = 3;
NTIbool__VaVACK0bpYmqIQ0mKcHfQQ_.size = sizeof(NIM_BOOL);
NTIbool__VaVACK0bpYmqIQ0mKcHfQQ_.align = NIM_ALIGNOF(NIM_BOOL);
NTIbool__VaVACK0bpYmqIQ0mKcHfQQ_.kind = 1;
NTIbool__VaVACK0bpYmqIQ0mKcHfQQ_.base = 0;
NTIbool__VaVACK0bpYmqIQ0mKcHfQQ_.flags = 3;
NTIcint__nlCscttRCss70IBTyuBqnA_.size = sizeof(int);
NTIcint__nlCscttRCss70IBTyuBqnA_.align = NIM_ALIGNOF(int);
NTIcint__nlCscttRCss70IBTyuBqnA_.kind = 34;
NTIcint__nlCscttRCss70IBTyuBqnA_.base = 0;
NTIcint__nlCscttRCss70IBTyuBqnA_.flags = 3;
NTIdivbyzerodefect__n3A4gjRrFZBuNnTYx1h9a8w_.size = sizeof(tyObject_DivByZeroDefect__n3A4gjRrFZBuNnTYx1h9a8w);
NTIdivbyzerodefect__n3A4gjRrFZBuNnTYx1h9a8w_.align = NIM_ALIGNOF(tyObject_DivByZeroDefect__n3A4gjRrFZBuNnTYx1h9a8w);
NTIdivbyzerodefect__n3A4gjRrFZBuNnTYx1h9a8w_.kind = 17;
NTIdivbyzerodefect__n3A4gjRrFZBuNnTYx1h9a8w_.base = (&NTIarithmeticdefect__cT9c9bHlHSpA1QTnKbHjnIkA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[22].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[22].kind = 2;
NTIdivbyzerodefect__n3A4gjRrFZBuNnTYx1h9a8w_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[22];
NTIrefdivbyzerodefect__obtqFYsgt5FfJISwpnmjwA_.size = sizeof(tyObject_DivByZeroDefect__n3A4gjRrFZBuNnTYx1h9a8w*);
NTIrefdivbyzerodefect__obtqFYsgt5FfJISwpnmjwA_.align = NIM_ALIGNOF(tyObject_DivByZeroDefect__n3A4gjRrFZBuNnTYx1h9a8w*);
NTIrefdivbyzerodefect__obtqFYsgt5FfJISwpnmjwA_.kind = 22;
NTIrefdivbyzerodefect__obtqFYsgt5FfJISwpnmjwA_.base = (&NTIdivbyzerodefect__n3A4gjRrFZBuNnTYx1h9a8w_);
NTIrefdivbyzerodefect__obtqFYsgt5FfJISwpnmjwA_.marker = Marker_tyRef__obtqFYsgt5FfJISwpnmjwA;
NTIcatchableerror__qrLSDoe2oBoAqNtJ9badtnA_.size = sizeof(tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA);
NTIcatchableerror__qrLSDoe2oBoAqNtJ9badtnA_.align = NIM_ALIGNOF(tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA);
NTIcatchableerror__qrLSDoe2oBoAqNtJ9badtnA_.kind = 17;
NTIcatchableerror__qrLSDoe2oBoAqNtJ9badtnA_.base = (&NTIexception__XEycrCsme5C8CVWAYEcdBQ_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[23].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[23].kind = 2;
NTIcatchableerror__qrLSDoe2oBoAqNtJ9badtnA_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[23];
NTIvalueerror__yoNlBGx0D2tRizIdhQuENw_.size = sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw);
NTIvalueerror__yoNlBGx0D2tRizIdhQuENw_.align = NIM_ALIGNOF(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw);
NTIvalueerror__yoNlBGx0D2tRizIdhQuENw_.kind = 17;
NTIvalueerror__yoNlBGx0D2tRizIdhQuENw_.base = (&NTIcatchableerror__qrLSDoe2oBoAqNtJ9badtnA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[24].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[24].kind = 2;
NTIvalueerror__yoNlBGx0D2tRizIdhQuENw_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[24];
NTIrefvalueerror__Ie1m0dv1ZHg72IgPRr1cDw_.size = sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*);
NTIrefvalueerror__Ie1m0dv1ZHg72IgPRr1cDw_.align = NIM_ALIGNOF(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*);
NTIrefvalueerror__Ie1m0dv1ZHg72IgPRr1cDw_.kind = 22;
NTIrefvalueerror__Ie1m0dv1ZHg72IgPRr1cDw_.base = (&NTIvalueerror__yoNlBGx0D2tRizIdhQuENw_);
NTIrefvalueerror__Ie1m0dv1ZHg72IgPRr1cDw_.marker = Marker_tyRef__Ie1m0dv1ZHg72IgPRr1cDw;
NTIioerror__iLZrPn9anoh9ad1MmO0RczFw_.size = sizeof(tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw);
NTIioerror__iLZrPn9anoh9ad1MmO0RczFw_.align = NIM_ALIGNOF(tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw);
NTIioerror__iLZrPn9anoh9ad1MmO0RczFw_.kind = 17;
NTIioerror__iLZrPn9anoh9ad1MmO0RczFw_.base = (&NTIcatchableerror__qrLSDoe2oBoAqNtJ9badtnA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[25].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[25].kind = 2;
NTIioerror__iLZrPn9anoh9ad1MmO0RczFw_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[25];
NTIrefioerror__HMIVdYjdZYWskTmTQVo5BQ_.size = sizeof(tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw*);
NTIrefioerror__HMIVdYjdZYWskTmTQVo5BQ_.align = NIM_ALIGNOF(tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw*);
NTIrefioerror__HMIVdYjdZYWskTmTQVo5BQ_.kind = 22;
NTIrefioerror__HMIVdYjdZYWskTmTQVo5BQ_.base = (&NTIioerror__iLZrPn9anoh9ad1MmO0RczFw_);
NTIrefioerror__HMIVdYjdZYWskTmTQVo5BQ_.marker = Marker_tyRef__HMIVdYjdZYWskTmTQVo5BQ;
NTIobjectconversiondefect__EfCTmzvWG9bLXrm0uv9b9aSyA_.size = sizeof(tyObject_ObjectConversionDefect__EfCTmzvWG9bLXrm0uv9b9aSyA);
NTIobjectconversiondefect__EfCTmzvWG9bLXrm0uv9b9aSyA_.align = NIM_ALIGNOF(tyObject_ObjectConversionDefect__EfCTmzvWG9bLXrm0uv9b9aSyA);
NTIobjectconversiondefect__EfCTmzvWG9bLXrm0uv9b9aSyA_.kind = 17;
NTIobjectconversiondefect__EfCTmzvWG9bLXrm0uv9b9aSyA_.base = (&NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[26].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[26].kind = 2;
NTIobjectconversiondefect__EfCTmzvWG9bLXrm0uv9b9aSyA_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[26];
NTIrefobjectconversiondefect__aKAxoL0lF8g0PZNf9a2PBpQ_.size = sizeof(tyObject_ObjectConversionDefect__EfCTmzvWG9bLXrm0uv9b9aSyA*);
NTIrefobjectconversiondefect__aKAxoL0lF8g0PZNf9a2PBpQ_.align = NIM_ALIGNOF(tyObject_ObjectConversionDefect__EfCTmzvWG9bLXrm0uv9b9aSyA*);
NTIrefobjectconversiondefect__aKAxoL0lF8g0PZNf9a2PBpQ_.kind = 22;
NTIrefobjectconversiondefect__aKAxoL0lF8g0PZNf9a2PBpQ_.base = (&NTIobjectconversiondefect__EfCTmzvWG9bLXrm0uv9b9aSyA_);
NTIrefobjectconversiondefect__aKAxoL0lF8g0PZNf9a2PBpQ_.marker = Marker_tyRef__aKAxoL0lF8g0PZNf9a2PBpQ;
NTIfloat__w9bl9a1ul9ctRJWiMl9cNnIMvg_.size = sizeof(NF);
NTIfloat__w9bl9a1ul9ctRJWiMl9cNnIMvg_.align = NIM_ALIGNOF(NF);
NTIfloat__w9bl9a1ul9ctRJWiMl9cNnIMvg_.kind = 36;
NTIfloat__w9bl9a1ul9ctRJWiMl9cNnIMvg_.base = 0;
NTIfloat__w9bl9a1ul9ctRJWiMl9cNnIMvg_.flags = 3;
NTIoserror__BeJgrOdDsczOwEWOZbRfKA_.size = sizeof(tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA);
NTIoserror__BeJgrOdDsczOwEWOZbRfKA_.align = NIM_ALIGNOF(tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA);
NTIoserror__BeJgrOdDsczOwEWOZbRfKA_.kind = 17;
NTIoserror__BeJgrOdDsczOwEWOZbRfKA_.base = (&NTIcatchableerror__qrLSDoe2oBoAqNtJ9badtnA_);
NTIint5150__sVg18TP9cLifHyygRe9cro9aA_.size = sizeof(NI32);
NTIint5150__sVg18TP9cLifHyygRe9cro9aA_.align = NIM_ALIGNOF(NI32);
NTIint5150__sVg18TP9cLifHyygRe9cro9aA_.kind = 34;
NTIint5150__sVg18TP9cLifHyygRe9cro9aA_.base = 0;
NTIint5150__sVg18TP9cLifHyygRe9cro9aA_.flags = 3;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[27].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[27].offset = offsetof(tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA, errorCode);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[27].typ = (&NTIint5150__sVg18TP9cLifHyygRe9cro9aA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[27].name = "errorCode";
NTIoserror__BeJgrOdDsczOwEWOZbRfKA_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[27];
NTIrefoserror__9clYsYwyjCqe2PFTuCI3Ubg_.size = sizeof(tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA*);
NTIrefoserror__9clYsYwyjCqe2PFTuCI3Ubg_.align = NIM_ALIGNOF(tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA*);
NTIrefoserror__9clYsYwyjCqe2PFTuCI3Ubg_.kind = 22;
NTIrefoserror__9clYsYwyjCqe2PFTuCI3Ubg_.base = (&NTIoserror__BeJgrOdDsczOwEWOZbRfKA_);
NTIrefoserror__9clYsYwyjCqe2PFTuCI3Ubg_.marker = Marker_tyRef__9clYsYwyjCqe2PFTuCI3Ubg;
NTIchar__nmiMWKVIe46vacnhAFrQvw_.size = sizeof(NIM_CHAR);
NTIchar__nmiMWKVIe46vacnhAFrQvw_.align = NIM_ALIGNOF(NIM_CHAR);
NTIchar__nmiMWKVIe46vacnhAFrQvw_.kind = 2;
NTIchar__nmiMWKVIe46vacnhAFrQvw_.base = 0;
NTIchar__nmiMWKVIe46vacnhAFrQvw_.flags = 3;
NTIobjectassignmentdefect__6toVe0IizlEwN9bORXEdX3g_.size = sizeof(tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g);
NTIobjectassignmentdefect__6toVe0IizlEwN9bORXEdX3g_.align = NIM_ALIGNOF(tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g);
NTIobjectassignmentdefect__6toVe0IizlEwN9bORXEdX3g_.kind = 17;
NTIobjectassignmentdefect__6toVe0IizlEwN9bORXEdX3g_.base = (&NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[28].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[28].kind = 2;
NTIobjectassignmentdefect__6toVe0IizlEwN9bORXEdX3g_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[28];
NTIrefobjectassignmentdefect__C0A9bPZSVeyr2BWpBf4Jxqw_.size = sizeof(tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g*);
NTIrefobjectassignmentdefect__C0A9bPZSVeyr2BWpBf4Jxqw_.align = NIM_ALIGNOF(tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g*);
NTIrefobjectassignmentdefect__C0A9bPZSVeyr2BWpBf4Jxqw_.kind = 22;
NTIrefobjectassignmentdefect__C0A9bPZSVeyr2BWpBf4Jxqw_.base = (&NTIobjectassignmentdefect__6toVe0IizlEwN9bORXEdX3g_);
NTIrefobjectassignmentdefect__C0A9bPZSVeyr2BWpBf4Jxqw_.marker = Marker_tyRef__C0A9bPZSVeyr2BWpBf4Jxqw;
NTIfielddefect__GuXpRSBAcOXR7KZUhKKcgQ_.size = sizeof(tyObject_FieldDefect__GuXpRSBAcOXR7KZUhKKcgQ);
NTIfielddefect__GuXpRSBAcOXR7KZUhKKcgQ_.align = NIM_ALIGNOF(tyObject_FieldDefect__GuXpRSBAcOXR7KZUhKKcgQ);
NTIfielddefect__GuXpRSBAcOXR7KZUhKKcgQ_.kind = 17;
NTIfielddefect__GuXpRSBAcOXR7KZUhKKcgQ_.base = (&NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[29].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[29].kind = 2;
NTIfielddefect__GuXpRSBAcOXR7KZUhKKcgQ_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[29];
NTIreffielddefect__hbLyubjZp2zbEfAXJ8yMLg_.size = sizeof(tyObject_FieldDefect__GuXpRSBAcOXR7KZUhKKcgQ*);
NTIreffielddefect__hbLyubjZp2zbEfAXJ8yMLg_.align = NIM_ALIGNOF(tyObject_FieldDefect__GuXpRSBAcOXR7KZUhKKcgQ*);
NTIreffielddefect__hbLyubjZp2zbEfAXJ8yMLg_.kind = 22;
NTIreffielddefect__hbLyubjZp2zbEfAXJ8yMLg_.base = (&NTIfielddefect__GuXpRSBAcOXR7KZUhKKcgQ_);
NTIreffielddefect__hbLyubjZp2zbEfAXJ8yMLg_.marker = Marker_tyRef__hbLyubjZp2zbEfAXJ8yMLg;
NTIkeyerror__t7nhKLvXTQS9cS8ByJU9bIag_.size = sizeof(tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag);
NTIkeyerror__t7nhKLvXTQS9cS8ByJU9bIag_.align = NIM_ALIGNOF(tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag);
NTIkeyerror__t7nhKLvXTQS9cS8ByJU9bIag_.kind = 17;
NTIkeyerror__t7nhKLvXTQS9cS8ByJU9bIag_.base = (&NTIvalueerror__yoNlBGx0D2tRizIdhQuENw_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[30].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[30].kind = 2;
NTIkeyerror__t7nhKLvXTQS9cS8ByJU9bIag_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[30];
NTIrefkeyerror__8SzoIAgLw9ci2v0yafHj9b6Q_.size = sizeof(tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag*);
NTIrefkeyerror__8SzoIAgLw9ci2v0yafHj9b6Q_.align = NIM_ALIGNOF(tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag*);
NTIrefkeyerror__8SzoIAgLw9ci2v0yafHj9b6Q_.kind = 22;
NTIrefkeyerror__8SzoIAgLw9ci2v0yafHj9b6Q_.base = (&NTIkeyerror__t7nhKLvXTQS9cS8ByJU9bIag_);
NTIrefkeyerror__8SzoIAgLw9ci2v0yafHj9b6Q_.marker = Marker_tyRef__8SzoIAgLw9ci2v0yafHj9b6Q;
NTIlibraryerror__x1muge9crz9aAVqWWUrEL9aXg_.size = sizeof(tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg);
NTIlibraryerror__x1muge9crz9aAVqWWUrEL9aXg_.align = NIM_ALIGNOF(tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg);
NTIlibraryerror__x1muge9crz9aAVqWWUrEL9aXg_.kind = 17;
NTIlibraryerror__x1muge9crz9aAVqWWUrEL9aXg_.base = (&NTIoserror__BeJgrOdDsczOwEWOZbRfKA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[31].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[31].kind = 2;
NTIlibraryerror__x1muge9crz9aAVqWWUrEL9aXg_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[31];
NTIreflibraryerror__HV2B9a6TW6WPpQna2mQFeQQ_.size = sizeof(tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg*);
NTIreflibraryerror__HV2B9a6TW6WPpQna2mQFeQQ_.align = NIM_ALIGNOF(tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg*);
NTIreflibraryerror__HV2B9a6TW6WPpQna2mQFeQQ_.kind = 22;
NTIreflibraryerror__HV2B9a6TW6WPpQna2mQFeQQ_.base = (&NTIlibraryerror__x1muge9crz9aAVqWWUrEL9aXg_);
NTIreflibraryerror__HV2B9a6TW6WPpQna2mQFeQQ_.marker = Marker_tyRef__HV2B9a6TW6WPpQna2mQFeQQ;
NTIint__hLlQjbV9bLNq5PFxYcqacsA_.size = sizeof(NI);
NTIint__hLlQjbV9bLNq5PFxYcqacsA_.align = NIM_ALIGNOF(NI);
NTIint__hLlQjbV9bLNq5PFxYcqacsA_.kind = 31;
NTIint__hLlQjbV9bLNq5PFxYcqacsA_.base = 0;
NTIint__hLlQjbV9bLNq5PFxYcqacsA_.flags = 3;
NTIint__xHTZrq9aYs6boc9bCba0JbpQ_.size = sizeof(NI);
NTIint__xHTZrq9aYs6boc9bCba0JbpQ_.align = NIM_ALIGNOF(NI);
NTIint__xHTZrq9aYs6boc9bCba0JbpQ_.kind = 31;
NTIint__xHTZrq9aYs6boc9bCba0JbpQ_.base = 0;
NTIint__xHTZrq9aYs6boc9bCba0JbpQ_.flags = 3;
NTIuncheckedarrayLcstringT__nvS6J9clHMUMHfoZd8Ad2zg_.size = sizeof(tyUncheckedArray__nvS6J9clHMUMHfoZd8Ad2zg);
NTIuncheckedarrayLcstringT__nvS6J9clHMUMHfoZd8Ad2zg_.align = NIM_ALIGNOF(tyUncheckedArray__nvS6J9clHMUMHfoZd8Ad2zg);
NTIuncheckedarrayLcstringT__nvS6J9clHMUMHfoZd8Ad2zg_.kind = 49;
NTIuncheckedarrayLcstringT__nvS6J9clHMUMHfoZd8Ad2zg_.base = (&NTIcstring__S9agCYBinaYZnGWcjTdxclg_);
NTIuncheckedarrayLcstringT__nvS6J9clHMUMHfoZd8Ad2zg_.flags = 3;
NTIcstringarray__vCtGdhfQAmBlRFXaVFklkQ_.size = sizeof(NCSTRING*);
NTIcstringarray__vCtGdhfQAmBlRFXaVFklkQ_.align = NIM_ALIGNOF(NCSTRING*);
NTIcstringarray__vCtGdhfQAmBlRFXaVFklkQ_.kind = 21;
NTIcstringarray__vCtGdhfQAmBlRFXaVFklkQ_.base = (&NTIuncheckedarrayLcstringT__nvS6J9clHMUMHfoZd8Ad2zg_);
NTIcstringarray__vCtGdhfQAmBlRFXaVFklkQ_.flags = 3;
NTIeoferror__KGSY1JdrNB7Xi8KDhXFhSg_.size = sizeof(tyObject_EOFError__KGSY1JdrNB7Xi8KDhXFhSg);
NTIeoferror__KGSY1JdrNB7Xi8KDhXFhSg_.align = NIM_ALIGNOF(tyObject_EOFError__KGSY1JdrNB7Xi8KDhXFhSg);
NTIeoferror__KGSY1JdrNB7Xi8KDhXFhSg_.kind = 17;
NTIeoferror__KGSY1JdrNB7Xi8KDhXFhSg_.base = (&NTIioerror__iLZrPn9anoh9ad1MmO0RczFw_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[32].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[32].kind = 2;
NTIeoferror__KGSY1JdrNB7Xi8KDhXFhSg_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[32];
NTIrefeoferror__LEclZrWX2FQAodlapxGITw_.size = sizeof(tyObject_EOFError__KGSY1JdrNB7Xi8KDhXFhSg*);
NTIrefeoferror__LEclZrWX2FQAodlapxGITw_.align = NIM_ALIGNOF(tyObject_EOFError__KGSY1JdrNB7Xi8KDhXFhSg*);
NTIrefeoferror__LEclZrWX2FQAodlapxGITw_.kind = 22;
NTIrefeoferror__LEclZrWX2FQAodlapxGITw_.base = (&NTIeoferror__KGSY1JdrNB7Xi8KDhXFhSg_);
NTIrefeoferror__LEclZrWX2FQAodlapxGITw_.marker = Marker_tyRef__LEclZrWX2FQAodlapxGITw;
NTIrefcatchableerror__gcKyg9bhR5vWTJg3cREMk0Q_.size = sizeof(tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*);
NTIrefcatchableerror__gcKyg9bhR5vWTJg3cREMk0Q_.align = NIM_ALIGNOF(tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*);
NTIrefcatchableerror__gcKyg9bhR5vWTJg3cREMk0Q_.kind = 22;
NTIrefcatchableerror__gcKyg9bhR5vWTJg3cREMk0Q_.base = (&NTIcatchableerror__qrLSDoe2oBoAqNtJ9badtnA_);
NTIrefcatchableerror__gcKyg9bhR5vWTJg3cREMk0Q_.marker = Marker_tyRef__gcKyg9bhR5vWTJg3cREMk0Q;
NTInilaccessdefect__xZt69cPlcabgaxihmyHZ3oQ_.size = sizeof(tyObject_NilAccessDefect__xZt69cPlcabgaxihmyHZ3oQ);
NTInilaccessdefect__xZt69cPlcabgaxihmyHZ3oQ_.align = NIM_ALIGNOF(tyObject_NilAccessDefect__xZt69cPlcabgaxihmyHZ3oQ);
NTInilaccessdefect__xZt69cPlcabgaxihmyHZ3oQ_.kind = 17;
NTInilaccessdefect__xZt69cPlcabgaxihmyHZ3oQ_.base = (&NTIdefect__LbeSGvgPzGzXnW9caIkJqMA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[33].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[33].kind = 2;
NTInilaccessdefect__xZt69cPlcabgaxihmyHZ3oQ_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[33];
NTIrefnilaccessdefect__9aBnjTxiD7kSbLtZVd9aMijA_.size = sizeof(tyObject_NilAccessDefect__xZt69cPlcabgaxihmyHZ3oQ*);
NTIrefnilaccessdefect__9aBnjTxiD7kSbLtZVd9aMijA_.align = NIM_ALIGNOF(tyObject_NilAccessDefect__xZt69cPlcabgaxihmyHZ3oQ*);
NTIrefnilaccessdefect__9aBnjTxiD7kSbLtZVd9aMijA_.kind = 22;
NTIrefnilaccessdefect__9aBnjTxiD7kSbLtZVd9aMijA_.base = (&NTInilaccessdefect__xZt69cPlcabgaxihmyHZ3oQ_);
NTIrefnilaccessdefect__9aBnjTxiD7kSbLtZVd9aMijA_.marker = Marker_tyRef__9aBnjTxiD7kSbLtZVd9aMijA;
}