mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 17:35:45 +00:00
513 lines
34 KiB
C
513 lines
34 KiB
C
/* Generated by Nim Compiler v1.2.6 */
|
|
/* (c) 2020 Andreas Rumpf */
|
|
/* The generated code is subject to the original license. */
|
|
/* Compiled for: Linux, amd64, gcc */
|
|
/* Command for C compiler:
|
|
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/v1/node -o nimcache/release/start_network/stdlib_pathnorm.nim.c.o nimcache/release/start_network/stdlib_pathnorm.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <string.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_PathIter__tllF14xUpDWpqG9ci5sg9bMg tyObject_PathIter__tllF14xUpDWpqG9ci5sg9bMg;
|
|
typedef struct tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ;
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
struct tyObject_PathIter__tllF14xUpDWpqG9ci5sg9bMg {NI i;
|
|
NI prev;
|
|
NIM_BOOL notFirst;
|
|
};
|
|
struct tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ {
|
|
NI Field0;
|
|
NI Field1;
|
|
};
|
|
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_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, hasNext__ecfBf9bSnUlnf5OQ0NQMxpQ)(tyObject_PathIter__tllF14xUpDWpqG9ci5sg9bMg it, NimStringDesc* x_0);
|
|
N_LIB_PRIVATE N_NIMCALL(tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ, next__am1q4dBd9cls9au5CcmkX5oA)(tyObject_PathIter__tllF14xUpDWpqG9ci5sg9bMg* it, NimStringDesc* x_0);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isSlash__Sl9c33djPmHfV9bnZbQf0QBw)(NimStringDesc* x_0, tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ bounds);
|
|
static N_INLINE(NIM_CHAR, X5BX5D___okzHJ6GE9cv0bYG3b4r5KCAsystem)(NimStringDesc* s, NI i);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
|
|
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isDotDot__Sl9c33djPmHfV9bnZbQf0QBw_2)(NimStringDesc* x_0, tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ bounds);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newLen);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__2yh9cer0ymNRHlOOg8P7IuA)(NimStringDesc* s, NI first, NI last);
|
|
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isDot__Sl9c33djPmHfV9bnZbQf0QBw_3)(NimStringDesc* x_0, tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ bounds);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
|
|
STRING_LITERAL(TM__DfU0iuayCGwHDN1Exp9cbKg_16, ".", 1);
|
|
|
|
#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 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, hasNext__ecfBf9bSnUlnf5OQ0NQMxpQ)(tyObject_PathIter__tllF14xUpDWpqG9ci5sg9bMg it, NimStringDesc* x_0) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
result = (it.i < (x_0 ? x_0->Sup.len : 0)); return result;}
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ, next__am1q4dBd9cls9au5CcmkX5oA)(tyObject_PathIter__tllF14xUpDWpqG9ci5sg9bMg* it, NimStringDesc* x_0) { tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ result; nimZeroMem((void*)(&result), sizeof(tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ));
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
(*it).prev = (*it).i;
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
{ NIM_BOOL T3_; NI TM__DfU0iuayCGwHDN1Exp9cbKg_3;
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T3_ = !((*it).notFirst); if (!(T3_)) goto LA4_;
|
|
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if ((NU)((*it).i) >= (NU)(x_0 ? x_0->Sup.len : 0)){ raiseIndexError2((*it).i,(x_0 ? x_0->Sup.len : 0)-1); } T3_ = (((NU8)(x_0->data[(*it).i])) == ((NU8)(47)) || ((NU8)(x_0->data[(*it).i])) == ((NU8)(47))); LA4_: ;
|
|
if (!T3_) goto LA5_;
|
|
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (nimAddInt((*it).i, ((NI) 1), &TM__DfU0iuayCGwHDN1Exp9cbKg_3)) { raiseOverflow(); }; (*it).i = (NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_3); }
|
|
goto LA1_;
|
|
LA5_: ;
|
|
{ {
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
while (1) { NIM_BOOL T10_; NI TM__DfU0iuayCGwHDN1Exp9cbKg_4;
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T10_ = (NIM_BOOL)0;
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T10_ = ((*it).i < (x_0 ? x_0->Sup.len : 0)); if (!(T10_)) goto LA11_;
|
|
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if ((NU)((*it).i) >= (NU)(x_0 ? x_0->Sup.len : 0)){ raiseIndexError2((*it).i,(x_0 ? x_0->Sup.len : 0)-1); } T10_ = !((((NU8)(x_0->data[(*it).i])) == ((NU8)(47)) || ((NU8)(x_0->data[(*it).i])) == ((NU8)(47)))); LA11_: ;
|
|
if (!T10_) goto LA9;
|
|
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (nimAddInt((*it).i, ((NI) 1), &TM__DfU0iuayCGwHDN1Exp9cbKg_4)) { raiseOverflow(); }; (*it).i = (NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_4); } LA9: ;
|
|
}
|
|
}
|
|
LA1_: ;
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
{ NI colontmp_; NI colontmp__2; NI TM__DfU0iuayCGwHDN1Exp9cbKg_5;
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (!((*it).prev < (*it).i)) goto LA14_;
|
|
|
|
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
colontmp_ = (*it).prev;
|
|
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (nimSubInt((*it).i, ((NI) 1), &TM__DfU0iuayCGwHDN1Exp9cbKg_5)) { raiseOverflow(); }; colontmp__2 = (NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_5);
|
|
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
result.Field0 = colontmp_; result.Field1 = colontmp__2; }
|
|
goto LA12_;
|
|
LA14_: ;
|
|
{ NIM_BOOL T17_;
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T17_ = (NIM_BOOL)0; T17_ = hasNext__ecfBf9bSnUlnf5OQ0NQMxpQ((*it), x_0); if (!T17_) goto LA18_;
|
|
|
|
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
result = next__am1q4dBd9cls9au5CcmkX5oA(it, x_0); }
|
|
goto LA12_;
|
|
LA18_: ;
|
|
LA12_: ;
|
|
{
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
while (1) { NIM_BOOL T22_; NI TM__DfU0iuayCGwHDN1Exp9cbKg_6;
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T22_ = (NIM_BOOL)0;
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T22_ = ((*it).i < (x_0 ? x_0->Sup.len : 0)); if (!(T22_)) goto LA23_;
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if ((NU)((*it).i) >= (NU)(x_0 ? x_0->Sup.len : 0)){ raiseIndexError2((*it).i,(x_0 ? x_0->Sup.len : 0)-1); } T22_ = (((NU8)(x_0->data[(*it).i])) == ((NU8)(47)) || ((NU8)(x_0->data[(*it).i])) == ((NU8)(47))); LA23_: ;
|
|
if (!T22_) goto LA21;
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (nimAddInt((*it).i, ((NI) 1), &TM__DfU0iuayCGwHDN1Exp9cbKg_6)) { raiseOverflow(); }; (*it).i = (NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_6); } LA21: ;
|
|
}
|
|
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
(*it).notFirst = NIM_TRUE; return result;}
|
|
|
|
#line 56 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isSlash__Sl9c33djPmHfV9bnZbQf0QBw)(NimStringDesc* x_0, tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ bounds) { NIM_BOOL result; NIM_BOOL T1_; result = (NIM_BOOL)0;
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T1_ = (NIM_BOOL)0;
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T1_ = (bounds.Field1 == bounds.Field0); if (!(T1_)) goto LA2_;
|
|
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if ((NU)(bounds.Field0) >= (NU)(x_0 ? x_0->Sup.len : 0)){ raiseIndexError2(bounds.Field0,(x_0 ? x_0->Sup.len : 0)-1); } T1_ = (((NU8)(x_0->data[bounds.Field0])) == ((NU8)(47)) || ((NU8)(x_0->data[bounds.Field0])) == ((NU8)(47))); LA2_: ;
|
|
result = T1_; return result;}
|
|
|
|
#line 2519 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(NIM_CHAR, X5BX5D___okzHJ6GE9cv0bYG3b4r5KCAsystem)(NimStringDesc* s, NI i) { NIM_CHAR result; NI TM__DfU0iuayCGwHDN1Exp9cbKg_7; result = (NIM_CHAR)0;
|
|
#line 2519 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2519 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2519 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if (nimSubInt((s ? s->Sup.len : 0), i, &TM__DfU0iuayCGwHDN1Exp9cbKg_7)) { raiseOverflow(); }; if ((NU)((NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_7)) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2((NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_7),(s ? s->Sup.len : 0)-1); } result = s->data[(NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_7)]; return result;}
|
|
|
|
#line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isDotDot__Sl9c33djPmHfV9bnZbQf0QBw_2)(NimStringDesc* x_0, tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ bounds) { NIM_BOOL result; NIM_BOOL T1_; NIM_BOOL T2_; NI TM__DfU0iuayCGwHDN1Exp9cbKg_8; NI TM__DfU0iuayCGwHDN1Exp9cbKg_9; result = (NIM_BOOL)0;
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T1_ = (NIM_BOOL)0;
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T2_ = (NIM_BOOL)0;
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (nimAddInt(bounds.Field0, ((NI) 1), &TM__DfU0iuayCGwHDN1Exp9cbKg_8)) { raiseOverflow(); }; T2_ = (bounds.Field1 == (NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_8)); if (!(T2_)) goto LA3_;
|
|
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if ((NU)(bounds.Field0) >= (NU)(x_0 ? x_0->Sup.len : 0)){ raiseIndexError2(bounds.Field0,(x_0 ? x_0->Sup.len : 0)-1); } T2_ = ((NU8)(x_0->data[bounds.Field0]) == (NU8)(46)); LA3_: ;
|
|
T1_ = T2_; if (!(T1_)) goto LA4_;
|
|
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (nimAddInt(bounds.Field0, ((NI) 1), &TM__DfU0iuayCGwHDN1Exp9cbKg_9)) { raiseOverflow(); }; if ((NU)((NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_9)) >= (NU)(x_0 ? x_0->Sup.len : 0)){ raiseIndexError2((NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_9),(x_0 ? x_0->Sup.len : 0)-1); } T1_ = ((NU8)(x_0->data[(NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_9)]) == (NU8)(46)); LA4_: ;
|
|
result = T1_; 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 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isDot__Sl9c33djPmHfV9bnZbQf0QBw_3)(NimStringDesc* x_0, tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ bounds) { NIM_BOOL result; NIM_BOOL T1_; result = (NIM_BOOL)0;
|
|
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T1_ = (NIM_BOOL)0;
|
|
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T1_ = (bounds.Field1 == bounds.Field0); if (!(T1_)) goto LA2_;
|
|
|
|
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if ((NU)(bounds.Field0) >= (NU)(x_0 ? x_0->Sup.len : 0)){ raiseIndexError2(bounds.Field0,(x_0 ? x_0->Sup.len : 0)-1); } T1_ = ((NU8)(x_0->data[bounds.Field0]) == (NU8)(46)); LA2_: ;
|
|
result = T1_; return result;}
|
|
|
|
#line 59 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, addNormalizePath__bx9csIXjBBeHkYSkIUixO1g)(NimStringDesc* x_0, NimStringDesc** result, NI* state_0, NIM_CHAR dirSep) { tyObject_PathIter__tllF14xUpDWpqG9ci5sg9bMg it; nimZeroMem((void*)(&it), sizeof(tyObject_PathIter__tllF14xUpDWpqG9ci5sg9bMg));
|
|
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
it.notFirst = (((NI) 0) < (NI)((NI64)((*state_0)) >> (NU64)(((NI) 1))));
|
|
#line 67 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
{ if (!it.notFirst) goto LA3_;
|
|
{
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
while (1) { NIM_BOOL T7_; NI TM__DfU0iuayCGwHDN1Exp9cbKg_2;
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T7_ = (NIM_BOOL)0;
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T7_ = (it.i < (x_0 ? x_0->Sup.len : 0)); if (!(T7_)) goto LA8_;
|
|
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if ((NU)(it.i) >= (NU)(x_0 ? x_0->Sup.len : 0)){ raiseIndexError2(it.i,(x_0 ? x_0->Sup.len : 0)-1); } T7_ = (((NU8)(x_0->data[it.i])) == ((NU8)(47)) || ((NU8)(x_0->data[it.i])) == ((NU8)(47))); LA8_: ;
|
|
if (!T7_) goto LA6;
|
|
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (nimAddInt(it.i, ((NI) 1), &TM__DfU0iuayCGwHDN1Exp9cbKg_2)) { raiseOverflow(); }; it.i = (NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_2); } LA6: ;
|
|
}
|
|
}
|
|
LA3_: ;
|
|
{
|
|
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
while (1) { NIM_BOOL T11_; tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ b;
|
|
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T11_ = (NIM_BOOL)0; T11_ = hasNext__ecfBf9bSnUlnf5OQ0NQMxpQ(it, x_0); if (!T11_) goto LA10;
|
|
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
b = next__am1q4dBd9cls9au5CcmkX5oA((&it), x_0);
|
|
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
{ NIM_BOOL T14_;
|
|
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T14_ = (NIM_BOOL)0;
|
|
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T14_ = ((NI)((NI64)((*state_0)) >> (NU64)(((NI) 1))) == ((NI) 0)); if (!(T14_)) goto LA15_;
|
|
|
|
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T14_ = isSlash__Sl9c33djPmHfV9bnZbQf0QBw(x_0, b); LA15_: ;
|
|
if (!T14_) goto LA16_;
|
|
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
{ NIM_BOOL T20_; NIM_CHAR T22_;
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T20_ = (NIM_BOOL)0;
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T20_ = (((*result) ? (*result)->Sup.len : 0) == ((NI) 0)); if (T20_) goto LA21_;
|
|
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T22_ = (NIM_CHAR)0; T22_ = X5BX5D___okzHJ6GE9cv0bYG3b4r5KCAsystem((*result), ((NI) 1)); T20_ = !((((NU8)(T22_)) == ((NU8)(47)) || ((NU8)(T22_)) == ((NU8)(47)))); LA21_: ;
|
|
if (!T20_) goto LA23_;
|
|
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
unsureAsgnRef((void**) (&(*result)), addChar((*result), dirSep)); }
|
|
LA23_: ;
|
|
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
(*state_0) = (NI)((*state_0) | ((NI) 1)); }
|
|
goto LA12_;
|
|
LA16_: ;
|
|
{ NIM_BOOL T26_;
|
|
#line 75 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 75 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T26_ = (NIM_BOOL)0; T26_ = isDotDot__Sl9c33djPmHfV9bnZbQf0QBw_2(x_0, b); if (!T26_) goto LA27_;
|
|
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
{ NI d;
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (!(((NI) 1) <= (NI)((NI64)((*state_0)) >> (NU64)(((NI) 1))))) goto LA31_;
|
|
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
d = ((*result) ? (*result)->Sup.len : 0); {
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
while (1) { NIM_BOOL T35_; NI TM__DfU0iuayCGwHDN1Exp9cbKg_10; NI TM__DfU0iuayCGwHDN1Exp9cbKg_11; NI TM__DfU0iuayCGwHDN1Exp9cbKg_12;
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T35_ = (NIM_BOOL)0;
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (nimSubInt(d, ((NI) 1), &TM__DfU0iuayCGwHDN1Exp9cbKg_10)) { raiseOverflow(); }; T35_ = ((NI)((*state_0) & ((NI) 1)) < (NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_10)); if (!(T35_)) goto LA36_;
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (nimSubInt(d, ((NI) 1), &TM__DfU0iuayCGwHDN1Exp9cbKg_11)) { raiseOverflow(); }; if ((NU)((NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_11)) >= (NU)((*result) ? (*result)->Sup.len : 0)){ raiseIndexError2((NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_11),((*result) ? (*result)->Sup.len : 0)-1); } T35_ = !((((NU8)((*result)->data[(NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_11)])) == ((NU8)(47)) || ((NU8)((*result)->data[(NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_11)])) == ((NU8)(47)))); LA36_: ;
|
|
if (!T35_) goto LA34;
|
|
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (nimSubInt(d, ((NI) 1), &TM__DfU0iuayCGwHDN1Exp9cbKg_12)) { raiseOverflow(); }; d = (NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_12); } LA34: ;
|
|
}
|
|
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
{ NI TM__DfU0iuayCGwHDN1Exp9cbKg_13; NI TM__DfU0iuayCGwHDN1Exp9cbKg_14;
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (!(((NI) 0) < d)) goto LA39_;
|
|
|
|
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (nimSubInt(d, ((NI) 1), &TM__DfU0iuayCGwHDN1Exp9cbKg_13)) { raiseOverflow(); }; if (((NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_13)) < ((NI) 0) || ((NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_13)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_13), ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*result)), setLengthStr((*result), ((NI) ((NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_13)))));
|
|
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (nimSubInt((*state_0), ((NI) 2), &TM__DfU0iuayCGwHDN1Exp9cbKg_14)) { raiseOverflow(); }; (*state_0) = (NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_14); }
|
|
LA39_: ;
|
|
}
|
|
goto LA29_;
|
|
LA31_: ;
|
|
{ NimStringDesc* T49_;
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
{ NIM_BOOL T44_; NIM_CHAR T46_;
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T44_ = (NIM_BOOL)0;
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T44_ = (((NI) 0) < ((*result) ? (*result)->Sup.len : 0)); if (!(T44_)) goto LA45_;
|
|
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T46_ = (NIM_CHAR)0; T46_ = X5BX5D___okzHJ6GE9cv0bYG3b4r5KCAsystem((*result), ((NI) 1)); T44_ = !((((NU8)(T46_)) == ((NU8)(47)) || ((NU8)(T46_)) == ((NU8)(47)))); LA45_: ;
|
|
if (!T44_) goto LA47_;
|
|
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
unsureAsgnRef((void**) (&(*result)), addChar((*result), dirSep)); }
|
|
LA47_: ;
|
|
|
|
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T49_ = (NimStringDesc*)0; T49_ = substr__2yh9cer0ymNRHlOOg8P7IuA(x_0, b.Field0, b.Field1); unsureAsgnRef((void**) (&(*result)), resizeString((*result), (T49_ ? T49_->Sup.len : 0) + 0));appendString((*result), T49_); }
|
|
LA29_: ;
|
|
}
|
|
goto LA12_;
|
|
LA27_: ;
|
|
{ NIM_BOOL T51_;
|
|
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T51_ = (NIM_BOOL)0; T51_ = isDot__Sl9c33djPmHfV9bnZbQf0QBw_3(x_0, b); if (!T51_) goto LA52_;
|
|
}
|
|
goto LA12_;
|
|
LA52_: ;
|
|
{ NimStringDesc* T64_; NI TM__DfU0iuayCGwHDN1Exp9cbKg_15;
|
|
#line 95 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (!(b.Field0 <= b.Field1)) goto LA55_;
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
{ NIM_BOOL T59_; NIM_CHAR T61_;
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T59_ = (NIM_BOOL)0;
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T59_ = (((NI) 0) < ((*result) ? (*result)->Sup.len : 0)); if (!(T59_)) goto LA60_;
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T61_ = (NIM_CHAR)0; T61_ = X5BX5D___okzHJ6GE9cv0bYG3b4r5KCAsystem((*result), ((NI) 1)); T59_ = !((((NU8)(T61_)) == ((NU8)(47)) || ((NU8)(T61_)) == ((NU8)(47)))); LA60_: ;
|
|
if (!T59_) goto LA62_;
|
|
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
unsureAsgnRef((void**) (&(*result)), addChar((*result), dirSep)); }
|
|
LA62_: ;
|
|
|
|
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T64_ = (NimStringDesc*)0; T64_ = substr__2yh9cer0ymNRHlOOg8P7IuA(x_0, b.Field0, b.Field1); unsureAsgnRef((void**) (&(*result)), resizeString((*result), (T64_ ? T64_->Sup.len : 0) + 0));appendString((*result), T64_);
|
|
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
if (nimAddInt((*state_0), ((NI) 2), &TM__DfU0iuayCGwHDN1Exp9cbKg_15)) { raiseOverflow(); }; (*state_0) = (NI)(TM__DfU0iuayCGwHDN1Exp9cbKg_15); }
|
|
goto LA12_;
|
|
LA55_: ;
|
|
LA12_: ;
|
|
} LA10: ;
|
|
}
|
|
|
|
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
{ NIM_BOOL T67_;
|
|
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T67_ = (NIM_BOOL)0;
|
|
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T67_ = (((*result) ? (*result)->Sup.len : 0) == 0); if (!(T67_)) goto LA68_;
|
|
|
|
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
|
|
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
T67_ = !(((x_0 ? x_0->Sup.len : 0) == 0)); LA68_: ;
|
|
if (!T67_) goto LA69_;
|
|
|
|
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/pathnorm.nim"
|
|
unsureAsgnRef((void**) (&(*result)), copyString(((NimStringDesc*) &TM__DfU0iuayCGwHDN1Exp9cbKg_16))); }
|
|
LA69_: ;
|
|
}
|