nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.59k stars 1.47k forks source link

`std/options` don’t consider closure iterators to be pointer types #22932

Closed SirNickolas closed 1 year ago

SirNickolas commented 1 year ago

Description

https://github.com/nim-lang/Nim/blob/4d11d0619d11d8aecdaff998981efcd054de9760/lib/pure/options.nim#L83-L88

We see proc here but not iterator. I’m suspicious about such asymmetry.

import std/options

var it = iterator: int = discard
assert it.option.isSome # Passes.
it = nil
assert it.option.isNone # Fails; equivalent to `it.some.isNone`.

Nim Version

Nim Compiler Version 2.0.0 [Linux: amd64] Compiled at 2023-08-01 Copyright (c) 2006-2023 by Andreas Rumpf

git hash: a488067a4130f029000be4550a0fb1b39e0e9e7c active boot switches: -d:release

Current Output

Error: unhandled exception: /home/nickolas/c/test/a.nim(6, 1) `it.option.isNone`  [AssertionDefect]

Expected Output

No response

Possible Solution

Append | iterator to the definition of SomePointer.

Additional Information

No response

ringabout commented 1 year ago

!nim c

import std/options

var it = iterator: int = discard
assert it.option.isSome # Passes.
it = nil
assert it.option.isNone 
github-actions[bot] commented 1 year ago
:penguin: Linux bisect by @ringabout (member)
devel :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:nimDebug -d:nimDebugDlOpen -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --lineTrace:off --nimcache:/home/runner/work/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim /home/runner/work/Nim/Nim/temp.nim temp /home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-#devel/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/Nim/Nim/temp.nim(5, 1) `it.option.isNone` [AssertionDefect] Error: execution of an external program failed: '/home/runner/work/Nim/Nim/temp' assertions.nim(34) raiseAssert Error: unhandled exception: errGenerated [AssertionDefect] ```

IR

Compiled filesize 99.01 Kb (101,384 bytes) ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #include #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) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg; typedef struct tyObject_Option__nWODiUNT1diK0igLExUgzw tyObject_Option__nWODiUNT1diK0igLExUgzw; typedef struct RootObj RootObj; typedef struct TNimTypeV2 TNimTypeV2; typedef struct tyObject_RefHeader__YmUax3FsG7Gnj3DF0PcAlw tyObject_RefHeader__YmUax3FsG7Gnj3DF0PcAlw; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; typedef struct { N_NIMCALL_PTR(NI, ClP_0) (void* ClE_0); void* ClE_0; } tyProc__65OQHx69b9cRNDigf1zMbXbA; struct tyObject_Option__nWODiUNT1diK0igLExUgzw { tyProc__65OQHx69b9cRNDigf1zMbXbA val; NIM_BOOL has; }; struct TNimTypeV2 { void* destructor; NI size; NI16 align; NI16 depth; NU32* display; void* traceImpl; void* typeInfoV1; NI flags; }; struct RootObj { TNimTypeV2* m_type; }; struct tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg { RootObj Sup; NI colonstate_; }; struct tyObject_RefHeader__YmUax3FsG7Gnj3DF0PcAlw { NI rc; NI rootIdx; }; struct NimStrPayload { NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 { NI len; NimStrPayload* p; }; static N_INLINE(void, nimZeroMem)(void* p_p0, NI size_p1); static N_INLINE(void, nimSetMem__systemZmemory_u7)(void* a_p0, int v_p1, NI size_p2); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void*, nimNewObj)(NI size_p0, NI alignment_p1); N_LIB_PRIVATE N_CLOSURE(NI, colonanonymous___temp_u2)(void* ClE_0); static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4661)(void); static N_INLINE(void, popFrame)(void); static N_INLINE(void, nimMarkCyclic)(void* p_p0); static N_INLINE(NIM_BOOL, isSome__temp_u50)(tyObject_Option__nWODiUNT1diK0igLExUgzw self_p0); static N_INLINE(void, option__temp_u5)(tyProc__65OQHx69b9cRNDigf1zMbXbA val_p0, tyObject_Option__nWODiUNT1diK0igLExUgzw* Result); N_LIB_PRIVATE N_NIMCALL(void, eqsink___temp_u28)(tyProc__65OQHx69b9cRNDigf1zMbXbA* dest_p0, tyProc__65OQHx69b9cRNDigf1zMbXbA src_p1); static N_INLINE(NIM_BOOL, nimDecRefIsLastCyclicDyn)(void* p_p0); static N_INLINE(NI, minuspercent___system_u806)(NI x_p0, NI y_p1); N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void); N_LIB_PRIVATE N_NOINLINE(void, rememberCycle__system_u3471)(NIM_BOOL isDestroyAction_p0, tyObject_RefHeader__YmUax3FsG7Gnj3DF0PcAlw* s_p1, TNimTypeV2* desc_p2); N_LIB_PRIVATE N_NIMCALL(void, nimDestroyAndDispose)(void* p_p0); N_LIB_PRIVATE N_NIMCALL(void, eqdup___temp_u24)(tyProc__65OQHx69b9cRNDigf1zMbXbA src_p0, NIM_BOOL cyclic_p1, tyProc__65OQHx69b9cRNDigf1zMbXbA* Result); static N_INLINE(void, nimIncRefCyclic)(void* p_p0, NIM_BOOL cyclic_p1); N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__stdZassertions_u254)(NimStringV2 msg_p0); static N_INLINE(NIM_BOOL, isNone__temp_u67)(tyObject_Option__nWODiUNT1diK0igLExUgzw self_p0); N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___temp_u80)(tyObject_Option__nWODiUNT1diK0igLExUgzw* dest_p0); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___temp_u17)(tyProc__65OQHx69b9cRNDigf1zMbXbA* dest_p0); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); N_LIB_PRIVATE TNimTypeV2 NTIv2__79a2ITkgWvXcqEY3a5QVCJg_; static const struct { NI cap; NIM_CHAR data[60+1]; } TM__SRd76hP9cMfCzdUO857UhQQ_5 = { 60 | NIM_STRLIT_FLAG, "/home/runner/work/Nim/Nim/temp.nim(3, 1) `it.option.isSome` " }; static const NimStringV2 TM__SRd76hP9cMfCzdUO857UhQQ_6 = {60, (NimStrPayload*)&TM__SRd76hP9cMfCzdUO857UhQQ_5}; static NIM_CONST tyProc__65OQHx69b9cRNDigf1zMbXbA TM__SRd76hP9cMfCzdUO857UhQQ_7 = {NIM_NIL,NIM_NIL}; static const struct { NI cap; NIM_CHAR data[60+1]; } TM__SRd76hP9cMfCzdUO857UhQQ_8 = { 60 | NIM_STRLIT_FLAG, "/home/runner/work/Nim/Nim/temp.nim(5, 1) `it.option.isNone` " }; static const NimStringV2 TM__SRd76hP9cMfCzdUO857UhQQ_9 = {60, (NimStrPayload*)&TM__SRd76hP9cMfCzdUO857UhQQ_8}; N_LIB_PRIVATE tyProc__65OQHx69b9cRNDigf1zMbXbA it__temp_u4; extern NIM_THREADVAR NIM_BOOL nimInErrorMode__system_u4445; static NIM_CONST NU32 TM__SRd76hP9cMfCzdUO857UhQQ_2[2] = {3701606400, 3716697600}; N_LIB_PRIVATE TNimTypeV2 NTIv2__79a2ITkgWvXcqEY3a5QVCJg_ = {.destructor = (void*)NIM_NIL, .size = sizeof(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg), .align = (NI16) NIM_ALIGNOF(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg), .depth = 1, .display = TM__SRd76hP9cMfCzdUO857UhQQ_2, .traceImpl = (void*)NIM_NIL, .flags = 0}; extern NIM_THREADVAR TFrame* framePtr__system_u4048; static N_INLINE(void, nimSetMem__systemZmemory_u7)(void* a_p0, int v_p1, NI size_p2) { void* T1_; T1_ = (void*)0; T1_ = memset(a_p0, v_p1, ((size_t) (size_p2))); } static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (&nimInErrorMode__system_u4445); return result; } static N_INLINE(void, nimZeroMem)(void* p_p0, NI size_p1) { NIM_BOOL* nimErr_; {nimErr_ = nimErrorFlag(); nimSetMem__systemZmemory_u7(p_p0, ((int)0), size_p1); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; }BeforeRet_: ; } static N_INLINE(void, nimFrame)(TFrame* s_p0) { { if (!(framePtr__system_u4048 == ((TFrame*) NIM_NIL))) goto LA3_; (*s_p0).calldepth = ((NI16)0); } goto LA1_; LA3_: ; { (*s_p0).calldepth = (NI16)((*framePtr__system_u4048).calldepth + ((NI16)1)); } LA1_: ; (*s_p0).prev = framePtr__system_u4048; framePtr__system_u4048 = s_p0; { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; callDepthLimitReached__system_u4661(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_u4048 = (*framePtr__system_u4048).prev; } N_LIB_PRIVATE N_CLOSURE(NI, colonanonymous___temp_u2)(void* ClE_0) { NI result; tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* colonenvP_; nimfr_(":anonymous", "/home/runner/work/Nim/Nim/temp.nim"); { result = (NI)0; colonenvP_ = (tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*) ClE_0; while (1) { if (!1) goto LA1; { switch ((*colonenvP_).colonstate_) { case -1: goto BeforeRet_; case 0: goto STATE0; case 1: goto STATE1; } STATE0: ; (*colonenvP_).colonstate_ = ((NI)1); goto LA2; STATE1: ; (*colonenvP_).colonstate_ = ((NI)-1); goto LA2; } LA2: ; } LA1: ; }BeforeRet_: ; popFrame(); return result; } static N_INLINE(void, nimMarkCyclic)(void* p_p0) { nimfr_("nimMarkCyclic", "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/orc.nim"); popFrame(); } static N_INLINE(NIM_BOOL, isSome__temp_u50)(tyObject_Option__nWODiUNT1diK0igLExUgzw self_p0) { NIM_BOOL result; nimfr_("isSome", "/home/runner/.choosenim/toolchains/nim-#devel/lib/pure/options.nim"); result = self_p0.has; popFrame(); return result; } static N_INLINE(NI, minuspercent___system_u806)(NI x_p0, NI y_p1) { NI result; nimfr_("-%", "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/arithmetics.nim"); result = ((NI) ((NU)((NU64)(((NU) (x_p0))) - (NU64)(((NU) (y_p1)))))); popFrame(); return result; } static N_INLINE(NIM_BOOL, nimDecRefIsLastCyclicDyn)(void* p_p0) { NIM_BOOL result; NIM_BOOL* nimErr_; nimfr_("nimDecRefIsLastCyclicDyn", "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/orc.nim"); {nimErr_ = nimErrorFlag(); result = (NIM_BOOL)0; { tyObject_RefHeader__YmUax3FsG7Gnj3DF0PcAlw* cell; NI T5_; if (!!((p_p0 == NIM_NIL))) goto LA3_; T5_ = (NI)0; T5_ = minuspercent___system_u806(((NI) (ptrdiff_t) (p_p0)), ((NI)16)); cell = ((tyObject_RefHeader__YmUax3FsG7Gnj3DF0PcAlw*) (T5_)); { if (!((NI)((*cell).rc & ((NI)-16)) == ((NI)0))) goto LA8_; result = NIM_TRUE; } goto LA6_; LA8_: ; { NI TM__SRd76hP9cMfCzdUO857UhQQ_3; if (nimSubInt((*cell).rc, ((NI)16), &TM__SRd76hP9cMfCzdUO857UhQQ_3)) { raiseOverflow(); goto BeforeRet_; }; (*cell).rc = (NI)(TM__SRd76hP9cMfCzdUO857UhQQ_3); } LA6_: ; rememberCycle__system_u3471(result, cell, (*((TNimTypeV2**) (p_p0)))); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; }BeforeRet_: ; popFrame(); return result; } N_LIB_PRIVATE N_NIMCALL(void, eqsink___temp_u28)(tyProc__65OQHx69b9cRNDigf1zMbXbA* dest_p0, tyProc__65OQHx69b9cRNDigf1zMbXbA src_p1) { void* colontmp_; colontmp_ = (*dest_p0).ClE_0; (*dest_p0).ClE_0 = src_p1.ClE_0; (*dest_p0).ClP_0 = src_p1.ClP_0; { NIM_BOOL T3_; T3_ = (NIM_BOOL)0; T3_ = nimDecRefIsLastCyclicDyn(colontmp_); if (!T3_) goto LA4_; nimDestroyAndDispose(colontmp_); } LA4_: ; } static N_INLINE(void, option__temp_u5)(tyProc__65OQHx69b9cRNDigf1zMbXbA val_p0, tyObject_Option__nWODiUNT1diK0igLExUgzw* Result) { nimfr_("option", "/home/runner/.choosenim/toolchains/nim-#devel/lib/pure/options.nim"); nimZeroMem((void*)Result, sizeof(tyObject_Option__nWODiUNT1diK0igLExUgzw)); eqsink___temp_u28((&(*Result).val), val_p0); (*Result).has = NIM_TRUE; popFrame(); } static N_INLINE(void, nimIncRefCyclic)(void* p_p0, NIM_BOOL cyclic_p1) { tyObject_RefHeader__YmUax3FsG7Gnj3DF0PcAlw* h; NI T1_; NI TM__SRd76hP9cMfCzdUO857UhQQ_4; nimfr_("nimIncRefCyclic", "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/orc.nim"); { T1_ = (NI)0; T1_ = minuspercent___system_u806(((NI) (ptrdiff_t) (p_p0)), ((NI)16)); h = ((tyObject_RefHeader__YmUax3FsG7Gnj3DF0PcAlw*) (T1_)); if (nimAddInt((*h).rc, ((NI)16), &TM__SRd76hP9cMfCzdUO857UhQQ_4)) { raiseOverflow(); goto BeforeRet_; }; (*h).rc = (NI)(TM__SRd76hP9cMfCzdUO857UhQQ_4); }BeforeRet_: ; popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, eqdup___temp_u24)(tyProc__65OQHx69b9cRNDigf1zMbXbA src_p0, NIM_BOOL cyclic_p1, tyProc__65OQHx69b9cRNDigf1zMbXbA* Result) { void* colontmp_; nimZeroMem((void*)Result, sizeof(tyProc__65OQHx69b9cRNDigf1zMbXbA)); colontmp_ = (*Result).ClE_0; (*Result).ClE_0 = src_p0.ClE_0; (*Result).ClP_0 = src_p0.ClP_0; { if (!src_p0.ClE_0) goto LA3_; nimIncRefCyclic(src_p0.ClE_0, NIM_TRUE); } LA3_: ; } static N_INLINE(NIM_BOOL, isNone__temp_u67)(tyObject_Option__nWODiUNT1diK0igLExUgzw self_p0) { NIM_BOOL result; nimfr_("isNone", "/home/runner/.choosenim/toolchains/nim-#devel/lib/pure/options.nim"); result = !(self_p0.has); popFrame(); return result; } N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___temp_u17)(tyProc__65OQHx69b9cRNDigf1zMbXbA* dest_p0) { { NIM_BOOL T3_; T3_ = (NIM_BOOL)0; T3_ = nimDecRefIsLastCyclicDyn((*dest_p0).ClE_0); if (!T3_) goto LA4_; nimDestroyAndDispose((*dest_p0).ClE_0); } LA4_: ; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } 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_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* colonanonymous_; tyProc__65OQHx69b9cRNDigf1zMbXbA colontmpD_; tyObject_Option__nWODiUNT1diK0igLExUgzw colontmpD__2; tyProc__65OQHx69b9cRNDigf1zMbXbA colontmpD__3; tyObject_Option__nWODiUNT1diK0igLExUgzw colontmpD__4; tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* T1_; tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* blitTmp; tyProc__65OQHx69b9cRNDigf1zMbXbA T2_; NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/Nim/Nim/temp.nim"); nimErr_ = nimErrorFlag(); colonanonymous_ = NIM_NIL; nimZeroMem((void*)(&colontmpD_), sizeof(tyProc__65OQHx69b9cRNDigf1zMbXbA)); nimZeroMem((void*)(&colontmpD__2), sizeof(tyObject_Option__nWODiUNT1diK0igLExUgzw)); nimZeroMem((void*)(&colontmpD__3), sizeof(tyProc__65OQHx69b9cRNDigf1zMbXbA)); nimZeroMem((void*)(&colontmpD__4), sizeof(tyObject_Option__nWODiUNT1diK0igLExUgzw)); T1_ = NIM_NIL; T1_ = (tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*) nimNewObj(sizeof(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg), NIM_ALIGNOF(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg)); (*T1_).Sup.m_type = (&NTIv2__79a2ITkgWvXcqEY3a5QVCJg_); colonanonymous_ = T1_; blitTmp = colonanonymous_; nimMarkCyclic(colonanonymous_); nimZeroMem((void*)(&T2_), sizeof(tyProc__65OQHx69b9cRNDigf1zMbXbA)); T2_.ClP_0 = colonanonymous___temp_u2; T2_.ClE_0 = blitTmp; it__temp_u4.ClE_0 = T2_.ClE_0; it__temp_u4.ClP_0 = T2_.ClP_0; { NIM_BOOL T5_; eqdup___temp_u24(it__temp_u4, NIM_TRUE, (&colontmpD_)); option__temp_u5(colontmpD_, (&colontmpD__2)); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; T5_ = (NIM_BOOL)0; T5_ = isSome__temp_u50(colontmpD__2); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; if (!!(T5_)) goto LA6_; failedAssertImpl__stdZassertions_u254(TM__SRd76hP9cMfCzdUO857UhQQ_6); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA6_: ; eqsink___temp_u28((&it__temp_u4), TM__SRd76hP9cMfCzdUO857UhQQ_7); { NIM_BOOL T10_; eqdup___temp_u24(it__temp_u4, NIM_TRUE, (&colontmpD__3)); option__temp_u5(colontmpD__3, (&colontmpD__4)); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; T10_ = (NIM_BOOL)0; T10_ = isNone__temp_u67(colontmpD__4); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; if (!!(T10_)) goto LA11_; failedAssertImpl__stdZassertions_u254(TM__SRd76hP9cMfCzdUO857UhQQ_9); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA11_: ; eqdestroy___temp_u80((&colontmpD__4)); eqdestroy___temp_u80((&colontmpD__2)); eqdestroy___temp_u17((&it__temp_u4)); BeforeRet_: ; nimTestErrorFlag(); popFrame(); } } ```

Stats

  • Started 2023-11-14T01:35:44
  • Finished 2023-11-14T01:35:44
  • Duration

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("options") ) ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("it"), newEmptyNode(), nnkIteratorDef.newTree( newEmptyNode(), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("int") ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ), nnkCommand.newTree( newIdentNode("assert"), nnkDotExpr.newTree( nnkDotExpr.newTree( newIdentNode("it"), newIdentNode("option") ), newIdentNode("isSome") ) ), nnkAsgn.newTree( newIdentNode("it"), newNilLit() ), nnkCommand.newTree( newIdentNode("assert"), nnkDotExpr.newTree( nnkDotExpr.newTree( newIdentNode("it"), newIdentNode("option") ), newIdentNode("isNone") ) ) ) ```
stable :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:nimDebug -d:nimDebugDlOpen -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --lineTrace:off --nimcache:/home/runner/work/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim /home/runner/work/Nim/Nim/temp.nim temp /home/runner/.choosenim/toolchains/nim-2.0.0/lib/std/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-2.0.0/lib/std/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-2.0.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/Nim/Nim/temp.nim(5, 1) `it.option.isNone` [AssertionDefect] Error: execution of an external program failed: '/home/runner/work/Nim/Nim/temp' assertions.nim(34) raiseAssert Error: unhandled exception: options.nim(664, 5) `false` errGenerated [AssertionDefect] ```

IR

Compiled filesize 96.64 Kb (98,960 bytes) ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #include #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) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg; typedef struct tyObject_Option__SyoCutiORNPb4Cekw19bKyg tyObject_Option__SyoCutiORNPb4Cekw19bKyg; typedef struct RootObj RootObj; typedef struct TNimTypeV2 TNimTypeV2; typedef struct tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; typedef struct { N_NIMCALL_PTR(NI, ClP_0) (void* ClE_0); void* ClE_0; } tyProc__65OQHx69b9cRNDigf1zMbXbA; struct tyObject_Option__SyoCutiORNPb4Cekw19bKyg { tyProc__65OQHx69b9cRNDigf1zMbXbA val; NIM_BOOL has; }; struct TNimTypeV2 { void* destructor; NI size; NI16 align; NI16 depth; NU32* display; void* traceImpl; void* typeInfoV1; NI flags; }; struct RootObj { TNimTypeV2* m_type; }; struct tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg { RootObj Sup; NI colonstate_; }; struct tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag { NI rc; NI rootIdx; }; struct NimStrPayload { NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 { NI len; NimStrPayload* p; }; static N_INLINE(void, nimZeroMem)(void* p_p0, NI size_p1); static N_INLINE(void, nimSetMem__systemZmemory_u7)(void* a_p0, int v_p1, NI size_p2); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void*, nimNewObj)(NI size_p0, NI alignment_p1); N_LIB_PRIVATE N_CLOSURE(NI, colonanonymous___temp_u2)(void* ClE_0); static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4607)(void); static N_INLINE(void, popFrame)(void); static N_INLINE(void, nimMarkCyclic)(void* p_p0); static N_INLINE(NIM_BOOL, isSome__temp_u50)(tyObject_Option__SyoCutiORNPb4Cekw19bKyg self_p0); static N_INLINE(void, option__temp_u5)(tyProc__65OQHx69b9cRNDigf1zMbXbA val_p0, tyObject_Option__SyoCutiORNPb4Cekw19bKyg* Result); N_LIB_PRIVATE N_NIMCALL(void, eqsink___temp_u28)(tyProc__65OQHx69b9cRNDigf1zMbXbA* dest_p0, tyProc__65OQHx69b9cRNDigf1zMbXbA src_p1); static N_INLINE(NIM_BOOL, nimDecRefIsLastCyclicDyn)(void* p_p0); static N_INLINE(NI, minuspercent___system_u810)(NI x_p0, NI y_p1); N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void); N_LIB_PRIVATE N_NOINLINE(void, rememberCycle__system_u3403)(NIM_BOOL isDestroyAction_p0, tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag* s_p1, TNimTypeV2* desc_p2); N_LIB_PRIVATE N_NIMCALL(void, nimDestroyAndDispose)(void* p_p0); N_LIB_PRIVATE N_NIMCALL(void, eqdup___temp_u24)(tyProc__65OQHx69b9cRNDigf1zMbXbA src_p0, NIM_BOOL cyclic_p1, tyProc__65OQHx69b9cRNDigf1zMbXbA* Result); static N_INLINE(void, nimIncRefCyclic)(void* p_p0, NIM_BOOL cyclic_p1); N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__stdZassertions_u310)(NimStringV2 msg_p0); static N_INLINE(NIM_BOOL, isNone__temp_u67)(tyObject_Option__SyoCutiORNPb4Cekw19bKyg self_p0); N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___temp_u80)(tyObject_Option__SyoCutiORNPb4Cekw19bKyg* dest_p0); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___temp_u17)(tyProc__65OQHx69b9cRNDigf1zMbXbA* dest_p0); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus2dot0dot0atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); N_LIB_PRIVATE TNimTypeV2 NTIv2__79a2ITkgWvXcqEY3a5QVCJg_; static const struct { NI cap; NIM_CHAR data[60+1]; } TM__SRd76hP9cMfCzdUO857UhQQ_5 = { 60 | NIM_STRLIT_FLAG, "/home/runner/work/Nim/Nim/temp.nim(3, 1) `it.option.isSome` " }; static const NimStringV2 TM__SRd76hP9cMfCzdUO857UhQQ_6 = {60, (NimStrPayload*)&TM__SRd76hP9cMfCzdUO857UhQQ_5}; static NIM_CONST tyProc__65OQHx69b9cRNDigf1zMbXbA TM__SRd76hP9cMfCzdUO857UhQQ_7 = {NIM_NIL,NIM_NIL}; static const struct { NI cap; NIM_CHAR data[60+1]; } TM__SRd76hP9cMfCzdUO857UhQQ_8 = { 60 | NIM_STRLIT_FLAG, "/home/runner/work/Nim/Nim/temp.nim(5, 1) `it.option.isNone` " }; static const NimStringV2 TM__SRd76hP9cMfCzdUO857UhQQ_9 = {60, (NimStrPayload*)&TM__SRd76hP9cMfCzdUO857UhQQ_8}; N_LIB_PRIVATE tyProc__65OQHx69b9cRNDigf1zMbXbA it__temp_u4; extern NIM_THREADVAR NIM_BOOL nimInErrorMode__system_u4389; static NIM_CONST NU32 TM__SRd76hP9cMfCzdUO857UhQQ_2[2] = {3701606400, 3716697600}; N_LIB_PRIVATE TNimTypeV2 NTIv2__79a2ITkgWvXcqEY3a5QVCJg_ = {.destructor = (void*)NIM_NIL, .size = sizeof(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg), .align = (NI16) NIM_ALIGNOF(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg), .depth = 1, .display = TM__SRd76hP9cMfCzdUO857UhQQ_2, .traceImpl = (void*)NIM_NIL, .flags = 0}; extern NIM_THREADVAR TFrame* framePtr__system_u4006; static N_INLINE(void, nimSetMem__systemZmemory_u7)(void* a_p0, int v_p1, NI size_p2) { void* T1_; T1_ = (void*)0; T1_ = memset(a_p0, v_p1, ((size_t) (size_p2))); } static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; result = (&nimInErrorMode__system_u4389); return result; } static N_INLINE(void, nimZeroMem)(void* p_p0, NI size_p1) { NIM_BOOL* nimErr_; {nimErr_ = nimErrorFlag(); nimSetMem__systemZmemory_u7(p_p0, ((int)0), size_p1); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; }BeforeRet_: ; } static N_INLINE(void, nimFrame)(TFrame* s_p0) { { if (!(framePtr__system_u4006 == ((TFrame*) NIM_NIL))) goto LA3_; (*s_p0).calldepth = ((NI16)0); } goto LA1_; LA3_: ; { (*s_p0).calldepth = (NI16)((*framePtr__system_u4006).calldepth + ((NI16)1)); } LA1_: ; (*s_p0).prev = framePtr__system_u4006; framePtr__system_u4006 = s_p0; { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; callDepthLimitReached__system_u4607(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_u4006 = (*framePtr__system_u4006).prev; } N_LIB_PRIVATE N_CLOSURE(NI, colonanonymous___temp_u2)(void* ClE_0) { NI result; tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* colonenvP_; nimfr_(":anonymous", "/home/runner/work/Nim/Nim/temp.nim"); { result = (NI)0; colonenvP_ = (tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*) ClE_0; while (1) { if (!1) goto LA1; { switch ((*colonenvP_).colonstate_) { case -1: goto BeforeRet_; case 0: goto STATE0; case 1: goto STATE1; } STATE0: ; (*colonenvP_).colonstate_ = ((NI)1); goto LA2; STATE1: ; (*colonenvP_).colonstate_ = ((NI)-1); goto LA2; } LA2: ; } LA1: ; }BeforeRet_: ; popFrame(); return result; } static N_INLINE(void, nimMarkCyclic)(void* p_p0) { nimfr_("nimMarkCyclic", "/home/runner/.choosenim/toolchains/nim-2.0.0/lib/system/orc.nim"); popFrame(); } static N_INLINE(NIM_BOOL, isSome__temp_u50)(tyObject_Option__SyoCutiORNPb4Cekw19bKyg self_p0) { NIM_BOOL result; nimfr_("isSome", "/home/runner/.choosenim/toolchains/nim-2.0.0/lib/pure/options.nim"); result = (NIM_BOOL)0; result = self_p0.has; popFrame(); return result; } static N_INLINE(NI, minuspercent___system_u810)(NI x_p0, NI y_p1) { NI result; nimfr_("-%", "/home/runner/.choosenim/toolchains/nim-2.0.0/lib/system/arithmetics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x_p0))) - (NU64)(((NU) (y_p1)))))); popFrame(); return result; } static N_INLINE(NIM_BOOL, nimDecRefIsLastCyclicDyn)(void* p_p0) { NIM_BOOL result; NIM_BOOL* nimErr_; nimfr_("nimDecRefIsLastCyclicDyn", "/home/runner/.choosenim/toolchains/nim-2.0.0/lib/system/orc.nim"); {nimErr_ = nimErrorFlag(); result = (NIM_BOOL)0; { tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag* cell; NI T5_; if (!!((p_p0 == NIM_NIL))) goto LA3_; T5_ = (NI)0; T5_ = minuspercent___system_u810(((NI) (ptrdiff_t) (p_p0)), ((NI)16)); cell = ((tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag*) (T5_)); { if (!((NI)((*cell).rc & ((NI)-16)) == ((NI)0))) goto LA8_; result = NIM_TRUE; } goto LA6_; LA8_: ; { NI TM__SRd76hP9cMfCzdUO857UhQQ_3; if (nimSubInt((*cell).rc, ((NI)16), &TM__SRd76hP9cMfCzdUO857UhQQ_3)) { raiseOverflow(); goto BeforeRet_; }; (*cell).rc = (NI)(TM__SRd76hP9cMfCzdUO857UhQQ_3); } LA6_: ; rememberCycle__system_u3403(result, cell, (*((TNimTypeV2**) (p_p0)))); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; }BeforeRet_: ; popFrame(); return result; } N_LIB_PRIVATE N_NIMCALL(void, eqsink___temp_u28)(tyProc__65OQHx69b9cRNDigf1zMbXbA* dest_p0, tyProc__65OQHx69b9cRNDigf1zMbXbA src_p1) { void* colontmp_; colontmp_ = (*dest_p0).ClE_0; (*dest_p0).ClE_0 = src_p1.ClE_0; (*dest_p0).ClP_0 = src_p1.ClP_0; { NIM_BOOL T3_; T3_ = (NIM_BOOL)0; T3_ = nimDecRefIsLastCyclicDyn(colontmp_); if (!T3_) goto LA4_; nimDestroyAndDispose(colontmp_); } LA4_: ; } static N_INLINE(void, option__temp_u5)(tyProc__65OQHx69b9cRNDigf1zMbXbA val_p0, tyObject_Option__SyoCutiORNPb4Cekw19bKyg* Result) { nimfr_("option", "/home/runner/.choosenim/toolchains/nim-2.0.0/lib/pure/options.nim"); nimZeroMem((void*)Result, sizeof(tyObject_Option__SyoCutiORNPb4Cekw19bKyg)); eqsink___temp_u28((&(*Result).val), val_p0); (*Result).has = NIM_TRUE; popFrame(); } static N_INLINE(void, nimIncRefCyclic)(void* p_p0, NIM_BOOL cyclic_p1) { tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag* h; NI T1_; NI TM__SRd76hP9cMfCzdUO857UhQQ_4; nimfr_("nimIncRefCyclic", "/home/runner/.choosenim/toolchains/nim-2.0.0/lib/system/orc.nim"); { T1_ = (NI)0; T1_ = minuspercent___system_u810(((NI) (ptrdiff_t) (p_p0)), ((NI)16)); h = ((tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag*) (T1_)); if (nimAddInt((*h).rc, ((NI)16), &TM__SRd76hP9cMfCzdUO857UhQQ_4)) { raiseOverflow(); goto BeforeRet_; }; (*h).rc = (NI)(TM__SRd76hP9cMfCzdUO857UhQQ_4); }BeforeRet_: ; popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, eqdup___temp_u24)(tyProc__65OQHx69b9cRNDigf1zMbXbA src_p0, NIM_BOOL cyclic_p1, tyProc__65OQHx69b9cRNDigf1zMbXbA* Result) { void* colontmp_; nimZeroMem((void*)Result, sizeof(tyProc__65OQHx69b9cRNDigf1zMbXbA)); colontmp_ = (*Result).ClE_0; (*Result).ClE_0 = src_p0.ClE_0; (*Result).ClP_0 = src_p0.ClP_0; { if (!src_p0.ClE_0) goto LA3_; nimIncRefCyclic(src_p0.ClE_0, NIM_TRUE); } LA3_: ; } static N_INLINE(NIM_BOOL, isNone__temp_u67)(tyObject_Option__SyoCutiORNPb4Cekw19bKyg self_p0) { NIM_BOOL result; nimfr_("isNone", "/home/runner/.choosenim/toolchains/nim-2.0.0/lib/pure/options.nim"); result = (NIM_BOOL)0; result = !(self_p0.has); popFrame(); return result; } N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___temp_u17)(tyProc__65OQHx69b9cRNDigf1zMbXbA* dest_p0) { { NIM_BOOL T3_; T3_ = (NIM_BOOL)0; T3_ = nimDecRefIsLastCyclicDyn((*dest_p0).ClE_0); if (!T3_) goto LA4_; nimDestroyAndDispose((*dest_p0).ClE_0); } LA4_: ; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus2dot0dot0atslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus2dot0dot0atslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } 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_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* colonanonymous_; tyProc__65OQHx69b9cRNDigf1zMbXbA colontmpD_; tyObject_Option__SyoCutiORNPb4Cekw19bKyg colontmpD__2; tyProc__65OQHx69b9cRNDigf1zMbXbA colontmpD__3; tyObject_Option__SyoCutiORNPb4Cekw19bKyg colontmpD__4; tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* T1_; tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* blitTmp; tyProc__65OQHx69b9cRNDigf1zMbXbA T2_; NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/Nim/Nim/temp.nim"); nimErr_ = nimErrorFlag(); colonanonymous_ = NIM_NIL; nimZeroMem((void*)(&colontmpD_), sizeof(tyProc__65OQHx69b9cRNDigf1zMbXbA)); nimZeroMem((void*)(&colontmpD__2), sizeof(tyObject_Option__SyoCutiORNPb4Cekw19bKyg)); nimZeroMem((void*)(&colontmpD__3), sizeof(tyProc__65OQHx69b9cRNDigf1zMbXbA)); nimZeroMem((void*)(&colontmpD__4), sizeof(tyObject_Option__SyoCutiORNPb4Cekw19bKyg)); T1_ = NIM_NIL; T1_ = (tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*) nimNewObj(sizeof(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg), NIM_ALIGNOF(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg)); (*T1_).Sup.m_type = (&NTIv2__79a2ITkgWvXcqEY3a5QVCJg_); colonanonymous_ = T1_; blitTmp = colonanonymous_; nimMarkCyclic(colonanonymous_); nimZeroMem((void*)(&T2_), sizeof(tyProc__65OQHx69b9cRNDigf1zMbXbA)); T2_.ClP_0 = colonanonymous___temp_u2; T2_.ClE_0 = blitTmp; it__temp_u4.ClE_0 = T2_.ClE_0; it__temp_u4.ClP_0 = T2_.ClP_0; { NIM_BOOL T5_; eqdup___temp_u24(it__temp_u4, NIM_TRUE, (&colontmpD_)); option__temp_u5(colontmpD_, (&colontmpD__2)); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; T5_ = (NIM_BOOL)0; T5_ = isSome__temp_u50(colontmpD__2); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; if (!!(T5_)) goto LA6_; failedAssertImpl__stdZassertions_u310(TM__SRd76hP9cMfCzdUO857UhQQ_6); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA6_: ; eqsink___temp_u28((&it__temp_u4), TM__SRd76hP9cMfCzdUO857UhQQ_7); { NIM_BOOL T10_; eqdup___temp_u24(it__temp_u4, NIM_TRUE, (&colontmpD__3)); option__temp_u5(colontmpD__3, (&colontmpD__4)); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; T10_ = (NIM_BOOL)0; T10_ = isNone__temp_u67(colontmpD__4); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; if (!!(T10_)) goto LA11_; failedAssertImpl__stdZassertions_u310(TM__SRd76hP9cMfCzdUO857UhQQ_9); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA11_: ; eqdestroy___temp_u80((&colontmpD__4)); eqdestroy___temp_u80((&colontmpD__2)); eqdestroy___temp_u17((&it__temp_u4)); BeforeRet_: ; nimTestErrorFlag(); popFrame(); } } ```

Stats

  • Started 2023-11-14T01:35:45
  • Finished 2023-11-14T01:35:45
  • Duration

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("options") ) ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("it"), newEmptyNode(), nnkIteratorDef.newTree( newEmptyNode(), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("int") ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ), nnkCommand.newTree( newIdentNode("assert"), nnkDotExpr.newTree( nnkDotExpr.newTree( newIdentNode("it"), newIdentNode("option") ), newIdentNode("isSome") ) ), nnkAsgn.newTree( newIdentNode("it"), newNilLit() ), nnkCommand.newTree( newIdentNode("assert"), nnkDotExpr.newTree( nnkDotExpr.newTree( newIdentNode("it"), newIdentNode("option") ), newIdentNode("isNone") ) ) ) ```
2.0.0 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:nimDebug -d:nimDebugDlOpen -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --lineTrace:off --nimcache:/home/runner/work/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim /home/runner/work/Nim/Nim/temp.nim temp /home/runner/.choosenim/toolchains/nim-2.0.0/lib/std/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-2.0.0/lib/std/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-2.0.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/Nim/Nim/temp.nim(5, 1) `it.option.isNone` [AssertionDefect] Error: execution of an external program failed: '/home/runner/work/Nim/Nim/temp' assertions.nim(34) raiseAssert Error: unhandled exception: options.nim(664, 5) `false` errGenerated [AssertionDefect] ```

IR

Compiled filesize 96.64 Kb (98,960 bytes) ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #include #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) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg; typedef struct tyObject_Option__SyoCutiORNPb4Cekw19bKyg tyObject_Option__SyoCutiORNPb4Cekw19bKyg; typedef struct RootObj RootObj; typedef struct TNimTypeV2 TNimTypeV2; typedef struct tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; typedef struct { N_NIMCALL_PTR(NI, ClP_0) (void* ClE_0); void* ClE_0; } tyProc__65OQHx69b9cRNDigf1zMbXbA; struct tyObject_Option__SyoCutiORNPb4Cekw19bKyg { tyProc__65OQHx69b9cRNDigf1zMbXbA val; NIM_BOOL has; }; struct TNimTypeV2 { void* destructor; NI size; NI16 align; NI16 depth; NU32* display; void* traceImpl; void* typeInfoV1; NI flags; }; struct RootObj { TNimTypeV2* m_type; }; struct tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg { RootObj Sup; NI colonstate_; }; struct tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag { NI rc; NI rootIdx; }; struct NimStrPayload { NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 { NI len; NimStrPayload* p; }; static N_INLINE(void, nimZeroMem)(void* p_p0, NI size_p1); static N_INLINE(void, nimSetMem__systemZmemory_u7)(void* a_p0, int v_p1, NI size_p2); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void*, nimNewObj)(NI size_p0, NI alignment_p1); N_LIB_PRIVATE N_CLOSURE(NI, colonanonymous___temp_u2)(void* ClE_0); static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4607)(void); static N_INLINE(void, popFrame)(void); static N_INLINE(void, nimMarkCyclic)(void* p_p0); static N_INLINE(NIM_BOOL, isSome__temp_u50)(tyObject_Option__SyoCutiORNPb4Cekw19bKyg self_p0); static N_INLINE(void, option__temp_u5)(tyProc__65OQHx69b9cRNDigf1zMbXbA val_p0, tyObject_Option__SyoCutiORNPb4Cekw19bKyg* Result); N_LIB_PRIVATE N_NIMCALL(void, eqsink___temp_u28)(tyProc__65OQHx69b9cRNDigf1zMbXbA* dest_p0, tyProc__65OQHx69b9cRNDigf1zMbXbA src_p1); static N_INLINE(NIM_BOOL, nimDecRefIsLastCyclicDyn)(void* p_p0); static N_INLINE(NI, minuspercent___system_u810)(NI x_p0, NI y_p1); N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void); N_LIB_PRIVATE N_NOINLINE(void, rememberCycle__system_u3403)(NIM_BOOL isDestroyAction_p0, tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag* s_p1, TNimTypeV2* desc_p2); N_LIB_PRIVATE N_NIMCALL(void, nimDestroyAndDispose)(void* p_p0); N_LIB_PRIVATE N_NIMCALL(void, eqdup___temp_u24)(tyProc__65OQHx69b9cRNDigf1zMbXbA src_p0, NIM_BOOL cyclic_p1, tyProc__65OQHx69b9cRNDigf1zMbXbA* Result); static N_INLINE(void, nimIncRefCyclic)(void* p_p0, NIM_BOOL cyclic_p1); N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__stdZassertions_u310)(NimStringV2 msg_p0); static N_INLINE(NIM_BOOL, isNone__temp_u67)(tyObject_Option__SyoCutiORNPb4Cekw19bKyg self_p0); N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___temp_u80)(tyObject_Option__SyoCutiORNPb4Cekw19bKyg* dest_p0); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___temp_u17)(tyProc__65OQHx69b9cRNDigf1zMbXbA* dest_p0); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus2dot0dot0atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); N_LIB_PRIVATE TNimTypeV2 NTIv2__79a2ITkgWvXcqEY3a5QVCJg_; static const struct { NI cap; NIM_CHAR data[60+1]; } TM__SRd76hP9cMfCzdUO857UhQQ_5 = { 60 | NIM_STRLIT_FLAG, "/home/runner/work/Nim/Nim/temp.nim(3, 1) `it.option.isSome` " }; static const NimStringV2 TM__SRd76hP9cMfCzdUO857UhQQ_6 = {60, (NimStrPayload*)&TM__SRd76hP9cMfCzdUO857UhQQ_5}; static NIM_CONST tyProc__65OQHx69b9cRNDigf1zMbXbA TM__SRd76hP9cMfCzdUO857UhQQ_7 = {NIM_NIL,NIM_NIL}; static const struct { NI cap; NIM_CHAR data[60+1]; } TM__SRd76hP9cMfCzdUO857UhQQ_8 = { 60 | NIM_STRLIT_FLAG, "/home/runner/work/Nim/Nim/temp.nim(5, 1) `it.option.isNone` " }; static const NimStringV2 TM__SRd76hP9cMfCzdUO857UhQQ_9 = {60, (NimStrPayload*)&TM__SRd76hP9cMfCzdUO857UhQQ_8}; N_LIB_PRIVATE tyProc__65OQHx69b9cRNDigf1zMbXbA it__temp_u4; extern NIM_THREADVAR NIM_BOOL nimInErrorMode__system_u4389; static NIM_CONST NU32 TM__SRd76hP9cMfCzdUO857UhQQ_2[2] = {3701606400, 3716697600}; N_LIB_PRIVATE TNimTypeV2 NTIv2__79a2ITkgWvXcqEY3a5QVCJg_ = {.destructor = (void*)NIM_NIL, .size = sizeof(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg), .align = (NI16) NIM_ALIGNOF(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg), .depth = 1, .display = TM__SRd76hP9cMfCzdUO857UhQQ_2, .traceImpl = (void*)NIM_NIL, .flags = 0}; extern NIM_THREADVAR TFrame* framePtr__system_u4006; static N_INLINE(void, nimSetMem__systemZmemory_u7)(void* a_p0, int v_p1, NI size_p2) { void* T1_; T1_ = (void*)0; T1_ = memset(a_p0, v_p1, ((size_t) (size_p2))); } static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; result = (&nimInErrorMode__system_u4389); return result; } static N_INLINE(void, nimZeroMem)(void* p_p0, NI size_p1) { NIM_BOOL* nimErr_; {nimErr_ = nimErrorFlag(); nimSetMem__systemZmemory_u7(p_p0, ((int)0), size_p1); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; }BeforeRet_: ; } static N_INLINE(void, nimFrame)(TFrame* s_p0) { { if (!(framePtr__system_u4006 == ((TFrame*) NIM_NIL))) goto LA3_; (*s_p0).calldepth = ((NI16)0); } goto LA1_; LA3_: ; { (*s_p0).calldepth = (NI16)((*framePtr__system_u4006).calldepth + ((NI16)1)); } LA1_: ; (*s_p0).prev = framePtr__system_u4006; framePtr__system_u4006 = s_p0; { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; callDepthLimitReached__system_u4607(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_u4006 = (*framePtr__system_u4006).prev; } N_LIB_PRIVATE N_CLOSURE(NI, colonanonymous___temp_u2)(void* ClE_0) { NI result; tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* colonenvP_; nimfr_(":anonymous", "/home/runner/work/Nim/Nim/temp.nim"); { result = (NI)0; colonenvP_ = (tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*) ClE_0; while (1) { if (!1) goto LA1; { switch ((*colonenvP_).colonstate_) { case -1: goto BeforeRet_; case 0: goto STATE0; case 1: goto STATE1; } STATE0: ; (*colonenvP_).colonstate_ = ((NI)1); goto LA2; STATE1: ; (*colonenvP_).colonstate_ = ((NI)-1); goto LA2; } LA2: ; } LA1: ; }BeforeRet_: ; popFrame(); return result; } static N_INLINE(void, nimMarkCyclic)(void* p_p0) { nimfr_("nimMarkCyclic", "/home/runner/.choosenim/toolchains/nim-2.0.0/lib/system/orc.nim"); popFrame(); } static N_INLINE(NIM_BOOL, isSome__temp_u50)(tyObject_Option__SyoCutiORNPb4Cekw19bKyg self_p0) { NIM_BOOL result; nimfr_("isSome", "/home/runner/.choosenim/toolchains/nim-2.0.0/lib/pure/options.nim"); result = (NIM_BOOL)0; result = self_p0.has; popFrame(); return result; } static N_INLINE(NI, minuspercent___system_u810)(NI x_p0, NI y_p1) { NI result; nimfr_("-%", "/home/runner/.choosenim/toolchains/nim-2.0.0/lib/system/arithmetics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x_p0))) - (NU64)(((NU) (y_p1)))))); popFrame(); return result; } static N_INLINE(NIM_BOOL, nimDecRefIsLastCyclicDyn)(void* p_p0) { NIM_BOOL result; NIM_BOOL* nimErr_; nimfr_("nimDecRefIsLastCyclicDyn", "/home/runner/.choosenim/toolchains/nim-2.0.0/lib/system/orc.nim"); {nimErr_ = nimErrorFlag(); result = (NIM_BOOL)0; { tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag* cell; NI T5_; if (!!((p_p0 == NIM_NIL))) goto LA3_; T5_ = (NI)0; T5_ = minuspercent___system_u810(((NI) (ptrdiff_t) (p_p0)), ((NI)16)); cell = ((tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag*) (T5_)); { if (!((NI)((*cell).rc & ((NI)-16)) == ((NI)0))) goto LA8_; result = NIM_TRUE; } goto LA6_; LA8_: ; { NI TM__SRd76hP9cMfCzdUO857UhQQ_3; if (nimSubInt((*cell).rc, ((NI)16), &TM__SRd76hP9cMfCzdUO857UhQQ_3)) { raiseOverflow(); goto BeforeRet_; }; (*cell).rc = (NI)(TM__SRd76hP9cMfCzdUO857UhQQ_3); } LA6_: ; rememberCycle__system_u3403(result, cell, (*((TNimTypeV2**) (p_p0)))); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; }BeforeRet_: ; popFrame(); return result; } N_LIB_PRIVATE N_NIMCALL(void, eqsink___temp_u28)(tyProc__65OQHx69b9cRNDigf1zMbXbA* dest_p0, tyProc__65OQHx69b9cRNDigf1zMbXbA src_p1) { void* colontmp_; colontmp_ = (*dest_p0).ClE_0; (*dest_p0).ClE_0 = src_p1.ClE_0; (*dest_p0).ClP_0 = src_p1.ClP_0; { NIM_BOOL T3_; T3_ = (NIM_BOOL)0; T3_ = nimDecRefIsLastCyclicDyn(colontmp_); if (!T3_) goto LA4_; nimDestroyAndDispose(colontmp_); } LA4_: ; } static N_INLINE(void, option__temp_u5)(tyProc__65OQHx69b9cRNDigf1zMbXbA val_p0, tyObject_Option__SyoCutiORNPb4Cekw19bKyg* Result) { nimfr_("option", "/home/runner/.choosenim/toolchains/nim-2.0.0/lib/pure/options.nim"); nimZeroMem((void*)Result, sizeof(tyObject_Option__SyoCutiORNPb4Cekw19bKyg)); eqsink___temp_u28((&(*Result).val), val_p0); (*Result).has = NIM_TRUE; popFrame(); } static N_INLINE(void, nimIncRefCyclic)(void* p_p0, NIM_BOOL cyclic_p1) { tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag* h; NI T1_; NI TM__SRd76hP9cMfCzdUO857UhQQ_4; nimfr_("nimIncRefCyclic", "/home/runner/.choosenim/toolchains/nim-2.0.0/lib/system/orc.nim"); { T1_ = (NI)0; T1_ = minuspercent___system_u810(((NI) (ptrdiff_t) (p_p0)), ((NI)16)); h = ((tyObject_RefHeader__6F2b1ehFhXQfpzB3oYziag*) (T1_)); if (nimAddInt((*h).rc, ((NI)16), &TM__SRd76hP9cMfCzdUO857UhQQ_4)) { raiseOverflow(); goto BeforeRet_; }; (*h).rc = (NI)(TM__SRd76hP9cMfCzdUO857UhQQ_4); }BeforeRet_: ; popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, eqdup___temp_u24)(tyProc__65OQHx69b9cRNDigf1zMbXbA src_p0, NIM_BOOL cyclic_p1, tyProc__65OQHx69b9cRNDigf1zMbXbA* Result) { void* colontmp_; nimZeroMem((void*)Result, sizeof(tyProc__65OQHx69b9cRNDigf1zMbXbA)); colontmp_ = (*Result).ClE_0; (*Result).ClE_0 = src_p0.ClE_0; (*Result).ClP_0 = src_p0.ClP_0; { if (!src_p0.ClE_0) goto LA3_; nimIncRefCyclic(src_p0.ClE_0, NIM_TRUE); } LA3_: ; } static N_INLINE(NIM_BOOL, isNone__temp_u67)(tyObject_Option__SyoCutiORNPb4Cekw19bKyg self_p0) { NIM_BOOL result; nimfr_("isNone", "/home/runner/.choosenim/toolchains/nim-2.0.0/lib/pure/options.nim"); result = (NIM_BOOL)0; result = !(self_p0.has); popFrame(); return result; } N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___temp_u17)(tyProc__65OQHx69b9cRNDigf1zMbXbA* dest_p0) { { NIM_BOOL T3_; T3_ = (NIM_BOOL)0; T3_ = nimDecRefIsLastCyclicDyn((*dest_p0).ClE_0); if (!T3_) goto LA4_; nimDestroyAndDispose((*dest_p0).ClE_0); } LA4_: ; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus2dot0dot0atslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus2dot0dot0atslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } 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_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* colonanonymous_; tyProc__65OQHx69b9cRNDigf1zMbXbA colontmpD_; tyObject_Option__SyoCutiORNPb4Cekw19bKyg colontmpD__2; tyProc__65OQHx69b9cRNDigf1zMbXbA colontmpD__3; tyObject_Option__SyoCutiORNPb4Cekw19bKyg colontmpD__4; tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* T1_; tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* blitTmp; tyProc__65OQHx69b9cRNDigf1zMbXbA T2_; NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/Nim/Nim/temp.nim"); nimErr_ = nimErrorFlag(); colonanonymous_ = NIM_NIL; nimZeroMem((void*)(&colontmpD_), sizeof(tyProc__65OQHx69b9cRNDigf1zMbXbA)); nimZeroMem((void*)(&colontmpD__2), sizeof(tyObject_Option__SyoCutiORNPb4Cekw19bKyg)); nimZeroMem((void*)(&colontmpD__3), sizeof(tyProc__65OQHx69b9cRNDigf1zMbXbA)); nimZeroMem((void*)(&colontmpD__4), sizeof(tyObject_Option__SyoCutiORNPb4Cekw19bKyg)); T1_ = NIM_NIL; T1_ = (tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*) nimNewObj(sizeof(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg), NIM_ALIGNOF(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg)); (*T1_).Sup.m_type = (&NTIv2__79a2ITkgWvXcqEY3a5QVCJg_); colonanonymous_ = T1_; blitTmp = colonanonymous_; nimMarkCyclic(colonanonymous_); nimZeroMem((void*)(&T2_), sizeof(tyProc__65OQHx69b9cRNDigf1zMbXbA)); T2_.ClP_0 = colonanonymous___temp_u2; T2_.ClE_0 = blitTmp; it__temp_u4.ClE_0 = T2_.ClE_0; it__temp_u4.ClP_0 = T2_.ClP_0; { NIM_BOOL T5_; eqdup___temp_u24(it__temp_u4, NIM_TRUE, (&colontmpD_)); option__temp_u5(colontmpD_, (&colontmpD__2)); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; T5_ = (NIM_BOOL)0; T5_ = isSome__temp_u50(colontmpD__2); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; if (!!(T5_)) goto LA6_; failedAssertImpl__stdZassertions_u310(TM__SRd76hP9cMfCzdUO857UhQQ_6); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA6_: ; eqsink___temp_u28((&it__temp_u4), TM__SRd76hP9cMfCzdUO857UhQQ_7); { NIM_BOOL T10_; eqdup___temp_u24(it__temp_u4, NIM_TRUE, (&colontmpD__3)); option__temp_u5(colontmpD__3, (&colontmpD__4)); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; T10_ = (NIM_BOOL)0; T10_ = isNone__temp_u67(colontmpD__4); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; if (!!(T10_)) goto LA11_; failedAssertImpl__stdZassertions_u310(TM__SRd76hP9cMfCzdUO857UhQQ_9); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA11_: ; eqdestroy___temp_u80((&colontmpD__4)); eqdestroy___temp_u80((&colontmpD__2)); eqdestroy___temp_u17((&it__temp_u4)); BeforeRet_: ; nimTestErrorFlag(); popFrame(); } } ```

Stats

  • Started 2023-11-14T01:35:46
  • Finished 2023-11-14T01:35:46
  • Duration

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("options") ) ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("it"), newEmptyNode(), nnkIteratorDef.newTree( newEmptyNode(), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("int") ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ), nnkCommand.newTree( newIdentNode("assert"), nnkDotExpr.newTree( nnkDotExpr.newTree( newIdentNode("it"), newIdentNode("option") ), newIdentNode("isSome") ) ), nnkAsgn.newTree( newIdentNode("it"), newNilLit() ), nnkCommand.newTree( newIdentNode("assert"), nnkDotExpr.newTree( nnkDotExpr.newTree( newIdentNode("it"), newIdentNode("option") ), newIdentNode("isNone") ) ) ) ```
1.6.14 :+1: OK

Output

``` ```

IR

Compiled filesize 105.23 Kb (107,760 bytes) ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #include # 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 tyTuple__JfHvHzMrhKkWAUvQKe0i1A tyTuple__JfHvHzMrhKkWAUvQKe0i1A; typedef struct tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg; typedef struct TNimType TNimType; typedef struct TNimNode TNimNode; typedef struct RootObj RootObj; typedef struct tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg; typedef struct tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q; typedef struct tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg; typedef struct tyObject_GcHeap__TNN37TDOIST9cBHBYNA9bZrQ tyObject_GcHeap__TNN37TDOIST9cBHBYNA9bZrQ; typedef struct tyObject_GcStack__kyxCHsHBs9aixKn7J6EMoKg tyObject_GcStack__kyxCHsHBs9aixKn7J6EMoKg; typedef struct tyObject_MemRegion__kTihTuGP022tKEZ5qSTY4g tyObject_MemRegion__kTihTuGP022tKEZ5qSTY4g; typedef struct tyObject_SmallChunk__sj9b0POpZpf2pwHAngQ4iuA tyObject_SmallChunk__sj9b0POpZpf2pwHAngQ4iuA; typedef struct tyObject_BigChunk__n43IpccPD6dfYiSGXsXF0A tyObject_BigChunk__n43IpccPD6dfYiSGXsXF0A; typedef struct tyObject_LLChunk__EAcyYaYsVdVpPDOJNXsVvA tyObject_LLChunk__EAcyYaYsVdVpPDOJNXsVvA; typedef struct tyObject_IntSet__BjiVv2xFwTJmbeWeHvjYQw tyObject_IntSet__BjiVv2xFwTJmbeWeHvjYQw; typedef struct tyObject_Trunk__N5u9b3R0O3g59awa8B9bs6qyg tyObject_Trunk__N5u9b3R0O3g59awa8B9bs6qyg; typedef struct tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg; typedef struct tyObject_HeapLinks__vrDr51n9cXj8aHnS73vhJqw tyObject_HeapLinks__vrDr51n9cXj8aHnS73vhJqw; typedef struct tyTuple__6nVTvmjorcAWafHl9cWGFuA tyTuple__6nVTvmjorcAWafHl9cWGFuA; typedef struct tyObject_GcStat__yGmLruPXMhFV80y1jxAtjg tyObject_GcStat__yGmLruPXMhFV80y1jxAtjg; typedef struct tyObject_CellSet__9co1sTf9aTPixSgG0AQ20mAA tyObject_CellSet__9co1sTf9aTPixSgG0AQ20mAA; typedef struct tyObject_PageDesc__i0uwYov8PyHfnx0dx0lOMQ tyObject_PageDesc__i0uwYov8PyHfnx0dx0lOMQ; typedef struct tyObject_Option__hVrgWVwDAh6dWwUyW2nk9bA tyObject_Option__hVrgWVwDAh6dWwUyW2nk9bA; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; typedef struct { N_NIMCALL_PTR(NI, ClP_0) (void* ClE_0); void* ClE_0; } tyProc__65OQHx69b9cRNDigf1zMbXbA; struct tyTuple__JfHvHzMrhKkWAUvQKe0i1A { void* Field0; tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg* Field1; }; typedef NU8 tyEnum_TNimKind__3rC59cFdCULJbp2tHLSZMXQ; typedef NU8 tySet_tyEnum_TNimTypeFlag__z9aX9aBGjlpDIC58y9bKcsmzA; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__3rC59cFdCULJbp2tHLSZMXQ kind; tySet_tyEnum_TNimTypeFlag__z9aX9aBGjlpDIC58y9bKcsmzA flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__XtzEyxd2A8uwMJcYYak9c7w; struct TNimNode { tyEnum_TNimNodeKind__XtzEyxd2A8uwMJcYYak9c7w kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct RootObj { TNimType* m_type; }; struct tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg { RootObj Sup; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg { RootObj Sup; NI colonstate_; }; struct tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q { NI refcount; TNimType* typ; }; struct tyObject_GcStack__kyxCHsHBs9aixKn7J6EMoKg { void* bottom; }; struct tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg { NI len; NI cap; tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q** d; }; typedef tyObject_SmallChunk__sj9b0POpZpf2pwHAngQ4iuA* tyArray__VYTQW7wK07xvH5Z4opKI1w[256]; typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24]; typedef tyObject_BigChunk__n43IpccPD6dfYiSGXsXF0A* tyArray__YkUf1j9c9b6JzhUdDj7S3KQA[32]; typedef tyArray__YkUf1j9c9b6JzhUdDj7S3KQA tyArray__MQbMf9bcijUF9a14VvUbfzqg[24]; typedef tyObject_Trunk__N5u9b3R0O3g59awa8B9bs6qyg* tyArray__sCQfOQF0EdBvLpqvNeg1Mg[256]; struct tyObject_IntSet__BjiVv2xFwTJmbeWeHvjYQw { tyArray__sCQfOQF0EdBvLpqvNeg1Mg data; }; typedef tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg* tyArray__Wt2k1c1BbnQ6Nj3SrdvfCw[2]; struct tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg { tyArray__Wt2k1c1BbnQ6Nj3SrdvfCw link; NI key; NI upperBound; NI level; }; struct tyTuple__6nVTvmjorcAWafHl9cWGFuA { tyObject_BigChunk__n43IpccPD6dfYiSGXsXF0A* Field0; NI Field1; }; typedef tyTuple__6nVTvmjorcAWafHl9cWGFuA tyArray__yUjlcLC9c9aIvr4MhTCDBnnA[30]; struct tyObject_HeapLinks__vrDr51n9cXj8aHnS73vhJqw { NI len; tyArray__yUjlcLC9c9aIvr4MhTCDBnnA chunks; tyObject_HeapLinks__vrDr51n9cXj8aHnS73vhJqw* next; }; struct tyObject_MemRegion__kTihTuGP022tKEZ5qSTY4g { NI minLargeObj; NI maxLargeObj; tyArray__VYTQW7wK07xvH5Z4opKI1w freeSmallChunks; NU32 flBitmap; tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap; tyArray__MQbMf9bcijUF9a14VvUbfzqg matrix; tyObject_LLChunk__EAcyYaYsVdVpPDOJNXsVvA* llmem; NI currMem; NI maxMem; NI freeMem; NI occ; NI lastSize; tyObject_IntSet__BjiVv2xFwTJmbeWeHvjYQw chunkStarts; tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg* root; tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg* deleted; tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg* last; tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg* freeAvlNodes; NIM_BOOL locked; NIM_BOOL blockChunkSizeIncrease; NI nextChunkSize; tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg bottomData; tyObject_HeapLinks__vrDr51n9cXj8aHnS73vhJqw heapLinks; }; struct tyObject_GcStat__yGmLruPXMhFV80y1jxAtjg { NI stackScans; NI cycleCollections; NI maxThreshold; NI maxStackSize; NI maxStackCells; NI cycleTableSize; NI64 maxPause; }; struct tyObject_CellSet__9co1sTf9aTPixSgG0AQ20mAA { NI counter; NI max; tyObject_PageDesc__i0uwYov8PyHfnx0dx0lOMQ* head; tyObject_PageDesc__i0uwYov8PyHfnx0dx0lOMQ** data; }; struct tyObject_GcHeap__TNN37TDOIST9cBHBYNA9bZrQ { tyObject_GcStack__kyxCHsHBs9aixKn7J6EMoKg stack; NI cycleThreshold; NI zctThreshold; tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg zct; tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg decStack; tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg tempStack; NI recGcLock; tyObject_MemRegion__kTihTuGP022tKEZ5qSTY4g region; tyObject_GcStat__yGmLruPXMhFV80y1jxAtjg stat; tyObject_CellSet__9co1sTf9aTPixSgG0AQ20mAA marked; tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg additionalRoots; NI gcThreadId; }; struct tyObject_Option__hVrgWVwDAh6dWwUyW2nk9bA { tyProc__65OQHx69b9cRNDigf1zMbXbA val; }; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; static N_NIMCALL(void, Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA)(void* p, NI op); N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, TM__SRd76hP9cMfCzdUO857UhQQ_3)(void); N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); static N_NIMCALL(void, Marker_tyRef__vFVGpQFCk5fhTm0mbzkdHA)(void* p, NI op); N_LIB_PRIVATE N_NOINLINE(void*, newObj)(TNimType* typ, NI size); N_LIB_PRIVATE N_CLOSURE(NI, colonanonymous___temp_2)(void* ClE_0); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2997)(void); static N_INLINE(void, popFrame)(void); static N_INLINE(void, nimZeroMem)(void* p, NI size); static N_INLINE(void, nimSetMem__systemZmemory_7)(void* a, int v, NI size); static N_INLINE(void, asgnRef)(void** dest, void* src); static N_INLINE(void, incRef__system_5340)(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* c); static N_INLINE(NI, pluspercent___system_696)(NI x, NI y); static N_INLINE(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q*, usrToCell__system_5302)(void* usr); static N_INLINE(NI, minuspercent___system_716)(NI x, NI y); static N_INLINE(void, decRef__system_5347)(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* c); static N_INLINE(NIM_BOOL, ltpercent___system_1005)(NI x, NI y); static N_INLINE(void, rtlAddZCT__system_5345)(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* c); N_LIB_PRIVATE N_NOINLINE(void, addZCT__system_5296)(tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg* s, tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* c); static N_INLINE(NIM_BOOL, isSome__temp_26)(tyObject_Option__hVrgWVwDAh6dWwUyW2nk9bA self); static N_INLINE(void, option__temp_5)(tyProc__65OQHx69b9cRNDigf1zMbXbA val, tyObject_Option__hVrgWVwDAh6dWwUyW2nk9bA* Result); N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src); N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__systemZassertions_56)(NimStringDesc* msg); static N_INLINE(NIM_BOOL, isNone__temp_46)(tyObject_Option__hVrgWVwDAh6dWwUyW2nk9bA self); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmtempdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); N_LIB_PRIVATE TNimType NTIiteratorLT58intLOclosure_nosideeffect_gcsafe_locks5848OT__65OQHx69b9cRNDigf1zMbXbA_; N_LIB_PRIVATE TNimType NTIpointer__vr5DoT1jILTGdRlYv1OYpw_; extern TNimType NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTIobject__diB2NTuAIWY0FO9c5IUJRGg_; N_LIB_PRIVATE TNimType NTIrefobject__HsJiUUcO9cHBdUCi0HwkSTA_; N_LIB_PRIVATE TNimType NTIobject__79a2ITkgWvXcqEY3a5QVCJg_; extern TNimType NTIint__xHTZrq9aYs6boc9bCba0JbpQ_; N_LIB_PRIVATE TNimType NTIrefobject__vFVGpQFCk5fhTm0mbzkdHA_; STRING_LITERAL(TM__SRd76hP9cMfCzdUO857UhQQ_4, "/home/runner/work/Nim/Nim/temp.nim(3, 8) `it.option.isSome` ", 60); static NIM_CONST tyProc__65OQHx69b9cRNDigf1zMbXbA TM__SRd76hP9cMfCzdUO857UhQQ_5 = {NIM_NIL,NIM_NIL}; STRING_LITERAL(TM__SRd76hP9cMfCzdUO857UhQQ_6, "/home/runner/work/Nim/Nim/temp.nim(5, 8) `it.option.isNone` ", 60); N_LIB_PRIVATE tyProc__65OQHx69b9cRNDigf1zMbXbA it__temp_4; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern tyObject_GcHeap__TNN37TDOIST9cBHBYNA9bZrQ gch__system_5249; static N_NIMCALL(void, Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA)(void* p, NI op) { tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg* a; a = (tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg*)p; } static N_NIMCALL(void, TM__SRd76hP9cMfCzdUO857UhQQ_3)(void) { nimGCvisit((void*)it__temp_4.ClE_0, 0); } static N_NIMCALL(void, Marker_tyRef__vFVGpQFCk5fhTm0mbzkdHA)(void* p, NI op) { tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* a; a = (tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*)p; } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__system_2564; framePtr__system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached__system_2997(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_2564 = (*framePtr__system_2564).prev; } N_LIB_PRIVATE N_CLOSURE(NI, colonanonymous___temp_2)(void* ClE_0) { NI result; tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* colonenvP_; nimfr_(":anonymous", "/home/runner/work/Nim/Nim/temp.nim"); { result = (NI)0; colonenvP_ = (tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*) ClE_0; while (1) { if (!1) goto LA1; { switch ((*colonenvP_).colonstate_) { case -1: goto BeforeRet_; case 0: goto STATE0; case 1: goto STATE1; } STATE0: ; (*colonenvP_).colonstate_ = ((NI) 1); goto LA2; STATE1: ; (*colonenvP_).colonstate_ = ((NI) -1); goto LA2; } LA2: ; } LA1: ; }BeforeRet_: ; popFrame(); return result; } static N_INLINE(void, nimSetMem__systemZmemory_7)(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__systemZmemory_7(p, ((int) 0), size); } static N_INLINE(NI, pluspercent___system_696)(NI x, NI y) { NI result; nimfr_("+%", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/arithmetics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(void, incRef__system_5340)(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* c) { nimfr_("incRef", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/gc.nim"); (*c).refcount = pluspercent___system_696((*c).refcount, ((NI) 8)); popFrame(); } static N_INLINE(NI, minuspercent___system_716)(NI x, NI y) { NI result; nimfr_("-%", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/arithmetics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q*, usrToCell__system_5302)(void* usr) { tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* result; NI T1_; nimfr_("usrToCell", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/gc.nim"); result = (tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q*)0; T1_ = (NI)0; T1_ = minuspercent___system_716(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q*) (T1_)); popFrame(); return result; } static N_INLINE(NIM_BOOL, ltpercent___system_1005)(NI x, NI y) { NIM_BOOL result; nimfr_("<%", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/comparisons.nim"); result = (NIM_BOOL)0; result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); popFrame(); return result; } static N_INLINE(void, rtlAddZCT__system_5345)(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* c) { nimfr_("rtlAddZCT", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/gc.nim"); addZCT__system_5296((&gch__system_5249.zct), c); popFrame(); } static N_INLINE(void, decRef__system_5347)(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* c) { nimfr_("decRef", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/gc.nim"); (*c).refcount = minuspercent___system_716((*c).refcount, ((NI) 8)); { NIM_BOOL T3_; T3_ = (NIM_BOOL)0; T3_ = ltpercent___system_1005((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_; rtlAddZCT__system_5345(c); } LA4_: ; popFrame(); } static N_INLINE(void, asgnRef)(void** dest, void* src) { nimfr_("asgnRef", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/gc.nim"); { tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* T5_; if (!!((src == NIM_NIL))) goto LA3_; T5_ = (tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q*)0; T5_ = usrToCell__system_5302(src); incRef__system_5340(T5_); } LA3_: ; { tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* T10_; if (!!(((*dest) == NIM_NIL))) goto LA8_; T10_ = (tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q*)0; T10_ = usrToCell__system_5302((*dest)); decRef__system_5347(T10_); } LA8_: ; (*dest) = src; popFrame(); } static N_INLINE(NIM_BOOL, isSome__temp_26)(tyObject_Option__hVrgWVwDAh6dWwUyW2nk9bA self) { NIM_BOOL result; nimfr_("isSome", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/pure/options.nim"); result = (NIM_BOOL)0; result = !((self.val.ClP_0 == 0)); popFrame(); return result; } static N_INLINE(void, option__temp_5)(tyProc__65OQHx69b9cRNDigf1zMbXbA val, tyObject_Option__hVrgWVwDAh6dWwUyW2nk9bA* Result) { nimfr_("option", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/pure/options.nim"); unsureAsgnRef((void**)&(*Result).val.ClE_0, NIM_NIL); (*Result).val.ClP_0 = NIM_NIL; unsureAsgnRef((void**) (&(*Result).val.ClE_0), val.ClE_0); (*Result).val.ClP_0 = val.ClP_0; popFrame(); } static N_INLINE(NIM_BOOL, isNone__temp_46)(tyObject_Option__hVrgWVwDAh6dWwUyW2nk9bA self) { NIM_BOOL result; nimfr_("isNone", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/pure/options.nim"); result = (NIM_BOOL)0; result = (self.val.ClP_0 == 0); popFrame(); return result; } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } N_LIB_PRIVATE void PreMainInner(void) { } 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; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); initStackBottomWith((void *)&inner); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); atmtempdotnim_DatInit000(); (*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) { { TFrame FR_; FR_.len = 0; nimRegisterGlobalMarker(TM__SRd76hP9cMfCzdUO857UhQQ_3); } { tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* colonanonymous_; tyProc__65OQHx69b9cRNDigf1zMbXbA T1_; nimfr_("temp", "/home/runner/work/Nim/Nim/temp.nim"); colonanonymous_ = NIM_NIL; colonanonymous_ = (tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*) newObj((&NTIrefobject__vFVGpQFCk5fhTm0mbzkdHA_), sizeof(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg)); (*colonanonymous_).Sup.m_type = (&NTIobject__79a2ITkgWvXcqEY3a5QVCJg_); nimZeroMem((void*)(&T1_), sizeof(tyProc__65OQHx69b9cRNDigf1zMbXbA)); T1_.ClP_0 = colonanonymous___temp_2; T1_.ClE_0 = colonanonymous_; asgnRef((void**) (&it__temp_4.ClE_0), T1_.ClE_0); it__temp_4.ClP_0 = T1_.ClP_0; { tyObject_Option__hVrgWVwDAh6dWwUyW2nk9bA T4_; NIM_BOOL T5_; nimZeroMem((void*)(&T4_), sizeof(tyObject_Option__hVrgWVwDAh6dWwUyW2nk9bA)); option__temp_5(it__temp_4, (&T4_)); T5_ = (NIM_BOOL)0; T5_ = isSome__temp_26(T4_); if (!!(T5_)) goto LA6_; failedAssertImpl__systemZassertions_56(((NimStringDesc*) &TM__SRd76hP9cMfCzdUO857UhQQ_4)); } LA6_: ; asgnRef((void**) (&it__temp_4.ClE_0), TM__SRd76hP9cMfCzdUO857UhQQ_5.ClE_0); it__temp_4.ClP_0 = TM__SRd76hP9cMfCzdUO857UhQQ_5.ClP_0; { tyObject_Option__hVrgWVwDAh6dWwUyW2nk9bA T10_; NIM_BOOL T11_; nimZeroMem((void*)(&T10_), sizeof(tyObject_Option__hVrgWVwDAh6dWwUyW2nk9bA)); option__temp_5(it__temp_4, (&T10_)); T11_ = (NIM_BOOL)0; T11_ = isNone__temp_46(T10_); if (!!(T11_)) goto LA12_; failedAssertImpl__systemZassertions_56(((NimStringDesc*) &TM__SRd76hP9cMfCzdUO857UhQQ_6)); } LA12_: ; popFrame(); } } N_LIB_PRIVATE N_NIMCALL(void, atmtempdotnim_DatInit000)(void) { static TNimNode* TM__SRd76hP9cMfCzdUO857UhQQ_2_2[2]; static TNimNode TM__SRd76hP9cMfCzdUO857UhQQ_0[5]; NTIiteratorLT58intLOclosure_nosideeffect_gcsafe_locks5848OT__65OQHx69b9cRNDigf1zMbXbA_.size = sizeof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A); NTIiteratorLT58intLOclosure_nosideeffect_gcsafe_locks5848OT__65OQHx69b9cRNDigf1zMbXbA_.align = NIM_ALIGNOF(tyTuple__JfHvHzMrhKkWAUvQKe0i1A); NTIiteratorLT58intLOclosure_nosideeffect_gcsafe_locks5848OT__65OQHx69b9cRNDigf1zMbXbA_.kind = 18; NTIiteratorLT58intLOclosure_nosideeffect_gcsafe_locks5848OT__65OQHx69b9cRNDigf1zMbXbA_.base = 0; TM__SRd76hP9cMfCzdUO857UhQQ_2_2[0] = &TM__SRd76hP9cMfCzdUO857UhQQ_0[1]; NTIpointer__vr5DoT1jILTGdRlYv1OYpw_.size = sizeof(void*); NTIpointer__vr5DoT1jILTGdRlYv1OYpw_.align = NIM_ALIGNOF(void*); NTIpointer__vr5DoT1jILTGdRlYv1OYpw_.kind = 26; NTIpointer__vr5DoT1jILTGdRlYv1OYpw_.base = 0; NTIpointer__vr5DoT1jILTGdRlYv1OYpw_.flags = 3; TM__SRd76hP9cMfCzdUO857UhQQ_0[1].kind = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[1].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field0); TM__SRd76hP9cMfCzdUO857UhQQ_0[1].typ = (&NTIpointer__vr5DoT1jILTGdRlYv1OYpw_); TM__SRd76hP9cMfCzdUO857UhQQ_0[1].name = "Field0"; TM__SRd76hP9cMfCzdUO857UhQQ_2_2[1] = &TM__SRd76hP9cMfCzdUO857UhQQ_0[2]; NTIobject__diB2NTuAIWY0FO9c5IUJRGg_.size = sizeof(tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg); NTIobject__diB2NTuAIWY0FO9c5IUJRGg_.align = NIM_ALIGNOF(tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg); NTIobject__diB2NTuAIWY0FO9c5IUJRGg_.kind = 17; NTIobject__diB2NTuAIWY0FO9c5IUJRGg_.base = (&NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_); NTIobject__diB2NTuAIWY0FO9c5IUJRGg_.flags = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[3].len = 0; TM__SRd76hP9cMfCzdUO857UhQQ_0[3].kind = 2; NTIobject__diB2NTuAIWY0FO9c5IUJRGg_.node = &TM__SRd76hP9cMfCzdUO857UhQQ_0[3]; NTIrefobject__HsJiUUcO9cHBdUCi0HwkSTA_.size = sizeof(tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg*); NTIrefobject__HsJiUUcO9cHBdUCi0HwkSTA_.align = NIM_ALIGNOF(tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg*); NTIrefobject__HsJiUUcO9cHBdUCi0HwkSTA_.kind = 22; NTIrefobject__HsJiUUcO9cHBdUCi0HwkSTA_.base = (&NTIobject__diB2NTuAIWY0FO9c5IUJRGg_); NTIrefobject__HsJiUUcO9cHBdUCi0HwkSTA_.marker = Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA; TM__SRd76hP9cMfCzdUO857UhQQ_0[2].kind = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[2].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field1); TM__SRd76hP9cMfCzdUO857UhQQ_0[2].typ = (&NTIrefobject__HsJiUUcO9cHBdUCi0HwkSTA_); TM__SRd76hP9cMfCzdUO857UhQQ_0[2].name = "Field1"; TM__SRd76hP9cMfCzdUO857UhQQ_0[0].len = 2; TM__SRd76hP9cMfCzdUO857UhQQ_0[0].kind = 2; TM__SRd76hP9cMfCzdUO857UhQQ_0[0].sons = &TM__SRd76hP9cMfCzdUO857UhQQ_2_2[0]; NTIiteratorLT58intLOclosure_nosideeffect_gcsafe_locks5848OT__65OQHx69b9cRNDigf1zMbXbA_.node = &TM__SRd76hP9cMfCzdUO857UhQQ_0[0]; NTIobject__79a2ITkgWvXcqEY3a5QVCJg_.size = sizeof(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg); NTIobject__79a2ITkgWvXcqEY3a5QVCJg_.align = NIM_ALIGNOF(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg); NTIobject__79a2ITkgWvXcqEY3a5QVCJg_.kind = 17; NTIobject__79a2ITkgWvXcqEY3a5QVCJg_.base = (&NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_); NTIobject__79a2ITkgWvXcqEY3a5QVCJg_.flags = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[4].kind = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[4].offset = offsetof(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg, colonstate_); TM__SRd76hP9cMfCzdUO857UhQQ_0[4].typ = (&NTIint__xHTZrq9aYs6boc9bCba0JbpQ_); TM__SRd76hP9cMfCzdUO857UhQQ_0[4].name = ":state"; NTIobject__79a2ITkgWvXcqEY3a5QVCJg_.node = &TM__SRd76hP9cMfCzdUO857UhQQ_0[4]; NTIrefobject__vFVGpQFCk5fhTm0mbzkdHA_.size = sizeof(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*); NTIrefobject__vFVGpQFCk5fhTm0mbzkdHA_.align = NIM_ALIGNOF(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*); NTIrefobject__vFVGpQFCk5fhTm0mbzkdHA_.kind = 22; NTIrefobject__vFVGpQFCk5fhTm0mbzkdHA_.base = (&NTIobject__79a2ITkgWvXcqEY3a5QVCJg_); NTIrefobject__vFVGpQFCk5fhTm0mbzkdHA_.marker = Marker_tyRef__vFVGpQFCk5fhTm0mbzkdHA; } ```

Stats

  • Started 2023-11-14T01:35:49
  • Finished 2023-11-14T01:35:50
  • Duration
1.4.8 :+1: OK

Output

``` ```

IR

Compiled filesize 97.05 Kb (99,384 bytes) ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #include # 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 tyTuple__JfHvHzMrhKkWAUvQKe0i1A tyTuple__JfHvHzMrhKkWAUvQKe0i1A; typedef struct tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg; typedef struct TNimType TNimType; typedef struct TNimNode TNimNode; typedef struct RootObj RootObj; typedef struct tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg; 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_Option__exvp6PYaiJx82zjCKzy9blg tyObject_Option__exvp6PYaiJx82zjCKzy9blg; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; typedef struct { N_NIMCALL_PTR(NI, ClP_0) (void* ClE_0); void* ClE_0; } tyProc__65OQHx69b9cRNDigf1zMbXbA; struct tyTuple__JfHvHzMrhKkWAUvQKe0i1A { void* Field0; tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg* Field1; }; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct RootObj { TNimType* m_type; }; struct tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg { RootObj Sup; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg { RootObj Sup; NI colonstate_; }; 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__SPr7N6UKfuF549bNPiUvSRw[256]; 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__SPr7N6UKfuF549bNPiUvSRw 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; }; 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; }; 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; NI gcThreadId; }; struct tyObject_Option__exvp6PYaiJx82zjCKzy9blg { tyProc__65OQHx69b9cRNDigf1zMbXbA val; }; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; static N_NIMCALL(void, Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA)(void* p, NI op); N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, TM__SRd76hP9cMfCzdUO857UhQQ_3)(void); N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); static N_NIMCALL(void, Marker_tyRef__vFVGpQFCk5fhTm0mbzkdHA)(void* p, NI op); N_LIB_PRIVATE N_NOINLINE(void*, newObj)(TNimType* typ, NI size); N_LIB_PRIVATE N_CLOSURE(NI, colonanonymous___r6eHG1m6ZPplK3ohF2TlyA)(void* ClE_0); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); static N_INLINE(void, nimZeroMem)(void* p, NI size); static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size); static N_INLINE(void, asgnRef)(void** dest, void* src); static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y); static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr); static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y); static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y); static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NIM_BOOL, isSome__vhLJ5yvWSn8X10hTT7zQTgoptions)(tyObject_Option__exvp6PYaiJx82zjCKzy9blg self); static N_INLINE(void, option__kjpqRi1En0sMB8XGntKi9bAoptions)(tyProc__65OQHx69b9cRNDigf1zMbXbA val, tyObject_Option__exvp6PYaiJx82zjCKzy9blg* Result); N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src); N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); static N_INLINE(NIM_BOOL, isNone__vhLJ5yvWSn8X10hTT7zQTg_2options)(tyObject_Option__exvp6PYaiJx82zjCKzy9blg self); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE 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, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); N_LIB_PRIVATE TNimType NTI__65OQHx69b9cRNDigf1zMbXbA_; N_LIB_PRIVATE TNimType NTI__vr5DoT1jILTGdRlYv1OYpw_; extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTI__diB2NTuAIWY0FO9c5IUJRGg_; N_LIB_PRIVATE TNimType NTI__HsJiUUcO9cHBdUCi0HwkSTA_; N_LIB_PRIVATE TNimType NTI__79a2ITkgWvXcqEY3a5QVCJg_; extern TNimType NTI__xHTZrq9aYs6boc9bCba0JbpQ_; N_LIB_PRIVATE TNimType NTI__vFVGpQFCk5fhTm0mbzkdHA_; STRING_LITERAL(TM__SRd76hP9cMfCzdUO857UhQQ_4, "/home/runner/work/Nim/Nim/temp.nim(3, 8) `it.option.isSome` ", 60); static NIM_CONST tyProc__65OQHx69b9cRNDigf1zMbXbA TM__SRd76hP9cMfCzdUO857UhQQ_5 = {NIM_NIL,NIM_NIL}; STRING_LITERAL(TM__SRd76hP9cMfCzdUO857UhQQ_6, "/home/runner/work/Nim/Nim/temp.nim(5, 8) `it.option.isNone` ", 60); N_LIB_PRIVATE tyProc__65OQHx69b9cRNDigf1zMbXbA it__bIjurFmQleCn9aF9cjH579cKQ; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q; static N_NIMCALL(void, Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA)(void* p, NI op) { tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg* a; a = (tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg*)p; } static N_NIMCALL(void, TM__SRd76hP9cMfCzdUO857UhQQ_3)(void) { nimGCvisit((void*)it__bIjurFmQleCn9aF9cjH579cKQ.ClE_0, 0); } static N_NIMCALL(void, Marker_tyRef__vFVGpQFCk5fhTm0mbzkdHA)(void* p, NI op) { tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* a; a = (tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*)p; } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == ((TFrame*) NIM_NIL))) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE N_CLOSURE(NI, colonanonymous___r6eHG1m6ZPplK3ohF2TlyA)(void* ClE_0) { NI result; tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* colonenvP_; nimfr_(":anonymous", "/home/runner/work/Nim/Nim/temp.nim"); { result = (NI)0; colonenvP_ = (tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*) ClE_0; while (1) { if (!1) goto LA1; { switch ((*colonenvP_).colonstate_) { case -1: goto BeforeRet_; case 0: goto STATE0; case 1: goto STATE1; } STATE0: ; (*colonenvP_).colonstate_ = ((NI) 1); goto LA2; STATE1: ; (*colonenvP_).colonstate_ = ((NI) -1); goto LA2; } LA2: ; } LA1: ; }BeforeRet_: ; popFrame(); return result; } 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); } static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; nimfr_("+%", "/home/runner/.choosenim/toolchains/nim-1.4.8/lib/system/arithme" "tics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("incRef", "/home/runner/.choosenim/toolchains/nim-1.4.8/lib/system/gc.nim"); (*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8)); popFrame(); } static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; nimfr_("-%", "/home/runner/.choosenim/toolchains/nim-1.4.8/lib/system/arithme" "tics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; nimfr_("usrToCell", "/home/runner/.choosenim/toolchains/nim-1.4.8/lib/system/gc.nim"); result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); popFrame(); return result; } static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; nimfr_("<%", "/home/runner/.choosenim/toolchains/nim-1.4.8/lib/system/compari" "sons.nim"); result = (NIM_BOOL)0; result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); popFrame(); return result; } static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("rtlAddZCT", "/home/runner/.choosenim/toolchains/nim-1.4.8/lib/system/gc.nim"); addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c); popFrame(); } static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("decRef", "/home/runner/.choosenim/toolchains/nim-1.4.8/lib/system/gc.nim"); (*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8)); { NIM_BOOL T3_; T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_; rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system(c); } LA4_: ; popFrame(); } static N_INLINE(void, asgnRef)(void** dest, void* src) { nimfr_("asgnRef", "/home/runner/.choosenim/toolchains/nim-1.4.8/lib/system/gc.nim"); { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_; if (!!((src == NIM_NIL))) goto LA3_; T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src); incRef__AT1eRuflKWyTTBdLjEDZbgsystem(T5_); } LA3_: ; { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_; if (!!(((*dest) == NIM_NIL))) goto LA8_; T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest)); decRef__AT1eRuflKWyTTBdLjEDZbg_2system(T10_); } LA8_: ; (*dest) = src; popFrame(); } static N_INLINE(NIM_BOOL, isSome__vhLJ5yvWSn8X10hTT7zQTgoptions)(tyObject_Option__exvp6PYaiJx82zjCKzy9blg self) { NIM_BOOL result; nimfr_("isSome", "/home/runner/.choosenim/toolchains/nim-1.4.8/lib/pure/options.n" "im"); result = (NIM_BOOL)0; result = !((self.val.ClP_0 == 0)); popFrame(); return result; } static N_INLINE(void, option__kjpqRi1En0sMB8XGntKi9bAoptions)(tyProc__65OQHx69b9cRNDigf1zMbXbA val, tyObject_Option__exvp6PYaiJx82zjCKzy9blg* Result) { nimfr_("option", "/home/runner/.choosenim/toolchains/nim-1.4.8/lib/pure/options.n" "im"); unsureAsgnRef((void**)&(*Result).val.ClE_0, NIM_NIL); (*Result).val.ClP_0 = NIM_NIL; unsureAsgnRef((void**) (&(*Result).val.ClE_0), val.ClE_0); (*Result).val.ClP_0 = val.ClP_0; popFrame(); } static N_INLINE(NIM_BOOL, isNone__vhLJ5yvWSn8X10hTT7zQTg_2options)(tyObject_Option__exvp6PYaiJx82zjCKzy9blg self) { NIM_BOOL result; nimfr_("isNone", "/home/runner/.choosenim/toolchains/nim-1.4.8/lib/pure/options.n" "im"); result = (NIM_BOOL)0; result = (self.val.ClP_0 == 0); popFrame(); return result; } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } N_LIB_PRIVATE void PreMainInner(void) { } 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; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*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) { { TFrame FR_; FR_.len = 0; nimRegisterGlobalMarker(TM__SRd76hP9cMfCzdUO857UhQQ_3); } { tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg* colonanonymous_; tyProc__65OQHx69b9cRNDigf1zMbXbA T1_; nimfr_("temp", "/home/runner/work/Nim/Nim/temp.nim"); colonanonymous_ = (tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*)0; colonanonymous_ = (tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*) newObj((&NTI__vFVGpQFCk5fhTm0mbzkdHA_), sizeof(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg)); (*colonanonymous_).Sup.m_type = (&NTI__79a2ITkgWvXcqEY3a5QVCJg_); nimZeroMem((void*)(&T1_), sizeof(tyProc__65OQHx69b9cRNDigf1zMbXbA)); T1_.ClP_0 = colonanonymous___r6eHG1m6ZPplK3ohF2TlyA; T1_.ClE_0 = colonanonymous_; asgnRef((void**) (&it__bIjurFmQleCn9aF9cjH579cKQ.ClE_0), T1_.ClE_0); it__bIjurFmQleCn9aF9cjH579cKQ.ClP_0 = T1_.ClP_0; { tyObject_Option__exvp6PYaiJx82zjCKzy9blg T4_; NIM_BOOL T5_; nimZeroMem((void*)(&T4_), sizeof(tyObject_Option__exvp6PYaiJx82zjCKzy9blg)); option__kjpqRi1En0sMB8XGntKi9bAoptions(it__bIjurFmQleCn9aF9cjH579cKQ, (&T4_)); T5_ = (NIM_BOOL)0; T5_ = isSome__vhLJ5yvWSn8X10hTT7zQTgoptions(T4_); if (!!(T5_)) goto LA6_; failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__SRd76hP9cMfCzdUO857UhQQ_4)); } LA6_: ; asgnRef((void**) (&it__bIjurFmQleCn9aF9cjH579cKQ.ClE_0), TM__SRd76hP9cMfCzdUO857UhQQ_5.ClE_0); it__bIjurFmQleCn9aF9cjH579cKQ.ClP_0 = TM__SRd76hP9cMfCzdUO857UhQQ_5.ClP_0; { tyObject_Option__exvp6PYaiJx82zjCKzy9blg T10_; NIM_BOOL T11_; nimZeroMem((void*)(&T10_), sizeof(tyObject_Option__exvp6PYaiJx82zjCKzy9blg)); option__kjpqRi1En0sMB8XGntKi9bAoptions(it__bIjurFmQleCn9aF9cjH579cKQ, (&T10_)); T11_ = (NIM_BOOL)0; T11_ = isNone__vhLJ5yvWSn8X10hTT7zQTg_2options(T10_); if (!!(T11_)) goto LA12_; failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__SRd76hP9cMfCzdUO857UhQQ_6)); } LA12_: ; popFrame(); } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode* TM__SRd76hP9cMfCzdUO857UhQQ_2_2[2]; static TNimNode TM__SRd76hP9cMfCzdUO857UhQQ_0[5]; NTI__65OQHx69b9cRNDigf1zMbXbA_.size = sizeof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A); NTI__65OQHx69b9cRNDigf1zMbXbA_.align = NIM_ALIGNOF(tyTuple__JfHvHzMrhKkWAUvQKe0i1A); NTI__65OQHx69b9cRNDigf1zMbXbA_.kind = 18; NTI__65OQHx69b9cRNDigf1zMbXbA_.base = 0; TM__SRd76hP9cMfCzdUO857UhQQ_2_2[0] = &TM__SRd76hP9cMfCzdUO857UhQQ_0[1]; NTI__vr5DoT1jILTGdRlYv1OYpw_.size = sizeof(void*); NTI__vr5DoT1jILTGdRlYv1OYpw_.align = NIM_ALIGNOF(void*); NTI__vr5DoT1jILTGdRlYv1OYpw_.kind = 26; NTI__vr5DoT1jILTGdRlYv1OYpw_.base = 0; NTI__vr5DoT1jILTGdRlYv1OYpw_.flags = 3; TM__SRd76hP9cMfCzdUO857UhQQ_0[1].kind = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[1].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field0); TM__SRd76hP9cMfCzdUO857UhQQ_0[1].typ = (&NTI__vr5DoT1jILTGdRlYv1OYpw_); TM__SRd76hP9cMfCzdUO857UhQQ_0[1].name = "Field0"; TM__SRd76hP9cMfCzdUO857UhQQ_2_2[1] = &TM__SRd76hP9cMfCzdUO857UhQQ_0[2]; NTI__diB2NTuAIWY0FO9c5IUJRGg_.size = sizeof(tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg); NTI__diB2NTuAIWY0FO9c5IUJRGg_.align = NIM_ALIGNOF(tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg); NTI__diB2NTuAIWY0FO9c5IUJRGg_.kind = 17; NTI__diB2NTuAIWY0FO9c5IUJRGg_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_); NTI__diB2NTuAIWY0FO9c5IUJRGg_.flags = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[3].len = 0; TM__SRd76hP9cMfCzdUO857UhQQ_0[3].kind = 2; NTI__diB2NTuAIWY0FO9c5IUJRGg_.node = &TM__SRd76hP9cMfCzdUO857UhQQ_0[3]; NTI__HsJiUUcO9cHBdUCi0HwkSTA_.size = sizeof(tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg*); NTI__HsJiUUcO9cHBdUCi0HwkSTA_.align = NIM_ALIGNOF(tyObject_Env_tempdotnim_colonanonymous___diB2NTuAIWY0FO9c5IUJRGg*); NTI__HsJiUUcO9cHBdUCi0HwkSTA_.kind = 22; NTI__HsJiUUcO9cHBdUCi0HwkSTA_.base = (&NTI__diB2NTuAIWY0FO9c5IUJRGg_); NTI__HsJiUUcO9cHBdUCi0HwkSTA_.marker = Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA; TM__SRd76hP9cMfCzdUO857UhQQ_0[2].kind = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[2].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field1); TM__SRd76hP9cMfCzdUO857UhQQ_0[2].typ = (&NTI__HsJiUUcO9cHBdUCi0HwkSTA_); TM__SRd76hP9cMfCzdUO857UhQQ_0[2].name = "Field1"; TM__SRd76hP9cMfCzdUO857UhQQ_0[0].len = 2; TM__SRd76hP9cMfCzdUO857UhQQ_0[0].kind = 2; TM__SRd76hP9cMfCzdUO857UhQQ_0[0].sons = &TM__SRd76hP9cMfCzdUO857UhQQ_2_2[0]; NTI__65OQHx69b9cRNDigf1zMbXbA_.node = &TM__SRd76hP9cMfCzdUO857UhQQ_0[0]; NTI__79a2ITkgWvXcqEY3a5QVCJg_.size = sizeof(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg); NTI__79a2ITkgWvXcqEY3a5QVCJg_.align = NIM_ALIGNOF(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg); NTI__79a2ITkgWvXcqEY3a5QVCJg_.kind = 17; NTI__79a2ITkgWvXcqEY3a5QVCJg_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_); NTI__79a2ITkgWvXcqEY3a5QVCJg_.flags = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[4].kind = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[4].offset = offsetof(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg, colonstate_); TM__SRd76hP9cMfCzdUO857UhQQ_0[4].typ = (&NTI__xHTZrq9aYs6boc9bCba0JbpQ_); TM__SRd76hP9cMfCzdUO857UhQQ_0[4].name = ":state"; NTI__79a2ITkgWvXcqEY3a5QVCJg_.node = &TM__SRd76hP9cMfCzdUO857UhQQ_0[4]; NTI__vFVGpQFCk5fhTm0mbzkdHA_.size = sizeof(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*); NTI__vFVGpQFCk5fhTm0mbzkdHA_.align = NIM_ALIGNOF(tyObject_Env_tempdotnim_colonanonymous___79a2ITkgWvXcqEY3a5QVCJg*); NTI__vFVGpQFCk5fhTm0mbzkdHA_.kind = 22; NTI__vFVGpQFCk5fhTm0mbzkdHA_.base = (&NTI__79a2ITkgWvXcqEY3a5QVCJg_); NTI__vFVGpQFCk5fhTm0mbzkdHA_.marker = Marker_tyRef__vFVGpQFCk5fhTm0mbzkdHA; } ```

Stats

  • Started 2023-11-14T01:35:52
  • Finished 2023-11-14T01:35:52
  • Duration
1.2.18 :+1: OK

Output

``` ```

IR

Compiled filesize 97.10 Kb (99,432 bytes) ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #include # 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 tyTuple__JfHvHzMrhKkWAUvQKe0i1A tyTuple__JfHvHzMrhKkWAUvQKe0i1A; typedef struct tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg; typedef struct TNimType TNimType; typedef struct TNimNode TNimNode; typedef struct RootObj RootObj; typedef struct tyObject_Env_tempdotnim___79a2ITkgWvXcqEY3a5QVCJg tyObject_Env_tempdotnim___79a2ITkgWvXcqEY3a5QVCJg; 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_Option__3LAuU9aMYCFn3X9cjTV0QBeA tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; typedef struct { N_NIMCALL_PTR(NI, ClP_0) (void* ClE_0); void* ClE_0; } tyProc__rXRPg0RCBBkwXNvQ7Df3XQ; struct tyTuple__JfHvHzMrhKkWAUvQKe0i1A { void* Field0; tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg* Field1; }; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct RootObj { TNimType* m_type; }; struct tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg { RootObj Sup; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct tyObject_Env_tempdotnim___79a2ITkgWvXcqEY3a5QVCJg { RootObj Sup; NI colonstate_; }; 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; }; 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; }; 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; NI gcThreadId; }; struct tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA { tyProc__rXRPg0RCBBkwXNvQ7Df3XQ val; }; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; static N_NIMCALL(void, Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA)(void* p, NI op); N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, TM__SRd76hP9cMfCzdUO857UhQQ_3)(void); N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); static N_NIMCALL(void, Marker_tyRef__vFVGpQFCk5fhTm0mbzkdHA)(void* p, NI op); N_LIB_PRIVATE N_NOINLINE(void*, newObj)(TNimType* typ, NI size); N_LIB_PRIVATE N_CLOSURE(NI, colonanonymous___Qoz0N6ol9btySew9ahaH0Nfg)(void* ClE_0); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); static N_INLINE(void, nimZeroMem)(void* p, NI size); static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size); static N_INLINE(void, asgnRef)(void** dest, void* src); static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y); static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr); static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y); static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y); static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NIM_BOOL, isSome__TIZiy4U9axzGaUr5L1yG8Wwoptions)(tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA self); static N_INLINE(void, option__A9cjhBNtCD7R9cwnWn8p9btPwoptions)(tyProc__rXRPg0RCBBkwXNvQ7Df3XQ val, tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA* Result); N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p); N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src); N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); static N_INLINE(NIM_BOOL, isNone__TIZiy4U9axzGaUr5L1yG8Ww_2options)(tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA self); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE 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, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); N_LIB_PRIVATE TNimType NTI__rXRPg0RCBBkwXNvQ7Df3XQ_; N_LIB_PRIVATE TNimType NTI__vr5DoT1jILTGdRlYv1OYpw_; extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTI__diB2NTuAIWY0FO9c5IUJRGg_; N_LIB_PRIVATE TNimType NTI__HsJiUUcO9cHBdUCi0HwkSTA_; N_LIB_PRIVATE TNimType NTI__79a2ITkgWvXcqEY3a5QVCJg_; extern TNimType NTI__xHTZrq9aYs6boc9bCba0JbpQ_; N_LIB_PRIVATE TNimType NTI__vFVGpQFCk5fhTm0mbzkdHA_; STRING_LITERAL(TM__SRd76hP9cMfCzdUO857UhQQ_4, "/home/runner/work/Nim/Nim/temp.nim(3, 8) `it.option.isSome` ", 60); static NIM_CONST tyProc__rXRPg0RCBBkwXNvQ7Df3XQ TM__SRd76hP9cMfCzdUO857UhQQ_5 = {NIM_NIL,NIM_NIL}; STRING_LITERAL(TM__SRd76hP9cMfCzdUO857UhQQ_6, "/home/runner/work/Nim/Nim/temp.nim(5, 8) `it.option.isNone` ", 60); N_LIB_PRIVATE tyProc__rXRPg0RCBBkwXNvQ7Df3XQ it__bIjurFmQleCn9aF9cjH579cKQ; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q; static N_NIMCALL(void, Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA)(void* p, NI op) { tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg* a; a = (tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg*)p; } static N_NIMCALL(void, TM__SRd76hP9cMfCzdUO857UhQQ_3)(void) { nimGCvisit((void*)it__bIjurFmQleCn9aF9cjH579cKQ.ClE_0, 0); } static N_NIMCALL(void, Marker_tyRef__vFVGpQFCk5fhTm0mbzkdHA)(void* p, NI op) { tyObject_Env_tempdotnim___79a2ITkgWvXcqEY3a5QVCJg* a; a = (tyObject_Env_tempdotnim___79a2ITkgWvXcqEY3a5QVCJg*)p; } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE N_CLOSURE(NI, colonanonymous___Qoz0N6ol9btySew9ahaH0Nfg)(void* ClE_0) { NI result; tyObject_Env_tempdotnim___79a2ITkgWvXcqEY3a5QVCJg* colonenvP_; nimfr_(":anonymous", "/home/runner/work/Nim/Nim/temp.nim"); { result = (NI)0; colonenvP_ = (tyObject_Env_tempdotnim___79a2ITkgWvXcqEY3a5QVCJg*) ClE_0; while (1) { if (!1) goto LA1; { switch ((*colonenvP_).colonstate_) { case -1: goto BeforeRet_; case 0: goto STATE0; case 1: goto STATE1; } STATE0: ; (*colonenvP_).colonstate_ = ((NI) 1); goto LA2; STATE1: ; (*colonenvP_).colonstate_ = ((NI) -1); goto LA2; } LA2: ; } LA1: ; }BeforeRet_: ; popFrame(); return result; } 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); } static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; nimfr_("+%", "/home/runner/.choosenim/toolchains/nim-1.2.18/lib/system/arithm" "etics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("incRef", "/home/runner/.choosenim/toolchains/nim-1.2.18/lib/system/gc.nim"); (*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8)); popFrame(); } static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; nimfr_("-%", "/home/runner/.choosenim/toolchains/nim-1.2.18/lib/system/arithm" "etics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; nimfr_("usrToCell", "/home/runner/.choosenim/toolchains/nim-1.2.18/lib/system/gc.nim"); result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); popFrame(); return result; } static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; nimfr_("<%", "/home/runner/.choosenim/toolchains/nim-1.2.18/lib/system/compar" "isons.nim"); result = (NIM_BOOL)0; result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); popFrame(); return result; } static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("rtlAddZCT", "/home/runner/.choosenim/toolchains/nim-1.2.18/lib/system/gc.nim"); addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c); popFrame(); } static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("decRef", "/home/runner/.choosenim/toolchains/nim-1.2.18/lib/system/gc.nim"); (*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8)); { NIM_BOOL T3_; T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_; rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system(c); } LA4_: ; popFrame(); } static N_INLINE(void, asgnRef)(void** dest, void* src) { nimfr_("asgnRef", "/home/runner/.choosenim/toolchains/nim-1.2.18/lib/system/gc.nim"); { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_; if (!!((src == NIM_NIL))) goto LA3_; T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src); incRef__AT1eRuflKWyTTBdLjEDZbgsystem(T5_); } LA3_: ; { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_; if (!!(((*dest) == NIM_NIL))) goto LA8_; T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest)); decRef__AT1eRuflKWyTTBdLjEDZbg_2system(T10_); } LA8_: ; (*dest) = src; popFrame(); } static N_INLINE(NIM_BOOL, isSome__TIZiy4U9axzGaUr5L1yG8Wwoptions)(tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA self) { NIM_BOOL result; nimfr_("isSome", "/home/runner/.choosenim/toolchains/nim-1.2.18/lib/pure/options." "nim"); result = (NIM_BOOL)0; result = !((self.val.ClP_0 == 0)); popFrame(); return result; } static N_INLINE(void, option__A9cjhBNtCD7R9cwnWn8p9btPwoptions)(tyProc__rXRPg0RCBBkwXNvQ7Df3XQ val, tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA* Result) { nimfr_("option", "/home/runner/.choosenim/toolchains/nim-1.2.18/lib/pure/options." "nim"); chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).val.ClE_0, NIM_NIL); (*Result).val.ClP_0 = NIM_NIL; unsureAsgnRef((void**) (&(*Result).val.ClE_0), val.ClE_0); (*Result).val.ClP_0 = val.ClP_0; popFrame(); } static N_INLINE(NIM_BOOL, isNone__TIZiy4U9axzGaUr5L1yG8Ww_2options)(tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA self) { NIM_BOOL result; nimfr_("isNone", "/home/runner/.choosenim/toolchains/nim-1.2.18/lib/pure/options." "nim"); result = (NIM_BOOL)0; result = (self.val.ClP_0 == 0); popFrame(); return result; } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } N_LIB_PRIVATE void PreMainInner(void) { } 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; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*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) { { TFrame FR_; FR_.len = 0; nimRegisterGlobalMarker(TM__SRd76hP9cMfCzdUO857UhQQ_3); } { tyObject_Env_tempdotnim___79a2ITkgWvXcqEY3a5QVCJg* colonanonymous_; tyProc__rXRPg0RCBBkwXNvQ7Df3XQ T1_; nimfr_("temp", "/home/runner/work/Nim/Nim/temp.nim"); colonanonymous_ = NIM_NIL; colonanonymous_ = (tyObject_Env_tempdotnim___79a2ITkgWvXcqEY3a5QVCJg*) newObj((&NTI__vFVGpQFCk5fhTm0mbzkdHA_), sizeof(tyObject_Env_tempdotnim___79a2ITkgWvXcqEY3a5QVCJg)); (*colonanonymous_).Sup.m_type = (&NTI__79a2ITkgWvXcqEY3a5QVCJg_); nimZeroMem((void*)(&T1_), sizeof(tyProc__rXRPg0RCBBkwXNvQ7Df3XQ)); T1_.ClP_0 = colonanonymous___Qoz0N6ol9btySew9ahaH0Nfg; T1_.ClE_0 = colonanonymous_; asgnRef((void**) (&it__bIjurFmQleCn9aF9cjH579cKQ.ClE_0), T1_.ClE_0); it__bIjurFmQleCn9aF9cjH579cKQ.ClP_0 = T1_.ClP_0; { tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA T4_; NIM_BOOL T5_; nimZeroMem((void*)(&T4_), sizeof(tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA)); option__A9cjhBNtCD7R9cwnWn8p9btPwoptions(it__bIjurFmQleCn9aF9cjH579cKQ, (&T4_)); T5_ = (NIM_BOOL)0; T5_ = isSome__TIZiy4U9axzGaUr5L1yG8Wwoptions(T4_); if (!!(T5_)) goto LA6_; failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__SRd76hP9cMfCzdUO857UhQQ_4)); } LA6_: ; asgnRef((void**) (&it__bIjurFmQleCn9aF9cjH579cKQ.ClE_0), TM__SRd76hP9cMfCzdUO857UhQQ_5.ClE_0); it__bIjurFmQleCn9aF9cjH579cKQ.ClP_0 = TM__SRd76hP9cMfCzdUO857UhQQ_5.ClP_0; { tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA T10_; NIM_BOOL T11_; nimZeroMem((void*)(&T10_), sizeof(tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA)); option__A9cjhBNtCD7R9cwnWn8p9btPwoptions(it__bIjurFmQleCn9aF9cjH579cKQ, (&T10_)); T11_ = (NIM_BOOL)0; T11_ = isNone__TIZiy4U9axzGaUr5L1yG8Ww_2options(T10_); if (!!(T11_)) goto LA12_; failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__SRd76hP9cMfCzdUO857UhQQ_6)); } LA12_: ; popFrame(); } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode* TM__SRd76hP9cMfCzdUO857UhQQ_2_2[2]; static TNimNode TM__SRd76hP9cMfCzdUO857UhQQ_0[5]; NTI__rXRPg0RCBBkwXNvQ7Df3XQ_.size = sizeof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A); NTI__rXRPg0RCBBkwXNvQ7Df3XQ_.kind = 18; NTI__rXRPg0RCBBkwXNvQ7Df3XQ_.base = 0; TM__SRd76hP9cMfCzdUO857UhQQ_2_2[0] = &TM__SRd76hP9cMfCzdUO857UhQQ_0[1]; NTI__vr5DoT1jILTGdRlYv1OYpw_.size = sizeof(void*); NTI__vr5DoT1jILTGdRlYv1OYpw_.kind = 26; NTI__vr5DoT1jILTGdRlYv1OYpw_.base = 0; NTI__vr5DoT1jILTGdRlYv1OYpw_.flags = 3; TM__SRd76hP9cMfCzdUO857UhQQ_0[1].kind = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[1].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field0); TM__SRd76hP9cMfCzdUO857UhQQ_0[1].typ = (&NTI__vr5DoT1jILTGdRlYv1OYpw_); TM__SRd76hP9cMfCzdUO857UhQQ_0[1].name = "Field0"; TM__SRd76hP9cMfCzdUO857UhQQ_2_2[1] = &TM__SRd76hP9cMfCzdUO857UhQQ_0[2]; NTI__diB2NTuAIWY0FO9c5IUJRGg_.size = sizeof(tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg); NTI__diB2NTuAIWY0FO9c5IUJRGg_.kind = 17; NTI__diB2NTuAIWY0FO9c5IUJRGg_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_); NTI__diB2NTuAIWY0FO9c5IUJRGg_.flags = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[3].len = 0; TM__SRd76hP9cMfCzdUO857UhQQ_0[3].kind = 2; NTI__diB2NTuAIWY0FO9c5IUJRGg_.node = &TM__SRd76hP9cMfCzdUO857UhQQ_0[3]; NTI__HsJiUUcO9cHBdUCi0HwkSTA_.size = sizeof(tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg*); NTI__HsJiUUcO9cHBdUCi0HwkSTA_.kind = 22; NTI__HsJiUUcO9cHBdUCi0HwkSTA_.base = (&NTI__diB2NTuAIWY0FO9c5IUJRGg_); NTI__HsJiUUcO9cHBdUCi0HwkSTA_.marker = Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA; TM__SRd76hP9cMfCzdUO857UhQQ_0[2].kind = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[2].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field1); TM__SRd76hP9cMfCzdUO857UhQQ_0[2].typ = (&NTI__HsJiUUcO9cHBdUCi0HwkSTA_); TM__SRd76hP9cMfCzdUO857UhQQ_0[2].name = "Field1"; TM__SRd76hP9cMfCzdUO857UhQQ_0[0].len = 2; TM__SRd76hP9cMfCzdUO857UhQQ_0[0].kind = 2; TM__SRd76hP9cMfCzdUO857UhQQ_0[0].sons = &TM__SRd76hP9cMfCzdUO857UhQQ_2_2[0]; NTI__rXRPg0RCBBkwXNvQ7Df3XQ_.node = &TM__SRd76hP9cMfCzdUO857UhQQ_0[0]; NTI__79a2ITkgWvXcqEY3a5QVCJg_.size = sizeof(tyObject_Env_tempdotnim___79a2ITkgWvXcqEY3a5QVCJg); NTI__79a2ITkgWvXcqEY3a5QVCJg_.kind = 17; NTI__79a2ITkgWvXcqEY3a5QVCJg_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_); NTI__79a2ITkgWvXcqEY3a5QVCJg_.flags = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[4].kind = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[4].offset = offsetof(tyObject_Env_tempdotnim___79a2ITkgWvXcqEY3a5QVCJg, colonstate_); TM__SRd76hP9cMfCzdUO857UhQQ_0[4].typ = (&NTI__xHTZrq9aYs6boc9bCba0JbpQ_); TM__SRd76hP9cMfCzdUO857UhQQ_0[4].name = ":state"; NTI__79a2ITkgWvXcqEY3a5QVCJg_.node = &TM__SRd76hP9cMfCzdUO857UhQQ_0[4]; NTI__vFVGpQFCk5fhTm0mbzkdHA_.size = sizeof(tyObject_Env_tempdotnim___79a2ITkgWvXcqEY3a5QVCJg*); NTI__vFVGpQFCk5fhTm0mbzkdHA_.kind = 22; NTI__vFVGpQFCk5fhTm0mbzkdHA_.base = (&NTI__79a2ITkgWvXcqEY3a5QVCJg_); NTI__vFVGpQFCk5fhTm0mbzkdHA_.marker = Marker_tyRef__vFVGpQFCk5fhTm0mbzkdHA; } ```

Stats

  • Started 2023-11-14T01:35:55
  • Finished 2023-11-14T01:35:55
  • Duration
1.0.10 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:nimDebug -d:nimDebugDlOpen -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --lineTrace:off --nimcache:/home/runner/work/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim /home/runner/work/Nim/Nim/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.0.10/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.0.10/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.0.10/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/Nim/Nim/temp.nim(5, 8) `it.option.isNone` [AssertionError] Error: execution of an external program failed: '/home/runner/work/Nim/Nim/temp ' ```

IR

Compiled filesize 92.53 Kb (94,752 bytes) ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #include # 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 tyTuple__JfHvHzMrhKkWAUvQKe0i1A tyTuple__JfHvHzMrhKkWAUvQKe0i1A; typedef struct tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg; typedef struct TNimType TNimType; typedef struct TNimNode TNimNode; typedef struct RootObj RootObj; typedef struct tyObject_Env_tempdotnim___0SedkkGigvddPILsQfavyQ tyObject_Env_tempdotnim___0SedkkGigvddPILsQfavyQ; 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_Option__3LAuU9aMYCFn3X9cjTV0QBeA tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; typedef struct { N_NIMCALL_PTR(NI, ClP_0) (void* ClE_0); void* ClE_0; } tyProc__rXRPg0RCBBkwXNvQ7Df3XQ; struct tyTuple__JfHvHzMrhKkWAUvQKe0i1A { void* Field0; tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg* Field1; }; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct RootObj { TNimType* m_type; }; struct tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg { RootObj Sup; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct tyObject_Env_tempdotnim___0SedkkGigvddPILsQfavyQ { RootObj Sup; NI colonstate_; }; 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; }; 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; }; 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; NI gcThreadId; }; struct tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA { tyProc__rXRPg0RCBBkwXNvQ7Df3XQ val; NIM_BOOL has; }; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; static N_NIMCALL(void, Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA)(void* p, NI op); N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, TM__SRd76hP9cMfCzdUO857UhQQ_3)(void); N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); static N_NIMCALL(void, Marker_tyRef__I7ieha9bUiMWvgfE122jDoQ)(void* p, NI op); N_NIMCALL(void*, newObj)(TNimType* typ, NI size); N_LIB_PRIVATE N_CLOSURE(NI, colonanonymous___Qoz0N6ol9btySew9ahaH0Nfg)(void* ClE_0); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); static N_INLINE(void, nimZeroMem)(void* p, NI size); static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size); static N_INLINE(void, asgnRef)(void** dest, void* src); static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr); static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NIM_BOOL, isSome__TIZiy4U9axzGaUr5L1yG8Wwoptions)(tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA self); N_LIB_PRIVATE N_NIMCALL(void, option__RnL6IVQmEyh7HXvV6Vw7Dw)(tyProc__rXRPg0RCBBkwXNvQ7Df3XQ val, tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA* Result); N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); static N_INLINE(NIM_BOOL, isNone__TIZiy4U9axzGaUr5L1yG8Ww_2options)(tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA self); 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, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); tyProc__rXRPg0RCBBkwXNvQ7Df3XQ it__bIjurFmQleCn9aF9cjH579cKQ; TNimType NTI__rXRPg0RCBBkwXNvQ7Df3XQ_; TNimType NTI__vr5DoT1jILTGdRlYv1OYpw_; extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_; TNimType NTI__diB2NTuAIWY0FO9c5IUJRGg_; TNimType NTI__HsJiUUcO9cHBdUCi0HwkSTA_; TNimType NTI__0SedkkGigvddPILsQfavyQ_; extern TNimType NTI__xHTZrq9aYs6boc9bCba0JbpQ_; TNimType NTI__I7ieha9bUiMWvgfE122jDoQ_; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q; STRING_LITERAL(TM__SRd76hP9cMfCzdUO857UhQQ_4, "/home/runner/work/Nim/Nim/temp.nim(3, 8) `it.option.isSome` ", 60); static NIM_CONST tyProc__rXRPg0RCBBkwXNvQ7Df3XQ TM__SRd76hP9cMfCzdUO857UhQQ_5 = {NIM_NIL,NIM_NIL}; STRING_LITERAL(TM__SRd76hP9cMfCzdUO857UhQQ_6, "/home/runner/work/Nim/Nim/temp.nim(5, 8) `it.option.isNone` ", 60); static N_NIMCALL(void, Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA)(void* p, NI op) { tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg* a; a = (tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg*)p; } static N_NIMCALL(void, TM__SRd76hP9cMfCzdUO857UhQQ_3)(void) { nimGCvisit((void*)it__bIjurFmQleCn9aF9cjH579cKQ.ClE_0, 0); } static N_NIMCALL(void, Marker_tyRef__I7ieha9bUiMWvgfE122jDoQ)(void* p, NI op) { tyObject_Env_tempdotnim___0SedkkGigvddPILsQfavyQ* a; a = (tyObject_Env_tempdotnim___0SedkkGigvddPILsQfavyQ*)p; } 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; } N_LIB_PRIVATE N_CLOSURE(NI, colonanonymous___Qoz0N6ol9btySew9ahaH0Nfg)(void* ClE_0) { NI result; tyObject_Env_tempdotnim___0SedkkGigvddPILsQfavyQ* colonenvP_; nimfr_(":anonymous", "/home/runner/work/Nim/Nim/temp.nim"); { result = (NI)0; colonenvP_ = (tyObject_Env_tempdotnim___0SedkkGigvddPILsQfavyQ*) ClE_0; while (1) { if (!1) goto LA1; { switch ((*colonenvP_).colonstate_) { case -1: goto BeforeRet_; case 0: goto STATE0; case 1: goto STATE1; } STATE0: ; (*colonenvP_).colonstate_ = ((NI) 1); goto LA2; STATE1: ; (*colonenvP_).colonstate_ = ((NI) -1); goto LA2; } LA2: ; } LA1: ; }BeforeRet_: ; popFrame(); return result; } 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); } static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("incRef", "/home/runner/.choosenim/toolchains/nim-1.0.10/lib/system/gc.nim"); (*c).refcount = (NI)((NU64)((*c).refcount) + (NU64)(((NI) 8))); popFrame(); } static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; nimfr_("usrToCell", "/home/runner/.choosenim/toolchains/nim-1.0.10/lib/system/gc.nim"); result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) ((NI)((NU64)(((NI) (ptrdiff_t) (usr))) - (NU64)(((NI) 16))))); popFrame(); return result; } static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("rtlAddZCT", "/home/runner/.choosenim/toolchains/nim-1.0.10/lib/system/gc.nim"); addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c); popFrame(); } static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("decRef", "/home/runner/.choosenim/toolchains/nim-1.0.10/lib/system/gc.nim"); (*c).refcount = (NI)((NU64)((*c).refcount) - (NU64)(((NI) 8))); { if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3_; rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system(c); } LA3_: ; popFrame(); } static N_INLINE(void, asgnRef)(void** dest, void* src) { nimfr_("asgnRef", "/home/runner/.choosenim/toolchains/nim-1.0.10/lib/system/gc.nim"); { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_; if (!!((src == NIM_NIL))) goto LA3_; T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src); incRef__AT1eRuflKWyTTBdLjEDZbgsystem(T5_); } LA3_: ; { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_; if (!!(((*dest) == NIM_NIL))) goto LA8_; T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest)); decRef__AT1eRuflKWyTTBdLjEDZbg_2system(T10_); } LA8_: ; (*dest) = src; popFrame(); } static N_INLINE(NIM_BOOL, isSome__TIZiy4U9axzGaUr5L1yG8Wwoptions)(tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA self) { NIM_BOOL result; nimfr_("isSome", "/home/runner/.choosenim/toolchains/nim-1.0.10/lib/pure/options." "nim"); result = (NIM_BOOL)0; result = self.has; popFrame(); return result; } static N_INLINE(NIM_BOOL, isNone__TIZiy4U9axzGaUr5L1yG8Ww_2options)(tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA self) { NIM_BOOL result; nimfr_("isNone", "/home/runner/.choosenim/toolchains/nim-1.0.10/lib/pure/options." "nim"); result = (NIM_BOOL)0; result = !(self.has); popFrame(); return result; } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } void PreMainInner(void) { } int cmdCount; char** cmdLine; char** gEnv; void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); stdlib_optionsDatInit000(); tempDatInit000(); (*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_Env_tempdotnim___0SedkkGigvddPILsQfavyQ* colonanonymous_; tyProc__rXRPg0RCBBkwXNvQ7Df3XQ T1_; nimfr_("temp", "/home/runner/work/Nim/Nim/temp.nim"); nimRegisterGlobalMarker(TM__SRd76hP9cMfCzdUO857UhQQ_3); colonanonymous_ = (tyObject_Env_tempdotnim___0SedkkGigvddPILsQfavyQ*)0; colonanonymous_ = (tyObject_Env_tempdotnim___0SedkkGigvddPILsQfavyQ*) newObj((&NTI__I7ieha9bUiMWvgfE122jDoQ_), sizeof(tyObject_Env_tempdotnim___0SedkkGigvddPILsQfavyQ)); (*colonanonymous_).Sup.m_type = (&NTI__0SedkkGigvddPILsQfavyQ_); nimZeroMem((void*)(&T1_), sizeof(tyProc__rXRPg0RCBBkwXNvQ7Df3XQ)); T1_.ClP_0 = colonanonymous___Qoz0N6ol9btySew9ahaH0Nfg; T1_.ClE_0 = colonanonymous_; asgnRef((void**) (&it__bIjurFmQleCn9aF9cjH579cKQ.ClE_0), T1_.ClE_0); it__bIjurFmQleCn9aF9cjH579cKQ.ClP_0 = T1_.ClP_0; { tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA T4_; NIM_BOOL T5_; nimZeroMem((void*)(&T4_), sizeof(tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA)); option__RnL6IVQmEyh7HXvV6Vw7Dw(it__bIjurFmQleCn9aF9cjH579cKQ, (&T4_)); T5_ = (NIM_BOOL)0; T5_ = isSome__TIZiy4U9axzGaUr5L1yG8Wwoptions(T4_); if (!!(T5_)) goto LA6_; failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__SRd76hP9cMfCzdUO857UhQQ_4)); } LA6_: ; asgnRef((void**) (&it__bIjurFmQleCn9aF9cjH579cKQ.ClE_0), TM__SRd76hP9cMfCzdUO857UhQQ_5.ClE_0); it__bIjurFmQleCn9aF9cjH579cKQ.ClP_0 = TM__SRd76hP9cMfCzdUO857UhQQ_5.ClP_0; { tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA T10_; NIM_BOOL T11_; nimZeroMem((void*)(&T10_), sizeof(tyObject_Option__3LAuU9aMYCFn3X9cjTV0QBeA)); option__RnL6IVQmEyh7HXvV6Vw7Dw(it__bIjurFmQleCn9aF9cjH579cKQ, (&T10_)); T11_ = (NIM_BOOL)0; T11_ = isNone__TIZiy4U9axzGaUr5L1yG8Ww_2options(T10_); if (!!(T11_)) goto LA12_; failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__SRd76hP9cMfCzdUO857UhQQ_6)); } LA12_: ; popFrame(); } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode* TM__SRd76hP9cMfCzdUO857UhQQ_2_2[2]; static TNimNode TM__SRd76hP9cMfCzdUO857UhQQ_0[5]; NTI__rXRPg0RCBBkwXNvQ7Df3XQ_.size = sizeof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A); NTI__rXRPg0RCBBkwXNvQ7Df3XQ_.kind = 18; NTI__rXRPg0RCBBkwXNvQ7Df3XQ_.base = 0; TM__SRd76hP9cMfCzdUO857UhQQ_2_2[0] = &TM__SRd76hP9cMfCzdUO857UhQQ_0[1]; NTI__vr5DoT1jILTGdRlYv1OYpw_.size = sizeof(void*); NTI__vr5DoT1jILTGdRlYv1OYpw_.kind = 26; NTI__vr5DoT1jILTGdRlYv1OYpw_.base = 0; NTI__vr5DoT1jILTGdRlYv1OYpw_.flags = 3; TM__SRd76hP9cMfCzdUO857UhQQ_0[1].kind = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[1].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field0); TM__SRd76hP9cMfCzdUO857UhQQ_0[1].typ = (&NTI__vr5DoT1jILTGdRlYv1OYpw_); TM__SRd76hP9cMfCzdUO857UhQQ_0[1].name = "Field0"; TM__SRd76hP9cMfCzdUO857UhQQ_2_2[1] = &TM__SRd76hP9cMfCzdUO857UhQQ_0[2]; NTI__diB2NTuAIWY0FO9c5IUJRGg_.size = sizeof(tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg); NTI__diB2NTuAIWY0FO9c5IUJRGg_.kind = 17; NTI__diB2NTuAIWY0FO9c5IUJRGg_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_); NTI__diB2NTuAIWY0FO9c5IUJRGg_.flags = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[3].len = 0; TM__SRd76hP9cMfCzdUO857UhQQ_0[3].kind = 2; NTI__diB2NTuAIWY0FO9c5IUJRGg_.node = &TM__SRd76hP9cMfCzdUO857UhQQ_0[3]; NTI__HsJiUUcO9cHBdUCi0HwkSTA_.size = sizeof(tyObject_Env_tempdotnim___diB2NTuAIWY0FO9c5IUJRGg*); NTI__HsJiUUcO9cHBdUCi0HwkSTA_.kind = 22; NTI__HsJiUUcO9cHBdUCi0HwkSTA_.base = (&NTI__diB2NTuAIWY0FO9c5IUJRGg_); NTI__HsJiUUcO9cHBdUCi0HwkSTA_.marker = Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA; TM__SRd76hP9cMfCzdUO857UhQQ_0[2].kind = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[2].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field1); TM__SRd76hP9cMfCzdUO857UhQQ_0[2].typ = (&NTI__HsJiUUcO9cHBdUCi0HwkSTA_); TM__SRd76hP9cMfCzdUO857UhQQ_0[2].name = "Field1"; TM__SRd76hP9cMfCzdUO857UhQQ_0[0].len = 2; TM__SRd76hP9cMfCzdUO857UhQQ_0[0].kind = 2; TM__SRd76hP9cMfCzdUO857UhQQ_0[0].sons = &TM__SRd76hP9cMfCzdUO857UhQQ_2_2[0]; NTI__rXRPg0RCBBkwXNvQ7Df3XQ_.node = &TM__SRd76hP9cMfCzdUO857UhQQ_0[0]; NTI__0SedkkGigvddPILsQfavyQ_.size = sizeof(tyObject_Env_tempdotnim___0SedkkGigvddPILsQfavyQ); NTI__0SedkkGigvddPILsQfavyQ_.kind = 17; NTI__0SedkkGigvddPILsQfavyQ_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_); NTI__0SedkkGigvddPILsQfavyQ_.flags = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[4].kind = 1; TM__SRd76hP9cMfCzdUO857UhQQ_0[4].offset = offsetof(tyObject_Env_tempdotnim___0SedkkGigvddPILsQfavyQ, colonstate_); TM__SRd76hP9cMfCzdUO857UhQQ_0[4].typ = (&NTI__xHTZrq9aYs6boc9bCba0JbpQ_); TM__SRd76hP9cMfCzdUO857UhQQ_0[4].name = ":state"; NTI__0SedkkGigvddPILsQfavyQ_.node = &TM__SRd76hP9cMfCzdUO857UhQQ_0[4]; NTI__I7ieha9bUiMWvgfE122jDoQ_.size = sizeof(tyObject_Env_tempdotnim___0SedkkGigvddPILsQfavyQ*); NTI__I7ieha9bUiMWvgfE122jDoQ_.kind = 22; NTI__I7ieha9bUiMWvgfE122jDoQ_.base = (&NTI__0SedkkGigvddPILsQfavyQ_); NTI__I7ieha9bUiMWvgfE122jDoQ_.marker = Marker_tyRef__I7ieha9bUiMWvgfE122jDoQ; } ```

Stats

  • Started 2023-11-14T01:35:57
  • Finished 2023-11-14T01:35:57
  • Duration

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("options") ) ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("it"), newEmptyNode(), nnkIteratorDef.newTree( newEmptyNode(), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("int") ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ), nnkCommand.newTree( newIdentNode("assert"), nnkDotExpr.newTree( nnkDotExpr.newTree( newIdentNode("it"), newIdentNode("option") ), newIdentNode("isSome") ) ), nnkAsgn.newTree( newIdentNode("it"), newNilLit() ), nnkCommand.newTree( newIdentNode("assert"), nnkDotExpr.newTree( nnkDotExpr.newTree( newIdentNode("it"), newIdentNode("option") ), newIdentNode("isNone") ) ) ) ```
#1bb117cd7 :arrow_right: :bug:

Diagnostics

metagn introduced a bug at 2023-04-11 10:23:41 +0300 on commit #1bb117cd7 with message: ``` `proc` typeclass accounts for `iterator`, call conventions + `nil` fix + document typeclass AST (#21629) * test fix #16546 #16548 + another issue * please don't tell me other packages do this * fix CI + test typeclass callconv pragma * better logic in parser * docs and changelog ``` The bug is in the files: ``` changelogs/changelog_2_0_0.md compiler/parser.nim compiler/semexprs.nim compiler/semtypes.nim compiler/sigmatch.nim compiler/typesrenderer.nim doc/astspec.txt doc/manual.md lib/pure/hashes.nim lib/system.nim tests/typerel/tproctypeclass.nim tests/typerel/ttynilinstantiation.nim ``` The bug can be in the commits: (Diagnostics sometimes off-by-one).
Stats
  • GCC 11.4.0
  • Clang 14.0.0
  • NodeJS 18.2
  • Created 2023-11-14T01:35:13Z
  • Comments 1
  • Commands nim c --run -d:nimDebug -d:nimDebugDlOpen -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --lineTrace:off --nimcache:/home/runner/work/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim

:robot: Bug found in 31 minutes bisecting 1923 commits at 61 commits per second