/* 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-libp2p@slibp2p@sprotocols@spubsub@speertable.nim.c.o nimcache/release/chat2/@m..@s..@svendor@snim-libp2p@slibp2p@sprotocols@spubsub@speertable.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_Table__t1GIbsENi89cp9cMuggZaXQg tyObject_Table__t1GIbsENi89cp9cMuggZaXQg; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; typedef struct tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw; typedef struct tySequence__9bUff3pvvg9b9bwSnutq8aJFQ tySequence__9bUff3pvvg9b9bwSnutq8aJFQ; typedef struct tyTuple__5G2YOQcjDoTxOBDaB9cojOQ tyTuple__5G2YOQcjDoTxOBDaB9cojOQ; typedef struct tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw; typedef struct tySequence__fUw9czUTIZ9b39boL0IkeycMA tySequence__fUw9czUTIZ9b39boL0IkeycMA; typedef struct tyTuple__RrUBWepzr5rTWSyPUXBpgg tyTuple__RrUBWepzr5rTWSyPUXBpgg; struct TGenericSeq {NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE]; }; struct tyObject_Table__t1GIbsENi89cp9cMuggZaXQg {tySequence__9bUff3pvvg9b9bwSnutq8aJFQ* data; NI counter; }; struct tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw {tySequence__fUw9czUTIZ9b39boL0IkeycMA* data; NI counter; }; struct tyTuple__5G2YOQcjDoTxOBDaB9cojOQ { NI Field0; NimStringDesc* Field1; tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw Field2; }; struct tyTuple__RrUBWepzr5rTWSyPUXBpgg { NI Field0; tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* Field1; }; struct tySequence__9bUff3pvvg9b9bwSnutq8aJFQ { TGenericSeq Sup; tyTuple__5G2YOQcjDoTxOBDaB9cojOQ data[SEQ_DECL_SIZE];};struct tySequence__fUw9czUTIZ9b39boL0IkeycMA { TGenericSeq Sup; tyTuple__RrUBWepzr5rTWSyPUXBpgg data[SEQ_DECL_SIZE];};static N_INLINE(NI, rawGet__PM9btsJmhNOJ7EUfpwXlHZwtables)(tyObject_Table__t1GIbsENi89cp9cMuggZaXQg t, NimStringDesc* key_0, NI* hc); N_LIB_PRIVATE N_NIMCALL(NI, hash__6PCYkKlCNhq9cnRLnqWKkwQ)(NimStringDesc* x_0); static N_INLINE(NIM_BOOL, isFilled__5Qpmu5QqwDY0esVXn6wf7wtables)(NI hcode); N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n); static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b); static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size); static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size); static N_INLINE(NI, nextTry__rkF6R1GhqjFh3qSAPaT2Cwtables)(NI h_0, NI maxHash); N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void); N_LIB_PRIVATE N_NIMCALL(void, excl__zaIF7gRipxwC9cR4JvJId3Q_2)(tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw* s, tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* key_0); N_LIB_PRIVATE N_NIMCALL(NI, len__n9axythJkVq05pkze6QX9aqg)(tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw s); N_LIB_PRIVATE N_NIMCALL(void, del__EiB3KQ9aUf7qCEvToovfzDA)(tyObject_Table__t1GIbsENi89cp9cMuggZaXQg* t, NimStringDesc* key_0); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, containsOrIncl__9ba1raBRUy9cSOwcgckYGEog)(tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw* s, tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* key_0); N_LIB_PRIVATE N_NIMCALL(tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw*, mgetOrPut__ZaDcuPfPOOcFxfMBp7p8hA)(tyObject_Table__t1GIbsENi89cp9cMuggZaXQg* t, NimStringDesc* key_0, tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw val_0); N_LIB_PRIVATE N_NIMCALL(void, initHashSet__DgyM04W9cvGJQj38WGiUHvw)(NI initialSize, tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw* Result); 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(NIM_BOOL, contains__bE75hOw4k31yMgGRRgEQ8A)(tyObject_Table__t1GIbsENi89cp9cMuggZaXQg t, NimStringDesc* key_0); N_LIB_PRIVATE N_NIMCALL(void, X5BX5D___D9a9c9a0Q7g3Wf0nuglUeZZvQ_2)(tyObject_Table__t1GIbsENi89cp9cMuggZaXQg t, NimStringDesc* key_0, tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw* Result); #line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" static N_INLINE(NIM_BOOL, isFilled__5Qpmu5QqwDY0esVXn6wf7wtables)(NI hcode) { NIM_BOOL result; result = (NIM_BOOL)0; #line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" #line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" #line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" result = !((hcode == ((NI) 0))); return result;} #line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim" static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) { int result; result = (int)0; #line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim" #line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim" result = memcmp(a, b, ((size_t) (size))); return result;} #line 2120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim" static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size) { NIM_BOOL result; int T1_; result = (NIM_BOOL)0; #line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim" #line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim" #line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim" #line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim" T1_ = (int)0; T1_ = nimCmpMem(a, b, size); result = (T1_ == ((NI32) 0)); return result;} #line 23 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim" static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) { NIM_BOOL result; NI alen; NI blen;{ result = (NIM_BOOL)0; #line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim" #line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim" alen = (a ? a->Sup.len : 0); #line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim" #line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim" blen = (b ? b->Sup.len : 0); #line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim" { #line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim" if (!(alen == blen)) goto LA3_; #line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim" { #line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim" if (!(alen == ((NI) 0))) goto LA7_; #line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim" #line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim" result = NIM_TRUE; goto BeforeRet_; } LA7_: ; #line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim" #line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim" #line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim" result = equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((NI) (alen))); goto BeforeRet_; } LA3_: ; }BeforeRet_: ; return result;} #line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" static N_INLINE(NI, nextTry__rkF6R1GhqjFh3qSAPaT2Cwtables)(NI h_0, NI maxHash) { NI result; NI TM__mwS0HnoqvLKQSLP6c9bVkiQ_2; result = (NI)0; #line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" #line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" #line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" if (nimAddInt(h_0, ((NI) 1), &TM__mwS0HnoqvLKQSLP6c9bVkiQ_2)) { raiseOverflow(); }; result = (NI)((NI)(TM__mwS0HnoqvLKQSLP6c9bVkiQ_2) & maxHash); return result;} #line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" static N_INLINE(NI, rawGet__PM9btsJmhNOJ7EUfpwXlHZwtables)(tyObject_Table__t1GIbsENi89cp9cMuggZaXQg t, NimStringDesc* key_0, NI* hc) { NI result; NI h_1; NI T10_; NI TM__mwS0HnoqvLKQSLP6c9bVkiQ_3;{ result = (NI)0; #line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" #line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" (*hc) = hash__6PCYkKlCNhq9cnRLnqWKkwQ(key_0); #line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" { #line 64 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" if (!((*hc) == ((NI) 0))) goto LA3_; #line 65 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" (*hc) = ((NI) 314159265); } LA3_: ; #line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" { NI T7_; #line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" #line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" T7_ = (t.data ? t.data->Sup.len : 0); if (!(T7_ == ((NI) 0))) goto LA8_; #line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" #line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" result = ((NI) -1); goto BeforeRet_; } LA8_: ; #line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" #line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" #line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" T10_ = ((t.data ? t.data->Sup.len : 0)-1); h_1 = (NI)((*hc) & T10_); { #line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" while (1) { NIM_BOOL T13_; NI T20_; #line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" if ((NU)(h_1) >= (NU)(t.data ? t.data->Sup.len : 0)){ raiseIndexError2(h_1,(t.data ? t.data->Sup.len : 0)-1); } #line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" T13_ = (NIM_BOOL)0; T13_ = isFilled__5Qpmu5QqwDY0esVXn6wf7wtables(t.data->data[h_1].Field0); if (!T13_) goto LA12; #line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" { NIM_BOOL T16_; #line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" T16_ = (NIM_BOOL)0; #line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" if ((NU)(h_1) >= (NU)(t.data ? t.data->Sup.len : 0)){ raiseIndexError2(h_1,(t.data ? t.data->Sup.len : 0)-1); } T16_ = (t.data->data[h_1].Field0 == (*hc)); if (!(T16_)) goto LA17_; #line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" if ((NU)(h_1) >= (NU)(t.data ? t.data->Sup.len : 0)){ raiseIndexError2(h_1,(t.data ? t.data->Sup.len : 0)-1); } T16_ = eqStrings(t.data->data[h_1].Field1, key_0); LA17_: ; if (!T16_) goto LA18_; #line 55 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" #line 55 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" result = h_1; goto BeforeRet_; } LA18_: ; #line 56 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" #line 56 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" T20_ = ((t.data ? t.data->Sup.len : 0)-1); #line 56 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" h_1 = nextTry__rkF6R1GhqjFh3qSAPaT2Cwtables(h_1, T20_); } LA12: ; } #line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" #line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/hashcommon.nim" if (nimSubInt(((NI) -1), h_1, &TM__mwS0HnoqvLKQSLP6c9bVkiQ_3)) { raiseOverflow(); }; result = (NI)(TM__mwS0HnoqvLKQSLP6c9bVkiQ_3); }BeforeRet_: ; return result;} #line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" N_LIB_PRIVATE N_NIMCALL(void, removePeer__2S3XoG45YC54E3eCQ6VcfA)(tyObject_Table__t1GIbsENi89cp9cMuggZaXQg* table, NimStringDesc* topic, tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* peer) { NI hcX60gensym140340851_; NI indexX60gensym140340852_; NIM_BOOL hasKeyX60gensym140340853_; hcX60gensym140340851_ = (NI)0; #line 607 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/tables.nim" #line 607 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/tables.nim" indexX60gensym140340852_ = rawGet__PM9btsJmhNOJ7EUfpwXlHZwtables((*table), topic, (&hcX60gensym140340851_)); #line 608 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/tables.nim" #line 608 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/tables.nim" hasKeyX60gensym140340853_ = (((NI) 0) <= indexX60gensym140340852_); #line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" { tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw* peers; if (!hasKeyX60gensym140340853_) goto LA3_; #line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" if ((NU)(indexX60gensym140340852_) >= (NU)((*table).data ? (*table).data->Sup.len : 0)){ raiseIndexError2(indexX60gensym140340852_,((*table).data ? (*table).data->Sup.len : 0)-1); } peers = (&(*table).data->data[indexX60gensym140340852_].Field2); #line 32 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" #line 32 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" excl__zaIF7gRipxwC9cR4JvJId3Q_2(peers, peer); #line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" { NI T7_; #line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" #line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" #line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" T7_ = (NI)0; T7_ = len__n9axythJkVq05pkze6QX9aqg((*peers)); if (!(T7_ == ((NI) 0))) goto LA8_; #line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" #line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" del__EiB3KQ9aUf7qCEvToovfzDA(table, topic); } LA8_: ; } LA3_: ; } #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 23 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, addPeer__9c9boTh0Gdel3Tpdc88mjGrw)(tyObject_Table__t1GIbsENi89cp9cMuggZaXQg* table, NimStringDesc* topic, tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* peer) { NIM_BOOL result; tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw T1_; tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw* T2_; NIM_BOOL T3_; result = (NIM_BOOL)0; #line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" #line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" #line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" #line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" #line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" #line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" nimZeroMem((void*)(&T1_), sizeof(tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw)); initHashSet__DgyM04W9cvGJQj38WGiUHvw(((NI) 64), (&T1_)); #line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" T2_ = (tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw*)0; T2_ = mgetOrPut__ZaDcuPfPOOcFxfMBp7p8hA(table, topic, T1_); #line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" T3_ = (NIM_BOOL)0; T3_ = containsOrIncl__9ba1raBRUy9cSOwcgckYGEog(T2_, peer); result = !(T3_); return result;} #line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" N_LIB_PRIVATE N_NIMCALL(NI, peers__AZSZGxz7fGRu1yYQz0mkaw)(tyObject_Table__t1GIbsENi89cp9cMuggZaXQg table, NimStringDesc* topic) { NI result; result = (NI)0; #line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" #line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" { NIM_BOOL T3_; tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw T6_; #line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" #line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" T3_ = (NIM_BOOL)0; T3_ = contains__bE75hOw4k31yMgGRRgEQ8A(table, topic); if (!T3_) goto LA4_; #line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" #line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" #line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" nimZeroMem((void*)(&T6_), sizeof(tyObject_HashSet__SjkKNmUxUCmHfJyMk9aPJ9cw)); X5BX5D___D9a9c9a0Q7g3Wf0nuglUeZZvQ_2(table, topic, (&T6_)); #line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/peertable.nim" result = len__n9axythJkVq05pkze6QX9aqg(T6_); } goto LA1_; LA4_: ; { result = ((NI) 0); } LA1_: ; return result;}