Bug Summary

File:OMCompiler/Compiler/boot/build/NFConnector.c
Warning:line 744, column 5
Value stored to '_res' is never read

Annotated Source Code

[?] Use j/k keys for keyboard navigation

1#ifdef OMC_BASE_FILE
2 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "NFConnector.h"
8#define _OMC_LIT0_data"nfScalarize" "nfScalarize"
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,11,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "nfScalarize"
}
;
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"Run scalarization in NF, default true." "Run scalarization in NF, default true."
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,38,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(38)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)38)<<(3))+((1<<(3+3))+5)), "Run scalarization in NF, default true."
}
;
13#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
14static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT2,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT2
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))}};
15#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
16static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT3,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT3
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(180))((void*)(((((mmc_uint_t) (180)) << 1)+0))),_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))}};
17#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
18#define _OMC_LIT4_data"NFConnector.fromExp got unknown expression " "NFConnector.fromExp got unknown expression "
19static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,43,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(43)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)43)<<(3))+((1<<(3+3))+5)), "NFConnector.fromExp got unknown expression "
}
;
20#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
21#define _OMC_LIT5_data"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
22static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,99,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(99)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)99)<<(3))+((1<<(3+3))+5)), "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
}
;
23#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
24static const MMC_DEFREALLIT(_OMC_LIT_STRUCT6_6,1588090879.0)struct mmc_real_lit _OMC_LIT_STRUCT6_6 = {0,(((8/8) << 10
) + 9),1588090879.0}
;
25#define _OMC_LIT6_6((void*)((char*)(&(_OMC_LIT_STRUCT6_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT6_6)((void*)((char*)(&(_OMC_LIT_STRUCT6_6).header) + 3))
26static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT6,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT6
= { (((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(113))((void*)(((((mmc_uint_t) (113)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(11))((void*)(((((mmc_uint_t) (11)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(114))((void*)(((((mmc_uint_t) (114)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(52))((void*)(((((mmc_uint_t) (52)) << 1)+0))),_OMC_LIT6_6((void*)((char*)(&(_OMC_LIT_STRUCT6_6).header) + 3))}};
27#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
28#include "util/modelica.h"
29
30#include "NFConnector_includes.h"
31
32
33/* default, do not make protected functions static */
34#if !defined(PROTECTED_FUNCTION_STATIC)
35#define PROTECTED_FUNCTION_STATIC
36#endif
37PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnector_splitImpl2(threadData_t *threadData, modelica_metatype _name, modelica_integer _face, modelica_metatype _source, modelica_metatype _comps, modelica_integer _scalarize, modelica_metatype _D_24in_conns, modelica_metatype _dims);
38PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnector_splitImpl2(threadData_t *threadData, modelica_metatype _name, modelica_metatype _face, modelica_metatype _source, modelica_metatype _comps, modelica_metatype _scalarize, modelica_metatype _D_24in_conns, modelica_metatype _dims);
39static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnector_splitImpl2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnector_splitImpl2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnector_splitImpl2,0}};
40#define boxvar_NFConnector_splitImpl2((void*)((char*)(&(boxvar_lit_NFConnector_splitImpl2).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnector_splitImpl2)((void*)((char*)(&(boxvar_lit_NFConnector_splitImpl2).header
) + 3))
41PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnector_splitImpl(threadData_t *threadData, modelica_metatype _name, modelica_metatype _ty, modelica_integer _face, modelica_metatype _source, modelica_integer _cty, modelica_integer _scalarize, modelica_metatype _D_24in_conns, modelica_metatype _dims);
42PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnector_splitImpl(threadData_t *threadData, modelica_metatype _name, modelica_metatype _ty, modelica_metatype _face, modelica_metatype _source, modelica_metatype _cty, modelica_metatype _scalarize, modelica_metatype _D_24in_conns, modelica_metatype _dims);
43static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnector_splitImpl,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnector_splitImpl
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnector_splitImpl,0}};
44#define boxvar_NFConnector_splitImpl((void*)((char*)(&(boxvar_lit_NFConnector_splitImpl).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnector_splitImpl)((void*)((char*)(&(boxvar_lit_NFConnector_splitImpl).header
) + 3))
45PROTECTED_FUNCTION_STATIC modelica_integer omc_NFConnector_crefFace(threadData_t *threadData, modelica_metatype _cref);
46PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnector_crefFace(threadData_t *threadData, modelica_metatype _cref);
47static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnector_crefFace,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnector_crefFace
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnector_crefFace,0}};
48#define boxvar_NFConnector_crefFace((void*)((char*)(&(boxvar_lit_NFConnector_crefFace).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnector_crefFace)((void*)((char*)(&(boxvar_lit_NFConnector_crefFace).header
) + 3))
49
50PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnector_splitImpl2(threadData_t *threadData, modelica_metatype _name, modelica_integer _face, modelica_metatype _source, modelica_metatype _comps, modelica_integer _scalarize, modelica_metatype _D_24in_conns, modelica_metatype _dims)
51{
52 modelica_metatype _conns = NULL((void*)0);
53 modelica_metatype _c = NULL((void*)0);
54 modelica_metatype _cref = NULL((void*)0);
55 modelica_metatype _ty = NULL((void*)0);
56 modelica_integer _cty;
57 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
58 MMC_SO()mmc_check_stackoverflow(threadData);
59 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
60 _conns = _D_24in_conns;
61 // _c has no default value.
62 // _cref has no default value.
63 // _ty has no default value.
64 // _cty has no default value.
65#line 318 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
66 {
67#line 318 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
68 modelica_metatype _comp;
69#line 318 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
70 for (tmpMeta[0] = _comps; !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)))))
)
71#line 318 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
72 {
73#line 318 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
74 _comp = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
75#line 319 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
76 _c = omc_NFInstNode_InstNode_component(threadData, _comp);
77#line 77 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
78
79#line 320 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
80 _ty = omc_NFComponent_Component_getType(threadData, _c);
81#line 81 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
82
83#line 321 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
84 _cty = omc_NFComponent_Component_connectorType(threadData, _c);
85#line 85 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
86
87#line 323 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
88 if((!omc_NFPrefixes_ConnectorType_isPotentiallyPresent(threadData, _cty)))
89#line 323 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
90 {
91#line 324 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
92 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
93#line 324 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
94 _cref = omc_NFComponentRef_append(threadData, omc_NFComponentRef_fromNode(threadData, _comp, _ty, tmpMeta[1], 1), _name);
95#line 95 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
96
97#line 325 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
98 _conns = omc_NFConnector_splitImpl(threadData, _cref, _ty, (modelica_integer)_face, _source, _cty, (modelica_integer)_scalarize, _conns, _dims);
99#line 99 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
100 }
101 }
102 }
103 _return: OMC_LABEL_UNUSED__attribute__((unused))
104 return _conns;
105}
106PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnector_splitImpl2(threadData_t *threadData, modelica_metatype _name, modelica_metatype _face, modelica_metatype _source, modelica_metatype _comps, modelica_metatype _scalarize, modelica_metatype _D_24in_conns, modelica_metatype _dims)
107{
108 modelica_integer tmp1;
109 modelica_integer tmp2;
110 modelica_metatype _conns = NULL((void*)0);
111 tmp1 = mmc_unbox_integer(_face)(((mmc_sint_t) (_face)) >> 1);
112 tmp2 = mmc_unbox_integer(_scalarize)(((mmc_sint_t) (_scalarize)) >> 1);
113 _conns = omc_NFConnector_splitImpl2(threadData, _name, tmp1, _source, _comps, tmp2, _D_24in_conns, _dims);
114 /* skip box _conns; list<NFConnector> */
115 return _conns;
116}
117
118PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnector_splitImpl(threadData_t *threadData, modelica_metatype _name, modelica_metatype _ty, modelica_integer _face, modelica_metatype _source, modelica_integer _cty, modelica_integer _scalarize, modelica_metatype _D_24in_conns, modelica_metatype _dims)
119{
120 modelica_metatype _conns = NULL((void*)0);
121 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
122 MMC_SO()mmc_check_stackoverflow(threadData);
123 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
124 _conns = _D_24in_conns;
125#line 125 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
126 { /* match expression */
127 modelica_metatype tmp3_1;
128 tmp3_1 = _ty;
129 {
130 modelica_metatype _ety = NULL((void*)0);
131 modelica_metatype _ct = NULL((void*)0);
132 modelica_metatype _tree = NULL((void*)0);
133 volatile mmc_switch_type tmp3;
134 int tmp4;
135 // _ety has no default value.
136 // _ct has no default value.
137 // _tree has no default value.
138 tmp3 = 0;
139 for (; tmp3 < 6; tmp3++) {
140 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
141 case 0: {
142 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,11,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((11 +3) & 255) << 2)))
== 0) goto tmp2_end;
143 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
144 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((3 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
145
146 _ct = tmpMeta[1];
147 /* Pattern matching succeeded */
148#line 259 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
149 _conns = omc_NFConnector_splitImpl2(threadData, _name, (modelica_integer)_face, _source, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ct), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_ct) - 3))) + (
2)))))
), (modelica_integer)_scalarize, _conns, _dims);
150#line 150 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
151
152#line 260 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
153 _conns = omc_NFConnector_splitImpl2(threadData, _name, (modelica_integer)_face, _source, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ct), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_ct) - 3))) + (
3)))))
), (modelica_integer)_scalarize, _conns, _dims);
154#line 154 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
155#line 261 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
156 tmpMeta[0] = omc_NFConnector_splitImpl2(threadData, _name, (modelica_integer)_face, _source, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ct), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_ct) - 3))) + (
4)))))
), (modelica_integer)_scalarize, _conns, _dims);
157#line 157 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
158 goto tmp2_done;
159 }
160 case 1: {
161 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,11,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((11 +3) & 255) << 2)))
== 0) goto tmp2_end;
162 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
163 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],5,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((2 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
164
165 /* Pattern matching succeeded */
166#line 266 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
167 tmpMeta[2] = mmc_mk_box6(3, &NFConnector_CONNECTOR__desc, _name, omc_NFType_liftArrayLeftList(threadData, _ty, _dims), mmc_mk_integermmc_mk_icon((modelica_integer)_face), mmc_mk_integermmc_mk_icon(_cty), _source);
168#line 266 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
169 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _conns);
170#line 266 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
171 tmpMeta[0] = tmpMeta[1];
172#line 172 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
173 goto tmp2_done;
174 }
175 case 2: {
176 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,11,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((11 +3) & 255) << 2)))
== 0) goto tmp2_end;
177
178 /* Pattern matching succeeded */
179#line 270 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
180 _tree = omc_NFClass_Class_classTree(threadData, omc_NFInstNode_InstNode_getClass(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ty), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_ty) - 3))) + (
2)))))
)));
181#line 181 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
182#line 271 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
183 tmpMeta[0] = omc_NFConnector_splitImpl2(threadData, _name, (modelica_integer)_face, _source, arrayList(omc_NFClassTree_ClassTree_getComponents(threadData, _tree)), (modelica_integer)_scalarize, _conns, _dims);
184#line 184 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
185 goto tmp2_done;
186 }
187 case 3: {
188 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,7,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((7 +3) & 255) << 2)))
== 0) goto tmp2_end;
189 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
190 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],11,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((2 +1)
<< 10) + (((11 +3) & 255) << 2)))
== 0) goto tmp2_end;
191
192 _ety = tmpMeta[1];
193 /* Pattern matching succeeded */
194 /* Check guard condition after assignments */
195 if (!((modelica_integer)_scalarize >= 2)) goto tmp2_end;
196#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
197 {
198#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
199 modelica_metatype _c;
200#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
201 for (tmpMeta[1] = omc_NFComponentRef_scalarize(threadData, _name); !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)))))
)
202#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
203 {
204#line 279 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
205 _c = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
206#line 280 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
207 _conns = omc_NFConnector_splitImpl(threadData, _c, _ety, (modelica_integer)_face, _source, _cty, (modelica_integer)_scalarize, _conns, _dims);
208#line 208 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
209 }
210 }
211#line 282 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
212 tmpMeta[0] = _conns;
213#line 213 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
214 goto tmp2_done;
215 }
216 case 4: {
217 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,7,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((7 +3) & 255) << 2)))
== 0) goto tmp2_end;
218 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
219
220 _ety = tmpMeta[1];
221 /* Pattern matching succeeded */
222#line 287 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
223 if(((modelica_integer)_scalarize == 3))
224#line 287 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
225 {
226#line 288 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
227 {
228#line 288 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
229 modelica_metatype _c;
230#line 288 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
231 for (tmpMeta[1] = omc_NFComponentRef_scalarize(threadData, _name); !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)))))
)
232#line 288 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
233 {
234#line 288 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
235 _c = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
236#line 289 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
237 _conns = omc_NFConnector_splitImpl(threadData, _c, _ety, (modelica_integer)_face, _source, _cty, (modelica_integer)_scalarize, _conns, _dims);
238#line 238 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
239 }
240 }
241 }
242 else
243 {
244#line 292 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
245 if((!omc_NFType_isEmptyArray(threadData, _ty)))
246#line 292 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
247 {
248#line 293 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
249 _conns = omc_NFConnector_splitImpl(threadData, _name, _ety, (modelica_integer)_face, _source, _cty, (modelica_integer)_scalarize, _conns, listAppend(_dims, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ty), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_ty) - 3))) + (
3)))))
)));
250#line 250 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
251 }
252 }
253#line 297 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
254 tmpMeta[0] = _conns;
255#line 255 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
256 goto tmp2_done;
257 }
258 case 5: {
259
260 /* Pattern matching succeeded */
261#line 300 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
262 tmpMeta[2] = mmc_mk_box6(3, &NFConnector_CONNECTOR__desc, _name, omc_NFType_liftArrayLeftList(threadData, _ty, _dims), mmc_mk_integermmc_mk_icon((modelica_integer)_face), mmc_mk_integermmc_mk_icon(_cty), _source);
263#line 300 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
264 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _conns);
265#line 300 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
266 tmpMeta[0] = tmpMeta[1];
267#line 267 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
268 goto tmp2_done;
269 }
270 }
271 goto tmp2_end;
272 tmp2_end: ;
273 }
274 goto goto_1;
275 goto_1:;
276 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
277 goto tmp2_done;
278 tmp2_done:;
279 }
280 }
281 _conns = tmpMeta[0];
282 _return: OMC_LABEL_UNUSED__attribute__((unused))
283 return _conns;
284}
285PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnector_splitImpl(threadData_t *threadData, modelica_metatype _name, modelica_metatype _ty, modelica_metatype _face, modelica_metatype _source, modelica_metatype _cty, modelica_metatype _scalarize, modelica_metatype _D_24in_conns, modelica_metatype _dims)
286{
287 modelica_integer tmp1;
288 modelica_integer tmp2;
289 modelica_integer tmp3;
290 modelica_metatype _conns = NULL((void*)0);
291 tmp1 = mmc_unbox_integer(_face)(((mmc_sint_t) (_face)) >> 1);
292 tmp2 = mmc_unbox_integer(_cty)(((mmc_sint_t) (_cty)) >> 1);
293 tmp3 = mmc_unbox_integer(_scalarize)(((mmc_sint_t) (_scalarize)) >> 1);
294 _conns = omc_NFConnector_splitImpl(threadData, _name, _ty, tmp1, _source, tmp2, tmp3, _D_24in_conns, _dims);
295 /* skip box _conns; list<NFConnector> */
296 return _conns;
297}
298
299PROTECTED_FUNCTION_STATIC modelica_integer omc_NFConnector_crefFace(threadData_t *threadData, modelica_metatype _cref)
300{
301 modelica_integer _face;
302 modelica_integer tmp1 = 0;
303 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
304 MMC_SO()mmc_check_stackoverflow(threadData);
305 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
306 // _face has no default value.
307#line 307 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
308 { /* match expression */
309 modelica_metatype tmp4_1;
310 tmp4_1 = _cref;
311 {
312 volatile mmc_switch_type tmp4;
313 int tmp5;
314 tmp4 = 0;
315 for (; tmp4 < 2; tmp4++) {
316 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
317 case 0: {
318 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
319 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
320 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;
321 /* Pattern matching succeeded */
322#line 234 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
323 tmp1 = 2;
324#line 324 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
325 goto tmp3_done;
326 }
327 case 1: {
328
329 /* Pattern matching succeeded */
330#line 236 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
331 tmp1 = (omc_NFInstNode_InstNode_isConnector(threadData, omc_NFComponentRef_node(threadData, omc_NFComponentRef_firstNonScope(threadData, _cref)))?2:1);
332#line 332 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
333 goto tmp3_done;
334 }
335 }
336 goto tmp3_end;
337 tmp3_end: ;
338 }
339 goto goto_2;
340 goto_2:;
341 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
342 goto tmp3_done;
343 tmp3_done:;
344 }
345 }
346 _face = tmp1;
347 _return: OMC_LABEL_UNUSED__attribute__((unused))
348 return _face;
349}
350PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnector_crefFace(threadData_t *threadData, modelica_metatype _cref)
351{
352 modelica_integer _face;
353 modelica_metatype out_face;
354 _face = omc_NFConnector_crefFace(threadData, _cref);
355 out_face = mmc_mk_icon(_face);
356 return out_face;
357}
358
359DLLExport
360modelica_metatype omc_NFConnector_split(threadData_t *threadData, modelica_metatype _conn, modelica_integer _scalarize)
361{
362 modelica_metatype _connl = NULL((void*)0);
363 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
364 MMC_SO()mmc_check_stackoverflow(threadData);
365 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
366 // _connl has no default value.
367#line 221 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
368 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
369#line 221 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
370 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
371#line 221 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
372 _connl = omc_NFConnector_splitImpl(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conn) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_conn) - 3))) +
(3)))))
), mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_conn) - 3))) + (4)))))))) >> 1)
, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_conn) - 3))) +
(6)))))
), mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 5))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_conn) - 3))) + (5)))))))) >> 1)
, (modelica_integer)_scalarize, tmpMeta[0], tmpMeta[1]);
373#line 373 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
374 _return: OMC_LABEL_UNUSED__attribute__((unused))
375 return _connl;
376}
377modelica_metatype boxptr_NFConnector_split(threadData_t *threadData, modelica_metatype _conn, modelica_metatype _scalarize)
378{
379 modelica_integer tmp1;
380 modelica_metatype _connl = NULL((void*)0);
381 tmp1 = mmc_unbox_integer(_scalarize)(((mmc_sint_t) (_scalarize)) >> 1);
382 _connl = omc_NFConnector_split(threadData, _conn, tmp1);
383 /* skip box _connl; list<NFConnector> */
384 return _connl;
385}
386
387DLLExport
388modelica_integer omc_NFConnector_hash(threadData_t *threadData, modelica_metatype _conn, modelica_integer _mod)
389{
390 modelica_integer _hash;
391 MMC_SO()mmc_check_stackoverflow(threadData);
392 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
393 _hash = omc_NFComponentRef_hash(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conn) - 3))) +
(2)))))
), _mod);
394 _return: OMC_LABEL_UNUSED__attribute__((unused))
395 return _hash;
396}
397modelica_metatype boxptr_NFConnector_hash(threadData_t *threadData, modelica_metatype _conn, modelica_metatype _mod)
398{
399 modelica_integer tmp1;
400 modelica_integer _hash;
401 modelica_metatype out_hash;
402 tmp1 = mmc_unbox_integer(_mod)(((mmc_sint_t) (_mod)) >> 1);
403 _hash = omc_NFConnector_hash(threadData, _conn, tmp1);
404 out_hash = mmc_mk_icon(_hash);
405 return out_hash;
406}
407
408DLLExport
409modelica_string omc_NFConnector_toString(threadData_t *threadData, modelica_metatype _conn)
410{
411 modelica_string _str = NULL((void*)0);
412 MMC_SO()mmc_check_stackoverflow(threadData);
413 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
414 _str = omc_NFComponentRef_toString(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conn) - 3))) +
(2)))))
));
415 _return: OMC_LABEL_UNUSED__attribute__((unused))
416 return _str;
417}
418
419DLLExport
420modelica_metatype omc_NFConnector_name(threadData_t *threadData, modelica_metatype _conn)
421{
422 modelica_metatype _name = NULL((void*)0);
423 MMC_SO()mmc_check_stackoverflow(threadData);
424 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
425 _name = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conn) - 3))) +
(2)))))
);
426 _return: OMC_LABEL_UNUSED__attribute__((unused))
427 return _name;
428}
429
430DLLExport
431modelica_boolean omc_NFConnector_isExpandable(threadData_t *threadData, modelica_metatype _conn)
432{
433 modelica_boolean _isExpandable;
434 MMC_SO()mmc_check_stackoverflow(threadData);
435 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
436 _isExpandable = omc_NFPrefixes_ConnectorType_isExpandable(threadData, mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 5))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_conn) - 3))) + (5)))))))) >> 1)
);
437 _return: OMC_LABEL_UNUSED__attribute__((unused))
438 return _isExpandable;
439}
440modelica_metatype boxptr_NFConnector_isExpandable(threadData_t *threadData, modelica_metatype _conn)
441{
442 modelica_boolean _isExpandable;
443 modelica_metatype out_isExpandable;
444 _isExpandable = omc_NFConnector_isExpandable(threadData, _conn);
445 out_isExpandable = mmc_mk_icon(_isExpandable);
446 return out_isExpandable;
447}
448
449DLLExport
450modelica_boolean omc_NFConnector_isDeleted(threadData_t *threadData, modelica_metatype _conn)
451{
452 modelica_boolean _isDeleted;
453 MMC_SO()mmc_check_stackoverflow(threadData);
454 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
455 _isDeleted = omc_NFComponentRef_isDeleted(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conn) - 3))) +
(2)))))
));
456 _return: OMC_LABEL_UNUSED__attribute__((unused))
457 return _isDeleted;
458}
459modelica_metatype boxptr_NFConnector_isDeleted(threadData_t *threadData, modelica_metatype _conn)
460{
461 modelica_boolean _isDeleted;
462 modelica_metatype out_isDeleted;
463 _isDeleted = omc_NFConnector_isDeleted(threadData, _conn);
464 out_isDeleted = mmc_mk_icon(_isDeleted);
465 return out_isDeleted;
466}
467
468DLLExport
469modelica_metatype omc_NFConnector_setOutside(threadData_t *threadData, modelica_metatype _D_24in_conn)
470{
471 modelica_metatype _conn = NULL((void*)0);
472 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
473 MMC_SO()mmc_check_stackoverflow(threadData);
474 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
475 _conn = _D_24in_conn;
476#line 177 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
477 if((mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_conn) - 3))) + (4)))))))) >> 1)
!= 2))
478#line 177 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
479 {
480#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
481 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
482#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
483 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_conn)((void*)((char*)(_conn) - 3)), 7*sizeof(modelica_metatype));
484#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
485 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[4] = mmc_mk_integermmc_mk_icon(2);
486#line 178 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
487 _conn = tmpMeta[0];
488#line 488 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
489 }
490 _return: OMC_LABEL_UNUSED__attribute__((unused))
491 return _conn;
492}
493
494DLLExport
495modelica_boolean omc_NFConnector_isInside(threadData_t *threadData, modelica_metatype _conn)
496{
497 modelica_boolean _isInside;
498 modelica_integer _f;
499 MMC_SO()mmc_check_stackoverflow(threadData);
500 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
501 // _isInside has no default value.
502 _f = mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_conn) - 3))) + (4)))))))) >> 1)
;
503#line 171 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
504 _isInside = ((modelica_integer)_f == 1);
505#line 505 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
506 _return: OMC_LABEL_UNUSED__attribute__((unused))
507 return _isInside;
508}
509modelica_metatype boxptr_NFConnector_isInside(threadData_t *threadData, modelica_metatype _conn)
510{
511 modelica_boolean _isInside;
512 modelica_metatype out_isInside;
513 _isInside = omc_NFConnector_isInside(threadData, _conn);
514 out_isInside = mmc_mk_icon(_isInside);
515 return out_isInside;
516}
517
518DLLExport
519modelica_boolean omc_NFConnector_isOutside(threadData_t *threadData, modelica_metatype _conn)
520{
521 modelica_boolean _isOutside;
522 modelica_integer _f;
523 MMC_SO()mmc_check_stackoverflow(threadData);
524 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
525 // _isOutside has no default value.
526 _f = mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_conn) - 3))) + (4)))))))) >> 1)
;
527#line 162 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
528 _isOutside = ((modelica_integer)_f == 2);
529#line 529 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
530 _return: OMC_LABEL_UNUSED__attribute__((unused))
531 return _isOutside;
532}
533modelica_metatype boxptr_NFConnector_isOutside(threadData_t *threadData, modelica_metatype _conn)
534{
535 modelica_boolean _isOutside;
536 modelica_metatype out_isOutside;
537 _isOutside = omc_NFConnector_isOutside(threadData, _conn);
538 out_isOutside = mmc_mk_icon(_isOutside);
539 return out_isOutside;
540}
541
542DLLExport
543modelica_boolean omc_NFConnector_isNodeNameEqual(threadData_t *threadData, modelica_metatype _conn1, modelica_metatype _conn2)
544{
545 modelica_boolean _isEqual;
546 MMC_SO()mmc_check_stackoverflow(threadData);
547 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
548 _isEqual = (stringEqual(omc_NFInstNode_InstNode_name(threadData, omc_NFComponentRef_node(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn1), 2))))), omc_NFInstNode_InstNode_name(threadData, omc_NFComponentRef_node(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn2), 2))))))((((((*(mmc_uint_t*)((void*)((char*)(omc_NFInstNode_InstNode_name
(threadData, omc_NFComponentRef_node(threadData, ((*(void**)(
((void*)((void**)(((void*)((char*)(_conn1) - 3))) + (2)))))))
)) - 3)))) >> (3)) - 8)) == (((((*(mmc_uint_t*)((void*)
((char*)(omc_NFInstNode_InstNode_name(threadData, omc_NFComponentRef_node
(threadData, ((*(void**)(((void*)((void**)(((void*)((char*)(_conn2
) - 3))) + (2))))))))) - 3)))) >> (3)) - 8)) &&
!mmc_stringCompare(omc_NFInstNode_InstNode_name(threadData, omc_NFComponentRef_node
(threadData, ((*(void**)(((void*)((void**)(((void*)((char*)(_conn1
) - 3))) + (2)))))))),omc_NFInstNode_InstNode_name(threadData
, omc_NFComponentRef_node(threadData, ((*(void**)(((void*)((void
**)(((void*)((char*)(_conn2) - 3))) + (2))))))))))
);
549 _return: OMC_LABEL_UNUSED__attribute__((unused))
550 return _isEqual;
551}
552modelica_metatype boxptr_NFConnector_isNodeNameEqual(threadData_t *threadData, modelica_metatype _conn1, modelica_metatype _conn2)
553{
554 modelica_boolean _isEqual;
555 modelica_metatype out_isEqual;
556 _isEqual = omc_NFConnector_isNodeNameEqual(threadData, _conn1, _conn2);
557 out_isEqual = mmc_mk_icon(_isEqual);
558 return out_isEqual;
559}
560
561DLLExport
562modelica_boolean omc_NFConnector_isPrefix(threadData_t *threadData, modelica_metatype _conn1, modelica_metatype _conn2)
563{
564 modelica_boolean _isPrefix;
565 MMC_SO()mmc_check_stackoverflow(threadData);
566 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
567 _isPrefix = omc_NFComponentRef_isPrefix(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conn1) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conn2) - 3))) +
(2)))))
));
568 _return: OMC_LABEL_UNUSED__attribute__((unused))
569 return _isPrefix;
570}
571modelica_metatype boxptr_NFConnector_isPrefix(threadData_t *threadData, modelica_metatype _conn1, modelica_metatype _conn2)
572{
573 modelica_boolean _isPrefix;
574 modelica_metatype out_isPrefix;
575 _isPrefix = omc_NFConnector_isPrefix(threadData, _conn1, _conn2);
576 out_isPrefix = mmc_mk_icon(_isPrefix);
577 return out_isPrefix;
578}
579
580DLLExport
581modelica_boolean omc_NFConnector_isEqual(threadData_t *threadData, modelica_metatype _conn1, modelica_metatype _conn2)
582{
583 modelica_boolean _isEqual;
584 MMC_SO()mmc_check_stackoverflow(threadData);
585 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
586 _isEqual = (omc_NFComponentRef_isEqual(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conn1) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conn2) - 3))) +
(2)))))
)) && (mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn1), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_conn1) - 3))) + (4)))))))) >> 1)
== mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn2), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_conn2) - 3))) + (4)))))))) >> 1)
));
587 _return: OMC_LABEL_UNUSED__attribute__((unused))
588 return _isEqual;
589}
590modelica_metatype boxptr_NFConnector_isEqual(threadData_t *threadData, modelica_metatype _conn1, modelica_metatype _conn2)
591{
592 modelica_boolean _isEqual;
593 modelica_metatype out_isEqual;
594 _isEqual = omc_NFConnector_isEqual(threadData, _conn1, _conn2);
595 out_isEqual = mmc_mk_icon(_isEqual);
596 return out_isEqual;
597}
598
599DLLExport
600modelica_integer omc_NFConnector_variability(threadData_t *threadData, modelica_metatype _conn)
601{
602 modelica_integer _var;
603 MMC_SO()mmc_check_stackoverflow(threadData);
604 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
605 _var = omc_NFComponent_Component_variability(threadData, omc_NFInstNode_InstNode_component(threadData, omc_NFComponentRef_node(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conn) - 3))) +
(2)))))
))));
606 _return: OMC_LABEL_UNUSED__attribute__((unused))
607 return _var;
608}
609modelica_metatype boxptr_NFConnector_variability(threadData_t *threadData, modelica_metatype _conn)
610{
611 modelica_integer _var;
612 modelica_metatype out_var;
613 _var = omc_NFConnector_variability(threadData, _conn);
614 out_var = mmc_mk_icon(_var);
615 return out_var;
616}
617
618DLLExport
619modelica_metatype omc_NFConnector_getInfo(threadData_t *threadData, modelica_metatype _conn)
620{
621 modelica_metatype _info = NULL((void*)0);
622 MMC_SO()mmc_check_stackoverflow(threadData);
623 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
624 _info = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 6)))), 2))(*(void**)(((void*)((void**)(((void*)((char*)(((*(void**)(((void
*)((void**)(((void*)((char*)(_conn) - 3))) + (6))))))) - 3)))
+ (2)))))
);
625 _return: OMC_LABEL_UNUSED__attribute__((unused))
626 return _info;
627}
628
629DLLExport
630modelica_metatype omc_NFConnector_getType(threadData_t *threadData, modelica_metatype _conn)
631{
632 modelica_metatype _ty = NULL((void*)0);
633 MMC_SO()mmc_check_stackoverflow(threadData);
634 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
635 _ty = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_conn) - 3))) +
(3)))))
);
636 _return: OMC_LABEL_UNUSED__attribute__((unused))
637 return _ty;
638}
639
640DLLExport
641modelica_metatype omc_NFConnector_fromExp(threadData_t *threadData, modelica_metatype _exp, modelica_metatype _source, modelica_metatype _D_24in_conns)
642{
643 modelica_metatype _conns = NULL((void*)0);
644 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
645 MMC_SO()mmc_check_stackoverflow(threadData);
646 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
647 _conns = _D_24in_conns;
648#line 648 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
649 { /* match expression */
650 modelica_metatype tmp3_1;
651 tmp3_1 = _exp;
652 {
653 int tmp3;
654 {
655 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
656 case 8: {
657
658 /* Pattern matching succeeded */
659#line 102 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
660 tmpMeta[1] = mmc_mk_cons(omc_NFConnector_fromCref(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_exp), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_exp) - 3))) + (
3)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_exp), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_exp) - 3))) + (
2)))))
), _source), _conns);
661#line 102 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
662 tmpMeta[0] = tmpMeta[1];
663#line 663 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
664 goto tmp2_done;
665 }
666 case 10: {
667
668 /* Pattern matching succeeded */
669#line 105 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
670 {
671#line 105 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
672 modelica_metatype _e;
673#line 105 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
674 for (tmpMeta[1] = listReverse((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_exp), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_exp) - 3))) + (
3)))))
)); !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)))))
)
675#line 105 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
676 {
677#line 105 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
678 _e = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
679#line 106 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
680 _conns = omc_NFConnector_fromExp(threadData, _e, _source, _conns);
681#line 681 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
682 }
683 }
684#line 108 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
685 tmpMeta[0] = _conns;
686#line 686 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
687 goto tmp2_done;
688 }
689 default:
690 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
691
692 /* Pattern matching succeeded */
693#line 113 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
694 tmpMeta[1] = stringAppend(_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)),omc_NFExpression_toString(threadData, _exp));
695#line 113 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
696 omc_Error_assertion(threadData, 0, tmpMeta[1], _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)));
697#line 697 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
698#line 115 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
699 goto goto_1;
700#line 700 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
701 goto tmp2_done;
702 }
703 }
704 goto tmp2_end;
705 tmp2_end: ;
706 }
707 goto goto_1;
708 goto_1:;
709 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
710 goto tmp2_done;
711 tmp2_done:;
712 }
713 }
714 _conns = tmpMeta[0];
715 _return: OMC_LABEL_UNUSED__attribute__((unused))
716 return _conns;
717}
718
719DLLExport
720modelica_metatype omc_NFConnector_fromFacedCref(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _ty, modelica_integer _face, modelica_metatype _source)
721{
722 modelica_metatype _conn = NULL((void*)0);
723 modelica_metatype _node = NULL((void*)0);
724 modelica_metatype _comp = NULL((void*)0);
725 modelica_integer _cty;
726 modelica_metatype _res = NULL((void*)0);
727 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
728 MMC_SO()mmc_check_stackoverflow(threadData);
729 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
730 // _conn has no default value.
731 _node = omc_NFComponentRef_node(threadData, _cref);
732 // _comp has no default value.
733 // _cty has no default value.
734 // _res has no default value.
735#line 84 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
736 if(omc_NFInstNode_InstNode_isComponent(threadData, _node))
737#line 84 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
738 {
739#line 85 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
740 _comp = omc_NFInstNode_InstNode_component(threadData, _node);
741#line 741 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
742
743#line 86 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
744 _res = omc_NFClass_Class_restriction(threadData, omc_NFInstNode_InstNode_getClass(threadData, omc_NFComponent_Component_classInstance(threadData, _comp)));
Value stored to '_res' is never read
745#line 745 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
746
747#line 87 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
748 _cty = omc_NFComponent_Component_connectorType(threadData, _comp);
749#line 749 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
750 }
751 else
752 {
753#line 89 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
754 _cty = ((modelica_integer) 17);
755#line 755 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
756 }
757
758#line 92 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
759 tmpMeta[0] = mmc_mk_box6(3, &NFConnector_CONNECTOR__desc, omc_NFComponentRef_simplifySubscripts(threadData, _cref), _ty, mmc_mk_integermmc_mk_icon((modelica_integer)_face), mmc_mk_integermmc_mk_icon(_cty), _source);
760#line 92 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnector.mo"
761 _conn = tmpMeta[0];
762#line 762 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnector.c"
763 _return: OMC_LABEL_UNUSED__attribute__((unused))
764 return _conn;
765}
766modelica_metatype boxptr_NFConnector_fromFacedCref(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _ty, modelica_metatype _face, modelica_metatype _source)
767{
768 modelica_integer tmp1;
769 modelica_metatype _conn = NULL((void*)0);
770 tmp1 = mmc_unbox_integer(_face)(((mmc_sint_t) (_face)) >> 1);
771 _conn = omc_NFConnector_fromFacedCref(threadData, _cref, _ty, tmp1, _source);
772 /* skip box _conn; NFConnector */
773 return _conn;
774}
775
776DLLExport
777modelica_metatype omc_NFConnector_fromCref(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _ty, modelica_metatype _source)
778{
779 modelica_metatype _conn = NULL((void*)0);
780 MMC_SO()mmc_check_stackoverflow(threadData);
781 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
782 _conn = omc_NFConnector_fromFacedCref(threadData, _cref, _ty, omc_NFConnector_crefFace(threadData, _cref), _source);
783 _return: OMC_LABEL_UNUSED__attribute__((unused))
784 return _conn;
785}
786