/* Generated by Nim Compiler v1.0.99 */ /* (c) 2019 Andreas Rumpf */ /* The generated code is subject to the original license. */ /* Compiled for: Linux, amd64, gcc */ /* Command for C compiler: gcc -c -w -I/home/ray/Nim/Nim-devel/lib -I/home/ray/Nim/Nim-devel -o /home/ray/Nim/Nim-devel/nimCacheB/@mbasicAsync.nim.c.o /home/ray/Nim/Nim-devel/nimCacheB/@mbasicAsync.nim.c */ #define NIM_INTBITS 64 #include "nimbase.h" #include #include #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ; typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA; typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w; typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g; 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_SomeObj__6hKTrKjmVArOez9a5TNLgDw tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw; typedef struct tyObject_BuffercolonObjectType___QVya9blKKCYsuaQaUynKyGA tyObject_BuffercolonObjectType___QVya9blKKCYsuaQaUynKyGA; typedef struct TNimType TNimType; typedef struct TNimNode TNimNode; typedef struct tyObject_DisposableFuturecolonObjectType___Lfg2yGJjDOfBeOhIorLQ0Q tyObject_DisposableFuturecolonObjectType___Lfg2yGJjDOfBeOhIorLQ0Q; typedef struct tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q; typedef struct RootObj RootObj; typedef struct tyObject_FutureBasecolonObjectType___NMMT5akQkfNlmjYrVF9a9bwA tyObject_FutureBasecolonObjectType___NMMT5akQkfNlmjYrVF9a9bwA; typedef struct tyTuple__JfHvHzMrhKkWAUvQKe0i1A tyTuple__JfHvHzMrhKkWAUvQKe0i1A; typedef struct tyObject_Env_asyncmacrodotnim___diB2NTuAIWY0FO9c5IUJRGg tyObject_Env_asyncmacrodotnim___diB2NTuAIWY0FO9c5IUJRGg; typedef struct tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA; typedef struct tyObject_FuturecolonObjectType___pQq3dsN8zmxbiw5ui9batvg tyObject_FuturecolonObjectType___pQq3dsN8zmxbiw5ui9batvg; typedef struct tyObject_CallbackList__tKSBWiaJMWD3JZxwqg7UFQ tyObject_CallbackList__tKSBWiaJMWD3JZxwqg7UFQ; typedef struct Exception Exception; typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA; typedef struct TSafePoint TSafePoint; typedef struct tyObject_AssertionError__G9cUlLvU4AFC26wbFxLFkFA tyObject_AssertionError__G9cUlLvU4AFC26wbFxLFkFA; typedef struct tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA; typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1]; 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 collections; NI maxThreshold; NI maxStackSize; NI freedObjects; }; struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ { tyObject_GcStack__7fytPA5bBsob6See21YMRA stack; NI cycleThreshold; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack; NI recGcLock; tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region; tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat; NI gcThreadId; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots; }; struct tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw { tyObject_BuffercolonObjectType___QVya9blKKCYsuaQaUynKyGA* buffer; }; 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_BuffercolonObjectType___QVya9blKKCYsuaQaUynKyGA { NI value; }; 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); struct RootObj { TNimType* m_type; }; typedef struct { N_NIMCALL_PTR(tyObject_FutureBasecolonObjectType___NMMT5akQkfNlmjYrVF9a9bwA*, ClP_0) (void* ClE_0); void* ClE_0; } tyProc__i2b9cGj0tjqcMqlPrj7tjLQ; struct tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q { RootObj Sup; NI colonstate_; tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw a1; tyObject_DisposableFuturecolonObjectType___Lfg2yGJjDOfBeOhIorLQ0Q* retFuture2; tyProc__i2b9cGj0tjqcMqlPrj7tjLQ asyncProcIterVar3; tyObject_DisposableFuturecolonObjectType___Lfg2yGJjDOfBeOhIorLQ0Q* retFutUnownX60gensym4282684_; }; struct tyTuple__JfHvHzMrhKkWAUvQKe0i1A { void* Field0; tyObject_Env_asyncmacrodotnim___diB2NTuAIWY0FO9c5IUJRGg* Field1; }; struct tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA { RootObj Sup; NI colonstate_; tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw result1; tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q* colonup_; }; typedef struct { N_NIMCALL_PTR(void, ClP_0) (void* ClE_0); void* ClE_0; } tyProc__IIomJ6ptE6vfJ5zRbATgkQ; struct tyObject_CallbackList__tKSBWiaJMWD3JZxwqg7UFQ { tyProc__IIomJ6ptE6vfJ5zRbATgkQ function; tyObject_CallbackList__tKSBWiaJMWD3JZxwqg7UFQ* next; }; struct tyObject_FutureBasecolonObjectType___NMMT5akQkfNlmjYrVF9a9bwA { RootObj Sup; tyObject_CallbackList__tKSBWiaJMWD3JZxwqg7UFQ callbacks; NIM_BOOL finished; Exception* error; NimStringDesc* errorStackTrace; tySequence__uB9b75OUPRENsBAu4AnoePA* stackTrace; NI id; NimStringDesc* fromProc; }; struct tyObject_FuturecolonObjectType___pQq3dsN8zmxbiw5ui9batvg { tyObject_FutureBasecolonObjectType___NMMT5akQkfNlmjYrVF9a9bwA Sup; tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw value; }; struct tyObject_DisposableFuturecolonObjectType___Lfg2yGJjDOfBeOhIorLQ0Q { tyObject_FuturecolonObjectType___pQq3dsN8zmxbiw5ui9batvg Sup; tyProc__IIomJ6ptE6vfJ5zRbATgkQ closureRef; }; struct Exception { RootObj Sup; Exception* parent; NCSTRING name; NimStringDesc* message; tySequence__uB9b75OUPRENsBAu4AnoePA* trace; NU raiseId; Exception* up; }; typedef long tyArray__TcvIiMAJvcwzNLsZkfnFnQ[25]; typedef struct { N_NIMCALL_PTR(NIM_BOOL, ClP_0) (Exception* e, void* ClE_0); void* ClE_0; } tyProc__NT9bSe2DDkjdtx7j9aov2Z6g; struct TSafePoint { TSafePoint* prev; NI status; jmp_buf context; NIM_BOOL hasRaiseAction; tyProc__NT9bSe2DDkjdtx7j9aov2Z6g raiseAction; }; typedef N_CLOSURE_PTR(tyObject_FutureBasecolonObjectType___NMMT5akQkfNlmjYrVF9a9bwA*, TM__x48FsBkLXY1lHws4HproMQ_11) (void); typedef N_CLOSURE_PTR(tyObject_FutureBasecolonObjectType___NMMT5akQkfNlmjYrVF9a9bwA*, TM__x48FsBkLXY1lHws4HproMQ_12) (void); struct tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA { Exception Sup; }; struct tyObject_AssertionError__G9cUlLvU4AFC26wbFxLFkFA { tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup; }; typedef N_CLOSURE_PTR(void, TM__x48FsBkLXY1lHws4HproMQ_14) (void); struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA { NCSTRING procname; NI line; NCSTRING filename; }; struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE]; }; N_NIMCALL(void, echoBinSafe)(NimStringDesc** args, NI argsLen_0); static N_INLINE(void, GC_disable__RsY2eAkO9aEvlDhb7ZyRF8g_2system)(void); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, dumpNumberOfInstances__amVlU9ajqZ06ujoesRBHcDg_6)(void); static N_NIMCALL(void, Marker_tyRef__Kyb9c39av6EY7m21mmbURnEg)(void* p, NI op); N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, TM__x48FsBkLXY1lHws4HproMQ_4)(void); N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); N_NOINLINE(void, chckNil)(void* p); N_NIMCALL(void, genericReset)(void* dest, TNimType* mt); N_LIB_PRIVATE N_NIMCALL(tyObject_BuffercolonObjectType___QVya9blKKCYsuaQaUynKyGA*, new__PcaOb9b9bS4z2G6plIaYzP1w)(void); static N_NIMCALL(void, TM__x48FsBkLXY1lHws4HproMQ_5)(void); N_LIB_PRIVATE N_NIMCALL(tyObject_DisposableFuturecolonObjectType___Lfg2yGJjDOfBeOhIorLQ0Q*, asyncProc__HzLX2bbnR9aWGVrdWQCSMgA)(tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw a); static N_NIMCALL(void, Marker_tyRef__pNRMmWMJUakOz2CYyAPOfQ)(void* p, NI op); N_NIMCALL(void*, newObj)(TNimType* typ, NI size); N_LIB_PRIVATE N_NIMCALL(tyObject_DisposableFuturecolonObjectType___Lfg2yGJjDOfBeOhIorLQ0Q*, newDisposableFuture__wVNjX9caEYno8RJMwApfM7A)(NimStringDesc* fromProc); static N_NIMCALL(void, Marker_tyRef__NFj9arwRX6hzO3wC3P6hQUA)(void* p, NI op); N_LIB_PRIVATE N_CLOSURE(tyObject_FutureBasecolonObjectType___NMMT5akQkfNlmjYrVF9a9bwA*, asyncProcIter__mxs9clNLeSeQ8c9bkpH0LXhQ)(void* ClE_0); static N_INLINE(void, nimZeroMem)(void* p, NI size); static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size); N_LIB_PRIVATE N_NIMCALL(void, assign__7lY9c6xBkavaA2OVXwnyu9cQ)(tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw* dst, tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw src); N_LIB_PRIVATE N_NIMCALL(void, complete__aCege7lf8d1ybD4gdzLi9bA)(tyObject_FuturecolonObjectType___pQq3dsN8zmxbiw5ui9batvg* future, tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw val); N_LIB_PRIVATE N_CLOSURE(void, asyncProcNimAsyncContinue__TY8JL1jU8n3zHBE1SMxocQ)(void* ClE_0); static N_INLINE(void, pushSafePoint)(TSafePoint* s); static N_INLINE(NIM_BOOL, finished__h4ux2WUne7c1dhvjUD2h0Asystem)(tyProc__i2b9cGj0tjqcMqlPrj7tjLQ x); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, finished__Cn8FMZpHNs40shvQ9cZz69aA)(tyObject_FutureBasecolonObjectType___NMMT5akQkfNlmjYrVF9a9bwA* future); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, finished__w45B7BCmkOQHXEo9aaMNQFw)(tyObject_DisposableFuturecolonObjectType___Lfg2yGJjDOfBeOhIorLQ0Q* future); N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src); N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a); N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line); N_LIB_PRIVATE N_NIMCALL(void, callbackeq___9aJi4ZQ0PFmPEOGcUBogbrg)(tyObject_FutureBasecolonObjectType___NMMT5akQkfNlmjYrVF9a9bwA* future, tyProc__IIomJ6ptE6vfJ5zRbATgkQ cb); static N_INLINE(void, popSafePoint)(void); static N_INLINE(TFrame*, getFrame)(void); static N_INLINE(void, setFrame)(TFrame* s); N_NIMCALL(void, reraiseException)(void); N_LIB_PRIVATE N_NIMCALL(void, fail__9cAyHaXRFutMrW9cZ5P6VG5Q)(tyObject_FuturecolonObjectType___pQq3dsN8zmxbiw5ui9batvg* future, Exception* error); static N_INLINE(Exception*, getCurrentException)(void); static N_INLINE(void, popCurrentException)(void); N_LIB_PRIVATE N_NIMCALL(void, addClosure__6el9cWguMweG9cUGCEsRQE7A)(tyObject_DisposableFuturecolonObjectType___Lfg2yGJjDOfBeOhIorLQ0Q* future, tyProc__IIomJ6ptE6vfJ5zRbATgkQ* closure); static N_NIMCALL(void, TM__x48FsBkLXY1lHws4HproMQ_15)(void); N_LIB_PRIVATE N_NIMCALL(void, waitFor__abqevR7RIxX6km9aKQru5Xw)(tyObject_FuturecolonObjectType___pQq3dsN8zmxbiw5ui9batvg* fut, tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw* Result); N_LIB_PRIVATE N_NIMCALL(void, dispose__KUefff9bFSbOH8KIBUi3rSw)(tyObject_DisposableFuturecolonObjectType___Lfg2yGJjDOfBeOhIorLQ0Q** future); static N_INLINE(void, initStackBottomWith)(void* locals); N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); 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, stdlib_heapqueueDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_dequesDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_asyncfuturesDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_asyncfuturesInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_monotimesDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_nativesocketsInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_selectorsDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_asyncdispatchDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_asyncdispatchInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, basicAsyncDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw obj__d5oHAdd0JAWAYJVGHcQcBA; extern TNimType* nimTypeRoot; TNimType NTI__6hKTrKjmVArOez9a5TNLgDw_; TNimType NTI__QVya9blKKCYsuaQaUynKyGA_; extern TNimType NTI__rR5Bzr1D5krxoo1NcNyeMA_; TNimType NTI__Kyb9c39av6EY7m21mmbURnEg_; tyObject_DisposableFuturecolonObjectType___Lfg2yGJjDOfBeOhIorLQ0Q* fut__agZ3RhJJH7KwqCvL2DPHQg; extern TNimType NTI__1BVB8KsR7FHwZjvXsDA9cEQ_; extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_; TNimType NTI__72yrJWF8o1o1fTGDdTPj3Q_; extern TNimType NTI__xHTZrq9aYs6boc9bCba0JbpQ_; TNimType NTI__i2b9cGj0tjqcMqlPrj7tjLQ_; extern TNimType NTI__vr5DoT1jILTGdRlYv1OYpw_; extern TNimType NTI__HsJiUUcO9cHBdUCi0HwkSTA_; TNimType NTI__pNRMmWMJUakOz2CYyAPOfQ_; TNimType NTI__IrsddVqAAUxbtcvtoFHKeA_; TNimType NTI__NFj9arwRX6hzO3wC3P6hQUA_; extern TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g; extern TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g; extern TNimType NTI__ShBqCFAISBSH2YqBfe6zjg_; extern TNimType NTI__G9cUlLvU4AFC26wbFxLFkFA_; extern TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g; extern TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg; extern Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg; extern Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg; tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw res__5XhHz67th7Vbr4HoToCvJg; STRING_LITERAL(TM__x48FsBkLXY1lHws4HproMQ_3, "start", 5); NIM_CONST tyArray__nHXaesL0DJZHyVS07ARPRA TM__x48FsBkLXY1lHws4HproMQ_2 = {((NimStringDesc*) &TM__x48FsBkLXY1lHws4HproMQ_3)} ; STRING_LITERAL(TM__x48FsBkLXY1lHws4HproMQ_8, "asyncProc", 9); STRING_LITERAL(TM__x48FsBkLXY1lHws4HproMQ_13, "Async procedure ($1) yielded `nil`, are you await\'ing a `nil` F" "uture\?", 69); STRING_LITERAL(TM__x48FsBkLXY1lHws4HproMQ_17, "finish", 6); NIM_CONST tyArray__nHXaesL0DJZHyVS07ARPRA TM__x48FsBkLXY1lHws4HproMQ_16 = {((NimStringDesc*) &TM__x48FsBkLXY1lHws4HproMQ_17)} ; static N_INLINE(void, nimFrame)(TFrame* s) { NI T1_; T1_ = (NI)0; { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA4_; T1_ = ((NI) 0); } goto LA2_; LA4_: ; { T1_ = ((NI) ((NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)))); } LA2_: ; (*s).calldepth = ((NI16) (T1_)); (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA9_; callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA9_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } static N_INLINE(void, GC_disable__RsY2eAkO9aEvlDhb7ZyRF8g_2system)(void) { nimfr_("GC_disable", "/home/ray/Nim/Nim-devel/lib/system/gc_ms.nim"); nimln_(585, "/home/ray/Nim/Nim-devel/lib/system/gc_ms.nim"); gch__IcYaEuuWivYAS86vFMTS3Q.recGcLock += ((NI) 1); popFrame(); } static N_NIMCALL(void, Marker_tyRef__Kyb9c39av6EY7m21mmbURnEg)(void* p, NI op) { tyObject_BuffercolonObjectType___QVya9blKKCYsuaQaUynKyGA* a; a = (tyObject_BuffercolonObjectType___QVya9blKKCYsuaQaUynKyGA*)p; } static N_NIMCALL(void, TM__x48FsBkLXY1lHws4HproMQ_4)(void) { nimGCvisit((void*)obj__d5oHAdd0JAWAYJVGHcQcBA.buffer, 0); } static N_NIMCALL(void, TM__x48FsBkLXY1lHws4HproMQ_5)(void) { nimGCvisit((void*)fut__agZ3RhJJH7KwqCvL2DPHQg, 0); } static N_NIMCALL(void, Marker_tyRef__pNRMmWMJUakOz2CYyAPOfQ)(void* p, NI op) { tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q* a; a = (tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q*)p; nimGCvisit((void*)(*a).a1.buffer, op); nimGCvisit((void*)(*a).retFuture2, op); nimGCvisit((void*)(*a).asyncProcIterVar3.ClE_0, op); nimGCvisit((void*)(*a).retFutUnownX60gensym4282684_, op); } static N_NIMCALL(void, Marker_tyRef__NFj9arwRX6hzO3wC3P6hQUA)(void* p, NI op) { tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA* a; a = (tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA*)p; nimGCvisit((void*)(*a).result1.buffer, op); nimGCvisit((void*)(*a).colonup_, op); } static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_; T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size))); } static N_INLINE(void, nimZeroMem)(void* p, NI size) { nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size); } N_LIB_PRIVATE N_NIMCALL(void, assign__7lY9c6xBkavaA2OVXwnyu9cQ)(tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw* dst, tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw src) { nimfr_("assign", "/home/ray/Nim/Nim-devel/basicAsync.nim"); nimln_(14, "/home/ray/Nim/Nim-devel/basicAsync.nim"); (*dst).buffer = new__PcaOb9b9bS4z2G6plIaYzP1w(); nimln_(15, "/home/ray/Nim/Nim-devel/basicAsync.nim"); (*(*dst).buffer).value = (*src.buffer).value; popFrame(); } N_LIB_PRIVATE N_CLOSURE(tyObject_FutureBasecolonObjectType___NMMT5akQkfNlmjYrVF9a9bwA*, asyncProcIter__mxs9clNLeSeQ8c9bkpH0LXhQ)(void* ClE_0) { tyObject_FutureBasecolonObjectType___NMMT5akQkfNlmjYrVF9a9bwA* result; tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA* colonenvP_; nimfr_("asyncProcIter", "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); { result = (tyObject_FutureBasecolonObjectType___NMMT5akQkfNlmjYrVF9a9bwA*)0; colonenvP_ = (tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA*) ClE_0; nimln_(18, "/home/ray/Nim/Nim-devel/basicAsync.nim"); while (1) { if (!1) goto LA1; { tyObject_FuturecolonObjectType___pQq3dsN8zmxbiw5ui9batvg* T3_; switch ((*colonenvP_).colonstate_) { case -1: goto BeforeRet_; case 0: goto STATE0; case 1: goto STATE1; } STATE0: ; nimln_(17, "/home/ray/Nim/Nim-devel/basicAsync.nim"); nimZeroMem((void*)(&(*colonenvP_).result1), sizeof(tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw)); nimln_(18, "/home/ray/Nim/Nim-devel/basicAsync.nim"); assign__7lY9c6xBkavaA2OVXwnyu9cQ((&(*colonenvP_).result1), (*(*colonenvP_).colonup_).a1); nimln_(17, "/home/ray/Nim/Nim-devel/basicAsync.nim"); T3_ = (tyObject_FuturecolonObjectType___pQq3dsN8zmxbiw5ui9batvg*)0; T3_ = &(*(*colonenvP_).colonup_).retFuture2->Sup; complete__aCege7lf8d1ybD4gdzLi9bA(T3_, (*colonenvP_).result1); (*colonenvP_).colonstate_ = ((NI) 1); goto LA2; STATE1: ; (*colonenvP_).colonstate_ = ((NI) -1); goto LA2; } LA2: ; } LA1: ; }BeforeRet_: ; popFrame(); return result; } static N_INLINE(void, pushSafePoint)(TSafePoint* s) { (*s).hasRaiseAction = NIM_FALSE; (*s).prev = excHandler__rqLlY5bs9atDw2OXYqJEn5g; excHandler__rqLlY5bs9atDw2OXYqJEn5g = s; } static N_INLINE(NIM_BOOL, finished__h4ux2WUne7c1dhvjUD2h0Asystem)(tyProc__i2b9cGj0tjqcMqlPrj7tjLQ x) { NIM_BOOL result; nimfr_("finished", "/home/ray/Nim/Nim-devel/lib/system.nim"); result = (NIM_BOOL)0; nimln_(3853, "/home/ray/Nim/Nim-devel/lib/system.nim"); result = ((NI*) x.ClE_0)[1] < 0; popFrame(); return result; } static N_INLINE(void, popSafePoint)(void) { excHandler__rqLlY5bs9atDw2OXYqJEn5g = (*excHandler__rqLlY5bs9atDw2OXYqJEn5g).prev; } static N_INLINE(TFrame*, getFrame)(void) { TFrame* result; result = (TFrame*)0; result = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; return result; } static N_INLINE(void, setFrame)(TFrame* s) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; } static N_INLINE(Exception*, getCurrentException)(void) { Exception* result; nimfr_("getCurrentException", "/home/ray/Nim/Nim-devel/lib/system.nim"); result = (Exception*)0; nimln_(3804, "/home/ray/Nim/Nim-devel/lib/system.nim"); result = currException__9bVPeDJlYTi9bQApZpfH8wjg; popFrame(); return result; } static N_INLINE(void, popCurrentException)(void) { currException__9bVPeDJlYTi9bQApZpfH8wjg = (*currException__9bVPeDJlYTi9bQApZpfH8wjg).up; } N_LIB_PRIVATE N_CLOSURE(void, asyncProcNimAsyncContinue__TY8JL1jU8n3zHBE1SMxocQ)(void* ClE_0) { tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q* colonenvP_; TSafePoint TM__x48FsBkLXY1lHws4HproMQ_10; TFrame* _nimCurFrame; nimfr_("asyncProcNimAsyncContinue", "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); _nimCurFrame = getFrame(); colonenvP_ = (tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q*) ClE_0; nimln_(31, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); pushSafePoint(&TM__x48FsBkLXY1lHws4HproMQ_10); TM__x48FsBkLXY1lHws4HproMQ_10.status = setjmp(TM__x48FsBkLXY1lHws4HproMQ_10.context); if (TM__x48FsBkLXY1lHws4HproMQ_10.status == 0) { nimln_(32, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); { NIM_BOOL T4_; tyObject_FutureBasecolonObjectType___NMMT5akQkfNlmjYrVF9a9bwA* volatile nextX60gensym428269_; T4_ = (NIM_BOOL)0; T4_ = finished__h4ux2WUne7c1dhvjUD2h0Asystem((*colonenvP_).asyncProcIterVar3); if (!!(T4_)) goto LA5_; nimln_(33, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); nextX60gensym428269_ = (*colonenvP_).asyncProcIterVar3.ClP_0((*colonenvP_).asyncProcIterVar3.ClE_0); { nimln_(35, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); while (1) { NIM_BOOL T9_; T9_ = (NIM_BOOL)0; T9_ = !((nextX60gensym428269_ == 0)); if (!(T9_)) goto LA10_; T9_ = finished__Cn8FMZpHNs40shvQ9cZz69aA(nextX60gensym428269_); LA10_: ; if (!T9_) goto LA8; nimln_(36, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); nextX60gensym428269_ = (*colonenvP_).asyncProcIterVar3.ClP_0((*colonenvP_).asyncProcIterVar3.ClE_0); nimln_(37, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); { NIM_BOOL T13_; T13_ = (NIM_BOOL)0; T13_ = finished__h4ux2WUne7c1dhvjUD2h0Asystem((*colonenvP_).asyncProcIterVar3); if (!T13_) goto LA14_; nimln_(38, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); goto LA7; } LA14_: ; } LA8: ; } LA7: ; nimln_(40, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); { if (!(nextX60gensym428269_ == NIM_NIL)) goto LA18_; nimln_(41, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); { NIM_BOOL T22_; NimStringDesc* msgX60gensym428270_; tyObject_AssertionError__G9cUlLvU4AFC26wbFxLFkFA* volatile eX60gensym429816_; T22_ = (NIM_BOOL)0; T22_ = finished__w45B7BCmkOQHXEo9aaMNQFw((*colonenvP_).retFutUnownX60gensym4282684_); if (!!(T22_)) goto LA23_; nimln_(42, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); msgX60gensym428270_ = copyString(((NimStringDesc*) &TM__x48FsBkLXY1lHws4HproMQ_13)); eX60gensym429816_ = (tyObject_AssertionError__G9cUlLvU4AFC26wbFxLFkFA*)0; nimln_(3485, "/home/ray/Nim/Nim-devel/lib/system.nim"); eX60gensym429816_ = (tyObject_AssertionError__G9cUlLvU4AFC26wbFxLFkFA*) newObj((&NTI__ShBqCFAISBSH2YqBfe6zjg_), sizeof(tyObject_AssertionError__G9cUlLvU4AFC26wbFxLFkFA)); (*eX60gensym429816_).Sup.Sup.Sup.m_type = (&NTI__G9cUlLvU4AFC26wbFxLFkFA_); (*eX60gensym429816_).Sup.Sup.name = "AssertionError"; nimln_(44, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); (*eX60gensym429816_).Sup.Sup.message = nsuFormatSingleElem(msgX60gensym428270_, ((NimStringDesc*) &TM__x48FsBkLXY1lHws4HproMQ_8)); nimln_(3478, "/home/ray/Nim/Nim-devel/lib/system.nim"); (*eX60gensym429816_).Sup.Sup.parent = NIM_NIL; nimln_(44, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); raiseExceptionEx((Exception*)eX60gensym429816_, "AssertionError", "asyncProcNimAsyncContinue", "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim", 44); } LA23_: ; } goto LA16_; LA18_: ; { tyProc__IIomJ6ptE6vfJ5zRbATgkQ T26_; nimln_(48, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); nimZeroMem((void*)(&T26_), sizeof(tyProc__IIomJ6ptE6vfJ5zRbATgkQ)); T26_.ClP_0 = asyncProcNimAsyncContinue__TY8JL1jU8n3zHBE1SMxocQ; T26_.ClE_0 = colonenvP_; callbackeq___9aJi4ZQ0PFmPEOGcUBogbrg(nextX60gensym428269_, T26_); } LA16_: ; } LA5_: ; popSafePoint(); } else { popSafePoint(); setFrame(_nimCurFrame); { TM__x48FsBkLXY1lHws4HproMQ_10.status = 0; nimln_(52, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); { NIM_BOOL T31_; T31_ = (NIM_BOOL)0; T31_ = finished__w45B7BCmkOQHXEo9aaMNQFw((*colonenvP_).retFutUnownX60gensym4282684_); if (!T31_) goto LA32_; nimln_(55, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); reraiseException(); } goto LA29_; LA32_: ; { tyObject_FuturecolonObjectType___pQq3dsN8zmxbiw5ui9batvg* T35_; Exception* T36_; nimln_(57, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); T35_ = (tyObject_FuturecolonObjectType___pQq3dsN8zmxbiw5ui9batvg*)0; T35_ = &(*colonenvP_).retFutUnownX60gensym4282684_->Sup; T36_ = (Exception*)0; T36_ = getCurrentException(); fail__9cAyHaXRFutMrW9cZ5P6VG5Q(T35_, T36_); } LA29_: ; popCurrentException(); } } if (TM__x48FsBkLXY1lHws4HproMQ_10.status != 0) reraiseException(); popFrame(); } N_LIB_PRIVATE N_NIMCALL(tyObject_DisposableFuturecolonObjectType___Lfg2yGJjDOfBeOhIorLQ0Q*, asyncProc__HzLX2bbnR9aWGVrdWQCSMgA)(tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw a) { tyObject_DisposableFuturecolonObjectType___Lfg2yGJjDOfBeOhIorLQ0Q* result; tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q* colonenv_; tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA* colonenv__2; tyProc__i2b9cGj0tjqcMqlPrj7tjLQ T1_; tyProc__IIomJ6ptE6vfJ5zRbATgkQ T2_; tyProc__IIomJ6ptE6vfJ5zRbATgkQ asyncProcClosureVar; tyProc__IIomJ6ptE6vfJ5zRbATgkQ T3_; nimfr_("asyncProc", "/home/ray/Nim/Nim-devel/basicAsync.nim"); { result = (tyObject_DisposableFuturecolonObjectType___Lfg2yGJjDOfBeOhIorLQ0Q*)0; colonenv_ = (tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q*)0; nimln_(253, "/home/ray/Nim/Nim-devel/lib/system.nim"); colonenv_ = (tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q*) newObj((&NTI__pNRMmWMJUakOz2CYyAPOfQ_), sizeof(tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q)); (*colonenv_).Sup.m_type = (&NTI__72yrJWF8o1o1fTGDdTPj3Q_); nimln_(17, "/home/ray/Nim/Nim-devel/basicAsync.nim"); (*colonenv_).a1.buffer = a.buffer; (*colonenv_).retFuture2 = newDisposableFuture__wVNjX9caEYno8RJMwApfM7A(((NimStringDesc*) &TM__x48FsBkLXY1lHws4HproMQ_8)); colonenv__2 = (tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA*)0; nimln_(253, "/home/ray/Nim/Nim-devel/lib/system.nim"); colonenv__2 = (tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA*) newObj((&NTI__NFj9arwRX6hzO3wC3P6hQUA_), sizeof(tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA)); (*colonenv__2).Sup.m_type = (&NTI__IrsddVqAAUxbtcvtoFHKeA_); nimln_(264, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); (*colonenv__2).colonup_ = colonenv_; nimZeroMem((void*)(&T1_), sizeof(tyProc__i2b9cGj0tjqcMqlPrj7tjLQ)); T1_.ClP_0 = asyncProcIter__mxs9clNLeSeQ8c9bkpH0LXhQ; T1_.ClE_0 = colonenv__2; (*colonenv_).asyncProcIterVar3.ClE_0 = T1_.ClE_0; (*colonenv_).asyncProcIterVar3.ClP_0 = T1_.ClP_0; nimln_(28, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); (*colonenv_).retFutUnownX60gensym4282684_ = (*colonenv_).retFuture2; nimln_(327, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); nimZeroMem((void*)(&T2_), sizeof(tyProc__IIomJ6ptE6vfJ5zRbATgkQ)); T2_.ClP_0 = asyncProcNimAsyncContinue__TY8JL1jU8n3zHBE1SMxocQ; T2_.ClE_0 = colonenv_; T2_.ClE_0? T2_.ClP_0(T2_.ClE_0):((TM__x48FsBkLXY1lHws4HproMQ_14)(T2_.ClP_0))(); nimZeroMem((void*)(&asyncProcClosureVar), sizeof(tyProc__IIomJ6ptE6vfJ5zRbATgkQ)); nimln_(333, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); nimZeroMem((void*)(&T3_), sizeof(tyProc__IIomJ6ptE6vfJ5zRbATgkQ)); T3_.ClP_0 = asyncProcNimAsyncContinue__TY8JL1jU8n3zHBE1SMxocQ; T3_.ClE_0 = colonenv_; asyncProcClosureVar.ClE_0 = T3_.ClE_0; asyncProcClosureVar.ClP_0 = T3_.ClP_0; nimln_(17, "/home/ray/Nim/Nim-devel/basicAsync.nim"); addClosure__6el9cWguMweG9cUGCEsRQE7A((*colonenv_).retFuture2, (&asyncProcClosureVar)); nimln_(327, "/home/ray/Nim/Nim-devel/lib/pure/asyncmacro.nim"); result = (*colonenv_).retFuture2; goto BeforeRet_; }BeforeRet_: ; popFrame(); return result; } static N_NIMCALL(void, TM__x48FsBkLXY1lHws4HproMQ_15)(void) { nimGCvisit((void*)res__5XhHz67th7Vbr4HoToCvJg.buffer, 0); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } void PreMainInner(void) { stdlib_timesInit000(); stdlib_osInit000(); stdlib_asyncfuturesInit000(); stdlib_nativesocketsInit000(); stdlib_asyncdispatchInit000(); } int cmdCount; char** cmdLine; char** gEnv; void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); stdlib_optionsDatInit000(); stdlib_timesDatInit000(); stdlib_osDatInit000(); stdlib_heapqueueDatInit000(); stdlib_dequesDatInit000(); stdlib_asyncfuturesDatInit000(); stdlib_monotimesDatInit000(); stdlib_selectorsDatInit000(); stdlib_asyncdispatchDatInit000(); basicAsyncDatInit000(); (*inner)(); } 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) { { tyObject_FuturecolonObjectType___pQq3dsN8zmxbiw5ui9batvg* T1_; nimfr_("basicAsync", "/home/ray/Nim/Nim-devel/basicAsync.nim"); nimRegisterGlobalMarker(TM__x48FsBkLXY1lHws4HproMQ_4); nimRegisterGlobalMarker(TM__x48FsBkLXY1lHws4HproMQ_5); nimRegisterGlobalMarker(TM__x48FsBkLXY1lHws4HproMQ_15); nimln_(21, "/home/ray/Nim/Nim-devel/basicAsync.nim"); echoBinSafe(TM__x48FsBkLXY1lHws4HproMQ_2, 1); nimln_(22, "/home/ray/Nim/Nim-devel/basicAsync.nim"); GC_disable__RsY2eAkO9aEvlDhb7ZyRF8g_2system(); nimln_(23, "/home/ray/Nim/Nim-devel/basicAsync.nim"); dumpNumberOfInstances__amVlU9ajqZ06ujoesRBHcDg_6(); nimln_(24, "/home/ray/Nim/Nim-devel/basicAsync.nim"); chckNil((void*)(&obj__d5oHAdd0JAWAYJVGHcQcBA)); genericReset((void*)(&obj__d5oHAdd0JAWAYJVGHcQcBA), (&NTI__6hKTrKjmVArOez9a5TNLgDw_)); obj__d5oHAdd0JAWAYJVGHcQcBA.buffer = new__PcaOb9b9bS4z2G6plIaYzP1w(); nimln_(25, "/home/ray/Nim/Nim-devel/basicAsync.nim"); (*obj__d5oHAdd0JAWAYJVGHcQcBA.buffer).value = ((NI) 42); nimln_(26, "/home/ray/Nim/Nim-devel/basicAsync.nim"); fut__agZ3RhJJH7KwqCvL2DPHQg = asyncProc__HzLX2bbnR9aWGVrdWQCSMgA(obj__d5oHAdd0JAWAYJVGHcQcBA); nimln_(27, "/home/ray/Nim/Nim-devel/basicAsync.nim"); T1_ = (tyObject_FuturecolonObjectType___pQq3dsN8zmxbiw5ui9batvg*)0; T1_ = &fut__agZ3RhJJH7KwqCvL2DPHQg->Sup; waitFor__abqevR7RIxX6km9aKQru5Xw(T1_, (&res__5XhHz67th7Vbr4HoToCvJg)); nimln_(28, "/home/ray/Nim/Nim-devel/basicAsync.nim"); dispose__KUefff9bFSbOH8KIBUi3rSw(&fut__agZ3RhJJH7KwqCvL2DPHQg); nimln_(30, "/home/ray/Nim/Nim-devel/basicAsync.nim"); echoBinSafe(TM__x48FsBkLXY1lHws4HproMQ_16, 1); nimln_(31, "/home/ray/Nim/Nim-devel/basicAsync.nim"); dumpNumberOfInstances__amVlU9ajqZ06ujoesRBHcDg_6(); popFrame(); } } N_LIB_PRIVATE N_NIMCALL(void, basicAsyncDatInit000)(void) { static TNimNode* TM__x48FsBkLXY1lHws4HproMQ_6_5[5]; static TNimNode* TM__x48FsBkLXY1lHws4HproMQ_7_2[2]; static TNimNode* TM__x48FsBkLXY1lHws4HproMQ_9_3[3]; static TNimNode TM__x48FsBkLXY1lHws4HproMQ_0[15]; NTI__6hKTrKjmVArOez9a5TNLgDw_.size = sizeof(tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw); NTI__6hKTrKjmVArOez9a5TNLgDw_.kind = 18; NTI__6hKTrKjmVArOez9a5TNLgDw_.base = 0; NTI__6hKTrKjmVArOez9a5TNLgDw_.flags = 2; NTI__6hKTrKjmVArOez9a5TNLgDw_.name = "SomeObj"; NTI__6hKTrKjmVArOez9a5TNLgDw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__6hKTrKjmVArOez9a5TNLgDw_; NTI__QVya9blKKCYsuaQaUynKyGA_.size = sizeof(tyObject_BuffercolonObjectType___QVya9blKKCYsuaQaUynKyGA); NTI__QVya9blKKCYsuaQaUynKyGA_.kind = 18; NTI__QVya9blKKCYsuaQaUynKyGA_.base = 0; NTI__QVya9blKKCYsuaQaUynKyGA_.flags = 3; NTI__QVya9blKKCYsuaQaUynKyGA_.name = "Buffer:ObjectType"; NTI__QVya9blKKCYsuaQaUynKyGA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__QVya9blKKCYsuaQaUynKyGA_; TM__x48FsBkLXY1lHws4HproMQ_0[1].kind = 1; TM__x48FsBkLXY1lHws4HproMQ_0[1].offset = offsetof(tyObject_BuffercolonObjectType___QVya9blKKCYsuaQaUynKyGA, value); TM__x48FsBkLXY1lHws4HproMQ_0[1].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_); TM__x48FsBkLXY1lHws4HproMQ_0[1].name = "value"; NTI__QVya9blKKCYsuaQaUynKyGA_.node = &TM__x48FsBkLXY1lHws4HproMQ_0[1]; NTI__Kyb9c39av6EY7m21mmbURnEg_.size = sizeof(tyObject_BuffercolonObjectType___QVya9blKKCYsuaQaUynKyGA*); NTI__Kyb9c39av6EY7m21mmbURnEg_.kind = 22; NTI__Kyb9c39av6EY7m21mmbURnEg_.base = (&NTI__QVya9blKKCYsuaQaUynKyGA_); NTI__Kyb9c39av6EY7m21mmbURnEg_.flags = 2; NTI__Kyb9c39av6EY7m21mmbURnEg_.name = "Buffer"; NTI__Kyb9c39av6EY7m21mmbURnEg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__Kyb9c39av6EY7m21mmbURnEg_; NTI__Kyb9c39av6EY7m21mmbURnEg_.marker = Marker_tyRef__Kyb9c39av6EY7m21mmbURnEg; TM__x48FsBkLXY1lHws4HproMQ_0[0].kind = 1; TM__x48FsBkLXY1lHws4HproMQ_0[0].offset = offsetof(tyObject_SomeObj__6hKTrKjmVArOez9a5TNLgDw, buffer); TM__x48FsBkLXY1lHws4HproMQ_0[0].typ = (&NTI__Kyb9c39av6EY7m21mmbURnEg_); TM__x48FsBkLXY1lHws4HproMQ_0[0].name = "buffer"; NTI__6hKTrKjmVArOez9a5TNLgDw_.node = &TM__x48FsBkLXY1lHws4HproMQ_0[0]; NTI__72yrJWF8o1o1fTGDdTPj3Q_.size = sizeof(tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q); NTI__72yrJWF8o1o1fTGDdTPj3Q_.kind = 17; NTI__72yrJWF8o1o1fTGDdTPj3Q_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_); NTI__72yrJWF8o1o1fTGDdTPj3Q_.name = "object"; NTI__72yrJWF8o1o1fTGDdTPj3Q_.nextType = nimTypeRoot; nimTypeRoot=&NTI__72yrJWF8o1o1fTGDdTPj3Q_; TM__x48FsBkLXY1lHws4HproMQ_6_5[0] = &TM__x48FsBkLXY1lHws4HproMQ_0[3]; TM__x48FsBkLXY1lHws4HproMQ_0[3].kind = 1; TM__x48FsBkLXY1lHws4HproMQ_0[3].offset = offsetof(tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q, colonstate_); TM__x48FsBkLXY1lHws4HproMQ_0[3].typ = (&NTI__xHTZrq9aYs6boc9bCba0JbpQ_); TM__x48FsBkLXY1lHws4HproMQ_0[3].name = ":state"; TM__x48FsBkLXY1lHws4HproMQ_6_5[1] = &TM__x48FsBkLXY1lHws4HproMQ_0[4]; TM__x48FsBkLXY1lHws4HproMQ_0[4].kind = 1; TM__x48FsBkLXY1lHws4HproMQ_0[4].offset = offsetof(tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q, a1); TM__x48FsBkLXY1lHws4HproMQ_0[4].typ = (&NTI__6hKTrKjmVArOez9a5TNLgDw_); TM__x48FsBkLXY1lHws4HproMQ_0[4].name = "a1"; TM__x48FsBkLXY1lHws4HproMQ_6_5[2] = &TM__x48FsBkLXY1lHws4HproMQ_0[5]; TM__x48FsBkLXY1lHws4HproMQ_0[5].kind = 1; TM__x48FsBkLXY1lHws4HproMQ_0[5].offset = offsetof(tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q, retFuture2); TM__x48FsBkLXY1lHws4HproMQ_0[5].typ = (&NTI__1BVB8KsR7FHwZjvXsDA9cEQ_); TM__x48FsBkLXY1lHws4HproMQ_0[5].name = "retFuture2"; TM__x48FsBkLXY1lHws4HproMQ_6_5[3] = &TM__x48FsBkLXY1lHws4HproMQ_0[6]; NTI__i2b9cGj0tjqcMqlPrj7tjLQ_.size = sizeof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A); NTI__i2b9cGj0tjqcMqlPrj7tjLQ_.kind = 18; NTI__i2b9cGj0tjqcMqlPrj7tjLQ_.base = 0; NTI__i2b9cGj0tjqcMqlPrj7tjLQ_.name = "tuple of (pointer, ref object)"; NTI__i2b9cGj0tjqcMqlPrj7tjLQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__i2b9cGj0tjqcMqlPrj7tjLQ_; TM__x48FsBkLXY1lHws4HproMQ_7_2[0] = &TM__x48FsBkLXY1lHws4HproMQ_0[8]; TM__x48FsBkLXY1lHws4HproMQ_0[8].kind = 1; TM__x48FsBkLXY1lHws4HproMQ_0[8].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field0); TM__x48FsBkLXY1lHws4HproMQ_0[8].typ = (&NTI__vr5DoT1jILTGdRlYv1OYpw_); TM__x48FsBkLXY1lHws4HproMQ_0[8].name = "Field0"; TM__x48FsBkLXY1lHws4HproMQ_7_2[1] = &TM__x48FsBkLXY1lHws4HproMQ_0[9]; TM__x48FsBkLXY1lHws4HproMQ_0[9].kind = 1; TM__x48FsBkLXY1lHws4HproMQ_0[9].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field1); TM__x48FsBkLXY1lHws4HproMQ_0[9].typ = (&NTI__HsJiUUcO9cHBdUCi0HwkSTA_); TM__x48FsBkLXY1lHws4HproMQ_0[9].name = "Field1"; TM__x48FsBkLXY1lHws4HproMQ_0[7].len = 2; TM__x48FsBkLXY1lHws4HproMQ_0[7].kind = 2; TM__x48FsBkLXY1lHws4HproMQ_0[7].sons = &TM__x48FsBkLXY1lHws4HproMQ_7_2[0]; NTI__i2b9cGj0tjqcMqlPrj7tjLQ_.node = &TM__x48FsBkLXY1lHws4HproMQ_0[7]; TM__x48FsBkLXY1lHws4HproMQ_0[6].kind = 1; TM__x48FsBkLXY1lHws4HproMQ_0[6].offset = offsetof(tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q, asyncProcIterVar3); TM__x48FsBkLXY1lHws4HproMQ_0[6].typ = (&NTI__i2b9cGj0tjqcMqlPrj7tjLQ_); TM__x48FsBkLXY1lHws4HproMQ_0[6].name = "asyncProcIterVar3"; TM__x48FsBkLXY1lHws4HproMQ_6_5[4] = &TM__x48FsBkLXY1lHws4HproMQ_0[10]; TM__x48FsBkLXY1lHws4HproMQ_0[10].kind = 1; TM__x48FsBkLXY1lHws4HproMQ_0[10].offset = offsetof(tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q, retFutUnownX60gensym4282684_); TM__x48FsBkLXY1lHws4HproMQ_0[10].typ = (&NTI__1BVB8KsR7FHwZjvXsDA9cEQ_); TM__x48FsBkLXY1lHws4HproMQ_0[10].name = "retFutUnown`gensym4282684"; TM__x48FsBkLXY1lHws4HproMQ_0[2].len = 5; TM__x48FsBkLXY1lHws4HproMQ_0[2].kind = 2; TM__x48FsBkLXY1lHws4HproMQ_0[2].sons = &TM__x48FsBkLXY1lHws4HproMQ_6_5[0]; NTI__72yrJWF8o1o1fTGDdTPj3Q_.node = &TM__x48FsBkLXY1lHws4HproMQ_0[2]; NTI__pNRMmWMJUakOz2CYyAPOfQ_.size = sizeof(tyObject_Env_basicAsyncdotnim___72yrJWF8o1o1fTGDdTPj3Q*); NTI__pNRMmWMJUakOz2CYyAPOfQ_.kind = 22; NTI__pNRMmWMJUakOz2CYyAPOfQ_.base = (&NTI__72yrJWF8o1o1fTGDdTPj3Q_); NTI__pNRMmWMJUakOz2CYyAPOfQ_.name = "anon ref object from /home/ray/Nim/Nim-devel/basicAsync.nim(18," " 18)"; NTI__pNRMmWMJUakOz2CYyAPOfQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__pNRMmWMJUakOz2CYyAPOfQ_; NTI__pNRMmWMJUakOz2CYyAPOfQ_.marker = Marker_tyRef__pNRMmWMJUakOz2CYyAPOfQ; NTI__IrsddVqAAUxbtcvtoFHKeA_.size = sizeof(tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA); NTI__IrsddVqAAUxbtcvtoFHKeA_.kind = 17; NTI__IrsddVqAAUxbtcvtoFHKeA_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_); NTI__IrsddVqAAUxbtcvtoFHKeA_.name = "object"; NTI__IrsddVqAAUxbtcvtoFHKeA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__IrsddVqAAUxbtcvtoFHKeA_; TM__x48FsBkLXY1lHws4HproMQ_9_3[0] = &TM__x48FsBkLXY1lHws4HproMQ_0[12]; TM__x48FsBkLXY1lHws4HproMQ_0[12].kind = 1; TM__x48FsBkLXY1lHws4HproMQ_0[12].offset = offsetof(tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA, colonstate_); TM__x48FsBkLXY1lHws4HproMQ_0[12].typ = (&NTI__xHTZrq9aYs6boc9bCba0JbpQ_); TM__x48FsBkLXY1lHws4HproMQ_0[12].name = ":state"; TM__x48FsBkLXY1lHws4HproMQ_9_3[1] = &TM__x48FsBkLXY1lHws4HproMQ_0[13]; TM__x48FsBkLXY1lHws4HproMQ_0[13].kind = 1; TM__x48FsBkLXY1lHws4HproMQ_0[13].offset = offsetof(tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA, result1); TM__x48FsBkLXY1lHws4HproMQ_0[13].typ = (&NTI__6hKTrKjmVArOez9a5TNLgDw_); TM__x48FsBkLXY1lHws4HproMQ_0[13].name = "result1"; TM__x48FsBkLXY1lHws4HproMQ_9_3[2] = &TM__x48FsBkLXY1lHws4HproMQ_0[14]; TM__x48FsBkLXY1lHws4HproMQ_0[14].kind = 1; TM__x48FsBkLXY1lHws4HproMQ_0[14].offset = offsetof(tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA, colonup_); TM__x48FsBkLXY1lHws4HproMQ_0[14].typ = (&NTI__pNRMmWMJUakOz2CYyAPOfQ_); TM__x48FsBkLXY1lHws4HproMQ_0[14].name = ":up"; TM__x48FsBkLXY1lHws4HproMQ_0[11].len = 3; TM__x48FsBkLXY1lHws4HproMQ_0[11].kind = 2; TM__x48FsBkLXY1lHws4HproMQ_0[11].sons = &TM__x48FsBkLXY1lHws4HproMQ_9_3[0]; NTI__IrsddVqAAUxbtcvtoFHKeA_.node = &TM__x48FsBkLXY1lHws4HproMQ_0[11]; NTI__NFj9arwRX6hzO3wC3P6hQUA_.size = sizeof(tyObject_Env_asyncmacrodotnim___IrsddVqAAUxbtcvtoFHKeA*); NTI__NFj9arwRX6hzO3wC3P6hQUA_.kind = 22; NTI__NFj9arwRX6hzO3wC3P6hQUA_.base = (&NTI__IrsddVqAAUxbtcvtoFHKeA_); NTI__NFj9arwRX6hzO3wC3P6hQUA_.name = "anon ref object from /home/ray/Nim/Nim-devel/lib/pure/asyncmacr" "o.nim(282, 31)"; NTI__NFj9arwRX6hzO3wC3P6hQUA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__NFj9arwRX6hzO3wC3P6hQUA_; NTI__NFj9arwRX6hzO3wC3P6hQUA_.marker = Marker_tyRef__NFj9arwRX6hzO3wC3P6hQUA; }