Bug Summary

File:OMCompiler/Compiler/boot/build/Util.c
Warning:line 483, column 5
Value stored to 'tmp4_2' 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/Util.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/Util.c" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "Util.h"
8static const MMC_DEFREALLIT(_OMC_LIT_STRUCT0,0.0)struct mmc_real_lit _OMC_LIT_STRUCT0 = {0,(((8/8) << 10
) + 9),0.0}
;
9#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
10#define _OMC_LIT1_data"Time all: " "Time all: "
11static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,10,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "Time all: "
}
;
12#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
13#define _OMC_LIT2_data"\n" "\n"
14static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,1,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\n"
}
;
15#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
16#define _OMC_LIT3_data"Time t1: " "Time t1: "
17static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,9,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "Time t1: "
}
;
18#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
19#define _OMC_LIT4_data"Time t2: " "Time t2: "
20static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,9,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "Time t2: "
}
;
21#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
22#define _OMC_LIT5_data"Time all-t1-t2: " "Time all-t1-t2: "
23static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,16,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "Time all-t1-t2: "
}
;
24#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
25#define _OMC_LIT6_data"" ""
26static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,0,_OMC_LIT6_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT6
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
27#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
28#define _OMC_LIT7_data", " ", "
29static 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)), ", "
}
;
30#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
31#define _OMC_LIT8_data"/" "/"
32static 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)), "/"
}
;
33#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
34#define _OMC_LIT9_data"$tmpVar" "$tmpVar"
35static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT9,7,_OMC_LIT9_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT9
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "$tmpVar"
}
;
36#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
37#define _OMC_LIT10_data"^[_A-Za-z][_A-Za-z0-9]*$" "^[_A-Za-z][_A-Za-z0-9]*$"
38static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT10,24,_OMC_LIT10_data)struct { mmc_uint_t header; const char data[(24)+1]; } _OMC_LIT_STRUCT10
= { ((((mmc_uint_t)24)<<(3))+((1<<(3+3))+5)), "^[_A-Za-z][_A-Za-z0-9]*$"
}
;
39#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
40#define _OMC_LIT11_data"true" "true"
41static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT11,4,_OMC_LIT11_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT11
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "true"
}
;
42#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
43#define _OMC_LIT12_data"false" "false"
44static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT12,5,_OMC_LIT12_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT12
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "false"
}
;
45#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
46#define _OMC_LIT13_data"yes" "yes"
47static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT13,3,_OMC_LIT13_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT13
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "yes"
}
;
48#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
49#define _OMC_LIT14_data"no" "no"
50static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT14,2,_OMC_LIT14_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT14
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "no"
}
;
51#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
52#define _OMC_LIT15_data"&" "&"
53static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT15,1,_OMC_LIT15_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT15
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "&"
}
;
54#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
55#define _OMC_LIT16_data"&amp;" "&amp;"
56static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT16,5,_OMC_LIT16_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT16
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "&amp;"
}
;
57#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
58#define _OMC_LIT17_data"<" "<"
59static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT17,1,_OMC_LIT17_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT17
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "<"
}
;
60#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
61#define _OMC_LIT18_data"&lt;" "&lt;"
62static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT18,4,_OMC_LIT18_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT18
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "&lt;"
}
;
63#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
64#define _OMC_LIT19_data">" ">"
65static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT19,1,_OMC_LIT19_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT19
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), ">"
}
;
66#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
67#define _OMC_LIT20_data"&gt;" "&gt;"
68static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT20,4,_OMC_LIT20_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT20
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "&gt;"
}
;
69#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
70#define _OMC_LIT21_data"\"" "\""
71static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT21,1,_OMC_LIT21_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT21
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\""
}
;
72#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
73#define _OMC_LIT22_data"&quot;" "&quot;"
74static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT22,6,_OMC_LIT22_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT22
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "&quot;"
}
;
75#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
76#define _OMC_LIT23_data"$" "$"
77static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,1,_OMC_LIT23_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT23
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "$"
}
;
78#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
79#define _OMC_LIT24_data"\"\"" "\"\""
80static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT24,2,_OMC_LIT24_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT24
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "\"\""
}
;
81#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
82#define _OMC_LIT25_data"\\\"" "\\\""
83static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT25,2,_OMC_LIT25_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT25
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "\\\""
}
;
84#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
85#define _OMC_LIT26_data"\\\\" "\\\\"
86static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT26,2,_OMC_LIT26_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT26
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "\\\\"
}
;
87#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
88#define _OMC_LIT27_data"\\" "\\"
89static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT27,1,_OMC_LIT27_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT27
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\\"
}
;
90#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
91#define _OMC_LIT28_data"# Cannot write to file: " "# Cannot write to file: "
92static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT28,24,_OMC_LIT28_data)struct { mmc_uint_t header; const char data[(24)+1]; } _OMC_LIT_STRUCT28
= { ((((mmc_uint_t)24)<<(3))+((1<<(3+3))+5)), "# Cannot write to file: "
}
;
93#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
94#define _OMC_LIT29_data"." "."
95static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,1,_OMC_LIT29_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT29
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "."
}
;
96#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
97#define _OMC_LIT30_data"- stringDelimitListAndSeparate2 failed\n" "- stringDelimitListAndSeparate2 failed\n"
98static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT30,39,_OMC_LIT30_data)struct { mmc_uint_t header; const char data[(39)+1]; } _OMC_LIT_STRUCT30
= { ((((mmc_uint_t)39)<<(3))+((1<<(3+3))+5)), "- stringDelimitListAndSeparate2 failed\n"
}
;
99#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
100#define _OMC_LIT31_data"linux" "linux"
101static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT31,5,_OMC_LIT31_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT31
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "linux"
}
;
102#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
103#define _OMC_LIT32_data"OSX" "OSX"
104static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT32,3,_OMC_LIT32_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT32
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "OSX"
}
;
105#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
106#define _OMC_LIT33_data"./" "./"
107static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT33,2,_OMC_LIT33_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT33
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "./"
}
;
108#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
109#include "util/modelica.h"
110
111#include "Util_includes.h"
112
113
114/* default, do not make protected functions static */
115#if !defined(PROTECTED_FUNCTION_STATIC)
116#define PROTECTED_FUNCTION_STATIC
117#endif
118PROTECTED_FUNCTION_STATIC modelica_boolean omc_Util_createDirectoryTreeH(threadData_t *threadData, modelica_string _inString, modelica_string _parentDir, modelica_boolean _parentDirExists);
119PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Util_createDirectoryTreeH(threadData_t *threadData, modelica_metatype _inString, modelica_metatype _parentDir, modelica_metatype _parentDirExists);
120static const MMC_DEFSTRUCTLIT(boxvar_lit_Util_createDirectoryTreeH,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Util_createDirectoryTreeH
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Util_createDirectoryTreeH,0}};
121#define boxvar_Util_createDirectoryTreeH((void*)((char*)(&(boxvar_lit_Util_createDirectoryTreeH).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Util_createDirectoryTreeH)((void*)((char*)(&(boxvar_lit_Util_createDirectoryTreeH).
header) + 3))
122PROTECTED_FUNCTION_STATIC modelica_boolean omc_Util_nextPrime__isPrime(threadData_t *threadData, modelica_integer _inN);
123PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Util_nextPrime__isPrime(threadData_t *threadData, modelica_metatype _inN);
124static const MMC_DEFSTRUCTLIT(boxvar_lit_Util_nextPrime__isPrime,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Util_nextPrime__isPrime
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Util_nextPrime__isPrime,0}};
125#define boxvar_Util_nextPrime__isPrime((void*)((char*)(&(boxvar_lit_Util_nextPrime__isPrime).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Util_nextPrime__isPrime)((void*)((char*)(&(boxvar_lit_Util_nextPrime__isPrime).header
) + 3))
126PROTECTED_FUNCTION_STATIC modelica_integer omc_Util_nextPrime2(threadData_t *threadData, modelica_integer _inN);
127PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Util_nextPrime2(threadData_t *threadData, modelica_metatype _inN);
128static const MMC_DEFSTRUCTLIT(boxvar_lit_Util_nextPrime2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Util_nextPrime2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Util_nextPrime2,0}};
129#define boxvar_Util_nextPrime2((void*)((char*)(&(boxvar_lit_Util_nextPrime2).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Util_nextPrime2)((void*)((char*)(&(boxvar_lit_Util_nextPrime2).header) + 3
))
130PROTECTED_FUNCTION_STATIC modelica_boolean omc_Util_stringBool2(threadData_t *threadData, modelica_string _inString);
131PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Util_stringBool2(threadData_t *threadData, modelica_metatype _inString);
132static const MMC_DEFSTRUCTLIT(boxvar_lit_Util_stringBool2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Util_stringBool2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Util_stringBool2,0}};
133#define boxvar_Util_stringBool2((void*)((char*)(&(boxvar_lit_Util_stringBool2).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Util_stringBool2)((void*)((char*)(&(boxvar_lit_Util_stringBool2).header) +
3))
134PROTECTED_FUNCTION_STATIC void omc_Util_stringDelimitListAndSeparate2(threadData_t *threadData, modelica_metatype _inStringLst1, modelica_string _inString2, modelica_string _inString3, modelica_integer _inInteger4, modelica_integer _inInteger5);
135PROTECTED_FUNCTION_STATIC void boxptr_Util_stringDelimitListAndSeparate2(threadData_t *threadData, modelica_metatype _inStringLst1, modelica_metatype _inString2, modelica_metatype _inString3, modelica_metatype _inInteger4, modelica_metatype _inInteger5);
136static const MMC_DEFSTRUCTLIT(boxvar_lit_Util_stringDelimitListAndSeparate2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Util_stringDelimitListAndSeparate2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Util_stringDelimitListAndSeparate2,0}};
137#define boxvar_Util_stringDelimitListAndSeparate2((void*)((char*)(&(boxvar_lit_Util_stringDelimitListAndSeparate2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Util_stringDelimitListAndSeparate2)((void*)((char*)(&(boxvar_lit_Util_stringDelimitListAndSeparate2
).header) + 3))
138
139DLLExport
140modelica_metatype omc_Util_applyTuple31(threadData_t *threadData, modelica_metatype _inTuple, modelica_fnptr _func)
141{
142 modelica_metatype _outTuple = NULL((void*)0);
143 modelica_metatype _t1 = NULL((void*)0);
144 modelica_metatype _t1_new = NULL((void*)0);
145 modelica_metatype _t2 = NULL((void*)0);
146 modelica_metatype _t3 = NULL((void*)0);
147 modelica_boolean tmp1;
148 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
149 MMC_SO()mmc_check_stackoverflow(threadData);
150 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
151 // _outTuple has no default value.
152 // _t1 has no default value.
153 // _t1_new has no default value.
154 // _t2 has no default value.
155 // _t3 has no default value.
156#line 1623 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
157 /* Pattern-matching assignment */
158#line 1623 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
159 tmpMeta[0] = _inTuple;
160#line 1623 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
161 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
162#line 1623 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
163 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
164#line 1623 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
165 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
166#line 1623 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
167 _t1 = tmpMeta[1];
168#line 1623 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
169 _t2 = tmpMeta[2];
170#line 1623 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
171 _t3 = tmpMeta[3];
172#line 172 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
173
174#line 1624 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
175 _t1_new = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(2)))))
), _t1) : ((modelica_metatype(*)(threadData_t*, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(1)))))
)) (threadData, _t1);
176#line 176 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
177
178#line 1625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
179 tmp1 = (modelica_boolean)referenceEq(_t1, _t1_new)((_t1) == (_t1_new));
180#line 1625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
181 if(tmp1)
182#line 1625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
183 {
184#line 1625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
185 tmpMeta[1] = _inTuple;
186#line 1625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
187 }
188#line 1625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
189 else
190#line 1625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
191 {
192#line 1625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
193 tmpMeta[0] = mmc_mk_box3(0, _t1_new, _t2, _t3);
194#line 1625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
195 tmpMeta[1] = tmpMeta[0];
196#line 1625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
197 }
198#line 1625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
199 _outTuple = tmpMeta[1];
200#line 200 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
201 _return: OMC_LABEL_UNUSED__attribute__((unused))
202 return _outTuple;
203}
204
205DLLExport
206modelica_real omc_Util_profilertock2(threadData_t *threadData)
207{
208 modelica_real _t;
209 MMC_SO()mmc_check_stackoverflow(threadData);
210 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
211 // _t has no default value.
212#line 1607 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
213 _t = omc_System_realtimeTock(threadData, ((modelica_integer) 21));
214#line 214 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
215 _return: OMC_LABEL_UNUSED__attribute__((unused))
216 return _t;
217}
218modelica_metatype boxptr_Util_profilertock2(threadData_t *threadData)
219{
220 modelica_real _t;
221 modelica_metatype out_t;
222 _t = omc_Util_profilertock2(threadData);
223 out_t = mmc_mk_rcon(_t);
224 return out_t;
225}
226
227DLLExport
228modelica_real omc_Util_profilertock1(threadData_t *threadData)
229{
230 modelica_real _t;
231 MMC_SO()mmc_check_stackoverflow(threadData);
232 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
233 // _t has no default value.
234#line 1601 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
235 _t = omc_System_realtimeTock(threadData, ((modelica_integer) 20));
236#line 236 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
237 _return: OMC_LABEL_UNUSED__attribute__((unused))
238 return _t;
239}
240modelica_metatype boxptr_Util_profilertock1(threadData_t *threadData)
241{
242 modelica_real _t;
243 modelica_metatype out_t;
244 _t = omc_Util_profilertock1(threadData);
245 out_t = mmc_mk_rcon(_t);
246 return out_t;
247}
248
249DLLExport
250void omc_Util_profilerreset2(threadData_t *threadData)
251{
252 MMC_SO()mmc_check_stackoverflow(threadData);
253 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
254#line 1595 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
255 setGlobalRoot(((modelica_integer) 15), _OMC_LIT0)boxptr_setGlobalRoot(threadData,mmc_mk_icon(((modelica_integer
) 15)),((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
)
;
256#line 256 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
257 _return: OMC_LABEL_UNUSED__attribute__((unused))
258 return;
259}
260
261DLLExport
262void omc_Util_profilerreset1(threadData_t *threadData)
263{
264 MMC_SO()mmc_check_stackoverflow(threadData);
265 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
266#line 1590 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
267 setGlobalRoot(((modelica_integer) 14), _OMC_LIT0)boxptr_setGlobalRoot(threadData,mmc_mk_icon(((modelica_integer
) 14)),((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
)
;
268#line 268 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
269 _return: OMC_LABEL_UNUSED__attribute__((unused))
270 return;
271}
272
273DLLExport
274void omc_Util_profilerstop2(threadData_t *threadData)
275{
276 modelica_real _t;
277 MMC_SO()mmc_check_stackoverflow(threadData);
278 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
279 // _t has no default value.
280#line 1583 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
281 _t = omc_System_realtimeTock(threadData, ((modelica_integer) 21));
282#line 282 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
283
284#line 1584 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
285 setGlobalRoot(((modelica_integer) 15), mmc_mk_real(mmc_unbox_real(getGlobalRoot(((modelica_integer) 15))) + _t))boxptr_setGlobalRoot(threadData,mmc_mk_icon(((modelica_integer
) 15)),mmc_mk_rcon(mmc_prim_get_real(nobox_getGlobalRoot(threadData
,((modelica_integer) 15))) + _t))
;
286#line 286 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
287 _return: OMC_LABEL_UNUSED__attribute__((unused))
288 return;
289}
290
291DLLExport
292void omc_Util_profilerstop1(threadData_t *threadData)
293{
294 modelica_real _t;
295 MMC_SO()mmc_check_stackoverflow(threadData);
296 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
297 // _t has no default value.
298#line 1574 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
299 _t = omc_System_realtimeTock(threadData, ((modelica_integer) 20));
300#line 300 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
301
302#line 1575 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
303 setGlobalRoot(((modelica_integer) 14), mmc_mk_real(mmc_unbox_real(getGlobalRoot(((modelica_integer) 14))) + _t))boxptr_setGlobalRoot(threadData,mmc_mk_icon(((modelica_integer
) 14)),mmc_mk_rcon(mmc_prim_get_real(nobox_getGlobalRoot(threadData
,((modelica_integer) 14))) + _t))
;
304#line 304 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
305 _return: OMC_LABEL_UNUSED__attribute__((unused))
306 return;
307}
308
309DLLExport
310void omc_Util_profilerstart2(threadData_t *threadData)
311{
312 MMC_SO()mmc_check_stackoverflow(threadData);
313 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
314#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
315 omc_System_realtimeTick(threadData, ((modelica_integer) 21));
316#line 316 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
317 _return: OMC_LABEL_UNUSED__attribute__((unused))
318 return;
319}
320
321DLLExport
322void omc_Util_profilerstart1(threadData_t *threadData)
323{
324 MMC_SO()mmc_check_stackoverflow(threadData);
325 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
326#line 1562 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
327 omc_System_realtimeTick(threadData, ((modelica_integer) 20));
328#line 328 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
329 _return: OMC_LABEL_UNUSED__attribute__((unused))
330 return;
331}
332
333DLLExport
334modelica_real omc_Util_profilertime2(threadData_t *threadData)
335{
336 modelica_real _t2;
337 MMC_SO()mmc_check_stackoverflow(threadData);
338 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
339 // _t2 has no default value.
340#line 1557 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
341 _t2 = mmc_unbox_real(getGlobalRoot(((modelica_integer) 15)))mmc_prim_get_real(nobox_getGlobalRoot(threadData,((modelica_integer
) 15)))
;
342#line 342 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
343 _return: OMC_LABEL_UNUSED__attribute__((unused))
344 return _t2;
345}
346modelica_metatype boxptr_Util_profilertime2(threadData_t *threadData)
347{
348 modelica_real _t2;
349 modelica_metatype out_t2;
350 _t2 = omc_Util_profilertime2(threadData);
351 out_t2 = mmc_mk_rcon(_t2);
352 return out_t2;
353}
354
355DLLExport
356modelica_real omc_Util_profilertime1(threadData_t *threadData)
357{
358 modelica_real _t1;
359 MMC_SO()mmc_check_stackoverflow(threadData);
360 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
361 // _t1 has no default value.
362#line 1551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
363 _t1 = mmc_unbox_real(getGlobalRoot(((modelica_integer) 14)))mmc_prim_get_real(nobox_getGlobalRoot(threadData,((modelica_integer
) 14)))
;
364#line 364 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
365 _return: OMC_LABEL_UNUSED__attribute__((unused))
366 return _t1;
367}
368modelica_metatype boxptr_Util_profilertime1(threadData_t *threadData)
369{
370 modelica_real _t1;
371 modelica_metatype out_t1;
372 _t1 = omc_Util_profilertime1(threadData);
373 out_t1 = mmc_mk_rcon(_t1);
374 return out_t1;
375}
376
377DLLExport
378void omc_Util_profilerresults(threadData_t *threadData)
379{
380 modelica_real _tg;
381 modelica_real _t1;
382 modelica_real _t2;
383 MMC_SO()mmc_check_stackoverflow(threadData);
384 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
385 // _tg has no default value.
386 // _t1 has no default value.
387 // _t2 has no default value.
388#line 1539 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
389 _tg = omc_System_realtimeTock(threadData, ((modelica_integer) 19));
390#line 390 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
391
392#line 1540 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
393 _t1 = omc_Util_profilertime1(threadData);
394#line 394 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
395
396#line 1541 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
397 _t2 = omc_Util_profilertime2(threadData);
398#line 398 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
399
400#line 1542 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
401 fputs(MMC_STRINGDATA(_OMC_LIT1)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT1).header) + 3))) - 3)))->data)
,stdoutstdout);
402#line 402 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
403
404#line 1542 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
405 fputs(MMC_STRINGDATA(realString(_tg))(((struct mmc_string*)((void*)((char*)(realString(_tg)) - 3))
)->data)
,stdoutstdout);
406#line 406 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
407
408#line 1542 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
409 fputs(MMC_STRINGDATA(_OMC_LIT2)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT2).header) + 3))) - 3)))->data)
,stdoutstdout);
410#line 410 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
411
412#line 1543 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
413 fputs(MMC_STRINGDATA(_OMC_LIT3)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT3).header) + 3))) - 3)))->data)
,stdoutstdout);
414#line 414 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
415
416#line 1543 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
417 fputs(MMC_STRINGDATA(realString(_t1))(((struct mmc_string*)((void*)((char*)(realString(_t1)) - 3))
)->data)
,stdoutstdout);
418#line 418 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
419
420#line 1543 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
421 fputs(MMC_STRINGDATA(_OMC_LIT2)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT2).header) + 3))) - 3)))->data)
,stdoutstdout);
422#line 422 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
423
424#line 1544 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
425 fputs(MMC_STRINGDATA(_OMC_LIT4)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT4).header) + 3))) - 3)))->data)
,stdoutstdout);
426#line 426 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
427
428#line 1544 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
429 fputs(MMC_STRINGDATA(realString(_t2))(((struct mmc_string*)((void*)((char*)(realString(_t2)) - 3))
)->data)
,stdoutstdout);
430#line 430 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
431
432#line 1544 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
433 fputs(MMC_STRINGDATA(_OMC_LIT2)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT2).header) + 3))) - 3)))->data)
,stdoutstdout);
434#line 434 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
435
436#line 1545 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
437 fputs(MMC_STRINGDATA(_OMC_LIT5)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT5).header) + 3))) - 3)))->data)
,stdoutstdout);
438#line 438 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
439
440#line 1545 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
441 fputs(MMC_STRINGDATA(realString(_tg + (-_t1) - _t2))(((struct mmc_string*)((void*)((char*)(realString(_tg + (-_t1
) - _t2)) - 3)))->data)
,stdoutstdout);
442#line 442 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
443
444#line 1545 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
445 fputs(MMC_STRINGDATA(_OMC_LIT2)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT2).header) + 3))) - 3)))->data)
,stdoutstdout);
446#line 446 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
447 _return: OMC_LABEL_UNUSED__attribute__((unused))
448 return;
449}
450
451DLLExport
452void omc_Util_profilerinit(threadData_t *threadData)
453{
454 MMC_SO()mmc_check_stackoverflow(threadData);
455 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
456#line 1530 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
457 setGlobalRoot(((modelica_integer) 14), _OMC_LIT0)boxptr_setGlobalRoot(threadData,mmc_mk_icon(((modelica_integer
) 14)),((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
)
;
458#line 458 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
459
460#line 1531 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
461 setGlobalRoot(((modelica_integer) 15), _OMC_LIT0)boxptr_setGlobalRoot(threadData,mmc_mk_icon(((modelica_integer
) 15)),((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
)
;
462#line 462 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
463
464#line 1532 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
465 omc_System_realtimeTick(threadData, ((modelica_integer) 19));
466#line 466 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
467 _return: OMC_LABEL_UNUSED__attribute__((unused))
468 return;
469}
470
471DLLExport
472modelica_boolean omc_Util_sourceInfoIsEqual(threadData_t *threadData, modelica_metatype _inInfo1, modelica_metatype _inInfo2)
473{
474 modelica_boolean _outIsEqual;
475 modelica_boolean tmp1 = 0;
476 MMC_SO()mmc_check_stackoverflow(threadData);
477 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
478 // _outIsEqual has no default value.
479#line 479 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
480 { /* match expression */
481 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
482 tmp4_1 = _inInfo1;
483 tmp4_2 = _inInfo2;
Value stored to 'tmp4_2' is never read
484 {
485 volatile mmc_switch_type tmp4;
486 int tmp5;
487 tmp4 = 0;
488 for (; tmp4 < 2; tmp4++) {
489 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
490 case 0: {
491
492 /* Pattern matching succeeded */
493#line 1512 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
494 tmp1 = ((((((stringEqual((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inInfo1), 2))), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inInfo2), 2))))((((((*(mmc_uint_t*)((void*)((char*)(((*(void**)(((void*)((void
**)(((void*)((char*)(_inInfo1) - 3))) + (2))))))) - 3)))) >>
(3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(((*(void**
)(((void*)((void**)(((void*)((char*)(_inInfo2) - 3))) + (2)))
)))) - 3)))) >> (3)) - 8)) && !mmc_stringCompare
(((*(void**)(((void*)((void**)(((void*)((char*)(_inInfo1) - 3
))) + (2)))))),((*(void**)(((void*)((void**)(((void*)((char*)
(_inInfo2) - 3))) + (2))))))))
) && ((!mmc_unbox_boolean((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inInfo1), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_inInfo1) - 3))) + (3)))))))) >> 1)
&& !mmc_unbox_boolean((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inInfo2), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_inInfo2) - 3))) + (3)))))))) >> 1)
) || (mmc_unbox_boolean((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inInfo1), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_inInfo1) - 3))) + (3)))))))) >> 1)
&& mmc_unbox_boolean((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inInfo2), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_inInfo2) - 3))) + (3)))))))) >> 1)
))) && (mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inInfo1), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_inInfo1) - 3))) + (4)))))))) >> 1)
== mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inInfo2), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_inInfo2) - 3))) + (4)))))))) >> 1)
)) && (mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inInfo1), 5))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_inInfo1) - 3))) + (5)))))))) >> 1)
== mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inInfo2), 5))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_inInfo2) - 3))) + (5)))))))) >> 1)
)) && (mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inInfo1), 6))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_inInfo1) - 3))) + (6)))))))) >> 1)
== mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inInfo2), 6))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_inInfo2) - 3))) + (6)))))))) >> 1)
)) && (mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inInfo1), 7))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_inInfo1) - 3))) + (7)))))))) >> 1)
== mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inInfo2), 7))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_inInfo2) - 3))) + (7)))))))) >> 1)
));
495#line 495 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
496 goto tmp3_done;
497 }
498 case 1: {
499
500 /* Pattern matching succeeded */
501#line 1519 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
502 tmp1 = 0;
503#line 503 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
504 goto tmp3_done;
505 }
506 }
507 goto tmp3_end;
508 tmp3_end: ;
509 }
510 goto goto_2;
511 goto_2:;
512 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
513 goto tmp3_done;
514 tmp3_done:;
515 }
516 }
517 _outIsEqual = tmp1;
518 _return: OMC_LABEL_UNUSED__attribute__((unused))
519 return _outIsEqual;
520}
521modelica_metatype boxptr_Util_sourceInfoIsEqual(threadData_t *threadData, modelica_metatype _inInfo1, modelica_metatype _inInfo2)
522{
523 modelica_boolean _outIsEqual;
524 modelica_metatype out_outIsEqual;
525 _outIsEqual = omc_Util_sourceInfoIsEqual(threadData, _inInfo1, _inInfo2);
526 out_outIsEqual = mmc_mk_icon(_outIsEqual);
527 return out_outIsEqual;
528}
529
530DLLExport
531modelica_boolean omc_Util_sourceInfoIsEmpty(threadData_t *threadData, modelica_metatype _inInfo)
532{
533 modelica_boolean _outIsEmpty;
534 modelica_boolean tmp1 = 0;
535 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
536 MMC_SO()mmc_check_stackoverflow(threadData);
537 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
538 // _outIsEmpty has no default value.
539#line 539 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
540 { /* match expression */
541 modelica_metatype tmp4_1;
542 tmp4_1 = _inInfo;
543 {
544 volatile mmc_switch_type tmp4;
545 int tmp5;
546 tmp4 = 0;
547 for (; tmp4 < 2; tmp4++) {
548 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
549 case 0: {
550 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
551 if (0 != MMC_STRLEN(tmpMeta[0])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT6)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT6).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[0])(((struct mmc_string*)((void*)((char*)(tmpMeta[0]) - 3)))->
data)
) != 0) goto tmp3_end;
552
553 /* Pattern matching succeeded */
554#line 1499 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
555 tmp1 = 1;
556#line 556 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
557 goto tmp3_done;
558 }
559 case 1: {
560
561 /* Pattern matching succeeded */
562#line 1500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
563 tmp1 = 0;
564#line 564 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
565 goto tmp3_done;
566 }
567 }
568 goto tmp3_end;
569 tmp3_end: ;
570 }
571 goto goto_2;
572 goto_2:;
573 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
574 goto tmp3_done;
575 tmp3_done:;
576 }
577 }
578 _outIsEmpty = tmp1;
579 _return: OMC_LABEL_UNUSED__attribute__((unused))
580 return _outIsEmpty;
581}
582modelica_metatype boxptr_Util_sourceInfoIsEmpty(threadData_t *threadData, modelica_metatype _inInfo)
583{
584 modelica_boolean _outIsEmpty;
585 modelica_metatype out_outIsEmpty;
586 _outIsEmpty = omc_Util_sourceInfoIsEmpty(threadData, _inInfo);
587 out_outIsEmpty = mmc_mk_icon(_outIsEmpty);
588 return out_outIsEmpty;
589}
590
591DLLExport
592modelica_string omc_Util_intLstString(threadData_t *threadData, modelica_metatype _lst)
593{
594 modelica_string _s = NULL((void*)0);
595 MMC_SO()mmc_check_stackoverflow(threadData);
596 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
597 // _s has no default value.
598#line 1490 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
599 _s = stringDelimitList(omc_List_map(threadData, _lst, boxvar_intString((void*)((char*)(&(boxvar_lit_intString).header) + 3))), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
600#line 600 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
601 _return: OMC_LABEL_UNUSED__attribute__((unused))
602 return _s;
603}
604
605DLLExport
606modelica_string omc_Util_absoluteOrRelative(threadData_t *threadData, modelica_string _inFileName)
607{
608 modelica_string _outFileName = NULL((void*)0);
609 modelica_string _pwd = NULL((void*)0);
610 modelica_string _pd = NULL((void*)0);
611 modelica_boolean tmp1;
612 modelica_string tmp2;
613 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
614 MMC_SO()mmc_check_stackoverflow(threadData);
615 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
616 // _outFileName has no default value.
617 // _pwd has no default value.
618 // _pd has no default value.
619#line 1479 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
620 _pwd = omc_System_pwd(threadData);
621#line 621 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
622
623#line 1480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
624 _pd = _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3));
625#line 625 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
626
627#line 1481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
628 tmp1 = (modelica_boolean)omc_System_regularFileExists(threadData, _inFileName);
629#line 1481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
630 if(tmp1)
631#line 1481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
632 {
633#line 1481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
634 tmp2 = _inFileName;
635#line 1481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
636 }
637#line 1481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
638 else
639#line 1481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
640 {
641#line 1481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
642 tmpMeta[0] = mmc_mk_cons(_pwd, mmc_mk_cons(_pd, mmc_mk_cons(_inFileName, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)))));
643#line 1481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
644 tmp2 = stringAppendList(tmpMeta[0]);
645#line 1481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
646 }
647#line 1481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
648 _outFileName = tmp2;
649#line 649 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
650 _return: OMC_LABEL_UNUSED__attribute__((unused))
651 return _outFileName;
652}
653
654DLLExport
655modelica_boolean omc_Util_anyReturnTrue(threadData_t *threadData, modelica_metatype _a)
656{
657 modelica_boolean _b;
658 MMC_SO()mmc_check_stackoverflow(threadData);
659 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
660 _b = 1;
661 _return: OMC_LABEL_UNUSED__attribute__((unused))
662 return _b;
663}
664modelica_metatype boxptr_Util_anyReturnTrue(threadData_t *threadData, modelica_metatype _a)
665{
666 modelica_boolean _b;
667 modelica_metatype out_b;
668 _b = omc_Util_anyReturnTrue(threadData, _a);
669 out_b = mmc_mk_icon(_b);
670 return out_b;
671}
672
673DLLExport
674modelica_string omc_Util_getTempVariableIndex(threadData_t *threadData)
675{
676 modelica_string _name = NULL((void*)0);
677 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
678 MMC_SO()mmc_check_stackoverflow(threadData);
679 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
680 // _name has no default value.
681#line 1463 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
682 tmpMeta[0] = stringAppend(_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)),intString(omc_System_tmpTickIndex(threadData, ((modelica_integer) 4))));
683#line 1463 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
684 _name = tmpMeta[0];
685#line 685 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
686 _return: OMC_LABEL_UNUSED__attribute__((unused))
687 return _name;
688}
689
690DLLExport
691modelica_string omc_Util_stringTrunc(threadData_t *threadData, modelica_string _str, modelica_integer _len)
692{
693 modelica_string _truncatedStr = NULL((void*)0);
694 MMC_SO()mmc_check_stackoverflow(threadData);
695 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
696 // _truncatedStr has no default value.
697#line 1457 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
698 _truncatedStr = ((stringLength(_str)(((((*(mmc_uint_t*)((void*)((char*)(_str) - 3)))) >> (3
)) - 8))
<= _len)?_str:substring(_str, ((modelica_integer) 0), _len)boxptr_substring(threadData,_str,mmc_mk_icon(((modelica_integer
) 0)),mmc_mk_icon(_len))
);
699#line 699 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
700 _return: OMC_LABEL_UNUSED__attribute__((unused))
701 return _truncatedStr;
702}
703modelica_metatype boxptr_Util_stringTrunc(threadData_t *threadData, modelica_metatype _str, modelica_metatype _len)
704{
705 modelica_integer tmp1;
706 modelica_string _truncatedStr = NULL((void*)0);
707 tmp1 = mmc_unbox_integer(_len)(((mmc_sint_t) (_len)) >> 1);
708 _truncatedStr = omc_Util_stringTrunc(threadData, _str, tmp1);
709 /* skip box _truncatedStr; String */
710 return _truncatedStr;
711}
712
713DLLExport
714modelica_boolean omc_Util_isCIdentifier(threadData_t *threadData, modelica_string _str)
715{
716 modelica_boolean _b;
717 modelica_integer _i;
718 MMC_SO()mmc_check_stackoverflow(threadData);
719 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
720 // _b has no default value.
721 // _i has no default value.
722#line 1445 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
723 _i = omc_System_regex(threadData, _str, _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)), ((modelica_integer) 0), 1, 0, NULL((void*)0));
724#line 724 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
725
726#line 1446 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
727 _b = (_i == ((modelica_integer) 1));
728#line 728 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
729 _return: OMC_LABEL_UNUSED__attribute__((unused))
730 return _b;
731}
732modelica_metatype boxptr_Util_isCIdentifier(threadData_t *threadData, modelica_metatype _str)
733{
734 modelica_boolean _b;
735 modelica_metatype out_b;
736 _b = omc_Util_isCIdentifier(threadData, _str);
737 out_b = mmc_mk_icon(_b);
738 return out_b;
739}
740
741DLLExport
742modelica_boolean omc_Util_endsWith(threadData_t *threadData, modelica_string _inString, modelica_string _inSuffix)
743{
744 modelica_boolean _outEndsWith;
745 modelica_integer _start;
746 modelica_integer _stop;
747 modelica_integer _str_len;
748 modelica_integer _suf_len;
749 MMC_SO()mmc_check_stackoverflow(threadData);
750 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
751 // _outEndsWith has no default value.
752 // _start has no default value.
753 // _stop has no default value.
754 // _str_len has no default value.
755 // _suf_len has no default value.
756#line 1429 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
757 if((stringEqual(_inString, _OMC_LIT6)((((((*(mmc_uint_t*)((void*)((char*)(_inString) - 3)))) >>
(3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(((void*)((
char*)(&(_OMC_LIT_STRUCT6).header) + 3))) - 3)))) >>
(3)) - 8)) && !mmc_stringCompare(_inString,((void*)(
(char*)(&(_OMC_LIT_STRUCT6).header) + 3))))
))
758#line 1429 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
759 {
760#line 1430 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
761 _outEndsWith = 0;
762#line 762 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
763 }
764 else
765 {
766#line 1432 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
767 _str_len = stringLength(_inString)(((((*(mmc_uint_t*)((void*)((char*)(_inString) - 3)))) >>
(3)) - 8))
;
768#line 768 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
769
770#line 1433 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
771 _suf_len = stringLength(_inSuffix)(((((*(mmc_uint_t*)((void*)((char*)(_inSuffix) - 3)))) >>
(3)) - 8))
;
772#line 772 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
773
774#line 1434 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
775 _start = ((_str_len > _suf_len)?((modelica_integer) 1) + _str_len - _suf_len:((modelica_integer) 1));
776#line 776 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
777
778#line 1435 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
779 _outEndsWith = (stringEqual(_inSuffix, substring(_inString, _start, _str_len))((((((*(mmc_uint_t*)((void*)((char*)(_inSuffix) - 3)))) >>
(3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(boxptr_substring
(threadData,_inString,mmc_mk_icon(_start),mmc_mk_icon(_str_len
))) - 3)))) >> (3)) - 8)) && !mmc_stringCompare
(_inSuffix,boxptr_substring(threadData,_inString,mmc_mk_icon(
_start),mmc_mk_icon(_str_len))))
);
780#line 780 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
781 }
782 _return: OMC_LABEL_UNUSED__attribute__((unused))
783 return _outEndsWith;
784}
785modelica_metatype boxptr_Util_endsWith(threadData_t *threadData, modelica_metatype _inString, modelica_metatype _inSuffix)
786{
787 modelica_boolean _outEndsWith;
788 modelica_metatype out_outEndsWith;
789 _outEndsWith = omc_Util_endsWith(threadData, _inString, _inSuffix);
790 out_outEndsWith = mmc_mk_icon(_outEndsWith);
791 return out_outEndsWith;
792}
793
794DLLExport
795modelica_integer omc_Util_nextPowerOf2(threadData_t *threadData, modelica_integer _i)
796{
797 modelica_integer _v;
798 MMC_SO()mmc_check_stackoverflow(threadData);
799 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
800 // _v has no default value.
801#line 1413 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
802 _v = ((modelica_integer) -1) + _i;
803#line 803 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
804
805#line 1414 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
806 _v = ((_v) | (((_v) << (((modelica_integer) 1)))));
807#line 807 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
808
809#line 1415 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
810 _v = ((_v) | (((_v) << (((modelica_integer) 2)))));
811#line 811 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
812
813#line 1416 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
814 _v = ((_v) | (((_v) << (((modelica_integer) 4)))));
815#line 815 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
816
817#line 1417 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
818 _v = ((_v) | (((_v) << (((modelica_integer) 8)))));
819#line 819 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
820
821#line 1418 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
822 _v = ((_v) | (((_v) << (((modelica_integer) 16)))));
823#line 823 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
824
825#line 1419 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
826 _v = ((modelica_integer) 1) + _v;
827#line 827 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
828 _return: OMC_LABEL_UNUSED__attribute__((unused))
829 return _v;
830}
831modelica_metatype boxptr_Util_nextPowerOf2(threadData_t *threadData, modelica_metatype _i)
832{
833 modelica_integer tmp1;
834 modelica_integer _v;
835 modelica_metatype out_v;
836 tmp1 = mmc_unbox_integer(_i)(((mmc_sint_t) (_i)) >> 1);
837 _v = omc_Util_nextPowerOf2(threadData, tmp1);
838 out_v = mmc_mk_icon(_v);
839 return out_v;
840}
841
842DLLExport
843modelica_boolean omc_Util_createDirectoryTree(threadData_t *threadData, modelica_string _inString)
844{
845 modelica_boolean _outBool;
846 modelica_string _parentDir = NULL((void*)0);
847 modelica_boolean _parentDirExists;
848 MMC_SO()mmc_check_stackoverflow(threadData);
849 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
850 // _outBool has no default value.
851 // _parentDir has no default value.
852 // _parentDirExists has no default value.
853#line 1403 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
854 _parentDir = omc_System_dirname(threadData, _inString);
855#line 855 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
856
857#line 1404 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
858 _parentDirExists = omc_System_directoryExists(threadData, _parentDir);
859#line 859 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
860
861#line 1405 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
862 _outBool = omc_Util_createDirectoryTreeH(threadData, _inString, _parentDir, _parentDirExists);
863#line 863 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
864 _return: OMC_LABEL_UNUSED__attribute__((unused))
865 return _outBool;
866}
867modelica_metatype boxptr_Util_createDirectoryTree(threadData_t *threadData, modelica_metatype _inString)
868{
869 modelica_boolean _outBool;
870 modelica_metatype out_outBool;
871 _outBool = omc_Util_createDirectoryTree(threadData, _inString);
872 out_outBool = mmc_mk_icon(_outBool);
873 return out_outBool;
874}
875
876PROTECTED_FUNCTION_STATIC modelica_boolean omc_Util_createDirectoryTreeH(threadData_t *threadData, modelica_string _inString, modelica_string _parentDir, modelica_boolean _parentDirExists)
877{
878 modelica_boolean _outBool;
879 modelica_boolean tmp1 = 0;
880 MMC_SO()mmc_check_stackoverflow(threadData);
881 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
882 // _outBool has no default value.
883#line 883 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
884 { /* matchcontinue expression */
885 volatile modelica_boolean tmp4_1;
886 tmp4_1 = _parentDirExists;
887 {
888 volatile mmc_switch_type tmp4;
889 int tmp5;
890 tmp4 = 0;
891 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) {
892 tmp3_top:
893 threadData->mmc_jumper = &new_mmc_jumper;
894 for (; tmp4 < 4; tmp4++) {
895 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
896 case 0: {
897 modelica_boolean tmp6;
898
899 /* Pattern matching succeeded */
900#line 1377 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
901 /* Pattern-matching assignment */
902#line 1377 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
903 tmp6 = (stringEqual(_parentDir, omc_System_dirname(threadData, _parentDir))((((((*(mmc_uint_t*)((void*)((char*)(_parentDir) - 3)))) >>
(3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(omc_System_dirname
(threadData, _parentDir)) - 3)))) >> (3)) - 8)) &&
!mmc_stringCompare(_parentDir,omc_System_dirname(threadData,
_parentDir)))
);
904#line 1377 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
905 if (1 != tmp6) goto goto_2;
906#line 906 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
907#line 1378 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
908 tmp1 = omc_System_createDirectory(threadData, _inString);
909#line 909 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
910 goto tmp3_done;
911 }
912 case 1: {
913 if (1 != tmp4_1) goto tmp3_end;
914 tmp4 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
915#line 1383 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
916 tmp1 = omc_System_createDirectory(threadData, _inString);
917#line 917 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
918 goto tmp3_done;
919 }
920 case 2: {
921 modelica_boolean tmp7;
922 if (0 != tmp4_1) goto tmp3_end;
923 /* Pattern matching succeeded */
924#line 1388 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
925 /* Pattern-matching assignment */
926#line 1388 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
927 tmp7 = omc_Util_createDirectoryTree(threadData, _parentDir);
928#line 1388 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
929 if (1 != tmp7) goto goto_2;
930#line 930 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
931#line 1389 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
932 tmp1 = omc_System_createDirectory(threadData, _inString);
933#line 933 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
934 goto tmp3_done;
935 }
936 case 3: {
937
938 /* Pattern matching succeeded */
939#line 1392 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
940 tmp1 = 0;
941#line 941 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
942 goto tmp3_done;
943 }
944 }
945 goto tmp3_end;
946 tmp3_end: ;
947 }
948 goto goto_2;
949 tmp3_done:
950 (void)tmp4;
951 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
952 goto tmp3_done2;
953 goto_2:;
954 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
955 if (++tmp4 < 4) {
956 goto tmp3_top;
957 }
958 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
959 tmp3_done2:;
960 }
961 }
962 _outBool = tmp1;
963 _return: OMC_LABEL_UNUSED__attribute__((unused))
964 return _outBool;
965}
966PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Util_createDirectoryTreeH(threadData_t *threadData, modelica_metatype _inString, modelica_metatype _parentDir, modelica_metatype _parentDirExists)
967{
968 modelica_integer tmp1;
969 modelica_boolean _outBool;
970 modelica_metatype out_outBool;
971 tmp1 = mmc_unbox_integer(_parentDirExists)(((mmc_sint_t) (_parentDirExists)) >> 1);
972 _outBool = omc_Util_createDirectoryTreeH(threadData, _inString, _parentDir, tmp1);
973 out_outBool = mmc_mk_icon(_outBool);
974 return out_outBool;
975}
976
977DLLExport
978modelica_integer omc_Util_realRangeSize(threadData_t *threadData, modelica_real _inStart, modelica_real _inStep, modelica_real _inStop)
979{
980 modelica_integer _outSize;
981 modelica_real tmp1;
982 MMC_SO()mmc_check_stackoverflow(threadData);
983 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
984 // _outSize has no default value.
985#line 1361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
986 tmp1 = _inStep;
987#line 1361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
988 if (tmp1 == 0) {MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};}
989#line 1361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
990 _outSize = ((modelica_integer) 1) + ((modelica_integer)floor(floor(5e-15 + (_inStop - _inStart) / tmp1)));
991#line 991 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
992
993#line 1362 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
994 _outSize = modelica_integer_max((modelica_integer)(_outSize),(modelica_integer)(((modelica_integer) 0)));
995#line 995 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
996 _return: OMC_LABEL_UNUSED__attribute__((unused))
997 return _outSize;
998}
999modelica_metatype boxptr_Util_realRangeSize(threadData_t *threadData, modelica_metatype _inStart, modelica_metatype _inStep, modelica_metatype _inStop)
1000{
1001 modelica_real tmp1;
1002 modelica_real tmp2;
1003 modelica_real tmp3;
1004 modelica_integer _outSize;
1005 modelica_metatype out_outSize;
1006 tmp1 = mmc_unbox_real(_inStart)mmc_prim_get_real(_inStart);
1007 tmp2 = mmc_unbox_real(_inStep)mmc_prim_get_real(_inStep);
1008 tmp3 = mmc_unbox_real(_inStop)mmc_prim_get_real(_inStop);
1009 _outSize = omc_Util_realRangeSize(threadData, tmp1, tmp2, tmp3);
1010 out_outSize = mmc_mk_icon(_outSize);
1011 return out_outSize;
1012}
1013
1014DLLExport
1015modelica_metatype omc_Util_replace(threadData_t *threadData, modelica_metatype _replaced, modelica_metatype _arg)
1016{
1017 modelica_metatype _outArg = NULL((void*)0);
1018 MMC_SO()mmc_check_stackoverflow(threadData);
1019 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1020 _outArg = _arg;
1021 _return: OMC_LABEL_UNUSED__attribute__((unused))
1022 return _outArg;
1023}
1024
1025DLLExport
1026modelica_metatype omc_Util_swap(threadData_t *threadData, modelica_boolean _cond, modelica_metatype _in1, modelica_metatype _in2, modelica_metatype *out_out2)
1027{
1028 modelica_metatype _out1 = NULL((void*)0);
1029 modelica_metatype _out2 = NULL((void*)0);
1030 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1031 MMC_SO()mmc_check_stackoverflow(threadData);
1032 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1033 // _out1 has no default value.
1034 // _out2 has no default value.
1035#line 1342 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1036
1037#line 1342 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1038
1039#line 1039 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1040 { /* match expression */
1041 modelica_boolean tmp4_1;
1042 tmp4_1 = _cond;
1043 {
1044 volatile mmc_switch_type tmp4;
1045 int tmp5;
1046 tmp4 = 0;
1047 for (; tmp4 < 2; tmp4++) {
1048 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1049 case 0: {
1050 if (1 != tmp4_1) goto tmp3_end;
1051 /* Pattern matching succeeded */
1052#line 1343 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1053 tmpMeta[0+0] = _in2;
1054#line 1343 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1055 tmpMeta[0+1] = _in1;
1056#line 1056 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1057 goto tmp3_done;
1058 }
1059 case 1: {
1060
1061 /* Pattern matching succeeded */
1062#line 1344 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1063 tmpMeta[0+0] = _in1;
1064#line 1344 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1065 tmpMeta[0+1] = _in2;
1066#line 1066 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1067 goto tmp3_done;
1068 }
1069 }
1070 goto tmp3_end;
1071 tmp3_end: ;
1072 }
1073 goto goto_2;
1074 goto_2:;
1075 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1076 goto tmp3_done;
1077 tmp3_done:;
1078 }
1079 }
1080 _out1 = tmpMeta[0+0];
1081 _out2 = tmpMeta[0+1];
1082 _return: OMC_LABEL_UNUSED__attribute__((unused))
1083 if (out_out2) { *out_out2 = _out2; }
1084 return _out1;
1085}
1086modelica_metatype boxptr_Util_swap(threadData_t *threadData, modelica_metatype _cond, modelica_metatype _in1, modelica_metatype _in2, modelica_metatype *out_out2)
1087{
1088 modelica_integer tmp1;
1089 modelica_metatype _out1 = NULL((void*)0);
1090 tmp1 = mmc_unbox_integer(_cond)(((mmc_sint_t) (_cond)) >> 1);
1091 _out1 = omc_Util_swap(threadData, tmp1, _in1, _in2, out_out2);
1092 /* skip box _out1; polymorphic<T> */
1093 /* skip box _out2; polymorphic<T> */
1094 return _out1;
1095}
1096
1097DLLExport
1098modelica_boolean omc_Util_stringNotEqual(threadData_t *threadData, modelica_string _str1, modelica_string _str2)
1099{
1100 modelica_boolean _b;
1101 MMC_SO()mmc_check_stackoverflow(threadData);
1102 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1103 _b = (!(stringEqual(_str1, _str2)((((((*(mmc_uint_t*)((void*)((char*)(_str1) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_str2) - 3))
)) >> (3)) - 8)) && !mmc_stringCompare(_str1,_str2
))
));
1104 _return: OMC_LABEL_UNUSED__attribute__((unused))
1105 return _b;
1106}
1107modelica_metatype boxptr_Util_stringNotEqual(threadData_t *threadData, modelica_metatype _str1, modelica_metatype _str2)
1108{
1109 modelica_boolean _b;
1110 modelica_metatype out_b;
1111 _b = omc_Util_stringNotEqual(threadData, _str1, _str2);
1112 out_b = mmc_mk_icon(_b);
1113 return out_b;
1114}
1115
1116DLLExport
1117modelica_string omc_Util_removeLastNChar(threadData_t *threadData, modelica_string _str, modelica_integer _n)
1118{
1119 modelica_string _outStr = NULL((void*)0);
1120 MMC_SO()mmc_check_stackoverflow(threadData);
1121 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1122 // _outStr has no default value.
1123#line 1326 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1124 _outStr = substring(_str, ((modelica_integer) 1), stringLength(_str) - _n)boxptr_substring(threadData,_str,mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon((((((*(mmc_uint_t*)((void*)((char*)(_str) -
3)))) >> (3)) - 8)) - _n))
;
1125#line 1125 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1126 _return: OMC_LABEL_UNUSED__attribute__((unused))
1127 return _outStr;
1128}
1129modelica_metatype boxptr_Util_removeLastNChar(threadData_t *threadData, modelica_metatype _str, modelica_metatype _n)
1130{
1131 modelica_integer tmp1;
1132 modelica_string _outStr = NULL((void*)0);
1133 tmp1 = mmc_unbox_integer(_n)(((mmc_sint_t) (_n)) >> 1);
1134 _outStr = omc_Util_removeLastNChar(threadData, _str, tmp1);
1135 /* skip box _outStr; String */
1136 return _outStr;
1137}
1138
1139DLLExport
1140modelica_string omc_Util_removeLast4Char(threadData_t *threadData, modelica_string _str)
1141{
1142 modelica_string _outStr = NULL((void*)0);
1143 MMC_SO()mmc_check_stackoverflow(threadData);
1144 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1145 // _outStr has no default value.
1146#line 1318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1147 _outStr = substring(_str, ((modelica_integer) 1), ((modelica_integer) -4) + stringLength(_str))boxptr_substring(threadData,_str,mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon(((modelica_integer) -4) + (((((*(mmc_uint_t
*)((void*)((char*)(_str) - 3)))) >> (3)) - 8))))
;
1148#line 1148 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1149 _return: OMC_LABEL_UNUSED__attribute__((unused))
1150 return _outStr;
1151}
1152
1153DLLExport
1154modelica_string omc_Util_removeLast3Char(threadData_t *threadData, modelica_string _str)
1155{
1156 modelica_string _outStr = NULL((void*)0);
1157 MMC_SO()mmc_check_stackoverflow(threadData);
1158 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1159 // _outStr has no default value.
1160#line 1311 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1161 _outStr = substring(_str, ((modelica_integer) 1), ((modelica_integer) -3) + stringLength(_str))boxptr_substring(threadData,_str,mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon(((modelica_integer) -3) + (((((*(mmc_uint_t
*)((void*)((char*)(_str) - 3)))) >> (3)) - 8))))
;
1162#line 1162 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1163 _return: OMC_LABEL_UNUSED__attribute__((unused))
1164 return _outStr;
1165}
1166
1167DLLExport
1168modelica_string omc_Util_anyToEmptyString(threadData_t *threadData, modelica_metatype _a)
1169{
1170 modelica_string _empty = NULL((void*)0);
1171 MMC_SO()mmc_check_stackoverflow(threadData);
1172 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1173 _empty = _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3));
1174 _return: OMC_LABEL_UNUSED__attribute__((unused))
1175 return _empty;
1176}
1177
1178PROTECTED_FUNCTION_STATIC modelica_boolean omc_Util_nextPrime__isPrime(threadData_t *threadData, modelica_integer _inN)
1179{
1180 modelica_boolean _outIsPrime;
1181 modelica_integer _i;
1182 modelica_integer _q;
1183 modelica_integer tmp1;
1184 modelica_integer tmp2;
1185 MMC_SO()mmc_check_stackoverflow(threadData);
1186 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1187 // _outIsPrime has no default value.
1188 _i = ((modelica_integer) 3);
1189 tmp1 = ((modelica_integer) 3);
1190 if (tmp1 == 0) {MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};}
1191 _q = ldiv(_inN,tmp1).quot;
1192#line 1287 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1193 while(1)
1194#line 1287 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1195 {
1196#line 1287 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1197 if(!(_q >= _i)) break;
1198#line 1289 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1199 if((_inN == (_q) * (_i)))
1200#line 1289 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1201 {
1202#line 1290 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1203 _outIsPrime = 0;
1204#line 1204 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1205
1206#line 1291 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1207 goto _return;
1208#line 1208 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1209 }
1210
1211#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1212 _i = ((modelica_integer) 2) + _i;
1213#line 1213 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1214
1215#line 1295 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1216 tmp2 = _i;
1217#line 1295 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1218 if (tmp2 == 0) {MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};}
1219#line 1295 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1220 _q = ldiv(_inN,tmp2).quot;
1221#line 1221 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1222 }
1223
1224#line 1299 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1225 _outIsPrime = 1;
1226#line 1226 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1227 _return: OMC_LABEL_UNUSED__attribute__((unused))
1228 return _outIsPrime;
1229}
1230PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Util_nextPrime__isPrime(threadData_t *threadData, modelica_metatype _inN)
1231{
1232 modelica_integer tmp1;
1233 modelica_boolean _outIsPrime;
1234 modelica_metatype out_outIsPrime;
1235 tmp1 = mmc_unbox_integer(_inN)(((mmc_sint_t) (_inN)) >> 1);
1236 _outIsPrime = omc_Util_nextPrime__isPrime(threadData, tmp1);
1237 out_outIsPrime = mmc_mk_icon(_outIsPrime);
1238 return out_outIsPrime;
1239}
1240
1241PROTECTED_FUNCTION_STATIC modelica_integer omc_Util_nextPrime2(threadData_t *threadData, modelica_integer _inN)
1242{
1243 modelica_integer _outNextPrime;
1244 modelica_boolean tmp1;
1245 modelica_integer tmp2;
1246 MMC_SO()mmc_check_stackoverflow(threadData);
1247 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1248 // _outNextPrime has no default value.
1249#line 1274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1250 tmp1 = (modelica_boolean)omc_Util_nextPrime__isPrime(threadData, _inN);
1251#line 1274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1252 if(tmp1)
1253#line 1274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1254 {
1255#line 1274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1256 tmp2 = _inN;
1257#line 1274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1258 }
1259#line 1274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1260 else
1261#line 1274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1262 {
1263#line 1274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1264 /* Tail recursive call */
1265#line 1274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1266 _inN = ((modelica_integer) 2) + _inN;
1267#line 1274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1268 goto _tailrecursive;
1269#line 1274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1270 /* TODO: Make sure any eventual dead code below is never generated */
1271#line 1274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1272 }
1273#line 1274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1274 _outNextPrime = tmp2;
1275#line 1275 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1276 _return: OMC_LABEL_UNUSED__attribute__((unused))
1277 return _outNextPrime;
1278}
1279PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Util_nextPrime2(threadData_t *threadData, modelica_metatype _inN)
1280{
1281 modelica_integer tmp1;
1282 modelica_integer _outNextPrime;
1283 modelica_metatype out_outNextPrime;
1284 tmp1 = mmc_unbox_integer(_inN)(((mmc_sint_t) (_inN)) >> 1);
1285 _outNextPrime = omc_Util_nextPrime2(threadData, tmp1);
1286 out_outNextPrime = mmc_mk_icon(_outNextPrime);
1287 return out_outNextPrime;
1288}
1289
1290DLLExport
1291modelica_integer omc_Util_nextPrime(threadData_t *threadData, modelica_integer _inN)
1292{
1293 modelica_integer _outNextPrime;
1294 MMC_SO()mmc_check_stackoverflow(threadData);
1295 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1296 // _outNextPrime has no default value.
1297#line 1265 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1298 _outNextPrime = ((_inN <= ((modelica_integer) 2))?((modelica_integer) 2):omc_Util_nextPrime2(threadData, _inN + modelica_integer_mod(((modelica_integer) 1) + _inN, ((modelica_integer) 2))));
1299#line 1299 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1300 _return: OMC_LABEL_UNUSED__attribute__((unused))
1301 return _outNextPrime;
1302}
1303modelica_metatype boxptr_Util_nextPrime(threadData_t *threadData, modelica_metatype _inN)
1304{
1305 modelica_integer tmp1;
1306 modelica_integer _outNextPrime;
1307 modelica_metatype out_outNextPrime;
1308 tmp1 = mmc_unbox_integer(_inN)(((mmc_sint_t) (_inN)) >> 1);
1309 _outNextPrime = omc_Util_nextPrime(threadData, tmp1);
1310 out_outNextPrime = mmc_mk_icon(_outNextPrime);
1311 return out_outNextPrime;
1312}
1313
1314DLLExport
1315modelica_integer omc_Util_intProduct(threadData_t *threadData, modelica_metatype _lst)
1316{
1317 modelica_integer _i;
1318 MMC_SO()mmc_check_stackoverflow(threadData);
1319 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1320 _i = mmc_unbox_integer(omc_List_fold(threadData, _lst, boxvar_intMul, mmc_mk_integer(((modelica_integer) 1))))(((mmc_sint_t) (omc_List_fold(threadData, _lst, ((void*)((char
*)(&(boxvar_lit_intMul).header) + 3)), mmc_mk_icon(((modelica_integer
) 1))))) >> 1)
;
1321 _return: OMC_LABEL_UNUSED__attribute__((unused))
1322 return _i;
1323}
1324modelica_metatype boxptr_Util_intProduct(threadData_t *threadData, modelica_metatype _lst)
1325{
1326 modelica_integer _i;
1327 modelica_metatype out_i;
1328 _i = omc_Util_intProduct(threadData, _lst);
1329 out_i = mmc_mk_icon(_i);
1330 return out_i;
1331}
1332
1333DLLExport
1334modelica_string omc_Util_stringRest(threadData_t *threadData, modelica_string _inString)
1335{
1336 modelica_string _outRest = NULL((void*)0);
1337 modelica_integer _len;
1338 MMC_SO()mmc_check_stackoverflow(threadData);
1339 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1340 // _outRest has no default value.
1341 // _len has no default value.
1342#line 1246 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1343 _len = stringLength(_inString)(((((*(mmc_uint_t*)((void*)((char*)(_inString) - 3)))) >>
(3)) - 8))
;
1344#line 1344 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1345
1346#line 1247 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1347 _outRest = substring(_inString, ((modelica_integer) 2), _len)boxptr_substring(threadData,_inString,mmc_mk_icon(((modelica_integer
) 2)),mmc_mk_icon(_len))
;
1348#line 1348 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1349 _return: OMC_LABEL_UNUSED__attribute__((unused))
1350 return _outRest;
1351}
1352
1353DLLExport
1354modelica_string omc_Util_stringPadLeft(threadData_t *threadData, modelica_string _inString, modelica_integer _inPadWidth, modelica_string _inPadString)
1355{
1356 modelica_string _outString = NULL((void*)0);
1357 modelica_integer _pad_length;
1358 modelica_string _pad_str = NULL((void*)0);
1359 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1360 MMC_SO()mmc_check_stackoverflow(threadData);
1361 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1362 // _outString has no default value.
1363 // _pad_length has no default value.
1364 // _pad_str has no default value.
1365#line 1229 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1366 _pad_length = _inPadWidth - stringLength(_inString)(((((*(mmc_uint_t*)((void*)((char*)(_inString) - 3)))) >>
(3)) - 8))
;
1367#line 1367 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1368
1369#line 1231 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1370 if((_pad_length > ((modelica_integer) 0)))
1371#line 1231 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1372 {
1373#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1374 {
1375#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1376 modelica_metatype _D_24tmpVar1;
1377#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1378 modelica_metatype* tmp1;
1379#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1380 modelica_string _D_24tmpVar0;
1381#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1382 int tmp2;
1383#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1384 modelica_integer tmp3;
1385#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1386 modelica_integer tmp4;
1387#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1388 modelica_integer _i;
1389#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1390 tmp3 = 1 /* Range step-value */;
1391#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1392 tmp4 = _pad_length /* Range stop-value */;
1393#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1394 _i = ((modelica_integer) 1) /* Range start-value */;
1395#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1396 _i = (((modelica_integer) 1) /* Range start-value */)-tmp3;
1397#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1398 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1399#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1400 _D_24tmpVar1 = tmpMeta[1]; /* defaultValue */
1401#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1402 tmp1 = &_D_24tmpVar1;
1403#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1404 while(1) {
1405#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1406 tmp2 = 1;
1407#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1408 if (tmp3 > 0 ? _i+tmp3 <= tmp4 : _i+tmp3 >= tmp4) {
1409#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1410 _i += tmp3;
1411#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1412 tmp2--;
1413#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1414 }
1415#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1416 if (tmp2 == 0) {
1417#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1418 _D_24tmpVar0 = _inPadString;
1419#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1420 *tmp1 = mmc_mk_cons(_D_24tmpVar0,0);
1421#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1422 tmp1 = &MMC_CDR(*tmp1)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp1) - 3))) +
(2)))))
;
1423#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1424 } else if (tmp2 == 1) {
1425#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1426 break;
1427#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1428 } else {
1429#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1430 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1431#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1432 }
1433#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1434 }
1435#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1436 *tmp1 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1437#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1438 tmpMeta[0] = _D_24tmpVar1;
1439#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1440 }
1441#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1442 _pad_str = stringAppendList(tmpMeta[0]);
1443#line 1443 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1444
1445#line 1233 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1446 tmpMeta[0] = stringAppend(_pad_str,_inString);
1447#line 1233 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1448 _outString = tmpMeta[0];
1449#line 1449 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1450 }
1451 else
1452 {
1453#line 1235 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1454 _outString = _inString;
1455#line 1455 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1456 }
1457 _return: OMC_LABEL_UNUSED__attribute__((unused))
1458 return _outString;
1459}
1460modelica_metatype boxptr_Util_stringPadLeft(threadData_t *threadData, modelica_metatype _inString, modelica_metatype _inPadWidth, modelica_metatype _inPadString)
1461{
1462 modelica_integer tmp1;
1463 modelica_string _outString = NULL((void*)0);
1464 tmp1 = mmc_unbox_integer(_inPadWidth)(((mmc_sint_t) (_inPadWidth)) >> 1);
1465 _outString = omc_Util_stringPadLeft(threadData, _inString, tmp1, _inPadString);
1466 /* skip box _outString; String */
1467 return _outString;
1468}
1469
1470DLLExport
1471modelica_string omc_Util_stringPadRight(threadData_t *threadData, modelica_string _inString, modelica_integer _inPadWidth, modelica_string _inPadString)
1472{
1473 modelica_string _outString = NULL((void*)0);
1474 modelica_integer _pad_length;
1475 modelica_string _pad_str = NULL((void*)0);
1476 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1477 MMC_SO()mmc_check_stackoverflow(threadData);
1478 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1479 // _outString has no default value.
1480 // _pad_length has no default value.
1481 // _pad_str has no default value.
1482#line 1207 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1483 _pad_length = _inPadWidth - stringLength(_inString)(((((*(mmc_uint_t*)((void*)((char*)(_inString) - 3)))) >>
(3)) - 8))
;
1484#line 1484 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1485
1486#line 1209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1487 if((_pad_length > ((modelica_integer) 0)))
1488#line 1209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1489 {
1490#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1491 {
1492#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1493 modelica_metatype _D_24tmpVar3;
1494#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1495 modelica_metatype* tmp1;
1496#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1497 modelica_string _D_24tmpVar2;
1498#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1499 int tmp2;
1500#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1501 modelica_integer tmp3;
1502#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1503 modelica_integer tmp4;
1504#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1505 modelica_integer _i;
1506#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1507 tmp3 = 1 /* Range step-value */;
1508#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1509 tmp4 = _pad_length /* Range stop-value */;
1510#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1511 _i = ((modelica_integer) 1) /* Range start-value */;
1512#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1513 _i = (((modelica_integer) 1) /* Range start-value */)-tmp3;
1514#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1515 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1516#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1517 _D_24tmpVar3 = tmpMeta[1]; /* defaultValue */
1518#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1519 tmp1 = &_D_24tmpVar3;
1520#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1521 while(1) {
1522#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1523 tmp2 = 1;
1524#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1525 if (tmp3 > 0 ? _i+tmp3 <= tmp4 : _i+tmp3 >= tmp4) {
1526#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1527 _i += tmp3;
1528#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1529 tmp2--;
1530#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1531 }
1532#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1533 if (tmp2 == 0) {
1534#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1535 _D_24tmpVar2 = _inPadString;
1536#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1537 *tmp1 = mmc_mk_cons(_D_24tmpVar2,0);
1538#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1539 tmp1 = &MMC_CDR(*tmp1)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp1) - 3))) +
(2)))))
;
1540#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1541 } else if (tmp2 == 1) {
1542#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1543 break;
1544#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1545 } else {
1546#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1547 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1548#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1549 }
1550#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1551 }
1552#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1553 *tmp1 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1554#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1555 tmpMeta[0] = _D_24tmpVar3;
1556#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1557 }
1558#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1559 _pad_str = stringAppendList(tmpMeta[0]);
1560#line 1560 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1561
1562#line 1211 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1563 tmpMeta[0] = stringAppend(_inString,_pad_str);
1564#line 1211 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1565 _outString = tmpMeta[0];
1566#line 1566 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1567 }
1568 else
1569 {
1570#line 1213 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1571 _outString = _inString;
1572#line 1572 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1573 }
1574 _return: OMC_LABEL_UNUSED__attribute__((unused))
1575 return _outString;
1576}
1577modelica_metatype boxptr_Util_stringPadRight(threadData_t *threadData, modelica_metatype _inString, modelica_metatype _inPadWidth, modelica_metatype _inPadString)
1578{
1579 modelica_integer tmp1;
1580 modelica_string _outString = NULL((void*)0);
1581 tmp1 = mmc_unbox_integer(_inPadWidth)(((mmc_sint_t) (_inPadWidth)) >> 1);
1582 _outString = omc_Util_stringPadRight(threadData, _inString, tmp1, _inPadString);
1583 /* skip box _outString; String */
1584 return _outString;
1585}
1586
1587DLLExport
1588modelica_metatype omc_Util_optionList(threadData_t *threadData, modelica_metatype _inOption)
1589{
1590 modelica_metatype _outList = NULL((void*)0);
1591 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1592 MMC_SO()mmc_check_stackoverflow(threadData);
1593 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1594 // _outList has no default value.
1595#line 1595 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1596 { /* match expression */
1597 modelica_metatype tmp3_1;
1598 tmp3_1 = _inOption;
1599 {
1600 modelica_metatype _value = NULL((void*)0);
1601 volatile mmc_switch_type tmp3;
1602 int tmp4;
1603 // _value has no default value.
1604 tmp3 = 0;
1605 for (; tmp3 < 2; tmp3++) {
1606 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1607 case 0: {
1608 if (optionNone(tmp3_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
1609 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1610 _value = tmpMeta[1];
1611 /* Pattern matching succeeded */
1612#line 1190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1613 tmpMeta[1] = mmc_mk_cons(_value, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
1614#line 1190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1615 tmpMeta[0] = tmpMeta[1];
1616#line 1616 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1617 goto tmp2_done;
1618 }
1619 case 1: {
1620
1621 /* Pattern matching succeeded */
1622#line 1191 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1623 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1624#line 1191 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1625 tmpMeta[0] = tmpMeta[1];
1626#line 1626 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1627 goto tmp2_done;
1628 }
1629 }
1630 goto tmp2_end;
1631 tmp2_end: ;
1632 }
1633 goto goto_1;
1634 goto_1:;
1635 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1636 goto tmp2_done;
1637 tmp2_done:;
1638 }
1639 }
1640 _outList = tmpMeta[0];
1641 _return: OMC_LABEL_UNUSED__attribute__((unused))
1642 return _outList;
1643}
1644
1645DLLExport
1646modelica_boolean omc_Util_stringEqCaseInsensitive(threadData_t *threadData, modelica_string _str1, modelica_string _str2)
1647{
1648 modelica_boolean _eq;
1649 MMC_SO()mmc_check_stackoverflow(threadData);
1650 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1651 // _eq has no default value.
1652#line 1177 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1653 _eq = (stringEqual(omc_System_tolower(threadData, _str1), omc_System_tolower(threadData, _str2))((((((*(mmc_uint_t*)((void*)((char*)(omc_System_tolower(threadData
, _str1)) - 3)))) >> (3)) - 8)) == (((((*(mmc_uint_t*)(
(void*)((char*)(omc_System_tolower(threadData, _str2)) - 3)))
) >> (3)) - 8)) && !mmc_stringCompare(omc_System_tolower
(threadData, _str1),omc_System_tolower(threadData, _str2)))
);
1654#line 1654 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1655 _return: OMC_LABEL_UNUSED__attribute__((unused))
1656 return _eq;
1657}
1658modelica_metatype boxptr_Util_stringEqCaseInsensitive(threadData_t *threadData, modelica_metatype _str1, modelica_metatype _str2)
1659{
1660 modelica_boolean _eq;
1661 modelica_metatype out_eq;
1662 _eq = omc_Util_stringEqCaseInsensitive(threadData, _str1, _str2);
1663 out_eq = mmc_mk_icon(_eq);
1664 return out_eq;
1665}
1666
1667PROTECTED_FUNCTION_STATIC modelica_boolean omc_Util_stringBool2(threadData_t *threadData, modelica_string _inString)
1668{
1669 modelica_boolean _outBoolean;
1670 modelica_boolean tmp1 = 0;
1671 MMC_SO()mmc_check_stackoverflow(threadData);
1672 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1673 // _outBoolean has no default value.
1674#line 1674 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1675 { /* match expression */
1676 modelica_string tmp4_1;
1677 tmp4_1 = _inString;
1678 {
1679 volatile mmc_switch_type tmp4;
1680 int tmp5;
1681 tmp4 = 0;
1682 for (; tmp4 < 4; tmp4++) {
1683 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1684 case 0: {
1685 if (4 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT11)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT11).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_end;
1686 /* Pattern matching succeeded */
1687#line 1166 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1688 tmp1 = 1;
1689#line 1689 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1690 goto tmp3_done;
1691 }
1692 case 1: {
1693 if (5 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT12)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT12).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_end;
1694 /* Pattern matching succeeded */
1695#line 1167 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1696 tmp1 = 0;
1697#line 1697 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1698 goto tmp3_done;
1699 }
1700 case 2: {
1701 if (3 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT13)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT13).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_end;
1702 /* Pattern matching succeeded */
1703#line 1168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1704 tmp1 = 1;
1705#line 1705 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1706 goto tmp3_done;
1707 }
1708 case 3: {
1709 if (2 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT14)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT14).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_end;
1710 /* Pattern matching succeeded */
1711#line 1169 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1712 tmp1 = 0;
1713#line 1713 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1714 goto tmp3_done;
1715 }
1716 }
1717 goto tmp3_end;
1718 tmp3_end: ;
1719 }
1720 goto goto_2;
1721 goto_2:;
1722 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1723 goto tmp3_done;
1724 tmp3_done:;
1725 }
1726 }
1727 _outBoolean = tmp1;
1728 _return: OMC_LABEL_UNUSED__attribute__((unused))
1729 return _outBoolean;
1730}
1731PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Util_stringBool2(threadData_t *threadData, modelica_metatype _inString)
1732{
1733 modelica_boolean _outBoolean;
1734 modelica_metatype out_outBoolean;
1735 _outBoolean = omc_Util_stringBool2(threadData, _inString);
1736 out_outBoolean = mmc_mk_icon(_outBoolean);
1737 return out_outBoolean;
1738}
1739
1740DLLExport
1741modelica_boolean omc_Util_stringBool(threadData_t *threadData, modelica_string _inString)
1742{
1743 modelica_boolean _outBoolean;
1744 MMC_SO()mmc_check_stackoverflow(threadData);
1745 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1746 // _outBoolean has no default value.
1747#line 1157 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1748 _outBoolean = omc_Util_stringBool2(threadData, omc_System_tolower(threadData, _inString));
1749#line 1749 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1750 _return: OMC_LABEL_UNUSED__attribute__((unused))
1751 return _outBoolean;
1752}
1753modelica_metatype boxptr_Util_stringBool(threadData_t *threadData, modelica_metatype _inString)
1754{
1755 modelica_boolean _outBoolean;
1756 modelica_metatype out_outBoolean;
1757 _outBoolean = omc_Util_stringBool(threadData, _inString);
1758 out_outBoolean = mmc_mk_icon(_outBoolean);
1759 return out_outBoolean;
1760}
1761
1762DLLExport
1763modelica_boolean omc_Util_intBool(threadData_t *threadData, modelica_integer _inInteger)
1764{
1765 modelica_boolean _outBoolean;
1766 MMC_SO()mmc_check_stackoverflow(threadData);
1767 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1768 _outBoolean = (_inInteger > ((modelica_integer) 0));
1769 _return: OMC_LABEL_UNUSED__attribute__((unused))
1770 return _outBoolean;
1771}
1772modelica_metatype boxptr_Util_intBool(threadData_t *threadData, modelica_metatype _inInteger)
1773{
1774 modelica_integer tmp1;
1775 modelica_boolean _outBoolean;
1776 modelica_metatype out_outBoolean;
1777 tmp1 = mmc_unbox_integer(_inInteger)(((mmc_sint_t) (_inInteger)) >> 1);
1778 _outBoolean = omc_Util_intBool(threadData, tmp1);
1779 out_outBoolean = mmc_mk_icon(_outBoolean);
1780 return out_outBoolean;
1781}
1782
1783DLLExport
1784modelica_integer omc_Util_boolInt(threadData_t *threadData, modelica_boolean _inBoolean)
1785{
1786 modelica_integer _outInteger;
1787 MMC_SO()mmc_check_stackoverflow(threadData);
1788 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1789 _outInteger = (_inBoolean?((modelica_integer) 1):((modelica_integer) 0));
1790 _return: OMC_LABEL_UNUSED__attribute__((unused))
1791 return _outInteger;
1792}
1793modelica_metatype boxptr_Util_boolInt(threadData_t *threadData, modelica_metatype _inBoolean)
1794{
1795 modelica_integer tmp1;
1796 modelica_integer _outInteger;
1797 modelica_metatype out_outInteger;
1798 tmp1 = mmc_unbox_integer(_inBoolean)(((mmc_sint_t) (_inBoolean)) >> 1);
1799 _outInteger = omc_Util_boolInt(threadData, tmp1);
1800 out_outInteger = mmc_mk_icon(_outInteger);
1801 return out_outInteger;
1802}
1803
1804DLLExport
1805modelica_metatype omc_Util_assoc(threadData_t *threadData, modelica_metatype _inKey, modelica_metatype _inList)
1806{
1807 modelica_metatype _outValue = NULL((void*)0);
1808 modelica_metatype _k = NULL((void*)0);
1809 modelica_metatype _v = NULL((void*)0);
1810 modelica_boolean tmp1;
1811 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1812 MMC_SO()mmc_check_stackoverflow(threadData);
1813 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1814 // _outValue has no default value.
1815 // _k has no default value.
1816 // _v has no default value.
1817#line 1135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1818 /* Pattern-matching assignment */
1819#line 1135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1820 tmpMeta[0] = listHead(_inList)boxptr_listHead(threadData,_inList);
1821#line 1135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1822 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1823#line 1135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1824 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1825#line 1135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1826 _k = tmpMeta[1];
1827#line 1135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1828 _v = tmpMeta[2];
1829#line 1829 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1830
1831#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1832 tmp1 = (modelica_boolean)valueEq(_inKey, _k);
1833#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1834 if(tmp1)
1835#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1836 {
1837#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1838 tmpMeta[0] = _v;
1839#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1840 }
1841#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1842 else
1843#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1844 {
1845#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1846 /* Tail recursive call */
1847#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1848 _inList = listRest(_inList)boxptr_listRest(threadData,_inList);
1849#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1850 goto _tailrecursive;
1851#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1852 /* TODO: Make sure any eventual dead code below is never generated */
1853#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1854 }
1855#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1856 _outValue = tmpMeta[0];
1857#line 1857 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1858 _return: OMC_LABEL_UNUSED__attribute__((unused))
1859 return _outValue;
1860}
1861
1862DLLExport
1863modelica_string omc_Util_buildMapStr(threadData_t *threadData, modelica_metatype _inLst1, modelica_metatype _inLst2, modelica_string _inMiddleDelimiter, modelica_string _inEndDelimiter)
1864{
1865 modelica_string _outStr = NULL((void*)0);
1866 modelica_string tmp1 = 0;
1867 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1868 MMC_SO()mmc_check_stackoverflow(threadData);
1869 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1870 // _outStr has no default value.
1871#line 1871 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1872 { /* match expression */
1873 modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_string tmp4_3;modelica_string tmp4_4;
1874 tmp4_1 = _inLst1;
1875 tmp4_2 = _inLst2;
1876 tmp4_3 = _inMiddleDelimiter;
1877 tmp4_4 = _inEndDelimiter;
1878 {
1879 modelica_metatype _ra = NULL((void*)0);
1880 modelica_metatype _rb = NULL((void*)0);
1881 modelica_string _fa = NULL((void*)0);
1882 modelica_string _fb = NULL((void*)0);
1883 modelica_string _md = NULL((void*)0);
1884 modelica_string _ed = NULL((void*)0);
1885 modelica_string _str = NULL((void*)0);
1886 volatile mmc_switch_type tmp4;
1887 int tmp5;
1888 // _ra has no default value.
1889 // _rb has no default value.
1890 // _fa has no default value.
1891 // _fb has no default value.
1892 // _md has no default value.
1893 // _ed has no default value.
1894 // _str has no default value.
1895 tmp4 = 0;
1896 for (; tmp4 < 3; tmp4++) {
1897 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1898 case 0: {
1899 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1900 if (!listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1901
1902 /* Pattern matching succeeded */
1903#line 1105 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1904 tmp1 = _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3));
1905#line 1905 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1906 goto tmp3_done;
1907 }
1908 case 1: {
1909 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1910 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
1911 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1912 if (!listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1913 if (listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1914 tmpMeta[2] = MMC_CAR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
1915 tmpMeta[3] = MMC_CDR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
1916 if (!listEmpty(tmpMeta[3])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1917
1918 _fa = tmpMeta[0];
1919 _fb = tmpMeta[2];
1920 _md = tmp4_3;
1921 /* Pattern matching succeeded */
1922#line 1109 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1923 tmpMeta[0] = mmc_mk_cons(_fa, mmc_mk_cons(_md, mmc_mk_cons(_fb, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)))));
1924#line 1109 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1925 tmp1 = stringAppendList(tmpMeta[0]);
1926#line 1926 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1927 goto tmp3_done;
1928 }
1929 case 2: {
1930 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1931 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
1932 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1933 if (listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1934 tmpMeta[2] = MMC_CAR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
1935 tmpMeta[3] = MMC_CDR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
1936
1937 _fa = tmpMeta[0];
1938 _ra = tmpMeta[1];
1939 _fb = tmpMeta[2];
1940 _rb = tmpMeta[3];
1941 _md = tmp4_3;
1942 _ed = tmp4_4;
1943 /* Pattern matching succeeded */
1944#line 1115 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1945 _str = omc_Util_buildMapStr(threadData, _ra, _rb, _md, _ed);
1946#line 1946 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1947#line 1116 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1948 tmpMeta[0] = mmc_mk_cons(_fa, mmc_mk_cons(_md, mmc_mk_cons(_fb, mmc_mk_cons(_ed, mmc_mk_cons(_str, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)))))));
1949#line 1116 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
1950 tmp1 = stringAppendList(tmpMeta[0]);
1951#line 1951 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1952 goto tmp3_done;
1953 }
1954 }
1955 goto tmp3_end;
1956 tmp3_end: ;
1957 }
1958 goto goto_2;
1959 goto_2:;
1960 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1961 goto tmp3_done;
1962 tmp3_done:;
1963 }
1964 }
1965 _outStr = tmp1;
1966 _return: OMC_LABEL_UNUSED__attribute__((unused))
1967 return _outStr;
1968}
1969
1970DLLExport
1971modelica_metatype omc_Util_id(threadData_t *threadData, modelica_metatype _inValue)
1972{
1973 modelica_metatype _outValue = NULL((void*)0);
1974 MMC_SO()mmc_check_stackoverflow(threadData);
1975 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1976 _outValue = _inValue;
1977 _return: OMC_LABEL_UNUSED__attribute__((unused))
1978 return _outValue;
1979}
1980
1981DLLExport
1982modelica_boolean omc_Util_isSuccess(threadData_t *threadData, modelica_metatype _status)
1983{
1984 modelica_boolean _bool;
1985 modelica_boolean tmp1 = 0;
1986 MMC_SO()mmc_check_stackoverflow(threadData);
1987 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1988 // _bool has no default value.
1989#line 1989 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
1990 { /* match expression */
1991 modelica_metatype tmp4_1;
1992 tmp4_1 = _status;
1993 {
1994 volatile mmc_switch_type tmp4;
1995 int tmp5;
1996 tmp4 = 0;
1997 for (; tmp4 < 2; tmp4++) {
1998 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1999 case 0: {
2000 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2001 /* Pattern matching succeeded */
2002#line 1082 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2003 tmp1 = 1;
2004#line 2004 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2005 goto tmp3_done;
2006 }
2007 case 1: {
2008 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2009 /* Pattern matching succeeded */
2010#line 1083 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2011 tmp1 = 0;
2012#line 2012 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2013 goto tmp3_done;
2014 }
2015 }
2016 goto tmp3_end;
2017 tmp3_end: ;
2018 }
2019 goto goto_2;
2020 goto_2:;
2021 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2022 goto tmp3_done;
2023 tmp3_done:;
2024 }
2025 }
2026 _bool = tmp1;
2027 _return: OMC_LABEL_UNUSED__attribute__((unused))
2028 return _bool;
2029}
2030modelica_metatype boxptr_Util_isSuccess(threadData_t *threadData, modelica_metatype _status)
2031{
2032 modelica_boolean _bool;
2033 modelica_metatype out_bool;
2034 _bool = omc_Util_isSuccess(threadData, _status);
2035 out_bool = mmc_mk_icon(_bool);
2036 return out_bool;
2037}
2038
2039DLLExport
2040modelica_metatype omc_Util_getCurrentDateTime(threadData_t *threadData)
2041{
2042 modelica_metatype _dt = NULL((void*)0);
2043 modelica_integer _sec;
2044 modelica_integer _min;
2045 modelica_integer _hour;
2046 modelica_integer _mday;
2047 modelica_integer _mon;
2048 modelica_integer _year;
2049 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2050 MMC_SO()mmc_check_stackoverflow(threadData);
2051 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2052 // _dt has no default value.
2053 // _sec has no default value.
2054 // _min has no default value.
2055 // _hour has no default value.
2056 // _mday has no default value.
2057 // _mon has no default value.
2058 // _year has no default value.
2059#line 1073 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2060 _sec = omc_System_getCurrentDateTime(threadData ,&_min ,&_hour ,&_mday ,&_mon ,&_year);
2061#line 2061 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2062
2063#line 1074 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2064 tmpMeta[0] = mmc_mk_box7(3, &Util_DateTime_DATETIME__desc, mmc_mk_integermmc_mk_icon(_sec), mmc_mk_integermmc_mk_icon(_min), mmc_mk_integermmc_mk_icon(_hour), mmc_mk_integermmc_mk_icon(_mday), mmc_mk_integermmc_mk_icon(_mon), mmc_mk_integermmc_mk_icon(_year));
2065#line 1074 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2066 _dt = tmpMeta[0];
2067#line 2067 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2068 _return: OMC_LABEL_UNUSED__attribute__((unused))
2069 return _dt;
2070}
2071
2072DLLExport
2073modelica_string omc_Util_stringAppendNonEmpty(threadData_t *threadData, modelica_string _inString1, modelica_string _inString2)
2074{
2075 modelica_string _outString = NULL((void*)0);
2076 modelica_string tmp1 = 0;
2077 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2078 MMC_SO()mmc_check_stackoverflow(threadData);
2079 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2080 // _outString has no default value.
2081#line 2081 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2082 { /* match expression */
2083 modelica_string tmp4_1;
2084 tmp4_1 = _inString2;
2085 {
2086 volatile mmc_switch_type tmp4;
2087 int tmp5;
2088 tmp4 = 0;
2089 for (; tmp4 < 2; tmp4++) {
2090 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2091 case 0: {
2092 if (0 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT6)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT6).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_end;
2093 /* Pattern matching succeeded */
2094#line 1058 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2095 tmp1 = _inString2;
2096#line 2096 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2097 goto tmp3_done;
2098 }
2099 case 1: {
2100
2101 /* Pattern matching succeeded */
2102#line 1059 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2103 tmpMeta[0] = stringAppend(_inString1,_inString2);
2104#line 1059 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2105 tmp1 = tmpMeta[0];
2106#line 2106 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2107 goto tmp3_done;
2108 }
2109 }
2110 goto tmp3_end;
2111 tmp3_end: ;
2112 }
2113 goto goto_2;
2114 goto_2:;
2115 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2116 goto tmp3_done;
2117 tmp3_done:;
2118 }
2119 }
2120 _outString = tmp1;
2121 _return: OMC_LABEL_UNUSED__attribute__((unused))
2122 return _outString;
2123}
2124
2125DLLExport
2126modelica_string omc_Util_stringAppendReverse(threadData_t *threadData, modelica_string _str1, modelica_string _str2)
2127{
2128 modelica_string _str = NULL((void*)0);
2129 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2130 MMC_SO()mmc_check_stackoverflow(threadData);
2131 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2132 tmpMeta[0] = stringAppend(_str2,_str1);
2133 _str = tmpMeta[0];
2134 _return: OMC_LABEL_UNUSED__attribute__((unused))
2135 return _str;
2136}
2137
2138DLLExport
2139modelica_boolean omc_Util_strcmpBool(threadData_t *threadData, modelica_string _s1, modelica_string _s2)
2140{
2141 modelica_boolean _b;
2142 MMC_SO()mmc_check_stackoverflow(threadData);
2143 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2144 _b = (stringCompare(_s1, _s2)mmc_stringCompare(_s1,_s2) > ((modelica_integer) 0));
2145 _return: OMC_LABEL_UNUSED__attribute__((unused))
2146 return _b;
2147}
2148modelica_metatype boxptr_Util_strcmpBool(threadData_t *threadData, modelica_metatype _s1, modelica_metatype _s2)
2149{
2150 modelica_boolean _b;
2151 modelica_metatype out_b;
2152 _b = omc_Util_strcmpBool(threadData, _s1, _s2);
2153 out_b = mmc_mk_icon(_b);
2154 return out_b;
2155}
2156
2157DLLExport
2158modelica_string omc_Util_xmlEscape(threadData_t *threadData, modelica_string _s1)
2159{
2160 modelica_string _s2 = NULL((void*)0);
2161 MMC_SO()mmc_check_stackoverflow(threadData);
2162 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2163 // _s2 has no default value.
2164#line 1031 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2165 _s2 = omc_Util_stringReplaceChar(threadData, _s1, _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)), _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)));
2166#line 2166 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2167
2168#line 1032 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2169 _s2 = omc_Util_stringReplaceChar(threadData, _s2, _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)), _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)));
2170#line 2170 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2171
2172#line 1033 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2173 _s2 = omc_Util_stringReplaceChar(threadData, _s2, _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)), _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)));
2174#line 2174 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2175
2176#line 1034 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2177 _s2 = omc_Util_stringReplaceChar(threadData, _s2, _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)), _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)));
2178#line 2178 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2179 _return: OMC_LABEL_UNUSED__attribute__((unused))
2180 return _s2;
2181}
2182
2183DLLExport
2184modelica_metatype omc_Util_makeValueOrDefault(threadData_t *threadData, modelica_fnptr _inFunc, modelica_metatype _inArg, modelica_metatype _inDefaultValue)
2185{
2186 modelica_metatype _outValue = NULL((void*)0);
2187 MMC_SO()mmc_check_stackoverflow(threadData);
2188 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2189 // _outValue has no default value.
2190#line 2190 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2191 { /* matchcontinue expression */
2192 {
2193 volatile mmc_switch_type tmp3;
2194 int tmp4;
2195 tmp3 = 0;
2196 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) {
2197 tmp2_top:
2198 threadData->mmc_jumper = &new_mmc_jumper;
2199 for (; tmp3 < 2; tmp3++) {
2200 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2201 case 0: {
2202 /* Pattern matching succeeded */
2203#line 1021 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2204 _outValue = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
), _inArg) : ((modelica_metatype(*)(threadData_t*, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, _inArg);
2205#line 2205 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2206#line 2206 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2207 goto tmp2_done;
2208 }
2209 case 1: {
2210 /* Pattern matching succeeded */
2211#line 1023 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2212 _outValue = _inDefaultValue;
2213#line 2213 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2214#line 2214 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2215 goto tmp2_done;
2216 }
2217 }
2218 goto tmp2_end;
2219 tmp2_end: ;
2220 }
2221 goto goto_1;
2222 tmp2_done:
2223 (void)tmp3;
2224 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2225 goto tmp2_done2;
2226 goto_1:;
2227 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2228 if (++tmp3 < 2) {
2229 goto tmp2_top;
2230 }
2231 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2232 tmp2_done2:;
2233 }
2234 }
2235 ;
2236 _return: OMC_LABEL_UNUSED__attribute__((unused))
2237 return _outValue;
2238}
2239
2240DLLExport
2241modelica_boolean omc_Util_optionEqual(threadData_t *threadData, modelica_metatype _inOption1, modelica_metatype _inOption2, modelica_fnptr _inFunc)
2242{
2243 modelica_boolean _outEqual;
2244 modelica_boolean tmp1 = 0;
2245 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2246 MMC_SO()mmc_check_stackoverflow(threadData);
2247 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2248 // _outEqual has no default value.
2249#line 2249 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2250 { /* match expression */
2251 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
2252 tmp4_1 = _inOption1;
2253 tmp4_2 = _inOption2;
2254 {
2255 modelica_metatype _val1 = NULL((void*)0);
2256 modelica_metatype _val2 = NULL((void*)0);
2257 volatile mmc_switch_type tmp4;
2258 int tmp5;
2259 // _val1 has no default value.
2260 // _val2 has no default value.
2261 tmp4 = 0;
2262 for (; tmp4 < 3; tmp4++) {
2263 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2264 case 0: {
2265 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
2266 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
2267 if (optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
2268 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
2269 _val1 = tmpMeta[0];
2270 _val2 = tmpMeta[1];
2271 /* Pattern matching succeeded */
2272#line 1002 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2273 tmp1 = mmc_unbox_boolean((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1)))) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))), _val1, _val2) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1)))) (threadData, _val1, _val2))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_inFunc) - 3))) + (2)))))) ? ((modelica_metatype(*)(threadData_t
*, modelica_metatype, modelica_metatype, modelica_metatype)) (
(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1))))))) (threadData, ((*(void**)(((void*)((void**)(((void
*)((char*)(_inFunc) - 3))) + (2)))))), _val1, _val2) : ((modelica_metatype
(*)(threadData_t*, modelica_metatype, modelica_metatype)) ((*
(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3))) +
(1))))))) (threadData, _val1, _val2))) >> 1)
;
2274#line 2274 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2275 goto tmp3_done;
2276 }
2277 case 1: {
2278 if (!optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
2279 if (!optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
2280 /* Pattern matching succeeded */
2281#line 1003 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2282 tmp1 = 1;
2283#line 2283 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2284 goto tmp3_done;
2285 }
2286 case 2: {
2287
2288 /* Pattern matching succeeded */
2289#line 1004 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2290 tmp1 = 0;
2291#line 2291 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2292 goto tmp3_done;
2293 }
2294 }
2295 goto tmp3_end;
2296 tmp3_end: ;
2297 }
2298 goto goto_2;
2299 goto_2:;
2300 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2301 goto tmp3_done;
2302 tmp3_done:;
2303 }
2304 }
2305 _outEqual = tmp1;
2306 _return: OMC_LABEL_UNUSED__attribute__((unused))
2307 return _outEqual;
2308}
2309modelica_metatype boxptr_Util_optionEqual(threadData_t *threadData, modelica_metatype _inOption1, modelica_metatype _inOption2, modelica_fnptr _inFunc)
2310{
2311 modelica_boolean _outEqual;
2312 modelica_metatype out_outEqual;
2313 _outEqual = omc_Util_optionEqual(threadData, _inOption1, _inOption2, _inFunc);
2314 out_outEqual = mmc_mk_icon(_outEqual);
2315 return out_outEqual;
2316}
2317
2318DLLExport
2319void omc_Util_setStatefulBoolean(threadData_t *threadData, modelica_metatype _sb, modelica_boolean _b)
2320{
2321 MMC_SO()mmc_check_stackoverflow(threadData);
2322 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2323#line 981 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2324 arrayUpdate(_sb, ((modelica_integer) 1), mmc_mk_boolean(_b))boxptr_arrayUpdate(threadData,_sb,mmc_mk_icon(((modelica_integer
) 1)),((_b) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))))
;
2325#line 2325 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2326 _return: OMC_LABEL_UNUSED__attribute__((unused))
2327 return;
2328}
2329void boxptr_Util_setStatefulBoolean(threadData_t *threadData, modelica_metatype _sb, modelica_metatype _b)
2330{
2331 modelica_integer tmp1;
2332 tmp1 = mmc_unbox_integer(_b)(((mmc_sint_t) (_b)) >> 1);
2333 omc_Util_setStatefulBoolean(threadData, _sb, tmp1);
2334 return;
2335}
2336
2337DLLExport
2338modelica_boolean omc_Util_getStatefulBoolean(threadData_t *threadData, modelica_metatype _sb)
2339{
2340 modelica_boolean _b;
2341 MMC_SO()mmc_check_stackoverflow(threadData);
2342 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2343 _b = mmc_unbox_boolean(arrayGet(_sb,((modelica_integer) 1)) /* DAE.ASUB */)(((mmc_sint_t) (nobox_arrayGet(threadData,_sb,((modelica_integer
) 1)))) >> 1)
;
2344 _return: OMC_LABEL_UNUSED__attribute__((unused))
2345 return _b;
2346}
2347modelica_metatype boxptr_Util_getStatefulBoolean(threadData_t *threadData, modelica_metatype _sb)
2348{
2349 modelica_boolean _b;
2350 modelica_metatype out_b;
2351 _b = omc_Util_getStatefulBoolean(threadData, _sb);
2352 out_b = mmc_mk_icon(_b);
2353 return out_b;
2354}
2355
2356DLLExport
2357modelica_metatype omc_Util_makeStatefulBoolean(threadData_t *threadData, modelica_boolean _b)
2358{
2359 modelica_metatype _sb = NULL((void*)0);
2360 MMC_SO()mmc_check_stackoverflow(threadData);
2361 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2362 _sb = arrayCreate(((modelica_integer) 1), mmc_mk_boolean(_b)((_b) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
2363 _return: OMC_LABEL_UNUSED__attribute__((unused))
2364 return _sb;
2365}
2366modelica_metatype boxptr_Util_makeStatefulBoolean(threadData_t *threadData, modelica_metatype _b)
2367{
2368 modelica_integer tmp1;
2369 modelica_metatype _sb = NULL((void*)0);
2370 tmp1 = mmc_unbox_integer(_b)(((mmc_sint_t) (_b)) >> 1);
2371 _sb = omc_Util_makeStatefulBoolean(threadData, tmp1);
2372 /* skip box _sb; array<#Boolean> */
2373 return _sb;
2374}
2375
2376DLLExport
2377modelica_integer omc_Util_mulListIntegerOpt(threadData_t *threadData, modelica_metatype _inList, modelica_integer _inAccum)
2378{
2379 modelica_integer _outResult;
2380 modelica_integer tmp1 = 0;
2381 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
2382 MMC_SO()mmc_check_stackoverflow(threadData);
2383 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2384 // _outResult has no default value.
2385#line 2385 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2386 { /* match expression */
2387 modelica_metatype tmp4_1;
2388 tmp4_1 = _inList;
2389 {
2390 modelica_integer _i;
2391 modelica_metatype _rest = NULL((void*)0);
2392 volatile mmc_switch_type tmp4;
2393 int tmp5;
2394 // _i has no default value.
2395 // _rest has no default value.
2396 tmp4 = 0;
2397 for (; tmp4 < 3; tmp4++) {
2398 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2399 case 0: {
2400 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2401 /* Pattern matching succeeded */
2402#line 956 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2403 tmp1 = _inAccum;
2404#line 2404 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2405 goto tmp3_done;
2406 }
2407 case 1: {
2408 modelica_integer tmp6;
2409 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2410 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
2411 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2412 if (optionNone(tmpMeta[0])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[0]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
2413 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2414 tmp6 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
2415 _i = tmp6 /* pattern as ty=Integer */;
2416 _rest = tmpMeta[1];
2417 /* Pattern matching succeeded */
2418#line 957 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2419 /* Tail recursive call */
2420#line 957 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2421 _inList = _rest;
2422#line 957 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2423 _inAccum = (_i) * (_inAccum);
2424#line 957 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2425 goto _tailrecursive;
2426#line 957 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2427 /* TODO: Make sure any eventual dead code below is never generated */
2428#line 2428 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2429 goto tmp3_done;
2430 }
2431 case 2: {
2432 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2433 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
2434 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2435 if (!optionNone(tmpMeta[0])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[0]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
2436 _rest = tmpMeta[1];
2437 /* Pattern matching succeeded */
2438#line 958 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2439 /* Tail recursive call */
2440#line 958 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2441 _inList = _rest;
2442#line 958 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2443 goto _tailrecursive;
2444#line 958 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2445 /* TODO: Make sure any eventual dead code below is never generated */
2446#line 2446 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2447 goto tmp3_done;
2448 }
2449 }
2450 goto tmp3_end;
2451 tmp3_end: ;
2452 }
2453 goto goto_2;
2454 goto_2:;
2455 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2456 goto tmp3_done;
2457 tmp3_done:;
2458 }
2459 }
2460 _outResult = tmp1;
2461 _return: OMC_LABEL_UNUSED__attribute__((unused))
2462 return _outResult;
2463}
2464modelica_metatype boxptr_Util_mulListIntegerOpt(threadData_t *threadData, modelica_metatype _inList, modelica_metatype _inAccum)
2465{
2466 modelica_integer tmp1;
2467 modelica_integer _outResult;
2468 modelica_metatype out_outResult;
2469 tmp1 = mmc_unbox_integer(_inAccum)(((mmc_sint_t) (_inAccum)) >> 1);
2470 _outResult = omc_Util_mulListIntegerOpt(threadData, _inList, tmp1);
2471 out_outResult = mmc_mk_icon(_outResult);
2472 return out_outResult;
2473}
2474
2475DLLExport
2476modelica_metatype omc_Util_make3Tuple(threadData_t *threadData, modelica_metatype _inValue1, modelica_metatype _inValue2, modelica_metatype _inValue3)
2477{
2478 modelica_metatype _outTuple = NULL((void*)0);
2479 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2480 MMC_SO()mmc_check_stackoverflow(threadData);
2481 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2482 tmpMeta[0] = mmc_mk_box3(0, _inValue1, _inValue2, _inValue3);
2483 _outTuple = tmpMeta[0];
2484 _return: OMC_LABEL_UNUSED__attribute__((unused))
2485 return _outTuple;
2486}
2487
2488DLLExport
2489modelica_metatype omc_Util_makeTupleR(threadData_t *threadData, modelica_metatype _inValue1, modelica_metatype _inValue2)
2490{
2491 modelica_metatype _outTuple = NULL((void*)0);
2492 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2493 MMC_SO()mmc_check_stackoverflow(threadData);
2494 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2495 tmpMeta[0] = mmc_mk_box2(0, _inValue2, _inValue1);
2496 _outTuple = tmpMeta[0];
2497 _return: OMC_LABEL_UNUSED__attribute__((unused))
2498 return _outTuple;
2499}
2500
2501DLLExport
2502modelica_metatype omc_Util_makeTuple(threadData_t *threadData, modelica_metatype _inValue1, modelica_metatype _inValue2)
2503{
2504 modelica_metatype _outTuple = NULL((void*)0);
2505 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2506 MMC_SO()mmc_check_stackoverflow(threadData);
2507 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2508 tmpMeta[0] = mmc_mk_box2(0, _inValue1, _inValue2);
2509 _outTuple = tmpMeta[0];
2510 _return: OMC_LABEL_UNUSED__attribute__((unused))
2511 return _outTuple;
2512}
2513
2514DLLExport
2515modelica_string omc_Util_escapeModelicaStringToXmlString(threadData_t *threadData, modelica_string _modelicaString)
2516{
2517 modelica_string _xmlString = NULL((void*)0);
2518 MMC_SO()mmc_check_stackoverflow(threadData);
2519 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2520 // _xmlString has no default value.
2521#line 913 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2522 _xmlString = omc_System_stringReplace(threadData, _modelicaString, _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)), _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)));
2523#line 2523 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2524
2525#line 914 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2526 _xmlString = omc_System_stringReplace(threadData, _xmlString, _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)), _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)));
2527#line 2527 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2528
2529#line 915 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2530 _xmlString = omc_System_stringReplace(threadData, _xmlString, _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)), _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)));
2531#line 2531 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2532
2533#line 916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2534 _xmlString = omc_System_stringReplace(threadData, _xmlString, _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)), _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)));
2535#line 2535 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2536 _return: OMC_LABEL_UNUSED__attribute__((unused))
2537 return _xmlString;
2538}
2539
2540DLLExport
2541modelica_string omc_Util_escapeModelicaStringToJLString(threadData_t *threadData, modelica_string _modelicaString)
2542{
2543 modelica_string _cString = NULL((void*)0);
2544 MMC_SO()mmc_check_stackoverflow(threadData);
2545 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2546 // _cString has no default value.
2547#line 901 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2548 _cString = omc_System_stringReplace(threadData, _modelicaString, _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)), _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)));
2549#line 2549 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2550
2551#line 902 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2552 _cString = omc_System_stringReplace(threadData, _cString, _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)), _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)));
2553#line 2553 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2554
2555#line 903 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2556 _cString = omc_System_stringReplace(threadData, _cString, _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)), _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)));
2557#line 2557 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2558
2559#line 904 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2560 _cString = omc_System_stringReplace(threadData, _cString, _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)), _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)));
2561#line 2561 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2562
2563#line 905 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2564 _cString = omc_System_escapedString(threadData, _cString, 1);
2565#line 2565 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2566 _return: OMC_LABEL_UNUSED__attribute__((unused))
2567 return _cString;
2568}
2569
2570DLLExport
2571modelica_string omc_Util_escapeModelicaStringToCString(threadData_t *threadData, modelica_string _modelicaString)
2572{
2573 modelica_string _cString = NULL((void*)0);
2574 MMC_SO()mmc_check_stackoverflow(threadData);
2575 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2576 // _cString has no default value.
2577#line 893 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2578 _cString = omc_System_escapedString(threadData, _modelicaString, 1);
2579#line 2579 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2580 _return: OMC_LABEL_UNUSED__attribute__((unused))
2581 return _cString;
2582}
2583
2584DLLExport
2585modelica_string omc_Util_rawStringToInputString(threadData_t *threadData, modelica_string _inString)
2586{
2587 modelica_string _outString = NULL((void*)0);
2588 MMC_SO()mmc_check_stackoverflow(threadData);
2589 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2590 // _outString has no default value.
2591#line 884 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2592 _outString = omc_System_stringReplace(threadData, _inString, _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)), _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)));
2593#line 2593 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2594
2595#line 885 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2596 _outString = omc_System_stringReplace(threadData, _outString, _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)), _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)));
2597#line 2597 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2598 _return: OMC_LABEL_UNUSED__attribute__((unused))
2599 return _outString;
2600}
2601
2602DLLExport
2603modelica_string omc_Util_getAbsoluteDirectoryAndFile(threadData_t *threadData, modelica_string _filename, modelica_string *out_basename)
2604{
2605 modelica_string _dirname = NULL((void*)0);
2606 modelica_string _basename = NULL((void*)0);
2607 modelica_string _realpath = NULL((void*)0);
2608 MMC_SO()mmc_check_stackoverflow(threadData);
2609 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2610 // _dirname has no default value.
2611 // _basename has no default value.
2612 // _realpath has no default value.
2613#line 873 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2614 _realpath = omc_System_realpath(threadData, _filename);
2615#line 2615 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2616
2617#line 874 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2618 _dirname = omc_System_dirname(threadData, _realpath);
2619#line 2619 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2620
2621#line 875 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2622 _basename = omc_System_basename(threadData, _realpath);
2623#line 2623 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2624
2625#line 876 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2626 _dirname = omc_Util_replaceWindowsBackSlashWithPathDelimiter(threadData, _dirname);
2627#line 2627 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2628 _return: OMC_LABEL_UNUSED__attribute__((unused))
2629 if (out_basename) { *out_basename = _basename; }
2630 return _dirname;
2631}
2632
2633DLLExport
2634modelica_string omc_Util_replaceWindowsBackSlashWithPathDelimiter(threadData_t *threadData, modelica_string _inPath)
2635{
2636 modelica_string _outPath = NULL((void*)0);
2637 MMC_SO()mmc_check_stackoverflow(threadData);
2638 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2639 // _outPath has no default value.
2640#line 859 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2641 _outPath = _inPath;
2642#line 2642 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2643 _return: OMC_LABEL_UNUSED__attribute__((unused))
2644 return _outPath;
2645}
2646
2647DLLExport
2648modelica_string omc_Util_tickStr(threadData_t *threadData)
2649{
2650 modelica_string _s = NULL((void*)0);
2651 MMC_SO()mmc_check_stackoverflow(threadData);
2652 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2653 _s = intString(tick());
2654 _return: OMC_LABEL_UNUSED__attribute__((unused))
2655 return _s;
2656}
2657
2658DLLExport
2659modelica_boolean omc_Util_notStrncmp(threadData_t *threadData, modelica_string _inString1, modelica_string _inString2, modelica_integer _inLength)
2660{
2661 modelica_boolean _outEqual;
2662 MMC_SO()mmc_check_stackoverflow(threadData);
2663 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2664 // _outEqual has no default value.
2665#line 842 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2666 _outEqual = (((modelica_integer) 0) != omc_System_strncmp(threadData, _inString1, _inString2, _inLength));
2667#line 2667 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2668 _return: OMC_LABEL_UNUSED__attribute__((unused))
2669 return _outEqual;
2670}
2671modelica_metatype boxptr_Util_notStrncmp(threadData_t *threadData, modelica_metatype _inString1, modelica_metatype _inString2, modelica_metatype _inLength)
2672{
2673 modelica_integer tmp1;
2674 modelica_boolean _outEqual;
2675 modelica_metatype out_outEqual;
2676 tmp1 = mmc_unbox_integer(_inLength)(((mmc_sint_t) (_inLength)) >> 1);
2677 _outEqual = omc_Util_notStrncmp(threadData, _inString1, _inString2, tmp1);
2678 out_outEqual = mmc_mk_icon(_outEqual);
2679 return out_outEqual;
2680}
2681
2682DLLExport
2683modelica_boolean omc_Util_strncmp(threadData_t *threadData, modelica_string _inString1, modelica_string _inString2, modelica_integer _inLength)
2684{
2685 modelica_boolean _outEqual;
2686 MMC_SO()mmc_check_stackoverflow(threadData);
2687 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2688 // _outEqual has no default value.
2689#line 831 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2690 _outEqual = (((modelica_integer) 0) == omc_System_strncmp(threadData, _inString1, _inString2, _inLength));
2691#line 2691 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2692 _return: OMC_LABEL_UNUSED__attribute__((unused))
2693 return _outEqual;
2694}
2695modelica_metatype boxptr_Util_strncmp(threadData_t *threadData, modelica_metatype _inString1, modelica_metatype _inString2, modelica_metatype _inLength)
2696{
2697 modelica_integer tmp1;
2698 modelica_boolean _outEqual;
2699 modelica_metatype out_outEqual;
2700 tmp1 = mmc_unbox_integer(_inLength)(((mmc_sint_t) (_inLength)) >> 1);
2701 _outEqual = omc_Util_strncmp(threadData, _inString1, _inString2, tmp1);
2702 out_outEqual = mmc_mk_icon(_outEqual);
2703 return out_outEqual;
2704}
2705
2706DLLExport
2707modelica_boolean omc_Util_stringStartsWith(threadData_t *threadData, modelica_string _inString1, modelica_string _inString2)
2708{
2709 modelica_boolean _outEqual;
2710 MMC_SO()mmc_check_stackoverflow(threadData);
2711 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2712 // _outEqual has no default value.
2713#line 821 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2714 _outEqual = (((modelica_integer) 0) == omc_System_strncmp(threadData, _inString1, _inString2, stringLength(_inString1)(((((*(mmc_uint_t*)((void*)((char*)(_inString1) - 3)))) >>
(3)) - 8))
));
2715#line 2715 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2716 _return: OMC_LABEL_UNUSED__attribute__((unused))
2717 return _outEqual;
2718}
2719modelica_metatype boxptr_Util_stringStartsWith(threadData_t *threadData, modelica_metatype _inString1, modelica_metatype _inString2)
2720{
2721 modelica_boolean _outEqual;
2722 modelica_metatype out_outEqual;
2723 _outEqual = omc_Util_stringStartsWith(threadData, _inString1, _inString2);
2724 out_outEqual = mmc_mk_icon(_outEqual);
2725 return out_outEqual;
2726}
2727
2728DLLExport
2729void omc_Util_writeFileOrErrorMsg(threadData_t *threadData, modelica_string _inFilename, modelica_string _inString)
2730{
2731 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2732 MMC_SO()mmc_check_stackoverflow(threadData);
2733 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2734#line 2734 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2735 { /* matchcontinue expression */
2736 {
2737 volatile mmc_switch_type tmp3;
2738 int tmp4;
2739 tmp3 = 0;
2740 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) {
2741 tmp2_top:
2742 threadData->mmc_jumper = &new_mmc_jumper;
2743 for (; tmp3 < 2; tmp3++) {
2744 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2745 case 0: {
2746 /* Pattern matching succeeded */
2747#line 810 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2748 omc_System_writeFile(threadData, _inFilename, _inString);
2749#line 2749 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2750#line 2750 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2751 goto tmp2_done;
2752 }
2753 case 1: {
2754 /* Pattern matching succeeded */
2755#line 812 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2756 tmpMeta[0] = stringAppend(_OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)),_inFilename);
2757#line 812 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2758 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)));
2759#line 812 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2760 omc_Print_printErrorBuf(threadData, tmpMeta[1]);
2761#line 2761 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2762#line 2762 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2763 goto tmp2_done;
2764 }
2765 }
2766 goto tmp2_end;
2767 tmp2_end: ;
2768 }
2769 goto goto_1;
2770 tmp2_done:
2771 (void)tmp3;
2772 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2773 goto tmp2_done2;
2774 goto_1:;
2775 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2776 if (++tmp3 < 2) {
2777 goto tmp2_top;
2778 }
2779 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2780 tmp2_done2:;
2781 }
2782 }
2783 ;
2784 _return: OMC_LABEL_UNUSED__attribute__((unused))
2785 return;
2786}
2787
2788DLLExport
2789modelica_boolean omc_Util_isNotEmptyString(threadData_t *threadData, modelica_string _inString)
2790{
2791 modelica_boolean _outIsNotEmpty;
2792 MMC_SO()mmc_check_stackoverflow(threadData);
2793 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2794 _outIsNotEmpty = (stringLength(_inString)(((((*(mmc_uint_t*)((void*)((char*)(_inString) - 3)))) >>
(3)) - 8))
> ((modelica_integer) 0));
2795 _return: OMC_LABEL_UNUSED__attribute__((unused))
2796 return _outIsNotEmpty;
2797}
2798modelica_metatype boxptr_Util_isNotEmptyString(threadData_t *threadData, modelica_metatype _inString)
2799{
2800 modelica_boolean _outIsNotEmpty;
2801 modelica_metatype out_outIsNotEmpty;
2802 _outIsNotEmpty = omc_Util_isNotEmptyString(threadData, _inString);
2803 out_outIsNotEmpty = mmc_mk_icon(_outIsNotEmpty);
2804 return out_outIsNotEmpty;
2805}
2806
2807DLLExport
2808modelica_integer omc_Util_boolCompare(threadData_t *threadData, modelica_boolean _inN, modelica_boolean _inM)
2809{
2810 modelica_integer _outResult;
2811 MMC_SO()mmc_check_stackoverflow(threadData);
2812 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2813 _outResult = (((!_inN && !_inM) || (_inN && _inM))?((modelica_integer) 0):((_inN && !_inM)?((modelica_integer) 1):((modelica_integer) -1)));
2814 _return: OMC_LABEL_UNUSED__attribute__((unused))
2815 return _outResult;
2816}
2817modelica_metatype boxptr_Util_boolCompare(threadData_t *threadData, modelica_metatype _inN, modelica_metatype _inM)
2818{
2819 modelica_integer tmp1;
2820 modelica_integer tmp2;
2821 modelica_integer _outResult;
2822 modelica_metatype out_outResult;
2823 tmp1 = mmc_unbox_integer(_inN)(((mmc_sint_t) (_inN)) >> 1);
2824 tmp2 = mmc_unbox_integer(_inM)(((mmc_sint_t) (_inM)) >> 1);
2825 _outResult = omc_Util_boolCompare(threadData, tmp1, tmp2);
2826 out_outResult = mmc_mk_icon(_outResult);
2827 return out_outResult;
2828}
2829
2830DLLExport
2831modelica_integer omc_Util_realCompare(threadData_t *threadData, modelica_real _inN, modelica_real _inM)
2832{
2833 modelica_integer _outResult;
2834 MMC_SO()mmc_check_stackoverflow(threadData);
2835 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2836 _outResult = ((_inN == _inM)?((modelica_integer) 0):((_inN > _inM)?((modelica_integer) 1):((modelica_integer) -1)));
2837 _return: OMC_LABEL_UNUSED__attribute__((unused))
2838 return _outResult;
2839}
2840modelica_metatype boxptr_Util_realCompare(threadData_t *threadData, modelica_metatype _inN, modelica_metatype _inM)
2841{
2842 modelica_real tmp1;
2843 modelica_real tmp2;
2844 modelica_integer _outResult;
2845 modelica_metatype out_outResult;
2846 tmp1 = mmc_unbox_real(_inN)mmc_prim_get_real(_inN);
2847 tmp2 = mmc_unbox_real(_inM)mmc_prim_get_real(_inM);
2848 _outResult = omc_Util_realCompare(threadData, tmp1, tmp2);
2849 out_outResult = mmc_mk_icon(_outResult);
2850 return out_outResult;
2851}
2852
2853DLLExport
2854modelica_integer omc_Util_intPow(threadData_t *threadData, modelica_integer _base, modelica_integer _exponent)
2855{
2856 modelica_integer _result;
2857 modelica_integer tmp1;
2858 modelica_integer tmp2;
2859 modelica_integer tmp3;
2860 MMC_SO()mmc_check_stackoverflow(threadData);
2861 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2862 _result = ((modelica_integer) 1);
2863#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2864 if((_exponent >= ((modelica_integer) 0)))
2865#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2866 {
2867#line 775 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2868 tmp1 = ((modelica_integer) 1); tmp2 = 1; tmp3 = _exponent;
2869#line 775 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2870 if(!(((tmp2 > 0) && (tmp1 > tmp3)) || ((tmp2 < 0) && (tmp1 < tmp3))))
2871#line 775 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2872 {
2873#line 775 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2874 modelica_integer _i;
2875#line 775 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2876 for(_i = ((modelica_integer) 1); in_range_integer(_i, tmp1, tmp3); _i += tmp2)
2877#line 775 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2878 {
2879#line 776 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2880 _result = (_result) * (_base);
2881#line 2881 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2882 }
2883 }
2884 }
2885 else
2886 {
2887#line 779 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
2888 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2889#line 2889 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
2890 }
2891 _return: OMC_LABEL_UNUSED__attribute__((unused))
2892 return _result;
2893}
2894modelica_metatype boxptr_Util_intPow(threadData_t *threadData, modelica_metatype _base, modelica_metatype _exponent)
2895{
2896 modelica_integer tmp1;
2897 modelica_integer tmp2;
2898 modelica_integer _result;
2899 modelica_metatype out_result;
2900 tmp1 = mmc_unbox_integer(_base)(((mmc_sint_t) (_base)) >> 1);
2901 tmp2 = mmc_unbox_integer(_exponent)(((mmc_sint_t) (_exponent)) >> 1);
2902 _result = omc_Util_intPow(threadData, tmp1, tmp2);
2903 out_result = mmc_mk_icon(_result);
2904 return out_result;
2905}
2906
2907DLLExport
2908modelica_integer omc_Util_intCompare(threadData_t *threadData, modelica_integer _inN, modelica_integer _inM)
2909{
2910 modelica_integer _outResult;
2911 MMC_SO()mmc_check_stackoverflow(threadData);
2912 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2913 _outResult = ((_inN == _inM)?((modelica_integer) 0):((_inN > _inM)?((modelica_integer) 1):((modelica_integer) -1)));
2914 _return: OMC_LABEL_UNUSED__attribute__((unused))
2915 return _outResult;
2916}
2917modelica_metatype boxptr_Util_intCompare(threadData_t *threadData, modelica_metatype _inN, modelica_metatype _inM)
2918{
2919 modelica_integer tmp1;
2920 modelica_integer tmp2;
2921 modelica_integer _outResult;
2922 modelica_metatype out_outResult;
2923 tmp1 = mmc_unbox_integer(_inN)(((mmc_sint_t) (_inN)) >> 1);
2924 tmp2 = mmc_unbox_integer(_inM)(((mmc_sint_t) (_inM)) >> 1);
2925 _outResult = omc_Util_intCompare(threadData, tmp1, tmp2);
2926 out_outResult = mmc_mk_icon(_outResult);
2927 return out_outResult;
2928}
2929
2930DLLExport
2931modelica_integer omc_Util_intSign(threadData_t *threadData, modelica_integer _i)
2932{
2933 modelica_integer _o;
2934 MMC_SO()mmc_check_stackoverflow(threadData);
2935 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2936 _o = ((_i == ((modelica_integer) 0))?((modelica_integer) 0):((_i > ((modelica_integer) 0))?((modelica_integer) 1):((modelica_integer) -1)));
2937 _return: OMC_LABEL_UNUSED__attribute__((unused))
2938 return _o;
2939}
2940modelica_metatype boxptr_Util_intSign(threadData_t *threadData, modelica_metatype _i)
2941{
2942 modelica_integer tmp1;
2943 modelica_integer _o;
2944 modelica_metatype out_o;
2945 tmp1 = mmc_unbox_integer(_i)(((mmc_sint_t) (_i)) >> 1);
2946 _o = omc_Util_intSign(threadData, tmp1);
2947 out_o = mmc_mk_icon(_o);
2948 return out_o;
2949}
2950
2951DLLExport
2952modelica_boolean omc_Util_intNegative(threadData_t *threadData, modelica_integer _v)
2953{
2954 modelica_boolean _res;
2955 MMC_SO()mmc_check_stackoverflow(threadData);
2956 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2957 _res = (_v < ((modelica_integer) 0));
2958 _return: OMC_LABEL_UNUSED__attribute__((unused))
2959 return _res;
2960}
2961modelica_metatype boxptr_Util_intNegative(threadData_t *threadData, modelica_metatype _v)
2962{
2963 modelica_integer tmp1;
2964 modelica_boolean _res;
2965 modelica_metatype out_res;
2966 tmp1 = mmc_unbox_integer(_v)(((mmc_sint_t) (_v)) >> 1);
2967 _res = omc_Util_intNegative(threadData, tmp1);
2968 out_res = mmc_mk_icon(_res);
2969 return out_res;
2970}
2971
2972DLLExport
2973modelica_boolean omc_Util_intPositive(threadData_t *threadData, modelica_integer _v)
2974{
2975 modelica_boolean _res;
2976 MMC_SO()mmc_check_stackoverflow(threadData);
2977 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2978 _res = (_v >= ((modelica_integer) 0));
2979 _return: OMC_LABEL_UNUSED__attribute__((unused))
2980 return _res;
2981}
2982modelica_metatype boxptr_Util_intPositive(threadData_t *threadData, modelica_metatype _v)
2983{
2984 modelica_integer tmp1;
2985 modelica_boolean _res;
2986 modelica_metatype out_res;
2987 tmp1 = mmc_unbox_integer(_v)(((mmc_sint_t) (_v)) >> 1);
2988 _res = omc_Util_intPositive(threadData, tmp1);
2989 out_res = mmc_mk_icon(_res);
2990 return out_res;
2991}
2992
2993DLLExport
2994modelica_boolean omc_Util_intGreaterZero(threadData_t *threadData, modelica_integer _v)
2995{
2996 modelica_boolean _res;
2997 MMC_SO()mmc_check_stackoverflow(threadData);
2998 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2999 _res = (_v > ((modelica_integer) 0));
3000 _return: OMC_LABEL_UNUSED__attribute__((unused))
3001 return _res;
3002}
3003modelica_metatype boxptr_Util_intGreaterZero(threadData_t *threadData, modelica_metatype _v)
3004{
3005 modelica_integer tmp1;
3006 modelica_boolean _res;
3007 modelica_metatype out_res;
3008 tmp1 = mmc_unbox_integer(_v)(((mmc_sint_t) (_v)) >> 1);
3009 _res = omc_Util_intGreaterZero(threadData, tmp1);
3010 out_res = mmc_mk_icon(_res);
3011 return out_res;
3012}
3013
3014DLLExport
3015modelica_metatype omc_Util_getOptionOrDefault(threadData_t *threadData, modelica_metatype _inOption, modelica_metatype _inDefault)
3016{
3017 modelica_metatype _outValue = NULL((void*)0);
3018 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3019 MMC_SO()mmc_check_stackoverflow(threadData);
3020 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3021 // _outValue has no default value.
3022#line 3022 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3023 { /* match expression */
3024 modelica_metatype tmp3_1;
3025 tmp3_1 = _inOption;
3026 {
3027 modelica_metatype _value = NULL((void*)0);
3028 volatile mmc_switch_type tmp3;
3029 int tmp4;
3030 // _value has no default value.
3031 tmp3 = 0;
3032 for (; tmp3 < 2; tmp3++) {
3033 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3034 case 0: {
3035 if (optionNone(tmp3_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
3036 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3037 _value = tmpMeta[1];
3038 /* Pattern matching succeeded */
3039#line 732 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3040 tmpMeta[0] = _value;
3041#line 3041 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3042 goto tmp2_done;
3043 }
3044 case 1: {
3045
3046 /* Pattern matching succeeded */
3047#line 733 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3048 tmpMeta[0] = _inDefault;
3049#line 3049 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3050 goto tmp2_done;
3051 }
3052 }
3053 goto tmp2_end;
3054 tmp2_end: ;
3055 }
3056 goto goto_1;
3057 goto_1:;
3058 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3059 goto tmp2_done;
3060 tmp2_done:;
3061 }
3062 }
3063 _outValue = tmpMeta[0];
3064 _return: OMC_LABEL_UNUSED__attribute__((unused))
3065 return _outValue;
3066}
3067
3068DLLExport
3069modelica_metatype omc_Util_getOption(threadData_t *threadData, modelica_metatype _inOption)
3070{
3071 modelica_metatype _outValue = NULL((void*)0);
3072 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3073 MMC_SO()mmc_check_stackoverflow(threadData);
3074 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3075 // _outValue has no default value.
3076#line 719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3077 /* Pattern-matching assignment */
3078#line 719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3079 tmpMeta[0] = _inOption;
3080#line 719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3081 if (optionNone(tmpMeta[0])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[0]) - 3)))) >> 10)) ? 1 : 0)
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3082#line 719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3083 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3084#line 719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3085 _outValue = tmpMeta[1];
3086#line 3086 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3087 _return: OMC_LABEL_UNUSED__attribute__((unused))
3088 return _outValue;
3089}
3090
3091DLLExport
3092modelica_string omc_Util_stringOption(threadData_t *threadData, modelica_metatype _inStringOption)
3093{
3094 modelica_string _outString = NULL((void*)0);
3095 modelica_string tmp1 = 0;
3096 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3097 MMC_SO()mmc_check_stackoverflow(threadData);
3098 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3099 // _outString has no default value.
3100#line 3100 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3101 { /* match expression */
3102 modelica_metatype tmp4_1;
3103 tmp4_1 = _inStringOption;
3104 {
3105 modelica_string _s = NULL((void*)0);
3106 volatile mmc_switch_type tmp4;
3107 int tmp5;
3108 // _s has no default value.
3109 tmp4 = 0;
3110 for (; tmp4 < 2; tmp4++) {
3111 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3112 case 0: {
3113 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
3114 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
3115 _s = tmpMeta[0];
3116 /* Pattern matching succeeded */
3117#line 709 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3118 tmp1 = _s;
3119#line 3119 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3120 goto tmp3_done;
3121 }
3122 case 1: {
3123
3124 /* Pattern matching succeeded */
3125#line 710 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3126 tmp1 = _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3));
3127#line 3127 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3128 goto tmp3_done;
3129 }
3130 }
3131 goto tmp3_end;
3132 tmp3_end: ;
3133 }
3134 goto goto_2;
3135 goto_2:;
3136 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3137 goto tmp3_done;
3138 tmp3_done:;
3139 }
3140 }
3141 _outString = tmp1;
3142 _return: OMC_LABEL_UNUSED__attribute__((unused))
3143 return _outString;
3144}
3145
3146DLLExport
3147modelica_metatype omc_Util_makeOptionOnTrue(threadData_t *threadData, modelica_boolean _inCondition, modelica_metatype _inValue)
3148{
3149 modelica_metatype _outOption = NULL((void*)0);
3150 MMC_SO()mmc_check_stackoverflow(threadData);
3151 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3152 _outOption = (_inCondition?mmc_mk_some(_inValue):mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
3153 _return: OMC_LABEL_UNUSED__attribute__((unused))
3154 return _outOption;
3155}
3156modelica_metatype boxptr_Util_makeOptionOnTrue(threadData_t *threadData, modelica_metatype _inCondition, modelica_metatype _inValue)
3157{
3158 modelica_integer tmp1;
3159 modelica_metatype _outOption = NULL((void*)0);
3160 tmp1 = mmc_unbox_integer(_inCondition)(((mmc_sint_t) (_inCondition)) >> 1);
3161 _outOption = omc_Util_makeOptionOnTrue(threadData, tmp1, _inValue);
3162 /* skip box _outOption; Option<polymorphic<T>> */
3163 return _outOption;
3164}
3165
3166DLLExport
3167modelica_metatype omc_Util_makeOption(threadData_t *threadData, modelica_metatype _inValue)
3168{
3169 modelica_metatype _outOption = NULL((void*)0);
3170 MMC_SO()mmc_check_stackoverflow(threadData);
3171 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3172 _outOption = mmc_mk_some(_inValue);
3173 _return: OMC_LABEL_UNUSED__attribute__((unused))
3174 return _outOption;
3175}
3176
3177DLLExport
3178modelica_metatype omc_Util_applyOption__2(threadData_t *threadData, modelica_metatype _inValue1, modelica_metatype _inValue2, modelica_fnptr _inFunc)
3179{
3180 modelica_metatype _outValue = NULL((void*)0);
3181 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3182 MMC_SO()mmc_check_stackoverflow(threadData);
3183 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3184 // _outValue has no default value.
3185#line 3185 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3186 { /* match expression */
3187 modelica_metatype tmp3_1;modelica_metatype tmp3_2;
3188 tmp3_1 = _inValue1;
3189 tmp3_2 = _inValue2;
3190 {
3191 volatile mmc_switch_type tmp3;
3192 int tmp4;
3193 tmp3 = 0;
3194 for (; tmp3 < 3; tmp3++) {
3195 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3196 case 0: {
3197 if (!optionNone(tmp3_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
3198
3199 /* Pattern matching succeeded */
3200#line 680 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3201 tmpMeta[0] = _inValue2;
3202#line 3202 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3203 goto tmp2_done;
3204 }
3205 case 1: {
3206 if (!optionNone(tmp3_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
3207
3208 /* Pattern matching succeeded */
3209#line 681 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3210 tmpMeta[0] = _inValue1;
3211#line 3211 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3212 goto tmp2_done;
3213 }
3214 case 2: {
3215
3216 /* Pattern matching succeeded */
3217#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3218 tmpMeta[0] = mmc_mk_some((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
), omc_Util_getOption(threadData, _inValue1), omc_Util_getOption(threadData, _inValue2)) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, omc_Util_getOption(threadData, _inValue1), omc_Util_getOption(threadData, _inValue2)));
3219#line 3219 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3220 goto tmp2_done;
3221 }
3222 }
3223 goto tmp2_end;
3224 tmp2_end: ;
3225 }
3226 goto goto_1;
3227 goto_1:;
3228 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3229 goto tmp2_done;
3230 tmp2_done:;
3231 }
3232 }
3233 _outValue = tmpMeta[0];
3234 _return: OMC_LABEL_UNUSED__attribute__((unused))
3235 return _outValue;
3236}
3237
3238DLLExport
3239modelica_metatype omc_Util_applyOptionOrDefault2(threadData_t *threadData, modelica_metatype _inValue, modelica_fnptr _inFunc, modelica_metatype _inArg1, modelica_metatype _inArg2, modelica_metatype _inDefaultValue)
3240{
3241 modelica_metatype _outValue = NULL((void*)0);
3242 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3243 MMC_SO()mmc_check_stackoverflow(threadData);
3244 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3245 // _outValue has no default value.
3246#line 3246 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3247 { /* match expression */
3248 modelica_metatype tmp3_1;
3249 tmp3_1 = _inValue;
3250 {
3251 modelica_metatype _value = NULL((void*)0);
3252 volatile mmc_switch_type tmp3;
3253 int tmp4;
3254 // _value has no default value.
3255 tmp3 = 0;
3256 for (; tmp3 < 2; tmp3++) {
3257 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3258 case 0: {
3259 if (optionNone(tmp3_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
3260 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3261 _value = tmpMeta[1];
3262 /* Pattern matching succeeded */
3263#line 662 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3264 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
), _value, _inArg1, _inArg2) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, _value, _inArg1, _inArg2);
3265#line 3265 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3266 goto tmp2_done;
3267 }
3268 case 1: {
3269
3270 /* Pattern matching succeeded */
3271#line 663 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3272 tmpMeta[0] = _inDefaultValue;
3273#line 3273 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3274 goto tmp2_done;
3275 }
3276 }
3277 goto tmp2_end;
3278 tmp2_end: ;
3279 }
3280 goto goto_1;
3281 goto_1:;
3282 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3283 goto tmp2_done;
3284 tmp2_done:;
3285 }
3286 }
3287 _outValue = tmpMeta[0];
3288 _return: OMC_LABEL_UNUSED__attribute__((unused))
3289 return _outValue;
3290}
3291
3292DLLExport
3293modelica_metatype omc_Util_applyOptionOrDefault1(threadData_t *threadData, modelica_metatype _inValue, modelica_fnptr _inFunc, modelica_metatype _inArg, modelica_metatype _inDefaultValue)
3294{
3295 modelica_metatype _outValue = NULL((void*)0);
3296 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3297 MMC_SO()mmc_check_stackoverflow(threadData);
3298 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3299 // _outValue has no default value.
3300#line 3300 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3301 { /* match expression */
3302 modelica_metatype tmp3_1;
3303 tmp3_1 = _inValue;
3304 {
3305 modelica_metatype _value = NULL((void*)0);
3306 volatile mmc_switch_type tmp3;
3307 int tmp4;
3308 // _value has no default value.
3309 tmp3 = 0;
3310 for (; tmp3 < 2; tmp3++) {
3311 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3312 case 0: {
3313 if (optionNone(tmp3_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
3314 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3315 _value = tmpMeta[1];
3316 /* Pattern matching succeeded */
3317#line 634 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3318 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
), _value, _inArg) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, _value, _inArg);
3319#line 3319 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3320 goto tmp2_done;
3321 }
3322 case 1: {
3323
3324 /* Pattern matching succeeded */
3325#line 635 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3326 tmpMeta[0] = _inDefaultValue;
3327#line 3327 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3328 goto tmp2_done;
3329 }
3330 }
3331 goto tmp2_end;
3332 tmp2_end: ;
3333 }
3334 goto goto_1;
3335 goto_1:;
3336 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3337 goto tmp2_done;
3338 tmp2_done:;
3339 }
3340 }
3341 _outValue = tmpMeta[0];
3342 _return: OMC_LABEL_UNUSED__attribute__((unused))
3343 return _outValue;
3344}
3345
3346DLLExport
3347modelica_metatype omc_Util_applyOptionOrDefault(threadData_t *threadData, modelica_metatype _inValue, modelica_fnptr _inFunc, modelica_metatype _inDefaultValue)
3348{
3349 modelica_metatype _outValue = NULL((void*)0);
3350 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3351 MMC_SO()mmc_check_stackoverflow(threadData);
3352 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3353 // _outValue has no default value.
3354#line 3354 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3355 { /* match expression */
3356 modelica_metatype tmp3_1;
3357 tmp3_1 = _inValue;
3358 {
3359 modelica_metatype _value = NULL((void*)0);
3360 volatile mmc_switch_type tmp3;
3361 int tmp4;
3362 // _value has no default value.
3363 tmp3 = 0;
3364 for (; tmp3 < 2; tmp3++) {
3365 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3366 case 0: {
3367 if (optionNone(tmp3_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
3368 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3369 _value = tmpMeta[1];
3370 /* Pattern matching succeeded */
3371#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3372 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
), _value) : ((modelica_metatype(*)(threadData_t*, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, _value);
3373#line 3373 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3374 goto tmp2_done;
3375 }
3376 case 1: {
3377
3378 /* Pattern matching succeeded */
3379#line 609 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3380 tmpMeta[0] = _inDefaultValue;
3381#line 3381 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3382 goto tmp2_done;
3383 }
3384 }
3385 goto tmp2_end;
3386 tmp2_end: ;
3387 }
3388 goto goto_1;
3389 goto_1:;
3390 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3391 goto tmp2_done;
3392 tmp2_done:;
3393 }
3394 }
3395 _outValue = tmpMeta[0];
3396 _return: OMC_LABEL_UNUSED__attribute__((unused))
3397 return _outValue;
3398}
3399
3400DLLExport
3401modelica_metatype omc_Util_applyOption1(threadData_t *threadData, modelica_metatype _inOption, modelica_fnptr _inFunc, modelica_metatype _inArg)
3402{
3403 modelica_metatype _outOption = NULL((void*)0);
3404 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3405 MMC_SO()mmc_check_stackoverflow(threadData);
3406 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3407 // _outOption has no default value.
3408#line 3408 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3409 { /* match expression */
3410 modelica_metatype tmp3_1;
3411 tmp3_1 = _inOption;
3412 {
3413 modelica_metatype _ival = NULL((void*)0);
3414 volatile mmc_switch_type tmp3;
3415 int tmp4;
3416 // _ival has no default value.
3417 tmp3 = 0;
3418 for (; tmp3 < 2; tmp3++) {
3419 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3420 case 0: {
3421 if (optionNone(tmp3_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
3422 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3423 _ival = tmpMeta[1];
3424 /* Pattern matching succeeded */
3425#line 584 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3426 tmpMeta[0] = mmc_mk_some((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
), _ival, _inArg) : ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, _ival, _inArg));
3427#line 3427 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3428 goto tmp2_done;
3429 }
3430 case 1: {
3431
3432 /* Pattern matching succeeded */
3433#line 585 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3434 tmpMeta[0] = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
3435#line 3435 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3436 goto tmp2_done;
3437 }
3438 }
3439 goto tmp2_end;
3440 tmp2_end: ;
3441 }
3442 goto goto_1;
3443 goto_1:;
3444 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3445 goto tmp2_done;
3446 tmp2_done:;
3447 }
3448 }
3449 _outOption = tmpMeta[0];
3450 _return: OMC_LABEL_UNUSED__attribute__((unused))
3451 return _outOption;
3452}
3453
3454DLLExport
3455modelica_metatype omc_Util_applyOption(threadData_t *threadData, modelica_metatype _inOption, modelica_fnptr _inFunc)
3456{
3457 modelica_metatype _outOption = NULL((void*)0);
3458 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3459 MMC_SO()mmc_check_stackoverflow(threadData);
3460 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3461 // _outOption has no default value.
3462#line 3462 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3463 { /* match expression */
3464 modelica_metatype tmp3_1;
3465 tmp3_1 = _inOption;
3466 {
3467 modelica_metatype _ival = NULL((void*)0);
3468 volatile mmc_switch_type tmp3;
3469 int tmp4;
3470 // _ival has no default value.
3471 tmp3 = 0;
3472 for (; tmp3 < 2; tmp3++) {
3473 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3474 case 0: {
3475 if (optionNone(tmp3_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
3476 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3477 _ival = tmpMeta[1];
3478 /* Pattern matching succeeded */
3479#line 561 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3480 tmpMeta[0] = mmc_mk_some((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (2)))))
), _ival) : ((modelica_metatype(*)(threadData_t*, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inFunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_inFunc) - 3)))
+ (1)))))
)) (threadData, _ival));
3481#line 3481 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3482 goto tmp2_done;
3483 }
3484 case 1: {
3485
3486 /* Pattern matching succeeded */
3487#line 562 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3488 tmpMeta[0] = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
3489#line 3489 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3490 goto tmp2_done;
3491 }
3492 }
3493 goto tmp2_end;
3494 tmp2_end: ;
3495 }
3496 goto goto_1;
3497 goto_1:;
3498 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3499 goto tmp2_done;
3500 tmp2_done:;
3501 }
3502 }
3503 _outOption = tmpMeta[0];
3504 _return: OMC_LABEL_UNUSED__attribute__((unused))
3505 return _outOption;
3506}
3507
3508DLLExport
3509modelica_boolean omc_Util_boolAndList(threadData_t *threadData, modelica_metatype _inBooleanLst)
3510{
3511 modelica_boolean _outBoolean;
3512 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3513 MMC_SO()mmc_check_stackoverflow(threadData);
3514 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3515 _outBoolean = 1;
3516#line 531 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3517 {
3518#line 531 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3519 modelica_metatype _b;
3520#line 531 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3521 for (tmpMeta[0] = _inBooleanLst; !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)))))
)
3522#line 531 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3523 {
3524#line 531 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3525 _b = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3526#line 532 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3527 if((!mmc_unbox_boolean(_b)(((mmc_sint_t) (_b)) >> 1)))
3528#line 532 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3529 {
3530#line 533 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3531 _outBoolean = 0;
3532#line 3532 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3533
3534#line 534 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3535 goto _return;
3536#line 3536 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3537 }
3538 }
3539 }
3540 _return: OMC_LABEL_UNUSED__attribute__((unused))
3541 return _outBoolean;
3542}
3543modelica_metatype boxptr_Util_boolAndList(threadData_t *threadData, modelica_metatype _inBooleanLst)
3544{
3545 modelica_boolean _outBoolean;
3546 modelica_metatype out_outBoolean;
3547 _outBoolean = omc_Util_boolAndList(threadData, _inBooleanLst);
3548 out_outBoolean = mmc_mk_icon(_outBoolean);
3549 return out_outBoolean;
3550}
3551
3552DLLExport
3553modelica_boolean omc_Util_boolOrList(threadData_t *threadData, modelica_metatype _inBooleanLst)
3554{
3555 modelica_boolean _outBoolean;
3556 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3557 MMC_SO()mmc_check_stackoverflow(threadData);
3558 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3559 _outBoolean = 0;
3560#line 515 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3561 {
3562#line 515 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3563 modelica_metatype _b;
3564#line 515 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3565 for (tmpMeta[0] = _inBooleanLst; !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)))))
)
3566#line 515 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3567 {
3568#line 515 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3569 _b = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3570#line 516 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3571 if(mmc_unbox_boolean(_b)(((mmc_sint_t) (_b)) >> 1))
3572#line 516 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3573 {
3574#line 517 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3575 _outBoolean = 1;
3576#line 3576 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3577
3578#line 518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3579 goto _return;
3580#line 3580 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3581 }
3582 }
3583 }
3584 _return: OMC_LABEL_UNUSED__attribute__((unused))
3585 return _outBoolean;
3586}
3587modelica_metatype boxptr_Util_boolOrList(threadData_t *threadData, modelica_metatype _inBooleanLst)
3588{
3589 modelica_boolean _outBoolean;
3590 modelica_metatype out_outBoolean;
3591 _outBoolean = omc_Util_boolOrList(threadData, _inBooleanLst);
3592 out_outBoolean = mmc_mk_icon(_outBoolean);
3593 return out_outBoolean;
3594}
3595
3596DLLExport
3597modelica_metatype omc_Util_stringSplitAtChar(threadData_t *threadData, modelica_string _string, modelica_string _token)
3598{
3599 modelica_metatype _strings = NULL((void*)0);
3600 modelica_integer _ch;
3601 modelica_metatype _cur = NULL((void*)0);
3602 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3603 MMC_SO()mmc_check_stackoverflow(threadData);
3604 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3605 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3606 _strings = tmpMeta[0];
3607 _ch = stringCharInt(_token)nobox_stringCharInt(threadData,_token);
3608 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3609 _cur = tmpMeta[1];
3610#line 495 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3611 {
3612#line 495 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3613 modelica_metatype _c;
3614#line 495 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3615 for (tmpMeta[2] = stringListStringChar(_string); !listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[2]=MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
)
3616#line 495 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3617 {
3618#line 495 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3619 _c = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
3620#line 496 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3621 if((stringCharInt(_c)nobox_stringCharInt(threadData,_c) == _ch))
3622#line 496 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3623 {
3624#line 497 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3625 tmpMeta[3] = mmc_mk_cons(stringAppendList(listReverse(_cur)), _strings);
3626#line 497 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3627 _strings = tmpMeta[3];
3628#line 3628 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3629
3630#line 498 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3631 tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3632#line 498 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3633 _cur = tmpMeta[3];
3634#line 3634 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3635 }
3636 else
3637 {
3638#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3639 tmpMeta[3] = mmc_mk_cons(_c, _cur);
3640#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3641 _cur = tmpMeta[3];
3642#line 3642 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3643 }
3644 }
3645 }
3646
3647#line 503 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3648 if((!listEmpty(_cur)((*(mmc_uint_t*)((void*)((char*)(_cur) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
))
3649#line 503 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3650 {
3651#line 504 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3652 tmpMeta[2] = mmc_mk_cons(stringAppendList(listReverse(_cur)), _strings);
3653#line 504 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3654 _strings = tmpMeta[2];
3655#line 3655 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3656 }
3657
3658#line 506 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3659 _strings = listReverse(_strings);
3660#line 3660 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3661 _return: OMC_LABEL_UNUSED__attribute__((unused))
3662 return _strings;
3663}
3664
3665DLLExport
3666modelica_string omc_Util_stringReplaceChar(threadData_t *threadData, modelica_string _inString1, modelica_string _inString2, modelica_string _inString3)
3667{
3668 modelica_string _outString = NULL((void*)0);
3669 MMC_SO()mmc_check_stackoverflow(threadData);
3670 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3671 // _outString has no default value.
3672#line 483 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3673 _outString = omc_System_stringReplace(threadData, _inString1, _inString2, _inString3);
3674#line 3674 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3675 _return: OMC_LABEL_UNUSED__attribute__((unused))
3676 return _outString;
3677}
3678
3679DLLExport
3680modelica_integer omc_Util_mulStringDelimit2Int(threadData_t *threadData, modelica_string _inString, modelica_string _delim)
3681{
3682 modelica_integer _i;
3683 modelica_metatype _lst = NULL((void*)0);
3684 modelica_metatype _lst2 = NULL((void*)0);
3685 MMC_SO()mmc_check_stackoverflow(threadData);
3686 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3687 // _i has no default value.
3688 // _lst has no default value.
3689 // _lst2 has no default value.
3690#line 463 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3691 _lst = omc_Util_stringSplitAtChar(threadData, _inString, _delim);
3692#line 3692 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3693
3694#line 464 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3695 _lst2 = omc_List_map(threadData, _lst, boxvar_stringInt((void*)((char*)(&(boxvar_lit_stringInt).header) + 3)));
3696#line 3696 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3697
3698#line 465 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3699 if((!listEmpty(_lst2)((*(mmc_uint_t*)((void*)((char*)(_lst2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
))
3700#line 465 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3701 {
3702#line 466 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3703 _i = mmc_unbox_integer(omc_List_fold(threadData, _lst2, boxvar_intMul, mmc_mk_integer(((modelica_integer) 1))))(((mmc_sint_t) (omc_List_fold(threadData, _lst2, ((void*)((char
*)(&(boxvar_lit_intMul).header) + 3)), mmc_mk_icon(((modelica_integer
) 1))))) >> 1)
;
3704#line 3704 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3705 }
3706 else
3707 {
3708#line 468 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3709 _i = ((modelica_integer) 0);
3710#line 3710 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3711 }
3712 _return: OMC_LABEL_UNUSED__attribute__((unused))
3713 return _i;
3714}
3715modelica_metatype boxptr_Util_mulStringDelimit2Int(threadData_t *threadData, modelica_metatype _inString, modelica_metatype _delim)
3716{
3717 modelica_integer _i;
3718 modelica_metatype out_i;
3719 _i = omc_Util_mulStringDelimit2Int(threadData, _inString, _delim);
3720 out_i = mmc_mk_icon(_i);
3721 return out_i;
3722}
3723
3724DLLExport
3725modelica_string omc_Util_stringDelimitListNonEmptyElts(threadData_t *threadData, modelica_metatype _lst, modelica_string _delim)
3726{
3727 modelica_string _str = NULL((void*)0);
3728 modelica_metatype _lst1 = NULL((void*)0);
3729 MMC_SO()mmc_check_stackoverflow(threadData);
3730 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3731 // _str has no default value.
3732 // _lst1 has no default value.
3733#line 449 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3734 _lst1 = omc_List_select(threadData, _lst, boxvar_Util_isNotEmptyString((void*)((char*)(&(boxvar_lit_Util_isNotEmptyString).header
) + 3))
);
3735#line 3735 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3736
3737#line 450 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3738 _str = stringDelimitList(_lst1, _delim);
3739#line 3739 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3740 _return: OMC_LABEL_UNUSED__attribute__((unused))
3741 return _str;
3742}
3743
3744PROTECTED_FUNCTION_STATIC void omc_Util_stringDelimitListAndSeparate2(threadData_t *threadData, modelica_metatype _inStringLst1, modelica_string _inString2, modelica_string _inString3, modelica_integer _inInteger4, modelica_integer _inInteger5)
3745{
3746 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3747 MMC_SO()mmc_check_stackoverflow(threadData);
3748 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3749#line 3749 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3750 { /* matchcontinue expression */
3751 volatile modelica_metatype tmp3_1;volatile modelica_string tmp3_2;volatile modelica_string tmp3_3;volatile modelica_integer tmp3_4;volatile modelica_integer tmp3_5;
3752 tmp3_1 = _inStringLst1;
3753 tmp3_2 = _inString2;
3754 tmp3_3 = _inString3;
3755 tmp3_4 = _inInteger4;
3756 tmp3_5 = _inInteger5;
3757 {
3758 modelica_string _s = NULL((void*)0);
3759 modelica_string _f = NULL((void*)0);
3760 modelica_string _sep1 = NULL((void*)0);
3761 modelica_string _sep2 = NULL((void*)0);
3762 modelica_metatype _r = NULL((void*)0);
3763 modelica_integer _n;
3764 modelica_integer _iter_1;
3765 modelica_integer _iter;
3766 volatile mmc_switch_type tmp3;
3767 int tmp4;
3768 // _s has no default value.
3769 // _f has no default value.
3770 // _sep1 has no default value.
3771 // _sep2 has no default value.
3772 // _r has no default value.
3773 // _n has no default value.
3774 // _iter_1 has no default value.
3775 // _iter has no default value.
3776 tmp3 = 0;
3777 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) {
3778 tmp2_top:
3779 threadData->mmc_jumper = &new_mmc_jumper;
3780 for (; tmp3 < 6; tmp3++) {
3781 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3782 case 0: {
3783 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3784
3785 tmp3 += 4; /* Pattern matching succeeded; we may skip some cases if we fail */
3786#line 3786 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3787 goto tmp2_done;
3788 }
3789 case 1: {
3790 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3791 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3792 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3793 if (!listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3794
3795 _s = tmpMeta[0];
3796 /* Pattern matching succeeded */
3797#line 410 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3798 omc_Print_printBuf(threadData, _s);
3799#line 3799 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3800#line 3800 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3801 goto tmp2_done;
3802 }
3803 case 2: {
3804 if (0 != tmp3_5) goto tmp2_end;
3805 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3806 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3807 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3808
3809 _f = tmpMeta[0];
3810 _r = tmpMeta[1];
3811 _sep1 = tmp3_2;
3812 _sep2 = tmp3_3;
3813 _n = tmp3_4;
3814 /* Pattern matching succeeded */
3815#line 414 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3816 omc_Print_printBuf(threadData, _f);
3817#line 3817 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3818
3819#line 414 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3820 omc_Print_printBuf(threadData, _sep1);
3821#line 3821 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3822
3823#line 415 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3824 omc_Util_stringDelimitListAndSeparate2(threadData, _r, _sep1, _sep2, _n, ((modelica_integer) 1));
3825#line 3825 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3826#line 3826 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3827 goto tmp2_done;
3828 }
3829 case 3: {
3830 modelica_integer tmp5;
3831 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3832 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3833 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3834
3835 _f = tmpMeta[0];
3836 _r = tmpMeta[1];
3837 _sep1 = tmp3_2;
3838 _sep2 = tmp3_3;
3839 _n = tmp3_4;
3840 _iter = tmp3_5;
3841 /* Pattern matching succeeded */
3842#line 420 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3843 /* Pattern-matching assignment */
3844#line 420 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3845 tmp5 = modelica_integer_mod(_iter, _n);
3846#line 420 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3847 if (0 != tmp5) goto goto_1;
3848#line 3848 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3849
3850#line 421 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3851 _iter_1 = ((modelica_integer) 1) + _iter;
3852#line 3852 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3853
3854#line 422 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3855 omc_Print_printBuf(threadData, _f);
3856#line 3856 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3857
3858#line 422 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3859 omc_Print_printBuf(threadData, _sep1);
3860#line 3860 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3861
3862#line 422 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3863 omc_Print_printBuf(threadData, _sep2);
3864#line 3864 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3865
3866#line 423 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3867 omc_Util_stringDelimitListAndSeparate2(threadData, _r, _sep1, _sep2, _n, _iter_1);
3868#line 3868 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3869#line 3869 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3870 goto tmp2_done;
3871 }
3872 case 4: {
3873 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3874 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3875 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3876
3877 _f = tmpMeta[0];
3878 _r = tmpMeta[1];
3879 _sep1 = tmp3_2;
3880 _sep2 = tmp3_3;
3881 _n = tmp3_4;
3882 _iter = tmp3_5;
3883 /* Pattern matching succeeded */
3884#line 428 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3885 _iter_1 = ((modelica_integer) 1) + _iter;
3886#line 3886 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3887
3888#line 429 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3889 omc_Print_printBuf(threadData, _f);
3890#line 3890 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3891
3892#line 429 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3893 omc_Print_printBuf(threadData, _sep1);
3894#line 3894 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3895
3896#line 430 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3897 omc_Util_stringDelimitListAndSeparate2(threadData, _r, _sep1, _sep2, _n, _iter_1);
3898#line 3898 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3899#line 3899 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3900 goto tmp2_done;
3901 }
3902 case 5: {
3903
3904 /* Pattern matching succeeded */
3905#line 435 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3906 fputs(MMC_STRINGDATA(_OMC_LIT30)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT30).header) + 3))) - 3)))->data)
,stdoutstdout);
3907#line 3907 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3908#line 436 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3909 goto goto_1;
3910#line 3910 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3911 goto tmp2_done;
3912 }
3913 }
3914 goto tmp2_end;
3915 tmp2_end: ;
3916 }
3917 goto goto_1;
3918 tmp2_done:
3919 (void)tmp3;
3920 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3921 goto tmp2_done2;
3922 goto_1:;
3923 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3924 if (++tmp3 < 6) {
3925 goto tmp2_top;
3926 }
3927 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3928 tmp2_done2:;
3929 }
3930 }
3931 ;
3932 _return: OMC_LABEL_UNUSED__attribute__((unused))
3933 return;
3934}
3935PROTECTED_FUNCTION_STATIC void boxptr_Util_stringDelimitListAndSeparate2(threadData_t *threadData, modelica_metatype _inStringLst1, modelica_metatype _inString2, modelica_metatype _inString3, modelica_metatype _inInteger4, modelica_metatype _inInteger5)
3936{
3937 modelica_integer tmp1;
3938 modelica_integer tmp2;
3939 tmp1 = mmc_unbox_integer(_inInteger4)(((mmc_sint_t) (_inInteger4)) >> 1);
3940 tmp2 = mmc_unbox_integer(_inInteger5)(((mmc_sint_t) (_inInteger5)) >> 1);
3941 omc_Util_stringDelimitListAndSeparate2(threadData, _inStringLst1, _inString2, _inString3, tmp1, tmp2);
3942 return;
3943}
3944
3945DLLExport
3946modelica_string omc_Util_stringDelimitListAndSeparate(threadData_t *threadData, modelica_metatype _str, modelica_string _sep1, modelica_string _sep2, modelica_integer _n)
3947{
3948 modelica_string _res = NULL((void*)0);
3949 modelica_integer _handle;
3950 MMC_SO()mmc_check_stackoverflow(threadData);
3951 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3952 // _res has no default value.
3953 // _handle has no default value.
3954#line 389 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3955 _handle = omc_Print_saveAndClearBuf(threadData);
3956#line 3956 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3957
3958#line 390 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3959 omc_Util_stringDelimitListAndSeparate2(threadData, _str, _sep1, _sep2, _n, ((modelica_integer) 0));
3960#line 3960 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3961
3962#line 391 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3963 _res = omc_Print_getString(threadData);
3964#line 3964 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3965
3966#line 392 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
3967 omc_Print_restoreBuf(threadData, _handle);
3968#line 3968 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3969 _return: OMC_LABEL_UNUSED__attribute__((unused))
3970 return _res;
3971}
3972modelica_metatype boxptr_Util_stringDelimitListAndSeparate(threadData_t *threadData, modelica_metatype _str, modelica_metatype _sep1, modelica_metatype _sep2, modelica_metatype _n)
3973{
3974 modelica_integer tmp1;
3975 modelica_string _res = NULL((void*)0);
3976 tmp1 = mmc_unbox_integer(_n)(((mmc_sint_t) (_n)) >> 1);
3977 _res = omc_Util_stringDelimitListAndSeparate(threadData, _str, _sep1, _sep2, tmp1);
3978 /* skip box _res; String */
3979 return _res;
3980}
3981
3982DLLExport
3983void omc_Util_stringDelimitListPrintBuf(threadData_t *threadData, modelica_metatype _inStringLst, modelica_string _inDelimiter)
3984{
3985 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3986 MMC_SO()mmc_check_stackoverflow(threadData);
3987 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3988#line 3988 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
3989 { /* matchcontinue expression */
3990 volatile modelica_metatype tmp3_1;
3991 tmp3_1 = _inStringLst;
3992 {
3993 modelica_string _f = NULL((void*)0);
3994 modelica_metatype _r = NULL((void*)0);
3995 volatile mmc_switch_type tmp3;
3996 int tmp4;
3997 // _f has no default value.
3998 // _r has no default value.
3999 tmp3 = 0;
4000 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) {
4001 tmp2_top:
4002 threadData->mmc_jumper = &new_mmc_jumper;
4003 for (; tmp3 < 3; tmp3++) {
4004 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4005 case 0: {
4006 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4007 tmp3 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
4008#line 4008 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4009 goto tmp2_done;
4010 }
4011 case 1: {
4012 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4013 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
4014 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4015 if (!listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4016 _f = tmpMeta[0];
4017 /* Pattern matching succeeded */
4018#line 365 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4019 omc_Print_printBuf(threadData, _f);
4020#line 4020 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4021#line 4021 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4022 goto tmp2_done;
4023 }
4024 case 2: {
4025 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4026 tmpMeta[0] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
4027 tmpMeta[1] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4028 _f = tmpMeta[0];
4029 _r = tmpMeta[1];
4030 /* Pattern matching succeeded */
4031#line 368 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4032 omc_Util_stringDelimitListPrintBuf(threadData, _r, _inDelimiter);
4033#line 4033 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4034
4035#line 369 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4036 omc_Print_printBuf(threadData, _f);
4037#line 4037 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4038
4039#line 370 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4040 omc_Print_printBuf(threadData, _inDelimiter);
4041#line 4041 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4042#line 4042 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4043 goto tmp2_done;
4044 }
4045 }
4046 goto tmp2_end;
4047 tmp2_end: ;
4048 }
4049 goto goto_1;
4050 tmp2_done:
4051 (void)tmp3;
4052 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4053 goto tmp2_done2;
4054 goto_1:;
4055 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4056 if (++tmp3 < 3) {
4057 goto tmp2_top;
4058 }
4059 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4060 tmp2_done2:;
4061 }
4062 }
4063 ;
4064 _return: OMC_LABEL_UNUSED__attribute__((unused))
4065 return;
4066}
4067
4068DLLExport
4069modelica_boolean omc_Util_stringContainsChar(threadData_t *threadData, modelica_string _str, modelica_string _char)
4070{
4071 modelica_boolean _res;
4072 modelica_boolean tmp1 = 0;
4073 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
4074 MMC_SO()mmc_check_stackoverflow(threadData);
4075 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4076 // _res has no default value.
4077#line 4077 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4078 { /* matchcontinue expression */
4079 {
4080 volatile mmc_switch_type tmp4;
4081 int tmp5;
4082 tmp4 = 0;
4083 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) {
4084 tmp3_top:
4085 threadData->mmc_jumper = &new_mmc_jumper;
4086 for (; tmp4 < 2; tmp4++) {
4087 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4088 case 0: {
4089 /* Pattern matching succeeded */
4090#line 345 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4091 /* Pattern-matching assignment */
4092#line 345 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4093 tmpMeta[0] = omc_Util_stringSplitAtChar(threadData, _str, _char);
4094#line 345 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4095 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_2;
4096#line 345 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4097 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4098#line 345 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4099 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4100#line 345 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4101 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_2;
4102#line 345 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4103 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
4104#line 345 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4105 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4106#line 4106 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4107#line 346 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4108 tmp1 = 1;
4109#line 4109 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4110 goto tmp3_done;
4111 }
4112 case 1: {
4113 /* Pattern matching succeeded */
4114#line 347 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4115 tmp1 = 0;
4116#line 4116 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4117 goto tmp3_done;
4118 }
4119 }
4120 goto tmp3_end;
4121 tmp3_end: ;
4122 }
4123 goto goto_2;
4124 tmp3_done:
4125 (void)tmp4;
4126 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4127 goto tmp3_done2;
4128 goto_2:;
4129 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4130 if (++tmp4 < 2) {
4131 goto tmp3_top;
4132 }
4133 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4134 tmp3_done2:;
4135 }
4136 }
4137 _res = tmp1;
4138 _return: OMC_LABEL_UNUSED__attribute__((unused))
4139 return _res;
4140}
4141modelica_metatype boxptr_Util_stringContainsChar(threadData_t *threadData, modelica_metatype _str, modelica_metatype _char)
4142{
4143 modelica_boolean _res;
4144 modelica_metatype out_res;
4145 _res = omc_Util_stringContainsChar(threadData, _str, _char);
4146 out_res = mmc_mk_icon(_res);
4147 return out_res;
4148}
4149
4150DLLExport
4151modelica_metatype omc_Util_tuple62(threadData_t *threadData, modelica_metatype _inTuple)
4152{
4153 modelica_metatype _outValue = NULL((void*)0);
4154 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4155 MMC_SO()mmc_check_stackoverflow(threadData);
4156 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4157 // _outValue has no default value.
4158#line 334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4159 /* Pattern-matching assignment */
4160#line 334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4161 tmpMeta[0] = _inTuple;
4162#line 334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4163 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4164#line 334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4165 _outValue = tmpMeta[1];
4166#line 4166 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4167 _return: OMC_LABEL_UNUSED__attribute__((unused))
4168 return _outValue;
4169}
4170
4171DLLExport
4172modelica_metatype omc_Util_tuple61(threadData_t *threadData, modelica_metatype _inTuple)
4173{
4174 modelica_metatype _outValue = NULL((void*)0);
4175 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4176 MMC_SO()mmc_check_stackoverflow(threadData);
4177 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4178 // _outValue has no default value.
4179#line 327 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4180 /* Pattern-matching assignment */
4181#line 327 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4182 tmpMeta[0] = _inTuple;
4183#line 327 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4184 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4185#line 327 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4186 _outValue = tmpMeta[1];
4187#line 4187 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4188 _return: OMC_LABEL_UNUSED__attribute__((unused))
4189 return _outValue;
4190}
4191
4192DLLExport
4193modelica_metatype omc_Util_tuple55(threadData_t *threadData, modelica_metatype _inTuple)
4194{
4195 modelica_metatype _outValue = NULL((void*)0);
4196 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4197 MMC_SO()mmc_check_stackoverflow(threadData);
4198 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4199 // _outValue has no default value.
4200#line 320 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4201 /* Pattern-matching assignment */
4202#line 320 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4203 tmpMeta[0] = _inTuple;
4204#line 320 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4205 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
4206#line 320 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4207 _outValue = tmpMeta[1];
4208#line 4208 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4209 _return: OMC_LABEL_UNUSED__attribute__((unused))
4210 return _outValue;
4211}
4212
4213DLLExport
4214modelica_metatype omc_Util_tuple54(threadData_t *threadData, modelica_metatype _inTuple)
4215{
4216 modelica_metatype _outValue = NULL((void*)0);
4217 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4218 MMC_SO()mmc_check_stackoverflow(threadData);
4219 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4220 // _outValue has no default value.
4221#line 313 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4222 /* Pattern-matching assignment */
4223#line 313 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4224 tmpMeta[0] = _inTuple;
4225#line 313 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4226 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
4227#line 313 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4228 _outValue = tmpMeta[1];
4229#line 4229 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4230 _return: OMC_LABEL_UNUSED__attribute__((unused))
4231 return _outValue;
4232}
4233
4234DLLExport
4235modelica_metatype omc_Util_tuple53(threadData_t *threadData, modelica_metatype _inTuple)
4236{
4237 modelica_metatype _outValue = NULL((void*)0);
4238 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4239 MMC_SO()mmc_check_stackoverflow(threadData);
4240 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4241 // _outValue has no default value.
4242#line 306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4243 /* Pattern-matching assignment */
4244#line 306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4245 tmpMeta[0] = _inTuple;
4246#line 306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4247 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
4248#line 306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4249 _outValue = tmpMeta[1];
4250#line 4250 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4251 _return: OMC_LABEL_UNUSED__attribute__((unused))
4252 return _outValue;
4253}
4254
4255DLLExport
4256modelica_metatype omc_Util_tuple52(threadData_t *threadData, modelica_metatype _inTuple)
4257{
4258 modelica_metatype _outValue = NULL((void*)0);
4259 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4260 MMC_SO()mmc_check_stackoverflow(threadData);
4261 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4262 // _outValue has no default value.
4263#line 299 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4264 /* Pattern-matching assignment */
4265#line 299 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4266 tmpMeta[0] = _inTuple;
4267#line 299 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4268 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4269#line 299 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4270 _outValue = tmpMeta[1];
4271#line 4271 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4272 _return: OMC_LABEL_UNUSED__attribute__((unused))
4273 return _outValue;
4274}
4275
4276DLLExport
4277modelica_metatype omc_Util_tuple51(threadData_t *threadData, modelica_metatype _inTuple)
4278{
4279 modelica_metatype _outValue = NULL((void*)0);
4280 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4281 MMC_SO()mmc_check_stackoverflow(threadData);
4282 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4283 // _outValue has no default value.
4284#line 292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4285 /* Pattern-matching assignment */
4286#line 292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4287 tmpMeta[0] = _inTuple;
4288#line 292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4289 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4290#line 292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4291 _outValue = tmpMeta[1];
4292#line 4292 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4293 _return: OMC_LABEL_UNUSED__attribute__((unused))
4294 return _outValue;
4295}
4296
4297DLLExport
4298modelica_metatype omc_Util_tuple44(threadData_t *threadData, modelica_metatype _inTuple)
4299{
4300 modelica_metatype _outValue = NULL((void*)0);
4301 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4302 MMC_SO()mmc_check_stackoverflow(threadData);
4303 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4304 // _outValue has no default value.
4305#line 285 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4306 /* Pattern-matching assignment */
4307#line 285 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4308 tmpMeta[0] = _inTuple;
4309#line 285 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4310 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
4311#line 285 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4312 _outValue = tmpMeta[1];
4313#line 4313 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4314 _return: OMC_LABEL_UNUSED__attribute__((unused))
4315 return _outValue;
4316}
4317
4318DLLExport
4319modelica_metatype omc_Util_tuple43(threadData_t *threadData, modelica_metatype _inTuple)
4320{
4321 modelica_metatype _outValue = NULL((void*)0);
4322 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4323 MMC_SO()mmc_check_stackoverflow(threadData);
4324 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4325 // _outValue has no default value.
4326#line 278 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4327 /* Pattern-matching assignment */
4328#line 278 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4329 tmpMeta[0] = _inTuple;
4330#line 278 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4331 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
4332#line 278 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4333 _outValue = tmpMeta[1];
4334#line 4334 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4335 _return: OMC_LABEL_UNUSED__attribute__((unused))
4336 return _outValue;
4337}
4338
4339DLLExport
4340modelica_metatype omc_Util_tuple42(threadData_t *threadData, modelica_metatype _inTuple)
4341{
4342 modelica_metatype _outValue = NULL((void*)0);
4343 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4344 MMC_SO()mmc_check_stackoverflow(threadData);
4345 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4346 // _outValue has no default value.
4347#line 271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4348 /* Pattern-matching assignment */
4349#line 271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4350 tmpMeta[0] = _inTuple;
4351#line 271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4352 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4353#line 271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4354 _outValue = tmpMeta[1];
4355#line 4355 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4356 _return: OMC_LABEL_UNUSED__attribute__((unused))
4357 return _outValue;
4358}
4359
4360DLLExport
4361modelica_metatype omc_Util_tuple41(threadData_t *threadData, modelica_metatype _inTuple)
4362{
4363 modelica_metatype _outValue = NULL((void*)0);
4364 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4365 MMC_SO()mmc_check_stackoverflow(threadData);
4366 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4367 // _outValue has no default value.
4368#line 264 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4369 /* Pattern-matching assignment */
4370#line 264 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4371 tmpMeta[0] = _inTuple;
4372#line 264 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4373 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4374#line 264 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4375 _outValue = tmpMeta[1];
4376#line 4376 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4377 _return: OMC_LABEL_UNUSED__attribute__((unused))
4378 return _outValue;
4379}
4380
4381DLLExport
4382modelica_metatype omc_Util_tuple33(threadData_t *threadData, modelica_metatype _inValue)
4383{
4384 modelica_metatype _outValue = NULL((void*)0);
4385 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4386 MMC_SO()mmc_check_stackoverflow(threadData);
4387 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4388 // _outValue has no default value.
4389#line 257 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4390 /* Pattern-matching assignment */
4391#line 257 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4392 tmpMeta[0] = _inValue;
4393#line 257 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4394 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
4395#line 257 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4396 _outValue = tmpMeta[1];
4397#line 4397 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4398 _return: OMC_LABEL_UNUSED__attribute__((unused))
4399 return _outValue;
4400}
4401
4402DLLExport
4403modelica_metatype omc_Util_tuple32(threadData_t *threadData, modelica_metatype _inValue)
4404{
4405 modelica_metatype _outValue = NULL((void*)0);
4406 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4407 MMC_SO()mmc_check_stackoverflow(threadData);
4408 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4409 // _outValue has no default value.
4410#line 248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4411 /* Pattern-matching assignment */
4412#line 248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4413 tmpMeta[0] = _inValue;
4414#line 248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4415 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4416#line 248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4417 _outValue = tmpMeta[1];
4418#line 4418 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4419 _return: OMC_LABEL_UNUSED__attribute__((unused))
4420 return _outValue;
4421}
4422
4423DLLExport
4424modelica_metatype omc_Util_tuple31(threadData_t *threadData, modelica_metatype _inValue)
4425{
4426 modelica_metatype _outValue = NULL((void*)0);
4427 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4428 MMC_SO()mmc_check_stackoverflow(threadData);
4429 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4430 // _outValue has no default value.
4431#line 239 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4432 /* Pattern-matching assignment */
4433#line 239 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4434 tmpMeta[0] = _inValue;
4435#line 239 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4436 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4437#line 239 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4438 _outValue = tmpMeta[1];
4439#line 4439 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4440 _return: OMC_LABEL_UNUSED__attribute__((unused))
4441 return _outValue;
4442}
4443
4444DLLExport
4445modelica_metatype omc_Util_tuple312(threadData_t *threadData, modelica_metatype _inTuple)
4446{
4447 modelica_metatype _outTuple = NULL((void*)0);
4448 modelica_metatype _e1 = NULL((void*)0);
4449 modelica_metatype _e2 = NULL((void*)0);
4450 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4451 MMC_SO()mmc_check_stackoverflow(threadData);
4452 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4453 // _outTuple has no default value.
4454 // _e1 has no default value.
4455 // _e2 has no default value.
4456#line 229 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4457 /* Pattern-matching assignment */
4458#line 229 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4459 tmpMeta[0] = _inTuple;
4460#line 229 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4461 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4462#line 229 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4463 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4464#line 229 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4465 _e1 = tmpMeta[1];
4466#line 229 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4467 _e2 = tmpMeta[2];
4468#line 4468 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4469
4470#line 230 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4471 tmpMeta[0] = mmc_mk_box2(0, _e1, _e2);
4472#line 230 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4473 _outTuple = tmpMeta[0];
4474#line 4474 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4475 _return: OMC_LABEL_UNUSED__attribute__((unused))
4476 return _outTuple;
4477}
4478
4479DLLExport
4480modelica_metatype omc_Util_optTuple22(threadData_t *threadData, modelica_metatype _inTuple)
4481{
4482 modelica_metatype _outValue = NULL((void*)0);
4483 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4484 MMC_SO()mmc_check_stackoverflow(threadData);
4485 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4486 // _outValue has no default value.
4487#line 217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4488 /* Pattern-matching assignment */
4489#line 217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4490 tmpMeta[0] = _inTuple;
4491#line 217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4492 if (optionNone(tmpMeta[0])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[0]) - 3)))) >> 10)) ? 1 : 0)
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4493#line 217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4494 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4495#line 217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4496 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
4497#line 217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4498 _outValue = tmpMeta[2];
4499#line 4499 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4500 _return: OMC_LABEL_UNUSED__attribute__((unused))
4501 return _outValue;
4502}
4503
4504DLLExport
4505modelica_metatype omc_Util_tuple22(threadData_t *threadData, modelica_metatype _inTuple)
4506{
4507 modelica_metatype _outValue = NULL((void*)0);
4508 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4509 MMC_SO()mmc_check_stackoverflow(threadData);
4510 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4511 // _outValue has no default value.
4512#line 208 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4513 /* Pattern-matching assignment */
4514#line 208 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4515 tmpMeta[0] = _inTuple;
4516#line 208 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4517 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4518#line 208 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4519 _outValue = tmpMeta[1];
4520#line 4520 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4521 _return: OMC_LABEL_UNUSED__attribute__((unused))
4522 return _outValue;
4523}
4524
4525DLLExport
4526modelica_metatype omc_Util_tuple21(threadData_t *threadData, modelica_metatype _inTuple)
4527{
4528 modelica_metatype _outValue = NULL((void*)0);
4529 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4530 MMC_SO()mmc_check_stackoverflow(threadData);
4531 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4532 // _outValue has no default value.
4533#line 199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4534 /* Pattern-matching assignment */
4535#line 199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4536 tmpMeta[0] = _inTuple;
4537#line 199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4538 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4539#line 199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4540 _outValue = tmpMeta[1];
4541#line 4541 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4542 _return: OMC_LABEL_UNUSED__attribute__((unused))
4543 return _outValue;
4544}
4545
4546DLLExport
4547modelica_boolean omc_Util_compareTuple2IntLt(threadData_t *threadData, modelica_metatype _inTplA, modelica_metatype _inTplB)
4548{
4549 modelica_boolean _res;
4550 modelica_integer _a;
4551 modelica_integer _b;
4552 modelica_integer tmp1;
4553 modelica_integer tmp2;
4554 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4555 MMC_SO()mmc_check_stackoverflow(threadData);
4556 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4557 // _res has no default value.
4558 // _a has no default value.
4559 // _b has no default value.
4560#line 188 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4561 /* Pattern-matching assignment */
4562#line 188 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4563 tmpMeta[0] = _inTplA;
4564#line 188 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4565 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4566#line 188 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4567 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
4568#line 188 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4569 _a = tmp1 /* pattern as ty=Integer */;
4570#line 4570 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4571
4572#line 189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4573 /* Pattern-matching assignment */
4574#line 189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4575 tmpMeta[0] = _inTplB;
4576#line 189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4577 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4578#line 189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4579 tmp2 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
4580#line 189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4581 _b = tmp2 /* pattern as ty=Integer */;
4582#line 4582 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4583
4584#line 190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4585 _res = (_a < _b);
4586#line 4586 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4587 _return: OMC_LABEL_UNUSED__attribute__((unused))
4588 return _res;
4589}
4590modelica_metatype boxptr_Util_compareTuple2IntLt(threadData_t *threadData, modelica_metatype _inTplA, modelica_metatype _inTplB)
4591{
4592 modelica_boolean _res;
4593 modelica_metatype out_res;
4594 _res = omc_Util_compareTuple2IntLt(threadData, _inTplA, _inTplB);
4595 out_res = mmc_mk_icon(_res);
4596 return out_res;
4597}
4598
4599DLLExport
4600modelica_boolean omc_Util_compareTuple2IntGt(threadData_t *threadData, modelica_metatype _inTplA, modelica_metatype _inTplB)
4601{
4602 modelica_boolean _res;
4603 modelica_integer _a;
4604 modelica_integer _b;
4605 modelica_integer tmp1;
4606 modelica_integer tmp2;
4607 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4608 MMC_SO()mmc_check_stackoverflow(threadData);
4609 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4610 // _res has no default value.
4611 // _a has no default value.
4612 // _b has no default value.
4613#line 173 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4614 /* Pattern-matching assignment */
4615#line 173 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4616 tmpMeta[0] = _inTplA;
4617#line 173 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4618 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4619#line 173 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4620 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
4621#line 173 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4622 _a = tmp1 /* pattern as ty=Integer */;
4623#line 4623 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4624
4625#line 174 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4626 /* Pattern-matching assignment */
4627#line 174 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4628 tmpMeta[0] = _inTplB;
4629#line 174 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4630 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4631#line 174 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4632 tmp2 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
4633#line 174 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4634 _b = tmp2 /* pattern as ty=Integer */;
4635#line 4635 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4636
4637#line 175 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4638 _res = (_a > _b);
4639#line 4639 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4640 _return: OMC_LABEL_UNUSED__attribute__((unused))
4641 return _res;
4642}
4643modelica_metatype boxptr_Util_compareTuple2IntGt(threadData_t *threadData, modelica_metatype _inTplA, modelica_metatype _inTplB)
4644{
4645 modelica_boolean _res;
4646 modelica_metatype out_res;
4647 _res = omc_Util_compareTuple2IntGt(threadData, _inTplA, _inTplB);
4648 out_res = mmc_mk_icon(_res);
4649 return out_res;
4650}
4651
4652DLLExport
4653modelica_boolean omc_Util_compareTupleIntLt(threadData_t *threadData, modelica_metatype _inTplA, modelica_metatype _inTplB)
4654{
4655 modelica_boolean _res;
4656 modelica_integer _a;
4657 modelica_integer _b;
4658 modelica_integer tmp1;
4659 modelica_integer tmp2;
4660 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4661 MMC_SO()mmc_check_stackoverflow(threadData);
4662 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4663 // _res has no default value.
4664 // _a has no default value.
4665 // _b has no default value.
4666#line 158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4667 /* Pattern-matching assignment */
4668#line 158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4669 tmpMeta[0] = _inTplA;
4670#line 158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4671 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4672#line 158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4673 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
4674#line 158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4675 _a = tmp1 /* pattern as ty=Integer */;
4676#line 4676 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4677
4678#line 159 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4679 /* Pattern-matching assignment */
4680#line 159 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4681 tmpMeta[0] = _inTplB;
4682#line 159 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4683 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4684#line 159 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4685 tmp2 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
4686#line 159 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4687 _b = tmp2 /* pattern as ty=Integer */;
4688#line 4688 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4689
4690#line 160 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4691 _res = (_a < _b);
4692#line 4692 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4693 _return: OMC_LABEL_UNUSED__attribute__((unused))
4694 return _res;
4695}
4696modelica_metatype boxptr_Util_compareTupleIntLt(threadData_t *threadData, modelica_metatype _inTplA, modelica_metatype _inTplB)
4697{
4698 modelica_boolean _res;
4699 modelica_metatype out_res;
4700 _res = omc_Util_compareTupleIntLt(threadData, _inTplA, _inTplB);
4701 out_res = mmc_mk_icon(_res);
4702 return out_res;
4703}
4704
4705DLLExport
4706modelica_boolean omc_Util_compareTupleIntGt(threadData_t *threadData, modelica_metatype _inTplA, modelica_metatype _inTplB)
4707{
4708 modelica_boolean _res;
4709 modelica_integer _a;
4710 modelica_integer _b;
4711 modelica_integer tmp1;
4712 modelica_integer tmp2;
4713 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4714 MMC_SO()mmc_check_stackoverflow(threadData);
4715 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4716 // _res has no default value.
4717 // _a has no default value.
4718 // _b has no default value.
4719#line 143 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4720 /* Pattern-matching assignment */
4721#line 143 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4722 tmpMeta[0] = _inTplA;
4723#line 143 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4724 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4725#line 143 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4726 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
4727#line 143 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4728 _a = tmp1 /* pattern as ty=Integer */;
4729#line 4729 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4730
4731#line 144 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4732 /* Pattern-matching assignment */
4733#line 144 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4734 tmpMeta[0] = _inTplB;
4735#line 144 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4736 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4737#line 144 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4738 tmp2 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
4739#line 144 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4740 _b = tmp2 /* pattern as ty=Integer */;
4741#line 4741 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4742
4743#line 145 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4744 _res = (_a > _b);
4745#line 4745 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4746 _return: OMC_LABEL_UNUSED__attribute__((unused))
4747 return _res;
4748}
4749modelica_metatype boxptr_Util_compareTupleIntGt(threadData_t *threadData, modelica_metatype _inTplA, modelica_metatype _inTplB)
4750{
4751 modelica_boolean _res;
4752 modelica_metatype out_res;
4753 _res = omc_Util_compareTupleIntGt(threadData, _inTplA, _inTplB);
4754 out_res = mmc_mk_icon(_res);
4755 return out_res;
4756}
4757
4758DLLExport
4759modelica_string omc_Util_selectFirstNonEmptyString(threadData_t *threadData, modelica_metatype _inStrings)
4760{
4761 modelica_string _outResult = NULL((void*)0);
4762 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4763 MMC_SO()mmc_check_stackoverflow(threadData);
4764 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4765 // _outResult has no default value.
4766#line 124 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4767 {
4768#line 124 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4769 modelica_metatype _e;
4770#line 124 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4771 for (tmpMeta[0] = _inStrings; !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)))))
)
4772#line 124 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4773 {
4774#line 124 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4775 _e = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4776#line 125 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4777 if((!stringEqual(_e, _OMC_LIT6)((((((*(mmc_uint_t*)((void*)((char*)(_e) - 3)))) >> (3)
) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(((void*)((char
*)(&(_OMC_LIT_STRUCT6).header) + 3))) - 3)))) >> (3
)) - 8)) && !mmc_stringCompare(_e,((void*)((char*)(&
(_OMC_LIT_STRUCT6).header) + 3))))
))
4778#line 125 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4779 {
4780#line 126 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4781 _outResult = _e;
4782#line 4782 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4783
4784#line 127 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4785 goto _return;
4786#line 4786 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4787 }
4788 }
4789 }
4790
4791#line 130 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4792 _outResult = _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3));
4793#line 4793 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4794 _return: OMC_LABEL_UNUSED__attribute__((unused))
4795 return _outResult;
4796}
4797
4798DLLExport
4799modelica_string omc_Util_flagValue(threadData_t *threadData, modelica_string _flag, modelica_metatype _arguments)
4800{
4801 modelica_string _flagVal = NULL((void*)0);
4802 modelica_string _arg = NULL((void*)0);
4803 modelica_metatype _rest = NULL((void*)0);
4804 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4805 MMC_SO()mmc_check_stackoverflow(threadData);
4806 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4807 // _flagVal has no default value.
4808 // _arg has no default value.
4809 _rest = _arguments;
4810#line 107 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4811 while(1)
4812#line 107 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4813 {
4814#line 107 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4815 if(!(!listEmpty(_rest)((*(mmc_uint_t*)((void*)((char*)(_rest) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
)) break;
4816#line 108 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4817 /* Pattern-matching assignment */
4818#line 108 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4819 tmpMeta[0] = _rest;
4820#line 108 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4821 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4822#line 108 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4823 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4824#line 108 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4825 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4826#line 108 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4827 _arg = tmpMeta[1];
4828#line 108 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4829 _rest = tmpMeta[2];
4830#line 4830 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4831
4832#line 110 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4833 if((stringEqual(_arg, _flag)((((((*(mmc_uint_t*)((void*)((char*)(_arg) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_flag) - 3))
)) >> (3)) - 8)) && !mmc_stringCompare(_arg,_flag
))
))
4834#line 110 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4835 {
4836#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4837 break;
4838#line 4838 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4839 }
4840 }
4841
4842#line 115 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4843 _flagVal = (listEmpty(_rest)((*(mmc_uint_t*)((void*)((char*)(_rest) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
?_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)):listHead(_rest)boxptr_listHead(threadData,_rest));
4844#line 4844 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4845 _return: OMC_LABEL_UNUSED__attribute__((unused))
4846 return _flagVal;
4847}
4848
4849DLLExport
4850modelica_string omc_Util_linuxDotSlash(threadData_t *threadData)
4851{
4852 modelica_string _str = NULL((void*)0);
4853 MMC_SO()mmc_check_stackoverflow(threadData);
4854 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4855 // _str has no default value.
4856#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4857 _str = _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3));
4858#line 4858 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4859
4860#line 94 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/Util.mo"
4861 _str = (((stringEqual(_str, _OMC_LIT31)((((((*(mmc_uint_t*)((void*)((char*)(_str) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(((void*)((char
*)(&(_OMC_LIT_STRUCT31).header) + 3))) - 3)))) >> (
3)) - 8)) && !mmc_stringCompare(_str,((void*)((char*)
(&(_OMC_LIT_STRUCT31).header) + 3))))
) || (stringEqual(_str, _OMC_LIT32)((((((*(mmc_uint_t*)((void*)((char*)(_str) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(((void*)((char
*)(&(_OMC_LIT_STRUCT32).header) + 3))) - 3)))) >> (
3)) - 8)) && !mmc_stringCompare(_str,((void*)((char*)
(&(_OMC_LIT_STRUCT32).header) + 3))))
))?_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)):_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)));
4862#line 4862 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Util.c"
4863 _return: OMC_LABEL_UNUSED__attribute__((unused))
4864 return _str;
4865}
4866
4867DLLExport
4868modelica_boolean omc_Util_isRealGreater(threadData_t *threadData, modelica_real _lhs, modelica_real _rhs)
4869{
4870 modelica_boolean _b;
4871 MMC_SO()mmc_check_stackoverflow(threadData);
4872 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4873 _b = (_lhs > _rhs);
4874 _return: OMC_LABEL_UNUSED__attribute__((unused))
4875 return _b;
4876}
4877modelica_metatype boxptr_Util_isRealGreater(threadData_t *threadData, modelica_metatype _lhs, modelica_metatype _rhs)
4878{
4879 modelica_real tmp1;
4880 modelica_real tmp2;
4881 modelica_boolean _b;
4882 modelica_metatype out_b;
4883 tmp1 = mmc_unbox_real(_lhs)mmc_prim_get_real(_lhs);
4884 tmp2 = mmc_unbox_real(_rhs)mmc_prim_get_real(_rhs);
4885 _b = omc_Util_isRealGreater(threadData, tmp1, tmp2);
4886 out_b = mmc_mk_icon(_b);
4887 return out_b;
4888}
4889
4890DLLExport
4891modelica_boolean omc_Util_isIntGreater(threadData_t *threadData, modelica_integer _lhs, modelica_integer _rhs)
4892{
4893 modelica_boolean _b;
4894 MMC_SO()mmc_check_stackoverflow(threadData);
4895 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4896 _b = (_lhs > _rhs);
4897 _return: OMC_LABEL_UNUSED__attribute__((unused))
4898 return _b;
4899}
4900modelica_metatype boxptr_Util_isIntGreater(threadData_t *threadData, modelica_metatype _lhs, modelica_metatype _rhs)
4901{
4902 modelica_integer tmp1;
4903 modelica_integer tmp2;
4904 modelica_boolean _b;
4905 modelica_metatype out_b;
4906 tmp1 = mmc_unbox_integer(_lhs)(((mmc_sint_t) (_lhs)) >> 1);
4907 tmp2 = mmc_unbox_integer(_rhs)(((mmc_sint_t) (_rhs)) >> 1);
4908 _b = omc_Util_isIntGreater(threadData, tmp1, tmp2);
4909 out_b = mmc_mk_icon(_b);
4910 return out_b;
4911}
4912