Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Generated by Nim Compiler v1.6.6 */
- /* Compiled for: Linux, amd64, gcc */
- /* Command for C compiler:
- g++ -c -std=gnu++14 -funsigned-char -w -fmax-errors=3 -fpermissive -I/home/jose/.choosenim/toolchains/nim-1.6.6/lib -I/home/jose/src/casadi.nim/examples -o /home/jose/src/casadi.nim/examples/tmp/@mcppmap.nim.cpp.o /home/jose/src/casadi.nim/examples/tmp/@mcppmap.nim.cpp */
- #define NIM_INTBITS 64
- #include "nimbase.h"
- #include <map>
- #include <utility>
- #include <string.h>
- #include <iterator>
- #undef LANGUAGE_C
- #undef MIPSEB
- #undef MIPSEL
- #undef PPC
- #undef R3000
- #undef R4000
- #undef i386
- #undef linux
- #undef mips
- #undef near
- #undef far
- #undef powerpc
- #undef unix
- # define nimfr_(proc, file) \
- TFrame FR_; \
- FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_);
- # define nimfrs_(proc, file, slots, length) \
- struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \
- FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_);
- # define nimln_(n, file) \
- FR_.line = n; FR_.filename = file;
- struct NimStringDesc;
- struct TGenericSeq;
- struct tyTuple__XOVT24GHXwqiEj5GCsEGCA;
- struct TNimType;
- struct TNimNode;
- struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
- struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
- struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
- struct tyObject_GcStack__7fytPA5bBsob6See21YMRA;
- struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
- struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
- struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
- struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
- struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
- struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
- struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
- struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
- struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
- struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
- struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
- struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
- struct TGenericSeq {
- NI len;
- NI reserved;
- };
- struct NimStringDesc : public TGenericSeq {
- NIM_CHAR data[SEQ_DECL_SIZE];
- };
- typedef std::map<NimStringDesc* COMMA NI> TY__PUp8U40PI8I49a4xeRsieHA;
- typedef std::pair<NimStringDesc* COMMA NI> TY__2Fknd9cZ9adGbrVR9ctyJBfug;
- typedef std::map<NimStringDesc*,NI>::iterator TY__w8FfOdhe7n69b0RG8dQFYPQ;
- typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1];
- struct tyTuple__XOVT24GHXwqiEj5GCsEGCA {
- NimStringDesc* Field0;
- NI Field1;
- };
- typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
- typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
- typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
- typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
- struct TNimType {
- NI size;
- 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;
- };
- typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void);
- 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;
- };
- static N_INLINE(void, nimZeroMem)(void* p, NI size);
- static N_INLINE(void, nimSetMem__systemZmemory_7)(void* a, int v, NI size);
- N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringDesc** args, NI argsLen_0);
- N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___systemZdollars_3)(NI x);
- N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
- static N_NIMCALL(void, TM__WyMGbWGgir2BymXkFO5yxQ_6)(void);
- N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc);
- N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___cppmap_232)(tyTuple__XOVT24GHXwqiEj5GCsEGCA x);
- static N_INLINE(void, asgnRef)(void** dest, void* src);
- static N_INLINE(void, incRef__system_5351)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
- static N_INLINE(NI, pluspercent___system_696)(NI x, NI y);
- static N_INLINE(void, nimFrame)(TFrame* s);
- N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2993)(void);
- static N_INLINE(void, popFrame)(void);
- static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__system_5313)(void* usr);
- static N_INLINE(NI, minuspercent___system_716)(NI x, NI y);
- static N_INLINE(void, decRef__system_5358)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
- static N_INLINE(NIM_BOOL, ltpercent___system_1005)(NI x, NI y);
- static N_INLINE(void, rtlAddZCT__system_5356)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
- N_LIB_PRIVATE N_NOINLINE(void, addZCT__system_5307)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w& s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
- N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
- 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, cppmapDatInit000)(void);
- N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void);
- STRING_LITERAL(TM__WyMGbWGgir2BymXkFO5yxQ_2, "jose", 4);
- STRING_LITERAL(TM__WyMGbWGgir2BymXkFO5yxQ_3, "ana", 3);
- STRING_LITERAL(TM__WyMGbWGgir2BymXkFO5yxQ_4, "maria", 5);
- N_LIB_PRIVATE TNimType NTItupleLkey58string_value58intT__XOVT24GHXwqiEj5GCsEGCA_;
- extern TNimType NTIstring__77mFvmsOLKik79ci2hXkHEg_;
- extern TNimType NTIint__rR5Bzr1D5krxoo1NcNyeMA_;
- N_LIB_PRIVATE TY__PUp8U40PI8I49a4xeRsieHA mymap__cppmap_71;
- N_LIB_PRIVATE TY__2Fknd9cZ9adGbrVR9ctyJBfug tmp1__cppmap_77;
- N_LIB_PRIVATE TY__w8FfOdhe7n69b0RG8dQFYPQ ini__cppmap_155;
- N_LIB_PRIVATE TY__w8FfOdhe7n69b0RG8dQFYPQ fin__cppmap_160;
- N_LIB_PRIVATE tyTuple__XOVT24GHXwqiEj5GCsEGCA i__cppmap_343;
- 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__1TRH1TZMaVZTnLNcIHuNFQ gch__system_5260;
- static N_INLINE(void, nimSetMem__systemZmemory_7)(void* a, int v, NI size) {
- void* 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_NIMCALL(void, TM__WyMGbWGgir2BymXkFO5yxQ_6)(void) {
- nimGCvisit((void*)i__cppmap_343.Field0, 0);
- }
- 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_2993();
- } }
- LA8_: ;
- }
- static N_INLINE(void, popFrame)(void) {
- framePtr__system_2564 = (*framePtr__system_2564).prev;
- }
- static N_INLINE(NI, pluspercent___system_696)(NI x, NI y) {
- NI result;
- nimfr_("+%", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/arithmetics.nim");
- result = (NI)0;
- nimln_(403, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/arithmetics.nim");
- nimln_(407, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/arithmetics.nim");
- result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y))))));
- popFrame();
- return result;
- }
- static N_INLINE(void, incRef__system_5351)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
- nimfr_("incRef", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
- nimln_(231, "/home/jose/.choosenim/toolchains/nim-1.6.6/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/jose/.choosenim/toolchains/nim-1.6.6/lib/system/arithmetics.nim");
- result = (NI)0;
- nimln_(414, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/arithmetics.nim");
- nimln_(418, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/arithmetics.nim");
- result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y))))));
- popFrame();
- return result;
- }
- static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__system_5313)(void* usr) {
- tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result;
- nimfr_("usrToCell", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
- result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
- nimln_(177, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
- NI T1_ = minuspercent___system_716(((NI) (ptrdiff_t) (usr)), ((NI) 16));
- result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_));
- popFrame();
- return result;
- }
- static N_INLINE(NIM_BOOL, ltpercent___system_1005)(NI x, NI y) {
- NIM_BOOL result;
- nimfr_("<%", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/comparisons.nim");
- result = (NIM_BOOL)0;
- nimln_(186, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/comparisons.nim");
- nimln_(188, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/comparisons.nim");
- result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y))));
- popFrame();
- return result;
- }
- static N_INLINE(void, rtlAddZCT__system_5356)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
- nimfr_("rtlAddZCT", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
- nimln_(243, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
- addZCT__system_5307(gch__system_5260.zct, c);
- popFrame();
- }
- static N_INLINE(void, decRef__system_5358)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
- nimfr_("decRef", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
- nimln_(248, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
- (*c).refcount = minuspercent___system_716((*c).refcount, ((NI) 8));
- nimln_(249, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
- {
- NIM_BOOL T3_ = ltpercent___system_1005((*c).refcount, ((NI) 8));
- if (!T3_) goto LA4_;
- { nimln_(250, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
- rtlAddZCT__system_5356(c);
- } }
- LA4_: ;
- popFrame();
- }
- static N_INLINE(void, asgnRef)(void** dest, void* src) {
- nimfr_("asgnRef", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
- nimln_(286, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
- {
- if (!!((src == NIM_NIL))) goto LA3_;
- { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_ = usrToCell__system_5313(src);
- incRef__system_5351(T5_);
- } }
- LA3_: ;
- nimln_(287, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
- {
- if (!!(((*dest) == NIM_NIL))) goto LA8_;
- { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_ = usrToCell__system_5313((*dest));
- decRef__system_5358(T10_);
- } }
- LA8_: ;
- nimln_(288, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
- (*dest) = src;
- popFrame();
- }
- 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();
- cppmapDatInit000();
- (*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__WyMGbWGgir2BymXkFO5yxQ_6);
- }/* preInitProc end */
- {
- tyArray__nHXaesL0DJZHyVS07ARPRA T1_;
- tyArray__nHXaesL0DJZHyVS07ARPRA T2_;
- nimfr_("cppmap", "/home/jose/src/casadi.nim/examples/cppmap.nim");
- nimln_(78, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- tmp1__cppmap_77 = std::make_pair(((NimStringDesc*) &TM__WyMGbWGgir2BymXkFO5yxQ_2), ((NI) 10));
- nimln_(79, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- mymap__cppmap_71.insert(tmp1__cppmap_77);
- nimln_(80, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- mymap__cppmap_71.insert(std::make_pair(((NimStringDesc*) &TM__WyMGbWGgir2BymXkFO5yxQ_3), ((NI) 20)));
- nimln_(81, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- mymap__cppmap_71.insert(std::make_pair(((NimStringDesc*) &TM__WyMGbWGgir2BymXkFO5yxQ_4), ((NI) 30)));
- nimln_(82, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- mymap__cppmap_71[((NimStringDesc*) &TM__WyMGbWGgir2BymXkFO5yxQ_2)] = ((NI) 15);
- nimln_(84, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- ini__cppmap_155 = mymap__cppmap_71.begin();
- nimln_(85, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- fin__cppmap_160 = mymap__cppmap_71.end();
- nimln_(86, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- nimZeroMem((void*)T1_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
- T1_[0] = ini__cppmap_155->first;
- echoBinSafe(T1_, 1);
- nimln_(87, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- nimZeroMem((void*)T2_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
- T2_[0] = dollar___systemZdollars_3(ini__cppmap_155->second);
- echoBinSafe(T2_, 1);
- {
- tyTuple__XOVT24GHXwqiEj5GCsEGCA result;
- TY__w8FfOdhe7n69b0RG8dQFYPQ* tmp;
- tyArray__nHXaesL0DJZHyVS07ARPRA T4_;
- tyTuple__XOVT24GHXwqiEj5GCsEGCA T5_;
- tyArray__nHXaesL0DJZHyVS07ARPRA T6_;
- tyArray__nHXaesL0DJZHyVS07ARPRA T7_;
- tyTuple__XOVT24GHXwqiEj5GCsEGCA T8_;
- tyArray__nHXaesL0DJZHyVS07ARPRA T9_;
- nimZeroMem((void*)(&result), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
- nimln_(62, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- TY__w8FfOdhe7n69b0RG8dQFYPQ ini = mymap__cppmap_71.begin();
- tmp = (TY__w8FfOdhe7n69b0RG8dQFYPQ*)0;
- nimln_(64, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- nimZeroMem((void*)T4_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
- nimZeroMem((void*)(&T5_), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
- T5_.Field0 = ini->first;
- T5_.Field1 = ini->second;
- T4_[0] = dollar___cppmap_232(T5_);
- echoBinSafe(T4_, 1);
- nimln_(88, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- nimln_(65, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- asgnRef((void**) (&i__cppmap_343.Field0), ini->first);
- i__cppmap_343.Field1 = ini->second;
- nimln_(88, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- nimZeroMem((void*)T6_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
- T6_[0] = copyString(i__cppmap_343.Field0);
- echoBinSafe(T6_, 1);
- nimln_(66, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- ini.operator++();
- nimln_(67, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- nimZeroMem((void*)T7_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
- nimZeroMem((void*)(&T8_), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
- T8_.Field0 = ini->first;
- T8_.Field1 = ini->second;
- T7_[0] = dollar___cppmap_232(T8_);
- echoBinSafe(T7_, 1);
- nimln_(88, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- nimln_(68, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- asgnRef((void**) (&i__cppmap_343.Field0), ini->first);
- i__cppmap_343.Field1 = ini->second;
- nimln_(88, "/home/jose/src/casadi.nim/examples/cppmap.nim");
- nimZeroMem((void*)T9_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
- T9_[0] = copyString(i__cppmap_343.Field0);
- echoBinSafe(T9_, 1);
- }
- popFrame();
- }
- }
- N_LIB_PRIVATE N_NIMCALL(void, cppmapDatInit000)(void) {
- static TNimNode* TM__WyMGbWGgir2BymXkFO5yxQ_5_2[2];
- static TNimNode TM__WyMGbWGgir2BymXkFO5yxQ_0[3];
- NTItupleLkey58string_value58intT__XOVT24GHXwqiEj5GCsEGCA_.size = sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA);
- NTItupleLkey58string_value58intT__XOVT24GHXwqiEj5GCsEGCA_.align = NIM_ALIGNOF(tyTuple__XOVT24GHXwqiEj5GCsEGCA);
- NTItupleLkey58string_value58intT__XOVT24GHXwqiEj5GCsEGCA_.kind = 18;
- NTItupleLkey58string_value58intT__XOVT24GHXwqiEj5GCsEGCA_.base = 0;
- TM__WyMGbWGgir2BymXkFO5yxQ_5_2[0] = &TM__WyMGbWGgir2BymXkFO5yxQ_0[1];
- TM__WyMGbWGgir2BymXkFO5yxQ_0[1].kind = 1;
- TM__WyMGbWGgir2BymXkFO5yxQ_0[1].offset = offsetof(tyTuple__XOVT24GHXwqiEj5GCsEGCA, Field0);
- TM__WyMGbWGgir2BymXkFO5yxQ_0[1].typ = (&NTIstring__77mFvmsOLKik79ci2hXkHEg_);
- TM__WyMGbWGgir2BymXkFO5yxQ_0[1].name = "Field0";
- TM__WyMGbWGgir2BymXkFO5yxQ_5_2[1] = &TM__WyMGbWGgir2BymXkFO5yxQ_0[2];
- TM__WyMGbWGgir2BymXkFO5yxQ_0[2].kind = 1;
- TM__WyMGbWGgir2BymXkFO5yxQ_0[2].offset = offsetof(tyTuple__XOVT24GHXwqiEj5GCsEGCA, Field1);
- TM__WyMGbWGgir2BymXkFO5yxQ_0[2].typ = (&NTIint__rR5Bzr1D5krxoo1NcNyeMA_);
- TM__WyMGbWGgir2BymXkFO5yxQ_0[2].name = "Field1";
- TM__WyMGbWGgir2BymXkFO5yxQ_0[0].len = 2; TM__WyMGbWGgir2BymXkFO5yxQ_0[0].kind = 2; TM__WyMGbWGgir2BymXkFO5yxQ_0[0].sons = &TM__WyMGbWGgir2BymXkFO5yxQ_5_2[0];
- NTItupleLkey58string_value58intT__XOVT24GHXwqiEj5GCsEGCA_.node = &TM__WyMGbWGgir2BymXkFO5yxQ_0[0];
- }
Add Comment
Please, Sign In to add comment