/* 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_random.nim.c.o nimcache/release/wakubridge/stdlib_random.nim.c */ #define NIM_INTBITS 64 #include "nimbase.h" #include #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(x, y) #define nimln_(x, y) typedef struct tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A; typedef struct tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ; typedef struct tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw; typedef struct tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA; typedef struct tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg; typedef struct tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA; typedef struct tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g; typedef struct tySequence__Wq0ZcI6MO5RSp6EwbCW5fA tySequence__Wq0ZcI6MO5RSp6EwbCW5fA; typedef struct tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA; typedef struct tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg; typedef struct tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw; typedef struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA; typedef struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ; typedef struct tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA; typedef struct tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA; struct tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A {NU64 a0; NU64 a1; }; struct tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q {NI64 seconds; NI nanosecond; }; struct TGenericSeq {NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE]; }; typedef NU8 tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ; typedef NI64 tyArray__pDfjTbtkTNjmi9bTcaNV32Q[8]; 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 tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA {tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg istart; tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg iend; tySequence__Wq0ZcI6MO5RSp6EwbCW5fA* nodes; tySequence__Wq0ZcI6MO5RSp6EwbCW5fA* replacementCache; NF lastUpdated; }; struct tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA {NI a; NI b; }; typedef NU8 tyArray__w5VB8h5K8DB3oWrO5U2wqg[64]; struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ {tyArray__w5VB8h5K8DB3oWrO5U2wqg data; }; struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA {tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ data; }; typedef NU8 tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA; typedef NU8 tyArray__qtqsWM5aXmcpMIVmvq3kAA[16]; typedef NU8 tyArray__H8qf9bpC2ziYA2earmO8m7w[4]; struct tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA {tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA family; union{ struct {tyArray__qtqsWM5aXmcpMIVmvq3kAA address_v6; } _family_1; struct {tyArray__H8qf9bpC2ziYA2earmO8m7w address_v4; } _family_2; }; }; struct tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA {tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA ip; NU16 udpPort; NU16 tcpPort; }; struct tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw {tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA pubkey; tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA address; }; struct tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg {tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw node; tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg id; }; struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};struct tySequence__Wq0ZcI6MO5RSp6EwbCW5fA { TGenericSeq Sup; tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg* data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q, getTime__h20mpqrwsumk6J9bRdCm6IQ)(void); N_LIB_PRIVATE N_NIMCALL(void, randomize__9bkKNJLf9bw20lvR7m7LtpUA)(NI64 seed); N_LIB_PRIVATE N_NIMCALL(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A, initRand__9aqfye0529cpt9ccBCwRCQgGQ)(NI64 seed); static N_INLINE(void, nimZeroMem)(void* p, NI size); static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size); N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); N_LIB_PRIVATE N_NIMCALL(NU64, next__uKPilSLGUBbsncNO5ljzag)(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A* r); N_LIB_PRIVATE N_NIMCALL(NU64, rotl__I9aS29bnItunNBhkLW9cSr3SA)(NU64 x, NU64 k); static N_INLINE(NI64, convert__2z1a0DRE31bT73xgVvBfQAtimes)(tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ unitFrom, tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ unitTo, NI64 quantity); N_LIB_PRIVATE N_NOINLINE(void, raiseDivByZero)(void); static N_INLINE(NIM_BOOL, nimDivInt64)(NI64 a, NI64 b, NI64* res); N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void); N_LIB_PRIVATE N_NIMCALL(NI64, toUnix__mXmxlr1pBpariZiJTjytHg)(tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q t); N_LIB_PRIVATE N_NIMCALL(NI, nanosecond__w9bWusm7fy39b4s5K9azEA0RA)(tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q time); N_LIB_PRIVATE N_NIMCALL(NF, rand__Ln7Vq2z8NofZIhmklcJO9bg)(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A* r, NF max); N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorF)(NF i, NF a, NF b); N_LIB_PRIVATE N_NIMCALL(void, shuffle__okICJB7yyEczQCSYXVlJiQ)(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A* r, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** x_0, NI x_0Len_0); N_LIB_PRIVATE N_NIMCALL(NI, rand__SN9aVN0MBPaaBWhJdtZLhNA)(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A* r, NI max); N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b); N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n); N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src); N_LIB_PRIVATE N_NIMCALL(void, shuffle__xZRKNe6YzIK3ZR2f11OUGQ)(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A* r, tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw** x_0, NI x_0Len_0); N_LIB_PRIVATE N_NIMCALL(NI, rand__iSDgimHDDUMUicLeecY8EQ)(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x_0); N_LIB_PRIVATE N_NIMCALL(NI, rand__et2jtRpfGpLGPU9a0iZnLrw)(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A* r, tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x_0); static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___BokNSDrKN1xmV1nA01G9brAsystem)(NI a, NI b); N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p); STRING_LITERAL(TM__AIKkgex03Z1j45JceakCTA_2, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/" "vendor/Nim/lib/pure/random.nim(572, 12) `seed != 0` ", 115); extern NIM_CONST tyArray__pDfjTbtkTNjmi9bTcaNV32Q unitWeights__cpugRVHYEC9bUpLa71eZMsQ; N_LIB_PRIVATE tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A state__4atHrcHUZPts5LqH9bzbl0w = {7616934476015405061ULL, 15122295919272093642ULL} ; #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 121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(NU64, rotl__I9aS29bnItunNBhkLW9cSr3SA)(NU64 x, NU64 k) { NU64 result; result = (NU64)0; #line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" result = (NU64)((NU64)((NU64)(x) << (NU64)(k)) | (NU64)((NU64)(x) >> (NU64)((NU64)((NU64)(64ULL) - (NU64)(k))))); return result;} #line 124 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(NU64, next__uKPilSLGUBbsncNO5ljzag)(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A* r) { NU64 result; NU64 s0; NU64 s1; NU64 T1_; result = (NU64)0; #line 139 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" s0 = (*r).a0; #line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" s1 = (*r).a1; #line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 141 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" result = (NU64)((NU64)(s0) + (NU64)(s1)); #line 142 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 142 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" s1 = (NU64)(s1 ^ s0); #line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" T1_ = (NU64)0; T1_ = rotl__I9aS29bnItunNBhkLW9cSr3SA(s0, 55ULL); #line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" (*r).a0 = (NU64)((NU64)(T1_ ^ s1) ^ (NU64)((NU64)(s1) << (NU64)(((NI) 14)))); #line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" (*r).a1 = rotl__I9aS29bnItunNBhkLW9cSr3SA(s1, 36ULL); return result;} #line 551 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A, initRand__9aqfye0529cpt9ccBCwRCQgGQ)(NI64 seed) { tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A result; NU64 T5_; nimZeroMem((void*)(&result), sizeof(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A)); #line 572 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" { #line 572 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 572 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 572 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" if (!!(!((seed == IL64(0))))) goto LA3_; #line 572 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 572 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__AIKkgex03Z1j45JceakCTA_2)); } LA3_: ; #line 573 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 573 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" result.a0 = ((NU64) ((NI64)((NI64)(seed) >> (NU64)(((NI) 16))))); #line 574 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 574 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" result.a1 = ((NU64) ((NI64)(seed & IL64(65535)))); #line 575 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 575 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 575 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" T5_ = (NU64)0; T5_ = next__uKPilSLGUBbsncNO5ljzag((&result)); (void)(T5_); return result;} #line 577 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(void, randomize__9bkKNJLf9bw20lvR7m7LtpUA)(NI64 seed) { #line 593 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 593 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" state__4atHrcHUZPts5LqH9bzbl0w = initRand__9aqfye0529cpt9ccBCwRCQgGQ(seed);} #line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim" static N_INLINE(NIM_BOOL, nimDivInt64)(NI64 a, NI64 b, NI64* res) { NIM_BOOL result; result = (NIM_BOOL)0; #line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim" { NIM_BOOL T3_; #line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim" T3_ = (NIM_BOOL)0; #line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim" T3_ = (a == (IL64(-9223372036854775807) - IL64(1))); if (!(T3_)) goto LA4_; #line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim" T3_ = (b == IL64(-1)); LA4_: ; if (!T3_) goto LA5_; #line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim" result = NIM_TRUE; } goto LA1_; LA5_: ; { #line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim" #line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim" (*res) = (NI64)(a / b); } LA1_: ; return result;} #line 449 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim" static N_INLINE(NI64, convert__2z1a0DRE31bT73xgVvBfQAtimes)(tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ unitFrom, tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ unitTo, NI64 quantity) { NI64 result; result = (NI64)0; #line 451 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim" #line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim" { NI64 TM__AIKkgex03Z1j45JceakCTA_3; NI64 TM__AIKkgex03Z1j45JceakCTA_4; #line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim" if (!(unitFrom < unitTo)) goto LA3_; #line 458 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim" #line 458 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim" if (unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitFrom)- 0] == 0){ raiseDivByZero(); } if (nimDivInt64(unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitTo)- 0], unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitFrom)- 0], &TM__AIKkgex03Z1j45JceakCTA_3)) { raiseOverflow(); }; if ((NI64)(TM__AIKkgex03Z1j45JceakCTA_3) == 0){ raiseDivByZero(); } if (nimDivInt64(quantity, (NI64)(TM__AIKkgex03Z1j45JceakCTA_3), &TM__AIKkgex03Z1j45JceakCTA_4)) { raiseOverflow(); }; result = (NI64)(TM__AIKkgex03Z1j45JceakCTA_4); } goto LA1_; LA3_: ; { NI64 TM__AIKkgex03Z1j45JceakCTA_5; NI64 TM__AIKkgex03Z1j45JceakCTA_6; #line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim" #line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim" if (unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitTo)- 0] == 0){ raiseDivByZero(); } if (nimDivInt64(unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitFrom)- 0], unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitTo)- 0], &TM__AIKkgex03Z1j45JceakCTA_5)) { raiseOverflow(); }; if (nimMulInt64((NI64)(TM__AIKkgex03Z1j45JceakCTA_5), quantity, &TM__AIKkgex03Z1j45JceakCTA_6)) { raiseOverflow(); }; result = (NI64)(TM__AIKkgex03Z1j45JceakCTA_6); } LA1_: ; return result;} #line 631 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(void, randomize__JYHVSm4CtuuZW3MM2Ut4bQ)(void) { tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q now; NI64 T1_; NI64 T2_; NI T3_; NI64 TM__AIKkgex03Z1j45JceakCTA_7; #line 648 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 648 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" now = getTime__h20mpqrwsumk6J9bRdCm6IQ(); #line 649 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 649 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 649 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 649 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 649 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" T1_ = (NI64)0; T1_ = toUnix__mXmxlr1pBpariZiJTjytHg(now); #line 649 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" T2_ = (NI64)0; T2_ = convert__2z1a0DRE31bT73xgVvBfQAtimes(((tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ) 3), ((tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ) 0), T1_); #line 649 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 649 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" T3_ = (NI)0; T3_ = nanosecond__w9bWusm7fy39b4s5K9azEA0RA(now); if (nimAddInt64(T2_, ((NI64) (T3_)), &TM__AIKkgex03Z1j45JceakCTA_7)) { raiseOverflow(); }; #line 649 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" randomize__9bkKNJLf9bw20lvR7m7LtpUA((NI64)(TM__AIKkgex03Z1j45JceakCTA_7)); } #line 275 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(NF, rand__Ln7Vq2z8NofZIhmklcJO9bg)(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A* r, NF max) { NF result; NU64 x; NU64 u; union { NU64 source; NF dest; } LOC1; result = (NF)0; #line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" x = next__uKPilSLGUBbsncNO5ljzag(r); #line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" u = (NU64)(4607182418800017408ULL | (NU64)((NU64)(x) >> (NU64)(12ULL))); #line 294 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 294 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 294 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" LOC1.source = u; result = ((NF)(((NF)(LOC1.dest) - (NF)(1.0000000000000000e+00))) * (NF)(((NF) (max)))); return result;} #line 296 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(NF, rand__dkCsfTGOZrza5peBrYOGxQ)(NF max) { NF result; result = (NF)0; #line 297 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 315 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" if ((max) < 0.0 || (max) > INF){ raiseRangeErrorF(max, 0.0, INF); } #line 315 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" result = rand__Ln7Vq2z8NofZIhmklcJO9bg((&state__4atHrcHUZPts5LqH9bzbl0w), ((NF) (max))); return result;} #line 233 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(NI, rand__SN9aVN0MBPaaBWhJdtZLhNA)(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A* r, NI max) { NI result;{ result = (NI)0; #line 247 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" { #line 247 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" if (!(((NI) (max)) == ((NI) 0))) goto LA3_; #line 247 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" goto BeforeRet_; } LA3_: ; { #line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" while (1) { NU64 x_1; #line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" x_1 = next__uKPilSLGUBbsncNO5ljzag(r); #line 250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" { #line 250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 250 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" if (!((NU64)(x_1) <= (NU64)((NU64)((NU64)(18446744073709551615ULL) - (NU64)((NU64)((NU64)(18446744073709551615ULL) % (NU64)(((NU64) (max))))))))) goto LA9_; #line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" if ((NI64)((NU64)((NU64)(x_1) % (NU64)((NU64)((NU64)(((NU64) (max))) + (NU64)(1ULL))))) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)((NU64)((NU64)(x_1) % (NU64)((NU64)((NU64)(((NU64) (max))) + (NU64)(1ULL))))) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NU64)((NU64)(x_1) % (NU64)((NU64)((NU64)(((NU64) (max))) + (NU64)(1ULL)))), ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } result = ((NI) ((NU64)((NU64)(x_1) % (NU64)((NU64)((NU64)(((NU64) (max))) + (NU64)(1ULL)))))); goto BeforeRet_; } LA9_: ; } } }BeforeRet_: ; return result;} #line 595 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(void, shuffle__okICJB7yyEczQCSYXVlJiQ)(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A* r, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** x_0, NI x_0Len_0) { { NI i; NI colontmp_; NI res; i = (NI)0; colontmp_ = (NI)0; #line 606 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 606 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" colontmp_ = (x_0Len_0-1); #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 j; tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* T4_; NI TM__AIKkgex03Z1j45JceakCTA_8; #line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim" if (!(((NI) 1) <= res)) goto LA3; #line 606 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" i = res; #line 607 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" if ((i) < ((NI) 0) || (i) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(i, ((NI) 0), ((NI) IL64(9223372036854775807))); } #line 607 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" j = rand__SN9aVN0MBPaaBWhJdtZLhNA(r, ((NI) (i))); #line 608 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" T4_ = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0; if ((NU)(i) >= (NU)(x_0Len_0)){ raiseIndexError2(i,x_0Len_0-1); } if ((NU)(j) >= (NU)(x_0Len_0)){ raiseIndexError2(j,x_0Len_0-1); } T4_ = x_0[i]; unsureAsgnRef((void**) (&x_0[i]), x_0[j]); unsureAsgnRef((void**) (&x_0[j]), T4_); #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__AIKkgex03Z1j45JceakCTA_8)) { raiseOverflow(); }; res = (NI)(TM__AIKkgex03Z1j45JceakCTA_8); } LA3: ; } } } #line 610 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(void, shuffle__qTQOUd1teUtnaAiEsB5gjQ)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** x_0, NI x_0Len_0) { #line 626 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 626 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" shuffle__okICJB7yyEczQCSYXVlJiQ((&state__4atHrcHUZPts5LqH9bzbl0w), x_0, x_0Len_0); } #line 595 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(void, shuffle__xZRKNe6YzIK3ZR2f11OUGQ)(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A* r, tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw** x_0, NI x_0Len_0) { { NI i; NI colontmp_; NI res; i = (NI)0; colontmp_ = (NI)0; #line 606 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 606 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" colontmp_ = (x_0Len_0-1); #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 j; tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* T4_; NI TM__AIKkgex03Z1j45JceakCTA_9; #line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim" if (!(((NI) 1) <= res)) goto LA3; #line 606 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" i = res; #line 607 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" if ((i) < ((NI) 0) || (i) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(i, ((NI) 0), ((NI) IL64(9223372036854775807))); } #line 607 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" j = rand__SN9aVN0MBPaaBWhJdtZLhNA(r, ((NI) (i))); #line 608 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" T4_ = (tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw*)0; if ((NU)(i) >= (NU)(x_0Len_0)){ raiseIndexError2(i,x_0Len_0-1); } if ((NU)(j) >= (NU)(x_0Len_0)){ raiseIndexError2(j,x_0Len_0-1); } T4_ = x_0[i]; unsureAsgnRef((void**) (&x_0[i]), x_0[j]); unsureAsgnRef((void**) (&x_0[j]), T4_); #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__AIKkgex03Z1j45JceakCTA_9)) { raiseOverflow(); }; res = (NI)(TM__AIKkgex03Z1j45JceakCTA_9); } LA3: ; } } } #line 610 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(void, shuffle__Yos9cVlDRkzYbec5E9bHYojA)(tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw** x_0, NI x_0Len_0) { #line 626 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 626 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" shuffle__xZRKNe6YzIK3ZR2f11OUGQ((&state__4atHrcHUZPts5LqH9bzbl0w), x_0, x_0Len_0); } #line 317 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(NI, rand__et2jtRpfGpLGPU9a0iZnLrw)(tyObject_Rand__liBKmwv1H6v7oYBhDFHa6A* r, tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x_0) { NI result; NI TM__AIKkgex03Z1j45JceakCTA_10; NI T1_; NI TM__AIKkgex03Z1j45JceakCTA_11; result = (NI)0; #line 339 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 339 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 339 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 339 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" if (nimSubInt(x_0.b, x_0.a, &TM__AIKkgex03Z1j45JceakCTA_10)) { raiseOverflow(); }; if (((NI)(TM__AIKkgex03Z1j45JceakCTA_10)) < ((NI) 0) || ((NI)(TM__AIKkgex03Z1j45JceakCTA_10)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__AIKkgex03Z1j45JceakCTA_10), ((NI) 0), ((NI) IL64(9223372036854775807))); } #line 339 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" T1_ = (NI)0; T1_ = rand__SN9aVN0MBPaaBWhJdtZLhNA(r, ((NI) ((NI)(TM__AIKkgex03Z1j45JceakCTA_10)))); if (nimAddInt(T1_, x_0.a, &TM__AIKkgex03Z1j45JceakCTA_11)) { raiseOverflow(); }; result = (NI)(TM__AIKkgex03Z1j45JceakCTA_11); return result;} #line 341 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(NI, rand__iSDgimHDDUMUicLeecY8EQ)(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x_0) { NI result; result = (NI)0; #line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" result = rand__et2jtRpfGpLGPU9a0iZnLrw((&state__4atHrcHUZPts5LqH9bzbl0w), x_0); return result;} #line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim" static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___BokNSDrKN1xmV1nA01G9brAsystem)(NI a, NI b) { tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA result; nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA)); #line 469 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim" chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA)); result.a = a; result.b = b; return result;} #line 462 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA*, sample__vv6SM1H6a9cXJy1FSHk6b7w)(tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA** a, NI aLen_0) { tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA* result; tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA T1_; NI T2_; result = (tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA*)0; #line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" T1_ = dotdot___BokNSDrKN1xmV1nA01G9brAsystem(((NI) 0), (aLen_0-1)); #line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" T2_ = (NI)0; T2_ = rand__iSDgimHDDUMUicLeecY8EQ(T1_); if ((NU)(T2_) >= (NU)(aLen_0)){ raiseIndexError2(T2_,aLen_0-1); } result = a[T2_]; return result;} #line 462 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" N_LIB_PRIVATE N_NIMCALL(tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg*, sample__x14kzTU9a72N06nka9cT0ysw)(tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg** a, NI aLen_0) { tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg* result; tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA T1_; NI T2_; result = (tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg*)0; #line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" #line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" T1_ = dotdot___BokNSDrKN1xmV1nA01G9brAsystem(((NI) 0), (aLen_0-1)); #line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/random.nim" T2_ = (NI)0; T2_ = rand__iSDgimHDDUMUicLeecY8EQ(T1_); if ((NU)(T2_) >= (NU)(aLen_0)){ raiseIndexError2(T2_,aLen_0-1); } result = a[T2_]; return result;}