1
0
mirror of https://github.com/waku-org/nwaku.git synced 2025-01-27 15:16:05 +00:00

2999 lines
206 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 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -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/common -o nimcache/release/wakubridge/stdlib_strutils.nim.c.o nimcache/release/wakubridge/stdlib_strutils.nim.c */
#define NIM_INTBITS 64
#include "nimbase.h"
#include <string.h>
#include <sys/types.h>
#include <pthread.h>
#include <stdio.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 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 tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
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;
};
typedef NU8 tySet_tyChar__nmiMWKVIe46vacnhAFrQvw[32];
typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1];
typedef NU8 tyEnum_FloatFormatMode__pNvEoaqwoxKyoASD11vSgQ;
typedef NIM_CHAR tyArray__9bPFPkkEEeeNM9bKgiV8Q49cg[6];
typedef NIM_CHAR tyArray__Kn8ZOVsorvcNLB4isUeMzQ[2501];
typedef NIM_CHAR tyArray__vB7L5YKNrMfbzoUubCEcYg[3];
typedef NU8 tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA;
typedef NU8 tyEnum_FleetV1__HwBy9aJdPPTeRQyUq9bzgJmw;
typedef NI tyArray__9cc9aPiDa8VaWjVcFLabEDZQ[256];
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
NI line;
NCSTRING filename;
};
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ { TGenericSeq Sup; NimStringDesc* data[SEQ_DECL_SIZE];};struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};N_NIMCALL(NimStringDesc*, mnewString)(NI len);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
N_LIB_PRIVATE N_NIMCALL(NI, npuParseFloat)(NimStringDesc* s, NF* number, NI start);
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
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*, rawNewString)(NI space);
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);
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
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);
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__2yh9cer0ymNRHlOOg8P7IuA)(NimStringDesc* s, NI first, NI last);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, substrEq__j9cV2etErVMSmPQq9c7wu9a1A)(NimStringDesc* s, NI pos, NimStringDesc* substr);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
N_LIB_PRIVATE N_NIMCALL(void, nsuAddf)(NimStringDesc** s, NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0);
N_LIB_PRIVATE N_NOINLINE(void, invalidFormatString__8vOMwvNB8blLQSoRXfInAg)(void);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_LIB_PRIVATE N_NIMCALL(NI, findNormalized__7LxW6wQxHkQGOeaPw6nEjQ)(NimStringDesc* x, NimStringDesc** inArray, NI inArrayLen_0);
N_LIB_PRIVATE N_NIMCALL(NI, nsuCmpIgnoreStyle)(NimStringDesc* a, NimStringDesc* b);
N_LIB_PRIVATE N_NIMCALL(NIM_CHAR, nsuToLowerAsciiChar)(NIM_CHAR c);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
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(NimStringDesc*, copyString)(NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuformatBiggestFloat)(NF f, tyEnum_FloatFormatMode__pNvEoaqwoxKyoASD11vSgQ format, NI precision, NIM_CHAR decimalSep);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newLen);
N_LIB_PRIVATE N_NIMCALL(NI, npuParseInt)(NimStringDesc* s_0, NI* number, NI start);
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuEndsWith)(NimStringDesc* s_0, NimStringDesc* suffix);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, reprEnum)(NI e, TNimType* typ);
N_LIB_PRIVATE N_NIMCALL(NI, npuParseUInt)(NimStringDesc* s_0, NU* number, NI start);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuNormalize)(NimStringDesc* s_0);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size);
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size);
N_LIB_PRIVATE N_NIMCALL(NI, hashString)(NimStringDesc* s_0);
N_LIB_PRIVATE N_NIMCALL(void, nsuRemovePrefixCharSet)(NimStringDesc** s_0, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars);
N_LIB_PRIVATE N_NIMCALL(void, nsuDelete)(NimStringDesc** s_0, NI first_0, NI last);
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindChar)(NimStringDesc* s_0, NIM_CHAR sub, NI start, NI last);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__iGg0RIKceRvsmvq8FUHOEw)(NimStringDesc* s_0, NI first_0);
N_LIB_PRIVATE N_NIMCALL(void, nsuInitSkipTable)(NI* a, NimStringDesc* sub);
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindStrA)(tyArray__9cc9aPiDa8VaWjVcFLabEDZQ a, NimStringDesc* s_0, NimStringDesc* sub, NI start, NI last);
N_LIB_PRIVATE N_NIMCALL(NI, npuParseBiggestUInt)(NimStringDesc* s_0, NU64* number, NI start);
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindStr)(NimStringDesc* s_0, NimStringDesc* sub, NI start, NI last);
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindCharSet)(NimStringDesc* s, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars, NI start, NI last);
N_LIB_PRIVATE N_NIMCALL(NI, npuParseBiggestInt)(NimStringDesc* s_0, NI64* number, NI start);
extern TNimType NTI__Ie1m0dv1ZHg72IgPRr1cDw_;
extern TNimType NTI__yoNlBGx0D2tRizIdhQuENw_;
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_5, "invalid float: ", 15);
extern TNimType NTI__sM4lkSb7zS6F7OVMvW9cffQ_;
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_10, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/strutils.nim(756, 11) `sep.len > 0` ", 119);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_18, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/strutils.nim(398, 9) `not (\'\\x00\' in Whitesp"
"ace)` ", 133);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_27, "invalid format string", 21);
N_LIB_PRIVATE NIM_CONST tyArray__vB7L5YKNrMfbzoUubCEcYg floatFormatToChar__WVISPus3ZqCVSuP9bzn9cVxw = {103,
102,
101}
;
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_69, "invalid integer: ", 17);
extern TNimType NTI__9bciZEQ8iC1G2PermjsuXmA_;
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_86, "invalid enum value: ", 20);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_87, "invalid unsigned integer: ", 26);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_93, "y", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_94, "yes", 3);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_95, "true", 4);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_96, "1", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_97, "on", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_98, "n", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_99, "no", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_100, "false", 5);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_101, "0", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_102, "off", 3);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_103, "cannot interpret as a bool: ", 28);
extern TNimType NTI__HwBy9aJdPPTeRQyUq9bzgJmw_;
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_137, "0123456789ABCDEF", 16);
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
#line 1275 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuRepeatChar)(NIM_CHAR c, NI count) { NimStringDesc* result; result = (NimStringDesc*)0;
#line 1282 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1282 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1282 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = mnewString(count); { NI i; NI colontmp_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_2; NI res; i = (NI)0; colontmp_ = (NI)0;
#line 1283 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1283 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(((NI) (count)), ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_2)) { raiseOverflow(); }; colontmp_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_2);
#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__JGc9b9bh2D3nTdUR7TGyq8aA_3;
#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 1283 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = res; if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(i,(result ? result->Sup.len : 0)-1); }
#line 1283 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result->data[i] = c;
#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__JGc9b9bh2D3nTdUR7TGyq8aA_3)) { raiseOverflow(); }; res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_3); } LA3: ;
}
}
return result;}
#line 1516 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuStartsWith)(NimStringDesc* s, NimStringDesc* prefix) { NIM_BOOL result; NI i;{ result = (NIM_BOOL)0;
#line 1530 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = ((NI) 0); {
#line 1531 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_4;
#line 1532 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 1532 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1532 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!((prefix ? prefix->Sup.len : 0) <= i)) goto LA5_;
#line 1532 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1532 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = NIM_TRUE; goto BeforeRet_;
}
LA5_: ;
#line 1533 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NIM_BOOL T9_;
#line 1533 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T9_ = (NIM_BOOL)0;
#line 1533 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1533 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T9_ = ((s ? s->Sup.len : 0) <= i); if (T9_) goto LA10_;
#line 1533 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1533 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2(i,(s ? s->Sup.len : 0)-1); } if ((NU)(i) >= (NU)(prefix ? prefix->Sup.len : 0)){ raiseIndexError2(i,(prefix ? prefix->Sup.len : 0)-1); } T9_ = !(((NU8)(s->data[i]) == (NU8)(prefix->data[i]))); LA10_: ;
if (!T9_) goto LA11_;
#line 1533 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1533 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = NIM_FALSE; goto BeforeRet_;
}
LA11_: ;
#line 1534 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_4)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_4); }
}
}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 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 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 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 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 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 1116 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NF, nsuParseFloat)(NimStringDesc* s) { NF result; NI L; result = (NF)0;
#line 1125 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1125 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
L = npuParseFloat(s, (&result), ((NI) 0));
#line 1126 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NIM_BOOL T3_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T7_; NimStringDesc* T8_;
#line 1126 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (NIM_BOOL)0;
#line 1126 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1126 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1126 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = !((L == (s ? s->Sup.len : 0))); if (T3_) goto LA4_;
#line 1126 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (L == ((NI) 0)); LA4_: ;
if (!T3_) goto LA5_;
T7_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T7_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T7_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T7_).Sup.Sup.name = "ValueError";
#line 1127 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T8_ = (NimStringDesc*)0; T8_ = rawNewString((s ? s->Sup.len : 0) + 15);appendString(T8_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_5));appendString(T8_, s); asgnRef((void**) (&(*T7_).Sup.Sup.message), T8_); asgnRef((void**) (&(*T7_).Sup.Sup.parent), NIM_NIL);
#line 1127 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
raiseExceptionEx((Exception*)T7_, "ValueError", "parseFloat", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/strutils.nim", 1127); }
LA5_: ;
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 707 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, nsuSplitChar)(NimStringDesc* s, NIM_CHAR sep, NI maxsplit) { tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result; result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
#line 410 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = NIM_NIL; { NimStringDesc* xX60gensym14495039_; NI lastX60gensym14330133_; NI splitsX60gensym14330134_; xX60gensym14495039_ = (NimStringDesc*)0;
#line 382 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
lastX60gensym14330133_ = ((NI) 0);
#line 383 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
splitsX60gensym14330134_ = maxsplit; {
#line 443 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NI firstX60gensym14330135_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_7; NI T12_; NimStringDesc* T13_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_8; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_9;
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(lastX60gensym14330133_ <= (s ? s->Sup.len : 0))) goto LA3;
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
firstX60gensym14330135_ = lastX60gensym14330133_; {
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_BOOL T6_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_6;
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T6_ = (NIM_BOOL)0;
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T6_ = (lastX60gensym14330133_ < (s ? s->Sup.len : 0)); if (!(T6_)) goto LA7_;
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(lastX60gensym14330133_) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2(lastX60gensym14330133_,(s ? s->Sup.len : 0)-1); } T6_ = !(((NU8)(s->data[lastX60gensym14330133_]) == (NU8)(sep))); LA7_: ;
if (!T6_) goto LA5;
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(lastX60gensym14330133_, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_6)) { raiseOverflow(); }; lastX60gensym14330133_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_6); } LA5: ;
}
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(splitsX60gensym14330134_ == ((NI) 0))) goto LA10_;
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
lastX60gensym14330133_ = (s ? s->Sup.len : 0); }
LA10_: ;
#line 720 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 390 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(lastX60gensym14330133_, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_7)) { raiseOverflow(); };
#line 720 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
xX60gensym14495039_ = substr__2yh9cer0ymNRHlOOg8P7IuA(s, firstX60gensym14330135_, (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_7));
#line 411 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)(result), (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_)); T12_ = result->Sup.len++; T13_ = (NimStringDesc*)0; T13_ = result->data[T12_]; result->data[T12_] = copyStringRC1(xX60gensym14495039_); if (T13_) nimGCunrefNoCycle(T13_);
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(splitsX60gensym14330134_ == ((NI) 0))) goto LA16_;
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
goto LA2;
}
LA16_: ;
#line 392 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(splitsX60gensym14330134_, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_8)) { raiseOverflow(); }; splitsX60gensym14330134_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_8);
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(lastX60gensym14330133_, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_9)) { raiseOverflow(); }; lastX60gensym14330133_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_9); } LA3: ;
} LA2: ;
}
return result;}
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, substrEq__j9cV2etErVMSmPQq9c7wu9a1A)(NimStringDesc* s, NI pos, NimStringDesc* substr) { NIM_BOOL result; NI i; NI length;{ result = (NIM_BOOL)0;
#line 365 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = ((NI) 0);
#line 366 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 366 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
length = (substr ? substr->Sup.len : 0); {
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_BOOL T3_; NIM_BOOL T4_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_11; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_12; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_13;
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (NIM_BOOL)0;
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T4_ = (NIM_BOOL)0;
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T4_ = (i < length); if (!(T4_)) goto LA5_;
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(pos, i, &TM__JGc9b9bh2D3nTdUR7TGyq8aA_11)) { raiseOverflow(); };
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T4_ = ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_11) < (s ? s->Sup.len : 0)); LA5_: ;
T3_ = T4_; if (!(T3_)) goto LA6_;
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(pos, i, &TM__JGc9b9bh2D3nTdUR7TGyq8aA_12)) { raiseOverflow(); }; if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_12)) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_12),(s ? s->Sup.len : 0)-1); } if ((NU)(i) >= (NU)(substr ? substr->Sup.len : 0)){ raiseIndexError2(i,(substr ? substr->Sup.len : 0)-1); } T3_ = ((NU8)(s->data[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_12)]) == (NU8)(substr->data[i])); LA6_: ;
if (!T3_) goto LA2;
#line 368 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_13)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_13); } LA2: ;
}
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = (i == length); goto BeforeRet_;
}BeforeRet_: ;
return result;}
#line 737 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, nsuSplitString)(NimStringDesc* s, NimStringDesc* sep, NI maxsplit) { tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result; result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
#line 756 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 756 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 756 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 756 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!!((((NI) 0) < (sep ? sep->Sup.len : 0)))) goto LA3_;
#line 756 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 756 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_10));
}
LA3_: ;
#line 410 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = NIM_NIL; { NimStringDesc* xX60gensym14520201_; NI lastX60gensym14365043_; NI splitsX60gensym14365044_; xX60gensym14520201_ = (NimStringDesc*)0;
#line 382 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
lastX60gensym14365043_ = ((NI) 0);
#line 383 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
splitsX60gensym14365044_ = maxsplit; {
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NI firstX60gensym14365045_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_15; NI T17_; NimStringDesc* T18_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_16; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_17;
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(lastX60gensym14365043_ <= (s ? s->Sup.len : 0))) goto LA7;
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
firstX60gensym14365045_ = lastX60gensym14365043_; {
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_BOOL T10_; NIM_BOOL T12_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_14;
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T10_ = (NIM_BOOL)0;
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T10_ = (lastX60gensym14365043_ < (s ? s->Sup.len : 0)); if (!(T10_)) goto LA11_;
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T12_ = (NIM_BOOL)0; T12_ = substrEq__j9cV2etErVMSmPQq9c7wu9a1A(s, lastX60gensym14365043_, sep); T10_ = !(T12_); LA11_: ;
if (!T10_) goto LA9;
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(lastX60gensym14365043_, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_14)) { raiseOverflow(); }; lastX60gensym14365043_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_14); } LA9: ;
}
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(splitsX60gensym14365044_ == ((NI) 0))) goto LA15_;
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
lastX60gensym14365043_ = (s ? s->Sup.len : 0); }
LA15_: ;
#line 758 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 390 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(lastX60gensym14365043_, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_15)) { raiseOverflow(); };
#line 758 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
xX60gensym14520201_ = substr__2yh9cer0ymNRHlOOg8P7IuA(s, firstX60gensym14365045_, (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_15));
#line 411 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)(result), (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_)); T17_ = result->Sup.len++; T18_ = (NimStringDesc*)0; T18_ = result->data[T17_]; result->data[T17_] = copyStringRC1(xX60gensym14520201_); if (T18_) nimGCunrefNoCycle(T18_);
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(splitsX60gensym14365044_ == ((NI) 0))) goto LA21_;
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
goto LA6;
}
LA21_: ;
#line 392 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(splitsX60gensym14365044_, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_16)) { raiseOverflow(); }; splitsX60gensym14365044_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_16);
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(lastX60gensym14365043_, (sep ? sep->Sup.len : 0), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_17)) { raiseOverflow(); }; lastX60gensym14365043_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_17); } LA7: ;
} LA6: ;
}
return result;}
#line 862 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, nsuSplitWhitespace)(NimStringDesc* s, NI maxsplit) { tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result; result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
#line 410 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = NIM_NIL; { NimStringDesc* xX60gensym14545043_; NI lastX60gensym14455049_; NI splitsX60gensym14455050_; xX60gensym14545043_ = (NimStringDesc*)0;
#line 396 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
lastX60gensym14455049_ = ((NI) 0);
#line 397 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
splitsX60gensym14455050_ = maxsplit;
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ if (!NIM_FALSE) goto LA4_;
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_18));
}
LA4_: ;
{
#line 703 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NI firstX60gensym14455051_;
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(lastX60gensym14455049_ < (s ? s->Sup.len : 0))) goto LA7;
{
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_BOOL T10_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_19;
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T10_ = (NIM_BOOL)0;
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T10_ = (lastX60gensym14455049_ < (s ? s->Sup.len : 0)); if (!(T10_)) goto LA11_;
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(lastX60gensym14455049_) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2(lastX60gensym14455049_,(s ? s->Sup.len : 0)-1); } T10_ = (((NU8)(s->data[lastX60gensym14455049_])) == ((NU8)(32)) || ((NU8)(s->data[lastX60gensym14455049_])) == ((NU8)(9)) || ((NU8)(s->data[lastX60gensym14455049_])) == ((NU8)(11)) || ((NU8)(s->data[lastX60gensym14455049_])) == ((NU8)(13)) || ((NU8)(s->data[lastX60gensym14455049_])) == ((NU8)(10)) || ((NU8)(s->data[lastX60gensym14455049_])) == ((NU8)(12))); LA11_: ;
if (!T10_) goto LA9;
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(lastX60gensym14455049_, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_19)) { raiseOverflow(); }; lastX60gensym14455049_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_19); } LA9: ;
}
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
firstX60gensym14455051_ = lastX60gensym14455049_; {
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_BOOL T14_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_20;
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T14_ = (NIM_BOOL)0;
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T14_ = (lastX60gensym14455049_ < (s ? s->Sup.len : 0)); if (!(T14_)) goto LA15_;
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(lastX60gensym14455049_) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2(lastX60gensym14455049_,(s ? s->Sup.len : 0)-1); } T14_ = !((((NU8)(s->data[lastX60gensym14455049_])) == ((NU8)(32)) || ((NU8)(s->data[lastX60gensym14455049_])) == ((NU8)(9)) || ((NU8)(s->data[lastX60gensym14455049_])) == ((NU8)(11)) || ((NU8)(s->data[lastX60gensym14455049_])) == ((NU8)(13)) || ((NU8)(s->data[lastX60gensym14455049_])) == ((NU8)(10)) || ((NU8)(s->data[lastX60gensym14455049_])) == ((NU8)(12)))); LA15_: ;
if (!T14_) goto LA13;
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(lastX60gensym14455049_, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_20)) { raiseOverflow(); }; lastX60gensym14455049_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_20); } LA13: ;
}
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_21; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_22; NI T24_; NimStringDesc* T25_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_23;
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(lastX60gensym14455049_, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_21)) { raiseOverflow(); }; if (!(firstX60gensym14455051_ <= (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_21))) goto LA18_;
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(splitsX60gensym14455050_ == ((NI) 0))) goto LA22_;
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
lastX60gensym14455049_ = (s ? s->Sup.len : 0); }
LA22_: ;
#line 870 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 405 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(lastX60gensym14455049_, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_22)) { raiseOverflow(); };
#line 870 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
xX60gensym14545043_ = substr__2yh9cer0ymNRHlOOg8P7IuA(s, firstX60gensym14455051_, (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_22));
#line 411 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)(result), (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_)); T24_ = result->Sup.len++; T25_ = (NimStringDesc*)0; T25_ = result->data[T24_]; result->data[T24_] = copyStringRC1(xX60gensym14545043_); if (T25_) nimGCunrefNoCycle(T25_);
#line 406 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 406 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(splitsX60gensym14455050_ == ((NI) 0))) goto LA28_;
#line 406 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
goto LA6;
}
LA28_: ;
#line 407 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(splitsX60gensym14455050_, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_23)) { raiseOverflow(); }; splitsX60gensym14455050_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_23); }
LA18_: ;
} LA7: ;
} LA6: ;
}
return result;}
#line 2619 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NOINLINE(void, invalidFormatString__8vOMwvNB8blLQSoRXfInAg)(void) { tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T1_; NimStringDesc* T2_; T1_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T1_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T1_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T1_).Sup.Sup.name = "ValueError"; T2_ = (NimStringDesc*)0; T2_ = (*T1_).Sup.Sup.message; (*T1_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_27)); if (T2_) nimGCunrefNoCycle(T2_); asgnRef((void**) (&(*T1_).Sup.Sup.parent), NIM_NIL);
#line 2620 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
raiseExceptionEx((Exception*)T1_, "ValueError", "invalidFormatString", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/strutils.nim", 2620);}
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_CHAR, nsuToLowerAsciiChar)(NIM_CHAR c) { NIM_CHAR result; result = (NIM_CHAR)0;
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_47;
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(((NU8)(c)) >= ((NU8)(65)) && ((NU8)(c)) <= ((NU8)(90)))) goto LA3_;
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(((NU8)(c)), ((NI) 32), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_47)) { raiseOverflow(); }; if (((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_47)) < ((NI) 0) || ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_47)) > ((NI) 255)){ raiseRangeErrorI((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_47), ((NI) 0), ((NI) 255)); } result = ((NIM_CHAR) (((NI) ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_47))))); }
goto LA1_;
LA3_: ;
{
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = c; }
LA1_: ;
return result;}
#line 326 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NI, nsuCmpIgnoreStyle)(NimStringDesc* a, NimStringDesc* b) { NI result; NI i; NI j;{ result = (NI)0;
#line 341 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = ((NI) 0);
#line 342 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
j = ((NI) 0); {
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_CHAR aa; NIM_CHAR bb; {
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_BOOL T5_;
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T5_ = (NIM_BOOL)0;
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T5_ = (i < (a ? a->Sup.len : 0)); if (!(T5_)) goto LA6_;
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T5_ = ((NU8)(a->data[i]) == (NU8)(95)); LA6_: ;
if (!T5_) goto LA4;
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i += ((NI) 1); } LA4: ;
}
{
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_BOOL T9_;
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T9_ = (NIM_BOOL)0;
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T9_ = (j < (b ? b->Sup.len : 0)); if (!(T9_)) goto LA10_;
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T9_ = ((NU8)(b->data[j]) == (NU8)(95)); LA10_: ;
if (!T9_) goto LA8;
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
j += ((NI) 1); } LA8: ;
}
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(i < (a ? a->Sup.len : 0))) goto LA13_;
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
aa = nsuToLowerAsciiChar(a->data[i]); }
goto LA11_;
LA13_: ;
{ aa = 0; }
LA11_: ;
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(j < (b ? b->Sup.len : 0))) goto LA18_;
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
bb = nsuToLowerAsciiChar(b->data[j]); }
goto LA16_;
LA18_: ;
{ bb = 0; }
LA16_: ;
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = (NI)(((NU8)(aa)) - ((NU8)(bb)));
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!!((result == ((NI) 0)))) goto LA23_;
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
goto BeforeRet_;
}
LA23_: ;
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!((a ? a->Sup.len : 0) <= i)) goto LA27_;
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!((b ? b->Sup.len : 0) <= j)) goto LA31_;
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 353 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = ((NI) 0); goto BeforeRet_;
}
LA31_: ;
#line 355 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 355 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = ((NI) -1); goto BeforeRet_;
}
goto LA25_;
LA27_: ;
{
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!((b ? b->Sup.len : 0) <= j)) goto LA34_;
#line 357 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 357 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = ((NI) 1); goto BeforeRet_;
}
goto LA25_;
LA34_: ;
LA25_: ;
#line 358 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i += ((NI) 1);
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
j += ((NI) 1); }
}
}BeforeRet_: ;
return result;}
#line 2611 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NI, findNormalized__7LxW6wQxHkQGOeaPw6nEjQ)(NimStringDesc* x, NimStringDesc** inArray, NI inArrayLen_0) { NI result; NI i;{ result = (NI)0;
#line 2612 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = ((NI) 0); {
#line 2613 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_48;
#line 2613 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2613 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(i < (inArrayLen_0-1))) goto LA2;
#line 2614 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI T5_;
#line 2614 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2614 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(inArrayLen_0)){ raiseIndexError2(i,inArrayLen_0-1); }
#line 2614 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T5_ = (NI)0; T5_ = nsuCmpIgnoreStyle(x, inArray[i]); if (!(T5_ == ((NI) 0))) goto LA6_;
#line 2614 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2614 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = i; goto BeforeRet_;
}
LA6_: ;
#line 2615 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 2), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_48)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_48); } LA2: ;
}
#line 2617 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2617 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = ((NI) -1); goto BeforeRet_;
}BeforeRet_: ;
return result;}
#line 2622 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(void, nsuAddf)(NimStringDesc** s, NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0) { NI i; NI num;
#line 2626 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = ((NI) 0);
#line 2627 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
num = ((NI) 0); {
#line 2628 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) {
#line 2628 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2628 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(i < (formatstr ? formatstr->Sup.len : 0))) goto LA2;
#line 2629 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NIM_BOOL T5_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_25; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_26;
#line 2629 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T5_ = (NIM_BOOL)0;
#line 2629 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(formatstr ? formatstr->Sup.len : 0)){ raiseIndexError2(i,(formatstr ? formatstr->Sup.len : 0)-1); } T5_ = ((NU8)(formatstr->data[i]) == (NU8)(36)); if (!(T5_)) goto LA6_;
#line 2629 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2629 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_25)) { raiseOverflow(); };
#line 2629 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T5_ = ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_25) < (formatstr ? formatstr->Sup.len : 0)); LA6_: ;
if (!T5_) goto LA7_;
#line 2630 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2630 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_26)) { raiseOverflow(); }; if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_26)) >= (NU)(formatstr ? formatstr->Sup.len : 0)){ raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_26),(formatstr ? formatstr->Sup.len : 0)-1); } switch (((NU8)(formatstr->data[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_26)]))) {
case 35:
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_28; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_29;
#line 2632 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 2632 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2632 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!((aLen_0-1) < num)) goto LA12_;
#line 2632 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2632 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
invalidFormatString__8vOMwvNB8blLQSoRXfInAg();
}
LA12_: ;
#line 2633 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(num) >= (NU)(aLen_0)){ raiseIndexError2(num,aLen_0-1); } unsureAsgnRef((void**) (&(*s)), resizeString((*s), (a[num] ? a[num]->Sup.len : 0) + 0));appendString((*s), a[num]);
#line 2634 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 2), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_28)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_28);
#line 2635 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(num, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_29)) { raiseOverflow(); }; num = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_29); }
break;
case 36:
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_30;
#line 2637 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
unsureAsgnRef((void**) (&(*s)), addChar((*s), 36));
#line 2638 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 2), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_30)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_30); }
break;
case 49 ... 57:
case 45:
{ NI j; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_31; NIM_BOOL negative; NI idx;
#line 2640 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
j = ((NI) 0);
#line 2641 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_31)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_31);
#line 2642 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2642 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(formatstr ? formatstr->Sup.len : 0)){ raiseIndexError2(i,(formatstr ? formatstr->Sup.len : 0)-1); } negative = ((NU8)(formatstr->data[i]) == (NU8)(45));
#line 2643 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_32; if (!negative) goto LA18_;
#line 2643 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_32)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_32); }
LA18_: ;
{
#line 2644 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_BOOL T22_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_33; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_34; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_35; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_36;
#line 2644 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T22_ = (NIM_BOOL)0;
#line 2644 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2644 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T22_ = (i < (formatstr ? formatstr->Sup.len : 0)); if (!(T22_)) goto LA23_;
#line 2644 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(formatstr ? formatstr->Sup.len : 0)){ raiseIndexError2(i,(formatstr ? formatstr->Sup.len : 0)-1); } T22_ = (((NU8)(formatstr->data[i])) >= ((NU8)(48)) && ((NU8)(formatstr->data[i])) <= ((NU8)(57))); LA23_: ;
if (!T22_) goto LA21;
#line 2645 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2645 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2645 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2645 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimMulInt(j, ((NI) 10), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_33)) { raiseOverflow(); };
#line 2645 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(formatstr ? formatstr->Sup.len : 0)){ raiseIndexError2(i,(formatstr ? formatstr->Sup.len : 0)-1); } if (nimAddInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_33), ((NU8)(formatstr->data[i])), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_34)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_34), ((NI) 48), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_35)) { raiseOverflow(); }; j = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_35);
#line 2646 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_36)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_36); } LA21: ;
}
#line 2647 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2647 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_37;
#line 2647 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!!(negative)) goto LA26_;
#line 2647 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(j, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_37)) { raiseOverflow(); }; idx = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_37); }
goto LA24_;
LA26_: ;
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_38;
#line 2647 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2647 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(aLen_0, j, &TM__JGc9b9bh2D3nTdUR7TGyq8aA_38)) { raiseOverflow(); }; idx = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_38); }
LA24_: ;
#line 2648 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NIM_BOOL T31_;
#line 2648 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T31_ = (NIM_BOOL)0;
#line 2648 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T31_ = (idx < ((NI) 0)); if (T31_) goto LA32_;
#line 2648 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2648 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T31_ = ((aLen_0-1) < idx); LA32_: ;
if (!T31_) goto LA33_;
#line 2648 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2648 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
invalidFormatString__8vOMwvNB8blLQSoRXfInAg();
}
LA33_: ;
#line 2649 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(idx) >= (NU)(aLen_0)){ raiseIndexError2(idx,aLen_0-1); } unsureAsgnRef((void**) (&(*s)), resizeString((*s), (a[idx] ? a[idx]->Sup.len : 0) + 0));appendString((*s), a[idx]); }
break;
case 123:
{ NI j_2; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_39; NI k; NIM_BOOL negative_2; NI isNumber; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_52;
#line 2651 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2651 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 2), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_39)) { raiseOverflow(); }; j_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_39);
#line 2652 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
k = ((NI) 0);
#line 2653 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2653 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(j_2) >= (NU)(formatstr ? formatstr->Sup.len : 0)){ raiseIndexError2(j_2,(formatstr ? formatstr->Sup.len : 0)-1); } negative_2 = ((NU8)(formatstr->data[j_2]) == (NU8)(45));
#line 2654 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_40; if (!negative_2) goto LA38_;
#line 2654 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(j_2, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_40)) { raiseOverflow(); }; j_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_40); }
LA38_: ;
#line 2655 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
isNumber = ((NI) 0); {
#line 2656 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_BOOL T42_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_44;
#line 2656 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T42_ = (NIM_BOOL)0;
#line 2656 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2656 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T42_ = (j_2 < (formatstr ? formatstr->Sup.len : 0)); if (!(T42_)) goto LA43_;
#line 2656 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2656 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(j_2) >= (NU)(formatstr ? formatstr->Sup.len : 0)){ raiseIndexError2(j_2,(formatstr ? formatstr->Sup.len : 0)-1); } T42_ = !((((NU8)(formatstr->data[j_2])) == ((NU8)(0)) || ((NU8)(formatstr->data[j_2])) == ((NU8)(125)))); LA43_: ;
if (!T42_) goto LA41;
#line 2657 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_41; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_42; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_43;
#line 2657 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(j_2) >= (NU)(formatstr ? formatstr->Sup.len : 0)){ raiseIndexError2(j_2,(formatstr ? formatstr->Sup.len : 0)-1); } if (!(((NU8)(formatstr->data[j_2])) >= ((NU8)(48)) && ((NU8)(formatstr->data[j_2])) <= ((NU8)(57)))) goto LA46_;
#line 2658 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2658 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2658 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2658 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimMulInt(k, ((NI) 10), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_41)) { raiseOverflow(); };
#line 2658 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(j_2) >= (NU)(formatstr ? formatstr->Sup.len : 0)){ raiseIndexError2(j_2,(formatstr ? formatstr->Sup.len : 0)-1); } if (nimAddInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_41), ((NU8)(formatstr->data[j_2])), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_42)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_42), ((NI) 48), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_43)) { raiseOverflow(); }; k = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_43);
#line 2659 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 2659 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(isNumber == ((NI) 0))) goto LA50_;
#line 2659 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
isNumber = ((NI) 1); }
LA50_: ;
}
goto LA44_;
LA46_: ;
{
#line 2661 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
isNumber = ((NI) -1); }
LA44_: ;
#line 2662 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(j_2, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_44)) { raiseOverflow(); }; j_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_44); } LA41: ;
}
#line 2663 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI idx_2;
#line 2663 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(isNumber == ((NI) 1))) goto LA55_;
#line 2664 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2664 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_45;
#line 2664 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!!(negative_2)) goto LA59_;
#line 2664 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(k, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_45)) { raiseOverflow(); }; idx_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_45); }
goto LA57_;
LA59_: ;
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_46;
#line 2664 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2664 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(aLen_0, k, &TM__JGc9b9bh2D3nTdUR7TGyq8aA_46)) { raiseOverflow(); }; idx_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_46); }
LA57_: ;
#line 2665 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NIM_BOOL T64_;
#line 2665 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T64_ = (NIM_BOOL)0;
#line 2665 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T64_ = (idx_2 < ((NI) 0)); if (T64_) goto LA65_;
#line 2665 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2665 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T64_ = ((aLen_0-1) < idx_2); LA65_: ;
if (!T64_) goto LA66_;
#line 2665 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2665 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
invalidFormatString__8vOMwvNB8blLQSoRXfInAg();
}
LA66_: ;
#line 2666 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(idx_2) >= (NU)(aLen_0)){ raiseIndexError2(idx_2,aLen_0-1); } unsureAsgnRef((void**) (&(*s)), resizeString((*s), (a[idx_2] ? a[idx_2]->Sup.len : 0) + 0));appendString((*s), a[idx_2]); }
goto LA53_;
LA55_: ;
{ NI x; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_49; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_50; NimStringDesc* T69_;
#line 2668 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2668 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2668 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 2), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_49)) { raiseOverflow(); };
#line 2668 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(j_2, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_50)) { raiseOverflow(); };
#line 2668 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T69_ = (NimStringDesc*)0; T69_ = substr__2yh9cer0ymNRHlOOg8P7IuA(formatstr, (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_49), (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_50));
#line 2668 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
x = findNormalized__7LxW6wQxHkQGOeaPw6nEjQ(T69_, a, aLen_0);
#line 2669 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NIM_BOOL T72_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_51;
#line 2669 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T72_ = (NIM_BOOL)0;
#line 2669 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T72_ = (((NI) 0) <= x); if (!(T72_)) goto LA73_;
#line 2669 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2669 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T72_ = (x < (aLen_0-1)); LA73_: ;
if (!T72_) goto LA74_;
#line 2669 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2669 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(x, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_51)) { raiseOverflow(); }; if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_51)) >= (NU)(aLen_0)){ raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_51),aLen_0-1); } unsureAsgnRef((void**) (&(*s)), resizeString((*s), (a[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_51)] ? a[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_51)]->Sup.len : 0) + 0));appendString((*s), a[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_51)]); }
goto LA70_;
LA74_: ;
{
#line 2670 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2670 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
invalidFormatString__8vOMwvNB8blLQSoRXfInAg();
}
LA70_: ;
}
LA53_: ;
#line 2671 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2671 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(j_2, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_52)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_52); }
break;
case 97 ... 122:
case 65 ... 90:
case 128 ... 255:
case 95:
{ NI j_3; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_53; NI x_2; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_55; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_56; NimStringDesc* T82_;
#line 2673 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2673 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_53)) { raiseOverflow(); }; j_3 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_53); {
#line 2674 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_BOOL T80_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_54;
#line 2674 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T80_ = (NIM_BOOL)0;
#line 2674 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2674 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T80_ = (j_3 < (formatstr ? formatstr->Sup.len : 0)); if (!(T80_)) goto LA81_;
#line 2674 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(j_3) >= (NU)(formatstr ? formatstr->Sup.len : 0)){ raiseIndexError2(j_3,(formatstr ? formatstr->Sup.len : 0)-1); } T80_ = (((NU8)(formatstr->data[j_3])) >= ((NU8)(97)) && ((NU8)(formatstr->data[j_3])) <= ((NU8)(122)) || ((NU8)(formatstr->data[j_3])) >= ((NU8)(65)) && ((NU8)(formatstr->data[j_3])) <= ((NU8)(90)) || ((NU8)(formatstr->data[j_3])) >= ((NU8)(48)) && ((NU8)(formatstr->data[j_3])) <= ((NU8)(57)) || ((NU8)(formatstr->data[j_3])) >= ((NU8)(128)) && ((NU8)(formatstr->data[j_3])) <= ((NU8)(255)) || ((NU8)(formatstr->data[j_3])) == ((NU8)(95))); LA81_: ;
if (!T80_) goto LA79;
#line 2674 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(j_3, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_54)) { raiseOverflow(); }; j_3 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_54); } LA79: ;
}
#line 2675 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2675 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2675 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_55)) { raiseOverflow(); };
#line 2675 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(j_3, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_56)) { raiseOverflow(); };
#line 2675 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T82_ = (NimStringDesc*)0; T82_ = substr__2yh9cer0ymNRHlOOg8P7IuA(formatstr, (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_55), (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_56));
#line 2675 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
x_2 = findNormalized__7LxW6wQxHkQGOeaPw6nEjQ(T82_, a, aLen_0);
#line 2676 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NIM_BOOL T85_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_57;
#line 2676 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T85_ = (NIM_BOOL)0;
#line 2676 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T85_ = (((NI) 0) <= x_2); if (!(T85_)) goto LA86_;
#line 2676 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2676 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T85_ = (x_2 < (aLen_0-1)); LA86_: ;
if (!T85_) goto LA87_;
#line 2676 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2676 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(x_2, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_57)) { raiseOverflow(); }; if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_57)) >= (NU)(aLen_0)){ raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_57),aLen_0-1); } unsureAsgnRef((void**) (&(*s)), resizeString((*s), (a[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_57)] ? a[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_57)]->Sup.len : 0) + 0));appendString((*s), a[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_57)]); }
goto LA83_;
LA87_: ;
{
#line 2677 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2677 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
invalidFormatString__8vOMwvNB8blLQSoRXfInAg();
}
LA83_: ;
#line 2678 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = j_3; }
break;
default:
{
#line 2680 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2680 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
invalidFormatString__8vOMwvNB8blLQSoRXfInAg();
}
break;
}
}
goto LA3_;
LA7_: ;
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_58;
#line 2682 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(formatstr ? formatstr->Sup.len : 0)){ raiseIndexError2(i,(formatstr ? formatstr->Sup.len : 0)-1); } unsureAsgnRef((void**) (&(*s)), addChar((*s), formatstr->data[i]));
#line 2683 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_58)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_58); }
LA3_: ;
} LA2: ;
}
}
#line 2685 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0) { NimStringDesc* result; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_24; result = (NimStringDesc*)0;
#line 2730 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2730 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2730 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2730 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2730 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2730 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt((formatstr ? formatstr->Sup.len : 0), (NI)((NU64)(aLen_0) << (NU64)(((NI) 4))), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_24)) { raiseOverflow(); }; if (((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_24)) < ((NI) 0) || ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_24)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_24), ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 2730 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = rawNewString(((NI) ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_24))));
#line 2731 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2731 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
nsuAddf((&result), formatstr, a, aLen_0);
return result;}
#line 222 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c) {
#line 223 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
(*dest).data[(*dest).Sup.len] = c;
#line 224 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 224 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
(*dest).data[(NI)((*dest).Sup.len + ((NI) 1))] = 0;
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
(*dest).Sup.len += ((NI) 1);}
#line 1063 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuIntToStr)(NI x_0, NI minchars) { NimStringDesc* result; result = (NimStringDesc*)0;
#line 1072 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1072 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1072 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (x_0 == (IL64(-9223372036854775807) - IL64(1))){ raiseOverflow(); } result = nimIntToStr((x_0 > 0? (x_0) : -(x_0))); { NI i; NI colontmp_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_59; NI res; i = (NI)0; colontmp_ = (NI)0;
#line 1073 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1073 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1073 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(((NI) (minchars)), (result ? result->Sup.len : 0), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_59)) { raiseOverflow(); }; colontmp_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_59);
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
res = ((NI) 1); {
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NimStringDesc* T4_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_60;
#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 1073 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = res;
#line 1074 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1074 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T4_ = (NimStringDesc*)0; T4_ = rawNewString((result ? result->Sup.len : 0) + 1);appendChar(T4_, 48);appendString(T4_, result); result = T4_;
#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__JGc9b9bh2D3nTdUR7TGyq8aA_60)) { raiseOverflow(); }; res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_60); } LA3: ;
}
}
#line 1075 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NimStringDesc* T9_;
#line 1075 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(x_0 < ((NI) 0))) goto LA7_;
#line 1076 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1076 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T9_ = (NimStringDesc*)0; T9_ = rawNewString((result ? result->Sup.len : 0) + 1);appendChar(T9_, 45);appendString(T9_, result); result = T9_; }
LA7_: ;
return result;}
#line 1871 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindCharSet)(NimStringDesc* s, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars, NI start, NI last) { NI result; NI last_2;{ result = (NI)0;
#line 1883 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1883 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 1883 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(last == ((NI) 0))) goto LA3_;
#line 1883 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
last_2 = ((s ? s->Sup.len : 0)-1); }
goto LA1_;
LA3_: ;
{ last_2 = last; }
LA1_: ;
{ NI i; NI colontmp_; NI res; i = (NI)0; colontmp_ = (NI)0;
#line 1884 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
colontmp_ = ((NI) (start));
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
res = colontmp_; {
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_61;
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(res <= last_2)) goto LA8;
#line 1884 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = res;
#line 1885 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 1885 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2(i,(s ? s->Sup.len : 0)-1); } if (!((chars[(NU)(((NU8)(s->data[i])))>>3] &(1U<<((NU)(((NU8)(s->data[i])))&7U)))!=0)) goto LA11_;
#line 1885 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1885 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = i; goto BeforeRet_;
}
LA11_: ;
#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__JGc9b9bh2D3nTdUR7TGyq8aA_61)) { raiseOverflow(); }; res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_61); } LA8: ;
}
}
#line 1886 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1886 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = ((NI) -1); goto BeforeRet_;
}BeforeRet_: ;
return result;}
#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 2733 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a) { NimStringDesc* result; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_62; tyArray__nHXaesL0DJZHyVS07ARPRA T1_; result = (NimStringDesc*)0;
#line 2737 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2737 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2737 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2737 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2737 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt((formatstr ? formatstr->Sup.len : 0), (a ? a->Sup.len : 0), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_62)) { raiseOverflow(); }; if (((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_62)) < ((NI) 0) || ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_62)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_62), ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 2737 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = rawNewString(((NI) ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_62))));
#line 2738 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
nimZeroMem((void*)T1_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA)); T1_[0] = copyString(a);
#line 2738 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
nsuAddf((&result), formatstr, T1_, 1);
return result;}
#line 2290 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuformatBiggestFloat)(NF f, tyEnum_FloatFormatMode__pNvEoaqwoxKyoASD11vSgQ format, NI precision, NIM_CHAR decimalSep) { NimStringDesc* result; tyArray__9bPFPkkEEeeNM9bKgiV8Q49cg frmtstr; tyArray__Kn8ZOVsorvcNLB4isUeMzQ buf_1; int L; result = (NimStringDesc*)0; L = (int)0;
#line 2336 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
frmtstr[(((NI) 0))- 0] = 37;
#line 2337 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 2337 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(((NI) 0) <= ((NI) (precision)))) goto LA3_;
#line 2338 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
frmtstr[(((NI) 1))- 0] = 35;
#line 2339 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
frmtstr[(((NI) 2))- 0] = 46;
#line 2340 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
frmtstr[(((NI) 3))- 0] = 42;
#line 2341 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
frmtstr[(((NI) 4))- 0] = floatFormatToChar__WVISPus3ZqCVSuP9bzn9cVxw[(format)- 0];
#line 2342 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
frmtstr[(((NI) 5))- 0] = 0;
#line 2344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
L = sprintf(((NCSTRING) (buf_1)), ((NCSTRING) (frmtstr)), precision, f); }
goto LA1_;
LA3_: ;
{
#line 2348 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
frmtstr[(((NI) 1))- 0] = floatFormatToChar__WVISPus3ZqCVSuP9bzn9cVxw[(format)- 0];
#line 2349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
frmtstr[(((NI) 2))- 0] = 0;
#line 2351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
L = sprintf(((NCSTRING) (buf_1)), ((NCSTRING) (frmtstr)), f); }
LA1_: ;
#line 2354 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2354 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((L) < ((NI) 0) || (L) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(L, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 2354 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = mnewString(((NI) (L))); { NI32 i; NI32 res; i = (NI32)0;
#line 115 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
res = ((NI32) 0); {
#line 116 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_63;
#line 116 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(res < L)) goto LA8;
#line 2355 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = res;
#line 2358 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 2358 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) > (NU)(2500)){ raiseIndexError2(i, 2500); } if (!(((NU8)(buf_1[(i)- 0])) == ((NU8)(46)) || ((NU8)(buf_1[(i)- 0])) == ((NU8)(44)))) goto LA11_;
if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(i,(result ? result->Sup.len : 0)-1); }
#line 2358 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result->data[i] = decimalSep; }
goto LA9_;
LA11_: ;
{ if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(i,(result ? result->Sup.len : 0)-1); }
#line 2359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) > (NU)(2500)){ raiseIndexError2(i, 2500); } result->data[i] = buf_1[(i)- 0]; }
LA9_: ;
#line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(res, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_63)) { raiseOverflow(); }; if (TM__JGc9b9bh2D3nTdUR7TGyq8aA_63 < (-2147483647 -1) || TM__JGc9b9bh2D3nTdUR7TGyq8aA_63 > 2147483647){ raiseOverflow(); } res = (NI32)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_63); } LA8: ;
}
}
return result;}
#line 2370 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuformatFloat)(NF f, tyEnum_FloatFormatMode__pNvEoaqwoxKyoASD11vSgQ format, NI precision, NIM_CHAR decimalSep) { NimStringDesc* result; result = (NimStringDesc*)0;
#line 2389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = nsuformatBiggestFloat(f, format, precision, decimalSep); return result;}
#line 1475 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(void, nsuDelete)(NimStringDesc** s_0, NI first_0, NI last) { NI i; NI j; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_64; NI newLen; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_65; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_66;
#line 1493 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = first_0;
#line 1494 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1494 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1494 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1494 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(last, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_64)) { raiseOverflow(); }; j = ((((*s_0) ? (*s_0)->Sup.len : 0) <= (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_64)) ? ((*s_0) ? (*s_0)->Sup.len : 0) : (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_64));
#line 1495 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1495 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1495 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1495 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(((*s_0) ? (*s_0)->Sup.len : 0), j, &TM__JGc9b9bh2D3nTdUR7TGyq8aA_65)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_65), i, &TM__JGc9b9bh2D3nTdUR7TGyq8aA_66)) { raiseOverflow(); }; newLen = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_66); {
#line 1496 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_67; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_68;
#line 1496 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(i < newLen)) goto LA2;
if ((NU)(i) >= (NU)((*s_0) ? (*s_0)->Sup.len : 0)){ raiseIndexError2(i,((*s_0) ? (*s_0)->Sup.len : 0)-1); }
#line 1497 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(j) >= (NU)((*s_0) ? (*s_0)->Sup.len : 0)){ raiseIndexError2(j,((*s_0) ? (*s_0)->Sup.len : 0)-1); } (*s_0)->data[i] = (*s_0)->data[j];
#line 1498 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_67)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_67);
#line 1499 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(j, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_68)) { raiseOverflow(); }; j = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_68); } LA2: ;
}
#line 1500 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((newLen) < ((NI) 0) || (newLen) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(newLen, ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*s_0)), setLengthStr((*s_0), ((NI) (newLen))));}
#line 1078 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NI, nsuParseInt)(NimStringDesc* s_0) { NI result; NI L; result = (NI)0;
#line 1085 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1085 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
L = npuParseInt(s_0, (&result), ((NI) 0));
#line 1086 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NIM_BOOL T3_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T7_; NimStringDesc* T8_;
#line 1086 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (NIM_BOOL)0;
#line 1086 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1086 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1086 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = !((L == (s_0 ? s_0->Sup.len : 0))); if (T3_) goto LA4_;
#line 1086 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (L == ((NI) 0)); LA4_: ;
if (!T3_) goto LA5_;
T7_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T7_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T7_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T7_).Sup.Sup.name = "ValueError";
#line 1087 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T8_ = (NimStringDesc*)0; T8_ = rawNewString((s_0 ? s_0->Sup.len : 0) + 17);appendString(T8_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_69));appendString(T8_, s_0); asgnRef((void**) (&(*T7_).Sup.Sup.message), T8_); asgnRef((void**) (&(*T7_).Sup.Sup.parent), NIM_NIL);
#line 1087 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
raiseExceptionEx((Exception*)T7_, "ValueError", "parseInt", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/strutils.nim", 1087); }
LA5_: ;
return result;}
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s) { NCSTRING result; result = (NCSTRING)0;
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
{ NIM_BOOL T3_;
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
T3_ = (NIM_BOOL)0;
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
T3_ = (s == NIM_NIL); if (T3_) goto LA4_;
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
T3_ = ((*s).Sup.len == ((NI) 0)); LA4_: ;
if (!T3_) goto LA5_;
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
result = ""; }
goto LA1_;
LA5_: ;
{
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
result = ((NCSTRING) ((*s).data)); }
LA1_: ;
return result;}
#line 1843 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindChar)(NimStringDesc* s_0, NIM_CHAR sub, NI start, NI last) { NI result; NI last_2; NI L; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_70; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_71;{ result = (NI)0;
#line 1855 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1855 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 1855 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(last == ((NI) 0))) goto LA3_;
#line 1855 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
last_2 = ((s_0 ? s_0->Sup.len : 0)-1); }
goto LA1_;
LA3_: ;
{ last_2 = last; }
LA1_: ;
#line 1861 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1861 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1861 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(last_2, ((NI) (start)), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_70)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_70), ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_71)) { raiseOverflow(); }; L = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_71);
#line 1862 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ void* found;
#line 1862 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(((NI) 0) < L)) goto LA8_;
#line 1863 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(start) >= (NU)(s_0 ? s_0->Sup.len : 0)){ raiseIndexError2(start,(s_0 ? s_0->Sup.len : 0)-1); }
#line 1863 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
found = memchr(((void*) ((&s_0->data[start]))), sub, ((size_t) (L)));
#line 1864 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 1864 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1864 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!!((found == 0))) goto LA12_;
#line 1865 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1865 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1865 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (found)), ((NI) (nimToCStringConv(s_0)))); goto BeforeRet_;
}
LA12_: ;
}
LA8_: ;
#line 1869 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1869 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = ((NI) -1); goto BeforeRet_;
}BeforeRet_: ;
return result;}
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuToLowerAsciiStr)(NimStringDesc* s_0) { NimStringDesc* result; result = (NimStringDesc*)0;
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (((s_0 ? s_0->Sup.len : 0)) < ((NI) 0) || ((s_0 ? s_0->Sup.len : 0)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((s_0 ? s_0->Sup.len : 0), ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = mnewString(((NI) ((s_0 ? s_0->Sup.len : 0)))); { NI iX60gensym14255050_; NI colontmp_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_72; NI res; iX60gensym14255050_ = (NI)0; colontmp_ = (NI)0;
#line 215 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 215 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 215 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt((s_0 ? s_0->Sup.len : 0), ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_72)) { raiseOverflow(); }; colontmp_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_72);
#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__JGc9b9bh2D3nTdUR7TGyq8aA_73;
#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 230 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
iX60gensym14255050_ = res; if ((NU)(iX60gensym14255050_) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(iX60gensym14255050_,(result ? result->Sup.len : 0)-1); }
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(iX60gensym14255050_) >= (NU)(s_0 ? s_0->Sup.len : 0)){ raiseIndexError2(iX60gensym14255050_,(s_0 ? s_0->Sup.len : 0)-1); }
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result->data[iX60gensym14255050_] = nsuToLowerAsciiChar(s_0->data[iX60gensym14255050_]);
#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__JGc9b9bh2D3nTdUR7TGyq8aA_73)) { raiseOverflow(); }; res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_73); } LA3: ;
}
}
return result;}
#line 1755 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuJoinSep)(NimStringDesc** a, NI aLen_0, NimStringDesc* sep) { NimStringDesc* result; result = (NimStringDesc*)0;
#line 1761 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI L; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_74; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_75;
#line 1761 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1761 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(((NI) 0) < aLen_0)) goto LA3_;
#line 1762 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1762 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1762 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1762 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1762 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(aLen_0, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_74)) { raiseOverflow(); }; if (nimMulInt((sep ? sep->Sup.len : 0), (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_74), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_75)) { raiseOverflow(); }; L = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_75); { NI i; NI colontmp_; NI res; i = (NI)0; colontmp_ = (NI)0;
#line 1763 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1763 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
colontmp_ = (aLen_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__JGc9b9bh2D3nTdUR7TGyq8aA_76; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_77;
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(res <= colontmp_)) goto LA7;
#line 1763 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = res;
#line 1763 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1763 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(aLen_0)){ raiseIndexError2(i,aLen_0-1); } if (nimAddInt(L, (a[i] ? a[i]->Sup.len : 0), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_76)) { raiseOverflow(); }; L = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_76);
#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__JGc9b9bh2D3nTdUR7TGyq8aA_77)) { raiseOverflow(); }; res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_77); } LA7: ;
}
}
#line 1764 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1764 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((L) < ((NI) 0) || (L) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(L, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 1764 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = rawNewString(((NI) (L)));
#line 1765 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(((NI) 0)) >= (NU)(aLen_0)){ raiseIndexError2(((NI) 0),aLen_0-1); } result = resizeString(result, (a[((NI) 0)] ? a[((NI) 0)]->Sup.len : 0) + 0);appendString(result, a[((NI) 0)]); { NI i_2; NI colontmp__2; NI res_2; i_2 = (NI)0; colontmp__2 = (NI)0;
#line 1766 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1766 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
colontmp__2 = (aLen_0-1);
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
res_2 = ((NI) 1); {
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_78;
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(res_2 <= colontmp__2)) goto LA10;
#line 1766 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i_2 = res_2;
#line 1767 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = resizeString(result, (sep ? sep->Sup.len : 0) + 0);appendString(result, sep);
#line 1768 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i_2) >= (NU)(aLen_0)){ raiseIndexError2(i_2,aLen_0-1); } result = resizeString(result, (a[i_2] ? a[i_2]->Sup.len : 0) + 0);appendString(result, a[i_2]);
#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__JGc9b9bh2D3nTdUR7TGyq8aA_78)) { raiseOverflow(); }; res_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_78); } LA10: ;
}
}
}
goto LA1_;
LA3_: ;
{
#line 1770 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = ((NimStringDesc*) NIM_NIL); }
LA1_: ;
return result;}
#line 1549 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuEndsWith)(NimStringDesc* s_0, NimStringDesc* suffix) { NIM_BOOL result; NI i; NI j; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_79;{ result = (NIM_BOOL)0;
#line 1563 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = ((NI) 0);
#line 1564 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1564 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1564 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1564 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt((s_0 ? s_0->Sup.len : 0), (suffix ? suffix->Sup.len : 0), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_79)) { raiseOverflow(); }; j = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_79); {
#line 1565 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_BOOL T3_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_80; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_81; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_83;
#line 1565 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (NIM_BOOL)0;
#line 1565 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1565 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, j, &TM__JGc9b9bh2D3nTdUR7TGyq8aA_80)) { raiseOverflow(); }; T3_ = (((NI) 0) <= (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_80)); if (!(T3_)) goto LA4_;
#line 1565 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1565 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, j, &TM__JGc9b9bh2D3nTdUR7TGyq8aA_81)) { raiseOverflow(); };
#line 1565 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_81) < (s_0 ? s_0->Sup.len : 0)); LA4_: ;
if (!T3_) goto LA2;
#line 1566 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_82;
#line 1566 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1566 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1566 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, j, &TM__JGc9b9bh2D3nTdUR7TGyq8aA_82)) { raiseOverflow(); }; if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_82)) >= (NU)(s_0 ? s_0->Sup.len : 0)){ raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_82),(s_0 ? s_0->Sup.len : 0)-1); } if ((NU)(i) >= (NU)(suffix ? suffix->Sup.len : 0)){ raiseIndexError2(i,(suffix ? suffix->Sup.len : 0)-1); } if (!!(((NU8)(s_0->data[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_82)]) == (NU8)(suffix->data[i])))) goto LA7_;
#line 1566 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1566 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = NIM_FALSE; goto BeforeRet_;
}
LA7_: ;
#line 1567 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_83)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_83); } LA2: ;
}
#line 1568 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 1568 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1568 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!((suffix ? suffix->Sup.len : 0) <= i)) goto LA11_;
#line 1568 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1568 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = NIM_TRUE; goto BeforeRet_;
}
LA11_: ;
}BeforeRet_: ;
return result;}
#line 1683 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(void, nsuRemoveSuffixString)(NimStringDesc** s_0, NimStringDesc* suffix) { NI newLen;
#line 1694 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1694 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
newLen = ((*s_0) ? (*s_0)->Sup.len : 0);
#line 1695 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NIM_BOOL T3_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_84;
#line 1695 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1695 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (NIM_BOOL)0; T3_ = nsuEndsWith((*s_0), suffix); if (!T3_) goto LA4_;
#line 1696 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1696 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(newLen, (suffix ? suffix->Sup.len : 0), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_84)) { raiseOverflow(); }; newLen = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_84);
#line 1697 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((newLen) < ((NI) 0) || (newLen) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(newLen, ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*s_0)), setLengthStr((*s_0), ((NI) (newLen)))); }
LA4_: ;
}
#line 1232 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA, parseEnum__z4Wnbctz53HdhvN9aaKAZ9aQ)(NimStringDesc* s_0) { tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA result; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T9_; NimStringDesc* T10_;{ result = (tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA)0; { tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA e_1; NI res; e_1 = (tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA)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) { NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_85;
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(res <= ((NI) 7))) goto LA3;
#line 1249 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((res) < ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 0) || (res) > ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 7)){ raiseRangeErrorI(res, ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 0), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 7)); } e_1 = ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) (res));
#line 1250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI T6_;
#line 1250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T6_ = (NI)0; T6_ = nsuCmpIgnoreStyle(s_0, reprEnum((NI)e_1, (&NTI__9bciZEQ8iC1G2PermjsuXmA_))); if (!(T6_ == ((NI) 0))) goto LA7_;
#line 1251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = e_1; goto BeforeRet_;
}
LA7_: ;
#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__JGc9b9bh2D3nTdUR7TGyq8aA_85)) { raiseOverflow(); }; res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_85); } LA3: ;
}
}
T9_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T9_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T9_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T9_).Sup.Sup.name = "ValueError";
#line 1252 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T10_ = (NimStringDesc*)0; T10_ = rawNewString((s_0 ? s_0->Sup.len : 0) + 20);appendString(T10_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_86));appendString(T10_, s_0); asgnRef((void**) (&(*T9_).Sup.Sup.message), T10_); asgnRef((void**) (&(*T9_).Sup.Sup.parent), NIM_NIL);
#line 1252 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
raiseExceptionEx((Exception*)T9_, "ValueError", "parseEnum", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/strutils.nim", 1252); }BeforeRet_: ;
return result;}
#line 1098 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NU, nsuParseUInt)(NimStringDesc* s_0) { NU result; NI L; result = (NU)0;
#line 1103 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1103 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
L = npuParseUInt(s_0, (&result), ((NI) 0));
#line 1104 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NIM_BOOL T3_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T7_; NimStringDesc* T8_;
#line 1104 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (NIM_BOOL)0;
#line 1104 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1104 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1104 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = !((L == (s_0 ? s_0->Sup.len : 0))); if (T3_) goto LA4_;
#line 1104 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (L == ((NI) 0)); LA4_: ;
if (!T3_) goto LA5_;
T7_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T7_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T7_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T7_).Sup.Sup.name = "ValueError";
#line 1105 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T8_ = (NimStringDesc*)0; T8_ = rawNewString((s_0 ? s_0->Sup.len : 0) + 26);appendString(T8_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_87));appendString(T8_, s_0); asgnRef((void**) (&(*T7_).Sup.Sup.message), T8_); asgnRef((void**) (&(*T7_).Sup.Sup.parent), NIM_NIL);
#line 1105 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
raiseExceptionEx((Exception*)T7_, "ValueError", "parseUInt", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/strutils.nim", 1105); }
LA5_: ;
return result;}
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuNormalize)(NimStringDesc* s_0) { NimStringDesc* result; NI j; result = (NimStringDesc*)0;
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (((s_0 ? s_0->Sup.len : 0)) < ((NI) 0) || ((s_0 ? s_0->Sup.len : 0)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((s_0 ? s_0->Sup.len : 0), ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = mnewString(((NI) ((s_0 ? s_0->Sup.len : 0))));
#line 294 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
j = ((NI) 0); { NI i; NI colontmp_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_88; NI res; i = (NI)0; colontmp_ = (NI)0;
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt((s_0 ? s_0->Sup.len : 0), ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_88)) { raiseOverflow(); }; colontmp_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_88);
#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__JGc9b9bh2D3nTdUR7TGyq8aA_92;
#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 295 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = res;
#line 296 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_89; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_90;
#line 296 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(s_0 ? s_0->Sup.len : 0)){ raiseIndexError2(i,(s_0 ? s_0->Sup.len : 0)-1); } if (!(((NU8)(s_0->data[i])) >= ((NU8)(65)) && ((NU8)(s_0->data[i])) <= ((NU8)(90)))) goto LA6_;
if ((NU)(j) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(j,(result ? result->Sup.len : 0)-1); }
#line 297 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 297 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 297 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 297 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(s_0 ? s_0->Sup.len : 0)){ raiseIndexError2(i,(s_0 ? s_0->Sup.len : 0)-1); } if (nimAddInt(((NU8)(s_0->data[i])), ((NI) 32), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_89)) { raiseOverflow(); }; if (((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_89)) < ((NI) 0) || ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_89)) > ((NI) 255)){ raiseRangeErrorI((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_89), ((NI) 0), ((NI) 255)); } result->data[j] = ((NIM_CHAR) (((NI) ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_89)))));
#line 298 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(j, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_90)) { raiseOverflow(); }; j = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_90); }
goto LA4_;
LA6_: ;
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_91;
#line 299 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 299 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(s_0 ? s_0->Sup.len : 0)){ raiseIndexError2(i,(s_0 ? s_0->Sup.len : 0)-1); } if (!!(((NU8)(s_0->data[i]) == (NU8)(95)))) goto LA9_;
if ((NU)(j) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(j,(result ? result->Sup.len : 0)-1); }
#line 300 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(s_0 ? s_0->Sup.len : 0)){ raiseIndexError2(i,(s_0 ? s_0->Sup.len : 0)-1); } result->data[j] = s_0->data[i];
#line 301 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(j, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_91)) { raiseOverflow(); }; j = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_91); }
goto LA4_;
LA9_: ;
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__JGc9b9bh2D3nTdUR7TGyq8aA_92)) { raiseOverflow(); }; res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_92); } LA3: ;
}
}
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!!((j == (s_0 ? s_0->Sup.len : 0)))) goto LA13_;
#line 302 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((j) < ((NI) 0) || (j) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(j, ((NI) 0), ((NI) IL64(9223372036854775807))); } result = setLengthStr(result, ((NI) (j))); }
LA13_: ;
return result;}
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) { int result; result = (int)0;
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
result = memcmp(a, b, ((size_t) (size))); return result;}
#line 2120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size) { NIM_BOOL result; int T1_; result = (NIM_BOOL)0;
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
T1_ = (int)0; T1_ = nimCmpMem(a, b, size); result = (T1_ == ((NI32) 0)); return result;}
#line 23 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) { NIM_BOOL result; NI alen; NI blen;{ result = (NIM_BOOL)0;
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
alen = (a ? a->Sup.len : 0);
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
blen = (b ? b->Sup.len : 0);
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
{
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
if (!(alen == blen)) goto LA3_;
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
{
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
if (!(alen == ((NI) 0))) goto LA7_;
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
result = NIM_TRUE; goto BeforeRet_;
}
LA7_: ;
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
result = equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((NI) (alen))); goto BeforeRet_;
}
LA3_: ;
}BeforeRet_: ;
return result;}
#line 1216 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, parseBool__Y9cQyzddf88poHkzlcfsPIA)(NimStringDesc* s_0) { NIM_BOOL result; NimStringDesc* T1_; result = (NIM_BOOL)0;
#line 1227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T1_ = (NimStringDesc*)0; T1_ = nsuNormalize(s_0); switch (hashString(T1_) & 15) { case 0:
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_94))) goto LA2_;break;
case 1:
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_98))) goto LA3_;break;
case 5:
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_95))) goto LA2_;if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_99))) goto LA3_;if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_102))) goto LA3_;break;
case 8:
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_93))) goto LA2_;if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_97))) goto LA2_;break;
case 9:
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_96))) goto LA2_;break;
case 10:
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_100))) goto LA3_;break;
case 11:
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_101))) goto LA3_;break;
}
goto LA4_;
LA2_: ;
{
#line 1228 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = NIM_TRUE; }
goto LA5_;
LA3_: ;
{
#line 1229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = NIM_FALSE; }
goto LA5_;
LA4_: ;
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T9_; NimStringDesc* T10_; T9_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T9_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T9_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T9_).Sup.Sup.name = "ValueError";
#line 1230 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T10_ = (NimStringDesc*)0; T10_ = rawNewString((s_0 ? s_0->Sup.len : 0) + 28);appendString(T10_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_103));appendString(T10_, s_0); asgnRef((void**) (&(*T9_).Sup.Sup.message), T10_); asgnRef((void**) (&(*T9_).Sup.Sup.parent), NIM_NIL);
#line 1230 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
raiseExceptionEx((Exception*)T9_, "ValueError", "parseBool", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/strutils.nim", 1230); }
LA5_: ;
return result;}
#line 1232 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_FleetV1__HwBy9aJdPPTeRQyUq9bzgJmw, parseEnum__OeyJOvlU2WGq1pB5dstmFg)(NimStringDesc* s_0) { tyEnum_FleetV1__HwBy9aJdPPTeRQyUq9bzgJmw result; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T9_; NimStringDesc* T10_;{ result = (tyEnum_FleetV1__HwBy9aJdPPTeRQyUq9bzgJmw)0; { tyEnum_FleetV1__HwBy9aJdPPTeRQyUq9bzgJmw e_1; NI res; e_1 = (tyEnum_FleetV1__HwBy9aJdPPTeRQyUq9bzgJmw)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) { NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_104;
#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 LA3;
#line 1249 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((res) < ((tyEnum_FleetV1__HwBy9aJdPPTeRQyUq9bzgJmw) 0) || (res) > ((tyEnum_FleetV1__HwBy9aJdPPTeRQyUq9bzgJmw) 3)){ raiseRangeErrorI(res, ((tyEnum_FleetV1__HwBy9aJdPPTeRQyUq9bzgJmw) 0), ((tyEnum_FleetV1__HwBy9aJdPPTeRQyUq9bzgJmw) 3)); } e_1 = ((tyEnum_FleetV1__HwBy9aJdPPTeRQyUq9bzgJmw) (res));
#line 1250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI T6_;
#line 1250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T6_ = (NI)0; T6_ = nsuCmpIgnoreStyle(s_0, reprEnum((NI)e_1, (&NTI__HwBy9aJdPPTeRQyUq9bzgJmw_))); if (!(T6_ == ((NI) 0))) goto LA7_;
#line 1251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = e_1; goto BeforeRet_;
}
LA7_: ;
#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__JGc9b9bh2D3nTdUR7TGyq8aA_104)) { raiseOverflow(); }; res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_104); } LA3: ;
}
}
T9_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T9_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T9_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T9_).Sup.Sup.name = "ValueError";
#line 1252 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T10_ = (NimStringDesc*)0; T10_ = rawNewString((s_0 ? s_0->Sup.len : 0) + 20);appendString(T10_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_86));appendString(T10_, s_0); asgnRef((void**) (&(*T9_).Sup.Sup.message), T10_); asgnRef((void**) (&(*T9_).Sup.Sup.parent), NIM_NIL);
#line 1252 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
raiseExceptionEx((Exception*)T9_, "ValueError", "parseEnum", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/strutils.nim", 1252); }BeforeRet_: ;
return result;}
#line 1591 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(void, nsuRemovePrefixCharSet)(NimStringDesc** s_0, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars) { NI start;
#line 1609 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
start = ((NI) 0); {
#line 1610 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_BOOL T3_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_105;
#line 1610 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (NIM_BOOL)0;
#line 1610 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1610 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (start < ((*s_0) ? (*s_0)->Sup.len : 0)); if (!(T3_)) goto LA4_;
#line 1610 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(start) >= (NU)((*s_0) ? (*s_0)->Sup.len : 0)){ raiseIndexError2(start,((*s_0) ? (*s_0)->Sup.len : 0)-1); } T3_ = ((chars[(NU)(((NU8)((*s_0)->data[start])))>>3] &(1U<<((NU)(((NU8)((*s_0)->data[start])))&7U)))!=0); LA4_: ;
if (!T3_) goto LA2;
#line 1610 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(start, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_105)) { raiseOverflow(); }; start = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_105); } LA2: ;
}
#line 1611 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_106;
#line 1611 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(((NI) 0) < start)) goto LA7_;
#line 1611 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1611 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(start, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_106)) { raiseOverflow(); };
#line 1611 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
nsuDelete(s_0, ((NI) 0), (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_106));
}
LA7_: ;
}
#line 1613 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(void, nsuRemovePrefixChar)(NimStringDesc** s_0, NIM_CHAR c) { tySet_tyChar__nmiMWKVIe46vacnhAFrQvw T1_;
#line 1625 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
nimZeroMem(T1_, sizeof(tySet_tyChar__nmiMWKVIe46vacnhAFrQvw)); T1_[(NU)(((NU8)(c)))>>3] |=(1U<<((NU)(((NU8)(c)))&7U));
#line 1625 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
nsuRemovePrefixCharSet(s_0, T1_);
}
#line 1788 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(void, nsuInitSkipTable)(NI* a, NimStringDesc* sub) { NI m; NI i;
#line 1791 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1791 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
m = (sub ? sub->Sup.len : 0);
#line 1792 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = ((NI) 0); {
#line 1793 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_109; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_110; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_111; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_112; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_113; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_114; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_115; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_116; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_117;
#line 1793 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(i <= ((NI) 248))) goto LA2;
#line 1794 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1794 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 0), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_109)) { raiseOverflow(); }; if (((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_109)) < ((NI) 0) || ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_109)) > ((NI) 255)){ raiseRangeErrorI((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_109), ((NI) 0), ((NI) 255)); }
#line 1794 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
a[(((NU8)(((NIM_CHAR) (((NI) ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_109))))))))- 0] = m;
#line 1795 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1795 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_110)) { raiseOverflow(); }; if (((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_110)) < ((NI) 0) || ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_110)) > ((NI) 255)){ raiseRangeErrorI((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_110), ((NI) 0), ((NI) 255)); }
#line 1795 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
a[(((NU8)(((NIM_CHAR) (((NI) ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_110))))))))- 0] = m;
#line 1796 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1796 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 2), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_111)) { raiseOverflow(); }; if (((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_111)) < ((NI) 0) || ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_111)) > ((NI) 255)){ raiseRangeErrorI((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_111), ((NI) 0), ((NI) 255)); }
#line 1796 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
a[(((NU8)(((NIM_CHAR) (((NI) ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_111))))))))- 0] = m;
#line 1797 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1797 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 3), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_112)) { raiseOverflow(); }; if (((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_112)) < ((NI) 0) || ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_112)) > ((NI) 255)){ raiseRangeErrorI((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_112), ((NI) 0), ((NI) 255)); }
#line 1797 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
a[(((NU8)(((NIM_CHAR) (((NI) ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_112))))))))- 0] = m;
#line 1798 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1798 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 4), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_113)) { raiseOverflow(); }; if (((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_113)) < ((NI) 0) || ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_113)) > ((NI) 255)){ raiseRangeErrorI((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_113), ((NI) 0), ((NI) 255)); }
#line 1798 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
a[(((NU8)(((NIM_CHAR) (((NI) ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_113))))))))- 0] = m;
#line 1799 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1799 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 5), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_114)) { raiseOverflow(); }; if (((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_114)) < ((NI) 0) || ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_114)) > ((NI) 255)){ raiseRangeErrorI((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_114), ((NI) 0), ((NI) 255)); }
#line 1799 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
a[(((NU8)(((NIM_CHAR) (((NI) ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_114))))))))- 0] = m;
#line 1800 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1800 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 6), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_115)) { raiseOverflow(); }; if (((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_115)) < ((NI) 0) || ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_115)) > ((NI) 255)){ raiseRangeErrorI((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_115), ((NI) 0), ((NI) 255)); }
#line 1800 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
a[(((NU8)(((NIM_CHAR) (((NI) ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_115))))))))- 0] = m;
#line 1801 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1801 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 7), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_116)) { raiseOverflow(); }; if (((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_116)) < ((NI) 0) || ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_116)) > ((NI) 255)){ raiseRangeErrorI((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_116), ((NI) 0), ((NI) 255)); }
#line 1801 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
a[(((NU8)(((NIM_CHAR) (((NI) ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_116))))))))- 0] = m;
#line 1802 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 8), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_117)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_117); } LA2: ;
}
{ NI i_2; NI colontmp_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_118; NI i_3; i_2 = (NI)0; colontmp_ = (NI)0;
#line 1804 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1804 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(m, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_118)) { raiseOverflow(); }; colontmp_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_118);
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_3 = ((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__JGc9b9bh2D3nTdUR7TGyq8aA_119; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_120; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_121;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_3 < colontmp_)) goto LA5;
#line 1804 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i_2 = i_3; if ((NU)(i_2) >= (NU)(sub ? sub->Sup.len : 0)){ raiseIndexError2(i_2,(sub ? sub->Sup.len : 0)-1); }
#line 1805 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1805 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1805 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(m, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_119)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_119), i_2, &TM__JGc9b9bh2D3nTdUR7TGyq8aA_120)) { raiseOverflow(); }; a[(((NU8)(sub->data[i_2])))- 0] = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_120);
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(i_3, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_121)) { raiseOverflow(); }; i_3 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_121); } LA5: ;
}
}
}
#line 1807 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindStrA)(tyArray__9cc9aPiDa8VaWjVcFLabEDZQ a, NimStringDesc* s_0, NimStringDesc* sub, NI start, NI last) { NI result; NI last_2; NI subLast; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_122; NI skip;{ result = (NI)0;
#line 1815 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1815 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 1815 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(last == ((NI) 0))) goto LA3_;
#line 1815 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
last_2 = ((s_0 ? s_0->Sup.len : 0)-1); }
goto LA1_;
LA3_: ;
{ last_2 = last; }
LA1_: ;
#line 1816 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1816 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1816 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt((sub ? sub->Sup.len : 0), ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_122)) { raiseOverflow(); }; subLast = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_122);
#line 1818 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 1818 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(subLast == ((NI) -1))) goto LA8_;
#line 1821 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1821 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = ((NI) (start)); goto BeforeRet_;
}
LA8_: ;
#line 1825 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
skip = start; {
#line 1827 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_123; NI i; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_126; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_127;
#line 1827 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1827 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(last_2, ((NI) (skip)), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_123)) { raiseOverflow(); }; if (!(subLast <= (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_123))) goto LA11;
#line 1828 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = subLast; {
#line 1829 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_124; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_125;
#line 1829 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1829 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(((NI) (skip)), i, &TM__JGc9b9bh2D3nTdUR7TGyq8aA_124)) { raiseOverflow(); }; if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_124)) >= (NU)(s_0 ? s_0->Sup.len : 0)){ raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_124),(s_0 ? s_0->Sup.len : 0)-1); } if ((NU)(i) >= (NU)(sub ? sub->Sup.len : 0)){ raiseIndexError2(i,(sub ? sub->Sup.len : 0)-1); } if (!((NU8)(s_0->data[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_124)]) == (NU8)(sub->data[i]))) goto LA13;
#line 1830 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 1830 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(i == ((NI) 0))) goto LA16_;
#line 1831 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1831 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = ((NI) (skip)); goto BeforeRet_;
}
LA16_: ;
#line 1832 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_125)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_125); } LA13: ;
}
#line 1833 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1833 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(((NI) (skip)), subLast, &TM__JGc9b9bh2D3nTdUR7TGyq8aA_126)) { raiseOverflow(); }; if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_126)) >= (NU)(s_0 ? s_0->Sup.len : 0)){ raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_126),(s_0 ? s_0->Sup.len : 0)-1); } if (nimAddInt(skip, a[(((NU8)(s_0->data[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_126)])))- 0], &TM__JGc9b9bh2D3nTdUR7TGyq8aA_127)) { raiseOverflow(); }; if (TM__JGc9b9bh2D3nTdUR7TGyq8aA_127 < 0 || TM__JGc9b9bh2D3nTdUR7TGyq8aA_127 > IL64(9223372036854775807)){ raiseOverflow(); } skip = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_127); } LA11: ;
}
#line 1834 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1834 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = ((NI) -1); goto BeforeRet_;
}BeforeRet_: ;
return result;}
#line 2046 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuReplaceStr)(NimStringDesc* s_0, NimStringDesc* sub, NimStringDesc* by) { NimStringDesc* result; NI subLen; result = (NimStringDesc*)0;
#line 2056 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = ((NimStringDesc*) NIM_NIL);
#line 2057 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2057 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
subLen = (sub ? sub->Sup.len : 0);
#line 2058 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 2058 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(subLen == ((NI) 0))) goto LA3_;
#line 2059 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = copyString(s_0); }
goto LA1_;
LA3_: ;
{ NIM_CHAR c; NI last; NI i; NimStringDesc* T15_;
#line 2060 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(subLen == ((NI) 1))) goto LA6_;
#line 2063 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(((NI) 0)) >= (NU)(sub ? sub->Sup.len : 0)){ raiseIndexError2(((NI) 0),(sub ? sub->Sup.len : 0)-1); } c = sub->data[((NI) 0)];
#line 2064 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2064 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
last = ((s_0 ? s_0->Sup.len : 0)-1);
#line 2065 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = ((NI) 0); {
#line 2066 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NI j; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_107; NimStringDesc* T14_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_108;
#line 2067 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((i) < ((NI) 0) || (i) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(i, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 2067 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
j = nsuFindChar(s_0, c, ((NI) (i)), last);
#line 2068 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 2068 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(j < ((NI) 0))) goto LA12_;
#line 2068 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
goto LA8;
}
LA12_: ;
#line 2069 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2069 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2069 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(j, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_107)) { raiseOverflow(); };
#line 2069 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T14_ = (NimStringDesc*)0; T14_ = substr__2yh9cer0ymNRHlOOg8P7IuA(s_0, i, (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_107)); result = resizeString(result, (T14_ ? T14_->Sup.len : 0) + 0);appendString(result, T14_);
#line 2070 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = resizeString(result, (by ? by->Sup.len : 0) + 0);appendString(result, by);
#line 2071 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2071 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(j, subLen, &TM__JGc9b9bh2D3nTdUR7TGyq8aA_108)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_108); }
} LA8: ;
#line 2073 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2073 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2073 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T15_ = (NimStringDesc*)0; T15_ = substr__iGg0RIKceRvsmvq8FUHOEw(s_0, i); result = resizeString(result, (T15_ ? T15_->Sup.len : 0) + 0);appendString(result, T15_); }
goto LA1_;
LA6_: ;
{ tyArray__9cc9aPiDa8VaWjVcFLabEDZQ a; NI last_2; NI i_2; NimStringDesc* T24_;
#line 2076 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2076 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
nsuInitSkipTable(a, sub);
#line 2077 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2077 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
last_2 = ((s_0 ? s_0->Sup.len : 0)-1);
#line 2078 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i_2 = ((NI) 0); {
#line 2079 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NI j_2; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_128; NimStringDesc* T23_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_129;
#line 2080 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((i_2) < ((NI) 0) || (i_2) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(i_2, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 2080 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
j_2 = nsuFindStrA(a, s_0, sub, ((NI) (i_2)), last_2);
#line 2081 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 2081 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(j_2 < ((NI) 0))) goto LA21_;
#line 2081 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
goto LA17;
}
LA21_: ;
#line 2082 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2082 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2082 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(j_2, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_128)) { raiseOverflow(); };
#line 2082 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T23_ = (NimStringDesc*)0; T23_ = substr__2yh9cer0ymNRHlOOg8P7IuA(s_0, i_2, (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_128)); result = resizeString(result, (T23_ ? T23_->Sup.len : 0) + 0);appendString(result, T23_);
#line 2083 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = resizeString(result, (by ? by->Sup.len : 0) + 0);appendString(result, by);
#line 2084 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2084 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(j_2, subLen, &TM__JGc9b9bh2D3nTdUR7TGyq8aA_129)) { raiseOverflow(); }; i_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_129); }
} LA17: ;
#line 2086 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2086 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2086 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T24_ = (NimStringDesc*)0; T24_ = substr__iGg0RIKceRvsmvq8FUHOEw(s_0, i_2); result = resizeString(result, (T24_ ? T24_->Sup.len : 0) + 0);appendString(result, T24_); }
LA1_: ;
return result;}
#line 1107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NU64, nsuParseBiggestUInt)(NimStringDesc* s_0) { NU64 result; NI L; result = (NU64)0;
#line 1112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
L = npuParseBiggestUInt(s_0, (&result), ((NI) 0));
#line 1113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NIM_BOOL T3_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T7_; NimStringDesc* T8_;
#line 1113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (NIM_BOOL)0;
#line 1113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = !((L == (s_0 ? s_0->Sup.len : 0))); if (T3_) goto LA4_;
#line 1113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (L == ((NI) 0)); LA4_: ;
if (!T3_) goto LA5_;
T7_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T7_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T7_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T7_).Sup.Sup.name = "ValueError";
#line 1114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T8_ = (NimStringDesc*)0; T8_ = rawNewString((s_0 ? s_0->Sup.len : 0) + 26);appendString(T8_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_87));appendString(T8_, s_0); asgnRef((void**) (&(*T7_).Sup.Sup.message), T8_); asgnRef((void**) (&(*T7_).Sup.Sup.parent), NIM_NIL);
#line 1114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
raiseExceptionEx((Exception*)T7_, "ValueError", "parseBiggestUInt", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/strutils.nim", 1114); }
LA5_: ;
return result;}
#line 304 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NI, nsuCmpIgnoreCase)(NimStringDesc* a, NimStringDesc* b) { NI result; NI i; NI m; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_132;{ result = (NI)0;
#line 315 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
i = ((NI) 0);
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
m = (((a ? a->Sup.len : 0) <= (b ? b->Sup.len : 0)) ? (a ? a->Sup.len : 0) : (b ? b->Sup.len : 0)); {
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_CHAR T3_; NIM_CHAR T4_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_130; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_131;
#line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!(i < m)) goto LA2;
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(a ? a->Sup.len : 0)){ raiseIndexError2(i,(a ? a->Sup.len : 0)-1); }
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (NIM_CHAR)0; T3_ = nsuToLowerAsciiChar(a->data[i]);
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(i) >= (NU)(b ? b->Sup.len : 0)){ raiseIndexError2(i,(b ? b->Sup.len : 0)-1); }
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T4_ = (NIM_CHAR)0; T4_ = nsuToLowerAsciiChar(b->data[i]); if (nimSubInt(((NU8)(T3_)), ((NU8)(T4_)), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_130)) { raiseOverflow(); }; result = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_130);
#line 319 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 319 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 319 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!!((result == ((NI) 0)))) goto LA7_;
#line 319 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
goto BeforeRet_;
}
LA7_: ;
#line 320 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(i, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_131)) { raiseOverflow(); }; i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_131); } LA2: ;
}
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt((a ? a->Sup.len : 0), (b ? b->Sup.len : 0), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_132)) { raiseOverflow(); }; result = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_132); }BeforeRet_: ;
return result;}
#line 2752 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuStrip)(NimStringDesc* s_0, NIM_BOOL leading, NIM_BOOL trailing, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars) { NimStringDesc* result; NI first_1; NI last; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_133; result = (NimStringDesc*)0;
#line 2780 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
first_1 = ((NI) 0);
#line 2781 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2781 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2781 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt((s_0 ? s_0->Sup.len : 0), ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_133)) { raiseOverflow(); }; last = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_133);
#line 2782 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ if (!leading) goto LA3_;
{
#line 2783 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_BOOL T7_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_134;
#line 2783 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T7_ = (NIM_BOOL)0;
#line 2783 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T7_ = (first_1 <= last); if (!(T7_)) goto LA8_;
#line 2783 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(first_1) >= (NU)(s_0 ? s_0->Sup.len : 0)){ raiseIndexError2(first_1,(s_0 ? s_0->Sup.len : 0)-1); } T7_ = ((chars[(NU)(((NU8)(s_0->data[first_1])))>>3] &(1U<<((NU)(((NU8)(s_0->data[first_1])))&7U)))!=0); LA8_: ;
if (!T7_) goto LA6;
#line 2783 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimAddInt(first_1, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_134)) { raiseOverflow(); }; first_1 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_134); } LA6: ;
}
}
LA3_: ;
#line 2784 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ if (!trailing) goto LA11_;
{
#line 2785 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
while (1) { NIM_BOOL T15_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_135;
#line 2785 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T15_ = (NIM_BOOL)0;
#line 2785 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T15_ = (((NI) 0) <= last); if (!(T15_)) goto LA16_;
#line 2785 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(last) >= (NU)(s_0 ? s_0->Sup.len : 0)){ raiseIndexError2(last,(s_0 ? s_0->Sup.len : 0)-1); } T15_ = ((chars[(NU)(((NU8)(s_0->data[last])))>>3] &(1U<<((NU)(((NU8)(s_0->data[last])))&7U)))!=0); LA16_: ;
if (!T15_) goto LA14;
#line 2785 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(last, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_135)) { raiseOverflow(); }; last = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_135); } LA14: ;
}
}
LA11_: ;
#line 2786 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2786 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = substr__2yh9cer0ymNRHlOOg8P7IuA(s_0, first_1, last); return result;}
#line 1888 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindStr)(NimStringDesc* s_0, NimStringDesc* sub, NI start, NI last) { NI result; tyArray__9cc9aPiDa8VaWjVcFLabEDZQ a;{ result = (NI)0;
#line 1900 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 1900 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1900 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1900 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!((s_0 ? s_0->Sup.len : 0) < (sub ? sub->Sup.len : 0))) goto LA3_;
#line 1900 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1900 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = ((NI) -1); goto BeforeRet_;
}
LA3_: ;
#line 1901 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{
#line 1901 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1901 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (!((sub ? sub->Sup.len : 0) == ((NI) 1))) goto LA7_;
#line 1901 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1901 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)(((NI) 0)) >= (NU)(sub ? sub->Sup.len : 0)){ raiseIndexError2(((NI) 0),(sub ? sub->Sup.len : 0)-1); }
#line 1901 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = nsuFindChar(s_0, sub->data[((NI) 0)], start, last); goto BeforeRet_;
}
LA7_: ;
#line 1903 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1903 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
nsuInitSkipTable(a, sub);
#line 1904 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1904 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = nsuFindStrA(a, s_0, sub, start, last); }BeforeRet_: ;
return result;}
#line 2032 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__KV0xCsBzaN9coqb7PG9au0oQ)(NimStringDesc* s_0, NimStringDesc* sub) { NIM_BOOL result; NI T1_;{ result = (NIM_BOOL)0;
#line 2037 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2037 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2037 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2037 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2037 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T1_ = (NI)0; T1_ = nsuFindStr(s_0, sub, ((NI) 0), ((NI) 0)); result = (((NI) 0) <= T1_); goto BeforeRet_;
}BeforeRet_: ;
return result;}
#line 2039 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__wAzSnEu9cCHHjvPQlWBZUeQ)(NimStringDesc* s_0, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars) { NIM_BOOL result; NI T1_;{ result = (NIM_BOOL)0;
#line 2044 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2044 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2044 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2044 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 2044 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T1_ = (NI)0; T1_ = nsuFindCharSet(s_0, chars, ((NI) 0), ((NI) 0)); result = (((NI) 0) <= T1_); goto BeforeRet_;
}BeforeRet_: ;
return result;}
#line 1089 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NI64, nsuParseBiggestInt)(NimStringDesc* s_0) { NI64 result; NI L; result = (NI64)0;
#line 1094 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1094 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
L = npuParseBiggestInt(s_0, (&result), ((NI) 0));
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NIM_BOOL T3_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T7_; NimStringDesc* T8_;
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (NIM_BOOL)0;
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = !((L == (s_0 ? s_0->Sup.len : 0))); if (T3_) goto LA4_;
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T3_ = (L == ((NI) 0)); LA4_: ;
if (!T3_) goto LA5_;
T7_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T7_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T7_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T7_).Sup.Sup.name = "ValueError";
#line 1096 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T8_ = (NimStringDesc*)0; T8_ = rawNewString((s_0 ? s_0->Sup.len : 0) + 17);appendString(T8_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_69));appendString(T8_, s_0); asgnRef((void**) (&(*T7_).Sup.Sup.message), T8_); asgnRef((void**) (&(*T7_).Sup.Sup.parent), NIM_NIL);
#line 1096 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
raiseExceptionEx((Exception*)T7_, "ValueError", "parseBiggestInt", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/strutils.nim", 1096); }
LA5_: ;
return result;}
#line 920 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuToHex)(NI64 x_0, NI len_0) { NimStringDesc* result; NI64 n_1; result = (NimStringDesc*)0;
#line 936 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
n_1 = x_0;
#line 937 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 937 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 937 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
result = mnewString(((NI) (len_0))); { NI j; NI colontmp_; NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_136; NI res; j = (NI)0; colontmp_ = (NI)0;
#line 938 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 938 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if (nimSubInt(((NI) (len_0)), ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_136)) { raiseOverflow(); }; colontmp_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_136);
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
res = colontmp_; {
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_138;
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(((NI) 0) <= res)) goto LA3;
#line 938 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
j = res; if ((NU)(j) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(j,(result ? result->Sup.len : 0)-1); }
#line 939 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 939 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
if ((NU)((NI64)(n_1 & IL64(15))) >= (NU)(((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_137) ? ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_137)->Sup.len : 0)){ raiseIndexError2((NI64)(n_1 & IL64(15)),(((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_137) ? ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_137)->Sup.len : 0)-1); } result->data[j] = ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_137)->data[(NI64)(n_1 & IL64(15))];
#line 940 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
#line 940 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
n_1 = (NI64)((NI64)(n_1) >> (NU64)(((NI) 4)));
#line 942 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
{ NIM_BOOL T6_;
#line 942 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T6_ = (NIM_BOOL)0;
#line 942 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T6_ = (n_1 == IL64(0)); if (!(T6_)) goto LA7_;
#line 942 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
T6_ = (x_0 < IL64(0)); LA7_: ;
if (!T6_) goto LA8_;
#line 942 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
n_1 = IL64(-1); }
LA8_: ;
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimSubInt(res, ((NI) 1), &TM__JGc9b9bh2D3nTdUR7TGyq8aA_138)) { raiseOverflow(); }; res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_138); } LA3: ;
}
}
return result;}