Bug Summary

File:OMCompiler/Compiler/boot/build/ConnectUtil.c
Warning:line 8456, column 5
Value stored to 'tmp4_1' 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/ConnectUtil.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/ConnectUtil.c" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "ConnectUtil.h"
8#define _OMC_LIT0_data", " ", "
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,2,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ", "
}
;
10#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
11#define _OMC_LIT1_data"pointer to set " "pointer to set "
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,15,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(15)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)15)<<(3))+((1<<(3+3))+5)), "pointer to set "
}
;
13#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
14#define _OMC_LIT2_data" " " "
15static 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)), " "
}
;
16#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
17#define _OMC_LIT3_data" connected to " " connected to "
18static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,14,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), " connected to "
}
;
19#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
20#define _OMC_LIT4_data"\n" "\n"
21static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,1,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\n"
}
;
22#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
23#define _OMC_LIT5_data"" ""
24static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,0,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
25#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
26#define _OMC_LIT6_data" associated flow: " " associated flow: "
27static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,18,_OMC_LIT6_data)struct { mmc_uint_t header; const char data[(18)+1]; } _OMC_LIT_STRUCT6
= { ((((mmc_uint_t)18)<<(3))+((1<<(3+3))+5)), " associated flow: "
}
;
28#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
29#define _OMC_LIT7_data"equ" "equ"
30static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT7,3,_OMC_LIT7_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT7
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "equ"
}
;
31#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
32#define _OMC_LIT8_data"flow" "flow"
33static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,4,_OMC_LIT8_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT8
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "flow"
}
;
34#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
35#define _OMC_LIT9_data"stream" "stream"
36static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT9,6,_OMC_LIT9_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT9
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "stream"
}
;
37#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
38#define _OMC_LIT10_data"inside" "inside"
39static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT10,6,_OMC_LIT10_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT10
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "inside"
}
;
40#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
41#define _OMC_LIT11_data"outside" "outside"
42static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT11,7,_OMC_LIT11_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT11
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "outside"
}
;
43#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
44#define _OMC_LIT12_data"unknown" "unknown"
45static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT12,7,_OMC_LIT12_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT12
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "unknown"
}
;
46#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
47#define _OMC_LIT13_data" " " "
48static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT13,1,_OMC_LIT13_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT13
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), " "
}
;
49#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
50#define _OMC_LIT14_data" [" " ["
51static 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)), " ["
}
;
52#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
53#define _OMC_LIT15_data"]" "]"
54static 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)), "]"
}
;
55#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
56#define _OMC_LIT16_data"." "."
57static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT16,1,_OMC_LIT16_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT16
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "."
}
;
58#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
59#define _OMC_LIT17_data":" ":"
60static 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)), ":"
}
;
61#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
62#define _OMC_LIT18_data" sets:\n" " sets:\n"
63static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT18,7,_OMC_LIT18_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT18
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), " sets:\n"
}
;
64#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
65#define _OMC_LIT19_data"Connected sets:\n" "Connected sets:\n"
66static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT19,16,_OMC_LIT19_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT19
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "Connected sets:\n"
}
;
67#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
68#define _OMC_LIT20_data"failtrace" "failtrace"
69static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT20,9,_OMC_LIT20_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT20
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "failtrace"
}
;
70#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
71#define _OMC_LIT21_data"Sets whether to print a failtrace or not." "Sets whether to print a failtrace or not."
72static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT21,41,_OMC_LIT21_data)struct { mmc_uint_t header; const char data[(41)+1]; } _OMC_LIT_STRUCT21
= { ((((mmc_uint_t)41)<<(3))+((1<<(3+3))+5)), "Sets whether to print a failtrace or not."
}
;
73#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
74static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT22,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT22
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))}};
75#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
76static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT23,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT23
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),_OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))}};
77#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
78#define _OMC_LIT24_data"- ConnectUtil.sizeOfType failed on " "- ConnectUtil.sizeOfType failed on "
79static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT24,35,_OMC_LIT24_data)struct { mmc_uint_t header; const char data[(35)+1]; } _OMC_LIT_STRUCT24
= { ((((mmc_uint_t)35)<<(3))+((1<<(3+3))+5)), "- ConnectUtil.sizeOfType failed on "
}
;
80#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
81#define _OMC_LIT25_data"The number of potential variables (" "The number of potential variables ("
82static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT25,35,_OMC_LIT25_data)struct { mmc_uint_t header; const char data[(35)+1]; } _OMC_LIT_STRUCT25
= { ((((mmc_uint_t)35)<<(3))+((1<<(3+3))+5)), "The number of potential variables ("
}
;
83#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
84#define _OMC_LIT26_data") is not equal to the number of flow variables (" ") is not equal to the number of flow variables ("
85static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT26,48,_OMC_LIT26_data)struct { mmc_uint_t header; const char data[(48)+1]; } _OMC_LIT_STRUCT26
= { ((((mmc_uint_t)48)<<(3))+((1<<(3+3))+5)), ") is not equal to the number of flow variables ("
}
;
86#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
87#define _OMC_LIT27_data")." ")."
88static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT27,2,_OMC_LIT27_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT27
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ")."
}
;
89#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
90static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT28,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT28
= { (((1) << 10) + (((5) & 255) << 2)),
{&ErrorTypes_MessageType_TRANSLATION__desc,}};
91#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
92static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT29,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT29
= { (((1) << 10) + (((5) & 255) << 2)),
{&ErrorTypes_Severity_WARNING__desc,}};
93#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
94#define _OMC_LIT30_data"Connector %s is not balanced: %s" "Connector %s is not balanced: %s"
95static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT30,32,_OMC_LIT30_data)struct { mmc_uint_t header; const char data[(32)+1]; } _OMC_LIT_STRUCT30
= { ((((mmc_uint_t)32)<<(3))+((1<<(3+3))+5)), "Connector %s is not balanced: %s"
}
;
96#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
97static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT31,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT31
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))}};
98#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
99static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT32,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT32
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(150))((void*)(((((mmc_uint_t) (150)) << 1)+0))),_OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)),_OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)),_OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))}};
100#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
101#define _OMC_LIT33_data"A stream connector must have exactly one flow variable, this connector has " "A stream connector must have exactly one flow variable, this connector has "
102static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT33,75,_OMC_LIT33_data)struct { mmc_uint_t header; const char data[(75)+1]; } _OMC_LIT_STRUCT33
= { ((((mmc_uint_t)75)<<(3))+((1<<(3+3))+5)), "A stream connector must have exactly one flow variable, this connector has "
}
;
103#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
104#define _OMC_LIT34_data" flow variables." " flow variables."
105static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT34,16,_OMC_LIT34_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT34
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), " flow variables."
}
;
106#define _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT34)((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))
107static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT35,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT35
= { (((1) << 10) + (((4) & 255) << 2)),
{&ErrorTypes_Severity_ERROR__desc,}};
108#define _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT35)((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))
109#define _OMC_LIT36_data"Invalid stream connector %s: %s" "Invalid stream connector %s: %s"
110static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT36,31,_OMC_LIT36_data)struct { mmc_uint_t header; const char data[(31)+1]; } _OMC_LIT_STRUCT36
= { ((((mmc_uint_t)31)<<(3))+((1<<(3+3))+5)), "Invalid stream connector %s: %s"
}
;
111#define _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT36)((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))
112static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT37,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT37
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))}};
113#define _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT37)((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))
114static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT38,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT38
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(216))((void*)(((((mmc_uint_t) (216)) << 1)+0))),_OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)),_OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)),_OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))}};
115#define _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT38)((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3))
116static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT39,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT39
= { (((1) << 10) + (((4) & 255) << 2)),
{&DAE_Connect_Face_OUTSIDE__desc,}};
117#define _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT39)((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))
118static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT40,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT40
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_Connect_Face_INSIDE__desc,}};
119#define _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT40)((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))
120static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT41,1,11)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT41
= { (((1) << 10) + (((11) & 255) << 2)),
{&DAE_Type_T__UNKNOWN__desc,}};
121#define _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT41)((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))
122#define _OMC_LIT42_data"min" "min"
123static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT42,3,_OMC_LIT42_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT42
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "min"
}
;
124#define _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT42)((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3))
125#define _OMC_LIT43_data"max" "max"
126static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT43,3,_OMC_LIT43_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT43
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "max"
}
;
127#define _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT43)((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))
128static const MMC_DEFREALLIT(_OMC_LIT_STRUCT44,0.0)struct mmc_real_lit _OMC_LIT_STRUCT44 = {0,(((8/8) << 10
) + 9),0.0}
;
129#define _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT44)((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))
130static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT45,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT45
= { (((2) << 10) + (((4) & 255) << 2)),
{&DAE_Exp_RCONST__desc,_OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))}};
131#define _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT45)((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))
132#define _OMC_LIT46_data"smooth" "smooth"
133static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT46,6,_OMC_LIT46_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT46
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "smooth"
}
;
134#define _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT46)((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))
135static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT47,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT47
= { (((2) << 10) + (((4) & 255) << 2)),
{&Absyn_Path_IDENT__desc,_OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))}};
136#define _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT47)((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3))
137static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT48,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT48
= { (((2) << 10) + (((3) & 255) << 2)),
{&DAE_Exp_ICONST__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
138#define _OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT48)((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3))
139static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT49,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT49
= { (((2) << 10) + (((4) & 255) << 2)),
{&DAE_Type_T__REAL__desc,MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
140#define _OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT49)((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3))
141static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT50,1,7)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT50
= { (((1) << 10) + (((7) & 255) << 2)),
{&DAE_InlineType_NO__INLINE__desc,}};
142#define _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT50)((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3))
143static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT51,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT51
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_TailCall_NO__TAIL__desc,}};
144#define _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT51)((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3))
145static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT52,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT52
= { (((8) << 10) + (((3) & 255) << 2)),
{&DAE_CallAttributes_CALL__ATTR__desc,_OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)),_OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3))}};
146#define _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT52)((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))
147#define _OMC_LIT53_data"$OMC$inStreamDiv" "$OMC$inStreamDiv"
148static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT53,16,_OMC_LIT53_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT53
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "$OMC$inStreamDiv"
}
;
149#define _OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT53)((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3))
150static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT54,2,5)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT54
= { (((2) << 10) + (((5) & 255) << 2)),
{&DAE_Connect_ConnectorType_STREAM__desc,MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3))}};
151#define _OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT54)((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3))
152static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT55,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT55
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))}};
153#define _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT55)((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3))
154static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT56,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT56
= { (((1) << 10) + (((4) & 255) << 2)),
{&DAE_ComponentPrefix_NOCOMPPRE__desc,}};
155#define _OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT56)((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3))
156static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT57,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT57
= { (((8) << 10) + (((3) & 255) << 2)),
{&DAE_ElementSource_SOURCE__desc,_OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
157#define _OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT57)((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3))
158#define _OMC_LIT58_data"- ConnectUtil.evaluateInStream failed for " "- ConnectUtil.evaluateInStream failed for "
159static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT58,42,_OMC_LIT58_data)struct { mmc_uint_t header; const char data[(42)+1]; } _OMC_LIT_STRUCT58
= { ((((mmc_uint_t)42)<<(3))+((1<<(3+3))+5)), "- ConnectUtil.evaluateInStream failed for "
}
;
160#define _OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT58)((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3))
161#define _OMC_LIT59_data"inStream" "inStream"
162static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT59,8,_OMC_LIT59_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT59
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "inStream"
}
;
163#define _OMC_LIT59((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT59)((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3))
164#define _OMC_LIT60_data"actualStream" "actualStream"
165static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT60,12,_OMC_LIT60_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT60
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "actualStream"
}
;
166#define _OMC_LIT60((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT60)((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3))
167#define _OMC_LIT61_data"cardinality" "cardinality"
168static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT61,11,_OMC_LIT61_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT61
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "cardinality"
}
;
169#define _OMC_LIT61((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT61)((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3))
170#define _OMC_LIT62_data"flowThreshold" "flowThreshold"
171static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT62,13,_OMC_LIT62_data)struct { mmc_uint_t header; const char data[(13)+1]; } _OMC_LIT_STRUCT62
= { ((((mmc_uint_t)13)<<(3))+((1<<(3+3))+5)), "flowThreshold"
}
;
172#define _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT62)((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3))
173static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT63,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT63
= { (((1) << 10) + (((4) & 255) << 2)),
{&Flags_FlagVisibility_EXTERNAL__desc,}};
174#define _OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT63)((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3))
175static const MMC_DEFREALLIT(_OMC_LIT_STRUCT64,1e-07)struct mmc_real_lit _OMC_LIT_STRUCT64 = {0,(((8/8) << 10
) + 9),1e-07}
;
176#define _OMC_LIT64((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT64)((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3))
177static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT65,2,7)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT65
= { (((2) << 10) + (((7) & 255) << 2)),
{&Flags_FlagData_REAL__FLAG__desc,_OMC_LIT64((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3))}};
178#define _OMC_LIT65((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT65)((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3))
179#define _OMC_LIT66_data"Sets the minium threshold for stream flow rates" "Sets the minium threshold for stream flow rates"
180static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT66,47,_OMC_LIT66_data)struct { mmc_uint_t header; const char data[(47)+1]; } _OMC_LIT_STRUCT66
= { ((((mmc_uint_t)47)<<(3))+((1<<(3+3))+5)), "Sets the minium threshold for stream flow rates"
}
;
181#define _OMC_LIT66((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT66)((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3))
182static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT67,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT67
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT66((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3))}};
183#define _OMC_LIT67((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT67)((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3))
184static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT68,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT68
= { (((8) << 10) + (((3) & 255) << 2)),
{&Flags_ConfigFlag_CONFIG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(74))((void*)(((((mmc_uint_t) (74)) << 1)+0))),_OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),_OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)),_OMC_LIT65((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),_OMC_LIT67((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3))}};
185#define _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT68)((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3))
186static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT69,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT69
= { (((1) << 10) + (((5) & 255) << 2)),
{&DAE_AvlTreePathFunction_Tree_EMPTY__desc,}};
187#define _OMC_LIT69((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT69)((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3))
188#define _OMC_LIT70_data"nominal" "nominal"
189static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT70,7,_OMC_LIT70_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT70
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "nominal"
}
;
190#define _OMC_LIT70((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT70)((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3))
191#define _OMC_LIT71_data"$OMC$PositiveMax" "$OMC$PositiveMax"
192static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT71,16,_OMC_LIT71_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT71
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "$OMC$PositiveMax"
}
;
193#define _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT71)((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3))
194static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT72,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT72
= { (((2) << 10) + (((4) & 255) << 2)),
{&Absyn_Path_IDENT__desc,_OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3))}};
195#define _OMC_LIT72((void*)((char*)(&(_OMC_LIT_STRUCT72).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT72)((void*)((char*)(&(_OMC_LIT_STRUCT72).header) + 3))
196static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT73,1,1)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT73
= { (((1) << 10) + (((1) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0)))}};
197#define _OMC_LIT73((void*)((char*)(&(_OMC_LIT_STRUCT73).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT73)((void*)((char*)(&(_OMC_LIT_STRUCT73).header) + 3))
198#define _OMC_LIT74_data" equation generated by stream handling" " equation generated by stream handling"
199static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT74,38,_OMC_LIT74_data)struct { mmc_uint_t header; const char data[(38)+1]; } _OMC_LIT_STRUCT74
= { ((((mmc_uint_t)38)<<(3))+((1<<(3+3))+5)), " equation generated by stream handling"
}
;
200#define _OMC_LIT74((void*)((char*)(&(_OMC_LIT_STRUCT74).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT74)((void*)((char*)(&(_OMC_LIT_STRUCT74).header) + 3))
201static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT75,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT75
= { (((2) << 10) + (((3) & 255) << 2)),
{&DAE_DAElist_DAE__desc,MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
202#define _OMC_LIT75((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT75)((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3))
203#define _OMC_LIT76_data"Internal error %s" "Internal error %s"
204static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT76,17,_OMC_LIT76_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT76
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), "Internal error %s"
}
;
205#define _OMC_LIT76((void*)((char*)(&(_OMC_LIT_STRUCT76).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT76)((void*)((char*)(&(_OMC_LIT_STRUCT76).header) + 3))
206static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT77,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT77
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT76((void*)((char*)(&(_OMC_LIT_STRUCT76).header) + 3))}};
207#define _OMC_LIT77((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT77)((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3))
208static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT78,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT78
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(63))((void*)(((((mmc_uint_t) (63)) << 1)+0))),_OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)),_OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)),_OMC_LIT77((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3))}};
209#define _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT78)((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3))
210#define _OMC_LIT79_data"ConnectUtil.equationsDispatch failed on connection set with no type." "ConnectUtil.equationsDispatch failed on connection set with no type."
211static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT79,68,_OMC_LIT79_data)struct { mmc_uint_t header; const char data[(68)+1]; } _OMC_LIT_STRUCT79
= { ((((mmc_uint_t)68)<<(3))+((1<<(3+3))+5)), "ConnectUtil.equationsDispatch failed on connection set with no type."
}
;
212#define _OMC_LIT79((void*)((char*)(&(_OMC_LIT_STRUCT79).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT79)((void*)((char*)(&(_OMC_LIT_STRUCT79).header) + 3))
213static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT80,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT80
= { (((2) << 10) + (((1) & 255) << 2)),
{_OMC_LIT79((void*)((char*)(&(_OMC_LIT_STRUCT79).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
214#define _OMC_LIT80((void*)((char*)(&(_OMC_LIT_STRUCT80).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT80)((void*)((char*)(&(_OMC_LIT_STRUCT80).header) + 3))
215#define _OMC_LIT81_data"ConnectUtil.equationsDispatch failed because of unknown reason." "ConnectUtil.equationsDispatch failed because of unknown reason."
216static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT81,63,_OMC_LIT81_data)struct { mmc_uint_t header; const char data[(63)+1]; } _OMC_LIT_STRUCT81
= { ((((mmc_uint_t)63)<<(3))+((1<<(3+3))+5)), "ConnectUtil.equationsDispatch failed because of unknown reason."
}
;
217#define _OMC_LIT81((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT81)((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3))
218static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT82,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT82
= { (((2) << 10) + (((1) & 255) << 2)),
{_OMC_LIT81((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
219#define _OMC_LIT82((void*)((char*)(&(_OMC_LIT_STRUCT82).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT82)((void*)((char*)(&(_OMC_LIT_STRUCT82).header) + 3))
220static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT83,1,6)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT83
= { (((1) << 10) + (((6) & 255) << 2)),
{&DAE_Connect_ConnectorType_NO__TYPE__desc,}};
221#define _OMC_LIT83((void*)((char*)(&(_OMC_LIT_STRUCT83).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT83)((void*)((char*)(&(_OMC_LIT_STRUCT83).header) + 3))
222static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT84,3,3)struct { mmc_uint_t header; const void *data[3]; } _OMC_LIT_STRUCT84
= { (((3) << 10) + (((3) & 255) << 2)),
{&DAE_Connect_Set_SET__desc,_OMC_LIT83((void*)((char*)(&(_OMC_LIT_STRUCT83).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
223#define _OMC_LIT84((void*)((char*)(&(_OMC_LIT_STRUCT84).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT84)((void*)((char*)(&(_OMC_LIT_STRUCT84).header) + 3))
224#define _OMC_LIT85_data"[" "["
225static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT85,1,_OMC_LIT85_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT85
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "["
}
;
226#define _OMC_LIT85((void*)((char*)(&(_OMC_LIT_STRUCT85).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT85)((void*)((char*)(&(_OMC_LIT_STRUCT85).header) + 3))
227#define _OMC_LIT86_data"," ","
228static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT86,1,_OMC_LIT86_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT86
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), ","
}
;
229#define _OMC_LIT86((void*)((char*)(&(_OMC_LIT_STRUCT86).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT86)((void*)((char*)(&(_OMC_LIT_STRUCT86).header) + 3))
230#define _OMC_LIT87_data"The language feature %s is not supported. Suggested workaround: %s" "The language feature %s is not supported. Suggested workaround: %s"
231static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT87,66,_OMC_LIT87_data)struct { mmc_uint_t header; const char data[(66)+1]; } _OMC_LIT_STRUCT87
= { ((((mmc_uint_t)66)<<(3))+((1<<(3+3))+5)), "The language feature %s is not supported. Suggested workaround: %s"
}
;
232#define _OMC_LIT87((void*)((char*)(&(_OMC_LIT_STRUCT87).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT87)((void*)((char*)(&(_OMC_LIT_STRUCT87).header) + 3))
233static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT88,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT88
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT87((void*)((char*)(&(_OMC_LIT_STRUCT87).header) + 3))}};
234#define _OMC_LIT88((void*)((char*)(&(_OMC_LIT_STRUCT88).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT88)((void*)((char*)(&(_OMC_LIT_STRUCT88).header) + 3))
235static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT89,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT89
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(35))((void*)(((((mmc_uint_t) (35)) << 1)+0))),_OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)),_OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)),_OMC_LIT88((void*)((char*)(&(_OMC_LIT_STRUCT88).header) + 3))}};
236#define _OMC_LIT89((void*)((char*)(&(_OMC_LIT_STRUCT89).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT89)((void*)((char*)(&(_OMC_LIT_STRUCT89).header) + 3))
237#define _OMC_LIT90_data"Connections where both connectors are outer references" "Connections where both connectors are outer references"
238static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT90,54,_OMC_LIT90_data)struct { mmc_uint_t header; const char data[(54)+1]; } _OMC_LIT_STRUCT90
= { ((((mmc_uint_t)54)<<(3))+((1<<(3+3))+5)), "Connections where both connectors are outer references"
}
;
239#define _OMC_LIT90((void*)((char*)(&(_OMC_LIT_STRUCT90).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT90)((void*)((char*)(&(_OMC_LIT_STRUCT90).header) + 3))
240#define _OMC_LIT91_data"No suggestion" "No suggestion"
241static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT91,13,_OMC_LIT91_data)struct { mmc_uint_t header; const char data[(13)+1]; } _OMC_LIT_STRUCT91
= { ((((mmc_uint_t)13)<<(3))+((1<<(3+3))+5)), "No suggestion"
}
;
242#define _OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT91)((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3))
243static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT92,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT92
= { (((2) << 10) + (((1) & 255) << 2)),
{_OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
244#define _OMC_LIT92((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT92)((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3))
245static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT93,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT93
= { (((2) << 10) + (((1) & 255) << 2)),
{_OMC_LIT90((void*)((char*)(&(_OMC_LIT_STRUCT90).header) + 3)),_OMC_LIT92((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3))}};
246#define _OMC_LIT93((void*)((char*)(&(_OMC_LIT_STRUCT93).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT93)((void*)((char*)(&(_OMC_LIT_STRUCT93).header) + 3))
247static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT94,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT94
= { (((1) << 10) + (((4) & 255) << 2)),
{&DAE_Connect_ConnectorType_FLOW__desc,}};
248#define _OMC_LIT94((void*)((char*)(&(_OMC_LIT_STRUCT94).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT94)((void*)((char*)(&(_OMC_LIT_STRUCT94).header) + 3))
249#define _OMC_LIT95_data"Unknown var " "Unknown var "
250static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT95,12,_OMC_LIT95_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT95
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "Unknown var "
}
;
251#define _OMC_LIT95((void*)((char*)(&(_OMC_LIT_STRUCT95).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT95)((void*)((char*)(&(_OMC_LIT_STRUCT95).header) + 3))
252#define _OMC_LIT96_data" in ConnectUtil.daeVarToCrefs" " in ConnectUtil.daeVarToCrefs"
253static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT96,29,_OMC_LIT96_data)struct { mmc_uint_t header; const char data[(29)+1]; } _OMC_LIT_STRUCT96
= { ((((mmc_uint_t)29)<<(3))+((1<<(3+3))+5)), " in ConnectUtil.daeVarToCrefs"
}
;
254#define _OMC_LIT96((void*)((char*)(&(_OMC_LIT_STRUCT96).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT96)((void*)((char*)(&(_OMC_LIT_STRUCT96).header) + 3))
255#define _OMC_LIT97_data"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
256static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT97,97,_OMC_LIT97_data)struct { mmc_uint_t header; const char data[(97)+1]; } _OMC_LIT_STRUCT97
= { ((((mmc_uint_t)97)<<(3))+((1<<(3+3))+5)), "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
}
;
257#define _OMC_LIT97((void*)((char*)(&(_OMC_LIT_STRUCT97).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT97)((void*)((char*)(&(_OMC_LIT_STRUCT97).header) + 3))
258static const MMC_DEFREALLIT(_OMC_LIT_STRUCT98_6,1580577680.0)struct mmc_real_lit _OMC_LIT_STRUCT98_6 = {0,(((8/8) <<
10) + 9),1580577680.0}
;
259#define _OMC_LIT98_6((void*)((char*)(&(_OMC_LIT_STRUCT98_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT98_6)((void*)((char*)(&(_OMC_LIT_STRUCT98_6).header) + 3))
260static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT98,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT98
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT97((void*)((char*)(&(_OMC_LIT_STRUCT97).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(465))((void*)(((((mmc_uint_t) (465)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(9))((void*)(((((mmc_uint_t) (9)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(466))((void*)(((((mmc_uint_t) (466)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(57))((void*)(((((mmc_uint_t) (57)) << 1)+0))),_OMC_LIT98_6((void*)((char*)(&(_OMC_LIT_STRUCT98_6).header) + 3))}};
261#define _OMC_LIT98((void*)((char*)(&(_OMC_LIT_STRUCT98).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT98)((void*)((char*)(&(_OMC_LIT_STRUCT98).header) + 3))
262#define _OMC_LIT99_data"disableSingleFlowEq" "disableSingleFlowEq"
263static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT99,19,_OMC_LIT99_data)struct { mmc_uint_t header; const char data[(19)+1]; } _OMC_LIT_STRUCT99
= { ((((mmc_uint_t)19)<<(3))+((1<<(3+3))+5)), "disableSingleFlowEq"
}
;
264#define _OMC_LIT99((void*)((char*)(&(_OMC_LIT_STRUCT99).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT99)((void*)((char*)(&(_OMC_LIT_STRUCT99).header) + 3))
265#define _OMC_LIT100_data"Disables the generation of single flow equations." "Disables the generation of single flow equations."
266static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT100,49,_OMC_LIT100_data)struct { mmc_uint_t header; const char data[(49)+1]; } _OMC_LIT_STRUCT100
= { ((((mmc_uint_t)49)<<(3))+((1<<(3+3))+5)), "Disables the generation of single flow equations."
}
;
267#define _OMC_LIT100((void*)((char*)(&(_OMC_LIT_STRUCT100).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT100)((void*)((char*)(&(_OMC_LIT_STRUCT100).header) + 3))
268static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT101,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT101
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT100((void*)((char*)(&(_OMC_LIT_STRUCT100).header) + 3))}};
269#define _OMC_LIT101((void*)((char*)(&(_OMC_LIT_STRUCT101).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT101)((void*)((char*)(&(_OMC_LIT_STRUCT101).header) + 3))
270static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT102,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT102
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(93))((void*)(((((mmc_uint_t) (93)) << 1)+0))),_OMC_LIT99((void*)((char*)(&(_OMC_LIT_STRUCT99).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT101((void*)((char*)(&(_OMC_LIT_STRUCT101).header) + 3))}};
271#define _OMC_LIT102((void*)((char*)(&(_OMC_LIT_STRUCT102).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT102)((void*)((char*)(&(_OMC_LIT_STRUCT102).header) + 3))
272static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT103,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT103
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_Connect_ConnectorType_EQU__desc,}};
273#define _OMC_LIT103((void*)((char*)(&(_OMC_LIT_STRUCT103).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT103)((void*)((char*)(&(_OMC_LIT_STRUCT103).header) + 3))
274#define _OMC_LIT104_data"ConnectUtil.makeConnectorType: invalid connector type." "ConnectUtil.makeConnectorType: invalid connector type."
275static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT104,54,_OMC_LIT104_data)struct { mmc_uint_t header; const char data[(54)+1]; } _OMC_LIT_STRUCT104
= { ((((mmc_uint_t)54)<<(3))+((1<<(3+3))+5)), "ConnectUtil.makeConnectorType: invalid connector type."
}
;
276#define _OMC_LIT104((void*)((char*)(&(_OMC_LIT_STRUCT104).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT104)((void*)((char*)(&(_OMC_LIT_STRUCT104).header) + 3))
277static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT105,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT105
= { (((2) << 10) + (((1) & 255) << 2)),
{_OMC_LIT104((void*)((char*)(&(_OMC_LIT_STRUCT104).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
278#define _OMC_LIT105((void*)((char*)(&(_OMC_LIT_STRUCT105).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT105)((void*)((char*)(&(_OMC_LIT_STRUCT105).header) + 3))
279static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT106,1,7)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT106
= { (((1) << 10) + (((7) & 255) << 2)),
{&DAE_ComponentRef_WILD__desc,}};
280#define _OMC_LIT106((void*)((char*)(&(_OMC_LIT_STRUCT106).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT106)((void*)((char*)(&(_OMC_LIT_STRUCT106).header) + 3))
281#include "util/modelica.h"
282
283#include "ConnectUtil_includes.h"
284
285
286/* default, do not make protected functions static */
287#if !defined(PROTECTED_FUNCTION_STATIC)
288#define PROTECTED_FUNCTION_STATIC
289#endif
290PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_isEquType(threadData_t *threadData, modelica_metatype _ty);
291PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_isEquType(threadData_t *threadData, modelica_metatype _ty);
292static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_isEquType,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_isEquType
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_isEquType,0}};
293#define boxvar_ConnectUtil_isEquType((void*)((char*)(&(boxvar_lit_ConnectUtil_isEquType).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_isEquType)((void*)((char*)(&(boxvar_lit_ConnectUtil_isEquType).header
) + 3))
294PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_removeUnusedExpandableVariablesAndConnections(threadData_t *threadData, modelica_metatype _D_24in_sets, modelica_metatype _D_24in_DAE, modelica_metatype *out_DAE);
295static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_removeUnusedExpandableVariablesAndConnections,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_removeUnusedExpandableVariablesAndConnections
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_removeUnusedExpandableVariablesAndConnectionsomc_ConnectUtil_removeUnusedExpandableVariablesAndConnections,0}};
296#define boxvar_ConnectUtil_removeUnusedExpandableVariablesAndConnections((void*)((char*)(&(boxvar_lit_ConnectUtil_removeUnusedExpandableVariablesAndConnections
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_removeUnusedExpandableVariablesAndConnections)((void*)((char*)(&(boxvar_lit_ConnectUtil_removeUnusedExpandableVariablesAndConnections
).header) + 3))
297PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_getAllEquCrefs(threadData_t *threadData, modelica_metatype _sets);
298static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_getAllEquCrefs,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_getAllEquCrefs
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_getAllEquCrefsomc_ConnectUtil_getAllEquCrefs,0}};
299#define boxvar_ConnectUtil_getAllEquCrefs((void*)((char*)(&(boxvar_lit_ConnectUtil_getAllEquCrefs)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_getAllEquCrefs)((void*)((char*)(&(boxvar_lit_ConnectUtil_getAllEquCrefs)
.header) + 3))
300PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_printSetStr(threadData_t *threadData, modelica_metatype _set);
301static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_printSetStr,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_printSetStr
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_printSetStromc_ConnectUtil_printSetStr,0}};
302#define boxvar_ConnectUtil_printSetStr((void*)((char*)(&(boxvar_lit_ConnectUtil_printSetStr).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_printSetStr)((void*)((char*)(&(boxvar_lit_ConnectUtil_printSetStr).header
) + 3))
303PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_printSetConnection(threadData_t *threadData, modelica_metatype _connection);
304static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_printSetConnection,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_printSetConnection
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_printSetConnectionomc_ConnectUtil_printSetConnection,0}};
305#define boxvar_ConnectUtil_printSetConnection((void*)((char*)(&(boxvar_lit_ConnectUtil_printSetConnection
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_printSetConnection)((void*)((char*)(&(boxvar_lit_ConnectUtil_printSetConnection
).header) + 3))
306PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_printSetConnections(threadData_t *threadData, modelica_metatype _connections);
307static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_printSetConnections,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_printSetConnections
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_printSetConnectionsomc_ConnectUtil_printSetConnections,0}};
308#define boxvar_ConnectUtil_printSetConnections((void*)((char*)(&(boxvar_lit_ConnectUtil_printSetConnections
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_printSetConnections)((void*)((char*)(&(boxvar_lit_ConnectUtil_printSetConnections
).header) + 3))
309PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_printOptFlowAssociation(threadData_t *threadData, modelica_metatype _cref);
310static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_printOptFlowAssociation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_printOptFlowAssociation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_printOptFlowAssociationomc_ConnectUtil_printOptFlowAssociation,0}};
311#define boxvar_ConnectUtil_printOptFlowAssociation((void*)((char*)(&(boxvar_lit_ConnectUtil_printOptFlowAssociation
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_printOptFlowAssociation)((void*)((char*)(&(boxvar_lit_ConnectUtil_printOptFlowAssociation
).header) + 3))
312PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_printConnectorTypeStr(threadData_t *threadData, modelica_metatype _ty);
313static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_printConnectorTypeStr,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_printConnectorTypeStr
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_printConnectorTypeStromc_ConnectUtil_printConnectorTypeStr,0}};
314#define boxvar_ConnectUtil_printConnectorTypeStr((void*)((char*)(&(boxvar_lit_ConnectUtil_printConnectorTypeStr
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_printConnectorTypeStr)((void*)((char*)(&(boxvar_lit_ConnectUtil_printConnectorTypeStr
).header) + 3))
315PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_printLeafElementStr(threadData_t *threadData, modelica_metatype _element);
316static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_printLeafElementStr,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_printLeafElementStr
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_printLeafElementStromc_ConnectUtil_printLeafElementStr,0}};
317#define boxvar_ConnectUtil_printLeafElementStr((void*)((char*)(&(boxvar_lit_ConnectUtil_printLeafElementStr
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_printLeafElementStr)((void*)((char*)(&(boxvar_lit_ConnectUtil_printLeafElementStr
).header) + 3))
318PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_printSetTrieStr(threadData_t *threadData, modelica_metatype _trie, modelica_string _accumName);
319static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_printSetTrieStr,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_printSetTrieStr
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_printSetTrieStromc_ConnectUtil_printSetTrieStr,0}};
320#define boxvar_ConnectUtil_printSetTrieStr((void*)((char*)(&(boxvar_lit_ConnectUtil_printSetTrieStr
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_printSetTrieStr)((void*)((char*)(&(boxvar_lit_ConnectUtil_printSetTrieStr
).header) + 3))
321PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_removeReferenceFromConnects2(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _element);
322PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_removeReferenceFromConnects2(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _element);
323static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_removeReferenceFromConnects2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_removeReferenceFromConnects2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_removeReferenceFromConnects2,0}};
324#define boxvar_ConnectUtil_removeReferenceFromConnects2((void*)((char*)(&(boxvar_lit_ConnectUtil_removeReferenceFromConnects2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_removeReferenceFromConnects2)((void*)((char*)(&(boxvar_lit_ConnectUtil_removeReferenceFromConnects2
).header) + 3))
325PROTECTED_FUNCTION_STATIC modelica_integer omc_ConnectUtil_sizeOfType(threadData_t *threadData, modelica_metatype _ty);
326PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_sizeOfType(threadData_t *threadData, modelica_metatype _ty);
327static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_sizeOfType,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_sizeOfType
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_sizeOfType,0}};
328#define boxvar_ConnectUtil_sizeOfType((void*)((char*)(&(boxvar_lit_ConnectUtil_sizeOfType).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_sizeOfType)((void*)((char*)(&(boxvar_lit_ConnectUtil_sizeOfType).header
) + 3))
329PROTECTED_FUNCTION_STATIC modelica_integer omc_ConnectUtil_sizeOfVariableList(threadData_t *threadData, modelica_metatype _vars);
330PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_sizeOfVariableList(threadData_t *threadData, modelica_metatype _vars);
331static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_sizeOfVariableList,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_sizeOfVariableList
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_sizeOfVariableList,0}};
332#define boxvar_ConnectUtil_sizeOfVariableList((void*)((char*)(&(boxvar_lit_ConnectUtil_sizeOfVariableList
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_sizeOfVariableList)((void*)((char*)(&(boxvar_lit_ConnectUtil_sizeOfVariableList
).header) + 3))
333PROTECTED_FUNCTION_STATIC modelica_integer omc_ConnectUtil_countConnectorVars(threadData_t *threadData, modelica_metatype _vars, modelica_integer *out_flowVars, modelica_integer *out_streamVars);
334PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_countConnectorVars(threadData_t *threadData, modelica_metatype _vars, modelica_metatype *out_flowVars, modelica_metatype *out_streamVars);
335static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_countConnectorVars,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_countConnectorVars
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_countConnectorVars,0}};
336#define boxvar_ConnectUtil_countConnectorVars((void*)((char*)(&(boxvar_lit_ConnectUtil_countConnectorVars
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_countConnectorVars)((void*)((char*)(&(boxvar_lit_ConnectUtil_countConnectorVars
).header) + 3))
337PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_checkConnectorBalance2(threadData_t *threadData, modelica_integer _potentialVars, modelica_integer _flowVars, modelica_integer _streamVars, modelica_metatype _path, modelica_metatype _info);
338PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_checkConnectorBalance2(threadData_t *threadData, modelica_metatype _potentialVars, modelica_metatype _flowVars, modelica_metatype _streamVars, modelica_metatype _path, modelica_metatype _info);
339static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_checkConnectorBalance2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_checkConnectorBalance2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_checkConnectorBalance2,0}};
340#define boxvar_ConnectUtil_checkConnectorBalance2((void*)((char*)(&(boxvar_lit_ConnectUtil_checkConnectorBalance2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_checkConnectorBalance2)((void*)((char*)(&(boxvar_lit_ConnectUtil_checkConnectorBalance2
).header) + 3))
341PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_compareCrefStreamSet(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _element);
342PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_compareCrefStreamSet(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _element);
343static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_compareCrefStreamSet,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_compareCrefStreamSet
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_compareCrefStreamSet,0}};
344#define boxvar_ConnectUtil_compareCrefStreamSet((void*)((char*)(&(boxvar_lit_ConnectUtil_compareCrefStreamSet
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_compareCrefStreamSet)((void*)((char*)(&(boxvar_lit_ConnectUtil_compareCrefStreamSet
).header) + 3))
345PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_removeStreamSetElement(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _D_24in_elements);
346static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_removeStreamSetElement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_removeStreamSetElement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_removeStreamSetElementomc_ConnectUtil_removeStreamSetElement,0}};
347#define boxvar_ConnectUtil_removeStreamSetElement((void*)((char*)(&(boxvar_lit_ConnectUtil_removeStreamSetElement
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_removeStreamSetElement)((void*)((char*)(&(boxvar_lit_ConnectUtil_removeStreamSetElement
).header) + 3))
348PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_simplifyDAEIfEquation(threadData_t *threadData, modelica_metatype _conditions, modelica_metatype _branches, modelica_metatype _elseBranch);
349static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_simplifyDAEIfEquation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_simplifyDAEIfEquation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_simplifyDAEIfEquationomc_ConnectUtil_simplifyDAEIfEquation,0}};
350#define boxvar_ConnectUtil_simplifyDAEIfEquation((void*)((char*)(&(boxvar_lit_ConnectUtil_simplifyDAEIfEquation
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_simplifyDAEIfEquation)((void*)((char*)(&(boxvar_lit_ConnectUtil_simplifyDAEIfEquation
).header) + 3))
351PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_simplifyDAEElement(threadData_t *threadData, modelica_metatype _element);
352static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_simplifyDAEElement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_simplifyDAEElement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_simplifyDAEElementomc_ConnectUtil_simplifyDAEElement,0}};
353#define boxvar_ConnectUtil_simplifyDAEElement((void*)((char*)(&(boxvar_lit_ConnectUtil_simplifyDAEElement
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_simplifyDAEElement)((void*)((char*)(&(boxvar_lit_ConnectUtil_simplifyDAEElement
).header) + 3))
354PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_simplifyDAEElements(threadData_t *threadData, modelica_boolean _hasCardinality, modelica_metatype _D_24in_DAE);
355PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_simplifyDAEElements(threadData_t *threadData, modelica_metatype _hasCardinality, modelica_metatype _D_24in_DAE);
356static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_simplifyDAEElements,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_simplifyDAEElements
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_simplifyDAEElements,0}};
357#define boxvar_ConnectUtil_simplifyDAEElements((void*)((char*)(&(boxvar_lit_ConnectUtil_simplifyDAEElements
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_simplifyDAEElements)((void*)((char*)(&(boxvar_lit_ConnectUtil_simplifyDAEElements
).header) + 3))
358PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_evaluateCardinality(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _sets);
359static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_evaluateCardinality,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_evaluateCardinality
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_evaluateCardinalityomc_ConnectUtil_evaluateCardinality,0}};
360#define boxvar_ConnectUtil_evaluateCardinality((void*)((char*)(&(boxvar_lit_ConnectUtil_evaluateCardinality
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_evaluateCardinality)((void*)((char*)(&(boxvar_lit_ConnectUtil_evaluateCardinality
).header) + 3))
361PROTECTED_FUNCTION_STATIC modelica_integer omc_ConnectUtil_evaluateFlowDirection(threadData_t *threadData, modelica_metatype _ty);
362PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_evaluateFlowDirection(threadData_t *threadData, modelica_metatype _ty);
363static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_evaluateFlowDirection,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_evaluateFlowDirection
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_evaluateFlowDirection,0}};
364#define boxvar_ConnectUtil_evaluateFlowDirection((void*)((char*)(&(boxvar_lit_ConnectUtil_evaluateFlowDirection
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_evaluateFlowDirection)((void*)((char*)(&(boxvar_lit_ConnectUtil_evaluateFlowDirection
).header) + 3))
365PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_evaluateActualStream(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _sets, modelica_metatype _setArray, modelica_real _flowThreshold);
366PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_evaluateActualStream(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _sets, modelica_metatype _setArray, modelica_metatype _flowThreshold);
367static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_evaluateActualStream,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_evaluateActualStream
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_evaluateActualStream,0}};
368#define boxvar_ConnectUtil_evaluateActualStream((void*)((char*)(&(boxvar_lit_ConnectUtil_evaluateActualStream
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_evaluateActualStream)((void*)((char*)(&(boxvar_lit_ConnectUtil_evaluateActualStream
).header) + 3))
369PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_generateInStreamExp(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _streams, modelica_metatype _sets, modelica_metatype _setArray, modelica_real _flowThreshold);
370PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_generateInStreamExp(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _streams, modelica_metatype _sets, modelica_metatype _setArray, modelica_metatype _flowThreshold);
371static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_generateInStreamExp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_generateInStreamExp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_generateInStreamExp,0}};
372#define boxvar_ConnectUtil_generateInStreamExp((void*)((char*)(&(boxvar_lit_ConnectUtil_generateInStreamExp
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_generateInStreamExp)((void*)((char*)(&(boxvar_lit_ConnectUtil_generateInStreamExp
).header) + 3))
373PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_evaluateInStream(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _sets, modelica_metatype _setArray, modelica_real _flowThreshold);
374PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_evaluateInStream(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _sets, modelica_metatype _setArray, modelica_metatype _flowThreshold);
375static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_evaluateInStream,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_evaluateInStream
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_evaluateInStream,0}};
376#define boxvar_ConnectUtil_evaluateInStream((void*)((char*)(&(boxvar_lit_ConnectUtil_evaluateInStream
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_evaluateInStream)((void*)((char*)(&(boxvar_lit_ConnectUtil_evaluateInStream
).header) + 3))
377PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_mkArrayIfNeeded(threadData_t *threadData, modelica_metatype _ty, modelica_metatype _D_24in_exp);
378static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_mkArrayIfNeeded,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_mkArrayIfNeeded
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_mkArrayIfNeededomc_ConnectUtil_mkArrayIfNeeded,0}};
379#define boxvar_ConnectUtil_mkArrayIfNeeded((void*)((char*)(&(boxvar_lit_ConnectUtil_mkArrayIfNeeded
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_mkArrayIfNeeded)((void*)((char*)(&(boxvar_lit_ConnectUtil_mkArrayIfNeeded
).header) + 3))
380PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_evaluateConnectionOperatorsExp(threadData_t *threadData, modelica_metatype _D_24in_exp, modelica_metatype _sets, modelica_metatype _setArray, modelica_real _flowThreshold, modelica_boolean _D_24in_changed, modelica_boolean *out_changed);
381PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_evaluateConnectionOperatorsExp(threadData_t *threadData, modelica_metatype _D_24in_exp, modelica_metatype _sets, modelica_metatype _setArray, modelica_metatype _flowThreshold, modelica_metatype _D_24in_changed, modelica_metatype *out_changed);
382static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_evaluateConnectionOperatorsExp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_evaluateConnectionOperatorsExp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_evaluateConnectionOperatorsExp,0}};
383#define boxvar_ConnectUtil_evaluateConnectionOperatorsExp((void*)((char*)(&(boxvar_lit_ConnectUtil_evaluateConnectionOperatorsExp
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_evaluateConnectionOperatorsExp)((void*)((char*)(&(boxvar_lit_ConnectUtil_evaluateConnectionOperatorsExp
).header) + 3))
384PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_evaluateConnectionOperators2(threadData_t *threadData, modelica_metatype _D_24in_exp, modelica_metatype _D_24in_sets, modelica_metatype _setArray, modelica_boolean _hasCardinality, modelica_real _flowThreshold, modelica_metatype *out_sets);
385PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_evaluateConnectionOperators2(threadData_t *threadData, modelica_metatype _D_24in_exp, modelica_metatype _D_24in_sets, modelica_metatype _setArray, modelica_metatype _hasCardinality, modelica_metatype _flowThreshold, modelica_metatype *out_sets);
386static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_evaluateConnectionOperators2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_evaluateConnectionOperators2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_evaluateConnectionOperators2,0}};
387#define boxvar_ConnectUtil_evaluateConnectionOperators2((void*)((char*)(&(boxvar_lit_ConnectUtil_evaluateConnectionOperators2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_evaluateConnectionOperators2)((void*)((char*)(&(boxvar_lit_ConnectUtil_evaluateConnectionOperators2
).header) + 3))
388PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_evaluateConnectionOperators(threadData_t *threadData, modelica_metatype _sets, modelica_metatype _setArray, modelica_metatype _D_24in_DAE);
389static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_evaluateConnectionOperators,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_evaluateConnectionOperators
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_evaluateConnectionOperatorsomc_ConnectUtil_evaluateConnectionOperators,0}};
390#define boxvar_ConnectUtil_evaluateConnectionOperators((void*)((char*)(&(boxvar_lit_ConnectUtil_evaluateConnectionOperators
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_evaluateConnectionOperators)((void*)((char*)(&(boxvar_lit_ConnectUtil_evaluateConnectionOperators
).header) + 3))
391PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_makePositiveMaxCall(threadData_t *threadData, modelica_metatype _flowExp, modelica_metatype _flowThreshold);
392static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_makePositiveMaxCall,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_makePositiveMaxCall
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_makePositiveMaxCallomc_ConnectUtil_makePositiveMaxCall,0}};
393#define boxvar_ConnectUtil_makePositiveMaxCall((void*)((char*)(&(boxvar_lit_ConnectUtil_makePositiveMaxCall
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_makePositiveMaxCall)((void*)((char*)(&(boxvar_lit_ConnectUtil_makePositiveMaxCall
).header) + 3))
394PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_makeInStreamCall(threadData_t *threadData, modelica_metatype _streamExp);
395static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_makeInStreamCall,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_makeInStreamCall
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_makeInStreamCallomc_ConnectUtil_makeInStreamCall,0}};
396#define boxvar_ConnectUtil_makeInStreamCall((void*)((char*)(&(boxvar_lit_ConnectUtil_makeInStreamCall
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_makeInStreamCall)((void*)((char*)(&(boxvar_lit_ConnectUtil_makeInStreamCall
).header) + 3))
397PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_sumInside2(threadData_t *threadData, modelica_metatype _element, modelica_real _flowThreshold);
398PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_sumInside2(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold);
399static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_sumInside2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_sumInside2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_sumInside2,0}};
400#define boxvar_ConnectUtil_sumInside2((void*)((char*)(&(boxvar_lit_ConnectUtil_sumInside2).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_sumInside2)((void*)((char*)(&(boxvar_lit_ConnectUtil_sumInside2).header
) + 3))
401PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_sumOutside2(threadData_t *threadData, modelica_metatype _element, modelica_real _flowThreshold);
402PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_sumOutside2(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold);
403static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_sumOutside2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_sumOutside2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_sumOutside2,0}};
404#define boxvar_ConnectUtil_sumOutside2((void*)((char*)(&(boxvar_lit_ConnectUtil_sumOutside2).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_sumOutside2)((void*)((char*)(&(boxvar_lit_ConnectUtil_sumOutside2).header
) + 3))
405PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_sumInside1(threadData_t *threadData, modelica_metatype _element, modelica_real _flowThreshold);
406PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_sumInside1(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold);
407static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_sumInside1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_sumInside1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_sumInside1,0}};
408#define boxvar_ConnectUtil_sumInside1((void*)((char*)(&(boxvar_lit_ConnectUtil_sumInside1).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_sumInside1)((void*)((char*)(&(boxvar_lit_ConnectUtil_sumInside1).header
) + 3))
409PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_sumOutside1(threadData_t *threadData, modelica_metatype _element, modelica_real _flowThreshold);
410PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_sumOutside1(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold);
411static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_sumOutside1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_sumOutside1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_sumOutside1,0}};
412#define boxvar_ConnectUtil_sumOutside1((void*)((char*)(&(boxvar_lit_ConnectUtil_sumOutside1).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_sumOutside1)((void*)((char*)(&(boxvar_lit_ConnectUtil_sumOutside1).header
) + 3))
413PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_flowExp(threadData_t *threadData, modelica_metatype _element);
414static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_flowExp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_flowExp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_flowExpomc_ConnectUtil_flowExp,0}};
415#define boxvar_ConnectUtil_flowExp((void*)((char*)(&(boxvar_lit_ConnectUtil_flowExp).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_flowExp)((void*)((char*)(&(boxvar_lit_ConnectUtil_flowExp).header
) + 3))
416PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_streamFlowExp(threadData_t *threadData, modelica_metatype _element, modelica_metatype *out_flowExp);
417static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_streamFlowExp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_streamFlowExp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_streamFlowExpomc_ConnectUtil_streamFlowExp,0}};
418#define boxvar_ConnectUtil_streamFlowExp((void*)((char*)(&(boxvar_lit_ConnectUtil_streamFlowExp).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_streamFlowExp)((void*)((char*)(&(boxvar_lit_ConnectUtil_streamFlowExp).
header) + 3))
419PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_sumMap(threadData_t *threadData, modelica_metatype _elements, modelica_fnptr _func, modelica_real _flowThreshold);
420PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_sumMap(threadData_t *threadData, modelica_metatype _elements, modelica_fnptr _func, modelica_metatype _flowThreshold);
421static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_sumMap,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_sumMap
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_sumMap,0}};
422#define boxvar_ConnectUtil_sumMap((void*)((char*)(&(boxvar_lit_ConnectUtil_sumMap).header)
+ 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_sumMap)((void*)((char*)(&(boxvar_lit_ConnectUtil_sumMap).header)
+ 3))
423PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_streamSumEquationExp(threadData_t *threadData, modelica_metatype _outsideElements, modelica_metatype _insideElements, modelica_real _flowThreshold);
424PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_streamSumEquationExp(threadData_t *threadData, modelica_metatype _outsideElements, modelica_metatype _insideElements, modelica_metatype _flowThreshold);
425static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_streamSumEquationExp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_streamSumEquationExp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_streamSumEquationExp,0}};
426#define boxvar_ConnectUtil_streamSumEquationExp((void*)((char*)(&(boxvar_lit_ConnectUtil_streamSumEquationExp
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_streamSumEquationExp)((void*)((char*)(&(boxvar_lit_ConnectUtil_streamSumEquationExp
).header) + 3))
427PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_streamEquationGeneral(threadData_t *threadData, modelica_metatype _outsideElements, modelica_metatype _insideElements, modelica_real _flowThreshold);
428PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_streamEquationGeneral(threadData_t *threadData, modelica_metatype _outsideElements, modelica_metatype _insideElements, modelica_metatype _flowThreshold);
429static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_streamEquationGeneral,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_streamEquationGeneral
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_streamEquationGeneral,0}};
430#define boxvar_ConnectUtil_streamEquationGeneral((void*)((char*)(&(boxvar_lit_ConnectUtil_streamEquationGeneral
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_streamEquationGeneral)((void*)((char*)(&(boxvar_lit_ConnectUtil_streamEquationGeneral
).header) + 3))
431PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_isZeroFlow(threadData_t *threadData, modelica_metatype _element, modelica_string _attr);
432PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_isZeroFlow(threadData_t *threadData, modelica_metatype _element, modelica_metatype _attr);
433static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_isZeroFlow,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_isZeroFlow
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_isZeroFlow,0}};
434#define boxvar_ConnectUtil_isZeroFlow((void*)((char*)(&(boxvar_lit_ConnectUtil_isZeroFlow).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_isZeroFlow)((void*)((char*)(&(boxvar_lit_ConnectUtil_isZeroFlow).header
) + 3))
435PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_isZeroFlowMinMax(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _element);
436PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_isZeroFlowMinMax(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _element);
437static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_isZeroFlowMinMax,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_isZeroFlowMinMax
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_isZeroFlowMinMax,0}};
438#define boxvar_ConnectUtil_isZeroFlowMinMax((void*)((char*)(&(boxvar_lit_ConnectUtil_isZeroFlowMinMax
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_isZeroFlowMinMax)((void*)((char*)(&(boxvar_lit_ConnectUtil_isZeroFlowMinMax
).header) + 3))
439PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_isOutsideElement(threadData_t *threadData, modelica_metatype _element);
440PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_isOutsideElement(threadData_t *threadData, modelica_metatype _element);
441static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_isOutsideElement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_isOutsideElement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_isOutsideElement,0}};
442#define boxvar_ConnectUtil_isOutsideElement((void*)((char*)(&(boxvar_lit_ConnectUtil_isOutsideElement
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_isOutsideElement)((void*)((char*)(&(boxvar_lit_ConnectUtil_isOutsideElement
).header) + 3))
443PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_generateStreamEquations(threadData_t *threadData, modelica_metatype _elements, modelica_real _flowThreshold);
444PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_generateStreamEquations(threadData_t *threadData, modelica_metatype _elements, modelica_metatype _flowThreshold);
445static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_generateStreamEquations,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_generateStreamEquations
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_generateStreamEquations,0}};
446#define boxvar_ConnectUtil_generateStreamEquations((void*)((char*)(&(boxvar_lit_ConnectUtil_generateStreamEquations
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_generateStreamEquations)((void*)((char*)(&(boxvar_lit_ConnectUtil_generateStreamEquations
).header) + 3))
447PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_increaseRefCount(threadData_t *threadData, modelica_integer _amount, modelica_metatype _D_24in_node);
448PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_increaseRefCount(threadData_t *threadData, modelica_metatype _amount, modelica_metatype _D_24in_node);
449static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_increaseRefCount,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_increaseRefCount
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_increaseRefCount,0}};
450#define boxvar_ConnectUtil_increaseRefCount((void*)((char*)(&(boxvar_lit_ConnectUtil_increaseRefCount
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_increaseRefCount)((void*)((char*)(&(boxvar_lit_ConnectUtil_increaseRefCount
).header) + 3))
451PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_makeFlowExp(threadData_t *threadData, modelica_metatype _element);
452static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_makeFlowExp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_makeFlowExp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_makeFlowExpomc_ConnectUtil_makeFlowExp,0}};
453#define boxvar_ConnectUtil_makeFlowExp((void*)((char*)(&(boxvar_lit_ConnectUtil_makeFlowExp).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_makeFlowExp)((void*)((char*)(&(boxvar_lit_ConnectUtil_makeFlowExp).header
) + 3))
454PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_generateFlowEquations(threadData_t *threadData, modelica_metatype _elements);
455static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_generateFlowEquations,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_generateFlowEquations
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_generateFlowEquationsomc_ConnectUtil_generateFlowEquations,0}};
456#define boxvar_ConnectUtil_generateFlowEquations((void*)((char*)(&(boxvar_lit_ConnectUtil_generateFlowEquations
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_generateFlowEquations)((void*)((char*)(&(boxvar_lit_ConnectUtil_generateFlowEquations
).header) + 3))
457PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_shouldFlipEquEquation(threadData_t *threadData, modelica_metatype _lhsCref, modelica_metatype _lhsSource);
458PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_shouldFlipEquEquation(threadData_t *threadData, modelica_metatype _lhsCref, modelica_metatype _lhsSource);
459static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_shouldFlipEquEquation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_shouldFlipEquEquation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_shouldFlipEquEquation,0}};
460#define boxvar_ConnectUtil_shouldFlipEquEquation((void*)((char*)(&(boxvar_lit_ConnectUtil_shouldFlipEquEquation
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_shouldFlipEquEquation)((void*)((char*)(&(boxvar_lit_ConnectUtil_shouldFlipEquEquation
).header) + 3))
461PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_generateEquEquations(threadData_t *threadData, modelica_metatype _elements);
462static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_generateEquEquations,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_generateEquEquations
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_generateEquEquationsomc_ConnectUtil_generateEquEquations,0}};
463#define boxvar_ConnectUtil_generateEquEquations((void*)((char*)(&(boxvar_lit_ConnectUtil_generateEquEquations
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_generateEquEquations)((void*)((char*)(&(boxvar_lit_ConnectUtil_generateEquEquations
).header) + 3))
464PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_equationsDispatch(threadData_t *threadData, modelica_metatype _sets, modelica_metatype _connected, modelica_metatype _broken);
465static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_equationsDispatch,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_equationsDispatch
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_equationsDispatchomc_ConnectUtil_equationsDispatch,0}};
466#define boxvar_ConnectUtil_equationsDispatch((void*)((char*)(&(boxvar_lit_ConnectUtil_equationsDispatch
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_equationsDispatch)((void*)((char*)(&(boxvar_lit_ConnectUtil_equationsDispatch
).header) + 3))
467PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setArrayGet(threadData_t *threadData, modelica_metatype _setArray, modelica_integer _index);
468PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_setArrayGet(threadData_t *threadData, modelica_metatype _setArray, modelica_metatype _index);
469static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setArrayGet,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setArrayGet
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setArrayGet,0}};
470#define boxvar_ConnectUtil_setArrayGet((void*)((char*)(&(boxvar_lit_ConnectUtil_setArrayGet).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setArrayGet)((void*)((char*)(&(boxvar_lit_ConnectUtil_setArrayGet).header
) + 3))
471PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_equSetElementLess(threadData_t *threadData, modelica_metatype _element1, modelica_metatype _element2);
472PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_equSetElementLess(threadData_t *threadData, modelica_metatype _element1, modelica_metatype _element2);
473static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_equSetElementLess,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_equSetElementLess
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_equSetElementLess,0}};
474#define boxvar_ConnectUtil_equSetElementLess((void*)((char*)(&(boxvar_lit_ConnectUtil_equSetElementLess
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_equSetElementLess)((void*)((char*)(&(boxvar_lit_ConnectUtil_equSetElementLess
).header) + 3))
475PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setArrayUpdate(threadData_t *threadData, modelica_metatype _D_24in_sets, modelica_integer _index, modelica_metatype _element);
476PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_setArrayUpdate(threadData_t *threadData, modelica_metatype _D_24in_sets, modelica_metatype _index, modelica_metatype _element);
477static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setArrayUpdate,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setArrayUpdate
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setArrayUpdate,0}};
478#define boxvar_ConnectUtil_setArrayUpdate((void*)((char*)(&(boxvar_lit_ConnectUtil_setArrayUpdate)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setArrayUpdate)((void*)((char*)(&(boxvar_lit_ConnectUtil_setArrayUpdate)
.header) + 3))
479PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_buildElementPrefix(threadData_t *threadData, modelica_metatype _prefix);
480static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_buildElementPrefix,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_buildElementPrefix
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_buildElementPrefixomc_ConnectUtil_buildElementPrefix,0}};
481#define boxvar_ConnectUtil_buildElementPrefix((void*)((char*)(&(boxvar_lit_ConnectUtil_buildElementPrefix
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_buildElementPrefix)((void*)((char*)(&(boxvar_lit_ConnectUtil_buildElementPrefix
).header) + 3))
482PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setArrayAddElement(threadData_t *threadData, modelica_metatype _element, modelica_metatype _prefix, modelica_metatype _D_24in_sets);
483static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setArrayAddElement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setArrayAddElement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setArrayAddElementomc_ConnectUtil_setArrayAddElement,0}};
484#define boxvar_ConnectUtil_setArrayAddElement((void*)((char*)(&(boxvar_lit_ConnectUtil_setArrayAddElement
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setArrayAddElement)((void*)((char*)(&(boxvar_lit_ConnectUtil_setArrayAddElement
).header) + 3))
485PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_insertFlowAssociationInStreamElement(threadData_t *threadData, modelica_metatype _D_24in_element, modelica_metatype _flowCref);
486static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_insertFlowAssociationInStreamElement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_insertFlowAssociationInStreamElement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_insertFlowAssociationInStreamElementomc_ConnectUtil_insertFlowAssociationInStreamElement,0}};
487#define boxvar_ConnectUtil_insertFlowAssociationInStreamElement((void*)((char*)(&(boxvar_lit_ConnectUtil_insertFlowAssociationInStreamElement
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_insertFlowAssociationInStreamElement)((void*)((char*)(&(boxvar_lit_ConnectUtil_insertFlowAssociationInStreamElement
).header) + 3))
488PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_generateSetArray2(threadData_t *threadData, modelica_metatype _sets, modelica_metatype _prefix, modelica_metatype _D_24in_setArray);
489static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_generateSetArray2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_generateSetArray2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_generateSetArray2omc_ConnectUtil_generateSetArray2,0}};
490#define boxvar_ConnectUtil_generateSetArray2((void*)((char*)(&(boxvar_lit_ConnectUtil_generateSetArray2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_generateSetArray2)((void*)((char*)(&(boxvar_lit_ConnectUtil_generateSetArray2
).header) + 3))
491PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setArrayAddConnection2(threadData_t *threadData, modelica_integer _setPointer, modelica_integer _setPointee, modelica_metatype _D_24in_sets);
492PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_setArrayAddConnection2(threadData_t *threadData, modelica_metatype _setPointer, modelica_metatype _setPointee, modelica_metatype _D_24in_sets);
493static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setArrayAddConnection2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setArrayAddConnection2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setArrayAddConnection2,0}};
494#define boxvar_ConnectUtil_setArrayAddConnection2((void*)((char*)(&(boxvar_lit_ConnectUtil_setArrayAddConnection2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setArrayAddConnection2)((void*)((char*)(&(boxvar_lit_ConnectUtil_setArrayAddConnection2
).header) + 3))
495PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setArrayAddConnection(threadData_t *threadData, modelica_integer _set, modelica_metatype _edges, modelica_metatype _D_24in_sets, modelica_metatype _D_24in_graph, modelica_metatype *out_graph);
496PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_setArrayAddConnection(threadData_t *threadData, modelica_metatype _set, modelica_metatype _edges, modelica_metatype _D_24in_sets, modelica_metatype _D_24in_graph, modelica_metatype *out_graph);
497static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setArrayAddConnection,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setArrayAddConnection
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setArrayAddConnection,0}};
498#define boxvar_ConnectUtil_setArrayAddConnection((void*)((char*)(&(boxvar_lit_ConnectUtil_setArrayAddConnection
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setArrayAddConnection)((void*)((char*)(&(boxvar_lit_ConnectUtil_setArrayAddConnection
).header) + 3))
499PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_addConnectionToGraph(threadData_t *threadData, modelica_metatype _connection, modelica_metatype _D_24in_graph);
500static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_addConnectionToGraph,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_addConnectionToGraph
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_addConnectionToGraphomc_ConnectUtil_addConnectionToGraph,0}};
501#define boxvar_ConnectUtil_addConnectionToGraph((void*)((char*)(&(boxvar_lit_ConnectUtil_addConnectionToGraph
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_addConnectionToGraph)((void*)((char*)(&(boxvar_lit_ConnectUtil_addConnectionToGraph
).header) + 3))
502PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setArrayAddConnections(threadData_t *threadData, modelica_metatype _connections, modelica_integer _setCount, modelica_metatype _D_24in_sets);
503PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_setArrayAddConnections(threadData_t *threadData, modelica_metatype _connections, modelica_metatype _setCount, modelica_metatype _D_24in_sets);
504static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setArrayAddConnections,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setArrayAddConnections
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setArrayAddConnections,0}};
505#define boxvar_ConnectUtil_setArrayAddConnections((void*)((char*)(&(boxvar_lit_ConnectUtil_setArrayAddConnections
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setArrayAddConnections)((void*)((char*)(&(boxvar_lit_ConnectUtil_setArrayAddConnections
).header) + 3))
506PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_generateSetArray(threadData_t *threadData, modelica_metatype _sets);
507static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_generateSetArray,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_generateSetArray
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_generateSetArrayomc_ConnectUtil_generateSetArray,0}};
508#define boxvar_ConnectUtil_generateSetArray((void*)((char*)(&(boxvar_lit_ConnectUtil_generateSetArray
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_generateSetArray)((void*)((char*)(&(boxvar_lit_ConnectUtil_generateSetArray
).header) + 3))
509PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_getOnlyExpandableConnectedCrefs(threadData_t *threadData, modelica_metatype _sets);
510static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_getOnlyExpandableConnectedCrefs,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_getOnlyExpandableConnectedCrefs
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_getOnlyExpandableConnectedCrefsomc_ConnectUtil_getOnlyExpandableConnectedCrefs,0}};
511#define boxvar_ConnectUtil_getOnlyExpandableConnectedCrefs((void*)((char*)(&(boxvar_lit_ConnectUtil_getOnlyExpandableConnectedCrefs
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_getOnlyExpandableConnectedCrefs)((void*)((char*)(&(boxvar_lit_ConnectUtil_getOnlyExpandableConnectedCrefs
).header) + 3))
512PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_mergeWithRest(threadData_t *threadData, modelica_metatype _D_24in_set, modelica_metatype _D_24in_sets, modelica_metatype _acc, modelica_metatype *out_sets);
513static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_mergeWithRest,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_mergeWithRest
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_mergeWithRestomc_ConnectUtil_mergeWithRest,0}};
514#define boxvar_ConnectUtil_mergeWithRest((void*)((char*)(&(boxvar_lit_ConnectUtil_mergeWithRest).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_mergeWithRest)((void*)((char*)(&(boxvar_lit_ConnectUtil_mergeWithRest).
header) + 3))
515PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_mergeEquSetsAsCrefs(threadData_t *threadData, modelica_metatype _D_24in_setsAsCrefs);
516static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_mergeEquSetsAsCrefs,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_mergeEquSetsAsCrefs
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_mergeEquSetsAsCrefsomc_ConnectUtil_mergeEquSetsAsCrefs,0}};
517#define boxvar_ConnectUtil_mergeEquSetsAsCrefs((void*)((char*)(&(boxvar_lit_ConnectUtil_mergeEquSetsAsCrefs
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_mergeEquSetsAsCrefs)((void*)((char*)(&(boxvar_lit_ConnectUtil_mergeEquSetsAsCrefs
).header) + 3))
518PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_removeCrefsFromSets2(threadData_t *threadData, modelica_metatype _set, modelica_metatype _nonUsefulExpandable);
519PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_removeCrefsFromSets2(threadData_t *threadData, modelica_metatype _set, modelica_metatype _nonUsefulExpandable);
520static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_removeCrefsFromSets2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_removeCrefsFromSets2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_removeCrefsFromSets2,0}};
521#define boxvar_ConnectUtil_removeCrefsFromSets2((void*)((char*)(&(boxvar_lit_ConnectUtil_removeCrefsFromSets2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_removeCrefsFromSets2)((void*)((char*)(&(boxvar_lit_ConnectUtil_removeCrefsFromSets2
).header) + 3))
522PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_removeCrefsFromSets(threadData_t *threadData, modelica_metatype _D_24in_sets, modelica_metatype _nonUsefulExpandable);
523static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_removeCrefsFromSets,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_removeCrefsFromSets
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_removeCrefsFromSetsomc_ConnectUtil_removeCrefsFromSets,0}};
524#define boxvar_ConnectUtil_removeCrefsFromSets((void*)((char*)(&(boxvar_lit_ConnectUtil_removeCrefsFromSets
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_removeCrefsFromSets)((void*)((char*)(&(boxvar_lit_ConnectUtil_removeCrefsFromSets
).header) + 3))
525PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_getExpandableEquSetsAsCrefs(threadData_t *threadData, modelica_metatype _sets);
526static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_getExpandableEquSetsAsCrefs,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_getExpandableEquSetsAsCrefs
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_getExpandableEquSetsAsCrefsomc_ConnectUtil_getExpandableEquSetsAsCrefs,0}};
527#define boxvar_ConnectUtil_getExpandableEquSetsAsCrefs((void*)((char*)(&(boxvar_lit_ConnectUtil_getExpandableEquSetsAsCrefs
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_getExpandableEquSetsAsCrefs)((void*)((char*)(&(boxvar_lit_ConnectUtil_getExpandableEquSetsAsCrefs
).header) + 3))
528PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_setTrieIsNode(threadData_t *threadData, modelica_metatype _node);
529PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_setTrieIsNode(threadData_t *threadData, modelica_metatype _node);
530static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieIsNode,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieIsNode
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieIsNode,0}};
531#define boxvar_ConnectUtil_setTrieIsNode((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieIsNode).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieIsNode)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieIsNode).
header) + 3))
532PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_setTrieLeafNamed(threadData_t *threadData, modelica_string _id, modelica_metatype _node);
533PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_setTrieLeafNamed(threadData_t *threadData, modelica_metatype _id, modelica_metatype _node);
534static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieLeafNamed,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieLeafNamed
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieLeafNamed,0}};
535#define boxvar_ConnectUtil_setTrieLeafNamed((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieLeafNamed
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieLeafNamed)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieLeafNamed
).header) + 3))
536PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setTrieGetLeaf(threadData_t *threadData, modelica_string _id, modelica_metatype _nodes);
537static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieGetLeaf,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieGetLeaf
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieGetLeafomc_ConnectUtil_setTrieGetLeaf,0}};
538#define boxvar_ConnectUtil_setTrieGetLeaf((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieGetLeaf)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieGetLeaf)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieGetLeaf)
.header) + 3))
539PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_setTrieNodeNamed(threadData_t *threadData, modelica_string _id, modelica_metatype _node);
540PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_setTrieNodeNamed(threadData_t *threadData, modelica_metatype _id, modelica_metatype _node);
541static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieNodeNamed,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieNodeNamed
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieNodeNamed,0}};
542#define boxvar_ConnectUtil_setTrieNodeNamed((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieNodeNamed
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieNodeNamed)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieNodeNamed
).header) + 3))
543PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setTrieGetNode(threadData_t *threadData, modelica_string _id, modelica_metatype _nodes);
544static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieGetNode,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieGetNode
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieGetNodeomc_ConnectUtil_setTrieGetNode,0}};
545#define boxvar_ConnectUtil_setTrieGetNode((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieGetNode)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieGetNode)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieGetNode)
.header) + 3))
546PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setTrieGet(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _trie, modelica_boolean _matchPrefix);
547PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_setTrieGet(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _trie, modelica_metatype _matchPrefix);
548static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieGet,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieGet
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieGet,0}};
549#define boxvar_ConnectUtil_setTrieGet((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieGet).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieGet)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieGet).header
) + 3))
550PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setTrieTraverseLeaves(threadData_t *threadData, modelica_metatype _D_24in_node, modelica_fnptr _updateFunc, modelica_metatype _D_24in_arg, modelica_metatype *out_arg);
551static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieTraverseLeaves,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieTraverseLeaves
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieTraverseLeavesomc_ConnectUtil_setTrieTraverseLeaves,0}};
552#define boxvar_ConnectUtil_setTrieTraverseLeaves((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieTraverseLeaves
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieTraverseLeaves)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieTraverseLeaves
).header) + 3))
553PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setTrieUpdateLeaf(threadData_t *threadData, modelica_string _id, modelica_metatype _arg, modelica_metatype _D_24in_nodes, modelica_fnptr _updateFunc);
554static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieUpdateLeaf,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieUpdateLeaf
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieUpdateLeafomc_ConnectUtil_setTrieUpdateLeaf,0}};
555#define boxvar_ConnectUtil_setTrieUpdateLeaf((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieUpdateLeaf
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieUpdateLeaf)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieUpdateLeaf
).header) + 3))
556PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setTrieUpdateNode2(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _arg, modelica_fnptr _updateFunc, modelica_metatype _D_24in_nodes);
557static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieUpdateNode2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieUpdateNode2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieUpdateNode2omc_ConnectUtil_setTrieUpdateNode2,0}};
558#define boxvar_ConnectUtil_setTrieUpdateNode2((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieUpdateNode2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieUpdateNode2)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieUpdateNode2
).header) + 3))
559PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setTrieUpdateNode(threadData_t *threadData, modelica_string _id, modelica_metatype _wholeCref, modelica_metatype _cref, modelica_metatype _arg, modelica_fnptr _updateFunc, modelica_metatype _D_24in_nodes);
560static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieUpdateNode,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieUpdateNode
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieUpdateNodeomc_ConnectUtil_setTrieUpdateNode,0}};
561#define boxvar_ConnectUtil_setTrieUpdateNode((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieUpdateNode
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieUpdateNode)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieUpdateNode
).header) + 3))
562PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setTrieUpdate(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _arg, modelica_metatype _D_24in_trie, modelica_fnptr _updateFunc);
563static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieUpdate,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieUpdate
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieUpdateomc_ConnectUtil_setTrieUpdate,0}};
564#define boxvar_ConnectUtil_setTrieUpdate((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieUpdate).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieUpdate)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieUpdate).
header) + 3))
565PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_updateSetLeaf(threadData_t *threadData, modelica_metatype _D_24in_sets, modelica_metatype _cref, modelica_metatype _arg, modelica_fnptr _updateFunc);
566static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_updateSetLeaf,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_updateSetLeaf
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_updateSetLeafomc_ConnectUtil_updateSetLeaf,0}};
567#define boxvar_ConnectUtil_updateSetLeaf((void*)((char*)(&(boxvar_lit_ConnectUtil_updateSetLeaf).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_updateSetLeaf)((void*)((char*)(&(boxvar_lit_ConnectUtil_updateSetLeaf).
header) + 3))
568PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setTrieAdd(threadData_t *threadData, modelica_metatype _element, modelica_metatype _D_24in_trie);
569static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieAdd,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieAdd
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieAddomc_ConnectUtil_setTrieAdd,0}};
570#define boxvar_ConnectUtil_setTrieAdd((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieAdd).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieAdd)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieAdd).header
) + 3))
571PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setTrieGetLeafElement(threadData_t *threadData, modelica_metatype _node, modelica_metatype _face);
572static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieGetLeafElement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieGetLeafElement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieGetLeafElementomc_ConnectUtil_setTrieGetLeafElement,0}};
573#define boxvar_ConnectUtil_setTrieGetLeafElement((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieGetLeafElement
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieGetLeafElement)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieGetLeafElement
).header) + 3))
574PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setTrieAddLeafElement(threadData_t *threadData, modelica_metatype _element, modelica_metatype _D_24in_node);
575static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieAddLeafElement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieAddLeafElement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieAddLeafElementomc_ConnectUtil_setTrieAddLeafElement,0}};
576#define boxvar_ConnectUtil_setTrieAddLeafElement((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieAddLeafElement
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieAddLeafElement)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieAddLeafElement
).header) + 3))
577PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setTrieGetElement(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _face, modelica_metatype _trie);
578static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieGetElement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieGetElement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieGetElementomc_ConnectUtil_setTrieGetElement,0}};
579#define boxvar_ConnectUtil_setTrieGetElement((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieGetElement
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieGetElement)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieGetElement
).header) + 3))
580PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_connectSets(threadData_t *threadData, modelica_metatype _element1, modelica_metatype _element2, modelica_metatype _D_24in_sets);
581static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_connectSets,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_connectSets
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_connectSetsomc_ConnectUtil_connectSets,0}};
582#define boxvar_ConnectUtil_connectSets((void*)((char*)(&(boxvar_lit_ConnectUtil_connectSets).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_connectSets)((void*)((char*)(&(boxvar_lit_ConnectUtil_connectSets).header
) + 3))
583PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_addToSet(threadData_t *threadData, modelica_metatype _element, modelica_metatype _set, modelica_metatype _D_24in_sets);
584static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_addToSet,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_addToSet
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_addToSetomc_ConnectUtil_addToSet,0}};
585#define boxvar_ConnectUtil_addToSet((void*)((char*)(&(boxvar_lit_ConnectUtil_addToSet).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_addToSet)((void*)((char*)(&(boxvar_lit_ConnectUtil_addToSet).header
) + 3))
586PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_addNewSet(threadData_t *threadData, modelica_metatype _element1, modelica_metatype _element2, modelica_metatype _D_24in_sets);
587static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_addNewSet,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_addNewSet
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_addNewSetomc_ConnectUtil_addNewSet,0}};
588#define boxvar_ConnectUtil_addNewSet((void*)((char*)(&(boxvar_lit_ConnectUtil_addNewSet).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_addNewSet)((void*)((char*)(&(boxvar_lit_ConnectUtil_addNewSet).header
) + 3))
589PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_mergeSets2(threadData_t *threadData, modelica_metatype _element1, modelica_metatype _element2, modelica_boolean _isNew1, modelica_boolean _isNew2, modelica_metatype _D_24in_sets);
590PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_mergeSets2(threadData_t *threadData, modelica_metatype _element1, modelica_metatype _element2, modelica_metatype _isNew1, modelica_metatype _isNew2, modelica_metatype _D_24in_sets);
591static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_mergeSets2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_mergeSets2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_mergeSets2,0}};
592#define boxvar_ConnectUtil_mergeSets2((void*)((char*)(&(boxvar_lit_ConnectUtil_mergeSets2).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_mergeSets2)((void*)((char*)(&(boxvar_lit_ConnectUtil_mergeSets2).header
) + 3))
593PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_mergeSets(threadData_t *threadData, modelica_metatype _element1, modelica_metatype _element2, modelica_metatype _D_24in_sets);
594static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_mergeSets,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_mergeSets
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_mergeSetsomc_ConnectUtil_mergeSets,0}};
595#define boxvar_ConnectUtil_mergeSets((void*)((char*)(&(boxvar_lit_ConnectUtil_mergeSets).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_mergeSets)((void*)((char*)(&(boxvar_lit_ConnectUtil_mergeSets).header
) + 3))
596PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_setTrieNodeName(threadData_t *threadData, modelica_metatype _node);
597static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieNodeName,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieNodeName
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieNodeNameomc_ConnectUtil_setTrieNodeName,0}};
598#define boxvar_ConnectUtil_setTrieNodeName((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieNodeName
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieNodeName)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieNodeName
).header) + 3))
599PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setTrieNewNode(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _element);
600static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieNewNode,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieNewNode
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieNewNodeomc_ConnectUtil_setTrieNewNode,0}};
601#define boxvar_ConnectUtil_setTrieNewNode((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieNewNode)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieNewNode)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieNewNode)
.header) + 3))
602PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setTrieNewLeaf(threadData_t *threadData, modelica_string _id, modelica_metatype _element);
603static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieNewLeaf,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setTrieNewLeaf
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setTrieNewLeafomc_ConnectUtil_setTrieNewLeaf,0}};
604#define boxvar_ConnectUtil_setTrieNewLeaf((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieNewLeaf)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setTrieNewLeaf)((void*)((char*)(&(boxvar_lit_ConnectUtil_setTrieNewLeaf)
.header) + 3))
605PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_getElementSource(threadData_t *threadData, modelica_metatype _element);
606static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_getElementSource,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_getElementSource
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_getElementSourceomc_ConnectUtil_getElementSource,0}};
607#define boxvar_ConnectUtil_getElementSource((void*)((char*)(&(boxvar_lit_ConnectUtil_getElementSource
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_getElementSource)((void*)((char*)(&(boxvar_lit_ConnectUtil_getElementSource
).header) + 3))
608PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setElementName(threadData_t *threadData, modelica_metatype _D_24in_element, modelica_metatype _name);
609static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setElementName,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setElementName
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setElementNameomc_ConnectUtil_setElementName,0}};
610#define boxvar_ConnectUtil_setElementName((void*)((char*)(&(boxvar_lit_ConnectUtil_setElementName)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setElementName)((void*)((char*)(&(boxvar_lit_ConnectUtil_setElementName)
.header) + 3))
611PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_getElementName(threadData_t *threadData, modelica_metatype _element);
612static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_getElementName,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_getElementName
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_getElementNameomc_ConnectUtil_getElementName,0}};
613#define boxvar_ConnectUtil_getElementName((void*)((char*)(&(boxvar_lit_ConnectUtil_getElementName)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_getElementName)((void*)((char*)(&(boxvar_lit_ConnectUtil_getElementName)
.header) + 3))
614PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setElementSetIndex(threadData_t *threadData, modelica_metatype _D_24in_element, modelica_integer _index);
615PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_setElementSetIndex(threadData_t *threadData, modelica_metatype _D_24in_element, modelica_metatype _index);
616static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_setElementSetIndex,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_setElementSetIndex
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_setElementSetIndex,0}};
617#define boxvar_ConnectUtil_setElementSetIndex((void*)((char*)(&(boxvar_lit_ConnectUtil_setElementSetIndex
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_setElementSetIndex)((void*)((char*)(&(boxvar_lit_ConnectUtil_setElementSetIndex
).header) + 3))
618PROTECTED_FUNCTION_STATIC modelica_integer omc_ConnectUtil_getElementSetIndex(threadData_t *threadData, modelica_metatype _inElement);
619PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_getElementSetIndex(threadData_t *threadData, modelica_metatype _inElement);
620static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_getElementSetIndex,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_getElementSetIndex
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_getElementSetIndex,0}};
621#define boxvar_ConnectUtil_getElementSetIndex((void*)((char*)(&(boxvar_lit_ConnectUtil_getElementSetIndex
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_getElementSetIndex)((void*)((char*)(&(boxvar_lit_ConnectUtil_getElementSetIndex
).header) + 3))
622PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_isNewElement(threadData_t *threadData, modelica_metatype _element);
623PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_isNewElement(threadData_t *threadData, modelica_metatype _element);
624static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_isNewElement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_isNewElement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_isNewElement,0}};
625#define boxvar_ConnectUtil_isNewElement((void*)((char*)(&(boxvar_lit_ConnectUtil_isNewElement).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_isNewElement)((void*)((char*)(&(boxvar_lit_ConnectUtil_isNewElement).header
) + 3))
626PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_newElement(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _face, modelica_metatype _ty, modelica_metatype _source, modelica_integer _set);
627PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_newElement(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _face, modelica_metatype _ty, modelica_metatype _source, modelica_metatype _set);
628static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_newElement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_newElement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_newElement,0}};
629#define boxvar_ConnectUtil_newElement((void*)((char*)(&(boxvar_lit_ConnectUtil_newElement).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_newElement)((void*)((char*)(&(boxvar_lit_ConnectUtil_newElement).header
) + 3))
630PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_findElement(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _face, modelica_metatype _ty, modelica_metatype _source, modelica_metatype _sets);
631static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_findElement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_findElement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_findElementomc_ConnectUtil_findElement,0}};
632#define boxvar_ConnectUtil_findElement((void*)((char*)(&(boxvar_lit_ConnectUtil_findElement).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_findElement)((void*)((char*)(&(boxvar_lit_ConnectUtil_findElement).header
) + 3))
633PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_optPrefixCref(threadData_t *threadData, modelica_metatype _prefix, modelica_metatype _D_24in_cref);
634static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_optPrefixCref,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_optPrefixCref
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_optPrefixCrefomc_ConnectUtil_optPrefixCref,0}};
635#define boxvar_ConnectUtil_optPrefixCref((void*)((char*)(&(boxvar_lit_ConnectUtil_optPrefixCref).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_optPrefixCref)((void*)((char*)(&(boxvar_lit_ConnectUtil_optPrefixCref).
header) + 3))
636PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_findInnerElement(threadData_t *threadData, modelica_metatype _outerElement, modelica_metatype _innerCref, modelica_metatype _innerFace, modelica_metatype _sets);
637static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_findInnerElement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_findInnerElement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_findInnerElementomc_ConnectUtil_findInnerElement,0}};
638#define boxvar_ConnectUtil_findInnerElement((void*)((char*)(&(boxvar_lit_ConnectUtil_findInnerElement
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_findInnerElement)((void*)((char*)(&(boxvar_lit_ConnectUtil_findInnerElement
).header) + 3))
639PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_collectOuterElements2(threadData_t *threadData, modelica_metatype _node, modelica_metatype _face, modelica_metatype _prefix);
640static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_collectOuterElements2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_collectOuterElements2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_collectOuterElements2omc_ConnectUtil_collectOuterElements2,0}};
641#define boxvar_ConnectUtil_collectOuterElements2((void*)((char*)(&(boxvar_lit_ConnectUtil_collectOuterElements2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_collectOuterElements2)((void*)((char*)(&(boxvar_lit_ConnectUtil_collectOuterElements2
).header) + 3))
642PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_collectOuterElements(threadData_t *threadData, modelica_metatype _node, modelica_metatype _face);
643static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_collectOuterElements,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_collectOuterElements
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_collectOuterElementsomc_ConnectUtil_collectOuterElements,0}};
644#define boxvar_ConnectUtil_collectOuterElements((void*)((char*)(&(boxvar_lit_ConnectUtil_collectOuterElements
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_collectOuterElements)((void*)((char*)(&(boxvar_lit_ConnectUtil_collectOuterElements
).header) + 3))
645PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_addOuterConnectToSets2(threadData_t *threadData, modelica_metatype _outerCref, modelica_metatype _innerCref, modelica_metatype _outerFace, modelica_metatype _innerFace, modelica_metatype _D_24in_sets, modelica_boolean *out_added);
646PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_addOuterConnectToSets2(threadData_t *threadData, modelica_metatype _outerCref, modelica_metatype _innerCref, modelica_metatype _outerFace, modelica_metatype _innerFace, modelica_metatype _D_24in_sets, modelica_metatype *out_added);
647static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_addOuterConnectToSets2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_addOuterConnectToSets2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_addOuterConnectToSets2,0}};
648#define boxvar_ConnectUtil_addOuterConnectToSets2((void*)((char*)(&(boxvar_lit_ConnectUtil_addOuterConnectToSets2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_addOuterConnectToSets2)((void*)((char*)(&(boxvar_lit_ConnectUtil_addOuterConnectToSets2
).header) + 3))
649PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_outerConnectionMatches(threadData_t *threadData, modelica_metatype _oc, modelica_metatype _cr1, modelica_metatype _cr2);
650PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_outerConnectionMatches(threadData_t *threadData, modelica_metatype _oc, modelica_metatype _cr1, modelica_metatype _cr2);
651static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_outerConnectionMatches,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_outerConnectionMatches
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_outerConnectionMatches,0}};
652#define boxvar_ConnectUtil_outerConnectionMatches((void*)((char*)(&(boxvar_lit_ConnectUtil_outerConnectionMatches
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_outerConnectionMatches)((void*)((char*)(&(boxvar_lit_ConnectUtil_outerConnectionMatches
).header) + 3))
653PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_getStreamFlowAssociation(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _sets);
654static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_getStreamFlowAssociation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_getStreamFlowAssociation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_getStreamFlowAssociationomc_ConnectUtil_getStreamFlowAssociation,0}};
655#define boxvar_ConnectUtil_getStreamFlowAssociation((void*)((char*)(&(boxvar_lit_ConnectUtil_getStreamFlowAssociation
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_getStreamFlowAssociation)((void*)((char*)(&(boxvar_lit_ConnectUtil_getStreamFlowAssociation
).header) + 3))
656PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_addStreamFlowAssociation2(threadData_t *threadData, modelica_metatype _flowCref, modelica_metatype _D_24in_node);
657static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_addStreamFlowAssociation2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_addStreamFlowAssociation2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_addStreamFlowAssociation2omc_ConnectUtil_addStreamFlowAssociation2,0}};
658#define boxvar_ConnectUtil_addStreamFlowAssociation2((void*)((char*)(&(boxvar_lit_ConnectUtil_addStreamFlowAssociation2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_addStreamFlowAssociation2)((void*)((char*)(&(boxvar_lit_ConnectUtil_addStreamFlowAssociation2
).header) + 3))
659PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_addStreamFlowAssociation(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _flowCref, modelica_metatype _D_24in_sets);
660static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_addStreamFlowAssociation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_addStreamFlowAssociation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_addStreamFlowAssociationomc_ConnectUtil_addStreamFlowAssociation,0}};
661#define boxvar_ConnectUtil_addStreamFlowAssociation((void*)((char*)(&(boxvar_lit_ConnectUtil_addStreamFlowAssociation
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_addStreamFlowAssociation)((void*)((char*)(&(boxvar_lit_ConnectUtil_addStreamFlowAssociation
).header) + 3))
662PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_addInsideFlowVariable(threadData_t *threadData, modelica_metatype _D_24in_sets, modelica_metatype _cref, modelica_metatype _source, modelica_metatype _prefix);
663static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_addInsideFlowVariable,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_addInsideFlowVariable
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_addInsideFlowVariableomc_ConnectUtil_addInsideFlowVariable,0}};
664#define boxvar_ConnectUtil_addInsideFlowVariable((void*)((char*)(&(boxvar_lit_ConnectUtil_addInsideFlowVariable
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_addInsideFlowVariable)((void*)((char*)(&(boxvar_lit_ConnectUtil_addInsideFlowVariable
).header) + 3))
665PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_getNextIndex(threadData_t *threadData, modelica_metatype _dim, modelica_metatype *out_restDim);
666static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_getNextIndex,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_getNextIndex
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_getNextIndexomc_ConnectUtil_getNextIndex,0}};
667#define boxvar_ConnectUtil_getNextIndex((void*)((char*)(&(boxvar_lit_ConnectUtil_getNextIndex).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_getNextIndex)((void*)((char*)(&(boxvar_lit_ConnectUtil_getNextIndex).header
) + 3))
668PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_reverseEnumType(threadData_t *threadData, modelica_metatype _D_24in_dim);
669static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_reverseEnumType,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_reverseEnumType
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_reverseEnumTypeomc_ConnectUtil_reverseEnumType,0}};
670#define boxvar_ConnectUtil_reverseEnumType((void*)((char*)(&(boxvar_lit_ConnectUtil_reverseEnumType
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_reverseEnumType)((void*)((char*)(&(boxvar_lit_ConnectUtil_reverseEnumType
).header) + 3))
671PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_expandArrayCref(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _dims, modelica_metatype _accumCrefs);
672static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_expandArrayCref,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_expandArrayCref
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_expandArrayCrefomc_ConnectUtil_expandArrayCref,0}};
673#define boxvar_ConnectUtil_expandArrayCref((void*)((char*)(&(boxvar_lit_ConnectUtil_expandArrayCref
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_expandArrayCref)((void*)((char*)(&(boxvar_lit_ConnectUtil_expandArrayCref
).header) + 3))
674PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_daeVarToCrefs(threadData_t *threadData, modelica_metatype _var);
675static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_daeVarToCrefs,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_daeVarToCrefs
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_daeVarToCrefsomc_ConnectUtil_daeVarToCrefs,0}};
676#define boxvar_ConnectUtil_daeVarToCrefs((void*)((char*)(&(boxvar_lit_ConnectUtil_daeVarToCrefs).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_daeVarToCrefs)((void*)((char*)(&(boxvar_lit_ConnectUtil_daeVarToCrefs).
header) + 3))
677PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_addStreamFlowAssociations(threadData_t *threadData, modelica_metatype _D_24in_sets, modelica_metatype _prefix, modelica_metatype _streamVars, modelica_metatype _flowVars);
678static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_addStreamFlowAssociations,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_addStreamFlowAssociations
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_addStreamFlowAssociationsomc_ConnectUtil_addStreamFlowAssociations,0}};
679#define boxvar_ConnectUtil_addStreamFlowAssociations((void*)((char*)(&(boxvar_lit_ConnectUtil_addStreamFlowAssociations
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_addStreamFlowAssociations)((void*)((char*)(&(boxvar_lit_ConnectUtil_addStreamFlowAssociations
).header) + 3))
680PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_getStreamAndFlowVariables(threadData_t *threadData, modelica_metatype _variables, modelica_metatype *out_streams);
681static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_getStreamAndFlowVariables,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_getStreamAndFlowVariables
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_getStreamAndFlowVariablesomc_ConnectUtil_getStreamAndFlowVariables,0}};
682#define boxvar_ConnectUtil_getStreamAndFlowVariables((void*)((char*)(&(boxvar_lit_ConnectUtil_getStreamAndFlowVariables
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_getStreamAndFlowVariables)((void*)((char*)(&(boxvar_lit_ConnectUtil_getStreamAndFlowVariables
).header) + 3))
683PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_getExpandableVariablesWithNoBinding(threadData_t *threadData, modelica_metatype _variables);
684static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_getExpandableVariablesWithNoBinding,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_getExpandableVariablesWithNoBinding
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_getExpandableVariablesWithNoBindingomc_ConnectUtil_getExpandableVariablesWithNoBinding,0}};
685#define boxvar_ConnectUtil_getExpandableVariablesWithNoBinding((void*)((char*)(&(boxvar_lit_ConnectUtil_getExpandableVariablesWithNoBinding
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_getExpandableVariablesWithNoBinding)((void*)((char*)(&(boxvar_lit_ConnectUtil_getExpandableVariablesWithNoBinding
).header) + 3))
686PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_isVarExpandable(threadData_t *threadData, modelica_metatype _var);
687PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_isVarExpandable(threadData_t *threadData, modelica_metatype _var);
688static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_isVarExpandable,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_isVarExpandable
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_isVarExpandable,0}};
689#define boxvar_ConnectUtil_isVarExpandable((void*)((char*)(&(boxvar_lit_ConnectUtil_isVarExpandable
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_isVarExpandable)((void*)((char*)(&(boxvar_lit_ConnectUtil_isVarExpandable
).header) + 3))
690PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_daeHasExpandableConnectors(threadData_t *threadData, modelica_metatype _DAE);
691PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_daeHasExpandableConnectors(threadData_t *threadData, modelica_metatype _DAE);
692static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_daeHasExpandableConnectors,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_daeHasExpandableConnectors
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_daeHasExpandableConnectors,0}};
693#define boxvar_ConnectUtil_daeHasExpandableConnectors((void*)((char*)(&(boxvar_lit_ConnectUtil_daeHasExpandableConnectors
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_daeHasExpandableConnectors)((void*)((char*)(&(boxvar_lit_ConnectUtil_daeHasExpandableConnectors
).header) + 3))
694PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_addFlowVariableFromDAE(threadData_t *threadData, modelica_metatype _variable, modelica_metatype _elementSource, modelica_metatype _prefix, modelica_metatype _D_24in_sets);
695static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_addFlowVariableFromDAE,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_addFlowVariableFromDAE
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_addFlowVariableFromDAEomc_ConnectUtil_addFlowVariableFromDAE,0}};
696#define boxvar_ConnectUtil_addFlowVariableFromDAE((void*)((char*)(&(boxvar_lit_ConnectUtil_addFlowVariableFromDAE
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_addFlowVariableFromDAE)((void*)((char*)(&(boxvar_lit_ConnectUtil_addFlowVariableFromDAE
).header) + 3))
697PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_makeConnectorType(threadData_t *threadData, modelica_metatype _connectorType);
698static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_makeConnectorType,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_makeConnectorType
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_makeConnectorTypeomc_ConnectUtil_makeConnectorType,0}};
699#define boxvar_ConnectUtil_makeConnectorType((void*)((char*)(&(boxvar_lit_ConnectUtil_makeConnectorType
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_makeConnectorType)((void*)((char*)(&(boxvar_lit_ConnectUtil_makeConnectorType
).header) + 3))
700PROTECTED_FUNCTION_STATIC modelica_integer omc_ConnectUtil_getConnectCount(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _trie);
701PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_getConnectCount(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _trie);
702static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_getConnectCount,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_getConnectCount
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_getConnectCount,0}};
703#define boxvar_ConnectUtil_getConnectCount((void*)((char*)(&(boxvar_lit_ConnectUtil_getConnectCount
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_getConnectCount)((void*)((char*)(&(boxvar_lit_ConnectUtil_getConnectCount
).header) + 3))
704PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_isEmptySet(threadData_t *threadData, modelica_metatype _sets);
705PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_isEmptySet(threadData_t *threadData, modelica_metatype _sets);
706static const MMC_DEFSTRUCTLIT(boxvar_lit_ConnectUtil_isEmptySet,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_ConnectUtil_isEmptySet
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_ConnectUtil_isEmptySet,0}};
707#define boxvar_ConnectUtil_isEmptySet((void*)((char*)(&(boxvar_lit_ConnectUtil_isEmptySet).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_ConnectUtil_isEmptySet)((void*)((char*)(&(boxvar_lit_ConnectUtil_isEmptySet).header
) + 3))
708
709PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_isEquType(threadData_t *threadData, modelica_metatype _ty)
710{
711 modelica_boolean _isEqu;
712 modelica_boolean tmp1 = 0;
713 MMC_SO()mmc_check_stackoverflow(threadData);
714 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
715 // _isEqu has no default value.
716#line 716 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
717 { /* match expression */
718 modelica_metatype tmp4_1;
719 tmp4_1 = _ty;
720 {
721 volatile mmc_switch_type tmp4;
722 int tmp5;
723 tmp4 = 0;
724 for (; tmp4 < 2; tmp4++) {
725 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
726 case 0: {
727 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;
728 /* Pattern matching succeeded */
729#line 3243 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
730 tmp1 = 1;
731#line 731 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
732 goto tmp3_done;
733 }
734 case 1: {
735
736 /* Pattern matching succeeded */
737#line 3244 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
738 tmp1 = 0;
739#line 739 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
740 goto tmp3_done;
741 }
742 }
743 goto tmp3_end;
744 tmp3_end: ;
745 }
746 goto goto_2;
747 goto_2:;
748 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
749 goto tmp3_done;
750 tmp3_done:;
751 }
752 }
753 _isEqu = tmp1;
754 _return: OMC_LABEL_UNUSED__attribute__((unused))
755 return _isEqu;
756}
757PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_isEquType(threadData_t *threadData, modelica_metatype _ty)
758{
759 modelica_boolean _isEqu;
760 modelica_metatype out_isEqu;
761 _isEqu = omc_ConnectUtil_isEquType(threadData, _ty);
762 out_isEqu = mmc_mk_icon(_isEqu);
763 return out_isEqu;
764}
765
766PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_removeUnusedExpandableVariablesAndConnections(threadData_t *threadData, modelica_metatype _D_24in_sets, modelica_metatype _D_24in_DAE, modelica_metatype *out_DAE)
767{
768 modelica_metatype _sets = NULL((void*)0);
769 modelica_metatype _DAE = NULL((void*)0);
770 modelica_metatype _elems = NULL((void*)0);
771 modelica_metatype _expandableVars = NULL((void*)0);
772 modelica_metatype _unnecessary = NULL((void*)0);
773 modelica_metatype _usedInDAE = NULL((void*)0);
774 modelica_metatype _onlyExpandableConnected = NULL((void*)0);
775 modelica_metatype _equVars = NULL((void*)0);
776 modelica_metatype _dae = NULL((void*)0);
777 modelica_metatype _setsAsCrefs = NULL((void*)0);
778 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
779 MMC_SO()mmc_check_stackoverflow(threadData);
780 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
781 _sets = _D_24in_sets;
782 _DAE = _D_24in_DAE;
783 // _elems has no default value.
784 // _expandableVars has no default value.
785 // _unnecessary has no default value.
786 // _usedInDAE has no default value.
787 // _onlyExpandableConnected has no default value.
788 // _equVars has no default value.
789 // _dae has no default value.
790 // _setsAsCrefs has no default value.
791#line 3200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
792 /* Pattern-matching assignment */
793#line 3200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
794 tmpMeta[0] = _DAE;
795#line 3200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
796 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
797#line 3200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
798 _elems = tmpMeta[1];
799#line 799 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
800
801#line 3203 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
802 _expandableVars = omc_ConnectUtil_getExpandableVariablesWithNoBinding(threadData, _elems);
803#line 803 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
804
805#line 3207 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
806 _dae = omc_DAEUtil_removeVariables(threadData, _DAE, _expandableVars);
807#line 807 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
808
809#line 3209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
810 _usedInDAE = omc_DAEUtil_getAllExpandableCrefsFromDAE(threadData, _dae);
811#line 811 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
812
813#line 3213 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
814 _setsAsCrefs = omc_ConnectUtil_getExpandableEquSetsAsCrefs(threadData, _sets);
815#line 815 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
816
817#line 3214 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
818 _setsAsCrefs = omc_ConnectUtil_mergeEquSetsAsCrefs(threadData, _setsAsCrefs);
819#line 819 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
820
821#line 3216 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
822 _setsAsCrefs = omc_ConnectUtil_mergeEquSetsAsCrefs(threadData, _setsAsCrefs);
823#line 823 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
824
825#line 3217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
826 _onlyExpandableConnected = omc_ConnectUtil_getOnlyExpandableConnectedCrefs(threadData, _setsAsCrefs);
827#line 827 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
828
829#line 3221 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
830 _unnecessary = omc_List_setDifferenceOnTrue(threadData, _onlyExpandableConnected, _usedInDAE, boxvar_ComponentReference_crefEqualWithoutSubs((void*)((char*)(&(boxvar_lit_ComponentReference_crefEqualWithoutSubs
).header) + 3))
);
831#line 831 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
832
833#line 3225 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
834 _DAE = omc_DAEUtil_removeVariables(threadData, _DAE, _unnecessary);
835#line 835 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
836
837#line 3227 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
838 _sets = omc_ConnectUtil_removeCrefsFromSets(threadData, _sets, _unnecessary);
839#line 839 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
840
841#line 3229 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
842 _equVars = omc_ConnectUtil_getAllEquCrefs(threadData, _sets);
843#line 843 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
844
845#line 3231 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
846 _expandableVars = omc_List_setDifferenceOnTrue(threadData, _expandableVars, _usedInDAE, boxvar_ComponentReference_crefEqualWithoutSubs((void*)((char*)(&(boxvar_lit_ComponentReference_crefEqualWithoutSubs
).header) + 3))
);
847#line 847 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
848
849#line 3233 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
850 _unnecessary = omc_List_setDifferenceOnTrue(threadData, _expandableVars, _equVars, boxvar_ComponentReference_crefEqualWithoutSubs((void*)((char*)(&(boxvar_lit_ComponentReference_crefEqualWithoutSubs
).header) + 3))
);
851#line 851 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
852
853#line 3235 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
854 _DAE = omc_DAEUtil_removeVariables(threadData, _DAE, _unnecessary);
855#line 855 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
856 _return: OMC_LABEL_UNUSED__attribute__((unused))
857 if (out_DAE) { *out_DAE = _DAE; }
858 return _sets;
859}
860
861PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_getAllEquCrefs(threadData_t *threadData, modelica_metatype _sets)
862{
863 modelica_metatype _crefs = NULL((void*)0);
864 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
865 MMC_SO()mmc_check_stackoverflow(threadData);
866 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
867 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
868 _crefs = tmpMeta[0];
869#line 3164 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
870 {
871#line 3164 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
872 modelica_metatype _set;
873#line 3164 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
874 for (tmpMeta[1] = _sets; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
875#line 3164 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
876 {
877#line 3164 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
878 _set = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
879#line 879 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
880 { /* match expression */
881 modelica_metatype tmp3_1;
882 tmp3_1 = _set;
883 {
884 volatile mmc_switch_type tmp3;
885 int tmp4;
886 tmp3 = 0;
887 for (; tmp3 < 2; tmp3++) {
888 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
889 case 0: {
890 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
891 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
892 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((0 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
893
894 /* Pattern matching succeeded */
895#line 3168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
896 {
897#line 3168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
898 modelica_metatype _e;
899#line 3168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
900 for (tmpMeta[2] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_set), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_set) - 3))) + (
3)))))
); !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)))))
)
901#line 3168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
902 {
903#line 3168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
904 _e = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
905#line 3169 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
906 tmpMeta[3] = mmc_mk_cons((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_e) - 3))) + (2
)))))
), _crefs);
907#line 3169 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
908 _crefs = tmpMeta[3];
909#line 909 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
910 }
911 }
912#line 912 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
913 goto tmp2_done;
914 }
915 case 1: {
916
917 /* Pattern matching succeeded */
918#line 918 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
919 goto tmp2_done;
920 }
921 }
922 goto tmp2_end;
923 tmp2_end: ;
924 }
925 goto goto_1;
926 goto_1:;
927 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
928 goto tmp2_done;
929 tmp2_done:;
930 }
931 }
932 ;
933 }
934 }
935 _return: OMC_LABEL_UNUSED__attribute__((unused))
936 return _crefs;
937}
938
939PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_printSetStr(threadData_t *threadData, modelica_metatype _set)
940{
941 modelica_string _string = NULL((void*)0);
942 modelica_string tmp1 = 0;
943 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
944 MMC_SO()mmc_check_stackoverflow(threadData);
945 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
946 // _string has no default value.
947#line 947 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
948 { /* match expression */
949 modelica_metatype tmp4_1;
950 tmp4_1 = _set;
951 {
952 volatile mmc_switch_type tmp4;
953 int tmp5;
954 tmp4 = 0;
955 for (; tmp4 < 2; tmp4++) {
956 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
957 case 0: {
958 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
959
960 /* Pattern matching succeeded */
961#line 3151 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
962 tmp1 = stringDelimitList(omc_List_map(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_set), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_set) - 3))) + (
3)))))
), boxvar_ConnectUtil_printElementStr((void*)((char*)(&(boxvar_lit_ConnectUtil_printElementStr
).header) + 3))
), _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)));
963#line 963 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
964 goto tmp3_done;
965 }
966 case 1: {
967 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
968
969 /* Pattern matching succeeded */
970#line 3154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
971 tmpMeta[0] = stringAppend(_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_set), 2))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_set) - 3))) + (2)))))))) >> 1)
));
972#line 3154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
973 tmp1 = tmpMeta[0];
974#line 974 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
975 goto tmp3_done;
976 }
977 }
978 goto tmp3_end;
979 tmp3_end: ;
980 }
981 goto goto_2;
982 goto_2:;
983 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
984 goto tmp3_done;
985 tmp3_done:;
986 }
987 }
988 _string = tmp1;
989 _return: OMC_LABEL_UNUSED__attribute__((unused))
990 return _string;
991}
992
993PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_printSetConnection(threadData_t *threadData, modelica_metatype _connection)
994{
995 modelica_string _string = NULL((void*)0);
996 modelica_integer _set1;
997 modelica_integer _set2;
998 modelica_integer tmp1;
999 modelica_integer tmp2;
1000 modelica_string tmp3;
1001 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1002 MMC_SO()mmc_check_stackoverflow(threadData);
1003 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1004 // _string has no default value.
1005 // _set1 has no default value.
1006 // _set2 has no default value.
1007#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1008 /* Pattern-matching assignment */
1009#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1010 tmpMeta[0] = _connection;
1011#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1012 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1013#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1014 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1015#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1016 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1017#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1018 tmp2 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1019#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1020 _set1 = tmp1 /* pattern as ty=Integer */;
1021#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1022 _set2 = tmp2 /* pattern as ty=Integer */;
1023#line 1023 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1024
1025#line 3141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1026 tmp3 = modelica_integer_to_modelica_string(_set1, ((modelica_integer) 0), 1);
1027#line 3141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1028 tmpMeta[0] = stringAppend(_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)),tmp3);
1029#line 3141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1030 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
1031#line 3141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1032 tmpMeta[2] = stringAppend(tmpMeta[1],intString(_set2));
1033#line 3141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1034 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)));
1035#line 3141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1036 _string = tmpMeta[3];
1037#line 1037 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1038 _return: OMC_LABEL_UNUSED__attribute__((unused))
1039 return _string;
1040}
1041
1042PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_printSetConnections(threadData_t *threadData, modelica_metatype _connections)
1043{
1044 modelica_string _string = NULL((void*)0);
1045 MMC_SO()mmc_check_stackoverflow(threadData);
1046 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1047 // _string has no default value.
1048#line 3130 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1049 _string = stringAppendList(omc_List_map(threadData, _connections, boxvar_ConnectUtil_printSetConnection((void*)((char*)(&(boxvar_lit_ConnectUtil_printSetConnection
).header) + 3))
));
1050#line 1050 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1051 _return: OMC_LABEL_UNUSED__attribute__((unused))
1052 return _string;
1053}
1054
1055PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_printOptFlowAssociation(threadData_t *threadData, modelica_metatype _cref)
1056{
1057 modelica_string _string = NULL((void*)0);
1058 modelica_string tmp1 = 0;
1059 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1060 MMC_SO()mmc_check_stackoverflow(threadData);
1061 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1062 // _string has no default value.
1063#line 1063 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1064 { /* match expression */
1065 modelica_metatype tmp4_1;
1066 tmp4_1 = _cref;
1067 {
1068 modelica_metatype _cr = NULL((void*)0);
1069 volatile mmc_switch_type tmp4;
1070 int tmp5;
1071 // _cr has no default value.
1072 tmp4 = 0;
1073 for (; tmp4 < 2; tmp4++) {
1074 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1075 case 0: {
1076 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;
1077 /* Pattern matching succeeded */
1078#line 3117 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1079 tmp1 = _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3));
1080#line 1080 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1081 goto tmp3_done;
1082 }
1083 case 1: {
1084 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;
1085 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
1086 _cr = tmpMeta[0];
1087 /* Pattern matching succeeded */
1088#line 3120 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1089 tmpMeta[0] = stringAppend(_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),omc_ComponentReference_printComponentRefStr(threadData, _cr));
1090#line 3120 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1091 tmp1 = tmpMeta[0];
1092#line 1092 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1093 goto tmp3_done;
1094 }
1095 }
1096 goto tmp3_end;
1097 tmp3_end: ;
1098 }
1099 goto goto_2;
1100 goto_2:;
1101 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1102 goto tmp3_done;
1103 tmp3_done:;
1104 }
1105 }
1106 _string = tmp1;
1107 _return: OMC_LABEL_UNUSED__attribute__((unused))
1108 return _string;
1109}
1110
1111PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_printConnectorTypeStr(threadData_t *threadData, modelica_metatype _ty)
1112{
1113 modelica_string _string = NULL((void*)0);
1114 modelica_string tmp1 = 0;
1115 MMC_SO()mmc_check_stackoverflow(threadData);
1116 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1117 // _string has no default value.
1118#line 1118 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1119 { /* match expression */
1120 modelica_metatype tmp4_1;
1121 tmp4_1 = _ty;
1122 {
1123 int tmp4;
1124 {
1125 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
1126 case 3: {
1127
1128 /* Pattern matching succeeded */
1129#line 3101 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1130 tmp1 = _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3));
1131#line 1131 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1132 goto tmp3_done;
1133 }
1134 case 4: {
1135
1136 /* Pattern matching succeeded */
1137#line 3102 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1138 tmp1 = _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3));
1139#line 1139 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1140 goto tmp3_done;
1141 }
1142 case 5: {
1143
1144 /* Pattern matching succeeded */
1145#line 3103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1146 tmp1 = _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3));
1147#line 1147 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1148 goto tmp3_done;
1149 }
1150 }
1151 goto tmp3_end;
1152 tmp3_end: ;
1153 }
1154 goto goto_2;
1155 goto_2:;
1156 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1157 goto tmp3_done;
1158 tmp3_done:;
1159 }
1160 }
1161 _string = tmp1;
1162 _return: OMC_LABEL_UNUSED__attribute__((unused))
1163 return _string;
1164}
1165
1166DLLExport
1167modelica_string omc_ConnectUtil_printFaceStr(threadData_t *threadData, modelica_metatype _face)
1168{
1169 modelica_string _string = NULL((void*)0);
1170 modelica_string tmp1 = 0;
1171 MMC_SO()mmc_check_stackoverflow(threadData);
1172 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1173 // _string has no default value.
1174#line 1174 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1175 { /* match expression */
1176 modelica_metatype tmp4_1;
1177 tmp4_1 = _face;
1178 {
1179 int tmp4;
1180 {
1181 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
1182 case 3: {
1183
1184 /* Pattern matching succeeded */
1185#line 3089 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1186 tmp1 = _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3));
1187#line 1187 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1188 goto tmp3_done;
1189 }
1190 case 4: {
1191
1192 /* Pattern matching succeeded */
1193#line 3090 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1194 tmp1 = _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3));
1195#line 1195 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1196 goto tmp3_done;
1197 }
1198 case 5: {
1199
1200 /* Pattern matching succeeded */
1201#line 3091 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1202 tmp1 = _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3));
1203#line 1203 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1204 goto tmp3_done;
1205 }
1206 }
1207 goto tmp3_end;
1208 tmp3_end: ;
1209 }
1210 goto goto_2;
1211 goto_2:;
1212 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1213 goto tmp3_done;
1214 tmp3_done:;
1215 }
1216 }
1217 _string = tmp1;
1218 _return: OMC_LABEL_UNUSED__attribute__((unused))
1219 return _string;
1220}
1221
1222DLLExport
1223modelica_string omc_ConnectUtil_printElementStr(threadData_t *threadData, modelica_metatype _element)
1224{
1225 modelica_string _string = NULL((void*)0);
1226 modelica_string tmp1;
1227 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1228 MMC_SO()mmc_check_stackoverflow(threadData);
1229 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1230 // _string has no default value.
1231#line 3078 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1232 tmpMeta[0] = stringAppend(omc_ComponentReference_printComponentRefStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_element) - 3))
) + (2)))))
)),_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)));
1233#line 3078 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1234 _string = tmpMeta[0];
1235#line 1235 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1236
1237#line 3079 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1238 tmpMeta[0] = stringAppend(_string,omc_ConnectUtil_printFaceStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_element) - 3))
) + (3)))))
)));
1239#line 3079 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1240 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)));
1241#line 3079 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1242 _string = tmpMeta[1];
1243#line 1243 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1244
1245#line 3080 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1246 tmpMeta[0] = stringAppend(_string,omc_ConnectUtil_printConnectorTypeStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_element) - 3))
) + (4)))))
)));
1247#line 3080 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1248 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)));
1249#line 3080 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1250 tmp1 = modelica_integer_to_modelica_string(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element), 6))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_element) - 3))) + (6)))))))) >> 1)
, ((modelica_integer) 0), 1);
1251#line 3080 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1252 tmpMeta[2] = stringAppend(tmpMeta[1],tmp1);
1253#line 3080 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1254 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)));
1255#line 3080 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1256 _string = tmpMeta[3];
1257#line 1257 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1258 _return: OMC_LABEL_UNUSED__attribute__((unused))
1259 return _string;
1260}
1261
1262PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_printLeafElementStr(threadData_t *threadData, modelica_metatype _element)
1263{
1264 modelica_string _string = NULL((void*)0);
1265 modelica_string tmp1 = 0;
1266 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1267 MMC_SO()mmc_check_stackoverflow(threadData);
1268 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1269 // _string has no default value.
1270#line 1270 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1271 { /* match expression */
1272 modelica_metatype tmp4_1;
1273 tmp4_1 = _element;
1274 {
1275 modelica_metatype _e = NULL((void*)0);
1276 modelica_string _res = NULL((void*)0);
1277 volatile mmc_switch_type tmp4;
1278 int tmp5;
1279 // _e has no default value.
1280 // _res has no default value.
1281 tmp4 = 0;
1282 for (; tmp4 < 2; tmp4++) {
1283 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1284 case 0: {
1285 modelica_string tmp6;
1286 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;
1287 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
1288
1289 _e = tmpMeta[0];
1290 /* Pattern matching succeeded */
1291#line 3063 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1292 tmpMeta[0] = stringAppend(_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)),omc_ConnectUtil_printFaceStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_e) - 3))) + (3
)))))
)));
1293#line 3063 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1294 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)));
1295#line 3063 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1296 _res = tmpMeta[1];
1297#line 1297 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1298#line 3064 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1299 tmpMeta[0] = stringAppend(_res,omc_ConnectUtil_printConnectorTypeStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_e) - 3))) + (4
)))))
)));
1300#line 3064 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1301 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)));
1302#line 3064 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1303 tmp6 = modelica_integer_to_modelica_string(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e), 6))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_e) - 3))) + (6)))))))) >> 1)
, ((modelica_integer) 0), 1);
1304#line 3064 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1305 tmpMeta[2] = stringAppend(tmpMeta[1],tmp6);
1306#line 3064 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1307 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)));
1308#line 3064 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1309 tmp1 = tmpMeta[3];
1310#line 1310 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1311 goto tmp3_done;
1312 }
1313 case 1: {
1314
1315 /* Pattern matching succeeded */
1316#line 3068 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1317 tmp1 = _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3));
1318#line 1318 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1319 goto tmp3_done;
1320 }
1321 }
1322 goto tmp3_end;
1323 tmp3_end: ;
1324 }
1325 goto goto_2;
1326 goto_2:;
1327 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1328 goto tmp3_done;
1329 tmp3_done:;
1330 }
1331 }
1332 _string = tmp1;
1333 _return: OMC_LABEL_UNUSED__attribute__((unused))
1334 return _string;
1335}
1336
1337PROTECTED_FUNCTION_STATIC modelica_string omc_ConnectUtil_printSetTrieStr(threadData_t *threadData, modelica_metatype _trie, modelica_string _accumName)
1338{
1339 modelica_string _string = NULL((void*)0);
1340 modelica_string tmp1 = 0;
1341 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1342 MMC_SO()mmc_check_stackoverflow(threadData);
1343 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1344 // _string has no default value.
1345#line 1345 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1346 { /* match expression */
1347 modelica_metatype tmp4_1;
1348 tmp4_1 = _trie;
1349 {
1350 modelica_string _name = NULL((void*)0);
1351 modelica_string _res = NULL((void*)0);
1352 volatile mmc_switch_type tmp4;
1353 int tmp5;
1354 // _name has no default value.
1355 // _res has no default value.
1356 tmp4 = 0;
1357 for (; tmp4 < 3; tmp4++) {
1358 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1359 case 0: {
1360 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1361
1362 /* Pattern matching succeeded */
1363#line 3031 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1364 tmpMeta[0] = stringAppend(_accumName,_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)));
1365#line 3031 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1366 tmpMeta[1] = stringAppend(tmpMeta[0],(MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_trie), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_trie) - 3))) +
(2)))))
));
1367#line 3031 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1368 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)));
1369#line 3031 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1370 _res = tmpMeta[2];
1371#line 1371 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1372
1373#line 3032 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1374 tmpMeta[0] = stringAppend(_res,omc_ConnectUtil_printLeafElementStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_trie), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_trie) - 3))) +
(3)))))
)));
1375#line 3032 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1376 _res = tmpMeta[0];
1377#line 1377 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1378
1379#line 3033 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1380 tmpMeta[0] = stringAppend(_res,omc_ConnectUtil_printLeafElementStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_trie), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_trie) - 3))) +
(4)))))
)));
1381#line 3033 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1382 _res = tmpMeta[0];
1383#line 1383 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1384#line 3034 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1385 tmpMeta[0] = stringAppend(_res,omc_ConnectUtil_printOptFlowAssociation(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_trie), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_trie) - 3))) +
(5)))))
)));
1386#line 3034 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1387 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)));
1388#line 3034 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1389 tmp1 = tmpMeta[1];
1390#line 1390 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1391 goto tmp3_done;
1392 }
1393 case 1: {
1394 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,4)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((4 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1395 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1396 if (0 != MMC_STRLEN(tmpMeta[0])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT5)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT5).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[0])(((struct mmc_string*)((void*)((char*)(tmpMeta[0]) - 3)))->
data)
) != 0) goto tmp3_end;
1397
1398 /* Pattern matching succeeded */
1399#line 3039 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1400 tmp1 = stringAppendList(omc_List_map1(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_trie), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_trie) - 3))) +
(4)))))
), boxvar_ConnectUtil_printSetTrieStr((void*)((char*)(&(boxvar_lit_ConnectUtil_printSetTrieStr
).header) + 3))
, _accumName));
1401#line 1401 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1402 goto tmp3_done;
1403 }
1404 case 2: {
1405 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,4)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((4 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1406
1407 /* Pattern matching succeeded */
1408#line 3043 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1409 tmpMeta[0] = stringAppend(_accumName,_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)));
1410#line 3043 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1411 tmpMeta[1] = stringAppend(tmpMeta[0],(MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_trie), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_trie) - 3))) +
(2)))))
));
1412#line 3043 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1413 _name = tmpMeta[1];
1414#line 1414 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1415#line 3044 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1416 tmp1 = stringAppendList(omc_List_map1(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_trie), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_trie) - 3))) +
(4)))))
), boxvar_ConnectUtil_printSetTrieStr((void*)((char*)(&(boxvar_lit_ConnectUtil_printSetTrieStr
).header) + 3))
, _name));
1417#line 1417 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1418 goto tmp3_done;
1419 }
1420 }
1421 goto tmp3_end;
1422 tmp3_end: ;
1423 }
1424 goto goto_2;
1425 goto_2:;
1426 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1427 goto tmp3_done;
1428 tmp3_done:;
1429 }
1430 }
1431 _string = tmp1;
1432 _return: OMC_LABEL_UNUSED__attribute__((unused))
1433 return _string;
1434}
1435
1436DLLExport
1437modelica_string omc_ConnectUtil_printSetsStr(threadData_t *threadData, modelica_metatype _sets)
1438{
1439 modelica_string _string = NULL((void*)0);
1440 modelica_string tmp1;
1441 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1442 MMC_SO()mmc_check_stackoverflow(threadData);
1443 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1444 // _string has no default value.
1445#line 3013 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1446 tmp1 = modelica_integer_to_modelica_string(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_sets), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_sets) - 3))) + (3)))))))) >> 1)
, ((modelica_integer) 0), 1);
1447#line 3013 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1448 tmpMeta[0] = stringAppend(tmp1,_OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)));
1449#line 3013 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1450 _string = tmpMeta[0];
1451#line 1451 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1452
1453#line 3014 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1454 tmpMeta[0] = stringAppend(_string,omc_ConnectUtil_printSetTrieStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_sets), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_sets) - 3))) +
(2)))))
), _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))));
1455#line 3014 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1456 _string = tmpMeta[0];
1457#line 1457 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1458
1459#line 3015 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1460 tmpMeta[0] = stringAppend(_string,_OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)));
1461#line 3015 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1462 _string = tmpMeta[0];
1463#line 1463 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1464
1465#line 3016 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1466 tmpMeta[0] = stringAppend(_string,omc_ConnectUtil_printSetConnections(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_sets), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_sets) - 3))) +
(4)))))
)));
1467#line 3016 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1468 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)));
1469#line 3016 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1470 _string = tmpMeta[1];
1471#line 1471 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1472 _return: OMC_LABEL_UNUSED__attribute__((unused))
1473 return _string;
1474}
1475
1476PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_removeReferenceFromConnects2(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _element)
1477{
1478 modelica_boolean _matches;
1479 MMC_SO()mmc_check_stackoverflow(threadData);
1480 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1481 // _matches has no default value.
1482#line 3005 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1483 _matches = omc_ComponentReference_crefPrefixOf(threadData, _cref, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_element) - 3))
) + (2)))))
));
1484#line 1484 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1485 _return: OMC_LABEL_UNUSED__attribute__((unused))
1486 return _matches;
1487}
1488PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_removeReferenceFromConnects2(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _element)
1489{
1490 modelica_boolean _matches;
1491 modelica_metatype out_matches;
1492 _matches = omc_ConnectUtil_removeReferenceFromConnects2(threadData, _cref, _element);
1493 out_matches = mmc_mk_icon(_matches);
1494 return out_matches;
1495}
1496
1497DLLExport
1498modelica_metatype omc_ConnectUtil_removeReferenceFromConnects(threadData_t *threadData, modelica_metatype _D_24in_connects, modelica_metatype _cref, modelica_boolean *out_wasRemoved)
1499{
1500 modelica_metatype _connects = NULL((void*)0);
1501 modelica_boolean _wasRemoved;
1502 modelica_metatype _oe = NULL((void*)0);
1503 MMC_SO()mmc_check_stackoverflow(threadData);
1504 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1505 _connects = _D_24in_connects;
1506 // _wasRemoved has no default value.
1507 // _oe has no default value.
1508#line 2995 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1509 _connects = omc_List_deleteMemberOnTrue(threadData, _cref, _connects, boxvar_ConnectUtil_removeReferenceFromConnects2((void*)((char*)(&(boxvar_lit_ConnectUtil_removeReferenceFromConnects2
).header) + 3))
,&_oe);
1510#line 1510 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1511
1512#line 2997 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1513 _wasRemoved = isSome(_oe)(0==((((((*(mmc_uint_t*)((void*)((char*)(_oe) - 3)))) & (
7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(_oe) - 3)))) >>
(3+3))) : (((*(mmc_uint_t*)((void*)((char*)(_oe) - 3)))) >>
10)) ? 0 : 1)
;
1514#line 1514 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1515 _return: OMC_LABEL_UNUSED__attribute__((unused))
1516 if (out_wasRemoved) { *out_wasRemoved = _wasRemoved; }
1517 return _connects;
1518}
1519modelica_metatype boxptr_ConnectUtil_removeReferenceFromConnects(threadData_t *threadData, modelica_metatype _D_24in_connects, modelica_metatype _cref, modelica_metatype *out_wasRemoved)
1520{
1521 modelica_boolean _wasRemoved;
1522 modelica_metatype _connects = NULL((void*)0);
1523 _connects = omc_ConnectUtil_removeReferenceFromConnects(threadData, _D_24in_connects, _cref, &_wasRemoved);
1524 /* skip box _connects; list<DAE.Connect.ConnectorElement> */
1525 if (out_wasRemoved) { *out_wasRemoved = mmc_mk_icon(_wasRemoved); }
1526 return _connects;
1527}
1528
1529DLLExport
1530modelica_boolean omc_ConnectUtil_isReferenceInConnects(threadData_t *threadData, modelica_metatype _connects, modelica_metatype _cref)
1531{
1532 modelica_boolean _isThere;
1533 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1534 MMC_SO()mmc_check_stackoverflow(threadData);
1535 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1536 _isThere = 0;
1537#line 2980 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1538 {
1539#line 2980 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1540 modelica_metatype _ce;
1541#line 2980 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1542 for (tmpMeta[0] = _connects; !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)))))
)
1543#line 2980 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1544 {
1545#line 2980 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1546 _ce = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1547#line 2981 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1548 if(omc_ComponentReference_crefPrefixOf(threadData, _cref, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ce), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_ce) - 3))) + (
2)))))
)))
1549#line 2981 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1550 {
1551#line 2982 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1552 _isThere = 1;
1553#line 1553 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1554
1555#line 2983 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1556 goto _return;
1557#line 1557 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1558 }
1559 }
1560 }
1561 _return: OMC_LABEL_UNUSED__attribute__((unused))
1562 return _isThere;
1563}
1564modelica_metatype boxptr_ConnectUtil_isReferenceInConnects(threadData_t *threadData, modelica_metatype _connects, modelica_metatype _cref)
1565{
1566 modelica_boolean _isThere;
1567 modelica_metatype out_isThere;
1568 _isThere = omc_ConnectUtil_isReferenceInConnects(threadData, _connects, _cref);
1569 out_isThere = mmc_mk_icon(_isThere);
1570 return out_isThere;
1571}
1572
1573DLLExport
1574modelica_boolean omc_ConnectUtil_checkShortConnectorDef(threadData_t *threadData, modelica_metatype _state, modelica_metatype _attributes, modelica_metatype _info)
1575{
1576 modelica_boolean _isValid;
1577 modelica_boolean tmp1 = 0;
1578 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1579 MMC_SO()mmc_check_stackoverflow(threadData);
1580 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1581 // _isValid has no default value.
1582#line 1582 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1583 { /* match expression */
1584 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
1585 tmp4_1 = _state;
1586 tmp4_2 = _attributes;
1587 {
1588 modelica_integer _pv;
1589 modelica_integer _fv;
1590 modelica_integer _sv;
1591 modelica_metatype _ct = NULL((void*)0);
1592 volatile mmc_switch_type tmp4;
1593 int tmp5;
1594 _pv = ((modelica_integer) 0);
1595 _fv = ((modelica_integer) 0);
1596 _sv = ((modelica_integer) 0);
1597 // _ct has no default value.
1598 tmp4 = 0;
1599 for (; tmp4 < 2; tmp4++) {
1600 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1601 case 0: {
1602 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
1603 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(3)))))
;
1604 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(6)))))
;
1605 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((0 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1606
1607 _ct = tmpMeta[0];
1608 /* Pattern matching succeeded */
1609#line 2960 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1610 if(omc_SCodeUtil_flowBool(threadData, _ct))
1611#line 2960 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1612 {
1613#line 2961 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1614 _fv = ((modelica_integer) 1);
1615#line 1615 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1616 }
1617 else
1618 {
1619 if(omc_SCodeUtil_streamBool(threadData, _ct))
1620 {
1621#line 2963 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1622 _sv = ((modelica_integer) 1);
1623#line 1623 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1624 }
1625 else
1626 {
1627#line 2965 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1628 _pv = ((modelica_integer) 1);
1629#line 1629 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1630 }
1631 }
1632#line 2967 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1633 tmp1 = omc_ConnectUtil_checkConnectorBalance2(threadData, _pv, _fv, _sv, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_state), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_state) - 3))) +
(2)))))
), _info);
1634#line 1634 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1635 goto tmp3_done;
1636 }
1637 case 1: {
1638
1639 /* Pattern matching succeeded */
1640#line 2971 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1641 tmp1 = 1;
1642#line 1642 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1643 goto tmp3_done;
1644 }
1645 }
1646 goto tmp3_end;
1647 tmp3_end: ;
1648 }
1649 goto goto_2;
1650 goto_2:;
1651 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1652 goto tmp3_done;
1653 tmp3_done:;
1654 }
1655 }
1656 _isValid = tmp1;
1657 _return: OMC_LABEL_UNUSED__attribute__((unused))
1658 return _isValid;
1659}
1660modelica_metatype boxptr_ConnectUtil_checkShortConnectorDef(threadData_t *threadData, modelica_metatype _state, modelica_metatype _attributes, modelica_metatype _info)
1661{
1662 modelica_boolean _isValid;
1663 modelica_metatype out_isValid;
1664 _isValid = omc_ConnectUtil_checkShortConnectorDef(threadData, _state, _attributes, _info);
1665 out_isValid = mmc_mk_icon(_isValid);
1666 return out_isValid;
1667}
1668
1669PROTECTED_FUNCTION_STATIC modelica_integer omc_ConnectUtil_sizeOfType(threadData_t *threadData, modelica_metatype _ty)
1670{
1671 modelica_integer _size;
1672 modelica_integer tmp1 = 0;
1673 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1674 MMC_SO()mmc_check_stackoverflow(threadData);
1675 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1676 // _size has no default value.
1677#line 1677 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1678 { /* match expression */
1679 modelica_metatype tmp4_1;
1680 tmp4_1 = _ty;
1681 {
1682 modelica_integer _n;
1683 modelica_metatype _t = NULL((void*)0);
1684 modelica_metatype _v = NULL((void*)0);
1685 volatile mmc_switch_type tmp4;
1686 int tmp5;
1687 // _n has no default value.
1688 // _t has no default value.
1689 // _v has no default value.
1690 tmp4 = 0;
1691 for (; tmp4 < 11; tmp4++) {
1692 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1693 case 0: {
1694 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1695
1696 /* Pattern matching succeeded */
1697#line 2909 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1698 tmp1 = ((modelica_integer) 1);
1699#line 1699 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1700 goto tmp3_done;
1701 }
1702 case 1: {
1703 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1704
1705 /* Pattern matching succeeded */
1706#line 2910 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1707 tmp1 = ((modelica_integer) 1);
1708#line 1708 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1709 goto tmp3_done;
1710 }
1711 case 2: {
1712 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1713
1714 /* Pattern matching succeeded */
1715#line 2911 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1716 tmp1 = ((modelica_integer) 1);
1717#line 1717 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1718 goto tmp3_done;
1719 }
1720 case 3: {
1721 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
1722
1723 /* Pattern matching succeeded */
1724#line 2912 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1725 tmp1 = ((modelica_integer) 1);
1726#line 1726 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1727 goto tmp3_done;
1728 }
1729 case 4: {
1730 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
1731 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1732 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;
1733
1734 /* Pattern matching succeeded */
1735#line 2913 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1736 tmp1 = ((modelica_integer) 1);
1737#line 1737 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1738 goto tmp3_done;
1739 }
1740 case 5: {
1741 modelica_integer tmp7;
1742 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,6,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((6 +3) & 255) << 2)))
== 0) goto tmp3_end;
1743
1744 /* Pattern matching succeeded */
1745#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1746 {
1747#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1748 int tmp6;
1749#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1750 modelica_integer _D_24tmpVar1;
1751#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1752 modelica_integer _D_24tmpVar0;
1753#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1754 int tmp8;
1755#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1756 modelica_metatype _dim_loopVar = 0;
1757#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1758 modelica_metatype _dim;
1759#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1760 _dim_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ty), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_ty) - 3))) + (
3)))))
);
1761#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1762 tmp6 = 0; /* intMul lacks default-value */
1763#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1764 while(1) {
1765#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1766 tmp8 = 1;
1767#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1768 if (!listEmpty(_dim_loopVar)((*(mmc_uint_t*)((void*)((char*)(_dim_loopVar) - 3))) == (((0
) << 10) + (((0) & 255) << 2)))
) {
1769#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1770 _dim = MMC_CAR(_dim_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_dim_loopVar) -
3))) + (1)))))
;
1771#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1772 _dim_loopVar = MMC_CDR(_dim_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_dim_loopVar) -
3))) + (2)))))
;
1773#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1774 tmp8--;
1775#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1776 }
1777#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1778 if (tmp8 == 0) {
1779#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1780 _D_24tmpVar0 = omc_Expression_dimensionSize(threadData, _dim);
1781#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1782 if(tmp6)
1783#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1784 {
1785#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1786 _D_24tmpVar1 = (_D_24tmpVar0) * (_D_24tmpVar1);
1787#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1788 }
1789#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1790 else
1791#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1792 {
1793#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1794 _D_24tmpVar1 = _D_24tmpVar0;
1795#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1796 tmp6 = 1;
1797#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1798 }
1799#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1800 } else if (tmp8 == 1) {
1801#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1802 break;
1803#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1804 } else {
1805#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1806 goto goto_2;
1807#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1808 }
1809#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1810 }
1811#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1812 if (!tmp6) goto goto_2;
1813#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1814 tmp7 = _D_24tmpVar1;
1815#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1816 }
1817#line 2916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1818 tmp1 = (tmp7) * (omc_ConnectUtil_sizeOfType(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ty), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_ty) - 3))) + (
2)))))
)));
1819#line 1819 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1820 goto tmp3_done;
1821 }
1822 case 6: {
1823 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,9,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((9 +3) & 255) << 2)))
== 0) goto tmp3_end;
1824 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
1825 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
1826 if (!optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
1827 _v = tmpMeta[0];
1828 /* Pattern matching succeeded */
1829#line 2920 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1830 tmp1 = omc_ConnectUtil_sizeOfVariableList(threadData, _v);
1831#line 1831 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1832 goto tmp3_done;
1833 }
1834 case 7: {
1835 modelica_integer tmp9;
1836 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,9,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((9 +3) & 255) << 2)))
== 0) goto tmp3_end;
1837 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
1838 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;
1839 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1840 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1841 tmp9 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1842
1843 _n = tmp9 /* pattern as ty=Integer */;
1844 /* Pattern matching succeeded */
1845#line 2923 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1846 tmp1 = _n;
1847#line 1847 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1848 goto tmp3_done;
1849 }
1850 case 8: {
1851 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,10,4)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((4 +1) <<
10) + (((10 +3) & 255) << 2)))
== 0) goto tmp3_end;
1852 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
1853 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;
1854 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1855 /* Pattern matching succeeded */
1856#line 2925 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1857 tmp1 = ((modelica_integer) 0);
1858#line 1858 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1859 goto tmp3_done;
1860 }
1861 case 9: {
1862 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,10,4)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((4 +1) <<
10) + (((10 +3) & 255) << 2)))
== 0) goto tmp3_end;
1863 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
1864
1865 _t = tmpMeta[0];
1866 /* Pattern matching succeeded */
1867#line 2927 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1868 /* Tail recursive call */
1869#line 2927 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1870 _ty = _t;
1871#line 2927 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1872 goto _tailrecursive;
1873#line 2927 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1874 /* TODO: Make sure any eventual dead code below is never generated */
1875#line 1875 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1876 goto tmp3_done;
1877 }
1878 case 10: {
1879 modelica_boolean tmp10;
1880
1881 /* Pattern matching succeeded */
1882#line 2931 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1883 /* Pattern-matching assignment */
1884#line 2931 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1885 tmp10 = omc_Flags_isSet(threadData, _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)));
1886#line 2931 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1887 if (1 != tmp10) goto goto_2;
1888#line 1888 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1889
1890#line 2932 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1891 tmpMeta[0] = stringAppend(_OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)),omc_Types_printTypeStr(threadData, _ty));
1892#line 2932 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1893 omc_Debug_traceln(threadData, tmpMeta[0]);
1894#line 1894 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1895#line 2933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1896 goto goto_2;
1897#line 1897 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1898 goto tmp3_done;
1899 }
1900 }
1901 goto tmp3_end;
1902 tmp3_end: ;
1903 }
1904 goto goto_2;
1905 goto_2:;
1906 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1907 goto tmp3_done;
1908 tmp3_done:;
1909 }
1910 }
1911 _size = tmp1;
1912 _return: OMC_LABEL_UNUSED__attribute__((unused))
1913 return _size;
1914}
1915PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_sizeOfType(threadData_t *threadData, modelica_metatype _ty)
1916{
1917 modelica_integer _size;
1918 modelica_metatype out_size;
1919 _size = omc_ConnectUtil_sizeOfType(threadData, _ty);
1920 out_size = mmc_mk_icon(_size);
1921 return out_size;
1922}
1923
1924PROTECTED_FUNCTION_STATIC modelica_integer omc_ConnectUtil_sizeOfVariableList(threadData_t *threadData, modelica_metatype _vars)
1925{
1926 modelica_integer _size;
1927 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1928 MMC_SO()mmc_check_stackoverflow(threadData);
1929 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1930 _size = ((modelica_integer) 0);
1931#line 2891 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1932 {
1933#line 2891 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1934 modelica_metatype _var;
1935#line 2891 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1936 for (tmpMeta[0] = _vars; !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)))))
)
1937#line 2891 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1938 {
1939#line 2891 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1940 _var = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1941#line 2892 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1942 _size = _size + omc_ConnectUtil_sizeOfType(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
4)))))
));
1943#line 1943 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
1944 }
1945 }
1946 _return: OMC_LABEL_UNUSED__attribute__((unused))
1947 return _size;
1948}
1949PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_sizeOfVariableList(threadData_t *threadData, modelica_metatype _vars)
1950{
1951 modelica_integer _size;
1952 modelica_metatype out_size;
1953 _size = omc_ConnectUtil_sizeOfVariableList(threadData, _vars);
1954 out_size = mmc_mk_icon(_size);
1955 return out_size;
1956}
1957
1958PROTECTED_FUNCTION_STATIC modelica_integer omc_ConnectUtil_countConnectorVars(threadData_t *threadData, modelica_metatype _vars, modelica_integer *out_flowVars, modelica_integer *out_streamVars)
1959{
1960 modelica_integer _potentialVars;
1961 modelica_integer _flowVars;
1962 modelica_integer _streamVars;
1963 modelica_metatype _ty = NULL((void*)0);
1964 modelica_metatype _ty2 = NULL((void*)0);
1965 modelica_metatype _attr = NULL((void*)0);
1966 modelica_integer _n;
1967 modelica_integer _p;
1968 modelica_integer _f;
1969 modelica_integer _s;
1970 modelica_integer tmp1;
1971 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1972 MMC_SO()mmc_check_stackoverflow(threadData);
1973 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1974 _potentialVars = ((modelica_integer) 0);
1975 _flowVars = ((modelica_integer) 0);
1976 _streamVars = ((modelica_integer) 0);
1977 // _ty has no default value.
1978 // _ty2 has no default value.
1979 // _attr has no default value.
1980 // _n has no default value.
1981 // _p has no default value.
1982 // _f has no default value.
1983 // _s has no default value.
1984#line 2837 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1985 {
1986#line 2837 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1987 modelica_metatype _var;
1988#line 2837 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1989 for (tmpMeta[0] = _vars; !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)))))
)
1990#line 2837 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1991 {
1992#line 2837 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1993 _var = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1994#line 2838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1995 /* Pattern-matching assignment */
1996#line 2838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1997 tmpMeta[1] = _var;
1998#line 2838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
1999 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
2000#line 2838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2001 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
2002#line 2838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2003 _attr = tmpMeta[2];
2004#line 2838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2005 _ty = tmpMeta[3];
2006#line 2006 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2007
2008#line 2839 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2009 _ty2 = omc_Types_arrayElementType(threadData, _ty);
2010#line 2010 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2011
2012#line 2842 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2013 if(omc_Types_isConnector(threadData, _ty2))
2014#line 2842 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2015 {
2016#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2017 {
2018#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2019 modelica_integer _D_24tmpVar3;
2020#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2021 modelica_integer _D_24tmpVar2;
2022#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2023 int tmp2;
2024#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2025 modelica_metatype _dim_loopVar = 0;
2026#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2027 modelica_metatype _dim;
2028#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2029 _dim_loopVar = omc_Types_getDimensionSizes(threadData, _ty);
2030#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2031 _D_24tmpVar3 = ((modelica_integer) 1); /* defaultValue */
2032#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2033 while(1) {
2034#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2035 tmp2 = 1;
2036#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2037 if (!listEmpty(_dim_loopVar)((*(mmc_uint_t*)((void*)((char*)(_dim_loopVar) - 3))) == (((0
) << 10) + (((0) & 255) << 2)))
) {
2038#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2039 _dim = MMC_CAR(_dim_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_dim_loopVar) -
3))) + (1)))))
;
2040#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2041 _dim_loopVar = MMC_CDR(_dim_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_dim_loopVar) -
3))) + (2)))))
;
2042#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2043 tmp2--;
2044#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2045 }
2046#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2047 if (tmp2 == 0) {
2048#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2049 _D_24tmpVar2 = mmc_unbox_integer(_dim)(((mmc_sint_t) (_dim)) >> 1);
2050#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2051 _D_24tmpVar3 = (_D_24tmpVar3) * (_D_24tmpVar2);
2052#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2053 } else if (tmp2 == 1) {
2054#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2055 break;
2056#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2057 } else {
2058#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2059 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2060#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2061 }
2062#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2063 }
2064#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2065 tmp1 = _D_24tmpVar3;
2066#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2067 }
2068#line 2844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2069 _n = tmp1;
2070#line 2070 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2071
2072#line 2847 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2073 _p = omc_ConnectUtil_countConnectorVars(threadData, omc_Types_getConnectorVars(threadData, _ty2) ,&_f ,&_s);
2074#line 2074 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2075
2076#line 2850 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2077 if(omc_AbsynUtil_isInputOrOutput(threadData, omc_DAEUtil_getAttrDirection(threadData, _attr)))
2078#line 2850 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2079 {
2080#line 2851 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2081 _p = ((modelica_integer) 0);
2082#line 2082 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2083 }
2084
2085#line 2854 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2086 _potentialVars = _potentialVars + (_p) * (_n);
2087#line 2087 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2088
2089#line 2855 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2090 _flowVars = _flowVars + (_f) * (_n);
2091#line 2091 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2092
2093#line 2856 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2094 _streamVars = _streamVars + (_s) * (_n);
2095#line 2095 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2096 }
2097 else
2098 {
2099#line 2099 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2100 { /* match expression */
2101 modelica_metatype tmp5_1;
2102 tmp5_1 = _attr;
2103 {
2104 volatile mmc_switch_type tmp5;
2105 int tmp6;
2106 tmp5 = 0;
2107 for (; tmp5 < 4; tmp5++) {
2108 switch (MMC_SWITCH_CAST(tmp5)(tmp5)) {
2109 case 0: {
2110 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp5_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp5_1) - 3))) +
(2)))))
;
2111 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((0 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp4_end;
2112
2113 /* Pattern matching succeeded */
2114#line 2862 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2115 _flowVars = _flowVars + omc_ConnectUtil_sizeOfType(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
4)))))
));
2116#line 2116 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2117#line 2117 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2118 goto tmp4_done;
2119 }
2120 case 1: {
2121 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp5_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp5_1) - 3))) +
(2)))))
;
2122 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto tmp4_end;
2123
2124 /* Pattern matching succeeded */
2125#line 2869 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2126 _streamVars = _streamVars + omc_ConnectUtil_sizeOfType(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
4)))))
));
2127#line 2127 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2128#line 2128 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2129 goto tmp4_done;
2130 }
2131 case 2: {
2132 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp5_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp5_1) - 3))) +
(4)))))
;
2133 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((0 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp4_end;
2134 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp5_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp5_1) - 3))) +
(5)))))
;
2135 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],2,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((0 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto tmp4_end;
2136
2137 /* Pattern matching succeeded */
2138#line 2876 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2139 _potentialVars = _potentialVars + omc_ConnectUtil_sizeOfType(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_var), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_var) - 3))) + (
4)))))
));
2140#line 2140 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2141#line 2141 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2142 goto tmp4_done;
2143 }
2144 case 3: {
2145
2146 /* Pattern matching succeeded */
2147#line 2147 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2148 goto tmp4_done;
2149 }
2150 }
2151 goto tmp4_end;
2152 tmp4_end: ;
2153 }
2154 goto goto_3;
2155 goto_3:;
2156 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2157 goto tmp4_done;
2158 tmp4_done:;
2159 }
2160 }
2161 ;
2162 }
2163 }
2164 }
2165 _return: OMC_LABEL_UNUSED__attribute__((unused))
2166 if (out_flowVars) { *out_flowVars = _flowVars; }
2167 if (out_streamVars) { *out_streamVars = _streamVars; }
2168 return _potentialVars;
2169}
2170PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_countConnectorVars(threadData_t *threadData, modelica_metatype _vars, modelica_metatype *out_flowVars, modelica_metatype *out_streamVars)
2171{
2172 modelica_integer _flowVars;
2173 modelica_integer _streamVars;
2174 modelica_integer _potentialVars;
2175 modelica_metatype out_potentialVars;
2176 _potentialVars = omc_ConnectUtil_countConnectorVars(threadData, _vars, &_flowVars, &_streamVars);
2177 out_potentialVars = mmc_mk_icon(_potentialVars);
2178 if (out_flowVars) { *out_flowVars = mmc_mk_icon(_flowVars); }
2179 if (out_streamVars) { *out_streamVars = mmc_mk_icon(_streamVars); }
2180 return out_potentialVars;
2181}
2182
2183PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_checkConnectorBalance2(threadData_t *threadData, modelica_integer _potentialVars, modelica_integer _flowVars, modelica_integer _streamVars, modelica_metatype _path, modelica_metatype _info)
2184{
2185 modelica_boolean _isBalanced;
2186 modelica_string _error_str = NULL((void*)0);
2187 modelica_string _flow_str = NULL((void*)0);
2188 modelica_string _potential_str = NULL((void*)0);
2189 modelica_string _class_str = NULL((void*)0);
2190 modelica_string tmp1;
2191 modelica_string tmp2;
2192 modelica_string tmp3;
2193 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2194 MMC_SO()mmc_check_stackoverflow(threadData);
2195 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2196 _isBalanced = 1;
2197 // _error_str has no default value.
2198 // _flow_str has no default value.
2199 // _potential_str has no default value.
2200 // _class_str has no default value.
2201#line 2788 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2202 if(omc_Config_languageStandardAtMost(threadData, 2))
2203#line 2788 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2204 {
2205#line 2789 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2206 goto _return;
2207#line 2207 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2208 }
2209
2210#line 2796 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2211 if((_potentialVars != _flowVars))
2212#line 2796 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2213 {
2214#line 2797 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2215 tmp1 = modelica_integer_to_modelica_string(_flowVars, ((modelica_integer) 0), 1);
2216#line 2797 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2217 _flow_str = tmp1;
2218#line 2218 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2219
2220#line 2798 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2221 tmp2 = modelica_integer_to_modelica_string(_potentialVars, ((modelica_integer) 0), 1);
2222#line 2798 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2223 _potential_str = tmp2;
2224#line 2224 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2225
2226#line 2799 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2227 _class_str = omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)), 1, 0);
2228#line 2228 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2229
2230#line 2800 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2231 tmpMeta[0] = mmc_mk_cons(_OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)), mmc_mk_cons(_potential_str, mmc_mk_cons(_OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)), mmc_mk_cons(_flow_str, mmc_mk_cons(_OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)))))));
2232#line 2800 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2233 _error_str = stringAppendList(tmpMeta[0]);
2234#line 2234 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2235
2236#line 2805 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2237 tmpMeta[0] = mmc_mk_cons(_class_str, mmc_mk_cons(_error_str, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
2238#line 2805 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2239 omc_Error_addSourceMessage(threadData, _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)), tmpMeta[0], _info);
2240#line 2240 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2241 }
2242
2243#line 2813 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2244 if(((_streamVars > ((modelica_integer) 0)) && (_flowVars != ((modelica_integer) 1))))
2245#line 2813 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2246 {
2247#line 2814 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2248 tmp3 = modelica_integer_to_modelica_string(_flowVars, ((modelica_integer) 0), 1);
2249#line 2814 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2250 _flow_str = tmp3;
2251#line 2251 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2252
2253#line 2815 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2254 _class_str = omc_AbsynUtil_pathString(threadData, _path, _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)), 1, 0);
2255#line 2255 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2256
2257#line 2816 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2258 tmpMeta[0] = mmc_mk_cons(_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)), mmc_mk_cons(_flow_str, mmc_mk_cons(_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)))));
2259#line 2816 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2260 _error_str = stringAppendList(tmpMeta[0]);
2261#line 2261 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2262
2263#line 2819 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2264 tmpMeta[0] = mmc_mk_cons(_class_str, mmc_mk_cons(_error_str, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
2265#line 2819 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2266 omc_Error_addSourceMessage(threadData, _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)), tmpMeta[0], _info);
2267#line 2267 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2268
2269#line 2821 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2270 _isBalanced = 0;
2271#line 2271 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2272 }
2273 _return: OMC_LABEL_UNUSED__attribute__((unused))
2274 return _isBalanced;
2275}
2276PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_checkConnectorBalance2(threadData_t *threadData, modelica_metatype _potentialVars, modelica_metatype _flowVars, modelica_metatype _streamVars, modelica_metatype _path, modelica_metatype _info)
2277{
2278 modelica_integer tmp1;
2279 modelica_integer tmp2;
2280 modelica_integer tmp3;
2281 modelica_boolean _isBalanced;
2282 modelica_metatype out_isBalanced;
2283 tmp1 = mmc_unbox_integer(_potentialVars)(((mmc_sint_t) (_potentialVars)) >> 1);
2284 tmp2 = mmc_unbox_integer(_flowVars)(((mmc_sint_t) (_flowVars)) >> 1);
2285 tmp3 = mmc_unbox_integer(_streamVars)(((mmc_sint_t) (_streamVars)) >> 1);
2286 _isBalanced = omc_ConnectUtil_checkConnectorBalance2(threadData, tmp1, tmp2, tmp3, _path, _info);
2287 out_isBalanced = mmc_mk_icon(_isBalanced);
2288 return out_isBalanced;
2289}
2290
2291DLLExport
2292void omc_ConnectUtil_checkConnectorBalance(threadData_t *threadData, modelica_metatype _vars, modelica_metatype _path, modelica_metatype _info)
2293{
2294 modelica_integer _potentials;
2295 modelica_integer _flows;
2296 modelica_integer _streams;
2297 modelica_boolean tmp1;
2298 MMC_SO()mmc_check_stackoverflow(threadData);
2299 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2300 // _potentials has no default value.
2301 // _flows has no default value.
2302 // _streams has no default value.
2303#line 2769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2304 _potentials = omc_ConnectUtil_countConnectorVars(threadData, _vars ,&_flows ,&_streams);
2305#line 2305 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2306
2307#line 2770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2308 /* Pattern-matching assignment */
2309#line 2770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2310 tmp1 = omc_ConnectUtil_checkConnectorBalance2(threadData, _potentials, _flows, _streams, _path, _info);
2311#line 2770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2312 if (1 != tmp1) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2313#line 2313 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2314 _return: OMC_LABEL_UNUSED__attribute__((unused))
2315 return;
2316}
2317
2318DLLExport
2319modelica_metatype omc_ConnectUtil_componentFaceType(threadData_t *threadData, modelica_metatype _inComponentRef)
2320{
2321 modelica_metatype _outFace = NULL((void*)0);
2322 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2323 MMC_SO()mmc_check_stackoverflow(threadData);
2324 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2325 // _outFace has no default value.
2326#line 2326 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2327 { /* match expression */
2328 modelica_metatype tmp3_1;
2329 tmp3_1 = _inComponentRef;
2330 {
2331 volatile mmc_switch_type tmp3;
2332 int tmp4;
2333 tmp3 = 0;
2334 for (; tmp3 < 4; tmp3++) {
2335 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2336 case 0: {
2337 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((3 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
2338
2339 /* Pattern matching succeeded */
2340#line 2750 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2341 tmpMeta[0] = _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3));
2342#line 2342 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2343 goto tmp2_done;
2344 }
2345 case 1: {
2346 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2347 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2348 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],9,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((3 +1)
<< 10) + (((9 +3) & 255) << 2)))
== 0) goto tmp2_end;
2349 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2350 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],5,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((2 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
2351
2352 /* Pattern matching succeeded */
2353#line 2752 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2354 tmpMeta[0] = _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3));
2355#line 2355 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2356 goto tmp2_done;
2357 }
2358 case 2: {
2359 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2360 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2361 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
2362 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2363 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],9,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((3 +1)
<< 10) + (((9 +3) & 255) << 2)))
== 0) goto tmp2_end;
2364 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
2365 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],5,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
2366
2367 /* Pattern matching succeeded */
2368#line 2754 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2369 tmpMeta[0] = _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3));
2370#line 2370 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2371 goto tmp2_done;
2372 }
2373 case 3: {
2374 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2375
2376 /* Pattern matching succeeded */
2377#line 2756 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2378 tmpMeta[0] = _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3));
2379#line 2379 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2380 goto tmp2_done;
2381 }
2382 }
2383 goto tmp2_end;
2384 tmp2_end: ;
2385 }
2386 goto goto_1;
2387 goto_1:;
2388 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2389 goto tmp2_done;
2390 tmp2_done:;
2391 }
2392 }
2393 _outFace = tmpMeta[0];
2394 _return: OMC_LABEL_UNUSED__attribute__((unused))
2395 return _outFace;
2396}
2397
2398DLLExport
2399modelica_metatype omc_ConnectUtil_componentFace(threadData_t *threadData, modelica_metatype _env, modelica_metatype _componentRef)
2400{
2401 modelica_metatype _face = NULL((void*)0);
2402 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2403 MMC_SO()mmc_check_stackoverflow(threadData);
2404 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2405 // _face has no default value.
2406#line 2406 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2407 { /* matchcontinue expression */
2408 volatile modelica_metatype tmp3_1;
2409 tmp3_1 = _componentRef;
2410 {
2411 modelica_string _id = NULL((void*)0);
2412 volatile mmc_switch_type tmp3;
2413 int tmp4;
2414 // _id has no default value.
2415 tmp3 = 0;
2416 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) {
2417 tmp2_top:
2418 threadData->mmc_jumper = &new_mmc_jumper;
2419 for (; tmp3 < 3; tmp3++) {
2420 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2421 case 0: {
2422 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((3 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
2423
2424 tmp3 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
2425#line 2715 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2426 tmpMeta[0] = _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3));
2427#line 2427 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2428 goto tmp2_done;
2429 }
2430 case 1: {
2431 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2432 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2433
2434 _id = tmpMeta[1];
2435 /* Pattern matching succeeded */
2436#line 2720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2437 /* Pattern-matching tuple assignment, wild first pattern */
2438#line 2720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2439 tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2440#line 2720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2441 omc_Lookup_lookupVar(threadData, omc_FCore_emptyCache(threadData), _env, omc_ComponentReference_makeCrefIdent(threadData, _id, _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)), tmpMeta[3]), NULL((void*)0), &tmpMeta[1], NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0));
2442#line 2720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2443 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],9,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((3 +1)
<< 10) + (((9 +3) & 255) << 2)))
== 0) goto goto_1;
2444#line 2720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2445 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2446#line 2720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2447 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],5,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((2 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) goto goto_1;
2448#line 2720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2449
2450#line 2450 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2451#line 2723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2452 tmpMeta[0] = _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3));
2453#line 2453 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2454 goto tmp2_done;
2455 }
2456 case 2: {
2457 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2458
2459 /* Pattern matching succeeded */
2460#line 2726 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2461 tmpMeta[0] = _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3));
2462#line 2462 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2463 goto tmp2_done;
2464 }
2465 }
2466 goto tmp2_end;
2467 tmp2_end: ;
2468 }
2469 goto goto_1;
2470 tmp2_done:
2471 (void)tmp3;
2472 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2473 goto tmp2_done2;
2474 goto_1:;
2475 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2476 if (++tmp3 < 3) {
2477 goto tmp2_top;
2478 }
2479 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2480 tmp2_done2:;
2481 }
2482 }
2483 _face = tmpMeta[0];
2484 _return: OMC_LABEL_UNUSED__attribute__((unused))
2485 return _face;
2486}
2487
2488PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_compareCrefStreamSet(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _element)
2489{
2490 modelica_boolean _matches;
2491 MMC_SO()mmc_check_stackoverflow(threadData);
2492 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2493 // _matches has no default value.
2494#line 2689 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2495 _matches = omc_ComponentReference_crefEqualNoStringCompare(threadData, _cref, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_element) - 3))
) + (2)))))
));
2496#line 2496 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2497 _return: OMC_LABEL_UNUSED__attribute__((unused))
2498 return _matches;
2499}
2500PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_compareCrefStreamSet(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _element)
2501{
2502 modelica_boolean _matches;
2503 modelica_metatype out_matches;
2504 _matches = omc_ConnectUtil_compareCrefStreamSet(threadData, _cref, _element);
2505 out_matches = mmc_mk_icon(_matches);
2506 return out_matches;
2507}
2508
2509PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_removeStreamSetElement(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _D_24in_elements)
2510{
2511 modelica_metatype _elements = NULL((void*)0);
2512 MMC_SO()mmc_check_stackoverflow(threadData);
2513 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2514 _elements = _D_24in_elements;
2515#line 2679 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2516 _elements = omc_List_deleteMemberOnTrue(threadData, _cref, _elements, boxvar_ConnectUtil_compareCrefStreamSet((void*)((char*)(&(boxvar_lit_ConnectUtil_compareCrefStreamSet
).header) + 3))
, NULL((void*)0));
2517#line 2517 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2518 _return: OMC_LABEL_UNUSED__attribute__((unused))
2519 return _elements;
2520}
2521
2522PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_simplifyDAEIfEquation(threadData_t *threadData, modelica_metatype _conditions, modelica_metatype _branches, modelica_metatype _elseBranch)
2523{
2524 modelica_metatype _elements = NULL((void*)0);
2525 modelica_boolean _cond_value;
2526 modelica_metatype _rest_branches = NULL((void*)0);
2527 modelica_integer tmp1;
2528 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
2529 MMC_SO()mmc_check_stackoverflow(threadData);
2530 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2531 // _elements has no default value.
2532 // _cond_value has no default value.
2533 _rest_branches = _branches;
2534#line 2657 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2535 {
2536#line 2657 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2537 modelica_metatype _cond;
2538#line 2657 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2539 for (tmpMeta[0] = _conditions; !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)))))
)
2540#line 2657 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2541 {
2542#line 2657 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2543 _cond = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2544#line 2658 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2545 /* Pattern-matching assignment */
2546#line 2658 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2547 tmpMeta[1] = _cond;
2548#line 2658 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2549 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2550#line 2658 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2551 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2552#line 2658 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2553 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
2554#line 2658 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2555 _cond_value = tmp1 /* pattern as ty=Boolean */;
2556#line 2556 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2557
2558#line 2661 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2559 if(((!_cond_value && !1) || (_cond_value && 1)))
2560#line 2661 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2561 {
2562#line 2662 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2563 _elements = listReverse(listHead(_rest_branches)boxptr_listHead(threadData,_rest_branches));
2564#line 2564 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2565
2566#line 2663 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2567 goto _return;
2568#line 2568 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2569 }
2570
2571#line 2667 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2572 _rest_branches = listRest(_rest_branches)boxptr_listRest(threadData,_rest_branches);
2573#line 2573 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2574 }
2575 }
2576
2577#line 2671 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2578 _elements = listReverse(_elseBranch);
2579#line 2579 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2580 _return: OMC_LABEL_UNUSED__attribute__((unused))
2581 return _elements;
2582}
2583
2584PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_simplifyDAEElement(threadData_t *threadData, modelica_metatype _element)
2585{
2586 modelica_metatype _elements = NULL((void*)0);
2587 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2588 MMC_SO()mmc_check_stackoverflow(threadData);
2589 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2590 // _elements has no default value.
2591#line 2591 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2592 { /* matchcontinue expression */
2593 volatile modelica_metatype tmp3_1;
2594 tmp3_1 = _element;
2595 {
2596 modelica_metatype _conds = NULL((void*)0);
2597 modelica_metatype _branches = NULL((void*)0);
2598 modelica_metatype _else_branch = NULL((void*)0);
2599 volatile mmc_switch_type tmp3;
2600 int tmp4;
2601 // _conds has no default value.
2602 // _branches has no default value.
2603 // _else_branch has no default value.
2604 tmp3 = 0;
2605 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) {
2606 tmp2_top:
2607 threadData->mmc_jumper = &new_mmc_jumper;
2608 for (; tmp3 < 4; tmp3++) {
2609 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2610 case 0: {
2611 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,12,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((12 +3) & 255) << 2)))
== 0) goto tmp2_end;
2612 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2613 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2614 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
2615
2616 _conds = tmpMeta[1];
2617 _branches = tmpMeta[2];
2618 _else_branch = tmpMeta[3];
2619 tmp3 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
2620#line 2636 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2621 tmpMeta[0] = omc_ConnectUtil_simplifyDAEIfEquation(threadData, _conds, _branches, _else_branch);
2622#line 2622 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2623 goto tmp2_done;
2624 }
2625 case 1: {
2626 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,13,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((13 +3) & 255) << 2)))
== 0) goto tmp2_end;
2627 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2628 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2629 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
2630
2631 _conds = tmpMeta[1];
2632 _branches = tmpMeta[2];
2633 _else_branch = tmpMeta[3];
2634 tmp3 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
2635#line 2639 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2636 tmpMeta[0] = omc_ConnectUtil_simplifyDAEIfEquation(threadData, _conds, _branches, _else_branch);
2637#line 2637 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2638 goto tmp2_done;
2639 }
2640 case 2: {
2641 modelica_integer tmp5;
2642 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,19,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((19 +3) & 255) << 2)))
== 0) goto tmp2_end;
2643 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2644 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
2645 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2646 tmp5 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
2647 if (1 != tmp5) goto tmp2_end;
2648
2649 /* Pattern matching succeeded */
2650#line 2641 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2651 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2652#line 2641 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2653 tmpMeta[0] = tmpMeta[1];
2654#line 2654 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2655 goto tmp2_done;
2656 }
2657 case 3: {
2658
2659 /* Pattern matching succeeded */
2660#line 2643 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2661 tmpMeta[1] = mmc_mk_cons(_element, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2662#line 2643 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2663 tmpMeta[0] = tmpMeta[1];
2664#line 2664 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2665 goto tmp2_done;
2666 }
2667 }
2668 goto tmp2_end;
2669 tmp2_end: ;
2670 }
2671 goto goto_1;
2672 tmp2_done:
2673 (void)tmp3;
2674 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2675 goto tmp2_done2;
2676 goto_1:;
2677 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2678 if (++tmp3 < 4) {
2679 goto tmp2_top;
2680 }
2681 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2682 tmp2_done2:;
2683 }
2684 }
2685 _elements = tmpMeta[0];
2686 _return: OMC_LABEL_UNUSED__attribute__((unused))
2687 return _elements;
2688}
2689
2690PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_simplifyDAEElements(threadData_t *threadData, modelica_boolean _hasCardinality, modelica_metatype _D_24in_DAE)
2691{
2692 modelica_metatype _DAE = NULL((void*)0);
2693 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2694 MMC_SO()mmc_check_stackoverflow(threadData);
2695 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2696 _DAE = _D_24in_DAE;
2697#line 2620 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2698 if(_hasCardinality)
2699#line 2620 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2700 {
2701#line 2621 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2702 tmpMeta[0] = mmc_mk_box2(3, &DAE_DAElist_DAE__desc, omc_List_mapFlat(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_DAE), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_DAE) - 3))) + (
2)))))
), boxvar_ConnectUtil_simplifyDAEElement((void*)((char*)(&(boxvar_lit_ConnectUtil_simplifyDAEElement
).header) + 3))
));
2703#line 2621 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2704 _DAE = tmpMeta[0];
2705#line 2705 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2706 }
2707 _return: OMC_LABEL_UNUSED__attribute__((unused))
2708 return _DAE;
2709}
2710PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_simplifyDAEElements(threadData_t *threadData, modelica_metatype _hasCardinality, modelica_metatype _D_24in_DAE)
2711{
2712 modelica_integer tmp1;
2713 modelica_metatype _DAE = NULL((void*)0);
2714 tmp1 = mmc_unbox_integer(_hasCardinality)(((mmc_sint_t) (_hasCardinality)) >> 1);
2715 _DAE = omc_ConnectUtil_simplifyDAEElements(threadData, tmp1, _D_24in_DAE);
2716 /* skip box _DAE; DAE.DAElist */
2717 return _DAE;
2718}
2719
2720PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_evaluateCardinality(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _sets)
2721{
2722 modelica_metatype _exp = NULL((void*)0);
2723 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2724 MMC_SO()mmc_check_stackoverflow(threadData);
2725 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2726 // _exp has no default value.
2727#line 2612 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2728 tmpMeta[0] = mmc_mk_box2(3, &DAE_Exp_ICONST__desc, mmc_mk_integermmc_mk_icon(omc_ConnectUtil_getConnectCount(threadData, _cref, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_sets), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_sets) - 3))) +
(2)))))
))));
2729#line 2612 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2730 _exp = tmpMeta[0];
2731#line 2731 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2732 _return: OMC_LABEL_UNUSED__attribute__((unused))
2733 return _exp;
2734}
2735
2736PROTECTED_FUNCTION_STATIC modelica_integer omc_ConnectUtil_evaluateFlowDirection(threadData_t *threadData, modelica_metatype _ty)
2737{
2738 modelica_integer _direction;
2739 modelica_metatype _attr = NULL((void*)0);
2740 modelica_metatype _min_oval = NULL((void*)0);
2741 modelica_metatype _max_oval = NULL((void*)0);
2742 modelica_real _min_val;
2743 modelica_real _max_val;
2744 modelica_integer tmp1 = 0;
2745 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2746 MMC_SO()mmc_check_stackoverflow(threadData);
2747 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2748 _direction = ((modelica_integer) 0);
2749 // _attr has no default value.
2750 // _min_oval has no default value.
2751 // _max_oval has no default value.
2752 // _min_val has no default value.
2753 // _max_val has no default value.
2754#line 2581 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2755 _attr = omc_Types_getAttributes(threadData, _ty);
2756#line 2756 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2757
2758#line 2582 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2759 if(listEmpty(_attr)((*(mmc_uint_t*)((void*)((char*)(_attr) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
)
2760#line 2582 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2761 {
2762#line 2582 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2763 goto _return;
2764#line 2764 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2765 }
2766
2767#line 2584 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2768 _min_oval = omc_Types_lookupAttributeValue(threadData, _attr, _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)));
2769#line 2769 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2770
2771#line 2585 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2772 _max_oval = omc_Types_lookupAttributeValue(threadData, _attr, _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)));
2773#line 2773 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2774
2775#line 2775 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2776 { /* match expression */
2777 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
2778 tmp4_1 = _min_oval;
2779 tmp4_2 = _max_oval;
2780 {
2781 volatile mmc_switch_type tmp4;
2782 int tmp5;
2783 tmp4 = 0;
2784 for (; tmp4 < 5; tmp4++) {
2785 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2786 case 0: {
2787 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;
2788 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;
2789 /* Pattern matching succeeded */
2790#line 2589 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2791 tmp1 = ((modelica_integer) 0);
2792#line 2792 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2793 goto tmp3_done;
2794 }
2795 case 1: {
2796 modelica_real tmp6;
2797 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;
2798 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;
2799 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
2800 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2801 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
2802 tmp6 = mmc_unbox_real(tmpMeta[1])mmc_prim_get_real(tmpMeta[1]);
2803 _min_val = tmp6 /* pattern as ty=Real */;
2804 /* Pattern matching succeeded */
2805#line 2592 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2806 tmp1 = ((_min_val >= 0.0)?((modelica_integer) 1):((modelica_integer) 0));
2807#line 2807 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2808 goto tmp3_done;
2809 }
2810 case 2: {
2811 modelica_real tmp7;
2812 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;
2813 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;
2814 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
2815 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2816 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
2817 tmp7 = mmc_unbox_real(tmpMeta[1])mmc_prim_get_real(tmpMeta[1]);
2818 _max_val = tmp7 /* pattern as ty=Real */;
2819 /* Pattern matching succeeded */
2820#line 2595 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2821 tmp1 = ((_max_val <= 0.0)?((modelica_integer) -1):((modelica_integer) 0));
2822#line 2822 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2823 goto tmp3_done;
2824 }
2825 case 3: {
2826 modelica_real tmp8;
2827 modelica_real tmp9;
2828 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;
2829 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
2830 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2831 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
2832 tmp8 = mmc_unbox_real(tmpMeta[1])mmc_prim_get_real(tmpMeta[1]);
2833 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;
2834 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
2835 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2836 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
2837 tmp9 = mmc_unbox_real(tmpMeta[3])mmc_prim_get_real(tmpMeta[3]);
2838 _min_val = tmp8 /* pattern as ty=Real */;
2839 _max_val = tmp9 /* pattern as ty=Real */;
2840 /* Pattern matching succeeded */
2841#line 2599 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2842 tmp1 = (((_min_val >= 0.0) && (_max_val >= _min_val))?((modelica_integer) 1):(((_max_val <= 0.0) && (_min_val <= _max_val))?((modelica_integer) -1):((modelica_integer) 0)));
2843#line 2843 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2844 goto tmp3_done;
2845 }
2846 case 4: {
2847
2848 /* Pattern matching succeeded */
2849#line 2603 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2850 tmp1 = ((modelica_integer) 0);
2851#line 2851 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2852 goto tmp3_done;
2853 }
2854 }
2855 goto tmp3_end;
2856 tmp3_end: ;
2857 }
2858 goto goto_2;
2859 goto_2:;
2860 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2861 goto tmp3_done;
2862 tmp3_done:;
2863 }
2864 }
2865 _direction = tmp1;
2866 _return: OMC_LABEL_UNUSED__attribute__((unused))
2867 return _direction;
2868}
2869PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_evaluateFlowDirection(threadData_t *threadData, modelica_metatype _ty)
2870{
2871 modelica_integer _direction;
2872 modelica_metatype out_direction;
2873 _direction = omc_ConnectUtil_evaluateFlowDirection(threadData, _ty);
2874 out_direction = mmc_mk_icon(_direction);
2875 return out_direction;
2876}
2877
2878PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_evaluateActualStream(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _sets, modelica_metatype _setArray, modelica_real _flowThreshold)
2879{
2880 modelica_metatype _exp = NULL((void*)0);
2881 modelica_metatype _flow_cr = NULL((void*)0);
2882 modelica_metatype _e = NULL((void*)0);
2883 modelica_metatype _flow_exp = NULL((void*)0);
2884 modelica_metatype _stream_exp = NULL((void*)0);
2885 modelica_metatype _instream_exp = NULL((void*)0);
2886 modelica_metatype _rel_exp = NULL((void*)0);
2887 modelica_metatype _ety = NULL((void*)0);
2888 modelica_integer _flow_dir;
2889 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
2890 MMC_SO()mmc_check_stackoverflow(threadData);
2891 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2892 // _exp has no default value.
2893 // _flow_cr has no default value.
2894 // _e has no default value.
2895 // _flow_exp has no default value.
2896 // _stream_exp has no default value.
2897 // _instream_exp has no default value.
2898 // _rel_exp has no default value.
2899 // _ety has no default value.
2900 // _flow_dir has no default value.
2901#line 2545 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2902 _flow_cr = omc_ConnectUtil_getStreamFlowAssociation(threadData, _streamCref, _sets);
2903#line 2903 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2904
2905#line 2546 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2906 _ety = omc_ComponentReference_crefLastType(threadData, _flow_cr);
2907#line 2907 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2908
2909#line 2547 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2910 _flow_dir = omc_ConnectUtil_evaluateFlowDirection(threadData, _ety);
2911#line 2911 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2912
2913#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2914 if((_flow_dir == ((modelica_integer) 1)))
2915#line 2551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2916 {
2917#line 2552 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2918 _rel_exp = omc_ConnectUtil_evaluateInStream(threadData, _streamCref, _sets, _setArray, _flowThreshold);
2919#line 2919 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2920 }
2921 else
2922 {
2923 if((_flow_dir == ((modelica_integer) -1)))
2924 {
2925#line 2554 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2926 _rel_exp = omc_Expression_crefExp(threadData, _streamCref);
2927#line 2927 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2928 }
2929 else
2930 {
2931#line 2556 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2932 _flow_exp = omc_Expression_crefExp(threadData, _flow_cr);
2933#line 2933 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2934
2935#line 2557 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2936 _stream_exp = omc_Expression_crefExp(threadData, _streamCref);
2937#line 2937 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2938
2939#line 2558 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2940 _instream_exp = omc_ConnectUtil_evaluateInStream(threadData, _streamCref, _sets, _setArray, _flowThreshold);
2941#line 2941 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2942
2943#line 2559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2944 tmpMeta[0] = mmc_mk_box2(30, &DAE_Operator_GREATER__desc, _ety);
2945#line 2559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2946 tmpMeta[1] = mmc_mk_box6(14, &DAE_Exp_RELATION__desc, _flow_exp, tmpMeta[0], _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)), mmc_mk_integermmc_mk_icon(((modelica_integer) -1)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
2947#line 2559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2948 tmpMeta[2] = mmc_mk_box4(15, &DAE_Exp_IFEXP__desc, tmpMeta[1], _instream_exp, _stream_exp);
2949#line 2559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2950 _rel_exp = tmpMeta[2];
2951#line 2951 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2952 }
2953 }
2954
2955#line 2566 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2956 tmpMeta[0] = mmc_mk_cons(_OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)), mmc_mk_cons(_rel_exp, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
2957#line 2566 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2958 tmpMeta[1] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)), tmpMeta[0], _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)));
2959#line 2566 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2960 _exp = tmpMeta[1];
2961#line 2961 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2962 _return: OMC_LABEL_UNUSED__attribute__((unused))
2963 return _exp;
2964}
2965PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_evaluateActualStream(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _sets, modelica_metatype _setArray, modelica_metatype _flowThreshold)
2966{
2967 modelica_real tmp1;
2968 modelica_metatype _exp = NULL((void*)0);
2969 tmp1 = mmc_unbox_real(_flowThreshold)mmc_prim_get_real(_flowThreshold);
2970 _exp = omc_ConnectUtil_evaluateActualStream(threadData, _streamCref, _sets, _setArray, tmp1);
2971 /* skip box _exp; DAE.Exp */
2972 return _exp;
2973}
2974
2975static modelica_metatype closure0_ConnectUtil_isZeroFlowMinMax(threadData_t *thData, modelica_metatype closure, modelica_metatype element)
2976{
2977 modelica_metatype streamCref = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
2978 return boxptr_ConnectUtil_isZeroFlowMinMax(thData, streamCref, element);
2979}
2980PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_generateInStreamExp(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _streams, modelica_metatype _sets, modelica_metatype _setArray, modelica_real _flowThreshold)
2981{
2982 modelica_metatype _exp = NULL((void*)0);
2983 modelica_metatype _reducedStreams = NULL((void*)0);
2984 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
2985 MMC_SO()mmc_check_stackoverflow(threadData);
2986 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2987 // _exp has no default value.
2988 // _reducedStreams has no default value.
2989#line 2477 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2990 tmpMeta[0] = mmc_mk_box1(0, _streamCref);
2991#line 2477 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
2992 _reducedStreams = omc_List_filterOnFalse(threadData, _streams, (modelica_fnptr) mmc_mk_box2(0,closure0_ConnectUtil_isZeroFlowMinMax,tmpMeta[0]));
2993#line 2993 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2994
2995#line 2995 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
2996 { /* match expression */
2997 modelica_metatype tmp3_1;
2998 tmp3_1 = _reducedStreams;
2999 {
3000 modelica_metatype _c = NULL((void*)0);
3001 modelica_metatype _f1 = NULL((void*)0);
3002 modelica_metatype _f2 = NULL((void*)0);
3003 modelica_metatype _e = NULL((void*)0);
3004 modelica_metatype _expr = NULL((void*)0);
3005 modelica_metatype _inside = NULL((void*)0);
3006 modelica_metatype _outside = NULL((void*)0);
3007 volatile mmc_switch_type tmp3;
3008 int tmp4;
3009 // _c has no default value.
3010 // _f1 has no default value.
3011 // _f2 has no default value.
3012 // _e has no default value.
3013 // _expr has no default value.
3014 // _inside has no default value.
3015 // _outside has no default value.
3016 tmp3 = 0;
3017 for (; tmp3 < 4; tmp3++) {
3018 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3019 case 0: {
3020 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3021 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3022 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3023 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3024 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
3025 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],0,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))==(((0 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3026 if (!listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3027 _c = tmpMeta[3];
3028 /* Pattern matching succeeded */
3029#line 2489 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3030 tmpMeta[0] = omc_Expression_crefExp(threadData, _c);
3031#line 3031 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3032 goto tmp2_done;
3033 }
3034 case 1: {
3035 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3036 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3037 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3038 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
3039 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((0 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3040 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3041 tmpMeta[4] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
3042 tmpMeta[5] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
3043 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (3)))))
;
3044 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[6],0,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3)))==(((0 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3045 if (!listEmpty(tmpMeta[5])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3046 /* Pattern matching succeeded */
3047#line 2497 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3048 /* Pattern-matching assignment */
3049#line 2497 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3050 tmpMeta[1] = omc_ConnectUtil_removeStreamSetElement(threadData, _streamCref, _reducedStreams);
3051#line 2497 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3052 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_1;
3053#line 2497 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3054 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
3055#line 2497 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3056 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3057#line 2497 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3058 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
3059#line 2497 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3060 if (!listEmpty(tmpMeta[3])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_1;
3061#line 2497 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3062 _c = tmpMeta[4];
3063#line 3063 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3064#line 2499 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3065 tmpMeta[0] = omc_Expression_crefExp(threadData, _c);
3066#line 3066 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3067 goto tmp2_done;
3068 }
3069 case 2: {
3070 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3071 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3072 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3073 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
3074 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3075 tmpMeta[4] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
3076 tmpMeta[5] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
3077 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (3)))))
;
3078 if (!listEmpty(tmpMeta[5])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3079 _f1 = tmpMeta[3];
3080 _f2 = tmpMeta[6];
3081 /* Pattern matching succeeded */
3082 /* Check guard condition after assignments */
3083 if (!(!omc_ConnectUtil_faceEqual(threadData, _f1, _f2))) goto tmp2_end;
3084#line 2508 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3085 /* Pattern-matching assignment */
3086#line 2508 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3087 tmpMeta[1] = omc_ConnectUtil_removeStreamSetElement(threadData, _streamCref, _reducedStreams);
3088#line 2508 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3089 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_1;
3090#line 2508 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3091 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
3092#line 2508 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3093 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3094#line 2508 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3095 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
3096#line 2508 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3097 if (!listEmpty(tmpMeta[3])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_1;
3098#line 2508 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3099 _c = tmpMeta[4];
3100#line 3100 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3101#line 2510 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3102 tmpMeta[0] = omc_ConnectUtil_evaluateInStream(threadData, _c, _sets, _setArray, _flowThreshold);
3103#line 3103 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3104 goto tmp2_done;
3105 }
3106 case 3: {
3107
3108 /* Pattern matching succeeded */
3109#line 2517 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3110 _outside = omc_List_splitOnTrue(threadData, _reducedStreams, boxvar_ConnectUtil_isOutsideElement((void*)((char*)(&(boxvar_lit_ConnectUtil_isOutsideElement
).header) + 3))
,&_inside);
3111#line 3111 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3112
3113#line 2518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3114 _inside = omc_ConnectUtil_removeStreamSetElement(threadData, _streamCref, _inside);
3115#line 3115 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3116
3117#line 2519 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3118 _e = omc_ConnectUtil_streamSumEquationExp(threadData, _outside, _inside, _flowThreshold);
3119#line 3119 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3120
3121#line 2520 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3122 if((!listEmpty(_inside)((*(mmc_uint_t*)((void*)((char*)(_inside) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
))
3123#line 2520 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3124 {
3125#line 2521 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3126 _expr = omc_ConnectUtil_streamFlowExp(threadData, omc_List_first(threadData, _inside), NULL((void*)0));
3127#line 3127 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3128
3129#line 2522 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3130 tmpMeta[1] = mmc_mk_cons(_e, mmc_mk_cons(_expr, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
3131#line 2522 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3132 _e = omc_Expression_makePureBuiltinCall(threadData, _OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3)), tmpMeta[1], omc_Expression_typeof(threadData, _e));
3133#line 3133 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3134 }
3135#line 2525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3136 tmpMeta[0] = omc_ConnectUtil_evaluateConnectionOperators2(threadData, _e, _sets, _setArray, 0, _flowThreshold, NULL((void*)0));
3137#line 3137 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3138 goto tmp2_done;
3139 }
3140 }
3141 goto tmp2_end;
3142 tmp2_end: ;
3143 }
3144 goto goto_1;
3145 goto_1:;
3146 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3147 goto tmp2_done;
3148 tmp2_done:;
3149 }
3150 }
3151 _exp = tmpMeta[0];
3152 _return: OMC_LABEL_UNUSED__attribute__((unused))
3153 return _exp;
3154}
3155PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_generateInStreamExp(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _streams, modelica_metatype _sets, modelica_metatype _setArray, modelica_metatype _flowThreshold)
3156{
3157 modelica_real tmp1;
3158 modelica_metatype _exp = NULL((void*)0);
3159 tmp1 = mmc_unbox_real(_flowThreshold)mmc_prim_get_real(_flowThreshold);
3160 _exp = omc_ConnectUtil_generateInStreamExp(threadData, _streamCref, _streams, _sets, _setArray, tmp1);
3161 /* skip box _exp; DAE.Exp */
3162 return _exp;
3163}
3164
3165PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_evaluateInStream(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _sets, modelica_metatype _setArray, modelica_real _flowThreshold)
3166{
3167 modelica_metatype _exp = NULL((void*)0);
3168 modelica_metatype _e = NULL((void*)0);
3169 modelica_metatype _sl = NULL((void*)0);
3170 modelica_integer _set;
3171 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3172 MMC_SO()mmc_check_stackoverflow(threadData);
3173 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3174 // _exp has no default value.
3175 // _e has no default value.
3176 // _sl has no default value.
3177 // _set has no default value.
3178#line 3178 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3179 { /* matchcontinue expression */
3180 {
3181 volatile mmc_switch_type tmp3;
3182 int tmp4;
3183 tmp3 = 0;
3184 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) {
3185 tmp2_top:
3186 threadData->mmc_jumper = &new_mmc_jumper;
3187 for (; tmp3 < 2; tmp3++) {
3188 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3189 case 0: {
3190 modelica_integer tmp5;
3191 /* Pattern matching succeeded */
3192#line 2442 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3193 _e = omc_ConnectUtil_findElement(threadData, _streamCref, _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)), _OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)), _OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3)), _sets);
3194#line 3194 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3195
3196#line 2445 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3197 if(omc_ConnectUtil_isNewElement(threadData, _e))
3198#line 2445 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3199 {
3200#line 2448 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3201 tmpMeta[0] = mmc_mk_cons(_e, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3202#line 2448 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3203 _sl = tmpMeta[0];
3204#line 3204 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3205 }
3206 else
3207 {
3208#line 2452 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3209 /* Pattern-matching assignment */
3210#line 2452 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3211 tmpMeta[0] = _e;
3212#line 2452 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3213 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
3214#line 2452 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3215 tmp5 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
3216#line 2452 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3217 _set = tmp5 /* pattern as ty=Integer */;
3218#line 3218 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3219
3220#line 2453 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3221 /* Pattern-matching assignment */
3222#line 2453 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3223 tmpMeta[0] = omc_ConnectUtil_setArrayGet(threadData, _setArray, _set);
3224#line 2453 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3225 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_1;
3226#line 2453 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3227 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
3228#line 2453 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3229 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto goto_1;
3230#line 2453 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3231 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
3232#line 2453 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3233 _sl = tmpMeta[2];
3234#line 3234 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3235 }
3236
3237#line 2457 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3238 _exp = omc_ConnectUtil_generateInStreamExp(threadData, _streamCref, _sl, _sets, _setArray, _flowThreshold);
3239#line 3239 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3240#line 3240 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3241 goto tmp2_done;
3242 }
3243 case 1: {
3244 modelica_boolean tmp6;
3245 /* Pattern matching succeeded */
3246#line 2459 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3247 /* Pattern-matching assignment */
3248#line 2459 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3249 tmp6 = omc_Flags_isSet(threadData, _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)));
3250#line 2459 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3251 if (1 != tmp6) goto goto_1;
3252#line 3252 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3253
3254#line 2460 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3255 tmpMeta[0] = stringAppend(_OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)),omc_ComponentReference_crefStr(threadData, _streamCref));
3256#line 2460 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3257 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)));
3258#line 2460 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3259 omc_Debug_traceln(threadData, tmpMeta[1]);
3260#line 3260 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3261#line 3261 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3262 goto tmp2_done;
3263 }
3264 }
3265 goto tmp2_end;
3266 tmp2_end: ;
3267 }
3268 goto goto_1;
3269 tmp2_done:
3270 (void)tmp3;
3271 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3272 goto tmp2_done2;
3273 goto_1:;
3274 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3275 if (++tmp3 < 2) {
3276 goto tmp2_top;
3277 }
3278 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3279 tmp2_done2:;
3280 }
3281 }
3282 ;
3283 _return: OMC_LABEL_UNUSED__attribute__((unused))
3284 return _exp;
3285}
3286PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_evaluateInStream(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _sets, modelica_metatype _setArray, modelica_metatype _flowThreshold)
3287{
3288 modelica_real tmp1;
3289 modelica_metatype _exp = NULL((void*)0);
3290 tmp1 = mmc_unbox_real(_flowThreshold)mmc_prim_get_real(_flowThreshold);
3291 _exp = omc_ConnectUtil_evaluateInStream(threadData, _streamCref, _sets, _setArray, tmp1);
3292 /* skip box _exp; DAE.Exp */
3293 return _exp;
3294}
3295
3296PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_mkArrayIfNeeded(threadData_t *threadData, modelica_metatype _ty, modelica_metatype _D_24in_exp)
3297{
3298 modelica_metatype _exp = NULL((void*)0);
3299 MMC_SO()mmc_check_stackoverflow(threadData);
3300 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3301 _exp = _D_24in_exp;
3302#line 2425 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3303 _exp = omc_Expression_arrayFill(threadData, omc_Types_getDimensions(threadData, _ty), _exp);
3304#line 3304 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3305 _return: OMC_LABEL_UNUSED__attribute__((unused))
3306 return _exp;
3307}
3308
3309PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_evaluateConnectionOperatorsExp(threadData_t *threadData, modelica_metatype _D_24in_exp, modelica_metatype _sets, modelica_metatype _setArray, modelica_real _flowThreshold, modelica_boolean _D_24in_changed, modelica_boolean *out_changed)
3310{
3311 modelica_metatype _exp = NULL((void*)0);
3312 modelica_boolean _changed;
3313 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
3314 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
3315 MMC_SO()mmc_check_stackoverflow(threadData);
3316 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3317 _exp = _D_24in_exp;
3318 _changed = _D_24in_changed;
3319#line 2386 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3320
3321#line 2386 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3322
3323#line 3323 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3324 { /* match expression */
3325 modelica_metatype tmp4_1;
3326 tmp4_1 = _exp;
3327 {
3328 modelica_metatype _cr = NULL((void*)0);
3329 modelica_metatype _e = NULL((void*)0);
3330 volatile mmc_switch_type tmp4;
3331 int tmp5;
3332 // _cr has no default value.
3333 // _e has no default value.
3334 tmp4 = 0;
3335 for (; tmp4 < 4; tmp4++) {
3336 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3337 case 0: {
3338 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,13,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((13 +3) & 255) << 2)))
== 0) goto tmp3_end;
3339 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3340 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3341 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
3342 if (8 != MMC_STRLEN(tmpMeta[3])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT59)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT59).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
) != 0) goto tmp3_end;
3343 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
3344 if (listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3345 tmpMeta[5] = MMC_CAR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
3346 tmpMeta[6] = MMC_CDR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
3347 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp3_end;
3348 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (2)))))
;
3349 if (!listEmpty(tmpMeta[6])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3350
3351 _cr = tmpMeta[7];
3352 /* Pattern matching succeeded */
3353#line 2394 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3354 _e = omc_ConnectUtil_evaluateInStream(threadData, _cr, _sets, _setArray, _flowThreshold);
3355#line 3355 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3356#line 2396 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3357 tmpMeta[0+0] = _e;
3358#line 2396 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3359 tmp1_c1 = 1;
3360#line 3360 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3361 goto tmp3_done;
3362 }
3363 case 1: {
3364 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,13,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((13 +3) & 255) << 2)))
== 0) goto tmp3_end;
3365 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3366 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3367 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
3368 if (12 != MMC_STRLEN(tmpMeta[3])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT60)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT60).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
) != 0) goto tmp3_end;
3369 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
3370 if (listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3371 tmpMeta[5] = MMC_CAR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
3372 tmpMeta[6] = MMC_CDR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
3373 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp3_end;
3374 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (2)))))
;
3375 if (!listEmpty(tmpMeta[6])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3376
3377 _cr = tmpMeta[7];
3378 /* Pattern matching succeeded */
3379#line 2402 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3380 _e = omc_ConnectUtil_evaluateActualStream(threadData, _cr, _sets, _setArray, _flowThreshold);
3381#line 3381 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3382#line 2404 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3383 tmpMeta[0+0] = _e;
3384#line 2404 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3385 tmp1_c1 = 1;
3386#line 3386 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3387 goto tmp3_done;
3388 }
3389 case 2: {
3390 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,13,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((3 +1) <<
10) + (((13 +3) & 255) << 2)))
== 0) goto tmp3_end;
3391 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3392 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3393 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
3394 if (11 != MMC_STRLEN(tmpMeta[3])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT61)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT61).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
) != 0) goto tmp3_end;
3395 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
3396 if (listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3397 tmpMeta[5] = MMC_CAR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
3398 tmpMeta[6] = MMC_CDR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
3399 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],6,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))==(((2 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp3_end;
3400 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (2)))))
;
3401 if (!listEmpty(tmpMeta[6])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3402
3403 _cr = tmpMeta[7];
3404 /* Pattern matching succeeded */
3405#line 2410 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3406 _e = omc_ConnectUtil_evaluateCardinality(threadData, _cr, _sets);
3407#line 3407 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3408#line 2411 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3409 tmpMeta[0+0] = _e;
3410#line 2411 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3411 tmp1_c1 = 1;
3412#line 3412 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3413 goto tmp3_done;
3414 }
3415 case 3: {
3416
3417 /* Pattern matching succeeded */
3418#line 2414 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3419 tmpMeta[0+0] = _exp;
3420#line 2414 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3421 tmp1_c1 = _changed;
3422#line 3422 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3423 goto tmp3_done;
3424 }
3425 }
3426 goto tmp3_end;
3427 tmp3_end: ;
3428 }
3429 goto goto_2;
3430 goto_2:;
3431 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3432 goto tmp3_done;
3433 tmp3_done:;
3434 }
3435 }
3436 _exp = tmpMeta[0+0];
3437 _changed = tmp1_c1;
3438 _return: OMC_LABEL_UNUSED__attribute__((unused))
3439 if (out_changed) { *out_changed = _changed; }
3440 return _exp;
3441}
3442PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_evaluateConnectionOperatorsExp(threadData_t *threadData, modelica_metatype _D_24in_exp, modelica_metatype _sets, modelica_metatype _setArray, modelica_metatype _flowThreshold, modelica_metatype _D_24in_changed, modelica_metatype *out_changed)
3443{
3444 modelica_real tmp1;
3445 modelica_integer tmp2;
3446 modelica_boolean _changed;
3447 modelica_metatype _exp = NULL((void*)0);
3448 tmp1 = mmc_unbox_real(_flowThreshold)mmc_prim_get_real(_flowThreshold);
3449 tmp2 = mmc_unbox_integer(_D_24in_changed)(((mmc_sint_t) (_D_24in_changed)) >> 1);
3450 _exp = omc_ConnectUtil_evaluateConnectionOperatorsExp(threadData, _D_24in_exp, _sets, _setArray, tmp1, tmp2, &_changed);
3451 /* skip box _exp; DAE.Exp */
3452 if (out_changed) { *out_changed = mmc_mk_icon(_changed); }
3453 return _exp;
3454}
3455
3456static modelica_metatype closure1_ConnectUtil_evaluateConnectionOperatorsExp(threadData_t *thData, modelica_metatype closure, modelica_metatype $in_exp, modelica_metatype $in_changed, modelica_metatype tmp2)
3457{
3458 modelica_metatype sets = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
3459 modelica_metatype setArray = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),2))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (2)))))
;
3460 modelica_metatype flowThreshold = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),3))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (3)))))
;
3461 return boxptr_ConnectUtil_evaluateConnectionOperatorsExp(thData, $in_exp, sets, setArray, flowThreshold, $in_changed, tmp2);
3462}
3463PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_evaluateConnectionOperators2(threadData_t *threadData, modelica_metatype _D_24in_exp, modelica_metatype _D_24in_sets, modelica_metatype _setArray, modelica_boolean _hasCardinality, modelica_real _flowThreshold, modelica_metatype *out_sets)
3464{
3465 modelica_metatype _exp = NULL((void*)0);
3466 modelica_metatype _sets = NULL((void*)0);
3467 modelica_boolean _changed;
3468 modelica_integer tmp1;
3469 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3470 MMC_SO()mmc_check_stackoverflow(threadData);
3471 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3472 _exp = _D_24in_exp;
3473 _sets = _D_24in_sets;
3474 // _changed has no default value.
3475#line 2364 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3476 /* Pattern-matching tuple assignment */
3477#line 2364 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3478 tmpMeta[1] = mmc_mk_box3(0, _sets, _setArray, mmc_mk_realmmc_mk_rcon(_flowThreshold));
3479#line 2364 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3480 tmpMeta[2] = omc_Expression_traverseExpBottomUp(threadData, _exp, (modelica_fnptr) mmc_mk_box2(0,closure1_ConnectUtil_evaluateConnectionOperatorsExp,tmpMeta[1]), mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), &tmpMeta[0]);
3481#line 2364 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3482 _exp = tmpMeta[2];
3483#line 2364 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3484 tmp1 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
3485#line 2364 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3486 _changed = tmp1 /* pattern as ty=Boolean */;
3487#line 3487 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3488
3489#line 2371 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3490 if((_changed && _hasCardinality))
3491#line 2371 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3492 {
3493#line 2372 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3494 _exp = omc_ExpressionSimplify_simplify(threadData, _exp, NULL((void*)0));
3495#line 3495 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3496 }
3497 _return: OMC_LABEL_UNUSED__attribute__((unused))
3498 if (out_sets) { *out_sets = _sets; }
3499 return _exp;
3500}
3501PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_evaluateConnectionOperators2(threadData_t *threadData, modelica_metatype _D_24in_exp, modelica_metatype _D_24in_sets, modelica_metatype _setArray, modelica_metatype _hasCardinality, modelica_metatype _flowThreshold, modelica_metatype *out_sets)
3502{
3503 modelica_integer tmp1;
3504 modelica_real tmp2;
3505 modelica_metatype _exp = NULL((void*)0);
3506 tmp1 = mmc_unbox_integer(_hasCardinality)(((mmc_sint_t) (_hasCardinality)) >> 1);
3507 tmp2 = mmc_unbox_real(_flowThreshold)mmc_prim_get_real(_flowThreshold);
3508 _exp = omc_ConnectUtil_evaluateConnectionOperators2(threadData, _D_24in_exp, _D_24in_sets, _setArray, tmp1, tmp2, out_sets);
3509 /* skip box _exp; DAE.Exp */
3510 /* skip box _sets; DAE.Connect.Sets */
3511 return _exp;
3512}
3513
3514static modelica_metatype closure2_ConnectUtil_evaluateConnectionOperators2(threadData_t *thData, modelica_metatype closure, modelica_metatype $in_exp, modelica_metatype $in_sets, modelica_metatype tmp1)
3515{
3516 modelica_metatype setArray = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
3517 modelica_metatype hasCardinality = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),2))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (2)))))
;
3518 modelica_metatype flowThreshold = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),3))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (3)))))
;
3519 return boxptr_ConnectUtil_evaluateConnectionOperators2(thData, $in_exp, $in_sets, setArray, hasCardinality, flowThreshold, tmp1);
3520}
3521PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_evaluateConnectionOperators(threadData_t *threadData, modelica_metatype _sets, modelica_metatype _setArray, modelica_metatype _D_24in_DAE)
3522{
3523 modelica_metatype _DAE = NULL((void*)0);
3524 modelica_real _flow_threshold;
3525 modelica_boolean _has_cardinality;
3526 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3527 MMC_SO()mmc_check_stackoverflow(threadData);
3528 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3529 _DAE = _D_24in_DAE;
3530 // _flow_threshold has no default value.
3531 _has_cardinality = omc_System_getUsesCardinality(threadData);
3532#line 2343 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3533 if((omc_System_getHasStreamConnectors(threadData) || _has_cardinality))
3534#line 2343 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3535 {
3536#line 2344 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3537 _flow_threshold = omc_Flags_getConfigReal(threadData, _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)));
3538#line 3538 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3539
3540#line 2345 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3541 tmpMeta[0] = mmc_mk_box3(0, _setArray, mmc_mk_boolean(_has_cardinality)((_has_cardinality) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0)
))
, mmc_mk_realmmc_mk_rcon(_flow_threshold));
3542#line 2345 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3543 _DAE = omc_DAEUtil_traverseDAE(threadData, _DAE, _OMC_LIT69((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3)), (modelica_fnptr) mmc_mk_box2(0,closure2_ConnectUtil_evaluateConnectionOperators2,tmpMeta[0]), _sets, NULL((void*)0), NULL((void*)0));
3544#line 3544 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3545
3546#line 2350 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3547 _DAE = omc_ConnectUtil_simplifyDAEElements(threadData, _has_cardinality, _DAE);
3548#line 3548 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3549 }
3550 _return: OMC_LABEL_UNUSED__attribute__((unused))
3551 return _DAE;
3552}
3553
3554PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_makePositiveMaxCall(threadData_t *threadData, modelica_metatype _flowExp, modelica_metatype _flowThreshold)
3555{
3556 modelica_metatype _positiveMaxCall = NULL((void*)0);
3557 modelica_metatype _ty = NULL((void*)0);
3558 modelica_metatype _attr = NULL((void*)0);
3559 modelica_metatype _nominal_oexp = NULL((void*)0);
3560 modelica_metatype _nominal_exp = NULL((void*)0);
3561 modelica_metatype _flow_threshold = NULL((void*)0);
3562 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3563 MMC_SO()mmc_check_stackoverflow(threadData);
3564 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3565 // _positiveMaxCall has no default value.
3566 // _ty has no default value.
3567 // _attr has no default value.
3568 // _nominal_oexp has no default value.
3569 // _nominal_exp has no default value.
3570 // _flow_threshold has no default value.
3571#line 2308 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3572 _ty = omc_Expression_typeof(threadData, _flowExp);
3573#line 3573 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3574
3575#line 2309 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3576 _nominal_oexp = omc_Types_lookupAttributeExp(threadData, omc_Types_getAttributes(threadData, _ty), _OMC_LIT70((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3)));
3577#line 3577 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3578
3579#line 2311 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3580 if(isSome(_nominal_oexp)(0==((((((*(mmc_uint_t*)((void*)((char*)(_nominal_oexp) - 3))
)) & (7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(_nominal_oexp
) - 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*
)(_nominal_oexp) - 3)))) >> 10)) ? 0 : 1)
)
3581#line 2311 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3582 {
3583#line 2312 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3584 /* Pattern-matching assignment */
3585#line 2312 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3586 tmpMeta[0] = _nominal_oexp;
3587#line 2312 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3588 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);};
3589#line 2312 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3590 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3591#line 2312 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3592 _nominal_exp = tmpMeta[1];
3593#line 3593 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3594
3595#line 2313 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3596 _flow_threshold = omc_Expression_expMul(threadData, _flowThreshold, _nominal_exp);
3597#line 3597 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3598 }
3599 else
3600 {
3601#line 2315 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3602 _flow_threshold = _flowThreshold;
3603#line 3603 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3604 }
3605
3606#line 2318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3607 tmpMeta[0] = mmc_mk_cons(_flowExp, mmc_mk_cons(_flow_threshold, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
3608#line 2318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3609 tmpMeta[1] = mmc_mk_box8(3, &DAE_CallAttributes_CALL__ATTR__desc, _ty, mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(1)((1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)), _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)));
3610#line 2318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3611 tmpMeta[2] = mmc_mk_box4(16, &DAE_Exp_CALL__desc, _OMC_LIT72((void*)((char*)(&(_OMC_LIT_STRUCT72).header) + 3)), tmpMeta[0], tmpMeta[1]);
3612#line 2318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3613 _positiveMaxCall = tmpMeta[2];
3614#line 3614 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3615
3616#line 2329 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3617 setGlobalRoot(((modelica_integer) 26), _OMC_LIT73)boxptr_setGlobalRoot(threadData,mmc_mk_icon(((modelica_integer
) 26)),((void*)((char*)(&(_OMC_LIT_STRUCT73).header) + 3)
))
;
3618#line 3618 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3619 _return: OMC_LABEL_UNUSED__attribute__((unused))
3620 return _positiveMaxCall;
3621}
3622
3623PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_makeInStreamCall(threadData_t *threadData, modelica_metatype _streamExp)
3624{
3625 modelica_metatype _inStreamCall = NULL((void*)0);
3626 modelica_metatype _ty = NULL((void*)0);
3627 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3628 MMC_SO()mmc_check_stackoverflow(threadData);
3629 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3630 // _inStreamCall has no default value.
3631 // _ty has no default value.
3632#line 2292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3633 _ty = omc_Expression_typeof(threadData, _streamExp);
3634#line 3634 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3635
3636#line 2293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3637 tmpMeta[0] = mmc_mk_cons(_streamExp, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
3638#line 2293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3639 _inStreamCall = omc_Expression_makeBuiltinCall(threadData, _OMC_LIT59((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3)), tmpMeta[0], _ty, 0);
3640#line 3640 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3641 _return: OMC_LABEL_UNUSED__attribute__((unused))
3642 return _inStreamCall;
3643}
3644
3645DLLExport
3646modelica_boolean omc_ConnectUtil_faceEqual(threadData_t *threadData, modelica_metatype _face1, modelica_metatype _face2)
3647{
3648 modelica_boolean _sameFaces;
3649 MMC_SO()mmc_check_stackoverflow(threadData);
3650 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3651 _sameFaces = (valueConstructor(_face1)((((*(mmc_uint_t*)((void*)((char*)(_face1) - 3)))) >> 2
) & 255)
== valueConstructor(_face2)((((*(mmc_uint_t*)((void*)((char*)(_face2) - 3)))) >> 2
) & 255)
);
3652 _return: OMC_LABEL_UNUSED__attribute__((unused))
3653 return _sameFaces;
3654}
3655modelica_metatype boxptr_ConnectUtil_faceEqual(threadData_t *threadData, modelica_metatype _face1, modelica_metatype _face2)
3656{
3657 modelica_boolean _sameFaces;
3658 modelica_metatype out_sameFaces;
3659 _sameFaces = omc_ConnectUtil_faceEqual(threadData, _face1, _face2);
3660 out_sameFaces = mmc_mk_icon(_sameFaces);
3661 return out_sameFaces;
3662}
3663
3664PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_sumInside2(threadData_t *threadData, modelica_metatype _element, modelica_real _flowThreshold)
3665{
3666 modelica_metatype _exp = NULL((void*)0);
3667 modelica_metatype _flow_exp = NULL((void*)0);
3668 modelica_metatype _flowTy = NULL((void*)0);
3669 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3670 MMC_SO()mmc_check_stackoverflow(threadData);
3671 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3672 // _exp has no default value.
3673 // _flow_exp has no default value.
3674 // _flowTy has no default value.
3675#line 2272 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3676 _flow_exp = omc_ConnectUtil_flowExp(threadData, _element);
3677#line 3677 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3678
3679#line 2273 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3680 _flowTy = omc_Expression_typeof(threadData, _flow_exp);
3681#line 3681 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3682
3683#line 2274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3684 tmpMeta[0] = mmc_mk_box2(8, &DAE_Operator_UMINUS__desc, _flowTy);
3685#line 2274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3686 tmpMeta[1] = mmc_mk_box3(11, &DAE_Exp_UNARY__desc, tmpMeta[0], _flow_exp);
3687#line 2274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3688 _flow_exp = tmpMeta[1];
3689#line 3689 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3690
3691#line 2275 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3692 tmpMeta[0] = mmc_mk_box2(4, &DAE_Exp_RCONST__desc, mmc_mk_realmmc_mk_rcon(_flowThreshold));
3693#line 2275 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3694 _exp = omc_ConnectUtil_makePositiveMaxCall(threadData, _flow_exp, tmpMeta[0]);
3695#line 3695 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3696 _return: OMC_LABEL_UNUSED__attribute__((unused))
3697 return _exp;
3698}
3699PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_sumInside2(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold)
3700{
3701 modelica_real tmp1;
3702 modelica_metatype _exp = NULL((void*)0);
3703 tmp1 = mmc_unbox_real(_flowThreshold)mmc_prim_get_real(_flowThreshold);
3704 _exp = omc_ConnectUtil_sumInside2(threadData, _element, tmp1);
3705 /* skip box _exp; DAE.Exp */
3706 return _exp;
3707}
3708
3709PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_sumOutside2(threadData_t *threadData, modelica_metatype _element, modelica_real _flowThreshold)
3710{
3711 modelica_metatype _exp = NULL((void*)0);
3712 modelica_metatype _flow_exp = NULL((void*)0);
3713 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3714 MMC_SO()mmc_check_stackoverflow(threadData);
3715 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3716 // _exp has no default value.
3717 // _flow_exp has no default value.
3718#line 2257 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3719 _flow_exp = omc_ConnectUtil_flowExp(threadData, _element);
3720#line 3720 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3721
3722#line 2258 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3723 tmpMeta[0] = mmc_mk_box2(4, &DAE_Exp_RCONST__desc, mmc_mk_realmmc_mk_rcon(_flowThreshold));
3724#line 2258 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3725 _exp = omc_ConnectUtil_makePositiveMaxCall(threadData, _flow_exp, tmpMeta[0]);
3726#line 3726 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3727 _return: OMC_LABEL_UNUSED__attribute__((unused))
3728 return _exp;
3729}
3730PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_sumOutside2(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold)
3731{
3732 modelica_real tmp1;
3733 modelica_metatype _exp = NULL((void*)0);
3734 tmp1 = mmc_unbox_real(_flowThreshold)mmc_prim_get_real(_flowThreshold);
3735 _exp = omc_ConnectUtil_sumOutside2(threadData, _element, tmp1);
3736 /* skip box _exp; DAE.Exp */
3737 return _exp;
3738}
3739
3740PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_sumInside1(threadData_t *threadData, modelica_metatype _element, modelica_real _flowThreshold)
3741{
3742 modelica_metatype _exp = NULL((void*)0);
3743 modelica_metatype _stream_exp = NULL((void*)0);
3744 modelica_metatype _flow_exp = NULL((void*)0);
3745 modelica_metatype _flow_threshold = NULL((void*)0);
3746 modelica_metatype _flowTy = NULL((void*)0);
3747 modelica_metatype _streamTy = NULL((void*)0);
3748 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3749 MMC_SO()mmc_check_stackoverflow(threadData);
3750 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3751 // _exp has no default value.
3752 // _stream_exp has no default value.
3753 // _flow_exp has no default value.
3754 // _flow_threshold has no default value.
3755 // _flowTy has no default value.
3756 // _streamTy has no default value.
3757#line 2240 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3758 _stream_exp = omc_ConnectUtil_streamFlowExp(threadData, _element ,&_flow_exp);
3759#line 3759 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3760
3761#line 2241 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3762 _flowTy = omc_Expression_typeof(threadData, _flow_exp);
3763#line 3763 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3764
3765#line 2242 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3766 tmpMeta[0] = mmc_mk_box2(8, &DAE_Operator_UMINUS__desc, _flowTy);
3767#line 2242 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3768 tmpMeta[1] = mmc_mk_box3(11, &DAE_Exp_UNARY__desc, tmpMeta[0], _flow_exp);
3769#line 2242 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3770 _flow_exp = tmpMeta[1];
3771#line 3771 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3772
3773#line 2243 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3774 tmpMeta[0] = mmc_mk_box2(4, &DAE_Exp_RCONST__desc, mmc_mk_realmmc_mk_rcon(_flowThreshold));
3775#line 2243 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3776 _flow_threshold = tmpMeta[0];
3777#line 3777 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3778
3779#line 2244 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3780 _exp = omc_Expression_expMul(threadData, omc_ConnectUtil_makePositiveMaxCall(threadData, _flow_exp, _flow_threshold), _stream_exp);
3781#line 3781 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3782 _return: OMC_LABEL_UNUSED__attribute__((unused))
3783 return _exp;
3784}
3785PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_sumInside1(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold)
3786{
3787 modelica_real tmp1;
3788 modelica_metatype _exp = NULL((void*)0);
3789 tmp1 = mmc_unbox_real(_flowThreshold)mmc_prim_get_real(_flowThreshold);
3790 _exp = omc_ConnectUtil_sumInside1(threadData, _element, tmp1);
3791 /* skip box _exp; DAE.Exp */
3792 return _exp;
3793}
3794
3795PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_sumOutside1(threadData_t *threadData, modelica_metatype _element, modelica_real _flowThreshold)
3796{
3797 modelica_metatype _exp = NULL((void*)0);
3798 modelica_metatype _stream_exp = NULL((void*)0);
3799 modelica_metatype _flow_exp = NULL((void*)0);
3800 modelica_metatype _flow_threshold = NULL((void*)0);
3801 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3802 MMC_SO()mmc_check_stackoverflow(threadData);
3803 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3804 // _exp has no default value.
3805 // _stream_exp has no default value.
3806 // _flow_exp has no default value.
3807 // _flow_threshold has no default value.
3808#line 2223 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3809 _stream_exp = omc_ConnectUtil_streamFlowExp(threadData, _element ,&_flow_exp);
3810#line 3810 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3811
3812#line 2224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3813 tmpMeta[0] = mmc_mk_box2(4, &DAE_Exp_RCONST__desc, mmc_mk_realmmc_mk_rcon(_flowThreshold));
3814#line 2224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3815 _flow_threshold = tmpMeta[0];
3816#line 3816 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3817
3818#line 2225 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3819 _exp = omc_Expression_expMul(threadData, omc_ConnectUtil_makePositiveMaxCall(threadData, _flow_exp, _flow_threshold), omc_ConnectUtil_makeInStreamCall(threadData, _stream_exp));
3820#line 3820 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3821 _return: OMC_LABEL_UNUSED__attribute__((unused))
3822 return _exp;
3823}
3824PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_sumOutside1(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold)
3825{
3826 modelica_real tmp1;
3827 modelica_metatype _exp = NULL((void*)0);
3828 tmp1 = mmc_unbox_real(_flowThreshold)mmc_prim_get_real(_flowThreshold);
3829 _exp = omc_ConnectUtil_sumOutside1(threadData, _element, tmp1);
3830 /* skip box _exp; DAE.Exp */
3831 return _exp;
3832}
3833
3834PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_flowExp(threadData_t *threadData, modelica_metatype _element)
3835{
3836 modelica_metatype _flowExp = NULL((void*)0);
3837 modelica_metatype _flow_cr = NULL((void*)0);
3838 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3839 MMC_SO()mmc_check_stackoverflow(threadData);
3840 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3841 // _flowExp has no default value.
3842 // _flow_cr has no default value.
3843#line 2209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3844 /* Pattern-matching assignment */
3845#line 2209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3846 tmpMeta[0] = _element;
3847#line 2209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3848 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
3849#line 2209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3850 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3851#line 2209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3852 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3853#line 2209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3854 if (optionNone(tmpMeta[2])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[2]) - 3)))) >> 10)) ? 1 : 0)
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3855#line 2209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3856 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
3857#line 2209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3858 _flow_cr = tmpMeta[3];
3859#line 3859 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3860
3861#line 2210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3862 _flowExp = omc_Expression_crefExp(threadData, _flow_cr);
3863#line 3863 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3864 _return: OMC_LABEL_UNUSED__attribute__((unused))
3865 return _flowExp;
3866}
3867
3868PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_streamFlowExp(threadData_t *threadData, modelica_metatype _element, modelica_metatype *out_flowExp)
3869{
3870 modelica_metatype _streamExp = NULL((void*)0);
3871 modelica_metatype _flowExp = NULL((void*)0);
3872 modelica_metatype _flow_cr = NULL((void*)0);
3873 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3874 MMC_SO()mmc_check_stackoverflow(threadData);
3875 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3876 // _streamExp has no default value.
3877 // _flowExp has no default value.
3878 // _flow_cr has no default value.
3879#line 2197 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3880 /* Pattern-matching assignment */
3881#line 2197 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3882 tmpMeta[0] = _element;
3883#line 2197 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3884 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
3885#line 2197 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3886 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3887#line 2197 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3888 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3889#line 2197 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3890 if (optionNone(tmpMeta[2])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[2]) - 3)))) >> 10)) ? 1 : 0)
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3891#line 2197 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3892 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
3893#line 2197 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3894 _flow_cr = tmpMeta[3];
3895#line 3895 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3896
3897#line 2198 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3898 _streamExp = omc_Expression_crefExp(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_element) - 3))
) + (2)))))
));
3899#line 3899 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3900
3901#line 2199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3902 _flowExp = omc_Expression_crefExp(threadData, _flow_cr);
3903#line 3903 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3904 _return: OMC_LABEL_UNUSED__attribute__((unused))
3905 if (out_flowExp) { *out_flowExp = _flowExp; }
3906 return _streamExp;
3907}
3908
3909PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_sumMap(threadData_t *threadData, modelica_metatype _elements, modelica_fnptr _func, modelica_real _flowThreshold)
3910{
3911 modelica_metatype _exp = NULL((void*)0);
3912 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3913 MMC_SO()mmc_check_stackoverflow(threadData);
3914 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3915 // _exp has no default value.
3916#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3917 {
3918#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3919 int tmp1;
3920#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3921 modelica_metatype _D_24tmpVar5;
3922#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3923 modelica_metatype _D_24tmpVar4;
3924#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3925 int tmp2;
3926#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3927 modelica_metatype _e_loopVar = 0;
3928#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3929 modelica_metatype _e;
3930#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3931 _e_loopVar = listReverse(_elements);
3932#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3933 tmp1 = 0; /* Expression.expAdd lacks default-value */
3934#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3935 while(1) {
3936#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3937 tmp2 = 1;
3938#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3939 if (!listEmpty(_e_loopVar)((*(mmc_uint_t*)((void*)((char*)(_e_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
3940#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3941 _e = MMC_CAR(_e_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_e_loopVar) - 3
))) + (1)))))
;
3942#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3943 _e_loopVar = MMC_CDR(_e_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_e_loopVar) - 3
))) + (2)))))
;
3944#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3945 tmp2--;
3946#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3947 }
3948#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3949 if (tmp2 == 0) {
3950#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3951 _D_24tmpVar4 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, 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)))))
), _e, mmc_mk_realmmc_mk_rcon(_flowThreshold)) : ((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, _e, mmc_mk_realmmc_mk_rcon(_flowThreshold));
3952#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3953 if(tmp1)
3954#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3955 {
3956#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3957 _D_24tmpVar5 = omc_Expression_expAdd(threadData, _D_24tmpVar4, _D_24tmpVar5);
3958#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3959 }
3960#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3961 else
3962#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3963 {
3964#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3965 _D_24tmpVar5 = _D_24tmpVar4;
3966#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3967 tmp1 = 1;
3968#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3969 }
3970#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3971 } else if (tmp2 == 1) {
3972#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3973 break;
3974#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3975 } else {
3976#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3977 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3978#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3979 }
3980#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3981 }
3982#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3983 if (!tmp1) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3984#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3985 tmpMeta[0] = _D_24tmpVar5;
3986#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3987 }
3988#line 2186 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
3989 _exp = tmpMeta[0];
3990#line 3990 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
3991 _return: OMC_LABEL_UNUSED__attribute__((unused))
3992 return _exp;
3993}
3994PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_sumMap(threadData_t *threadData, modelica_metatype _elements, modelica_fnptr _func, modelica_metatype _flowThreshold)
3995{
3996 modelica_real tmp1;
3997 modelica_metatype _exp = NULL((void*)0);
3998 tmp1 = mmc_unbox_real(_flowThreshold)mmc_prim_get_real(_flowThreshold);
3999 _exp = omc_ConnectUtil_sumMap(threadData, _elements, _func, tmp1);
4000 /* skip box _exp; DAE.Exp */
4001 return _exp;
4002}
4003
4004PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_streamSumEquationExp(threadData_t *threadData, modelica_metatype _outsideElements, modelica_metatype _insideElements, modelica_real _flowThreshold)
4005{
4006 modelica_metatype _sumExp = NULL((void*)0);
4007 modelica_metatype _outside_sum1 = NULL((void*)0);
4008 modelica_metatype _outside_sum2 = NULL((void*)0);
4009 modelica_metatype _inside_sum1 = NULL((void*)0);
4010 modelica_metatype _inside_sum2 = NULL((void*)0);
4011 modelica_metatype _res = NULL((void*)0);
4012 MMC_SO()mmc_check_stackoverflow(threadData);
4013 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4014 // _sumExp has no default value.
4015 // _outside_sum1 has no default value.
4016 // _outside_sum2 has no default value.
4017 // _inside_sum1 has no default value.
4018 // _inside_sum2 has no default value.
4019 // _res has no default value.
4020#line 2151 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4021 if(listEmpty(_outsideElements)((*(mmc_uint_t*)((void*)((char*)(_outsideElements) - 3))) == (
((0) << 10) + (((0) & 255) << 2)))
)
4022#line 2151 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4023 {
4024#line 2153 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4025 _inside_sum1 = omc_ConnectUtil_sumMap(threadData, _insideElements, boxvar_ConnectUtil_sumInside1((void*)((char*)(&(boxvar_lit_ConnectUtil_sumInside1).header
) + 3))
, _flowThreshold);
4026#line 4026 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4027
4028#line 2154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4029 _inside_sum2 = omc_ConnectUtil_sumMap(threadData, _insideElements, boxvar_ConnectUtil_sumInside2((void*)((char*)(&(boxvar_lit_ConnectUtil_sumInside2).header
) + 3))
, _flowThreshold);
4030#line 4030 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4031
4032#line 2155 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4033 _sumExp = omc_Expression_expDiv(threadData, _inside_sum1, _inside_sum2);
4034#line 4034 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4035 }
4036 else
4037 {
4038 if(listEmpty(_insideElements)((*(mmc_uint_t*)((void*)((char*)(_insideElements) - 3))) == (
((0) << 10) + (((0) & 255) << 2)))
)
4039 {
4040#line 2158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4041 _outside_sum1 = omc_ConnectUtil_sumMap(threadData, _outsideElements, boxvar_ConnectUtil_sumOutside1((void*)((char*)(&(boxvar_lit_ConnectUtil_sumOutside1).header
) + 3))
, _flowThreshold);
4042#line 4042 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4043
4044#line 2159 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4045 _outside_sum2 = omc_ConnectUtil_sumMap(threadData, _outsideElements, boxvar_ConnectUtil_sumOutside2((void*)((char*)(&(boxvar_lit_ConnectUtil_sumOutside2).header
) + 3))
, _flowThreshold);
4046#line 4046 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4047
4048#line 2160 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4049 _sumExp = omc_Expression_expDiv(threadData, _outside_sum1, _outside_sum2);
4050#line 4050 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4051 }
4052 else
4053 {
4054#line 2163 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4055 _outside_sum1 = omc_ConnectUtil_sumMap(threadData, _outsideElements, boxvar_ConnectUtil_sumOutside1((void*)((char*)(&(boxvar_lit_ConnectUtil_sumOutside1).header
) + 3))
, _flowThreshold);
4056#line 4056 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4057
4058#line 2164 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4059 _outside_sum2 = omc_ConnectUtil_sumMap(threadData, _outsideElements, boxvar_ConnectUtil_sumOutside2((void*)((char*)(&(boxvar_lit_ConnectUtil_sumOutside2).header
) + 3))
, _flowThreshold);
4060#line 4060 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4061
4062#line 2165 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4063 _inside_sum1 = omc_ConnectUtil_sumMap(threadData, _insideElements, boxvar_ConnectUtil_sumInside1((void*)((char*)(&(boxvar_lit_ConnectUtil_sumInside1).header
) + 3))
, _flowThreshold);
4064#line 4064 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4065
4066#line 2166 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4067 _inside_sum2 = omc_ConnectUtil_sumMap(threadData, _insideElements, boxvar_ConnectUtil_sumInside2((void*)((char*)(&(boxvar_lit_ConnectUtil_sumInside2).header
) + 3))
, _flowThreshold);
4068#line 4068 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4069
4070#line 2167 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4071 _sumExp = omc_Expression_expDiv(threadData, omc_Expression_expAdd(threadData, _outside_sum1, _inside_sum1), omc_Expression_expAdd(threadData, _outside_sum2, _inside_sum2));
4072#line 4072 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4073 }
4074 }
4075 _return: OMC_LABEL_UNUSED__attribute__((unused))
4076 return _sumExp;
4077}
4078PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_streamSumEquationExp(threadData_t *threadData, modelica_metatype _outsideElements, modelica_metatype _insideElements, modelica_metatype _flowThreshold)
4079{
4080 modelica_real tmp1;
4081 modelica_metatype _sumExp = NULL((void*)0);
4082 tmp1 = mmc_unbox_real(_flowThreshold)mmc_prim_get_real(_flowThreshold);
4083 _sumExp = omc_ConnectUtil_streamSumEquationExp(threadData, _outsideElements, _insideElements, tmp1);
4084 /* skip box _sumExp; DAE.Exp */
4085 return _sumExp;
4086}
4087
4088PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_streamEquationGeneral(threadData_t *threadData, modelica_metatype _outsideElements, modelica_metatype _insideElements, modelica_real _flowThreshold)
4089{
4090 modelica_metatype _DAE = NULL((void*)0);
4091 modelica_metatype _outside = NULL((void*)0);
4092 modelica_metatype _cref_exp = NULL((void*)0);
4093 modelica_metatype _res = NULL((void*)0);
4094 modelica_metatype _src = NULL((void*)0);
4095 modelica_metatype _dae = NULL((void*)0);
4096 modelica_metatype _name = NULL((void*)0);
4097 modelica_metatype _eql = NULL((void*)0);
4098 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
4099 MMC_SO()mmc_check_stackoverflow(threadData);
4100 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4101 // _DAE has no default value.
4102 // _outside has no default value.
4103 // _cref_exp has no default value.
4104 // _res has no default value.
4105 // _src has no default value.
4106 // _dae has no default value.
4107 // _name has no default value.
4108 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4109 _eql = tmpMeta[0];
4110#line 2122 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4111 {
4112#line 2122 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4113 modelica_metatype _e;
4114#line 2122 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4115 for (tmpMeta[1] = _outsideElements; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
4116#line 2122 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4117 {
4118#line 2122 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4119 _e = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
4120#line 2123 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4121 _cref_exp = omc_Expression_crefExp(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_e) - 3))) + (2
)))))
));
4122#line 4122 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4123
4124#line 2124 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4125 _outside = omc_ConnectUtil_removeStreamSetElement(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_e) - 3))) + (2
)))))
), _outsideElements);
4126#line 4126 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4127
4128#line 2125 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4129 _res = omc_ConnectUtil_streamSumEquationExp(threadData, _outside, _insideElements, _flowThreshold);
4130#line 4130 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4131
4132#line 2126 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4133 _src = omc_ElementSource_addAdditionalComment(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_e) - 3))) + (5
)))))
), _OMC_LIT74((void*)((char*)(&(_OMC_LIT_STRUCT74).header) + 3)));
4134#line 4134 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4135
4136#line 2127 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4137 tmpMeta[3] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _cref_exp, _res, _src);
4138#line 2127 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4139 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], _eql);
4140#line 2127 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4141 _eql = tmpMeta[2];
4142#line 4142 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4143 }
4144 }
4145
4146#line 2130 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4147 tmpMeta[1] = mmc_mk_box2(3, &DAE_DAElist_DAE__desc, _eql);
4148#line 2130 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4149 _DAE = tmpMeta[1];
4150#line 4150 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4151 _return: OMC_LABEL_UNUSED__attribute__((unused))
4152 return _DAE;
4153}
4154PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_streamEquationGeneral(threadData_t *threadData, modelica_metatype _outsideElements, modelica_metatype _insideElements, modelica_metatype _flowThreshold)
4155{
4156 modelica_real tmp1;
4157 modelica_metatype _DAE = NULL((void*)0);
4158 tmp1 = mmc_unbox_real(_flowThreshold)mmc_prim_get_real(_flowThreshold);
4159 _DAE = omc_ConnectUtil_streamEquationGeneral(threadData, _outsideElements, _insideElements, tmp1);
4160 /* skip box _DAE; DAE.DAElist */
4161 return _DAE;
4162}
4163
4164PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_isZeroFlow(threadData_t *threadData, modelica_metatype _element, modelica_string _attr)
4165{
4166 modelica_boolean _isZero;
4167 modelica_metatype _ty = NULL((void*)0);
4168 modelica_metatype _attr_oexp = NULL((void*)0);
4169 modelica_metatype _flow_exp = NULL((void*)0);
4170 modelica_metatype _attr_exp = NULL((void*)0);
4171 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4172 MMC_SO()mmc_check_stackoverflow(threadData);
4173 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4174 // _isZero has no default value.
4175 // _ty has no default value.
4176 // _attr_oexp has no default value.
4177 // _flow_exp has no default value.
4178 // _attr_exp has no default value.
4179#line 2097 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4180 _flow_exp = omc_ConnectUtil_flowExp(threadData, _element);
4181#line 4181 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4182
4183#line 2098 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4184 _ty = omc_Expression_typeof(threadData, _flow_exp);
4185#line 4185 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4186
4187#line 2099 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4188 _attr_oexp = omc_Types_lookupAttributeExp(threadData, omc_Types_getAttributes(threadData, _ty), _attr);
4189#line 4189 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4190
4191#line 2100 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4192 if(isSome(_attr_oexp)(0==((((((*(mmc_uint_t*)((void*)((char*)(_attr_oexp) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(_attr_oexp)
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(_attr_oexp) - 3)))) >> 10)) ? 0 : 1)
)
4193#line 2100 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4194 {
4195#line 2101 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4196 /* Pattern-matching assignment */
4197#line 2101 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4198 tmpMeta[0] = _attr_oexp;
4199#line 2101 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4200 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);};
4201#line 2101 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4202 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4203#line 2101 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4204 _attr_exp = tmpMeta[1];
4205#line 4205 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4206
4207#line 2102 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4208 _isZero = omc_Expression_isZero(threadData, _attr_exp);
4209#line 4209 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4210 }
4211 else
4212 {
4213#line 2104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4214 _isZero = 0;
4215#line 4215 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4216 }
4217 _return: OMC_LABEL_UNUSED__attribute__((unused))
4218 return _isZero;
4219}
4220PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_isZeroFlow(threadData_t *threadData, modelica_metatype _element, modelica_metatype _attr)
4221{
4222 modelica_boolean _isZero;
4223 modelica_metatype out_isZero;
4224 _isZero = omc_ConnectUtil_isZeroFlow(threadData, _element, _attr);
4225 out_isZero = mmc_mk_icon(_isZero);
4226 return out_isZero;
4227}
4228
4229PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_isZeroFlowMinMax(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _element)
4230{
4231 modelica_boolean _isZero;
4232 MMC_SO()mmc_check_stackoverflow(threadData);
4233 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4234 // _isZero has no default value.
4235#line 2078 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4236 if(omc_ConnectUtil_compareCrefStreamSet(threadData, _streamCref, _element))
4237#line 2078 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4238 {
4239#line 2079 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4240 _isZero = 0;
4241#line 4241 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4242 }
4243 else
4244 {
4245 if(omc_ConnectUtil_isOutsideElement(threadData, _element))
4246 {
4247#line 2081 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4248 _isZero = omc_ConnectUtil_isZeroFlow(threadData, _element, _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)));
4249#line 4249 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4250 }
4251 else
4252 {
4253#line 2083 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4254 _isZero = omc_ConnectUtil_isZeroFlow(threadData, _element, _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)));
4255#line 4255 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4256 }
4257 }
4258 _return: OMC_LABEL_UNUSED__attribute__((unused))
4259 return _isZero;
4260}
4261PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_isZeroFlowMinMax(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _element)
4262{
4263 modelica_boolean _isZero;
4264 modelica_metatype out_isZero;
4265 _isZero = omc_ConnectUtil_isZeroFlowMinMax(threadData, _streamCref, _element);
4266 out_isZero = mmc_mk_icon(_isZero);
4267 return out_isZero;
4268}
4269
4270PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_isOutsideElement(threadData_t *threadData, modelica_metatype _element)
4271{
4272 modelica_boolean _isOutside;
4273 modelica_boolean tmp1 = 0;
4274 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
4275 MMC_SO()mmc_check_stackoverflow(threadData);
4276 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4277 // _isOutside has no default value.
4278#line 4278 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4279 { /* match expression */
4280 modelica_metatype tmp4_1;
4281 tmp4_1 = _element;
4282 {
4283 volatile mmc_switch_type tmp4;
4284 int tmp5;
4285 tmp4 = 0;
4286 for (; tmp4 < 2; tmp4++) {
4287 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4288 case 0: {
4289 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
4290 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((0 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4291
4292 /* Pattern matching succeeded */
4293#line 2067 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4294 tmp1 = 1;
4295#line 4295 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4296 goto tmp3_done;
4297 }
4298 case 1: {
4299
4300 /* Pattern matching succeeded */
4301#line 2068 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4302 tmp1 = 0;
4303#line 4303 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4304 goto tmp3_done;
4305 }
4306 }
4307 goto tmp3_end;
4308 tmp3_end: ;
4309 }
4310 goto goto_2;
4311 goto_2:;
4312 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4313 goto tmp3_done;
4314 tmp3_done:;
4315 }
4316 }
4317 _isOutside = tmp1;
4318 _return: OMC_LABEL_UNUSED__attribute__((unused))
4319 return _isOutside;
4320}
4321PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_isOutsideElement(threadData_t *threadData, modelica_metatype _element)
4322{
4323 modelica_boolean _isOutside;
4324 modelica_metatype out_isOutside;
4325 _isOutside = omc_ConnectUtil_isOutsideElement(threadData, _element);
4326 out_isOutside = mmc_mk_icon(_isOutside);
4327 return out_isOutside;
4328}
4329
4330PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_generateStreamEquations(threadData_t *threadData, modelica_metatype _elements, modelica_real _flowThreshold)
4331{
4332 modelica_metatype _DAE = NULL((void*)0);
4333 modelica_metatype tmpMeta[11] __attribute__((unused)) = {0};
4334 MMC_SO()mmc_check_stackoverflow(threadData);
4335 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4336 // _DAE has no default value.
4337#line 4337 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4338 { /* match expression */
4339 modelica_metatype tmp3_1;
4340 tmp3_1 = _elements;
4341 {
4342 modelica_metatype _cr1 = NULL((void*)0);
4343 modelica_metatype _cr2 = NULL((void*)0);
4344 modelica_metatype _src1 = NULL((void*)0);
4345 modelica_metatype _src2 = NULL((void*)0);
4346 modelica_metatype _src = NULL((void*)0);
4347 modelica_metatype _cref1 = NULL((void*)0);
4348 modelica_metatype _cref2 = NULL((void*)0);
4349 modelica_metatype _e1 = NULL((void*)0);
4350 modelica_metatype _e2 = NULL((void*)0);
4351 modelica_metatype _inside = NULL((void*)0);
4352 modelica_metatype _outside = NULL((void*)0);
4353 volatile mmc_switch_type tmp3;
4354 int tmp4;
4355 // _cr1 has no default value.
4356 // _cr2 has no default value.
4357 // _src1 has no default value.
4358 // _src2 has no default value.
4359 // _src has no default value.
4360 // _cref1 has no default value.
4361 // _cref2 has no default value.
4362 // _e1 has no default value.
4363 // _e2 has no default value.
4364 // _inside has no default value.
4365 // _outside has no default value.
4366 tmp3 = 0;
4367 for (; tmp3 < 5; tmp3++) {
4368 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4369 case 0: {
4370 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4371 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
4372 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4373 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
4374 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((0 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
4375 if (!listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4376 /* Pattern matching succeeded */
4377#line 2014 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4378 tmpMeta[0] = _OMC_LIT75((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3));
4379#line 4379 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4380 goto tmp2_done;
4381 }
4382 case 1: {
4383 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4384 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
4385 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4386 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
4387 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((0 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
4388 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4389 tmpMeta[4] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
4390 tmpMeta[5] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4391 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (3)))))
;
4392 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[6],0,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3)))==(((0 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
4393 if (!listEmpty(tmpMeta[5])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4394 /* Pattern matching succeeded */
4395#line 2019 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4396 tmpMeta[0] = _OMC_LIT75((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3));
4397#line 4397 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4398 goto tmp2_done;
4399 }
4400 case 2: {
4401 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4402 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
4403 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4404 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
4405 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
4406 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],1,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))==(((0 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
4407 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
4408 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4409 tmpMeta[6] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
4410 tmpMeta[7] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4411 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (2)))))
;
4412 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (3)))))
;
4413 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[9],1,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[9]) - 3)))==(((0 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
4414 tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (5)))))
;
4415 if (!listEmpty(tmpMeta[7])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4416 _cr1 = tmpMeta[3];
4417 _src1 = tmpMeta[5];
4418 _cr2 = tmpMeta[8];
4419 _src2 = tmpMeta[10];
4420 /* Pattern matching succeeded */
4421#line 2027 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4422 _cref1 = omc_Expression_crefExp(threadData, _cr1);
4423#line 4423 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4424
4425#line 2028 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4426 _cref2 = omc_Expression_crefExp(threadData, _cr2);
4427#line 4427 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4428
4429#line 2029 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4430 _e1 = omc_ConnectUtil_makeInStreamCall(threadData, _cref2);
4431#line 4431 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4432
4433#line 2030 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4434 _e2 = omc_ConnectUtil_makeInStreamCall(threadData, _cref1);
4435#line 4435 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4436
4437#line 2031 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4438 _src = omc_ElementSource_mergeSources(threadData, _src1, _src2);
4439#line 4439 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4440#line 2032 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4441 tmpMeta[2] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _cref1, _e1, _src);
4442#line 2032 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4443 tmpMeta[3] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _cref2, _e2, _src);
4444#line 2032 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4445 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
4446#line 2032 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4447 tmpMeta[4] = mmc_mk_box2(3, &DAE_DAElist_DAE__desc, tmpMeta[1]);
4448#line 2032 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4449 tmpMeta[0] = tmpMeta[4];
4450#line 4450 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4451 goto tmp2_done;
4452 }
4453 case 3: {
4454 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4455 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
4456 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4457 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
4458 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
4459 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4460 tmpMeta[5] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
4461 tmpMeta[6] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4462 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (2)))))
;
4463 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (5)))))
;
4464 if (!listEmpty(tmpMeta[6])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
4465 _cr1 = tmpMeta[3];
4466 _src1 = tmpMeta[4];
4467 _cr2 = tmpMeta[7];
4468 _src2 = tmpMeta[8];
4469 /* Pattern matching succeeded */
4470#line 2043 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4471 _src = omc_ElementSource_mergeSources(threadData, _src1, _src2);
4472#line 4472 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4473
4474#line 2044 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4475 _e1 = omc_Expression_crefExp(threadData, _cr1);
4476#line 4476 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4477
4478#line 2045 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4479 _e2 = omc_Expression_crefExp(threadData, _cr2);
4480#line 4480 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4481#line 2046 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4482 tmpMeta[2] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _e1, _e2, _src);
4483#line 2046 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4484 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
4485#line 2046 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4486 tmpMeta[3] = mmc_mk_box2(3, &DAE_DAElist_DAE__desc, tmpMeta[1]);
4487#line 2046 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4488 tmpMeta[0] = tmpMeta[3];
4489#line 4489 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4490 goto tmp2_done;
4491 }
4492 case 4: {
4493
4494 /* Pattern matching succeeded */
4495#line 2053 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4496 _outside = omc_List_splitOnTrue(threadData, _elements, boxvar_ConnectUtil_isOutsideElement((void*)((char*)(&(boxvar_lit_ConnectUtil_isOutsideElement
).header) + 3))
,&_inside);
4497#line 4497 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4498#line 2054 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4499 tmpMeta[0] = omc_ConnectUtil_streamEquationGeneral(threadData, _outside, _inside, _flowThreshold);
4500#line 4500 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4501 goto tmp2_done;
4502 }
4503 }
4504 goto tmp2_end;
4505 tmp2_end: ;
4506 }
4507 goto goto_1;
4508 goto_1:;
4509 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4510 goto tmp2_done;
4511 tmp2_done:;
4512 }
4513 }
4514 _DAE = tmpMeta[0];
4515 _return: OMC_LABEL_UNUSED__attribute__((unused))
4516 return _DAE;
4517}
4518PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_generateStreamEquations(threadData_t *threadData, modelica_metatype _elements, modelica_metatype _flowThreshold)
4519{
4520 modelica_real tmp1;
4521 modelica_metatype _DAE = NULL((void*)0);
4522 tmp1 = mmc_unbox_real(_flowThreshold)mmc_prim_get_real(_flowThreshold);
4523 _DAE = omc_ConnectUtil_generateStreamEquations(threadData, _elements, tmp1);
4524 /* skip box _DAE; DAE.DAElist */
4525 return _DAE;
4526}
4527
4528PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_increaseRefCount(threadData_t *threadData, modelica_integer _amount, modelica_metatype _D_24in_node)
4529{
4530 modelica_metatype _node = NULL((void*)0);
4531 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
4532 MMC_SO()mmc_check_stackoverflow(threadData);
4533 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4534 _node = _D_24in_node;
4535#line 4535 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4536 { /* match expression */
4537 modelica_metatype tmp3_1;
4538 tmp3_1 = _node;
4539 {
4540 volatile mmc_switch_type tmp3;
4541 int tmp4;
4542 tmp3 = 0;
4543 for (; tmp3 < 2; tmp3++) {
4544 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4545 case 0: {
4546 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
4547
4548 /* Pattern matching succeeded */
4549#line 1986 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4550 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(6))((void*)((char*)(mmc_alloc_words(6)) + 3));
4551#line 1986 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4552 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_node)((void*)((char*)(_node) - 3)), 6*sizeof(modelica_metatype));
4553#line 1986 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4554 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[5] = mmc_mk_integermmc_mk_icon(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_node), 5))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_node) - 3))) + (5)))))))) >> 1)
+ _amount);
4555#line 1986 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4556 _node = tmpMeta[0];
4557#line 4557 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4558#line 4558 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4559 goto tmp2_done;
4560 }
4561 case 1: {
4562 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
4563
4564 /* Pattern matching succeeded */
4565#line 1992 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4566 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
4567#line 1992 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4568 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_node)((void*)((char*)(_node) - 3)), 7*sizeof(modelica_metatype));
4569#line 1992 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4570 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[6] = mmc_mk_integermmc_mk_icon(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_node), 6))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_node) - 3))) + (6)))))))) >> 1)
+ _amount);
4571#line 1992 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4572 _node = tmpMeta[0];
4573#line 4573 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4574#line 4574 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4575 goto tmp2_done;
4576 }
4577 }
4578 goto tmp2_end;
4579 tmp2_end: ;
4580 }
4581 goto goto_1;
4582 goto_1:;
4583 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4584 goto tmp2_done;
4585 tmp2_done:;
4586 }
4587 }
4588 ;
4589 _return: OMC_LABEL_UNUSED__attribute__((unused))
4590 return _node;
4591}
4592PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_increaseRefCount(threadData_t *threadData, modelica_metatype _amount, modelica_metatype _D_24in_node)
4593{
4594 modelica_integer tmp1;
4595 modelica_metatype _node = NULL((void*)0);
4596 tmp1 = mmc_unbox_integer(_amount)(((mmc_sint_t) (_amount)) >> 1);
4597 _node = omc_ConnectUtil_increaseRefCount(threadData, tmp1, _D_24in_node);
4598 /* skip box _node; DAE.Connect.SetTrieNode */
4599 return _node;
4600}
4601
4602DLLExport
4603modelica_metatype omc_ConnectUtil_increaseConnectRefCount2(threadData_t *threadData, modelica_metatype _crefs, modelica_metatype _D_24in_sets)
4604{
4605 modelica_metatype _sets = NULL((void*)0);
4606 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4607 MMC_SO()mmc_check_stackoverflow(threadData);
4608 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4609 _sets = _D_24in_sets;
4610#line 1974 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4611 {
4612#line 1974 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4613 modelica_metatype _cr;
4614#line 1974 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4615 for (tmpMeta[0] = _crefs; !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)))))
)
4616#line 1974 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4617 {
4618#line 1974 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4619 _cr = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4620#line 1975 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4621 _sets = omc_ConnectUtil_setTrieUpdate(threadData, _cr, mmc_mk_integermmc_mk_icon(((modelica_integer) 1)), _sets, boxvar_ConnectUtil_increaseRefCount((void*)((char*)(&(boxvar_lit_ConnectUtil_increaseRefCount
).header) + 3))
);
4622#line 4622 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4623 }
4624 }
4625 _return: OMC_LABEL_UNUSED__attribute__((unused))
4626 return _sets;
4627}
4628
4629DLLExport
4630modelica_metatype omc_ConnectUtil_increaseConnectRefCount(threadData_t *threadData, modelica_metatype _lhsCref, modelica_metatype _rhsCref, modelica_metatype _D_24in_sets)
4631{
4632 modelica_metatype _sets = NULL((void*)0);
4633 modelica_metatype _crefs = NULL((void*)0);
4634 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
4635 MMC_SO()mmc_check_stackoverflow(threadData);
4636 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4637 _sets = _D_24in_sets;
4638 // _crefs has no default value.
4639#line 1962 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4640 if(omc_System_getUsesCardinality(threadData))
4641#line 1962 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4642 {
4643#line 1963 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4644 _crefs = omc_ComponentReference_expandCref(threadData, _lhsCref, 0);
4645#line 4645 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4646
4647#line 1964 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4648 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(6))((void*)((char*)(mmc_alloc_words(6)) + 3));
4649#line 1964 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4650 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_sets)((void*)((char*)(_sets) - 3)), 6*sizeof(modelica_metatype));
4651#line 1964 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4652 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[2] = omc_ConnectUtil_increaseConnectRefCount2(threadData, _crefs, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_sets), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_sets) - 3))) +
(2)))))
));
4653#line 1964 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4654 _sets = tmpMeta[0];
4655#line 4655 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4656
4657#line 1965 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4658 _crefs = omc_ComponentReference_expandCref(threadData, _rhsCref, 0);
4659#line 4659 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4660
4661#line 1966 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4662 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(6))((void*)((char*)(mmc_alloc_words(6)) + 3));
4663#line 1966 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4664 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_sets)((void*)((char*)(_sets) - 3)), 6*sizeof(modelica_metatype));
4665#line 1966 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4666 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[2] = omc_ConnectUtil_increaseConnectRefCount2(threadData, _crefs, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_sets), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_sets) - 3))) +
(2)))))
));
4667#line 1966 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4668 _sets = tmpMeta[0];
4669#line 4669 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4670 }
4671 _return: OMC_LABEL_UNUSED__attribute__((unused))
4672 return _sets;
4673}
4674
4675PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_makeFlowExp(threadData_t *threadData, modelica_metatype _element)
4676{
4677 modelica_metatype _exp = NULL((void*)0);
4678 MMC_SO()mmc_check_stackoverflow(threadData);
4679 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4680 // _exp has no default value.
4681#line 1948 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4682 _exp = omc_Expression_crefExp(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_element) - 3))
) + (2)))))
));
4683#line 4683 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4684
4685#line 1950 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4686 if(omc_ConnectUtil_isOutsideElement(threadData, _element))
4687#line 1950 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4688 {
4689#line 1951 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4690 _exp = omc_Expression_negateReal(threadData, _exp);
4691#line 4691 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4692 }
4693 _return: OMC_LABEL_UNUSED__attribute__((unused))
4694 return _exp;
4695}
4696
4697PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_generateFlowEquations(threadData_t *threadData, modelica_metatype _elements)
4698{
4699 modelica_metatype _DAE = NULL((void*)0);
4700 modelica_metatype _sum = NULL((void*)0);
4701 modelica_metatype _src = NULL((void*)0);
4702 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4703 MMC_SO()mmc_check_stackoverflow(threadData);
4704 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4705 // _DAE has no default value.
4706 // _sum has no default value.
4707 // _src has no default value.
4708#line 1931 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4709 _sum = omc_ConnectUtil_makeFlowExp(threadData, listHead(_elements)boxptr_listHead(threadData,_elements));
4710#line 4710 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4711
4712#line 1932 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4713 _src = omc_ConnectUtil_getElementSource(threadData, listHead(_elements)boxptr_listHead(threadData,_elements));
4714#line 4714 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4715
4716#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4717 {
4718#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4719 modelica_metatype _e;
4720#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4721 for (tmpMeta[0] = listRest(_elements)boxptr_listRest(threadData,_elements); !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)))))
)
4722#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4723 {
4724#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4725 _e = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4726#line 1935 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4727 _sum = omc_Expression_makeRealAdd(threadData, _sum, omc_ConnectUtil_makeFlowExp(threadData, _e));
4728#line 4728 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4729
4730#line 1936 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4731 _src = omc_ElementSource_mergeSources(threadData, _src, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_e) - 3))) + (5
)))))
));
4732#line 4732 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4733 }
4734 }
4735
4736#line 1939 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4737 tmpMeta[1] = mmc_mk_box4(6, &DAE_Element_EQUATION__desc, _sum, _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)), _src);
4738#line 1939 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4739 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
4740#line 1939 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4741 tmpMeta[2] = mmc_mk_box2(3, &DAE_DAElist_DAE__desc, tmpMeta[0]);
4742#line 1939 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4743 _DAE = tmpMeta[2];
4744#line 4744 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4745 _return: OMC_LABEL_UNUSED__attribute__((unused))
4746 return _DAE;
4747}
4748
4749PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_shouldFlipEquEquation(threadData_t *threadData, modelica_metatype _lhsCref, modelica_metatype _lhsSource)
4750{
4751 modelica_boolean _shouldFlip;
4752 modelica_boolean tmp1 = 0;
4753 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
4754 MMC_SO()mmc_check_stackoverflow(threadData);
4755 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4756 // _shouldFlip has no default value.
4757#line 4757 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4758 { /* match expression */
4759 modelica_metatype tmp4_1;
4760 tmp4_1 = _lhsSource;
4761 {
4762 modelica_metatype _lhs = NULL((void*)0);
4763 volatile mmc_switch_type tmp4;
4764 int tmp5;
4765 // _lhs has no default value.
4766 tmp4 = 0;
4767 for (; tmp4 < 2; tmp4++) {
4768 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4769 case 0: {
4770 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
4771 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4772 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4773 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4774 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
4775
4776 _lhs = tmpMeta[3];
4777 /* Pattern matching succeeded */
4778#line 1913 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4779 tmp1 = (!omc_ComponentReference_crefPrefixOf(threadData, _lhs, _lhsCref));
4780#line 4780 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4781 goto tmp3_done;
4782 }
4783 case 1: {
4784
4785 /* Pattern matching succeeded */
4786#line 1915 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4787 tmp1 = 0;
4788#line 4788 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4789 goto tmp3_done;
4790 }
4791 }
4792 goto tmp3_end;
4793 tmp3_end: ;
4794 }
4795 goto goto_2;
4796 goto_2:;
4797 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4798 goto tmp3_done;
4799 tmp3_done:;
4800 }
4801 }
4802 _shouldFlip = tmp1;
4803 _return: OMC_LABEL_UNUSED__attribute__((unused))
4804 return _shouldFlip;
4805}
4806PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_shouldFlipEquEquation(threadData_t *threadData, modelica_metatype _lhsCref, modelica_metatype _lhsSource)
4807{
4808 modelica_boolean _shouldFlip;
4809 modelica_metatype out_shouldFlip;
4810 _shouldFlip = omc_ConnectUtil_shouldFlipEquEquation(threadData, _lhsCref, _lhsSource);
4811 out_shouldFlip = mmc_mk_icon(_shouldFlip);
4812 return out_shouldFlip;
4813}
4814
4815PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_generateEquEquations(threadData_t *threadData, modelica_metatype _elements)
4816{
4817 modelica_metatype _DAE = NULL((void*)0);
4818 modelica_metatype _eql = NULL((void*)0);
4819 modelica_metatype _e1 = NULL((void*)0);
4820 modelica_metatype _src = NULL((void*)0);
4821 modelica_metatype _x_src = NULL((void*)0);
4822 modelica_metatype _y_src = NULL((void*)0);
4823 modelica_metatype _x = NULL((void*)0);
4824 modelica_metatype _y = NULL((void*)0);
4825 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
4826 MMC_SO()mmc_check_stackoverflow(threadData);
4827 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4828 _DAE = _OMC_LIT75((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3));
4829 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4830 _eql = tmpMeta[0];
4831 // _e1 has no default value.
4832 // _src has no default value.
4833 // _x_src has no default value.
4834 // _y_src has no default value.
4835 // _x has no default value.
4836 // _y has no default value.
4837#line 1873 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4838 if(listEmpty(_elements)((*(mmc_uint_t*)((void*)((char*)(_elements) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
)
4839#line 1873 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4840 {
4841#line 1874 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4842 goto _return;
4843#line 4843 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4844 }
4845
4846#line 1877 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4847 _e1 = listHead(_elements)boxptr_listHead(threadData,_elements);
4848#line 4848 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4849
4850#line 1879 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4851 if(omc_Config_orderConnections(threadData))
4852#line 1879 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4853 {
4854#line 1880 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4855 {
4856#line 1880 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4857 modelica_metatype _e2;
4858#line 1880 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4859 for (tmpMeta[1] = listRest(_elements)boxptr_listRest(threadData,_elements); !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
4860#line 1880 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4861 {
4862#line 1880 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4863 _e2 = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
4864#line 1881 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4865 _src = omc_ElementSource_mergeSources(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_e1) - 3))) + (
5)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e2), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_e2) - 3))) + (
5)))))
));
4866#line 4866 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4867
4868#line 1882 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4869 tmpMeta[2] = mmc_mk_box2(0, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_e1) - 3))) + (
2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_e2) - 3))) + (
2)))))
));
4870#line 1882 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4871 _src = omc_ElementSource_addElementSourceConnect(threadData, _src, tmpMeta[2]);
4872#line 4872 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4873
4874#line 1883 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4875 tmpMeta[3] = mmc_mk_box4(7, &DAE_Element_EQUEQUATION__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_e1) - 3))) + (
2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_e2) - 3))) + (
2)))))
), _src);
4876#line 1883 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4877 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], _eql);
4878#line 1883 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4879 _eql = tmpMeta[2];
4880#line 4880 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4881 }
4882 }
4883 }
4884 else
4885 {
4886#line 1886 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4887 {
4888#line 1886 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4889 modelica_metatype _e2;
4890#line 1886 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4891 for (tmpMeta[1] = listRest(_elements)boxptr_listRest(threadData,_elements); !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
4892#line 1886 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4893 {
4894#line 1886 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4895 _e2 = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
4896#line 1887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4897 _x = omc_Util_swap(threadData, omc_ConnectUtil_shouldFlipEquEquation(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_e1) - 3))) + (
2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_e1) - 3))) + (
5)))))
)), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_e1) - 3))) + (
2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_e2) - 3))) + (
2)))))
) ,&_y);
4898#line 4898 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4899
4900#line 1888 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4901 _src = omc_ElementSource_mergeSources(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_e1) - 3))) + (
5)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e2), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_e2) - 3))) + (
5)))))
));
4902#line 4902 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4903
4904#line 1889 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4905 tmpMeta[2] = mmc_mk_box2(0, _x, _y);
4906#line 1889 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4907 _src = omc_ElementSource_addElementSourceConnect(threadData, _src, tmpMeta[2]);
4908#line 4908 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4909
4910#line 1890 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4911 tmpMeta[3] = mmc_mk_box4(7, &DAE_Element_EQUEQUATION__desc, _x, _y, _src);
4912#line 1890 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4913 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], _eql);
4914#line 1890 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4915 _eql = tmpMeta[2];
4916#line 4916 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4917
4918#line 1891 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4919 _e1 = _e2;
4920#line 4920 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4921 }
4922 }
4923 }
4924
4925#line 1895 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4926 tmpMeta[1] = mmc_mk_box2(3, &DAE_DAElist_DAE__desc, listReverse(_eql));
4927#line 1895 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4928 _DAE = tmpMeta[1];
4929#line 4929 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4930 _return: OMC_LABEL_UNUSED__attribute__((unused))
4931 return _DAE;
4932}
4933
4934PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_equationsDispatch(threadData_t *threadData, modelica_metatype _sets, modelica_metatype _connected, modelica_metatype _broken)
4935{
4936 modelica_metatype _DAE = NULL((void*)0);
4937 modelica_metatype _eql = NULL((void*)0);
4938 modelica_metatype _eqll = NULL((void*)0);
4939 modelica_real _flowThreshold;
4940 modelica_metatype _dae = NULL((void*)0);
4941 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
4942 MMC_SO()mmc_check_stackoverflow(threadData);
4943 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4944 _DAE = _OMC_LIT75((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3));
4945 // _eql has no default value.
4946 // _eqll has no default value.
4947 _flowThreshold = omc_Flags_getConfigReal(threadData, _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)));
4948 // _dae has no default value.
4949#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4950 {
4951#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4952 modelica_metatype _set;
4953#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4954 for (tmpMeta[0] = _sets; !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)))))
)
4955#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4956 {
4957#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4958 _set = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4959#line 4959 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4960 { /* match expression */
4961 modelica_metatype tmp3_1;
4962 tmp3_1 = _set;
4963 {
4964 volatile mmc_switch_type tmp3;
4965 int tmp4;
4966 tmp3 = 0;
4967 for (; tmp3 < 6; tmp3++) {
4968 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4969 case 0: {
4970 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
4971
4972 /* Pattern matching succeeded */
4973#line 1821 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4974 tmpMeta[1] = _DAE;
4975#line 4975 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4976 goto tmp2_done;
4977 }
4978 case 1: {
4979 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
4980 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4981 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((0 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
4982
4983 /* Pattern matching succeeded */
4984#line 1826 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4985 _eqll = omc_ConnectionGraph_removeBrokenConnects(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_set), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_set) - 3))) + (
3)))))
), _connected, _broken);
4986#line 4986 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
4987
4988#line 1827 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4989 {
4990#line 1827 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4991 modelica_metatype _eql;
4992#line 1827 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4993 for (tmpMeta[2] = _eqll; !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)))))
)
4994#line 1827 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4995 {
4996#line 1827 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4997 _eql = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
4998#line 1828 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
4999 _DAE = omc_DAEUtil_joinDaes(threadData, omc_ConnectUtil_generateEquEquations(threadData, _eql), _DAE);
5000#line 5000 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5001 }
5002 }
5003#line 1830 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5004 tmpMeta[1] = _DAE;
5005#line 5005 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5006 goto tmp2_done;
5007 }
5008 case 2: {
5009 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5010 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5011 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((0 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
5012 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
5013 _eql = tmpMeta[3];
5014 /* Pattern matching succeeded */
5015#line 1834 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5016 tmpMeta[1] = omc_DAEUtil_joinDaes(threadData, omc_ConnectUtil_generateFlowEquations(threadData, _eql), _DAE);
5017#line 5017 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5018 goto tmp2_done;
5019 }
5020 case 3: {
5021 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5022 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5023 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],2,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
5024 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
5025 _eql = tmpMeta[3];
5026 /* Pattern matching succeeded */
5027#line 1837 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5028 tmpMeta[1] = omc_DAEUtil_joinDaes(threadData, omc_ConnectUtil_generateStreamEquations(threadData, _eql, _flowThreshold), _DAE);
5029#line 5029 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5030 goto tmp2_done;
5031 }
5032 case 4: {
5033 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5034 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5035 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],3,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((0 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
5036
5037 /* Pattern matching succeeded */
5038#line 1842 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5039 omc_Error_addMessage(threadData, _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)), _OMC_LIT80((void*)((char*)(&(_OMC_LIT_STRUCT80).header) + 3)));
5040#line 5040 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5041#line 1844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5042 goto goto_1;
5043#line 5043 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5044 goto tmp2_done;
5045 }
5046 case 5: {
5047
5048 /* Pattern matching succeeded */
5049#line 1849 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5050 omc_Error_addMessage(threadData, _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)), _OMC_LIT82((void*)((char*)(&(_OMC_LIT_STRUCT82).header) + 3)));
5051#line 5051 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5052#line 1851 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5053 goto goto_1;
5054#line 5054 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5055 goto tmp2_done;
5056 }
5057 }
5058 goto tmp2_end;
5059 tmp2_end: ;
5060 }
5061 goto goto_1;
5062 goto_1:;
5063 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5064 goto tmp2_done;
5065 tmp2_done:;
5066 }
5067 }
5068 _DAE = tmpMeta[1];
5069 }
5070 }
5071 _return: OMC_LABEL_UNUSED__attribute__((unused))
5072 return _DAE;
5073}
5074
5075PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setArrayGet(threadData_t *threadData, modelica_metatype _setArray, modelica_integer _index)
5076{
5077 modelica_metatype _set = NULL((void*)0);
5078 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
5079 MMC_SO()mmc_check_stackoverflow(threadData);
5080 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5081 // _set has no default value.
5082#line 1797 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5083 _set = arrayGet(_setArray,_index)nobox_arrayGet(threadData,_setArray,_index) /* DAE.ASUB */;
5084#line 5084 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5085
5086#line 5086 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5087 { /* match expression */
5088 modelica_metatype tmp3_1;
5089 tmp3_1 = _set;
5090 {
5091 volatile mmc_switch_type tmp3;
5092 int tmp4;
5093 tmp3 = 0;
5094 for (; tmp3 < 2; tmp3++) {
5095 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5096 case 0: {
5097 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5098
5099 /* Pattern matching succeeded */
5100#line 1800 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5101 tmpMeta[0] = _set;
5102#line 5102 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5103 goto tmp2_done;
5104 }
5105 case 1: {
5106 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
5107
5108 /* Pattern matching succeeded */
5109#line 1801 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5110 /* Tail recursive call */
5111#line 1801 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5112 _index = mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_set), 2))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_set) - 3))) + (2)))))))) >> 1)
;
5113#line 1801 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5114 goto _tailrecursive;
5115#line 1801 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5116 /* TODO: Make sure any eventual dead code below is never generated */
5117#line 5117 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5118 goto tmp2_done;
5119 }
5120 }
5121 goto tmp2_end;
5122 tmp2_end: ;
5123 }
5124 goto goto_1;
5125 goto_1:;
5126 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5127 goto tmp2_done;
5128 tmp2_done:;
5129 }
5130 }
5131 _set = tmpMeta[0];
5132 _return: OMC_LABEL_UNUSED__attribute__((unused))
5133 return _set;
5134}
5135PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_setArrayGet(threadData_t *threadData, modelica_metatype _setArray, modelica_metatype _index)
5136{
5137 modelica_integer tmp1;
5138 modelica_metatype _set = NULL((void*)0);
5139 tmp1 = mmc_unbox_integer(_index)(((mmc_sint_t) (_index)) >> 1);
5140 _set = omc_ConnectUtil_setArrayGet(threadData, _setArray, tmp1);
5141 /* skip box _set; DAE.Connect.Set */
5142 return _set;
5143}
5144
5145PROTECTED_FUNCTION_STATIC modelica_boolean omc_ConnectUtil_equSetElementLess(threadData_t *threadData, modelica_metatype _element1, modelica_metatype _element2)
5146{
5147 modelica_boolean _isLess;
5148 MMC_SO()mmc_check_stackoverflow(threadData);
5149 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5150 // _isLess has no default value.
5151#line 1788 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5152 _isLess = omc_ComponentReference_crefSortFunc(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_element2) - 3)
)) + (2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_element1) - 3)
)) + (2)))))
));
5153#line 5153 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5154 _return: OMC_LABEL_UNUSED__attribute__((unused))
5155 return _isLess;
5156}
5157PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_ConnectUtil_equSetElementLess(threadData_t *threadData, modelica_metatype _element1, modelica_metatype _element2)
5158{
5159 modelica_boolean _isLess;
5160 modelica_metatype out_isLess;
5161 _isLess = omc_ConnectUtil_equSetElementLess(threadData, _element1, _element2);
5162 out_isLess = mmc_mk_icon(_isLess);
5163 return out_isLess;
5164}
5165
5166PROTECTED_FUNCTION_STATIC modelica_metatype omc_ConnectUtil_setArrayUpdate(threadData_t *threadData, modelica_metatype _D_24in_sets, modelica_integer _index, modelica_metatype _element)
5167{
5168 modelica_metatype _sets = NULL((void*)0);
5169 modelica_metatype _set = NULL((void*)0);
5170 modelica_metatype _el = NULL((void*)0);
5171 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
5172 MMC_SO()mmc_check_stackoverflow(threadData);
5173 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5174 _sets = _D_24in_sets;
5175 // _set has no default value.
5176 // _el has no default value.
5177#line 1760 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5178 _set = arrayGet(_sets,_index)nobox_arrayGet(threadData,_sets,_index) /* DAE.ASUB */;
5179#line 5179 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5180
5181#line 5181 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5182 { /* match expression */
5183 modelica_metatype tmp3_1;modelica_metatype tmp3_2;
5184 tmp3_1 = _set;
5185 tmp3_2 = _element;
5186 {
5187 volatile mmc_switch_type tmp3;
5188 int tmp4;
5189 tmp3 = 0;
5190 for (; tmp3 < 2; tmp3++) {
5191 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5192 case 0: {
5193 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5194
5195 /* Pattern matching succeeded */
5196#line 1765 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5197 if((omc_Config_orderConnections(threadData) && omc_ConnectUtil_isEquType(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_element) - 3))
) + (4)))))
))))
5198#line 1765 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5199 {
5200#line 1767 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5201 tmpMeta[1] = mmc_mk_cons(_element, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
5202#line 1767 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5203 _el = omc_List_mergeSorted(threadData, tmpMeta[1], (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_set), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_set) - 3))) + (
3)))))
), boxvar_ConnectUtil_equSetElementLess((void*)((char*)(&(boxvar_lit_ConnectUtil_equSetElementLess
).header) + 3))
);
5204#line 5204 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5205 }
5206 else
5207 {
5208#line 1770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5209 tmpMeta[1] = mmc_mk_cons(_element, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_set), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_set) - 3))) + (
3)))))
));
5210#line 1770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5211 _el = tmpMeta[1];
5212#line 5212 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5213 }
5214#line 1772 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5215 tmpMeta[1] = mmc_mk_box3(3, &DAE_Connect_Set_SET__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_element) - 3))
) + (4)))))
), _el);
5216#line 1772 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/ConnectUtil.mo"
5217 tmpMeta[0] = arrayUpdate(_sets, _index, tmpMeta[1])boxptr_arrayUpdate(threadData,_sets,mmc_mk_icon(_index),tmpMeta
[1])
;
5218#line 5218 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/ConnectUtil.c"
5219 goto tmp2_done;
5220 }
5221