mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-30 00:25:45 +00:00
471 lines
33 KiB
C
471 lines
33 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-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/certs -I/home/runner/work/nim-waku/nim-waku/vendor/nim-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 -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/v1/node -o nimcache/release/quicksim/stdlib_algorithm.nim.c.o nimcache/release/quicksim/stdlib_algorithm.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <string.h>
|
|
#undef LANGUAGE_C
|
|
#undef MIPSEB
|
|
#undef MIPSEL
|
|
#undef PPC
|
|
#undef R3000
|
|
#undef R4000
|
|
#undef i386
|
|
#undef linux
|
|
#undef mips
|
|
#undef near
|
|
#undef far
|
|
#undef powerpc
|
|
#undef unix
|
|
#define nimfr_(x, y)
|
|
#define nimln_(x, y)
|
|
typedef struct 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 {
|
|
N_NIMCALL_PTR(NI, ClP_0) (tyTuple__0hEbbYmlam6yzyW5MFo9cjg x_0, tyTuple__0hEbbYmlam6yzyW5MFo9cjg y_0, 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_0, tyTuple__0hEbbYmlam6yzyW5MFo9cjg y_0);
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
typedef N_CLOSURE_PTR(NI, TM__JdC9c6SaUkvO1XjYuWP1JWQ_12) (tyTuple__0hEbbYmlam6yzyW5MFo9cjg x_0, tyTuple__0hEbbYmlam6yzyW5MFo9cjg y_0);
|
|
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);
|
|
struct tySequence__WaO29cd9ajb7ztEentzP4H8w { TGenericSeq Sup; tyTuple__0hEbbYmlam6yzyW5MFo9cjg data[SEQ_DECL_SIZE];};struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 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_0);
|
|
static N_INLINE(NI, star___kgZDSIMT2vrZak9bMmeL40walgorithm)(NI x_0, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0);
|
|
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);
|
|
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* nimTypeRoot;
|
|
|
|
#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_0, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order_0) { NI result; NI y_1; 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_0, ((NI) 1), &TM__JdC9c6SaUkvO1XjYuWP1JWQ_5)) { raiseOverflow(); }; y_1 = (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_0 ^ y_1), y_1, &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_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_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_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_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_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); } 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_0) { NI n_1; 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_1 = 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_1, ((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_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_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_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, ((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;}
|
|
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;
|
|
}
|
|
|