mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 17:35:45 +00:00
334 lines
23 KiB
C
334 lines
23 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-bearssl/bearssl/certs -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/examples/v2 -o nimcache/release/chat2/@m..@s..@svendor@snim-stint@sstint@sio.nim.c.o nimcache/release/chat2/@m..@s..@svendor@snim-stint@sstint@sio.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_StUint__zk9cGwjKuqNvWysDWG2FjHg tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg;
|
|
typedef struct tyTuple__klovsnr9bshhDuR7kVSkbWQ tyTuple__klovsnr9bshhDuR7kVSkbWQ;
|
|
typedef struct tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA;
|
|
typedef struct tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g;
|
|
typedef struct tyTuple__cEA2BnesWvD8MYdhMKmxgg tyTuple__cEA2BnesWvD8MYdhMKmxgg;
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
struct tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g {NU64 lo;
|
|
NU64 hi;
|
|
};
|
|
struct tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA {tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g lo;
|
|
tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g hi;
|
|
};
|
|
struct tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg {tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA data;
|
|
};
|
|
struct tyTuple__klovsnr9bshhDuR7kVSkbWQ {
|
|
tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg Field0;
|
|
tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg Field1;
|
|
};
|
|
struct tyTuple__cEA2BnesWvD8MYdhMKmxgg {
|
|
tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA Field0;
|
|
tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA Field1;
|
|
};
|
|
typedef NU8 tyArray__vEOa9c5qaE9ajWxR5R4zwfQg[32];
|
|
static N_INLINE(tyTuple__klovsnr9bshhDuR7kVSkbWQ, divmod__fNjZ05xTKdqHi4aRUWuQ3Aintops)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* x_0, tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* y_0);
|
|
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(tyTuple__cEA2BnesWvD8MYdhMKmxgg, divmod__pWdXtdF9alC1QLZFoh8MYSg)(tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA* x_0, tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA* y_0);
|
|
static N_INLINE(NI, truncate__9byOvvCmfihmXYVoSe9bWbVQio)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* num);
|
|
static N_INLINE(NU64, leastSignificantWord__3g3pYYNzHmIAepLzAPp16gdatatypes)(tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA* num);
|
|
static N_INLINE(NU64, leastSignificantWord__HJt9ciWn55pfK69b0rq7CBXgdatatypes)(tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g num);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
|
|
static N_INLINE(NIM_BOOL, isZero__IFUGdgCzqXbj8AcP9c8gBHgintops)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* x_0);
|
|
static N_INLINE(NIM_BOOL, isZero__hHCuOZEP3SZNWlqnu0VGGguint_comparison)(tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA* n_0);
|
|
static N_INLINE(NIM_BOOL, isZero__Yu9aLkQ9cLhL5VwnNUuyAvKQuint_comparison)(tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g n_0);
|
|
static N_INLINE(NIM_BOOL, isZero__bitbVizNc3i9cchE5bo9acoAuint_comparison)(NU64 n_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, reverse__ZFWXZRLpsKFl2OzCm4rOZA)(NIM_CHAR* a, NI aLen_0);
|
|
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
|
|
static NIM_CONST tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg TM__d1Pef9b9cZdJdof7yqOnqQhA_2 = {{{16ULL, 0ULL}
|
|
, {0ULL, 0ULL}
|
|
}
|
|
}
|
|
;
|
|
STRING_LITERAL(TM__d1Pef9b9cZdJdof7yqOnqQhA_3, "0123456789abcdef", 16);
|
|
|
|
#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 70 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
static N_INLINE(tyTuple__klovsnr9bshhDuR7kVSkbWQ, divmod__fNjZ05xTKdqHi4aRUWuQ3Aintops)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* x_0, tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* y_0) { tyTuple__klovsnr9bshhDuR7kVSkbWQ result; tyTuple__cEA2BnesWvD8MYdhMKmxgg _; nimZeroMem((void*)(&result), sizeof(tyTuple__klovsnr9bshhDuR7kVSkbWQ));
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
_ = divmod__pWdXtdF9alC1QLZFoh8MYSg((&(*x_0).data), (&(*y_0).data));
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
result.Field0.data = _.Field0;
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
result.Field1.data = _.Field1; return result;}
|
|
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/datatypes.nim"
|
|
static N_INLINE(NU64, leastSignificantWord__HJt9ciWn55pfK69b0rq7CBXgdatatypes)(tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g num) { NU64 result; result = (NU64)0;
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/datatypes.nim"
|
|
result = num.lo; return result;}
|
|
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/datatypes.nim"
|
|
static N_INLINE(NU64, leastSignificantWord__3g3pYYNzHmIAepLzAPp16gdatatypes)(tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA* num) { NU64 result; result = (NU64)0;
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/datatypes.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/datatypes.nim"
|
|
result = leastSignificantWord__HJt9ciWn55pfK69b0rq7CBXgdatatypes((*num).lo); return result;}
|
|
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
static N_INLINE(NI, truncate__9byOvvCmfihmXYVoSe9bWbVQio)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* num) { NI result; NU64 T1_; result = (NI)0;
|
|
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
T1_ = (NU64)0; T1_ = leastSignificantWord__3g3pYYNzHmIAepLzAPp16gdatatypes((&(*num).data)); result = ((NI) (T1_)); return result;}
|
|
|
|
#line 12 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
static N_INLINE(NIM_BOOL, isZero__bitbVizNc3i9cchE5bo9acoAuint_comparison)(NU64 n_0) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
result = (n_0 == 0ULL); return result;}
|
|
|
|
#line 15 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
static N_INLINE(NIM_BOOL, isZero__Yu9aLkQ9cLhL5VwnNUuyAvKQuint_comparison)(tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g n_0) { NIM_BOOL result; NIM_BOOL T1_; result = (NIM_BOOL)0;
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
T1_ = (NIM_BOOL)0;
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
T1_ = isZero__bitbVizNc3i9cchE5bo9acoAuint_comparison(n_0.hi); if (!(T1_)) goto LA2_;
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
T1_ = isZero__bitbVizNc3i9cchE5bo9acoAuint_comparison(n_0.lo); LA2_: ;
|
|
result = T1_; return result;}
|
|
|
|
#line 15 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
static N_INLINE(NIM_BOOL, isZero__hHCuOZEP3SZNWlqnu0VGGguint_comparison)(tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA* n_0) { NIM_BOOL result; NIM_BOOL T1_; result = (NIM_BOOL)0;
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
T1_ = (NIM_BOOL)0;
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
T1_ = isZero__Yu9aLkQ9cLhL5VwnNUuyAvKQuint_comparison((*n_0).hi); if (!(T1_)) goto LA2_;
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
T1_ = isZero__Yu9aLkQ9cLhL5VwnNUuyAvKQuint_comparison((*n_0).lo); LA2_: ;
|
|
result = T1_; return result;}
|
|
|
|
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
static N_INLINE(NIM_BOOL, isZero__IFUGdgCzqXbj8AcP9c8gBHgintops)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* x_0) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
|
|
#line 95 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
|
|
#line 95 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
result = isZero__hHCuOZEP3SZNWlqnu0VGGguint_comparison((&(*x_0).data)); return result;}
|
|
|
|
#line 309 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toString__X5fc87ECNWuekn9cp59cplTw)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* num) { NimStringDesc* result; tyTuple__klovsnr9bshhDuR7kVSkbWQ T1_; tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg q_1; tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg r; result = (NimStringDesc*)0;
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
result = ((NimStringDesc*) NIM_NIL);
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
T1_ = divmod__fNjZ05xTKdqHi4aRUWuQ3Aintops(num, (&TM__d1Pef9b9cZdJdof7yqOnqQhA_2)); q_1 = T1_.Field0; r = T1_.Field1; {
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
while (1) { NI T4_; tyTuple__klovsnr9bshhDuR7kVSkbWQ _;
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
T4_ = (NI)0; T4_ = truncate__9byOvvCmfihmXYVoSe9bWbVQio((&r)); if ((NU)(T4_) >= (NU)(((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3) ? ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3)->Sup.len : 0)){ raiseIndexError2(T4_,(((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3) ? ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3)->Sup.len : 0)-1); } result = addChar(result, ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3)->data[T4_]);
|
|
#line 329 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
{ NIM_BOOL T7_;
|
|
#line 329 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 329 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isZero__IFUGdgCzqXbj8AcP9c8gBHgintops((&q_1)); if (!T7_) goto LA8_;
|
|
|
|
#line 330 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
goto LA2;
|
|
}
|
|
LA8_: ;
|
|
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
_ = divmod__fNjZ05xTKdqHi4aRUWuQ3Aintops((&q_1), (&TM__d1Pef9b9cZdJdof7yqOnqQhA_2));
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
q_1 = _.Field0;
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
r = _.Field1; }
|
|
} LA2: ;
|
|
|
|
#line 333 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 333 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
reverse__ZFWXZRLpsKFl2OzCm4rOZA(result->data, (result ? result->Sup.len : 0));
|
|
return result;}
|
|
|
|
#line 492 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, toByteArrayBE__15Qm7fj0jAFrpK3KhqggUg)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* n_0, tyArray__vEOa9c5qaE9ajWxR5R4zwfQg Result) { NU8* __restrict n_ptr; chckNil((void*)Result); nimZeroMem((void*)Result, sizeof(tyArray__vEOa9c5qaE9ajWxR5R4zwfQg));
|
|
#line 512 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
n_ptr = ((NU8*) (n_0)); { NI i; NI i_2; i = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__d1Pef9b9cZdJdof7yqOnqQhA_4; NI TM__d1Pef9b9cZdJdof7yqOnqQhA_5;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < ((NI) 32))) goto LA3;
|
|
|
|
#line 513 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
i = i_2;
|
|
#line 514 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
if (nimSubInt(((NI) 31), i, &TM__d1Pef9b9cZdJdof7yqOnqQhA_4)) { raiseOverflow(); }; if ((NU)((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_4)) > (NU)(31)){ raiseIndexError2((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_4), 31); }
|
|
#line 514 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
if ((NU)(i) > (NU)(31)){ raiseIndexError2(i, 31); } Result[((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_4))- 0] = n_ptr[(i)- 0];
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__d1Pef9b9cZdJdof7yqOnqQhA_5)) { raiseOverflow(); }; i_2 = (NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_5); } LA3: ;
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 468 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, significantBytesBE__7UBUmnE9bSrKAdHlP7wI9aEw)(NU8* val_0, NI val_0Len_0) { NI result;{ result = (NI)0; { NI i; NI colontmp_; NI i_2; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 472 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 472 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
colontmp_ = val_0Len_0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__d1Pef9b9cZdJdof7yqOnqQhA_7;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < colontmp_)) goto LA3;
|
|
|
|
#line 472 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
i = i_2;
|
|
#line 473 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
{ NI TM__d1Pef9b9cZdJdof7yqOnqQhA_6;
|
|
#line 473 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 473 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
if ((NU)(i) >= (NU)(val_0Len_0)){ raiseIndexError2(i,val_0Len_0-1); } if (!!((val_0[i] == ((NU8) 0)))) goto LA6_;
|
|
|
|
#line 474 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 474 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 474 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 474 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
if (nimSubInt(val_0Len_0, i, &TM__d1Pef9b9cZdJdof7yqOnqQhA_6)) { raiseOverflow(); }; result = (NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_6); goto BeforeRet_;
|
|
}
|
|
LA6_: ;
|
|
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__d1Pef9b9cZdJdof7yqOnqQhA_7)) { raiseOverflow(); }; i_2 = (NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_7); } LA3: ;
|
|
}
|
|
}
|
|
|
|
#line 475 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 475 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
result = ((NI) 1); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 382 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dumpHex__9byTYUMkpqr9ceGL6b42tekA)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* x_0) { NimStringDesc* result; NU8* __restrict bytes; result = (NimStringDesc*)0;
|
|
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
result = mnewString(((NI) 64));
|
|
#line 411 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
bytes = ((NU8*) (x_0)); { NI i; NI i_2; i = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__d1Pef9b9cZdJdof7yqOnqQhA_8; NI TM__d1Pef9b9cZdJdof7yqOnqQhA_9; NI TM__d1Pef9b9cZdJdof7yqOnqQhA_10; NI TM__d1Pef9b9cZdJdof7yqOnqQhA_11; NI TM__d1Pef9b9cZdJdof7yqOnqQhA_12; NI TM__d1Pef9b9cZdJdof7yqOnqQhA_13;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < ((NI) 32))) goto LA3;
|
|
|
|
#line 413 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
i = i_2;
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
if (nimMulInt(((NI) 2), i, &TM__d1Pef9b9cZdJdof7yqOnqQhA_8)) { raiseOverflow(); }; if ((NU)((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_8)) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_8),(result ? result->Sup.len : 0)-1); }
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
if (nimSubInt(((NI) 31), i, &TM__d1Pef9b9cZdJdof7yqOnqQhA_9)) { raiseOverflow(); }; if ((NU)((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_9)) > (NU)(31)){ raiseIndexError2((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_9), 31); } if ((NU)((NU8)((NU8)((NU8)(bytes[((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_9))- 0]) >> (NU64)(((NI) 4))) & ((NU8) 15))) >= (NU)(((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3) ? ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3)->Sup.len : 0)){ raiseIndexError2((NU8)((NU8)((NU8)(bytes[((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_9))- 0]) >> (NU64)(((NI) 4))) & ((NU8) 15)),(((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3) ? ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3)->Sup.len : 0)-1); } result->data[(NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_8)] = ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3)->data[(NU8)((NU8)((NU8)(bytes[((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_9))- 0]) >> (NU64)(((NI) 4))) & ((NU8) 15))];
|
|
#line 419 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 419 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
if (nimMulInt(((NI) 2), i, &TM__d1Pef9b9cZdJdof7yqOnqQhA_10)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_10), ((NI) 1), &TM__d1Pef9b9cZdJdof7yqOnqQhA_11)) { raiseOverflow(); }; if ((NU)((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_11)) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_11),(result ? result->Sup.len : 0)-1); }
|
|
#line 419 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 419 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 419 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
if (nimSubInt(((NI) 31), i, &TM__d1Pef9b9cZdJdof7yqOnqQhA_12)) { raiseOverflow(); }; if ((NU)((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_12)) > (NU)(31)){ raiseIndexError2((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_12), 31); } if ((NU)((NU8)(bytes[((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_12))- 0] & ((NU8) 15))) >= (NU)(((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3) ? ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3)->Sup.len : 0)){ raiseIndexError2((NU8)(bytes[((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_12))- 0] & ((NU8) 15)),(((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3) ? ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3)->Sup.len : 0)-1); } result->data[(NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_11)] = ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_3)->data[(NU8)(bytes[((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_12))- 0] & ((NU8) 15))];
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__d1Pef9b9cZdJdof7yqOnqQhA_13)) { raiseOverflow(); }; i_2 = (NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_13); } LA3: ;
|
|
}
|
|
}
|
|
return result;}
|