Bug Summary

File:OMCompiler/Compiler/boot/build/NFComponent.c
Warning:line 273, column 3
Value stored to '_typeAttrs' 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/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "NFComponent.h"
8#define _OMC_LIT0_data"" ""
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,0,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
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"unit" "unit"
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,4,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "unit"
}
;
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"fixed" "fixed"
15static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,5,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "fixed"
}
;
16#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
17static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT3,10,3)struct { mmc_uint_t header; const void *data[10]; } _OMC_LIT_STRUCT3
= { (((10) << 10) + (((3) & 255) << 2)),
{&SCodeDump_SCodeDumpOptions_OPTIONS__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
18#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
19static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT4,1,13)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT4
= { (((1) << 10) + (((13) & 255) << 2)),
{&NFType_UNKNOWN__desc,}};
20#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
21#define _OMC_LIT5_data" " " "
22static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,1,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), " "
}
;
23#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
24#define _OMC_LIT6_data"[" "["
25static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,1,_OMC_LIT6_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT6
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "["
}
;
26#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
27#define _OMC_LIT7_data", " ", "
28static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT7,2,_OMC_LIT7_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT7
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ", "
}
;
29#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
30#define _OMC_LIT8_data"]" "]"
31static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,1,_OMC_LIT8_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT8
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "]"
}
;
32#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
33#define _OMC_LIT9_data" = " " = "
34static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT9,3,_OMC_LIT9_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT9
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), " = "
}
;
35#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
36static const MMC_DEFREALLIT(_OMC_LIT_STRUCT10,0.0)struct mmc_real_lit _OMC_LIT_STRUCT10 = {0,(((8/8) << 10
) + 9),0.0}
;
37#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
38static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT11,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT11
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))}};
39#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
40static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT12,4,3)struct { mmc_uint_t header; const void *data[4]; } _OMC_LIT_STRUCT12
= { (((4) << 10) + (((3) & 255) << 2)),
{&NFBinding_Binding_UNBOUND__desc,MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))}};
41#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
42static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT13,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT13
= { (((1) << 10) + (((5) & 255) << 2)),
{&NFModifier_Modifier_NOMOD__desc,}};
43#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
44#define _OMC_LIT14_data"redeclare " "redeclare "
45static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT14,10,_OMC_LIT14_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT14
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "redeclare "
}
;
46#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
47#define _OMC_LIT15_data"final " "final "
48static 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)), "final "
}
;
49#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
50#include "util/modelica.h"
51
52#include "NFComponent_includes.h"
53
54
55
56DLLExport
57modelica_boolean omc_NFComponent_Component_isTypeAttribute(threadData_t *threadData, modelica_metatype _component)
58{
59 modelica_boolean _isAttribute;
60 modelica_boolean tmp1 = 0;
61 MMC_SO()mmc_check_stackoverflow(threadData);
62 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
63 // _isAttribute has no default value.
64#line 64 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
65 { /* match expression */
66 modelica_metatype tmp4_1;
67 tmp4_1 = _component;
68 {
69 volatile mmc_switch_type tmp4;
70 int tmp5;
71 tmp4 = 0;
72 for (; tmp4 < 2; tmp4++) {
73 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
74 case 0: {
75 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
76
77 /* Pattern matching succeeded */
78#line 916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
79 tmp1 = 1;
80#line 80 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
81 goto tmp3_done;
82 }
83 case 1: {
84
85 /* Pattern matching succeeded */
86#line 917 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
87 tmp1 = 0;
88#line 88 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
89 goto tmp3_done;
90 }
91 }
92 goto tmp3_end;
93 tmp3_end: ;
94 }
95 goto goto_2;
96 goto_2:;
97 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
98 goto tmp3_done;
99 tmp3_done:;
100 }
101 }
102 _isAttribute = tmp1;
103 _return: OMC_LABEL_UNUSED__attribute__((unused))
104 return _isAttribute;
105}
106modelica_metatype boxptr_NFComponent_Component_isTypeAttribute(threadData_t *threadData, modelica_metatype _component)
107{
108 modelica_boolean _isAttribute;
109 modelica_metatype out_isAttribute;
110 _isAttribute = omc_NFComponent_Component_isTypeAttribute(threadData, _component);
111 out_isAttribute = mmc_mk_icon(_isAttribute);
112 return out_isAttribute;
113}
114
115DLLExport
116modelica_boolean omc_NFComponent_Component_isDeleted(threadData_t *threadData, modelica_metatype _component)
117{
118 modelica_boolean _isDeleted;
119 modelica_boolean tmp1 = 0;
120 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
121 MMC_SO()mmc_check_stackoverflow(threadData);
122 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
123 // _isDeleted has no default value.
124#line 124 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
125 { /* match expression */
126 modelica_metatype tmp4_1;
127 tmp4_1 = _component;
128 {
129 modelica_metatype _condition = NULL((void*)0);
130 int tmp4;
131 // _condition has no default value.
132 {
133 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
134 case 5: {
135 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
136 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
137
138 _condition = tmpMeta[0];
139 /* Pattern matching succeeded */
140#line 904 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
141 tmp1 = (omc_NFBinding_Binding_isBound(threadData, _condition) && omc_NFExpression_isFalse(threadData, omc_NFBinding_Binding_getTypedExp(threadData, _condition)));
142#line 142 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
143 goto tmp3_done;
144 }
145 case 9: {
146
147 /* Pattern matching succeeded */
148#line 906 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
149 tmp1 = 1;
150#line 150 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
151 goto tmp3_done;
152 }
153 default:
154 tmp3_default: OMC_LABEL_UNUSED__attribute__((unused)); {
155
156 /* Pattern matching succeeded */
157#line 907 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
158 tmp1 = 0;
159#line 159 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
160 goto tmp3_done;
161 }
162 }
163 goto tmp3_end;
164 tmp3_end: ;
165 }
166 goto goto_2;
167 goto_2:;
168 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
169 goto tmp3_done;
170 tmp3_done:;
171 }
172 }
173 _isDeleted = tmp1;
174 _return: OMC_LABEL_UNUSED__attribute__((unused))
175 return _isDeleted;
176}
177modelica_metatype boxptr_NFComponent_Component_isDeleted(threadData_t *threadData, modelica_metatype _component)
178{
179 modelica_boolean _isDeleted;
180 modelica_metatype out_isDeleted;
181 _isDeleted = omc_NFComponent_Component_isDeleted(threadData, _component);
182 out_isDeleted = mmc_mk_icon(_isDeleted);
183 return out_isDeleted;
184}
185
186DLLExport
187modelica_string omc_NFComponent_Component_getUnitAttribute(threadData_t *threadData, modelica_metatype _component, modelica_string _defaultUnit)
188{
189 modelica_string _unitString = NULL((void*)0);
190 modelica_metatype _binding = NULL((void*)0);
191 modelica_metatype _unit = NULL((void*)0);
192 modelica_string tmp1 = 0;
193 MMC_SO()mmc_check_stackoverflow(threadData);
194 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
195 // _unitString has no default value.
196 // _binding has no default value.
197 // _unit has no default value.
198#line 880 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
199 _binding = omc_NFClass_Class_lookupAttributeBinding(threadData, _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)), omc_NFInstNode_InstNode_getClass(threadData, omc_NFComponent_Component_classInstance(threadData, _component)));
200#line 200 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
201
202#line 882 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
203 if(omc_NFBinding_Binding_isUnbound(threadData, _binding))
204#line 882 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
205 {
206#line 883 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
207 _unitString = _defaultUnit;
208#line 208 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
209
210#line 884 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
211 goto _return;
212#line 212 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
213 }
214
215#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
216 _unit = omc_NFExpression_getBindingExp(threadData, omc_NFBinding_Binding_getExp(threadData, _binding));
217#line 217 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
218
219#line 219 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
220 { /* match expression */
221 modelica_metatype tmp4_1;
222 tmp4_1 = _unit;
223 {
224 volatile mmc_switch_type tmp4;
225 int tmp5;
226 tmp4 = 0;
227 for (; tmp4 < 2; tmp4++) {
228 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
229 case 0: {
230 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
231
232 /* Pattern matching succeeded */
233#line 890 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
234 tmp1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_unit), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_unit) - 3))) +
(2)))))
);
235#line 235 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
236 goto tmp3_done;
237 }
238 case 1: {
239
240 /* Pattern matching succeeded */
241#line 891 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
242 tmp1 = _defaultUnit;
243#line 243 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
244 goto tmp3_done;
245 }
246 }
247 goto tmp3_end;
248 tmp3_end: ;
249 }
250 goto goto_2;
251 goto_2:;
252 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
253 goto tmp3_done;
254 tmp3_done:;
255 }
256 }
257 _unitString = tmp1;
258 _return: OMC_LABEL_UNUSED__attribute__((unused))
259 return _unitString;
260}
261
262DLLExport
263modelica_boolean omc_NFComponent_Component_getFixedAttribute(threadData_t *threadData, modelica_metatype _component)
264{
265 modelica_boolean _fixed;
266 modelica_metatype _typeAttrs = NULL((void*)0);
267 modelica_metatype _binding = NULL((void*)0);
268 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
269 MMC_SO()mmc_check_stackoverflow(threadData);
270 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
271 // _fixed has no default value.
272 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
273 _typeAttrs = tmpMeta[0];
Value stored to '_typeAttrs' is never read
274 // _binding has no default value.
275#line 860 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
276 _fixed = (omc_NFComponent_Component_isParameter(threadData, _component) || omc_NFComponent_Component_isStructuralParameter(threadData, _component));
277#line 277 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
278
279#line 862 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
280 _binding = omc_NFClass_Class_lookupAttributeBinding(threadData, _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)), omc_NFInstNode_InstNode_getClass(threadData, omc_NFComponent_Component_classInstance(threadData, _component)));
281#line 281 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
282
283#line 865 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
284 if(omc_NFBinding_Binding_isUnbound(threadData, _binding))
285#line 865 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
286 {
287#line 866 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
288 goto _return;
289#line 289 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
290 }
291
292#line 869 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
293 _fixed = (_fixed && omc_NFExpression_isTrue(threadData, omc_NFExpression_getBindingExp(threadData, omc_NFBinding_Binding_getExp(threadData, _binding))));
294#line 294 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
295 _return: OMC_LABEL_UNUSED__attribute__((unused))
296 return _fixed;
297}
298modelica_metatype boxptr_NFComponent_Component_getFixedAttribute(threadData_t *threadData, modelica_metatype _component)
299{
300 modelica_boolean _fixed;
301 modelica_metatype out_fixed;
302 _fixed = omc_NFComponent_Component_getFixedAttribute(threadData, _component);
303 out_fixed = mmc_mk_icon(_fixed);
304 return out_fixed;
305}
306
307DLLExport
308modelica_boolean omc_NFComponent_Component_getEvaluateAnnotation(threadData_t *threadData, modelica_metatype _component)
309{
310 modelica_boolean _evaluate;
311 modelica_metatype _cmt = NULL((void*)0);
312 MMC_SO()mmc_check_stackoverflow(threadData);
313 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
314 // _evaluate has no default value.
315 // _cmt has no default value.
316#line 849 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
317 _evaluate = omc_SCodeUtil_getEvaluateAnnotation(threadData, omc_NFComponent_Component_comment(threadData, _component));
318#line 318 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
319 _return: OMC_LABEL_UNUSED__attribute__((unused))
320 return _evaluate;
321}
322modelica_metatype boxptr_NFComponent_Component_getEvaluateAnnotation(threadData_t *threadData, modelica_metatype _component)
323{
324 modelica_boolean _evaluate;
325 modelica_metatype out_evaluate;
326 _evaluate = omc_NFComponent_Component_getEvaluateAnnotation(threadData, _component);
327 out_evaluate = mmc_mk_icon(_evaluate);
328 return out_evaluate;
329}
330
331DLLExport
332modelica_metatype omc_NFComponent_Component_ann(threadData_t *threadData, modelica_metatype _component)
333{
334 modelica_metatype _ann = NULL((void*)0);
335 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
336 MMC_SO()mmc_check_stackoverflow(threadData);
337 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
338 // _ann has no default value.
339#line 339 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
340 { /* match expression */
341 modelica_metatype tmp3_1;
342 tmp3_1 = _component;
343 {
344 volatile mmc_switch_type tmp3;
345 int tmp4;
346 tmp3 = 0;
347 for (; tmp3 < 2; tmp3++) {
348 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
349 case 0: {
350 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
351
352 /* Pattern matching succeeded */
353#line 838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
354 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 7))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (7)))))
);
355#line 355 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
356 goto tmp2_done;
357 }
358 case 1: {
359
360 /* Pattern matching succeeded */
361#line 839 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
362 tmpMeta[0] = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
363#line 363 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
364 goto tmp2_done;
365 }
366 }
367 goto tmp2_end;
368 tmp2_end: ;
369 }
370 goto goto_1;
371 goto_1:;
372 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
373 goto tmp2_done;
374 tmp2_done:;
375 }
376 }
377 _ann = tmpMeta[0];
378 _return: OMC_LABEL_UNUSED__attribute__((unused))
379 return _ann;
380}
381
382DLLExport
383modelica_metatype omc_NFComponent_Component_comment(threadData_t *threadData, modelica_metatype _component)
384{
385 modelica_metatype _comment = NULL((void*)0);
386 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
387 MMC_SO()mmc_check_stackoverflow(threadData);
388 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
389 // _comment has no default value.
390#line 390 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
391 { /* match expression */
392 modelica_metatype tmp3_1;
393 tmp3_1 = _component;
394 {
395 int tmp3;
396 {
397 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
398 case 3: {
399
400 /* Pattern matching succeeded */
401#line 826 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
402 tmpMeta[0] = omc_SCodeUtil_getElementComment(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
));
403#line 403 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
404 goto tmp2_done;
405 }
406 case 4: {
407
408 /* Pattern matching succeeded */
409#line 827 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
410 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 7))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (7)))))
);
411#line 411 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
412 goto tmp2_done;
413 }
414 case 5: {
415
416 /* Pattern matching succeeded */
417#line 828 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
418 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 8))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (8)))))
);
419#line 419 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
420 goto tmp2_done;
421 }
422 default:
423 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
424
425 /* Pattern matching succeeded */
426#line 829 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
427 tmpMeta[0] = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
428#line 428 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
429 goto tmp2_done;
430 }
431 }
432 goto tmp2_end;
433 tmp2_end: ;
434 }
435 goto goto_1;
436 goto_1:;
437 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
438 goto tmp2_done;
439 tmp2_done:;
440 }
441 }
442 _comment = tmpMeta[0];
443 _return: OMC_LABEL_UNUSED__attribute__((unused))
444 return _comment;
445}
446
447DLLExport
448modelica_integer omc_NFComponent_Component_dimensionCount(threadData_t *threadData, modelica_metatype _component)
449{
450 modelica_integer _count;
451 modelica_integer tmp1 = 0;
452 MMC_SO()mmc_check_stackoverflow(threadData);
453 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
454 // _count has no default value.
455#line 455 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
456 { /* match expression */
457 modelica_metatype tmp4_1;
458 tmp4_1 = _component;
459 {
460 int tmp4;
461 {
462 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
463 case 4: {
464
465 /* Pattern matching succeeded */
466#line 815 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
467 tmp1 = arrayLength((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
));
468#line 468 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
469 goto tmp3_done;
470 }
471 case 5: {
472
473 /* Pattern matching succeeded */
474#line 816 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
475 tmp1 = listLength(omc_NFType_arrayDims(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
)));
476#line 476 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
477 goto tmp3_done;
478 }
479 default:
480 tmp3_default: OMC_LABEL_UNUSED__attribute__((unused)); {
481
482 /* Pattern matching succeeded */
483#line 817 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
484 tmp1 = ((modelica_integer) 0);
485#line 485 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
486 goto tmp3_done;
487 }
488 }
489 goto tmp3_end;
490 tmp3_end: ;
491 }
492 goto goto_2;
493 goto_2:;
494 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
495 goto tmp3_done;
496 tmp3_done:;
497 }
498 }
499 _count = tmp1;
500 _return: OMC_LABEL_UNUSED__attribute__((unused))
501 return _count;
502}
503modelica_metatype boxptr_NFComponent_Component_dimensionCount(threadData_t *threadData, modelica_metatype _component)
504{
505 modelica_integer _count;
506 modelica_metatype out_count;
507 _count = omc_NFComponent_Component_dimensionCount(threadData, _component);
508 out_count = mmc_mk_icon(_count);
509 return out_count;
510}
511
512DLLExport
513modelica_metatype omc_NFComponent_Component_setDimensions(threadData_t *threadData, modelica_metatype _dims, modelica_metatype _D_24in_component)
514{
515 modelica_metatype _component = NULL((void*)0);
516 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
517 MMC_SO()mmc_check_stackoverflow(threadData);
518 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
519 _component = _D_24in_component;
520#line 520 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
521 { /* match expression */
522 modelica_metatype tmp3_1;
523 tmp3_1 = _component;
524 {
525 int tmp3;
526 {
527 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
528 case 4: {
529
530 /* Pattern matching succeeded */
531#line 796 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
532 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
533#line 796 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
534 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
535#line 796 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
536 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[3] = listArray(_dims);
537#line 796 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
538 _component = tmpMeta[0];
539#line 539 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
540#line 540 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
541 goto tmp2_done;
542 }
543 case 5: {
544
545 /* Pattern matching succeeded */
546#line 802 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
547 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
548#line 802 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
549 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
550#line 802 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
551 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[3] = omc_NFType_liftArrayLeftList(threadData, omc_NFType_arrayElementType(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
)), _dims);
552#line 802 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
553 _component = tmpMeta[0];
554#line 554 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
555#line 555 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
556 goto tmp2_done;
557 }
558 default:
559 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
560
561 /* Pattern matching succeeded */
562#line 562 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
563 goto tmp2_done;
564 }
565 }
566 goto tmp2_end;
567 tmp2_end: ;
568 }
569 goto goto_1;
570 goto_1:;
571 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
572 goto tmp2_done;
573 tmp2_done:;
574 }
575 }
576 ;
577 _return: OMC_LABEL_UNUSED__attribute__((unused))
578 return _component;
579}
580
581DLLExport
582modelica_string omc_NFComponent_Component_toString(threadData_t *threadData, modelica_string _name, modelica_metatype _component)
583{
584 modelica_string _str = NULL((void*)0);
585 modelica_string tmp1 = 0;
586 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
587 MMC_SO()mmc_check_stackoverflow(threadData);
588 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
589 // _str has no default value.
590#line 590 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
591 { /* match expression */
592 modelica_metatype tmp4_1;
593 tmp4_1 = _component;
594 {
595 modelica_metatype _def = NULL((void*)0);
596 int tmp4;
597 // _def has no default value.
598 {
599 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
600 case 3: {
601 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
602 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
603 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],3,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
604
605 _def = tmpMeta[0];
606 /* Pattern matching succeeded */
607#line 771 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
608 tmp1 = omc_SCodeDump_unparseElementStr(threadData, _def, _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
609#line 609 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
610 goto tmp3_done;
611 }
612 case 4: {
613
614 /* Pattern matching succeeded */
615#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
616 tmpMeta[0] = stringAppend(omc_NFComponent_Component_Attributes_toString(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (6)))))
), _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))),omc_NFInstNode_InstNode_name(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
)));
617#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
618 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)));
619#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
620 tmpMeta[2] = stringAppend(tmpMeta[1],_name);
621#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
622 tmpMeta[3] = stringAppend(tmpMeta[2],omc_List_toString(threadData, arrayList((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
)), boxvar_NFDimension_toString((void*)((char*)(&(boxvar_lit_NFDimension_toString).header
) + 3))
, _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)), _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)), _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)), 0));
623#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
624 tmpMeta[4] = stringAppend(tmpMeta[3],omc_NFBinding_Binding_toString(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (4)))))
), _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))));
625#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
626 tmp1 = tmpMeta[4];
627#line 627 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
628 goto tmp3_done;
629 }
630 case 5: {
631
632 /* Pattern matching succeeded */
633#line 780 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
634 tmpMeta[0] = stringAppend(omc_NFComponent_Component_Attributes_toString(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (6)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
)),omc_NFType_toString(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
)));
635#line 780 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
636 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)));
637#line 780 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
638 tmpMeta[2] = stringAppend(tmpMeta[1],_name);
639#line 780 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
640 tmpMeta[3] = stringAppend(tmpMeta[2],omc_NFBinding_Binding_toString(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (4)))))
), _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))));
641#line 780 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
642 tmp1 = tmpMeta[3];
643#line 643 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
644 goto tmp3_done;
645 }
646 case 8: {
647
648 /* Pattern matching succeeded */
649#line 785 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
650 tmpMeta[0] = stringAppend(_name,omc_NFModifier_Modifier_toString(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
), 0));
651#line 785 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
652 tmp1 = tmpMeta[0];
653#line 653 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
654 goto tmp3_done;
655 }
656 }
657 goto tmp3_end;
658 tmp3_end: ;
659 }
660 goto goto_2;
661 goto_2:;
662 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
663 goto tmp3_done;
664 tmp3_done:;
665 }
666 }
667 _str = tmp1;
668 _return: OMC_LABEL_UNUSED__attribute__((unused))
669 return _str;
670}
671
672DLLExport
673modelica_boolean omc_NFComponent_Component_isIdentical(threadData_t *threadData, modelica_metatype _comp1, modelica_metatype _comp2)
674{
675 modelica_boolean _identical;
676 modelica_boolean tmp1 = 0;
677 MMC_SO()mmc_check_stackoverflow(threadData);
678 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
679 _identical = 0;
680#line 739 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
681 if(referenceEq(_comp1, _comp2)((_comp1) == (_comp2)))
682#line 739 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
683 {
684#line 740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
685 _identical = 1;
686#line 686 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
687 }
688 else
689 {
690#line 690 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
691 { /* match expression */
692 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
693 tmp4_1 = _comp1;
694 tmp4_2 = _comp2;
695 {
696 volatile mmc_switch_type tmp4;
697 int tmp5;
698 tmp4 = 0;
699 for (; tmp4 < 2; tmp4++) {
700 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
701 case 0: {
702 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
703 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
704
705 /* Pattern matching succeeded */
706#line 745 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
707 if((!omc_NFClass_Class_isIdentical(threadData, omc_NFInstNode_InstNode_getClass(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_comp1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_comp1) - 3))) +
(2)))))
)), omc_NFInstNode_InstNode_getClass(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_comp2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_comp2) - 3))) +
(2)))))
)))))
708#line 745 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
709 {
710#line 747 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
711 goto _return;
712#line 712 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
713 }
714
715#line 750 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
716 if((!omc_NFBinding_Binding_isEqual(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_comp1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_comp1) - 3))) +
(4)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_comp2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_comp2) - 3))) +
(4)))))
))))
717#line 750 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
718 {
719#line 751 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
720 goto _return;
721#line 721 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
722 }
723#line 753 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
724 tmp1 = 1;
725#line 725 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
726 goto tmp3_done;
727 }
728 case 1: {
729
730 /* Pattern matching succeeded */
731#line 756 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
732 tmp1 = 1;
733#line 733 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
734 goto tmp3_done;
735 }
736 }
737 goto tmp3_end;
738 tmp3_end: ;
739 }
740 goto goto_2;
741 goto_2:;
742 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
743 goto tmp3_done;
744 tmp3_done:;
745 }
746 }
747 _identical = tmp1;
748 }
749 _return: OMC_LABEL_UNUSED__attribute__((unused))
750 return _identical;
751}
752modelica_metatype boxptr_NFComponent_Component_isIdentical(threadData_t *threadData, modelica_metatype _comp1, modelica_metatype _comp2)
753{
754 modelica_boolean _identical;
755 modelica_metatype out_identical;
756 _identical = omc_NFComponent_Component_isIdentical(threadData, _comp1, _comp2);
757 out_identical = mmc_mk_icon(_identical);
758 return out_identical;
759}
760
761DLLExport
762modelica_boolean omc_NFComponent_Component_isExternalObject(threadData_t *threadData, modelica_metatype _component)
763{
764 modelica_boolean _isEO;
765 modelica_boolean tmp1 = 0;
766 MMC_SO()mmc_check_stackoverflow(threadData);
767 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
768 // _isEO has no default value.
769#line 769 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
770 { /* match expression */
771 modelica_metatype tmp4_1;
772 tmp4_1 = _component;
773 {
774 int tmp4;
775 {
776 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
777 case 4: {
778
779 /* Pattern matching succeeded */
780#line 728 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
781 tmp1 = omc_NFClass_Class_isExternalObject(threadData, omc_NFInstNode_InstNode_getClass(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
)));
782#line 782 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
783 goto tmp3_done;
784 }
785 case 5: {
786
787 /* Pattern matching succeeded */
788#line 729 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
789 tmp1 = omc_NFType_isExternalObject(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
));
790#line 790 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
791 goto tmp3_done;
792 }
793 default:
794 tmp3_default: OMC_LABEL_UNUSED__attribute__((unused)); {
795
796 /* Pattern matching succeeded */
797#line 730 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
798 tmp1 = 0;
799#line 799 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
800 goto tmp3_done;
801 }
802 }
803 goto tmp3_end;
804 tmp3_end: ;
805 }
806 goto goto_2;
807 goto_2:;
808 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
809 goto tmp3_done;
810 tmp3_done:;
811 }
812 }
813 _isEO = tmp1;
814 _return: OMC_LABEL_UNUSED__attribute__((unused))
815 return _isEO;
816}
817modelica_metatype boxptr_NFComponent_Component_isExternalObject(threadData_t *threadData, modelica_metatype _component)
818{
819 modelica_boolean _isEO;
820 modelica_metatype out_isEO;
821 _isEO = omc_NFComponent_Component_isExternalObject(threadData, _component);
822 out_isEO = mmc_mk_icon(_isEO);
823 return out_isEO;
824}
825
826DLLExport
827modelica_boolean omc_NFComponent_Component_isExpandableConnector(threadData_t *threadData, modelica_metatype _component)
828{
829 modelica_boolean _isConnector;
830 MMC_SO()mmc_check_stackoverflow(threadData);
831 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
832 _isConnector = omc_NFPrefixes_ConnectorType_isExpandable(threadData, omc_NFComponent_Component_connectorType(threadData, _component));
833 _return: OMC_LABEL_UNUSED__attribute__((unused))
834 return _isConnector;
835}
836modelica_metatype boxptr_NFComponent_Component_isExpandableConnector(threadData_t *threadData, modelica_metatype _component)
837{
838 modelica_boolean _isConnector;
839 modelica_metatype out_isConnector;
840 _isConnector = omc_NFComponent_Component_isExpandableConnector(threadData, _component);
841 out_isConnector = mmc_mk_icon(_isConnector);
842 return out_isConnector;
843}
844
845DLLExport
846modelica_boolean omc_NFComponent_Component_isConnector(threadData_t *threadData, modelica_metatype _component)
847{
848 modelica_boolean _isConnector;
849 MMC_SO()mmc_check_stackoverflow(threadData);
850 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
851 _isConnector = omc_NFPrefixes_ConnectorType_isConnectorType(threadData, omc_NFComponent_Component_connectorType(threadData, _component));
852 _return: OMC_LABEL_UNUSED__attribute__((unused))
853 return _isConnector;
854}
855modelica_metatype boxptr_NFComponent_Component_isConnector(threadData_t *threadData, modelica_metatype _component)
856{
857 modelica_boolean _isConnector;
858 modelica_metatype out_isConnector;
859 _isConnector = omc_NFComponent_Component_isConnector(threadData, _component);
860 out_isConnector = mmc_mk_icon(_isConnector);
861 return out_isConnector;
862}
863
864DLLExport
865modelica_boolean omc_NFComponent_Component_isFlow(threadData_t *threadData, modelica_metatype _component)
866{
867 modelica_boolean _isFlow;
868 MMC_SO()mmc_check_stackoverflow(threadData);
869 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
870 _isFlow = omc_NFPrefixes_ConnectorType_isFlow(threadData, omc_NFComponent_Component_connectorType(threadData, _component));
871 _return: OMC_LABEL_UNUSED__attribute__((unused))
872 return _isFlow;
873}
874modelica_metatype boxptr_NFComponent_Component_isFlow(threadData_t *threadData, modelica_metatype _component)
875{
876 modelica_boolean _isFlow;
877 modelica_metatype out_isFlow;
878 _isFlow = omc_NFComponent_Component_isFlow(threadData, _component);
879 out_isFlow = mmc_mk_icon(_isFlow);
880 return out_isFlow;
881}
882
883DLLExport
884modelica_metatype omc_NFComponent_Component_setConnectorType(threadData_t *threadData, modelica_integer _cty, modelica_metatype _D_24in_component)
885{
886 modelica_metatype _component = NULL((void*)0);
887 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
888 MMC_SO()mmc_check_stackoverflow(threadData);
889 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
890 _component = _D_24in_component;
891#line 891 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
892 { /* match expression */
893 modelica_metatype tmp3_1;
894 tmp3_1 = _component;
895 {
896 modelica_metatype _attr = NULL((void*)0);
897 int tmp3;
898 // _attr has no default value.
899 {
900 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
901 case 4: {
902 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
903 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
904
905 _attr = tmpMeta[0];
906 /* Pattern matching succeeded */
907#line 692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
908 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
909#line 692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
910 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_attr)((void*)((char*)(_attr) - 3)), 10*sizeof(modelica_metatype));
911#line 692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
912 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[2] = mmc_mk_integermmc_mk_icon(_cty);
913#line 692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
914 _attr = tmpMeta[0];
915#line 915 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
916
917#line 693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
918 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
919#line 693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
920 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
921#line 693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
922 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[6] = _attr;
923#line 693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
924 _component = tmpMeta[0];
925#line 925 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
926#line 926 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
927 goto tmp2_done;
928 }
929 case 5: {
930 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
931 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
932
933 _attr = tmpMeta[0];
934 /* Pattern matching succeeded */
935#line 699 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
936 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
937#line 699 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
938 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_attr)((void*)((char*)(_attr) - 3)), 10*sizeof(modelica_metatype));
939#line 699 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
940 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[2] = mmc_mk_integermmc_mk_icon(_cty);
941#line 699 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
942 _attr = tmpMeta[0];
943#line 943 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
944
945#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
946 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
947#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
948 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
949#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
950 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[6] = _attr;
951#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
952 _component = tmpMeta[0];
953#line 953 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
954#line 954 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
955 goto tmp2_done;
956 }
957 default:
958 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
959
960 /* Pattern matching succeeded */
961#line 961 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
962 goto tmp2_done;
963 }
964 }
965 goto tmp2_end;
966 tmp2_end: ;
967 }
968 goto goto_1;
969 goto_1:;
970 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
971 goto tmp2_done;
972 tmp2_done:;
973 }
974 }
975 ;
976 _return: OMC_LABEL_UNUSED__attribute__((unused))
977 return _component;
978}
979modelica_metatype boxptr_NFComponent_Component_setConnectorType(threadData_t *threadData, modelica_metatype _cty, modelica_metatype _D_24in_component)
980{
981 modelica_integer tmp1;
982 modelica_metatype _component = NULL((void*)0);
983 tmp1 = mmc_unbox_integer(_cty)(((mmc_sint_t) (_cty)) >> 1);
984 _component = omc_NFComponent_Component_setConnectorType(threadData, tmp1, _D_24in_component);
985 /* skip box _component; NFComponent.Component */
986 return _component;
987}
988
989DLLExport
990modelica_integer omc_NFComponent_Component_connectorType(threadData_t *threadData, modelica_metatype _component)
991{
992 modelica_integer _cty;
993 modelica_integer tmp1 = 0;
994 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
995 MMC_SO()mmc_check_stackoverflow(threadData);
996 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
997 // _cty has no default value.
998#line 998 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
999 { /* match expression */
1000 modelica_metatype tmp4_1;
1001 tmp4_1 = _component;
1002 {
1003 volatile mmc_switch_type tmp4;
1004 int tmp5;
1005 tmp4 = 0;
1006 for (; tmp4 < 4; tmp4++) {
1007 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1008 case 0: {
1009 modelica_integer tmp6;
1010 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1011 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
1012 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1013 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1014 tmp6 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1015
1016 _cty = tmp6 /* pattern as ty=Integer */;
1017 /* Pattern matching succeeded */
1018#line 675 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1019 tmp1 = _cty;
1020#line 1020 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1021 goto tmp3_done;
1022 }
1023 case 1: {
1024 modelica_integer tmp7;
1025 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1026 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
1027 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1028 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1029 tmp7 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1030
1031 _cty = tmp7 /* pattern as ty=Integer */;
1032 /* Pattern matching succeeded */
1033#line 676 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1034 tmp1 = _cty;
1035#line 1035 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1036 goto tmp3_done;
1037 }
1038 case 2: {
1039 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,6,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((6 +3) & 255) << 2)))
== 0) goto tmp3_end;
1040
1041 /* Pattern matching succeeded */
1042#line 677 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1043 /* Tail recursive call */
1044#line 677 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1045 _component = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
);
1046#line 677 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1047 goto _tailrecursive;
1048#line 677 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1049 /* TODO: Make sure any eventual dead code below is never generated */
1050#line 1050 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1051 goto tmp3_done;
1052 }
1053 case 3: {
1054
1055 /* Pattern matching succeeded */
1056#line 678 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1057 tmp1 = ((modelica_integer) 0);
1058#line 1058 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1059 goto tmp3_done;
1060 }
1061 }
1062 goto tmp3_end;
1063 tmp3_end: ;
1064 }
1065 goto goto_2;
1066 goto_2:;
1067 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1068 goto tmp3_done;
1069 tmp3_done:;
1070 }
1071 }
1072 _cty = tmp1;
1073 _return: OMC_LABEL_UNUSED__attribute__((unused))
1074 return _cty;
1075}
1076modelica_metatype boxptr_NFComponent_Component_connectorType(threadData_t *threadData, modelica_metatype _component)
1077{
1078 modelica_integer _cty;
1079 modelica_metatype out_cty;
1080 _cty = omc_NFComponent_Component_connectorType(threadData, _component);
1081 out_cty = mmc_mk_icon(_cty);
1082 return out_cty;
1083}
1084
1085DLLExport
1086modelica_boolean omc_NFComponent_Component_isOnlyOuter(threadData_t *threadData, modelica_metatype _component)
1087{
1088 modelica_boolean _isOuter;
1089 MMC_SO()mmc_check_stackoverflow(threadData);
1090 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1091 _isOuter = (omc_NFComponent_Component_innerOuter(threadData, _component) == 3);
1092 _return: OMC_LABEL_UNUSED__attribute__((unused))
1093 return _isOuter;
1094}
1095modelica_metatype boxptr_NFComponent_Component_isOnlyOuter(threadData_t *threadData, modelica_metatype _component)
1096{
1097 modelica_boolean _isOuter;
1098 modelica_metatype out_isOuter;
1099 _isOuter = omc_NFComponent_Component_isOnlyOuter(threadData, _component);
1100 out_isOuter = mmc_mk_icon(_isOuter);
1101 return out_isOuter;
1102}
1103
1104DLLExport
1105modelica_boolean omc_NFComponent_Component_isOuter(threadData_t *threadData, modelica_metatype _component)
1106{
1107 modelica_boolean _isOuter;
1108 modelica_integer _io;
1109 MMC_SO()mmc_check_stackoverflow(threadData);
1110 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1111 // _isOuter has no default value.
1112 _io = omc_NFComponent_Component_innerOuter(threadData, _component);
1113#line 662 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1114 _isOuter = (((modelica_integer)_io == 3) || ((modelica_integer)_io == 4));
1115#line 1115 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1116 _return: OMC_LABEL_UNUSED__attribute__((unused))
1117 return _isOuter;
1118}
1119modelica_metatype boxptr_NFComponent_Component_isOuter(threadData_t *threadData, modelica_metatype _component)
1120{
1121 modelica_boolean _isOuter;
1122 modelica_metatype out_isOuter;
1123 _isOuter = omc_NFComponent_Component_isOuter(threadData, _component);
1124 out_isOuter = mmc_mk_icon(_isOuter);
1125 return out_isOuter;
1126}
1127
1128DLLExport
1129modelica_boolean omc_NFComponent_Component_isInner(threadData_t *threadData, modelica_metatype _component)
1130{
1131 modelica_boolean _isInner;
1132 modelica_integer _io;
1133 MMC_SO()mmc_check_stackoverflow(threadData);
1134 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1135 // _isInner has no default value.
1136 _io = omc_NFComponent_Component_innerOuter(threadData, _component);
1137#line 653 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1138 _isInner = (((modelica_integer)_io == 2) || ((modelica_integer)_io == 4));
1139#line 1139 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1140 _return: OMC_LABEL_UNUSED__attribute__((unused))
1141 return _isInner;
1142}
1143modelica_metatype boxptr_NFComponent_Component_isInner(threadData_t *threadData, modelica_metatype _component)
1144{
1145 modelica_boolean _isInner;
1146 modelica_metatype out_isInner;
1147 _isInner = omc_NFComponent_Component_isInner(threadData, _component);
1148 out_isInner = mmc_mk_icon(_isInner);
1149 return out_isInner;
1150}
1151
1152DLLExport
1153modelica_integer omc_NFComponent_Component_innerOuter(threadData_t *threadData, modelica_metatype _component)
1154{
1155 modelica_integer _io;
1156 modelica_integer tmp1 = 0;
1157 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1158 MMC_SO()mmc_check_stackoverflow(threadData);
1159 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1160 // _io has no default value.
1161#line 1161 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1162 { /* match expression */
1163 modelica_metatype tmp4_1;
1164 tmp4_1 = _component;
1165 {
1166 volatile mmc_switch_type tmp4;
1167 int tmp5;
1168 tmp4 = 0;
1169 for (; tmp4 < 4; tmp4++) {
1170 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1171 case 0: {
1172 modelica_integer tmp6;
1173 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1174 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
1175 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1176 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1177 tmp6 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1178
1179 _io = tmp6 /* pattern as ty=enumeration(NOT_INNER_OUTER, INNER, OUTER, INNER_OUTER) */;
1180 /* Pattern matching succeeded */
1181#line 638 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1182 tmp1 = (modelica_integer)_io;
1183#line 1183 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1184 goto tmp3_done;
1185 }
1186 case 1: {
1187 modelica_integer tmp7;
1188 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1189 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
1190 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1191 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1192 tmp7 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1193
1194 _io = tmp7 /* pattern as ty=enumeration(NOT_INNER_OUTER, INNER, OUTER, INNER_OUTER) */;
1195 /* Pattern matching succeeded */
1196#line 639 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1197 tmp1 = (modelica_integer)_io;
1198#line 1198 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1199 goto tmp3_done;
1200 }
1201 case 2: {
1202 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1203
1204 /* Pattern matching succeeded */
1205#line 641 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1206 tmp1 = omc_NFPrefixes_innerOuterFromSCode(threadData, omc_SCodeUtil_prefixesInnerOuter(threadData, omc_SCodeUtil_elementPrefixes(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
))));
1207#line 1207 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1208 goto tmp3_done;
1209 }
1210 case 3: {
1211
1212 /* Pattern matching succeeded */
1213#line 643 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1214 tmp1 = 1;
1215#line 1215 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1216 goto tmp3_done;
1217 }
1218 }
1219 goto tmp3_end;
1220 tmp3_end: ;
1221 }
1222 goto goto_2;
1223 goto_2:;
1224 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1225 goto tmp3_done;
1226 tmp3_done:;
1227 }
1228 }
1229 _io = tmp1;
1230 _return: OMC_LABEL_UNUSED__attribute__((unused))
1231 return _io;
1232}
1233modelica_metatype boxptr_NFComponent_Component_innerOuter(threadData_t *threadData, modelica_metatype _component)
1234{
1235 modelica_integer _io;
1236 modelica_metatype out_io;
1237 _io = omc_NFComponent_Component_innerOuter(threadData, _component);
1238 out_io = mmc_mk_icon(_io);
1239 return out_io;
1240}
1241
1242DLLExport
1243modelica_boolean omc_NFComponent_Component_isFinal(threadData_t *threadData, modelica_metatype _component)
1244{
1245 modelica_boolean _isFinal;
1246 modelica_boolean tmp1 = 0;
1247 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1248 MMC_SO()mmc_check_stackoverflow(threadData);
1249 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1250 // _isFinal has no default value.
1251#line 1251 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1252 { /* match expression */
1253 modelica_metatype tmp4_1;
1254 tmp4_1 = _component;
1255 {
1256 volatile mmc_switch_type tmp4;
1257 int tmp5;
1258 tmp4 = 0;
1259 for (; tmp4 < 4; tmp4++) {
1260 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1261 case 0: {
1262 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1263
1264 /* Pattern matching succeeded */
1265#line 626 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1266 tmp1 = omc_SCodeUtil_finalBool(threadData, omc_SCodeUtil_prefixesFinal(threadData, omc_SCodeUtil_elementPrefixes(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
))));
1267#line 1267 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1268 goto tmp3_done;
1269 }
1270 case 1: {
1271 modelica_integer tmp6;
1272 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1273 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
1274 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1275 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
1276 tmp6 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1277
1278 _isFinal = tmp6 /* pattern as ty=Boolean */;
1279 /* Pattern matching succeeded */
1280#line 627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1281 tmp1 = _isFinal;
1282#line 1282 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1283 goto tmp3_done;
1284 }
1285 case 2: {
1286 modelica_integer tmp7;
1287 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1288 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
1289 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1290 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
1291 tmp7 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1292
1293 _isFinal = tmp7 /* pattern as ty=Boolean */;
1294 /* Pattern matching succeeded */
1295#line 628 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1296 tmp1 = _isFinal;
1297#line 1297 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1298 goto tmp3_done;
1299 }
1300 case 3: {
1301
1302 /* Pattern matching succeeded */
1303#line 629 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1304 tmp1 = 0;
1305#line 1305 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1306 goto tmp3_done;
1307 }
1308 }
1309 goto tmp3_end;
1310 tmp3_end: ;
1311 }
1312 goto goto_2;
1313 goto_2:;
1314 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1315 goto tmp3_done;
1316 tmp3_done:;
1317 }
1318 }
1319 _isFinal = tmp1;
1320 _return: OMC_LABEL_UNUSED__attribute__((unused))
1321 return _isFinal;
1322}
1323modelica_metatype boxptr_NFComponent_Component_isFinal(threadData_t *threadData, modelica_metatype _component)
1324{
1325 modelica_boolean _isFinal;
1326 modelica_metatype out_isFinal;
1327 _isFinal = omc_NFComponent_Component_isFinal(threadData, _component);
1328 out_isFinal = mmc_mk_icon(_isFinal);
1329 return out_isFinal;
1330}
1331
1332DLLExport
1333modelica_boolean omc_NFComponent_Component_isRedeclare(threadData_t *threadData, modelica_metatype _component)
1334{
1335 modelica_boolean _isRedeclare;
1336 modelica_boolean tmp1 = 0;
1337 MMC_SO()mmc_check_stackoverflow(threadData);
1338 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1339 // _isRedeclare has no default value.
1340#line 1340 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1341 { /* match expression */
1342 modelica_metatype tmp4_1;
1343 tmp4_1 = _component;
1344 {
1345 volatile mmc_switch_type tmp4;
1346 int tmp5;
1347 tmp4 = 0;
1348 for (; tmp4 < 2; tmp4++) {
1349 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1350 case 0: {
1351 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1352
1353 /* Pattern matching succeeded */
1354#line 615 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1355 tmp1 = omc_SCodeUtil_isElementRedeclare(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
));
1356#line 1356 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1357 goto tmp3_done;
1358 }
1359 case 1: {
1360
1361 /* Pattern matching succeeded */
1362#line 616 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1363 tmp1 = 0;
1364#line 1364 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1365 goto tmp3_done;
1366 }
1367 }
1368 goto tmp3_end;
1369 tmp3_end: ;
1370 }
1371 goto goto_2;
1372 goto_2:;
1373 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1374 goto tmp3_done;
1375 tmp3_done:;
1376 }
1377 }
1378 _isRedeclare = tmp1;
1379 _return: OMC_LABEL_UNUSED__attribute__((unused))
1380 return _isRedeclare;
1381}
1382modelica_metatype boxptr_NFComponent_Component_isRedeclare(threadData_t *threadData, modelica_metatype _component)
1383{
1384 modelica_boolean _isRedeclare;
1385 modelica_metatype out_isRedeclare;
1386 _isRedeclare = omc_NFComponent_Component_isRedeclare(threadData, _component);
1387 out_isRedeclare = mmc_mk_icon(_isRedeclare);
1388 return out_isRedeclare;
1389}
1390
1391DLLExport
1392modelica_boolean omc_NFComponent_Component_isVar(threadData_t *threadData, modelica_metatype _component)
1393{
1394 modelica_boolean _isVar;
1395 MMC_SO()mmc_check_stackoverflow(threadData);
1396 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1397 _isVar = (omc_NFComponent_Component_variability(threadData, _component) == 7);
1398 _return: OMC_LABEL_UNUSED__attribute__((unused))
1399 return _isVar;
1400}
1401modelica_metatype boxptr_NFComponent_Component_isVar(threadData_t *threadData, modelica_metatype _component)
1402{
1403 modelica_boolean _isVar;
1404 modelica_metatype out_isVar;
1405 _isVar = omc_NFComponent_Component_isVar(threadData, _component);
1406 out_isVar = mmc_mk_icon(_isVar);
1407 return out_isVar;
1408}
1409
1410DLLExport
1411modelica_boolean omc_NFComponent_Component_isStructuralParameter(threadData_t *threadData, modelica_metatype _component)
1412{
1413 modelica_boolean _b;
1414 MMC_SO()mmc_check_stackoverflow(threadData);
1415 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1416 _b = (omc_NFComponent_Component_variability(threadData, _component) == 2);
1417 _return: OMC_LABEL_UNUSED__attribute__((unused))
1418 return _b;
1419}
1420modelica_metatype boxptr_NFComponent_Component_isStructuralParameter(threadData_t *threadData, modelica_metatype _component)
1421{
1422 modelica_boolean _b;
1423 modelica_metatype out_b;
1424 _b = omc_NFComponent_Component_isStructuralParameter(threadData, _component);
1425 out_b = mmc_mk_icon(_b);
1426 return out_b;
1427}
1428
1429DLLExport
1430modelica_boolean omc_NFComponent_Component_isParameter(threadData_t *threadData, modelica_metatype _component)
1431{
1432 modelica_boolean _b;
1433 MMC_SO()mmc_check_stackoverflow(threadData);
1434 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1435 _b = (omc_NFComponent_Component_variability(threadData, _component) == 3);
1436 _return: OMC_LABEL_UNUSED__attribute__((unused))
1437 return _b;
1438}
1439modelica_metatype boxptr_NFComponent_Component_isParameter(threadData_t *threadData, modelica_metatype _component)
1440{
1441 modelica_boolean _b;
1442 modelica_metatype out_b;
1443 _b = omc_NFComponent_Component_isParameter(threadData, _component);
1444 out_b = mmc_mk_icon(_b);
1445 return out_b;
1446}
1447
1448DLLExport
1449modelica_boolean omc_NFComponent_Component_isConst(threadData_t *threadData, modelica_metatype _component)
1450{
1451 modelica_boolean _isConst;
1452 MMC_SO()mmc_check_stackoverflow(threadData);
1453 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1454 _isConst = (omc_NFComponent_Component_variability(threadData, _component) == 1);
1455 _return: OMC_LABEL_UNUSED__attribute__((unused))
1456 return _isConst;
1457}
1458modelica_metatype boxptr_NFComponent_Component_isConst(threadData_t *threadData, modelica_metatype _component)
1459{
1460 modelica_boolean _isConst;
1461 modelica_metatype out_isConst;
1462 _isConst = omc_NFComponent_Component_isConst(threadData, _component);
1463 out_isConst = mmc_mk_icon(_isConst);
1464 return out_isConst;
1465}
1466
1467DLLExport
1468modelica_metatype omc_NFComponent_Component_setVariability(threadData_t *threadData, modelica_integer _variability, modelica_metatype _D_24in_component)
1469{
1470 modelica_metatype _component = NULL((void*)0);
1471 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1472 MMC_SO()mmc_check_stackoverflow(threadData);
1473 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1474 _component = _D_24in_component;
1475#line 1475 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1476 { /* match expression */
1477 modelica_metatype tmp3_1;
1478 tmp3_1 = _component;
1479 {
1480 modelica_metatype _attr = NULL((void*)0);
1481 int tmp3;
1482 // _attr has no default value.
1483 {
1484 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
1485 case 4: {
1486 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
1487 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
1488
1489 _attr = tmpMeta[0];
1490 /* Pattern matching succeeded */
1491#line 574 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1492 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
1493#line 574 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1494 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_attr)((void*)((char*)(_attr) - 3)), 10*sizeof(modelica_metatype));
1495#line 574 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1496 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[4] = mmc_mk_integermmc_mk_icon((modelica_integer)_variability);
1497#line 574 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1498 _attr = tmpMeta[0];
1499#line 1499 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1500
1501#line 575 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1502 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
1503#line 575 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1504 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
1505#line 575 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1506 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[6] = _attr;
1507#line 575 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1508 _component = tmpMeta[0];
1509#line 1509 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1510#line 1510 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1511 goto tmp2_done;
1512 }
1513 case 5: {
1514 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
1515 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
1516
1517 _attr = tmpMeta[0];
1518 /* Pattern matching succeeded */
1519#line 581 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1520 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
1521#line 581 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1522 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_attr)((void*)((char*)(_attr) - 3)), 10*sizeof(modelica_metatype));
1523#line 581 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1524 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[4] = mmc_mk_integermmc_mk_icon((modelica_integer)_variability);
1525#line 581 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1526 _attr = tmpMeta[0];
1527#line 1527 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1528
1529#line 582 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1530 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
1531#line 582 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1532 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
1533#line 582 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1534 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[6] = _attr;
1535#line 582 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1536 _component = tmpMeta[0];
1537#line 1537 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1538#line 1538 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1539 goto tmp2_done;
1540 }
1541 default:
1542 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
1543
1544 /* Pattern matching succeeded */
1545#line 1545 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1546 goto tmp2_done;
1547 }
1548 }
1549 goto tmp2_end;
1550 tmp2_end: ;
1551 }
1552 goto goto_1;
1553 goto_1:;
1554 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1555 goto tmp2_done;
1556 tmp2_done:;
1557 }
1558 }
1559 ;
1560 _return: OMC_LABEL_UNUSED__attribute__((unused))
1561 return _component;
1562}
1563modelica_metatype boxptr_NFComponent_Component_setVariability(threadData_t *threadData, modelica_metatype _variability, modelica_metatype _D_24in_component)
1564{
1565 modelica_integer tmp1;
1566 modelica_metatype _component = NULL((void*)0);
1567 tmp1 = mmc_unbox_integer(_variability)(((mmc_sint_t) (_variability)) >> 1);
1568 _component = omc_NFComponent_Component_setVariability(threadData, tmp1, _D_24in_component);
1569 /* skip box _component; NFComponent.Component */
1570 return _component;
1571}
1572
1573DLLExport
1574modelica_integer omc_NFComponent_Component_variability(threadData_t *threadData, modelica_metatype _component)
1575{
1576 modelica_integer _variability;
1577 modelica_integer tmp1 = 0;
1578 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1579 MMC_SO()mmc_check_stackoverflow(threadData);
1580 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1581 // _variability has no default value.
1582#line 1582 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1583 { /* match expression */
1584 modelica_metatype tmp4_1;
1585 tmp4_1 = _component;
1586 {
1587 volatile mmc_switch_type tmp4;
1588 int tmp5;
1589 tmp4 = 0;
1590 for (; tmp4 < 5; tmp4++) {
1591 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1592 case 0: {
1593 modelica_integer tmp6;
1594 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1595 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
1596 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1597 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1598 tmp6 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1599
1600 _variability = tmp6 /* pattern as ty=enumeration(CONSTANT, STRUCTURAL_PARAMETER, PARAMETER, NON_STRUCTURAL_PARAMETER, DISCRETE, IMPLICITLY_DISCRETE, CONTINUOUS) */;
1601 /* Pattern matching succeeded */
1602#line 556 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1603 tmp1 = (modelica_integer)_variability;
1604#line 1604 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1605 goto tmp3_done;
1606 }
1607 case 1: {
1608 modelica_integer tmp7;
1609 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1610 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
1611 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1612 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1613 tmp7 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1614
1615 _variability = tmp7 /* pattern as ty=enumeration(CONSTANT, STRUCTURAL_PARAMETER, PARAMETER, NON_STRUCTURAL_PARAMETER, DISCRETE, IMPLICITLY_DISCRETE, CONTINUOUS) */;
1616 /* Pattern matching succeeded */
1617#line 557 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1618 tmp1 = (modelica_integer)_variability;
1619#line 1619 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1620 goto tmp3_done;
1621 }
1622 case 2: {
1623 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
1624
1625 /* Pattern matching succeeded */
1626#line 558 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1627 tmp1 = mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_component) - 3))) + (3)))))))) >> 1)
;
1628#line 1628 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1629 goto tmp3_done;
1630 }
1631 case 3: {
1632 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,4,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((4 +3) & 255) << 2)))
== 0) goto tmp3_end;
1633
1634 /* Pattern matching succeeded */
1635#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1636 tmp1 = 1;
1637#line 1637 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1638 goto tmp3_done;
1639 }
1640 case 4: {
1641
1642 /* Pattern matching succeeded */
1643#line 560 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1644 tmp1 = 7;
1645#line 1645 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1646 goto tmp3_done;
1647 }
1648 }
1649 goto tmp3_end;
1650 tmp3_end: ;
1651 }
1652 goto goto_2;
1653 goto_2:;
1654 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1655 goto tmp3_done;
1656 tmp3_done:;
1657 }
1658 }
1659 _variability = tmp1;
1660 _return: OMC_LABEL_UNUSED__attribute__((unused))
1661 return _variability;
1662}
1663modelica_metatype boxptr_NFComponent_Component_variability(threadData_t *threadData, modelica_metatype _component)
1664{
1665 modelica_integer _variability;
1666 modelica_metatype out_variability;
1667 _variability = omc_NFComponent_Component_variability(threadData, _component);
1668 out_variability = mmc_mk_icon(_variability);
1669 return out_variability;
1670}
1671
1672DLLExport
1673modelica_integer omc_NFComponent_Component_parallelism(threadData_t *threadData, modelica_metatype _component)
1674{
1675 modelica_integer _parallelism;
1676 modelica_integer tmp1 = 0;
1677 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1678 MMC_SO()mmc_check_stackoverflow(threadData);
1679 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1680 // _parallelism has no default value.
1681#line 1681 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1682 { /* match expression */
1683 modelica_metatype tmp4_1;
1684 tmp4_1 = _component;
1685 {
1686 volatile mmc_switch_type tmp4;
1687 int tmp5;
1688 tmp4 = 0;
1689 for (; tmp4 < 3; tmp4++) {
1690 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1691 case 0: {
1692 modelica_integer tmp6;
1693 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1694 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
1695 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1696 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1697 tmp6 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1698
1699 _parallelism = tmp6 /* pattern as ty=enumeration(NON_PARALLEL, GLOBAL, LOCAL) */;
1700 /* Pattern matching succeeded */
1701#line 545 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1702 tmp1 = (modelica_integer)_parallelism;
1703#line 1703 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1704 goto tmp3_done;
1705 }
1706 case 1: {
1707 modelica_integer tmp7;
1708 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1709 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
1710 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1711 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1712 tmp7 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1713
1714 _parallelism = tmp7 /* pattern as ty=enumeration(NON_PARALLEL, GLOBAL, LOCAL) */;
1715 /* Pattern matching succeeded */
1716#line 546 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1717 tmp1 = (modelica_integer)_parallelism;
1718#line 1718 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1719 goto tmp3_done;
1720 }
1721 case 2: {
1722
1723 /* Pattern matching succeeded */
1724#line 547 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1725 tmp1 = 1;
1726#line 1726 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1727 goto tmp3_done;
1728 }
1729 }
1730 goto tmp3_end;
1731 tmp3_end: ;
1732 }
1733 goto goto_2;
1734 goto_2:;
1735 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1736 goto tmp3_done;
1737 tmp3_done:;
1738 }
1739 }
1740 _parallelism = tmp1;
1741 _return: OMC_LABEL_UNUSED__attribute__((unused))
1742 return _parallelism;
1743}
1744modelica_metatype boxptr_NFComponent_Component_parallelism(threadData_t *threadData, modelica_metatype _component)
1745{
1746 modelica_integer _parallelism;
1747 modelica_metatype out_parallelism;
1748 _parallelism = omc_NFComponent_Component_parallelism(threadData, _component);
1749 out_parallelism = mmc_mk_icon(_parallelism);
1750 return out_parallelism;
1751}
1752
1753DLLExport
1754modelica_boolean omc_NFComponent_Component_isOutput(threadData_t *threadData, modelica_metatype _component)
1755{
1756 modelica_boolean _isOutput;
1757 MMC_SO()mmc_check_stackoverflow(threadData);
1758 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1759 _isOutput = (omc_NFComponent_Component_direction(threadData, _component) == 3);
1760 _return: OMC_LABEL_UNUSED__attribute__((unused))
1761 return _isOutput;
1762}
1763modelica_metatype boxptr_NFComponent_Component_isOutput(threadData_t *threadData, modelica_metatype _component)
1764{
1765 modelica_boolean _isOutput;
1766 modelica_metatype out_isOutput;
1767 _isOutput = omc_NFComponent_Component_isOutput(threadData, _component);
1768 out_isOutput = mmc_mk_icon(_isOutput);
1769 return out_isOutput;
1770}
1771
1772DLLExport
1773modelica_metatype omc_NFComponent_Component_makeInput(threadData_t *threadData, modelica_metatype _D_24in_component)
1774{
1775 modelica_metatype _component = NULL((void*)0);
1776 modelica_metatype _attr = NULL((void*)0);
1777 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1778 MMC_SO()mmc_check_stackoverflow(threadData);
1779 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1780 _component = _D_24in_component;
1781 // _attr has no default value.
1782#line 1782 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1783 { /* match expression */
1784 modelica_metatype tmp3_1;
1785 tmp3_1 = _component;
1786 {
1787 int tmp3;
1788 {
1789 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
1790 case 4: {
1791 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
1792 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
1793
1794 _attr = tmpMeta[0];
1795 /* Pattern matching succeeded */
1796#line 519 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1797 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
1798#line 519 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1799 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_attr)((void*)((char*)(_attr) - 3)), 10*sizeof(modelica_metatype));
1800#line 519 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1801 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[5] = mmc_mk_integermmc_mk_icon(2);
1802#line 519 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1803 _attr = tmpMeta[0];
1804#line 1804 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1805
1806#line 520 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1807 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
1808#line 520 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1809 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
1810#line 520 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1811 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[6] = _attr;
1812#line 520 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1813 _component = tmpMeta[0];
1814#line 1814 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1815#line 1815 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1816 goto tmp2_done;
1817 }
1818 case 5: {
1819 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
1820 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
1821
1822 _attr = tmpMeta[0];
1823 /* Pattern matching succeeded */
1824#line 526 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1825 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
1826#line 526 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1827 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_attr)((void*)((char*)(_attr) - 3)), 10*sizeof(modelica_metatype));
1828#line 526 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1829 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[5] = mmc_mk_integermmc_mk_icon(2);
1830#line 526 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1831 _attr = tmpMeta[0];
1832#line 1832 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1833
1834#line 527 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1835 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
1836#line 527 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1837 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
1838#line 527 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1839 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[6] = _attr;
1840#line 527 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1841 _component = tmpMeta[0];
1842#line 1842 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1843#line 1843 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1844 goto tmp2_done;
1845 }
1846 default:
1847 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
1848
1849 /* Pattern matching succeeded */
1850#line 1850 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1851 goto tmp2_done;
1852 }
1853 }
1854 goto tmp2_end;
1855 tmp2_end: ;
1856 }
1857 goto goto_1;
1858 goto_1:;
1859 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1860 goto tmp2_done;
1861 tmp2_done:;
1862 }
1863 }
1864 ;
1865 _return: OMC_LABEL_UNUSED__attribute__((unused))
1866 return _component;
1867}
1868
1869DLLExport
1870modelica_boolean omc_NFComponent_Component_isInput(threadData_t *threadData, modelica_metatype _component)
1871{
1872 modelica_boolean _isInput;
1873 MMC_SO()mmc_check_stackoverflow(threadData);
1874 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1875 _isInput = (omc_NFComponent_Component_direction(threadData, _component) == 2);
1876 _return: OMC_LABEL_UNUSED__attribute__((unused))
1877 return _isInput;
1878}
1879modelica_metatype boxptr_NFComponent_Component_isInput(threadData_t *threadData, modelica_metatype _component)
1880{
1881 modelica_boolean _isInput;
1882 modelica_metatype out_isInput;
1883 _isInput = omc_NFComponent_Component_isInput(threadData, _component);
1884 out_isInput = mmc_mk_icon(_isInput);
1885 return out_isInput;
1886}
1887
1888DLLExport
1889modelica_integer omc_NFComponent_Component_direction(threadData_t *threadData, modelica_metatype _component)
1890{
1891 modelica_integer _direction;
1892 modelica_integer tmp1 = 0;
1893 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1894 MMC_SO()mmc_check_stackoverflow(threadData);
1895 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1896 // _direction has no default value.
1897#line 1897 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1898 { /* match expression */
1899 modelica_metatype tmp4_1;
1900 tmp4_1 = _component;
1901 {
1902 volatile mmc_switch_type tmp4;
1903 int tmp5;
1904 tmp4 = 0;
1905 for (; tmp4 < 3; tmp4++) {
1906 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1907 case 0: {
1908 modelica_integer tmp6;
1909 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1910 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
1911 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1912 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1913 tmp6 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1914
1915 _direction = tmp6 /* pattern as ty=enumeration(NONE, INPUT, OUTPUT) */;
1916 /* Pattern matching succeeded */
1917#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1918 tmp1 = (modelica_integer)_direction;
1919#line 1919 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1920 goto tmp3_done;
1921 }
1922 case 1: {
1923 modelica_integer tmp7;
1924 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1925 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
1926 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1927 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1928 tmp7 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1929
1930 _direction = tmp7 /* pattern as ty=enumeration(NONE, INPUT, OUTPUT) */;
1931 /* Pattern matching succeeded */
1932#line 501 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1933 tmp1 = (modelica_integer)_direction;
1934#line 1934 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1935 goto tmp3_done;
1936 }
1937 case 2: {
1938
1939 /* Pattern matching succeeded */
1940#line 502 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1941 tmp1 = 1;
1942#line 1942 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1943 goto tmp3_done;
1944 }
1945 }
1946 goto tmp3_end;
1947 tmp3_end: ;
1948 }
1949 goto goto_2;
1950 goto_2:;
1951 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1952 goto tmp3_done;
1953 tmp3_done:;
1954 }
1955 }
1956 _direction = tmp1;
1957 _return: OMC_LABEL_UNUSED__attribute__((unused))
1958 return _direction;
1959}
1960modelica_metatype boxptr_NFComponent_Component_direction(threadData_t *threadData, modelica_metatype _component)
1961{
1962 modelica_integer _direction;
1963 modelica_metatype out_direction;
1964 _direction = omc_NFComponent_Component_direction(threadData, _component);
1965 out_direction = mmc_mk_icon(_direction);
1966 return out_direction;
1967}
1968
1969DLLExport
1970modelica_boolean omc_NFComponent_Component_hasCondition(threadData_t *threadData, modelica_metatype _component)
1971{
1972 modelica_boolean _b;
1973 MMC_SO()mmc_check_stackoverflow(threadData);
1974 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1975 // _b has no default value.
1976#line 492 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
1977 _b = omc_NFBinding_Binding_isBound(threadData, omc_NFComponent_Component_getCondition(threadData, _component));
1978#line 1978 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
1979 _return: OMC_LABEL_UNUSED__attribute__((unused))
1980 return _b;
1981}
1982modelica_metatype boxptr_NFComponent_Component_hasCondition(threadData_t *threadData, modelica_metatype _component)
1983{
1984 modelica_boolean _b;
1985 modelica_metatype out_b;
1986 _b = omc_NFComponent_Component_hasCondition(threadData, _component);
1987 out_b = mmc_mk_icon(_b);
1988 return out_b;
1989}
1990
1991DLLExport
1992modelica_metatype omc_NFComponent_Component_getCondition(threadData_t *threadData, modelica_metatype _component)
1993{
1994 modelica_metatype _cond = NULL((void*)0);
1995 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1996 MMC_SO()mmc_check_stackoverflow(threadData);
1997 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1998 // _cond has no default value.
1999#line 1999 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2000 { /* match expression */
2001 modelica_metatype tmp3_1;
2002 tmp3_1 = _component;
2003 {
2004 int tmp3;
2005 {
2006 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
2007 case 4: {
2008
2009 /* Pattern matching succeeded */
2010#line 482 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2011 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (5)))))
);
2012#line 2012 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2013 goto tmp2_done;
2014 }
2015 case 5: {
2016
2017 /* Pattern matching succeeded */
2018#line 483 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2019 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (5)))))
);
2020#line 2020 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2021 goto tmp2_done;
2022 }
2023 default:
2024 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
2025
2026 /* Pattern matching succeeded */
2027#line 484 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2028 tmpMeta[0] = _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3));
2029#line 2029 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2030 goto tmp2_done;
2031 }
2032 }
2033 goto tmp2_end;
2034 tmp2_end: ;
2035 }
2036 goto goto_1;
2037 goto_1:;
2038 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2039 goto tmp2_done;
2040 tmp2_done:;
2041 }
2042 }
2043 _cond = tmpMeta[0];
2044 _return: OMC_LABEL_UNUSED__attribute__((unused))
2045 return _cond;
2046}
2047
2048DLLExport
2049modelica_boolean omc_NFComponent_Component_hasBinding(threadData_t *threadData, modelica_metatype _component)
2050{
2051 modelica_boolean _b;
2052 MMC_SO()mmc_check_stackoverflow(threadData);
2053 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2054 // _b has no default value.
2055#line 474 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2056 _b = omc_NFBinding_Binding_isBound(threadData, omc_NFComponent_Component_getBinding(threadData, _component));
2057#line 2057 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2058 _return: OMC_LABEL_UNUSED__attribute__((unused))
2059 return _b;
2060}
2061modelica_metatype boxptr_NFComponent_Component_hasBinding(threadData_t *threadData, modelica_metatype _component)
2062{
2063 modelica_boolean _b;
2064 modelica_metatype out_b;
2065 _b = omc_NFComponent_Component_hasBinding(threadData, _component);
2066 out_b = mmc_mk_icon(_b);
2067 return out_b;
2068}
2069
2070DLLExport
2071modelica_metatype omc_NFComponent_Component_setBinding(threadData_t *threadData, modelica_metatype _binding, modelica_metatype _D_24in_component)
2072{
2073 modelica_metatype _component = NULL((void*)0);
2074 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2075 MMC_SO()mmc_check_stackoverflow(threadData);
2076 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2077 _component = _D_24in_component;
2078#line 2078 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2079 { /* match expression */
2080 modelica_metatype tmp3_1;
2081 tmp3_1 = _component;
2082 {
2083 int tmp3;
2084 {
2085 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
2086 case 4: {
2087
2088 /* Pattern matching succeeded */
2089#line 452 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2090 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
2091#line 452 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2092 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
2093#line 452 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2094 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[4] = _binding;
2095#line 452 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2096 _component = tmpMeta[0];
2097#line 2097 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2098#line 2098 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2099 goto tmp2_done;
2100 }
2101 case 5: {
2102
2103 /* Pattern matching succeeded */
2104#line 458 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2105 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
2106#line 458 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2107 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
2108#line 458 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2109 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[4] = _binding;
2110#line 458 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2111 _component = tmpMeta[0];
2112#line 2112 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2113#line 2113 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2114 goto tmp2_done;
2115 }
2116 case 8: {
2117
2118 /* Pattern matching succeeded */
2119#line 464 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2120 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(4))((void*)((char*)(mmc_alloc_words(4)) + 3));
2121#line 464 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2122 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 4*sizeof(modelica_metatype));
2123#line 464 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2124 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[3] = omc_NFModifier_Modifier_setBinding(threadData, _binding, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
));
2125#line 464 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2126 _component = tmpMeta[0];
2127#line 2127 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2128#line 2128 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2129 goto tmp2_done;
2130 }
2131 }
2132 goto tmp2_end;
2133 tmp2_end: ;
2134 }
2135 goto goto_1;
2136 goto_1:;
2137 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2138 goto tmp2_done;
2139 tmp2_done:;
2140 }
2141 }
2142 ;
2143 _return: OMC_LABEL_UNUSED__attribute__((unused))
2144 return _component;
2145}
2146
2147DLLExport
2148modelica_metatype omc_NFComponent_Component_getBinding(threadData_t *threadData, modelica_metatype _component)
2149{
2150 modelica_metatype _b = NULL((void*)0);
2151 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2152 MMC_SO()mmc_check_stackoverflow(threadData);
2153 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2154 // _b has no default value.
2155#line 2155 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2156 { /* match expression */
2157 modelica_metatype tmp3_1;
2158 tmp3_1 = _component;
2159 {
2160 int tmp3;
2161 {
2162 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
2163 case 4: {
2164
2165 /* Pattern matching succeeded */
2166#line 438 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2167 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (4)))))
);
2168#line 2168 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2169 goto tmp2_done;
2170 }
2171 case 5: {
2172
2173 /* Pattern matching succeeded */
2174#line 439 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2175 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (4)))))
);
2176#line 2176 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2177 goto tmp2_done;
2178 }
2179 case 8: {
2180
2181 /* Pattern matching succeeded */
2182#line 440 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2183 tmpMeta[0] = omc_NFModifier_Modifier_binding(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
));
2184#line 2184 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2185 goto tmp2_done;
2186 }
2187 default:
2188 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
2189
2190 /* Pattern matching succeeded */
2191#line 441 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2192 tmpMeta[0] = _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3));
2193#line 2193 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2194 goto tmp2_done;
2195 }
2196 }
2197 goto tmp2_end;
2198 tmp2_end: ;
2199 }
2200 goto goto_1;
2201 goto_1:;
2202 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2203 goto tmp2_done;
2204 tmp2_done:;
2205 }
2206 }
2207 _b = tmpMeta[0];
2208 _return: OMC_LABEL_UNUSED__attribute__((unused))
2209 return _b;
2210}
2211
2212DLLExport
2213modelica_metatype omc_NFComponent_Component_setAttributes(threadData_t *threadData, modelica_metatype _attr, modelica_metatype _D_24in_component)
2214{
2215 modelica_metatype _component = NULL((void*)0);
2216 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2217 MMC_SO()mmc_check_stackoverflow(threadData);
2218 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2219 _component = _D_24in_component;
2220#line 2220 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2221 { /* match expression */
2222 modelica_metatype tmp3_1;
2223 tmp3_1 = _component;
2224 {
2225 volatile mmc_switch_type tmp3;
2226 int tmp4;
2227 tmp3 = 0;
2228 for (; tmp3 < 2; tmp3++) {
2229 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2230 case 0: {
2231 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
2232
2233 /* Pattern matching succeeded */
2234#line 420 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2235 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
2236#line 420 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2237 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
2238#line 420 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2239 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[6] = _attr;
2240#line 420 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2241 _component = tmpMeta[0];
2242#line 2242 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2243#line 2243 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2244 goto tmp2_done;
2245 }
2246 case 1: {
2247 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
2248
2249 /* Pattern matching succeeded */
2250#line 426 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2251 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
2252#line 426 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2253 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
2254#line 426 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2255 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[6] = _attr;
2256#line 426 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2257 _component = tmpMeta[0];
2258#line 2258 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2259#line 2259 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2260 goto tmp2_done;
2261 }
2262 }
2263 goto tmp2_end;
2264 tmp2_end: ;
2265 }
2266 goto goto_1;
2267 goto_1:;
2268 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2269 goto tmp2_done;
2270 tmp2_done:;
2271 }
2272 }
2273 ;
2274 _return: OMC_LABEL_UNUSED__attribute__((unused))
2275 return _component;
2276}
2277
2278DLLExport
2279modelica_metatype omc_NFComponent_Component_getAttributes(threadData_t *threadData, modelica_metatype _component)
2280{
2281 modelica_metatype _attr = NULL((void*)0);
2282 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2283 MMC_SO()mmc_check_stackoverflow(threadData);
2284 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2285 // _attr has no default value.
2286#line 2286 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2287 { /* match expression */
2288 modelica_metatype tmp3_1;
2289 tmp3_1 = _component;
2290 {
2291 volatile mmc_switch_type tmp3;
2292 int tmp4;
2293 tmp3 = 0;
2294 for (; tmp3 < 2; tmp3++) {
2295 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2296 case 0: {
2297 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
2298
2299 /* Pattern matching succeeded */
2300#line 408 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2301 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (6)))))
);
2302#line 2302 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2303 goto tmp2_done;
2304 }
2305 case 1: {
2306 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
2307
2308 /* Pattern matching succeeded */
2309#line 409 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2310 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (6)))))
);
2311#line 2311 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2312 goto tmp2_done;
2313 }
2314 }
2315 goto tmp2_end;
2316 tmp2_end: ;
2317 }
2318 goto goto_1;
2319 goto_1:;
2320 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2321 goto tmp2_done;
2322 tmp2_done:;
2323 }
2324 }
2325 _attr = tmpMeta[0];
2326 _return: OMC_LABEL_UNUSED__attribute__((unused))
2327 return _attr;
2328}
2329
2330DLLExport
2331modelica_metatype omc_NFComponent_Component_unliftType(threadData_t *threadData, modelica_metatype _D_24in_component)
2332{
2333 modelica_metatype _component = NULL((void*)0);
2334 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2335 MMC_SO()mmc_check_stackoverflow(threadData);
2336 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2337 _component = _D_24in_component;
2338#line 2338 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2339 { /* match expression */
2340 modelica_metatype tmp3_1;
2341 tmp3_1 = _component;
2342 {
2343 modelica_metatype _ty = NULL((void*)0);
2344 volatile mmc_switch_type tmp3;
2345 int tmp4;
2346 // _ty has no default value.
2347 tmp3 = 0;
2348 for (; tmp3 < 3; tmp3++) {
2349 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2350 case 0: {
2351 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
2352 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2353 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],7,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((2 +1)
<< 10) + (((7 +3) & 255) << 2)))
== 0) goto tmp2_end;
2354 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
2355
2356 _ty = tmpMeta[1];
2357 /* Pattern matching succeeded */
2358#line 389 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2359 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
2360#line 389 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2361 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
2362#line 389 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2363 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[3] = _ty;
2364#line 389 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2365 _component = tmpMeta[0];
2366#line 2366 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2367#line 2367 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2368 goto tmp2_done;
2369 }
2370 case 1: {
2371 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,3,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((3 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
2372 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2373 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],7,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((2 +1)
<< 10) + (((7 +3) & 255) << 2)))
== 0) goto tmp2_end;
2374 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
2375
2376 _ty = tmpMeta[1];
2377 /* Pattern matching succeeded */
2378#line 395 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2379 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(5))((void*)((char*)(mmc_alloc_words(5)) + 3));
2380#line 395 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2381 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 5*sizeof(modelica_metatype));
2382#line 395 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2383 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[2] = _ty;
2384#line 395 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2385 _component = tmpMeta[0];
2386#line 2386 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2387#line 2387 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2388 goto tmp2_done;
2389 }
2390 case 2: {
2391
2392 /* Pattern matching succeeded */
2393#line 2393 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2394 goto tmp2_done;
2395 }
2396 }
2397 goto tmp2_end;
2398 tmp2_end: ;
2399 }
2400 goto goto_1;
2401 goto_1:;
2402 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2403 goto tmp2_done;
2404 tmp2_done:;
2405 }
2406 }
2407 ;
2408 _return: OMC_LABEL_UNUSED__attribute__((unused))
2409 return _component;
2410}
2411
2412DLLExport
2413modelica_boolean omc_NFComponent_Component_isTyped(threadData_t *threadData, modelica_metatype _component)
2414{
2415 modelica_boolean _isTyped;
2416 modelica_boolean tmp1 = 0;
2417 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2418 MMC_SO()mmc_check_stackoverflow(threadData);
2419 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2420 // _isTyped has no default value.
2421#line 2421 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2422 { /* match expression */
2423 modelica_metatype tmp4_1;
2424 tmp4_1 = _component;
2425 {
2426 volatile mmc_switch_type tmp4;
2427 int tmp5;
2428 tmp4 = 0;
2429 for (; tmp4 < 5; tmp4++) {
2430 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2431 case 0: {
2432 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
2433
2434 /* Pattern matching succeeded */
2435#line 372 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2436 tmp1 = 1;
2437#line 2437 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2438 goto tmp3_done;
2439 }
2440 case 1: {
2441 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
2442 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2443 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],10,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((0 +1)
<< 10) + (((10 +3) & 255) << 2)))
== 0) goto tmp3_end;
2444
2445 /* Pattern matching succeeded */
2446#line 373 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2447 tmp1 = 0;
2448#line 2448 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2449 goto tmp3_done;
2450 }
2451 case 2: {
2452 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
2453
2454 /* Pattern matching succeeded */
2455#line 374 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2456 tmp1 = 1;
2457#line 2457 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2458 goto tmp3_done;
2459 }
2460 case 3: {
2461 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
2462
2463 /* Pattern matching succeeded */
2464#line 375 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2465 tmp1 = 1;
2466#line 2466 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2467 goto tmp3_done;
2468 }
2469 case 4: {
2470
2471 /* Pattern matching succeeded */
2472#line 376 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2473 tmp1 = 0;
2474#line 2474 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2475 goto tmp3_done;
2476 }
2477 }
2478 goto tmp3_end;
2479 tmp3_end: ;
2480 }
2481 goto goto_2;
2482 goto_2:;
2483 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2484 goto tmp3_done;
2485 tmp3_done:;
2486 }
2487 }
2488 _isTyped = tmp1;
2489 _return: OMC_LABEL_UNUSED__attribute__((unused))
2490 return _isTyped;
2491}
2492modelica_metatype boxptr_NFComponent_Component_isTyped(threadData_t *threadData, modelica_metatype _component)
2493{
2494 modelica_boolean _isTyped;
2495 modelica_metatype out_isTyped;
2496 _isTyped = omc_NFComponent_Component_isTyped(threadData, _component);
2497 out_isTyped = mmc_mk_icon(_isTyped);
2498 return out_isTyped;
2499}
2500
2501DLLExport
2502modelica_metatype omc_NFComponent_Component_setType(threadData_t *threadData, modelica_metatype _ty, modelica_metatype _D_24in_component)
2503{
2504 modelica_metatype _component = NULL((void*)0);
2505 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2506 MMC_SO()mmc_check_stackoverflow(threadData);
2507 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2508 _component = _D_24in_component;
2509#line 2509 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2510 { /* match expression */
2511 modelica_metatype tmp3_1;
2512 tmp3_1 = _component;
2513 {
2514 int tmp3;
2515 {
2516 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
2517 case 4: {
2518
2519 /* Pattern matching succeeded */
2520#line 349 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2521 tmpMeta[1] = mmc_mk_box9(5, &NFComponent_Component_TYPED__COMPONENT__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
), _ty, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (4)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (5)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (6)))))
), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 7))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (7)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 9))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (9)))))
));
2522#line 349 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2523 tmpMeta[0] = tmpMeta[1];
2524#line 2524 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2525 goto tmp2_done;
2526 }
2527 case 5: {
2528
2529 /* Pattern matching succeeded */
2530#line 354 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2531 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
2532#line 354 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2533 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
2534#line 354 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2535 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[3] = _ty;
2536#line 354 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2537 _component = tmpMeta[1];
2538#line 2538 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2539#line 355 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2540 tmpMeta[0] = _component;
2541#line 2541 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2542 goto tmp2_done;
2543 }
2544 case 6: {
2545
2546 /* Pattern matching succeeded */
2547#line 360 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2548 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(5))((void*)((char*)(mmc_alloc_words(5)) + 3));
2549#line 360 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2550 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 5*sizeof(modelica_metatype));
2551#line 360 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2552 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[2] = _ty;
2553#line 360 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2554 _component = tmpMeta[1];
2555#line 2555 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2556#line 361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2557 tmpMeta[0] = _component;
2558#line 2558 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2559 goto tmp2_done;
2560 }
2561 }
2562 goto tmp2_end;
2563 tmp2_end: ;
2564 }
2565 goto goto_1;
2566 goto_1:;
2567 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2568 goto tmp2_done;
2569 tmp2_done:;
2570 }
2571 }
2572 _component = tmpMeta[0];
2573 _return: OMC_LABEL_UNUSED__attribute__((unused))
2574 return _component;
2575}
2576
2577DLLExport
2578modelica_metatype omc_NFComponent_Component_getType(threadData_t *threadData, modelica_metatype _component)
2579{
2580 modelica_metatype _ty = NULL((void*)0);
2581 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2582 MMC_SO()mmc_check_stackoverflow(threadData);
2583 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2584 // _ty has no default value.
2585#line 2585 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2586 { /* match expression */
2587 modelica_metatype tmp3_1;
2588 tmp3_1 = _component;
2589 {
2590 int tmp3;
2591 {
2592 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
2593 case 5: {
2594
2595 /* Pattern matching succeeded */
2596#line 334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2597 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
);
2598#line 2598 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2599 goto tmp2_done;
2600 }
2601 case 4: {
2602
2603 /* Pattern matching succeeded */
2604#line 335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2605 tmpMeta[0] = omc_NFInstNode_InstNode_getType(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
));
2606#line 2606 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2607 goto tmp2_done;
2608 }
2609 case 6: {
2610
2611 /* Pattern matching succeeded */
2612#line 336 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2613 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
);
2614#line 2614 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2615 goto tmp2_done;
2616 }
2617 case 8: {
2618
2619 /* Pattern matching succeeded */
2620#line 337 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2621 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
);
2622#line 2622 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2623 goto tmp2_done;
2624 }
2625 case 9: {
2626
2627 /* Pattern matching succeeded */
2628#line 338 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2629 /* Tail recursive call */
2630#line 338 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2631 _component = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
);
2632#line 338 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2633 goto _tailrecursive;
2634#line 338 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2635 /* TODO: Make sure any eventual dead code below is never generated */
2636#line 2636 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2637 goto tmp2_done;
2638 }
2639 default:
2640 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
2641
2642 /* Pattern matching succeeded */
2643#line 339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2644 tmpMeta[0] = _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3));
2645#line 2645 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2646 goto tmp2_done;
2647 }
2648 }
2649 goto tmp2_end;
2650 tmp2_end: ;
2651 }
2652 goto goto_1;
2653 goto_1:;
2654 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2655 goto tmp2_done;
2656 tmp2_done:;
2657 }
2658 }
2659 _ty = tmpMeta[0];
2660 _return: OMC_LABEL_UNUSED__attribute__((unused))
2661 return _ty;
2662}
2663
2664DLLExport
2665modelica_metatype omc_NFComponent_Component_mergeModifier(threadData_t *threadData, modelica_metatype _modifier, modelica_metatype _D_24in_component)
2666{
2667 modelica_metatype _component = NULL((void*)0);
2668 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2669 MMC_SO()mmc_check_stackoverflow(threadData);
2670 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2671 _component = _D_24in_component;
2672#line 2672 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2673 { /* match expression */
2674 modelica_metatype tmp3_1;
2675 tmp3_1 = _component;
2676 {
2677 volatile mmc_switch_type tmp3;
2678 int tmp4;
2679 tmp3 = 0;
2680 for (; tmp3 < 2; tmp3++) {
2681 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2682 case 0: {
2683 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2684
2685 /* Pattern matching succeeded */
2686#line 320 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2687 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(4))((void*)((char*)(mmc_alloc_words(4)) + 3));
2688#line 320 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2689 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 4*sizeof(modelica_metatype));
2690#line 320 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2691 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[3] = omc_NFModifier_Modifier_merge(threadData, _modifier, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
), _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)));
2692#line 320 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2693 _component = tmpMeta[1];
2694#line 2694 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2695#line 321 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2696 tmpMeta[0] = _component;
2697#line 2697 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2698 goto tmp2_done;
2699 }
2700 case 1: {
2701 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
2702
2703 /* Pattern matching succeeded */
2704#line 325 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2705 tmpMeta[1] = mmc_mk_box3(8, &NFComponent_Component_TYPE__ATTRIBUTE__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
), omc_NFModifier_Modifier_merge(threadData, _modifier, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
), _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))));
2706#line 325 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2707 tmpMeta[0] = tmpMeta[1];
2708#line 2708 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2709 goto tmp2_done;
2710 }
2711 }
2712 goto tmp2_end;
2713 tmp2_end: ;
2714 }
2715 goto goto_1;
2716 goto_1:;
2717 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2718 goto tmp2_done;
2719 tmp2_done:;
2720 }
2721 }
2722 _component = tmpMeta[0];
2723 _return: OMC_LABEL_UNUSED__attribute__((unused))
2724 return _component;
2725}
2726
2727DLLExport
2728modelica_metatype omc_NFComponent_Component_setModifier(threadData_t *threadData, modelica_metatype _modifier, modelica_metatype _D_24in_component)
2729{
2730 modelica_metatype _component = NULL((void*)0);
2731 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2732 MMC_SO()mmc_check_stackoverflow(threadData);
2733 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2734 _component = _D_24in_component;
2735#line 2735 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2736 { /* match expression */
2737 modelica_metatype tmp3_1;
2738 tmp3_1 = _component;
2739 {
2740 volatile mmc_switch_type tmp3;
2741 int tmp4;
2742 tmp3 = 0;
2743 for (; tmp3 < 2; tmp3++) {
2744 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2745 case 0: {
2746 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2747
2748 /* Pattern matching succeeded */
2749#line 302 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2750 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(4))((void*)((char*)(mmc_alloc_words(4)) + 3));
2751#line 302 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2752 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 4*sizeof(modelica_metatype));
2753#line 302 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2754 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[3] = _modifier;
2755#line 302 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2756 _component = tmpMeta[0];
2757#line 2757 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2758#line 2758 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2759 goto tmp2_done;
2760 }
2761 case 1: {
2762 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
2763
2764 /* Pattern matching succeeded */
2765#line 307 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2766 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(4))((void*)((char*)(mmc_alloc_words(4)) + 3));
2767#line 307 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2768 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 4*sizeof(modelica_metatype));
2769#line 307 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2770 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[3] = _modifier;
2771#line 307 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2772 _component = tmpMeta[0];
2773#line 2773 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2774#line 2774 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2775 goto tmp2_done;
2776 }
2777 }
2778 goto tmp2_end;
2779 tmp2_end: ;
2780 }
2781 goto goto_1;
2782 goto_1:;
2783 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2784 goto tmp2_done;
2785 tmp2_done:;
2786 }
2787 }
2788 ;
2789 _return: OMC_LABEL_UNUSED__attribute__((unused))
2790 return _component;
2791}
2792
2793DLLExport
2794modelica_metatype omc_NFComponent_Component_getModifier(threadData_t *threadData, modelica_metatype _component)
2795{
2796 modelica_metatype _modifier = NULL((void*)0);
2797 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2798 MMC_SO()mmc_check_stackoverflow(threadData);
2799 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2800 // _modifier has no default value.
2801#line 2801 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2802 { /* match expression */
2803 modelica_metatype tmp3_1;
2804 tmp3_1 = _component;
2805 {
2806 int tmp3;
2807 {
2808 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
2809 case 3: {
2810
2811 /* Pattern matching succeeded */
2812#line 289 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2813 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
);
2814#line 2814 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2815 goto tmp2_done;
2816 }
2817 case 8: {
2818
2819 /* Pattern matching succeeded */
2820#line 290 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2821 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
);
2822#line 2822 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2823 goto tmp2_done;
2824 }
2825 default:
2826 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
2827
2828 /* Pattern matching succeeded */
2829#line 291 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2830 tmpMeta[0] = _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3));
2831#line 2831 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2832 goto tmp2_done;
2833 }
2834 }
2835 goto tmp2_end;
2836 tmp2_end: ;
2837 }
2838 goto goto_1;
2839 goto_1:;
2840 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2841 goto tmp2_done;
2842 tmp2_done:;
2843 }
2844 }
2845 _modifier = tmpMeta[0];
2846 _return: OMC_LABEL_UNUSED__attribute__((unused))
2847 return _modifier;
2848}
2849
2850DLLExport
2851modelica_metatype omc_NFComponent_Component_setClassInstance(threadData_t *threadData, modelica_metatype _classInst, modelica_metatype _D_24in_component)
2852{
2853 modelica_metatype _component = NULL((void*)0);
2854 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2855 MMC_SO()mmc_check_stackoverflow(threadData);
2856 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2857 _component = _D_24in_component;
2858#line 2858 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2859 { /* match expression */
2860 modelica_metatype tmp3_1;
2861 tmp3_1 = _component;
2862 {
2863 volatile mmc_switch_type tmp3;
2864 int tmp4;
2865 tmp3 = 0;
2866 for (; tmp3 < 2; tmp3++) {
2867 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2868 case 0: {
2869 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
2870
2871 /* Pattern matching succeeded */
2872#line 271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2873 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
2874#line 271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2875 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
2876#line 271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2877 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[2] = _classInst;
2878#line 271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2879 _component = tmpMeta[0];
2880#line 2880 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2881#line 2881 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2882 goto tmp2_done;
2883 }
2884 case 1: {
2885 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
2886
2887 /* Pattern matching succeeded */
2888#line 277 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2889 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
2890#line 277 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2891 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_component)((void*)((char*)(_component) - 3)), 10*sizeof(modelica_metatype));
2892#line 277 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2893 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[2] = _classInst;
2894#line 277 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2895 _component = tmpMeta[0];
2896#line 2896 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2897#line 2897 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2898 goto tmp2_done;
2899 }
2900 }
2901 goto tmp2_end;
2902 tmp2_end: ;
2903 }
2904 goto goto_1;
2905 goto_1:;
2906 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2907 goto tmp2_done;
2908 tmp2_done:;
2909 }
2910 }
2911 ;
2912 _return: OMC_LABEL_UNUSED__attribute__((unused))
2913 return _component;
2914}
2915
2916DLLExport
2917modelica_metatype omc_NFComponent_Component_classInstance(threadData_t *threadData, modelica_metatype _component)
2918{
2919 modelica_metatype _classInst = NULL((void*)0);
2920 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2921 MMC_SO()mmc_check_stackoverflow(threadData);
2922 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2923 // _classInst has no default value.
2924#line 2924 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2925 { /* match expression */
2926 modelica_metatype tmp3_1;
2927 tmp3_1 = _component;
2928 {
2929 volatile mmc_switch_type tmp3;
2930 int tmp4;
2931 tmp3 = 0;
2932 for (; tmp3 < 2; tmp3++) {
2933 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2934 case 0: {
2935 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
2936
2937 /* Pattern matching succeeded */
2938#line 259 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2939 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
);
2940#line 2940 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2941 goto tmp2_done;
2942 }
2943 case 1: {
2944 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
2945
2946 /* Pattern matching succeeded */
2947#line 260 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2948 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
);
2949#line 2949 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2950 goto tmp2_done;
2951 }
2952 }
2953 goto tmp2_end;
2954 tmp2_end: ;
2955 }
2956 goto goto_1;
2957 goto_1:;
2958 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2959 goto tmp2_done;
2960 tmp2_done:;
2961 }
2962 }
2963 _classInst = tmpMeta[0];
2964 _return: OMC_LABEL_UNUSED__attribute__((unused))
2965 return _classInst;
2966}
2967
2968DLLExport
2969modelica_metatype omc_NFComponent_Component_info(threadData_t *threadData, modelica_metatype _component)
2970{
2971 modelica_metatype _info = NULL((void*)0);
2972 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2973 MMC_SO()mmc_check_stackoverflow(threadData);
2974 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2975 // _info has no default value.
2976#line 2976 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2977 { /* match expression */
2978 modelica_metatype tmp3_1;
2979 tmp3_1 = _component;
2980 {
2981 int tmp3;
2982 {
2983 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
2984 case 3: {
2985
2986 /* Pattern matching succeeded */
2987#line 244 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2988 tmpMeta[0] = omc_SCodeUtil_elementInfo(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
));
2989#line 2989 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2990 goto tmp2_done;
2991 }
2992 case 4: {
2993
2994 /* Pattern matching succeeded */
2995#line 245 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
2996 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 9))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (9)))))
);
2997#line 2997 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
2998 goto tmp2_done;
2999 }
3000 case 5: {
3001
3002 /* Pattern matching succeeded */
3003#line 246 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3004 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 9))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (9)))))
);
3005#line 3005 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
3006 goto tmp2_done;
3007 }
3008 case 6: {
3009
3010 /* Pattern matching succeeded */
3011#line 247 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3012 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (4)))))
);
3013#line 3013 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
3014 goto tmp2_done;
3015 }
3016 case 8: {
3017
3018 /* Pattern matching succeeded */
3019#line 248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3020 tmpMeta[0] = omc_NFModifier_Modifier_info(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (3)))))
));
3021#line 3021 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
3022 goto tmp2_done;
3023 }
3024 case 9: {
3025
3026 /* Pattern matching succeeded */
3027#line 249 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3028 /* Tail recursive call */
3029#line 249 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3030 _component = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_component), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_component) - 3
))) + (2)))))
);
3031#line 249 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3032 goto _tailrecursive;
3033#line 249 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3034 /* TODO: Make sure any eventual dead code below is never generated */
3035#line 3035 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
3036 goto tmp2_done;
3037 }
3038 }
3039 goto tmp2_end;
3040 tmp2_end: ;
3041 }
3042 goto goto_1;
3043 goto_1:;
3044 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3045 goto tmp2_done;
3046 tmp2_done:;
3047 }
3048 }
3049 _info = tmpMeta[0];
3050 _return: OMC_LABEL_UNUSED__attribute__((unused))
3051 return _info;
3052}
3053
3054DLLExport
3055modelica_boolean omc_NFComponent_Component_isDefinition(threadData_t *threadData, modelica_metatype _component)
3056{
3057 modelica_boolean _isDefinition;
3058 modelica_boolean tmp1 = 0;
3059 MMC_SO()mmc_check_stackoverflow(threadData);
3060 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3061 // _isDefinition has no default value.
3062#line 3062 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
3063 { /* match expression */
3064 modelica_metatype tmp4_1;
3065 tmp4_1 = _component;
3066 {
3067 volatile mmc_switch_type tmp4;
3068 int tmp5;
3069 tmp4 = 0;
3070 for (; tmp4 < 2; tmp4++) {
3071 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3072 case 0: {
3073 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3074
3075 /* Pattern matching succeeded */
3076#line 232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3077 tmp1 = 1;
3078#line 3078 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
3079 goto tmp3_done;
3080 }
3081 case 1: {
3082
3083 /* Pattern matching succeeded */
3084#line 233 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3085 tmp1 = 0;
3086#line 3086 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
3087 goto tmp3_done;
3088 }
3089 }
3090 goto tmp3_end;
3091 tmp3_end: ;
3092 }
3093 goto goto_2;
3094 goto_2:;
3095 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3096 goto tmp3_done;
3097 tmp3_done:;
3098 }
3099 }
3100 _isDefinition = tmp1;
3101 _return: OMC_LABEL_UNUSED__attribute__((unused))
3102 return _isDefinition;
3103}
3104modelica_metatype boxptr_NFComponent_Component_isDefinition(threadData_t *threadData, modelica_metatype _component)
3105{
3106 modelica_boolean _isDefinition;
3107 modelica_metatype out_isDefinition;
3108 _isDefinition = omc_NFComponent_Component_isDefinition(threadData, _component);
3109 out_isDefinition = mmc_mk_icon(_isDefinition);
3110 return out_isDefinition;
3111}
3112
3113DLLExport
3114modelica_metatype omc_NFComponent_Component_definition(threadData_t *threadData, modelica_metatype _component)
3115{
3116 modelica_metatype _definition = NULL((void*)0);
3117 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3118 MMC_SO()mmc_check_stackoverflow(threadData);
3119 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3120 // _definition has no default value.
3121#line 224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3122 /* Pattern-matching assignment */
3123#line 224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3124 tmpMeta[0] = _component;
3125#line 224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3126 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3127#line 224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3128 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
3129#line 224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3130 _definition = tmpMeta[1];
3131#line 3131 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
3132 _return: OMC_LABEL_UNUSED__attribute__((unused))
3133 return _definition;
3134}
3135
3136DLLExport
3137modelica_metatype omc_NFComponent_Component_newEnum(threadData_t *threadData, modelica_metatype _enumType, modelica_string _literalName, modelica_integer _literalIndex)
3138{
3139 modelica_metatype _component = NULL((void*)0);
3140 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3141 MMC_SO()mmc_check_stackoverflow(threadData);
3142 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3143 // _component has no default value.
3144#line 217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3145 tmpMeta[0] = mmc_mk_box4(7, &NFExpression_ENUM__LITERAL__desc, _enumType, _literalName, mmc_mk_integermmc_mk_icon(_literalIndex));
3146#line 217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3147 tmpMeta[1] = mmc_mk_box2(7, &NFComponent_Component_ENUM__LITERAL__desc, tmpMeta[0]);
3148#line 217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3149 _component = tmpMeta[1];
3150#line 3150 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
3151 _return: OMC_LABEL_UNUSED__attribute__((unused))
3152 return _component;
3153}
3154modelica_metatype boxptr_NFComponent_Component_newEnum(threadData_t *threadData, modelica_metatype _enumType, modelica_metatype _literalName, modelica_metatype _literalIndex)
3155{
3156 modelica_integer tmp1;
3157 modelica_metatype _component = NULL((void*)0);
3158 tmp1 = mmc_unbox_integer(_literalIndex)(((mmc_sint_t) (_literalIndex)) >> 1);
3159 _component = omc_NFComponent_Component_newEnum(threadData, _enumType, _literalName, tmp1);
3160 /* skip box _component; NFComponent.Component */
3161 return _component;
3162}
3163
3164DLLExport
3165modelica_metatype omc_NFComponent_Component_new(threadData_t *threadData, modelica_metatype _definition)
3166{
3167 modelica_metatype _component = NULL((void*)0);
3168 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3169 MMC_SO()mmc_check_stackoverflow(threadData);
3170 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3171 // _component has no default value.
3172#line 208 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3173 tmpMeta[0] = mmc_mk_box3(3, &NFComponent_Component_COMPONENT__DEF__desc, _definition, _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)));
3174#line 208 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3175 _component = tmpMeta[0];
3176#line 3176 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
3177 _return: OMC_LABEL_UNUSED__attribute__((unused))
3178 return _component;
3179}
3180
3181DLLExport
3182modelica_string omc_NFComponent_Component_Attributes_toString(threadData_t *threadData, modelica_metatype _attr, modelica_metatype _ty)
3183{
3184 modelica_string _str = NULL((void*)0);
3185 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
3186 MMC_SO()mmc_check_stackoverflow(threadData);
3187 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3188 // _str has no default value.
3189#line 147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3190 tmpMeta[0] = stringAppend((mmc_unbox_boolean((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_attr), 8))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_attr) - 3))) + (8)))))))) >> 1)
?_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)):_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))),(mmc_unbox_boolean((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_attr), 7))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_attr) - 3))) + (7)))))))) >> 1)
?_OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)):_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))));
3191#line 147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3192 tmpMeta[1] = stringAppend(tmpMeta[0],omc_NFPrefixes_unparseInnerOuter(threadData, mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_attr), 6))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_attr) - 3))) + (6)))))))) >> 1)
));
3193#line 147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3194 tmpMeta[2] = stringAppend(tmpMeta[1],omc_NFPrefixes_unparseReplaceable(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_attr), 9))(*(void**)(((void*)((void**)(((void*)((char*)(_attr) - 3))) +
(9)))))
)));
3195#line 147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3196 tmpMeta[3] = stringAppend(tmpMeta[2],omc_NFPrefixes_unparseParallelism(threadData, mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_attr), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_attr) - 3))) + (3)))))))) >> 1)
));
3197#line 147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3198 tmpMeta[4] = stringAppend(tmpMeta[3],omc_NFPrefixes_ConnectorType_unparse(threadData, mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_attr), 2))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_attr) - 3))) + (2)))))))) >> 1)
));
3199#line 147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3200 tmpMeta[5] = stringAppend(tmpMeta[4],omc_NFPrefixes_unparseVariability(threadData, mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_attr), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_attr) - 3))) + (4)))))))) >> 1)
, _ty));
3201#line 147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3202 tmpMeta[6] = stringAppend(tmpMeta[5],omc_NFPrefixes_unparseDirection(threadData, mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_attr), 5))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_attr) - 3))) + (5)))))))) >> 1)
));
3203#line 147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3204 _str = tmpMeta[6];
3205#line 3205 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
3206 _return: OMC_LABEL_UNUSED__attribute__((unused))
3207 return _str;
3208}
3209
3210DLLExport
3211modelica_metatype omc_NFComponent_Component_Attributes_toDAE(threadData_t *threadData, modelica_metatype _ina, modelica_integer _vis)
3212{
3213 modelica_metatype _outa = NULL((void*)0);
3214 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3215 MMC_SO()mmc_check_stackoverflow(threadData);
3216 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3217 // _outa has no default value.
3218#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3219 tmpMeta[0] = mmc_mk_box7(3, &DAE_Attributes_ATTR__desc, omc_NFPrefixes_ConnectorType_toDAE(threadData, mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ina), 2))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_ina) - 3))) + (2)))))))) >> 1)
), omc_NFPrefixes_parallelismToSCode(threadData, mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ina), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_ina) - 3))) + (3)))))))) >> 1)
), omc_NFPrefixes_variabilityToSCode(threadData, mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ina), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_ina) - 3))) + (4)))))))) >> 1)
), omc_NFPrefixes_directionToAbsyn(threadData, mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ina), 5))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_ina) - 3))) + (5)))))))) >> 1)
), omc_NFPrefixes_innerOuterToAbsyn(threadData, mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ina), 6))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_ina) - 3))) + (6)))))))) >> 1)
), omc_NFPrefixes_visibilityToSCode(threadData, (modelica_integer)_vis));
3220#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFComponent.mo"
3221 _outa = tmpMeta[0];
3222#line 3222 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFComponent.c"
3223 _return: OMC_LABEL_UNUSED__attribute__((unused))
3224 return _outa;
3225}
3226modelica_metatype boxptr_NFComponent_Component_Attributes_toDAE(threadData_t *threadData, modelica_metatype _ina, modelica_metatype _vis)
3227{
3228 modelica_integer tmp1;
3229 modelica_metatype _outa = NULL((void*)0);
3230 tmp1 = mmc_unbox_integer(_vis)(((mmc_sint_t) (_vis)) >> 1);
3231 _outa = omc_NFComponent_Component_Attributes_toDAE(threadData, _ina, tmp1);
3232 /* skip box _outa; DAE.Attributes */
3233 return _outa;
3234}
3235