nwaku/nimcache/release/start_network/@mstart_network.nim.c

2237 lines
154 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 -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/start_network/@mstart_network.nim.c.o nimcache/release/start_network/@mstart_network.nim.c */
#define NIM_INTBITS 64
#include "nimbase.h"
#include <string.h>
#include <setjmp.h>
#include <sys/types.h>
#include <pthread.h>
#include "bearssl_rand.h"
#include "bearssl_hash.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 tyObject_WakuNetworkConf__qdr4chqQQ42iMEr84AYzoA tyObject_WakuNetworkConf__qdr4chqQQ42iMEr84AYzoA;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct TGenericSeq TGenericSeq;
typedef struct NimStringDesc NimStringDesc;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tySequence__9cz7rkItAO3G9c3dheJwvcqg tySequence__9cz7rkItAO3G9c3dheJwvcqg;
typedef struct tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A;
typedef struct tyObject_SkKeyPair__11md6PDL9c3Ydro9bo69avH7g tyObject_SkKeyPair__11md6PDL9c3Ydro9bo69avH7g;
typedef struct tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w;
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 tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw;
typedef struct Exception Exception;
typedef struct RootObj RootObj;
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
typedef struct TSafePoint TSafePoint;
typedef struct tyObject_TopicSettings__oHdFGV9aUkZXwZgwzeiU4oQ tyObject_TopicSettings__oHdFGV9aUkZXwZgwzeiU4oQ;
typedef struct tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA;
typedef struct tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg;
typedef struct tyTuple__yobv8JsmBBRNC1NIieLJzQ tyTuple__yobv8JsmBBRNC1NIieLJzQ;
typedef struct tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA;
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
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 tyTuple__UV3llMMYFckfui8YMBuUZA tyTuple__UV3llMMYFckfui8YMBuUZA;
typedef struct tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q;
typedef struct tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg;
typedef struct tySequence__MlAD6nAPq9bHKla9cWiIZP0g tySequence__MlAD6nAPq9bHKla9cWiIZP0g;
typedef struct tySequence__oLpBKXzW3hF9aCVMo5EymfQ tySequence__oLpBKXzW3hF9aCVMo5EymfQ;
typedef struct tyObject_SerializationError__pU5THS9aG4YyseMvUN63xFQ tyObject_SerializationError__pU5THS9aG4YyseMvUN63xFQ;
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
typedef struct tyTuple__awOivLjlO76sGdHY7nQUjQ tyTuple__awOivLjlO76sGdHY7nQUjQ;
typedef NU8 tyEnum_Topology__u5YFhUoGVKboFIgGYZd3wA;
struct tyObject_WakuNetworkConf__qdr4chqQQ42iMEr84AYzoA {tyEnum_Topology__u5YFhUoGVKboFIgGYZd3wA topology;
NI amount;
NI testNodePeers;
};
struct TGenericSeq {NI len;
NI reserved;
};
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
};
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;
};
struct tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A {NimStringDesc* cmd;
NIM_BOOL master;
NimStringDesc* enode;
NI shift;
NimStringDesc* label;
};
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void);
typedef NU8 tyEnum_NodeType__TJ530cHhl9aO8CyECHHNBhA;
typedef NU8 tyArray__vEOa9c5qaE9ajWxR5R4zwfQg[32];
struct tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg data;
};
typedef NU8 tyArray__w5VB8h5K8DB3oWrO5U2wqg[64];
struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ {tyArray__w5VB8h5K8DB3oWrO5U2wqg data;
};
struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA {tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ data;
};
struct tyObject_SkKeyPair__11md6PDL9c3Ydro9bo69avH7g {tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w seckey;
tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA pubkey;
};
typedef NU8 tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA;
typedef NU8 tyArray__qtqsWM5aXmcpMIVmvq3kAA[16];
typedef NU8 tyArray__H8qf9bpC2ziYA2earmO8m7w[4];
struct tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA {tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA family;
union{
struct {tyArray__qtqsWM5aXmcpMIVmvq3kAA address_v6;
} _family_1;
struct {tyArray__H8qf9bpC2ziYA2earmO8m7w address_v4;
} _family_2;
};
};
struct tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA {tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA ip;
NU16 udpPort;
NU16 tcpPort;
};
struct tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw {tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA pubkey;
tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA address;
};
struct RootObj {TNimType* m_type;};
struct Exception { RootObj Sup;Exception* parent;
NCSTRING name;
NimStringDesc* message;
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
Exception* up;
};
typedef long tyArray__TcvIiMAJvcwzNLsZkfnFnQ[25];
struct TSafePoint {TSafePoint* prev;
NI status;
jmp_buf context;
};
typedef NU8 tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA;
typedef tyObject_TopicSettings__oHdFGV9aUkZXwZgwzeiU4oQ* tyArray__ZagBlFMl7KoYROF13oI1xA[1];
struct tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA {char dummy;
};
struct tyTuple__yobv8JsmBBRNC1NIieLJzQ {
tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA Field0;
};
struct tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg {tyTuple__yobv8JsmBBRNC1NIieLJzQ finalOutputs;
NimStringDesc* buffer;
};
struct tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA {tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg output;
tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA level;
};
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA { Exception Sup;};
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {NI refcount;
TNimType* typ;
};
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {void* bottom;
};
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {NI len;
NI cap;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
};
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512];
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
};
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {tyArray__0aOLqZchNi8nWtMTi8ND8w link;
NI key;
NI upperBound;
NI level;
};
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
NI Field1;
};
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {NI len;
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
};
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {NI minLargeObj;
NI maxLargeObj;
tyArray__SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks;
NU32 flBitmap;
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
NI currMem;
NI maxMem;
NI freeMem;
NI occ;
NI lastSize;
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
NIM_BOOL locked;
NIM_BOOL blockChunkSizeIncrease;
NI nextChunkSize;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
NI allocCounter;
NI deallocCounter;
};
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {NI stackScans;
NI cycleCollections;
NI maxThreshold;
NI maxStackSize;
NI maxStackCells;
NI cycleTableSize;
NI64 maxPause;
};
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {NI counter;
NI max;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
};
typedef long tyArray__xDUyu9aScDpt0JZLU6q9aEZQ[5];
struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw {tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* head;
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* tail;
pthread_mutex_t lock;
};
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
NI cycleThreshold;
NI zctThreshold;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
NI recGcLock;
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw toDispose;
NI gcThreadId;
};
struct tyTuple__UV3llMMYFckfui8YMBuUZA {
NimStringDesc* Field0;
NimStringDesc* Field1;
};
typedef NU8 tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg;
struct tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg {tySequence__MlAD6nAPq9bHKla9cWiIZP0g* data;
NI counter;
NI first;
NI last;
};
struct tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q {tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg kind;
union{
struct {NimStringDesc* str;
} _kind_1;
struct {NI64 num;
} _kind_2;
struct {NF fnum;
} _kind_3;
struct {NIM_BOOL bval;
} _kind_4;
struct {tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg fields;
} _kind_6;
struct {tySequence__oLpBKXzW3hF9aCVMo5EymfQ* elems;
} _kind_7;
};
};
typedef unsigned char tyArray__A1SHJCPZVISPTujoygIPEQ[64];
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
NI line;
NCSTRING filename;
};
struct tyTuple__awOivLjlO76sGdHY7nQUjQ {
NI Field0;
NI Field1;
NimStringDesc* Field2;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* Field3;
};
typedef N_CDECL_PTR(void, tyProc__3qI9bVHqiq07sTQRU9bkkkYQ) (br_prng_class** ctx, void* params, void* seed, NI seedLen);
typedef N_CDECL_PTR(void, tyProc__hquUwNr88w4T5ldt8BqLLQ) (br_prng_class** ctx, void* out_0, NI len_0);
typedef N_CDECL_PTR(void, tyProc__bF2JFxTs1q6Lq365NU79a2Q) (br_hash_class** ctx);
typedef N_CDECL_PTR(void, tyProc__Dc9br5a6SHw9cxie3cas0KTA) (br_hash_class** ctx, void* data_0, NI len_0);
typedef N_CDECL_PTR(void, tyProc__JETfgzvEnx6Tz9bYRct9a51g) (br_hash_class** ctx, void* dst);
typedef N_CDECL_PTR(NU64, tyProc__e9bd9aJH2sCZh75q9aAcv7ylg) (br_hash_class** ctx, void* dst);
typedef N_CDECL_PTR(void, tyProc__g9c2vH2tlPaPmvfTZ3PeWQQ) (br_hash_class** ctx, void* stb, NU64 count_0);
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ { TGenericSeq Sup; NimStringDesc* data[SEQ_DECL_SIZE];};struct tySequence__9cz7rkItAO3G9c3dheJwvcqg { TGenericSeq Sup; tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A data[SEQ_DECL_SIZE];};struct tySequence__oLpBKXzW3hF9aCVMo5EymfQ { TGenericSeq Sup; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* data[SEQ_DECL_SIZE];};struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};struct tySequence__MlAD6nAPq9bHKla9cWiIZP0g { TGenericSeq Sup; tyTuple__awOivLjlO76sGdHY7nQUjQ data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(tyObject_WakuNetworkConf__qdr4chqQQ42iMEr84AYzoA, load__5MraIuzeomh9bit9c3uMI0Eg)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ* cmdLine_0, NimStringDesc* version_0, NimStringDesc* copyrightBanner, NIM_BOOL printUsage, NIM_BOOL quitOnFailure);
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, commandLineParams__K1tl5In8R9bx536wDa4ggRw)(void);
N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
static N_NIMCALL(void, Marker_tySequence__9cz7rkItAO3G9c3dheJwvcqg)(void* p, NI op);
static N_NIMCALL(void, TM__d4AOD9a9caqvt0UiYkWs0hww_6)(void);
N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc);
N_LIB_PRIVATE N_NIMCALL(tySequence__9cz7rkItAO3G9c3dheJwvcqg*, starNetwork__GsLw5wkfY7nk59atJg9arYBg)(NI amount);
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, initNodeCmd__LWDZBlgJf8enZZxIFbDVhA)(tyEnum_NodeType__TJ530cHhl9aO8CyECHHNBhA nodeType, NI shift, tySequence__sM4lkSb7zS6F7OVMvW9cffQ* staticNodes, NIM_BOOL discovery, tySequence__sM4lkSb7zS6F7OVMvW9cffQ* bootNodes, NIM_BOOL topicInterest, NIM_BOOL master, NimStringDesc* label, tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A* Result);
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_LIB_PRIVATE N_NIMCALL(br_hmac_drbg_context*, newRng__9cKaYUOzNpI6Cw7CIYoErTQ)(void);
N_LIB_PRIVATE N_NIMCALL(tyObject_SkKeyPair__11md6PDL9c3Ydro9bo69avH7g, random__HS5tU9cyelo6UXEHvWOYUFg)(br_hmac_drbg_context* rng_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA, parseIpAddress__1ivqWNphfe1wCfgNmXXOCA)(NimStringDesc* addressStr);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, reprEnum)(NI e_0, TNimType* typ);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimBoolToStr)(NIM_BOOL x_0);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___3DNipDnN4A79aliwn9a5d9bQA)(tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w* seckey);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
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(NimStringDesc*, dollar___p1bJHljb0IASfa1yPunfKA)(tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw* n_0);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, topicsMatch__KytrWChpQmaEFB83SSLTgg)(tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA logStmtLevel, tyObject_TopicSettings__oHdFGV9aUkZXwZgwzeiU4oQ** logStmtTopics, NI logStmtTopicsLen_0);
N_LIB_PRIVATE N_NIMCALL(void, initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA lvl, NimStringDesc* topics, NimStringDesc* name_0);
N_LIB_PRIVATE N_NIMCALL(void, setProperty__czv7v33Y9bwyVAHI9b2eiKDw)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, NI val_0);
N_LIB_PRIVATE N_NIMCALL(NI, getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw)(void);
N_LIB_PRIVATE N_NIMCALL(void, setProperty__U2vmGWVLHFSD9cvjHnmuu2A)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, NimStringDesc* val_0);
N_LIB_PRIVATE N_NIMCALL(void, logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r);
N_LIB_PRIVATE N_NIMCALL(void, flushRecord__2TFyTWhDxeU5kGr2yqnA6w)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r);
static N_INLINE(void, popSafePoint)(void);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass);
static N_INLINE(Exception*, nimBorrowCurrentException)(void);
static N_INLINE(Exception*, getCurrentException)(void);
N_LIB_PRIVATE N_NIMCALL(void, logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg)(NCSTRING msg, Exception* ex);
static N_INLINE(void, popCurrentException)(void);
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, reraiseException)(void);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest_0, void* src, TNimType* mt);
N_LIB_PRIVATE N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
N_LIB_PRIVATE N_NIMCALL(tySequence__9cz7rkItAO3G9c3dheJwvcqg*, fullMeshNetwork__GsLw5wkfY7nk59atJg9arYBg_2)(NI amount);
N_LIB_PRIVATE N_NIMCALL(tySequence__9cz7rkItAO3G9c3dheJwvcqg*, discoveryNetwork__GsLw5wkfY7nk59atJg9arYBg_3)(NI amount);
static N_NIMCALL(void, TM__d4AOD9a9caqvt0UiYkWs0hww_44)(void);
static N_NIMCALL(void, TM__d4AOD9a9caqvt0UiYkWs0hww_48)(void);
static N_NIMCALL(void, TM__d4AOD9a9caqvt0UiYkWs0hww_50)(void);
static N_NIMCALL(void, TM__d4AOD9a9caqvt0UiYkWs0hww_51)(void);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
N_LIB_PRIVATE N_NIMCALL(void, formatValue__ACNJL1q6Oxfvi53i9bkeK6Q)(NimStringDesc** result, NI value_0, NimStringDesc* specifier);
N_LIB_PRIVATE N_NIMCALL(void, formatValue__3zjq9csYPBcIN7AqvyU5ZLA)(NimStringDesc** result, NimStringDesc* value_0, NimStringDesc* specifier);
N_LIB_PRIVATE N_NIMCALL(void, generatePrometheusConfig__rYdatxGPkOR6bGqw7vT1Zw)(tySequence__9cz7rkItAO3G9c3dheJwvcqg* nodes, NimStringDesc* outputFile);
N_LIB_PRIVATE N_NIMCALL(void, nossplitPath)(NimStringDesc* path, tyTuple__UV3llMMYFckfui8YMBuUZA* Result);
N_LIB_PRIVATE N_NIMCALL(void, noscreateDir)(NimStringDesc* dir);
N_LIB_PRIVATE N_NIMCALL(void, writeFile__D6Pj9c29aCLEJP9beOWa08HYA)(NimStringDesc* filename_0, NimStringDesc* content);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, slash___gEyhbzZ1UcxyenWRLJRXNQ)(NimStringDesc* head_0, NimStringDesc* tail_0);
N_LIB_PRIVATE N_NIMCALL(void, proccessGrafanaDashboard__YDJwAnq5sFl17BoRfefjpw)(NI nodes, NimStringDesc* inputFile, NimStringDesc* outputFile);
N_LIB_PRIVATE N_NIMCALL(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*, parseFile__Q9bbQtVlwjGc4S8fnWe9b3YA)(NimStringDesc* filename_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*, copy__r5dFiT9bcdPOEfGGrwLQKWg)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* p_0);
static N_INLINE(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*, X5BX5D___277k8m8OstpfbY4dHQex6wjson)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* node, NimStringDesc* name_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q**, X5BX5D___l9atGRY9bA25fn4p5uueZfUQ)(tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg* t, NimStringDesc* key_0);
N_LIB_PRIVATE N_NOINLINE(void, raiseFieldError)(NimStringDesc* f);
N_LIB_PRIVATE N_NIMCALL(NI, len__Og3BmQpaL5V6gYg5JnWK3Q)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* n_0);
N_LIB_PRIVATE N_NIMCALL(NI, getInt__1efdasyP68nDQg4BeLHzGQ)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* n_0, NI default_0);
static N_INLINE(void, X5BX5Deq___WmQhibcOp3ZlzI9bgifjalAjson)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* obj, NimStringDesc* key_0, tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* val_0);
N_LIB_PRIVATE N_NIMCALL(void, X5BX5Deq___vlnBr1uIbtu0ntnZh6Askg)(tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg* t, NimStringDesc* key_0, tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* val_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*, newJArray__nXwnFPu9beTnGPwglrr7ztA_3)(void);
N_LIB_PRIVATE N_NIMCALL(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*, percent___19ag6cl4fMjxytc9arHmLIbw_3)(NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuReplaceStr)(NimStringDesc* s, NimStringDesc* sub, NimStringDesc* by);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getStr__QeJX1ptVmfOrOg9cwOVpcAA)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* n_0, NimStringDesc* default_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*, percent___NSr46Qz23yGk4m9csPSbQBQ)(NI n_0);
N_LIB_PRIVATE N_NIMCALL(void, add__8FFZVkexaQ73y9aREGlrY9bQ)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* father, tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* child);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, pretty__6ucoq7dFiVhOGmHlWNWbTg)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* node, NI indent);
N_LIB_PRIVATE N_NIMCALL(NI, nospexecCmd)(NimStringDesc* command);
static N_NIMCALL(void, TM__d4AOD9a9caqvt0UiYkWs0hww_108)(void);
static N_INLINE(void, initStackBottomWith)(void* locals);
N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, formatMsg__PdfgthSJLyK9btpbxcxszCQ)(tyObject_SerializationError__pU5THS9aG4YyseMvUN63xFQ* err, NimStringDesc* filename_0);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_ioDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_optionsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_timesDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_timesInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_osDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_osInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, libbacktrace_libbacktraceInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_streamsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_tablesDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, confutils_defsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, confutils_cli_parserDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_terminalDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_terminalInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_lexbaseDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, confutils_shell_completionDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, confutils_confutilsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, chronicles_optionsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_dequesDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_heapqueueDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, chronos_timerDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_selectorsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, chronos_srclocDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, chronos_asyncloopDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, chronos_asyncloopInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, chronos_commonInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, faststreams_buffersDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, faststreams_outputsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, faststreams_outputsInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_memfilesDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, faststreams_inputsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, faststreams_inputsInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, faststreams_pipelinesDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, faststreams_pipelinesInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_parsejsonDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_jsonDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, chronicles_log_outputDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, chronicles_topics_registryDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, chronicles_topics_registryInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, bearssl_declsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, eth_keysDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, start_networkDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void);
N_LIB_PRIVATE TNimType NTI__u5YFhUoGVKboFIgGYZd3wA_;
N_LIB_PRIVATE TNimType NTI__gi9ah4npu9bxC3bTjea8de4A_;
extern TNimType NTI__77mFvmsOLKik79ci2hXkHEg_;
extern TNimType NTI__VaVACK0bpYmqIQ0mKcHfQQ_;
extern TNimType NTI__rR5Bzr1D5krxoo1NcNyeMA_;
N_LIB_PRIVATE TNimType NTI__9cz7rkItAO3G9c3dheJwvcqg_;
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_7, "127.0.0.1", 9);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_10, "build/wakunode --log-level:DEBUG --log-metrics --metrics-server"
" --rpc ", 70);
N_LIB_PRIVATE TNimType NTI__TJ530cHhl9aO8CyECHHNBhA_;
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_14, " ", 1);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_15, "--waku-topic-interest:", 22);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_16, "--nodekey:", 10);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_17, "--ports-shift:", 14);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_18, "--discovery:on ", 15);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_19, "--bootnode:", 11);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_21, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/system/iterators.nim(189, 11) `len(a) == L` the l"
"ength of the seq changed while iterating over it", 175);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_22, "--discovery:off ", 16);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_23, "--staticnode:", 13);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_26, "Node command created.", 21);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_27, "tid", 3);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_28, "file", 4);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_29, "start_network.nim:75", 20);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_30, "cmd", 3);
extern TNimType NTI__qrLSDoe2oBoAqNtJ9badtnA_;
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_31, "master node", 11);
extern TNimType NTI__sM4lkSb7zS6F7OVMvW9cffQ_;
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_33, "full node", 9);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_36, "amount", 6);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_37, "start_network.nim:86", 20);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_41, "boot node", 9);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_46, "light node topic interest", 25);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_47, "light node", 10);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_49, "multitail -s 2 -M 0 -x \"Waku Simulation\"", 40);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_52, " -cT ansi -t \'node #", 20);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_53, "\' -l \'sleep ", 12);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_54, "; ", 2);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_55, "; echo [node execution completed]; while true; do sleep 100; do"
"ne\'", 66);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_59, " global:\012 scrape_interval: 1s\012\012 scrape_configs:\012 - job_"
"name: \"wakusim\"\012 static_configs:", 100);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_61, "\012 - targets: [\'127.0.0.1:", 30);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_62, "\']\012 labels:\012 node: \'", 36);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_63, "\'", 1);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_66, "metrics", 7);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_67, "prometheus", 10);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_68, "prometheus.yml", 14);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_69, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/json.nim(464, 9) `not isNil(node)` ", 118);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_70, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/json.nim(465, 9) `node.kind == JObject` ", 123);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_71, "\'fields\' is not accessible using discriminant \'kind\' of type \'J"
"sonNodeObj\'", 74);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_72, "panels", 6);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_73, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/json.nim(744, 10) `node.kind == JArray` : it"
"ems() can not iterate a JsonNode of kind ", 168);
extern TNimType NTI__RUngo7nCHe6O8aBGIcrhtg_;
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_74, "\'elems\' is not accessible using discriminant \'kind\' of type \'Js"
"onNodeObj\'", 73);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_75, "gridPos", 7);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_76, "x", 1);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_77, "h", 1);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_80, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/json.nim(346, 9) `obj.kind == JObject` ", 122);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_82, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/json.nim(751, 10) `node.kind == JArray` : mi"
"tems() can not iterate a JsonNode of kind ", 169);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_83, "title", 5);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_84, "#0", 2);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_85, "#", 1);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_86, "id", 2);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_89, "y", 1);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_92, "targets", 7);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_93, "expr", 4);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_94, "{node=\"0\"}", 10);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_95, "{node=\"", 7);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_96, "\"}", 2);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_98, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/system/iterators.nim(198, 11) `len(a) == L` the l"
"ength of the seq changed while iterating over it", 175);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_102, "uid", 3);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_103, "a", 1);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_104, " (all nodes)", 12);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_105, "waku-grafana-dashboard.json", 27);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_106, "waku-sim-all-nodes-grafana-dashboard.json", 41);
extern TNimType NTI__EhHqp0aF43SxfS6MTF9b0hA_;
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_109, "launch command failed", 21);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_110, "start_network.nim:198", 21);
STRING_LITERAL(TM__d4AOD9a9caqvt0UiYkWs0hww_111, "command", 7);
N_LIB_PRIVATE tyObject_WakuNetworkConf__qdr4chqQQ42iMEr84AYzoA conf__9bE2YwKQ0lDqwEzXgVvGMMA;
extern TNimType* nimTypeRoot;
N_LIB_PRIVATE tySequence__9cz7rkItAO3G9c3dheJwvcqg* nodes__IDv4fOGhaw9bOf5YslYJHsg;
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
N_LIB_PRIVATE tySequence__sM4lkSb7zS6F7OVMvW9cffQ* staticnodes__eC4uCs41J9cFBBmor9cUQ6jw;
N_LIB_PRIVATE NI i__8pV5FgNnIIM4Ps9bIFQPUuw;
N_LIB_PRIVATE NimStringDesc* commandStr__xPEg9apZk0EvO9c29aXgEnA1g;
N_LIB_PRIVATE NI count__Ttr21btSQ61i09aaDXSnBkg = ((NI) 0);
N_LIB_PRIVATE NI sleepDuration__J51PuGJpZcSKpwtQN1ntVA = ((NI) 0);
N_LIB_PRIVATE tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A node__cIh8KmfJh1A7TDcpmTXScQ;
N_LIB_PRIVATE NimStringDesc* fmtRes__E9cXQAqdvj43GeXt0VoamOA;
N_LIB_PRIVATE NI errorCode__VNotKCAgnd3knnr7wuPA9cA;
N_LIB_PRIVATE tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA record__GiwFlnBZZ3SfeR0HZEcQUw;
static N_NIMCALL(void, Marker_tySequence__9cz7rkItAO3G9c3dheJwvcqg)(void* p, NI op) {
tySequence__9cz7rkItAO3G9c3dheJwvcqg* a;
NI T1_; a = (tySequence__9cz7rkItAO3G9c3dheJwvcqg*)p;
T1_ = (NI)0; for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
nimGCvisit((void*)a->data[T1_].cmd, op); nimGCvisit((void*)a->data[T1_].enode, op); nimGCvisit((void*)a->data[T1_].label, op); }
}
static N_NIMCALL(void, TM__d4AOD9a9caqvt0UiYkWs0hww_6)(void) {
nimGCvisit((void*)nodes__IDv4fOGhaw9bOf5YslYJHsg, 0);}
#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 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_;
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));}
#line 2112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
nimCopyMem(dest, source, size);
}
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
{
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
if (!!((src == NIM_NIL))) goto LA3_;
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
(*dest).Sup.len += (*src).Sup.len; }
LA3_: ;
}
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
static N_INLINE(void, pushSafePoint)(TSafePoint* s) {
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
(*s).prev = excHandler__rqLlY5bs9atDw2OXYqJEn5g;
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
excHandler__rqLlY5bs9atDw2OXYqJEn5g = s;}
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
static N_INLINE(void, popSafePoint)(void) {
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
excHandler__rqLlY5bs9atDw2OXYqJEn5g = (*excHandler__rqLlY5bs9atDw2OXYqJEn5g).prev;}
#line 2292 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(Exception*, nimBorrowCurrentException)(void) { Exception* result; result = (Exception*)0;
#line 2295 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
result = currException__9bVPeDJlYTi9bQApZpfH8wjg; return result;}
#line 2288 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(Exception*, getCurrentException)(void) { Exception* result; result = (Exception*)0;
#line 2290 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
result = currException__9bVPeDJlYTi9bQApZpfH8wjg; return result;}
#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 119 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
static N_INLINE(void, popCurrentException)(void) {
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
asgnRef((void**) (&currException__9bVPeDJlYTi9bQApZpfH8wjg), (*currException__9bVPeDJlYTi9bQApZpfH8wjg).up);}
#line 44 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
N_LIB_PRIVATE N_NIMCALL(void, initNodeCmd__LWDZBlgJf8enZZxIFbDVhA)(tyEnum_NodeType__TJ530cHhl9aO8CyECHHNBhA nodeType, NI shift, tySequence__sM4lkSb7zS6F7OVMvW9cffQ* staticNodes, NIM_BOOL discovery, tySequence__sM4lkSb7zS6F7OVMvW9cffQ* bootNodes, NIM_BOOL topicInterest, NIM_BOOL master, NimStringDesc* label, tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A* Result) { br_hmac_drbg_context* rng_1; tyObject_SkKeyPair__11md6PDL9c3Ydro9bo69avH7g keypair; tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA address; NI TM__d4AOD9a9caqvt0UiYkWs0hww_8; NI TM__d4AOD9a9caqvt0UiYkWs0hww_9; tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw enode; NimStringDesc* T1_; NimStringDesc* T2_; NimStringDesc* T3_; NimStringDesc* T4_; NimStringDesc* T5_; NimStringDesc* T6_; NimStringDesc* T7_; TSafePoint TM__d4AOD9a9caqvt0UiYkWs0hww_25; chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).cmd, NIM_NIL); (*Result).master = 0; unsureAsgnRef((void**)&(*Result).enode, NIM_NIL); (*Result).shift = 0; unsureAsgnRef((void**)&(*Result).label, NIM_NIL);
#line 48 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 48 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
rng_1 = newRng__9cKaYUOzNpI6Cw7CIYoErTQ();
#line 49 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 49 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
keypair = random__HS5tU9cyelo6UXEHvWOYUFg(rng_1);
#line 50 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
chckNil((void*)(&address)); nimZeroMem((void*)(&address), sizeof(tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA));
#line 50 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 50 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
address.ip = parseIpAddress__1ivqWNphfe1wCfgNmXXOCA(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_7));
#line 51 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (nimAddInt(((NI) 30303), shift, &TM__d4AOD9a9caqvt0UiYkWs0hww_8)) { raiseOverflow(); }; address.udpPort = ((NU16) ((NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_8)));
#line 51 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (nimAddInt(((NI) 30303), shift, &TM__d4AOD9a9caqvt0UiYkWs0hww_9)) { raiseOverflow(); }; address.tcpPort = ((NU16) ((NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_9)));
#line 52 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
chckNil((void*)(&enode)); nimZeroMem((void*)(&enode), sizeof(tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw)); enode.pubkey = keypair.pubkey; enode.address = address;
#line 54 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
unsureAsgnRef((void**) (&(*Result).cmd), copyString(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_10)));
#line 55 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 55 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T1_ = (NimStringDesc*)0;
#line 55 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T1_ = rawNewString((reprEnum((NI)nodeType, (&NTI__TJ530cHhl9aO8CyECHHNBhA_)) ? reprEnum((NI)nodeType, (&NTI__TJ530cHhl9aO8CyECHHNBhA_))->Sup.len : 0) + 1);appendString(T1_, reprEnum((NI)nodeType, (&NTI__TJ530cHhl9aO8CyECHHNBhA_)));appendString(T1_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_14)); unsureAsgnRef((void**) (&(*Result).cmd), resizeString((*Result).cmd, (T1_ ? T1_->Sup.len : 0) + 0));appendString((*Result).cmd, T1_);
#line 56 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 56 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T2_ = (NimStringDesc*)0;
#line 56 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T3_ = (NimStringDesc*)0; T3_ = nimBoolToStr(topicInterest); T2_ = rawNewString((T3_ ? T3_->Sup.len : 0) + 23);appendString(T2_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_15));appendString(T2_, T3_);appendString(T2_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_14)); unsureAsgnRef((void**) (&(*Result).cmd), resizeString((*Result).cmd, (T2_ ? T2_->Sup.len : 0) + 0));appendString((*Result).cmd, T2_);
#line 57 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 57 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T4_ = (NimStringDesc*)0;
#line 57 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 57 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T5_ = (NimStringDesc*)0; T5_ = dollar___3DNipDnN4A79aliwn9a5d9bQA((&keypair.seckey)); T4_ = rawNewString((T5_ ? T5_->Sup.len : 0) + 11);appendString(T4_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_16));appendString(T4_, T5_);appendString(T4_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_14)); unsureAsgnRef((void**) (&(*Result).cmd), resizeString((*Result).cmd, (T4_ ? T4_->Sup.len : 0) + 0));appendString((*Result).cmd, T4_);
#line 58 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 58 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T6_ = (NimStringDesc*)0;
#line 58 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T7_ = (NimStringDesc*)0; T7_ = nimIntToStr(shift); T6_ = rawNewString((T7_ ? T7_->Sup.len : 0) + 15);appendString(T6_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_17));appendString(T6_, T7_);appendString(T6_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_14)); unsureAsgnRef((void**) (&(*Result).cmd), resizeString((*Result).cmd, (T6_ ? T6_->Sup.len : 0) + 0));appendString((*Result).cmd, T6_);
#line 59 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
{ if (!discovery) goto LA10_;
#line 60 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
unsureAsgnRef((void**) (&(*Result).cmd), resizeString((*Result).cmd, 15));appendString((*Result).cmd, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_18));
#line 61 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
{ NI T14_;
#line 61 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T14_ = (bootNodes ? bootNodes->Sup.len : 0); if (!(((NI) 0) < T14_)) goto LA15_;
{ NimStringDesc* bootNode; NI i; NI L; NI T18_; bootNode = (NimStringDesc*)0;
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i = ((NI) 0);
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T18_ = (bootNodes ? bootNodes->Sup.len : 0); L = T18_; {
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { NimStringDesc* T21_; NI TM__d4AOD9a9caqvt0UiYkWs0hww_20;
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(i < L)) goto LA20;
#line 62 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if ((NU)(i) >= (NU)(bootNodes ? bootNodes->Sup.len : 0)){ raiseIndexError2(i,(bootNodes ? bootNodes->Sup.len : 0)-1); } bootNode = bootNodes->data[i];
#line 63 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 63 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T21_ = (NimStringDesc*)0; T21_ = rawNewString((bootNode ? bootNode->Sup.len : 0) + 12);appendString(T21_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_19));appendString(T21_, bootNode);appendString(T21_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_14)); unsureAsgnRef((void**) (&(*Result).cmd), resizeString((*Result).cmd, (T21_ ? T21_->Sup.len : 0) + 0));appendString((*Result).cmd, T21_);
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_20)) { raiseOverflow(); }; i = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_20);
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{ NI T24_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T24_ = (bootNodes ? bootNodes->Sup.len : 0); if (!!((T24_ == L))) goto LA25_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_21));
}
LA25_: ;
} LA20: ;
}
}
}
LA15_: ;
}
goto LA8_;
LA10_: ;
{
#line 65 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
unsureAsgnRef((void**) (&(*Result).cmd), resizeString((*Result).cmd, 16));appendString((*Result).cmd, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_22)); }
LA8_: ;
#line 66 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
{ NI T30_;
#line 66 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 66 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T30_ = (staticNodes ? staticNodes->Sup.len : 0); if (!(((NI) 0) < T30_)) goto LA31_;
{ NimStringDesc* staticNode; NI i_2; NI L_2; NI T34_; staticNode = (NimStringDesc*)0;
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i_2 = ((NI) 0);
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T34_ = (staticNodes ? staticNodes->Sup.len : 0); L_2 = T34_; {
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { NimStringDesc* T37_; NI TM__d4AOD9a9caqvt0UiYkWs0hww_24;
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(i_2 < L_2)) goto LA36;
#line 67 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if ((NU)(i_2) >= (NU)(staticNodes ? staticNodes->Sup.len : 0)){ raiseIndexError2(i_2,(staticNodes ? staticNodes->Sup.len : 0)-1); } staticNode = staticNodes->data[i_2];
#line 68 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 68 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T37_ = (NimStringDesc*)0; T37_ = rawNewString((staticNode ? staticNode->Sup.len : 0) + 14);appendString(T37_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_23));appendString(T37_, staticNode);appendString(T37_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_14)); unsureAsgnRef((void**) (&(*Result).cmd), resizeString((*Result).cmd, (T37_ ? T37_->Sup.len : 0) + 0));appendString((*Result).cmd, T37_);
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i_2, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_24)) { raiseOverflow(); }; i_2 = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_24);
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{ NI T40_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T40_ = (staticNodes ? staticNodes->Sup.len : 0); if (!!((T40_ == L_2))) goto LA41_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_21));
}
LA41_: ;
} LA36: ;
}
}
}
LA31_: ;
#line 70 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
(*Result).master = master;
#line 71 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 71 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
unsureAsgnRef((void**) (&(*Result).enode), dollar___p1bJHljb0IASfa1yPunfKA((&enode)));
#line 72 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
(*Result).shift = shift;
#line 73 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
unsureAsgnRef((void**) (&(*Result).label), copyString(label));
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__d4AOD9a9caqvt0UiYkWs0hww_25); TM__d4AOD9a9caqvt0UiYkWs0hww_25.status = setjmp(TM__d4AOD9a9caqvt0UiYkWs0hww_25.context); if (TM__d4AOD9a9caqvt0UiYkWs0hww_25.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record; NI T51_;
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
{ tyArray__ZagBlFMl7KoYROF13oI1xA T47_; NIM_BOOL T48_;
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T48_ = (NIM_BOOL)0; T48_ = topicsMatch__KytrWChpQmaEFB83SSLTgg(((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), T47_, 0); if (!!(T48_)) goto LA49_;
#line 132 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
goto LA44;
}
LA49_: ;
nimZeroMem((void*)(&record), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record)); nimZeroMem((void*)(&record), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), ((NimStringDesc*) NIM_NIL), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_26));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T51_ = (NI)0; T51_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_27), T51_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_28), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_29));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_30), (*Result).cmd);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record));
} LA44: ;
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym36980077_; Exception* T54_; Exception* T55_; TM__d4AOD9a9caqvt0UiYkWs0hww_25.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T54_ = (Exception*)0; T54_ = getCurrentException(); errX60gensym36980077_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T54_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T55_ = (Exception*)0; T55_ = &errX60gensym36980077_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("Node command created.", T55_);
popCurrentException(); }
}
if (TM__d4AOD9a9caqvt0UiYkWs0hww_25.status != 0) reraiseException();}
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, nimGCunrefNoCycle)(void* p) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T1_);
}
#line 77 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
N_LIB_PRIVATE N_NIMCALL(tySequence__9cz7rkItAO3G9c3dheJwvcqg*, starNetwork__GsLw5wkfY7nk59atJg9arYBg)(NI amount) { tySequence__9cz7rkItAO3G9c3dheJwvcqg* result; tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A masterNode; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T1_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T2_; NI T3_; result = (tySequence__9cz7rkItAO3G9c3dheJwvcqg*)0; nimZeroMem((void*)(&masterNode), sizeof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A));
#line 78 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T1_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T1_ = NIM_NIL; T2_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T2_ = NIM_NIL;
#line 78 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
initNodeCmd__LWDZBlgJf8enZZxIFbDVhA(((tyEnum_NodeType__TJ530cHhl9aO8CyECHHNBhA) 0), ((NI) 2), T1_, NIM_FALSE, T2_, NIM_FALSE, NIM_TRUE, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_31), (&masterNode));
#line 80 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
result = (tySequence__9cz7rkItAO3G9c3dheJwvcqg*) incrSeqV3((TGenericSeq*)(result), (&NTI__9cz7rkItAO3G9c3dheJwvcqg_)); T3_ = result->Sup.len++; genericAssign((void*)(&result->data[T3_]), (void*)(&masterNode), (&NTI__gi9ah4npu9bxC3bTjea8de4A_)); { NI i; NI i_2; i = (NI)0;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_2 = ((NI) 1); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__d4AOD9a9caqvt0UiYkWs0hww_32; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T7_; NimStringDesc* T8_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T9_; tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A T10_; NI T11_; NI TM__d4AOD9a9caqvt0UiYkWs0hww_34;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_2 < amount)) goto LA6;
#line 81 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
i = i_2;
#line 82 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 82 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 82 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (nimAddInt(((NI) 2), i, &TM__d4AOD9a9caqvt0UiYkWs0hww_32)) { raiseOverflow(); };
#line 82 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T7_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T7_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) newSeq((&NTI__sM4lkSb7zS6F7OVMvW9cffQ_), 1); T8_ = (NimStringDesc*)0; T8_ = T7_->data[0]; T7_->data[0] = copyStringRC1(masterNode.enode); if (T8_) nimGCunrefNoCycle(T8_); T9_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T9_ = NIM_NIL;
#line 82 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
nimZeroMem((void*)(&T10_), sizeof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A)); initNodeCmd__LWDZBlgJf8enZZxIFbDVhA(((tyEnum_NodeType__TJ530cHhl9aO8CyECHHNBhA) 0), (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_32), T7_, NIM_FALSE, T9_, NIM_FALSE, NIM_FALSE, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_33), (&T10_));
result = (tySequence__9cz7rkItAO3G9c3dheJwvcqg*) incrSeqV3((TGenericSeq*)(result), (&NTI__9cz7rkItAO3G9c3dheJwvcqg_)); T11_ = result->Sup.len++; genericAssign((void*)(&result->data[T11_]), (void*)(&T10_), (&NTI__gi9ah4npu9bxC3bTjea8de4A_));
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(i_2, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_34)) { raiseOverflow(); }; i_2 = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_34); } LA6: ;
}
}
return result;}
#line 85 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
N_LIB_PRIVATE N_NIMCALL(tySequence__9cz7rkItAO3G9c3dheJwvcqg*, fullMeshNetwork__GsLw5wkfY7nk59atJg9arYBg_2)(NI amount) { tySequence__9cz7rkItAO3G9c3dheJwvcqg* result; TSafePoint TM__d4AOD9a9caqvt0UiYkWs0hww_35; result = (tySequence__9cz7rkItAO3G9c3dheJwvcqg*)0;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__d4AOD9a9caqvt0UiYkWs0hww_35); TM__d4AOD9a9caqvt0UiYkWs0hww_35.status = setjmp(TM__d4AOD9a9caqvt0UiYkWs0hww_35.context); if (TM__d4AOD9a9caqvt0UiYkWs0hww_35.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record; NI T9_;
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
{ tyArray__ZagBlFMl7KoYROF13oI1xA T5_; NIM_BOOL T6_;
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T6_ = (NIM_BOOL)0; T6_ = topicsMatch__KytrWChpQmaEFB83SSLTgg(((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), T5_, 0); if (!!(T6_)) goto LA7_;
#line 132 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
goto LA2;
}
LA7_: ;
nimZeroMem((void*)(&record), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record)); nimZeroMem((void*)(&record), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), ((NimStringDesc*) NIM_NIL), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_36));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T9_ = (NI)0; T9_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_27), T9_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_28), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_37));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_36), amount);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record));
} LA2: ;
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym37365019_; Exception* T12_; Exception* T13_; TM__d4AOD9a9caqvt0UiYkWs0hww_35.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T12_ = (Exception*)0; T12_ = getCurrentException(); errX60gensym37365019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T12_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T13_ = (Exception*)0; T13_ = &errX60gensym37365019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("amount", T13_);
popCurrentException(); }
}
if (TM__d4AOD9a9caqvt0UiYkWs0hww_35.status != 0) reraiseException(); { NI i; NI i_2; i = (NI)0;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_2 = ((NI) 0); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { tySequence__sM4lkSb7zS6F7OVMvW9cffQ* staticnodes; NI TM__d4AOD9a9caqvt0UiYkWs0hww_39; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T28_; tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A T29_; NI T30_; NI TM__d4AOD9a9caqvt0UiYkWs0hww_40;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_2 < amount)) goto LA16;
#line 87 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
i = i_2; staticnodes = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; { tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A item; NI i_3; NI L; NI T18_; nimZeroMem((void*)(&item), sizeof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A));
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i_3 = ((NI) 0);
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T18_ = (result ? result->Sup.len : 0); L = T18_; {
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { NI T21_; NimStringDesc* T22_; NI TM__d4AOD9a9caqvt0UiYkWs0hww_38;
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(i_3 < L)) goto LA20;
#line 89 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if ((NU)(i_3) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(i_3,(result ? result->Sup.len : 0)-1); } nimCopyMem((void*)(&item), (NIM_CONST void*)(&result->data[i_3]), sizeof(item));
#line 90 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
staticnodes = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)(staticnodes), (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_)); T21_ = staticnodes->Sup.len++; T22_ = (NimStringDesc*)0; T22_ = staticnodes->data[T21_]; staticnodes->data[T21_] = copyStringRC1(item.enode); if (T22_) nimGCunrefNoCycle(T22_);
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i_3, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_38)) { raiseOverflow(); }; i_3 = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_38);
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{ NI T25_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T25_ = (result ? result->Sup.len : 0); if (!!((T25_ == L))) goto LA26_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_21));
}
LA26_: ;
} LA20: ;
}
}
#line 91 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 91 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 91 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (nimAddInt(((NI) 2), i, &TM__d4AOD9a9caqvt0UiYkWs0hww_39)) { raiseOverflow(); }; T28_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T28_ = NIM_NIL;
#line 91 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
nimZeroMem((void*)(&T29_), sizeof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A)); initNodeCmd__LWDZBlgJf8enZZxIFbDVhA(((tyEnum_NodeType__TJ530cHhl9aO8CyECHHNBhA) 0), (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_39), staticnodes, NIM_FALSE, T28_, NIM_FALSE, NIM_FALSE, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_33), (&T29_));
result = (tySequence__9cz7rkItAO3G9c3dheJwvcqg*) incrSeqV3((TGenericSeq*)(result), (&NTI__9cz7rkItAO3G9c3dheJwvcqg_)); T30_ = result->Sup.len++; genericAssign((void*)(&result->data[T30_]), (void*)(&T29_), (&NTI__gi9ah4npu9bxC3bTjea8de4A_));
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(i_2, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_40)) { raiseOverflow(); }; i_2 = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_40); } LA16: ;
}
}
return result;}
#line 94 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
N_LIB_PRIVATE N_NIMCALL(tySequence__9cz7rkItAO3G9c3dheJwvcqg*, discoveryNetwork__GsLw5wkfY7nk59atJg9arYBg_3)(NI amount) { tySequence__9cz7rkItAO3G9c3dheJwvcqg* result; tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A bootNode; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T1_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T2_; NI T3_; result = (tySequence__9cz7rkItAO3G9c3dheJwvcqg*)0; nimZeroMem((void*)(&bootNode), sizeof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A));
#line 95 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T1_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T1_ = NIM_NIL; T2_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T2_ = NIM_NIL;
#line 95 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
initNodeCmd__LWDZBlgJf8enZZxIFbDVhA(((tyEnum_NodeType__TJ530cHhl9aO8CyECHHNBhA) 0), ((NI) 2), T1_, NIM_TRUE, T2_, NIM_FALSE, NIM_TRUE, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_41), (&bootNode));
#line 97 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
result = (tySequence__9cz7rkItAO3G9c3dheJwvcqg*) incrSeqV3((TGenericSeq*)(result), (&NTI__9cz7rkItAO3G9c3dheJwvcqg_)); T3_ = result->Sup.len++; genericAssign((void*)(&result->data[T3_]), (void*)(&bootNode), (&NTI__gi9ah4npu9bxC3bTjea8de4A_)); { NI i; NI i_2; i = (NI)0;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_2 = ((NI) 1); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__d4AOD9a9caqvt0UiYkWs0hww_42; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T7_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T8_; NimStringDesc* T9_; tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A T10_; NI T11_; NI TM__d4AOD9a9caqvt0UiYkWs0hww_43;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_2 < amount)) goto LA6;
#line 98 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
i = i_2;
#line 99 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 99 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 99 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (nimAddInt(((NI) 2), i, &TM__d4AOD9a9caqvt0UiYkWs0hww_42)) { raiseOverflow(); }; T7_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T7_ = NIM_NIL;
#line 100 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T8_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T8_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) newSeq((&NTI__sM4lkSb7zS6F7OVMvW9cffQ_), 1); T9_ = (NimStringDesc*)0; T9_ = T8_->data[0]; T8_->data[0] = copyStringRC1(bootNode.enode); if (T9_) nimGCunrefNoCycle(T9_);
#line 99 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
nimZeroMem((void*)(&T10_), sizeof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A)); initNodeCmd__LWDZBlgJf8enZZxIFbDVhA(((tyEnum_NodeType__TJ530cHhl9aO8CyECHHNBhA) 0), (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_42), T7_, NIM_TRUE, T8_, NIM_FALSE, NIM_FALSE, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_33), (&T10_));
result = (tySequence__9cz7rkItAO3G9c3dheJwvcqg*) incrSeqV3((TGenericSeq*)(result), (&NTI__9cz7rkItAO3G9c3dheJwvcqg_)); T11_ = result->Sup.len++; genericAssign((void*)(&result->data[T11_]), (void*)(&T10_), (&NTI__gi9ah4npu9bxC3bTjea8de4A_));
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(i_2, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_43)) { raiseOverflow(); }; i_2 = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_43); } LA6: ;
}
}
return result;}
static N_NIMCALL(void, TM__d4AOD9a9caqvt0UiYkWs0hww_44)(void) {
nimGCvisit((void*)staticnodes__eC4uCs41J9cFBBmor9cUQ6jw, 0);}
static N_NIMCALL(void, TM__d4AOD9a9caqvt0UiYkWs0hww_48)(void) {
nimGCvisit((void*)commandStr__xPEg9apZk0EvO9c29aXgEnA1g, 0);}
static N_NIMCALL(void, TM__d4AOD9a9caqvt0UiYkWs0hww_50)(void) {
nimGCvisit((void*)node__cIh8KmfJh1A7TDcpmTXScQ.cmd, 0); nimGCvisit((void*)node__cIh8KmfJh1A7TDcpmTXScQ.enode, 0); nimGCvisit((void*)node__cIh8KmfJh1A7TDcpmTXScQ.label, 0);}
static N_NIMCALL(void, TM__d4AOD9a9caqvt0UiYkWs0hww_51)(void) {
nimGCvisit((void*)fmtRes__E9cXQAqdvj43GeXt0VoamOA, 0);}
#line 102 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
N_LIB_PRIVATE N_NIMCALL(void, generatePrometheusConfig__rYdatxGPkOR6bGqw7vT1Zw)(tySequence__9cz7rkItAO3G9c3dheJwvcqg* nodes, NimStringDesc* outputFile) { NimStringDesc* config; NI count_1; tyTuple__UV3llMMYFckfui8YMBuUZA T10_; NimStringDesc* path; NimStringDesc* file;
#line 103 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
config = copyString(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_59));
#line 110 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
count_1 = ((NI) 0); { tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A node; NI i; NI L; NI T2_; nimZeroMem((void*)(&node), sizeof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A));
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i = ((NI) 0);
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T2_ = (nodes ? nodes->Sup.len : 0); L = T2_; {
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { NI port; NI TM__d4AOD9a9caqvt0UiYkWs0hww_60; NimStringDesc* fmtRes; NI TM__d4AOD9a9caqvt0UiYkWs0hww_64; NI TM__d4AOD9a9caqvt0UiYkWs0hww_65;
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(i < L)) goto LA4;
#line 111 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if ((NU)(i) >= (NU)(nodes ? nodes->Sup.len : 0)){ raiseIndexError2(i,(nodes ? nodes->Sup.len : 0)-1); } nimCopyMem((void*)(&node), (NIM_CONST void*)(&nodes->data[i]), sizeof(node));
#line 112 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 112 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (nimAddInt(((NI) 8008), node.shift, &TM__d4AOD9a9caqvt0UiYkWs0hww_60)) { raiseOverflow(); }; port = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_60);
#line 113 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 533 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strformat.nim"
#line 113 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 113 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
fmtRes = rawNewString(((NI) 100));
#line 113 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
fmtRes = resizeString(fmtRes, 30);appendString(fmtRes, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_61));
#line 113 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 113 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
formatValue__ACNJL1q6Oxfvi53i9bkeK6Q((&fmtRes), port, ((NimStringDesc*) NIM_NIL));
#line 113 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
fmtRes = resizeString(fmtRes, 36);appendString(fmtRes, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_62));
#line 113 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 113 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
formatValue__ACNJL1q6Oxfvi53i9bkeK6Q((&fmtRes), count_1, ((NimStringDesc*) NIM_NIL));
#line 113 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
fmtRes = resizeString(fmtRes, 1);appendString(fmtRes, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_63)); config = resizeString(config, (fmtRes ? fmtRes->Sup.len : 0) + 0);appendString(config, fmtRes);
#line 118 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (nimAddInt(count_1, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_64)) { raiseOverflow(); }; count_1 = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_64);
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_65)) { raiseOverflow(); }; i = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_65);
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{ NI T7_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T7_ = (nodes ? nodes->Sup.len : 0); if (!!((T7_ == L))) goto LA8_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_21));
}
LA8_: ;
} LA4: ;
}
}
#line 120 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 120 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 120 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
nimZeroMem((void*)(&T10_), sizeof(tyTuple__UV3llMMYFckfui8YMBuUZA)); nossplitPath(outputFile, (&T10_));
path = (NimStringDesc*)0; path = copyString(T10_.Field0); file = (NimStringDesc*)0; file = copyString(T10_.Field1);
#line 121 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 121 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
noscreateDir(path);
#line 122 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 122 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
writeFile__D6Pj9c29aCLEJP9beOWa08HYA(outputFile, config);
}
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
static N_INLINE(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*, X5BX5D___277k8m8OstpfbY4dHQex6wjson)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* node, NimStringDesc* name_0) { tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* result; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q** T9_; result = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0;
#line 464 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
{
#line 464 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
#line 464 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
#line 464 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
if (!!(!((node == 0)))) goto LA3_;
#line 464 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
#line 464 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_69));
}
LA3_: ;
#line 465 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
{
#line 465 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
#line 465 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
if (!!(((*node).kind == ((tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg) 5)))) goto LA7_;
#line 465 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
#line 465 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_70));
}
LA7_: ;
#line 468 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
#line 468 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
if (!(((32 &(1U<<((NU)((*node).kind)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_71)); }
#line 468 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
T9_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q**)0; T9_ = X5BX5D___l9atGRY9bA25fn4p5uueZfUQ((&(*node)._kind_6.fields), name_0); result = (*T9_); return result;}
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
static N_INLINE(void, X5BX5Deq___WmQhibcOp3ZlzI9bgifjalAjson)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* obj, NimStringDesc* key_0, tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* val_0) {
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
{
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
if (!!(((*obj).kind == ((tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg) 5)))) goto LA3_;
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_80));
}
LA3_: ;
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
if (!(((32 &(1U<<((NU)((*obj).kind)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_71)); }
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
X5BX5Deq___vlnBr1uIbtu0ntnZh6Askg((&(*obj)._kind_6.fields), key_0, val_0);
}
#line 124 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
N_LIB_PRIVATE N_NIMCALL(void, proccessGrafanaDashboard__YDJwAnq5sFl17BoRfefjpw)(NI nodes, NimStringDesc* inputFile, NimStringDesc* outputFile) { tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* inputData; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* panels; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T1_; NI numPanels; NI gridHeight; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* outputData; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T27_; NimStringDesc* T80_; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T81_; NimStringDesc* T82_; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T83_; NimStringDesc* T84_; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T85_; NimStringDesc* T86_; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T87_; NimStringDesc* T88_;
#line 128 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 128 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
inputData = parseFile__Q9bbQtVlwjGc4S8fnWe9b3YA(inputFile);
#line 129 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 129 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 129 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T1_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T1_ = X5BX5D___277k8m8OstpfbY4dHQex6wjson(inputData, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_72));
#line 129 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
panels = copy__r5dFiT9bcdPOEfGGrwLQKWg(T1_);
#line 130 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 130 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
numPanels = len__Og3BmQpaL5V6gYg5JnWK3Q(panels);
#line 131 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
gridHeight = ((NI) 0);
#line 132 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
outputData = inputData; { tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* panel; panel = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0;
#line 744 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
{ NimStringDesc* T7_;
#line 744 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
#line 744 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
if (!!(((*panels).kind == ((tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg) 6)))) goto LA5_;
#line 744 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
#line 744 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
T7_ = (NimStringDesc*)0;
#line 744 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
T7_ = rawNewString((reprEnum((NI)(*panels).kind, (&NTI__RUngo7nCHe6O8aBGIcrhtg_)) ? reprEnum((NI)(*panels).kind, (&NTI__RUngo7nCHe6O8aBGIcrhtg_))->Sup.len : 0) + 168);appendString(T7_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_73));appendString(T7_, reprEnum((NI)(*panels).kind, (&NTI__RUngo7nCHe6O8aBGIcrhtg_)));
#line 744 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(T7_);
}
LA5_: ;
{ tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* i; tySequence__oLpBKXzW3hF9aCVMo5EymfQ* colontmp_; NI i_2; NI L; NI T9_; i = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; colontmp_ = (tySequence__oLpBKXzW3hF9aCVMo5EymfQ*)0;
#line 745 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
if (!(((64 &(1U<<((NU)((*panels).kind)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_74)); } colontmp_ = (*panels)._kind_7.elems;
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i_2 = ((NI) 0);
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T9_ = (colontmp_ ? colontmp_->Sup.len : 0); L = T9_; {
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { NI TM__d4AOD9a9caqvt0UiYkWs0hww_79;
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(i_2 < L)) goto LA11;
#line 745 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
if ((NU)(i_2) >= (NU)(colontmp_ ? colontmp_->Sup.len : 0)){ raiseIndexError2(i_2,(colontmp_ ? colontmp_->Sup.len : 0)-1); } i = colontmp_->data[i_2];
#line 134 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
panel = i;
#line 135 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
{ tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T14_; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T15_; NI T16_; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T19_; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T20_; NI T21_; NI TM__d4AOD9a9caqvt0UiYkWs0hww_78;
#line 135 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 135 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 135 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 135 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 135 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T14_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T14_ = X5BX5D___277k8m8OstpfbY4dHQex6wjson(panel, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_75));
#line 135 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T15_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T15_ = X5BX5D___277k8m8OstpfbY4dHQex6wjson(T14_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_76));
#line 135 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T16_ = (NI)0; T16_ = getInt__1efdasyP68nDQg4BeLHzGQ(T15_, ((NI) 0)); if (!(T16_ == ((NI) 0))) goto LA17_;
#line 136 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 136 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 136 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 136 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 136 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T19_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T19_ = X5BX5D___277k8m8OstpfbY4dHQex6wjson(panel, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_75));
#line 136 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T20_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T20_ = X5BX5D___277k8m8OstpfbY4dHQex6wjson(T19_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_77));
#line 136 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T21_ = (NI)0; T21_ = getInt__1efdasyP68nDQg4BeLHzGQ(T20_, ((NI) 0)); if (nimAddInt(gridHeight, T21_, &TM__d4AOD9a9caqvt0UiYkWs0hww_78)) { raiseOverflow(); }; gridHeight = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_78); }
LA17_: ;
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i_2, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_79)) { raiseOverflow(); }; i_2 = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_79);
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{ NI T24_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T24_ = (colontmp_ ? colontmp_->Sup.len : 0); if (!!((T24_ == L))) goto LA25_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_21));
}
LA25_: ;
} LA11: ;
}
}
}
#line 138 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 138 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 138 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T27_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T27_ = newJArray__nXwnFPu9beTnGPwglrr7ztA_3();
#line 138 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
X5BX5Deq___WmQhibcOp3ZlzI9bgifjalAjson(outputData, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_72), T27_);
{ NI nodeNum; NI colontmp__2; NI TM__d4AOD9a9caqvt0UiYkWs0hww_81; NI res; nodeNum = (NI)0; colontmp__2 = (NI)0;
#line 139 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 139 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (nimSubInt(nodes, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_81)) { raiseOverflow(); }; colontmp__2 = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_81);
#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) { tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* nodePanels; NI panelIndex; NI TM__d4AOD9a9caqvt0UiYkWs0hww_101;
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(res <= colontmp__2)) goto LA30;
#line 139 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
nodeNum = res;
#line 141 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 141 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
nodePanels = copy__r5dFiT9bcdPOEfGGrwLQKWg(panels);
#line 142 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
panelIndex = ((NI) 0); { tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q** panel_2; panel_2 = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q**)0;
#line 751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
{ NimStringDesc* T36_;
#line 751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
#line 751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
if (!!(((*nodePanels).kind == ((tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg) 6)))) goto LA34_;
#line 751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
#line 751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
T36_ = (NimStringDesc*)0;
#line 751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
T36_ = rawNewString((reprEnum((NI)(*nodePanels).kind, (&NTI__RUngo7nCHe6O8aBGIcrhtg_)) ? reprEnum((NI)(*nodePanels).kind, (&NTI__RUngo7nCHe6O8aBGIcrhtg_))->Sup.len : 0) + 169);appendString(T36_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_82));appendString(T36_, reprEnum((NI)(*nodePanels).kind, (&NTI__RUngo7nCHe6O8aBGIcrhtg_)));
#line 751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(T36_);
}
LA34_: ;
{ tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q** i_3; NI i_4; NI L_2; NI T38_; i_3 = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q**)0;
#line 193 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i_4 = ((NI) 0);
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(((64 &(1U<<((NU)((*nodePanels).kind)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_74)); } T38_ = ((*nodePanels)._kind_7.elems ? (*nodePanels)._kind_7.elems->Sup.len : 0); L_2 = T38_; {
#line 195 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T41_; NimStringDesc* T42_; NimStringDesc* T43_; NimStringDesc* T44_; NimStringDesc* T45_; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T46_; NI TM__d4AOD9a9caqvt0UiYkWs0hww_87; NI TM__d4AOD9a9caqvt0UiYkWs0hww_88; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T47_; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T48_; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T49_; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T50_; NI T51_; NI TM__d4AOD9a9caqvt0UiYkWs0hww_90; NI TM__d4AOD9a9caqvt0UiYkWs0hww_91; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T52_; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* targets; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T74_; NI TM__d4AOD9a9caqvt0UiYkWs0hww_99; NI TM__d4AOD9a9caqvt0UiYkWs0hww_100;
#line 195 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(i_4 < L_2)) goto LA40;
#line 752 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
if (!(((64 &(1U<<((NU)((*nodePanels).kind)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_74)); } if ((NU)(i_4) >= (NU)((*nodePanels)._kind_7.elems ? (*nodePanels)._kind_7.elems->Sup.len : 0)){ raiseIndexError2(i_4,((*nodePanels)._kind_7.elems ? (*nodePanels)._kind_7.elems->Sup.len : 0)-1); } i_3 = &(*nodePanels)._kind_7.elems->data[i_4];
#line 143 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
panel_2 = i_3;
#line 144 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 144 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 144 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 144 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 144 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 144 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T41_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T41_ = X5BX5D___277k8m8OstpfbY4dHQex6wjson((*panel_2), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_83));
#line 144 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T42_ = (NimStringDesc*)0; T42_ = getStr__QeJX1ptVmfOrOg9cwOVpcAA(T41_, ((NimStringDesc*) NIM_NIL));
#line 144 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T43_ = (NimStringDesc*)0;
#line 144 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T44_ = (NimStringDesc*)0; T44_ = nimIntToStr(nodeNum); T43_ = rawNewString((T44_ ? T44_->Sup.len : 0) + 1);appendString(T43_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_85));appendString(T43_, T44_);
#line 144 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T45_ = (NimStringDesc*)0; T45_ = nsuReplaceStr(T42_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_84), T43_);
#line 144 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T46_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T46_ = percent___19ag6cl4fMjxytc9arHmLIbw_3(T45_);
#line 144 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
X5BX5Deq___WmQhibcOp3ZlzI9bgifjalAjson((*panel_2), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_83), T46_);
#line 145 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 145 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 145 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 145 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (nimMulInt(nodeNum, numPanels, &TM__d4AOD9a9caqvt0UiYkWs0hww_87)) { raiseOverflow(); }; if (nimAddInt(panelIndex, (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_87), &TM__d4AOD9a9caqvt0UiYkWs0hww_88)) { raiseOverflow(); };
#line 145 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T47_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T47_ = percent___NSr46Qz23yGk4m9csPSbQBQ((NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_88));
#line 145 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
X5BX5Deq___WmQhibcOp3ZlzI9bgifjalAjson((*panel_2), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_86), T47_);
#line 146 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 146 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 146 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T48_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T48_ = X5BX5D___277k8m8OstpfbY4dHQex6wjson((*panel_2), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_75));
#line 146 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 146 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 146 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 146 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 146 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 146 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T49_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T49_ = X5BX5D___277k8m8OstpfbY4dHQex6wjson((*panel_2), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_75));
#line 146 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T50_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T50_ = X5BX5D___277k8m8OstpfbY4dHQex6wjson(T49_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_89));
#line 146 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T51_ = (NI)0; T51_ = getInt__1efdasyP68nDQg4BeLHzGQ(T50_, ((NI) 0));
#line 146 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (nimMulInt(nodeNum, gridHeight, &TM__d4AOD9a9caqvt0UiYkWs0hww_90)) { raiseOverflow(); }; if (nimAddInt(T51_, (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_90), &TM__d4AOD9a9caqvt0UiYkWs0hww_91)) { raiseOverflow(); };
#line 146 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T52_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T52_ = percent___NSr46Qz23yGk4m9csPSbQBQ((NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_91));
#line 146 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
X5BX5Deq___WmQhibcOp3ZlzI9bgifjalAjson(T48_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_89), T52_);
#line 147 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 147 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
targets = X5BX5D___277k8m8OstpfbY4dHQex6wjson((*panel_2), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_92)); { tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q** target; target = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q**)0;
#line 751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
{ NimStringDesc* T58_;
#line 751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
#line 751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
if (!!(((*targets).kind == ((tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg) 6)))) goto LA56_;
#line 751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
#line 751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
T58_ = (NimStringDesc*)0;
#line 751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
T58_ = rawNewString((reprEnum((NI)(*targets).kind, (&NTI__RUngo7nCHe6O8aBGIcrhtg_)) ? reprEnum((NI)(*targets).kind, (&NTI__RUngo7nCHe6O8aBGIcrhtg_))->Sup.len : 0) + 169);appendString(T58_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_82));appendString(T58_, reprEnum((NI)(*targets).kind, (&NTI__RUngo7nCHe6O8aBGIcrhtg_)));
#line 751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(T58_);
}
LA56_: ;
{ tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q** i_5; NI i_6; NI L_3; NI T60_; i_5 = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q**)0;
#line 193 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i_6 = ((NI) 0);
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(((64 &(1U<<((NU)((*targets).kind)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_74)); } T60_ = ((*targets)._kind_7.elems ? (*targets)._kind_7.elems->Sup.len : 0); L_3 = T60_; {
#line 195 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T63_; NimStringDesc* T64_; NimStringDesc* T65_; NimStringDesc* T66_; NimStringDesc* T67_; tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T68_; NI TM__d4AOD9a9caqvt0UiYkWs0hww_97;
#line 195 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(i_6 < L_3)) goto LA62;
#line 752 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/json.nim"
if (!(((64 &(1U<<((NU)((*targets).kind)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_74)); } if ((NU)(i_6) >= (NU)((*targets)._kind_7.elems ? (*targets)._kind_7.elems->Sup.len : 0)){ raiseIndexError2(i_6,((*targets)._kind_7.elems ? (*targets)._kind_7.elems->Sup.len : 0)-1); } i_5 = &(*targets)._kind_7.elems->data[i_6];
#line 148 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
target = i_5;
#line 149 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 149 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 149 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 149 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 149 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 149 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T63_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T63_ = X5BX5D___277k8m8OstpfbY4dHQex6wjson((*target), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_93));
#line 149 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T64_ = (NimStringDesc*)0; T64_ = getStr__QeJX1ptVmfOrOg9cwOVpcAA(T63_, ((NimStringDesc*) NIM_NIL));
#line 149 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T65_ = (NimStringDesc*)0;
#line 149 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T66_ = (NimStringDesc*)0; T66_ = nimIntToStr(nodeNum); T65_ = rawNewString((T66_ ? T66_->Sup.len : 0) + 9);appendString(T65_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_95));appendString(T65_, T66_);appendString(T65_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_96));
#line 149 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T67_ = (NimStringDesc*)0; T67_ = nsuReplaceStr(T64_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_94), T65_);
#line 149 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T68_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T68_ = percent___19ag6cl4fMjxytc9arHmLIbw_3(T67_);
#line 149 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
X5BX5Deq___WmQhibcOp3ZlzI9bgifjalAjson((*target), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_93), T68_);
#line 197 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i_6, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_97)) { raiseOverflow(); }; i_6 = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_97);
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{ NI T71_;
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(((64 &(1U<<((NU)((*targets).kind)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_74)); } T71_ = ((*targets)._kind_7.elems ? (*targets)._kind_7.elems->Sup.len : 0); if (!!((T71_ == L_3))) goto LA72_;
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_98));
}
LA72_: ;
} LA62: ;
}
}
}
#line 150 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 150 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 150 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T74_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T74_ = X5BX5D___277k8m8OstpfbY4dHQex6wjson(outputData, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_72));
#line 150 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
add__8FFZVkexaQ73y9aREGlrY9bQ(T74_, (*panel_2));
#line 151 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (nimAddInt(panelIndex, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_99)) { raiseOverflow(); }; panelIndex = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_99);
#line 197 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i_4, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_100)) { raiseOverflow(); }; i_4 = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_100);
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{ NI T77_;
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(((64 &(1U<<((NU)((*nodePanels).kind)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_74)); } T77_ = ((*nodePanels)._kind_7.elems ? (*nodePanels)._kind_7.elems->Sup.len : 0); if (!!((T77_ == L_2))) goto LA78_;
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_98));
}
LA78_: ;
} LA40: ;
}
}
}
#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__d4AOD9a9caqvt0UiYkWs0hww_101)) { raiseOverflow(); }; res = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_101); } LA30: ;
}
}
#line 153 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 153 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 153 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T80_ = (NimStringDesc*)0;
#line 153 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 153 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 153 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T81_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T81_ = X5BX5D___277k8m8OstpfbY4dHQex6wjson(outputData, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_102));
#line 153 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T82_ = (NimStringDesc*)0; T82_ = getStr__QeJX1ptVmfOrOg9cwOVpcAA(T81_, ((NimStringDesc*) NIM_NIL)); T80_ = rawNewString((T82_ ? T82_->Sup.len : 0) + 1);appendString(T80_, T82_);appendString(T80_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_103));
#line 153 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T83_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T83_ = percent___19ag6cl4fMjxytc9arHmLIbw_3(T80_);
#line 153 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
X5BX5Deq___WmQhibcOp3ZlzI9bgifjalAjson(outputData, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_102), T83_);
#line 154 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 154 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 154 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T84_ = (NimStringDesc*)0;
#line 154 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 154 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 154 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T85_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T85_ = X5BX5D___277k8m8OstpfbY4dHQex6wjson(outputData, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_83));
#line 154 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T86_ = (NimStringDesc*)0; T86_ = getStr__QeJX1ptVmfOrOg9cwOVpcAA(T85_, ((NimStringDesc*) NIM_NIL)); T84_ = rawNewString((T86_ ? T86_->Sup.len : 0) + 12);appendString(T84_, T86_);appendString(T84_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_104));
#line 154 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T87_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*)0; T87_ = percent___19ag6cl4fMjxytc9arHmLIbw_3(T84_);
#line 154 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
X5BX5Deq___WmQhibcOp3ZlzI9bgifjalAjson(outputData, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_83), T87_);
#line 155 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 155 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 155 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T88_ = (NimStringDesc*)0; T88_ = pretty__6ucoq7dFiVhOGmHlWNWbTg(outputData, ((NI) 2));
#line 155 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
writeFile__D6Pj9c29aCLEJP9beOWa08HYA(outputFile, T88_);
}
static N_NIMCALL(void, TM__d4AOD9a9caqvt0UiYkWs0hww_108)(void) {
nimGCvisit((void*)record__GiwFlnBZZ3SfeR0HZEcQUw.output.buffer, 0);}
#line 2087 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(void, initStackBottomWith)(void* locals) {
#line 2091 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2091 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
nimGC_setStackBottom(locals);
}
#line 6 "/home/runner/work/nim-waku/nim-waku/vendor/nim-serialization/serialization/errors.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, formatMsg__e82IUoG9buGtygBpBEf7S0w)(tyObject_SerializationError__pU5THS9aG4YyseMvUN63xFQ* err, NimStringDesc* filename_0) { NimStringDesc* result;{ result = (NimStringDesc*)0;
#line 6 "/home/runner/work/nim-waku/nim-waku/vendor/nim-serialization/serialization/errors.nim"
#line 6 "/home/runner/work/nim-waku/nim-waku/vendor/nim-serialization/serialization/errors.nim"
#line 6 "/home/runner/work/nim-waku/nim-waku/vendor/nim-serialization/serialization/errors.nim"
result = formatMsg__PdfgthSJLyK9btpbxcxszCQ(err, filename_0); goto BeforeRet_;
}BeforeRet_: ;
return result;}
N_LIB_PRIVATE void PreMainInner(void) {
stdlib_timesInit000();
stdlib_osInit000();
libbacktrace_libbacktraceInit000();
stdlib_terminalInit000();
chronos_asyncloopInit000();
chronos_commonInit000();
faststreams_outputsInit000();
faststreams_inputsInit000();
faststreams_pipelinesInit000();
chronicles_topics_registryInit000();
}
N_LIB_PRIVATE int cmdCount;
N_LIB_PRIVATE char** cmdLine;
N_LIB_PRIVATE char** gEnv;
N_LIB_PRIVATE void PreMain(void) {
void (*volatile inner)(void);
inner = PreMainInner;
stdlib_ioDatInit000();
systemDatInit000();
initStackBottomWith((void *)&inner);
systemInit000();
stdlib_optionsDatInit000();
stdlib_timesDatInit000();
stdlib_osDatInit000();
stdlib_streamsDatInit000();
stdlib_tablesDatInit000();
confutils_defsDatInit000();
confutils_cli_parserDatInit000();
stdlib_terminalDatInit000();
stdlib_lexbaseDatInit000();
confutils_shell_completionDatInit000();
confutils_confutilsDatInit000();
chronicles_optionsDatInit000();
stdlib_dequesDatInit000();
stdlib_heapqueueDatInit000();
chronos_timerDatInit000();
stdlib_selectorsDatInit000();
chronos_srclocDatInit000();
chronos_asyncloopDatInit000();
faststreams_buffersDatInit000();
faststreams_outputsDatInit000();
stdlib_memfilesDatInit000();
faststreams_inputsDatInit000();
faststreams_pipelinesDatInit000();
stdlib_parsejsonDatInit000();
stdlib_jsonDatInit000();
chronicles_log_outputDatInit000();
chronicles_topics_registryDatInit000();
bearssl_declsDatInit000();
eth_keysDatInit000();
start_networkDatInit000();
(*inner)();
}
N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) {
NimMainModule();
}
N_CDECL(void, NimMain)(void) {
void (*volatile inner)(void);
PreMain();
inner = NimMainInner;
initStackBottomWith((void *)&inner);
(*inner)();
}
int main(int argc, char** args, char** env) {
cmdLine = args;
cmdCount = argc;
gEnv = env;
NimMain();
return nim_program_result;
}
N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) {
#line 999999 "generated_not_to_break_here"
{
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T1_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T10_; tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A T11_; NI T12_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T13_; tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A T14_; NI T15_; NimStringDesc* T16_; NimStringDesc* T39_; NimStringDesc* T40_; NI T41_; NimStringDesc* T42_; NimStringDesc* T43_; nimRegisterGlobalMarker(TM__d4AOD9a9caqvt0UiYkWs0hww_6); nimRegisterGlobalMarker(TM__d4AOD9a9caqvt0UiYkWs0hww_44); nimRegisterGlobalMarker(TM__d4AOD9a9caqvt0UiYkWs0hww_48); nimRegisterGlobalMarker(TM__d4AOD9a9caqvt0UiYkWs0hww_50); nimRegisterGlobalMarker(TM__d4AOD9a9caqvt0UiYkWs0hww_51); nimRegisterGlobalMarker(TM__d4AOD9a9caqvt0UiYkWs0hww_108);
#line 158 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 738 "/home/runner/work/nim-waku/nim-waku/vendor/nim-confutils/confutils.nim"
#line 738 "/home/runner/work/nim-waku/nim-waku/vendor/nim-confutils/confutils.nim"
T1_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T1_ = commandLineParams__K1tl5In8R9bx536wDa4ggRw();
#line 158 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
conf__9bE2YwKQ0lDqwEzXgVvGMMA = load__5MraIuzeomh9bit9c3uMI0Eg(T1_, ((NimStringDesc*) NIM_NIL), ((NimStringDesc*) NIM_NIL), NIM_TRUE, NIM_TRUE);
#line 161 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
switch (conf__9bE2YwKQ0lDqwEzXgVvGMMA.topology) {
case ((tyEnum_Topology__u5YFhUoGVKboFIgGYZd3wA) 0):
{
#line 163 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 163 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
asgnRef((void**) (&nodes__IDv4fOGhaw9bOf5YslYJHsg), starNetwork__GsLw5wkfY7nk59atJg9arYBg(conf__9bE2YwKQ0lDqwEzXgVvGMMA.amount)); }
break;
case ((tyEnum_Topology__u5YFhUoGVKboFIgGYZd3wA) 1):
{
#line 165 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 165 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
asgnRef((void**) (&nodes__IDv4fOGhaw9bOf5YslYJHsg), fullMeshNetwork__GsLw5wkfY7nk59atJg9arYBg_2(conf__9bE2YwKQ0lDqwEzXgVvGMMA.amount)); }
break;
case ((tyEnum_Topology__u5YFhUoGVKboFIgGYZd3wA) 2):
{
#line 167 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 167 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
asgnRef((void**) (&nodes__IDv4fOGhaw9bOf5YslYJHsg), discoveryNetwork__GsLw5wkfY7nk59atJg9arYBg_3(conf__9bE2YwKQ0lDqwEzXgVvGMMA.amount)); }
break;
}
{ NI i;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i = ((NI) 0); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI T8_; NimStringDesc* T9_; NI TM__d4AOD9a9caqvt0UiYkWs0hww_45;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i < conf__9bE2YwKQ0lDqwEzXgVvGMMA.testNodePeers)) goto LA7;
#line 170 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
i__8pV5FgNnIIM4Ps9bIFQPUuw = i;
#line 172 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if ((NU)(i__8pV5FgNnIIM4Ps9bIFQPUuw) >= (NU)(nodes__IDv4fOGhaw9bOf5YslYJHsg ? nodes__IDv4fOGhaw9bOf5YslYJHsg->Sup.len : 0)){ raiseIndexError2(i__8pV5FgNnIIM4Ps9bIFQPUuw,(nodes__IDv4fOGhaw9bOf5YslYJHsg ? nodes__IDv4fOGhaw9bOf5YslYJHsg->Sup.len : 0)-1); } asgnRef((void**) (&staticnodes__eC4uCs41J9cFBBmor9cUQ6jw), (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)(staticnodes__eC4uCs41J9cFBBmor9cUQ6jw), (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_))); T8_ = staticnodes__eC4uCs41J9cFBBmor9cUQ6jw->Sup.len++; T9_ = (NimStringDesc*)0; T9_ = staticnodes__eC4uCs41J9cFBBmor9cUQ6jw->data[T8_]; staticnodes__eC4uCs41J9cFBBmor9cUQ6jw->data[T8_] = copyStringRC1(nodes__IDv4fOGhaw9bOf5YslYJHsg->data[i__8pV5FgNnIIM4Ps9bIFQPUuw].enode); if (T9_) nimGCunrefNoCycle(T9_);
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(i, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_45)) { raiseOverflow(); }; i = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_45); } LA7: ;
}
}
#line 174 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 174 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T10_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T10_ = NIM_NIL;
#line 174 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
nimZeroMem((void*)(&T11_), sizeof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A)); initNodeCmd__LWDZBlgJf8enZZxIFbDVhA(((tyEnum_NodeType__TJ530cHhl9aO8CyECHHNBhA) 1), ((NI) 0), staticnodes__eC4uCs41J9cFBBmor9cUQ6jw, NIM_FALSE, T10_, NIM_TRUE, NIM_FALSE, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_46), (&T11_));
asgnRef((void**) (&nodes__IDv4fOGhaw9bOf5YslYJHsg), (tySequence__9cz7rkItAO3G9c3dheJwvcqg*) incrSeqV3((TGenericSeq*)(nodes__IDv4fOGhaw9bOf5YslYJHsg), (&NTI__9cz7rkItAO3G9c3dheJwvcqg_))); T12_ = nodes__IDv4fOGhaw9bOf5YslYJHsg->Sup.len++; genericAssign((void*)(&nodes__IDv4fOGhaw9bOf5YslYJHsg->data[T12_]), (void*)(&T11_), (&NTI__gi9ah4npu9bxC3bTjea8de4A_));
#line 177 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 177 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T13_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T13_ = NIM_NIL;
#line 177 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
nimZeroMem((void*)(&T14_), sizeof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A)); initNodeCmd__LWDZBlgJf8enZZxIFbDVhA(((tyEnum_NodeType__TJ530cHhl9aO8CyECHHNBhA) 1), ((NI) 1), staticnodes__eC4uCs41J9cFBBmor9cUQ6jw, NIM_FALSE, T13_, NIM_FALSE, NIM_FALSE, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_47), (&T14_));
asgnRef((void**) (&nodes__IDv4fOGhaw9bOf5YslYJHsg), (tySequence__9cz7rkItAO3G9c3dheJwvcqg*) incrSeqV3((TGenericSeq*)(nodes__IDv4fOGhaw9bOf5YslYJHsg), (&NTI__9cz7rkItAO3G9c3dheJwvcqg_))); T15_ = nodes__IDv4fOGhaw9bOf5YslYJHsg->Sup.len++; genericAssign((void*)(&nodes__IDv4fOGhaw9bOf5YslYJHsg->data[T15_]), (void*)(&T14_), (&NTI__gi9ah4npu9bxC3bTjea8de4A_));
#line 179 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T16_ = (NimStringDesc*)0; T16_ = commandStr__xPEg9apZk0EvO9c29aXgEnA1g; commandStr__xPEg9apZk0EvO9c29aXgEnA1g = copyStringRC1(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_49)); if (T16_) nimGCunrefNoCycle(T16_); { NI i_2; NI L; NI T18_;
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i_2 = ((NI) 0);
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T18_ = (nodes__IDv4fOGhaw9bOf5YslYJHsg ? nodes__IDv4fOGhaw9bOf5YslYJHsg->Sup.len : 0); L = T18_; {
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { NI TM__d4AOD9a9caqvt0UiYkWs0hww_57; NI TM__d4AOD9a9caqvt0UiYkWs0hww_58;
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(i_2 < L)) goto LA20;
#line 182 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if ((NU)(i_2) >= (NU)(nodes__IDv4fOGhaw9bOf5YslYJHsg ? nodes__IDv4fOGhaw9bOf5YslYJHsg->Sup.len : 0)){ raiseIndexError2(i_2,(nodes__IDv4fOGhaw9bOf5YslYJHsg ? nodes__IDv4fOGhaw9bOf5YslYJHsg->Sup.len : 0)-1); } genericAssign((void*)(&node__cIh8KmfJh1A7TDcpmTXScQ), (void*)(&nodes__IDv4fOGhaw9bOf5YslYJHsg->data[i_2]), (&NTI__gi9ah4npu9bxC3bTjea8de4A_));
#line 183 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
{
#line 183 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (!((5 &(1U<<((NU)(conf__9bE2YwKQ0lDqwEzXgVvGMMA.topology)&7U)))!=0)) goto LA23_;
#line 184 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 184 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
{ if (!node__cIh8KmfJh1A7TDcpmTXScQ.master) goto LA27_;
sleepDuration__J51PuGJpZcSKpwtQN1ntVA = ((NI) 0); }
goto LA25_;
LA27_: ;
{ sleepDuration__J51PuGJpZcSKpwtQN1ntVA = ((NI) 1); }
LA25_: ;
}
LA23_: ;
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
asgnRef((void**) (&fmtRes__E9cXQAqdvj43GeXt0VoamOA), NIM_NIL);
#line 533 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strformat.nim"
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
asgnRef((void**) (&fmtRes__E9cXQAqdvj43GeXt0VoamOA), rawNewString(((NI) 185)));
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
asgnRef((void**) (&fmtRes__E9cXQAqdvj43GeXt0VoamOA), resizeString(fmtRes__E9cXQAqdvj43GeXt0VoamOA, 20));appendString(fmtRes__E9cXQAqdvj43GeXt0VoamOA, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_52));
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
formatValue__ACNJL1q6Oxfvi53i9bkeK6Q((&fmtRes__E9cXQAqdvj43GeXt0VoamOA), count__Ttr21btSQ61i09aaDXSnBkg, ((NimStringDesc*) NIM_NIL));
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
asgnRef((void**) (&fmtRes__E9cXQAqdvj43GeXt0VoamOA), resizeString(fmtRes__E9cXQAqdvj43GeXt0VoamOA, 1));appendString(fmtRes__E9cXQAqdvj43GeXt0VoamOA, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_14));
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
formatValue__3zjq9csYPBcIN7AqvyU5ZLA((&fmtRes__E9cXQAqdvj43GeXt0VoamOA), node__cIh8KmfJh1A7TDcpmTXScQ.label, ((NimStringDesc*) NIM_NIL));
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
asgnRef((void**) (&fmtRes__E9cXQAqdvj43GeXt0VoamOA), resizeString(fmtRes__E9cXQAqdvj43GeXt0VoamOA, 12));appendString(fmtRes__E9cXQAqdvj43GeXt0VoamOA, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_53));
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
formatValue__ACNJL1q6Oxfvi53i9bkeK6Q((&fmtRes__E9cXQAqdvj43GeXt0VoamOA), sleepDuration__J51PuGJpZcSKpwtQN1ntVA, ((NimStringDesc*) NIM_NIL));
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
asgnRef((void**) (&fmtRes__E9cXQAqdvj43GeXt0VoamOA), resizeString(fmtRes__E9cXQAqdvj43GeXt0VoamOA, 2));appendString(fmtRes__E9cXQAqdvj43GeXt0VoamOA, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_54));
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
formatValue__3zjq9csYPBcIN7AqvyU5ZLA((&fmtRes__E9cXQAqdvj43GeXt0VoamOA), node__cIh8KmfJh1A7TDcpmTXScQ.cmd, ((NimStringDesc*) NIM_NIL));
#line 186 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
asgnRef((void**) (&fmtRes__E9cXQAqdvj43GeXt0VoamOA), resizeString(fmtRes__E9cXQAqdvj43GeXt0VoamOA, 66));appendString(fmtRes__E9cXQAqdvj43GeXt0VoamOA, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_55)); asgnRef((void**) (&commandStr__xPEg9apZk0EvO9c29aXgEnA1g), resizeString(commandStr__xPEg9apZk0EvO9c29aXgEnA1g, (fmtRes__E9cXQAqdvj43GeXt0VoamOA ? fmtRes__E9cXQAqdvj43GeXt0VoamOA->Sup.len : 0) + 0));appendString(commandStr__xPEg9apZk0EvO9c29aXgEnA1g, fmtRes__E9cXQAqdvj43GeXt0VoamOA);
#line 187 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
{ NI TM__d4AOD9a9caqvt0UiYkWs0hww_56;
#line 187 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (!(conf__9bE2YwKQ0lDqwEzXgVvGMMA.topology == ((tyEnum_Topology__u5YFhUoGVKboFIgGYZd3wA) 1))) goto LA32_;
#line 188 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (nimAddInt(sleepDuration__J51PuGJpZcSKpwtQN1ntVA, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_56)) { raiseOverflow(); }; sleepDuration__J51PuGJpZcSKpwtQN1ntVA = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_56); }
LA32_: ;
#line 189 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (nimAddInt(count__Ttr21btSQ61i09aaDXSnBkg, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_57)) { raiseOverflow(); }; count__Ttr21btSQ61i09aaDXSnBkg = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_57);
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i_2, ((NI) 1), &TM__d4AOD9a9caqvt0UiYkWs0hww_58)) { raiseOverflow(); }; i_2 = (NI)(TM__d4AOD9a9caqvt0UiYkWs0hww_58);
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{ NI T36_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T36_ = (nodes__IDv4fOGhaw9bOf5YslYJHsg ? nodes__IDv4fOGhaw9bOf5YslYJHsg->Sup.len : 0); if (!!((T36_ == L))) goto LA37_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_21));
}
LA37_: ;
} LA20: ;
}
}
#line 191 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 191 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 191 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 191 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T39_ = (NimStringDesc*)0; T39_ = slash___gEyhbzZ1UcxyenWRLJRXNQ(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_66), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_67));
#line 191 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T40_ = (NimStringDesc*)0; T40_ = slash___gEyhbzZ1UcxyenWRLJRXNQ(T39_, ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_68));
#line 191 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
generatePrometheusConfig__rYdatxGPkOR6bGqw7vT1Zw(nodes__IDv4fOGhaw9bOf5YslYJHsg, T40_);
#line 192 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 192 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T41_ = (nodes__IDv4fOGhaw9bOf5YslYJHsg ? nodes__IDv4fOGhaw9bOf5YslYJHsg->Sup.len : 0);
#line 193 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 193 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T42_ = (NimStringDesc*)0; T42_ = slash___gEyhbzZ1UcxyenWRLJRXNQ(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_66), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_105));
#line 194 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 194 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
T43_ = (NimStringDesc*)0; T43_ = slash___gEyhbzZ1UcxyenWRLJRXNQ(((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_66), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_106));
#line 192 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
proccessGrafanaDashboard__YDJwAnq5sFl17BoRfefjpw(T41_, T42_, T43_);
#line 196 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 196 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
errorCode__VNotKCAgnd3knnr7wuPA9cA = nospexecCmd(commandStr__xPEg9apZk0EvO9c29aXgEnA1g);
#line 197 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
{ TSafePoint TM__d4AOD9a9caqvt0UiYkWs0hww_107;
#line 197 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
#line 197 "/home/runner/work/nim-waku/nim-waku/waku/v1/node/start_network.nim"
if (!!((errorCode__VNotKCAgnd3knnr7wuPA9cA == ((NI) 0)))) goto LA46_;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__d4AOD9a9caqvt0UiYkWs0hww_107); TM__d4AOD9a9caqvt0UiYkWs0hww_107.status = setjmp(TM__d4AOD9a9caqvt0UiYkWs0hww_107.context); if (TM__d4AOD9a9caqvt0UiYkWs0hww_107.status == 0) { { NI T56_;
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
{ tyArray__ZagBlFMl7KoYROF13oI1xA T52_; NIM_BOOL T53_;
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T53_ = (NIM_BOOL)0; T53_ = topicsMatch__KytrWChpQmaEFB83SSLTgg(((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6), T52_, 0); if (!!(T53_)) goto LA54_;
#line 132 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
goto LA49;
}
LA54_: ;
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record__GiwFlnBZZ3SfeR0HZEcQUw)); unsureAsgnRef((void**)&record__GiwFlnBZZ3SfeR0HZEcQUw.output.buffer, NIM_NIL); record__GiwFlnBZZ3SfeR0HZEcQUw.level = 0;
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record__GiwFlnBZZ3SfeR0HZEcQUw), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6), ((NimStringDesc*) NIM_NIL), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_109));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T56_ = (NI)0; T56_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record__GiwFlnBZZ3SfeR0HZEcQUw), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_27), T56_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record__GiwFlnBZZ3SfeR0HZEcQUw), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_28), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_110));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record__GiwFlnBZZ3SfeR0HZEcQUw), ((NimStringDesc*) &TM__d4AOD9a9caqvt0UiYkWs0hww_111), commandStr__xPEg9apZk0EvO9c29aXgEnA1g);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record__GiwFlnBZZ3SfeR0HZEcQUw));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record__GiwFlnBZZ3SfeR0HZEcQUw));
} LA49: ;
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym38185019_; Exception* T59_; Exception* T60_; TM__d4AOD9a9caqvt0UiYkWs0hww_107.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T59_ = (Exception*)0; T59_ = getCurrentException(); errX60gensym38185019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T59_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T60_ = (Exception*)0; T60_ = &errX60gensym38185019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("launch command failed", T60_);
popCurrentException(); }
}
if (TM__d4AOD9a9caqvt0UiYkWs0hww_107.status != 0) reraiseException(); }
LA46_: ;
}
}
N_LIB_PRIVATE N_NIMCALL(void, start_networkDatInit000)(void) {
#line 999999 "generated_not_to_break_here"
static TNimNode* TM__d4AOD9a9caqvt0UiYkWs0hww_2_3[3];
NI TM__d4AOD9a9caqvt0UiYkWs0hww_4;
static char* NIM_CONST TM__d4AOD9a9caqvt0UiYkWs0hww_3[3] = {
"Star",
"FullMesh",
"DiscoveryBased"};
static TNimNode* TM__d4AOD9a9caqvt0UiYkWs0hww_5_5[5];
static TNimNode* TM__d4AOD9a9caqvt0UiYkWs0hww_11_2[2];
NI TM__d4AOD9a9caqvt0UiYkWs0hww_13;
static char* NIM_CONST TM__d4AOD9a9caqvt0UiYkWs0hww_12[2] = {
"",
"--light-node:on"};
static TNimNode TM__d4AOD9a9caqvt0UiYkWs0hww_0[13];NTI__u5YFhUoGVKboFIgGYZd3wA_.size = sizeof(tyEnum_Topology__u5YFhUoGVKboFIgGYZd3wA);
NTI__u5YFhUoGVKboFIgGYZd3wA_.kind = 14;
NTI__u5YFhUoGVKboFIgGYZd3wA_.base = 0;
NTI__u5YFhUoGVKboFIgGYZd3wA_.flags = 3;
NTI__u5YFhUoGVKboFIgGYZd3wA_.name = "Topology";
NTI__u5YFhUoGVKboFIgGYZd3wA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__u5YFhUoGVKboFIgGYZd3wA_;
for (TM__d4AOD9a9caqvt0UiYkWs0hww_4 = 0; TM__d4AOD9a9caqvt0UiYkWs0hww_4 < 3; TM__d4AOD9a9caqvt0UiYkWs0hww_4++) {
TM__d4AOD9a9caqvt0UiYkWs0hww_0[TM__d4AOD9a9caqvt0UiYkWs0hww_4+0].kind = 1;
TM__d4AOD9a9caqvt0UiYkWs0hww_0[TM__d4AOD9a9caqvt0UiYkWs0hww_4+0].offset = TM__d4AOD9a9caqvt0UiYkWs0hww_4;
TM__d4AOD9a9caqvt0UiYkWs0hww_0[TM__d4AOD9a9caqvt0UiYkWs0hww_4+0].name = TM__d4AOD9a9caqvt0UiYkWs0hww_3[TM__d4AOD9a9caqvt0UiYkWs0hww_4];
TM__d4AOD9a9caqvt0UiYkWs0hww_2_3[TM__d4AOD9a9caqvt0UiYkWs0hww_4] = &TM__d4AOD9a9caqvt0UiYkWs0hww_0[TM__d4AOD9a9caqvt0UiYkWs0hww_4+0];
}
TM__d4AOD9a9caqvt0UiYkWs0hww_0[3].len = 3; TM__d4AOD9a9caqvt0UiYkWs0hww_0[3].kind = 2; TM__d4AOD9a9caqvt0UiYkWs0hww_0[3].sons = &TM__d4AOD9a9caqvt0UiYkWs0hww_2_3[0];
NTI__u5YFhUoGVKboFIgGYZd3wA_.node = &TM__d4AOD9a9caqvt0UiYkWs0hww_0[3];
NTI__gi9ah4npu9bxC3bTjea8de4A_.size = sizeof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A);
NTI__gi9ah4npu9bxC3bTjea8de4A_.kind = 18;
NTI__gi9ah4npu9bxC3bTjea8de4A_.base = 0;
NTI__gi9ah4npu9bxC3bTjea8de4A_.flags = 2;
NTI__gi9ah4npu9bxC3bTjea8de4A_.name = "NodeInfo";
NTI__gi9ah4npu9bxC3bTjea8de4A_.nextType = nimTypeRoot; nimTypeRoot=&NTI__gi9ah4npu9bxC3bTjea8de4A_;
TM__d4AOD9a9caqvt0UiYkWs0hww_5_5[0] = &TM__d4AOD9a9caqvt0UiYkWs0hww_0[5];
TM__d4AOD9a9caqvt0UiYkWs0hww_0[5].kind = 1;
TM__d4AOD9a9caqvt0UiYkWs0hww_0[5].offset = offsetof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A, cmd);
TM__d4AOD9a9caqvt0UiYkWs0hww_0[5].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__d4AOD9a9caqvt0UiYkWs0hww_0[5].name = "cmd";
TM__d4AOD9a9caqvt0UiYkWs0hww_5_5[1] = &TM__d4AOD9a9caqvt0UiYkWs0hww_0[6];
TM__d4AOD9a9caqvt0UiYkWs0hww_0[6].kind = 1;
TM__d4AOD9a9caqvt0UiYkWs0hww_0[6].offset = offsetof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A, master);
TM__d4AOD9a9caqvt0UiYkWs0hww_0[6].typ = (&NTI__VaVACK0bpYmqIQ0mKcHfQQ_);
TM__d4AOD9a9caqvt0UiYkWs0hww_0[6].name = "master";
TM__d4AOD9a9caqvt0UiYkWs0hww_5_5[2] = &TM__d4AOD9a9caqvt0UiYkWs0hww_0[7];
TM__d4AOD9a9caqvt0UiYkWs0hww_0[7].kind = 1;
TM__d4AOD9a9caqvt0UiYkWs0hww_0[7].offset = offsetof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A, enode);
TM__d4AOD9a9caqvt0UiYkWs0hww_0[7].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__d4AOD9a9caqvt0UiYkWs0hww_0[7].name = "enode";
TM__d4AOD9a9caqvt0UiYkWs0hww_5_5[3] = &TM__d4AOD9a9caqvt0UiYkWs0hww_0[8];
TM__d4AOD9a9caqvt0UiYkWs0hww_0[8].kind = 1;
TM__d4AOD9a9caqvt0UiYkWs0hww_0[8].offset = offsetof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A, shift);
TM__d4AOD9a9caqvt0UiYkWs0hww_0[8].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__d4AOD9a9caqvt0UiYkWs0hww_0[8].name = "shift";
TM__d4AOD9a9caqvt0UiYkWs0hww_5_5[4] = &TM__d4AOD9a9caqvt0UiYkWs0hww_0[9];
TM__d4AOD9a9caqvt0UiYkWs0hww_0[9].kind = 1;
TM__d4AOD9a9caqvt0UiYkWs0hww_0[9].offset = offsetof(tyObject_NodeInfo__gi9ah4npu9bxC3bTjea8de4A, label);
TM__d4AOD9a9caqvt0UiYkWs0hww_0[9].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__d4AOD9a9caqvt0UiYkWs0hww_0[9].name = "label";
TM__d4AOD9a9caqvt0UiYkWs0hww_0[4].len = 5; TM__d4AOD9a9caqvt0UiYkWs0hww_0[4].kind = 2; TM__d4AOD9a9caqvt0UiYkWs0hww_0[4].sons = &TM__d4AOD9a9caqvt0UiYkWs0hww_5_5[0];
NTI__gi9ah4npu9bxC3bTjea8de4A_.node = &TM__d4AOD9a9caqvt0UiYkWs0hww_0[4];
NTI__9cz7rkItAO3G9c3dheJwvcqg_.size = sizeof(tySequence__9cz7rkItAO3G9c3dheJwvcqg*);
NTI__9cz7rkItAO3G9c3dheJwvcqg_.kind = 24;
NTI__9cz7rkItAO3G9c3dheJwvcqg_.base = (&NTI__gi9ah4npu9bxC3bTjea8de4A_);
NTI__9cz7rkItAO3G9c3dheJwvcqg_.flags = 2;
NTI__9cz7rkItAO3G9c3dheJwvcqg_.name = "seq[NodeInfo]";
NTI__9cz7rkItAO3G9c3dheJwvcqg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__9cz7rkItAO3G9c3dheJwvcqg_;
NTI__9cz7rkItAO3G9c3dheJwvcqg_.marker = Marker_tySequence__9cz7rkItAO3G9c3dheJwvcqg;
NTI__TJ530cHhl9aO8CyECHHNBhA_.size = sizeof(tyEnum_NodeType__TJ530cHhl9aO8CyECHHNBhA);
NTI__TJ530cHhl9aO8CyECHHNBhA_.kind = 14;
NTI__TJ530cHhl9aO8CyECHHNBhA_.base = 0;
NTI__TJ530cHhl9aO8CyECHHNBhA_.flags = 3;
NTI__TJ530cHhl9aO8CyECHHNBhA_.name = "NodeType";
NTI__TJ530cHhl9aO8CyECHHNBhA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__TJ530cHhl9aO8CyECHHNBhA_;
for (TM__d4AOD9a9caqvt0UiYkWs0hww_13 = 0; TM__d4AOD9a9caqvt0UiYkWs0hww_13 < 2; TM__d4AOD9a9caqvt0UiYkWs0hww_13++) {
TM__d4AOD9a9caqvt0UiYkWs0hww_0[TM__d4AOD9a9caqvt0UiYkWs0hww_13+10].kind = 1;
TM__d4AOD9a9caqvt0UiYkWs0hww_0[TM__d4AOD9a9caqvt0UiYkWs0hww_13+10].offset = TM__d4AOD9a9caqvt0UiYkWs0hww_13;
TM__d4AOD9a9caqvt0UiYkWs0hww_0[TM__d4AOD9a9caqvt0UiYkWs0hww_13+10].name = TM__d4AOD9a9caqvt0UiYkWs0hww_12[TM__d4AOD9a9caqvt0UiYkWs0hww_13];
TM__d4AOD9a9caqvt0UiYkWs0hww_11_2[TM__d4AOD9a9caqvt0UiYkWs0hww_13] = &TM__d4AOD9a9caqvt0UiYkWs0hww_0[TM__d4AOD9a9caqvt0UiYkWs0hww_13+10];
}
TM__d4AOD9a9caqvt0UiYkWs0hww_0[12].len = 2; TM__d4AOD9a9caqvt0UiYkWs0hww_0[12].kind = 2; TM__d4AOD9a9caqvt0UiYkWs0hww_0[12].sons = &TM__d4AOD9a9caqvt0UiYkWs0hww_11_2[0];
NTI__TJ530cHhl9aO8CyECHHNBhA_.node = &TM__d4AOD9a9caqvt0UiYkWs0hww_0[12];
}