mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 09:26:38 +00:00
1565 lines
117 KiB
C
1565 lines
117 KiB
C
/* Generated by Nim Compiler v1.2.6 */
|
|
/* (c) 2020 Andreas Rumpf */
|
|
/* The generated code is subject to the original license. */
|
|
/* Compiled for: Linux, amd64, gcc */
|
|
/* Command for C compiler:
|
|
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/v1/node -o nimcache/release/start_network/stdlib_net.nim.c.o nimcache/release/start_network/stdlib_net.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <string.h>
|
|
#include <sys/types.h>
|
|
#include <pthread.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_(x, y)
|
|
#define nimln_(x, y)
|
|
typedef struct tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw;
|
|
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
|
|
typedef struct Exception Exception;
|
|
typedef struct RootObj RootObj;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
|
|
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
|
|
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
|
|
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
|
|
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
|
|
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 tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA;
|
|
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
|
|
typedef NU8 tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA;
|
|
typedef NU8 tyArray__qtqsWM5aXmcpMIVmvq3kAA[16];
|
|
typedef NU8 tyArray__H8qf9bpC2ziYA2earmO8m7w[4];
|
|
struct tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA {tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA family;
|
|
union{
|
|
struct {tyArray__qtqsWM5aXmcpMIVmvq3kAA address_v6;
|
|
} _family_1;
|
|
struct {tyArray__H8qf9bpC2ziYA2earmO8m7w address_v4;
|
|
} _family_2;
|
|
};
|
|
};
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
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;
|
|
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
|
|
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
|
|
TNimType* base;
|
|
TNimNode* node;
|
|
void* finalizer;
|
|
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
|
|
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
|
|
NCSTRING name;
|
|
TNimType* nextType;
|
|
NI instances;
|
|
NI sizes;
|
|
};
|
|
struct RootObj {TNimType* m_type;};
|
|
struct Exception { RootObj Sup;Exception* parent;
|
|
NCSTRING name;
|
|
NimStringDesc* message;
|
|
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
|
|
Exception* up;
|
|
};
|
|
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA { Exception Sup;};
|
|
struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;};
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
|
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
|
NI offset;
|
|
TNimType* typ;
|
|
NCSTRING name;
|
|
NI len;
|
|
TNimNode** sons;
|
|
};
|
|
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {NI refcount;
|
|
TNimType* typ;
|
|
};
|
|
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {void* bottom;
|
|
};
|
|
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {NI len;
|
|
NI cap;
|
|
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
|
|
};
|
|
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512];
|
|
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__SiRwrEKZdLgxqz9a9aoVBglg 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;
|
|
NI allocCounter;
|
|
NI deallocCounter;
|
|
};
|
|
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;
|
|
};
|
|
struct tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA {NI a;
|
|
NI b;
|
|
};
|
|
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
|
|
NI line;
|
|
NCSTRING filename;
|
|
};
|
|
struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};static N_INLINE(void, nimZeroMem)(void* p, NI size);
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
|
|
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y);
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src);
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y);
|
|
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
|
|
static N_INLINE(NIM_BOOL, contains__Pa9a8m0kZYH6LC8N1EcZJdQsystem)(NIM_CHAR* a, NI aLen_0, NIM_CHAR item);
|
|
static N_INLINE(NI, find__31wM5Ui9c8jnrQ5QD4oPxOQsystem)(NIM_CHAR* a, NI aLen_0, NIM_CHAR item);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA, parseIPv6Address__1ivqWNphfe1wCfgNmXXOCA_2)(NimStringDesc* addressStr);
|
|
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseFieldError)(NimStringDesc* f);
|
|
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
|
|
static N_INLINE(NimStringDesc*, X5BX5D___FPvLvuwqfYMFkcbGfPM8QQsystem)(NimStringDesc* s, tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x_0);
|
|
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
|
|
static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___BokNSDrKN1xmV1nA01G9brAsystem)(NI a, NI b);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA, parseIPv4Address__1ivqWNphfe1wCfgNmXXOCA_3)(NimStringDesc* addressStr);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___RkX9btpg5sQIaP8yYXB6tbA)(NU64 x_0);
|
|
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(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);
|
|
extern TNimType NTI__Ie1m0dv1ZHg72IgPRr1cDw_;
|
|
extern TNimType NTI__yoNlBGx0D2tRizIdhQuENw_;
|
|
STRING_LITERAL(TM__XqsrSBxhOTPgLQ9cX4MmV4A_2, "IP Address string is empty", 26);
|
|
STRING_LITERAL(TM__XqsrSBxhOTPgLQ9cX4MmV4A_5, "Invalid IP Address", 18);
|
|
STRING_LITERAL(TM__XqsrSBxhOTPgLQ9cX4MmV4A_6, "Invalid IP Address. Address contains an invalid separator", 57);
|
|
STRING_LITERAL(TM__XqsrSBxhOTPgLQ9cX4MmV4A_7, "Invalid IP Address. Address contains more than one \"::\" separat"
|
|
"or", 65);
|
|
STRING_LITERAL(TM__XqsrSBxhOTPgLQ9cX4MmV4A_8, "Invalid IP Address. The address consists of too many groups", 59);
|
|
STRING_LITERAL(TM__XqsrSBxhOTPgLQ9cX4MmV4A_9, "\'address_v6\' is not accessible using discriminant \'family\' of t"
|
|
"ype \'IpAddress\'", 78);
|
|
STRING_LITERAL(TM__XqsrSBxhOTPgLQ9cX4MmV4A_14, "Invalid IP Address. Address may not start with \":\"", 50);
|
|
STRING_LITERAL(TM__XqsrSBxhOTPgLQ9cX4MmV4A_16, "Invalid IP Address. Address may not end with \":\"", 48);
|
|
STRING_LITERAL(TM__XqsrSBxhOTPgLQ9cX4MmV4A_21, "Invalid IP Address. Value is out of range", 41);
|
|
STRING_LITERAL(TM__XqsrSBxhOTPgLQ9cX4MmV4A_22, "Invalid IP Address. Address contains an invalid character", 57);
|
|
STRING_LITERAL(TM__XqsrSBxhOTPgLQ9cX4MmV4A_24, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/system/iterators.nim(141, 11) `len(a) == L` the l"
|
|
"ength of the string changed while iterating over it", 178);
|
|
STRING_LITERAL(TM__XqsrSBxhOTPgLQ9cX4MmV4A_41, "Invalid IP Address. The address consists of too few groups", 58);
|
|
STRING_LITERAL(TM__XqsrSBxhOTPgLQ9cX4MmV4A_57, "\'address_v4\' is not accessible using discriminant \'family\' of t"
|
|
"ype \'IpAddress\'", 78);
|
|
STRING_LITERAL(TM__XqsrSBxhOTPgLQ9cX4MmV4A_66, "::", 2);
|
|
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
|
|
}
|
|
|
|
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 441 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); return result;}
|
|
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c);
|
|
}
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8));
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_;
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system(c);
|
|
}
|
|
LA4_: ;
|
|
}
|
|
|
|
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); return result;}
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, nimGCunrefNoCycle)(void* p) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T1_);
|
|
}
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8));}
|
|
|
|
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src) {
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_;
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!((src == NIM_NIL))) goto LA3_;
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src);
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
incRef__AT1eRuflKWyTTBdLjEDZbg_3system(T5_);
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!(((*dest) == NIM_NIL))) goto LA8_;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest));
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T10_);
|
|
}
|
|
LA8_: ;
|
|
|
|
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*dest) = src;}
|
|
|
|
#line 1748 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(NI, find__31wM5Ui9c8jnrQ5QD4oPxOQsystem)(NIM_CHAR* a, NI aLen_0, NIM_CHAR item) { NI result;{ result = (NI)0; { NIM_CHAR i; NI i_2; i = (NIM_CHAR)0;
|
|
#line 3 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
while (1) { NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_3; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_4;
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!(i_2 < aLen_0)) goto LA3;
|
|
|
|
#line 1751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if ((NU)(i_2) >= (NU)(aLen_0)){ raiseIndexError2(i_2,aLen_0-1); } i = a[i_2];
|
|
#line 1752 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
{
|
|
#line 1752 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if (!((NU8)(i) == (NU8)(item))) goto LA6_;
|
|
|
|
#line 1752 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA6_: ;
|
|
|
|
#line 1753 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if (nimAddInt(result, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_3)) { raiseOverflow(); }; result = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_3);
|
|
#line 6 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_4)) { raiseOverflow(); }; i_2 = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_4); } LA3: ;
|
|
}
|
|
}
|
|
|
|
#line 1754 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
result = ((NI) -1); }BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 1756 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(NIM_BOOL, contains__Pa9a8m0kZYH6LC8N1EcZJdQsystem)(NIM_CHAR* a, NI aLen_0, NIM_CHAR item) { NIM_BOOL result; NI T1_;{ result = (NIM_BOOL)0;
|
|
#line 1768 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 1768 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 1768 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 1768 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 1768 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T1_ = (NI)0; T1_ = find__31wM5Ui9c8jnrQ5QD4oPxOQsystem(a, aLen_0, item); result = (((NI) 0) <= T1_); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 2429 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(NimStringDesc*, X5BX5D___FPvLvuwqfYMFkcbGfPM8QQsystem)(NimStringDesc* s, tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x_0) { NimStringDesc* result; NI a; NI L; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_29; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_30; result = (NimStringDesc*)0;
|
|
#line 2436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
a = x_0.a;
|
|
#line 2437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if (nimSubInt(x_0.b, a, &TM__XqsrSBxhOTPgLQ9cX4MmV4A_29)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_29), ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_30)) { raiseOverflow(); }; L = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_30);
|
|
#line 2438 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2438 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if ((L) < ((NI) 0) || (L) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(L, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 2438 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
result = mnewString(((NI) (L))); { NI i; NI i_2; i = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_31; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_32;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < L)) goto LA3;
|
|
|
|
#line 2439 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
i = i_2; if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(i,(result ? result->Sup.len : 0)-1); }
|
|
#line 2439 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2439 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if (nimAddInt(i, a, &TM__XqsrSBxhOTPgLQ9cX4MmV4A_31)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_31)) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_31),(s ? s->Sup.len : 0)-1); } result->data[i] = s->data[(NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_31)];
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_32)) { raiseOverflow(); }; i_2 = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_32); } LA3: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___BokNSDrKN1xmV1nA01G9brAsystem)(NI a, NI b) { tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA result; nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA));
|
|
#line 469 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA)); result.a = a; result.b = b; return result;}
|
|
|
|
#line 274 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA, parseIPv6Address__1ivqWNphfe1wCfgNmXXOCA_2)(NimStringDesc* addressStr) { tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA result; NI groupCount; NI currentGroupStart; NU32 currentShort; NIM_BOOL separatorValid; NI dualColonGroup; NIM_BOOL lastWasColon; NI v4StartPos; NI byteCount; nimZeroMem((void*)(&result), sizeof(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA));
|
|
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA)); result.family = ((tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA) 0);
|
|
#line 278 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T5_; NimStringDesc* T6_;
|
|
#line 278 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 278 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!((addressStr ? addressStr->Sup.len : 0) < ((NI) 2))) goto LA3_;
|
|
T5_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T5_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T5_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T5_).Sup.Sup.name = "ValueError"; T6_ = (NimStringDesc*)0; T6_ = (*T5_).Sup.Sup.message; (*T5_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_5)); if (T6_) nimGCunrefNoCycle(T6_); asgnRef((void**) (&(*T5_).Sup.Sup.parent), NIM_NIL);
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T5_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 279); }
|
|
LA3_: ;
|
|
|
|
#line 282 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
groupCount = ((NI) 0);
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
currentGroupStart = ((NI) 0);
|
|
#line 284 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
currentShort = ((NU32) 0);
|
|
#line 285 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
separatorValid = NIM_TRUE;
|
|
#line 286 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
dualColonGroup = ((NI) -1);
|
|
#line 287 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
lastWasColon = NIM_FALSE;
|
|
#line 288 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
v4StartPos = ((NI) -1);
|
|
#line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
byteCount = ((NI) 0); { NI i; NIM_CHAR c; NI i_2; NI L; i = (NI)0; c = (NIM_CHAR)0;
|
|
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
i_2 = ((NI) 0);
|
|
#line 137 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 137 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
L = (addressStr ? addressStr->Sup.len : 0); {
|
|
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
while (1) { NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_23;
|
|
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!(i_2 < L)) goto LA9;
|
|
|
|
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
i = i_2;
|
|
#line 139 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if ((NU)(i_2) >= (NU)(addressStr ? addressStr->Sup.len : 0)){ raiseIndexError2(i_2,(addressStr ? addressStr->Sup.len : 0)-1); } c = addressStr->data[i_2];
|
|
#line 292 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_17;
|
|
#line 292 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!((NU8)(c) == (NU8)(58))) goto LA12_;
|
|
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T18_; NimStringDesc* T19_;
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!!(separatorValid)) goto LA16_;
|
|
T18_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T18_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T18_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T18_).Sup.Sup.name = "ValueError"; T19_ = (NimStringDesc*)0; T19_ = (*T18_).Sup.Sup.message; (*T18_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_6)); if (T19_) nimGCunrefNoCycle(T19_); asgnRef((void**) (&(*T18_).Sup.Sup.parent), NIM_NIL);
|
|
#line 294 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T18_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 294); }
|
|
LA16_: ;
|
|
|
|
#line 296 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ if (!lastWasColon) goto LA22_;
|
|
|
|
#line 297 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T28_; NimStringDesc* T29_;
|
|
#line 297 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 297 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!!((dualColonGroup == ((NI) -1)))) goto LA26_;
|
|
T28_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T28_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T28_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T28_).Sup.Sup.name = "ValueError"; T29_ = (NimStringDesc*)0; T29_ = (*T28_).Sup.Sup.message; (*T28_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_7)); if (T29_) nimGCunrefNoCycle(T29_); asgnRef((void**) (&(*T28_).Sup.Sup.parent), NIM_NIL);
|
|
#line 298 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T28_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 298); }
|
|
LA26_: ;
|
|
|
|
#line 300 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
dualColonGroup = groupCount;
|
|
#line 301 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
separatorValid = NIM_FALSE; }
|
|
goto LA20_;
|
|
LA22_: ;
|
|
{ NIM_BOOL T31_; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_10; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_11; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_12; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_13;
|
|
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T31_ = (NIM_BOOL)0;
|
|
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T31_ = !((i == ((NI) 0))); if (!(T31_)) goto LA32_;
|
|
|
|
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T31_ = !((i == ((addressStr ? addressStr->Sup.len : 0)-1))); LA32_: ;
|
|
if (!T31_) goto LA33_;
|
|
|
|
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T39_; NimStringDesc* T40_;
|
|
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(((NI) 8) <= groupCount)) goto LA37_;
|
|
T39_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T39_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T39_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T39_).Sup.Sup.name = "ValueError"; T40_ = (NimStringDesc*)0; T40_ = (*T39_).Sup.Sup.message; (*T39_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_8)); if (T40_) nimGCunrefNoCycle(T40_); asgnRef((void**) (&(*T39_).Sup.Sup.parent), NIM_NIL);
|
|
#line 304 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T39_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 304); }
|
|
LA37_: ;
|
|
if (!(((1 &(1U<<((NU)(result.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_9)); }
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimMulInt(groupCount, ((NI) 2), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_10)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_10)) > (NU)(15)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_10), 15); }
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result._family_1.address_v6[((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_10))- 0] = ((NU8) ((NU32)((NU32)(currentShort) >> (NU64)(((NI) 8))))); if (!(((1 &(1U<<((NU)(result.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_9)); }
|
|
#line 307 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 307 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimMulInt(groupCount, ((NI) 2), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_11)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_11), ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_12)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_12)) > (NU)(15)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_12), 15); }
|
|
#line 307 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 307 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result._family_1.address_v6[((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_12))- 0] = ((NU8) ((NU32)(currentShort & ((NU32) 255))));
|
|
#line 308 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
currentShort = ((NU32) 0);
|
|
#line 309 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimAddInt(groupCount, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_13)) { raiseOverflow(); }; groupCount = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_13);
|
|
#line 310 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{
|
|
#line 310 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 310 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!!((dualColonGroup == ((NI) -1)))) goto LA43_;
|
|
|
|
#line 310 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
separatorValid = NIM_FALSE; }
|
|
LA43_: ;
|
|
}
|
|
goto LA20_;
|
|
LA33_: ;
|
|
{
|
|
#line 311 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(i == ((NI) 0))) goto LA46_;
|
|
|
|
#line 312 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T52_; NimStringDesc* T53_;
|
|
#line 312 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 312 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if ((NU)(((NI) 1)) >= (NU)(addressStr ? addressStr->Sup.len : 0)){ raiseIndexError2(((NI) 1),(addressStr ? addressStr->Sup.len : 0)-1); } if (!!(((NU8)(addressStr->data[((NI) 1)]) == (NU8)(58)))) goto LA50_;
|
|
T52_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T52_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T52_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T52_).Sup.Sup.name = "ValueError"; T53_ = (NimStringDesc*)0; T53_ = (*T52_).Sup.Sup.message; (*T52_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_14)); if (T53_) nimGCunrefNoCycle(T53_); asgnRef((void**) (&(*T52_).Sup.Sup.parent), NIM_NIL);
|
|
#line 313 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T52_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 313); }
|
|
LA50_: ;
|
|
}
|
|
goto LA20_;
|
|
LA46_: ;
|
|
{
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_15; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T59_; NimStringDesc* T60_;
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimSubInt(((addressStr ? addressStr->Sup.len : 0)-1), ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_15)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_15)) >= (NU)(addressStr ? addressStr->Sup.len : 0)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_15),(addressStr ? addressStr->Sup.len : 0)-1); } if (!!(((NU8)(addressStr->data[(NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_15)]) == (NU8)(58)))) goto LA57_;
|
|
T59_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T59_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T59_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T59_).Sup.Sup.name = "ValueError"; T60_ = (NimStringDesc*)0; T60_ = (*T59_).Sup.Sup.message; (*T59_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_16)); if (T60_) nimGCunrefNoCycle(T60_); asgnRef((void**) (&(*T59_).Sup.Sup.parent), NIM_NIL);
|
|
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T59_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 317); }
|
|
LA57_: ;
|
|
}
|
|
LA20_: ;
|
|
|
|
#line 319 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
lastWasColon = NIM_TRUE;
|
|
#line 320 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 320 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_17)) { raiseOverflow(); }; currentGroupStart = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_17); }
|
|
goto LA10_;
|
|
LA12_: ;
|
|
{
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!((NU8)(c) == (NU8)(46))) goto LA62_;
|
|
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ NIM_BOOL T66_; NIM_BOOL T67_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T72_; NimStringDesc* T73_;
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T66_ = (NIM_BOOL)0;
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T67_ = (NIM_BOOL)0;
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T67_ = (i < ((NI) 3)); if (T67_) goto LA68_;
|
|
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T67_ = !(separatorValid); LA68_: ;
|
|
T66_ = T67_; if (T66_) goto LA69_;
|
|
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T66_ = (((NI) 7) <= groupCount); LA69_: ;
|
|
if (!T66_) goto LA70_;
|
|
T72_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T72_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T72_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T72_).Sup.Sup.name = "ValueError"; T73_ = (NimStringDesc*)0; T73_ = (*T72_).Sup.Sup.message; (*T72_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_5)); if (T73_) nimGCunrefNoCycle(T73_); asgnRef((void**) (&(*T72_).Sup.Sup.parent), NIM_NIL);
|
|
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T72_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 323); }
|
|
LA70_: ;
|
|
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
v4StartPos = currentGroupStart;
|
|
#line 325 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
currentShort = ((NU32) 0);
|
|
#line 326 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
separatorValid = NIM_FALSE;
|
|
#line 327 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
goto LA7;
|
|
}
|
|
goto LA10_;
|
|
LA62_: ;
|
|
{
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(((NU8)(c)) >= ((NU8)(48)) && ((NU8)(c)) <= ((NU8)(57)) || ((NU8)(c)) >= ((NU8)(65)) && ((NU8)(c)) <= ((NU8)(70)) || ((NU8)(c)) >= ((NU8)(97)) && ((NU8)(c)) <= ((NU8)(102)))) goto LA75_;
|
|
|
|
#line 329 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_18;
|
|
#line 329 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(((NU8)(c)) >= ((NU8)(48)) && ((NU8)(c)) <= ((NU8)(57)))) goto LA79_;
|
|
|
|
#line 330 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 330 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 330 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 330 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 330 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimSubInt(((NU8)(c)), ((NI) 48), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_18)) { raiseOverflow(); }; currentShort = (NU32)((NU32)((NU32)((NU64)(currentShort) << (NU64)(((NI) 4)))) + (NU32)(((NU32) ((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_18))))); }
|
|
goto LA77_;
|
|
LA79_: ;
|
|
{ NIM_BOOL T82_; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_19;
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T82_ = (NIM_BOOL)0;
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T82_ = ((NU8)(97) <= (NU8)(c)); if (!(T82_)) goto LA83_;
|
|
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T82_ = ((NU8)(c) <= (NU8)(102)); LA83_: ;
|
|
if (!T82_) goto LA84_;
|
|
|
|
#line 332 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 332 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 332 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 332 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 332 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 332 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimSubInt(((NU8)(c)), ((NI) 97), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_19)) { raiseOverflow(); }; currentShort = (NU32)((NU32)((NU32)((NU32)((NU32)((NU64)(currentShort) << (NU64)(((NI) 4)))) + (NU32)(((NU32) ((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_19)))))) + (NU32)(((NU32) 10))); }
|
|
goto LA77_;
|
|
LA84_: ;
|
|
{ NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_20;
|
|
#line 334 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 334 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 334 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 334 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 334 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 334 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimSubInt(((NU8)(c)), ((NI) 65), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_20)) { raiseOverflow(); }; currentShort = (NU32)((NU32)((NU32)((NU32)((NU32)((NU64)(currentShort) << (NU64)(((NI) 4)))) + (NU32)(((NU32) ((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_20)))))) + (NU32)(((NU32) 10))); }
|
|
LA77_: ;
|
|
|
|
#line 335 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T91_; NimStringDesc* T92_;
|
|
#line 335 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!((NU32)(((NU32) 65535)) < (NU32)(currentShort))) goto LA89_;
|
|
T91_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T91_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T91_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T91_).Sup.Sup.name = "ValueError"; T92_ = (NimStringDesc*)0; T92_ = (*T91_).Sup.Sup.message; (*T91_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_21)); if (T92_) nimGCunrefNoCycle(T92_); asgnRef((void**) (&(*T91_).Sup.Sup.parent), NIM_NIL);
|
|
#line 336 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T91_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 336); }
|
|
LA89_: ;
|
|
|
|
#line 338 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
lastWasColon = NIM_FALSE;
|
|
#line 339 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
separatorValid = NIM_TRUE; }
|
|
goto LA10_;
|
|
LA75_: ;
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T94_; NimStringDesc* T95_; T94_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T94_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T94_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T94_).Sup.Sup.name = "ValueError"; T95_ = (NimStringDesc*)0; T95_ = (*T94_).Sup.Sup.message; (*T94_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_22)); if (T95_) nimGCunrefNoCycle(T95_); asgnRef((void**) (&(*T94_).Sup.Sup.parent), NIM_NIL);
|
|
#line 341 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T94_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 341); }
|
|
LA10_: ;
|
|
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_23)) { raiseOverflow(); }; i_2 = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_23);
|
|
#line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
{
|
|
#line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!!(((addressStr ? addressStr->Sup.len : 0) == L))) goto LA98_;
|
|
|
|
#line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_24));
|
|
}
|
|
LA98_: ;
|
|
} LA9: ;
|
|
}
|
|
} LA7: ;
|
|
|
|
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{
|
|
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(v4StartPos == ((NI) -1))) goto LA102_;
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_25; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_26; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_27; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_28; if (!separatorValid) goto LA106_;
|
|
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T112_; NimStringDesc* T113_;
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(((NI) 8) <= groupCount)) goto LA110_;
|
|
T112_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T112_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T112_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T112_).Sup.Sup.name = "ValueError"; T113_ = (NimStringDesc*)0; T113_ = (*T112_).Sup.Sup.message; (*T112_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_8)); if (T113_) nimGCunrefNoCycle(T113_); asgnRef((void**) (&(*T112_).Sup.Sup.parent), NIM_NIL);
|
|
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T112_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 348); }
|
|
LA110_: ;
|
|
if (!(((1 &(1U<<((NU)(result.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_9)); }
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimMulInt(groupCount, ((NI) 2), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_25)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_25)) > (NU)(15)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_25), 15); }
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result._family_1.address_v6[((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_25))- 0] = ((NU8) ((NU32)((NU32)(currentShort) >> (NU64)(((NI) 8))))); if (!(((1 &(1U<<((NU)(result.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_9)); }
|
|
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimMulInt(groupCount, ((NI) 2), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_26)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_26), ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_27)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_27)) > (NU)(15)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_27), 15); }
|
|
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result._family_1.address_v6[((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_27))- 0] = ((NU8) ((NU32)(currentShort & ((NU32) 255))));
|
|
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimAddInt(groupCount, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_28)) { raiseOverflow(); }; groupCount = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_28); }
|
|
LA106_: ;
|
|
}
|
|
goto LA100_;
|
|
LA102_: ;
|
|
{ NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_38; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_39; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_40; { NI i_3; NIM_CHAR c_2; NimStringDesc* colontmp_; tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA T116_; NI i_4; NI L_2; i_3 = (NI)0; c_2 = (NIM_CHAR)0; colontmp_ = (NimStringDesc*)0;
|
|
#line 354 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 354 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 354 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 354 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T116_ = dotdot___BokNSDrKN1xmV1nA01G9brAsystem(v4StartPos, ((addressStr ? addressStr->Sup.len : 0)-1));
|
|
#line 354 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
colontmp_ = X5BX5D___FPvLvuwqfYMFkcbGfPM8QQsystem(addressStr, T116_);
|
|
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
i_4 = ((NI) 0);
|
|
#line 137 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 137 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
L_2 = (colontmp_ ? colontmp_->Sup.len : 0); {
|
|
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
while (1) { NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_37;
|
|
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!(i_4 < L_2)) goto LA118;
|
|
|
|
#line 354 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
i_3 = i_4;
|
|
#line 139 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if ((NU)(i_4) >= (NU)(colontmp_ ? colontmp_->Sup.len : 0)){ raiseIndexError2(i_4,(colontmp_ ? colontmp_->Sup.len : 0)-1); } c_2 = colontmp_->data[i_4];
|
|
#line 355 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_33;
|
|
#line 355 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(((NU8)(c_2)) >= ((NU8)(48)) && ((NU8)(c_2)) <= ((NU8)(57)))) goto LA121_;
|
|
|
|
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimSubInt(((NU8)(c_2)), ((NI) 48), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_33)) { raiseOverflow(); }; currentShort = (NU32)((NU32)((NU32)((NU32)(currentShort) * (NU32)(((NU32) 10)))) + (NU32)(((NU32) ((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_33)))));
|
|
#line 357 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T127_; NimStringDesc* T128_;
|
|
#line 357 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!((NU32)(((NU32) 255)) < (NU32)(currentShort))) goto LA125_;
|
|
T127_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T127_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T127_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T127_).Sup.Sup.name = "ValueError"; T128_ = (NimStringDesc*)0; T128_ = (*T127_).Sup.Sup.message; (*T127_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_21)); if (T128_) nimGCunrefNoCycle(T128_); asgnRef((void**) (&(*T127_).Sup.Sup.parent), NIM_NIL);
|
|
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T127_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 358); }
|
|
LA125_: ;
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
separatorValid = NIM_TRUE; }
|
|
goto LA119_;
|
|
LA121_: ;
|
|
{ NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_34; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_35; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_36;
|
|
#line 361 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!((NU8)(c_2) == (NU8)(46))) goto LA130_;
|
|
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ NIM_BOOL T134_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T138_; NimStringDesc* T139_;
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T134_ = (NIM_BOOL)0;
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T134_ = !(separatorValid); if (T134_) goto LA135_;
|
|
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T134_ = (((NI) 3) <= byteCount); LA135_: ;
|
|
if (!T134_) goto LA136_;
|
|
T138_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T138_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T138_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T138_).Sup.Sup.name = "ValueError"; T139_ = (NimStringDesc*)0; T139_ = (*T138_).Sup.Sup.message; (*T138_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_5)); if (T139_) nimGCunrefNoCycle(T139_); asgnRef((void**) (&(*T138_).Sup.Sup.parent), NIM_NIL);
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T138_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 363); }
|
|
LA136_: ;
|
|
if (!(((1 &(1U<<((NU)(result.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_9)); }
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimMulInt(groupCount, ((NI) 2), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_34)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_34), byteCount, &TM__XqsrSBxhOTPgLQ9cX4MmV4A_35)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_35)) > (NU)(15)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_35), 15); }
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result._family_1.address_v6[((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_35))- 0] = ((NU8) (currentShort));
|
|
#line 365 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
currentShort = ((NU32) 0);
|
|
#line 366 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimAddInt(byteCount, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_36)) { raiseOverflow(); }; byteCount = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_36);
|
|
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
separatorValid = NIM_FALSE; }
|
|
goto LA119_;
|
|
LA130_: ;
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T141_; NimStringDesc* T142_; T141_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T141_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T141_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T141_).Sup.Sup.name = "ValueError"; T142_ = (NimStringDesc*)0; T142_ = (*T141_).Sup.Sup.message; (*T141_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_22)); if (T142_) nimGCunrefNoCycle(T142_); asgnRef((void**) (&(*T141_).Sup.Sup.parent), NIM_NIL);
|
|
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T141_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 369); }
|
|
LA119_: ;
|
|
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (nimAddInt(i_4, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_37)) { raiseOverflow(); }; i_4 = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_37);
|
|
#line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
{
|
|
#line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!!(((colontmp_ ? colontmp_->Sup.len : 0) == L_2))) goto LA145_;
|
|
|
|
#line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_24));
|
|
}
|
|
LA145_: ;
|
|
} LA118: ;
|
|
}
|
|
}
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ NIM_BOOL T149_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T153_; NimStringDesc* T154_;
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T149_ = (NIM_BOOL)0;
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T149_ = !((byteCount == ((NI) 3))); if (T149_) goto LA150_;
|
|
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T149_ = !(separatorValid); LA150_: ;
|
|
if (!T149_) goto LA151_;
|
|
T153_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T153_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T153_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T153_).Sup.Sup.name = "ValueError"; T154_ = (NimStringDesc*)0; T154_ = (*T153_).Sup.Sup.message; (*T153_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_5)); if (T154_) nimGCunrefNoCycle(T154_); asgnRef((void**) (&(*T153_).Sup.Sup.parent), NIM_NIL);
|
|
#line 373 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T153_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 373); }
|
|
LA151_: ;
|
|
if (!(((1 &(1U<<((NU)(result.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_9)); }
|
|
#line 374 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 374 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimMulInt(groupCount, ((NI) 2), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_38)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_38), byteCount, &TM__XqsrSBxhOTPgLQ9cX4MmV4A_39)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_39)) > (NU)(15)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_39), 15); }
|
|
#line 374 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result._family_1.address_v6[((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_39))- 0] = ((NU8) (currentShort));
|
|
#line 375 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimAddInt(groupCount, ((NI) 2), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_40)) { raiseOverflow(); }; groupCount = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_40); }
|
|
LA100_: ;
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T159_; NimStringDesc* T160_;
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(((NI) 8) < groupCount)) goto LA157_;
|
|
T159_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T159_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T159_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T159_).Sup.Sup.name = "ValueError"; T160_ = (NimStringDesc*)0; T160_ = (*T159_).Sup.Sup.message; (*T159_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_8)); if (T160_) nimGCunrefNoCycle(T160_); asgnRef((void**) (&(*T159_).Sup.Sup.parent), NIM_NIL);
|
|
#line 379 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T159_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 379); }
|
|
goto LA155_;
|
|
LA157_: ;
|
|
{ NI toFill; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_42; NI toShift; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_43;
|
|
#line 381 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(groupCount < ((NI) 8))) goto LA162_;
|
|
|
|
#line 382 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T168_; NimStringDesc* T169_;
|
|
#line 382 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(dualColonGroup == ((NI) -1))) goto LA166_;
|
|
T168_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T168_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T168_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T168_).Sup.Sup.name = "ValueError"; T169_ = (NimStringDesc*)0; T169_ = (*T168_).Sup.Sup.message; (*T168_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_41)); if (T169_) nimGCunrefNoCycle(T169_); asgnRef((void**) (&(*T168_).Sup.Sup.parent), NIM_NIL);
|
|
#line 383 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T168_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 383); }
|
|
LA166_: ;
|
|
|
|
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimSubInt(((NI) 8), groupCount, &TM__XqsrSBxhOTPgLQ9cX4MmV4A_42)) { raiseOverflow(); }; toFill = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_42);
|
|
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimSubInt(groupCount, dualColonGroup, &TM__XqsrSBxhOTPgLQ9cX4MmV4A_43)) { raiseOverflow(); }; toShift = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_43); { NI i_5; NI colontmp__2; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_44; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_45; NI res; i_5 = (NI)0; colontmp__2 = (NI)0;
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimMulInt(((NI) 2), toShift, &TM__XqsrSBxhOTPgLQ9cX4MmV4A_44)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_44), ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_45)) { raiseOverflow(); }; colontmp__2 = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_45);
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = ((NI) 0); {
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_46; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_47; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_48; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_49; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_50;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(res <= colontmp__2)) goto LA172;
|
|
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
i_5 = res; if (!(((1 &(1U<<((NU)(result.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_9)); }
|
|
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimSubInt(((NI) 15), i_5, &TM__XqsrSBxhOTPgLQ9cX4MmV4A_46)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_46)) > (NU)(15)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_46), 15); }
|
|
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(((1 &(1U<<((NU)(result.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_9)); }
|
|
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimMulInt(groupCount, ((NI) 2), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_47)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_47), i_5, &TM__XqsrSBxhOTPgLQ9cX4MmV4A_48)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_48), ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_49)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_49)) > (NU)(15)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_49), 15); } result._family_1.address_v6[((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_46))- 0] = result._family_1.address_v6[((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_49))- 0];
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(res, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_50)) { raiseOverflow(); }; res = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_50); } LA172: ;
|
|
}
|
|
}
|
|
{ NI i_6; NI colontmp__3; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_51; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_52; NI res_2; i_6 = (NI)0; colontmp__3 = (NI)0;
|
|
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimMulInt(((NI) 2), toFill, &TM__XqsrSBxhOTPgLQ9cX4MmV4A_51)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_51), ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_52)) { raiseOverflow(); }; colontmp__3 = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_52);
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res_2 = ((NI) 0); {
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_53; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_54; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_55;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(res_2 <= colontmp__3)) goto LA175;
|
|
|
|
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
i_6 = res_2; if (!(((1 &(1U<<((NU)(result.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_9)); }
|
|
#line 390 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 390 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimMulInt(dualColonGroup, ((NI) 2), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_53)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_53), i_6, &TM__XqsrSBxhOTPgLQ9cX4MmV4A_54)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_54)) > (NU)(15)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_54), 15); }
|
|
#line 390 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result._family_1.address_v6[((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_54))- 0] = ((NU8) 0);
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(res_2, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_55)) { raiseOverflow(); }; res_2 = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_55); } LA175: ;
|
|
}
|
|
}
|
|
}
|
|
goto LA155_;
|
|
LA162_: ;
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T179_; NimStringDesc* T180_;
|
|
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!!((dualColonGroup == ((NI) -1)))) goto LA177_;
|
|
T179_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T179_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T179_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T179_).Sup.Sup.name = "ValueError"; T180_ = (NimStringDesc*)0; T180_ = (*T179_).Sup.Sup.message; (*T179_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_8)); if (T180_) nimGCunrefNoCycle(T180_); asgnRef((void**) (&(*T179_).Sup.Sup.parent), NIM_NIL);
|
|
#line 392 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T179_, "ValueError", "parseIPv6Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 392); }
|
|
goto LA155_;
|
|
LA177_: ;
|
|
LA155_: ;
|
|
return result;}
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA, parseIPv4Address__1ivqWNphfe1wCfgNmXXOCA_3)(NimStringDesc* addressStr) { tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA result; NI byteCount; NU16 currentByte; NIM_BOOL separatorValid; nimZeroMem((void*)(&result), sizeof(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA));
|
|
#line 244 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
byteCount = ((NI) 0);
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
currentByte = ((NU16) 0);
|
|
#line 246 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
separatorValid = NIM_FALSE;
|
|
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA)); result.family = ((tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA) 1); { NI i; NI colontmp_; NI res; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
colontmp_ = ((addressStr ? addressStr->Sup.len : 0)-1);
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = ((NI) 0); {
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_59;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(res <= colontmp_)) goto LA3;
|
|
|
|
#line 250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
i = res;
|
|
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_56;
|
|
#line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if ((NU)(i) >= (NU)(addressStr ? addressStr->Sup.len : 0)){ raiseIndexError2(i,(addressStr ? addressStr->Sup.len : 0)-1); } if (!(((NU8)(addressStr->data[i])) >= ((NU8)(48)) && ((NU8)(addressStr->data[i])) <= ((NU8)(57)))) goto LA6_;
|
|
|
|
#line 252 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 252 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 252 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 253 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 253 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if ((NU)(i) >= (NU)(addressStr ? addressStr->Sup.len : 0)){ raiseIndexError2(i,(addressStr ? addressStr->Sup.len : 0)-1); } if (nimSubInt(((NU8)(addressStr->data[i])), ((NI) 48), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_56)) { raiseOverflow(); }; currentByte = (NU16)((NU16)((NU16)((NU16)(currentByte) * (NU16)(((NU16) 10)))) + (NU16)(((NU16) ((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_56)))));
|
|
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T12_; NimStringDesc* T13_;
|
|
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!((NU16)(((NU16) 255)) < (NU16)(currentByte))) goto LA10_;
|
|
T12_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T12_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T12_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T12_).Sup.Sup.name = "ValueError"; T13_ = (NimStringDesc*)0; T13_ = (*T12_).Sup.Sup.message; (*T12_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_21)); if (T13_) nimGCunrefNoCycle(T13_); asgnRef((void**) (&(*T12_).Sup.Sup.parent), NIM_NIL);
|
|
#line 255 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T12_, "ValueError", "parseIPv4Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 255); }
|
|
LA10_: ;
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
separatorValid = NIM_TRUE; }
|
|
goto LA4_;
|
|
LA6_: ;
|
|
{ NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_58;
|
|
#line 258 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if ((NU)(i) >= (NU)(addressStr ? addressStr->Sup.len : 0)){ raiseIndexError2(i,(addressStr ? addressStr->Sup.len : 0)-1); } if (!((NU8)(addressStr->data[i]) == (NU8)(46))) goto LA15_;
|
|
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ NIM_BOOL T19_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T23_; NimStringDesc* T24_;
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T19_ = (NIM_BOOL)0;
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T19_ = !(separatorValid); if (T19_) goto LA20_;
|
|
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T19_ = (((NI) 3) <= byteCount); LA20_: ;
|
|
if (!T19_) goto LA21_;
|
|
T23_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T23_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T23_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T23_).Sup.Sup.name = "ValueError"; T24_ = (NimStringDesc*)0; T24_ = (*T23_).Sup.Sup.message; (*T23_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_8)); if (T24_) nimGCunrefNoCycle(T24_); asgnRef((void**) (&(*T23_).Sup.Sup.parent), NIM_NIL);
|
|
#line 260 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T23_, "ValueError", "parseIPv4Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 260); }
|
|
LA21_: ;
|
|
if (!(((2 &(1U<<((NU)(result.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_57)); } if ((NU)(byteCount) > (NU)(3)){ raiseIndexError2(byteCount, 3); }
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result._family_2.address_v4[(byteCount)- 0] = ((NU8) (currentByte));
|
|
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
currentByte = ((NU16) 0);
|
|
#line 264 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimAddInt(byteCount, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_58)) { raiseOverflow(); }; byteCount = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_58);
|
|
#line 265 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
separatorValid = NIM_FALSE; }
|
|
goto LA4_;
|
|
LA15_: ;
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T26_; NimStringDesc* T27_; T26_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T26_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T26_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T26_).Sup.Sup.name = "ValueError"; T27_ = (NimStringDesc*)0; T27_ = (*T26_).Sup.Sup.message; (*T26_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_22)); if (T27_) nimGCunrefNoCycle(T27_); asgnRef((void**) (&(*T26_).Sup.Sup.parent), NIM_NIL);
|
|
#line 267 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T26_, "ValueError", "parseIPv4Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 267); }
|
|
LA4_: ;
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(res, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_59)) { raiseOverflow(); }; res = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_59); } LA3: ;
|
|
}
|
|
}
|
|
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ NIM_BOOL T30_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T34_; NimStringDesc* T35_;
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T30_ = (NIM_BOOL)0;
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T30_ = !((byteCount == ((NI) 3))); if (T30_) goto LA31_;
|
|
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T30_ = !(separatorValid); LA31_: ;
|
|
if (!T30_) goto LA32_;
|
|
T34_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T34_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T34_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T34_).Sup.Sup.name = "ValueError"; T35_ = (NimStringDesc*)0; T35_ = (*T34_).Sup.Sup.message; (*T34_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_5)); if (T35_) nimGCunrefNoCycle(T35_); asgnRef((void**) (&(*T34_).Sup.Sup.parent), NIM_NIL);
|
|
#line 271 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T34_, "ValueError", "parseIPv4Address", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 271); }
|
|
LA32_: ;
|
|
if (!(((2 &(1U<<((NU)(result.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_57)); } if ((NU)(byteCount) > (NU)(3)){ raiseIndexError2(byteCount, 3); }
|
|
#line 272 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result._family_2.address_v4[(byteCount)- 0] = ((NU8) (currentByte)); return result;}
|
|
|
|
#line 395 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA, parseIpAddress__1ivqWNphfe1wCfgNmXXOCA)(NimStringDesc* addressStr) { tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA result;{ nimZeroMem((void*)(&result), sizeof(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA));
|
|
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T5_; NimStringDesc* T6_;
|
|
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!((addressStr ? addressStr->Sup.len : 0) == ((NI) 0))) goto LA3_;
|
|
T5_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T5_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T5_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T5_).Sup.Sup.name = "ValueError"; T6_ = (NimStringDesc*)0; T6_ = (*T5_).Sup.Sup.message; (*T5_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_2)); if (T6_) nimGCunrefNoCycle(T6_); asgnRef((void**) (&(*T5_).Sup.Sup.parent), NIM_NIL);
|
|
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
raiseExceptionEx((Exception*)T5_, "ValueError", "parseIpAddress", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/net.nim", 399); }
|
|
LA3_: ;
|
|
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ NIM_BOOL T9_;
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T9_ = (NIM_BOOL)0; T9_ = contains__Pa9a8m0kZYH6LC8N1EcZJdQsystem(addressStr->data, (addressStr ? addressStr->Sup.len : 0), 58); if (!T9_) goto LA10_;
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result = parseIPv6Address__1ivqWNphfe1wCfgNmXXOCA_2(addressStr); goto BeforeRet_;
|
|
}
|
|
goto LA7_;
|
|
LA10_: ;
|
|
{
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result = parseIPv4Address__1ivqWNphfe1wCfgNmXXOCA_3(addressStr); goto BeforeRet_;
|
|
}
|
|
LA7_: ;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_;
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));}
|
|
|
|
#line 2112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
|
|
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
nimCopyMem(dest, source, size);
|
|
}
|
|
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
{
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
if (!!((src == NIM_NIL))) goto LA3_;
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
|
|
|
|
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
(*dest).Sup.len += (*src).Sup.len; }
|
|
LA3_: ;
|
|
}
|
|
|
|
#line 1587 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___cbhSLBlQm0h9cO9cfQ8lXDaw)(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA address) { NimStringDesc* result; result = (NimStringDesc*)0;
|
|
#line 1589 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result = ((NimStringDesc*) NIM_NIL);
|
|
#line 1590 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
switch (address.family) {
|
|
case ((tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA) 1):
|
|
{ { NI i; NI res; i = (NI)0;
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = ((NI) 0); {
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NimStringDesc* T9_; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_60;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(res <= ((NI) 3))) goto LA4;
|
|
|
|
#line 1592 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
i = res;
|
|
#line 1593 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{
|
|
#line 1593 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1593 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!!((i == ((NI) 0)))) goto LA7_;
|
|
|
|
#line 1594 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result = addChar(result, 46); }
|
|
LA7_: ;
|
|
|
|
#line 1595 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1595 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(((2 &(1U<<((NU)(address.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_57)); } if ((NU)(i) > (NU)(3)){ raiseIndexError2(i, 3); }
|
|
#line 1595 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T9_ = (NimStringDesc*)0; T9_ = dollar___RkX9btpg5sQIaP8yYXB6tbA(((NU64) (address._family_2.address_v4[(i)- 0]))); result = resizeString(result, (T9_ ? T9_->Sup.len : 0) + 0);appendString(result, T9_);
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(res, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_60)) { raiseOverflow(); }; res = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_60); } LA4: ;
|
|
}
|
|
}
|
|
}
|
|
break;
|
|
case ((tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA) 0):
|
|
{ NI currentZeroStart; NI currentZeroCount; NI biggestZeroStart; NI biggestZeroCount;
|
|
#line 1598 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
currentZeroStart = ((NI) -1);
|
|
#line 1599 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
currentZeroCount = ((NI) 0);
|
|
#line 1600 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
biggestZeroStart = ((NI) -1);
|
|
#line 1601 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
biggestZeroCount = ((NI) 0); { NI i_2; NI res_2; i_2 = (NI)0;
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res_2 = ((NI) 0); {
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NIM_BOOL isZero; NIM_BOOL T14_; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_61; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_62; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_63; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_65;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(res_2 <= ((NI) 7))) goto LA13;
|
|
|
|
#line 1603 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
i_2 = res_2;
|
|
#line 1604 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1604 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T14_ = (NIM_BOOL)0;
|
|
#line 1604 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(((1 &(1U<<((NU)(address.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_9)); }
|
|
#line 1604 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimMulInt(i_2, ((NI) 2), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_61)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_61)) > (NU)(15)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_61), 15); } T14_ = (address._family_1.address_v6[((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_61))- 0] == ((NU8) 0)); if (!(T14_)) goto LA15_;
|
|
|
|
#line 1604 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(((1 &(1U<<((NU)(address.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_9)); }
|
|
#line 1604 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1604 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimMulInt(i_2, ((NI) 2), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_62)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_62), ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_63)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_63)) > (NU)(15)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_63), 15); } T14_ = (address._family_1.address_v6[((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_63))- 0] == ((NU8) 0)); LA15_: ;
|
|
isZero = T14_;
|
|
#line 1605 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ if (!isZero) goto LA18_;
|
|
|
|
#line 1606 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{
|
|
#line 1606 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(currentZeroStart == ((NI) -1))) goto LA22_;
|
|
|
|
#line 1607 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
currentZeroStart = i_2;
|
|
#line 1608 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
currentZeroCount = ((NI) 1); }
|
|
goto LA20_;
|
|
LA22_: ;
|
|
{ NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_64;
|
|
#line 1610 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimAddInt(currentZeroCount, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_64)) { raiseOverflow(); }; currentZeroCount = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_64); }
|
|
LA20_: ;
|
|
|
|
#line 1611 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{
|
|
#line 1611 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(biggestZeroCount < currentZeroCount)) goto LA27_;
|
|
|
|
#line 1612 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
biggestZeroCount = currentZeroCount;
|
|
#line 1613 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
biggestZeroStart = currentZeroStart; }
|
|
LA27_: ;
|
|
}
|
|
goto LA16_;
|
|
LA18_: ;
|
|
{
|
|
#line 1615 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
currentZeroStart = ((NI) -1); }
|
|
LA16_: ;
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(res_2, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_65)) { raiseOverflow(); }; res_2 = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_65); } LA13: ;
|
|
}
|
|
}
|
|
|
|
#line 1617 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{
|
|
#line 1617 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(biggestZeroCount == ((NI) 8))) goto LA32_;
|
|
|
|
#line 1618 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result = resizeString(result, 2);appendString(result, ((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_66)); }
|
|
goto LA30_;
|
|
LA32_: ;
|
|
{ NIM_BOOL printedLastGroup;
|
|
#line 1620 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
printedLastGroup = NIM_FALSE; { NI i_3; NI res_3; i_3 = (NI)0;
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res_3 = ((NI) 0); {
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NU16 word; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_67; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_68; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_69; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_72;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(res_3 <= ((NI) 7))) goto LA37;
|
|
|
|
#line 1621 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
i_3 = res_3;
|
|
#line 1622 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1622 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(((1 &(1U<<((NU)(address.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_9)); }
|
|
#line 1622 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimMulInt(i_3, ((NI) 2), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_67)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_67)) > (NU)(15)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_67), 15); } word = (NU16)((NU64)(((NU16) (address._family_1.address_v6[((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_67))- 0]))) << (NU64)(((NI) 8)));
|
|
#line 1623 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1623 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(((1 &(1U<<((NU)(address.family)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_9)); }
|
|
#line 1623 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1623 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimMulInt(i_3, ((NI) 2), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_68)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_68), ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_69)) { raiseOverflow(); }; if ((NU)((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_69)) > (NU)(15)){ raiseIndexError2((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_69), 15); } word = (NU16)(word | ((NU16) (address._family_1.address_v6[((NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_69))- 0])));
|
|
#line 1625 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ NIM_BOOL T40_; NIM_BOOL T42_; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_70;
|
|
#line 1625 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T40_ = (NIM_BOOL)0;
|
|
#line 1625 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1625 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T40_ = !((biggestZeroCount == ((NI) 0))); if (!(T40_)) goto LA41_;
|
|
|
|
#line 1626 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T42_ = (NIM_BOOL)0;
|
|
#line 1626 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T42_ = (biggestZeroStart <= i_3); if (!(T42_)) goto LA43_;
|
|
|
|
#line 1626 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1626 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (nimAddInt(biggestZeroStart, biggestZeroCount, &TM__XqsrSBxhOTPgLQ9cX4MmV4A_70)) { raiseOverflow(); }; T42_ = (i_3 < (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_70)); LA43_: ;
|
|
T40_ = T42_; LA41_: ;
|
|
if (!T40_) goto LA44_;
|
|
|
|
#line 1627 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{
|
|
#line 1627 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!(i_3 == biggestZeroStart)) goto LA48_;
|
|
|
|
#line 1628 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result = resizeString(result, 2);appendString(result, ((NimStringDesc*) &TM__XqsrSBxhOTPgLQ9cX4MmV4A_66)); }
|
|
LA48_: ;
|
|
|
|
#line 1629 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
printedLastGroup = NIM_FALSE; }
|
|
goto LA38_;
|
|
LA44_: ;
|
|
{ NIM_BOOL afterLeadingZeros; NU16 mask;
|
|
#line 1631 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ if (!printedLastGroup) goto LA53_;
|
|
|
|
#line 1632 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
result = addChar(result, 58); }
|
|
LA53_: ;
|
|
|
|
#line 1634 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
afterLeadingZeros = NIM_FALSE;
|
|
#line 1635 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
mask = ((NU16) 61440); { NU16 j; NI res_4; j = (NU16)0;
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res_4 = ((NI) 0); {
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NU16 val_1; NI TM__XqsrSBxhOTPgLQ9cX4MmV4A_71;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(res_4 <= ((NI) 3))) goto LA57;
|
|
|
|
#line 1636 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
j = ((NU16) (res_4));
|
|
#line 1637 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1637 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1637 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1637 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1637 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
val_1 = (NU16)((NU16)((NU16)(mask & word)) >> (NU16)((NU16)((NU16)(((NU16) 4)) * (NU16)((NU16)((NU16)(((NU16) 3)) - (NU16)(j))))));
|
|
#line 1638 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{ NIM_BOOL T60_;
|
|
#line 1638 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T60_ = (NIM_BOOL)0;
|
|
#line 1638 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1638 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
T60_ = !((val_1 == ((NU16) 0))); if (T60_) goto LA61_;
|
|
T60_ = afterLeadingZeros; LA61_: ;
|
|
if (!T60_) goto LA62_;
|
|
|
|
#line 1639 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
{
|
|
#line 1639 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (!((NU16)(val_1) < (NU16)(((NU16) 10)))) goto LA66_;
|
|
|
|
#line 1640 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1640 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1640 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (((NU16)((NU16)(((NU16) 48)) + (NU16)(val_1))) < ((NI) 0) || ((NU16)((NU16)(((NU16) 48)) + (NU16)(val_1))) > ((NI) 255)){ raiseRangeErrorI((NU16)((NU16)(((NU16) 48)) + (NU16)(val_1)), ((NI) 0), ((NI) 255)); } result = addChar(result, ((NIM_CHAR) (((NI) ((NU16)((NU16)(((NU16) 48)) + (NU16)(val_1))))))); }
|
|
goto LA64_;
|
|
LA66_: ;
|
|
{
|
|
#line 1642 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1642 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1642 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1642 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
if (((NU16)((NU16)((NU16)((NU16)(((NU16) 97)) + (NU16)(val_1))) - (NU16)(((NU16) 10)))) < ((NI) 0) || ((NU16)((NU16)((NU16)((NU16)(((NU16) 97)) + (NU16)(val_1))) - (NU16)(((NU16) 10)))) > ((NI) 255)){ raiseRangeErrorI((NU16)((NU16)((NU16)((NU16)(((NU16) 97)) + (NU16)(val_1))) - (NU16)(((NU16) 10))), ((NI) 0), ((NI) 255)); } result = addChar(result, ((NIM_CHAR) (((NI) ((NU16)((NU16)((NU16)((NU16)(((NU16) 97)) + (NU16)(val_1))) - (NU16)(((NU16) 10)))))))); }
|
|
LA64_: ;
|
|
|
|
#line 1643 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
afterLeadingZeros = NIM_TRUE; }
|
|
LA62_: ;
|
|
|
|
#line 1644 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
|
|
#line 1644 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
mask = (NU16)((NU16)(mask) >> (NU64)(((NI) 4)));
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(res_4, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_71)) { raiseOverflow(); }; res_4 = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_71); } LA57: ;
|
|
}
|
|
}
|
|
|
|
#line 1645 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/net.nim"
|
|
printedLastGroup = NIM_TRUE; }
|
|
LA38_: ;
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(res_3, ((NI) 1), &TM__XqsrSBxhOTPgLQ9cX4MmV4A_72)) { raiseOverflow(); }; res_3 = (NI)(TM__XqsrSBxhOTPgLQ9cX4MmV4A_72); } LA37: ;
|
|
}
|
|
}
|
|
}
|
|
LA30_: ;
|
|
}
|
|
break;
|
|
}
|
|
return result;}
|