mantielero

Untitled

Oct 11th, 2022
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 19.95 KB | None | 0 0
  1. /* Generated by Nim Compiler v1.6.6 */
  2. /* Compiled for: Linux, amd64, gcc */
  3. /* Command for C compiler:
  4.    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 */
  5. #define NIM_INTBITS 64
  6.  
  7. #include "nimbase.h"
  8. #include <map>
  9. #include <utility>
  10. #include <string.h>
  11. #include <iterator>
  12. #undef LANGUAGE_C
  13. #undef MIPSEB
  14. #undef MIPSEL
  15. #undef PPC
  16. #undef R3000
  17. #undef R4000
  18. #undef i386
  19. #undef linux
  20. #undef mips
  21. #undef near
  22. #undef far
  23. #undef powerpc
  24. #undef unix
  25.   #  define nimfr_(proc, file) \
  26.       TFrame FR_; \
  27.       FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_);
  28.  
  29.   #  define nimfrs_(proc, file, slots, length) \
  30.       struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \
  31.       FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_);
  32.  
  33.   #  define nimln_(n, file) \
  34.       FR_.line = n; FR_.filename = file;
  35.   struct NimStringDesc;
  36. struct TGenericSeq;
  37. struct tyTuple__XOVT24GHXwqiEj5GCsEGCA;
  38. struct TNimType;
  39. struct TNimNode;
  40. struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
  41. struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
  42. struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
  43. struct tyObject_GcStack__7fytPA5bBsob6See21YMRA;
  44. struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
  45. struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
  46. struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
  47. struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
  48. struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
  49. struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
  50. struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
  51. struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
  52. struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
  53. struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
  54. struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
  55. struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
  56. struct TGenericSeq {
  57. NI len;
  58. NI reserved;
  59. };
  60. struct NimStringDesc : public TGenericSeq {
  61. NIM_CHAR data[SEQ_DECL_SIZE];
  62. };
  63. typedef std::map<NimStringDesc* COMMA NI>  TY__PUp8U40PI8I49a4xeRsieHA;
  64. typedef std::pair<NimStringDesc* COMMA NI>  TY__2Fknd9cZ9adGbrVR9ctyJBfug;
  65. typedef std::map<NimStringDesc*,NI>::iterator TY__w8FfOdhe7n69b0RG8dQFYPQ;
  66. typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1];
  67. struct tyTuple__XOVT24GHXwqiEj5GCsEGCA {
  68. NimStringDesc* Field0;
  69. NI Field1;
  70. };
  71. typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
  72. typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
  73. typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
  74. typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
  75. struct TNimType {
  76. NI size;
  77. NI align;
  78. tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
  79. tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
  80. TNimType* base;
  81. TNimNode* node;
  82. void* finalizer;
  83. tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
  84. tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
  85. };
  86. typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
  87. struct TNimNode {
  88. tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
  89. NI offset;
  90. TNimType* typ;
  91. NCSTRING name;
  92. NI len;
  93. TNimNode** sons;
  94. };
  95. typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void);
  96. struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {
  97. NI refcount;
  98. TNimType* typ;
  99. };
  100. struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {
  101. void* bottom;
  102. };
  103. struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {
  104. NI len;
  105. NI cap;
  106. tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
  107. };
  108. typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SPr7N6UKfuF549bNPiUvSRw[256];
  109. typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
  110. typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
  111. typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
  112. typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
  113. struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {
  114. tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
  115. };
  116. typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
  117. struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {
  118. tyArray__0aOLqZchNi8nWtMTi8ND8w link;
  119. NI key;
  120. NI upperBound;
  121. NI level;
  122. };
  123. struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
  124. tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
  125. NI Field1;
  126. };
  127. typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
  128. struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {
  129. NI len;
  130. tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
  131. tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
  132. };
  133. struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {
  134. NI minLargeObj;
  135. NI maxLargeObj;
  136. tyArray__SPr7N6UKfuF549bNPiUvSRw freeSmallChunks;
  137. NU32 flBitmap;
  138. tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
  139. tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
  140. tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
  141. NI currMem;
  142. NI maxMem;
  143. NI freeMem;
  144. NI occ;
  145. NI lastSize;
  146. tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
  147. tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
  148. tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
  149. tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
  150. tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
  151. NIM_BOOL locked;
  152. NIM_BOOL blockChunkSizeIncrease;
  153. NI nextChunkSize;
  154. tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
  155. tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
  156. };
  157. struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {
  158. NI stackScans;
  159. NI cycleCollections;
  160. NI maxThreshold;
  161. NI maxStackSize;
  162. NI maxStackCells;
  163. NI cycleTableSize;
  164. NI64 maxPause;
  165. };
  166. struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {
  167. NI counter;
  168. NI max;
  169. tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
  170. tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
  171. };
  172. struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {
  173. tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
  174. NI cycleThreshold;
  175. NI zctThreshold;
  176. tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
  177. tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
  178. tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
  179. NI recGcLock;
  180. tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
  181. tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
  182. tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
  183. tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
  184. NI gcThreadId;
  185. };
  186. static N_INLINE(void, nimZeroMem)(void* p, NI size);
  187. static N_INLINE(void, nimSetMem__systemZmemory_7)(void* a, int v, NI size);
  188. N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringDesc** args, NI argsLen_0);
  189. N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___systemZdollars_3)(NI x);
  190. N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
  191. static N_NIMCALL(void, TM__WyMGbWGgir2BymXkFO5yxQ_6)(void);
  192. N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc);
  193. N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___cppmap_232)(tyTuple__XOVT24GHXwqiEj5GCsEGCA x);
  194. static N_INLINE(void, asgnRef)(void** dest, void* src);
  195. static N_INLINE(void, incRef__system_5351)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
  196. static N_INLINE(NI, pluspercent___system_696)(NI x, NI y);
  197. static N_INLINE(void, nimFrame)(TFrame* s);
  198. N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2993)(void);
  199. static N_INLINE(void, popFrame)(void);
  200. static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__system_5313)(void* usr);
  201. static N_INLINE(NI, minuspercent___system_716)(NI x, NI y);
  202. static N_INLINE(void, decRef__system_5358)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
  203. static N_INLINE(NIM_BOOL, ltpercent___system_1005)(NI x, NI y);
  204. static N_INLINE(void, rtlAddZCT__system_5356)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
  205. N_LIB_PRIVATE N_NOINLINE(void, addZCT__system_5307)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w& s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
  206. N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
  207. static N_INLINE(void, initStackBottomWith)(void* locals);
  208. N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom);
  209. N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void);
  210. N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void);
  211. N_LIB_PRIVATE N_NIMCALL(void, cppmapDatInit000)(void);
  212. N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void);
  213. STRING_LITERAL(TM__WyMGbWGgir2BymXkFO5yxQ_2, "jose", 4);
  214. STRING_LITERAL(TM__WyMGbWGgir2BymXkFO5yxQ_3, "ana", 3);
  215. STRING_LITERAL(TM__WyMGbWGgir2BymXkFO5yxQ_4, "maria", 5);
  216. N_LIB_PRIVATE TNimType NTItupleLkey58string_value58intT__XOVT24GHXwqiEj5GCsEGCA_;
  217. extern TNimType NTIstring__77mFvmsOLKik79ci2hXkHEg_;
  218. extern TNimType NTIint__rR5Bzr1D5krxoo1NcNyeMA_;
  219. N_LIB_PRIVATE TY__PUp8U40PI8I49a4xeRsieHA mymap__cppmap_71;
  220. N_LIB_PRIVATE TY__2Fknd9cZ9adGbrVR9ctyJBfug tmp1__cppmap_77;
  221. N_LIB_PRIVATE TY__w8FfOdhe7n69b0RG8dQFYPQ ini__cppmap_155;
  222. N_LIB_PRIVATE TY__w8FfOdhe7n69b0RG8dQFYPQ fin__cppmap_160;
  223. N_LIB_PRIVATE tyTuple__XOVT24GHXwqiEj5GCsEGCA i__cppmap_343;
  224. extern TFrame* framePtr__system_2564;
  225. extern TFrame* framePtr__system_2564;
  226. extern TFrame* framePtr__system_2564;
  227. extern TFrame* framePtr__system_2564;
  228. extern TFrame* framePtr__system_2564;
  229. extern TFrame* framePtr__system_2564;
  230. extern tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__system_5260;
  231. static N_INLINE(void, nimSetMem__systemZmemory_7)(void* a, int v, NI size) {
  232.     void* T1_ = memset(a, v, ((size_t) (size)));
  233. }
  234. static N_INLINE(void, nimZeroMem)(void* p, NI size) {
  235.     nimSetMem__systemZmemory_7(p, ((int) 0), size);
  236. }
  237. static N_NIMCALL(void, TM__WyMGbWGgir2BymXkFO5yxQ_6)(void) {
  238.     nimGCvisit((void*)i__cppmap_343.Field0, 0);
  239. }
  240. static N_INLINE(void, nimFrame)(TFrame* s) {
  241.     {
  242.         if (!(framePtr__system_2564 == ((TFrame*) NIM_NIL))) goto LA3_;
  243. {       (*s).calldepth = ((NI16) 0);
  244. }   }
  245.     goto LA1_;
  246.     LA3_: ;
  247.     {
  248.         (*s).calldepth = (NI16)((*framePtr__system_2564).calldepth + ((NI16) 1));
  249.     }
  250.     LA1_: ;
  251.     (*s).prev = framePtr__system_2564;
  252.     framePtr__system_2564 = s;
  253.     {
  254.         if (!((*s).calldepth == ((NI16) 2000))) goto LA8_;
  255. {       callDepthLimitReached__system_2993();
  256. }   }
  257.     LA8_: ;
  258. }
  259. static N_INLINE(void, popFrame)(void) {
  260.     framePtr__system_2564 = (*framePtr__system_2564).prev;
  261. }
  262. static N_INLINE(NI, pluspercent___system_696)(NI x, NI y) {
  263.     NI result;
  264.     nimfr_("+%", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/arithmetics.nim");
  265.     result = (NI)0;
  266.     nimln_(403, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/arithmetics.nim");
  267.     nimln_(407, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/arithmetics.nim");
  268.     result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y))))));
  269.     popFrame();
  270.     return result;
  271. }
  272. static N_INLINE(void, incRef__system_5351)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
  273.     nimfr_("incRef", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
  274.     nimln_(231, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
  275.     (*c).refcount = pluspercent___system_696((*c).refcount, ((NI) 8));
  276.     popFrame();
  277. }
  278. static N_INLINE(NI, minuspercent___system_716)(NI x, NI y) {
  279.     NI result;
  280.     nimfr_("-%", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/arithmetics.nim");
  281.     result = (NI)0;
  282.     nimln_(414, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/arithmetics.nim");
  283.     nimln_(418, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/arithmetics.nim");
  284.     result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y))))));
  285.     popFrame();
  286.     return result;
  287. }
  288. static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__system_5313)(void* usr) {
  289.     tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result;
  290.     nimfr_("usrToCell", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
  291.     result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
  292.     nimln_(177, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
  293.     NI T1_ = minuspercent___system_716(((NI) (ptrdiff_t) (usr)), ((NI) 16));
  294.     result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_));
  295.     popFrame();
  296.     return result;
  297. }
  298. static N_INLINE(NIM_BOOL, ltpercent___system_1005)(NI x, NI y) {
  299.     NIM_BOOL result;
  300.     nimfr_("<%", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/comparisons.nim");
  301.     result = (NIM_BOOL)0;
  302.     nimln_(186, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/comparisons.nim");
  303.     nimln_(188, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/comparisons.nim");
  304.     result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y))));
  305.     popFrame();
  306.     return result;
  307. }
  308. static N_INLINE(void, rtlAddZCT__system_5356)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
  309.     nimfr_("rtlAddZCT", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
  310.     nimln_(243, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
  311.     addZCT__system_5307(gch__system_5260.zct, c);
  312.     popFrame();
  313. }
  314. static N_INLINE(void, decRef__system_5358)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
  315.     nimfr_("decRef", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
  316.     nimln_(248, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
  317.     (*c).refcount = minuspercent___system_716((*c).refcount, ((NI) 8));
  318.     nimln_(249, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
  319.     {
  320.         NIM_BOOL T3_ = ltpercent___system_1005((*c).refcount, ((NI) 8));
  321.         if (!T3_) goto LA4_;
  322. {       nimln_(250, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
  323.         rtlAddZCT__system_5356(c);
  324. }   }
  325.     LA4_: ;
  326.     popFrame();
  327. }
  328. static N_INLINE(void, asgnRef)(void** dest, void* src) {
  329.     nimfr_("asgnRef", "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
  330.     nimln_(286, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
  331.     {
  332.         if (!!((src == NIM_NIL))) goto LA3_;
  333. {       tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_ = usrToCell__system_5313(src);
  334.         incRef__system_5351(T5_);
  335. }   }
  336.     LA3_: ;
  337.     nimln_(287, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
  338.     {
  339.         if (!!(((*dest) == NIM_NIL))) goto LA8_;
  340. {       tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_ = usrToCell__system_5313((*dest));
  341.         decRef__system_5358(T10_);
  342. }   }
  343.     LA8_: ;
  344.     nimln_(288, "/home/jose/.choosenim/toolchains/nim-1.6.6/lib/system/gc.nim");
  345.     (*dest) = src;
  346.     popFrame();
  347. }
  348. static N_INLINE(void, initStackBottomWith)(void* locals) {
  349.     nimGC_setStackBottom(locals);
  350. }
  351.  
  352. N_LIB_PRIVATE void PreMainInner(void) {
  353. }
  354.  
  355. N_LIB_PRIVATE int cmdCount;
  356. N_LIB_PRIVATE char** cmdLine;
  357. N_LIB_PRIVATE char** gEnv;
  358. N_LIB_PRIVATE void PreMain(void) {
  359.     void (*volatile inner)(void);
  360.     inner = PreMainInner;
  361.     systemDatInit000();
  362.     initStackBottomWith((void *)&inner);
  363.     systemInit000();
  364.     cppmapDatInit000();
  365.     (*inner)();
  366. }
  367.  
  368. N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) {
  369.     NimMainModule();
  370. }
  371.  
  372. N_CDECL(void, NimMain)(void) {
  373.     void (*volatile inner)(void);
  374.     PreMain();
  375.     inner = NimMainInner;
  376.     initStackBottomWith((void *)&inner);
  377.     (*inner)();
  378. }
  379.  
  380. int main(int argc, char** args, char** env) {
  381.     cmdLine = args;
  382.     cmdCount = argc;
  383.     gEnv = env;
  384.     NimMain();
  385.     return nim_program_result;
  386. }
  387.  
  388. N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) {
  389. {
  390.     TFrame FR_; FR_.len = 0;
  391.  
  392.     nimRegisterGlobalMarker(TM__WyMGbWGgir2BymXkFO5yxQ_6);
  393.  
  394. }/* preInitProc end */
  395. {
  396.     tyArray__nHXaesL0DJZHyVS07ARPRA T1_;
  397.     tyArray__nHXaesL0DJZHyVS07ARPRA T2_;
  398.     nimfr_("cppmap", "/home/jose/src/casadi.nim/examples/cppmap.nim");
  399.     nimln_(78, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  400.     tmp1__cppmap_77 = std::make_pair(((NimStringDesc*) &TM__WyMGbWGgir2BymXkFO5yxQ_2), ((NI) 10));
  401.     nimln_(79, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  402.     mymap__cppmap_71.insert(tmp1__cppmap_77);
  403.     nimln_(80, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  404.     mymap__cppmap_71.insert(std::make_pair(((NimStringDesc*) &TM__WyMGbWGgir2BymXkFO5yxQ_3), ((NI) 20)));
  405.     nimln_(81, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  406.     mymap__cppmap_71.insert(std::make_pair(((NimStringDesc*) &TM__WyMGbWGgir2BymXkFO5yxQ_4), ((NI) 30)));
  407.     nimln_(82, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  408.     mymap__cppmap_71[((NimStringDesc*) &TM__WyMGbWGgir2BymXkFO5yxQ_2)] = ((NI) 15);
  409.     nimln_(84, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  410.     ini__cppmap_155 = mymap__cppmap_71.begin();
  411.     nimln_(85, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  412.     fin__cppmap_160 = mymap__cppmap_71.end();
  413.     nimln_(86, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  414.     nimZeroMem((void*)T1_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
  415.     T1_[0] = ini__cppmap_155->first;
  416.     echoBinSafe(T1_, 1);
  417.     nimln_(87, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  418.     nimZeroMem((void*)T2_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
  419.     T2_[0] = dollar___systemZdollars_3(ini__cppmap_155->second);
  420.     echoBinSafe(T2_, 1);
  421.     {
  422.         tyTuple__XOVT24GHXwqiEj5GCsEGCA result;
  423.         TY__w8FfOdhe7n69b0RG8dQFYPQ* tmp;
  424.         tyArray__nHXaesL0DJZHyVS07ARPRA T4_;
  425.         tyTuple__XOVT24GHXwqiEj5GCsEGCA T5_;
  426.         tyArray__nHXaesL0DJZHyVS07ARPRA T6_;
  427.         tyArray__nHXaesL0DJZHyVS07ARPRA T7_;
  428.         tyTuple__XOVT24GHXwqiEj5GCsEGCA T8_;
  429.         tyArray__nHXaesL0DJZHyVS07ARPRA T9_;
  430.         nimZeroMem((void*)(&result), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
  431.         nimln_(62, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  432.         TY__w8FfOdhe7n69b0RG8dQFYPQ ini = mymap__cppmap_71.begin();
  433.         tmp = (TY__w8FfOdhe7n69b0RG8dQFYPQ*)0;
  434.         nimln_(64, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  435.         nimZeroMem((void*)T4_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
  436.         nimZeroMem((void*)(&T5_), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
  437.         T5_.Field0 = ini->first;
  438.         T5_.Field1 = ini->second;
  439.         T4_[0] = dollar___cppmap_232(T5_);
  440.         echoBinSafe(T4_, 1);
  441.         nimln_(88, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  442.         nimln_(65, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  443.         asgnRef((void**) (&i__cppmap_343.Field0), ini->first);
  444.         i__cppmap_343.Field1 = ini->second;
  445.         nimln_(88, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  446.         nimZeroMem((void*)T6_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
  447.         T6_[0] = copyString(i__cppmap_343.Field0);
  448.         echoBinSafe(T6_, 1);
  449.         nimln_(66, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  450.         ini.operator++();
  451.         nimln_(67, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  452.         nimZeroMem((void*)T7_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
  453.         nimZeroMem((void*)(&T8_), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
  454.         T8_.Field0 = ini->first;
  455.         T8_.Field1 = ini->second;
  456.         T7_[0] = dollar___cppmap_232(T8_);
  457.         echoBinSafe(T7_, 1);
  458.         nimln_(88, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  459.         nimln_(68, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  460.         asgnRef((void**) (&i__cppmap_343.Field0), ini->first);
  461.         i__cppmap_343.Field1 = ini->second;
  462.         nimln_(88, "/home/jose/src/casadi.nim/examples/cppmap.nim");
  463.         nimZeroMem((void*)T9_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
  464.         T9_[0] = copyString(i__cppmap_343.Field0);
  465.         echoBinSafe(T9_, 1);
  466.     }
  467.     popFrame();
  468. }
  469. }
  470.  
  471. N_LIB_PRIVATE N_NIMCALL(void, cppmapDatInit000)(void) {
  472. static TNimNode* TM__WyMGbWGgir2BymXkFO5yxQ_5_2[2];
  473. static TNimNode TM__WyMGbWGgir2BymXkFO5yxQ_0[3];
  474. NTItupleLkey58string_value58intT__XOVT24GHXwqiEj5GCsEGCA_.size = sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA);
  475. NTItupleLkey58string_value58intT__XOVT24GHXwqiEj5GCsEGCA_.align = NIM_ALIGNOF(tyTuple__XOVT24GHXwqiEj5GCsEGCA);
  476. NTItupleLkey58string_value58intT__XOVT24GHXwqiEj5GCsEGCA_.kind = 18;
  477. NTItupleLkey58string_value58intT__XOVT24GHXwqiEj5GCsEGCA_.base = 0;
  478. TM__WyMGbWGgir2BymXkFO5yxQ_5_2[0] = &TM__WyMGbWGgir2BymXkFO5yxQ_0[1];
  479. TM__WyMGbWGgir2BymXkFO5yxQ_0[1].kind = 1;
  480. TM__WyMGbWGgir2BymXkFO5yxQ_0[1].offset = offsetof(tyTuple__XOVT24GHXwqiEj5GCsEGCA, Field0);
  481. TM__WyMGbWGgir2BymXkFO5yxQ_0[1].typ = (&NTIstring__77mFvmsOLKik79ci2hXkHEg_);
  482. TM__WyMGbWGgir2BymXkFO5yxQ_0[1].name = "Field0";
  483. TM__WyMGbWGgir2BymXkFO5yxQ_5_2[1] = &TM__WyMGbWGgir2BymXkFO5yxQ_0[2];
  484. TM__WyMGbWGgir2BymXkFO5yxQ_0[2].kind = 1;
  485. TM__WyMGbWGgir2BymXkFO5yxQ_0[2].offset = offsetof(tyTuple__XOVT24GHXwqiEj5GCsEGCA, Field1);
  486. TM__WyMGbWGgir2BymXkFO5yxQ_0[2].typ = (&NTIint__rR5Bzr1D5krxoo1NcNyeMA_);
  487. TM__WyMGbWGgir2BymXkFO5yxQ_0[2].name = "Field1";
  488. TM__WyMGbWGgir2BymXkFO5yxQ_0[0].len = 2; TM__WyMGbWGgir2BymXkFO5yxQ_0[0].kind = 2; TM__WyMGbWGgir2BymXkFO5yxQ_0[0].sons = &TM__WyMGbWGgir2BymXkFO5yxQ_5_2[0];
  489. NTItupleLkey58string_value58intT__XOVT24GHXwqiEj5GCsEGCA_.node = &TM__WyMGbWGgir2BymXkFO5yxQ_0[0];
  490. }
  491.  
  492.  
Add Comment
Please, Sign In to add comment