mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-16 01:45:40 +00:00
767 lines
50 KiB
C
767 lines
50 KiB
C
/* Generated by Nim Compiler v1.2.6 */
|
|
/* (c) 2020 Andreas Rumpf */
|
|
/* The generated code is subject to the original license. */
|
|
/* Compiled for: Linux, amd64, gcc */
|
|
/* Command for C compiler:
|
|
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/common -o nimcache/release/wakubridge/@m..@s..@svendor@snim-libp2p@slibp2p@sprotocols@spubsub@smcache.nim.c.o nimcache/release/wakubridge/@m..@s..@svendor@snim-libp2p@slibp2p@sprotocols@spubsub@smcache.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <string.h>
|
|
#include <sys/types.h>
|
|
#include <pthread.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 TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct tyObject_MCache__2E9bGd8FY5YvK2SNNPkN41A tyObject_MCache__2E9bGd8FY5YvK2SNNPkN41A;
|
|
typedef struct RootObj RootObj;
|
|
typedef struct tyObject_Table__uch9bhpeVGvQNw5ZevH84ig tyObject_Table__uch9bhpeVGvQNw5ZevH84ig;
|
|
typedef struct tySequence__Fdd1zCc4iVW86c0yW4quCQ tySequence__Fdd1zCc4iVW86c0yW4quCQ;
|
|
typedef struct tySequence__zU9c9aN0ThoG6EA0AgL2rehg tySequence__zU9c9aN0ThoG6EA0AgL2rehg;
|
|
typedef struct tyObject_CacheEntry__7Zw1OFcAoTSKX18RIfpGUg tyObject_CacheEntry__7Zw1OFcAoTSKX18RIfpGUg;
|
|
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
|
|
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
|
|
typedef struct tySequence__8WnaEiRmPgG3EbHz9byM9c5w tySequence__8WnaEiRmPgG3EbHz9byM9c5w;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg;
|
|
typedef struct tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw;
|
|
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
|
|
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
|
|
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
|
|
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
|
|
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
|
|
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
|
|
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
|
|
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
|
|
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
|
|
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
|
|
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
|
|
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
|
|
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
|
|
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
|
|
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
|
|
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
|
|
typedef struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw;
|
|
typedef struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg;
|
|
typedef struct tyObject_Option__vYQSJwg2XkjRjawRMmVFuQ tyObject_Option__vYQSJwg2XkjRjawRMmVFuQ;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct tyObject_HashSet__X5p53cCxCZ6E09b3jpas0kg tyObject_HashSet__X5p53cCxCZ6E09b3jpas0kg;
|
|
typedef struct tySequence__9aVNV7ijepQnHXz4JmQHd3g tySequence__9aVNV7ijepQnHXz4JmQHd3g;
|
|
typedef struct tyTuple__XoHou9cDncYHiFSYulm9bCbQ tyTuple__XoHou9cDncYHiFSYulm9bCbQ;
|
|
typedef struct tyTuple__hnCuDR9cLe2lA3YIkwKIyuA tyTuple__hnCuDR9cLe2lA3YIkwKIyuA;
|
|
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
|
|
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
|
|
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
|
|
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
|
|
struct TNimType {NI size;
|
|
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
|
|
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
|
|
TNimType* base;
|
|
TNimNode* node;
|
|
void* finalizer;
|
|
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
|
|
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
|
|
NCSTRING name;
|
|
TNimType* nextType;
|
|
NI instances;
|
|
NI sizes;
|
|
};
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
|
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
|
NI offset;
|
|
TNimType* typ;
|
|
NCSTRING name;
|
|
NI len;
|
|
TNimNode** sons;
|
|
};
|
|
struct RootObj {TNimType* m_type;};
|
|
struct tyObject_Table__uch9bhpeVGvQNw5ZevH84ig {tySequence__Fdd1zCc4iVW86c0yW4quCQ* data;
|
|
NI counter;
|
|
};
|
|
struct tyObject_MCache__2E9bGd8FY5YvK2SNNPkN41A { RootObj Sup;tyObject_Table__uch9bhpeVGvQNw5ZevH84ig msgs;
|
|
tySequence__zU9c9aN0ThoG6EA0AgL2rehg* history;
|
|
NI windowSize;
|
|
};
|
|
struct tyObject_CacheEntry__7Zw1OFcAoTSKX18RIfpGUg {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* mid;
|
|
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* topicIDs;
|
|
};
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data;
|
|
};
|
|
struct tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg {tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw fromPeer;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* seqno;
|
|
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* topicIDs;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* signature;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* key;
|
|
};
|
|
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {NI refcount;
|
|
TNimType* typ;
|
|
};
|
|
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {void* bottom;
|
|
};
|
|
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {NI len;
|
|
NI cap;
|
|
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
|
|
};
|
|
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512];
|
|
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
|
|
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
|
|
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
|
|
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
|
|
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
|
|
};
|
|
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
|
|
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {tyArray__0aOLqZchNi8nWtMTi8ND8w link;
|
|
NI key;
|
|
NI upperBound;
|
|
NI level;
|
|
};
|
|
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
|
|
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
|
|
NI Field1;
|
|
};
|
|
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
|
|
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {NI len;
|
|
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
|
|
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
|
|
};
|
|
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {NI minLargeObj;
|
|
NI maxLargeObj;
|
|
tyArray__SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks;
|
|
NU32 flBitmap;
|
|
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
|
|
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
|
|
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
|
|
NI currMem;
|
|
NI maxMem;
|
|
NI freeMem;
|
|
NI occ;
|
|
NI lastSize;
|
|
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
|
|
NIM_BOOL locked;
|
|
NIM_BOOL blockChunkSizeIncrease;
|
|
NI nextChunkSize;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
|
|
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
|
|
NI allocCounter;
|
|
NI deallocCounter;
|
|
};
|
|
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {NI stackScans;
|
|
NI cycleCollections;
|
|
NI maxThreshold;
|
|
NI maxStackSize;
|
|
NI maxStackCells;
|
|
NI cycleTableSize;
|
|
NI64 maxPause;
|
|
};
|
|
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {NI counter;
|
|
NI max;
|
|
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
|
|
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
|
|
};
|
|
typedef long tyArray__xDUyu9aScDpt0JZLU6q9aEZQ[5];
|
|
struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw {tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* head;
|
|
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* tail;
|
|
pthread_mutex_t lock;
|
|
};
|
|
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
|
|
NI cycleThreshold;
|
|
NI zctThreshold;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
|
|
NI recGcLock;
|
|
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
|
|
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
|
|
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
|
|
tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw toDispose;
|
|
NI gcThreadId;
|
|
};
|
|
struct tyObject_Option__vYQSJwg2XkjRjawRMmVFuQ {tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg val;
|
|
NIM_BOOL has;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
struct tyObject_HashSet__X5p53cCxCZ6E09b3jpas0kg {tySequence__9aVNV7ijepQnHXz4JmQHd3g* data;
|
|
NI counter;
|
|
};
|
|
struct tyTuple__XoHou9cDncYHiFSYulm9bCbQ {
|
|
NI Field0;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* Field1;
|
|
tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg Field2;
|
|
};
|
|
struct tyTuple__hnCuDR9cLe2lA3YIkwKIyuA {
|
|
NI Field0;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* Field1;
|
|
};
|
|
struct tySequence__8WnaEiRmPgG3EbHz9byM9c5w { TGenericSeq Sup; tyObject_CacheEntry__7Zw1OFcAoTSKX18RIfpGUg data[SEQ_DECL_SIZE];};struct tySequence__zU9c9aN0ThoG6EA0AgL2rehg { TGenericSeq Sup; tySequence__8WnaEiRmPgG3EbHz9byM9c5w* data[SEQ_DECL_SIZE];};struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};struct tySequence__Fdd1zCc4iVW86c0yW4quCQ { TGenericSeq Sup; tyTuple__XoHou9cDncYHiFSYulm9bCbQ data[SEQ_DECL_SIZE];};struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ { TGenericSeq Sup; NimStringDesc* data[SEQ_DECL_SIZE];};struct tySequence__9aVNV7ijepQnHXz4JmQHd3g { TGenericSeq Sup; tyTuple__hnCuDR9cLe2lA3YIkwKIyuA data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
|
|
static N_NIMCALL(void, Marker_tySequence__8WnaEiRmPgG3EbHz9byM9c5w)(void* p, NI op);
|
|
static N_NIMCALL(void, Marker_tySequence__zU9c9aN0ThoG6EA0AgL2rehg)(void* p, NI op);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, hasKeyOrPut__gIFadV49cgzlPo4J2dvlKsQ)(tyObject_Table__uch9bhpeVGvQNw5ZevH84ig* t, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* key_0, tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg* val_0);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
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, genericSeqAssign)(void* dest, void* src, TNimType* mt);
|
|
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src);
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y);
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y);
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__8T9bUgwKnUi0xchlEoA9cSGw)(tyObject_Table__uch9bhpeVGvQNw5ZevH84ig t, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* key_0);
|
|
static N_INLINE(void, some__Bsefp7mwEe4XVBfRAfkrgAoptions)(tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg* val_0, tyObject_Option__vYQSJwg2XkjRjawRMmVFuQ* Result);
|
|
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
|
|
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
|
|
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
|
|
N_LIB_PRIVATE N_NIMCALL(void, X5BX5D___dm23K4Ff1CuyQ5LhLLjcrQ)(tyObject_Table__uch9bhpeVGvQNw5ZevH84ig t, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* key_0, tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg* Result);
|
|
static N_INLINE(void, none__YtInkryOnkhVE6gPXSO9ajgoptions)(tyObject_Option__vYQSJwg2XkjRjawRMmVFuQ* Result);
|
|
N_LIB_PRIVATE N_NIMCALL(void, initHashSet__lim1G415z1LOPQu9cQuR30w)(NI initialSize, tyObject_HashSet__X5p53cCxCZ6E09b3jpas0kg* Result);
|
|
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
|
|
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size);
|
|
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(void, incl__9cCcAIGbi7jt2fHSkKdvvhg)(tyObject_HashSet__X5p53cCxCZ6E09b3jpas0kg* s_0, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* key_0);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
|
|
static N_INLINE(tySequence__8WnaEiRmPgG3EbHz9byM9c5w*, pop__H89c47tN8OjtwRELq4EX3OQsystem)(tySequence__zU9c9aN0ThoG6EA0AgL2rehg** s_0);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
|
|
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, setLengthSeqV2)(TGenericSeq* s, TNimType* typ, NI newLen);
|
|
N_LIB_PRIVATE N_NIMCALL(void, del__VjBjf9bpfj9b9b0Zyr0XQWo8w)(tyObject_Table__uch9bhpeVGvQNw5ZevH84ig* t, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* key_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, insert__jmy9b5X9cIyNjha9a355joA9ag)(tySequence__zU9c9aN0ThoG6EA0AgL2rehg** x_0, tySequence__8WnaEiRmPgG3EbHz9byM9c5w* item, NI i);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__zU9c9aN0ThoG6EA0AgL2rehg*, newSeq__eiiP5ZYEtkWu9cA9c6VOsR9aw)(NI len_0);
|
|
extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_;
|
|
N_LIB_PRIVATE TNimType NTI__2E9bGd8FY5YvK2SNNPkN41A_;
|
|
extern TNimType NTI__uch9bhpeVGvQNw5ZevH84ig_;
|
|
N_LIB_PRIVATE TNimType NTI__7Zw1OFcAoTSKX18RIfpGUg_;
|
|
extern TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
|
|
extern TNimType NTI__sM4lkSb7zS6F7OVMvW9cffQ_;
|
|
N_LIB_PRIVATE TNimType NTI__8WnaEiRmPgG3EbHz9byM9c5w_;
|
|
N_LIB_PRIVATE TNimType NTI__zU9c9aN0ThoG6EA0AgL2rehg_;
|
|
extern TNimType NTI__hLlQjbV9bLNq5PFxYcqacsA_;
|
|
extern TNimType NTI__9bIfp9aTAZKB9cehqCItD41cg_;
|
|
STRING_LITERAL(TM__J75Tmw34G9c8FhxNr52WhIA_5, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/system/iterators.nim(189, 11) `len(a) == L` the l"
|
|
"ength of the seq changed while iterating over it", 175);
|
|
extern TNimType* nimTypeRoot;
|
|
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
|
|
static N_NIMCALL(void, Marker_tySequence__8WnaEiRmPgG3EbHz9byM9c5w)(void* p, NI op) {
|
|
tySequence__8WnaEiRmPgG3EbHz9byM9c5w* a;
|
|
NI T1_; a = (tySequence__8WnaEiRmPgG3EbHz9byM9c5w*)p;
|
|
T1_ = (NI)0; for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
|
|
nimGCvisit((void*)a->data[T1_].mid, op); nimGCvisit((void*)a->data[T1_].topicIDs, op); }
|
|
}
|
|
static N_NIMCALL(void, Marker_tySequence__zU9c9aN0ThoG6EA0AgL2rehg)(void* p, NI op) {
|
|
tySequence__zU9c9aN0ThoG6EA0AgL2rehg* a;
|
|
NI T1_; a = (tySequence__zU9c9aN0ThoG6EA0AgL2rehg*)p;
|
|
T1_ = (NI)0; for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
|
|
nimGCvisit((void*)a->data[T1_], op); }
|
|
}
|
|
|
|
#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 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8));}
|
|
|
|
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 441 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); return result;}
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); return result;}
|
|
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c);
|
|
}
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8));
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_;
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system(c);
|
|
}
|
|
LA4_: ;
|
|
}
|
|
|
|
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src) {
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_;
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!((src == NIM_NIL))) goto LA3_;
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src);
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
incRef__AT1eRuflKWyTTBdLjEDZbg_3system(T5_);
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!(((*dest) == NIM_NIL))) goto LA8_;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest));
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T10_);
|
|
}
|
|
LA8_: ;
|
|
|
|
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*dest) = src;}
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, put__G73i6IJd69c1vCPZjK86yKQ)(tyObject_MCache__2E9bGd8FY5YvK2SNNPkN41A* c, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* msgId, tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg* msg) {
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
{ NIM_BOOL T3_; tyObject_CacheEntry__7Zw1OFcAoTSKX18RIfpGUg T6_; NI T7_;
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = hasKeyOrPut__gIFadV49cgzlPo4J2dvlKsQ((&(*c).msgs), msgId, msg); if (!!(T3_)) goto LA4_;
|
|
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
if ((NU)(((NI) 0)) >= (NU)((*c).history ? (*c).history->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*c).history ? (*c).history->Sup.len : 0)-1); } nimZeroMem((void*)(&T6_), sizeof(tyObject_CacheEntry__7Zw1OFcAoTSKX18RIfpGUg)); nimZeroMem((void*)(&T6_), sizeof(tyObject_CacheEntry__7Zw1OFcAoTSKX18RIfpGUg)); genericSeqAssign((&T6_.mid), msgId, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); genericSeqAssign((&T6_.topicIDs), (*msg).topicIDs, (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_)); asgnRef((void**) (&(*c).history->data[((NI) 0)]), (tySequence__8WnaEiRmPgG3EbHz9byM9c5w*) incrSeqV3((TGenericSeq*)((*c).history->data[((NI) 0)]), (&NTI__8WnaEiRmPgG3EbHz9byM9c5w_))); T7_ = (*c).history->data[((NI) 0)]->Sup.len++; genericSeqAssign((&(*c).history->data[((NI) 0)]->data[T7_].mid), T6_.mid, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); genericSeqAssign((&(*c).history->data[((NI) 0)]->data[T7_].topicIDs), T6_.topicIDs, (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_)); }
|
|
LA4_: ;
|
|
}
|
|
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
static N_INLINE(void, some__Bsefp7mwEe4XVBfRAfkrgAoptions)(tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg* val_0, tyObject_Option__vYQSJwg2XkjRjawRMmVFuQ* Result) { chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).val.fromPeer.data, NIM_NIL); unsureAsgnRef((void**)&(*Result).val.data, NIM_NIL); unsureAsgnRef((void**)&(*Result).val.seqno, NIM_NIL); unsureAsgnRef((void**)&(*Result).val.topicIDs, NIM_NIL); unsureAsgnRef((void**)&(*Result).val.signature, NIM_NIL); unsureAsgnRef((void**)&(*Result).val.key, NIM_NIL); (*Result).has = 0;
|
|
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
(*Result).has = NIM_TRUE;
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
genericAssign((void*)(&(*Result).val), (void*)val_0, (&NTI__9bIfp9aTAZKB9cehqCItD41cg_));}
|
|
|
|
#line 124 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
static N_INLINE(void, none__YtInkryOnkhVE6gPXSO9ajgoptions)(tyObject_Option__vYQSJwg2XkjRjawRMmVFuQ* Result) { chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).val.fromPeer.data, NIM_NIL); unsureAsgnRef((void**)&(*Result).val.data, NIM_NIL); unsureAsgnRef((void**)&(*Result).val.seqno, NIM_NIL); unsureAsgnRef((void**)&(*Result).val.topicIDs, NIM_NIL); unsureAsgnRef((void**)&(*Result).val.signature, NIM_NIL); unsureAsgnRef((void**)&(*Result).val.key, NIM_NIL); (*Result).has = 0;}
|
|
|
|
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, get__YsSuEM6IL8IEeUwmv6hQJA)(tyObject_MCache__2E9bGd8FY5YvK2SNNPkN41A* c, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* mid, tyObject_Option__vYQSJwg2XkjRjawRMmVFuQ* Result) {
|
|
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
|
|
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
{ NIM_BOOL T3_; tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg T6_;
|
|
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
|
|
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = contains__8T9bUgwKnUi0xchlEoA9cSGw((*c).msgs, mid); if (!T3_) goto LA4_;
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
nimZeroMem((void*)(&T6_), sizeof(tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg)); X5BX5D___dm23K4Ff1CuyQ5LhLLjcrQ((*c).msgs, mid, (&T6_));
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
some__Bsefp7mwEe4XVBfRAfkrgAoptions((&T6_), Result);
|
|
}
|
|
goto LA1_;
|
|
LA4_: ;
|
|
{
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
none__YtInkryOnkhVE6gPXSO9ajgoptions(Result);
|
|
}
|
|
LA1_: ;
|
|
}
|
|
|
|
#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 39 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, window__URp1UrsBoqoM9csa9a9csaBeg)(tyObject_MCache__2E9bGd8FY5YvK2SNNPkN41A* c, NimStringDesc* topic, tyObject_HashSet__X5p53cCxCZ6E09b3jpas0kg* Result) { NI len_1; NI T1_;
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
initHashSet__lim1G415z1LOPQu9cQuR30w(((NI) 64), Result);
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
T1_ = ((*c).history ? (*c).history->Sup.len : 0); len_1 = ((((NI) ((*c).windowSize)) <= T1_) ? ((NI) ((*c).windowSize)) : T1_); { 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__J75Tmw34G9c8FhxNr52WhIA_7;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < len_1)) goto LA4;
|
|
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
i = i_2; { tyObject_CacheEntry__7Zw1OFcAoTSKX18RIfpGUg entry; tySequence__8WnaEiRmPgG3EbHz9byM9c5w* colontmp_; NI i_3; NI L; NI T6_; nimZeroMem((void*)(&entry), sizeof(tyObject_CacheEntry__7Zw1OFcAoTSKX18RIfpGUg)); colontmp_ = (tySequence__8WnaEiRmPgG3EbHz9byM9c5w*)0;
|
|
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
if ((NU)(i) >= (NU)((*c).history ? (*c).history->Sup.len : 0)){ raiseIndexError2(i,((*c).history ? (*c).history->Sup.len : 0)-1); } colontmp_ = (*c).history->data[i];
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
i_3 = ((NI) 0);
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
T6_ = (colontmp_ ? colontmp_->Sup.len : 0); L = T6_; {
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
while (1) { NI TM__J75Tmw34G9c8FhxNr52WhIA_6;
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!(i_3 < L)) goto LA8;
|
|
|
|
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
if ((NU)(i_3) >= (NU)(colontmp_ ? colontmp_->Sup.len : 0)){ raiseIndexError2(i_3,(colontmp_ ? colontmp_->Sup.len : 0)-1); } entry.mid = colontmp_->data[i_3].mid; entry.topicIDs = colontmp_->data[i_3].topicIDs; { NimStringDesc* t; NI i_4; NI L_2; NI T10_; t = (NimStringDesc*)0;
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
i_4 = ((NI) 0);
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
T10_ = (entry.topicIDs ? entry.topicIDs->Sup.len : 0); L_2 = T10_; {
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
while (1) { NI TM__J75Tmw34G9c8FhxNr52WhIA_4;
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!(i_4 < L_2)) goto LA12;
|
|
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
if ((NU)(i_4) >= (NU)(entry.topicIDs ? entry.topicIDs->Sup.len : 0)){ raiseIndexError2(i_4,(entry.topicIDs ? entry.topicIDs->Sup.len : 0)-1); } t = entry.topicIDs->data[i_4];
|
|
#line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
{
|
|
#line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
if (!eqStrings(t, topic)) goto LA15_;
|
|
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
incl__9cCcAIGbi7jt2fHSkKdvvhg(Result, entry.mid);
|
|
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
goto LA9;
|
|
}
|
|
LA15_: ;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (nimAddInt(i_4, ((NI) 1), &TM__J75Tmw34G9c8FhxNr52WhIA_4)) { raiseOverflow(); }; i_4 = (NI)(TM__J75Tmw34G9c8FhxNr52WhIA_4);
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
{ NI T19_;
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
T19_ = (entry.topicIDs ? entry.topicIDs->Sup.len : 0); if (!!((T19_ == L_2))) goto LA20_;
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__J75Tmw34G9c8FhxNr52WhIA_5));
|
|
}
|
|
LA20_: ;
|
|
} LA12: ;
|
|
}
|
|
} LA9: ;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (nimAddInt(i_3, ((NI) 1), &TM__J75Tmw34G9c8FhxNr52WhIA_6)) { raiseOverflow(); }; i_3 = (NI)(TM__J75Tmw34G9c8FhxNr52WhIA_6);
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
{ NI T24_;
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
T24_ = (colontmp_ ? colontmp_->Sup.len : 0); if (!!((T24_ == L))) goto LA25_;
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__J75Tmw34G9c8FhxNr52WhIA_5));
|
|
}
|
|
LA25_: ;
|
|
} LA8: ;
|
|
}
|
|
}
|
|
|
|
#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__J75Tmw34G9c8FhxNr52WhIA_7)) { raiseOverflow(); }; i_2 = (NI)(TM__J75Tmw34G9c8FhxNr52WhIA_7); } LA4: ;
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 1770 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(tySequence__8WnaEiRmPgG3EbHz9byM9c5w*, pop__H89c47tN8OjtwRELq4EX3OQsystem)(tySequence__zU9c9aN0ThoG6EA0AgL2rehg** s_0) { tySequence__8WnaEiRmPgG3EbHz9byM9c5w* result; NI L; NI T1_; NI TM__J75Tmw34G9c8FhxNr52WhIA_8; result = (tySequence__8WnaEiRmPgG3EbHz9byM9c5w*)0;
|
|
#line 1779 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 1779 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 1779 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T1_ = ((*s_0) ? (*s_0)->Sup.len : 0); if (nimSubInt(T1_, ((NI) 1), &TM__J75Tmw34G9c8FhxNr52WhIA_8)) { raiseOverflow(); }; L = (NI)(TM__J75Tmw34G9c8FhxNr52WhIA_8);
|
|
#line 1784 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if ((NU)(L) >= (NU)((*s_0) ? (*s_0)->Sup.len : 0)){ raiseIndexError2(L,((*s_0) ? (*s_0)->Sup.len : 0)-1); } genericSeqAssign((&result), (*s_0)->data[L], (&NTI__8WnaEiRmPgG3EbHz9byM9c5w_));
|
|
#line 1785 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if ((L) < ((NI) 0) || (L) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(L, ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*s_0)), (tySequence__zU9c9aN0ThoG6EA0AgL2rehg*) setLengthSeqV2(&((*s_0))->Sup, (&NTI__zU9c9aN0ThoG6EA0AgL2rehg_), ((NI) (L)))); return result;}
|
|
|
|
#line 52 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, shift__YcSPyNB9aKGgr4PEaSSc3EA)(tyObject_MCache__2E9bGd8FY5YvK2SNNPkN41A* c) { tySequence__8WnaEiRmPgG3EbHz9byM9c5w* T10_; { tyObject_CacheEntry__7Zw1OFcAoTSKX18RIfpGUg entry; tySequence__8WnaEiRmPgG3EbHz9byM9c5w* colontmp_; NI i; NI L; NI T2_; nimZeroMem((void*)(&entry), sizeof(tyObject_CacheEntry__7Zw1OFcAoTSKX18RIfpGUg)); colontmp_ = (tySequence__8WnaEiRmPgG3EbHz9byM9c5w*)0;
|
|
#line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
|
|
#line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
colontmp_ = pop__H89c47tN8OjtwRELq4EX3OQsystem((&(*c).history));
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
i = ((NI) 0);
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
T2_ = (colontmp_ ? colontmp_->Sup.len : 0); L = T2_; {
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
while (1) { NI TM__J75Tmw34G9c8FhxNr52WhIA_9;
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!(i < L)) goto LA4;
|
|
|
|
#line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
if ((NU)(i) >= (NU)(colontmp_ ? colontmp_->Sup.len : 0)){ raiseIndexError2(i,(colontmp_ ? colontmp_->Sup.len : 0)-1); } entry.mid = colontmp_->data[i].mid; entry.topicIDs = colontmp_->data[i].topicIDs;
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
del__VjBjf9bpfj9b9b0Zyr0XQWo8w((&(*c).msgs), entry.mid);
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__J75Tmw34G9c8FhxNr52WhIA_9)) { raiseOverflow(); }; i = (NI)(TM__J75Tmw34G9c8FhxNr52WhIA_9);
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
{ NI T7_;
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
T7_ = (colontmp_ ? colontmp_->Sup.len : 0); if (!!((T7_ == L))) goto LA8_;
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__J75Tmw34G9c8FhxNr52WhIA_5));
|
|
}
|
|
LA8_: ;
|
|
} LA4: ;
|
|
}
|
|
}
|
|
|
|
#line 56 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
T10_ = (tySequence__8WnaEiRmPgG3EbHz9byM9c5w*)0; T10_ = NIM_NIL;
|
|
#line 56 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
insert__jmy9b5X9cIyNjha9a355joA9ag((&(*c).history), T10_, ((NI) 0));
|
|
}
|
|
|
|
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, init__7bi2dNIw4rCK0P7Urc8NcA)(NI window, NI history, tyObject_MCache__2E9bGd8FY5YvK2SNNPkN41A* Result) {
|
|
#line 59 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).msgs.data, NIM_NIL); (*Result).msgs.counter = 0; unsureAsgnRef((void**)&(*Result).history, NIM_NIL); (*Result).Sup.m_type = (&NTI__2E9bGd8FY5YvK2SNNPkN41A_);
|
|
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
|
|
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/mcache.nim"
|
|
unsureAsgnRef((void**) (&(*Result).history), newSeq__eiiP5ZYEtkWu9cA9c6VOsR9aw(history)); (*Result).windowSize = window;}
|
|
N_LIB_PRIVATE N_NIMCALL(void, libp2p_mcacheDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode* TM__J75Tmw34G9c8FhxNr52WhIA_2_3[3];
|
|
static TNimNode* TM__J75Tmw34G9c8FhxNr52WhIA_3_2[2];
|
|
static TNimNode TM__J75Tmw34G9c8FhxNr52WhIA_0[7];NTI__2E9bGd8FY5YvK2SNNPkN41A_.size = sizeof(tyObject_MCache__2E9bGd8FY5YvK2SNNPkN41A);
|
|
NTI__2E9bGd8FY5YvK2SNNPkN41A_.kind = 17;
|
|
NTI__2E9bGd8FY5YvK2SNNPkN41A_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_);
|
|
NTI__2E9bGd8FY5YvK2SNNPkN41A_.name = "MCache";
|
|
NTI__2E9bGd8FY5YvK2SNNPkN41A_.nextType = nimTypeRoot; nimTypeRoot=&NTI__2E9bGd8FY5YvK2SNNPkN41A_;
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_2_3[0] = &TM__J75Tmw34G9c8FhxNr52WhIA_0[1];
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[1].kind = 1;
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[1].offset = offsetof(tyObject_MCache__2E9bGd8FY5YvK2SNNPkN41A, msgs);
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[1].typ = (&NTI__uch9bhpeVGvQNw5ZevH84ig_);
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[1].name = "msgs";
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_2_3[1] = &TM__J75Tmw34G9c8FhxNr52WhIA_0[2];
|
|
NTI__7Zw1OFcAoTSKX18RIfpGUg_.size = sizeof(tyObject_CacheEntry__7Zw1OFcAoTSKX18RIfpGUg);
|
|
NTI__7Zw1OFcAoTSKX18RIfpGUg_.kind = 18;
|
|
NTI__7Zw1OFcAoTSKX18RIfpGUg_.base = 0;
|
|
NTI__7Zw1OFcAoTSKX18RIfpGUg_.flags = 2;
|
|
NTI__7Zw1OFcAoTSKX18RIfpGUg_.name = "CacheEntry";
|
|
NTI__7Zw1OFcAoTSKX18RIfpGUg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__7Zw1OFcAoTSKX18RIfpGUg_;
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_3_2[0] = &TM__J75Tmw34G9c8FhxNr52WhIA_0[4];
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[4].kind = 1;
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[4].offset = offsetof(tyObject_CacheEntry__7Zw1OFcAoTSKX18RIfpGUg, mid);
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[4].typ = (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_);
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[4].name = "mid";
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_3_2[1] = &TM__J75Tmw34G9c8FhxNr52WhIA_0[5];
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[5].kind = 1;
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[5].offset = offsetof(tyObject_CacheEntry__7Zw1OFcAoTSKX18RIfpGUg, topicIDs);
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[5].typ = (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_);
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[5].name = "topicIDs";
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[3].len = 2; TM__J75Tmw34G9c8FhxNr52WhIA_0[3].kind = 2; TM__J75Tmw34G9c8FhxNr52WhIA_0[3].sons = &TM__J75Tmw34G9c8FhxNr52WhIA_3_2[0];
|
|
NTI__7Zw1OFcAoTSKX18RIfpGUg_.node = &TM__J75Tmw34G9c8FhxNr52WhIA_0[3];
|
|
NTI__8WnaEiRmPgG3EbHz9byM9c5w_.size = sizeof(tySequence__8WnaEiRmPgG3EbHz9byM9c5w*);
|
|
NTI__8WnaEiRmPgG3EbHz9byM9c5w_.kind = 24;
|
|
NTI__8WnaEiRmPgG3EbHz9byM9c5w_.base = (&NTI__7Zw1OFcAoTSKX18RIfpGUg_);
|
|
NTI__8WnaEiRmPgG3EbHz9byM9c5w_.flags = 2;
|
|
NTI__8WnaEiRmPgG3EbHz9byM9c5w_.name = "seq[CacheEntry]";
|
|
NTI__8WnaEiRmPgG3EbHz9byM9c5w_.nextType = nimTypeRoot; nimTypeRoot=&NTI__8WnaEiRmPgG3EbHz9byM9c5w_;
|
|
NTI__8WnaEiRmPgG3EbHz9byM9c5w_.marker = Marker_tySequence__8WnaEiRmPgG3EbHz9byM9c5w;
|
|
NTI__zU9c9aN0ThoG6EA0AgL2rehg_.size = sizeof(tySequence__zU9c9aN0ThoG6EA0AgL2rehg*);
|
|
NTI__zU9c9aN0ThoG6EA0AgL2rehg_.kind = 24;
|
|
NTI__zU9c9aN0ThoG6EA0AgL2rehg_.base = (&NTI__8WnaEiRmPgG3EbHz9byM9c5w_);
|
|
NTI__zU9c9aN0ThoG6EA0AgL2rehg_.flags = 2;
|
|
NTI__zU9c9aN0ThoG6EA0AgL2rehg_.name = "seq[seq[CacheEntry]]";
|
|
NTI__zU9c9aN0ThoG6EA0AgL2rehg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__zU9c9aN0ThoG6EA0AgL2rehg_;
|
|
NTI__zU9c9aN0ThoG6EA0AgL2rehg_.marker = Marker_tySequence__zU9c9aN0ThoG6EA0AgL2rehg;
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[2].kind = 1;
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[2].offset = offsetof(tyObject_MCache__2E9bGd8FY5YvK2SNNPkN41A, history);
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[2].typ = (&NTI__zU9c9aN0ThoG6EA0AgL2rehg_);
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[2].name = "history";
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_2_3[2] = &TM__J75Tmw34G9c8FhxNr52WhIA_0[6];
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[6].kind = 1;
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[6].offset = offsetof(tyObject_MCache__2E9bGd8FY5YvK2SNNPkN41A, windowSize);
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[6].typ = (&NTI__hLlQjbV9bLNq5PFxYcqacsA_);
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[6].name = "windowSize";
|
|
TM__J75Tmw34G9c8FhxNr52WhIA_0[0].len = 3; TM__J75Tmw34G9c8FhxNr52WhIA_0[0].kind = 2; TM__J75Tmw34G9c8FhxNr52WhIA_0[0].sons = &TM__J75Tmw34G9c8FhxNr52WhIA_2_3[0];
|
|
NTI__2E9bGd8FY5YvK2SNNPkN41A_.node = &TM__J75Tmw34G9c8FhxNr52WhIA_0[0];
|
|
}
|
|
|