Bug Summary

File:OMCompiler/Compiler/boot/build/NFConnectEquations.c
Warning:line 1829, column 3
Value stored to '_outside' 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/NFConnectEquations.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "NFConnectEquations.h"
8#define _OMC_LIT0_data"smooth" "smooth"
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,6,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "smooth"
}
;
10#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
11static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT1,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT1
= { (((2) << 10) + (((4) & 255) << 2)),
{&Absyn_Path_IDENT__desc,_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))}};
12#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
13static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT2,1,10)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT2
= { (((1) << 10) + (((10) & 255) << 2)),
{&NFInstNode_InstNode_EMPTY__NODE__desc,}};
14#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
15static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT3,1,13)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT3
= { (((1) << 10) + (((13) & 255) << 2)),
{&NFType_UNKNOWN__desc,}};
16#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
17static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT4,1,7)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT4
= { (((1) << 10) + (((7) & 255) << 2)),
{&DAE_InlineType_NO__INLINE__desc,}};
18#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
19static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT5,3,4)struct { mmc_uint_t header; const void *data[3]; } _OMC_LIT_STRUCT5
= { (((3) << 10) + (((4) & 255) << 2)),
{&DAE_FunctionBuiltin_FUNCTION__BUILTIN__desc,MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
20#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
21static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT6,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT6
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_FunctionParallelism_FP__NON__PARALLEL__desc,}};
22#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
23static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT7,7,3)struct { mmc_uint_t header; const void *data[7]; } _OMC_LIT_STRUCT7
= { (((7) << 10) + (((3) & 255) << 2)),
{&DAE_FunctionAttributes_FUNCTION__ATTRIBUTES__desc,_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)),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_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))}};
24#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
25static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT8,1,1)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT8
= { (((1) << 10) + (((1) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0)))}};
26#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
27static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT9,1,1)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT9
= { (((1) << 10) + (((1) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
28#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
29static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT10,12,3)struct { mmc_uint_t header; const void *data[12]; } _OMC_LIT_STRUCT10
= { (((12) << 10) + (((3) & 255) << 2)),
{&NFFunction_Function_FUNCTION__desc,_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).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)),_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)),_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))}};
30#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
31#define _OMC_LIT11_data"min" "min"
32static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT11,3,_OMC_LIT11_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT11
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "min"
}
;
33#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
34#define _OMC_LIT12_data"max" "max"
35static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT12,3,_OMC_LIT12_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT12
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "max"
}
;
36#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
37static const MMC_DEFREALLIT(_OMC_LIT_STRUCT13,0.0)struct mmc_real_lit _OMC_LIT_STRUCT13 = {0,(((8/8) << 10
) + 9),0.0}
;
38#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
39static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT14,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT14
= { (((2) << 10) + (((4) & 255) << 2)),
{&NFExpression_REAL__desc,_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))}};
40#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
41#define _OMC_LIT15_data"" ""
42static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT15,0,_OMC_LIT15_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT15
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
43#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
44static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT16,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT16
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).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_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))}};
45#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
46static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT17,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT17
= { (((1) << 10) + (((4) & 255) << 2)),
{&DAE_ComponentPrefix_NOCOMPPRE__desc,}};
47#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
48static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT18,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT18
= { (((8) << 10) + (((3) & 255) << 2)),
{&DAE_ElementSource_SOURCE__desc,_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).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))}};
49#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
50#define _OMC_LIT19_data"flowThreshold" "flowThreshold"
51static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT19,13,_OMC_LIT19_data)struct { mmc_uint_t header; const char data[(13)+1]; } _OMC_LIT_STRUCT19
= { ((((mmc_uint_t)13)<<(3))+((1<<(3+3))+5)), "flowThreshold"
}
;
52#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
53static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT20,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT20
= { (((1) << 10) + (((4) & 255) << 2)),
{&Flags_FlagVisibility_EXTERNAL__desc,}};
54#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
55static const MMC_DEFREALLIT(_OMC_LIT_STRUCT21,1e-07)struct mmc_real_lit _OMC_LIT_STRUCT21 = {0,(((8/8) << 10
) + 9),1e-07}
;
56#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
57static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT22,2,7)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT22
= { (((2) << 10) + (((7) & 255) << 2)),
{&Flags_FlagData_REAL__FLAG__desc,_OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))}};
58#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
59#define _OMC_LIT23_data"Sets the minium threshold for stream flow rates" "Sets the minium threshold for stream flow rates"
60static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,47,_OMC_LIT23_data)struct { mmc_uint_t header; const char data[(47)+1]; } _OMC_LIT_STRUCT23
= { ((((mmc_uint_t)47)<<(3))+((1<<(3+3))+5)), "Sets the minium threshold for stream flow rates"
}
;
61#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
62static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT24,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT24
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))}};
63#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
64static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT25,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT25
= { (((8) << 10) + (((3) & 255) << 2)),
{&Flags_ConfigFlag_CONFIG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(74))((void*)(((((mmc_uint_t) (74)) << 1)+0))),_OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),_OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)),_OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),_OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))}};
65#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
66#define _OMC_LIT26_data"NFConnectEquations.evaluateOperatorArrayConstructorExp failed to expand call containing stream operator: " "NFConnectEquations.evaluateOperatorArrayConstructorExp failed to expand call containing stream operator: "
67static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT26,105,_OMC_LIT26_data)struct { mmc_uint_t header; const char data[(105)+1]; } _OMC_LIT_STRUCT26
= { ((((mmc_uint_t)105)<<(3))+((1<<(3+3))+5)), "NFConnectEquations.evaluateOperatorArrayConstructorExp failed to expand call containing stream operator: "
}
;
68#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
69#define _OMC_LIT27_data"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
70static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT27,106,_OMC_LIT27_data)struct { mmc_uint_t header; const char data[(106)+1]; } _OMC_LIT_STRUCT27
= { ((((mmc_uint_t)106)<<(3))+((1<<(3+3))+5)), "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
}
;
71#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
72static const MMC_DEFREALLIT(_OMC_LIT_STRUCT28_6,1588090879.0)struct mmc_real_lit _OMC_LIT_STRUCT28_6 = {0,(((8/8) <<
10) + 9),1588090879.0}
;
73#define _OMC_LIT28_6((void*)((char*)(&(_OMC_LIT_STRUCT28_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT28_6)((void*)((char*)(&(_OMC_LIT_STRUCT28_6).header) + 3))
74static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT28,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT28
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(687))((void*)(((((mmc_uint_t) (687)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(5))((void*)(((((mmc_uint_t) (5)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(689))((void*)(((((mmc_uint_t) (689)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(46))((void*)(((((mmc_uint_t) (46)) << 1)+0))),_OMC_LIT28_6((void*)((char*)(&(_OMC_LIT_STRUCT28_6).header) + 3))}};
75#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
76#define _OMC_LIT29_data"Iteration range in reduction containing connector operator calls must be a parameter expression." "Iteration range in reduction containing connector operator calls must be a parameter expression."
77static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,96,_OMC_LIT29_data)struct { mmc_uint_t header; const char data[(96)+1]; } _OMC_LIT_STRUCT29
= { ((((mmc_uint_t)96)<<(3))+((1<<(3+3))+5)), "Iteration range in reduction containing connector operator calls must be a parameter expression."
}
;
78#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
79static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT30,1,9)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT30
= { (((1) << 10) + (((9) & 255) << 2)),
{&NFCeval_EvalTarget_IGNORE__ERRORS__desc,}};
80#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
81#define _OMC_LIT31_data"inStream" "inStream"
82static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT31,8,_OMC_LIT31_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT31
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "inStream"
}
;
83#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
84#define _OMC_LIT32_data"actualStream" "actualStream"
85static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT32,12,_OMC_LIT32_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT32
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "actualStream"
}
;
86#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
87#define _OMC_LIT33_data"nominal" "nominal"
88static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT33,7,_OMC_LIT33_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT33
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "nominal"
}
;
89#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
90static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT34,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT34
= { (((1) << 10) + (((4) & 255) << 2)),
{&NFType_REAL__desc,}};
91#define _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT34)((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))
92#define _OMC_LIT35_data"$OMC$PositiveMax" "$OMC$PositiveMax"
93static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT35,16,_OMC_LIT35_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT35
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "$OMC$PositiveMax"
}
;
94#define _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT35)((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))
95static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT36,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT36
= { (((2) << 10) + (((4) & 255) << 2)),
{&Absyn_Path_IDENT__desc,_OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))}};
96#define _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT36)((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))
97#define _OMC_LIT37_data"r" "r"
98static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT37,1,_OMC_LIT37_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT37
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "r"
}
;
99#define _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT37)((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))
100static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT38,4,3)struct { mmc_uint_t header; const void *data[4]; } _OMC_LIT_STRUCT38
= { (((4) << 10) + (((3) & 255) << 2)),
{&NFBinding_Binding_UNBOUND__desc,MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))}};
101#define _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT38)((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3))
102static 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)),
{&NFPrefixes_Replaceable_NOT__REPLACEABLE__desc,}};
103#define _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT39)((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))
104static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT40,9,3)struct { mmc_uint_t header; const void *data[9]; } _OMC_LIT_STRUCT40
= { (((9) << 10) + (((3) & 255) << 2)),
{&NFComponent_Component_Attributes_ATTRIBUTES__desc,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(7))((void*)(((((mmc_uint_t) (7)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 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_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))}};
105#define _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT40)((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))
106static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT41,9,5)struct { mmc_uint_t header; const void *data[9]; } _OMC_LIT_STRUCT41
= { (((9) << 10) + (((5) & 255) << 2)),
{&NFComponent_Component_TYPED__COMPONENT__desc,_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)),_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)),_OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)),_OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)),_OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))}};
107#define _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT41)((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))
108static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT42,1,1)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT42
= { (((1) << 10) + (((1) & 255) << 2)),
{_OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))}};
109#define _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT42)((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3))
110static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT43,1,9)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT43
= { (((1) << 10) + (((9) & 255) << 2)),
{&NFInstNode_InstNodeType_NORMAL__COMP__desc,}};
111#define _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT43)((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))
112static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT44,6,4)struct { mmc_uint_t header; const void *data[6]; } _OMC_LIT_STRUCT44
= { (((6) << 10) + (((4) & 255) << 2)),
{&NFInstNode_InstNode_COMPONENT__NODE__desc,_OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),_OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)),_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)),_OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))}};
113#define _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT44)((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))
114static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT45,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT45
= { (((2) << 10) + (((1) & 255) << 2)),
{_OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
115#define _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT45)((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))
116static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT46,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT46
= { (((2) << 10) + (((1) & 255) << 2)),
{_OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)),_OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))}};
117#define _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT46)((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))
118static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT47,12,3)struct { mmc_uint_t header; const void *data[12]; } _OMC_LIT_STRUCT47
= { (((12) << 10) + (((3) & 255) << 2)),
{&NFFunction_Function_FUNCTION__desc,_OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)),_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)),_OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)),_OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)),_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))}};
119#define _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT47)((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3))
120static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT48,1,1)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT48
= { (((1) << 10) + (((1) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0)))}};
121#define _OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT48)((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3))
122static 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)),
{&Absyn_Path_IDENT__desc,_OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))}};
123#define _OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT49)((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3))
124static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT50,12,3)struct { mmc_uint_t header; const void *data[12]; } _OMC_LIT_STRUCT50
= { (((12) << 10) + (((3) & 255) << 2)),
{&NFFunction_Function_FUNCTION__desc,_OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)),_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)),_OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)),_OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)),_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))}};
125#define _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT50)((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3))
126#define _OMC_LIT51_data" equation generated from stream connection" " equation generated from stream connection"
127static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT51,42,_OMC_LIT51_data)struct { mmc_uint_t header; const char data[(42)+1]; } _OMC_LIT_STRUCT51
= { ((((mmc_uint_t)42)<<(3))+((1<<(3+3))+5)), " equation generated from stream connection"
}
;
128#define _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT51)((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3))
129#define _OMC_LIT52_data"abs" "abs"
130static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT52,3,_OMC_LIT52_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT52
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "abs"
}
;
131#define _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT52)((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))
132static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT53,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT53
= { (((2) << 10) + (((4) & 255) << 2)),
{&Absyn_Path_IDENT__desc,_OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))}};
133#define _OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT53)((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3))
134static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT54,12,3)struct { mmc_uint_t header; const void *data[12]; } _OMC_LIT_STRUCT54
= { (((12) << 10) + (((3) & 255) << 2)),
{&NFFunction_Function_FUNCTION__desc,_OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3)),_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)),_OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)),_OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)),_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))}};
135#define _OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT54)((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3))
136#define _OMC_LIT55_data"Connected constants/parameters must be equal" "Connected constants/parameters must be equal"
137static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT55,44,_OMC_LIT55_data)struct { mmc_uint_t header; const char data[(44)+1]; } _OMC_LIT_STRUCT55
= { ((((mmc_uint_t)44)<<(3))+((1<<(3+3))+5)), "Connected constants/parameters must be equal"
}
;
138#define _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT55)((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3))
139static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT56,2,5)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT56
= { (((2) << 10) + (((5) & 255) << 2)),
{&NFExpression_STRING__desc,_OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3))}};
140#define _OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT56)((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3))
141#define _OMC_LIT57_data"AssertionLevel" "AssertionLevel"
142static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT57,14,_OMC_LIT57_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT57
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), "AssertionLevel"
}
;
143#define _OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT57)((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3))
144static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT58,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT58
= { (((2) << 10) + (((4) & 255) << 2)),
{&Absyn_Path_IDENT__desc,_OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3))}};
145#define _OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT58)((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3))
146#define _OMC_LIT59_data"error" "error"
147static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT59,5,_OMC_LIT59_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT59
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "error"
}
;
148#define _OMC_LIT59((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT59)((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3))
149#define _OMC_LIT60_data"warning" "warning"
150static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT60,7,_OMC_LIT60_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT60
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "warning"
}
;
151#define _OMC_LIT60((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT60)((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3))
152static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT61,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT61
= { (((2) << 10) + (((1) & 255) << 2)),
{_OMC_LIT60((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
153#define _OMC_LIT61((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT61)((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3))
154static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT62,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT62
= { (((2) << 10) + (((1) & 255) << 2)),
{_OMC_LIT59((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3)),_OMC_LIT61((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3))}};
155#define _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT62)((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3))
156static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT63,3,8)struct { mmc_uint_t header; const void *data[3]; } _OMC_LIT_STRUCT63
= { (((3) << 10) + (((8) & 255) << 2)),
{&NFType_ENUMERATION__desc,_OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)),_OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3))}};
157#define _OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT63)((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3))
158static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT64,4,7)struct { mmc_uint_t header; const void *data[4]; } _OMC_LIT_STRUCT64
= { (((4) << 10) + (((7) & 255) << 2)),
{&NFExpression_ENUM__LITERAL__desc,_OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)),_OMC_LIT59((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0)))}};
159#define _OMC_LIT64((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT64)((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3))
160#define _OMC_LIT65_data"cardinality" "cardinality"
161static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT65,11,_OMC_LIT65_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT65
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "cardinality"
}
;
162#define _OMC_LIT65((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT65)((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3))
163#define _OMC_LIT66_data"NFConnectEquations.generateEquations got connection set with invalid type '" "NFConnectEquations.generateEquations got connection set with invalid type '"
164static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT66,75,_OMC_LIT66_data)struct { mmc_uint_t header; const char data[(75)+1]; } _OMC_LIT_STRUCT66
= { ((((mmc_uint_t)75)<<(3))+((1<<(3+3))+5)), "NFConnectEquations.generateEquations got connection set with invalid type '"
}
;
165#define _OMC_LIT66((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT66)((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3))
166#define _OMC_LIT67_data"': " "': "
167static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT67,3,_OMC_LIT67_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT67
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "': "
}
;
168#define _OMC_LIT67((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT67)((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3))
169#define _OMC_LIT68_data"{" "{"
170static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT68,1,_OMC_LIT68_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT68
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "{"
}
;
171#define _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT68)((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3))
172#define _OMC_LIT69_data", " ", "
173static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT69,2,_OMC_LIT69_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT69
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ", "
}
;
174#define _OMC_LIT69((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT69)((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3))
175#define _OMC_LIT70_data"}" "}"
176static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT70,1,_OMC_LIT70_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT70
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "}"
}
;
177#define _OMC_LIT70((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT70)((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3))
178static const MMC_DEFREALLIT(_OMC_LIT_STRUCT71_6,1588090879.0)struct mmc_real_lit _OMC_LIT_STRUCT71_6 = {0,(((8/8) <<
10) + 9),1588090879.0}
;
179#define _OMC_LIT71_6((void*)((char*)(&(_OMC_LIT_STRUCT71_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT71_6)((void*)((char*)(&(_OMC_LIT_STRUCT71_6).header) + 3))
180static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT71,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT71
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(109))((void*)(((((mmc_uint_t) (109)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(7))((void*)(((((mmc_uint_t) (7)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(111))((void*)(((((mmc_uint_t) (111)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(88))((void*)(((((mmc_uint_t) (88)) << 1)+0))),_OMC_LIT71_6((void*)((char*)(&(_OMC_LIT_STRUCT71_6).header) + 3))}};
181#define _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT71)((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3))
182#include "util/modelica.h"
183
184#include "NFConnectEquations_includes.h"
185
186
187/* default, do not make protected functions static */
188#if !defined(PROTECTED_FUNCTION_STATIC)
189#define PROTECTED_FUNCTION_STATIC
190#endif
191PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_associatedFlowCref(threadData_t *threadData, modelica_metatype _streamCref);
192static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_associatedFlowCref,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_associatedFlowCref
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_associatedFlowCrefomc_NFConnectEquations_associatedFlowCref,0}};
193#define boxvar_NFConnectEquations_associatedFlowCref((void*)((char*)(&(boxvar_lit_NFConnectEquations_associatedFlowCref
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_associatedFlowCref)((void*)((char*)(&(boxvar_lit_NFConnectEquations_associatedFlowCref
).header) + 3))
194PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFConnectEquations_compareCrefStreamSet(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _element);
195PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_compareCrefStreamSet(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _element);
196static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_compareCrefStreamSet,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_compareCrefStreamSet
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_compareCrefStreamSet,0}};
197#define boxvar_NFConnectEquations_compareCrefStreamSet((void*)((char*)(&(boxvar_lit_NFConnectEquations_compareCrefStreamSet
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_compareCrefStreamSet)((void*)((char*)(&(boxvar_lit_NFConnectEquations_compareCrefStreamSet
).header) + 3))
198PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_removeStreamSetElement(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _D_24in_elements);
199static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_removeStreamSetElement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_removeStreamSetElement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_removeStreamSetElementomc_NFConnectEquations_removeStreamSetElement,0}};
200#define boxvar_NFConnectEquations_removeStreamSetElement((void*)((char*)(&(boxvar_lit_NFConnectEquations_removeStreamSetElement
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_removeStreamSetElement)((void*)((char*)(&(boxvar_lit_NFConnectEquations_removeStreamSetElement
).header) + 3))
201PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_makeSmoothCall(threadData_t *threadData, modelica_metatype _arg, modelica_integer _order);
202PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_makeSmoothCall(threadData_t *threadData, modelica_metatype _arg, modelica_metatype _order);
203static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_makeSmoothCall,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_makeSmoothCall
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_makeSmoothCall,0}};
204#define boxvar_NFConnectEquations_makeSmoothCall((void*)((char*)(&(boxvar_lit_NFConnectEquations_makeSmoothCall
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_makeSmoothCall)((void*)((char*)(&(boxvar_lit_NFConnectEquations_makeSmoothCall
).header) + 3))
205PROTECTED_FUNCTION_STATIC modelica_integer omc_NFConnectEquations_evaluateFlowDirection(threadData_t *threadData, modelica_metatype _flowCref);
206PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_evaluateFlowDirection(threadData_t *threadData, modelica_metatype _flowCref);
207static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_evaluateFlowDirection,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_evaluateFlowDirection
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_evaluateFlowDirection,0}};
208#define boxvar_NFConnectEquations_evaluateFlowDirection((void*)((char*)(&(boxvar_lit_NFConnectEquations_evaluateFlowDirection
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_evaluateFlowDirection)((void*)((char*)(&(boxvar_lit_NFConnectEquations_evaluateFlowDirection
).header) + 3))
209PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_evaluateActualStreamMul(threadData_t *threadData, modelica_metatype _crefExp, modelica_metatype _actualStreamArg, modelica_metatype _op, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable);
210static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_evaluateActualStreamMul,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_evaluateActualStreamMul
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_evaluateActualStreamMulomc_NFConnectEquations_evaluateActualStreamMul,0}};
211#define boxvar_NFConnectEquations_evaluateActualStreamMul((void*)((char*)(&(boxvar_lit_NFConnectEquations_evaluateActualStreamMul
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_evaluateActualStreamMul)((void*)((char*)(&(boxvar_lit_NFConnectEquations_evaluateActualStreamMul
).header) + 3))
212PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_evaluateActualStream(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable, modelica_metatype _mulCref);
213static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_evaluateActualStream,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_evaluateActualStream
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_evaluateActualStreamomc_NFConnectEquations_evaluateActualStream,0}};
214#define boxvar_NFConnectEquations_evaluateActualStream((void*)((char*)(&(boxvar_lit_NFConnectEquations_evaluateActualStream
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_evaluateActualStream)((void*)((char*)(&(boxvar_lit_NFConnectEquations_evaluateActualStream
).header) + 3))
215PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFConnectEquations_isZeroFlow(threadData_t *threadData, modelica_metatype _element, modelica_string _attr);
216PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_isZeroFlow(threadData_t *threadData, modelica_metatype _element, modelica_metatype _attr);
217static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_isZeroFlow,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_isZeroFlow
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_isZeroFlow,0}};
218#define boxvar_NFConnectEquations_isZeroFlow((void*)((char*)(&(boxvar_lit_NFConnectEquations_isZeroFlow
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_isZeroFlow)((void*)((char*)(&(boxvar_lit_NFConnectEquations_isZeroFlow
).header) + 3))
219PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFConnectEquations_isZeroFlowMinMax(threadData_t *threadData, modelica_metatype _conn, modelica_metatype _streamCref);
220PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_isZeroFlowMinMax(threadData_t *threadData, modelica_metatype _conn, modelica_metatype _streamCref);
221static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_isZeroFlowMinMax,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_isZeroFlowMinMax
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_isZeroFlowMinMax,0}};
222#define boxvar_NFConnectEquations_isZeroFlowMinMax((void*)((char*)(&(boxvar_lit_NFConnectEquations_isZeroFlowMinMax
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_isZeroFlowMinMax)((void*)((char*)(&(boxvar_lit_NFConnectEquations_isZeroFlowMinMax
).header) + 3))
223PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_generateInStreamExp(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _streams, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable, modelica_real _flowThreshold);
224PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_generateInStreamExp(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _streams, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable, modelica_metatype _flowThreshold);
225static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_generateInStreamExp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_generateInStreamExp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_generateInStreamExp,0}};
226#define boxvar_NFConnectEquations_generateInStreamExp((void*)((char*)(&(boxvar_lit_NFConnectEquations_generateInStreamExp
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_generateInStreamExp)((void*)((char*)(&(boxvar_lit_NFConnectEquations_generateInStreamExp
).header) + 3))
227PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_evaluateInStream(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable);
228static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_evaluateInStream,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_evaluateInStream
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_evaluateInStreamomc_NFConnectEquations_evaluateInStream,0}};
229#define boxvar_NFConnectEquations_evaluateInStream((void*)((char*)(&(boxvar_lit_NFConnectEquations_evaluateInStream
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_evaluateInStream)((void*)((char*)(&(boxvar_lit_NFConnectEquations_evaluateInStream
).header) + 3))
230PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_evaluateOperatorArrayConstructorExp(threadData_t *threadData, modelica_metatype _exp, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable);
231static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_evaluateOperatorArrayConstructorExp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_evaluateOperatorArrayConstructorExp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_evaluateOperatorArrayConstructorExpomc_NFConnectEquations_evaluateOperatorArrayConstructorExp,0}};
232#define boxvar_NFConnectEquations_evaluateOperatorArrayConstructorExp((void*)((char*)(&(boxvar_lit_NFConnectEquations_evaluateOperatorArrayConstructorExp
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_evaluateOperatorArrayConstructorExp)((void*)((char*)(&(boxvar_lit_NFConnectEquations_evaluateOperatorArrayConstructorExp
).header) + 3))
233PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_evaluateOperatorReductionExp(threadData_t *threadData, modelica_metatype _exp, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable);
234static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_evaluateOperatorReductionExp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_evaluateOperatorReductionExp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_evaluateOperatorReductionExpomc_NFConnectEquations_evaluateOperatorReductionExp,0}};
235#define boxvar_NFConnectEquations_evaluateOperatorReductionExp((void*)((char*)(&(boxvar_lit_NFConnectEquations_evaluateOperatorReductionExp
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_evaluateOperatorReductionExp)((void*)((char*)(&(boxvar_lit_NFConnectEquations_evaluateOperatorReductionExp
).header) + 3))
236PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFConnectEquations_isStreamCall(threadData_t *threadData, modelica_metatype _exp);
237PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_isStreamCall(threadData_t *threadData, modelica_metatype _exp);
238static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_isStreamCall,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_isStreamCall
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_isStreamCall,0}};
239#define boxvar_NFConnectEquations_isStreamCall((void*)((char*)(&(boxvar_lit_NFConnectEquations_isStreamCall
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_isStreamCall)((void*)((char*)(&(boxvar_lit_NFConnectEquations_isStreamCall
).header) + 3))
240PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_makePositiveMaxCall(threadData_t *threadData, modelica_metatype _flowExp, modelica_metatype _element, modelica_metatype _flowThreshold);
241static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_makePositiveMaxCall,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_makePositiveMaxCall
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_makePositiveMaxCallomc_NFConnectEquations_makePositiveMaxCall,0}};
242#define boxvar_NFConnectEquations_makePositiveMaxCall((void*)((char*)(&(boxvar_lit_NFConnectEquations_makePositiveMaxCall
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_makePositiveMaxCall)((void*)((char*)(&(boxvar_lit_NFConnectEquations_makePositiveMaxCall
).header) + 3))
243PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_makeInStreamCall(threadData_t *threadData, modelica_metatype _streamExp);
244static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_makeInStreamCall,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_makeInStreamCall
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_makeInStreamCallomc_NFConnectEquations_makeInStreamCall,0}};
245#define boxvar_NFConnectEquations_makeInStreamCall((void*)((char*)(&(boxvar_lit_NFConnectEquations_makeInStreamCall
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_makeInStreamCall)((void*)((char*)(&(boxvar_lit_NFConnectEquations_makeInStreamCall
).header) + 3))
246PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_sumInside2(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold);
247static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_sumInside2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_sumInside2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_sumInside2omc_NFConnectEquations_sumInside2,0}};
248#define boxvar_NFConnectEquations_sumInside2((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumInside2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_sumInside2)((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumInside2
).header) + 3))
249PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_sumOutside2(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold);
250static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_sumOutside2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_sumOutside2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_sumOutside2omc_NFConnectEquations_sumOutside2,0}};
251#define boxvar_NFConnectEquations_sumOutside2((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumOutside2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_sumOutside2)((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumOutside2
).header) + 3))
252PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_sumInside1(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold);
253static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_sumInside1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_sumInside1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_sumInside1omc_NFConnectEquations_sumInside1,0}};
254#define boxvar_NFConnectEquations_sumInside1((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumInside1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_sumInside1)((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumInside1
).header) + 3))
255PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_sumOutside1(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold);
256static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_sumOutside1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_sumOutside1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_sumOutside1omc_NFConnectEquations_sumOutside1,0}};
257#define boxvar_NFConnectEquations_sumOutside1((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumOutside1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_sumOutside1)((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumOutside1
).header) + 3))
258PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_flowExp(threadData_t *threadData, modelica_metatype _element);
259static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_flowExp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_flowExp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_flowExpomc_NFConnectEquations_flowExp,0}};
260#define boxvar_NFConnectEquations_flowExp((void*)((char*)(&(boxvar_lit_NFConnectEquations_flowExp)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_flowExp)((void*)((char*)(&(boxvar_lit_NFConnectEquations_flowExp)
.header) + 3))
261PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_streamFlowExp(threadData_t *threadData, modelica_metatype _element, modelica_metatype *out_flowExp);
262static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_streamFlowExp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_streamFlowExp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_streamFlowExpomc_NFConnectEquations_streamFlowExp,0}};
263#define boxvar_NFConnectEquations_streamFlowExp((void*)((char*)(&(boxvar_lit_NFConnectEquations_streamFlowExp
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_streamFlowExp)((void*)((char*)(&(boxvar_lit_NFConnectEquations_streamFlowExp
).header) + 3))
264PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_sumMap(threadData_t *threadData, modelica_metatype _elements, modelica_fnptr _func, modelica_metatype _flowThreshold);
265static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_sumMap,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_sumMap
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_sumMapomc_NFConnectEquations_sumMap,0}};
266#define boxvar_NFConnectEquations_sumMap((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumMap).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_sumMap)((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumMap).
header) + 3))
267PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_streamSumEquationExp(threadData_t *threadData, modelica_metatype _outsideElements, modelica_metatype _insideElements, modelica_metatype _flowThreshold);
268static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_streamSumEquationExp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_streamSumEquationExp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_streamSumEquationExpomc_NFConnectEquations_streamSumEquationExp,0}};
269#define boxvar_NFConnectEquations_streamSumEquationExp((void*)((char*)(&(boxvar_lit_NFConnectEquations_streamSumEquationExp
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_streamSumEquationExp)((void*)((char*)(&(boxvar_lit_NFConnectEquations_streamSumEquationExp
).header) + 3))
270PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_streamEquationGeneral(threadData_t *threadData, modelica_metatype _outsideElements, modelica_metatype _insideElements, modelica_metatype _flowThreshold);
271static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_streamEquationGeneral,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_streamEquationGeneral
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_streamEquationGeneralomc_NFConnectEquations_streamEquationGeneral,0}};
272#define boxvar_NFConnectEquations_streamEquationGeneral((void*)((char*)(&(boxvar_lit_NFConnectEquations_streamEquationGeneral
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_streamEquationGeneral)((void*)((char*)(&(boxvar_lit_NFConnectEquations_streamEquationGeneral
).header) + 3))
273PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_generateStreamEquations(threadData_t *threadData, modelica_metatype _elements, modelica_metatype _flowThreshold);
274static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_generateStreamEquations,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_generateStreamEquations
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_generateStreamEquationsomc_NFConnectEquations_generateStreamEquations,0}};
275#define boxvar_NFConnectEquations_generateStreamEquations((void*)((char*)(&(boxvar_lit_NFConnectEquations_generateStreamEquations
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_generateStreamEquations)((void*)((char*)(&(boxvar_lit_NFConnectEquations_generateStreamEquations
).header) + 3))
276PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_makeFlowExp(threadData_t *threadData, modelica_metatype _element);
277static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_makeFlowExp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_makeFlowExp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_makeFlowExpomc_NFConnectEquations_makeFlowExp,0}};
278#define boxvar_NFConnectEquations_makeFlowExp((void*)((char*)(&(boxvar_lit_NFConnectEquations_makeFlowExp
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_makeFlowExp)((void*)((char*)(&(boxvar_lit_NFConnectEquations_makeFlowExp
).header) + 3))
279PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_generateFlowEquations(threadData_t *threadData, modelica_metatype _elements);
280static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_generateFlowEquations,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_generateFlowEquations
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_generateFlowEquationsomc_NFConnectEquations_generateFlowEquations,0}};
281#define boxvar_NFConnectEquations_generateFlowEquations((void*)((char*)(&(boxvar_lit_NFConnectEquations_generateFlowEquations
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_generateFlowEquations)((void*)((char*)(&(boxvar_lit_NFConnectEquations_generateFlowEquations
).header) + 3))
282PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_makeEqualityAssert(threadData_t *threadData, modelica_metatype _lhsCref, modelica_metatype _lhsSource, modelica_metatype _rhsCref, modelica_metatype _rhsSource);
283static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_makeEqualityAssert,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_makeEqualityAssert
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_makeEqualityAssertomc_NFConnectEquations_makeEqualityAssert,0}};
284#define boxvar_NFConnectEquations_makeEqualityAssert((void*)((char*)(&(boxvar_lit_NFConnectEquations_makeEqualityAssert
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_makeEqualityAssert)((void*)((char*)(&(boxvar_lit_NFConnectEquations_makeEqualityAssert
).header) + 3))
285PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_makeEqualityEquation(threadData_t *threadData, modelica_metatype _lhsCref, modelica_metatype _lhsSource, modelica_metatype _rhsCref, modelica_metatype _rhsSource);
286static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_makeEqualityEquation,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_makeEqualityEquation
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_makeEqualityEquationomc_NFConnectEquations_makeEqualityEquation,0}};
287#define boxvar_NFConnectEquations_makeEqualityEquation((void*)((char*)(&(boxvar_lit_NFConnectEquations_makeEqualityEquation
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_makeEqualityEquation)((void*)((char*)(&(boxvar_lit_NFConnectEquations_makeEqualityEquation
).header) + 3))
288PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_generatePotentialEquations(threadData_t *threadData, modelica_metatype _elements);
289static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_generatePotentialEquations,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_generatePotentialEquations
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_generatePotentialEquationsomc_NFConnectEquations_generatePotentialEquations,0}};
290#define boxvar_NFConnectEquations_generatePotentialEquations((void*)((char*)(&(boxvar_lit_NFConnectEquations_generatePotentialEquations
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_generatePotentialEquations)((void*)((char*)(&(boxvar_lit_NFConnectEquations_generatePotentialEquations
).header) + 3))
291PROTECTED_FUNCTION_STATIC modelica_integer omc_NFConnectEquations_getSetType(threadData_t *threadData, modelica_metatype _set);
292PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_getSetType(threadData_t *threadData, modelica_metatype _set);
293static const MMC_DEFSTRUCTLIT(boxvar_lit_NFConnectEquations_getSetType,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFConnectEquations_getSetType
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFConnectEquations_getSetType,0}};
294#define boxvar_NFConnectEquations_getSetType((void*)((char*)(&(boxvar_lit_NFConnectEquations_getSetType
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFConnectEquations_getSetType)((void*)((char*)(&(boxvar_lit_NFConnectEquations_getSetType
).header) + 3))
295
296PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_associatedFlowCref(threadData_t *threadData, modelica_metatype _streamCref)
297{
298 modelica_metatype _flowCref = NULL((void*)0);
299 modelica_metatype _ty = NULL((void*)0);
300 modelica_metatype _rest_cr = NULL((void*)0);
301 modelica_metatype _flow_node = NULL((void*)0);
302 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
303 MMC_SO()mmc_check_stackoverflow(threadData);
304 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
305 // _flowCref has no default value.
306 // _ty has no default value.
307 // _rest_cr has no default value.
308 // _flow_node has no default value.
309#line 956 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
310 /* Pattern-matching assignment */
311#line 956 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
312 tmpMeta[0] = _streamCref;
313#line 956 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
314 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
315#line 956 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
316 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
317#line 956 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
318 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
319#line 956 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
320 _ty = tmpMeta[1];
321#line 956 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
322 _rest_cr = tmpMeta[2];
323#line 323 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
324
325#line 325 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
326 { /* match expression */
327 modelica_metatype tmp3_1;
328 tmp3_1 = omc_NFType_arrayElementType(threadData, _ty);
329 {
330 volatile mmc_switch_type tmp3;
331 int tmp4;
332 tmp3 = 0;
333 for (; tmp3 < 2; tmp3++) {
334 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
335 case 0: {
336 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;
337 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
338 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;
339 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
340 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
341 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
342 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
343 if (!listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
344
345 _flow_node = tmpMeta[3];
346 /* Pattern matching succeeded */
347#line 961 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
348 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
349#line 961 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
350 tmpMeta[0] = omc_NFComponentRef_prefixCref(threadData, _flow_node, omc_NFInstNode_InstNode_getType(threadData, _flow_node), tmpMeta[1], _streamCref);
351#line 351 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
352 goto tmp2_done;
353 }
354 case 1: {
355
356 /* Pattern matching succeeded */
357#line 964 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
358 /* Tail recursive call */
359#line 964 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
360 _streamCref = _rest_cr;
361#line 964 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
362 goto _tailrecursive;
363#line 964 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
364 /* TODO: Make sure any eventual dead code below is never generated */
365#line 365 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
366 goto tmp2_done;
367 }
368 }
369 goto tmp2_end;
370 tmp2_end: ;
371 }
372 goto goto_1;
373 goto_1:;
374 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
375 goto tmp2_done;
376 tmp2_done:;
377 }
378 }
379 _flowCref = tmpMeta[0];
380 _return: OMC_LABEL_UNUSED__attribute__((unused))
381 return _flowCref;
382}
383
384PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFConnectEquations_compareCrefStreamSet(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _element)
385{
386 modelica_boolean _matches;
387 MMC_SO()mmc_check_stackoverflow(threadData);
388 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
389 // _matches has no default value.
390#line 943 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
391 _matches = omc_NFComponentRef_isEqual(threadData, _cref, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_element) - 3))
) + (2)))))
));
392#line 392 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
393 _return: OMC_LABEL_UNUSED__attribute__((unused))
394 return _matches;
395}
396PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_compareCrefStreamSet(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _element)
397{
398 modelica_boolean _matches;
399 modelica_metatype out_matches;
400 _matches = omc_NFConnectEquations_compareCrefStreamSet(threadData, _cref, _element);
401 out_matches = mmc_mk_icon(_matches);
402 return out_matches;
403}
404
405PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_removeStreamSetElement(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _D_24in_elements)
406{
407 modelica_metatype _elements = NULL((void*)0);
408 MMC_SO()mmc_check_stackoverflow(threadData);
409 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
410 _elements = _D_24in_elements;
411#line 933 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
412 _elements = omc_List_deleteMemberOnTrue(threadData, _cref, _elements, boxvar_NFConnectEquations_compareCrefStreamSet((void*)((char*)(&(boxvar_lit_NFConnectEquations_compareCrefStreamSet
).header) + 3))
, NULL((void*)0));
413#line 413 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
414 _return: OMC_LABEL_UNUSED__attribute__((unused))
415 return _elements;
416}
417
418PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_makeSmoothCall(threadData_t *threadData, modelica_metatype _arg, modelica_integer _order)
419{
420 modelica_metatype _callExp = NULL((void*)0);
421 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
422 MMC_SO()mmc_check_stackoverflow(threadData);
423 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
424 // _callExp has no default value.
425#line 924 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
426 tmpMeta[1] = mmc_mk_box2(3, &NFExpression_INTEGER__desc, mmc_mk_integermmc_mk_icon(_order));
427#line 924 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
428 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], mmc_mk_cons(_arg, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
429#line 924 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
430 tmpMeta[2] = mmc_mk_box2(15, &NFExpression_CALL__desc, omc_NFCall_Call_makeTypedCall(threadData, _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)), tmpMeta[0], omc_NFExpression_variability(threadData, _arg), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_OMC_LIT10), 8))(*(void**)(((void*)((void**)(((void*)((char*)(((void*)((char*
)(&(_OMC_LIT_STRUCT10).header) + 3))) - 3))) + (8)))))
)));
431#line 924 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
432 _callExp = tmpMeta[2];
433#line 433 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
434 _return: OMC_LABEL_UNUSED__attribute__((unused))
435 return _callExp;
436}
437PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_makeSmoothCall(threadData_t *threadData, modelica_metatype _arg, modelica_metatype _order)
438{
439 modelica_integer tmp1;
440 modelica_metatype _callExp = NULL((void*)0);
441 tmp1 = mmc_unbox_integer(_order)(((mmc_sint_t) (_order)) >> 1);
442 _callExp = omc_NFConnectEquations_makeSmoothCall(threadData, _arg, tmp1);
443 /* skip box _callExp; NFExpression */
444 return _callExp;
445}
446
447PROTECTED_FUNCTION_STATIC modelica_integer omc_NFConnectEquations_evaluateFlowDirection(threadData_t *threadData, modelica_metatype _flowCref)
448{
449 modelica_integer _direction;
450 modelica_metatype _flow_cls = NULL((void*)0);
451 modelica_metatype _omin = NULL((void*)0);
452 modelica_metatype _omax = NULL((void*)0);
453 modelica_real _min_val;
454 modelica_real _max_val;
455 modelica_integer tmp1 = 0;
456 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
457 MMC_SO()mmc_check_stackoverflow(threadData);
458 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
459 _direction = ((modelica_integer) 0);
460 // _flow_cls has no default value.
461 // _omin has no default value.
462 // _omax has no default value.
463 // _min_val has no default value.
464 // _max_val has no default value.
465#line 891 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
466 _flow_cls = omc_NFInstNode_InstNode_getClass(threadData, omc_NFComponentRef_node(threadData, _flowCref));
467#line 467 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
468
469#line 892 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
470 _omin = omc_NFClass_Class_lookupAttributeValue(threadData, _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)), _flow_cls);
471#line 471 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
472
473#line 893 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
474 _omin = omc_NFSimplifyExp_simplifyOpt(threadData, omc_Util_applyOption(threadData, _omin, boxvar_NFExpression_getBindingExp((void*)((char*)(&(boxvar_lit_NFExpression_getBindingExp)
.header) + 3))
));
475#line 475 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
476
477#line 894 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
478 _omax = omc_NFClass_Class_lookupAttributeValue(threadData, _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)), _flow_cls);
479#line 479 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
480
481#line 895 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
482 _omax = omc_NFSimplifyExp_simplifyOpt(threadData, omc_Util_applyOption(threadData, _omax, boxvar_NFExpression_getBindingExp((void*)((char*)(&(boxvar_lit_NFExpression_getBindingExp)
.header) + 3))
));
483#line 483 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
484
485#line 485 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
486 { /* match expression */
487 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
488 tmp4_1 = _omin;
489 tmp4_2 = _omax;
490 {
491 volatile mmc_switch_type tmp4;
492 int tmp5;
493 tmp4 = 0;
494 for (; tmp4 < 5; tmp4++) {
495 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
496 case 0: {
497 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;
498 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;
499 /* Pattern matching succeeded */
500#line 899 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
501 tmp1 = ((modelica_integer) 0);
502#line 502 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
503 goto tmp3_done;
504 }
505 case 1: {
506 modelica_real tmp6;
507 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;
508 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;
509 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
510 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;
511 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
512 tmp6 = mmc_unbox_real(tmpMeta[1])mmc_prim_get_real(tmpMeta[1]);
513 _min_val = tmp6 /* pattern as ty=Real */;
514 /* Pattern matching succeeded */
515#line 902 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
516 tmp1 = ((_min_val >= 0.0)?((modelica_integer) 1):((modelica_integer) 0));
517#line 517 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
518 goto tmp3_done;
519 }
520 case 2: {
521 modelica_real tmp7;
522 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;
523 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;
524 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
525 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;
526 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
527 tmp7 = mmc_unbox_real(tmpMeta[1])mmc_prim_get_real(tmpMeta[1]);
528 _max_val = tmp7 /* pattern as ty=Real */;
529 /* Pattern matching succeeded */
530#line 905 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
531 tmp1 = ((_max_val <= 0.0)?((modelica_integer) -1):((modelica_integer) 0));
532#line 532 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
533 goto tmp3_done;
534 }
535 case 3: {
536 modelica_real tmp8;
537 modelica_real tmp9;
538 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;
539 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
540 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;
541 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
542 tmp8 = mmc_unbox_real(tmpMeta[1])mmc_prim_get_real(tmpMeta[1]);
543 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;
544 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
545 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;
546 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
547 tmp9 = mmc_unbox_real(tmpMeta[3])mmc_prim_get_real(tmpMeta[3]);
548 _min_val = tmp8 /* pattern as ty=Real */;
549 _max_val = tmp9 /* pattern as ty=Real */;
550 /* Pattern matching succeeded */
551#line 909 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
552 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)));
553#line 553 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
554 goto tmp3_done;
555 }
556 case 4: {
557
558 /* Pattern matching succeeded */
559#line 914 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
560 tmp1 = ((modelica_integer) 0);
561#line 561 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
562 goto tmp3_done;
563 }
564 }
565 goto tmp3_end;
566 tmp3_end: ;
567 }
568 goto goto_2;
569 goto_2:;
570 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
571 goto tmp3_done;
572 tmp3_done:;
573 }
574 }
575 _direction = tmp1;
576 _return: OMC_LABEL_UNUSED__attribute__((unused))
577 return _direction;
578}
579PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_evaluateFlowDirection(threadData_t *threadData, modelica_metatype _flowCref)
580{
581 modelica_integer _direction;
582 modelica_metatype out_direction;
583 _direction = omc_NFConnectEquations_evaluateFlowDirection(threadData, _flowCref);
584 out_direction = mmc_mk_icon(_direction);
585 return out_direction;
586}
587
588PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_evaluateActualStreamMul(threadData_t *threadData, modelica_metatype _crefExp, modelica_metatype _actualStreamArg, modelica_metatype _op, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable)
589{
590 modelica_metatype _outExp = NULL((void*)0);
591 modelica_metatype _e1 = NULL((void*)0);
592 modelica_metatype _e2 = NULL((void*)0);
593 modelica_metatype _cr = NULL((void*)0);
594 modelica_metatype _flow_cr = NULL((void*)0);
595 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
596 MMC_SO()mmc_check_stackoverflow(threadData);
597 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
598 // _outExp has no default value.
599 // _e1 has no default value.
600 // _e2 has no default value.
601 // _cr has no default value.
602 // _flow_cr has no default value.
603#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
604 /* Pattern-matching assignment */
605#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
606 tmpMeta[0] = omc_NFConnectEquations_evaluateOperators(threadData, _crefExp, _sets, _setsArray, _ctable);
607#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
608 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],5,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((2 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
609#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
610 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
611#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
612 _e1 = tmpMeta[0];
613#line 872 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
614 _cr = tmpMeta[1];
615#line 615 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
616
617#line 873 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
618 _e2 = omc_NFConnectEquations_evaluateActualStream(threadData, omc_NFExpression_toCref(threadData, _actualStreamArg), _sets, _setsArray, _ctable, mmc_mk_some(_cr));
619#line 619 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
620
621#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
622 tmpMeta[0] = mmc_mk_box4(18, &NFExpression_BINARY__desc, _e1, _op, _e2);
623#line 874 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
624 _outExp = tmpMeta[0];
625#line 625 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
626
627#line 627 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
628 { /* match expression */
629 modelica_metatype tmp3_1;
630 tmp3_1 = _e2;
631 {
632 volatile mmc_switch_type tmp3;
633 int tmp4;
634 tmp3 = 0;
635 for (; tmp3 < 2; tmp3++) {
636 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
637 case 0: {
638 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,20,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((3 +1) <<
10) + (((20 +3) & 255) << 2)))
== 0) goto tmp2_end;
639
640 /* Pattern matching succeeded */
641#line 878 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
642 tmpMeta[0] = omc_NFConnectEquations_makeSmoothCall(threadData, _outExp, ((modelica_integer) 0));
643#line 643 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
644 goto tmp2_done;
645 }
646 case 1: {
647
648 /* Pattern matching succeeded */
649#line 879 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
650 tmpMeta[0] = _outExp;
651#line 651 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
652 goto tmp2_done;
653 }
654 }
655 goto tmp2_end;
656 tmp2_end: ;
657 }
658 goto goto_1;
659 goto_1:;
660 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
661 goto tmp2_done;
662 tmp2_done:;
663 }
664 }
665 _outExp = tmpMeta[0];
666 _return: OMC_LABEL_UNUSED__attribute__((unused))
667 return _outExp;
668}
669
670PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_evaluateActualStream(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable, modelica_metatype _mulCref)
671{
672 modelica_metatype _exp = NULL((void*)0);
673 modelica_integer _flow_dir;
674 modelica_metatype _flow_cr = NULL((void*)0);
675 modelica_metatype _flow_exp = NULL((void*)0);
676 modelica_metatype _stream_exp = NULL((void*)0);
677 modelica_metatype _instream_exp = NULL((void*)0);
678 modelica_metatype _op = NULL((void*)0);
679 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
680 MMC_SO()mmc_check_stackoverflow(threadData);
681 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
682 // _exp has no default value.
683 // _flow_dir has no default value.
684 // _flow_cr has no default value.
685 // _flow_exp has no default value.
686 // _stream_exp has no default value.
687 // _instream_exp has no default value.
688 // _op has no default value.
689#line 831 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
690 _flow_cr = omc_NFConnectEquations_associatedFlowCref(threadData, _streamCref);
691#line 691 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
692
693#line 832 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
694 _flow_dir = omc_NFConnectEquations_evaluateFlowDirection(threadData, _flow_cr);
695#line 695 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
696
697#line 836 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
698 if((_flow_dir == ((modelica_integer) 1)))
699#line 836 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
700 {
701#line 837 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
702 _exp = omc_NFConnectEquations_evaluateInStream(threadData, _streamCref, _sets, _setsArray, _ctable);
703#line 703 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
704 }
705 else
706 {
707 if((_flow_dir == ((modelica_integer) -1)))
708 {
709#line 839 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
710 _exp = omc_NFExpression_fromCref(threadData, _streamCref);
711#line 711 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
712 }
713 else
714 {
715#line 843 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
716 _flow_exp = omc_NFExpression_fromCref(threadData, _flow_cr);
717#line 717 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
718
719#line 844 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
720 _stream_exp = omc_NFExpression_fromCref(threadData, _streamCref);
721#line 721 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
722
723#line 845 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
724 _instream_exp = omc_NFConnectEquations_evaluateInStream(threadData, _streamCref, _sets, _setsArray, _ctable);
725#line 725 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
726
727#line 846 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
728 _op = omc_NFOperator_makeGreater(threadData, omc_NFComponentRef_nodeType(threadData, _flow_cr));
729#line 729 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
730
731#line 848 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
732 tmpMeta[0] = mmc_mk_box4(22, &NFExpression_RELATION__desc, _flow_exp, _op, _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)));
733#line 848 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
734 tmpMeta[1] = mmc_mk_box4(23, &NFExpression_IF__desc, tmpMeta[0], _instream_exp, _stream_exp);
735#line 848 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
736 _exp = tmpMeta[1];
737#line 737 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
738
739#line 852 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
740 if((isNone(_mulCref)(0==((((((*(mmc_uint_t*)((void*)((char*)(_mulCref) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(_mulCref) -
3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(_mulCref
) - 3)))) >> 10)) ? 1 : 0)
|| (!omc_NFComponentRef_isEqual(threadData, _flow_cr, omc_Util_getOption(threadData, _mulCref)))))
741#line 852 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
742 {
743#line 853 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
744 _exp = omc_NFConnectEquations_makeSmoothCall(threadData, _exp, ((modelica_integer) 0));
745#line 745 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
746 }
747 }
748 }
749 _return: OMC_LABEL_UNUSED__attribute__((unused))
750 return _exp;
751}
752
753PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFConnectEquations_isZeroFlow(threadData_t *threadData, modelica_metatype _element, modelica_string _attr)
754{
755 modelica_boolean _isZero;
756 modelica_metatype _attr_oexp = NULL((void*)0);
757 modelica_metatype _flow_exp = NULL((void*)0);
758 modelica_metatype _attr_exp = NULL((void*)0);
759 modelica_metatype _flow_node = NULL((void*)0);
760 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
761 MMC_SO()mmc_check_stackoverflow(threadData);
762 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
763 // _isZero has no default value.
764 // _attr_oexp has no default value.
765 // _flow_exp has no default value.
766 // _attr_exp has no default value.
767 // _flow_node has no default value.
768#line 804 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
769 _flow_exp = omc_NFConnectEquations_flowExp(threadData, _element);
770#line 770 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
771
772#line 805 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
773 _flow_node = omc_NFComponentRef_node(threadData, omc_NFExpression_toCref(threadData, _flow_exp));
774#line 774 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
775
776#line 806 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
777 _attr_oexp = omc_NFClass_Class_lookupAttributeValue(threadData, _attr, omc_NFInstNode_InstNode_getClass(threadData, _flow_node));
778#line 778 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
779
780#line 808 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
781 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)
)
782#line 808 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
783 {
784#line 809 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
785 /* Pattern-matching assignment */
786#line 809 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
787 tmpMeta[0] = _attr_oexp;
788#line 809 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
789 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);};
790#line 809 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
791 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
792#line 809 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
793 _attr_exp = tmpMeta[1];
794#line 794 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
795
796#line 810 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
797 _isZero = omc_NFExpression_isZero(threadData, omc_NFExpression_getBindingExp(threadData, _attr_exp));
798#line 798 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
799 }
800 else
801 {
802#line 812 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
803 _isZero = 0;
804#line 804 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
805 }
806 _return: OMC_LABEL_UNUSED__attribute__((unused))
807 return _isZero;
808}
809PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_isZeroFlow(threadData_t *threadData, modelica_metatype _element, modelica_metatype _attr)
810{
811 modelica_boolean _isZero;
812 modelica_metatype out_isZero;
813 _isZero = omc_NFConnectEquations_isZeroFlow(threadData, _element, _attr);
814 out_isZero = mmc_mk_icon(_isZero);
815 return out_isZero;
816}
817
818PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFConnectEquations_isZeroFlowMinMax(threadData_t *threadData, modelica_metatype _conn, modelica_metatype _streamCref)
819{
820 modelica_boolean _isZero;
821 MMC_SO()mmc_check_stackoverflow(threadData);
822 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
823 // _isZero has no default value.
824#line 785 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
825 if(omc_NFComponentRef_isEqual(threadData, _streamCref, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_conn), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_conn) - 3))) +
(2)))))
)))
826#line 785 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
827 {
828#line 786 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
829 _isZero = 0;
830#line 830 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
831 }
832 else
833 {
834 if(omc_NFConnector_isOutside(threadData, _conn))
835 {
836#line 788 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
837 _isZero = omc_NFConnectEquations_isZeroFlow(threadData, _conn, _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)));
838#line 838 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
839 }
840 else
841 {
842#line 790 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
843 _isZero = omc_NFConnectEquations_isZeroFlow(threadData, _conn, _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)));
844#line 844 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
845 }
846 }
847 _return: OMC_LABEL_UNUSED__attribute__((unused))
848 return _isZero;
849}
850PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_isZeroFlowMinMax(threadData_t *threadData, modelica_metatype _conn, modelica_metatype _streamCref)
851{
852 modelica_boolean _isZero;
853 modelica_metatype out_isZero;
854 _isZero = omc_NFConnectEquations_isZeroFlowMinMax(threadData, _conn, _streamCref);
855 out_isZero = mmc_mk_icon(_isZero);
856 return out_isZero;
857}
858
859PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_generateInStreamExp(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _streams, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable, modelica_real _flowThreshold)
860{
861 modelica_metatype _exp = NULL((void*)0);
862 modelica_metatype _reducedStreams = NULL((void*)0);
863 modelica_metatype _inside = NULL((void*)0);
864 modelica_metatype _outside = NULL((void*)0);
865 modelica_metatype _cr = NULL((void*)0);
866 modelica_integer _f1;
867 modelica_integer _f2;
868 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
869 MMC_SO()mmc_check_stackoverflow(threadData);
870 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
871 // _exp has no default value.
872 // _reducedStreams has no default value.
873 // _inside has no default value.
874 // _outside has no default value.
875 // _cr has no default value.
876 // _f1 has no default value.
877 // _f2 has no default value.
878#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
879 {
880#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
881 modelica_metatype _D_24tmpVar1;
882#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
883 modelica_metatype* tmp1;
884#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
885 modelica_metatype _D_24tmpVar0;
886#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
887 int tmp2;
888#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
889 modelica_metatype _s_loopVar = 0;
890#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
891 modelica_metatype _s;
892#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
893 _s_loopVar = _streams;
894#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
895 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
896#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
897 _D_24tmpVar1 = tmpMeta[1]; /* defaultValue */
898#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
899 tmp1 = &_D_24tmpVar1;
900#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
901 while(1) {
902#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
903 tmp2 = 1;
904#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
905 while (!listEmpty(_s_loopVar)((*(mmc_uint_t*)((void*)((char*)(_s_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
906#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
907 _s = MMC_CAR(_s_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_s_loopVar) - 3
))) + (1)))))
;
908#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
909 _s_loopVar = MMC_CDR(_s_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_s_loopVar) - 3
))) + (2)))))
;
910#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
911 if ((!omc_NFConnectEquations_isZeroFlowMinMax(threadData, _s, _streamCref))) {
912#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
913 tmp2--;
914#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
915 break;
916#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
917 }
918#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
919 }
920#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
921 if (tmp2 == 0) {
922#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
923 _D_24tmpVar0 = _s;
924#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
925 *tmp1 = mmc_mk_cons(_D_24tmpVar0,0);
926#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
927 tmp1 = &MMC_CDR(*tmp1)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp1) - 3))) +
(2)))))
;
928#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
929 } else if (tmp2 == 1) {
930#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
931 break;
932#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
933 } else {
934#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
935 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
936#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
937 }
938#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
939 }
940#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
941 *tmp1 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
942#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
943 tmpMeta[0] = _D_24tmpVar1;
944#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
945 }
946#line 736 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
947 _reducedStreams = tmpMeta[0];
948#line 948 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
949
950#line 950 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
951 { /* match expression */
952 modelica_metatype tmp5_1;
953 tmp5_1 = _reducedStreams;
954 {
955 volatile mmc_switch_type tmp5;
956 int tmp6;
957 tmp5 = 0;
958 for (; tmp5 < 4; tmp5++) {
959 switch (MMC_SWITCH_CAST(tmp5)(tmp5)) {
960 case 0: {
961 modelica_integer tmp7;
962 if (listEmpty(tmp5_1)((*(mmc_uint_t*)((void*)((char*)(tmp5_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp4_end;
963 tmpMeta[1] = MMC_CAR(tmp5_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp5_1) - 3))) +
(1)))))
;
964 tmpMeta[2] = MMC_CDR(tmp5_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp5_1) - 3))) +
(2)))))
;
965 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp4_end;
966 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
967 tmp7 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
968 if (1 != tmp7) goto tmp4_end;
969 if (!listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp4_end;
970 /* Pattern matching succeeded */
971#line 742 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
972 tmpMeta[0] = omc_NFExpression_fromCref(threadData, _streamCref);
973#line 973 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
974 goto tmp4_done;
975 }
976 case 1: {
977 modelica_integer tmp8;
978 modelica_integer tmp9;
979 if (listEmpty(tmp5_1)((*(mmc_uint_t*)((void*)((char*)(tmp5_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp4_end;
980 tmpMeta[1] = MMC_CAR(tmp5_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp5_1) - 3))) +
(1)))))
;
981 tmpMeta[2] = MMC_CDR(tmp5_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp5_1) - 3))) +
(2)))))
;
982 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp4_end;
983 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
984 tmp8 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
985 if (1 != tmp8) goto tmp4_end;
986 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp4_end;
987 tmpMeta[4] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
988 tmpMeta[5] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
989 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp4_end;
990 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (4)))))
;
991 tmp9 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
992 if (1 != tmp9) goto tmp4_end;
993 if (!listEmpty(tmpMeta[5])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp4_end;
994 /* Pattern matching succeeded */
995#line 750 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
996 /* Pattern-matching assignment */
997#line 750 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
998 tmpMeta[1] = omc_NFConnectEquations_removeStreamSetElement(threadData, _streamCref, _reducedStreams);
999#line 750 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1000 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_3;
1001#line 750 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1002 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1003#line 750 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1004 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1005#line 750 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1006 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_3;
1007#line 750 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1008 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1009#line 750 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1010 if (!listEmpty(tmpMeta[3])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_3;
1011#line 750 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1012 _cr = tmpMeta[4];
1013#line 1013 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1014#line 752 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1015 tmpMeta[0] = omc_NFExpression_fromCref(threadData, _cr);
1016#line 1016 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1017 goto tmp4_done;
1018 }
1019 case 2: {
1020 modelica_integer tmp10;
1021 modelica_integer tmp11;
1022 if (listEmpty(tmp5_1)((*(mmc_uint_t*)((void*)((char*)(tmp5_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp4_end;
1023 tmpMeta[1] = MMC_CAR(tmp5_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp5_1) - 3))) +
(1)))))
;
1024 tmpMeta[2] = MMC_CDR(tmp5_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp5_1) - 3))) +
(2)))))
;
1025 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp4_end;
1026 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
1027 tmp10 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1028 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp4_end;
1029 tmpMeta[4] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
1030 tmpMeta[5] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1031 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp4_end;
1032 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (4)))))
;
1033 tmp11 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
1034 if (!listEmpty(tmpMeta[5])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp4_end;
1035 _f1 = tmp10 /* pattern as ty=enumeration(INSIDE, OUTSIDE) */;
1036 _f2 = tmp11 /* pattern as ty=enumeration(INSIDE, OUTSIDE) */;
1037 /* Pattern matching succeeded */
1038 /* Check guard condition after assignments */
1039 if (!((modelica_integer)_f1 != (modelica_integer)_f2)) goto tmp4_end;
1040#line 760 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1041 /* Pattern-matching assignment */
1042#line 760 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1043 tmpMeta[1] = omc_NFConnectEquations_removeStreamSetElement(threadData, _streamCref, _reducedStreams);
1044#line 760 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1045 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_3;
1046#line 760 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1047 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1048#line 760 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1049 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1050#line 760 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1051 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_3;
1052#line 760 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1053 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1054#line 760 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1055 if (!listEmpty(tmpMeta[3])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_3;
1056#line 760 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1057 _cr = tmpMeta[4];
1058#line 1058 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1059#line 762 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1060 tmpMeta[0] = omc_NFConnectEquations_evaluateInStream(threadData, _cr, _sets, _setsArray, _ctable);
1061#line 1061 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1062 goto tmp4_done;
1063 }
1064 case 3: {
1065
1066 /* Pattern matching succeeded */
1067#line 768 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1068 _outside = omc_List_splitOnTrue(threadData, _reducedStreams, boxvar_NFConnector_isOutside((void*)((char*)(&(boxvar_lit_NFConnector_isOutside).header
) + 3))
,&_inside);
1069#line 1069 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1070
1071#line 769 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1072 _inside = omc_NFConnectEquations_removeStreamSetElement(threadData, _streamCref, _inside);
1073#line 1073 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1074
1075#line 770 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1076 tmpMeta[1] = mmc_mk_box2(4, &NFExpression_REAL__desc, mmc_mk_realmmc_mk_rcon(_flowThreshold));
1077#line 770 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1078 _exp = omc_NFConnectEquations_streamSumEquationExp(threadData, _outside, _inside, tmpMeta[1]);
1079#line 1079 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1080#line 772 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1081 tmpMeta[0] = omc_NFConnectEquations_evaluateOperators(threadData, _exp, _sets, _setsArray, _ctable);
1082#line 1082 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1083 goto tmp4_done;
1084 }
1085 }
1086 goto tmp4_end;
1087 tmp4_end: ;
1088 }
1089 goto goto_3;
1090 goto_3:;
1091 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1092 goto tmp4_done;
1093 tmp4_done:;
1094 }
1095 }
1096 _exp = tmpMeta[0];
1097 _return: OMC_LABEL_UNUSED__attribute__((unused))
1098 return _exp;
1099}
1100PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_generateInStreamExp(threadData_t *threadData, modelica_metatype _streamCref, modelica_metatype _streams, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable, modelica_metatype _flowThreshold)
1101{
1102 modelica_real tmp1;
1103 modelica_metatype _exp = NULL((void*)0);
1104 tmp1 = mmc_unbox_real(_flowThreshold)mmc_prim_get_real(_flowThreshold);
1105 _exp = omc_NFConnectEquations_generateInStreamExp(threadData, _streamCref, _streams, _sets, _setsArray, _ctable, tmp1);
1106 /* skip box _exp; NFExpression */
1107 return _exp;
1108}
1109
1110PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_evaluateInStream(threadData_t *threadData, modelica_metatype _cref, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable)
1111{
1112 modelica_metatype _exp = NULL((void*)0);
1113 modelica_metatype _c = NULL((void*)0);
1114 modelica_metatype _sl = NULL((void*)0);
1115 modelica_integer _set;
1116 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1117 MMC_SO()mmc_check_stackoverflow(threadData);
1118 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1119 // _exp has no default value.
1120 // _c has no default value.
1121 // _sl has no default value.
1122 // _set has no default value.
1123#line 707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1124 tmpMeta[0] = mmc_mk_box6(3, &NFConnector_CONNECTOR__desc, _cref, _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)), mmc_mk_integermmc_mk_icon(1), mmc_mk_integermmc_mk_icon(((modelica_integer) 4)), _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)));
1125#line 707 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1126 _c = tmpMeta[0];
1127#line 1127 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1128
1129#line 1129 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1130 { /* matchcontinue expression */
1131 {
1132 volatile mmc_switch_type tmp3;
1133 int tmp4;
1134 tmp3 = 0;
1135 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) {
1136 tmp2_top:
1137 threadData->mmc_jumper = &new_mmc_jumper;
1138 for (; tmp3 < 2; tmp3++) {
1139 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1140 case 0: {
1141 /* Pattern matching succeeded */
1142#line 711 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1143 _set = omc_NFConnectionSets_ConnectionSets_findSetArrayIndex(threadData, _c, _sets);
1144#line 1144 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1145
1146#line 712 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1147 _sl = arrayGet(_setsArray, _set)nobox_arrayGet(threadData,_setsArray,_set);
1148#line 1148 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1149#line 1149 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1150 goto tmp2_done;
1151 }
1152 case 1: {
1153 /* Pattern matching succeeded */
1154#line 714 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1155 tmpMeta[0] = mmc_mk_cons(_c, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
1156#line 714 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1157 _sl = tmpMeta[0];
1158#line 1158 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1159#line 1159 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1160 goto tmp2_done;
1161 }
1162 }
1163 goto tmp2_end;
1164 tmp2_end: ;
1165 }
1166 goto goto_1;
1167 tmp2_done:
1168 (void)tmp3;
1169 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1170 goto tmp2_done2;
1171 goto_1:;
1172 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1173 if (++tmp3 < 2) {
1174 goto tmp2_top;
1175 }
1176 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1177 tmp2_done2:;
1178 }
1179 }
1180 ;
1181
1182#line 717 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1183 _exp = omc_NFConnectEquations_generateInStreamExp(threadData, _cref, _sl, _sets, _setsArray, _ctable, omc_Flags_getConfigReal(threadData, _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))));
1184#line 1184 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1185 _return: OMC_LABEL_UNUSED__attribute__((unused))
1186 return _exp;
1187}
1188
1189PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_evaluateOperatorArrayConstructorExp(threadData_t *threadData, modelica_metatype _exp, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable)
1190{
1191 modelica_metatype _evalExp = NULL((void*)0);
1192 modelica_boolean _expanded;
1193 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1194 MMC_SO()mmc_check_stackoverflow(threadData);
1195 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1196 // _evalExp has no default value.
1197 // _expanded has no default value.
1198#line 684 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1199 _evalExp = omc_NFExpandExp_expand(threadData, _exp ,&_expanded);
1200#line 1200 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1201
1202#line 686 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1203 if((!_expanded))
1204#line 686 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1205 {
1206#line 687 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1207 tmpMeta[0] = stringAppend(_OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)),omc_NFExpression_toString(threadData, _exp));
1208#line 687 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1209 omc_Error_addInternalError(threadData, tmpMeta[0], _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)));
1210#line 1210 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1211 }
1212
1213#line 692 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1214 _evalExp = omc_NFConnectEquations_evaluateOperators(threadData, _evalExp, _sets, _setsArray, _ctable);
1215#line 1215 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1216 _return: OMC_LABEL_UNUSED__attribute__((unused))
1217 return _evalExp;
1218}
1219
1220PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_evaluateOperatorReductionExp(threadData_t *threadData, modelica_metatype _exp, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable)
1221{
1222 modelica_metatype _evalExp = NULL((void*)0);
1223 modelica_metatype _call = NULL((void*)0);
1224 modelica_metatype _fn = NULL((void*)0);
1225 modelica_metatype _ty = NULL((void*)0);
1226 modelica_metatype _arg = NULL((void*)0);
1227 modelica_metatype _iter_exp = NULL((void*)0);
1228 modelica_metatype _iters = NULL((void*)0);
1229 modelica_metatype _iter_node = NULL((void*)0);
1230 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
1231 MMC_SO()mmc_check_stackoverflow(threadData);
1232 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1233 // _evalExp has no default value.
1234 // _call has no default value.
1235 // _fn has no default value.
1236 // _ty has no default value.
1237 // _arg has no default value.
1238 // _iter_exp has no default value.
1239 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1240 _iters = tmpMeta[0];
1241 // _iter_node has no default value.
1242#line 1242 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1243 { /* match expression */
1244 modelica_metatype tmp3_1;
1245 tmp3_1 = _exp;
1246 {
1247 volatile mmc_switch_type tmp3;
1248 int tmp4;
1249 tmp3 = 0;
1250 for (; tmp3 < 1; tmp3++) {
1251 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1252 case 0: {
1253 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,12,1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((1 +1) <<
10) + (((12 +3) & 255) << 2)))
== 0) goto tmp2_end;
1254 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1255 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],6,7)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((7 +1)
<< 10) + (((6 +3) & 255) << 2)))
== 0) goto tmp2_end;
1256
1257 _call = tmpMeta[2];
1258 /* Pattern matching succeeded */
1259#line 650 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1260 _ty = omc_NFExpression_typeOf(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_call) - 3))) +
(5)))))
));
1261#line 1261 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1262
1263#line 652 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1264 {
1265#line 652 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1266 modelica_metatype _iter;
1267#line 652 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1268 for (tmpMeta[2] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_call) - 3))) +
(6)))))
); !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)))))
)
1269#line 652 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1270 {
1271#line 652 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1272 _iter = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
1273#line 653 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1274 /* Pattern-matching assignment */
1275#line 653 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1276 tmpMeta[3] = _iter;
1277#line 653 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1278 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (1)))))
;
1279#line 653 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1280 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
1281#line 653 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1282 _iter_node = tmpMeta[4];
1283#line 653 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1284 _iter_exp = tmpMeta[5];
1285#line 1285 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1286
1287#line 655 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1288 if((omc_NFComponent_Component_variability(threadData, omc_NFInstNode_InstNode_component(threadData, _iter_node)) > 3))
1289#line 655 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1290 {
1291#line 656 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1292 fputs(MMC_STRINGDATA(_OMC_LIT29)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT29).header) + 3))) - 3)))->data)
,stdoutstdout);
1293#line 1293 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1294
1295#line 657 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1296 goto goto_1;
1297#line 1297 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1298 }
1299
1300#line 660 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1301 _iter_exp = omc_NFCeval_evalExp(threadData, _iter_exp, _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)));
1302#line 1302 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1303
1304#line 661 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1305 _ty = omc_NFType_liftArrayLeftList(threadData, _ty, omc_NFType_arrayDims(threadData, omc_NFExpression_typeOf(threadData, _iter_exp)));
1306#line 1306 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1307
1308#line 662 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1309 tmpMeta[4] = mmc_mk_box2(0, _iter_node, _iter_exp);
1310#line 662 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1311 tmpMeta[3] = mmc_mk_cons(tmpMeta[4], _iters);
1312#line 662 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1313 _iters = tmpMeta[3];
1314#line 1314 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1315 }
1316 }
1317
1318#line 665 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1319 _iters = listReverseInPlace(_iters);
1320#line 1320 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1321
1322#line 666 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1323 _arg = omc_NFExpandExp_expandArrayConstructor(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_call) - 3))) +
(5)))))
), _ty, _iters, NULL((void*)0));
1324#line 1324 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1325#line 667 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1326 tmpMeta[2] = mmc_mk_cons(_arg, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
1327#line 667 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1328 tmpMeta[3] = mmc_mk_box2(15, &NFExpression_CALL__desc, omc_NFCall_Call_makeTypedCall(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_call) - 3))) +
(2)))))
), tmpMeta[2], mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_call) - 3))) + (4)))))))) >> 1)
, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_call) - 3))) +
(3)))))
)));
1329#line 667 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1330 tmpMeta[1] = tmpMeta[3];
1331#line 1331 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1332 goto tmp2_done;
1333 }
1334 }
1335 goto tmp2_end;
1336 tmp2_end: ;
1337 }
1338 goto goto_1;
1339 goto_1:;
1340 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1341 goto tmp2_done;
1342 tmp2_done:;
1343 }
1344 }
1345 _evalExp = tmpMeta[1];
1346
1347#line 672 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1348 _evalExp = omc_NFConnectEquations_evaluateOperators(threadData, _evalExp, _sets, _setsArray, _ctable);
1349#line 1349 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1350 _return: OMC_LABEL_UNUSED__attribute__((unused))
1351 return _evalExp;
1352}
1353
1354PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFConnectEquations_isStreamCall(threadData_t *threadData, modelica_metatype _exp)
1355{
1356 modelica_boolean _streamCall;
1357 modelica_boolean tmp1 = 0;
1358 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1359 MMC_SO()mmc_check_stackoverflow(threadData);
1360 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1361 // _streamCall has no default value.
1362#line 1362 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1363 { /* match expression */
1364 modelica_metatype tmp4_1;
1365 tmp4_1 = _exp;
1366 {
1367 volatile mmc_switch_type tmp4;
1368 int tmp5;
1369 tmp4 = 0;
1370 for (; tmp4 < 2; tmp4++) {
1371 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1372 case 0: {
1373 modelica_boolean tmp6 = 0;
1374 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,12,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((12 +3) & 255) << 2)))
== 0) goto tmp3_end;
1375
1376 /* Pattern matching succeeded */
1377#line 1377 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1378 { /* match expression */
1379 modelica_metatype tmp9_1;
1380 tmp9_1 = omc_NFFunction_Function_name(threadData, omc_NFCall_Call_typedFunction(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_exp), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_exp) - 3))) + (
2)))))
)));
1381 {
1382 volatile mmc_switch_type tmp9;
1383 int tmp10;
1384 tmp9 = 0;
1385 for (; tmp9 < 3; tmp9++) {
1386 switch (MMC_SWITCH_CAST(tmp9)(tmp9)) {
1387 case 0: {
1388 if (mmc__uniontype__metarecord__typedef__equal(tmp9_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp9_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp8_end;
1389 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp9_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp9_1) - 3))) +
(2)))))
;
1390 if (8 != MMC_STRLEN(tmpMeta[0])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT31)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT31).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[0])(((struct mmc_string*)((void*)((char*)(tmpMeta[0]) - 3)))->
data)
) != 0) goto tmp8_end;
1391 /* Pattern matching succeeded */
1392#line 624 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1393 tmp6 = 1;
1394#line 1394 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1395 goto tmp8_done;
1396 }
1397 case 1: {
1398 if (mmc__uniontype__metarecord__typedef__equal(tmp9_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp9_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp8_end;
1399 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp9_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp9_1) - 3))) +
(2)))))
;
1400 if (12 != MMC_STRLEN(tmpMeta[0])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT32)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT32).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[0])(((struct mmc_string*)((void*)((char*)(tmpMeta[0]) - 3)))->
data)
) != 0) goto tmp8_end;
1401 /* Pattern matching succeeded */
1402#line 625 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1403 tmp6 = 1;
1404#line 1404 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1405 goto tmp8_done;
1406 }
1407 case 2: {
1408
1409 /* Pattern matching succeeded */
1410#line 626 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1411 tmp6 = 0;
1412#line 1412 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1413 goto tmp8_done;
1414 }
1415 }
1416 goto tmp8_end;
1417 tmp8_end: ;
1418 }
1419 goto goto_7;
1420 goto_7:;
1421 goto goto_2;
1422 goto tmp8_done;
1423 tmp8_done:;
1424 }
1425 }tmp1 = tmp6;
1426 goto tmp3_done;
1427 }
1428 case 1: {
1429
1430 /* Pattern matching succeeded */
1431#line 629 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1432 tmp1 = 0;
1433#line 1433 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1434 goto tmp3_done;
1435 }
1436 }
1437 goto tmp3_end;
1438 tmp3_end: ;
1439 }
1440 goto goto_2;
1441 goto_2:;
1442 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1443 goto tmp3_done;
1444 tmp3_done:;
1445 }
1446 }
1447 _streamCall = tmp1;
1448 _return: OMC_LABEL_UNUSED__attribute__((unused))
1449 return _streamCall;
1450}
1451PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_isStreamCall(threadData_t *threadData, modelica_metatype _exp)
1452{
1453 modelica_boolean _streamCall;
1454 modelica_metatype out_streamCall;
1455 _streamCall = omc_NFConnectEquations_isStreamCall(threadData, _exp);
1456 out_streamCall = mmc_mk_icon(_streamCall);
1457 return out_streamCall;
1458}
1459
1460PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_makePositiveMaxCall(threadData_t *threadData, modelica_metatype _flowExp, modelica_metatype _element, modelica_metatype _flowThreshold)
1461{
1462 modelica_metatype _positiveMaxCall = NULL((void*)0);
1463 modelica_metatype _flow_node = NULL((void*)0);
1464 modelica_metatype _nominal_oexp = NULL((void*)0);
1465 modelica_metatype _nominal_exp = NULL((void*)0);
1466 modelica_metatype _flow_threshold = NULL((void*)0);
1467 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1468 MMC_SO()mmc_check_stackoverflow(threadData);
1469 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1470 // _positiveMaxCall has no default value.
1471 // _flow_node has no default value.
1472 // _nominal_oexp has no default value.
1473 // _nominal_exp has no default value.
1474 // _flow_threshold has no default value.
1475#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1476 _flow_node = omc_NFComponentRef_node(threadData, omc_NFConnectEquations_associatedFlowCref(threadData, omc_NFConnector_name(threadData, _element)));
1477#line 1477 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1478
1479#line 598 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1480 _nominal_oexp = omc_NFClass_Class_lookupAttributeValue(threadData, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)), omc_NFInstNode_InstNode_getClass(threadData, _flow_node));
1481#line 1481 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1482
1483#line 600 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1484 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)
)
1485#line 600 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1486 {
1487#line 601 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1488 /* Pattern-matching assignment */
1489#line 601 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1490 tmpMeta[0] = _nominal_oexp;
1491#line 601 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1492 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);};
1493#line 601 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1494 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1495#line 601 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1496 _nominal_exp = tmpMeta[1];
1497#line 1497 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1498
1499#line 602 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1500 _nominal_exp = omc_NFExpression_getBindingExp(threadData, _nominal_exp);
1501#line 1501 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1502
1503#line 603 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1504 tmpMeta[0] = mmc_mk_box4(18, &NFExpression_BINARY__desc, _flowThreshold, omc_NFOperator_makeMul(threadData, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))), _nominal_exp);
1505#line 603 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1506 _flow_threshold = tmpMeta[0];
1507#line 1507 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1508 }
1509 else
1510 {
1511#line 605 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1512 _flow_threshold = _flowThreshold;
1513#line 1513 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1514 }
1515
1516#line 608 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1517 tmpMeta[0] = mmc_mk_cons(_flowExp, mmc_mk_cons(_flow_threshold, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
1518#line 608 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1519 tmpMeta[1] = mmc_mk_box2(15, &NFExpression_CALL__desc, omc_NFCall_Call_makeTypedCall(threadData, _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)), tmpMeta[0], omc_NFConnector_variability(threadData, _element), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_OMC_LIT47), 8))(*(void**)(((void*)((void**)(((void*)((char*)(((void*)((char*
)(&(_OMC_LIT_STRUCT47).header) + 3))) - 3))) + (8)))))
)));
1520#line 608 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1521 _positiveMaxCall = tmpMeta[1];
1522#line 1522 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1523
1524#line 611 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1525 setGlobalRoot(((modelica_integer) 26), _OMC_LIT48)boxptr_setGlobalRoot(threadData,mmc_mk_icon(((modelica_integer
) 26)),((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)
))
;
1526#line 1526 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1527 _return: OMC_LABEL_UNUSED__attribute__((unused))
1528 return _positiveMaxCall;
1529}
1530
1531PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_makeInStreamCall(threadData_t *threadData, modelica_metatype _streamExp)
1532{
1533 modelica_metatype _inStreamCall = NULL((void*)0);
1534 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1535 MMC_SO()mmc_check_stackoverflow(threadData);
1536 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1537 // _inStreamCall has no default value.
1538#line 582 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1539 tmpMeta[0] = mmc_mk_cons(_streamExp, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
1540#line 582 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1541 tmpMeta[1] = mmc_mk_box2(15, &NFExpression_CALL__desc, omc_NFCall_Call_makeTypedCall(threadData, _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)), tmpMeta[0], omc_NFExpression_variability(threadData, _streamExp), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_OMC_LIT50), 8))(*(void**)(((void*)((void**)(((void*)((char*)(((void*)((char*
)(&(_OMC_LIT_STRUCT50).header) + 3))) - 3))) + (8)))))
)));
1542#line 582 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1543 _inStreamCall = tmpMeta[1];
1544#line 1544 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1545 _return: OMC_LABEL_UNUSED__attribute__((unused))
1546 return _inStreamCall;
1547}
1548
1549PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_sumInside2(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold)
1550{
1551 modelica_metatype _exp = NULL((void*)0);
1552 modelica_metatype _flow_exp = NULL((void*)0);
1553 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1554 MMC_SO()mmc_check_stackoverflow(threadData);
1555 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1556 // _exp has no default value.
1557 // _flow_exp has no default value.
1558#line 571 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1559 _flow_exp = omc_NFConnectEquations_flowExp(threadData, _element);
1560#line 1560 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1561
1562#line 572 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1563 tmpMeta[0] = mmc_mk_box3(19, &NFExpression_UNARY__desc, omc_NFOperator_makeUMinus(threadData, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))), _flow_exp);
1564#line 572 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1565 _flow_exp = tmpMeta[0];
1566#line 1566 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1567
1568#line 573 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1569 _exp = omc_NFConnectEquations_makePositiveMaxCall(threadData, _flow_exp, _element, _flowThreshold);
1570#line 1570 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1571 _return: OMC_LABEL_UNUSED__attribute__((unused))
1572 return _exp;
1573}
1574
1575PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_sumOutside2(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold)
1576{
1577 modelica_metatype _exp = NULL((void*)0);
1578 modelica_metatype _flow_exp = NULL((void*)0);
1579 MMC_SO()mmc_check_stackoverflow(threadData);
1580 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1581 // _exp has no default value.
1582 // _flow_exp has no default value.
1583#line 557 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1584 _flow_exp = omc_NFConnectEquations_flowExp(threadData, _element);
1585#line 1585 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1586
1587#line 558 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1588 _exp = omc_NFConnectEquations_makePositiveMaxCall(threadData, _flow_exp, _element, _flowThreshold);
1589#line 1589 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1590 _return: OMC_LABEL_UNUSED__attribute__((unused))
1591 return _exp;
1592}
1593
1594PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_sumInside1(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold)
1595{
1596 modelica_metatype _exp = NULL((void*)0);
1597 modelica_metatype _stream_exp = NULL((void*)0);
1598 modelica_metatype _flow_exp = NULL((void*)0);
1599 modelica_metatype _flow_threshold = NULL((void*)0);
1600 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1601 MMC_SO()mmc_check_stackoverflow(threadData);
1602 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1603 // _exp has no default value.
1604 // _stream_exp has no default value.
1605 // _flow_exp has no default value.
1606 // _flow_threshold has no default value.
1607#line 541 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1608 _stream_exp = omc_NFConnectEquations_streamFlowExp(threadData, _element ,&_flow_exp);
1609#line 1609 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1610
1611#line 542 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1612 tmpMeta[0] = mmc_mk_box3(19, &NFExpression_UNARY__desc, omc_NFOperator_makeUMinus(threadData, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))), _flow_exp);
1613#line 542 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1614 _flow_exp = tmpMeta[0];
1615#line 1615 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1616
1617#line 543 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1618 tmpMeta[0] = mmc_mk_box4(18, &NFExpression_BINARY__desc, omc_NFConnectEquations_makePositiveMaxCall(threadData, _flow_exp, _element, _flowThreshold), omc_NFOperator_makeMul(threadData, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))), _stream_exp);
1619#line 543 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1620 _exp = tmpMeta[0];
1621#line 1621 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1622 _return: OMC_LABEL_UNUSED__attribute__((unused))
1623 return _exp;
1624}
1625
1626PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_sumOutside1(threadData_t *threadData, modelica_metatype _element, modelica_metatype _flowThreshold)
1627{
1628 modelica_metatype _exp = NULL((void*)0);
1629 modelica_metatype _stream_exp = NULL((void*)0);
1630 modelica_metatype _flow_exp = NULL((void*)0);
1631 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1632 MMC_SO()mmc_check_stackoverflow(threadData);
1633 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1634 // _exp has no default value.
1635 // _stream_exp has no default value.
1636 // _flow_exp has no default value.
1637#line 526 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1638 _stream_exp = omc_NFConnectEquations_streamFlowExp(threadData, _element ,&_flow_exp);
1639#line 1639 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1640
1641#line 527 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1642 tmpMeta[0] = mmc_mk_cons(_stream_exp, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
1643#line 527 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1644 tmpMeta[1] = mmc_mk_box2(15, &NFExpression_CALL__desc, omc_NFCall_Call_makeTypedCall(threadData, _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)), tmpMeta[0], omc_NFExpression_variability(threadData, _stream_exp), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_OMC_LIT50), 8))(*(void**)(((void*)((void**)(((void*)((char*)(((void*)((char*
)(&(_OMC_LIT_STRUCT50).header) + 3))) - 3))) + (8)))))
)));
1645#line 527 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1646 tmpMeta[2] = mmc_mk_box4(18, &NFExpression_BINARY__desc, omc_NFConnectEquations_makePositiveMaxCall(threadData, _flow_exp, _element, _flowThreshold), omc_NFOperator_makeMul(threadData, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))), tmpMeta[1]);
1647#line 527 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1648 _exp = tmpMeta[2];
1649#line 1649 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1650 _return: OMC_LABEL_UNUSED__attribute__((unused))
1651 return _exp;
1652}
1653
1654PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_flowExp(threadData_t *threadData, modelica_metatype _element)
1655{
1656 modelica_metatype _flowExp = NULL((void*)0);
1657 modelica_metatype _flow_cr = NULL((void*)0);
1658 MMC_SO()mmc_check_stackoverflow(threadData);
1659 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1660 // _flowExp has no default value.
1661 // _flow_cr has no default value.
1662#line 512 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1663 _flow_cr = omc_NFConnectEquations_associatedFlowCref(threadData, omc_NFConnector_name(threadData, _element));
1664#line 1664 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1665
1666#line 513 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1667 _flowExp = omc_NFExpression_fromCref(threadData, _flow_cr);
1668#line 1668 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1669 _return: OMC_LABEL_UNUSED__attribute__((unused))
1670 return _flowExp;
1671}
1672
1673PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_streamFlowExp(threadData_t *threadData, modelica_metatype _element, modelica_metatype *out_flowExp)
1674{
1675 modelica_metatype _streamExp = NULL((void*)0);
1676 modelica_metatype _flowExp = NULL((void*)0);
1677 modelica_metatype _stream_cr = NULL((void*)0);
1678 MMC_SO()mmc_check_stackoverflow(threadData);
1679 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1680 // _streamExp has no default value.
1681 // _flowExp has no default value.
1682 // _stream_cr has no default value.
1683#line 500 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1684 _stream_cr = omc_NFConnector_name(threadData, _element);
1685#line 1685 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1686
1687#line 501 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1688 _streamExp = omc_NFExpression_fromCref(threadData, _stream_cr);
1689#line 1689 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1690
1691#line 502 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1692 _flowExp = omc_NFExpression_fromCref(threadData, omc_NFConnectEquations_associatedFlowCref(threadData, _stream_cr));
1693#line 1693 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1694 _return: OMC_LABEL_UNUSED__attribute__((unused))
1695 if (out_flowExp) { *out_flowExp = _flowExp; }
1696 return _streamExp;
1697}
1698
1699PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_sumMap(threadData_t *threadData, modelica_metatype _elements, modelica_fnptr _func, modelica_metatype _flowThreshold)
1700{
1701 modelica_metatype _exp = NULL((void*)0);
1702 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1703 MMC_SO()mmc_check_stackoverflow(threadData);
1704 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1705 // _exp has no default value.
1706#line 486 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1707 _exp = (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)))))
), listHead(_elements)boxptr_listHead(threadData,_elements), _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, listHead(_elements)boxptr_listHead(threadData,_elements), _flowThreshold);
1708#line 1708 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1709
1710#line 487 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1711 {
1712#line 487 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1713 modelica_metatype _e;
1714#line 487 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1715 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)))))
)
1716#line 487 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1717 {
1718#line 487 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1719 _e = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1720#line 488 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1721 tmpMeta[1] = mmc_mk_box4(18, &NFExpression_BINARY__desc, (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, _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, _flowThreshold), omc_NFOperator_makeAdd(threadData, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))), _exp);
1722#line 488 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1723 _exp = tmpMeta[1];
1724#line 1724 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1725 }
1726 }
1727 _return: OMC_LABEL_UNUSED__attribute__((unused))
1728 return _exp;
1729}
1730
1731PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_streamSumEquationExp(threadData_t *threadData, modelica_metatype _outsideElements, modelica_metatype _insideElements, modelica_metatype _flowThreshold)
1732{
1733 modelica_metatype _sumExp = NULL((void*)0);
1734 modelica_metatype _outside_sum1 = NULL((void*)0);
1735 modelica_metatype _outside_sum2 = NULL((void*)0);
1736 modelica_metatype _inside_sum1 = NULL((void*)0);
1737 modelica_metatype _inside_sum2 = NULL((void*)0);
1738 modelica_metatype _res = NULL((void*)0);
1739 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1740 MMC_SO()mmc_check_stackoverflow(threadData);
1741 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1742 // _sumExp has no default value.
1743 // _outside_sum1 has no default value.
1744 // _outside_sum2 has no default value.
1745 // _inside_sum1 has no default value.
1746 // _inside_sum2 has no default value.
1747 // _res has no default value.
1748#line 449 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1749 if(listEmpty(_outsideElements)((*(mmc_uint_t*)((void*)((char*)(_outsideElements) - 3))) == (
((0) << 10) + (((0) & 255) << 2)))
)
1750#line 449 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1751 {
1752#line 451 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1753 _inside_sum1 = omc_NFConnectEquations_sumMap(threadData, _insideElements, boxvar_NFConnectEquations_sumInside1((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumInside1
).header) + 3))
, _flowThreshold);
1754#line 1754 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1755
1756#line 452 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1757 _inside_sum2 = omc_NFConnectEquations_sumMap(threadData, _insideElements, boxvar_NFConnectEquations_sumInside2((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumInside2
).header) + 3))
, _flowThreshold);
1758#line 1758 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1759
1760#line 453 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1761 tmpMeta[0] = mmc_mk_box4(18, &NFExpression_BINARY__desc, _inside_sum1, omc_NFOperator_makeDiv(threadData, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))), _inside_sum2);
1762#line 453 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1763 _sumExp = tmpMeta[0];
1764#line 1764 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1765 }
1766 else
1767 {
1768 if(listEmpty(_insideElements)((*(mmc_uint_t*)((void*)((char*)(_insideElements) - 3))) == (
((0) << 10) + (((0) & 255) << 2)))
)
1769 {
1770#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1771 _outside_sum1 = omc_NFConnectEquations_sumMap(threadData, _outsideElements, boxvar_NFConnectEquations_sumOutside1((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumOutside1
).header) + 3))
, _flowThreshold);
1772#line 1772 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1773
1774#line 457 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1775 _outside_sum2 = omc_NFConnectEquations_sumMap(threadData, _outsideElements, boxvar_NFConnectEquations_sumOutside2((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumOutside2
).header) + 3))
, _flowThreshold);
1776#line 1776 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1777
1778#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1779 tmpMeta[0] = mmc_mk_box4(18, &NFExpression_BINARY__desc, _outside_sum1, omc_NFOperator_makeDiv(threadData, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))), _outside_sum2);
1780#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1781 _sumExp = tmpMeta[0];
1782#line 1782 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1783 }
1784 else
1785 {
1786#line 461 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1787 _outside_sum1 = omc_NFConnectEquations_sumMap(threadData, _outsideElements, boxvar_NFConnectEquations_sumOutside1((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumOutside1
).header) + 3))
, _flowThreshold);
1788#line 1788 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1789
1790#line 462 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1791 _outside_sum2 = omc_NFConnectEquations_sumMap(threadData, _outsideElements, boxvar_NFConnectEquations_sumOutside2((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumOutside2
).header) + 3))
, _flowThreshold);
1792#line 1792 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1793
1794#line 463 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1795 _inside_sum1 = omc_NFConnectEquations_sumMap(threadData, _insideElements, boxvar_NFConnectEquations_sumInside1((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumInside1
).header) + 3))
, _flowThreshold);
1796#line 1796 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1797
1798#line 464 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1799 _inside_sum2 = omc_NFConnectEquations_sumMap(threadData, _insideElements, boxvar_NFConnectEquations_sumInside2((void*)((char*)(&(boxvar_lit_NFConnectEquations_sumInside2
).header) + 3))
, _flowThreshold);
1800#line 1800 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1801
1802#line 465 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1803 tmpMeta[0] = mmc_mk_box4(18, &NFExpression_BINARY__desc, _outside_sum1, omc_NFOperator_makeAdd(threadData, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))), _inside_sum1);
1804#line 465 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1805 tmpMeta[1] = mmc_mk_box4(18, &NFExpression_BINARY__desc, _outside_sum2, omc_NFOperator_makeAdd(threadData, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))), _inside_sum2);
1806#line 465 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1807 tmpMeta[2] = mmc_mk_box4(18, &NFExpression_BINARY__desc, tmpMeta[0], omc_NFOperator_makeDiv(threadData, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))), tmpMeta[1]);
1808#line 465 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1809 _sumExp = tmpMeta[2];
1810#line 1810 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1811 }
1812 }
1813 _return: OMC_LABEL_UNUSED__attribute__((unused))
1814 return _sumExp;
1815}
1816
1817PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_streamEquationGeneral(threadData_t *threadData, modelica_metatype _outsideElements, modelica_metatype _insideElements, modelica_metatype _flowThreshold)
1818{
1819 modelica_metatype _equations = NULL((void*)0);
1820 modelica_metatype _outside = NULL((void*)0);
1821 modelica_metatype _cref_exp = NULL((void*)0);
1822 modelica_metatype _res = NULL((void*)0);
1823 modelica_metatype _src = NULL((void*)0);
1824 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1825 MMC_SO()mmc_check_stackoverflow(threadData);
1826 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1827 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1828 _equations = tmpMeta[0];
1829 _outside = _outsideElements;
Value stored to '_outside' is never read
1830 // _cref_exp has no default value.
1831 // _res has no default value.
1832 // _src has no default value.
1833#line 422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1834 {
1835#line 422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1836 modelica_metatype _e;
1837#line 422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1838 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)))))
)
1839#line 422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1840 {
1841#line 422 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1842 _e = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1843#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1844 _cref_exp = omc_NFExpression_fromCref(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_e) - 3))) + (2
)))))
));
1845#line 1845 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1846
1847#line 424 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1848 _outside = omc_NFConnectEquations_removeStreamSetElement(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_e) - 3))) + (2
)))))
), _outsideElements);
1849#line 1849 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1850
1851#line 425 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1852 _res = omc_NFConnectEquations_streamSumEquationExp(threadData, _outside, _insideElements, _flowThreshold);
1853#line 1853 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1854
1855#line 426 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1856 _src = omc_ElementSource_addAdditionalComment(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_e) - 3))) + (6
)))))
), _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)));
1857#line 1857 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1858
1859#line 427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1860 tmpMeta[3] = mmc_mk_box5(3, &NFEquation_EQUALITY__desc, _cref_exp, _res, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)), _src);
1861#line 427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1862 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], _equations);
1863#line 427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1864 _equations = tmpMeta[2];
1865#line 1865 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1866 }
1867 }
1868 _return: OMC_LABEL_UNUSED__attribute__((unused))
1869 return _equations;
1870}
1871
1872PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_generateStreamEquations(threadData_t *threadData, modelica_metatype _elements, modelica_metatype _flowThreshold)
1873{
1874 modelica_metatype _equations = NULL((void*)0);
1875 modelica_metatype tmpMeta[11] __attribute__((unused)) = {0};
1876 MMC_SO()mmc_check_stackoverflow(threadData);
1877 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1878 // _equations has no default value.
1879#line 1879 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1880 { /* match expression */
1881 modelica_metatype tmp3_1;
1882 tmp3_1 = _elements;
1883 {
1884 modelica_metatype _cr1 = NULL((void*)0);
1885 modelica_metatype _cr2 = NULL((void*)0);
1886 modelica_metatype _src = NULL((void*)0);
1887 modelica_metatype _src1 = NULL((void*)0);
1888 modelica_metatype _src2 = NULL((void*)0);
1889 modelica_metatype _cref1 = NULL((void*)0);
1890 modelica_metatype _cref2 = NULL((void*)0);
1891 modelica_metatype _e1 = NULL((void*)0);
1892 modelica_metatype _e2 = NULL((void*)0);
1893 modelica_metatype _inside = NULL((void*)0);
1894 modelica_metatype _outside = NULL((void*)0);
1895 volatile mmc_switch_type tmp3;
1896 int tmp4;
1897 // _cr1 has no default value.
1898 // _cr2 has no default value.
1899 // _src has no default value.
1900 // _src1 has no default value.
1901 // _src2 has no default value.
1902 // _cref1 has no default value.
1903 // _cref2 has no default value.
1904 // _e1 has no default value.
1905 // _e2 has no default value.
1906 // _inside has no default value.
1907 // _outside has no default value.
1908 tmp3 = 0;
1909 for (; tmp3 < 5; tmp3++) {
1910 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1911 case 0: {
1912 modelica_integer tmp5;
1913 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1914 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1915 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1916 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
1917 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
1918 tmp5 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1919 if (1 != tmp5) goto tmp2_end;
1920 if (!listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1921 /* Pattern matching succeeded */
1922#line 371 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1923 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1924#line 371 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1925 tmpMeta[0] = tmpMeta[1];
1926#line 1926 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1927 goto tmp2_done;
1928 }
1929 case 1: {
1930 modelica_integer tmp6;
1931 modelica_integer tmp7;
1932 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1933 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1934 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1935 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
1936 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
1937 tmp6 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1938 if (1 != tmp6) goto tmp2_end;
1939 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1940 tmpMeta[4] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
1941 tmpMeta[5] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1942 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
1943 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (4)))))
;
1944 tmp7 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
1945 if (1 != tmp7) goto tmp2_end;
1946 if (!listEmpty(tmpMeta[5])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1947 /* Pattern matching succeeded */
1948#line 375 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1949 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1950#line 375 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1951 tmpMeta[0] = tmpMeta[1];
1952#line 1952 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1953 goto tmp2_done;
1954 }
1955 case 2: {
1956 modelica_integer tmp8;
1957 modelica_integer tmp9;
1958 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1959 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1960 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1961 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
1962 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1963 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
1964 tmp8 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1965 if (2 != tmp8) goto tmp2_end;
1966 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
1967 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1968 tmpMeta[6] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
1969 tmpMeta[7] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1970 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[6],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
1971 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (2)))))
;
1972 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (4)))))
;
1973 tmp9 = mmc_unbox_integer(tmpMeta[9])(((mmc_sint_t) (tmpMeta[9])) >> 1);
1974 if (2 != tmp9) goto tmp2_end;
1975 tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (6)))))
;
1976 if (!listEmpty(tmpMeta[7])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[7]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1977 _cr1 = tmpMeta[3];
1978 _src1 = tmpMeta[5];
1979 _cr2 = tmpMeta[8];
1980 _src2 = tmpMeta[10];
1981 /* Pattern matching succeeded */
1982#line 383 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1983 _cref1 = omc_NFExpression_fromCref(threadData, _cr1);
1984#line 1984 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1985
1986#line 384 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1987 _cref2 = omc_NFExpression_fromCref(threadData, _cr2);
1988#line 1988 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1989
1990#line 385 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1991 tmpMeta[1] = mmc_mk_cons(_cref2, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
1992#line 385 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1993 tmpMeta[2] = mmc_mk_box2(15, &NFExpression_CALL__desc, omc_NFCall_Call_makeTypedCall(threadData, _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)), tmpMeta[1], omc_NFExpression_variability(threadData, _cref2), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_OMC_LIT50), 8))(*(void**)(((void*)((void**)(((void*)((char*)(((void*)((char*
)(&(_OMC_LIT_STRUCT50).header) + 3))) - 3))) + (8)))))
)));
1994#line 385 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1995 _e1 = tmpMeta[2];
1996#line 1996 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
1997
1998#line 386 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
1999 tmpMeta[1] = mmc_mk_cons(_cref1, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2000#line 386 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2001 tmpMeta[2] = mmc_mk_box2(15, &NFExpression_CALL__desc, omc_NFCall_Call_makeTypedCall(threadData, _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)), tmpMeta[1], omc_NFExpression_variability(threadData, _cref1), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_OMC_LIT50), 8))(*(void**)(((void*)((void**)(((void*)((char*)(((void*)((char*
)(&(_OMC_LIT_STRUCT50).header) + 3))) - 3))) + (8)))))
)));
2002#line 386 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2003 _e2 = tmpMeta[2];
2004#line 2004 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2005
2006#line 387 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2007 _src = omc_ElementSource_mergeSources(threadData, _src1, _src2);
2008#line 2008 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2009#line 388 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2010 tmpMeta[2] = mmc_mk_box5(3, &NFEquation_EQUALITY__desc, _cref1, _e1, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)), _src);
2011#line 388 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2012 tmpMeta[3] = mmc_mk_box5(3, &NFEquation_EQUALITY__desc, _cref2, _e2, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)), _src);
2013#line 388 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2014 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
2015#line 388 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2016 tmpMeta[0] = tmpMeta[1];
2017#line 2017 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2018 goto tmp2_done;
2019 }
2020 case 3: {
2021 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2022 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2023 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2024 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2025 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2026 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
2027 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2028 tmpMeta[5] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
2029 tmpMeta[6] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
2030 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2031 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (2)))))
;
2032 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (6)))))
;
2033 if (!listEmpty(tmpMeta[6])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2034 _cr1 = tmpMeta[3];
2035 _src1 = tmpMeta[4];
2036 _cr2 = tmpMeta[7];
2037 _src2 = tmpMeta[8];
2038 /* Pattern matching succeeded */
2039#line 397 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2040 _src = omc_ElementSource_mergeSources(threadData, _src1, _src2);
2041#line 2041 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2042#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2043 tmpMeta[2] = mmc_mk_box4(4, &NFEquation_CREF__EQUALITY__desc, _cr1, _cr2, _src);
2044#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2045 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2046#line 398 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2047 tmpMeta[0] = tmpMeta[1];
2048#line 2048 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2049 goto tmp2_done;
2050 }
2051 case 4: {
2052
2053 /* Pattern matching succeeded */
2054#line 404 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2055 _outside = omc_List_splitOnTrue(threadData, _elements, boxvar_NFConnector_isOutside((void*)((char*)(&(boxvar_lit_NFConnector_isOutside).header
) + 3))
,&_inside);
2056#line 2056 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2057#line 405 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2058 tmpMeta[0] = omc_NFConnectEquations_streamEquationGeneral(threadData, _outside, _inside, _flowThreshold);
2059#line 2059 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2060 goto tmp2_done;
2061 }
2062 }
2063 goto tmp2_end;
2064 tmp2_end: ;
2065 }
2066 goto goto_1;
2067 goto_1:;
2068 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2069 goto tmp2_done;
2070 tmp2_done:;
2071 }
2072 }
2073 _equations = tmpMeta[0];
2074 _return: OMC_LABEL_UNUSED__attribute__((unused))
2075 return _equations;
2076}
2077
2078PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_makeFlowExp(threadData_t *threadData, modelica_metatype _element)
2079{
2080 modelica_metatype _exp = NULL((void*)0);
2081 modelica_integer _face;
2082 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2083 MMC_SO()mmc_check_stackoverflow(threadData);
2084 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2085 // _exp has no default value.
2086 // _face has no default value.
2087#line 347 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2088 _exp = omc_NFExpression_fromCref(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_element) - 3))
) + (2)))))
));
2089#line 2089 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2090
2091#line 350 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2092 _face = mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_element), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_element) - 3))) + (4)))))))) >> 1)
;
2093#line 2093 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2094
2095#line 351 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2096 if(((modelica_integer)_face == 2))
2097#line 351 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2098 {
2099#line 352 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2100 tmpMeta[0] = mmc_mk_box3(19, &NFExpression_UNARY__desc, omc_NFOperator_makeUMinus(threadData, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))), _exp);
2101#line 352 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2102 _exp = tmpMeta[0];
2103#line 2103 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2104 }
2105 _return: OMC_LABEL_UNUSED__attribute__((unused))
2106 return _exp;
2107}
2108
2109PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_generateFlowEquations(threadData_t *threadData, modelica_metatype _elements)
2110{
2111 modelica_metatype _equations = NULL((void*)0);
2112 modelica_metatype _c = NULL((void*)0);
2113 modelica_metatype _c_rest = NULL((void*)0);
2114 modelica_metatype _src = NULL((void*)0);
2115 modelica_metatype _sum = NULL((void*)0);
2116 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
2117 MMC_SO()mmc_check_stackoverflow(threadData);
2118 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2119 // _equations has no default value.
2120 // _c has no default value.
2121 // _c_rest has no default value.
2122 // _src has no default value.
2123 // _sum has no default value.
2124#line 322 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2125 /* Pattern-matching assignment */
2126#line 322 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2127 tmpMeta[0] = _elements;
2128#line 322 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2129 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2130#line 322 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2131 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2132#line 322 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2133 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
2134#line 322 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2135 _c = tmpMeta[1];
2136#line 322 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2137 _c_rest = tmpMeta[2];
2138#line 2138 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2139
2140#line 323 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2141 _src = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_c), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_c) - 3))) + (6
)))))
);
2142#line 2142 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2143
2144#line 325 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2145 if(listEmpty(_c_rest)((*(mmc_uint_t*)((void*)((char*)(_c_rest) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
)
2146#line 325 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2147 {
2148#line 326 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2149 _sum = omc_NFExpression_fromCref(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_c), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_c) - 3))) + (2
)))))
));
2150#line 2150 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2151 }
2152 else
2153 {
2154#line 328 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2155 _sum = omc_NFConnectEquations_makeFlowExp(threadData, _c);
2156#line 2156 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2157
2158#line 330 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2159 {
2160#line 330 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2161 modelica_metatype _e;
2162#line 330 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2163 for (tmpMeta[0] = _c_rest; !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)))))
)
2164#line 330 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2165 {
2166#line 330 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2167 _e = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2168#line 331 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2169 tmpMeta[1] = mmc_mk_box4(18, &NFExpression_BINARY__desc, _sum, omc_NFOperator_makeAdd(threadData, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))), omc_NFConnectEquations_makeFlowExp(threadData, _e));
2170#line 331 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2171 _sum = tmpMeta[1];
2172#line 2172 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2173
2174#line 332 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2175 _src = omc_ElementSource_mergeSources(threadData, _src, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_e), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_e) - 3))) + (6
)))))
));
2176#line 2176 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2177 }
2178 }
2179 }
2180
2181#line 336 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2182 tmpMeta[1] = mmc_mk_box5(3, &NFEquation_EQUALITY__desc, _sum, _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_c), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_c) - 3))) + (3
)))))
), _src);
2183#line 336 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2184 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2185#line 336 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2186 _equations = tmpMeta[0];
2187#line 2187 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2188 _return: OMC_LABEL_UNUSED__attribute__((unused))
2189 return _equations;
2190}
2191
2192PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_makeEqualityAssert(threadData_t *threadData, modelica_metatype _lhsCref, modelica_metatype _lhsSource, modelica_metatype _rhsCref, modelica_metatype _rhsSource)
2193{
2194 modelica_metatype _equalityAssert = NULL((void*)0);
2195 modelica_metatype _source = NULL((void*)0);
2196 modelica_metatype _lhs_exp = NULL((void*)0);
2197 modelica_metatype _rhs_exp = NULL((void*)0);
2198 modelica_metatype _exp = NULL((void*)0);
2199 modelica_metatype _ty = NULL((void*)0);
2200 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2201 MMC_SO()mmc_check_stackoverflow(threadData);
2202 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2203 // _equalityAssert has no default value.
2204 // _source has no default value.
2205 // _lhs_exp has no default value.
2206 // _rhs_exp has no default value.
2207 // _exp has no default value.
2208 // _ty has no default value.
2209#line 271 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2210 _source = omc_ElementSource_mergeSources(threadData, _lhsSource, _rhsSource);
2211#line 2211 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2212
2213#line 274 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2214 _ty = omc_NFComponentRef_getComponentType(threadData, _lhsCref);
2215#line 2215 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2216
2217#line 275 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2218 _lhs_exp = omc_NFExpression_fromCref(threadData, _lhsCref);
2219#line 2219 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2220
2221#line 276 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2222 _rhs_exp = omc_NFExpression_fromCref(threadData, _rhsCref);
2223#line 2223 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2224
2225#line 278 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2226 if(omc_NFType_isReal(threadData, _ty))
2227#line 278 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2228 {
2229#line 281 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2230 tmpMeta[0] = mmc_mk_box4(18, &NFExpression_BINARY__desc, _lhs_exp, omc_NFOperator_makeSub(threadData, _ty), _rhs_exp);
2231#line 281 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2232 _exp = tmpMeta[0];
2233#line 2233 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2234
2235#line 282 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2236 tmpMeta[0] = mmc_mk_cons(_exp, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2237#line 282 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2238 tmpMeta[1] = mmc_mk_box2(15, &NFExpression_CALL__desc, omc_NFCall_Call_makeTypedCall(threadData, _OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)), tmpMeta[0], omc_NFExpression_variability(threadData, _exp), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_OMC_LIT54), 8))(*(void**)(((void*)((void**)(((void*)((char*)(((void*)((char*
)(&(_OMC_LIT_STRUCT54).header) + 3))) - 3))) + (8)))))
)));
2239#line 282 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2240 _exp = tmpMeta[1];
2241#line 2241 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2242
2243#line 283 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2244 tmpMeta[0] = mmc_mk_box4(22, &NFExpression_RELATION__desc, _exp, omc_NFOperator_makeLessEq(threadData, _ty), _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)));
2245#line 283 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2246 _exp = tmpMeta[0];
2247#line 2247 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2248 }
2249 else
2250 {
2251#line 286 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2252 tmpMeta[0] = mmc_mk_box4(22, &NFExpression_RELATION__desc, _lhs_exp, omc_NFOperator_makeEqual(threadData, _ty), _rhs_exp);
2253#line 286 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2254 _exp = tmpMeta[0];
2255#line 2255 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2256 }
2257
2258#line 289 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2259 tmpMeta[0] = mmc_mk_box5(10, &NFEquation_ASSERT__desc, _exp, _OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)), _OMC_LIT64((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3)), _source);
2260#line 289 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2261 _equalityAssert = tmpMeta[0];
2262#line 2262 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2263 _return: OMC_LABEL_UNUSED__attribute__((unused))
2264 return _equalityAssert;
2265}
2266
2267PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_makeEqualityEquation(threadData_t *threadData, modelica_metatype _lhsCref, modelica_metatype _lhsSource, modelica_metatype _rhsCref, modelica_metatype _rhsSource)
2268{
2269 modelica_metatype _equalityEq = NULL((void*)0);
2270 modelica_metatype _source = NULL((void*)0);
2271 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2272 MMC_SO()mmc_check_stackoverflow(threadData);
2273 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2274 // _equalityEq has no default value.
2275 // _source has no default value.
2276#line 255 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2277 _source = omc_ElementSource_mergeSources(threadData, _lhsSource, _rhsSource);
2278#line 2278 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2279
2280#line 257 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2281 tmpMeta[0] = mmc_mk_box4(4, &NFEquation_CREF__EQUALITY__desc, _lhsCref, _rhsCref, _source);
2282#line 257 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2283 _equalityEq = tmpMeta[0];
2284#line 2284 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2285 _return: OMC_LABEL_UNUSED__attribute__((unused))
2286 return _equalityEq;
2287}
2288
2289PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFConnectEquations_generatePotentialEquations(threadData_t *threadData, modelica_metatype _elements)
2290{
2291 modelica_metatype _equations = NULL((void*)0);
2292 modelica_metatype _c1 = NULL((void*)0);
2293 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2294 MMC_SO()mmc_check_stackoverflow(threadData);
2295 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2296 // _equations has no default value.
2297 // _c1 has no default value.
2298#line 197 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2299 _c1 = listHead(_elements)boxptr_listHead(threadData,_elements);
2300#line 2300 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2301
2302#line 199 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2303 if((omc_NFConnector_variability(threadData, _c1) > 3))
2304#line 199 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2305 {
2306#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2307 {
2308#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2309 modelica_metatype _D_24tmpVar3;
2310#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2311 modelica_metatype* tmp1;
2312#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2313 modelica_metatype _D_24tmpVar2;
2314#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2315 int tmp2;
2316#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2317 modelica_metatype _c2_loopVar = 0;
2318#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2319 modelica_metatype _c2;
2320#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2321 _c2_loopVar = listRest(_elements)boxptr_listRest(threadData,_elements);
2322#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2323 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2324#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2325 _D_24tmpVar3 = tmpMeta[1]; /* defaultValue */
2326#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2327 tmp1 = &_D_24tmpVar3;
2328#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2329 while(1) {
2330#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2331 tmp2 = 1;
2332#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2333 if (!listEmpty(_c2_loopVar)((*(mmc_uint_t*)((void*)((char*)(_c2_loopVar) - 3))) == (((0)
<< 10) + (((0) & 255) << 2)))
) {
2334#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2335 _c2 = MMC_CAR(_c2_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_c2_loopVar) - 3
))) + (1)))))
;
2336#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2337 _c2_loopVar = MMC_CDR(_c2_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_c2_loopVar) - 3
))) + (2)))))
;
2338#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2339 tmp2--;
2340#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2341 }
2342#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2343 if (tmp2 == 0) {
2344#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2345 _D_24tmpVar2 = omc_NFConnectEquations_makeEqualityEquation(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_c1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_c1) - 3))) + (
2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_c1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_c1) - 3))) + (
6)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_c2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_c2) - 3))) + (
2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_c2), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_c2) - 3))) + (
6)))))
));
2346#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2347 *tmp1 = mmc_mk_cons(_D_24tmpVar2,0);
2348#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2349 tmp1 = &MMC_CDR(*tmp1)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp1) - 3))) +
(2)))))
;
2350#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2351 } else if (tmp2 == 1) {
2352#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2353 break;
2354#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2355 } else {
2356#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2357 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2358#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2359 }
2360#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2361 }
2362#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2363 *tmp1 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
2364#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2365 tmpMeta[0] = _D_24tmpVar3;
2366#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2367 }
2368#line 200 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2369 _equations = tmpMeta[0];
2370#line 2370 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2371 }
2372 else
2373 {
2374#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2375 {
2376#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2377 modelica_metatype _D_24tmpVar5;
2378#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2379 modelica_metatype* tmp3;
2380#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2381 modelica_metatype _D_24tmpVar4;
2382#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2383 int tmp4;
2384#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2385 modelica_metatype _c2_loopVar = 0;
2386#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2387 modelica_metatype _c2;
2388#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2389 _c2_loopVar = listRest(_elements)boxptr_listRest(threadData,_elements);
2390#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2391 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2392#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2393 _D_24tmpVar5 = tmpMeta[1]; /* defaultValue */
2394#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2395 tmp3 = &_D_24tmpVar5;
2396#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2397 while(1) {
2398#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2399 tmp4 = 1;
2400#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2401 if (!listEmpty(_c2_loopVar)((*(mmc_uint_t*)((void*)((char*)(_c2_loopVar) - 3))) == (((0)
<< 10) + (((0) & 255) << 2)))
) {
2402#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2403 _c2 = MMC_CAR(_c2_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_c2_loopVar) - 3
))) + (1)))))
;
2404#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2405 _c2_loopVar = MMC_CDR(_c2_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_c2_loopVar) - 3
))) + (2)))))
;
2406#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2407 tmp4--;
2408#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2409 }
2410#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2411 if (tmp4 == 0) {
2412#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2413 _D_24tmpVar4 = omc_NFConnectEquations_makeEqualityAssert(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_c1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_c1) - 3))) + (
2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_c1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_c1) - 3))) + (
6)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_c2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_c2) - 3))) + (
2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_c2), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_c2) - 3))) + (
6)))))
));
2414#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2415 *tmp3 = mmc_mk_cons(_D_24tmpVar4,0);
2416#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2417 tmp3 = &MMC_CDR(*tmp3)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp3) - 3))) +
(2)))))
;
2418#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2419 } else if (tmp4 == 1) {
2420#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2421 break;
2422#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2423 } else {
2424#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2425 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2426#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2427 }
2428#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2429 }
2430#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2431 *tmp3 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
2432#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2433 tmpMeta[0] = _D_24tmpVar5;
2434#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2435 }
2436#line 203 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2437 _equations = tmpMeta[0];
2438#line 2438 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2439 }
2440 _return: OMC_LABEL_UNUSED__attribute__((unused))
2441 return _equations;
2442}
2443
2444PROTECTED_FUNCTION_STATIC modelica_integer omc_NFConnectEquations_getSetType(threadData_t *threadData, modelica_metatype _set)
2445{
2446 modelica_integer _cty;
2447 modelica_integer tmp1;
2448 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2449 MMC_SO()mmc_check_stackoverflow(threadData);
2450 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2451 // _cty has no default value.
2452#line 184 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2453 /* Pattern-matching assignment */
2454#line 184 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2455 tmpMeta[0] = _set;
2456#line 184 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2457 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2458#line 184 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2459 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2460#line 184 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2461 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
2462#line 184 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2463 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2464#line 184 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2465 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
2466#line 184 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2467 tmp1 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2468#line 184 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2469 _cty = tmp1 /* pattern as ty=Integer */;
2470#line 2470 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2471 _return: OMC_LABEL_UNUSED__attribute__((unused))
2472 return _cty;
2473}
2474PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFConnectEquations_getSetType(threadData_t *threadData, modelica_metatype _set)
2475{
2476 modelica_integer _cty;
2477 modelica_metatype out_cty;
2478 _cty = omc_NFConnectEquations_getSetType(threadData, _set);
2479 out_cty = mmc_mk_icon(_cty);
2480 return out_cty;
2481}
2482
2483static modelica_metatype closure0_NFConnectEquations_evaluateOperators(threadData_t *thData, modelica_metatype closure, modelica_metatype exp)
2484{
2485 modelica_metatype sets = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
2486 modelica_metatype setsArray = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),2))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (2)))))
;
2487 modelica_metatype ctable = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),3))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (3)))))
;
2488 return boxptr_NFConnectEquations_evaluateOperatorsomc_NFConnectEquations_evaluateOperators(thData, exp, sets, setsArray, ctable);
2489}static modelica_metatype closure1_NFConnectEquations_evaluateOperators(threadData_t *thData, modelica_metatype closure, modelica_metatype exp)
2490{
2491 modelica_metatype sets = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
2492 modelica_metatype setsArray = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),2))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (2)))))
;
2493 modelica_metatype ctable = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),3))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (3)))))
;
2494 return boxptr_NFConnectEquations_evaluateOperatorsomc_NFConnectEquations_evaluateOperators(thData, exp, sets, setsArray, ctable);
2495}static modelica_metatype closure2_NFConnectEquations_evaluateOperators(threadData_t *thData, modelica_metatype closure, modelica_metatype exp)
2496{
2497 modelica_metatype sets = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
2498 modelica_metatype setsArray = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),2))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (2)))))
;
2499 modelica_metatype ctable = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),3))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (3)))))
;
2500 return boxptr_NFConnectEquations_evaluateOperatorsomc_NFConnectEquations_evaluateOperators(thData, exp, sets, setsArray, ctable);
2501}
2502DLLExport
2503modelica_metatype omc_NFConnectEquations_evaluateOperators(threadData_t *threadData, modelica_metatype _exp, modelica_metatype _sets, modelica_metatype _setsArray, modelica_metatype _ctable)
2504{
2505 modelica_metatype _evalExp = NULL((void*)0);
2506 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
2507 MMC_SO()mmc_check_stackoverflow(threadData);
2508 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2509 // _evalExp has no default value.
2510#line 2510 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2511 { /* match expression */
2512 modelica_metatype tmp3_1;
2513 tmp3_1 = _exp;
2514 {
2515 modelica_metatype _call = NULL((void*)0);
2516 volatile mmc_switch_type tmp3;
2517 int tmp4;
2518 // _call has no default value.
2519 tmp3 = 0;
2520 for (; tmp3 < 4; tmp3++) {
2521 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2522 case 0: {
2523 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,12,1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((1 +1) <<
10) + (((12 +3) & 255) << 2)))
== 0) goto tmp2_end;
2524 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2525 _call = tmpMeta[1];
2526 /* Pattern matching succeeded */
2527#line 2527 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2528 { /* match expression */
2529 modelica_metatype tmp7_1;
2530 tmp7_1 = _call;
2531 {
2532 volatile mmc_switch_type tmp7;
2533 int tmp8;
2534 tmp7 = 0;
2535 for (; tmp7 < 4; tmp7++) {
2536 switch (MMC_SWITCH_CAST(tmp7)(tmp7)) {
2537 case 0: {
2538 if (mmc__uniontype__metarecord__typedef__equal(tmp7_1,2,5)((*(mmc_uint_t*)((void*)((char*)(tmp7_1) - 3)))==(((5 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp6_end;
2539
2540 /* Pattern matching succeeded */
2541#line 2541 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2542 { /* match expression */
2543 modelica_metatype tmp11_1;
2544 tmp11_1 = omc_NFFunction_Function_name(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_call) - 3))) +
(2)))))
));
2545 {
2546 volatile mmc_switch_type tmp11;
2547 int tmp12;
2548 tmp11 = 0;
2549 for (; tmp11 < 4; tmp11++) {
2550 switch (MMC_SWITCH_CAST(tmp11)(tmp11)) {
2551 case 0: {
2552 if (mmc__uniontype__metarecord__typedef__equal(tmp11_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp11_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp10_end;
2553 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp11_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp11_1) - 3)))
+ (2)))))
;
2554 if (8 != MMC_STRLEN(tmpMeta[3])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT31)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT31).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
) != 0) goto tmp10_end;
2555 /* Pattern matching succeeded */
2556#line 138 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2557 tmpMeta[2] = omc_NFConnectEquations_evaluateInStream(threadData, omc_NFExpression_toCref(threadData, listHead((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 5))))boxptr_listHead(threadData,((*(void**)(((void*)((void**)(((void
*)((char*)(_call) - 3))) + (5)))))))
), _sets, _setsArray, _ctable);
2558#line 2558 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2559 goto tmp10_done;
2560 }
2561 case 1: {
2562 if (mmc__uniontype__metarecord__typedef__equal(tmp11_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp11_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp10_end;
2563 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp11_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp11_1) - 3)))
+ (2)))))
;
2564 if (12 != MMC_STRLEN(tmpMeta[3])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT32)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT32).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
) != 0) goto tmp10_end;
2565 /* Pattern matching succeeded */
2566#line 140 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2567 tmpMeta[2] = omc_NFConnectEquations_evaluateActualStream(threadData, omc_NFExpression_toCref(threadData, listHead((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 5))))boxptr_listHead(threadData,((*(void**)(((void*)((void**)(((void
*)((char*)(_call) - 3))) + (5)))))))
), _sets, _setsArray, _ctable, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
2568#line 2568 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2569 goto tmp10_done;
2570 }
2571 case 2: {
2572 if (mmc__uniontype__metarecord__typedef__equal(tmp11_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp11_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp10_end;
2573 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp11_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp11_1) - 3)))
+ (2)))))
;
2574 if (11 != MMC_STRLEN(tmpMeta[3])(((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))) >>
(3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT65)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT65).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
) != 0) goto tmp10_end;
2575 /* Pattern matching succeeded */
2576#line 142 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2577 tmpMeta[2] = omc_NFCardinalityTable_evaluateCardinality(threadData, listHead((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 5))))boxptr_listHead(threadData,((*(void**)(((void*)((void**)(((void
*)((char*)(_call) - 3))) + (5)))))))
, _ctable);
2578#line 2578 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2579 goto tmp10_done;
2580 }
2581 case 3: {
2582
2583 /* Pattern matching succeeded */
2584#line 143 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2585 tmpMeta[3] = mmc_mk_box3(0, _sets, _setsArray, _ctable);
2586#line 143 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2587 tmpMeta[2] = omc_NFExpression_mapShallow(threadData, _exp, (modelica_fnptr) mmc_mk_box2(0,closure0_NFConnectEquations_evaluateOperators,tmpMeta[3]));
2588#line 2588 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2589 goto tmp10_done;
2590 }
2591 }
2592 goto tmp10_end;
2593 tmp10_end: ;
2594 }
2595 goto goto_9;
2596 goto_9:;
2597 goto goto_5;
2598 goto tmp10_done;
2599 tmp10_done:;
2600 }
2601 }tmpMeta[1] = tmpMeta[2];
2602 goto tmp6_done;
2603 }
2604 case 1: {
2605 if (mmc__uniontype__metarecord__typedef__equal(tmp7_1,6,7)((*(mmc_uint_t*)((void*)((char*)(tmp7_1) - 3)))==(((7 +1) <<
10) + (((6 +3) & 255) << 2)))
== 0) goto tmp6_end;
2606
2607 /* Pattern matching succeeded */
2608 /* Check guard condition after assignments */
2609 if (!omc_NFExpression_contains(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_call) - 3))) +
(5)))))
), boxvar_NFConnectEquations_isStreamCall((void*)((char*)(&(boxvar_lit_NFConnectEquations_isStreamCall
).header) + 3))
)) goto tmp6_end;
2610#line 151 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2611 tmpMeta[1] = omc_NFConnectEquations_evaluateOperatorReductionExp(threadData, _exp, _sets, _setsArray, _ctable);
2612#line 2612 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2613 goto tmp6_done;
2614 }
2615 case 2: {
2616 if (mmc__uniontype__metarecord__typedef__equal(tmp7_1,4,4)((*(mmc_uint_t*)((void*)((char*)(tmp7_1) - 3)))==(((4 +1) <<
10) + (((4 +3) & 255) << 2)))
== 0) goto tmp6_end;
2617
2618 /* Pattern matching succeeded */
2619 /* Check guard condition after assignments */
2620 if (!omc_NFExpression_contains(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_call) - 3))) +
(4)))))
), boxvar_NFConnectEquations_isStreamCall((void*)((char*)(&(boxvar_lit_NFConnectEquations_isStreamCall
).header) + 3))
)) goto tmp6_end;
2621#line 155 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2622 tmpMeta[1] = omc_NFConnectEquations_evaluateOperatorArrayConstructorExp(threadData, _exp, _sets, _setsArray, _ctable);
2623#line 2623 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2624 goto tmp6_done;
2625 }
2626 case 3: {
2627
2628 /* Pattern matching succeeded */
2629#line 157 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2630 tmpMeta[2] = mmc_mk_box3(0, _sets, _setsArray, _ctable);
2631#line 157 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2632 tmpMeta[1] = omc_NFExpression_mapShallow(threadData, _exp, (modelica_fnptr) mmc_mk_box2(0,closure1_NFConnectEquations_evaluateOperators,tmpMeta[2]));
2633#line 2633 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2634 goto tmp6_done;
2635 }
2636 }
2637 goto tmp6_end;
2638 tmp6_end: ;
2639 }
2640 goto goto_5;
2641 goto_5:;
2642 goto goto_1;
2643 goto tmp6_done;
2644 tmp6_done:;
2645 }
2646 }tmpMeta[0] = tmpMeta[1];
2647 goto tmp2_done;
2648 }
2649 case 1: {
2650 modelica_integer tmp13;
2651 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp2_end;
2652 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2653 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;
2654 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2655 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2656 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
2657 tmp13 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2658 if (3 != tmp13) goto tmp2_end;
2659 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
2660 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],12,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))==(((1 +1)
<< 10) + (((12 +3) & 255) << 2)))
== 0) goto tmp2_end;
2661 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
2662 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],2,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))==(((5 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
2663
2664 _call = tmpMeta[5];
2665 /* Pattern matching succeeded */
2666 /* Check guard condition after assignments */
2667 if (!omc_AbsynUtil_isNamedPathIdent(threadData, omc_NFFunction_Function_name(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_call) - 3))) +
(2)))))
)), _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)))) goto tmp2_end;
2668#line 165 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2669 tmpMeta[0] = omc_NFConnectEquations_evaluateActualStreamMul(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_exp), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_exp) - 3))) + (
2)))))
), listHead((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 5))))boxptr_listHead(threadData,((*(void**)(((void*)((void**)(((void
*)((char*)(_call) - 3))) + (5)))))))
, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_exp), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_exp) - 3))) + (
3)))))
), _sets, _setsArray, _ctable);
2670#line 2670 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2671 goto tmp2_done;
2672 }
2673 case 2: {
2674 modelica_integer tmp14;
2675 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,15,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((3 +1) <<
10) + (((15 +3) & 255) << 2)))
== 0) goto tmp2_end;
2676 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2677 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],12,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((12 +3) & 255) << 2)))
== 0) goto tmp2_end;
2678 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2679 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],2,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((5 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
2680 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2681 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2682 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2683 tmp14 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2684 if (3 != tmp14) goto tmp2_end;
2685 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
2686 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],5,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))==(((2 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
2687
2688 _call = tmpMeta[2];
2689 /* Pattern matching succeeded */
2690 /* Check guard condition after assignments */
2691 if (!omc_AbsynUtil_isNamedPathIdent(threadData, omc_NFFunction_Function_name(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_call) - 3))) +
(2)))))
)), _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)))) goto tmp2_end;
2692#line 171 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2693 tmpMeta[0] = omc_NFConnectEquations_evaluateActualStreamMul(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_exp), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_exp) - 3))) + (
4)))))
), listHead((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_call), 5))))boxptr_listHead(threadData,((*(void**)(((void*)((void**)(((void
*)((char*)(_call) - 3))) + (5)))))))
, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_exp), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_exp) - 3))) + (
3)))))
), _sets, _setsArray, _ctable);
2694#line 2694 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2695 goto tmp2_done;
2696 }
2697 case 3: {
2698
2699 /* Pattern matching succeeded */
2700#line 173 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2701 tmpMeta[1] = mmc_mk_box3(0, _sets, _setsArray, _ctable);
2702#line 173 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2703 tmpMeta[0] = omc_NFExpression_mapShallow(threadData, _exp, (modelica_fnptr) mmc_mk_box2(0,closure2_NFConnectEquations_evaluateOperators,tmpMeta[1]));
2704#line 2704 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2705 goto tmp2_done;
2706 }
2707 }
2708 goto tmp2_end;
2709 tmp2_end: ;
2710 }
2711 goto goto_1;
2712 goto_1:;
2713 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2714 goto tmp2_done;
2715 tmp2_done:;
2716 }
2717 }
2718 _evalExp = tmpMeta[0];
2719 _return: OMC_LABEL_UNUSED__attribute__((unused))
2720 return _evalExp;
2721}
2722
2723DLLExport
2724modelica_metatype omc_NFConnectEquations_generateEquations(threadData_t *threadData, modelica_metatype _sets)
2725{
2726 modelica_metatype _equations = NULL((void*)0);
2727 modelica_metatype _set_eql = NULL((void*)0);
2728 modelica_fnptr _potfunc;
2729 modelica_metatype _flowThreshold = NULL((void*)0);
2730 modelica_integer _cty;
2731 modelica_integer tmp1;
2732 modelica_integer tmp2;
2733 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
2734 MMC_SO()mmc_check_stackoverflow(threadData);
2735 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2736 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2737 _equations = tmpMeta[0];
2738 // _set_eql has no default value.
2739 // _flowThreshold has no default value.
2740 // _cty has no default value.
2741#line 92 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2742 setGlobalRoot(((modelica_integer) 26), mmc_mk_none())boxptr_setGlobalRoot(threadData,mmc_mk_icon(((modelica_integer
) 26)),((void*)((char*)(&(mmc_none).header) + 3)))
;
2743#line 2743 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2744
2745#line 96 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2746 _potfunc = (modelica_fnptr) boxvar_NFConnectEquations_generatePotentialEquations((void*)((char*)(&(boxvar_lit_NFConnectEquations_generatePotentialEquations
).header) + 3))
;
2747#line 2747 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2748
2749#line 97 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2750 tmpMeta[1] = mmc_mk_box2(4, &NFExpression_REAL__desc, mmc_mk_realmmc_mk_rcon(omc_Flags_getConfigReal(threadData, _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)))));
2751#line 97 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2752 _flowThreshold = tmpMeta[1];
2753#line 2753 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2754
2755#line 99 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2756 {
2757#line 99 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2758 modelica_metatype _set;
2759#line 99 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2760 for (tmpMeta[1] = _sets, tmp2 = arrayLength(tmpMeta[1]), tmp1 = 1; tmp1 <= tmp2; tmp1++)
2761#line 99 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2762 {
2763#line 99 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2764 _set = arrayGet(tmpMeta[1],tmp1)nobox_arrayGet(threadData,tmpMeta[1],tmp1);
2765#line 100 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2766 _cty = omc_NFConnectEquations_getSetType(threadData, _set);
2767#line 2767 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2768
2769#line 102 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2770 if(omc_NFPrefixes_ConnectorType_isPotential(threadData, _cty))
2771#line 102 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2772 {
2773#line 103 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2774 _set_eql = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_potfunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_potfunc) - 3))
) + (2)))))
) ? ((modelica_metatype(*)(threadData_t*, modelica_metatype, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_potfunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_potfunc) - 3))
) + (1)))))
)) (threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_potfunc), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_potfunc) - 3))
) + (2)))))
), _set) : ((modelica_metatype(*)(threadData_t*, modelica_metatype)) (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_potfunc), 1))(*(void**)(((void*)((void**)(((void*)((char*)(_potfunc) - 3))
) + (1)))))
)) (threadData, _set);
2775#line 2775 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2776 }
2777 else
2778 {
2779 if(omc_NFPrefixes_ConnectorType_isFlow(threadData, _cty))
2780 {
2781#line 105 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2782 _set_eql = omc_NFConnectEquations_generateFlowEquations(threadData, _set);
2783#line 2783 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2784 }
2785 else
2786 {
2787 if(omc_NFPrefixes_ConnectorType_isStream(threadData, _cty))
2788 {
2789#line 107 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2790 _set_eql = omc_NFConnectEquations_generateStreamEquations(threadData, _set, _flowThreshold);
2791#line 2791 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2792 }
2793 else
2794 {
2795#line 109 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2796 tmpMeta[2] = stringAppend(_OMC_LIT66((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3)),omc_NFPrefixes_ConnectorType_toDebugString(threadData, _cty));
2797#line 109 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2798 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT67((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3)));
2799#line 109 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2800 tmpMeta[4] = stringAppend(tmpMeta[3],omc_List_toString(threadData, _set, boxvar_NFConnector_toString((void*)((char*)(&(boxvar_lit_NFConnector_toString).header
) + 3))
, _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)), _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)), _OMC_LIT69((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3)), _OMC_LIT70((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3)), 1));
2801#line 109 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2802 omc_Error_addInternalError(threadData, tmpMeta[4], _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3)));
2803#line 2803 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2804
2805#line 112 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2806 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2807#line 2807 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2808 }
2809 }
2810 }
2811
2812#line 115 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/NFFrontEnd/NFConnectEquations.mo"
2813 _equations = listAppend(_set_eql, _equations);
2814#line 2814 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/NFConnectEquations.c"
2815 }
2816 }
2817 _return: OMC_LABEL_UNUSED__attribute__((unused))
2818 return _equations;
2819}
2820