Bug Summary

File:OMCompiler/Compiler/boot/build/BaseHashTable.c
Warning:line 263, column 15
Value stored to '_key' is never read

Annotated Source Code

[?] Use j/k keys for keyboard navigation

1#ifdef OMC_BASE_FILE
2 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "BaseHashTable.h"
8#define _OMC_LIT0_data"HashTable.valueArraySet(pos=" "HashTable.valueArraySet(pos="
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,28,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(28)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)28)<<(3))+((1<<(3+3))+5)), "HashTable.valueArraySet(pos="
}
;
10#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
11#define _OMC_LIT1_data") size=" ") size="
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,7,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), ") size="
}
;
13#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
14#define _OMC_LIT2_data" arrSize=" " arrSize="
15static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,9,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), " arrSize="
}
;
16#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
17#define _OMC_LIT3_data" failed\n" " failed\n"
18static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,8,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), " failed\n"
}
;
19#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
20#define _OMC_LIT4_data"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
21static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,95,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(95)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)95)<<(3))+((1<<(3+3))+5)), "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
}
;
22#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
23static const MMC_DEFREALLIT(_OMC_LIT_STRUCT5_6,1588090879.0)struct mmc_real_lit _OMC_LIT_STRUCT5_6 = {0,(((8/8) << 10
) + 9),1588090879.0}
;
24#define _OMC_LIT5_6((void*)((char*)(&(_OMC_LIT_STRUCT5_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT5_6)((void*)((char*)(&(_OMC_LIT_STRUCT5_6).header) + 3))
25static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT5,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT5
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(595))((void*)(((((mmc_uint_t) (595)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(9))((void*)(((((mmc_uint_t) (9)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(595))((void*)(((((mmc_uint_t) (595)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(161))((void*)(((((mmc_uint_t) (161)) << 1)+0))),_OMC_LIT5_6((void*)((char*)(&(_OMC_LIT_STRUCT5_6).header) + 3))}};
26#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
27#define _OMC_LIT6_data"-HashTable.valueArrayAdd failed\n" "-HashTable.valueArrayAdd failed\n"
28static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,32,_OMC_LIT6_data)struct { mmc_uint_t header; const char data[(32)+1]; } _OMC_LIT_STRUCT6
= { ((((mmc_uint_t)32)<<(3))+((1<<(3+3))+5)), "-HashTable.valueArrayAdd failed\n"
}
;
29#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
30#define _OMC_LIT7_data"{" "{"
31static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT7,1,_OMC_LIT7_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT7
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "{"
}
;
32#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
33#define _OMC_LIT8_data",{" ",{"
34static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,2,_OMC_LIT8_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT8
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ",{"
}
;
35#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
36#define _OMC_LIT9_data"}}" "}}"
37static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT9,2,_OMC_LIT9_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT9
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "}}"
}
;
38#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
39#define _OMC_LIT10_data"Debug HashTable:\n" "Debug HashTable:\n"
40static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT10,17,_OMC_LIT10_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT10
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), "Debug HashTable:\n"
}
;
41#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
42#define _OMC_LIT11_data"szBucket: " "szBucket: "
43static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT11,10,_OMC_LIT11_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT11
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "szBucket: "
}
;
44#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
45#define _OMC_LIT12_data"\n" "\n"
46static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT12,1,_OMC_LIT12_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT12
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\n"
}
;
47#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
48#define _OMC_LIT13_data"Debug ValueArray:\n" "Debug ValueArray:\n"
49static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT13,18,_OMC_LIT13_data)struct { mmc_uint_t header; const char data[(18)+1]; } _OMC_LIT_STRUCT13
= { ((((mmc_uint_t)18)<<(3))+((1<<(3+3))+5)), "Debug ValueArray:\n"
}
;
50#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
51#define _OMC_LIT14_data"number of entires: " "number of entires: "
52static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT14,19,_OMC_LIT14_data)struct { mmc_uint_t header; const char data[(19)+1]; } _OMC_LIT_STRUCT14
= { ((((mmc_uint_t)19)<<(3))+((1<<(3+3))+5)), "number of entires: "
}
;
53#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
54#define _OMC_LIT15_data"size: " "size: "
55static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT15,6,_OMC_LIT15_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT15
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "size: "
}
;
56#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
57#define _OMC_LIT16_data": " ": "
58static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT16,2,_OMC_LIT16_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT16
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ": "
}
;
59#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
60#define _OMC_LIT17_data"Debug HashVector:\n" "Debug HashVector:\n"
61static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT17,18,_OMC_LIT17_data)struct { mmc_uint_t header; const char data[(18)+1]; } _OMC_LIT_STRUCT17
= { ((((mmc_uint_t)18)<<(3))+((1<<(3+3))+5)), "Debug HashVector:\n"
}
;
62#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
63#define _OMC_LIT18_data":" ":"
64static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT18,1,_OMC_LIT18_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT18
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), ":"
}
;
65#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
66#define _OMC_LIT19_data" {" " {"
67static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT19,2,_OMC_LIT19_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT19
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), " {"
}
;
68#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
69#define _OMC_LIT20_data", " ", "
70static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT20,2,_OMC_LIT20_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT20
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ", "
}
;
71#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
72#define _OMC_LIT21_data"}" "}"
73static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT21,1,_OMC_LIT21_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT21
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "}"
}
;
74#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
75#define _OMC_LIT22_data"HashTable:\n" "HashTable:\n"
76static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT22,11,_OMC_LIT22_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT22
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "HashTable:\n"
}
;
77#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
78#define _OMC_LIT23_data"}}\n" "}}\n"
79static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,3,_OMC_LIT23_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT23
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "}}\n"
}
;
80#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
81#define _OMC_LIT24_data"BaseHashTable.delete failed\n" "BaseHashTable.delete failed\n"
82static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT24,28,_OMC_LIT24_data)struct { mmc_uint_t header; const char data[(28)+1]; } _OMC_LIT_STRUCT24
= { ((((mmc_uint_t)28)<<(3))+((1<<(3+3))+5)), "BaseHashTable.delete failed\n"
}
;
83#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
84#define _OMC_LIT25_data"- BaseHashTable.addNoUpdCheck failed\n" "- BaseHashTable.addNoUpdCheck failed\n"
85static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT25,37,_OMC_LIT25_data)struct { mmc_uint_t header; const char data[(37)+1]; } _OMC_LIT_STRUCT25
= { ((((mmc_uint_t)37)<<(3))+((1<<(3+3))+5)), "- BaseHashTable.addNoUpdCheck failed\n"
}
;
86#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
87#define _OMC_LIT26_data"index list lengths:\n" "index list lengths:\n"
88static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT26,20,_OMC_LIT26_data)struct { mmc_uint_t header; const char data[(20)+1]; } _OMC_LIT_STRUCT26
= { ((((mmc_uint_t)20)<<(3))+((1<<(3+3))+5)), "index list lengths:\n"
}
;
89#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
90#define _OMC_LIT27_data"," ","
91static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT27,1,_OMC_LIT27_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT27
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), ","
}
;
92#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
93#define _OMC_LIT28_data"non-zero: " "non-zero: "
94static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT28,10,_OMC_LIT28_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT28
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "non-zero: "
}
;
95#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
96#define _OMC_LIT29_data"/" "/"
97static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,1,_OMC_LIT29_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT29
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "/"
}
;
98#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
99#define _OMC_LIT30_data"max element: " "max element: "
100static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT30,13,_OMC_LIT30_data)struct { mmc_uint_t header; const char data[(13)+1]; } _OMC_LIT_STRUCT30
= { ((((mmc_uint_t)13)<<(3))+((1<<(3+3))+5)), "max element: "
}
;
101#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
102#define _OMC_LIT31_data"total entries: " "total entries: "
103static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT31,15,_OMC_LIT31_data)struct { mmc_uint_t header; const char data[(15)+1]; } _OMC_LIT_STRUCT31
= { ((((mmc_uint_t)15)<<(3))+((1<<(3+3))+5)), "total entries: "
}
;
104#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
105#define _OMC_LIT32_data"Got internal hash table size " "Got internal hash table size "
106static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT32,29,_OMC_LIT32_data)struct { mmc_uint_t header; const char data[(29)+1]; } _OMC_LIT_STRUCT32
= { ((((mmc_uint_t)29)<<(3))+((1<<(3+3))+5)), "Got internal hash table size "
}
;
107#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
108#define _OMC_LIT33_data" <1" " <1"
109static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT33,3,_OMC_LIT33_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT33
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), " <1"
}
;
110#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
111static const MMC_DEFREALLIT(_OMC_LIT_STRUCT34_6,1588090879.0)struct mmc_real_lit _OMC_LIT_STRUCT34_6 = {0,(((8/8) <<
10) + 9),1588090879.0}
;
112#define _OMC_LIT34_6((void*)((char*)(&(_OMC_LIT_STRUCT34_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT34_6)((void*)((char*)(&(_OMC_LIT_STRUCT34_6).header) + 3))
113static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT34,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT34
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(119))((void*)(((((mmc_uint_t) (119)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(5))((void*)(((((mmc_uint_t) (5)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(119))((void*)(((((mmc_uint_t) (119)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(104))((void*)(((((mmc_uint_t) (104)) << 1)+0))),_OMC_LIT34_6((void*)((char*)(&(_OMC_LIT_STRUCT34_6).header) + 3))}};
114#define _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT34)((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))
115#include "util/modelica.h"
116
117#include "BaseHashTable_includes.h"
118
119
120/* default, do not make protected functions static */
121#if !defined(PROTECTED_FUNCTION_STATIC)
122#define PROTECTED_FUNCTION_STATIC
123#endif
124PROTECTED_FUNCTION_STATIC modelica_boolean omc_BaseHashTable_valueArrayKeyIndexExists(threadData_t *threadData, modelica_metatype _valueArray, modelica_integer _pos);
125PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_BaseHashTable_valueArrayKeyIndexExists(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _pos);
126static const MMC_DEFSTRUCTLIT(boxvar_lit_BaseHashTable_valueArrayKeyIndexExists,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_BaseHashTable_valueArrayKeyIndexExists
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_BaseHashTable_valueArrayKeyIndexExists,0}};
127#define boxvar_BaseHashTable_valueArrayKeyIndexExists((void*)((char*)(&(boxvar_lit_BaseHashTable_valueArrayKeyIndexExists
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_BaseHashTable_valueArrayKeyIndexExists)((void*)((char*)(&(boxvar_lit_BaseHashTable_valueArrayKeyIndexExists
).header) + 3))
128PROTECTED_FUNCTION_STATIC modelica_metatype omc_BaseHashTable_getValueArray(threadData_t *threadData, modelica_metatype _valueArray, modelica_integer _pos, modelica_metatype *out_value);
129PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_BaseHashTable_getValueArray(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _pos, modelica_metatype *out_value);
130static const MMC_DEFSTRUCTLIT(boxvar_lit_BaseHashTable_getValueArray,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_BaseHashTable_getValueArray
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_BaseHashTable_getValueArray,0}};
131#define boxvar_BaseHashTable_getValueArray((void*)((char*)(&(boxvar_lit_BaseHashTable_getValueArray
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_BaseHashTable_getValueArray)((void*)((char*)(&(boxvar_lit_BaseHashTable_getValueArray
).header) + 3))
132PROTECTED_FUNCTION_STATIC void omc_BaseHashTable_valueArrayClear(threadData_t *threadData, modelica_metatype _valueArray, modelica_integer _pos);
133PROTECTED_FUNCTION_STATIC void boxptr_BaseHashTable_valueArrayClear(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _pos);
134static const MMC_DEFSTRUCTLIT(boxvar_lit_BaseHashTable_valueArrayClear,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_BaseHashTable_valueArrayClear
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_BaseHashTable_valueArrayClear,0}};
135#define boxvar_BaseHashTable_valueArrayClear((void*)((char*)(&(boxvar_lit_BaseHashTable_valueArrayClear
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_BaseHashTable_valueArrayClear)((void*)((char*)(&(boxvar_lit_BaseHashTable_valueArrayClear
).header) + 3))
136PROTECTED_FUNCTION_STATIC modelica_metatype omc_BaseHashTable_valueArraySet(threadData_t *threadData, modelica_metatype _valueArray, modelica_integer _pos, modelica_metatype _entry);
137PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_BaseHashTable_valueArraySet(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _pos, modelica_metatype _entry);
138static const MMC_DEFSTRUCTLIT(boxvar_lit_BaseHashTable_valueArraySet,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_BaseHashTable_valueArraySet
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_BaseHashTable_valueArraySet,0}};
139#define boxvar_BaseHashTable_valueArraySet((void*)((char*)(&(boxvar_lit_BaseHashTable_valueArraySet
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_BaseHashTable_valueArraySet)((void*)((char*)(&(boxvar_lit_BaseHashTable_valueArraySet
).header) + 3))
140PROTECTED_FUNCTION_STATIC modelica_metatype omc_BaseHashTable_valueArrayAdd(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _entry, modelica_integer *out_newpos);
141PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_BaseHashTable_valueArrayAdd(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _entry, modelica_metatype *out_newpos);
142static const MMC_DEFSTRUCTLIT(boxvar_lit_BaseHashTable_valueArrayAdd,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_BaseHashTable_valueArrayAdd
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_BaseHashTable_valueArrayAdd,0}};
143#define boxvar_BaseHashTable_valueArrayAdd((void*)((char*)(&(boxvar_lit_BaseHashTable_valueArrayAdd
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_BaseHashTable_valueArrayAdd)((void*)((char*)(&(boxvar_lit_BaseHashTable_valueArrayAdd
).header) + 3))
144PROTECTED_FUNCTION_STATIC modelica_string omc_BaseHashTable_dumpTuple(threadData_t *threadData, modelica_metatype _tpl, modelica_fnptr _printKey, modelica_fnptr _printValue);
145static const MMC_DEFSTRUCTLIT(boxvar_lit_BaseHashTable_dumpTuple,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_BaseHashTable_dumpTuple
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_BaseHashTable_dumpTupleomc_BaseHashTable_dumpTuple,0}};
146#define boxvar_BaseHashTable_dumpTuple((void*)((char*)(&(boxvar_lit_BaseHashTable_dumpTuple).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_BaseHashTable_dumpTuple)((void*)((char*)(&(boxvar_lit_BaseHashTable_dumpTuple).header
) + 3))
147PROTECTED_FUNCTION_STATIC modelica_integer omc_BaseHashTable_hasKeyIndex2(threadData_t *threadData, modelica_metatype _key, modelica_metatype _keyIndices, modelica_fnptr _keyEqual);
148PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_BaseHashTable_hasKeyIndex2(threadData_t *threadData, modelica_metatype _key, modelica_metatype _keyIndices, modelica_fnptr _keyEqual);
149static const MMC_DEFSTRUCTLIT(boxvar_lit_BaseHashTable_hasKeyIndex2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_BaseHashTable_hasKeyIndex2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_BaseHashTable_hasKeyIndex2,0}};
150#define boxvar_BaseHashTable_hasKeyIndex2((void*)((char*)(&(boxvar_lit_BaseHashTable_hasKeyIndex2)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_BaseHashTable_hasKeyIndex2)((void*)((char*)(&(boxvar_lit_BaseHashTable_hasKeyIndex2)
.header) + 3))
151PROTECTED_FUNCTION_STATIC modelica_integer omc_BaseHashTable_hasKeyIndex(threadData_t *threadData, modelica_metatype _key, modelica_metatype _hashTable);
152PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_BaseHashTable_hasKeyIndex(threadData_t *threadData, modelica_metatype _key, modelica_metatype _hashTable);
153static const MMC_DEFSTRUCTLIT(boxvar_lit_BaseHashTable_hasKeyIndex,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_BaseHashTable_hasKeyIndex
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_BaseHashTable_hasKeyIndex,0}};
154#define boxvar_BaseHashTable_hasKeyIndex((void*)((char*)(&(boxvar_lit_BaseHashTable_hasKeyIndex).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_BaseHashTable_hasKeyIndex)((void*)((char*)(&(boxvar_lit_BaseHashTable_hasKeyIndex).
header) + 3))
155
156DLLExport
157void omc_BaseHashTable_clearAssumeNoDelete(threadData_t *threadData, modelica_metatype _ht)
158{
159 modelica_metatype _hv = NULL((void*)0);
160 modelica_integer _bs;
161 modelica_integer _sz;
162 modelica_integer _vs;
163 modelica_integer _ve;
164 modelica_integer _hash_idx;
165 modelica_metatype _ft = NULL((void*)0);
166 modelica_fnptr _hashFunc;
167 modelica_metatype _key = NULL((void*)0);
168 modelica_metatype _vae = NULL((void*)0);
169 modelica_boolean _workaroundForBug;
170 modelica_boolean _debug;
171 modelica_integer tmp1;
172 modelica_integer tmp2;
173 modelica_integer tmp3;
174 modelica_integer tmp8;
175 modelica_integer tmp9;
176 modelica_integer tmp10;
177 modelica_integer tmp11;
178 modelica_integer tmp12;
179 modelica_integer tmp13;
180 modelica_metatype tmpMeta[9] __attribute__((unused)) = {0};
181 MMC_SO()mmc_check_stackoverflow(threadData);
182 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
183 // _hv has no default value.
184 // _bs has no default value.
185 // _sz has no default value.
186 // _vs has no default value.
187 // _ve has no default value.
188 // _hash_idx has no default value.
189 // _ft has no default value.
190 // _key has no default value.
191 // _vae has no default value.
192 _workaroundForBug = 1;
193 _debug = 0;
194#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
195 /* Pattern-matching assignment */
196#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
197 tmpMeta[0] = _ht;
198#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
199 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
200#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
201 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
202#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
203 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
204#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
205 tmp1 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
206#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
207 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
208#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
209 tmp2 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
210#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
211 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
212#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
213 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
214#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
215 tmp3 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
216#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
217 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
218#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
219 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (1)))))
;
220#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
221 _hv = tmpMeta[1];
222#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
223 _vs = tmp1 /* pattern as ty=Integer */;
224#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
225 _ve = tmp2 /* pattern as ty=Integer */;
226#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
227 _vae = tmpMeta[5];
228#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
229 _bs = tmp3 /* pattern as ty=Integer */;
230#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
231 _ft = tmpMeta[7];
232#line 706 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
233 _hashFunc = tmpMeta[8];
234#line 234 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
235
236#line 707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
237 tmp8 = ((modelica_integer) 1); tmp9 = 1; tmp10 = _ve;
238#line 707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
239 if(!(((tmp9 > 0) && (tmp8 > tmp10)) || ((tmp9 < 0) && (tmp8 < tmp10))))
240#line 707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
241 {
242#line 707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
243 modelica_integer _i;
244#line 707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
245 for(_i = ((modelica_integer) 1); in_range_integer(_i, tmp8, tmp10); _i += tmp9)
246#line 707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
247 {
248#line 248 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
249 { /* match expression */
250 modelica_metatype tmp6_1;
251 tmp6_1 = arrayGet(_vae, _i)nobox_arrayGet(threadData,_vae,_i);
252 {
253 volatile mmc_switch_type tmp6;
254 int tmp7;
255 tmp6 = 0;
256 for (; tmp6 < 2; tmp6++) {
257 switch (MMC_SWITCH_CAST(tmp6)(tmp6)) {
258 case 0: {
259 if (optionNone(tmp6_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp6_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp6_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp6_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp5_end;
260 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp6_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp6_1) - 3))) +
(1)))))
;
261 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
262
263 _key = tmpMeta[1];
Value stored to '_key' is never read
264 /* Pattern matching succeeded */
265#line 715 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
266 arrayUpdate(_vae, _i, mmc_mk_none())boxptr_arrayUpdate(threadData,_vae,mmc_mk_icon(_i),((void*)((
char*)(&(mmc_none).header) + 3)))
;
267#line 267 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
268#line 268 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
269 goto tmp5_done;
270 }
271 case 1: {
272
273 /* Pattern matching succeeded */
274#line 274 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
275 goto tmp5_done;
276 }
277 }
278 goto tmp5_end;
279 tmp5_end: ;
280 }
281 goto goto_4;
282 goto_4:;
283 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
284 goto tmp5_done;
285 tmp5_done:;
286 }
287 }
288 ;
289 }
290 }
291
292#line 732 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
293 tmp11 = ((modelica_integer) 1); tmp12 = 1; tmp13 = arrayLength(_hv);
294#line 732 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
295 if(!(((tmp12 > 0) && (tmp11 > tmp13)) || ((tmp12 < 0) && (tmp11 < tmp13))))
296#line 732 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
297 {
298#line 732 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
299 modelica_integer _i;
300#line 732 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
301 for(_i = ((modelica_integer) 1); in_range_integer(_i, tmp11, tmp13); _i += tmp12)
302#line 732 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
303 {
304#line 733 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
305 if((!listEmpty(arrayGet(_hv, _i))((*(mmc_uint_t*)((void*)((char*)(nobox_arrayGet(threadData,_hv
,_i)) - 3))) == (((0) << 10) + (((0) & 255) <<
2)))
))
306#line 733 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
307 {
308#line 735 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
309 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
310#line 735 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
311 arrayUpdate(_hv, _i, tmpMeta[0])boxptr_arrayUpdate(threadData,_hv,mmc_mk_icon(_i),tmpMeta[0]);
312#line 312 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
313 }
314 }
315 }
316 _return: OMC_LABEL_UNUSED__attribute__((unused))
317 return;
318}
319
320DLLExport
321modelica_metatype omc_BaseHashTable_clear(threadData_t *threadData, modelica_metatype _D_24in_ht)
322{
323 modelica_metatype _ht = NULL((void*)0);
324 modelica_metatype _hv = NULL((void*)0);
325 modelica_integer _bs;
326 modelica_integer _sz;
327 modelica_integer _vs;
328 modelica_integer _ve;
329 modelica_integer _hash_idx;
330 modelica_metatype _ft = NULL((void*)0);
331 modelica_fnptr _hashFunc;
332 modelica_metatype _key = NULL((void*)0);
333 modelica_metatype _vae = NULL((void*)0);
334 modelica_integer tmp1;
335 modelica_integer tmp2;
336 modelica_integer tmp3;
337 modelica_integer tmp8;
338 modelica_integer tmp9;
339 modelica_integer tmp10;
340 modelica_metatype tmpMeta[9] __attribute__((unused)) = {0};
341 MMC_SO()mmc_check_stackoverflow(threadData);
342 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
343 _ht = _D_24in_ht;
344 // _hv has no default value.
345 // _bs has no default value.
346 // _sz has no default value.
347 // _vs has no default value.
348 // _ve has no default value.
349 // _hash_idx has no default value.
350 // _ft has no default value.
351 // _key has no default value.
352 // _vae has no default value.
353#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
354 /* Pattern-matching assignment */
355#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
356 tmpMeta[0] = _ht;
357#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
358 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
359#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
360 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
361#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
362 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
363#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
364 tmp1 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
365#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
366 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
367#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
368 tmp2 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
369#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
370 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
371#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
372 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
373#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
374 tmp3 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
375#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
376 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
377#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
378 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (1)))))
;
379#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
380 _hv = tmpMeta[1];
381#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
382 _vs = tmp1 /* pattern as ty=Integer */;
383#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
384 _ve = tmp2 /* pattern as ty=Integer */;
385#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
386 _vae = tmpMeta[5];
387#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
388 _bs = tmp3 /* pattern as ty=Integer */;
389#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
390 _ft = tmpMeta[7];
391#line 678 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
392 _hashFunc = tmpMeta[8];
393#line 393 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
394
395#line 679 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
396 tmp8 = ((modelica_integer) 1); tmp9 = 1; tmp10 = _vs;
397#line 679 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
398 if(!(((tmp9 > 0) && (tmp8 > tmp10)) || ((tmp9 < 0) && (tmp8 < tmp10))))
399#line 679 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
400 {
401#line 679 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
402 modelica_integer _i;
403#line 679 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
404 for(_i = ((modelica_integer) 1); in_range_integer(_i, tmp8, tmp10); _i += tmp9)
405#line 679 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
406 {
407#line 407 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
408 { /* match expression */
409 modelica_metatype tmp6_1;
410 tmp6_1 = arrayGet(_vae, _i)nobox_arrayGet(threadData,_vae,_i);
411 {
412 volatile mmc_switch_type tmp6;
413 int tmp7;
414 tmp6 = 0;
415 for (; tmp6 < 2; tmp6++) {
416 switch (MMC_SWITCH_CAST(tmp6)(tmp6)) {
417 case 0: {
418 if (optionNone(tmp6_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp6_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp6_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp6_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp5_end;
419 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp6_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp6_1) - 3))) +
(1)))))
;
420 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
421
422 _key = tmpMeta[1];
423 /* Pattern matching succeeded */
424#line 683 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
425 _hash_idx = ((modelica_integer) 1) + mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 2))) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 1)))) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 2))), _key, mmc_mk_integer(_bs)) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 1)))) (threadData, _key, mmc_mk_integer(_bs)))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_hashFunc) - 3))) + (2)))))) ? ((modelica_metatype(*)(threadData_t
*, modelica_metatype, modelica_metatype, modelica_metatype)) (
(*(void**)(((void*)((void**)(((void*)((char*)(_hashFunc) - 3)
)) + (1))))))) (threadData, ((*(void**)(((void*)((void**)(((void
*)((char*)(_hashFunc) - 3))) + (2)))))), _key, mmc_mk_icon(_bs
)) : ((modelica_metatype(*)(threadData_t*, modelica_metatype,
modelica_metatype)) ((*(void**)(((void*)((void**)(((void*)((
char*)(_hashFunc) - 3))) + (1))))))) (threadData, _key, mmc_mk_icon
(_bs)))) >> 1)
;
426#line 426 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
427
428#line 684 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
429 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
430#line 684 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
431 arrayUpdate(_hv, _hash_idx, tmpMeta[0])boxptr_arrayUpdate(threadData,_hv,mmc_mk_icon(_hash_idx),tmpMeta
[0])
;
432#line 432 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
433
434#line 685 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
435 arrayUpdate(_vae, _i, mmc_mk_none())boxptr_arrayUpdate(threadData,_vae,mmc_mk_icon(_i),((void*)((
char*)(&(mmc_none).header) + 3)))
;
436#line 436 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
437#line 437 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
438 goto tmp5_done;
439 }
440 case 1: {
441
442 /* Pattern matching succeeded */
443#line 443 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
444 goto tmp5_done;
445 }
446 }
447 goto tmp5_end;
448 tmp5_end: ;
449 }
450 goto goto_4;
451 goto_4:;
452 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
453 goto tmp5_done;
454 tmp5_done:;
455 }
456 }
457 ;
458 }
459 }
460
461#line 690 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
462 tmpMeta[0] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(((modelica_integer) 0)), mmc_mk_integermmc_mk_icon(_ve), _vae);
463#line 690 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
464 tmpMeta[1] = mmc_mk_box4(0, _hv, tmpMeta[0], mmc_mk_integermmc_mk_icon(_bs), _ft);
465#line 690 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
466 _ht = tmpMeta[1];
467#line 467 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
468 _return: OMC_LABEL_UNUSED__attribute__((unused))
469 return _ht;
470}
471
472DLLExport
473modelica_metatype omc_BaseHashTable_copy(threadData_t *threadData, modelica_metatype _inHashTable)
474{
475 modelica_metatype _outCopy = NULL((void*)0);
476 modelica_metatype _hv = NULL((void*)0);
477 modelica_integer _bs;
478 modelica_integer _sz;
479 modelica_integer _vs;
480 modelica_integer _ve;
481 modelica_metatype _ft = NULL((void*)0);
482 modelica_metatype _vae = NULL((void*)0);
483 modelica_integer tmp1;
484 modelica_integer tmp2;
485 modelica_integer tmp3;
486 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
487 MMC_SO()mmc_check_stackoverflow(threadData);
488 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
489 // _outCopy has no default value.
490 // _hv has no default value.
491 // _bs has no default value.
492 // _sz has no default value.
493 // _vs has no default value.
494 // _ve has no default value.
495 // _ft has no default value.
496 // _vae has no default value.
497#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
498 /* Pattern-matching assignment */
499#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
500 tmpMeta[0] = _inHashTable;
501#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
502 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
503#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
504 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
505#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
506 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
507#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
508 tmp1 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
509#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
510 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
511#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
512 tmp2 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
513#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
514 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
515#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
516 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
517#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
518 tmp3 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
519#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
520 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
521#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
522 _hv = tmpMeta[1];
523#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
524 _vs = tmp1 /* pattern as ty=Integer */;
525#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
526 _ve = tmp2 /* pattern as ty=Integer */;
527#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
528 _vae = tmpMeta[5];
529#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
530 _bs = tmp3 /* pattern as ty=Integer */;
531#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
532 _ft = tmpMeta[7];
533#line 533 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
534
535#line 662 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
536 _hv = arrayCopy(_hv);
537#line 537 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
538
539#line 663 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
540 _vae = arrayCopy(_vae);
541#line 541 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
542
543#line 664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
544 tmpMeta[0] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_vs), mmc_mk_integermmc_mk_icon(_ve), _vae);
545#line 664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
546 tmpMeta[1] = mmc_mk_box4(0, _hv, tmpMeta[0], mmc_mk_integermmc_mk_icon(_bs), _ft);
547#line 664 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
548 _outCopy = tmpMeta[1];
549#line 549 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
550 _return: OMC_LABEL_UNUSED__attribute__((unused))
551 return _outCopy;
552}
553
554PROTECTED_FUNCTION_STATIC modelica_boolean omc_BaseHashTable_valueArrayKeyIndexExists(threadData_t *threadData, modelica_metatype _valueArray, modelica_integer _pos)
555{
556 modelica_boolean _b;
557 modelica_boolean tmp1 = 0;
558 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
559 MMC_SO()mmc_check_stackoverflow(threadData);
560 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
561 // _b has no default value.
562#line 562 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
563 { /* match expression */
564 modelica_metatype tmp4_1;modelica_integer tmp4_2;
565 tmp4_1 = _valueArray;
566 tmp4_2 = _pos;
567 {
568 modelica_integer _n;
569 modelica_metatype _arr = NULL((void*)0);
570 volatile mmc_switch_type tmp4;
571 int tmp5;
572 // _n has no default value.
573 // _arr has no default value.
574 tmp4 = 0;
575 for (; tmp4 < 2; tmp4++) {
576 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
577 case 0: {
578 if (-1 != tmp4_2) goto tmp3_end;
579
580 /* Pattern matching succeeded */
581#line 644 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
582 tmp1 = 0;
583#line 583 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
584 goto tmp3_done;
585 }
586 case 1: {
587 modelica_integer tmp6;
588 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
589 tmp6 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
590 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
591
592 _n = tmp6 /* pattern as ty=Integer */;
593 _arr = tmpMeta[1];
594 /* Pattern matching succeeded */
595#line 646 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
596 tmp1 = ((_pos <= _n)?isSome(arrayGet(_arr,_pos) /* DAE.ASUB */)(0==((((((*(mmc_uint_t*)((void*)((char*)(nobox_arrayGet(threadData
,_arr,_pos)) - 3)))) & (7)) == 5)) ? ((((*(mmc_uint_t*)((
void*)((char*)(nobox_arrayGet(threadData,_arr,_pos)) - 3)))) >>
(3+3))) : (((*(mmc_uint_t*)((void*)((char*)(nobox_arrayGet(threadData
,_arr,_pos)) - 3)))) >> 10)) ? 0 : 1)
:0);
597#line 597 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
598 goto tmp3_done;
599 }
600 }
601 goto tmp3_end;
602 tmp3_end: ;
603 }
604 goto goto_2;
605 goto_2:;
606 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
607 goto tmp3_done;
608 tmp3_done:;
609 }
610 }
611 _b = tmp1;
612 _return: OMC_LABEL_UNUSED__attribute__((unused))
613 return _b;
614}
615PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_BaseHashTable_valueArrayKeyIndexExists(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _pos)
616{
617 modelica_integer tmp1;
618 modelica_boolean _b;
619 modelica_metatype out_b;
620 tmp1 = mmc_unbox_integer(_pos)(((mmc_sint_t) (_pos)) >> 1);
621 _b = omc_BaseHashTable_valueArrayKeyIndexExists(threadData, _valueArray, tmp1);
622 out_b = mmc_mk_icon(_b);
623 return out_b;
624}
625
626PROTECTED_FUNCTION_STATIC modelica_metatype omc_BaseHashTable_getValueArray(threadData_t *threadData, modelica_metatype _valueArray, modelica_integer _pos, modelica_metatype *out_value)
627{
628 modelica_metatype _key = NULL((void*)0);
629 modelica_metatype _value = NULL((void*)0);
630 modelica_metatype _arr = NULL((void*)0);
631 modelica_integer _n;
632 modelica_integer tmp1;
633 modelica_boolean tmp2;
634 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
635 MMC_SO()mmc_check_stackoverflow(threadData);
636 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
637 // _key has no default value.
638 // _value has no default value.
639 // _arr has no default value.
640 // _n has no default value.
641#line 626 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
642 /* Pattern-matching assignment */
643#line 626 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
644 tmpMeta[0] = _valueArray;
645#line 626 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
646 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
647#line 626 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
648 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
649#line 626 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
650 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
651#line 626 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
652 _n = tmp1 /* pattern as ty=Integer */;
653#line 626 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
654 _arr = tmpMeta[2];
655#line 655 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
656
657#line 627 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
658 /* Pattern-matching assignment */
659#line 627 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
660 tmp2 = (_pos <= _n);
661#line 627 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
662 if (1 != tmp2) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
663#line 663 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
664
665#line 628 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
666 /* Pattern-matching assignment */
667#line 628 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
668 tmpMeta[0] = arrayGet(_arr, _pos)nobox_arrayGet(threadData,_arr,_pos);
669#line 628 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
670 if (optionNone(tmpMeta[0])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[0]) - 3)))) >> 10)) ? 1 : 0)
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
671#line 628 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
672 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
673#line 628 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
674 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
675#line 628 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
676 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
677#line 628 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
678 _key = tmpMeta[2];
679#line 628 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
680 _value = tmpMeta[3];
681#line 681 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
682 _return: OMC_LABEL_UNUSED__attribute__((unused))
683 if (out_value) { *out_value = _value; }
684 return _key;
685}
686PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_BaseHashTable_getValueArray(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _pos, modelica_metatype *out_value)
687{
688 modelica_integer tmp1;
689 modelica_metatype _key = NULL((void*)0);
690 tmp1 = mmc_unbox_integer(_pos)(((mmc_sint_t) (_pos)) >> 1);
691 _key = omc_BaseHashTable_getValueArray(threadData, _valueArray, tmp1, out_value);
692 /* skip box _key; polymorphic<Key> */
693 /* skip box _value; polymorphic<Value> */
694 return _key;
695}
696
697PROTECTED_FUNCTION_STATIC void omc_BaseHashTable_valueArrayClear(threadData_t *threadData, modelica_metatype _valueArray, modelica_integer _pos)
698{
699 modelica_metatype _arr = NULL((void*)0);
700 modelica_integer _size;
701 modelica_integer tmp1;
702 modelica_boolean tmp2;
703 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
704 MMC_SO()mmc_check_stackoverflow(threadData);
705 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
706 // _arr has no default value.
707 // _size has no default value.
708#line 610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
709 /* Pattern-matching assignment */
710#line 610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
711 tmpMeta[0] = _valueArray;
712#line 610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
713 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
714#line 610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
715 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
716#line 610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
717 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
718#line 610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
719 _size = tmp1 /* pattern as ty=Integer */;
720#line 610 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
721 _arr = tmpMeta[2];
722#line 722 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
723
724#line 611 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
725 /* Pattern-matching assignment */
726#line 611 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
727 tmp2 = (_pos <= _size);
728#line 611 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
729 if (1 != tmp2) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
730#line 730 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
731
732#line 612 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
733 arrayUpdate(_arr, _pos, mmc_mk_none())boxptr_arrayUpdate(threadData,_arr,mmc_mk_icon(_pos),((void*)
((char*)(&(mmc_none).header) + 3)))
;
734#line 734 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
735 _return: OMC_LABEL_UNUSED__attribute__((unused))
736 return;
737}
738PROTECTED_FUNCTION_STATIC void boxptr_BaseHashTable_valueArrayClear(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _pos)
739{
740 modelica_integer tmp1;
741 tmp1 = mmc_unbox_integer(_pos)(((mmc_sint_t) (_pos)) >> 1);
742 omc_BaseHashTable_valueArrayClear(threadData, _valueArray, tmp1);
743 return;
744}
745
746PROTECTED_FUNCTION_STATIC modelica_metatype omc_BaseHashTable_valueArraySet(threadData_t *threadData, modelica_metatype _valueArray, modelica_integer _pos, modelica_metatype _entry)
747{
748 modelica_metatype _outValueArray = NULL((void*)0);
749 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
750 MMC_SO()mmc_check_stackoverflow(threadData);
751 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
752 // _outValueArray has no default value.
753#line 753 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
754 { /* matchcontinue expression */
755 volatile modelica_metatype tmp3_1;
756 tmp3_1 = _valueArray;
757 {
758 modelica_metatype _arr = NULL((void*)0);
759 modelica_integer _n;
760 modelica_integer _size;
761 volatile mmc_switch_type tmp3;
762 int tmp4;
763 // _arr has no default value.
764 // _n has no default value.
765 // _size has no default value.
766 tmp3 = 0;
767 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
768 tmp2_top:
769 threadData->mmc_jumper = &new_mmc_jumper;
770 for (; tmp3 < 2; tmp3++) {
771 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
772 case 0: {
773 modelica_integer tmp5;
774 modelica_integer tmp6;
775 modelica_boolean tmp7;
776 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
777 tmp5 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
778 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
779 tmp6 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
780 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
781 _n = tmp5 /* pattern as ty=Integer */;
782 _size = tmp6 /* pattern as ty=Integer */;
783 _arr = tmpMeta[3];
784 /* Pattern matching succeeded */
785#line 588 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
786 /* Pattern-matching assignment */
787#line 588 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
788 tmp7 = (_pos <= _size);
789#line 588 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
790 if (1 != tmp7) goto goto_1;
791#line 791 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
792
793#line 589 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
794 _arr = arrayUpdate(_arr, _pos, mmc_mk_some(_entry))boxptr_arrayUpdate(threadData,_arr,mmc_mk_icon(_pos),mmc_mk_some
(_entry))
;
795#line 795 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
796#line 590 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
797 tmpMeta[1] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_n), mmc_mk_integermmc_mk_icon(_size), _arr);
798#line 590 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
799 tmpMeta[0] = tmpMeta[1];
800#line 800 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
801 goto tmp2_done;
802 }
803 case 1: {
804 modelica_integer tmp8;
805 modelica_string tmp9;
806 modelica_string tmp10;
807 modelica_string tmp11;
808 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
809 tmp8 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
810 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
811 _size = tmp8 /* pattern as ty=Integer */;
812 _arr = tmpMeta[2];
813 /* Pattern matching succeeded */
814#line 595 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
815 tmp9 = modelica_integer_to_modelica_string(_pos, ((modelica_integer) 0), 1);
816#line 595 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
817 tmpMeta[1] = stringAppend(_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)),tmp9);
818#line 595 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
819 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
820#line 595 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
821 tmp10 = modelica_integer_to_modelica_string(_size, ((modelica_integer) 0), 1);
822#line 595 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
823 tmpMeta[3] = stringAppend(tmpMeta[2],tmp10);
824#line 595 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
825 tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)));
826#line 595 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
827 tmp11 = modelica_integer_to_modelica_string(arrayLength(_arr), ((modelica_integer) 0), 1);
828#line 595 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
829 tmpMeta[5] = stringAppend(tmpMeta[4],tmp11);
830#line 595 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
831 tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
832#line 595 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
833 omc_Error_addInternalError(threadData, tmpMeta[6], _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)));
834#line 834 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
835#line 596 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
836 goto goto_1;
837#line 837 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
838 goto tmp2_done;
839 }
840 }
841 goto tmp2_end;
842 tmp2_end: ;
843 }
844 goto goto_1;
845 tmp2_done:
846 (void)tmp3;
847 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
848 goto tmp2_done2;
849 goto_1:;
850 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
851 if (++tmp3 < 2) {
852 goto tmp2_top;
853 }
854 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
855 tmp2_done2:;
856 }
857 }
858 _outValueArray = tmpMeta[0];
859 _return: OMC_LABEL_UNUSED__attribute__((unused))
860 return _outValueArray;
861}
862PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_BaseHashTable_valueArraySet(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _pos, modelica_metatype _entry)
863{
864 modelica_integer tmp1;
865 modelica_metatype _outValueArray = NULL((void*)0);
866 tmp1 = mmc_unbox_integer(_pos)(((mmc_sint_t) (_pos)) >> 1);
867 _outValueArray = omc_BaseHashTable_valueArraySet(threadData, _valueArray, tmp1, _entry);
868 /* skip box _outValueArray; tuple<#Integer, #Integer, array<Option<tuple<polymorphic<Key>, polymorphic<Value>>>>> */
869 return _outValueArray;
870}
871
872PROTECTED_FUNCTION_STATIC modelica_metatype omc_BaseHashTable_valueArrayAdd(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _entry, modelica_integer *out_newpos)
873{
874 modelica_metatype _outValueArray = NULL((void*)0);
875 modelica_integer _newpos;
876 modelica_integer tmp1_c1 __attribute__((unused)) = 0;
877 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
878 MMC_SO()mmc_check_stackoverflow(threadData);
879 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
880 // _outValueArray has no default value.
881 // _newpos has no default value.
882#line 537 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
883
884#line 537 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
885
886#line 886 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
887 { /* matchcontinue expression */
888 volatile modelica_metatype tmp4_1;
889 tmp4_1 = _valueArray;
890 {
891 modelica_integer _n;
892 modelica_integer _size;
893 modelica_integer _expandsize;
894 modelica_integer _newsize;
895 modelica_metatype _arr = NULL((void*)0);
896 modelica_real _rsize;
897 modelica_real _rexpandsize;
898 volatile mmc_switch_type tmp4;
899 int tmp5;
900 // _n has no default value.
901 // _size has no default value.
902 // _expandsize has no default value.
903 // _newsize has no default value.
904 // _arr has no default value.
905 // _rsize has no default value.
906 // _rexpandsize has no default value.
907 tmp4 = 0;
908 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
909 tmp3_top:
910 threadData->mmc_jumper = &new_mmc_jumper;
911 for (; tmp4 < 3; tmp4++) {
912 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
913 case 0: {
914 modelica_integer tmp6;
915 modelica_integer tmp7;
916 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
917 tmp6 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
918 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
919 tmp7 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
920 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
921 _n = tmp6 /* pattern as ty=Integer */;
922 _size = tmp7 /* pattern as ty=Integer */;
923 _arr = tmpMeta[4];
924 /* Pattern matching succeeded */
925#line 545 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
926 if((!(_n < _size)))
927#line 545 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
928 {
929#line 545 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
930 goto goto_2;
931#line 931 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
932 }
933
934#line 546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
935 _n = ((modelica_integer) 1) + _n;
936#line 936 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
937
938#line 547 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
939 _arr = arrayUpdate(_arr, _n, mmc_mk_some(_entry))boxptr_arrayUpdate(threadData,_arr,mmc_mk_icon(_n),mmc_mk_some
(_entry))
;
940#line 940 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
941#line 548 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
942 tmpMeta[2] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_n), mmc_mk_integermmc_mk_icon(_size), _arr);
943#line 548 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
944 tmpMeta[0+0] = tmpMeta[2];
945#line 548 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
946 tmp1_c1 = _n;
947#line 947 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
948 goto tmp3_done;
949 }
950 case 1: {
951 modelica_integer tmp8;
952 modelica_integer tmp9;
953 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
954 tmp8 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
955 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
956 tmp9 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
957 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
958 _n = tmp8 /* pattern as ty=Integer */;
959 _size = tmp9 /* pattern as ty=Integer */;
960 _arr = tmpMeta[4];
961 /* Pattern matching succeeded */
962#line 553 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
963 if((_n < _size))
964#line 553 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
965 {
966#line 553 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
967 goto goto_2;
968#line 968 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
969 }
970
971#line 554 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
972 _rsize = ((modelica_real)_size);
973#line 973 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
974
975#line 555 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
976 _rexpandsize = (0.4) * (_rsize);
977#line 977 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
978
979#line 556 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
980 _expandsize = ((modelica_integer)floor(_rexpandsize));
981#line 981 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
982
983#line 557 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
984 _expandsize = modelica_integer_max((modelica_integer)(_expandsize),(modelica_integer)(((modelica_integer) 1)));
985#line 985 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
986
987#line 558 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
988 _newsize = _expandsize + _size;
989#line 989 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
990
991#line 559 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
992 _arr = omc_Array_expand(threadData, _expandsize, _arr, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
993#line 993 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
994
995#line 560 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
996 _n = ((modelica_integer) 1) + _n;
997#line 997 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
998
999#line 561 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1000 _arr = arrayUpdate(_arr, _n, mmc_mk_some(_entry))boxptr_arrayUpdate(threadData,_arr,mmc_mk_icon(_n),mmc_mk_some
(_entry))
;
1001#line 1001 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1002#line 562 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1003 tmpMeta[2] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_n), mmc_mk_integermmc_mk_icon(_newsize), _arr);
1004#line 562 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1005 tmpMeta[0+0] = tmpMeta[2];
1006#line 562 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1007 tmp1_c1 = _n;
1008#line 1008 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1009 goto tmp3_done;
1010 }
1011 case 2: {
1012
1013 /* Pattern matching succeeded */
1014#line 567 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1015 fputs(MMC_STRINGDATA(_OMC_LIT6)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT6).header) + 3))) - 3)))->data)
,stdoutstdout);
1016#line 1016 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1017#line 568 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1018 goto goto_2;
1019#line 1019 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1020 goto tmp3_done;
1021 }
1022 }
1023 goto tmp3_end;
1024 tmp3_end: ;
1025 }
1026 goto goto_2;
1027 tmp3_done:
1028 (void)tmp4;
1029 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1030 goto tmp3_done2;
1031 goto_2:;
1032 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1033 if (++tmp4 < 3) {
1034 goto tmp3_top;
1035 }
1036 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1037 tmp3_done2:;
1038 }
1039 }
1040 _outValueArray = tmpMeta[0+0];
1041 _newpos = tmp1_c1;
1042 _return: OMC_LABEL_UNUSED__attribute__((unused))
1043 if (out_newpos) { *out_newpos = _newpos; }
1044 return _outValueArray;
1045}
1046PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_BaseHashTable_valueArrayAdd(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _entry, modelica_metatype *out_newpos)
1047{
1048 modelica_integer _newpos;
1049 modelica_metatype _outValueArray = NULL((void*)0);
1050 _outValueArray = omc_BaseHashTable_valueArrayAdd(threadData, _valueArray, _entry, &_newpos);
1051 /* skip box _outValueArray; tuple<#Integer, #Integer, array<Option<tuple<polymorphic<Key>, polymorphic<Value>>>>> */
1052 if (out_newpos) { *out_newpos = mmc_mk_icon(_newpos); }
1053 return _outValueArray;
1054}
1055
1056DLLExport
1057modelica_integer omc_BaseHashTable_valueArrayLength(threadData_t *threadData, modelica_metatype _valueArray)
1058{
1059 modelica_integer _sz;
1060 modelica_integer tmp1;
1061 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1062 MMC_SO()mmc_check_stackoverflow(threadData);
1063 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1064 // _sz has no default value.
1065#line 524 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1066 /* Pattern-matching assignment */
1067#line 524 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1068 tmpMeta[0] = _valueArray;
1069#line 524 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1070 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1071#line 524 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1072 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1073#line 524 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1074 _sz = tmp1 /* pattern as ty=Integer */;
1075#line 1075 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1076 _return: OMC_LABEL_UNUSED__attribute__((unused))
1077 return _sz;
1078}
1079modelica_metatype boxptr_BaseHashTable_valueArrayLength(threadData_t *threadData, modelica_metatype _valueArray)
1080{
1081 modelica_integer _sz;
1082 modelica_metatype out_sz;
1083 _sz = omc_BaseHashTable_valueArrayLength(threadData, _valueArray);
1084 out_sz = mmc_mk_icon(_sz);
1085 return out_sz;
1086}
1087
1088DLLExport
1089modelica_integer omc_BaseHashTable_hashTableCurrentSize(threadData_t *threadData, modelica_metatype _hashTable)
1090{
1091 modelica_integer _sz;
1092 modelica_metatype _va = NULL((void*)0);
1093 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1094 MMC_SO()mmc_check_stackoverflow(threadData);
1095 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1096 // _sz has no default value.
1097 // _va has no default value.
1098#line 515 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1099 /* Pattern-matching assignment */
1100#line 515 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1101 tmpMeta[0] = _hashTable;
1102#line 515 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1103 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1104#line 515 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1105 _va = tmpMeta[1];
1106#line 1106 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1107
1108#line 516 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1109 _sz = omc_BaseHashTable_valueArrayLength(threadData, _va);
1110#line 1110 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1111 _return: OMC_LABEL_UNUSED__attribute__((unused))
1112 return _sz;
1113}
1114modelica_metatype boxptr_BaseHashTable_hashTableCurrentSize(threadData_t *threadData, modelica_metatype _hashTable)
1115{
1116 modelica_integer _sz;
1117 modelica_metatype out_sz;
1118 _sz = omc_BaseHashTable_hashTableCurrentSize(threadData, _hashTable);
1119 out_sz = mmc_mk_icon(_sz);
1120 return out_sz;
1121}
1122
1123DLLExport
1124modelica_metatype omc_BaseHashTable_valueArrayListReversed(threadData_t *threadData, modelica_metatype _valueArray)
1125{
1126 modelica_metatype _entries = NULL((void*)0);
1127 modelica_metatype _arr = NULL((void*)0);
1128 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1129 MMC_SO()mmc_check_stackoverflow(threadData);
1130 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1131 // _entries has no default value.
1132 // _arr has no default value.
1133#line 504 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1134 /* Pattern-matching assignment */
1135#line 504 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1136 tmpMeta[0] = _valueArray;
1137#line 504 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1138 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1139#line 504 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1140 _arr = tmpMeta[1];
1141#line 1141 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1142
1143#line 505 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1144 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1145#line 505 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1146 _entries = omc_Array_fold(threadData, _arr, boxvar_List_consOption((void*)((char*)(&(boxvar_lit_List_consOption).header) + 3
))
, tmpMeta[0]);
1147#line 1147 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1148 _return: OMC_LABEL_UNUSED__attribute__((unused))
1149 return _entries;
1150}
1151
1152DLLExport
1153modelica_metatype omc_BaseHashTable_valueArrayList(threadData_t *threadData, modelica_metatype _valueArray)
1154{
1155 modelica_metatype _outEntries = NULL((void*)0);
1156 modelica_metatype _arr = NULL((void*)0);
1157 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1158 MMC_SO()mmc_check_stackoverflow(threadData);
1159 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1160 // _outEntries has no default value.
1161 // _arr has no default value.
1162#line 491 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1163 /* Pattern-matching assignment */
1164#line 491 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1165 tmpMeta[0] = _valueArray;
1166#line 491 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1167 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1168#line 491 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1169 _arr = tmpMeta[1];
1170#line 1170 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1171
1172#line 492 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1173 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1174#line 492 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1175 _outEntries = omc_Array_fold(threadData, _arr, boxvar_List_consOption((void*)((char*)(&(boxvar_lit_List_consOption).header) + 3
))
, tmpMeta[0]);
1176#line 1176 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1177
1178#line 493 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1179 _outEntries = listReverse(_outEntries);
1180#line 1180 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1181 _return: OMC_LABEL_UNUSED__attribute__((unused))
1182 return _outEntries;
1183}
1184
1185DLLExport
1186modelica_metatype omc_BaseHashTable_hashTableListReversed(threadData_t *threadData, modelica_metatype _hashTable)
1187{
1188 modelica_metatype _entries = NULL((void*)0);
1189 modelica_metatype _varr = NULL((void*)0);
1190 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1191 MMC_SO()mmc_check_stackoverflow(threadData);
1192 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1193 // _entries has no default value.
1194 // _varr has no default value.
1195#line 480 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1196 /* Pattern-matching assignment */
1197#line 480 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1198 tmpMeta[0] = _hashTable;
1199#line 480 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1200 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1201#line 480 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1202 _varr = tmpMeta[1];
1203#line 1203 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1204
1205#line 481 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1206 _entries = omc_BaseHashTable_valueArrayListReversed(threadData, _varr);
1207#line 1207 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1208 _return: OMC_LABEL_UNUSED__attribute__((unused))
1209 return _entries;
1210}
1211
1212DLLExport
1213modelica_metatype omc_BaseHashTable_hashTableList(threadData_t *threadData, modelica_metatype _hashTable)
1214{
1215 modelica_metatype _outEntries = NULL((void*)0);
1216 modelica_metatype _varr = NULL((void*)0);
1217 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1218 MMC_SO()mmc_check_stackoverflow(threadData);
1219 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1220 // _outEntries has no default value.
1221 // _varr has no default value.
1222#line 468 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1223 /* Pattern-matching assignment */
1224#line 468 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1225 tmpMeta[0] = _hashTable;
1226#line 468 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1227 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1228#line 468 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1229 _varr = tmpMeta[1];
1230#line 1230 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1231
1232#line 469 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1233 _outEntries = omc_BaseHashTable_valueArrayList(threadData, _varr);
1234#line 1234 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1235 _return: OMC_LABEL_UNUSED__attribute__((unused))
1236 return _outEntries;
1237}
1238
1239DLLExport
1240modelica_metatype omc_BaseHashTable_hashTableKeyList(threadData_t *threadData, modelica_metatype _hashTable)
1241{
1242 modelica_metatype _valLst = NULL((void*)0);
1243 MMC_SO()mmc_check_stackoverflow(threadData);
1244 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1245 // _valLst has no default value.
1246#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1247 _valLst = omc_List_unzipFirst(threadData, omc_BaseHashTable_hashTableList(threadData, _hashTable));
1248#line 1248 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1249 _return: OMC_LABEL_UNUSED__attribute__((unused))
1250 return _valLst;
1251}
1252
1253DLLExport
1254modelica_metatype omc_BaseHashTable_hashTableValueList(threadData_t *threadData, modelica_metatype _hashTable)
1255{
1256 modelica_metatype _valLst = NULL((void*)0);
1257 MMC_SO()mmc_check_stackoverflow(threadData);
1258 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1259 // _valLst has no default value.
1260#line 450 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1261 _valLst = omc_List_unzipSecond(threadData, omc_BaseHashTable_hashTableList(threadData, _hashTable));
1262#line 1262 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1263 _return: OMC_LABEL_UNUSED__attribute__((unused))
1264 return _valLst;
1265}
1266
1267PROTECTED_FUNCTION_STATIC modelica_string omc_BaseHashTable_dumpTuple(threadData_t *threadData, modelica_metatype _tpl, modelica_fnptr _printKey, modelica_fnptr _printValue)
1268{
1269 modelica_string _str = NULL((void*)0);
1270 modelica_metatype _k = NULL((void*)0);
1271 modelica_metatype _v = NULL((void*)0);
1272 modelica_string _sk = NULL((void*)0);
1273 modelica_string _sv = NULL((void*)0);
1274 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1275 MMC_SO()mmc_check_stackoverflow(threadData);
1276 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1277 // _str has no default value.
1278 // _k has no default value.
1279 // _v has no default value.
1280 // _sk has no default value.
1281 // _sv has no default value.
1282#line 439 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1283 /* Pattern-matching assignment */
1284#line 439 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1285 tmpMeta[0] = _tpl;
1286#line 439 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1287 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1288#line 439 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1289 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1290#line 439 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1291 _k = tmpMeta[1];
1292#line 439 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1293 _v = tmpMeta[2];
1294#line 1294 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1295
1296#line 440 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1297 _sk = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printKey), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_printKey) - 3)
)) + (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printKey), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_printKey) - 3)
)) + (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printKey), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_printKey) - 3)
)) + (2)))))
), _k) : ((modelica_metatype(*)(threadData_t*, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printKey), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_printKey) - 3)
)) + (1)))))
)) (threadData, _k);
1298#line 1298 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1299
1300#line 441 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1301 _sv = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printValue), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_printValue) - 3
))) + (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printValue), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_printValue) - 3
))) + (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printValue), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_printValue) - 3
))) + (2)))))
), _v) : ((modelica_metatype(*)(threadData_t*, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printValue), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_printValue) - 3
))) + (1)))))
)) (threadData, _v);
1302#line 1302 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1303
1304#line 442 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1305 tmpMeta[0] = mmc_mk_cons(_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), mmc_mk_cons(_sk, mmc_mk_cons(_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)), mmc_mk_cons(_sv, mmc_mk_cons(_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)))))));
1306#line 442 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1307 _str = stringAppendList(tmpMeta[0]);
1308#line 1308 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1309 _return: OMC_LABEL_UNUSED__attribute__((unused))
1310 return _str;
1311}
1312
1313DLLExport
1314void omc_BaseHashTable_debugDump(threadData_t *threadData, modelica_metatype _ht)
1315{
1316 modelica_fnptr _printKey;
1317 modelica_fnptr _printValue;
1318 modelica_metatype _k = NULL((void*)0);
1319 modelica_metatype _v = NULL((void*)0);
1320 modelica_integer _n;
1321 modelica_integer _size;
1322 modelica_integer _i;
1323 modelica_integer _j;
1324 modelica_integer _szBucket;
1325 modelica_metatype _arr = NULL((void*)0);
1326 modelica_metatype _he = NULL((void*)0);
1327 modelica_metatype _hashVector = NULL((void*)0);
1328 modelica_integer tmp1;
1329 modelica_integer tmp2;
1330 modelica_integer tmp3;
1331 modelica_integer tmp4;
1332 modelica_integer tmp5;
1333 modelica_integer tmp6;
1334 modelica_integer tmp7;
1335 modelica_integer tmp8;
1336 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
1337 MMC_SO()mmc_check_stackoverflow(threadData);
1338 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1339 // _k has no default value.
1340 // _v has no default value.
1341 // _n has no default value.
1342 // _size has no default value.
1343 // _i has no default value.
1344 // _j has no default value.
1345 // _szBucket has no default value.
1346 // _arr has no default value.
1347 // _he has no default value.
1348 // _hashVector has no default value.
1349#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1350 /* Pattern-matching assignment */
1351#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1352 tmpMeta[0] = _ht;
1353#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1354 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1355#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1356 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1357#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1358 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
1359#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1360 tmp1 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1361#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1362 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1363#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1364 tmp2 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1365#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1366 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
1367#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1368 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1369#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1370 tmp3 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
1371#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1372 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1373#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1374 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (3)))))
;
1375#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1376 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[7]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[7]) - 3
))) + (4)))))
;
1377#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1378 _hashVector = tmpMeta[1];
1379#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1380 _n = tmp1 /* pattern as ty=Integer */;
1381#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1382 _size = tmp2 /* pattern as ty=Integer */;
1383#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1384 _arr = tmpMeta[5];
1385#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1386 _szBucket = tmp3 /* pattern as ty=Integer */;
1387#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1388 _printKey = tmpMeta[8];
1389#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1390 _printValue = tmpMeta[9];
1391#line 1391 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1392
1393#line 399 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1394 fputs(MMC_STRINGDATA(_OMC_LIT10)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT10).header) + 3))) - 3)))->data)
,stdoutstdout);
1395#line 1395 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1396
1397#line 400 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1398 tmpMeta[0] = stringAppend(_OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)),intString(_szBucket));
1399#line 400 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1400 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)));
1401#line 400 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1402 fputs(MMC_STRINGDATA(tmpMeta[1])(((struct mmc_string*)((void*)((char*)(tmpMeta[1]) - 3)))->
data)
,stdoutstdout);
1403#line 1403 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1404
1405#line 402 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1406 fputs(MMC_STRINGDATA(_OMC_LIT13)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT13).header) + 3))) - 3)))->data)
,stdoutstdout);
1407#line 1407 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1408
1409#line 403 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1410 tmpMeta[0] = stringAppend(_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)),intString(_n));
1411#line 403 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1412 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)));
1413#line 403 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1414 fputs(MMC_STRINGDATA(tmpMeta[1])(((struct mmc_string*)((void*)((char*)(tmpMeta[1]) - 3)))->
data)
,stdoutstdout);
1415#line 1415 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1416
1417#line 404 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1418 tmpMeta[0] = stringAppend(_OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)),intString(_size));
1419#line 404 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1420 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)));
1421#line 404 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1422 fputs(MMC_STRINGDATA(tmpMeta[1])(((struct mmc_string*)((void*)((char*)(tmpMeta[1]) - 3)))->
data)
,stdoutstdout);
1423#line 1423 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1424
1425#line 405 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1426 _i = ((modelica_integer) 0);
1427#line 1427 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1428
1429#line 406 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1430 {
1431#line 406 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1432 modelica_metatype _entry;
1433#line 406 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1434 for (tmpMeta[0] = _arr, tmp5 = arrayLength(tmpMeta[0]), tmp4 = 1; tmp4 <= tmp5; tmp4++)
1435#line 406 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1436 {
1437#line 406 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1438 _entry = arrayGet(tmpMeta[0],tmp4)nobox_arrayGet(threadData,tmpMeta[0],tmp4);
1439#line 407 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1440 _i = ((modelica_integer) 1) + _i;
1441#line 1441 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1442
1443#line 408 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1444 if(isSome(_entry)(0==((((((*(mmc_uint_t*)((void*)((char*)(_entry) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(_entry) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(_entry
) - 3)))) >> 10)) ? 0 : 1)
)
1445#line 408 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1446 {
1447#line 409 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1448 /* Pattern-matching assignment */
1449#line 409 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1450 tmpMeta[1] = _entry;
1451#line 409 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1452 if (optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1453#line 409 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1454 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1455#line 409 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1456 _he = tmpMeta[2];
1457#line 1457 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1458
1459#line 410 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1460 tmpMeta[1] = stringAppend(intString(_i),_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)));
1461#line 410 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1462 tmpMeta[2] = stringAppend(tmpMeta[1],omc_BaseHashTable_dumpTuple(threadData, _he, ((modelica_fnptr) _printKey), ((modelica_fnptr) _printValue)));
1463#line 410 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1464 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)));
1465#line 410 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1466 fputs(MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
,stdoutstdout);
1467#line 1467 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1468 }
1469 }
1470 }
1471
1472#line 414 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1473 fputs(MMC_STRINGDATA(_OMC_LIT17)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT17).header) + 3))) - 3)))->data)
,stdoutstdout);
1474#line 1474 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1475
1476#line 415 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1477 _i = ((modelica_integer) 0);
1478#line 1478 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1479
1480#line 416 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1481 {
1482#line 416 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1483 modelica_metatype _node;
1484#line 416 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1485 for (tmpMeta[0] = _hashVector, tmp8 = arrayLength(tmpMeta[0]), tmp7 = 1; tmp7 <= tmp8; tmp7++)
1486#line 416 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1487 {
1488#line 416 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1489 _node = arrayGet(tmpMeta[0],tmp7)nobox_arrayGet(threadData,tmpMeta[0],tmp7);
1490#line 417 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1491 _i = ((modelica_integer) 1) + _i;
1492#line 1492 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1493
1494#line 418 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1495 if((!listEmpty(_node)((*(mmc_uint_t*)((void*)((char*)(_node) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
))
1496#line 418 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1497 {
1498#line 419 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1499 tmpMeta[1] = stringAppend(intString(_i),_OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)));
1500#line 419 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1501 fputs(MMC_STRINGDATA(tmpMeta[1])(((struct mmc_string*)((void*)((char*)(tmpMeta[1]) - 3)))->
data)
,stdoutstdout);
1502#line 1502 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1503
1504#line 420 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1505 {
1506#line 420 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1507 modelica_metatype _n;
1508#line 420 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1509 for (tmpMeta[1] = _node; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
1510#line 420 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1511 {
1512#line 420 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1513 _n = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1514#line 421 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1515 /* Pattern-matching assignment */
1516#line 421 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1517 tmpMeta[2] = _n;
1518#line 421 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1519 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
1520#line 421 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1521 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1522#line 421 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1523 tmp6 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1524#line 421 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1525 _k = tmpMeta[3];
1526#line 421 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1527 _j = tmp6 /* pattern as ty=Integer */;
1528#line 1528 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1529
1530#line 422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1531 tmpMeta[2] = stringAppend(_OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)),(MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printKey), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_printKey) - 3)
)) + (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printKey), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_printKey) - 3)
)) + (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printKey), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_printKey) - 3)
)) + (2)))))
), _k) : ((modelica_metatype(*)(threadData_t*, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printKey), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_printKey) - 3)
)) + (1)))))
)) (threadData, _k));
1532#line 422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1533 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)));
1534#line 422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1535 tmpMeta[4] = stringAppend(tmpMeta[3],intString(_j));
1536#line 422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1537 tmpMeta[5] = stringAppend(tmpMeta[4],_OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)));
1538#line 422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1539 fputs(MMC_STRINGDATA(tmpMeta[5])(((struct mmc_string*)((void*)((char*)(tmpMeta[5]) - 3)))->
data)
,stdoutstdout);
1540#line 1540 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1541 }
1542 }
1543
1544#line 424 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1545 fputs(MMC_STRINGDATA(_OMC_LIT12)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT12).header) + 3))) - 3)))->data)
,stdoutstdout);
1546#line 1546 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1547 }
1548 }
1549 }
1550 _return: OMC_LABEL_UNUSED__attribute__((unused))
1551 return;
1552}
1553
1554DLLExport
1555void omc_BaseHashTable_dumpHashTable(threadData_t *threadData, modelica_metatype _t)
1556{
1557 modelica_fnptr _printKey;
1558 modelica_fnptr _printValue;
1559 modelica_metatype _k = NULL((void*)0);
1560 modelica_metatype _v = NULL((void*)0);
1561 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1562 MMC_SO()mmc_check_stackoverflow(threadData);
1563 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1564 // _k has no default value.
1565 // _v has no default value.
1566#line 371 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1567 /* Pattern-matching assignment */
1568#line 371 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1569 tmpMeta[0] = _t;
1570#line 371 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1571 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1572#line 371 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1573 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
1574#line 371 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1575 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
1576#line 371 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1577 _printKey = tmpMeta[2];
1578#line 371 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1579 _printValue = tmpMeta[3];
1580#line 1580 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1581
1582#line 372 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1583 fputs(MMC_STRINGDATA(_OMC_LIT22)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT22).header) + 3))) - 3)))->data)
,stdoutstdout);
1584#line 1584 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1585
1586#line 374 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1587 {
1588#line 374 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1589 modelica_metatype _entry;
1590#line 374 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1591 for (tmpMeta[0] = omc_BaseHashTable_hashTableList(threadData, _t); !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
1592#line 374 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1593 {
1594#line 374 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1595 _entry = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1596#line 375 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1597 /* Pattern-matching assignment */
1598#line 375 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1599 tmpMeta[1] = _entry;
1600#line 375 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1601 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1602#line 375 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1603 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1604#line 375 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1605 _k = tmpMeta[2];
1606#line 375 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1607 _v = tmpMeta[3];
1608#line 1608 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1609
1610#line 376 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1611 fputs(MMC_STRINGDATA(_OMC_LIT7)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT7).header) + 3))) - 3)))->data)
,stdoutstdout);
1612#line 1612 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1613
1614#line 377 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1615 fputs(MMC_STRINGDATA((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printKey), 2))) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printKey), 1)))) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printKey), 2))), _k) : ((modelica_metatype(*)(threadData_t*, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printKey), 1)))) (threadData, _k))(((struct mmc_string*)((void*)((char*)(((*(void**)(((void*)((
void**)(((void*)((char*)(_printKey) - 3))) + (2)))))) ? ((modelica_metatype
(*)(threadData_t*, modelica_metatype, modelica_metatype)) ((*
(void**)(((void*)((void**)(((void*)((char*)(_printKey) - 3)))
+ (1))))))) (threadData, ((*(void**)(((void*)((void**)(((void
*)((char*)(_printKey) - 3))) + (2)))))), _k) : ((modelica_metatype
(*)(threadData_t*, modelica_metatype)) ((*(void**)(((void*)((
void**)(((void*)((char*)(_printKey) - 3))) + (1))))))) (threadData
, _k)) - 3)))->data)
,stdoutstdout);
1616#line 1616 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1617
1618#line 378 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1619 fputs(MMC_STRINGDATA(_OMC_LIT8)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT8).header) + 3))) - 3)))->data)
,stdoutstdout);
1620#line 1620 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1621
1622#line 379 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1623 fputs(MMC_STRINGDATA((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printValue), 2))) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printValue), 1)))) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printValue), 2))), _v) : ((modelica_metatype(*)(threadData_t*, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_printValue), 1)))) (threadData, _v))(((struct mmc_string*)((void*)((char*)(((*(void**)(((void*)((
void**)(((void*)((char*)(_printValue) - 3))) + (2)))))) ? ((modelica_metatype
(*)(threadData_t*, modelica_metatype, modelica_metatype)) ((*
(void**)(((void*)((void**)(((void*)((char*)(_printValue) - 3)
)) + (1))))))) (threadData, ((*(void**)(((void*)((void**)(((void
*)((char*)(_printValue) - 3))) + (2)))))), _v) : ((modelica_metatype
(*)(threadData_t*, modelica_metatype)) ((*(void**)(((void*)((
void**)(((void*)((char*)(_printValue) - 3))) + (1))))))) (threadData
, _v)) - 3)))->data)
,stdoutstdout);
1624#line 1624 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1625
1626#line 380 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1627 fputs(MMC_STRINGDATA(_OMC_LIT23)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT23).header) + 3))) - 3)))->data)
,stdoutstdout);
1628#line 1628 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1629 }
1630 }
1631 _return: OMC_LABEL_UNUSED__attribute__((unused))
1632 return;
1633}
1634
1635PROTECTED_FUNCTION_STATIC modelica_integer omc_BaseHashTable_hasKeyIndex2(threadData_t *threadData, modelica_metatype _key, modelica_metatype _keyIndices, modelica_fnptr _keyEqual)
1636{
1637 modelica_integer _index;
1638 modelica_metatype _key2 = NULL((void*)0);
1639 modelica_integer tmp1;
1640 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1641 MMC_SO()mmc_check_stackoverflow(threadData);
1642 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1643 // _index has no default value.
1644 // _key2 has no default value.
1645#line 354 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1646 {
1647#line 354 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1648 modelica_metatype _keyIndex;
1649#line 354 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1650 for (tmpMeta[0] = _keyIndices; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
1651#line 354 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1652 {
1653#line 354 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1654 _keyIndex = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1655#line 355 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1656 /* Pattern-matching assignment */
1657#line 355 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1658 tmpMeta[1] = _keyIndex;
1659#line 355 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1660 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1661#line 355 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1662 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1663#line 355 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1664 tmp1 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1665#line 355 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1666 _key2 = tmpMeta[2];
1667#line 355 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1668 _index = tmp1 /* pattern as ty=Integer */;
1669#line 1669 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1670
1671#line 356 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1672 if(mmc_unbox_boolean((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_keyEqual), 2))) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_keyEqual), 1)))) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_keyEqual), 2))), _key, _key2) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_keyEqual), 1)))) (threadData, _key, _key2))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_keyEqual) - 3))) + (2)))))) ? ((modelica_metatype(*)(threadData_t
*, modelica_metatype, modelica_metatype, modelica_metatype)) (
(*(void**)(((void*)((void**)(((void*)((char*)(_keyEqual) - 3)
)) + (1))))))) (threadData, ((*(void**)(((void*)((void**)(((void
*)((char*)(_keyEqual) - 3))) + (2)))))), _key, _key2) : ((modelica_metatype
(*)(threadData_t*, modelica_metatype, modelica_metatype)) ((*
(void**)(((void*)((void**)(((void*)((char*)(_keyEqual) - 3)))
+ (1))))))) (threadData, _key, _key2))) >> 1)
)
1673#line 356 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1674 {
1675#line 357 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1676 goto _return;
1677#line 1677 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1678 }
1679 }
1680 }
1681
1682#line 360 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1683 _index = ((modelica_integer) -1);
1684#line 1684 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1685 _return: OMC_LABEL_UNUSED__attribute__((unused))
1686 return _index;
1687}
1688PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_BaseHashTable_hasKeyIndex2(threadData_t *threadData, modelica_metatype _key, modelica_metatype _keyIndices, modelica_fnptr _keyEqual)
1689{
1690 modelica_integer _index;
1691 modelica_metatype out_index;
1692 _index = omc_BaseHashTable_hasKeyIndex2(threadData, _key, _keyIndices, _keyEqual);
1693 out_index = mmc_mk_icon(_index);
1694 return out_index;
1695}
1696
1697PROTECTED_FUNCTION_STATIC modelica_integer omc_BaseHashTable_hasKeyIndex(threadData_t *threadData, modelica_metatype _key, modelica_metatype _hashTable)
1698{
1699 modelica_integer _indx;
1700 modelica_integer _hashindx;
1701 modelica_integer _bsize;
1702 modelica_metatype _indexes = NULL((void*)0);
1703 modelica_metatype _hashvec = NULL((void*)0);
1704 modelica_fnptr _keyEqual;
1705 modelica_fnptr _hashFunc;
1706 modelica_integer tmp1;
1707 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
1708 MMC_SO()mmc_check_stackoverflow(threadData);
1709 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1710 // _indx has no default value.
1711 // _hashindx has no default value.
1712 // _bsize has no default value.
1713 // _indexes has no default value.
1714 // _hashvec has no default value.
1715#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1716 /* Pattern-matching assignment */
1717#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1718 tmpMeta[0] = _hashTable;
1719#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1720 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1721#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1722 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1723#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1724 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1725#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1726 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1727#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1728 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (1)))))
;
1729#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1730 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
1731#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1732 _hashvec = tmpMeta[1];
1733#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1734 _bsize = tmp1 /* pattern as ty=Integer */;
1735#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1736 _hashFunc = tmpMeta[4];
1737#line 339 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1738 _keyEqual = tmpMeta[5];
1739#line 1739 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1740
1741#line 340 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1742 _hashindx = ((modelica_integer) 1) + mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 2))) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 1)))) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 2))), _key, mmc_mk_integer(_bsize)) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 1)))) (threadData, _key, mmc_mk_integer(_bsize)))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_hashFunc) - 3))) + (2)))))) ? ((modelica_metatype(*)(threadData_t
*, modelica_metatype, modelica_metatype, modelica_metatype)) (
(*(void**)(((void*)((void**)(((void*)((char*)(_hashFunc) - 3)
)) + (1))))))) (threadData, ((*(void**)(((void*)((void**)(((void
*)((char*)(_hashFunc) - 3))) + (2)))))), _key, mmc_mk_icon(_bsize
)) : ((modelica_metatype(*)(threadData_t*, modelica_metatype,
modelica_metatype)) ((*(void**)(((void*)((void**)(((void*)((
char*)(_hashFunc) - 3))) + (1))))))) (threadData, _key, mmc_mk_icon
(_bsize)))) >> 1)
;
1743#line 1743 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1744
1745#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1746 _indexes = arrayGet(_hashvec,_hashindx)nobox_arrayGet(threadData,_hashvec,_hashindx) /* DAE.ASUB */;
1747#line 1747 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1748
1749#line 342 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1750 _indx = omc_BaseHashTable_hasKeyIndex2(threadData, _key, _indexes, ((modelica_fnptr) _keyEqual));
1751#line 1751 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1752 _return: OMC_LABEL_UNUSED__attribute__((unused))
1753 return _indx;
1754}
1755PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_BaseHashTable_hasKeyIndex(threadData_t *threadData, modelica_metatype _key, modelica_metatype _hashTable)
1756{
1757 modelica_integer _indx;
1758 modelica_metatype out_indx;
1759 _indx = omc_BaseHashTable_hasKeyIndex(threadData, _key, _hashTable);
1760 out_indx = mmc_mk_icon(_indx);
1761 return out_indx;
1762}
1763
1764DLLExport
1765modelica_metatype omc_BaseHashTable_get(threadData_t *threadData, modelica_metatype _key, modelica_metatype _hashTable)
1766{
1767 modelica_metatype _value = NULL((void*)0);
1768 modelica_integer _i;
1769 modelica_metatype _varr = NULL((void*)0);
1770 modelica_boolean tmp1;
1771 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1772 MMC_SO()mmc_check_stackoverflow(threadData);
1773 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1774 // _value has no default value.
1775 // _i has no default value.
1776 // _varr has no default value.
1777#line 321 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1778 _i = omc_BaseHashTable_hasKeyIndex(threadData, _key, _hashTable);
1779#line 1779 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1780
1781#line 322 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1782 /* Pattern-matching assignment */
1783#line 322 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1784 tmp1 = (_i == ((modelica_integer) -1));
1785#line 322 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1786 if (0 != tmp1) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1787#line 1787 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1788
1789#line 323 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1790 /* Pattern-matching assignment */
1791#line 323 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1792 tmpMeta[0] = _hashTable;
1793#line 323 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1794 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1795#line 323 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1796 _varr = tmpMeta[1];
1797#line 1797 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1798
1799#line 324 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1800 omc_BaseHashTable_getValueArray(threadData, _varr, _i ,&_value);
1801#line 1801 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1802 _return: OMC_LABEL_UNUSED__attribute__((unused))
1803 return _value;
1804}
1805
1806DLLExport
1807modelica_boolean omc_BaseHashTable_anyKeyInHashTable(threadData_t *threadData, modelica_metatype _keys, modelica_metatype _ht)
1808{
1809 modelica_boolean _res;
1810 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1811 MMC_SO()mmc_check_stackoverflow(threadData);
1812 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1813 // _res has no default value.
1814#line 303 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1815 {
1816#line 303 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1817 modelica_metatype _key;
1818#line 303 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1819 for (tmpMeta[0] = _keys; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
1820#line 303 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1821 {
1822#line 303 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1823 _key = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1824#line 304 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1825 if(omc_BaseHashTable_hasKey(threadData, _key, _ht))
1826#line 304 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1827 {
1828#line 305 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1829 _res = 1;
1830#line 1830 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1831
1832#line 306 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1833 goto _return;
1834#line 1834 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1835 }
1836 }
1837 }
1838
1839#line 309 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1840 _res = 0;
1841#line 1841 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1842 _return: OMC_LABEL_UNUSED__attribute__((unused))
1843 return _res;
1844}
1845modelica_metatype boxptr_BaseHashTable_anyKeyInHashTable(threadData_t *threadData, modelica_metatype _keys, modelica_metatype _ht)
1846{
1847 modelica_boolean _res;
1848 modelica_metatype out_res;
1849 _res = omc_BaseHashTable_anyKeyInHashTable(threadData, _keys, _ht);
1850 out_res = mmc_mk_icon(_res);
1851 return out_res;
1852}
1853
1854DLLExport
1855modelica_boolean omc_BaseHashTable_hasKey(threadData_t *threadData, modelica_metatype _key, modelica_metatype _hashTable)
1856{
1857 modelica_boolean _b;
1858 modelica_metatype _varr = NULL((void*)0);
1859 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1860 MMC_SO()mmc_check_stackoverflow(threadData);
1861 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1862 // _b has no default value.
1863 // _varr has no default value.
1864#line 294 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1865 /* Pattern-matching assignment */
1866#line 294 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1867 tmpMeta[0] = _hashTable;
1868#line 294 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1869 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1870#line 294 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1871 _varr = tmpMeta[1];
1872#line 1872 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1873
1874#line 295 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1875 _b = omc_BaseHashTable_valueArrayKeyIndexExists(threadData, _varr, omc_BaseHashTable_hasKeyIndex(threadData, _key, _hashTable));
1876#line 1876 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1877 _return: OMC_LABEL_UNUSED__attribute__((unused))
1878 return _b;
1879}
1880modelica_metatype boxptr_BaseHashTable_hasKey(threadData_t *threadData, modelica_metatype _key, modelica_metatype _hashTable)
1881{
1882 modelica_boolean _b;
1883 modelica_metatype out_b;
1884 _b = omc_BaseHashTable_hasKey(threadData, _key, _hashTable);
1885 out_b = mmc_mk_icon(_b);
1886 return out_b;
1887}
1888
1889DLLExport
1890void omc_BaseHashTable_delete(threadData_t *threadData, modelica_metatype _key, modelica_metatype _hashTable)
1891{
1892 modelica_integer _indx;
1893 modelica_metatype _varr = NULL((void*)0);
1894 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1895 MMC_SO()mmc_check_stackoverflow(threadData);
1896 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1897 // _indx has no default value.
1898 // _varr has no default value.
1899#line 278 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1900 _indx = omc_BaseHashTable_hasKeyIndex(threadData, _key, _hashTable);
1901#line 1901 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1902
1903#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1904 /* Pattern-matching assignment */
1905#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1906 tmpMeta[0] = _hashTable;
1907#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1908 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1909#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1910 _varr = tmpMeta[1];
1911#line 1911 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1912
1913#line 280 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1914 if((!omc_BaseHashTable_valueArrayKeyIndexExists(threadData, _varr, _indx)))
1915#line 280 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1916 {
1917#line 281 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1918 fputs(MMC_STRINGDATA(_OMC_LIT24)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT24).header) + 3))) - 3)))->data)
,stdoutstdout);
1919#line 1919 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1920
1921#line 282 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1922 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1923#line 1923 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1924 }
1925
1926#line 284 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1927 omc_BaseHashTable_valueArrayClear(threadData, _varr, _indx);
1928#line 1928 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1929 _return: OMC_LABEL_UNUSED__attribute__((unused))
1930 return;
1931}
1932
1933DLLExport
1934void omc_BaseHashTable_update(threadData_t *threadData, modelica_metatype _entry, modelica_metatype _hashTable)
1935{
1936 modelica_metatype _varr = NULL((void*)0);
1937 modelica_integer _index;
1938 modelica_metatype _key = NULL((void*)0);
1939 modelica_boolean tmp1;
1940 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1941 MMC_SO()mmc_check_stackoverflow(threadData);
1942 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1943 // _varr has no default value.
1944 // _index has no default value.
1945 // _key has no default value.
1946#line 260 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1947 /* Pattern-matching assignment */
1948#line 260 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1949 tmpMeta[0] = _entry;
1950#line 260 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1951 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1952#line 260 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1953 _key = tmpMeta[1];
1954#line 1954 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1955
1956#line 261 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1957 /* Pattern-matching assignment */
1958#line 261 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1959 tmpMeta[0] = _hashTable;
1960#line 261 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1961 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1962#line 261 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1963 _varr = tmpMeta[1];
1964#line 1964 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1965
1966#line 262 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1967 _index = omc_BaseHashTable_hasKeyIndex(threadData, _key, _hashTable);
1968#line 1968 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1969
1970#line 263 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1971 /* Pattern-matching assignment */
1972#line 263 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1973 tmp1 = omc_BaseHashTable_valueArrayKeyIndexExists(threadData, _varr, _index);
1974#line 263 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1975 if (1 != tmp1) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1976#line 1976 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1977
1978#line 264 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
1979 omc_BaseHashTable_valueArraySet(threadData, _varr, _index, _entry);
1980#line 1980 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
1981 _return: OMC_LABEL_UNUSED__attribute__((unused))
1982 return;
1983}
1984
1985DLLExport
1986modelica_metatype omc_BaseHashTable_addUnique(threadData_t *threadData, modelica_metatype _entry, modelica_metatype _hashTable)
1987{
1988 modelica_metatype _outHashTable = NULL((void*)0);
1989 modelica_integer _indx;
1990 modelica_integer _newpos;
1991 modelica_integer _bsize;
1992 modelica_metatype _varr = NULL((void*)0);
1993 modelica_metatype _indexes = NULL((void*)0);
1994 modelica_metatype _hashvec = NULL((void*)0);
1995 modelica_metatype _key = NULL((void*)0);
1996 modelica_metatype _fntpl = NULL((void*)0);
1997 modelica_fnptr _hashFunc;
1998 modelica_integer tmp1;
1999 modelica_boolean tmp2;
2000 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
2001 MMC_SO()mmc_check_stackoverflow(threadData);
2002 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2003 // _outHashTable has no default value.
2004 // _indx has no default value.
2005 // _newpos has no default value.
2006 // _bsize has no default value.
2007 // _varr has no default value.
2008 // _indexes has no default value.
2009 // _hashvec has no default value.
2010 // _key has no default value.
2011 // _fntpl has no default value.
2012#line 240 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2013 /* Pattern-matching assignment */
2014#line 240 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2015 tmpMeta[0] = _entry;
2016#line 240 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2017 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2018#line 240 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2019 _key = tmpMeta[1];
2020#line 2020 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2021
2022#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2023 /* Pattern-matching assignment */
2024#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2025 tmpMeta[0] = _hashTable;
2026#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2027 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2028#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2029 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
2030#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2031 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
2032#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2033 tmp1 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2034#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2035 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
2036#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2037 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
2038#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2039 _hashvec = tmpMeta[1];
2040#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2041 _varr = tmpMeta[2];
2042#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2043 _bsize = tmp1 /* pattern as ty=Integer */;
2044#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2045 _fntpl = tmpMeta[4];
2046#line 241 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2047 _hashFunc = tmpMeta[5];
2048#line 2048 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2049
2050#line 242 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2051 tmp2 = 0; /* begin failure */
2052#line 242 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2053 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
2054#line 242 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2055 omc_BaseHashTable_get(threadData, _key, _hashTable);
2056#line 2056 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2057 tmp2 = 1;
2058 goto goto_3;
2059 goto_3:;
2060 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
2061 if (tmp2) {MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};} /* end failure */
2062
2063#line 243 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2064 _indx = ((modelica_integer) 1) + mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 2))) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 1)))) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 2))), _key, mmc_mk_integer(_bsize)) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 1)))) (threadData, _key, mmc_mk_integer(_bsize)))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_hashFunc) - 3))) + (2)))))) ? ((modelica_metatype(*)(threadData_t
*, modelica_metatype, modelica_metatype, modelica_metatype)) (
(*(void**)(((void*)((void**)(((void*)((char*)(_hashFunc) - 3)
)) + (1))))))) (threadData, ((*(void**)(((void*)((void**)(((void
*)((char*)(_hashFunc) - 3))) + (2)))))), _key, mmc_mk_icon(_bsize
)) : ((modelica_metatype(*)(threadData_t*, modelica_metatype,
modelica_metatype)) ((*(void**)(((void*)((void**)(((void*)((
char*)(_hashFunc) - 3))) + (1))))))) (threadData, _key, mmc_mk_icon
(_bsize)))) >> 1)
;
2065#line 2065 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2066
2067#line 244 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2068 _varr = omc_BaseHashTable_valueArrayAdd(threadData, _varr, _entry ,&_newpos);
2069#line 2069 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2070
2071#line 245 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2072 _indexes = arrayGet(_hashvec,_indx)nobox_arrayGet(threadData,_hashvec,_indx) /* DAE.ASUB */;
2073#line 2073 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2074
2075#line 246 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2076 tmpMeta[1] = mmc_mk_box2(0, _key, mmc_mk_integermmc_mk_icon(_newpos));
2077#line 246 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2078 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], _indexes);
2079#line 246 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2080 _hashvec = arrayUpdate(_hashvec, _indx, tmpMeta[0])boxptr_arrayUpdate(threadData,_hashvec,mmc_mk_icon(_indx),tmpMeta
[0])
;
2081#line 2081 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2082
2083#line 247 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2084 tmpMeta[0] = mmc_mk_box4(0, _hashvec, _varr, mmc_mk_integermmc_mk_icon(_bsize), _fntpl);
2085#line 247 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2086 _outHashTable = tmpMeta[0];
2087#line 2087 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2088 _return: OMC_LABEL_UNUSED__attribute__((unused))
2089 return _outHashTable;
2090}
2091
2092DLLExport
2093modelica_metatype omc_BaseHashTable_addNoUpdCheck(threadData_t *threadData, modelica_metatype _entry, modelica_metatype _hashTable)
2094{
2095 modelica_metatype _outHashTable = NULL((void*)0);
2096 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
2097 MMC_SO()mmc_check_stackoverflow(threadData);
2098 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2099 // _outHashTable has no default value.
2100#line 2100 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2101 { /* matchcontinue expression */
2102 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
2103 tmp3_1 = _entry;
2104 tmp3_2 = _hashTable;
2105 {
2106 modelica_integer _indx;
2107 modelica_integer _newpos;
2108 modelica_integer _bsize;
2109 modelica_metatype _varr = NULL((void*)0);
2110 modelica_metatype _indexes = NULL((void*)0);
2111 modelica_metatype _hashvec = NULL((void*)0);
2112 modelica_metatype _v = NULL((void*)0);
2113 modelica_metatype _key = NULL((void*)0);
2114 modelica_metatype _fntpl = NULL((void*)0);
2115 modelica_fnptr _hashFunc;
2116 volatile mmc_switch_type tmp3;
2117 int tmp4;
2118 // _indx has no default value.
2119 // _newpos has no default value.
2120 // _bsize has no default value.
2121 // _varr has no default value.
2122 // _indexes has no default value.
2123 // _hashvec has no default value.
2124 // _v has no default value.
2125 // _key has no default value.
2126 // _fntpl has no default value.
2127 tmp3 = 0;
2128 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
2129 tmp2_top:
2130 threadData->mmc_jumper = &new_mmc_jumper;
2131 for (; tmp3 < 2; tmp3++) {
2132 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2133 case 0: {
2134 modelica_integer tmp5;
2135 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2136 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
2137 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
2138 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
2139 tmp5 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2140 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(4)))))
;
2141 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (1)))))
;
2142
2143 _v = tmp3_1;
2144 _key = tmpMeta[1];
2145 _hashvec = tmpMeta[2];
2146 _varr = tmpMeta[3];
2147 _bsize = tmp5 /* pattern as ty=Integer */;
2148 _fntpl = tmpMeta[5];
2149 _hashFunc = tmpMeta[6];
2150 /* Pattern matching succeeded */
2151#line 209 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2152 _indx = ((modelica_integer) 1) + mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 2))) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 1)))) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 2))), _key, mmc_mk_integer(_bsize)) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 1)))) (threadData, _key, mmc_mk_integer(_bsize)))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_hashFunc) - 3))) + (2)))))) ? ((modelica_metatype(*)(threadData_t
*, modelica_metatype, modelica_metatype, modelica_metatype)) (
(*(void**)(((void*)((void**)(((void*)((char*)(_hashFunc) - 3)
)) + (1))))))) (threadData, ((*(void**)(((void*)((void**)(((void
*)((char*)(_hashFunc) - 3))) + (2)))))), _key, mmc_mk_icon(_bsize
)) : ((modelica_metatype(*)(threadData_t*, modelica_metatype,
modelica_metatype)) ((*(void**)(((void*)((void**)(((void*)((
char*)(_hashFunc) - 3))) + (1))))))) (threadData, _key, mmc_mk_icon
(_bsize)))) >> 1)
;
2153#line 2153 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2154
2155#line 210 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2156 _varr = omc_BaseHashTable_valueArrayAdd(threadData, _varr, _v ,&_newpos);
2157#line 2157 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2158
2159#line 211 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2160 _indexes = arrayGet(_hashvec,_indx)nobox_arrayGet(threadData,_hashvec,_indx) /* DAE.ASUB */;
2161#line 2161 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2162
2163#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2164 tmpMeta[2] = mmc_mk_box2(0, _key, mmc_mk_integermmc_mk_icon(_newpos));
2165#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2166 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _indexes);
2167#line 212 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2168 _hashvec = arrayUpdate(_hashvec, _indx, tmpMeta[1])boxptr_arrayUpdate(threadData,_hashvec,mmc_mk_icon(_indx),tmpMeta
[1])
;
2169#line 2169 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2170#line 213 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2171 tmpMeta[1] = mmc_mk_box4(0, _hashvec, _varr, mmc_mk_integermmc_mk_icon(_bsize), _fntpl);
2172#line 213 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2173 tmpMeta[0] = tmpMeta[1];
2174#line 2174 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2175 goto tmp2_done;
2176 }
2177 case 1: {
2178
2179 /* Pattern matching succeeded */
2180#line 218 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2181 fputs(MMC_STRINGDATA(_OMC_LIT25)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT25).header) + 3))) - 3)))->data)
,stdoutstdout);
2182#line 2182 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2183#line 219 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2184 goto goto_1;
2185#line 2185 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2186 goto tmp2_done;
2187 }
2188 }
2189 goto tmp2_end;
2190 tmp2_end: ;
2191 }
2192 goto goto_1;
2193 tmp2_done:
2194 (void)tmp3;
2195 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2196 goto tmp2_done2;
2197 goto_1:;
2198 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2199 if (++tmp3 < 2) {
2200 goto tmp2_top;
2201 }
2202 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2203 tmp2_done2:;
2204 }
2205 }
2206 _outHashTable = tmpMeta[0];
2207 _return: OMC_LABEL_UNUSED__attribute__((unused))
2208 return _outHashTable;
2209}
2210
2211DLLExport
2212void omc_BaseHashTable_dumpHashTableStatistics(threadData_t *threadData, modelica_metatype _hashTable)
2213{
2214 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2215 MMC_SO()mmc_check_stackoverflow(threadData);
2216 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2217#line 2217 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2218 { /* match expression */
2219 modelica_metatype tmp3_1;
2220 tmp3_1 = _hashTable;
2221 {
2222 modelica_metatype _hvec = NULL((void*)0);
2223 volatile mmc_switch_type tmp3;
2224 int tmp4;
2225 // _hvec has no default value.
2226 tmp3 = 0;
2227 for (; tmp3 < 1; tmp3++) {
2228 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2229 case 0: {
2230 modelica_string tmp8;
2231 modelica_integer tmp9;
2232 modelica_string tmp12;
2233 modelica_string tmp13;
2234 modelica_integer tmp14;
2235 modelica_string tmp17;
2236 modelica_integer tmp18;
2237 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2238
2239 _hvec = tmpMeta[0];
2240 /* Pattern matching succeeded */
2241#line 175 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2242 fputs(MMC_STRINGDATA(_OMC_LIT26)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT26).header) + 3))) - 3)))->data)
,stdoutstdout);
2243#line 2243 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2244
2245#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2246 {
2247#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2248 modelica_metatype _D_24tmpVar1;
2249#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2250 modelica_metatype* tmp5;
2251#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2252 modelica_string _D_24tmpVar0;
2253#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2254 int tmp6;
2255#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2256 modelica_metatype _l_loopVar = 0;
2257#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2258 int tmp7;
2259#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2260 modelica_metatype _l;
2261#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2262 _l_loopVar = _hvec;
2263#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2264 tmp7 = 1;
2265#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2266 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2267#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2268 _D_24tmpVar1 = tmpMeta[1]; /* defaultValue */
2269#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2270 tmp5 = &_D_24tmpVar1;
2271#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2272 while(1) {
2273#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2274 tmp6 = 1;
2275#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2276 if (tmp7 <= arrayLength(_l_loopVar)) {
2277#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2278 _l = arrayGet(_l_loopVar, tmp7++)nobox_arrayGet(threadData,_l_loopVar,tmp7++);
2279#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2280 tmp6--;
2281#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2282 }
2283#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2284 if (tmp6 == 0) {
2285#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2286 _D_24tmpVar0 = intString(listLength(_l));
2287#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2288 *tmp5 = mmc_mk_cons(_D_24tmpVar0,0);
2289#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2290 tmp5 = &MMC_CDR(*tmp5)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp5) - 3))) +
(2)))))
;
2291#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2292 } else if (tmp6 == 1) {
2293#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2294 break;
2295#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2296 } else {
2297#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2298 goto goto_1;
2299#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2300 }
2301#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2302 }
2303#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2304 *tmp5 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
2305#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2306 tmpMeta[0] = _D_24tmpVar1;
2307#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2308 }
2309#line 176 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2310 fputs(MMC_STRINGDATA(stringDelimitList(tmpMeta[0], _OMC_LIT27))(((struct mmc_string*)((void*)((char*)(stringDelimitList(tmpMeta
[0], ((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)))
) - 3)))->data)
,stdoutstdout);
2311#line 2311 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2312
2313#line 177 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2314 fputs(MMC_STRINGDATA(_OMC_LIT12)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT12).header) + 3))) - 3)))->data)
,stdoutstdout);
2315#line 2315 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2316
2317#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2318 {
2319#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2320 modelica_integer _D_24tmpVar7;
2321#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2322 modelica_integer _D_24tmpVar6;
2323#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2324 int tmp10;
2325#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2326 modelica_metatype _l_loopVar = 0;
2327#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2328 int tmp11;
2329#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2330 modelica_metatype _l;
2331#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2332 _l_loopVar = _hvec;
2333#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2334 tmp11 = 1;
2335#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2336 _D_24tmpVar7 = ((modelica_integer) 0); /* defaultValue */
2337#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2338 while(1) {
2339#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2340 tmp10 = 1;
2341#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2342 while (tmp11 <= arrayLength(_l_loopVar)) {
2343#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2344 _l = arrayGet(_l_loopVar, tmp11++)nobox_arrayGet(threadData,_l_loopVar,tmp11++);
2345#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2346 if ((!listEmpty(_l)((*(mmc_uint_t*)((void*)((char*)(_l) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
)) {
2347#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2348 tmp10--;
2349#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2350 break;
2351#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2352 }
2353#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2354 }
2355#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2356 if (tmp10 == 0) {
2357#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2358 _D_24tmpVar6 = ((modelica_integer) 1);
2359#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2360 _D_24tmpVar7 = _D_24tmpVar7 + _D_24tmpVar6;
2361#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2362 } else if (tmp10 == 1) {
2363#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2364 break;
2365#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2366 } else {
2367#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2368 goto goto_1;
2369#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2370 }
2371#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2372 }
2373#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2374 tmp9 = _D_24tmpVar7;
2375#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2376 }
2377#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2378 tmp8 = modelica_integer_to_modelica_string(tmp9, ((modelica_integer) 0), 1);
2379#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2380 tmpMeta[0] = stringAppend(_OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)),tmp8);
2381#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2382 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)));
2383#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2384 tmp12 = modelica_integer_to_modelica_string(arrayLength(_hvec), ((modelica_integer) 0), 1);
2385#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2386 tmpMeta[2] = stringAppend(tmpMeta[1],tmp12);
2387#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2388 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)));
2389#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2390 fputs(MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
,stdoutstdout);
2391#line 2391 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2392
2393#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2394 {
2395#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2396 modelica_integer _D_24tmpVar13;
2397#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2398 modelica_integer _D_24tmpVar12;
2399#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2400 int tmp15;
2401#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2402 modelica_metatype _l_loopVar = 0;
2403#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2404 int tmp16;
2405#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2406 modelica_metatype _l;
2407#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2408 _l_loopVar = _hvec;
2409#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2410 tmp16 = 1;
2411#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2412 _D_24tmpVar13 = ((modelica_integer) -4611686018427387903); /* defaultValue */
2413#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2414 while(1) {
2415#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2416 tmp15 = 1;
2417#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2418 if (tmp16 <= arrayLength(_l_loopVar)) {
2419#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2420 _l = arrayGet(_l_loopVar, tmp16++)nobox_arrayGet(threadData,_l_loopVar,tmp16++);
2421#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2422 tmp15--;
2423#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2424 }
2425#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2426 if (tmp15 == 0) {
2427#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2428 _D_24tmpVar12 = listLength(_l);
2429#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2430 _D_24tmpVar13 = modelica_integer_max((modelica_integer)(_D_24tmpVar12),(modelica_integer)(_D_24tmpVar13));
2431#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2432 } else if (tmp15 == 1) {
2433#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2434 break;
2435#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2436 } else {
2437#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2438 goto goto_1;
2439#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2440 }
2441#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2442 }
2443#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2444 tmp14 = _D_24tmpVar13;
2445#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2446 }
2447#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2448 tmp13 = modelica_integer_to_modelica_string(tmp14, ((modelica_integer) 0), 1);
2449#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2450 tmpMeta[0] = stringAppend(_OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)),tmp13);
2451#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2452 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)));
2453#line 179 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2454 fputs(MMC_STRINGDATA(tmpMeta[1])(((struct mmc_string*)((void*)((char*)(tmpMeta[1]) - 3)))->
data)
,stdoutstdout);
2455#line 2455 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2456
2457#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2458 {
2459#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2460 modelica_integer _D_24tmpVar19;
2461#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2462 modelica_integer _D_24tmpVar18;
2463#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2464 int tmp19;
2465#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2466 modelica_metatype _l_loopVar = 0;
2467#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2468 int tmp20;
2469#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2470 modelica_metatype _l;
2471#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2472 _l_loopVar = _hvec;
2473#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2474 tmp20 = 1;
2475#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2476 _D_24tmpVar19 = ((modelica_integer) 0); /* defaultValue */
2477#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2478 while(1) {
2479#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2480 tmp19 = 1;
2481#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2482 if (tmp20 <= arrayLength(_l_loopVar)) {
2483#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2484 _l = arrayGet(_l_loopVar, tmp20++)nobox_arrayGet(threadData,_l_loopVar,tmp20++);
2485#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2486 tmp19--;
2487#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2488 }
2489#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2490 if (tmp19 == 0) {
2491#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2492 _D_24tmpVar18 = listLength(_l);
2493#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2494 _D_24tmpVar19 = _D_24tmpVar19 + _D_24tmpVar18;
2495#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2496 } else if (tmp19 == 1) {
2497#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2498 break;
2499#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2500 } else {
2501#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2502 goto goto_1;
2503#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2504 }
2505#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2506 }
2507#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2508 tmp18 = _D_24tmpVar19;
2509#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2510 }
2511#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2512 tmp17 = modelica_integer_to_modelica_string(tmp18, ((modelica_integer) 0), 1);
2513#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2514 tmpMeta[0] = stringAppend(_OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)),tmp17);
2515#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2516 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)));
2517#line 180 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2518 fputs(MMC_STRINGDATA(tmpMeta[1])(((struct mmc_string*)((void*)((char*)(tmpMeta[1]) - 3)))->
data)
,stdoutstdout);
2519#line 2519 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2520#line 2520 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2521 goto tmp2_done;
2522 }
2523 }
2524 goto tmp2_end;
2525 tmp2_end: ;
2526 }
2527 goto goto_1;
2528 goto_1:;
2529 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2530 goto tmp2_done;
2531 tmp2_done:;
2532 }
2533 }
2534 ;
2535 _return: OMC_LABEL_UNUSED__attribute__((unused))
2536 return;
2537}
2538
2539DLLExport
2540modelica_metatype omc_BaseHashTable_add(threadData_t *threadData, modelica_metatype _entry, modelica_metatype _hashTable)
2541{
2542 modelica_metatype _outHashTable = NULL((void*)0);
2543 modelica_metatype _hashvec = NULL((void*)0);
2544 modelica_metatype _varr = NULL((void*)0);
2545 modelica_integer _bsize;
2546 modelica_integer _hash_idx;
2547 modelica_integer _arr_idx;
2548 modelica_integer _new_pos;
2549 modelica_metatype _fntpl = NULL((void*)0);
2550 modelica_fnptr _hashFunc;
2551 modelica_fnptr _keyEqual;
2552 modelica_metatype _key = NULL((void*)0);
2553 modelica_metatype _key2 = NULL((void*)0);
2554 modelica_metatype _val = NULL((void*)0);
2555 modelica_metatype _indices = NULL((void*)0);
2556 modelica_integer tmp1;
2557 modelica_integer tmp2;
2558 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
2559 MMC_SO()mmc_check_stackoverflow(threadData);
2560 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2561 // _outHashTable has no default value.
2562 // _hashvec has no default value.
2563 // _varr has no default value.
2564 // _bsize has no default value.
2565 // _hash_idx has no default value.
2566 // _arr_idx has no default value.
2567 // _new_pos has no default value.
2568 // _fntpl has no default value.
2569 // _key has no default value.
2570 // _key2 has no default value.
2571 // _val has no default value.
2572 // _indices has no default value.
2573#line 145 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2574 /* Pattern-matching assignment */
2575#line 145 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2576 tmpMeta[0] = _entry;
2577#line 145 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2578 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2579#line 145 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2580 _key = tmpMeta[1];
2581#line 2581 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2582
2583#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2584 /* Pattern-matching assignment */
2585#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2586 tmpMeta[0] = _hashTable;
2587#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2588 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2589#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2590 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
2591#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2592 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
2593#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2594 tmp1 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2595#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2596 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
2597#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2598 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
2599#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2600 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
2601#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2602 _hashvec = tmpMeta[1];
2603#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2604 _varr = tmpMeta[2];
2605#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2606 _bsize = tmp1 /* pattern as ty=Integer */;
2607#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2608 _fntpl = tmpMeta[4];
2609#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2610 _hashFunc = tmpMeta[5];
2611#line 146 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2612 _keyEqual = tmpMeta[6];
2613#line 2613 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2614
2615#line 148 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2616 _hash_idx = ((modelica_integer) 1) + mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 2))) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 1)))) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 2))), _key, mmc_mk_integer(_bsize)) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_hashFunc), 1)))) (threadData, _key, mmc_mk_integer(_bsize)))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_hashFunc) - 3))) + (2)))))) ? ((modelica_metatype(*)(threadData_t
*, modelica_metatype, modelica_metatype, modelica_metatype)) (
(*(void**)(((void*)((void**)(((void*)((char*)(_hashFunc) - 3)
)) + (1))))))) (threadData, ((*(void**)(((void*)((void**)(((void
*)((char*)(_hashFunc) - 3))) + (2)))))), _key, mmc_mk_icon(_bsize
)) : ((modelica_metatype(*)(threadData_t*, modelica_metatype,
modelica_metatype)) ((*(void**)(((void*)((void**)(((void*)((
char*)(_hashFunc) - 3))) + (1))))))) (threadData, _key, mmc_mk_icon
(_bsize)))) >> 1)
;
2617#line 2617 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2618
2619#line 149 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2620 _indices = arrayGet(_hashvec,_hash_idx)nobox_arrayGet(threadData,_hashvec,_hash_idx) /* DAE.ASUB */;
2621#line 2621 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2622
2623#line 151 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2624 {
2625#line 151 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2626 modelica_metatype _i;
2627#line 151 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2628 for (tmpMeta[0] = _indices; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
2629#line 151 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2630 {
2631#line 151 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2632 _i = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2633#line 152 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2634 /* Pattern-matching assignment */
2635#line 152 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2636 tmpMeta[1] = _i;
2637#line 152 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2638 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
2639#line 152 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2640 _key2 = tmpMeta[2];
2641#line 2641 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2642
2643#line 154 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2644 if(mmc_unbox_boolean((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_keyEqual), 2))) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_keyEqual), 1)))) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_keyEqual), 2))), _key, _key2) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_keyEqual), 1)))) (threadData, _key, _key2))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_keyEqual) - 3))) + (2)))))) ? ((modelica_metatype(*)(threadData_t
*, modelica_metatype, modelica_metatype, modelica_metatype)) (
(*(void**)(((void*)((void**)(((void*)((char*)(_keyEqual) - 3)
)) + (1))))))) (threadData, ((*(void**)(((void*)((void**)(((void
*)((char*)(_keyEqual) - 3))) + (2)))))), _key, _key2) : ((modelica_metatype
(*)(threadData_t*, modelica_metatype, modelica_metatype)) ((*
(void**)(((void*)((void**)(((void*)((char*)(_keyEqual) - 3)))
+ (1))))))) (threadData, _key, _key2))) >> 1)
)
2645#line 154 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2646 {
2647#line 155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2648 /* Pattern-matching assignment */
2649#line 155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2650 tmpMeta[1] = _i;
2651#line 155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2652 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2653#line 155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2654 tmp2 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
2655#line 155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2656 _arr_idx = tmp2 /* pattern as ty=Integer */;
2657#line 2657 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2658
2659#line 156 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2660 omc_BaseHashTable_valueArraySet(threadData, _varr, _arr_idx, _entry);
2661#line 2661 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2662
2663#line 157 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2664 _outHashTable = _hashTable;
2665#line 2665 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2666
2667#line 158 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2668 goto _return;
2669#line 2669 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2670 }
2671 }
2672 }
2673
2674#line 162 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2675 _varr = omc_BaseHashTable_valueArrayAdd(threadData, _varr, _entry ,&_new_pos);
2676#line 2676 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2677
2678#line 163 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2679 tmpMeta[1] = mmc_mk_box2(0, _key, mmc_mk_integermmc_mk_icon(_new_pos));
2680#line 163 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2681 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], _indices);
2682#line 163 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2683 arrayUpdate(_hashvec, _hash_idx, tmpMeta[0])boxptr_arrayUpdate(threadData,_hashvec,mmc_mk_icon(_hash_idx)
,tmpMeta[0])
;
2684#line 2684 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2685
2686#line 164 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2687 tmpMeta[0] = mmc_mk_box4(0, _hashvec, _varr, mmc_mk_integermmc_mk_icon(_bsize), _fntpl);
2688#line 164 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2689 _outHashTable = tmpMeta[0];
2690#line 2690 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2691 _return: OMC_LABEL_UNUSED__attribute__((unused))
2692 return _outHashTable;
2693}
2694
2695DLLExport
2696modelica_metatype omc_BaseHashTable_emptyHashTableWork(threadData_t *threadData, modelica_integer _szBucket, modelica_metatype _fntpl)
2697{
2698 modelica_metatype _hashTable = NULL((void*)0);
2699 modelica_metatype _arr = NULL((void*)0);
2700 modelica_metatype _lst = NULL((void*)0);
2701 modelica_metatype _emptyarr = NULL((void*)0);
2702 modelica_integer _szArr;
2703 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2704 MMC_SO()mmc_check_stackoverflow(threadData);
2705 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2706 // _hashTable has no default value.
2707 // _arr has no default value.
2708 // _lst has no default value.
2709 // _emptyarr has no default value.
2710 // _szArr has no default value.
2711#line 118 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2712 if((_szBucket < ((modelica_integer) 1)))
2713#line 118 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2714 {
2715#line 119 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2716 tmpMeta[0] = stringAppend(_OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)),intString(_szBucket));
2717#line 119 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2718 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)));
2719#line 119 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2720 omc_Error_addInternalError(threadData, tmpMeta[1], _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)));
2721#line 2721 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2722
2723#line 120 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2724 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2725#line 2725 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2726 }
2727
2728#line 122 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2729 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2730#line 122 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2731 _arr = arrayCreate(_szBucket, tmpMeta[0]);
2732#line 2732 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2733
2734#line 123 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2735 _szArr = omc_BaseHashTable_bucketToValuesSize(threadData, _szBucket);
2736#line 2736 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2737
2738#line 124 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2739 _emptyarr = arrayCreate(_szArr, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
2740#line 2740 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2741
2742#line 125 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2743 tmpMeta[0] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(((modelica_integer) 0)), mmc_mk_integermmc_mk_icon(_szArr), _emptyarr);
2744#line 125 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2745 tmpMeta[1] = mmc_mk_box4(0, _arr, tmpMeta[0], mmc_mk_integermmc_mk_icon(_szBucket), _fntpl);
2746#line 125 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2747 _hashTable = tmpMeta[1];
2748#line 2748 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2749 _return: OMC_LABEL_UNUSED__attribute__((unused))
2750 return _hashTable;
2751}
2752modelica_metatype boxptr_BaseHashTable_emptyHashTableWork(threadData_t *threadData, modelica_metatype _szBucket, modelica_metatype _fntpl)
2753{
2754 modelica_integer tmp1;
2755 modelica_metatype _hashTable = NULL((void*)0);
2756 tmp1 = mmc_unbox_integer(_szBucket)(((mmc_sint_t) (_szBucket)) >> 1);
2757 _hashTable = omc_BaseHashTable_emptyHashTableWork(threadData, tmp1, _fntpl);
2758 /* skip box _hashTable; tuple<array<list<tuple<polymorphic<Key>, #Integer>>>, tuple<#Integer, #Integer, array<Option<tuple<polymorphic<Key>, polymorphic<Value>>>>>, #Integer, tuple<.BaseHashTable.FuncHash<function>(polymorphic<Key> key, #Integer mod) => #Integer, .BaseHashTable.FuncEq<function>(polymorphic<Key> key1, polymorphic<Key> key2) => #Boolean, .BaseHashTable.FuncKeyString<function>(polymorphic<Key> key) => String, .BaseHashTable.FuncValString<function>(polymorphic<Value> val) => String>> */
2759 return _hashTable;
2760}
2761
2762DLLExport
2763modelica_integer omc_BaseHashTable_bucketToValuesSize(threadData_t *threadData, modelica_integer _szBucket)
2764{
2765 modelica_integer _szArr;
2766 MMC_SO()mmc_check_stackoverflow(threadData);
2767 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2768 // _szArr has no default value.
2769#line 104 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/BaseHashTable.mo"
2770 _szArr = ((modelica_integer)floor((0.6) * (((modelica_real)_szBucket))));
2771#line 2771 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/BaseHashTable.c"
2772 _return: OMC_LABEL_UNUSED__attribute__((unused))
2773 return _szArr;
2774}
2775modelica_metatype boxptr_BaseHashTable_bucketToValuesSize(threadData_t *threadData, modelica_metatype _szBucket)
2776{
2777 modelica_integer tmp1;
2778 modelica_integer _szArr;
2779 modelica_metatype out_szArr;
2780 tmp1 = mmc_unbox_integer(_szBucket)(((mmc_sint_t) (_szBucket)) >> 1);
2781 _szArr = omc_BaseHashTable_bucketToValuesSize(threadData, tmp1);
2782 out_szArr = mmc_mk_icon(_szArr);
2783 return out_szArr;
2784}
2785