Bug Summary

File:OMCompiler/Compiler/boot/build/MMToJuliaUtil.c
Warning:line 449, column 3
Value stored to '_directionEQ' 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/MMToJuliaUtil.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/MMToJuliaUtil.c" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "MMToJuliaUtil.h"
8static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT0,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT0
= { (((1) << 10) + (((5) & 255) << 2)),
{&Absyn_Direction_BIDIR__desc,}};
9#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
10static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT1,1,6)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT1
= { (((1) << 10) + (((6) & 255) << 2)),
{&Absyn_Direction_INPUT__OUTPUT__desc,}};
11#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
12static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT2,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT2
= { (((1) << 10) + (((4) & 255) << 2)),
{&Absyn_Direction_OUTPUT__desc,}};
13#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
14static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT3,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT3
= { (((1) << 10) + (((3) & 255) << 2)),
{&Absyn_Direction_INPUT__desc,}};
15#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
16#include "util/modelica.h"
17
18#include "MMToJuliaUtil_includes.h"
19
20
21
22DLLExport
23void omc_MMToJuliaUtil_mMKeywordToJLKeyword(threadData_t *threadData)
24{
25 MMC_SO()mmc_check_stackoverflow(threadData);
26 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
27 _return: OMC_LABEL_UNUSED__attribute__((unused))
28 return;
29}
30
31DLLExport
32modelica_boolean omc_MMToJuliaUtil_algorithmItemsContainsReturn(threadData_t *threadData, modelica_metatype _contents)
33{
34 modelica_boolean _existsReturn;
35 modelica_boolean tmp1 = 0;
36 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
37 MMC_SO()mmc_check_stackoverflow(threadData);
38 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
39 // _existsReturn has no default value.
40#line 317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
41 {
42#line 317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
43 modelica_metatype _item;
44#line 317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
45 for (tmpMeta[0] = _contents; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
46#line 317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
47 {
48#line 317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
49 _item = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
50#line 50 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
51 { /* match expression */
52 modelica_metatype tmp4_1;
53 tmp4_1 = _item;
54 {
55 modelica_metatype _alg = NULL((void*)0);
56 volatile mmc_switch_type tmp4;
57 int tmp5;
58 // _alg has no default value.
59 tmp4 = 0;
60 for (; tmp4 < 2; tmp4++) {
61 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
62 case 0: {
63 modelica_boolean tmp6 = 0;
64 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
65 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
66
67 _alg = tmpMeta[1];
68 /* Pattern matching succeeded */
69#line 69 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
70 { /* match expression */
71 modelica_metatype tmp9_1;
72 tmp9_1 = _alg;
73 {
74 volatile mmc_switch_type tmp9;
75 int tmp10;
76 tmp9 = 0;
77 for (; tmp9 < 2; tmp9++) {
78 switch (MMC_SWITCH_CAST(tmp9)(tmp9)) {
79 case 0: {
80 if (mmc__uniontype__metarecord__typedef__equal(tmp9_1,7,0)((*(mmc_uint_t*)((void*)((char*)(tmp9_1) - 3)))==(((0 +1) <<
10) + (((7 +3) & 255) << 2)))
== 0) goto tmp8_end;
81 /* Pattern matching succeeded */
82#line 322 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
83 tmp6 = 1;
84#line 84 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
85 goto tmp8_done;
86 }
87 case 1: {
88
89 /* Pattern matching succeeded */
90#line 323 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
91 tmp6 = 0;
92#line 92 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
93 goto tmp8_done;
94 }
95 }
96 goto tmp8_end;
97 tmp8_end: ;
98 }
99 goto goto_7;
100 goto_7:;
101 goto goto_2;
102 goto tmp8_done;
103 tmp8_done:;
104 }
105 }tmp1 = tmp6;
106 goto tmp3_done;
107 }
108 case 1: {
109
110 /* Pattern matching succeeded */
111#line 325 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
112 tmp1 = 0;
113#line 113 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
114 goto tmp3_done;
115 }
116 }
117 goto tmp3_end;
118 tmp3_end: ;
119 }
120 goto goto_2;
121 goto_2:;
122 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
123 goto tmp3_done;
124 tmp3_done:;
125 }
126 }
127 _existsReturn = tmp1;
128 }
129 }
130 _return: OMC_LABEL_UNUSED__attribute__((unused))
131 return _existsReturn;
132}
133modelica_metatype boxptr_MMToJuliaUtil_algorithmItemsContainsReturn(threadData_t *threadData, modelica_metatype _contents)
134{
135 modelica_boolean _existsReturn;
136 modelica_metatype out_existsReturn;
137 _existsReturn = omc_MMToJuliaUtil_algorithmItemsContainsReturn(threadData, _contents);
138 out_existsReturn = mmc_mk_icon(_existsReturn);
139 return out_existsReturn;
140}
141
142DLLExport
143modelica_boolean omc_MMToJuliaUtil_explicitReturnInClassPart(threadData_t *threadData, modelica_metatype _classParts)
144{
145 modelica_boolean _existsImplicitReturn;
146 modelica_boolean tmp1 = 0;
147 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
148 MMC_SO()mmc_check_stackoverflow(threadData);
149 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
150 // _existsImplicitReturn has no default value.
151#line 303 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
152 {
153#line 303 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
154 modelica_metatype _cp;
155#line 303 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
156 for (tmpMeta[0] = _classParts; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
157#line 303 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
158 {
159#line 303 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
160 _cp = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
161#line 161 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
162 { /* match expression */
163 modelica_metatype tmp4_1;
164 tmp4_1 = _cp;
165 {
166 modelica_metatype _contents = NULL((void*)0);
167 volatile mmc_switch_type tmp4;
168 int tmp5;
169 // _contents has no default value.
170 tmp4 = 0;
171 for (; tmp4 < 2; tmp4++) {
172 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
173 case 0: {
174 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
175 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
176 _contents = tmpMeta[1];
177 /* Pattern matching succeeded */
178#line 306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
179 tmp1 = omc_MMToJuliaUtil_algorithmItemsContainsReturn(threadData, _contents);
180#line 180 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
181 goto tmp3_done;
182 }
183 case 1: {
184
185 /* Pattern matching succeeded */
186#line 307 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
187 tmp1 = 0;
188#line 188 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
189 goto tmp3_done;
190 }
191 }
192 goto tmp3_end;
193 tmp3_end: ;
194 }
195 goto goto_2;
196 goto_2:;
197 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
198 goto tmp3_done;
199 tmp3_done:;
200 }
201 }
202 _existsImplicitReturn = tmp1;
203 }
204 }
205 _return: OMC_LABEL_UNUSED__attribute__((unused))
206 return _existsImplicitReturn;
207}
208modelica_metatype boxptr_MMToJuliaUtil_explicitReturnInClassPart(threadData_t *threadData, modelica_metatype _classParts)
209{
210 modelica_boolean _existsImplicitReturn;
211 modelica_metatype out_existsImplicitReturn;
212 _existsImplicitReturn = omc_MMToJuliaUtil_explicitReturnInClassPart(threadData, _classParts);
213 out_existsImplicitReturn = mmc_mk_icon(_existsImplicitReturn);
214 return out_existsImplicitReturn;
215}
216
217DLLExport
218modelica_boolean omc_MMToJuliaUtil_elementSpecIsOUTPUT__OR__BIDIR(threadData_t *threadData, modelica_metatype _spec)
219{
220 modelica_boolean _isOutput;
221 MMC_SO()mmc_check_stackoverflow(threadData);
222 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
223 // _isOutput has no default value.
224#line 294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
225 _isOutput = (omc_MMToJuliaUtil_elementSpecIsOUTPUT(threadData, _spec) || omc_MMToJuliaUtil_elementSpecIsBIDIR(threadData, _spec));
226#line 226 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
227 _return: OMC_LABEL_UNUSED__attribute__((unused))
228 return _isOutput;
229}
230modelica_metatype boxptr_MMToJuliaUtil_elementSpecIsOUTPUT__OR__BIDIR(threadData_t *threadData, modelica_metatype _spec)
231{
232 modelica_boolean _isOutput;
233 modelica_metatype out_isOutput;
234 _isOutput = omc_MMToJuliaUtil_elementSpecIsOUTPUT__OR__BIDIR(threadData, _spec);
235 out_isOutput = mmc_mk_icon(_isOutput);
236 return out_isOutput;
237}
238
239DLLExport
240modelica_boolean omc_MMToJuliaUtil_elementSpecIsOUTPUT(threadData_t *threadData, modelica_metatype _spec)
241{
242 modelica_boolean _isOutput;
243 modelica_boolean tmp1 = 0;
244 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
245 MMC_SO()mmc_check_stackoverflow(threadData);
246 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
247 // _isOutput has no default value.
248#line 248 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
249 { /* match expression */
250 modelica_metatype tmp4_1;
251 tmp4_1 = _spec;
252 {
253 modelica_metatype _attributes = NULL((void*)0);
254 volatile mmc_switch_type tmp4;
255 int tmp5;
256 // _attributes has no default value.
257 tmp4 = 0;
258 for (; tmp4 < 2; tmp4++) {
259 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
260 case 0: {
261 modelica_boolean tmp6 = 0;
262 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;
263 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
264
265 _attributes = tmpMeta[0];
266 /* Pattern matching succeeded */
267#line 267 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
268 { /* match expression */
269 modelica_metatype tmp9_1;
270 tmp9_1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_attributes), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_attributes) - 3
))) + (6)))))
);
271 {
272 volatile mmc_switch_type tmp9;
273 int tmp10;
274 tmp9 = 0;
275 for (; tmp9 < 2; tmp9++) {
276 switch (MMC_SWITCH_CAST(tmp9)(tmp9)) {
277 case 0: {
278 if (mmc__uniontype__metarecord__typedef__equal(tmp9_1,1,0)((*(mmc_uint_t*)((void*)((char*)(tmp9_1) - 3)))==(((0 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp8_end;
279 /* Pattern matching succeeded */
280#line 282 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
281 tmp6 = 1;
282#line 282 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
283 goto tmp8_done;
284 }
285 case 1: {
286
287 /* Pattern matching succeeded */
288#line 283 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
289 tmp6 = 0;
290#line 290 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
291 goto tmp8_done;
292 }
293 }
294 goto tmp8_end;
295 tmp8_end: ;
296 }
297 goto goto_7;
298 goto_7:;
299 goto goto_2;
300 goto tmp8_done;
301 tmp8_done:;
302 }
303 }tmp1 = tmp6;
304 goto tmp3_done;
305 }
306 case 1: {
307
308 /* Pattern matching succeeded */
309#line 285 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
310 tmp1 = 0;
311#line 311 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
312 goto tmp3_done;
313 }
314 }
315 goto tmp3_end;
316 tmp3_end: ;
317 }
318 goto goto_2;
319 goto_2:;
320 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
321 goto tmp3_done;
322 tmp3_done:;
323 }
324 }
325 _isOutput = tmp1;
326 _return: OMC_LABEL_UNUSED__attribute__((unused))
327 return _isOutput;
328}
329modelica_metatype boxptr_MMToJuliaUtil_elementSpecIsOUTPUT(threadData_t *threadData, modelica_metatype _spec)
330{
331 modelica_boolean _isOutput;
332 modelica_metatype out_isOutput;
333 _isOutput = omc_MMToJuliaUtil_elementSpecIsOUTPUT(threadData, _spec);
334 out_isOutput = mmc_mk_icon(_isOutput);
335 return out_isOutput;
336}
337
338DLLExport
339modelica_boolean omc_MMToJuliaUtil_elementSpecIsBIDIR(threadData_t *threadData, modelica_metatype _spec)
340{
341 modelica_boolean _isBidir;
342 modelica_boolean tmp1 = 0;
343 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
344 MMC_SO()mmc_check_stackoverflow(threadData);
345 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
346 // _isBidir has no default value.
347#line 347 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
348 { /* match expression */
349 modelica_metatype tmp4_1;
350 tmp4_1 = _spec;
351 {
352 modelica_metatype _attributes = NULL((void*)0);
353 volatile mmc_switch_type tmp4;
354 int tmp5;
355 // _attributes has no default value.
356 tmp4 = 0;
357 for (; tmp4 < 2; tmp4++) {
358 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
359 case 0: {
360 modelica_boolean tmp6 = 0;
361 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;
362 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
363
364 _attributes = tmpMeta[0];
365 /* Pattern matching succeeded */
366#line 366 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
367 { /* match expression */
368 modelica_metatype tmp9_1;
369 tmp9_1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_attributes), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_attributes) - 3
))) + (6)))))
);
370 {
371 volatile mmc_switch_type tmp9;
372 int tmp10;
373 tmp9 = 0;
374 for (; tmp9 < 2; tmp9++) {
375 switch (MMC_SWITCH_CAST(tmp9)(tmp9)) {
376 case 0: {
377 if (mmc__uniontype__metarecord__typedef__equal(tmp9_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp9_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp8_end;
378 /* Pattern matching succeeded */
379#line 266 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
380 tmp6 = 1;
381#line 381 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
382 goto tmp8_done;
383 }
384 case 1: {
385
386 /* Pattern matching succeeded */
387#line 267 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
388 tmp6 = 0;
389#line 389 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
390 goto tmp8_done;
391 }
392 }
393 goto tmp8_end;
394 tmp8_end: ;
395 }
396 goto goto_7;
397 goto_7:;
398 goto goto_2;
399 goto tmp8_done;
400 tmp8_done:;
401 }
402 }tmp1 = tmp6;
403 goto tmp3_done;
404 }
405 case 1: {
406
407 /* Pattern matching succeeded */
408#line 269 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
409 tmp1 = 0;
410#line 410 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
411 goto tmp3_done;
412 }
413 }
414 goto tmp3_end;
415 tmp3_end: ;
416 }
417 goto goto_2;
418 goto_2:;
419 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
420 goto tmp3_done;
421 tmp3_done:;
422 }
423 }
424 _isBidir = tmp1;
425 _return: OMC_LABEL_UNUSED__attribute__((unused))
426 return _isBidir;
427}
428modelica_metatype boxptr_MMToJuliaUtil_elementSpecIsBIDIR(threadData_t *threadData, modelica_metatype _spec)
429{
430 modelica_boolean _isBidir;
431 modelica_metatype out_isBidir;
432 _isBidir = omc_MMToJuliaUtil_elementSpecIsBIDIR(threadData, _spec);
433 out_isBidir = mmc_mk_icon(_isBidir);
434 return out_isBidir;
435}
436
437DLLExport
438modelica_metatype omc_MMToJuliaUtil_filterOnDirection(threadData_t *threadData, modelica_metatype _inputs, modelica_metatype _direction)
439{
440 modelica_metatype _outputs = NULL((void*)0);
441 modelica_metatype _ioDirection = NULL((void*)0);
442 modelica_boolean _directionEQ;
443 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
444 MMC_SO()mmc_check_stackoverflow(threadData);
445 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
446 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
447 _outputs = tmpMeta[0];
448 _ioDirection = omc_MMToJuliaUtil_makeInputOutputDirection(threadData);
449 _directionEQ = 0;
Value stored to '_directionEQ' is never read
450#line 248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
451 {
452#line 248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
453 modelica_metatype _i;
454#line 248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
455 for (tmpMeta[1] = _inputs; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
456#line 248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
457 {
458#line 248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
459 _i = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
460#line 249 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
461 _directionEQ = (omc_AbsynUtil_directionEqual(threadData, _direction, omc_AbsynUtil_getDirection(threadData, _i)) || omc_AbsynUtil_directionEqual(threadData, _ioDirection, omc_AbsynUtil_getDirection(threadData, _i)));
462#line 462 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
463
464#line 251 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
465 if(_directionEQ)
466#line 251 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
467 {
468#line 252 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
469 tmpMeta[2] = mmc_mk_cons(_i, _outputs);
470#line 252 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
471 _outputs = tmpMeta[2];
472#line 472 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
473 }
474 }
475 }
476 _return: OMC_LABEL_UNUSED__attribute__((unused))
477 return _outputs;
478}
479
480DLLExport
481modelica_boolean omc_MMToJuliaUtil_isFunctionContext(threadData_t *threadData, modelica_metatype _givenCTX)
482{
483 modelica_boolean _isFuncCTX;
484 modelica_boolean tmp1 = 0;
485 MMC_SO()mmc_check_stackoverflow(threadData);
486 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
487 _isFuncCTX = 0;
488#line 488 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
489 { /* match expression */
490 modelica_metatype tmp4_1;
491 tmp4_1 = _givenCTX;
492 {
493 volatile mmc_switch_type tmp4;
494 int tmp5;
495 tmp4 = 0;
496 for (; tmp4 < 2; tmp4++) {
497 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
498 case 0: {
499 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
500
501 /* Pattern matching succeeded */
502#line 235 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
503 tmp1 = 1;
504#line 504 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
505 goto tmp3_done;
506 }
507 case 1: {
508
509 /* Pattern matching succeeded */
510#line 235 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
511 tmp1 = 0;
512#line 512 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
513 goto tmp3_done;
514 }
515 }
516 goto tmp3_end;
517 tmp3_end: ;
518 }
519 goto goto_2;
520 goto_2:;
521 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
522 goto tmp3_done;
523 tmp3_done:;
524 }
525 }
526 _isFuncCTX = tmp1;
527 _return: OMC_LABEL_UNUSED__attribute__((unused))
528 return _isFuncCTX;
529}
530modelica_metatype boxptr_MMToJuliaUtil_isFunctionContext(threadData_t *threadData, modelica_metatype _givenCTX)
531{
532 modelica_boolean _isFuncCTX;
533 modelica_metatype out_isFuncCTX;
534 _isFuncCTX = omc_MMToJuliaUtil_isFunctionContext(threadData, _givenCTX);
535 out_isFuncCTX = mmc_mk_icon(_isFuncCTX);
536 return out_isFuncCTX;
537}
538
539DLLExport
540modelica_metatype omc_MMToJuliaUtil_makeBDirection(threadData_t *threadData)
541{
542 modelica_metatype _direction = NULL((void*)0);
543 MMC_SO()mmc_check_stackoverflow(threadData);
544 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
545 // _direction has no default value.
546#line 228 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
547 _direction = _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3));
548#line 548 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
549 _return: OMC_LABEL_UNUSED__attribute__((unused))
550 return _direction;
551}
552
553DLLExport
554modelica_metatype omc_MMToJuliaUtil_makeInputOutputDirection(threadData_t *threadData)
555{
556 modelica_metatype _direction = NULL((void*)0);
557 MMC_SO()mmc_check_stackoverflow(threadData);
558 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
559 // _direction has no default value.
560#line 222 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
561 _direction = _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3));
562#line 562 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
563 _return: OMC_LABEL_UNUSED__attribute__((unused))
564 return _direction;
565}
566
567DLLExport
568modelica_metatype omc_MMToJuliaUtil_makeOutputDirection(threadData_t *threadData)
569{
570 modelica_metatype _direction = NULL((void*)0);
571 MMC_SO()mmc_check_stackoverflow(threadData);
572 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
573 // _direction has no default value.
574#line 216 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
575 _direction = _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3));
576#line 576 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
577 _return: OMC_LABEL_UNUSED__attribute__((unused))
578 return _direction;
579}
580
581DLLExport
582modelica_metatype omc_MMToJuliaUtil_makeInputDirection(threadData_t *threadData)
583{
584 modelica_metatype _direction = NULL((void*)0);
585 MMC_SO()mmc_check_stackoverflow(threadData);
586 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
587 // _direction has no default value.
588#line 210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
589 _direction = _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3));
590#line 590 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
591 _return: OMC_LABEL_UNUSED__attribute__((unused))
592 return _direction;
593}
594
595DLLExport
596modelica_metatype omc_MMToJuliaUtil_makeMatchContext(threadData_t *threadData, modelica_metatype _iExp)
597{
598 modelica_metatype _context = NULL((void*)0);
599 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
600 MMC_SO()mmc_check_stackoverflow(threadData);
601 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
602 // _context has no default value.
603#line 204 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
604 tmpMeta[0] = mmc_mk_box2(9, &MMToJuliaUtil_Context_MATCH__CONTEXT__desc, _iExp);
605#line 204 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
606 _context = tmpMeta[0];
607#line 607 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
608 _return: OMC_LABEL_UNUSED__attribute__((unused))
609 return _context;
610}
611
612DLLExport
613modelica_metatype omc_MMToJuliaUtil_makeFunctionReturnContext(threadData_t *threadData, modelica_string _returnValuesStr, modelica_string _ty_str)
614{
615 modelica_metatype _context = NULL((void*)0);
616 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
617 MMC_SO()mmc_check_stackoverflow(threadData);
618 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
619 // _context has no default value.
620#line 197 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
621 tmpMeta[0] = mmc_mk_box3(4, &MMToJuliaUtil_Context_FUNCTION__RETURN__CONTEXT__desc, _returnValuesStr, _ty_str);
622#line 197 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
623 _context = tmpMeta[0];
624#line 624 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
625 _return: OMC_LABEL_UNUSED__attribute__((unused))
626 return _context;
627}
628
629DLLExport
630modelica_metatype omc_MMToJuliaUtil_makeFunctionContext(threadData_t *threadData, modelica_string _returnValuesStr)
631{
632 modelica_metatype _context = NULL((void*)0);
633 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
634 MMC_SO()mmc_check_stackoverflow(threadData);
635 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
636 // _context has no default value.
637#line 189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
638 tmpMeta[0] = mmc_mk_box2(3, &MMToJuliaUtil_Context_FUNCTION__desc, _returnValuesStr);
639#line 189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
640 _context = tmpMeta[0];
641#line 641 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
642 _return: OMC_LABEL_UNUSED__attribute__((unused))
643 return _context;
644}
645
646DLLExport
647modelica_metatype omc_MMToJuliaUtil_makeInputContext(threadData_t *threadData, modelica_string _ty_str)
648{
649 modelica_metatype _context = NULL((void*)0);
650 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
651 MMC_SO()mmc_check_stackoverflow(threadData);
652 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
653 // _context has no default value.
654#line 182 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
655 tmpMeta[0] = mmc_mk_box2(8, &MMToJuliaUtil_Context_INPUT__CONTEXT__desc, _ty_str);
656#line 182 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
657 _context = tmpMeta[0];
658#line 658 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
659 _return: OMC_LABEL_UNUSED__attribute__((unused))
660 return _context;
661}
662
663DLLExport
664modelica_metatype omc_MMToJuliaUtil_makeUniontypeContext(threadData_t *threadData, modelica_string _name)
665{
666 modelica_metatype _context = NULL((void*)0);
667 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
668 MMC_SO()mmc_check_stackoverflow(threadData);
669 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
670 // _context has no default value.
671#line 175 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
672 tmpMeta[0] = mmc_mk_box2(6, &MMToJuliaUtil_Context_UNIONTYPE__desc, _name);
673#line 175 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Script/MMToJuliaUtil.mo"
674 _context = tmpMeta[0];
675#line 675 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/MMToJuliaUtil.c"
676 _return: OMC_LABEL_UNUSED__attribute__((unused))
677 return _context;
678}
679