Bug Summary

File:OMCompiler/Compiler/boot/build/HpcOmBenchmark.c
Warning:line 373, column 3
Value stored to '_s2' is never read

Annotated Source Code

[?] Use j/k keys for keyboard navigation

1#ifdef OMC_BASE_FILE
2 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "HpcOmBenchmark.h"
8#define _OMC_LIT0_data"expandCalcTimes: Invalid number of list-entries\n" "expandCalcTimes: Invalid number of list-entries\n"
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,48,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(48)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)48)<<(3))+((1<<(3+3))+5)), "expandCalcTimes: Invalid number of list-entries\n"
}
;
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".json" ".json"
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,5,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), ".json"
}
;
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"Using json-file\n" "Using json-file\n"
15static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,16,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "Using json-file\n"
}
;
16#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
17#define _OMC_LIT3_data".xml" ".xml"
18static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,4,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), ".xml"
}
;
19#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
20#define _OMC_LIT4_data"readCalcTimesFromFile: No valid profiling-file found.\n" "readCalcTimesFromFile: No valid profiling-file found.\n"
21static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,54,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(54)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)54)<<(3))+((1<<(3+3))+5)), "readCalcTimesFromFile: No valid profiling-file found.\n"
}
;
22#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
23#include "util/modelica.h"
24
25#include "HpcOmBenchmark_includes.h"
26
27
28/* default, do not make protected functions static */
29#if !defined(PROTECTED_FUNCTION_STATIC)
30#define PROTECTED_FUNCTION_STATIC
31#endif
32PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmBenchmark_expandCalcTimes(threadData_t *threadData, modelica_metatype _iList, modelica_metatype _iTuples);
33static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmBenchmark_expandCalcTimes,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmBenchmark_expandCalcTimes
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmBenchmark_expandCalcTimesomc_HpcOmBenchmark_expandCalcTimes,0}};
34#define boxvar_HpcOmBenchmark_expandCalcTimes((void*)((char*)(&(boxvar_lit_HpcOmBenchmark_expandCalcTimes
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmBenchmark_expandCalcTimes)((void*)((char*)(&(boxvar_lit_HpcOmBenchmark_expandCalcTimes
).header) + 3))
35PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmBenchmark_readCalcTimesFromJson(threadData_t *threadData, modelica_string _fileName);
36static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmBenchmark_readCalcTimesFromJson,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmBenchmark_readCalcTimesFromJson
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmBenchmark_readCalcTimesFromJsonomc_HpcOmBenchmark_readCalcTimesFromJson,0}};
37#define boxvar_HpcOmBenchmark_readCalcTimesFromJson((void*)((char*)(&(boxvar_lit_HpcOmBenchmark_readCalcTimesFromJson
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmBenchmark_readCalcTimesFromJson)((void*)((char*)(&(boxvar_lit_HpcOmBenchmark_readCalcTimesFromJson
).header) + 3))
38PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmBenchmark_readCalcTimesFromXml(threadData_t *threadData, modelica_string _fileName);
39static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmBenchmark_readCalcTimesFromXml,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmBenchmark_readCalcTimesFromXml
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmBenchmark_readCalcTimesFromXmlomc_HpcOmBenchmark_readCalcTimesFromXml,0}};
40#define boxvar_HpcOmBenchmark_readCalcTimesFromXml((void*)((char*)(&(boxvar_lit_HpcOmBenchmark_readCalcTimesFromXml
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmBenchmark_readCalcTimesFromXml)((void*)((char*)(&(boxvar_lit_HpcOmBenchmark_readCalcTimesFromXml
).header) + 3))
41
42PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmBenchmark_expandCalcTimes(threadData_t *threadData, modelica_metatype _iList, modelica_metatype _iTuples)
43{
44 modelica_metatype _oTuples = NULL((void*)0);
45 modelica_real _eqIdx;
46 modelica_real _numOfCalcs;
47 modelica_real _calcTimeSum;
48 modelica_integer _intNumOfCalcs;
49 modelica_integer _intEqIdx;
50 modelica_metatype _rest = NULL((void*)0);
51 modelica_metatype _tmpTuples = NULL((void*)0);
52 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
53 MMC_SO()mmc_check_stackoverflow(threadData);
54 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
55 // _oTuples has no default value.
56 // _eqIdx has no default value.
57 // _numOfCalcs has no default value.
58 // _calcTimeSum has no default value.
59 // _intNumOfCalcs has no default value.
60 // _intEqIdx has no default value.
61 // _rest has no default value.
62 // _tmpTuples has no default value.
63#line 63 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
64 { /* matchcontinue expression */
65 volatile modelica_metatype tmp3_1;
66 tmp3_1 = _iList;
67 {
68 volatile mmc_switch_type tmp3;
69 int tmp4;
70 tmp3 = 0;
71 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
72 tmp2_top:
73 threadData->mmc_jumper = &new_mmc_jumper;
74 for (; tmp3 < 3; tmp3++) {
75 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
76 case 0: {
77 modelica_real tmp5;
78 modelica_real tmp6;
79 modelica_real tmp7;
80 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
81 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
82 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
83 tmp5 = mmc_unbox_real(tmpMeta[1])mmc_prim_get_real(tmpMeta[1]);
84 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
85 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
86 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
87 tmp6 = mmc_unbox_real(tmpMeta[3])mmc_prim_get_real(tmpMeta[3]);
88 if (listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
89 tmpMeta[5] = MMC_CAR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
90 tmpMeta[6] = MMC_CDR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
91 tmp7 = mmc_unbox_real(tmpMeta[5])mmc_prim_get_real(tmpMeta[5]);
92 _numOfCalcs = tmp5 /* pattern as ty=Real */;
93 _calcTimeSum = tmp6 /* pattern as ty=Real */;
94 _eqIdx = tmp7 /* pattern as ty=Real */;
95 _rest = tmpMeta[6];
96 tmp3 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
97#line 140 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
98 _intNumOfCalcs = ((modelica_integer)floor(_numOfCalcs));
99#line 99 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
100
101#line 141 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
102 _intEqIdx = ((modelica_integer)floor(_eqIdx));
103#line 103 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
104#line 142 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
105 tmpMeta[2] = mmc_mk_box3(0, mmc_mk_integermmc_mk_icon(_intEqIdx), mmc_mk_integermmc_mk_icon(_intNumOfCalcs), mmc_mk_realmmc_mk_rcon(_calcTimeSum));
106#line 142 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
107 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _iTuples);
108#line 142 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
109 tmpMeta[0] = omc_HpcOmBenchmark_expandCalcTimes(threadData, _rest, tmpMeta[1]);
110#line 110 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
111 goto tmp2_done;
112 }
113 case 1: {
114 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
115 /* Pattern matching succeeded */
116#line 145 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
117 tmpMeta[0] = _iTuples;
118#line 118 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
119 goto tmp2_done;
120 }
121 case 2: {
122
123 /* Pattern matching succeeded */
124#line 148 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
125 fputs(MMC_STRINGDATA(_OMC_LIT0)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT0).header) + 3))) - 3)))->data)
,stdoutstdout);
126#line 126 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
127#line 149 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
128 goto goto_1;
129#line 129 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
130 goto tmp2_done;
131 }
132 }
133 goto tmp2_end;
134 tmp2_end: ;
135 }
136 goto goto_1;
137 tmp2_done:
138 (void)tmp3;
139 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
140 goto tmp2_done2;
141 goto_1:;
142 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
143 if (++tmp3 < 3) {
144 goto tmp2_top;
145 }
146 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
147 tmp2_done2:;
148 }
149 }
150 _oTuples = tmpMeta[0];
151 _return: OMC_LABEL_UNUSED__attribute__((unused))
152 return _oTuples;
153}
154
155PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmBenchmark_readCalcTimesFromJson(threadData_t *threadData, modelica_string _fileName)
156{
157 modelica_metatype _calcTimes = NULL((void*)0);
158 modelica_metatype _tmpResult = NULL((void*)0);
159 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
160 MMC_SO()mmc_check_stackoverflow(threadData);
161 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
162 // _calcTimes has no default value.
163 // _tmpResult has no default value.
164#line 121 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
165 _tmpResult = omc_HpcOmBenchmarkExt_readCalcTimesFromJson(threadData, _fileName);
166#line 166 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
167
168#line 122 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
169 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
170#line 122 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
171 _calcTimes = omc_HpcOmBenchmark_expandCalcTimes(threadData, _tmpResult, tmpMeta[0]);
172#line 172 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
173 _return: OMC_LABEL_UNUSED__attribute__((unused))
174 return _calcTimes;
175}
176
177PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmBenchmark_readCalcTimesFromXml(threadData_t *threadData, modelica_string _fileName)
178{
179 modelica_metatype _calcTimes = NULL((void*)0);
180 modelica_metatype _tmpResult = NULL((void*)0);
181 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
182 MMC_SO()mmc_check_stackoverflow(threadData);
183 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
184 // _calcTimes has no default value.
185 // _tmpResult has no default value.
186#line 109 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
187 _tmpResult = omc_HpcOmBenchmarkExt_readCalcTimesFromXml(threadData, _fileName);
188#line 188 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
189
190#line 110 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
191 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
192#line 110 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
193 _calcTimes = omc_HpcOmBenchmark_expandCalcTimes(threadData, _tmpResult, tmpMeta[0]);
194#line 194 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
195 _return: OMC_LABEL_UNUSED__attribute__((unused))
196 return _calcTimes;
197}
198
199DLLExport
200modelica_metatype omc_HpcOmBenchmark_readCalcTimesFromFile(threadData_t *threadData, modelica_string _iFileNamePrefix)
201{
202 modelica_metatype _calcTimes = NULL((void*)0);
203 modelica_string _fullFileName = NULL((void*)0);
204 modelica_metatype _tmpCalcTimes = NULL((void*)0);
205 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
206 MMC_SO()mmc_check_stackoverflow(threadData);
207 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
208 // _calcTimes has no default value.
209 // _fullFileName has no default value.
210 // _tmpCalcTimes has no default value.
211#line 211 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
212 { /* matchcontinue expression */
213 {
214 volatile mmc_switch_type tmp3;
215 int tmp4;
216 tmp3 = 0;
217 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
218 tmp2_top:
219 threadData->mmc_jumper = &new_mmc_jumper;
220 for (; tmp3 < 3; tmp3++) {
221 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
222 case 0: {
223 /* Pattern matching succeeded */
224#line 80 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
225 tmpMeta[1] = stringAppend(_iFileNamePrefix,_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
226#line 80 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
227 _fullFileName = tmpMeta[1];
228#line 228 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
229
230#line 81 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
231 /* Pattern-matching assignment */
232#line 81 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
233 tmpMeta[1] = omc_System_getFileModificationTime(threadData, _fullFileName);
234#line 81 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
235 if (optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) goto goto_1;
236#line 81 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
237 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
238#line 238 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
239
240#line 83 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
241 fputs(MMC_STRINGDATA(_OMC_LIT2)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT2).header) + 3))) - 3)))->data)
,stdoutstdout);
242#line 242 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
243#line 84 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
244 tmpMeta[0] = omc_HpcOmBenchmark_readCalcTimesFromJson(threadData, _fullFileName);
245#line 245 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
246 goto tmp2_done;
247 }
248 case 1: {
249 /* Pattern matching succeeded */
250#line 88 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
251 tmpMeta[1] = stringAppend(_iFileNamePrefix,_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
252#line 88 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
253 _fullFileName = tmpMeta[1];
254#line 254 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
255
256#line 89 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
257 /* Pattern-matching assignment */
258#line 89 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
259 tmpMeta[1] = omc_System_getFileModificationTime(threadData, _fullFileName);
260#line 89 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
261 if (optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) goto goto_1;
262#line 89 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
263 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
264#line 264 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
265#line 91 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
266 tmpMeta[0] = omc_HpcOmBenchmark_readCalcTimesFromXml(threadData, _fullFileName);
267#line 267 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
268 goto tmp2_done;
269 }
270 case 2: {
271 /* Pattern matching succeeded */
272#line 95 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
273 fputs(MMC_STRINGDATA(_OMC_LIT4)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT4).header) + 3))) - 3)))->data)
,stdoutstdout);
274#line 274 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
275#line 96 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
276 goto goto_1;
277#line 277 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
278 goto tmp2_done;
279 }
280 }
281 goto tmp2_end;
282 tmp2_end: ;
283 }
284 goto goto_1;
285 tmp2_done:
286 (void)tmp3;
287 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
288 goto tmp2_done2;
289 goto_1:;
290 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
291 if (++tmp3 < 3) {
292 goto tmp2_top;
293 }
294 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
295 tmp2_done2:;
296 }
297 }
298 _calcTimes = tmpMeta[0];
299 _return: OMC_LABEL_UNUSED__attribute__((unused))
300 return _calcTimes;
301}
302
303DLLExport
304modelica_metatype omc_HpcOmBenchmark_benchSystem(threadData_t *threadData)
305{
306 modelica_metatype _oTime = NULL((void*)0);
307 modelica_integer _comCostM;
308 modelica_integer _comCostN;
309 modelica_integer _opCostM;
310 modelica_integer _opCostN;
311 modelica_metatype _opCosts = NULL((void*)0);
312 modelica_metatype _comCosts = NULL((void*)0);
313 modelica_string _s1 = NULL((void*)0);
314 modelica_string _s2 = NULL((void*)0);
315 modelica_boolean tmp1;
316 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
317 MMC_SO()mmc_check_stackoverflow(threadData);
318 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
319 // _oTime has no default value.
320 // _comCostM has no default value.
321 // _comCostN has no default value.
322 // _opCostM has no default value.
323 // _opCostN has no default value.
324 // _opCosts has no default value.
325 // _comCosts has no default value.
326 // _s1 has no default value.
327 // _s2 has no default value.
328#line 50 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
329 _opCosts = omc_HpcOmBenchmarkExt_requiredTimeForOp(threadData);
330#line 330 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
331
332#line 51 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
333 /* Pattern-matching assignment */
334#line 51 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
335 tmp1 = (listLength(_opCosts) == ((modelica_integer) 2));
336#line 51 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
337 if (1 != tmp1) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
338#line 338 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
339
340#line 52 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
341 _opCostM = mmc_unbox_integer(listGet(_opCosts, ((modelica_integer) 1)))(((mmc_sint_t) (boxptr_listGet(threadData,_opCosts,mmc_mk_icon
(((modelica_integer) 1))))) >> 1)
;
342#line 342 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
343
344#line 53 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
345 _opCostN = mmc_unbox_integer(listGet(_opCosts, ((modelica_integer) 2)))(((mmc_sint_t) (boxptr_listGet(threadData,_opCosts,mmc_mk_icon
(((modelica_integer) 2))))) >> 1)
;
346#line 346 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
347
348#line 54 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
349 _s1 = intString(_opCostM);
350#line 350 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
351
352#line 55 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
353 _s2 = intString(_opCostN);
354#line 354 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
355
356#line 58 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
357 _comCosts = omc_HpcOmBenchmarkExt_requiredTimeForComm(threadData);
358#line 358 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
359
360#line 59 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
361 _comCostM = mmc_unbox_integer(listGet(_comCosts, ((modelica_integer) 1)))(((mmc_sint_t) (boxptr_listGet(threadData,_comCosts,mmc_mk_icon
(((modelica_integer) 1))))) >> 1)
;
362#line 362 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
363
364#line 60 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
365 _comCostN = mmc_unbox_integer(listGet(_comCosts, ((modelica_integer) 2)))(((mmc_sint_t) (boxptr_listGet(threadData,_comCosts,mmc_mk_icon
(((modelica_integer) 2))))) >> 1)
;
366#line 366 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
367
368#line 61 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
369 _s1 = intString(_comCostM);
370#line 370 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
371
372#line 62 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
373 _s2 = intString(_comCostN);
Value stored to '_s2' is never read
374#line 374 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
375
376#line 65 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
377 tmpMeta[0] = mmc_mk_box2(0, mmc_mk_integermmc_mk_icon(_opCostM), mmc_mk_integermmc_mk_icon(_opCostN));
378#line 65 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
379 tmpMeta[1] = mmc_mk_box2(0, mmc_mk_integermmc_mk_icon(_comCostM), mmc_mk_integermmc_mk_icon(_comCostN));
380#line 65 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
381 tmpMeta[2] = mmc_mk_box2(0, tmpMeta[0], tmpMeta[1]);
382#line 65 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/BackEnd/HpcOmBenchmark.mo"
383 _oTime = tmpMeta[2];
384#line 384 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/HpcOmBenchmark.c"
385 _return: OMC_LABEL_UNUSED__attribute__((unused))
386 return _oTime;
387}
388