mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 17:35:45 +00:00
1724 lines
129 KiB
C
1724 lines
129 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 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/certs -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_algorithm.nim.c.o nimcache/release/wakubridge/stdlib_algorithm.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 tyTuple__0hEbbYmlam6yzyW5MFo9cjg tyTuple__0hEbbYmlam6yzyW5MFo9cjg;
|
|
typedef struct tySequence__WaO29cd9ajb7ztEentzP4H8w tySequence__WaO29cd9ajb7ztEentzP4H8w;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg;
|
|
typedef struct tyObject_Message__OGJGNvXIA7nb8o5cg404nA tyObject_Message__OGJGNvXIA7nb8o5cg404nA;
|
|
typedef struct tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ;
|
|
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
|
|
typedef struct tyObject_MDigest__law9ct65KplMYBvtmjCQxbw tyObject_MDigest__law9ct65KplMYBvtmjCQxbw;
|
|
typedef struct tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw;
|
|
typedef struct tySequence__pH9cYemtuJZdtXFZUWL7TOA tySequence__pH9cYemtuJZdtXFZUWL7TOA;
|
|
typedef struct RootObj RootObj;
|
|
typedef struct tyObject_FuturecolonObjectType___ANUT37xQWVpIM19bQzmPKEg tyObject_FuturecolonObjectType___ANUT37xQWVpIM19bQzmPKEg;
|
|
typedef struct tyObject_PubsubPeerEvent__ZhAwnC4kBn9a68w1fRsGY4A tyObject_PubsubPeerEvent__ZhAwnC4kBn9a68w1fRsGY4A;
|
|
typedef struct tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg;
|
|
typedef struct tySequence__R269cpuasLo9bGSSlUkh07MA tySequence__R269cpuasLo9bGSSlUkh07MA;
|
|
typedef struct tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw;
|
|
typedef struct tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA;
|
|
typedef struct tyObject_RPCMsg__knoSCw739arKRCPJPue07qQ tyObject_RPCMsg__knoSCw739arKRCPJPue07qQ;
|
|
typedef struct tySequence__cqQjXlSu8KsGxE7CJO2mcA tySequence__cqQjXlSu8KsGxE7CJO2mcA;
|
|
typedef struct tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw;
|
|
typedef struct tySequence__8d9bxJ1229c513mLE0NixLcQ tySequence__8d9bxJ1229c513mLE0NixLcQ;
|
|
typedef struct tyObject_WakuMessage__snKUdUhXg9ahkzpl1ubVZ0A tyObject_WakuMessage__snKUdUhXg9ahkzpl1ubVZ0A;
|
|
typedef struct tyObject_Index__lOZ7xaSDQuG6u4WFzCveFQ tyObject_Index__lOZ7xaSDQuG6u4WFzCveFQ;
|
|
typedef struct tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA;
|
|
typedef struct tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg;
|
|
typedef struct tySequence__8y8hhoTs9bVn1no7HCdDJwQ tySequence__8y8hhoTs9bVn1no7HCdDJwQ;
|
|
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_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_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;
|
|
typedef struct tySequence__RQAvfm3tUYD1QWb9c4P8NNA tySequence__RQAvfm3tUYD1QWb9c4P8NNA;
|
|
typedef struct tySequence__oRzyI2tapcwoHwH1Bz2exA tySequence__oRzyI2tapcwoHwH1Bz2exA;
|
|
typedef struct tyObject_Option__ChQnHuXLEQ5RD1fCRvT7YQ tyObject_Option__ChQnHuXLEQ5RD1fCRvT7YQ;
|
|
typedef struct tyObject_ControlMessage__R2iwvkxFY4f0aLqyHsJIng tyObject_ControlMessage__R2iwvkxFY4f0aLqyHsJIng;
|
|
typedef struct tySequence__8MW0JodCedjay9anGTGrBmA tySequence__8MW0JodCedjay9anGTGrBmA;
|
|
typedef struct tySequence__zAf2abIhMjaomS6jkKP9a8w tySequence__zAf2abIhMjaomS6jkKP9a8w;
|
|
typedef struct tySequence__IjDV3u39bZeDnOOTq5TAF5g tySequence__IjDV3u39bZeDnOOTq5TAF5g;
|
|
typedef struct tySequence__WSbLInFxGn0pnyF9cry8bUA tySequence__WSbLInFxGn0pnyF9cry8bUA;
|
|
typedef struct tyObject_PubSubObservercolonObjectType___OQ19cc5OePJcqC5N241nbAg tyObject_PubSubObservercolonObjectType___OQ19cc5OePJcqC5N241nbAg;
|
|
typedef struct tyObject_SubOpts__89cudN1q3YtAd8ENHWPechw tyObject_SubOpts__89cudN1q3YtAd8ENHWPechw;
|
|
typedef struct tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg;
|
|
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
|
|
typedef struct tyObject_ControlIHave__CnOQkdAngH72aJYNy5NLDg tyObject_ControlIHave__CnOQkdAngH72aJYNy5NLDg;
|
|
typedef struct tySequence__aLjCOs9bu5l2rz6ENM6m6Sg tySequence__aLjCOs9bu5l2rz6ENM6m6Sg;
|
|
typedef struct tyObject_ControlIWant__geKK9cLMGr6gb7OdFvazkIQ tyObject_ControlIWant__geKK9cLMGr6gb7OdFvazkIQ;
|
|
typedef struct tyObject_ControlGraft__Pu9bBse0c7O7IZRmRsi9b07w tyObject_ControlGraft__Pu9bBse0c7O7IZRmRsi9b07w;
|
|
typedef struct tyObject_ControlPrune__FKVoWyfO9bQ2bdVQGPLNZvA tyObject_ControlPrune__FKVoWyfO9bQ2bdVQGPLNZvA;
|
|
typedef struct tySequence__FEFXDzYbVdCsaxKNxgC9akw tySequence__FEFXDzYbVdCsaxKNxgC9akw;
|
|
typedef struct tyObject_PeerInfoMsg__W4epI9boAZXsWE9avB49a5Zew tyObject_PeerInfoMsg__W4epI9boAZXsWE9avB49a5Zew;
|
|
typedef struct {
|
|
N_NIMCALL_PTR(NI, ClP_0) (tyTuple__0hEbbYmlam6yzyW5MFo9cjg x, tyTuple__0hEbbYmlam6yzyW5MFo9cjg y, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__oeKKLB9aT2GBgHxIzVFZJKw;
|
|
typedef NU8 tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA;
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct tyTuple__0hEbbYmlam6yzyW5MFo9cjg {
|
|
NCSTRING Field0;
|
|
NI Field1;
|
|
};
|
|
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;
|
|
};
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_8) (tyTuple__0hEbbYmlam6yzyW5MFo9cjg x, tyTuple__0hEbbYmlam6yzyW5MFo9cjg y);
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_12) (tyTuple__0hEbbYmlam6yzyW5MFo9cjg x, tyTuple__0hEbbYmlam6yzyW5MFo9cjg y);
|
|
typedef struct {
|
|
N_NIMCALL_PTR(NI, ClP_0) (tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg* x_0, tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg* k, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__y3mCAAmtVmj4rjU3FHzzzQ;
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_27) (tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg* x_0, tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg* k);
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_31) (tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg* x_0, tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg* k, void* ClE_0);
|
|
typedef struct {
|
|
N_NIMCALL_PTR(NI, ClP_0) (tyObject_Message__OGJGNvXIA7nb8o5cg404nA* x_0, tyObject_Message__OGJGNvXIA7nb8o5cg404nA* k, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__BPk9aiLC69ctauZst3XwGx6g;
|
|
typedef NU8 tyArray__H8qf9bpC2ziYA2earmO8m7w[4];
|
|
struct tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ {NU32 expiry;
|
|
NU32 ttl;
|
|
tyArray__H8qf9bpC2ziYA2earmO8m7w topic;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data;
|
|
NU64 nonce;
|
|
};
|
|
typedef NU8 tyArray__vEOa9c5qaE9ajWxR5R4zwfQg[32];
|
|
struct tyObject_MDigest__law9ct65KplMYBvtmjCQxbw {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg data;
|
|
};
|
|
typedef NU8 tyArray__w5VB8h5K8DB3oWrO5U2wqg[64];
|
|
struct tyObject_Message__OGJGNvXIA7nb8o5cg404nA {tyObject_Envelope__SvTrTIZs3cDneANW26dQlQ env;
|
|
tyObject_MDigest__law9ct65KplMYBvtmjCQxbw hash;
|
|
NU32 size;
|
|
NF pow;
|
|
tyArray__w5VB8h5K8DB3oWrO5U2wqg bloom;
|
|
NIM_BOOL isP2P;
|
|
};
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_35) (tyObject_Message__OGJGNvXIA7nb8o5cg404nA* x_0, tyObject_Message__OGJGNvXIA7nb8o5cg404nA* k);
|
|
typedef struct {
|
|
N_NIMCALL_PTR(NI, ClP_0) (tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* x_0, tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* y_0, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__9aoDGkHIHJdZaKAh3cotoXQ;
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_43) (tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* x_0, tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* y_0);
|
|
struct RootObj {TNimType* m_type;};
|
|
typedef struct {
|
|
N_NIMCALL_PTR(tyObject_FuturecolonObjectType___ANUT37xQWVpIM19bQzmPKEg*, ClP_0) (void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__cK1MMA1Kxu5q35gjE9bkNsw;
|
|
typedef struct {
|
|
N_NIMCALL_PTR(void, ClP_0) (tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* peer, tyObject_PubsubPeerEvent__ZhAwnC4kBn9a68w1fRsGY4A event_0, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__mDYUWiZJMBXmYF2x8FQ9bDQ;
|
|
struct tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data;
|
|
};
|
|
typedef struct {
|
|
N_NIMCALL_PTR(tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA*, ClP_0) (tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* peer, tyObject_RPCMsg__knoSCw739arKRCPJPue07qQ* msg, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__Wpg2xRrh64OKzIhNi5WiUw;
|
|
struct tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw { RootObj Sup;tyProc__cK1MMA1Kxu5q35gjE9bkNsw getConn;
|
|
tyProc__mDYUWiZJMBXmYF2x8FQ9bDQ onEvent;
|
|
NimStringDesc* codec;
|
|
tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg* sendConn;
|
|
tySequence__R269cpuasLo9bGSSlUkh07MA* connections;
|
|
tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw peerId;
|
|
tyProc__Wpg2xRrh64OKzIhNi5WiUw handler;
|
|
tySequence__cqQjXlSu8KsGxE7CJO2mcA** observers;
|
|
NF score;
|
|
NI iWantBudget;
|
|
NI iHaveBudget;
|
|
NIM_BOOL outbound;
|
|
NF appScore;
|
|
NF behaviourPenalty;
|
|
};
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_46) (tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* x_0, tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* y_0);
|
|
typedef struct {
|
|
N_NIMCALL_PTR(NI, ClP_0) (tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw* x_0, tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw* y_0, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__Sf79cJPJ0Oe9cdFKvuT0MbUg;
|
|
struct tyObject_WakuMessage__snKUdUhXg9ahkzpl1ubVZ0A {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* payload;
|
|
NU32 contentTopic;
|
|
NU32 version;
|
|
};
|
|
struct tyObject_Index__lOZ7xaSDQuG6u4WFzCveFQ {tyObject_MDigest__law9ct65KplMYBvtmjCQxbw digest;
|
|
NF receivedTime;
|
|
};
|
|
struct tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw {tyObject_WakuMessage__snKUdUhXg9ahkzpl1ubVZ0A msg;
|
|
tyObject_Index__lOZ7xaSDQuG6u4WFzCveFQ index;
|
|
};
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_62) (tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw* x_0, tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw* y_0);
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_65) (tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw* x_0, tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw* y_0);
|
|
typedef struct {
|
|
N_NIMCALL_PTR(NI, ClP_0) (tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA* x_0, tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* k, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__s19c8U1xoiV7Op9bjGxr8jHA;
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_81) (tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA* x_0, tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* k);
|
|
typedef struct {
|
|
N_NIMCALL_PTR(NI, ClP_0) (tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA* x_0, tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA* y_0, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__33CFNoSkYN6lr6NBdyoIBQ;
|
|
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_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;
|
|
};
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_92) (tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA* x_0, tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA* y_0);
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_95) (tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA* x_0, tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA* y_0);
|
|
typedef struct {
|
|
N_NIMCALL_PTR(NI, ClP_0) (tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg* x_0, tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg* y_0, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__cSrno5rc3KqR4AH687gzWQ;
|
|
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];
|
|
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;
|
|
};
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_112) (tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg* x_0, tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg* y_0);
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_115) (tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg* x_0, tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg* y_0);
|
|
typedef NU8 tyEnum_PubSubPeerEventKind__GhM8PiW9aeHEsdM78FiLyFQ;
|
|
struct tyObject_PubsubPeerEvent__ZhAwnC4kBn9a68w1fRsGY4A {tyEnum_PubSubPeerEventKind__GhM8PiW9aeHEsdM78FiLyFQ kind;
|
|
};
|
|
struct tyObject_ControlMessage__R2iwvkxFY4f0aLqyHsJIng {tySequence__8MW0JodCedjay9anGTGrBmA* ihave;
|
|
tySequence__zAf2abIhMjaomS6jkKP9a8w* iwant;
|
|
tySequence__IjDV3u39bZeDnOOTq5TAF5g* graft;
|
|
tySequence__WSbLInFxGn0pnyF9cry8bUA* prune;
|
|
};
|
|
struct tyObject_Option__ChQnHuXLEQ5RD1fCRvT7YQ {tyObject_ControlMessage__R2iwvkxFY4f0aLqyHsJIng val;
|
|
NIM_BOOL has;
|
|
};
|
|
struct tyObject_RPCMsg__knoSCw739arKRCPJPue07qQ {tySequence__RQAvfm3tUYD1QWb9c4P8NNA* subscriptions;
|
|
tySequence__oRzyI2tapcwoHwH1Bz2exA* messages;
|
|
tyObject_Option__ChQnHuXLEQ5RD1fCRvT7YQ control;
|
|
};
|
|
struct tyObject_SubOpts__89cudN1q3YtAd8ENHWPechw {NIM_BOOL subscribe;
|
|
NimStringDesc* topic;
|
|
};
|
|
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_ControlIHave__CnOQkdAngH72aJYNy5NLDg {NimStringDesc* topicID;
|
|
tySequence__aLjCOs9bu5l2rz6ENM6m6Sg* messageIDs;
|
|
};
|
|
struct tyObject_ControlIWant__geKK9cLMGr6gb7OdFvazkIQ {tySequence__aLjCOs9bu5l2rz6ENM6m6Sg* messageIDs;
|
|
};
|
|
struct tyObject_ControlGraft__Pu9bBse0c7O7IZRmRsi9b07w {NimStringDesc* topicID;
|
|
};
|
|
struct tyObject_ControlPrune__FKVoWyfO9bQ2bdVQGPLNZvA {NimStringDesc* topicID;
|
|
tySequence__FEFXDzYbVdCsaxKNxgC9akw* peers;
|
|
NU64 backoff;
|
|
};
|
|
struct tyObject_PeerInfoMsg__W4epI9boAZXsWE9avB49a5Zew {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* peerID;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* signedPeerRecord;
|
|
};
|
|
struct tySequence__WaO29cd9ajb7ztEentzP4H8w { TGenericSeq Sup; tyTuple__0hEbbYmlam6yzyW5MFo9cjg data[SEQ_DECL_SIZE];};struct tySequence__pH9cYemtuJZdtXFZUWL7TOA { TGenericSeq Sup; tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw* data[SEQ_DECL_SIZE];};struct tySequence__8d9bxJ1229c513mLE0NixLcQ { TGenericSeq Sup; tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw data[SEQ_DECL_SIZE];};struct tySequence__8y8hhoTs9bVn1no7HCdDJwQ { TGenericSeq Sup; tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA* data[SEQ_DECL_SIZE];};struct tySequence__Wq0ZcI6MO5RSp6EwbCW5fA { TGenericSeq Sup; tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg* data[SEQ_DECL_SIZE];};struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};struct tySequence__R269cpuasLo9bGSSlUkh07MA { TGenericSeq Sup; tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg* data[SEQ_DECL_SIZE];};struct tySequence__cqQjXlSu8KsGxE7CJO2mcA { TGenericSeq Sup; tyObject_PubSubObservercolonObjectType___OQ19cc5OePJcqC5N241nbAg* data[SEQ_DECL_SIZE];};struct tySequence__RQAvfm3tUYD1QWb9c4P8NNA { TGenericSeq Sup; tyObject_SubOpts__89cudN1q3YtAd8ENHWPechw data[SEQ_DECL_SIZE];};struct tySequence__oRzyI2tapcwoHwH1Bz2exA { TGenericSeq Sup; tyObject_Message__9bIfp9aTAZKB9cehqCItD41cg data[SEQ_DECL_SIZE];};struct tySequence__8MW0JodCedjay9anGTGrBmA { TGenericSeq Sup; tyObject_ControlIHave__CnOQkdAngH72aJYNy5NLDg data[SEQ_DECL_SIZE];};struct tySequence__zAf2abIhMjaomS6jkKP9a8w { TGenericSeq Sup; tyObject_ControlIWant__geKK9cLMGr6gb7OdFvazkIQ data[SEQ_DECL_SIZE];};struct tySequence__IjDV3u39bZeDnOOTq5TAF5g { TGenericSeq Sup; tyObject_ControlGraft__Pu9bBse0c7O7IZRmRsi9b07w data[SEQ_DECL_SIZE];};struct tySequence__WSbLInFxGn0pnyF9cry8bUA { TGenericSeq Sup; tyObject_ControlPrune__FKVoWyfO9bQ2bdVQGPLNZvA data[SEQ_DECL_SIZE];};struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ { TGenericSeq Sup; NimStringDesc* data[SEQ_DECL_SIZE];};struct tySequence__aLjCOs9bu5l2rz6ENM6m6Sg { TGenericSeq Sup; tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data[SEQ_DECL_SIZE];};struct tySequence__FEFXDzYbVdCsaxKNxgC9akw { TGenericSeq Sup; tyObject_PeerInfoMsg__W4epI9boAZXsWE9avB49a5Zew data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NOINLINE(void, raiseDivByZero)(void);
|
|
static N_INLINE(NIM_BOOL, nimDivInt)(NI a, NI b, NI* res);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
|
|
N_LIB_PRIVATE N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
|
|
static N_NIMCALL(void, Marker_tySequence__WaO29cd9ajb7ztEentzP4H8w)(void* p, NI op);
|
|
N_LIB_PRIVATE N_NIMCALL(void, merge__1rbzD06CDKokJnkZ6pD0NA)(tyTuple__0hEbbYmlam6yzyW5MFo9cjg* a, NI aLen_0, tyTuple__0hEbbYmlam6yzyW5MFo9cjg* b, NI bLen_0, NI lo, NI m, NI hi, tyProc__oeKKLB9aT2GBgHxIzVFZJKw cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order);
|
|
static N_INLINE(NI, star___kgZDSIMT2vrZak9bMmeL40walgorithm)(NI x, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, lowerBound__gkqahmqOP9atq3wscXUsGZw)(tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg** a, NI aLen_0, tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg* key_0, tyProc__y3mCAAmtVmj4rjU3FHzzzQ cmp);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, cmp__KwoSckNr20rVrbBsCxCfrQ)(tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg* x_0, tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg* y_0);
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size);
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(void, merge__RVpMHlXV9cgk7yWaIsQNWRQ)(tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw** a, NI aLen_0, tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw** b, NI bLen_0, NI lo, NI m, NI hi, tyProc__9aoDGkHIHJdZaKAh3cotoXQ cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
|
|
N_LIB_PRIVATE N_NIMCALL(void, merge__dpj7uWNv7I21T9bW7k3jALA)(tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw* a, NI aLen_0, tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw* b, NI bLen_0, NI lo, NI m, NI hi, tyProc__Sf79cJPJ0Oe9cdFKvuT0MbUg cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, reverse__WT7so8X1sBzmXGZn5S5A9bQ)(NIM_CHAR* a, NI aLen_0, NI first_0, NI last);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__8y8hhoTs9bVn1no7HCdDJwQ*, newSeq__AEmAjjzKH1X9a9aC4SfNF6OA)(NI len_0);
|
|
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(void, sort__nJyNVSMA4kvLMVtGAffc3A)(tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA** a, NI aLen_0, tyProc__33CFNoSkYN6lr6NBdyoIBQ cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, merge__jDch6qiEqa9aAe2W7J9akrdA)(tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA** a, NI aLen_0, tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA** b, NI bLen_0, NI lo, NI m, NI hi, tyProc__33CFNoSkYN6lr6NBdyoIBQ cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__Wq0ZcI6MO5RSp6EwbCW5fA*, newSeq__sw9agoMS2JUpRl70LDvFodA)(NI len_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, sort__aa9bCAW5aw4TLcJe6tniHhA)(tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg** a, NI aLen_0, tyProc__cSrno5rc3KqR4AH687gzWQ cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, merge__DCWbD5xLNic2g9ct39bFox8w)(tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg** a, NI aLen_0, tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg** b, NI bLen_0, NI lo, NI m, NI hi, tyProc__cSrno5rc3KqR4AH687gzWQ cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0);
|
|
extern TNimType NTI__0hEbbYmlam6yzyW5MFo9cjg_;
|
|
N_LIB_PRIVATE TNimType NTI__WaO29cd9ajb7ztEentzP4H8w_;
|
|
STRING_LITERAL(TM__JdC9c6SaUkvO1XjYuWP1JWQ_9, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/algorithm.nim(346, 10) `j <= m` ", 115);
|
|
extern TNimType NTI__pH9cYemtuJZdtXFZUWL7TOA_;
|
|
extern TNimType NTI__8d9bxJ1229c513mLE0NixLcQ_;
|
|
extern TNimType NTI__8y8hhoTs9bVn1no7HCdDJwQ_;
|
|
extern TNimType NTI__Wq0ZcI6MO5RSp6EwbCW5fA_;
|
|
extern TNimType* nimTypeRoot;
|
|
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
|
|
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
static N_INLINE(NIM_BOOL, nimDivInt)(NI a, NI b, NI* 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 == ((NI) (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 == ((NI) -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) = (NI)(a / b); }
|
|
LA1_: ;
|
|
return result;}
|
|
static N_NIMCALL(void, Marker_tySequence__WaO29cd9ajb7ztEentzP4H8w)(void* p, NI op) {
|
|
tySequence__WaO29cd9ajb7ztEentzP4H8w* a;
|
|
NI T1_; a = (tySequence__WaO29cd9ajb7ztEentzP4H8w*)p;
|
|
T1_ = (NI)0;}
|
|
|
|
#line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
static N_INLINE(NI, star___kgZDSIMT2vrZak9bMmeL40walgorithm)(NI x, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order) { NI result; NI y; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_5; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_6; result = (NI)0;
|
|
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt(order, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_5)) { raiseOverflow(); }; y = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_5);
|
|
#line 67 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 67 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 67 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt((NI)(x ^ y), y, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_6)) { raiseOverflow(); }; result = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_6); return result;}
|
|
|
|
#line 337 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, merge__1rbzD06CDKokJnkZ6pD0NA)(tyTuple__0hEbbYmlam6yzyW5MFo9cjg* a, NI aLen_0, tyTuple__0hEbbYmlam6yzyW5MFo9cjg* b, NI bLen_0, NI lo, NI m, NI hi, tyProc__oeKKLB9aT2GBgHxIzVFZJKw cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order) { NI j; NI bb; NI i; NI k;{
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{ NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_7; NI T3_; NI T4_;
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(m) >= (NU)(aLen_0)){ raiseIndexError2(m,aLen_0-1); }
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(m, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_7)) { raiseOverflow(); }; if ((NU)((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_7)) >= (NU)(aLen_0)){ raiseIndexError2((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_7),aLen_0-1); } T3_ = (NI)0; T3_ = cmp.ClE_0? cmp.ClP_0(a[m], a[(NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_7)], cmp.ClE_0):((TM__JdC9c6SaUkvO1XjYuWP1JWQ_8)(cmp.ClP_0))(a[m], a[(NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_7)]);
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T4_ = (NI)0; T4_ = star___kgZDSIMT2vrZak9bMmeL40walgorithm(T3_, order); if (!(T4_ <= ((NI) 0))) goto LA5_;
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA5_: ;
|
|
|
|
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
j = lo;
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!!((j <= m))) goto LA9_;
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__JdC9c6SaUkvO1XjYuWP1JWQ_9));
|
|
}
|
|
LA9_: ;
|
|
|
|
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
bb = ((NI) 0); {
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_10; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_11;
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(j <= m)) goto LA12;
|
|
if ((NU)(bb) >= (NU)(bLen_0)){ raiseIndexError2(bb,bLen_0-1); }
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } b[bb] = a[j];
|
|
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(bb, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_10)) { raiseOverflow(); }; bb = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_10);
|
|
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(j, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_11)) { raiseOverflow(); }; j = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_11); } LA12: ;
|
|
}
|
|
|
|
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
i = ((NI) 0);
|
|
#line 357 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
k = lo; {
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NIM_BOOL T15_; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_15;
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (NIM_BOOL)0;
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (k < j); if (!(T15_)) goto LA16_;
|
|
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (j <= hi); LA16_: ;
|
|
if (!T15_) goto LA14;
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{ NI T19_; NI T20_; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_13;
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } T19_ = (NI)0; T19_ = cmp.ClE_0? cmp.ClP_0(b[i], a[j], cmp.ClE_0):((TM__JdC9c6SaUkvO1XjYuWP1JWQ_12)(cmp.ClP_0))(b[i], a[j]);
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T20_ = (NI)0; T20_ = star___kgZDSIMT2vrZak9bMmeL40walgorithm(T19_, order); if (!(T20_ <= ((NI) 0))) goto LA21_;
|
|
if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 361 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } a[k] = b[i];
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_13)) { raiseOverflow(); }; i = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_13); }
|
|
goto LA17_;
|
|
LA21_: ;
|
|
{ NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_14; if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } a[k] = a[j];
|
|
#line 365 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(j, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_14)) { raiseOverflow(); }; j = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_14); }
|
|
LA17_: ;
|
|
|
|
#line 366 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(k, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_15)) { raiseOverflow(); }; k = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_15); } LA14: ;
|
|
}
|
|
{
|
|
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_16; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_17;
|
|
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(k < j)) goto LA25;
|
|
if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } a[k] = b[i];
|
|
#line 371 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(k, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_16)) { raiseOverflow(); }; k = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_16);
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_17)) { raiseOverflow(); }; i = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_17); } LA25: ;
|
|
}
|
|
}BeforeRet_: ;
|
|
}
|
|
|
|
#line 376 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, sort__JiulWtSEje0u1tYdIVp9bPg)(tyTuple__0hEbbYmlam6yzyW5MFo9cjg* a, NI aLen_0, tyProc__oeKKLB9aT2GBgHxIzVFZJKw cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order) { NI n; tySequence__WaO29cd9ajb7ztEentzP4H8w* b; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_2; NI s;
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
n = aLen_0; b = (tySequence__WaO29cd9ajb7ztEentzP4H8w*)0;
|
|
#line 420 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 420 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (((NI) 2) == 0){ raiseDivByZero(); } if (nimDivInt(n, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_2)) { raiseOverflow(); }; if (((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_2)) < ((NI) 0) || ((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_2)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_2), ((NI) 0), ((NI) IL64(9223372036854775807))); } b = (tySequence__WaO29cd9ajb7ztEentzP4H8w*) newSeq((&NTI__WaO29cd9ajb7ztEentzP4H8w_), ((NI) ((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_2))));
|
|
#line 421 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
s = ((NI) 1); {
|
|
#line 422 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI m; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_3; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_4; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_23;
|
|
#line 422 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(s < n)) goto LA2;
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt(n, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_3)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_3), s, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_4)) { raiseOverflow(); }; m = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_4); {
|
|
#line 424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_18; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_19; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_20; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_21; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_22;
|
|
#line 424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(((NI) 0) <= m)) goto LA4;
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt(m, s, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_18)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_18), ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_19)) { raiseOverflow(); };
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(m, s, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_20)) { raiseOverflow(); };
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
merge__1rbzD06CDKokJnkZ6pD0NA(a, aLen_0, b->data, (b ? b->Sup.len : 0), (((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_19) >= ((NI) 0)) ? (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_19) : ((NI) 0)), m, (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_20), cmp, order);
|
|
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimMulInt(s, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_21)) { raiseOverflow(); }; if (nimSubInt(m, (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_21), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_22)) { raiseOverflow(); }; m = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_22); } LA4: ;
|
|
}
|
|
|
|
#line 427 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 427 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimMulInt(s, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_23)) { raiseOverflow(); }; s = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_23); } LA2: ;
|
|
}
|
|
}
|
|
|
|
#line 233 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, lowerBound__gkqahmqOP9atq3wscXUsGZw)(tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg** a, NI aLen_0, tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg* key_0, tyProc__y3mCAAmtVmj4rjU3FHzzzQ cmp) { NI result; NI count_1; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_24; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_25; NI step; NI pos; result = (NI)0;
|
|
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
result = ((NI) 0);
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt((aLen_0-1), ((NI) 0), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_24)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_24), ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_25)) { raiseOverflow(); }; count_1 = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_25); step = (NI)0; pos = (NI)0; {
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_26;
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!!((count_1 == ((NI) 0)))) goto LA2;
|
|
|
|
#line 260 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 260 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
step = (NI)((NI64)(count_1) >> (NU64)(((NI) 1)));
|
|
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(result, step, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_26)) { raiseOverflow(); }; pos = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_26);
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{ NI T5_; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_28; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_29; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_30;
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(pos) >= (NU)(aLen_0)){ raiseIndexError2(pos,aLen_0-1); } T5_ = (NI)0; T5_ = cmp.ClE_0? cmp.ClP_0(a[pos], key_0, cmp.ClE_0):((TM__JdC9c6SaUkvO1XjYuWP1JWQ_27)(cmp.ClP_0))(a[pos], key_0); if (!(T5_ < ((NI) 0))) goto LA6_;
|
|
|
|
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(pos, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_28)) { raiseOverflow(); }; result = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_28);
|
|
#line 264 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 264 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(step, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_29)) { raiseOverflow(); }; if (nimSubInt(count_1, (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_29), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_30)) { raiseOverflow(); }; count_1 = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_30); }
|
|
goto LA3_;
|
|
LA6_: ;
|
|
{
|
|
#line 266 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
count_1 = step; }
|
|
LA3_: ;
|
|
} LA2: ;
|
|
}
|
|
return result;}
|
|
|
|
#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 268 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, lowerBound__9crVkvRNG9ceDHLldd9aWgpEg)(tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg** a, NI aLen_0, tyObject_ProtocolInfoObj__x9ayzfuh9abjpSPORCScZoQg* key_0) { NI result; tyProc__y3mCAAmtVmj4rjU3FHzzzQ T1_; result = (NI)0;
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
nimZeroMem((void*)(&T1_), sizeof(tyProc__y3mCAAmtVmj4rjU3FHzzzQ)); T1_.ClP_0 = ((TM__JdC9c6SaUkvO1XjYuWP1JWQ_31) (cmp__KwoSckNr20rVrbBsCxCfrQ)); T1_.ClE_0 = NIM_NIL;
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
result = lowerBound__gkqahmqOP9atq3wscXUsGZw(a, aLen_0, key_0, T1_); return result;}
|
|
|
|
#line 233 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, lowerBound__rqtLZouT9csOSGtLvXsvNYA)(tyObject_Message__OGJGNvXIA7nb8o5cg404nA* a, NI aLen_0, tyObject_Message__OGJGNvXIA7nb8o5cg404nA* key_0, tyProc__BPk9aiLC69ctauZst3XwGx6g cmp) { NI result; NI count_1; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_32; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_33; NI step; NI pos; result = (NI)0;
|
|
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
result = ((NI) 0);
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt((aLen_0-1), ((NI) 0), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_32)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_32), ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_33)) { raiseOverflow(); }; count_1 = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_33); step = (NI)0; pos = (NI)0; {
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_34;
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!!((count_1 == ((NI) 0)))) goto LA2;
|
|
|
|
#line 260 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 260 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
step = (NI)((NI64)(count_1) >> (NU64)(((NI) 1)));
|
|
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(result, step, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_34)) { raiseOverflow(); }; pos = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_34);
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{ NI T5_; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_36; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_37; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_38;
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(pos) >= (NU)(aLen_0)){ raiseIndexError2(pos,aLen_0-1); } T5_ = (NI)0; T5_ = cmp.ClE_0? cmp.ClP_0((&a[pos]), key_0, cmp.ClE_0):((TM__JdC9c6SaUkvO1XjYuWP1JWQ_35)(cmp.ClP_0))((&a[pos]), key_0); if (!(T5_ < ((NI) 0))) goto LA6_;
|
|
|
|
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(pos, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_36)) { raiseOverflow(); }; result = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_36);
|
|
#line 264 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 264 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(step, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_37)) { raiseOverflow(); }; if (nimSubInt(count_1, (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_37), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_38)) { raiseOverflow(); }; count_1 = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_38); }
|
|
goto LA3_;
|
|
LA6_: ;
|
|
{
|
|
#line 266 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
count_1 = step; }
|
|
LA3_: ;
|
|
} LA2: ;
|
|
}
|
|
return result;}
|
|
|
|
#line 337 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, merge__RVpMHlXV9cgk7yWaIsQNWRQ)(tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw** a, NI aLen_0, tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw** b, NI bLen_0, NI lo, NI m, NI hi, tyProc__9aoDGkHIHJdZaKAh3cotoXQ cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0) { NI j; NI bb; NI i; NI k;{
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{ NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_42; NI T3_; NI T4_;
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(m) >= (NU)(aLen_0)){ raiseIndexError2(m,aLen_0-1); }
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(m, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_42)) { raiseOverflow(); }; if ((NU)((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_42)) >= (NU)(aLen_0)){ raiseIndexError2((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_42),aLen_0-1); } T3_ = (NI)0; T3_ = cmp.ClE_0? cmp.ClP_0(a[m], a[(NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_42)], cmp.ClE_0):((TM__JdC9c6SaUkvO1XjYuWP1JWQ_43)(cmp.ClP_0))(a[m], a[(NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_42)]);
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T4_ = (NI)0; T4_ = star___kgZDSIMT2vrZak9bMmeL40walgorithm(T3_, order_0); if (!(T4_ <= ((NI) 0))) goto LA5_;
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA5_: ;
|
|
|
|
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
j = lo;
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!!((j <= m))) goto LA9_;
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__JdC9c6SaUkvO1XjYuWP1JWQ_9));
|
|
}
|
|
LA9_: ;
|
|
|
|
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
bb = ((NI) 0); {
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_44; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_45;
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(j <= m)) goto LA12;
|
|
if ((NU)(bb) >= (NU)(bLen_0)){ raiseIndexError2(bb,bLen_0-1); }
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } unsureAsgnRef((void**) (&b[bb]), a[j]);
|
|
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(bb, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_44)) { raiseOverflow(); }; bb = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_44);
|
|
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(j, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_45)) { raiseOverflow(); }; j = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_45); } LA12: ;
|
|
}
|
|
|
|
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
i = ((NI) 0);
|
|
#line 357 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
k = lo; {
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NIM_BOOL T15_; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_49;
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (NIM_BOOL)0;
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (k < j); if (!(T15_)) goto LA16_;
|
|
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (j <= hi); LA16_: ;
|
|
if (!T15_) goto LA14;
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{ NI T19_; NI T20_; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_47;
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } T19_ = (NI)0; T19_ = cmp.ClE_0? cmp.ClP_0(b[i], a[j], cmp.ClE_0):((TM__JdC9c6SaUkvO1XjYuWP1JWQ_46)(cmp.ClP_0))(b[i], a[j]);
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T20_ = (NI)0; T20_ = star___kgZDSIMT2vrZak9bMmeL40walgorithm(T19_, order_0); if (!(T20_ <= ((NI) 0))) goto LA21_;
|
|
if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 361 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } unsureAsgnRef((void**) (&a[k]), b[i]);
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_47)) { raiseOverflow(); }; i = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_47); }
|
|
goto LA17_;
|
|
LA21_: ;
|
|
{ NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_48; if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } unsureAsgnRef((void**) (&a[k]), a[j]);
|
|
#line 365 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(j, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_48)) { raiseOverflow(); }; j = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_48); }
|
|
LA17_: ;
|
|
|
|
#line 366 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(k, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_49)) { raiseOverflow(); }; k = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_49); } LA14: ;
|
|
}
|
|
{
|
|
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_50; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_51;
|
|
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(k < j)) goto LA25;
|
|
if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } unsureAsgnRef((void**) (&a[k]), b[i]);
|
|
#line 371 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(k, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_50)) { raiseOverflow(); }; k = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_50);
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_51)) { raiseOverflow(); }; i = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_51); } LA25: ;
|
|
}
|
|
}BeforeRet_: ;
|
|
}
|
|
|
|
#line 376 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, sort__zsRcpAUltKC7KTE9cr9cJ84w)(tyObject_PubSubPeercolonObjectType___6rsvBHOjeRkx0KPoUqsmsw** a, NI aLen_0, tyProc__9aoDGkHIHJdZaKAh3cotoXQ cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0) { NI n_1; tySequence__pH9cYemtuJZdtXFZUWL7TOA* b; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_39; NI s_1;
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
n_1 = aLen_0; b = (tySequence__pH9cYemtuJZdtXFZUWL7TOA*)0;
|
|
#line 420 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 420 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (((NI) 2) == 0){ raiseDivByZero(); } if (nimDivInt(n_1, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_39)) { raiseOverflow(); }; if (((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_39)) < ((NI) 0) || ((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_39)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_39), ((NI) 0), ((NI) IL64(9223372036854775807))); } b = (tySequence__pH9cYemtuJZdtXFZUWL7TOA*) newSeq((&NTI__pH9cYemtuJZdtXFZUWL7TOA_), ((NI) ((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_39))));
|
|
#line 421 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
s_1 = ((NI) 1); {
|
|
#line 422 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI m; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_40; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_41; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_57;
|
|
#line 422 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(s_1 < n_1)) goto LA2;
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt(n_1, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_40)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_40), s_1, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_41)) { raiseOverflow(); }; m = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_41); {
|
|
#line 424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_52; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_53; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_54; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_55; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_56;
|
|
#line 424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(((NI) 0) <= m)) goto LA4;
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt(m, s_1, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_52)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_52), ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_53)) { raiseOverflow(); };
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(m, s_1, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_54)) { raiseOverflow(); };
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
merge__RVpMHlXV9cgk7yWaIsQNWRQ(a, aLen_0, b->data, (b ? b->Sup.len : 0), (((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_53) >= ((NI) 0)) ? (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_53) : ((NI) 0)), m, (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_54), cmp, order_0);
|
|
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimMulInt(s_1, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_55)) { raiseOverflow(); }; if (nimSubInt(m, (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_55), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_56)) { raiseOverflow(); }; m = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_56); } LA4: ;
|
|
}
|
|
|
|
#line 427 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 427 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimMulInt(s_1, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_57)) { raiseOverflow(); }; s_1 = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_57); } LA2: ;
|
|
}
|
|
}
|
|
|
|
#line 337 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, merge__dpj7uWNv7I21T9bW7k3jALA)(tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw* a, NI aLen_0, tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw* b, NI bLen_0, NI lo, NI m, NI hi, tyProc__Sf79cJPJ0Oe9cdFKvuT0MbUg cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0) { NI j; NI bb; NI i; NI k;{
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{ NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_61; NI T3_; NI T4_;
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(m) >= (NU)(aLen_0)){ raiseIndexError2(m,aLen_0-1); }
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(m, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_61)) { raiseOverflow(); }; if ((NU)((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_61)) >= (NU)(aLen_0)){ raiseIndexError2((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_61),aLen_0-1); } T3_ = (NI)0; T3_ = cmp.ClE_0? cmp.ClP_0((&a[m]), (&a[(NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_61)]), cmp.ClE_0):((TM__JdC9c6SaUkvO1XjYuWP1JWQ_62)(cmp.ClP_0))((&a[m]), (&a[(NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_61)]));
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T4_ = (NI)0; T4_ = star___kgZDSIMT2vrZak9bMmeL40walgorithm(T3_, order_0); if (!(T4_ <= ((NI) 0))) goto LA5_;
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA5_: ;
|
|
|
|
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
j = lo;
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!!((j <= m))) goto LA9_;
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__JdC9c6SaUkvO1XjYuWP1JWQ_9));
|
|
}
|
|
LA9_: ;
|
|
|
|
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
bb = ((NI) 0); {
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_63; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_64;
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(j <= m)) goto LA12;
|
|
if ((NU)(bb) >= (NU)(bLen_0)){ raiseIndexError2(bb,bLen_0-1); }
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } unsureAsgnRef((void**) (&b[bb].msg.payload), a[j].msg.payload); b[bb].msg.contentTopic = a[j].msg.contentTopic; b[bb].msg.version = a[j].msg.version; b[bb].index = a[j].index;
|
|
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(bb, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_63)) { raiseOverflow(); }; bb = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_63);
|
|
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(j, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_64)) { raiseOverflow(); }; j = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_64); } LA12: ;
|
|
}
|
|
|
|
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
i = ((NI) 0);
|
|
#line 357 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
k = lo; {
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NIM_BOOL T15_; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_68;
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (NIM_BOOL)0;
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (k < j); if (!(T15_)) goto LA16_;
|
|
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (j <= hi); LA16_: ;
|
|
if (!T15_) goto LA14;
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{ NI T19_; NI T20_; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_66;
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } T19_ = (NI)0; T19_ = cmp.ClE_0? cmp.ClP_0((&b[i]), (&a[j]), cmp.ClE_0):((TM__JdC9c6SaUkvO1XjYuWP1JWQ_65)(cmp.ClP_0))((&b[i]), (&a[j]));
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T20_ = (NI)0; T20_ = star___kgZDSIMT2vrZak9bMmeL40walgorithm(T19_, order_0); if (!(T20_ <= ((NI) 0))) goto LA21_;
|
|
if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 361 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } unsureAsgnRef((void**) (&a[k].msg.payload), b[i].msg.payload); a[k].msg.contentTopic = b[i].msg.contentTopic; a[k].msg.version = b[i].msg.version; a[k].index = b[i].index;
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_66)) { raiseOverflow(); }; i = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_66); }
|
|
goto LA17_;
|
|
LA21_: ;
|
|
{ NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_67; if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } unsureAsgnRef((void**) (&a[k].msg.payload), a[j].msg.payload); a[k].msg.contentTopic = a[j].msg.contentTopic; a[k].msg.version = a[j].msg.version; a[k].index = a[j].index;
|
|
#line 365 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(j, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_67)) { raiseOverflow(); }; j = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_67); }
|
|
LA17_: ;
|
|
|
|
#line 366 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(k, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_68)) { raiseOverflow(); }; k = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_68); } LA14: ;
|
|
}
|
|
{
|
|
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_69; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_70;
|
|
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(k < j)) goto LA25;
|
|
if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } unsureAsgnRef((void**) (&a[k].msg.payload), b[i].msg.payload); a[k].msg.contentTopic = b[i].msg.contentTopic; a[k].msg.version = b[i].msg.version; a[k].index = b[i].index;
|
|
#line 371 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(k, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_69)) { raiseOverflow(); }; k = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_69);
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_70)) { raiseOverflow(); }; i = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_70); } LA25: ;
|
|
}
|
|
}BeforeRet_: ;
|
|
}
|
|
|
|
#line 376 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, sort__AMNfcu41BZOuWo4cZ9b8rug)(tyObject_IndexedWakuMessage__9cl9a9a4SOJOfbd2cZp8afXXw* a, NI aLen_0, tyProc__Sf79cJPJ0Oe9cdFKvuT0MbUg cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0) { NI n_1; tySequence__8d9bxJ1229c513mLE0NixLcQ* b; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_58; NI s_1;
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
n_1 = aLen_0; b = (tySequence__8d9bxJ1229c513mLE0NixLcQ*)0;
|
|
#line 420 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 420 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (((NI) 2) == 0){ raiseDivByZero(); } if (nimDivInt(n_1, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_58)) { raiseOverflow(); }; if (((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_58)) < ((NI) 0) || ((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_58)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_58), ((NI) 0), ((NI) IL64(9223372036854775807))); } b = (tySequence__8d9bxJ1229c513mLE0NixLcQ*) newSeq((&NTI__8d9bxJ1229c513mLE0NixLcQ_), ((NI) ((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_58))));
|
|
#line 421 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
s_1 = ((NI) 1); {
|
|
#line 422 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI m; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_59; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_60; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_76;
|
|
#line 422 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(s_1 < n_1)) goto LA2;
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt(n_1, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_59)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_59), s_1, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_60)) { raiseOverflow(); }; m = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_60); {
|
|
#line 424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_71; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_72; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_73; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_74; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_75;
|
|
#line 424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(((NI) 0) <= m)) goto LA4;
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt(m, s_1, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_71)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_71), ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_72)) { raiseOverflow(); };
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(m, s_1, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_73)) { raiseOverflow(); };
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
merge__dpj7uWNv7I21T9bW7k3jALA(a, aLen_0, b->data, (b ? b->Sup.len : 0), (((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_72) >= ((NI) 0)) ? (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_72) : ((NI) 0)), m, (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_73), cmp, order_0);
|
|
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimMulInt(s_1, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_74)) { raiseOverflow(); }; if (nimSubInt(m, (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_74), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_75)) { raiseOverflow(); }; m = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_75); } LA4: ;
|
|
}
|
|
|
|
#line 427 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 427 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimMulInt(s_1, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_76)) { raiseOverflow(); }; s_1 = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_76); } LA2: ;
|
|
}
|
|
}
|
|
|
|
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, fill__hrrbWVz27TgJibU9cz0BECQ)(NI* a, NI aLen_0, NI value_0) { NI xX60gensym82100030_;
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
xX60gensym82100030_ = ((NI) 0); {
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_77;
|
|
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(xX60gensym82100030_ <= (aLen_0-1))) goto LA2;
|
|
if ((NU)(xX60gensym82100030_) >= (NU)(aLen_0)){ raiseIndexError2(xX60gensym82100030_,aLen_0-1); }
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
a[xX60gensym82100030_] = value_0;
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(xX60gensym82100030_, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_77)) { raiseOverflow(); }; xX60gensym82100030_ = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_77); } LA2: ;
|
|
}
|
|
}
|
|
|
|
#line 233 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, lowerBound__XK84qIrYFV4uz5BOsaEE7w)(tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA** a, NI aLen_0, tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* key_0, tyProc__s19c8U1xoiV7Op9bjGxr8jHA cmp) { NI result; NI count_1; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_78; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_79; NI step; NI pos; result = (NI)0;
|
|
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
result = ((NI) 0);
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt((aLen_0-1), ((NI) 0), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_78)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_78), ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_79)) { raiseOverflow(); }; count_1 = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_79); step = (NI)0; pos = (NI)0; {
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_80;
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!!((count_1 == ((NI) 0)))) goto LA2;
|
|
|
|
#line 260 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 260 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
step = (NI)((NI64)(count_1) >> (NU64)(((NI) 1)));
|
|
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(result, step, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_80)) { raiseOverflow(); }; pos = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_80);
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{ NI T5_; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_82; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_83; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_84;
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(pos) >= (NU)(aLen_0)){ raiseIndexError2(pos,aLen_0-1); } T5_ = (NI)0; T5_ = cmp.ClE_0? cmp.ClP_0(a[pos], key_0, cmp.ClE_0):((TM__JdC9c6SaUkvO1XjYuWP1JWQ_81)(cmp.ClP_0))(a[pos], key_0); if (!(T5_ < ((NI) 0))) goto LA6_;
|
|
|
|
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(pos, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_82)) { raiseOverflow(); }; result = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_82);
|
|
#line 264 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 264 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(step, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_83)) { raiseOverflow(); }; if (nimSubInt(count_1, (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_83), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_84)) { raiseOverflow(); }; count_1 = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_84); }
|
|
goto LA3_;
|
|
LA6_: ;
|
|
{
|
|
#line 266 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
count_1 = step; }
|
|
LA3_: ;
|
|
} LA2: ;
|
|
}
|
|
return result;}
|
|
|
|
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, reverse__WT7so8X1sBzmXGZn5S5A9bQ)(NIM_CHAR* a, NI aLen_0, NI first_0, NI last) { NI x_1; NI y_1;
|
|
#line 114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
x_1 = first_0;
|
|
#line 115 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
y_1 = last; {
|
|
#line 116 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NIM_CHAR T3_; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_85; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_86;
|
|
#line 116 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(((NI) (x_1)) < ((NI) (y_1)))) goto LA2;
|
|
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T3_ = (NIM_CHAR)0; if ((NU)(x_1) >= (NU)(aLen_0)){ raiseIndexError2(x_1,aLen_0-1); } if ((NU)(y_1) >= (NU)(aLen_0)){ raiseIndexError2(y_1,aLen_0-1); } T3_ = a[x_1]; a[x_1] = a[y_1]; a[y_1] = T3_;
|
|
#line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt(y_1, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_85)) { raiseOverflow(); }; if (TM__JdC9c6SaUkvO1XjYuWP1JWQ_85 < 0 || TM__JdC9c6SaUkvO1XjYuWP1JWQ_85 > IL64(9223372036854775807)){ raiseOverflow(); } y_1 = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_85);
|
|
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(x_1, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_86)) { raiseOverflow(); }; if (TM__JdC9c6SaUkvO1XjYuWP1JWQ_86 < 0 || TM__JdC9c6SaUkvO1XjYuWP1JWQ_86 > IL64(9223372036854775807)){ raiseOverflow(); } x_1 = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_86); } LA2: ;
|
|
}
|
|
}
|
|
|
|
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, reverse__ZFWXZRLpsKFl2OzCm4rOZA)(NIM_CHAR* a, NI aLen_0) {
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((((((NI) 0) >= (aLen_0-1)) ? ((NI) 0) : (aLen_0-1))) < ((NI) 0) || (((((NI) 0) >= (aLen_0-1)) ? ((NI) 0) : (aLen_0-1))) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(((((NI) 0) >= (aLen_0-1)) ? ((NI) 0) : (aLen_0-1)), ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
reverse__WT7so8X1sBzmXGZn5S5A9bQ(a, aLen_0, ((NI) 0), ((NI) (((((NI) 0) >= (aLen_0-1)) ? ((NI) 0) : (aLen_0-1)))));
|
|
}
|
|
|
|
#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 337 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, merge__jDch6qiEqa9aAe2W7J9akrdA)(tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA** a, NI aLen_0, tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA** b, NI bLen_0, NI lo, NI m, NI hi, tyProc__33CFNoSkYN6lr6NBdyoIBQ cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0) { NI j; NI bb; NI i; NI k;{
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{ NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_91; NI T3_; NI T4_;
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(m) >= (NU)(aLen_0)){ raiseIndexError2(m,aLen_0-1); }
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(m, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_91)) { raiseOverflow(); }; if ((NU)((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_91)) >= (NU)(aLen_0)){ raiseIndexError2((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_91),aLen_0-1); } T3_ = (NI)0; T3_ = cmp.ClE_0? cmp.ClP_0(a[m], a[(NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_91)], cmp.ClE_0):((TM__JdC9c6SaUkvO1XjYuWP1JWQ_92)(cmp.ClP_0))(a[m], a[(NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_91)]);
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T4_ = (NI)0; T4_ = star___kgZDSIMT2vrZak9bMmeL40walgorithm(T3_, order_0); if (!(T4_ <= ((NI) 0))) goto LA5_;
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA5_: ;
|
|
|
|
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
j = lo;
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!!((j <= m))) goto LA9_;
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__JdC9c6SaUkvO1XjYuWP1JWQ_9));
|
|
}
|
|
LA9_: ;
|
|
|
|
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
bb = ((NI) 0); {
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_93; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_94;
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(j <= m)) goto LA12;
|
|
if ((NU)(bb) >= (NU)(bLen_0)){ raiseIndexError2(bb,bLen_0-1); }
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } unsureAsgnRef((void**) (&b[bb]), a[j]);
|
|
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(bb, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_93)) { raiseOverflow(); }; bb = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_93);
|
|
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(j, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_94)) { raiseOverflow(); }; j = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_94); } LA12: ;
|
|
}
|
|
|
|
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
i = ((NI) 0);
|
|
#line 357 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
k = lo; {
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NIM_BOOL T15_; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_98;
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (NIM_BOOL)0;
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (k < j); if (!(T15_)) goto LA16_;
|
|
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (j <= hi); LA16_: ;
|
|
if (!T15_) goto LA14;
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{ NI T19_; NI T20_; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_96;
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } T19_ = (NI)0; T19_ = cmp.ClE_0? cmp.ClP_0(b[i], a[j], cmp.ClE_0):((TM__JdC9c6SaUkvO1XjYuWP1JWQ_95)(cmp.ClP_0))(b[i], a[j]);
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T20_ = (NI)0; T20_ = star___kgZDSIMT2vrZak9bMmeL40walgorithm(T19_, order_0); if (!(T20_ <= ((NI) 0))) goto LA21_;
|
|
if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 361 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } unsureAsgnRef((void**) (&a[k]), b[i]);
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_96)) { raiseOverflow(); }; i = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_96); }
|
|
goto LA17_;
|
|
LA21_: ;
|
|
{ NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_97; if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } unsureAsgnRef((void**) (&a[k]), a[j]);
|
|
#line 365 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(j, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_97)) { raiseOverflow(); }; j = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_97); }
|
|
LA17_: ;
|
|
|
|
#line 366 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(k, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_98)) { raiseOverflow(); }; k = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_98); } LA14: ;
|
|
}
|
|
{
|
|
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_99; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_100;
|
|
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(k < j)) goto LA25;
|
|
if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } unsureAsgnRef((void**) (&a[k]), b[i]);
|
|
#line 371 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(k, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_99)) { raiseOverflow(); }; k = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_99);
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_100)) { raiseOverflow(); }; i = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_100); } LA25: ;
|
|
}
|
|
}BeforeRet_: ;
|
|
}
|
|
|
|
#line 376 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, sort__nJyNVSMA4kvLMVtGAffc3A)(tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA** a, NI aLen_0, tyProc__33CFNoSkYN6lr6NBdyoIBQ cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0) { NI n_1; tySequence__8y8hhoTs9bVn1no7HCdDJwQ* b; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_88; NI s_1;
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
n_1 = aLen_0; b = (tySequence__8y8hhoTs9bVn1no7HCdDJwQ*)0;
|
|
#line 420 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 420 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (((NI) 2) == 0){ raiseDivByZero(); } if (nimDivInt(n_1, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_88)) { raiseOverflow(); }; if (((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_88)) < ((NI) 0) || ((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_88)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_88), ((NI) 0), ((NI) IL64(9223372036854775807))); } b = (tySequence__8y8hhoTs9bVn1no7HCdDJwQ*) newSeq((&NTI__8y8hhoTs9bVn1no7HCdDJwQ_), ((NI) ((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_88))));
|
|
#line 421 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
s_1 = ((NI) 1); {
|
|
#line 422 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI m; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_89; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_90; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_106;
|
|
#line 422 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(s_1 < n_1)) goto LA2;
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt(n_1, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_89)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_89), s_1, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_90)) { raiseOverflow(); }; m = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_90); {
|
|
#line 424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_101; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_102; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_103; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_104; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_105;
|
|
#line 424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(((NI) 0) <= m)) goto LA4;
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt(m, s_1, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_101)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_101), ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_102)) { raiseOverflow(); };
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(m, s_1, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_103)) { raiseOverflow(); };
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
merge__jDch6qiEqa9aAe2W7J9akrdA(a, aLen_0, b->data, (b ? b->Sup.len : 0), (((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_102) >= ((NI) 0)) ? (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_102) : ((NI) 0)), m, (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_103), cmp, order_0);
|
|
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimMulInt(s_1, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_104)) { raiseOverflow(); }; if (nimSubInt(m, (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_104), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_105)) { raiseOverflow(); }; m = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_105); } LA4: ;
|
|
}
|
|
|
|
#line 427 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 427 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimMulInt(s_1, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_106)) { raiseOverflow(); }; s_1 = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_106); } LA2: ;
|
|
}
|
|
}
|
|
|
|
#line 439 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__8y8hhoTs9bVn1no7HCdDJwQ*, sorted__mhH9ahqyMLvOP5pXf7aI7hw)(tyObject_KBucketcolonObjectType___WQiQdZ7rHpARW9cCKtu1c9aA** a, NI aLen_0, tyProc__33CFNoSkYN6lr6NBdyoIBQ cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0) { tySequence__8y8hhoTs9bVn1no7HCdDJwQ* result; result = (tySequence__8y8hhoTs9bVn1no7HCdDJwQ*)0;
|
|
#line 456 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 456 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((aLen_0) < ((NI) 0) || (aLen_0) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(aLen_0, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 456 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
result = newSeq__AEmAjjzKH1X9a9aC4SfNF6OA(((NI) (aLen_0))); { NI i; NI colontmp_; NI res; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
colontmp_ = (aLen_0-1);
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = ((NI) 0); {
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_87;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(res <= colontmp_)) goto LA3;
|
|
|
|
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
i = res; if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(i,(result ? result->Sup.len : 0)-1); }
|
|
#line 458 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(aLen_0)){ raiseIndexError2(i,aLen_0-1); } asgnRef((void**) (&result->data[i]), a[i]);
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(res, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_87)) { raiseOverflow(); }; res = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_87); } LA3: ;
|
|
}
|
|
}
|
|
|
|
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
sort__nJyNVSMA4kvLMVtGAffc3A(result->data, (result ? result->Sup.len : 0), cmp, order_0);
|
|
return result;}
|
|
|
|
#line 337 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, merge__DCWbD5xLNic2g9ct39bFox8w)(tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg** a, NI aLen_0, tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg** b, NI bLen_0, NI lo, NI m, NI hi, tyProc__cSrno5rc3KqR4AH687gzWQ cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0) { NI j; NI bb; NI i; NI k;{
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{ NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_111; NI T3_; NI T4_;
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(m) >= (NU)(aLen_0)){ raiseIndexError2(m,aLen_0-1); }
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(m, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_111)) { raiseOverflow(); }; if ((NU)((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_111)) >= (NU)(aLen_0)){ raiseIndexError2((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_111),aLen_0-1); } T3_ = (NI)0; T3_ = cmp.ClE_0? cmp.ClP_0(a[m], a[(NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_111)], cmp.ClE_0):((TM__JdC9c6SaUkvO1XjYuWP1JWQ_112)(cmp.ClP_0))(a[m], a[(NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_111)]);
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T4_ = (NI)0; T4_ = star___kgZDSIMT2vrZak9bMmeL40walgorithm(T3_, order_0); if (!(T4_ <= ((NI) 0))) goto LA5_;
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA5_: ;
|
|
|
|
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
j = lo;
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!!((j <= m))) goto LA9_;
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__JdC9c6SaUkvO1XjYuWP1JWQ_9));
|
|
}
|
|
LA9_: ;
|
|
|
|
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
bb = ((NI) 0); {
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_113; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_114;
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(j <= m)) goto LA12;
|
|
if ((NU)(bb) >= (NU)(bLen_0)){ raiseIndexError2(bb,bLen_0-1); }
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } unsureAsgnRef((void**) (&b[bb]), a[j]);
|
|
#line 351 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(bb, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_113)) { raiseOverflow(); }; bb = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_113);
|
|
#line 352 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(j, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_114)) { raiseOverflow(); }; j = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_114); } LA12: ;
|
|
}
|
|
|
|
#line 356 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
i = ((NI) 0);
|
|
#line 357 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
k = lo; {
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NIM_BOOL T15_; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_118;
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (NIM_BOOL)0;
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (k < j); if (!(T15_)) goto LA16_;
|
|
|
|
#line 359 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T15_ = (j <= hi); LA16_: ;
|
|
if (!T15_) goto LA14;
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
{ NI T19_; NI T20_; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_116;
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } T19_ = (NI)0; T19_ = cmp.ClE_0? cmp.ClP_0(b[i], a[j], cmp.ClE_0):((TM__JdC9c6SaUkvO1XjYuWP1JWQ_115)(cmp.ClP_0))(b[i], a[j]);
|
|
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
T20_ = (NI)0; T20_ = star___kgZDSIMT2vrZak9bMmeL40walgorithm(T19_, order_0); if (!(T20_ <= ((NI) 0))) goto LA21_;
|
|
if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 361 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } unsureAsgnRef((void**) (&a[k]), b[i]);
|
|
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_116)) { raiseOverflow(); }; i = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_116); }
|
|
goto LA17_;
|
|
LA21_: ;
|
|
{ NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_117; if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(j) >= (NU)(aLen_0)){ raiseIndexError2(j,aLen_0-1); } unsureAsgnRef((void**) (&a[k]), a[j]);
|
|
#line 365 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(j, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_117)) { raiseOverflow(); }; j = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_117); }
|
|
LA17_: ;
|
|
|
|
#line 366 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(k, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_118)) { raiseOverflow(); }; k = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_118); } LA14: ;
|
|
}
|
|
{
|
|
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_119; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_120;
|
|
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(k < j)) goto LA25;
|
|
if ((NU)(k) >= (NU)(aLen_0)){ raiseIndexError2(k,aLen_0-1); }
|
|
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(bLen_0)){ raiseIndexError2(i,bLen_0-1); } unsureAsgnRef((void**) (&a[k]), b[i]);
|
|
#line 371 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(k, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_119)) { raiseOverflow(); }; k = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_119);
|
|
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_120)) { raiseOverflow(); }; i = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_120); } LA25: ;
|
|
}
|
|
}BeforeRet_: ;
|
|
}
|
|
|
|
#line 376 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, sort__aa9bCAW5aw4TLcJe6tniHhA)(tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg** a, NI aLen_0, tyProc__cSrno5rc3KqR4AH687gzWQ cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0) { NI n_1; tySequence__Wq0ZcI6MO5RSp6EwbCW5fA* b; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_108; NI s_1;
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
n_1 = aLen_0; b = (tySequence__Wq0ZcI6MO5RSp6EwbCW5fA*)0;
|
|
#line 420 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 420 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (((NI) 2) == 0){ raiseDivByZero(); } if (nimDivInt(n_1, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_108)) { raiseOverflow(); }; if (((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_108)) < ((NI) 0) || ((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_108)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_108), ((NI) 0), ((NI) IL64(9223372036854775807))); } b = (tySequence__Wq0ZcI6MO5RSp6EwbCW5fA*) newSeq((&NTI__Wq0ZcI6MO5RSp6EwbCW5fA_), ((NI) ((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_108))));
|
|
#line 421 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
s_1 = ((NI) 1); {
|
|
#line 422 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI m; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_109; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_110; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_126;
|
|
#line 422 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(s_1 < n_1)) goto LA2;
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt(n_1, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_109)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_109), s_1, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_110)) { raiseOverflow(); }; m = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_110); {
|
|
#line 424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_121; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_122; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_123; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_124; NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_125;
|
|
#line 424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (!(((NI) 0) <= m)) goto LA4;
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimSubInt(m, s_1, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_121)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_121), ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_122)) { raiseOverflow(); };
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimAddInt(m, s_1, &TM__JdC9c6SaUkvO1XjYuWP1JWQ_123)) { raiseOverflow(); };
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
merge__DCWbD5xLNic2g9ct39bFox8w(a, aLen_0, b->data, (b ? b->Sup.len : 0), (((NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_122) >= ((NI) 0)) ? (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_122) : ((NI) 0)), m, (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_123), cmp, order_0);
|
|
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimMulInt(s_1, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_124)) { raiseOverflow(); }; if (nimSubInt(m, (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_124), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_125)) { raiseOverflow(); }; m = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_125); } LA4: ;
|
|
}
|
|
|
|
#line 427 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 427 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if (nimMulInt(s_1, ((NI) 2), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_126)) { raiseOverflow(); }; s_1 = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_126); } LA2: ;
|
|
}
|
|
}
|
|
|
|
#line 439 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__Wq0ZcI6MO5RSp6EwbCW5fA*, sorted__005s9ciFH8sm9ba82Im9bJQaQ)(tyObject_NodecolonObjectType___qHnzRdH4zCCluGzY2Ao49cg** a, NI aLen_0, tyProc__cSrno5rc3KqR4AH687gzWQ cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0) { tySequence__Wq0ZcI6MO5RSp6EwbCW5fA* result; result = (tySequence__Wq0ZcI6MO5RSp6EwbCW5fA*)0;
|
|
#line 456 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 456 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((aLen_0) < ((NI) 0) || (aLen_0) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(aLen_0, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 456 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
result = newSeq__sw9agoMS2JUpRl70LDvFodA(((NI) (aLen_0))); { NI i; NI colontmp_; NI res; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
colontmp_ = (aLen_0-1);
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = ((NI) 0); {
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__JdC9c6SaUkvO1XjYuWP1JWQ_107;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(res <= colontmp_)) goto LA3;
|
|
|
|
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
i = res; if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(i,(result ? result->Sup.len : 0)-1); }
|
|
#line 458 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
if ((NU)(i) >= (NU)(aLen_0)){ raiseIndexError2(i,aLen_0-1); } asgnRef((void**) (&result->data[i]), a[i]);
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(res, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_107)) { raiseOverflow(); }; res = (NI)(TM__JdC9c6SaUkvO1XjYuWP1JWQ_107); } LA3: ;
|
|
}
|
|
}
|
|
|
|
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
|
|
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/algorithm.nim"
|
|
sort__aa9bCAW5aw4TLcJe6tniHhA(result->data, (result ? result->Sup.len : 0), cmp, order_0);
|
|
return result;}
|
|
N_LIB_PRIVATE N_NIMCALL(void, stdlib_algorithmDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
NTI__WaO29cd9ajb7ztEentzP4H8w_.size = sizeof(tySequence__WaO29cd9ajb7ztEentzP4H8w*);
|
|
NTI__WaO29cd9ajb7ztEentzP4H8w_.kind = 24;
|
|
NTI__WaO29cd9ajb7ztEentzP4H8w_.base = (&NTI__0hEbbYmlam6yzyW5MFo9cjg_);
|
|
NTI__WaO29cd9ajb7ztEentzP4H8w_.flags = 2;
|
|
NTI__WaO29cd9ajb7ztEentzP4H8w_.name = "seq[tuple of (cstring, int)]";
|
|
NTI__WaO29cd9ajb7ztEentzP4H8w_.nextType = nimTypeRoot; nimTypeRoot=&NTI__WaO29cd9ajb7ztEentzP4H8w_;
|
|
NTI__WaO29cd9ajb7ztEentzP4H8w_.marker = Marker_tySequence__WaO29cd9ajb7ztEentzP4H8w;
|
|
}
|
|
|