Bug Summary

File:OMCompiler/Compiler/boot/build/NFFunction.c
Warning:line 5112, column 7
Value stored to '_default' is never read

Annotated Source Code

[?] Use j/k keys for keyboard navigation

1#ifdef OMC_BASE_FILE
2 #define OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "NFFunction.h"
8#define _OMC_LIT0_data"NFFunction.Function.getBody2 got function with multiple algorithm sections" "NFFunction.Function.getBody2 got function with multiple algorithm sections"
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,74,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(74)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)74)<<(3))+((1<<(3+3))+5)), "NFFunction.Function.getBody2 got function with multiple algorithm sections"
}
;
10#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
11#define _OMC_LIT1_data"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,98,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(98)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)98)<<(3))+((1<<(3+3))+5)), "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
}
;
13#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
14static const MMC_DEFREALLIT(_OMC_LIT_STRUCT2_6,1580577680.0)struct mmc_real_lit _OMC_LIT_STRUCT2_6 = {0,(((8/8) << 10
) + 9),1580577680.0}
;
15#define _OMC_LIT2_6((void*)((char*)(&(_OMC_LIT_STRUCT2_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT2_6)((void*)((char*)(&(_OMC_LIT_STRUCT2_6).header) + 3))
16static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT2,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT2
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(2074))((void*)(((((mmc_uint_t) (2074)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(11))((void*)(((((mmc_uint_t) (11)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(2074))((void*)(((((mmc_uint_t) (2074)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(117))((void*)(((((mmc_uint_t) (117)) << 1)+0))),_OMC_LIT2_6((void*)((char*)(&(_OMC_LIT_STRUCT2_6).header) + 3))}};
17#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
18#define _OMC_LIT3_data"NFFunction.Function.getBody2 got unknown function" "NFFunction.Function.getBody2 got unknown function"
19static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,49,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(49)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)49)<<(3))+((1<<(3+3))+5)), "NFFunction.Function.getBody2 got unknown function"
}
;
20#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
21static const MMC_DEFREALLIT(_OMC_LIT_STRUCT4_6,1580577680.0)struct mmc_real_lit _OMC_LIT_STRUCT4_6 = {0,(((8/8) << 10
) + 9),1580577680.0}
;
22#define _OMC_LIT4_6((void*)((char*)(&(_OMC_LIT_STRUCT4_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT4_6)((void*)((char*)(&(_OMC_LIT_STRUCT4_6).header) + 3))
23static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT4,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT4
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(2082))((void*)(((((mmc_uint_t) (2082)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(11))((void*)(((((mmc_uint_t) (11)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(2082))((void*)(((((mmc_uint_t) (2082)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(92))((void*)(((((mmc_uint_t) (92)) << 1)+0))),_OMC_LIT4_6((void*)((char*)(&(_OMC_LIT_STRUCT4_6).header) + 3))}};
24#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
25static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT5,1,12)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT5
= { (((1) << 10) + (((12) & 255) << 2)),
{&NFType_NORETCALL__desc,}};
26#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
27static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT6,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT6
= { (((1) << 10) + (((5) & 255) << 2)),
{&ErrorTypes_MessageType_TRANSLATION__desc,}};
28#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
29static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT7,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT7
= { (((1) << 10) + (((4) & 255) << 2)),
{&ErrorTypes_Severity_ERROR__desc,}};
30#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
31#define _OMC_LIT8_data"Invalid type %s for function component %s." "Invalid type %s for function component %s."
32static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,42,_OMC_LIT8_data)struct { mmc_uint_t header; const char data[(42)+1]; } _OMC_LIT_STRUCT8
= { ((((mmc_uint_t)42)<<(3))+((1<<(3+3))+5)), "Invalid type %s for function component %s."
}
;
33#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
34static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT9,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT9
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))}};
35#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
36static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT10,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT10
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(198))((void*)(((((mmc_uint_t) (198)) << 1)+0))),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))}};
37#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
38#define _OMC_LIT11_data"NFFunction.Function.makeAttributes got non-function restriction" "NFFunction.Function.makeAttributes got non-function restriction"
39static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT11,63,_OMC_LIT11_data)struct { mmc_uint_t header; const char data[(63)+1]; } _OMC_LIT_STRUCT11
= { ((((mmc_uint_t)63)<<(3))+((1<<(3+3))+5)), "NFFunction.Function.makeAttributes got non-function restriction"
}
;
40#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
41static const MMC_DEFREALLIT(_OMC_LIT_STRUCT12_6,1580577680.0)struct mmc_real_lit _OMC_LIT_STRUCT12_6 = {0,(((8/8) <<
10) + 9),1580577680.0}
;
42#define _OMC_LIT12_6((void*)((char*)(&(_OMC_LIT_STRUCT12_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT12_6)((void*)((char*)(&(_OMC_LIT_STRUCT12_6).header) + 3))
43static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT12,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT12
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1914))((void*)(((((mmc_uint_t) (1914)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(5))((void*)(((((mmc_uint_t) (5)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1914))((void*)(((((mmc_uint_t) (1914)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(125))((void*)(((((mmc_uint_t) (125)) << 1)+0))),_OMC_LIT12_6((void*)((char*)(&(_OMC_LIT_STRUCT12_6).header) + 3))}};
44#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
45static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT13,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT13
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_FunctionParallelism_FP__NON__PARALLEL__desc,}};
46#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
47static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT14,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT14
= { (((1) << 10) + (((4) & 255) << 2)),
{&DAE_FunctionParallelism_FP__PARALLEL__FUNCTION__desc,}};
48#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
49static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT15,1,7)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT15
= { (((1) << 10) + (((7) & 255) << 2)),
{&DAE_InlineType_NO__INLINE__desc,}};
50#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
51static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT16,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT16
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_FunctionBuiltin_FUNCTION__NOT__BUILTIN__desc,}};
52#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
53static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT17,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT17
= { (((1) << 10) + (((5) & 255) << 2)),
{&DAE_FunctionParallelism_FP__KERNEL__FUNCTION__desc,}};
54#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
55#define _OMC_LIT18_data"__ModelicaAssociation_Impure" "__ModelicaAssociation_Impure"
56static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT18,28,_OMC_LIT18_data)struct { mmc_uint_t header; const char data[(28)+1]; } _OMC_LIT_STRUCT18
= { ((((mmc_uint_t)28)<<(3))+((1<<(3+3))+5)), "__ModelicaAssociation_Impure"
}
;
57#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
58static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT19,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT19
= { (((1) << 10) + (((5) & 255) << 2)),
{&SCode_Mod_NOMOD__desc,}};
59#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
60static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT20,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT20
= { (((1) << 10) + (((5) & 255) << 2)),
{&DAE_FunctionBuiltin_FUNCTION__BUILTIN__PTR__desc,}};
61#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
62#define _OMC_LIT21_data"__OpenModelica_Impure" "__OpenModelica_Impure"
63static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT21,21,_OMC_LIT21_data)struct { mmc_uint_t header; const char data[(21)+1]; } _OMC_LIT_STRUCT21
= { ((((mmc_uint_t)21)<<(3))+((1<<(3+3))+5)), "__OpenModelica_Impure"
}
;
64#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
65#define _OMC_LIT22_data"$in_" "$in_"
66static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT22,4,_OMC_LIT22_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT22
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "$in_"
}
;
67#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
68#define _OMC_LIT23_data"NFFunction.Function.makeSlot got invalid component" "NFFunction.Function.makeSlot got invalid component"
69static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,50,_OMC_LIT23_data)struct { mmc_uint_t header; const char data[(50)+1]; } _OMC_LIT_STRUCT23
= { ((((mmc_uint_t)50)<<(3))+((1<<(3+3))+5)), "NFFunction.Function.makeSlot got invalid component"
}
;
70#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
71static const MMC_DEFREALLIT(_OMC_LIT_STRUCT24_6,1580577680.0)struct mmc_real_lit _OMC_LIT_STRUCT24_6 = {0,(((8/8) <<
10) + 9),1580577680.0}
;
72#define _OMC_LIT24_6((void*)((char*)(&(_OMC_LIT_STRUCT24_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT24_6)((void*)((char*)(&(_OMC_LIT_STRUCT24_6).header) + 3))
73static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT24,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT24
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1849))((void*)(((((mmc_uint_t) (1849)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(7))((void*)(((((mmc_uint_t) (7)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1849))((void*)(((((mmc_uint_t) (1849)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(89))((void*)(((((mmc_uint_t) (89)) << 1)+0))),_OMC_LIT24_6((void*)((char*)(&(_OMC_LIT_STRUCT24_6).header) + 3))}};
74#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
75#define _OMC_LIT25_data"Invalid prefix %s on formal parameter %s." "Invalid prefix %s on formal parameter %s."
76static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT25,41,_OMC_LIT25_data)struct { mmc_uint_t header; const char data[(41)+1]; } _OMC_LIT_STRUCT25
= { ((((mmc_uint_t)41)<<(3))+((1<<(3+3))+5)), "Invalid prefix %s on formal parameter %s."
}
;
77#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
78static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT26,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT26
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))}};
79#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
80static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT27,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT27
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(227))((void*)(((((mmc_uint_t) (227)) << 1)+0))),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))}};
81#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
82static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT28,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT28
= { (((1) << 10) + (((5) & 255) << 2)),
{&ErrorTypes_Severity_WARNING__desc,}};
83#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
84#define _OMC_LIT29_data"Invalid public variable %s, function variables that are not input/output must be protected." "Invalid public variable %s, function variables that are not input/output must be protected."
85static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,91,_OMC_LIT29_data)struct { mmc_uint_t header; const char data[(91)+1]; } _OMC_LIT_STRUCT29
= { ((((mmc_uint_t)91)<<(3))+((1<<(3+3))+5)), "Invalid public variable %s, function variables that are not input/output must be protected."
}
;
86#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
87static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT30,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT30
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))}};
88#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
89static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT31,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT31
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(201))((void*)(((((mmc_uint_t) (201)) << 1)+0))),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),_OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)),_OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))}};
90#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
91#define _OMC_LIT32_data"Invalid protected variable %s, function variables that are input/output must be public." "Invalid protected variable %s, function variables that are input/output must be public."
92static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT32,87,_OMC_LIT32_data)struct { mmc_uint_t header; const char data[(87)+1]; } _OMC_LIT_STRUCT32
= { ((((mmc_uint_t)87)<<(3))+((1<<(3+3))+5)), "Invalid protected variable %s, function variables that are input/output must be public."
}
;
93#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
94static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT33,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT33
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))}};
95#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
96static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT34,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT34
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(202))((void*)(((((mmc_uint_t) (202)) << 1)+0))),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))}};
97#define _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT34)((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))
98#define _OMC_LIT35_data"NFFunction.Function.collectParams got non-class node" "NFFunction.Function.collectParams got non-class node"
99static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT35,52,_OMC_LIT35_data)struct { mmc_uint_t header; const char data[(52)+1]; } _OMC_LIT_STRUCT35
= { ((((mmc_uint_t)52)<<(3))+((1<<(3+3))+5)), "NFFunction.Function.collectParams got non-class node"
}
;
100#define _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT35)((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))
101static const MMC_DEFREALLIT(_OMC_LIT_STRUCT36_6,1580577680.0)struct mmc_real_lit _OMC_LIT_STRUCT36_6 = {0,(((8/8) <<
10) + 9),1580577680.0}
;
102#define _OMC_LIT36_6((void*)((char*)(&(_OMC_LIT_STRUCT36_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT36_6)((void*)((char*)(&(_OMC_LIT_STRUCT36_6).header) + 3))
103static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT36,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT36
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1728))((void*)(((((mmc_uint_t) (1728)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(5))((void*)(((((mmc_uint_t) (5)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1728))((void*)(((((mmc_uint_t) (1728)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(101))((void*)(((((mmc_uint_t) (101)) << 1)+0))),_OMC_LIT36_6((void*)((char*)(&(_OMC_LIT_STRUCT36_6).header) + 3))}};
104#define _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT36)((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))
105#define _OMC_LIT37_data"NFFunction.Function.collectParams got non-instantiated function" "NFFunction.Function.collectParams got non-instantiated function"
106static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT37,63,_OMC_LIT37_data)struct { mmc_uint_t header; const char data[(63)+1]; } _OMC_LIT_STRUCT37
= { ((((mmc_uint_t)63)<<(3))+((1<<(3+3))+5)), "NFFunction.Function.collectParams got non-instantiated function"
}
;
107#define _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT37)((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))
108static const MMC_DEFREALLIT(_OMC_LIT_STRUCT38_6,1580577680.0)struct mmc_real_lit _OMC_LIT_STRUCT38_6 = {0,(((8/8) <<
10) + 9),1580577680.0}
;
109#define _OMC_LIT38_6((void*)((char*)(&(_OMC_LIT_STRUCT38_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT38_6)((void*)((char*)(&(_OMC_LIT_STRUCT38_6).header) + 3))
110static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT38,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT38
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1759))((void*)(((((mmc_uint_t) (1759)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(11))((void*)(((((mmc_uint_t) (11)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1759))((void*)(((((mmc_uint_t) (1759)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(101))((void*)(((((mmc_uint_t) (101)) << 1)+0))),_OMC_LIT38_6((void*)((char*)(&(_OMC_LIT_STRUCT38_6).header) + 3))}};
111#define _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT38)((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3))
112#define _OMC_LIT39_data"__OpenModelica_optionalArgument" "__OpenModelica_optionalArgument"
113static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT39,31,_OMC_LIT39_data)struct { mmc_uint_t header; const char data[(31)+1]; } _OMC_LIT_STRUCT39
= { ((((mmc_uint_t)31)<<(3))+((1<<(3+3))+5)), "__OpenModelica_optionalArgument"
}
;
114#define _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT39)((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))
115#define _OMC_LIT40_data"__OpenModelica_UnboxArguments" "__OpenModelica_UnboxArguments"
116static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT40,29,_OMC_LIT40_data)struct { mmc_uint_t header; const char data[(29)+1]; } _OMC_LIT_STRUCT40
= { ((((mmc_uint_t)29)<<(3))+((1<<(3+3))+5)), "__OpenModelica_UnboxArguments"
}
;
117#define _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT40)((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))
118static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT41,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT41
= { (((1) << 10) + (((3) & 255) << 2)),
{&SCode_Visibility_PUBLIC__desc,}};
119#define _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT41)((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))
120static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT42,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT42
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_Prefix_NOPRE__desc,}};
121#define _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT42)((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3))
122#define _OMC_LIT43_data"" ""
123static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT43,0,_OMC_LIT43_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT43
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
124#define _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT43)((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))
125static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT44,1,11)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT44
= { (((1) << 10) + (((11) & 255) << 2)),
{&DAE_Type_T__UNKNOWN__desc,}};
126#define _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT44)((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))
127static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT45,4,4)struct { mmc_uint_t header; const void *data[4]; } _OMC_LIT_STRUCT45
= { (((4) << 10) + (((4) & 255) << 2)),
{&DAE_ComponentRef_CREF__IDENT__desc,_OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)),_OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
128#define _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT45)((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))
129static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT46,2,0)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT46
= { (((2) << 10) + (((0) & 255) << 2)),
{_OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)),_OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))}};
130#define _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT46)((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))
131static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT47,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT47
= { (((1) << 10) + (((4) & 255) << 2)),
{&DAE_InlineType_BUILTIN__EARLY__INLINE__desc,}};
132#define _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT47)((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3))
133#define _OMC_LIT48_data"change" "change"
134static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT48,6,_OMC_LIT48_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT48
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "change"
}
;
135#define _OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT48)((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3))
136#define _OMC_LIT49_data"der" "der"
137static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT49,3,_OMC_LIT49_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT49
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "der"
}
;
138#define _OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT49)((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3))
139#define _OMC_LIT50_data"pre" "pre"
140static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT50,3,_OMC_LIT50_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT50
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "pre"
}
;
141#define _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT50)((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3))
142#define _OMC_LIT51_data"array" "array"
143static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT51,5,_OMC_LIT51_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT51
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "array"
}
;
144#define _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT51)((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3))
145#define _OMC_LIT52_data"actualStream" "actualStream"
146static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT52,12,_OMC_LIT52_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT52
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "actualStream"
}
;
147#define _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT52)((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))
148#define _OMC_LIT53_data"branch" "branch"
149static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT53,6,_OMC_LIT53_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT53
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "branch"
}
;
150#define _OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT53)((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3))
151#define _OMC_LIT54_data"cardinality" "cardinality"
152static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT54,11,_OMC_LIT54_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT54
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "cardinality"
}
;
153#define _OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT54)((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3))
154#define _OMC_LIT55_data"cat" "cat"
155static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT55,3,_OMC_LIT55_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT55
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "cat"
}
;
156#define _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT55)((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3))
157#define _OMC_LIT56_data"diagonal" "diagonal"
158static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT56,8,_OMC_LIT56_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT56
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "diagonal"
}
;
159#define _OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT56)((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3))
160#define _OMC_LIT57_data"edge" "edge"
161static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT57,4,_OMC_LIT57_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT57
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "edge"
}
;
162#define _OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT57)((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3))
163#define _OMC_LIT58_data"fill" "fill"
164static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT58,4,_OMC_LIT58_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT58
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "fill"
}
;
165#define _OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT58)((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3))
166#define _OMC_LIT59_data"getInstanceName" "getInstanceName"
167static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT59,15,_OMC_LIT59_data)struct { mmc_uint_t header; const char data[(15)+1]; } _OMC_LIT_STRUCT59
= { ((((mmc_uint_t)15)<<(3))+((1<<(3+3))+5)), "getInstanceName"
}
;
168#define _OMC_LIT59((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT59)((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3))
169#define _OMC_LIT60_data"initial" "initial"
170static 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)), "initial"
}
;
171#define _OMC_LIT60((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT60)((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3))
172#define _OMC_LIT61_data"inStream" "inStream"
173static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT61,8,_OMC_LIT61_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT61
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "inStream"
}
;
174#define _OMC_LIT61((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT61)((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3))
175#define _OMC_LIT62_data"isRoot" "isRoot"
176static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT62,6,_OMC_LIT62_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT62
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "isRoot"
}
;
177#define _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT62)((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3))
178#define _OMC_LIT63_data"matrix" "matrix"
179static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT63,6,_OMC_LIT63_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT63
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "matrix"
}
;
180#define _OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT63)((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3))
181#define _OMC_LIT64_data"max" "max"
182static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT64,3,_OMC_LIT64_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT64
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "max"
}
;
183#define _OMC_LIT64((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT64)((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3))
184#define _OMC_LIT65_data"min" "min"
185static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT65,3,_OMC_LIT65_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT65
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "min"
}
;
186#define _OMC_LIT65((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT65)((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3))
187#define _OMC_LIT66_data"ndims" "ndims"
188static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT66,5,_OMC_LIT66_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT66
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "ndims"
}
;
189#define _OMC_LIT66((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT66)((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3))
190#define _OMC_LIT67_data"noEvent" "noEvent"
191static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT67,7,_OMC_LIT67_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT67
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "noEvent"
}
;
192#define _OMC_LIT67((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT67)((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3))
193#define _OMC_LIT68_data"ones" "ones"
194static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT68,4,_OMC_LIT68_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT68
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "ones"
}
;
195#define _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT68)((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3))
196#define _OMC_LIT69_data"potentialRoot" "potentialRoot"
197static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT69,13,_OMC_LIT69_data)struct { mmc_uint_t header; const char data[(13)+1]; } _OMC_LIT_STRUCT69
= { ((((mmc_uint_t)13)<<(3))+((1<<(3+3))+5)), "potentialRoot"
}
;
198#define _OMC_LIT69((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT69)((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3))
199#define _OMC_LIT70_data"product" "product"
200static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT70,7,_OMC_LIT70_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT70
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "product"
}
;
201#define _OMC_LIT70((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT70)((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3))
202#define _OMC_LIT71_data"root" "root"
203static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT71,4,_OMC_LIT71_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT71
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "root"
}
;
204#define _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT71)((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3))
205#define _OMC_LIT72_data"rooted" "rooted"
206static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT72,6,_OMC_LIT72_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT72
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "rooted"
}
;
207#define _OMC_LIT72((void*)((char*)(&(_OMC_LIT_STRUCT72).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT72)((void*)((char*)(&(_OMC_LIT_STRUCT72).header) + 3))
208#define _OMC_LIT73_data"scalar" "scalar"
209static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT73,6,_OMC_LIT73_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT73
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "scalar"
}
;
210#define _OMC_LIT73((void*)((char*)(&(_OMC_LIT_STRUCT73).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT73)((void*)((char*)(&(_OMC_LIT_STRUCT73).header) + 3))
211#define _OMC_LIT74_data"size" "size"
212static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT74,4,_OMC_LIT74_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT74
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "size"
}
;
213#define _OMC_LIT74((void*)((char*)(&(_OMC_LIT_STRUCT74).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT74)((void*)((char*)(&(_OMC_LIT_STRUCT74).header) + 3))
214#define _OMC_LIT75_data"smooth" "smooth"
215static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT75,6,_OMC_LIT75_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT75
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "smooth"
}
;
216#define _OMC_LIT75((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT75)((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3))
217#define _OMC_LIT76_data"sum" "sum"
218static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT76,3,_OMC_LIT76_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT76
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "sum"
}
;
219#define _OMC_LIT76((void*)((char*)(&(_OMC_LIT_STRUCT76).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT76)((void*)((char*)(&(_OMC_LIT_STRUCT76).header) + 3))
220#define _OMC_LIT77_data"symmetric" "symmetric"
221static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT77,9,_OMC_LIT77_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT77
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "symmetric"
}
;
222#define _OMC_LIT77((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT77)((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3))
223#define _OMC_LIT78_data"terminal" "terminal"
224static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT78,8,_OMC_LIT78_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT78
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "terminal"
}
;
225#define _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT78)((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3))
226#define _OMC_LIT79_data"transpose" "transpose"
227static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT79,9,_OMC_LIT79_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT79
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "transpose"
}
;
228#define _OMC_LIT79((void*)((char*)(&(_OMC_LIT_STRUCT79).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT79)((void*)((char*)(&(_OMC_LIT_STRUCT79).header) + 3))
229#define _OMC_LIT80_data"vector" "vector"
230static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT80,6,_OMC_LIT80_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT80
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "vector"
}
;
231#define _OMC_LIT80((void*)((char*)(&(_OMC_LIT_STRUCT80).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT80)((void*)((char*)(&(_OMC_LIT_STRUCT80).header) + 3))
232#define _OMC_LIT81_data"zeros" "zeros"
233static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT81,5,_OMC_LIT81_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT81
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "zeros"
}
;
234#define _OMC_LIT81((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT81)((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3))
235#define _OMC_LIT82_data"sample" "sample"
236static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT82,6,_OMC_LIT82_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT82
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "sample"
}
;
237#define _OMC_LIT82((void*)((char*)(&(_OMC_LIT_STRUCT82).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT82)((void*)((char*)(&(_OMC_LIT_STRUCT82).header) + 3))
238#define _OMC_LIT83_data"Type mismatch for named argument in %s(%s=%s). The argument has type:\n %s\nexpected type:\n %s" "Type mismatch for named argument in %s(%s=%s). The argument has type:\n %s\nexpected type:\n %s"
239static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT83,94,_OMC_LIT83_data)struct { mmc_uint_t header; const char data[(94)+1]; } _OMC_LIT_STRUCT83
= { ((((mmc_uint_t)94)<<(3))+((1<<(3+3))+5)), "Type mismatch for named argument in %s(%s=%s). The argument has type:\n %s\nexpected type:\n %s"
}
;
240#define _OMC_LIT83((void*)((char*)(&(_OMC_LIT_STRUCT83).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT83)((void*)((char*)(&(_OMC_LIT_STRUCT83).header) + 3))
241static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT84,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT84
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT83((void*)((char*)(&(_OMC_LIT_STRUCT83).header) + 3))}};
242#define _OMC_LIT84((void*)((char*)(&(_OMC_LIT_STRUCT84).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT84)((void*)((char*)(&(_OMC_LIT_STRUCT84).header) + 3))
243static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT85,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT85
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(268))((void*)(((((mmc_uint_t) (268)) << 1)+0))),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_OMC_LIT84((void*)((char*)(&(_OMC_LIT_STRUCT84).header) + 3))}};
244#define _OMC_LIT85((void*)((char*)(&(_OMC_LIT_STRUCT85).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT85)((void*)((char*)(&(_OMC_LIT_STRUCT85).header) + 3))
245#define _OMC_LIT86_data"." "."
246static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT86,1,_OMC_LIT86_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT86
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "."
}
;
247#define _OMC_LIT86((void*)((char*)(&(_OMC_LIT_STRUCT86).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT86)((void*)((char*)(&(_OMC_LIT_STRUCT86).header) + 3))
248#define _OMC_LIT87_data"Function %s has no input parameter named %s." "Function %s has no input parameter named %s."
249static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT87,44,_OMC_LIT87_data)struct { mmc_uint_t header; const char data[(44)+1]; } _OMC_LIT_STRUCT87
= { ((((mmc_uint_t)44)<<(3))+((1<<(3+3))+5)), "Function %s has no input parameter named %s."
}
;
250#define _OMC_LIT87((void*)((char*)(&(_OMC_LIT_STRUCT87).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT87)((void*)((char*)(&(_OMC_LIT_STRUCT87).header) + 3))
251static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT88,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT88
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT87((void*)((char*)(&(_OMC_LIT_STRUCT87).header) + 3))}};
252#define _OMC_LIT88((void*)((char*)(&(_OMC_LIT_STRUCT88).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT88)((void*)((char*)(&(_OMC_LIT_STRUCT88).header) + 3))
253static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT89,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT89
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(343))((void*)(((((mmc_uint_t) (343)) << 1)+0))),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_OMC_LIT88((void*)((char*)(&(_OMC_LIT_STRUCT88).header) + 3))}};
254#define _OMC_LIT89((void*)((char*)(&(_OMC_LIT_STRUCT89).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT89)((void*)((char*)(&(_OMC_LIT_STRUCT89).header) + 3))
255static const MMC_DEFREALLIT(_OMC_LIT_STRUCT90,0.0)struct mmc_real_lit _OMC_LIT_STRUCT90 = {0,(((8/8) << 10
) + 9),0.0}
;
256#define _OMC_LIT90((void*)((char*)(&(_OMC_LIT_STRUCT90).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT90)((void*)((char*)(&(_OMC_LIT_STRUCT90).header) + 3))
257static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT91,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT91
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).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_LIT90((void*)((char*)(&(_OMC_LIT_STRUCT90).header) + 3))}};
258#define _OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT91)((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3))
259static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT92,4,3)struct { mmc_uint_t header; const void *data[4]; } _OMC_LIT_STRUCT92
= { (((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_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3))}};
260#define _OMC_LIT92((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT92)((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3))
261#define _OMC_LIT93_data"NFFunction.Function.typeRefCache got invalid function call reference" "NFFunction.Function.typeRefCache got invalid function call reference"
262static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT93,68,_OMC_LIT93_data)struct { mmc_uint_t header; const char data[(68)+1]; } _OMC_LIT_STRUCT93
= { ((((mmc_uint_t)68)<<(3))+((1<<(3+3))+5)), "NFFunction.Function.typeRefCache got invalid function call reference"
}
;
263#define _OMC_LIT93((void*)((char*)(&(_OMC_LIT_STRUCT93).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT93)((void*)((char*)(&(_OMC_LIT_STRUCT93).header) + 3))
264static const MMC_DEFREALLIT(_OMC_LIT_STRUCT94_6,1580577680.0)struct mmc_real_lit _OMC_LIT_STRUCT94_6 = {0,(((8/8) <<
10) + 9),1580577680.0}
;
265#define _OMC_LIT94_6((void*)((char*)(&(_OMC_LIT_STRUCT94_6).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT94_6)((void*)((char*)(&(_OMC_LIT_STRUCT94_6).header) + 3))
266static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT94,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT94
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1178))((void*)(((((mmc_uint_t) (1178)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(11))((void*)(((((mmc_uint_t) (11)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1178))((void*)(((((mmc_uint_t) (1178)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(107))((void*)(((((mmc_uint_t) (107)) << 1)+0))),_OMC_LIT94_6((void*)((char*)(&(_OMC_LIT_STRUCT94_6).header) + 3))}};
267#define _OMC_LIT94((void*)((char*)(&(_OMC_LIT_STRUCT94).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT94)((void*)((char*)(&(_OMC_LIT_STRUCT94).header) + 3))
268#define _OMC_LIT95_data"NFFunction:matchFunctions" "NFFunction:matchFunctions"
269static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT95,25,_OMC_LIT95_data)struct { mmc_uint_t header; const char data[(25)+1]; } _OMC_LIT_STRUCT95
= { ((((mmc_uint_t)25)<<(3))+((1<<(3+3))+5)), "NFFunction:matchFunctions"
}
;
270#define _OMC_LIT95((void*)((char*)(&(_OMC_LIT_STRUCT95).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT95)((void*)((char*)(&(_OMC_LIT_STRUCT95).header) + 3))
271static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT96,1,7)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT96
= { (((1) << 10) + (((7) & 255) << 2)),
{&NFFunction_FunctionMatchKind_NOT__COMPATIBLE__desc,}};
272#define _OMC_LIT96((void*)((char*)(&(_OMC_LIT_STRUCT96).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT96)((void*)((char*)(&(_OMC_LIT_STRUCT96).header) + 3))
273#define _OMC_LIT97_data"Failed to vectorize function call because arguments %s=%s and %s=%s have mismatched dimensions %s and %s." "Failed to vectorize function call because arguments %s=%s and %s=%s have mismatched dimensions %s and %s."
274static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT97,105,_OMC_LIT97_data)struct { mmc_uint_t header; const char data[(105)+1]; } _OMC_LIT_STRUCT97
= { ((((mmc_uint_t)105)<<(3))+((1<<(3+3))+5)), "Failed to vectorize function call because arguments %s=%s and %s=%s have mismatched dimensions %s and %s."
}
;
275#define _OMC_LIT97((void*)((char*)(&(_OMC_LIT_STRUCT97).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT97)((void*)((char*)(&(_OMC_LIT_STRUCT97).header) + 3))
276static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT98,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT98
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT97((void*)((char*)(&(_OMC_LIT_STRUCT97).header) + 3))}};
277#define _OMC_LIT98((void*)((char*)(&(_OMC_LIT_STRUCT98).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT98)((void*)((char*)(&(_OMC_LIT_STRUCT98).header) + 3))
278static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT99,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT99
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(274))((void*)(((((mmc_uint_t) (274)) << 1)+0))),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_OMC_LIT98((void*)((char*)(&(_OMC_LIT_STRUCT98).header) + 3))}};
279#define _OMC_LIT99((void*)((char*)(&(_OMC_LIT_STRUCT99).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT99)((void*)((char*)(&(_OMC_LIT_STRUCT99).header) + 3))
280static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT100,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT100
= { (((1) << 10) + (((3) & 255) << 2)),
{&NFFunction_FunctionMatchKind_EXACT__desc,}};
281#define _OMC_LIT100((void*)((char*)(&(_OMC_LIT_STRUCT100).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT100)((void*)((char*)(&(_OMC_LIT_STRUCT100).header) + 3))
282static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT101,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT101
= { (((2) << 10) + (((3) & 255) << 2)),
{&NFExpression_INTEGER__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
283#define _OMC_LIT101((void*)((char*)(&(_OMC_LIT_STRUCT101).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT101)((void*)((char*)(&(_OMC_LIT_STRUCT101).header) + 3))
284#define _OMC_LIT102_data"Function argument %s=%s in call to %s has variability %s which is not a %s expression." "Function argument %s=%s in call to %s has variability %s which is not a %s expression."
285static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT102,86,_OMC_LIT102_data)struct { mmc_uint_t header; const char data[(86)+1]; } _OMC_LIT_STRUCT102
= { ((((mmc_uint_t)86)<<(3))+((1<<(3+3))+5)), "Function argument %s=%s in call to %s has variability %s which is not a %s expression."
}
;
286#define _OMC_LIT102((void*)((char*)(&(_OMC_LIT_STRUCT102).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT102)((void*)((char*)(&(_OMC_LIT_STRUCT102).header) + 3))
287static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT103,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT103
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT102((void*)((char*)(&(_OMC_LIT_STRUCT102).header) + 3))}};
288#define _OMC_LIT103((void*)((char*)(&(_OMC_LIT_STRUCT103).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT103)((void*)((char*)(&(_OMC_LIT_STRUCT103).header) + 3))
289static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT104,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT104
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(195))((void*)(((((mmc_uint_t) (195)) << 1)+0))),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_OMC_LIT103((void*)((char*)(&(_OMC_LIT_STRUCT103).header) + 3))}};
290#define _OMC_LIT104((void*)((char*)(&(_OMC_LIT_STRUCT104).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT104)((void*)((char*)(&(_OMC_LIT_STRUCT104).header) + 3))
291#define _OMC_LIT105_data"Type mismatch for positional argument %s in %s(%s=%s). The argument has type:\n %s\nexpected type:\n %s" "Type mismatch for positional argument %s in %s(%s=%s). The argument has type:\n %s\nexpected type:\n %s"
292static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT105,102,_OMC_LIT105_data)struct { mmc_uint_t header; const char data[(102)+1]; } _OMC_LIT_STRUCT105
= { ((((mmc_uint_t)102)<<(3))+((1<<(3+3))+5)), "Type mismatch for positional argument %s in %s(%s=%s). The argument has type:\n %s\nexpected type:\n %s"
}
;
293#define _OMC_LIT105((void*)((char*)(&(_OMC_LIT_STRUCT105).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT105)((void*)((char*)(&(_OMC_LIT_STRUCT105).header) + 3))
294static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT106,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT106
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT105((void*)((char*)(&(_OMC_LIT_STRUCT105).header) + 3))}};
295#define _OMC_LIT106((void*)((char*)(&(_OMC_LIT_STRUCT106).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT106)((void*)((char*)(&(_OMC_LIT_STRUCT106).header) + 3))
296static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT107,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT107
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(269))((void*)(((((mmc_uint_t) (269)) << 1)+0))),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_OMC_LIT106((void*)((char*)(&(_OMC_LIT_STRUCT106).header) + 3))}};
297#define _OMC_LIT107((void*)((char*)(&(_OMC_LIT_STRUCT107).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT107)((void*)((char*)(&(_OMC_LIT_STRUCT107).header) + 3))
298static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT108,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT108
= { (((1) << 10) + (((5) & 255) << 2)),
{&NFFunction_FunctionMatchKind_GENERIC__desc,}};
299#define _OMC_LIT108((void*)((char*)(&(_OMC_LIT_STRUCT108).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT108)((void*)((char*)(&(_OMC_LIT_STRUCT108).header) + 3))
300static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT109,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT109
= { (((1) << 10) + (((4) & 255) << 2)),
{&NFFunction_FunctionMatchKind_CAST__desc,}};
301#define _OMC_LIT109((void*)((char*)(&(_OMC_LIT_STRUCT109).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT109)((void*)((char*)(&(_OMC_LIT_STRUCT109).header) + 3))
302static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT110,1,8)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT110
= { (((1) << 10) + (((8) & 255) << 2)),
{&ErrorTypes_MessageType_SCRIPTING__desc,}};
303#define _OMC_LIT110((void*)((char*)(&(_OMC_LIT_STRUCT110).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT110)((void*)((char*)(&(_OMC_LIT_STRUCT110).header) + 3))
304#define _OMC_LIT111_data"The default value of %s causes a cyclic dependency." "The default value of %s causes a cyclic dependency."
305static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT111,51,_OMC_LIT111_data)struct { mmc_uint_t header; const char data[(51)+1]; } _OMC_LIT_STRUCT111
= { ((((mmc_uint_t)51)<<(3))+((1<<(3+3))+5)), "The default value of %s causes a cyclic dependency."
}
;
306#define _OMC_LIT111((void*)((char*)(&(_OMC_LIT_STRUCT111).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT111)((void*)((char*)(&(_OMC_LIT_STRUCT111).header) + 3))
307static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT112,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT112
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT111((void*)((char*)(&(_OMC_LIT_STRUCT111).header) + 3))}};
308#define _OMC_LIT112((void*)((char*)(&(_OMC_LIT_STRUCT112).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT112)((void*)((char*)(&(_OMC_LIT_STRUCT112).header) + 3))
309static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT113,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT113
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(267))((void*)(((((mmc_uint_t) (267)) << 1)+0))),_OMC_LIT110((void*)((char*)(&(_OMC_LIT_STRUCT110).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_OMC_LIT112((void*)((char*)(&(_OMC_LIT_STRUCT112).header) + 3))}};
310#define _OMC_LIT113((void*)((char*)(&(_OMC_LIT_STRUCT113).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT113)((void*)((char*)(&(_OMC_LIT_STRUCT113).header) + 3))
311#define _OMC_LIT114_data"Function parameter %s was not given by the function call, and does not have a default value." "Function parameter %s was not given by the function call, and does not have a default value."
312static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT114,92,_OMC_LIT114_data)struct { mmc_uint_t header; const char data[(92)+1]; } _OMC_LIT_STRUCT114
= { ((((mmc_uint_t)92)<<(3))+((1<<(3+3))+5)), "Function parameter %s was not given by the function call, and does not have a default value."
}
;
313#define _OMC_LIT114((void*)((char*)(&(_OMC_LIT_STRUCT114).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT114)((void*)((char*)(&(_OMC_LIT_STRUCT114).header) + 3))
314static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT115,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT115
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT114((void*)((char*)(&(_OMC_LIT_STRUCT114).header) + 3))}};
315#define _OMC_LIT115((void*)((char*)(&(_OMC_LIT_STRUCT115).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT115)((void*)((char*)(&(_OMC_LIT_STRUCT115).header) + 3))
316static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT116,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT116
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(203))((void*)(((((mmc_uint_t) (203)) << 1)+0))),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_OMC_LIT115((void*)((char*)(&(_OMC_LIT_STRUCT115).header) + 3))}};
317#define _OMC_LIT116((void*)((char*)(&(_OMC_LIT_STRUCT116).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT116)((void*)((char*)(&(_OMC_LIT_STRUCT116).header) + 3))
318#define _OMC_LIT117_data"Slot %s already filled in a function call in component %s." "Slot %s already filled in a function call in component %s."
319static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT117,58,_OMC_LIT117_data)struct { mmc_uint_t header; const char data[(58)+1]; } _OMC_LIT_STRUCT117
= { ((((mmc_uint_t)58)<<(3))+((1<<(3+3))+5)), "Slot %s already filled in a function call in component %s."
}
;
320#define _OMC_LIT117((void*)((char*)(&(_OMC_LIT_STRUCT117).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT117)((void*)((char*)(&(_OMC_LIT_STRUCT117).header) + 3))
321static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT118,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT118
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT117((void*)((char*)(&(_OMC_LIT_STRUCT117).header) + 3))}};
322#define _OMC_LIT118((void*)((char*)(&(_OMC_LIT_STRUCT118).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT118)((void*)((char*)(&(_OMC_LIT_STRUCT118).header) + 3))
323static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT119,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT119
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(79))((void*)(((((mmc_uint_t) (79)) << 1)+0))),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_OMC_LIT118((void*)((char*)(&(_OMC_LIT_STRUCT118).header) + 3))}};
324#define _OMC_LIT119((void*)((char*)(&(_OMC_LIT_STRUCT119).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT119)((void*)((char*)(&(_OMC_LIT_STRUCT119).header) + 3))
325#define _OMC_LIT120_data"Function %s has no parameter named %s." "Function %s has no parameter named %s."
326static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT120,38,_OMC_LIT120_data)struct { mmc_uint_t header; const char data[(38)+1]; } _OMC_LIT_STRUCT120
= { ((((mmc_uint_t)38)<<(3))+((1<<(3+3))+5)), "Function %s has no parameter named %s."
}
;
327#define _OMC_LIT120((void*)((char*)(&(_OMC_LIT_STRUCT120).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT120)((void*)((char*)(&(_OMC_LIT_STRUCT120).header) + 3))
328static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT121,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT121
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT120((void*)((char*)(&(_OMC_LIT_STRUCT120).header) + 3))}};
329#define _OMC_LIT121((void*)((char*)(&(_OMC_LIT_STRUCT121).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT121)((void*)((char*)(&(_OMC_LIT_STRUCT121).header) + 3))
330static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT122,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT122
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(80))((void*)(((((mmc_uint_t) (80)) << 1)+0))),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_OMC_LIT121((void*)((char*)(&(_OMC_LIT_STRUCT121).header) + 3))}};
331#define _OMC_LIT122((void*)((char*)(&(_OMC_LIT_STRUCT122).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT122)((void*)((char*)(&(_OMC_LIT_STRUCT122).header) + 3))
332#define _OMC_LIT123_data"<function>" "<function>"
333static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT123,10,_OMC_LIT123_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT123
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "<function>"
}
;
334#define _OMC_LIT123((void*)((char*)(&(_OMC_LIT_STRUCT123).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT123)((void*)((char*)(&(_OMC_LIT_STRUCT123).header) + 3))
335#define _OMC_LIT124_data"(" "("
336static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT124,1,_OMC_LIT124_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT124
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "("
}
;
337#define _OMC_LIT124((void*)((char*)(&(_OMC_LIT_STRUCT124).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT124)((void*)((char*)(&(_OMC_LIT_STRUCT124).header) + 3))
338#define _OMC_LIT125_data", " ", "
339static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT125,2,_OMC_LIT125_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT125
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ", "
}
;
340#define _OMC_LIT125((void*)((char*)(&(_OMC_LIT_STRUCT125).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT125)((void*)((char*)(&(_OMC_LIT_STRUCT125).header) + 3))
341#define _OMC_LIT126_data") => " ") => "
342static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT126,5,_OMC_LIT126_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT126
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), ") => "
}
;
343#define _OMC_LIT126((void*)((char*)(&(_OMC_LIT_STRUCT126).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT126)((void*)((char*)(&(_OMC_LIT_STRUCT126).header) + 3))
344#define _OMC_LIT127_data" = " " = "
345static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT127,3,_OMC_LIT127_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT127
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), " = "
}
;
346#define _OMC_LIT127((void*)((char*)(&(_OMC_LIT_STRUCT127).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT127)((void*)((char*)(&(_OMC_LIT_STRUCT127).header) + 3))
347#define _OMC_LIT128_data")" ")"
348static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT128,1,_OMC_LIT128_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT128
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), ")"
}
;
349#define _OMC_LIT128((void*)((char*)(&(_OMC_LIT_STRUCT128).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT128)((void*)((char*)(&(_OMC_LIT_STRUCT128).header) + 3))
350#define _OMC_LIT129_data"\n " "\n "
351static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT129,3,_OMC_LIT129_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT129
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "\n "
}
;
352#define _OMC_LIT129((void*)((char*)(&(_OMC_LIT_STRUCT129).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT129)((void*)((char*)(&(_OMC_LIT_STRUCT129).header) + 3))
353#define _OMC_LIT130_data"$" "$"
354static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT130,1,_OMC_LIT130_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT130
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "$"
}
;
355#define _OMC_LIT130((void*)((char*)(&(_OMC_LIT_STRUCT130).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT130)((void*)((char*)(&(_OMC_LIT_STRUCT130).header) + 3))
356#define _OMC_LIT131_data" " " "
357static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT131,1,_OMC_LIT131_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT131
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), " "
}
;
358#define _OMC_LIT131((void*)((char*)(&(_OMC_LIT_STRUCT131).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT131)((void*)((char*)(&(_OMC_LIT_STRUCT131).header) + 3))
359#define _OMC_LIT132_data" => " " => "
360static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT132,4,_OMC_LIT132_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT132
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), " => "
}
;
361#define _OMC_LIT132((void*)((char*)(&(_OMC_LIT_STRUCT132).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT132)((void*)((char*)(&(_OMC_LIT_STRUCT132).header) + 3))
362static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT133,1,10)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT133
= { (((1) << 10) + (((10) & 255) << 2)),
{&NFInstNode_InstNode_EMPTY__NODE__desc,}};
363#define _OMC_LIT133((void*)((char*)(&(_OMC_LIT_STRUCT133).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT133)((void*)((char*)(&(_OMC_LIT_STRUCT133).header) + 3))
364static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT134,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT134
= { (((1) << 10) + (((5) & 255) << 2)),
{&NFSections_EMPTY__desc,}};
365#define _OMC_LIT134((void*)((char*)(&(_OMC_LIT_STRUCT134).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT134)((void*)((char*)(&(_OMC_LIT_STRUCT134).header) + 3))
366#define _OMC_LIT135_data"Function call %s contains subscripts." "Function call %s contains subscripts."
367static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT135,37,_OMC_LIT135_data)struct { mmc_uint_t header; const char data[(37)+1]; } _OMC_LIT_STRUCT135
= { ((((mmc_uint_t)37)<<(3))+((1<<(3+3))+5)), "Function call %s contains subscripts."
}
;
368#define _OMC_LIT135((void*)((char*)(&(_OMC_LIT_STRUCT135).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT135)((void*)((char*)(&(_OMC_LIT_STRUCT135).header) + 3))
369static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT136,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT136
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT135((void*)((char*)(&(_OMC_LIT_STRUCT135).header) + 3))}};
370#define _OMC_LIT136((void*)((char*)(&(_OMC_LIT_STRUCT136).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT136)((void*)((char*)(&(_OMC_LIT_STRUCT136).header) + 3))
371static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT137,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT137
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(113))((void*)(((((mmc_uint_t) (113)) << 1)+0))),_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_OMC_LIT136((void*)((char*)(&(_OMC_LIT_STRUCT136).header) + 3))}};
372#define _OMC_LIT137((void*)((char*)(&(_OMC_LIT_STRUCT137).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT137)((void*)((char*)(&(_OMC_LIT_STRUCT137).header) + 3))
373static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT138,1,13)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT138
= { (((1) << 10) + (((13) & 255) << 2)),
{&NFType_UNKNOWN__desc,}};
374#define _OMC_LIT138((void*)((char*)(&(_OMC_LIT_STRUCT138).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT138)((void*)((char*)(&(_OMC_LIT_STRUCT138).header) + 3))
375#include "util/modelica.h"
376
377#include "NFFunction_includes.h"
378
379
380/* default, do not make protected functions static */
381#if !defined(PROTECTED_FUNCTION_STATIC)
382#define PROTECTED_FUNCTION_STATIC
383#endif
384PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFFunction_Function_isValidParamState(threadData_t *threadData, modelica_metatype _cls);
385PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFFunction_Function_isValidParamState(threadData_t *threadData, modelica_metatype _cls);
386static const MMC_DEFSTRUCTLIT(boxvar_lit_NFFunction_Function_isValidParamState,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFFunction_Function_isValidParamState
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFFunction_Function_isValidParamState,0}};
387#define boxvar_NFFunction_Function_isValidParamState((void*)((char*)(&(boxvar_lit_NFFunction_Function_isValidParamState
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFFunction_Function_isValidParamState)((void*)((char*)(&(boxvar_lit_NFFunction_Function_isValidParamState
).header) + 3))
388PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFFunction_Function_isValidParamType(threadData_t *threadData, modelica_metatype _ty);
389PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFFunction_Function_isValidParamType(threadData_t *threadData, modelica_metatype _ty);
390static const MMC_DEFSTRUCTLIT(boxvar_lit_NFFunction_Function_isValidParamType,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFFunction_Function_isValidParamType
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFFunction_Function_isValidParamType,0}};
391#define boxvar_NFFunction_Function_isValidParamType((void*)((char*)(&(boxvar_lit_NFFunction_Function_isValidParamType
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFFunction_Function_isValidParamType)((void*)((char*)(&(boxvar_lit_NFFunction_Function_isValidParamType
).header) + 3))
392PROTECTED_FUNCTION_STATIC void omc_NFFunction_Function_checkParamTypes2(threadData_t *threadData, modelica_metatype _params);
393static const MMC_DEFSTRUCTLIT(boxvar_lit_NFFunction_Function_checkParamTypes2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFFunction_Function_checkParamTypes2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFFunction_Function_checkParamTypes2omc_NFFunction_Function_checkParamTypes2,0}};
394#define boxvar_NFFunction_Function_checkParamTypes2((void*)((char*)(&(boxvar_lit_NFFunction_Function_checkParamTypes2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFFunction_Function_checkParamTypes2)((void*)((char*)(&(boxvar_lit_NFFunction_Function_checkParamTypes2
).header) + 3))
395PROTECTED_FUNCTION_STATIC void omc_NFFunction_Function_checkParamTypes(threadData_t *threadData, modelica_metatype _fn);
396static const MMC_DEFSTRUCTLIT(boxvar_lit_NFFunction_Function_checkParamTypes,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFFunction_Function_checkParamTypes
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFFunction_Function_checkParamTypesomc_NFFunction_Function_checkParamTypes,0}};
397#define boxvar_NFFunction_Function_checkParamTypes((void*)((char*)(&(boxvar_lit_NFFunction_Function_checkParamTypes
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFFunction_Function_checkParamTypes)((void*)((char*)(&(boxvar_lit_NFFunction_Function_checkParamTypes
).header) + 3))
398PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFFunction_Function_makeAttributes(threadData_t *threadData, modelica_metatype _node, modelica_metatype _inputs, modelica_metatype _outputs);
399static const MMC_DEFSTRUCTLIT(boxvar_lit_NFFunction_Function_makeAttributes,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFFunction_Function_makeAttributes
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFFunction_Function_makeAttributesomc_NFFunction_Function_makeAttributes,0}};
400#define boxvar_NFFunction_Function_makeAttributes((void*)((char*)(&(boxvar_lit_NFFunction_Function_makeAttributes
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFFunction_Function_makeAttributes)((void*)((char*)(&(boxvar_lit_NFFunction_Function_makeAttributes
).header) + 3))
401PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFFunction_Function_mergeFunctionAnnotations(threadData_t *threadData, modelica_metatype _comments);
402static const MMC_DEFSTRUCTLIT(boxvar_lit_NFFunction_Function_mergeFunctionAnnotations,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFFunction_Function_mergeFunctionAnnotations
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFFunction_Function_mergeFunctionAnnotationsomc_NFFunction_Function_mergeFunctionAnnotations,0}};
403#define boxvar_NFFunction_Function_mergeFunctionAnnotations((void*)((char*)(&(boxvar_lit_NFFunction_Function_mergeFunctionAnnotations
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFFunction_Function_mergeFunctionAnnotations)((void*)((char*)(&(boxvar_lit_NFFunction_Function_mergeFunctionAnnotations
).header) + 3))
404PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFFunction_Function_getBuiltin(threadData_t *threadData, modelica_metatype _def);
405static const MMC_DEFSTRUCTLIT(boxvar_lit_NFFunction_Function_getBuiltin,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFFunction_Function_getBuiltin
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFFunction_Function_getBuiltinomc_NFFunction_Function_getBuiltin,0}};
406#define boxvar_NFFunction_Function_getBuiltin((void*)((char*)(&(boxvar_lit_NFFunction_Function_getBuiltin
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFFunction_Function_getBuiltin)((void*)((char*)(&(boxvar_lit_NFFunction_Function_getBuiltin
).header) + 3))
407PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFFunction_Function_hasImpure(threadData_t *threadData, modelica_metatype _cmt);
408PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFFunction_Function_hasImpure(threadData_t *threadData, modelica_metatype _cmt);
409static const MMC_DEFSTRUCTLIT(boxvar_lit_NFFunction_Function_hasImpure,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFFunction_Function_hasImpure
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFFunction_Function_hasImpure,0}};
410#define boxvar_NFFunction_Function_hasImpure((void*)((char*)(&(boxvar_lit_NFFunction_Function_hasImpure
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFFunction_Function_hasImpure)((void*)((char*)(&(boxvar_lit_NFFunction_Function_hasImpure
).header) + 3))
411PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFFunction_Function_hasOMPure(threadData_t *threadData, modelica_metatype _cmt);
412PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFFunction_Function_hasOMPure(threadData_t *threadData, modelica_metatype _cmt);
413static const MMC_DEFSTRUCTLIT(boxvar_lit_NFFunction_Function_hasOMPure,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFFunction_Function_hasOMPure
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFFunction_Function_hasOMPure,0}};
414#define boxvar_NFFunction_Function_hasOMPure((void*)((char*)(&(boxvar_lit_NFFunction_Function_hasOMPure
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFFunction_Function_hasOMPure)((void*)((char*)(&(boxvar_lit_NFFunction_Function_hasOMPure
).header) + 3))
415PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFFunction_Function_makeSlot(threadData_t *threadData, modelica_metatype _component, modelica_integer _index);
416PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFFunction_Function_makeSlot(threadData_t *threadData, modelica_metatype _component, modelica_metatype _index);
417static const MMC_DEFSTRUCTLIT(boxvar_lit_NFFunction_Function_makeSlot,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFFunction_Function_makeSlot
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFFunction_Function_makeSlot,0}};
418#define boxvar_NFFunction_Function_makeSlot((void*)((char*)(&(boxvar_lit_NFFunction_Function_makeSlot
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFFunction_Function_makeSlot)((void*)((char*)(&(boxvar_lit_NFFunction_Function_makeSlot
).header) + 3))
419PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFFunction_Function_makeSlots(threadData_t *threadData, modelica_metatype _inputs);
420static const MMC_DEFSTRUCTLIT(boxvar_lit_NFFunction_Function_makeSlots,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFFunction_Function_makeSlots
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFFunction_Function_makeSlotsomc_NFFunction_Function_makeSlots,0}};
421#define boxvar_NFFunction_Function_makeSlots((void*)((char*)(&(boxvar_lit_NFFunction_Function_makeSlots
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFFunction_Function_makeSlots)((void*)((char*)(&(boxvar_lit_NFFunction_Function_makeSlots
).header) + 3))
422PROTECTED_FUNCTION_STATIC modelica_integer omc_NFFunction_Function_paramDirection(threadData_t *threadData, modelica_metatype _component);
423PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFFunction_Function_paramDirection(threadData_t *threadData, modelica_metatype _component);
424static const MMC_DEFSTRUCTLIT(boxvar_lit_NFFunction_Function_paramDirection,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFFunction_Function_paramDirection
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFFunction_Function_paramDirection,0}};
425#define boxvar_NFFunction_Function_paramDirection((void*)((char*)(&(boxvar_lit_NFFunction_Function_paramDirection
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFFunction_Function_paramDirection)((void*)((char*)(&(boxvar_lit_NFFunction_Function_paramDirection
).header) + 3))
426PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFFunction_Function_collectParams(threadData_t *threadData, modelica_metatype _node, modelica_metatype _D_24in_inputs, modelica_metatype _D_24in_outputs, modelica_metatype _D_24in_locals, modelica_metatype *out_outputs, modelica_metatype *out_locals);
427static const MMC_DEFSTRUCTLIT(boxvar_lit_NFFunction_Function_collectParams,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFFunction_Function_collectParams
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFFunction_Function_collectParamsomc_NFFunction_Function_collectParams,0}};
428#define boxvar_NFFunction_Function_collectParams((void*)((char*)(&(boxvar_lit_NFFunction_Function_collectParams
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFFunction_Function_collectParams)((void*)((char*)(&(boxvar_lit_NFFunction_Function_collectParams
).header) + 3))
429
430DLLExport
431modelica_metatype omc_NFFunction_Function_getBody2(threadData_t *threadData, modelica_metatype _node)
432{
433 modelica_metatype _body = NULL((void*)0);
434 modelica_metatype _cls = NULL((void*)0);
435 modelica_metatype _fn_body = NULL((void*)0);
436 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
437 MMC_SO()mmc_check_stackoverflow(threadData);
438 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
439 // _body has no default value.
440 _cls = omc_NFInstNode_InstNode_getClass(threadData, _node);
441 // _fn_body has no default value.
442#line 442 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
443 { /* match expression */
444 modelica_metatype tmp3_1;
445 tmp3_1 = _cls;
446 {
447 volatile mmc_switch_type tmp3;
448 int tmp4;
449 tmp3 = 0;
450 for (; tmp3 < 5; tmp3++) {
451 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
452 case 0: {
453 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,5,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
454 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
455 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,4)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((4 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
456 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
457 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
458 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
459 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
460 if (!listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
461
462 _fn_body = tmpMeta[3];
463 /* Pattern matching succeeded */
464#line 2069 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
465 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn_body), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_fn_body) - 3))
) + (2)))))
);
466#line 466 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
467 goto tmp2_done;
468 }
469 case 1: {
470 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,5,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
471 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
472 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((0 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
473
474 /* Pattern matching succeeded */
475#line 2070 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
476 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
477#line 2070 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
478 tmpMeta[0] = tmpMeta[1];
479#line 479 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
480 goto tmp2_done;
481 }
482 case 2: {
483 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,5,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
484 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
485 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,4)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((4 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
486 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
487 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
488 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
489 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
490
491 /* Pattern matching succeeded */
492#line 2074 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
493 omc_Error_assertion(threadData, 0, _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)), _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)));
494#line 494 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
495#line 2075 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
496 goto goto_1;
497#line 497 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
498 goto tmp2_done;
499 }
500 case 3: {
501 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,7,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((3 +1) <<
10) + (((7 +3) & 255) << 2)))
== 0) goto tmp2_end;
502
503 /* Pattern matching succeeded */
504#line 2078 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
505 /* Tail recursive call */
506#line 2078 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
507 _node = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_cls), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_cls) - 3))) + (
3)))))
);
508#line 2078 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
509 goto _tailrecursive;
510#line 2078 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
511 /* TODO: Make sure any eventual dead code below is never generated */
512#line 512 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
513 goto tmp2_done;
514 }
515 case 4: {
516
517 /* Pattern matching succeeded */
518#line 2082 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
519 omc_Error_assertion(threadData, 0, _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)), _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)));
520#line 520 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
521#line 2083 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
522 goto goto_1;
523#line 523 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
524 goto tmp2_done;
525 }
526 }
527 goto tmp2_end;
528 tmp2_end: ;
529 }
530 goto goto_1;
531 goto_1:;
532 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
533 goto tmp2_done;
534 tmp2_done:;
535 }
536 }
537 _body = tmpMeta[0];
538 _return: OMC_LABEL_UNUSED__attribute__((unused))
539 return _body;
540}
541
542DLLExport
543modelica_metatype omc_NFFunction_Function_makeReturnType(threadData_t *threadData, modelica_metatype _fn)
544{
545 modelica_metatype _returnType = NULL((void*)0);
546 modelica_metatype _ret_tyl = NULL((void*)0);
547 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
548 MMC_SO()mmc_check_stackoverflow(threadData);
549 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
550 // _returnType has no default value.
551 // _ret_tyl has no default value.
552#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
553 {
554#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
555 modelica_metatype _D_24tmpVar1;
556#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
557 modelica_metatype* tmp1;
558#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
559 modelica_metatype _D_24tmpVar0;
560#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
561 int tmp2;
562#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
563 modelica_metatype _o_loopVar = 0;
564#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
565 modelica_metatype _o;
566#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
567 _o_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
5)))))
);
568#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
569 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
570#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
571 _D_24tmpVar1 = tmpMeta[1]; /* defaultValue */
572#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
573 tmp1 = &_D_24tmpVar1;
574#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
575 while(1) {
576#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
577 tmp2 = 1;
578#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
579 if (!listEmpty(_o_loopVar)((*(mmc_uint_t*)((void*)((char*)(_o_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
580#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
581 _o = MMC_CAR(_o_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_o_loopVar) - 3
))) + (1)))))
;
582#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
583 _o_loopVar = MMC_CDR(_o_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_o_loopVar) - 3
))) + (2)))))
;
584#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
585 tmp2--;
586#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
587 }
588#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
589 if (tmp2 == 0) {
590#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
591 _D_24tmpVar0 = omc_NFInstNode_InstNode_getType(threadData, _o);
592#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
593 *tmp1 = mmc_mk_cons(_D_24tmpVar0,0);
594#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
595 tmp1 = &MMC_CDR(*tmp1)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp1) - 3))) +
(2)))))
;
596#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
597 } else if (tmp2 == 1) {
598#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
599 break;
600#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
601 } else {
602#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
603 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
604#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
605 }
606#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
607 }
608#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
609 *tmp1 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
610#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
611 tmpMeta[0] = _D_24tmpVar1;
612#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
613 }
614#line 2052 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
615 _ret_tyl = tmpMeta[0];
616#line 616 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
617
618#line 618 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
619 { /* match expression */
620 modelica_metatype tmp5_1;
621 tmp5_1 = _ret_tyl;
622 {
623 volatile mmc_switch_type tmp5;
624 int tmp6;
625 tmp5 = 0;
626 for (; tmp5 < 3; tmp5++) {
627 switch (MMC_SWITCH_CAST(tmp5)(tmp5)) {
628 case 0: {
629 if (!listEmpty(tmp5_1)((*(mmc_uint_t*)((void*)((char*)(tmp5_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp4_end;
630 /* Pattern matching succeeded */
631#line 2055 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
632 tmpMeta[0] = _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3));
633#line 633 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
634 goto tmp4_done;
635 }
636 case 1: {
637 if (listEmpty(tmp5_1)((*(mmc_uint_t*)((void*)((char*)(tmp5_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp4_end;
638 tmpMeta[1] = MMC_CAR(tmp5_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp5_1) - 3))) +
(1)))))
;
639 tmpMeta[2] = MMC_CDR(tmp5_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp5_1) - 3))) +
(2)))))
;
640 if (!listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp4_end;
641 _returnType = tmpMeta[1];
642 /* Pattern matching succeeded */
643#line 2056 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
644 tmpMeta[0] = _returnType;
645#line 645 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
646 goto tmp4_done;
647 }
648 case 2: {
649
650 /* Pattern matching succeeded */
651#line 2057 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
652 tmpMeta[1] = mmc_mk_box3(11, &NFType_TUPLE__desc, _ret_tyl, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
653#line 2057 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
654 tmpMeta[0] = tmpMeta[1];
655#line 655 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
656 goto tmp4_done;
657 }
658 }
659 goto tmp4_end;
660 tmp4_end: ;
661 }
662 goto goto_3;
663 goto_3:;
664 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
665 goto tmp4_done;
666 tmp4_done:;
667 }
668 }
669 _returnType = tmpMeta[0];
670 _return: OMC_LABEL_UNUSED__attribute__((unused))
671 return _returnType;
672}
673
674PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFFunction_Function_isValidParamState(threadData_t *threadData, modelica_metatype _cls)
675{
676 modelica_boolean _isValid;
677 modelica_boolean tmp1 = 0;
678 MMC_SO()mmc_check_stackoverflow(threadData);
679 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
680 // _isValid has no default value.
681#line 681 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
682 { /* match expression */
683 modelica_metatype tmp4_1;
684 tmp4_1 = omc_NFClass_Class_restriction(threadData, omc_NFInstNode_InstNode_getClass(threadData, _cls));
685 {
686 int tmp4;
687 {
688 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
689 case 10: {
690
691 /* Pattern matching succeeded */
692#line 2037 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
693 tmp1 = 1;
694#line 694 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
695 goto tmp3_done;
696 }
697 case 12: {
698
699 /* Pattern matching succeeded */
700#line 2038 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
701 tmp1 = 1;
702#line 702 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
703 goto tmp3_done;
704 }
705 case 9: {
706
707 /* Pattern matching succeeded */
708#line 2039 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
709 tmp1 = 1;
710#line 710 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
711 goto tmp3_done;
712 }
713 case 7: {
714
715 /* Pattern matching succeeded */
716#line 2040 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
717 tmp1 = 1;
718#line 718 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
719 goto tmp3_done;
720 }
721 case 6: {
722
723 /* Pattern matching succeeded */
724#line 2041 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
725 tmp1 = 1;
726#line 726 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
727 goto tmp3_done;
728 }
729 default:
730 tmp3_default: OMC_LABEL_UNUSED__attribute__((unused)); {
731
732 /* Pattern matching succeeded */
733#line 2042 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
734 tmp1 = 0;
735#line 735 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
736 goto tmp3_done;
737 }
738 }
739 goto tmp3_end;
740 tmp3_end: ;
741 }
742 goto goto_2;
743 goto_2:;
744 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
745 goto tmp3_done;
746 tmp3_done:;
747 }
748 }
749 _isValid = tmp1;
750 _return: OMC_LABEL_UNUSED__attribute__((unused))
751 return _isValid;
752}
753PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFFunction_Function_isValidParamState(threadData_t *threadData, modelica_metatype _cls)
754{
755 modelica_boolean _isValid;
756 modelica_metatype out_isValid;
757 _isValid = omc_NFFunction_Function_isValidParamState(threadData, _cls);
758 out_isValid = mmc_mk_icon(_isValid);
759 return out_isValid;
760}
761
762PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFFunction_Function_isValidParamType(threadData_t *threadData, modelica_metatype _ty)
763{
764 modelica_boolean _isValid;
765 modelica_boolean tmp1 = 0;
766 MMC_SO()mmc_check_stackoverflow(threadData);
767 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
768 // _isValid has no default value.
769#line 769 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
770 { /* match expression */
771 modelica_metatype tmp4_1;
772 tmp4_1 = _ty;
773 {
774 int tmp4;
775 {
776 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
777 case 3: {
778
779 /* Pattern matching succeeded */
780#line 2016 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
781 tmp1 = 1;
782#line 782 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
783 goto tmp3_done;
784 }
785 case 4: {
786
787 /* Pattern matching succeeded */
788#line 2017 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
789 tmp1 = 1;
790#line 790 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
791 goto tmp3_done;
792 }
793 case 5: {
794
795 /* Pattern matching succeeded */
796#line 2018 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
797 tmp1 = 1;
798#line 798 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
799 goto tmp3_done;
800 }
801 case 6: {
802
803 /* Pattern matching succeeded */
804#line 2019 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
805 tmp1 = 1;
806#line 806 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
807 goto tmp3_done;
808 }
809 case 7: {
810
811 /* Pattern matching succeeded */
812#line 2020 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
813 tmp1 = 1;
814#line 814 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
815 goto tmp3_done;
816 }
817 case 8: {
818
819 /* Pattern matching succeeded */
820#line 2021 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
821 tmp1 = 1;
822#line 822 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
823 goto tmp3_done;
824 }
825 case 9: {
826
827 /* Pattern matching succeeded */
828#line 2022 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
829 tmp1 = 1;
830#line 830 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
831 goto tmp3_done;
832 }
833 case 17: {
834
835 /* Pattern matching succeeded */
836#line 2023 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
837 tmp1 = 1;
838#line 838 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
839 goto tmp3_done;
840 }
841 case 10: {
842
843 /* Pattern matching succeeded */
844#line 2024 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
845 /* Tail recursive call */
846#line 2024 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
847 _ty = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ty), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_ty) - 3))) + (
2)))))
);
848#line 2024 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
849 goto _tailrecursive;
850#line 2024 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
851 /* TODO: Make sure any eventual dead code below is never generated */
852#line 852 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
853 goto tmp3_done;
854 }
855 case 14: {
856
857 /* Pattern matching succeeded */
858#line 2025 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
859 tmp1 = omc_NFFunction_Function_isValidParamState(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ty), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_ty) - 3))) + (
2)))))
));
860#line 860 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
861 goto tmp3_done;
862 }
863 case 15: {
864
865 /* Pattern matching succeeded */
866#line 2026 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
867 tmp1 = 1;
868#line 868 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
869 goto tmp3_done;
870 }
871 case 16: {
872
873 /* Pattern matching succeeded */
874#line 2027 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
875 /* Tail recursive call */
876#line 2027 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
877 _ty = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_ty), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_ty) - 3))) + (
2)))))
);
878#line 2027 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
879 goto _tailrecursive;
880#line 2027 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
881 /* TODO: Make sure any eventual dead code below is never generated */
882#line 882 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
883 goto tmp3_done;
884 }
885 default:
886 tmp3_default: OMC_LABEL_UNUSED__attribute__((unused)); {
887
888 /* Pattern matching succeeded */
889#line 2028 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
890 tmp1 = 0;
891#line 891 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
892 goto tmp3_done;
893 }
894 }
895 goto tmp3_end;
896 tmp3_end: ;
897 }
898 goto goto_2;
899 goto_2:;
900 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
901 goto tmp3_done;
902 tmp3_done:;
903 }
904 }
905 _isValid = tmp1;
906 _return: OMC_LABEL_UNUSED__attribute__((unused))
907 return _isValid;
908}
909PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFFunction_Function_isValidParamType(threadData_t *threadData, modelica_metatype _ty)
910{
911 modelica_boolean _isValid;
912 modelica_metatype out_isValid;
913 _isValid = omc_NFFunction_Function_isValidParamType(threadData, _ty);
914 out_isValid = mmc_mk_icon(_isValid);
915 return out_isValid;
916}
917
918PROTECTED_FUNCTION_STATIC void omc_NFFunction_Function_checkParamTypes2(threadData_t *threadData, modelica_metatype _params)
919{
920 modelica_metatype _ty = NULL((void*)0);
921 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
922 MMC_SO()mmc_check_stackoverflow(threadData);
923 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
924 // _ty has no default value.
925#line 2000 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
926 {
927#line 2000 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
928 modelica_metatype _p;
929#line 2000 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
930 for (tmpMeta[0] = _params; !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)))))
)
931#line 2000 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
932 {
933#line 2000 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
934 _p = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
935#line 2001 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
936 _ty = omc_NFInstNode_InstNode_getType(threadData, _p);
937#line 937 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
938
939#line 2003 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
940 if((!omc_NFFunction_Function_isValidParamType(threadData, _ty)))
941#line 2003 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
942 {
943#line 2004 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
944 tmpMeta[1] = mmc_mk_cons(omc_NFType_toString(threadData, _ty), mmc_mk_cons(omc_NFInstNode_InstNode_name(threadData, _p), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
945#line 2004 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
946 omc_Error_addSourceMessage(threadData, _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)), tmpMeta[1], omc_NFInstNode_InstNode_info(threadData, _p));
947#line 947 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
948
949#line 2006 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
950 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
951#line 951 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
952 }
953 }
954 }
955 _return: OMC_LABEL_UNUSED__attribute__((unused))
956 return;
957}
958
959PROTECTED_FUNCTION_STATIC void omc_NFFunction_Function_checkParamTypes(threadData_t *threadData, modelica_metatype _fn)
960{
961 MMC_SO()mmc_check_stackoverflow(threadData);
962 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
963#line 1990 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
964 omc_NFFunction_Function_checkParamTypes2(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
4)))))
));
965#line 965 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
966
967#line 1991 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
968 omc_NFFunction_Function_checkParamTypes2(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
5)))))
));
969#line 969 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
970
971#line 1992 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
972 omc_NFFunction_Function_checkParamTypes2(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
6)))))
));
973#line 973 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
974 _return: OMC_LABEL_UNUSED__attribute__((unused))
975 return;
976}
977
978PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFFunction_Function_makeAttributes(threadData_t *threadData, modelica_metatype _node, modelica_metatype _inputs, modelica_metatype _outputs)
979{
980 modelica_metatype _attr = NULL((void*)0);
981 modelica_metatype _def = NULL((void*)0);
982 modelica_metatype _params = NULL((void*)0);
983 modelica_metatype _res = NULL((void*)0);
984 modelica_metatype _fres = NULL((void*)0);
985 modelica_boolean _is_partial;
986 modelica_metatype _cmts = NULL((void*)0);
987 modelica_metatype _cmt = NULL((void*)0);
988 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
989 MMC_SO()mmc_check_stackoverflow(threadData);
990 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
991 // _attr has no default value.
992 // _def has no default value.
993 // _params has no default value.
994 // _res has no default value.
995 // _fres has no default value.
996 // _is_partial has no default value.
997 // _cmts has no default value.
998 // _cmt has no default value.
999#line 1911 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1000 _def = omc_NFInstNode_InstNode_definition(threadData, _node);
1001#line 1001 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1002
1003#line 1912 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1004 _res = omc_SCodeUtil_getClassRestriction(threadData, _def);
1005#line 1005 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1006
1007#line 1914 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1008 omc_Error_assertion(threadData, omc_SCodeUtil_isFunctionRestriction(threadData, _res), _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)), _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)));
1009#line 1009 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1010
1011#line 1916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1012 /* Pattern-matching assignment */
1013#line 1916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1014 tmpMeta[0] = _res;
1015#line 1916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1016 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],9,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((1 +1)
<< 10) + (((9 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1017#line 1916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1018 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1019#line 1916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1020 _fres = tmpMeta[1];
1021#line 1021 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1022
1023#line 1917 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1024 _is_partial = omc_SCodeUtil_isPartial(threadData, _def);
1025#line 1025 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1026
1027#line 1919 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1028 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1029#line 1919 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1030 _cmts = omc_NFInstNode_InstNode_getComments(threadData, _node, tmpMeta[0]);
1031#line 1031 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1032
1033#line 1920 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1034 _cmt = omc_NFFunction_Function_mergeFunctionAnnotations(threadData, _cmts);
1035#line 1035 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1036
1037#line 1037 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1038 { /* matchcontinue expression */
1039 volatile modelica_metatype tmp3_1;
1040 tmp3_1 = _fres;
1041 {
1042 modelica_boolean _is_impure;
1043 modelica_boolean _has_unbox_args;
1044 modelica_string _name = NULL((void*)0);
1045 modelica_metatype _in_params = NULL((void*)0);
1046 modelica_metatype _out_params = NULL((void*)0);
1047 modelica_metatype _inline_ty = NULL((void*)0);
1048 volatile mmc_switch_type tmp3;
1049 int tmp4;
1050 // _is_impure has no default value.
1051 // _has_unbox_args has no default value.
1052 // _name has no default value.
1053 // _in_params has no default value.
1054 // _out_params has no default value.
1055 // _inline_ty has no default value.
1056 tmp3 = 0;
1057 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) {
1058 tmp2_top:
1059 threadData->mmc_jumper = &new_mmc_jumper;
1060 for (; tmp3 < 5; tmp3++) {
1061 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1062 case 0: {
1063 modelica_integer tmp5;
1064 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
1065 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1066 tmp5 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1067 _is_impure = tmp5 /* pattern as ty=Boolean */;
1068 tmp3 += 3; /* Pattern matching succeeded; we may skip some cases if we fail */
1069#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1070 {
1071#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1072 modelica_metatype _D_24tmpVar3;
1073#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1074 modelica_metatype* tmp6;
1075#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1076 modelica_string _D_24tmpVar2;
1077#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1078 int tmp7;
1079#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1080 modelica_metatype _i_loopVar = 0;
1081#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1082 modelica_metatype _i;
1083#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1084 _i_loopVar = _inputs;
1085#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1086 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1087#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1088 _D_24tmpVar3 = tmpMeta[2]; /* defaultValue */
1089#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1090 tmp6 = &_D_24tmpVar3;
1091#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1092 while(1) {
1093#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1094 tmp7 = 1;
1095#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1096 if (!listEmpty(_i_loopVar)((*(mmc_uint_t*)((void*)((char*)(_i_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
1097#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1098 _i = MMC_CAR(_i_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_i_loopVar) - 3
))) + (1)))))
;
1099#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1100 _i_loopVar = MMC_CDR(_i_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_i_loopVar) - 3
))) + (2)))))
;
1101#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1102 tmp7--;
1103#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1104 }
1105#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1106 if (tmp7 == 0) {
1107#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1108 _D_24tmpVar2 = omc_NFInstNode_InstNode_name(threadData, _i);
1109#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1110 *tmp6 = mmc_mk_cons(_D_24tmpVar2,0);
1111#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1112 tmp6 = &MMC_CDR(*tmp6)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp6) - 3))) +
(2)))))
;
1113#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1114 } else if (tmp7 == 1) {
1115#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1116 break;
1117#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1118 } else {
1119#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1120 goto goto_1;
1121#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1122 }
1123#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1124 }
1125#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1126 *tmp6 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1127#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1128 tmpMeta[1] = _D_24tmpVar3;
1129#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1130 }
1131#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1132 _in_params = tmpMeta[1];
1133#line 1133 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1134
1135#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1136 {
1137#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1138 modelica_metatype _D_24tmpVar5;
1139#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1140 modelica_metatype* tmp8;
1141#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1142 modelica_string _D_24tmpVar4;
1143#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1144 int tmp9;
1145#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1146 modelica_metatype _o_loopVar = 0;
1147#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1148 modelica_metatype _o;
1149#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1150 _o_loopVar = _outputs;
1151#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1152 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1153#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1154 _D_24tmpVar5 = tmpMeta[2]; /* defaultValue */
1155#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1156 tmp8 = &_D_24tmpVar5;
1157#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1158 while(1) {
1159#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1160 tmp9 = 1;
1161#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1162 if (!listEmpty(_o_loopVar)((*(mmc_uint_t*)((void*)((char*)(_o_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
1163#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1164 _o = MMC_CAR(_o_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_o_loopVar) - 3
))) + (1)))))
;
1165#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1166 _o_loopVar = MMC_CDR(_o_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_o_loopVar) - 3
))) + (2)))))
;
1167#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1168 tmp9--;
1169#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1170 }
1171#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1172 if (tmp9 == 0) {
1173#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1174 _D_24tmpVar4 = omc_NFInstNode_InstNode_name(threadData, _o);
1175#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1176 *tmp8 = mmc_mk_cons(_D_24tmpVar4,0);
1177#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1178 tmp8 = &MMC_CDR(*tmp8)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp8) - 3))) +
(2)))))
;
1179#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1180 } else if (tmp9 == 1) {
1181#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1182 break;
1183#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1184 } else {
1185#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1186 goto goto_1;
1187#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1188 }
1189#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1190 }
1191#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1192 *tmp8 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1193#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1194 tmpMeta[1] = _D_24tmpVar5;
1195#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1196 }
1197#line 1934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1198 _out_params = tmpMeta[1];
1199#line 1199 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1200
1201#line 1935 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1202 _name = omc_SCodeUtil_isBuiltinFunction(threadData, _def, _in_params, _out_params);
1203#line 1203 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1204
1205#line 1936 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1206 _inline_ty = omc_InstUtil_commentIsInlineFunc(threadData, _cmt);
1207#line 1207 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1208
1209#line 1937 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1210 _is_impure = (_is_impure || omc_NFFunction_Function_hasImpure(threadData, _cmt));
1211#line 1211 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1212
1213#line 1938 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1214 _has_unbox_args = omc_NFFunction_Function_hasUnboxArgsAnnotation(threadData, _cmt);
1215#line 1215 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1216#line 1939 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1217 tmpMeta[1] = mmc_mk_box3(4, &DAE_FunctionBuiltin_FUNCTION__BUILTIN__desc, mmc_mk_some(_name), mmc_mk_boolean(_has_unbox_args)((_has_unbox_args) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))
)
);
1218#line 1939 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1219 tmpMeta[2] = mmc_mk_box7(3, &DAE_FunctionAttributes_FUNCTION__ATTRIBUTES__desc, _inline_ty, mmc_mk_boolean(omc_NFFunction_Function_hasOMPure(threadData, _cmt))((omc_NFFunction_Function_hasOMPure(threadData, _cmt)) != 0 ?
(mmc_mk_icon(1)) : (mmc_mk_icon(0)))
, mmc_mk_boolean(_is_impure)((_is_impure) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(_is_partial)((_is_partial) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), tmpMeta[1], _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)));
1220#line 1939 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1221 tmpMeta[0] = tmpMeta[2];
1222#line 1222 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1223 goto tmp2_done;
1224 }
1225 case 1: {
1226 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,4,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((0 +1) <<
10) + (((4 +3) & 255) << 2)))
== 0) goto tmp2_end;
1227 /* Pattern matching succeeded */
1228#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1229 {
1230#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1231 modelica_metatype _D_24tmpVar7;
1232#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1233 modelica_metatype* tmp10;
1234#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1235 modelica_string _D_24tmpVar6;
1236#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1237 int tmp11;
1238#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1239 modelica_metatype _i_loopVar = 0;
1240#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1241 modelica_metatype _i;
1242#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1243 _i_loopVar = _inputs;
1244#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1245 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1246#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1247 _D_24tmpVar7 = tmpMeta[2]; /* defaultValue */
1248#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1249 tmp10 = &_D_24tmpVar7;
1250#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1251 while(1) {
1252#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1253 tmp11 = 1;
1254#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1255 if (!listEmpty(_i_loopVar)((*(mmc_uint_t*)((void*)((char*)(_i_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
1256#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1257 _i = MMC_CAR(_i_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_i_loopVar) - 3
))) + (1)))))
;
1258#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1259 _i_loopVar = MMC_CDR(_i_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_i_loopVar) - 3
))) + (2)))))
;
1260#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1261 tmp11--;
1262#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1263 }
1264#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1265 if (tmp11 == 0) {
1266#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1267 _D_24tmpVar6 = omc_NFInstNode_InstNode_name(threadData, _i);
1268#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1269 *tmp10 = mmc_mk_cons(_D_24tmpVar6,0);
1270#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1271 tmp10 = &MMC_CDR(*tmp10)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp10) - 3))) +
(2)))))
;
1272#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1273 } else if (tmp11 == 1) {
1274#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1275 break;
1276#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1277 } else {
1278#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1279 goto goto_1;
1280#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1281 }
1282#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1283 }
1284#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1285 *tmp10 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1286#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1287 tmpMeta[1] = _D_24tmpVar7;
1288#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1289 }
1290#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1291 _in_params = tmpMeta[1];
1292#line 1292 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1293
1294#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1295 {
1296#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1297 modelica_metatype _D_24tmpVar9;
1298#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1299 modelica_metatype* tmp12;
1300#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1301 modelica_string _D_24tmpVar8;
1302#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1303 int tmp13;
1304#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1305 modelica_metatype _o_loopVar = 0;
1306#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1307 modelica_metatype _o;
1308#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1309 _o_loopVar = _outputs;
1310#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1311 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1312#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1313 _D_24tmpVar9 = tmpMeta[2]; /* defaultValue */
1314#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1315 tmp12 = &_D_24tmpVar9;
1316#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1317 while(1) {
1318#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1319 tmp13 = 1;
1320#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1321 if (!listEmpty(_o_loopVar)((*(mmc_uint_t*)((void*)((char*)(_o_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
1322#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1323 _o = MMC_CAR(_o_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_o_loopVar) - 3
))) + (1)))))
;
1324#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1325 _o_loopVar = MMC_CDR(_o_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_o_loopVar) - 3
))) + (2)))))
;
1326#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1327 tmp13--;
1328#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1329 }
1330#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1331 if (tmp13 == 0) {
1332#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1333 _D_24tmpVar8 = omc_NFInstNode_InstNode_name(threadData, _o);
1334#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1335 *tmp12 = mmc_mk_cons(_D_24tmpVar8,0);
1336#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1337 tmp12 = &MMC_CDR(*tmp12)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp12) - 3))) +
(2)))))
;
1338#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1339 } else if (tmp13 == 1) {
1340#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1341 break;
1342#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1343 } else {
1344#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1345 goto goto_1;
1346#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1347 }
1348#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1349 }
1350#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1351 *tmp12 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1352#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1353 tmpMeta[1] = _D_24tmpVar9;
1354#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1355 }
1356#line 1947 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1357 _out_params = tmpMeta[1];
1358#line 1358 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1359
1360#line 1948 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1361 _name = omc_SCodeUtil_isBuiltinFunction(threadData, _def, _in_params, _out_params);
1362#line 1362 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1363
1364#line 1949 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1365 _inline_ty = omc_InstUtil_commentIsInlineFunc(threadData, _cmt);
1366#line 1366 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1367
1368#line 1950 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1369 _has_unbox_args = omc_NFFunction_Function_hasUnboxArgsAnnotation(threadData, _cmt);
1370#line 1370 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1371#line 1951 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1372 tmpMeta[1] = mmc_mk_box3(4, &DAE_FunctionBuiltin_FUNCTION__BUILTIN__desc, mmc_mk_some(_name), mmc_mk_boolean(_has_unbox_args)((_has_unbox_args) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))
)
);
1373#line 1951 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1374 tmpMeta[2] = mmc_mk_box7(3, &DAE_FunctionAttributes_FUNCTION__ATTRIBUTES__desc, _inline_ty, mmc_mk_boolean(omc_NFFunction_Function_hasOMPure(threadData, _cmt))((omc_NFFunction_Function_hasOMPure(threadData, _cmt)) != 0 ?
(mmc_mk_icon(1)) : (mmc_mk_icon(0)))
, mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(_is_partial)((_is_partial) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), tmpMeta[1], _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)));
1375#line 1951 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1376 tmpMeta[0] = tmpMeta[2];
1377#line 1377 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1378 goto tmp2_done;
1379 }
1380 case 2: {
1381 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,4,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((0 +1) <<
10) + (((4 +3) & 255) << 2)))
== 0) goto tmp2_end;
1382 tmp3 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
1383#line 1958 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1384 _inline_ty = omc_InstUtil_commentIsInlineFunc(threadData, _cmt);
1385#line 1385 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1386#line 1959 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1387 tmpMeta[1] = mmc_mk_box7(3, &DAE_FunctionAttributes_FUNCTION__ATTRIBUTES__desc, _inline_ty, mmc_mk_boolean(omc_NFFunction_Function_hasOMPure(threadData, _cmt))((omc_NFFunction_Function_hasOMPure(threadData, _cmt)) != 0 ?
(mmc_mk_icon(1)) : (mmc_mk_icon(0)))
, mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(_is_partial)((_is_partial) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), omc_NFFunction_Function_getBuiltin(threadData, _def), _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)));
1388#line 1959 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1389 tmpMeta[0] = tmpMeta[1];
1390#line 1390 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1391 goto tmp2_done;
1392 }
1393 case 3: {
1394 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,5,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((0 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
1395 /* Pattern matching succeeded */
1396#line 1965 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1397 tmpMeta[1] = mmc_mk_box7(3, &DAE_FunctionAttributes_FUNCTION__ATTRIBUTES__desc, _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)), mmc_mk_boolean(1)((1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(_is_partial)((_is_partial) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)), _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)));
1398#line 1965 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1399 tmpMeta[0] = tmpMeta[1];
1400#line 1400 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1401 goto tmp2_done;
1402 }
1403 case 4: {
1404
1405 /* Pattern matching succeeded */
1406#line 1971 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1407 _inline_ty = omc_InstUtil_commentIsInlineFunc(threadData, _cmt);
1408#line 1408 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1409
1410#line 1974 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1411 _is_impure = (omc_SCodeUtil_isRestrictionImpure(threadData, _res, (omc_Config_languageStandardAtLeast(threadData, 6) || (!listEmpty(_outputs)((*(mmc_uint_t*)((void*)((char*)(_outputs) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
))) || omc_SCodeUtil_commentHasBooleanNamedAnnotation(threadData, _cmt, _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))));
1412#line 1412 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1413#line 1978 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1414 tmpMeta[1] = mmc_mk_box7(3, &DAE_FunctionAttributes_FUNCTION__ATTRIBUTES__desc, _inline_ty, mmc_mk_boolean(omc_NFFunction_Function_hasOMPure(threadData, _cmt))((omc_NFFunction_Function_hasOMPure(threadData, _cmt)) != 0 ?
(mmc_mk_icon(1)) : (mmc_mk_icon(0)))
, mmc_mk_boolean(_is_impure)((_is_impure) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(_is_partial)((_is_partial) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), omc_NFFunction_Function_getBuiltin(threadData, _def), _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)));
1415#line 1978 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1416 tmpMeta[0] = tmpMeta[1];
1417#line 1417 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1418 goto tmp2_done;
1419 }
1420 }
1421 goto tmp2_end;
1422 tmp2_end: ;
1423 }
1424 goto goto_1;
1425 tmp2_done:
1426 (void)tmp3;
1427 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1428 goto tmp2_done2;
1429 goto_1:;
1430 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1431 if (++tmp3 < 5) {
1432 goto tmp2_top;
1433 }
1434 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1435 tmp2_done2:;
1436 }
1437 }
1438 _attr = tmpMeta[0];
1439 _return: OMC_LABEL_UNUSED__attribute__((unused))
1440 return _attr;
1441}
1442
1443PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFFunction_Function_mergeFunctionAnnotations(threadData_t *threadData, modelica_metatype _comments)
1444{
1445 modelica_metatype _outComment = NULL((void*)0);
1446 modelica_metatype _comment = NULL((void*)0);
1447 modelica_metatype _mod = NULL((void*)0);
1448 modelica_metatype _mod2 = NULL((void*)0);
1449 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
1450 MMC_SO()mmc_check_stackoverflow(threadData);
1451 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1452 // _outComment has no default value.
1453 _comment = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
1454 _mod = _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3));
1455 // _mod2 has no default value.
1456#line 1879 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1457 {
1458#line 1879 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1459 modelica_metatype _cmt;
1460#line 1879 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1461 for (tmpMeta[0] = _comments; !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)))))
)
1462#line 1879 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1463 {
1464#line 1879 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1465 _cmt = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1466#line 1880 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1467 if(isNone(_comment)(0==((((((*(mmc_uint_t*)((void*)((char*)(_comment) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(_comment) -
3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(_comment
) - 3)))) >> 10)) ? 1 : 0)
)
1468#line 1880 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1469 {
1470#line 1881 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1471 _comment = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_cmt), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_cmt) - 3))) + (
3)))))
);
1472#line 1472 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1473 }
1474
1475#line 1475 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1476 { /* match expression */
1477 modelica_metatype tmp3_1;
1478 tmp3_1 = _cmt;
1479 {
1480 volatile mmc_switch_type tmp3;
1481 int tmp4;
1482 tmp3 = 0;
1483 for (; tmp3 < 2; tmp3++) {
1484 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1485 case 0: {
1486 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1487 if (optionNone(tmpMeta[2])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[2]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
1488 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
1489 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
1490
1491 _mod2 = tmpMeta[4];
1492 /* Pattern matching succeeded */
1493#line 1886 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1494 tmpMeta[1] = omc_SCodeUtil_mergeModifiers(threadData, _mod2, _mod);
1495#line 1495 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1496 goto tmp2_done;
1497 }
1498 case 1: {
1499
1500 /* Pattern matching succeeded */
1501#line 1887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1502 tmpMeta[1] = _mod;
1503#line 1503 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1504 goto tmp2_done;
1505 }
1506 }
1507 goto tmp2_end;
1508 tmp2_end: ;
1509 }
1510 goto goto_1;
1511 goto_1:;
1512 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1513 goto tmp2_done;
1514 tmp2_done:;
1515 }
1516 }
1517 _mod = tmpMeta[1];
1518 }
1519 }
1520
1521#line 1521 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1522 { /* match expression */
1523 modelica_metatype tmp7_1;
1524 tmp7_1 = _mod;
1525 {
1526 volatile mmc_switch_type tmp7;
1527 int tmp8;
1528 tmp7 = 0;
1529 for (; tmp7 < 2; tmp7++) {
1530 switch (MMC_SWITCH_CAST(tmp7)(tmp7)) {
1531 case 0: {
1532 if (mmc__uniontype__metarecord__typedef__equal(tmp7_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp7_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp6_end;
1533 /* Pattern matching succeeded */
1534#line 1892 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1535 tmpMeta[1] = mmc_mk_box3(3, &SCode_Comment_COMMENT__desc, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), _comment);
1536#line 1892 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1537 tmpMeta[0] = tmpMeta[1];
1538#line 1538 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1539 goto tmp6_done;
1540 }
1541 case 1: {
1542
1543 /* Pattern matching succeeded */
1544#line 1893 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1545 tmpMeta[1] = mmc_mk_box2(3, &SCode_Annotation_ANNOTATION__desc, _mod);
1546#line 1893 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1547 tmpMeta[2] = mmc_mk_box3(3, &SCode_Comment_COMMENT__desc, mmc_mk_some(tmpMeta[1]), _comment);
1548#line 1893 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1549 tmpMeta[0] = tmpMeta[2];
1550#line 1550 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1551 goto tmp6_done;
1552 }
1553 }
1554 goto tmp6_end;
1555 tmp6_end: ;
1556 }
1557 goto goto_5;
1558 goto_5:;
1559 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1560 goto tmp6_done;
1561 tmp6_done:;
1562 }
1563 }
1564 _outComment = tmpMeta[0];
1565 _return: OMC_LABEL_UNUSED__attribute__((unused))
1566 return _outComment;
1567}
1568
1569PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFFunction_Function_getBuiltin(threadData_t *threadData, modelica_metatype _def)
1570{
1571 modelica_metatype _builtin = NULL((void*)0);
1572 MMC_SO()mmc_check_stackoverflow(threadData);
1573 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1574 _builtin = (omc_SCodeUtil_isBuiltinElement(threadData, _def)?_OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)):_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)));
1575 _return: OMC_LABEL_UNUSED__attribute__((unused))
1576 return _builtin;
1577}
1578
1579PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFFunction_Function_hasImpure(threadData_t *threadData, modelica_metatype _cmt)
1580{
1581 modelica_boolean _res;
1582 MMC_SO()mmc_check_stackoverflow(threadData);
1583 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1584 _res = omc_SCodeUtil_commentHasBooleanNamedAnnotation(threadData, _cmt, _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)));
1585 _return: OMC_LABEL_UNUSED__attribute__((unused))
1586 return _res;
1587}
1588PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFFunction_Function_hasImpure(threadData_t *threadData, modelica_metatype _cmt)
1589{
1590 modelica_boolean _res;
1591 modelica_metatype out_res;
1592 _res = omc_NFFunction_Function_hasImpure(threadData, _cmt);
1593 out_res = mmc_mk_icon(_res);
1594 return out_res;
1595}
1596
1597PROTECTED_FUNCTION_STATIC modelica_boolean omc_NFFunction_Function_hasOMPure(threadData_t *threadData, modelica_metatype _cmt)
1598{
1599 modelica_boolean _res;
1600 MMC_SO()mmc_check_stackoverflow(threadData);
1601 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1602 _res = (!omc_SCodeUtil_commentHasBooleanNamedAnnotation(threadData, _cmt, _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))));
1603 _return: OMC_LABEL_UNUSED__attribute__((unused))
1604 return _res;
1605}
1606PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFFunction_Function_hasOMPure(threadData_t *threadData, modelica_metatype _cmt)
1607{
1608 modelica_boolean _res;
1609 modelica_metatype out_res;
1610 _res = omc_NFFunction_Function_hasOMPure(threadData, _cmt);
1611 out_res = mmc_mk_icon(_res);
1612 return out_res;
1613}
1614
1615PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFFunction_Function_makeSlot(threadData_t *threadData, modelica_metatype _component, modelica_integer _index)
1616{
1617 modelica_metatype _slot = NULL((void*)0);
1618 modelica_metatype _comp = NULL((void*)0);
1619 modelica_metatype _default = NULL((void*)0);
1620 modelica_string _name = NULL((void*)0);
1621 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1622 MMC_SO()mmc_check_stackoverflow(threadData);
1623 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1624 // _slot has no default value.
1625 // _comp has no default value.
1626 // _default has no default value.
1627 // _name has no default value.
1628#line 1628 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1629 { /* matchcontinue expression */
1630 {
1631 volatile mmc_switch_type tmp3;
1632 int tmp4;
1633 tmp3 = 0;
1634 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) {
1635 tmp2_top:
1636 threadData->mmc_jumper = &new_mmc_jumper;
1637 for (; tmp3 < 2; tmp3++) {
1638 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1639 case 0: {
1640 /* Pattern matching succeeded */
1641#line 1836 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1642 _comp = omc_NFInstNode_InstNode_component(threadData, _component);
1643#line 1643 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1644
1645#line 1837 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1646 _default = omc_NFBinding_Binding_typedExp(threadData, omc_NFComponent_Component_getBinding(threadData, _comp));
1647#line 1647 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1648
1649#line 1838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1650 _name = omc_NFInstNode_InstNode_name(threadData, _component);
1651#line 1651 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1652
1653#line 1841 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1654 if((stringGet(_name, ((modelica_integer) 1))nobox_stringGet(threadData,_name,((modelica_integer) 1)) == ((modelica_integer) 36)))
1655#line 1841 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1656 {
1657#line 1842 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1658 if(((stringLength(_name)(((((*(mmc_uint_t*)((void*)((char*)(_name) - 3)))) >> (
3)) - 8))
> ((modelica_integer) 4)) && (stringEqual(substring(_name, ((modelica_integer) 1), ((modelica_integer) 4)), _OMC_LIT22)((((((*(mmc_uint_t*)((void*)((char*)(boxptr_substring(threadData
,_name,mmc_mk_icon(((modelica_integer) 1)),mmc_mk_icon(((modelica_integer
) 4)))) - 3)))) >> (3)) - 8)) == (((((*(mmc_uint_t*)((void
*)((char*)(((void*)((char*)(&(_OMC_LIT_STRUCT22).header) +
3))) - 3)))) >> (3)) - 8)) && !mmc_stringCompare
(boxptr_substring(threadData,_name,mmc_mk_icon(((modelica_integer
) 1)),mmc_mk_icon(((modelica_integer) 4))),((void*)((char*)(&
(_OMC_LIT_STRUCT22).header) + 3))))
)))
1659#line 1842 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1660 {
1661#line 1843 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1662 _name = substring(_name, ((modelica_integer) 5), stringLength(_name))boxptr_substring(threadData,_name,mmc_mk_icon(((modelica_integer
) 5)),mmc_mk_icon((((((*(mmc_uint_t*)((void*)((char*)(_name) -
3)))) >> (3)) - 8))))
;
1663#line 1663 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1664 }
1665 }
1666
1667#line 1847 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1668 tmpMeta[0] = mmc_mk_box7(3, &NFFunction_Slot_SLOT__desc, omc_NFInstNode_InstNode_name(threadData, _component), mmc_mk_integermmc_mk_icon(3), _default, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), mmc_mk_integermmc_mk_icon(_index), mmc_mk_integermmc_mk_icon(1));
1669#line 1847 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1670 _slot = tmpMeta[0];
1671#line 1671 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1672#line 1672 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1673 goto tmp2_done;
1674 }
1675 case 1: {
1676 /* Pattern matching succeeded */
1677#line 1849 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1678 omc_Error_assertion(threadData, 0, _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)), _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)));
1679#line 1679 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1680#line 1680 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1681 goto tmp2_done;
1682 }
1683 }
1684 goto tmp2_end;
1685 tmp2_end: ;
1686 }
1687 goto goto_1;
1688 tmp2_done:
1689 (void)tmp3;
1690 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1691 goto tmp2_done2;
1692 goto_1:;
1693 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1694 if (++tmp3 < 2) {
1695 goto tmp2_top;
1696 }
1697 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1698 tmp2_done2:;
1699 }
1700 }
1701 ;
1702 _return: OMC_LABEL_UNUSED__attribute__((unused))
1703 return _slot;
1704}
1705PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFFunction_Function_makeSlot(threadData_t *threadData, modelica_metatype _component, modelica_metatype _index)
1706{
1707 modelica_integer tmp1;
1708 modelica_metatype _slot = NULL((void*)0);
1709 tmp1 = mmc_unbox_integer(_index)(((mmc_sint_t) (_index)) >> 1);
1710 _slot = omc_NFFunction_Function_makeSlot(threadData, _component, tmp1);
1711 /* skip box _slot; NFFunction.Slot */
1712 return _slot;
1713}
1714
1715PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFFunction_Function_makeSlots(threadData_t *threadData, modelica_metatype _inputs)
1716{
1717 modelica_metatype _slots = NULL((void*)0);
1718 modelica_integer _index;
1719 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1720 MMC_SO()mmc_check_stackoverflow(threadData);
1721 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1722 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1723 _slots = tmpMeta[0];
1724 _index = ((modelica_integer) 1);
1725#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1726 {
1727#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1728 modelica_metatype _i;
1729#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1730 for (tmpMeta[1] = _inputs; !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)))))
)
1731#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1732 {
1733#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1734 _i = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1735#line 1819 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1736 tmpMeta[2] = mmc_mk_cons(omc_NFFunction_Function_makeSlot(threadData, _i, _index), _slots);
1737#line 1819 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1738 _slots = tmpMeta[2];
1739#line 1739 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1740
1741#line 1820 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1742 _index = ((modelica_integer) 1) + _index;
1743#line 1743 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1744 }
1745 }
1746
1747#line 1823 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1748 _slots = listReverseInPlace(_slots);
1749#line 1749 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1750 _return: OMC_LABEL_UNUSED__attribute__((unused))
1751 return _slots;
1752}
1753
1754PROTECTED_FUNCTION_STATIC modelica_integer omc_NFFunction_Function_paramDirection(threadData_t *threadData, modelica_metatype _component)
1755{
1756 modelica_integer _direction;
1757 modelica_integer _cty;
1758 modelica_integer _io;
1759 modelica_integer _vis;
1760 modelica_integer _var;
1761 modelica_integer tmp1;
1762 modelica_integer tmp2;
1763 modelica_integer tmp3;
1764 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1765 MMC_SO()mmc_check_stackoverflow(threadData);
1766 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1767 // _direction has no default value.
1768 // _cty has no default value.
1769 // _io has no default value.
1770 // _vis has no default value.
1771 // _var has no default value.
1772#line 1774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1773 /* Pattern-matching assignment */
1774#line 1774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1775 tmpMeta[0] = omc_NFComponent_Component_getAttributes(threadData, omc_NFInstNode_InstNode_component(threadData, _component));
1776#line 1774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1777 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1778#line 1774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1779 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1780#line 1774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1781 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
1782#line 1774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1783 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1784#line 1774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1785 tmp2 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1786#line 1774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1787 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1788#line 1774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1789 tmp3 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1790#line 1774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1791 _cty = tmp1 /* pattern as ty=Integer */;
1792#line 1774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1793 _direction = tmp2 /* pattern as ty=enumeration(NONE, INPUT, OUTPUT) */;
1794#line 1774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1795 _io = tmp3 /* pattern as ty=enumeration(NOT_INNER_OUTER, INNER, OUTER, INNER_OUTER) */;
1796#line 1796 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1797
1798#line 1779 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1799 _vis = omc_NFInstNode_InstNode_visibility(threadData, _component);
1800#line 1800 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1801
1802#line 1780 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1803 _var = omc_NFComponent_Component_variability(threadData, omc_NFInstNode_InstNode_component(threadData, _component));
1804#line 1804 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1805
1806#line 1783 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1807 if(omc_NFPrefixes_ConnectorType_isFlowOrStream(threadData, _cty))
1808#line 1783 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1809 {
1810#line 1784 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1811 tmpMeta[0] = mmc_mk_cons(omc_NFPrefixes_ConnectorType_toString(threadData, _cty), mmc_mk_cons(omc_NFInstNode_InstNode_name(threadData, _component), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
1812#line 1784 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1813 omc_Error_addSourceMessage(threadData, _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)), tmpMeta[0], omc_NFInstNode_InstNode_info(threadData, _component));
1814#line 1814 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1815
1816#line 1787 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1817 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1818#line 1818 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1819 }
1820
1821#line 1791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1822 if(((modelica_integer)_io != 1))
1823#line 1791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1824 {
1825#line 1792 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1826 tmpMeta[0] = mmc_mk_cons(omc_NFPrefixes_innerOuterString(threadData, (modelica_integer)_io), mmc_mk_cons(omc_NFInstNode_InstNode_name(threadData, _component), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
1827#line 1792 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1828 omc_Error_addSourceMessage(threadData, _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)), tmpMeta[0], omc_NFInstNode_InstNode_info(threadData, _component));
1829#line 1829 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1830
1831#line 1795 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1832 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1833#line 1833 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1834 }
1835
1836#line 1799 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1837 if(((modelica_integer)_direction != 1))
1838#line 1799 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1839 {
1840#line 1800 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1841 if(((modelica_integer)_vis == 2))
1842#line 1800 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1843 {
1844#line 1801 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1845 tmpMeta[0] = mmc_mk_cons(omc_NFInstNode_InstNode_name(threadData, _component), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
1846#line 1801 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1847 omc_Error_addSourceMessage(threadData, _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)), tmpMeta[0], omc_NFInstNode_InstNode_info(threadData, _component));
1848#line 1848 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1849
1850#line 1803 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1851 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1852#line 1852 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1853 }
1854 }
1855 else
1856 {
1857 if(((modelica_integer)_vis == 1))
1858 {
1859#line 1806 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1860 tmpMeta[0] = mmc_mk_cons(omc_NFInstNode_InstNode_name(threadData, _component), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
1861#line 1806 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1862 omc_Error_addSourceMessageAsError(threadData, _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)), tmpMeta[0], omc_NFInstNode_InstNode_info(threadData, _component));
1863#line 1863 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1864
1865#line 1808 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1866 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1867#line 1867 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1868 }
1869 }
1870 _return: OMC_LABEL_UNUSED__attribute__((unused))
1871 return _direction;
1872}
1873PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_NFFunction_Function_paramDirection(threadData_t *threadData, modelica_metatype _component)
1874{
1875 modelica_integer _direction;
1876 modelica_metatype out_direction;
1877 _direction = omc_NFFunction_Function_paramDirection(threadData, _component);
1878 out_direction = mmc_mk_icon(_direction);
1879 return out_direction;
1880}
1881
1882PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFFunction_Function_collectParams(threadData_t *threadData, modelica_metatype _node, modelica_metatype _D_24in_inputs, modelica_metatype _D_24in_outputs, modelica_metatype _D_24in_locals, modelica_metatype *out_outputs, modelica_metatype *out_locals)
1883{
1884 modelica_metatype _inputs = NULL((void*)0);
1885 modelica_metatype _outputs = NULL((void*)0);
1886 modelica_metatype _locals = NULL((void*)0);
1887 modelica_metatype _cls = NULL((void*)0);
1888 modelica_metatype _comps = NULL((void*)0);
1889 modelica_metatype _n = NULL((void*)0);
1890 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1891 MMC_SO()mmc_check_stackoverflow(threadData);
1892 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1893 _inputs = _D_24in_inputs;
1894 _outputs = _D_24in_outputs;
1895 _locals = _D_24in_locals;
1896 // _cls has no default value.
1897 // _comps has no default value.
1898 // _n has no default value.
1899#line 1728 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1900 omc_Error_assertion(threadData, omc_NFInstNode_InstNode_isClass(threadData, _node), _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)), _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)));
1901#line 1901 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1902
1903#line 1729 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1904 _cls = omc_NFInstNode_InstNode_getClass(threadData, _node);
1905#line 1905 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1906
1907#line 1907 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1908 { /* match expression */
1909 modelica_metatype tmp3_1;
1910 tmp3_1 = _cls;
1911 {
1912 volatile mmc_switch_type tmp3;
1913 int tmp4;
1914 tmp3 = 0;
1915 for (; tmp3 < 3; tmp3++) {
1916 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1917 case 0: {
1918 modelica_integer tmp9;
1919 modelica_integer tmp10;
1920 modelica_integer tmp11;
1921 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,5,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
1922 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1923 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],3,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((5 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
1924 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1925
1926 _comps = tmpMeta[1];
1927 /* Pattern matching succeeded */
1928#line 1734 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1929 tmp9 = arrayLength(_comps); tmp10 = ((modelica_integer) -1); tmp11 = ((modelica_integer) 1);
1930#line 1734 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1931 if(!(((tmp10 > 0) && (tmp9 > tmp11)) || ((tmp10 < 0) && (tmp9 < tmp11))))
1932#line 1734 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1933 {
1934#line 1734 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1935 modelica_integer _i;
1936#line 1734 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1937 for(_i = arrayLength(_comps); in_range_integer(_i, tmp9, tmp11); _i += tmp10)
1938#line 1734 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1939 {
1940#line 1735 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1941 _n = arrayGet(_comps,_i)nobox_arrayGet(threadData,_comps,_i) /* DAE.ASUB */;
1942#line 1942 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1943
1944#line 1737 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1945 if(omc_NFInstNode_InstNode_isEmpty(threadData, _n))
1946#line 1737 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1947 {
1948#line 1738 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1949 continue;
1950#line 1950 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1951 }
1952
1953#line 1953 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1954 { /* match expression */
1955 modelica_integer tmp7_1;
1956 tmp7_1 = omc_NFFunction_Function_paramDirection(threadData, _n);
1957 {
1958 volatile mmc_switch_type tmp7;
1959 int tmp8;
1960 tmp7 = 0;
1961 for (; tmp7 < 3; tmp7++) {
1962 switch (MMC_SWITCH_CAST(tmp7)(tmp7)) {
1963 case 0: {
1964 if (2 != tmp7_1) goto tmp6_end;
1965 /* Pattern matching succeeded */
1966#line 1743 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1967 tmpMeta[0] = mmc_mk_cons(_n, _inputs);
1968#line 1743 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1969 _inputs = tmpMeta[0];
1970#line 1970 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1971#line 1971 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1972 goto tmp6_done;
1973 }
1974 case 1: {
1975 if (3 != tmp7_1) goto tmp6_end;
1976 /* Pattern matching succeeded */
1977#line 1744 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1978 tmpMeta[0] = mmc_mk_cons(_n, _outputs);
1979#line 1744 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1980 _outputs = tmpMeta[0];
1981#line 1981 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1982#line 1982 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1983 goto tmp6_done;
1984 }
1985 case 2: {
1986 if (1 != tmp7_1) goto tmp6_end;
1987 /* Pattern matching succeeded */
1988#line 1745 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1989 tmpMeta[0] = mmc_mk_cons(_n, _locals);
1990#line 1745 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
1991 _locals = tmpMeta[0];
1992#line 1992 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1993#line 1993 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
1994 goto tmp6_done;
1995 }
1996 }
1997 goto tmp6_end;
1998 tmp6_end: ;
1999 }
2000 goto goto_5;
2001 goto_5:;
2002 goto goto_1;
2003 goto tmp6_done;
2004 tmp6_done:;
2005 }
2006 }
2007 ;
2008 }
2009 }
2010#line 2010 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2011 goto tmp2_done;
2012 }
2013 case 1: {
2014 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,4,6)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((6 +1) <<
10) + (((4 +3) & 255) << 2)))
== 0) goto tmp2_end;
2015
2016 /* Pattern matching succeeded */
2017#line 1753 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2018 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2019#line 1753 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2020 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2021#line 1753 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2022 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2023#line 1753 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2024 _inputs = omc_NFFunction_Function_collectParams(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_cls), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_cls) - 3))) + (
2)))))
), tmpMeta[0], tmpMeta[1], tmpMeta[2] ,&_outputs ,&_locals);
2025#line 2025 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2026#line 2026 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2027 goto tmp2_done;
2028 }
2029 case 2: {
2030
2031 /* Pattern matching succeeded */
2032#line 1759 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2033 omc_Error_assertion(threadData, 0, _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)), _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)));
2034#line 2034 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2035#line 1760 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2036 goto goto_1;
2037#line 2037 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2038 goto tmp2_done;
2039 }
2040 }
2041 goto tmp2_end;
2042 tmp2_end: ;
2043 }
2044 goto goto_1;
2045 goto_1:;
2046 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2047 goto tmp2_done;
2048 tmp2_done:;
2049 }
2050 }
2051 ;
2052 _return: OMC_LABEL_UNUSED__attribute__((unused))
2053 if (out_outputs) { *out_outputs = _outputs; }
2054 if (out_locals) { *out_locals = _locals; }
2055 return _inputs;
2056}
2057
2058DLLExport
2059modelica_boolean omc_NFFunction_Function_isPartial(threadData_t *threadData, modelica_metatype _fn)
2060{
2061 modelica_boolean _isPartial;
2062 MMC_SO()mmc_check_stackoverflow(threadData);
2063 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2064 _isPartial = omc_NFInstNode_InstNode_isPartial(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
3)))))
));
2065 _return: OMC_LABEL_UNUSED__attribute__((unused))
2066 return _isPartial;
2067}
2068modelica_metatype boxptr_NFFunction_Function_isPartial(threadData_t *threadData, modelica_metatype _fn)
2069{
2070 modelica_boolean _isPartial;
2071 modelica_metatype out_isPartial;
2072 _isPartial = omc_NFFunction_Function_isPartial(threadData, _fn);
2073 out_isPartial = mmc_mk_icon(_isPartial);
2074 return out_isPartial;
2075}
2076
2077static modelica_metatype closure0_NFDimension_mapExp(threadData_t *thData, modelica_metatype closure, modelica_metatype dim)
2078{
2079 modelica_fnptr func = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
2080 return boxptr_NFDimension_mapExpomc_NFDimension_mapExp(thData, dim, func);
2081}static void closure1_NFFunction_Function_mapExpParameter(threadData_t *thData, modelica_metatype closure, modelica_metatype node)
2082{
2083 modelica_fnptr mapFn = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
2084 boxptr_NFFunction_Function_mapExpParameteromc_NFFunction_Function_mapExpParameter(thData, node, mapFn);
2085}
2086DLLExport
2087void omc_NFFunction_Function_mapExpParameter(threadData_t *threadData, modelica_metatype _node, modelica_fnptr _mapFn)
2088{
2089 modelica_metatype _comp = NULL((void*)0);
2090 modelica_metatype _binding = NULL((void*)0);
2091 modelica_metatype _binding2 = NULL((void*)0);
2092 modelica_metatype _cls = NULL((void*)0);
2093 modelica_metatype _ty = NULL((void*)0);
2094 modelica_boolean _dirty;
2095 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2096 MMC_SO()mmc_check_stackoverflow(threadData);
2097 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2098 // _comp has no default value.
2099 // _binding has no default value.
2100 // _binding2 has no default value.
2101 // _cls has no default value.
2102 // _ty has no default value.
2103 _dirty = 0;
2104#line 1676 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2105 if((!omc_NFInstNode_InstNode_isEmpty(threadData, _node)))
2106#line 1676 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2107 {
2108#line 1677 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2109 _comp = omc_NFInstNode_InstNode_component(threadData, _node);
2110#line 2110 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2111
2112#line 1678 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2113 _binding = omc_NFComponent_Component_getBinding(threadData, _comp);
2114#line 2114 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2115
2116#line 1679 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2117 _binding2 = omc_NFBinding_Binding_mapExp(threadData, _binding, ((modelica_fnptr) _mapFn));
2118#line 2118 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2119
2120#line 1681 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2121 if((!referenceEq(_binding, _binding2)((_binding) == (_binding2))))
2122#line 1681 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2123 {
2124#line 1682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2125 _comp = omc_NFComponent_Component_setBinding(threadData, _binding2, _comp);
2126#line 2126 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2127
2128#line 1683 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2129 _dirty = 1;
2130#line 2130 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2131 }
2132
2133#line 2133 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2134 { /* match expression */
2135 modelica_metatype tmp3_1;
2136 tmp3_1 = _comp;
2137 {
2138 volatile mmc_switch_type tmp3;
2139 int tmp4;
2140 tmp3 = 0;
2141 for (; tmp3 < 2; tmp3++) {
2142 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2143 case 0: {
2144 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
2145
2146 /* Pattern matching succeeded */
2147#line 1689 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2148 tmpMeta[0] = mmc_mk_box1(0, ((modelica_fnptr) _mapFn));
2149#line 1689 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2150 _ty = omc_NFType_mapDims(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_comp), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_comp) - 3))) +
(3)))))
), (modelica_fnptr) mmc_mk_box2(0,closure0_NFDimension_mapExp,tmpMeta[0]));
2151#line 2151 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2152
2153#line 1691 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2154 if((!referenceEq(_ty, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_comp), 3))))((_ty) == (((*(void**)(((void*)((void**)(((void*)((char*)(_comp
) - 3))) + (3))))))))
))
2155#line 1691 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2156 {
2157#line 1692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2158 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
2159#line 1692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2160 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_comp)((void*)((char*)(_comp) - 3)), 10*sizeof(modelica_metatype));
2161#line 1692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2162 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[3] = _ty;
2163#line 1692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2164 _comp = tmpMeta[0];
2165#line 2165 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2166
2167#line 1693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2168 _dirty = 1;
2169#line 2169 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2170 }
2171
2172#line 1696 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2173 _cls = omc_NFInstNode_InstNode_getClass(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_comp), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_comp) - 3))) +
(2)))))
));
2174#line 2174 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2175
2176#line 1697 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2177 tmpMeta[0] = mmc_mk_box1(0, ((modelica_fnptr) _mapFn));
2178#line 1697 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2179 omc_NFClassTree_ClassTree_applyComponents(threadData, omc_NFClass_Class_classTree(threadData, _cls), (modelica_fnptr) mmc_mk_box2(0,closure1_NFFunction_Function_mapExpParameter,tmpMeta[0]));
2180#line 2180 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2181#line 2181 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2182 goto tmp2_done;
2183 }
2184 case 1: {
2185
2186 /* Pattern matching succeeded */
2187#line 2187 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2188 goto tmp2_done;
2189 }
2190 }
2191 goto tmp2_end;
2192 tmp2_end: ;
2193 }
2194 goto goto_1;
2195 goto_1:;
2196 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2197 goto tmp2_done;
2198 tmp2_done:;
2199 }
2200 }
2201 ;
2202
2203#line 1705 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2204 if(_dirty)
2205#line 1705 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2206 {
2207#line 1706 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2208 omc_NFInstNode_InstNode_updateComponent(threadData, _comp, _node);
2209#line 2209 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2210 }
2211 }
2212 _return: OMC_LABEL_UNUSED__attribute__((unused))
2213 return;
2214}
2215
2216static void closure2_NFFunction_Function_mapExpParameter(threadData_t *thData, modelica_metatype closure, modelica_metatype node)
2217{
2218 modelica_fnptr mapFn = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
2219 boxptr_NFFunction_Function_mapExpParameteromc_NFFunction_Function_mapExpParameter(thData, node, mapFn);
2220}
2221DLLExport
2222modelica_metatype omc_NFFunction_Function_mapExp(threadData_t *threadData, modelica_metatype _D_24in_fn, modelica_fnptr _mapFn, modelica_boolean _mapParameters, modelica_boolean _mapBody)
2223{
2224 modelica_metatype _fn = NULL((void*)0);
2225 modelica_metatype _cls = NULL((void*)0);
2226 modelica_metatype _ctree = NULL((void*)0);
2227 modelica_metatype _comps = NULL((void*)0);
2228 modelica_metatype _sections = NULL((void*)0);
2229 modelica_metatype _comp = NULL((void*)0);
2230 modelica_metatype _binding = NULL((void*)0);
2231 modelica_metatype _binding2 = NULL((void*)0);
2232 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2233 MMC_SO()mmc_check_stackoverflow(threadData);
2234 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2235 _fn = _D_24in_fn;
2236 // _cls has no default value.
2237 // _ctree has no default value.
2238 // _comps has no default value.
2239 // _sections has no default value.
2240 // _comp has no default value.
2241 // _binding has no default value.
2242 // _binding2 has no default value.
2243#line 1647 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2244 _cls = omc_NFInstNode_InstNode_getClass(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
3)))))
));
2245#line 2245 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2246
2247#line 1649 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2248 if(_mapParameters)
2249#line 1649 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2250 {
2251#line 1650 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2252 _ctree = omc_NFClass_Class_classTree(threadData, _cls);
2253#line 2253 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2254
2255#line 1651 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2256 tmpMeta[0] = mmc_mk_box1(0, ((modelica_fnptr) _mapFn));
2257#line 1651 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2258 omc_NFClassTree_ClassTree_applyComponents(threadData, _ctree, (modelica_fnptr) mmc_mk_box2(0,closure2_NFFunction_Function_mapExpParameter,tmpMeta[0]));
2259#line 2259 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2260
2261#line 1652 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2262 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(13))((void*)((char*)(mmc_alloc_words(13)) + 3));
2263#line 1652 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2264 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_fn)((void*)((char*)(_fn) - 3)), 13*sizeof(modelica_metatype));
2265#line 1652 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2266 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[8] = omc_NFFunction_Function_makeReturnType(threadData, _fn);
2267#line 1652 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2268 _fn = tmpMeta[0];
2269#line 2269 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2270 }
2271
2272#line 1655 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2273 if(_mapBody)
2274#line 1655 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2275 {
2276#line 1656 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2277 _sections = omc_NFSections_mapExp(threadData, omc_NFClass_Class_getSections(threadData, _cls), ((modelica_fnptr) _mapFn));
2278#line 2278 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2279
2280#line 1657 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2281 _cls = omc_NFClass_Class_setSections(threadData, _sections, _cls);
2282#line 2282 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2283
2284#line 1658 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2285 omc_NFInstNode_InstNode_updateClass(threadData, _cls, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
3)))))
));
2286#line 2286 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2287 }
2288 _return: OMC_LABEL_UNUSED__attribute__((unused))
2289 return _fn;
2290}
2291modelica_metatype boxptr_NFFunction_Function_mapExp(threadData_t *threadData, modelica_metatype _D_24in_fn, modelica_fnptr _mapFn, modelica_metatype _mapParameters, modelica_metatype _mapBody)
2292{
2293 modelica_integer tmp1;
2294 modelica_integer tmp2;
2295 modelica_metatype _fn = NULL((void*)0);
2296 tmp1 = mmc_unbox_integer(_mapParameters)(((mmc_sint_t) (_mapParameters)) >> 1);
2297 tmp2 = mmc_unbox_integer(_mapBody)(((mmc_sint_t) (_mapBody)) >> 1);
2298 _fn = omc_NFFunction_Function_mapExp(threadData, _D_24in_fn, _mapFn, tmp1, tmp2);
2299 /* skip box _fn; NFFunction.Function */
2300 return _fn;
2301}
2302
2303DLLExport
2304modelica_boolean omc_NFFunction_Function_hasOptionalArgument(threadData_t *threadData, modelica_metatype _component)
2305{
2306 modelica_boolean _res;
2307 MMC_SO()mmc_check_stackoverflow(threadData);
2308 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2309 _res = omc_SCodeUtil_hasBooleanNamedAnnotationInComponent(threadData, _component, _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)));
2310 _return: OMC_LABEL_UNUSED__attribute__((unused))
2311 return _res;
2312}
2313modelica_metatype boxptr_NFFunction_Function_hasOptionalArgument(threadData_t *threadData, modelica_metatype _component)
2314{
2315 modelica_boolean _res;
2316 modelica_metatype out_res;
2317 _res = omc_NFFunction_Function_hasOptionalArgument(threadData, _component);
2318 out_res = mmc_mk_icon(_res);
2319 return out_res;
2320}
2321
2322DLLExport
2323modelica_boolean omc_NFFunction_Function_hasUnboxArgsAnnotation(threadData_t *threadData, modelica_metatype _cmt)
2324{
2325 modelica_boolean _res;
2326 MMC_SO()mmc_check_stackoverflow(threadData);
2327 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2328 _res = omc_SCodeUtil_commentHasBooleanNamedAnnotation(threadData, _cmt, _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)));
2329 _return: OMC_LABEL_UNUSED__attribute__((unused))
2330 return _res;
2331}
2332modelica_metatype boxptr_NFFunction_Function_hasUnboxArgsAnnotation(threadData_t *threadData, modelica_metatype _cmt)
2333{
2334 modelica_boolean _res;
2335 modelica_metatype out_res;
2336 _res = omc_NFFunction_Function_hasUnboxArgsAnnotation(threadData, _cmt);
2337 out_res = mmc_mk_icon(_res);
2338 return out_res;
2339}
2340
2341DLLExport
2342modelica_boolean omc_NFFunction_Function_hasUnboxArgs(threadData_t *threadData, modelica_metatype _fn)
2343{
2344 modelica_boolean _res;
2345 modelica_boolean tmp1 = 0;
2346 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2347 MMC_SO()mmc_check_stackoverflow(threadData);
2348 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2349 // _res has no default value.
2350#line 2350 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2351 { /* match expression */
2352 modelica_metatype tmp4_1;
2353 tmp4_1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 9))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
9)))))
);
2354 {
2355 volatile mmc_switch_type tmp4;
2356 int tmp5;
2357 tmp4 = 0;
2358 for (; tmp4 < 2; tmp4++) {
2359 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2360 case 0: {
2361 modelica_integer tmp6;
2362 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
2363 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((2 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2364 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
2365 tmp6 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
2366
2367 _res = tmp6 /* pattern as ty=Boolean */;
2368 /* Pattern matching succeeded */
2369#line 1615 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2370 tmp1 = _res;
2371#line 2371 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2372 goto tmp3_done;
2373 }
2374 case 1: {
2375
2376 /* Pattern matching succeeded */
2377#line 1616 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2378 tmp1 = 0;
2379#line 2379 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2380 goto tmp3_done;
2381 }
2382 }
2383 goto tmp3_end;
2384 tmp3_end: ;
2385 }
2386 goto goto_2;
2387 goto_2:;
2388 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2389 goto tmp3_done;
2390 tmp3_done:;
2391 }
2392 }
2393 _res = tmp1;
2394 _return: OMC_LABEL_UNUSED__attribute__((unused))
2395 return _res;
2396}
2397modelica_metatype boxptr_NFFunction_Function_hasUnboxArgs(threadData_t *threadData, modelica_metatype _fn)
2398{
2399 modelica_boolean _res;
2400 modelica_metatype out_res;
2401 _res = omc_NFFunction_Function_hasUnboxArgs(threadData, _fn);
2402 out_res = mmc_mk_icon(_res);
2403 return out_res;
2404}
2405
2406DLLExport
2407modelica_metatype omc_NFFunction_Function_getBody(threadData_t *threadData, modelica_metatype _fn)
2408{
2409 modelica_metatype _body = NULL((void*)0);
2410 MMC_SO()mmc_check_stackoverflow(threadData);
2411 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2412 _body = omc_NFFunction_Function_getBody2(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
3)))))
));
2413 _return: OMC_LABEL_UNUSED__attribute__((unused))
2414 return _body;
2415}
2416
2417DLLExport
2418modelica_metatype omc_NFFunction_Function_makeDAEType(threadData_t *threadData, modelica_metatype _fn, modelica_boolean _boxTypes)
2419{
2420 modelica_metatype _outType = NULL((void*)0);
2421 modelica_metatype _params = NULL((void*)0);
2422 modelica_string _pname = NULL((void*)0);
2423 modelica_metatype _ty = NULL((void*)0);
2424 modelica_metatype _ptype = NULL((void*)0);
2425 modelica_metatype _pconst = NULL((void*)0);
2426 modelica_metatype _ppar = NULL((void*)0);
2427 modelica_metatype _pdefault = NULL((void*)0);
2428 modelica_metatype _comp = NULL((void*)0);
2429 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2430 MMC_SO()mmc_check_stackoverflow(threadData);
2431 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2432 // _outType has no default value.
2433 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2434 _params = tmpMeta[0];
2435 // _pname has no default value.
2436 // _ty has no default value.
2437 // _ptype has no default value.
2438 // _pconst has no default value.
2439 // _ppar has no default value.
2440 // _pdefault has no default value.
2441 // _comp has no default value.
2442#line 1587 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2443 {
2444#line 1587 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2445 modelica_metatype _param;
2446#line 1587 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2447 for (tmpMeta[1] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
4)))))
); !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)))))
)
2448#line 1587 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2449 {
2450#line 1587 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2451 _param = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
2452#line 1588 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2453 _comp = omc_NFInstNode_InstNode_component(threadData, _param);
2454#line 2454 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2455
2456#line 1589 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2457 _pname = omc_NFInstNode_InstNode_name(threadData, _param);
2458#line 2458 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2459
2460#line 1590 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2461 _ty = omc_NFComponent_Component_getType(threadData, _comp);
2462#line 2462 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2463
2464#line 1591 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2465 _ptype = omc_NFType_toDAE(threadData, (_boxTypes?omc_NFType_box(threadData, _ty):_ty), 1);
2466#line 2466 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2467
2468#line 1592 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2469 _pconst = omc_NFPrefixes_variabilityToDAEConst(threadData, omc_NFComponent_Component_variability(threadData, _comp));
2470#line 2470 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2471
2472#line 1593 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2473 _ppar = omc_NFPrefixes_parallelismToDAE(threadData, omc_NFComponent_Component_parallelism(threadData, _comp));
2474#line 2474 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2475
2476#line 1594 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2477 _pdefault = omc_Util_applyOption(threadData, omc_NFBinding_Binding_typedExp(threadData, omc_NFComponent_Component_getBinding(threadData, _comp)), boxvar_NFExpression_toDAE((void*)((char*)(&(boxvar_lit_NFExpression_toDAE).header)
+ 3))
);
2478#line 2478 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2479
2480#line 1595 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2481 tmpMeta[3] = mmc_mk_box6(3, &DAE_FuncArg_FUNCARG__desc, _pname, _ptype, _pconst, _ppar, _pdefault);
2482#line 1595 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2483 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], _params);
2484#line 1595 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2485 _params = tmpMeta[2];
2486#line 2486 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2487 }
2488 }
2489
2490#line 1598 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2491 _params = listReverse(_params);
2492#line 2492 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2493
2494#line 1599 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2495 _ty = (_boxTypes?omc_NFType_box(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 8))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
8)))))
)):(MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 8))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
8)))))
));
2496#line 2496 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2497
2498#line 1600 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2499 tmpMeta[1] = mmc_mk_box5(14, &DAE_Type_T__FUNCTION__desc, _params, omc_NFType_toDAE(threadData, _ty, 1), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 9))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
9)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
2)))))
));
2500#line 1600 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2501 _outType = tmpMeta[1];
2502#line 2502 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2503 _return: OMC_LABEL_UNUSED__attribute__((unused))
2504 return _outType;
2505}
2506modelica_metatype boxptr_NFFunction_Function_makeDAEType(threadData_t *threadData, modelica_metatype _fn, modelica_metatype _boxTypes)
2507{
2508 modelica_integer tmp1;
2509 modelica_metatype _outType = NULL((void*)0);
2510 tmp1 = mmc_unbox_integer(_boxTypes)(((mmc_sint_t) (_boxTypes)) >> 1);
2511 _outType = omc_NFFunction_Function_makeDAEType(threadData, _fn, tmp1);
2512 /* skip box _outType; DAE.Type */
2513 return _outType;
2514}
2515
2516DLLExport
2517modelica_metatype omc_NFFunction_Function_toDAE(threadData_t *threadData, modelica_metatype _fn, modelica_metatype _def)
2518{
2519 modelica_metatype _daeFn = NULL((void*)0);
2520 modelica_metatype _vis = NULL((void*)0);
2521 modelica_boolean _par;
2522 modelica_boolean _impr;
2523 modelica_metatype _ity = NULL((void*)0);
2524 modelica_metatype _ty = NULL((void*)0);
2525 modelica_metatype _defs = NULL((void*)0);
2526 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
2527 MMC_SO()mmc_check_stackoverflow(threadData);
2528 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2529 // _daeFn has no default value.
2530 // _vis has no default value.
2531 // _par has no default value.
2532 // _impr has no default value.
2533 // _ity has no default value.
2534 // _ty has no default value.
2535 // _defs has no default value.
2536#line 1562 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2537 _vis = _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3));
2538#line 2538 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2539
2540#line 1563 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2541 _par = 0;
2542#line 2542 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2543
2544#line 1564 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2545 _impr = mmc_unbox_boolean((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 9)))), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(((*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) +
(9))))))) - 3))) + (4)))))))) >> 1)
;
2546#line 2546 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2547
2548#line 1565 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2549 _ity = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 9)))), 2))(*(void**)(((void*)((void**)(((void*)((char*)(((*(void**)(((void
*)((void**)(((void*)((char*)(_fn) - 3))) + (9))))))) - 3))) +
(2)))))
);
2550#line 2550 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2551
2552#line 1566 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2553 _ty = omc_NFFunction_Function_makeDAEType(threadData, _fn, 0);
2554#line 2554 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2555
2556#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2557 {
2558#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2559 modelica_metatype _D_24tmpVar11;
2560#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2561 modelica_metatype* tmp1;
2562#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2563 modelica_metatype _D_24tmpVar10;
2564#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2565 int tmp2;
2566#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2567 modelica_metatype _fn_der_loopVar = 0;
2568#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2569 modelica_metatype _fn_der;
2570#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2571 _fn_der_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 10))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
10)))))
);
2572#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2573 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2574#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2575 _D_24tmpVar11 = tmpMeta[2]; /* defaultValue */
2576#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2577 tmp1 = &_D_24tmpVar11;
2578#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2579 while(1) {
2580#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2581 tmp2 = 1;
2582#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2583 if (!listEmpty(_fn_der_loopVar)((*(mmc_uint_t*)((void*)((char*)(_fn_der_loopVar) - 3))) == (
((0) << 10) + (((0) & 255) << 2)))
) {
2584#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2585 _fn_der = MMC_CAR(_fn_der_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_fn_der_loopVar
) - 3))) + (1)))))
;
2586#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2587 _fn_der_loopVar = MMC_CDR(_fn_der_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_fn_der_loopVar
) - 3))) + (2)))))
;
2588#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2589 tmp2--;
2590#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2591 }
2592#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2593 if (tmp2 == 0) {
2594#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2595 _D_24tmpVar10 = omc_NFFunctionDerivative_toDAE(threadData, _fn_der);
2596#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2597 *tmp1 = mmc_mk_cons(_D_24tmpVar10,0);
2598#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2599 tmp1 = &MMC_CDR(*tmp1)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp1) - 3))) +
(2)))))
;
2600#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2601 } else if (tmp2 == 1) {
2602#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2603 break;
2604#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2605 } else {
2606#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2607 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2608#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2609 }
2610#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2611 }
2612#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2613 *tmp1 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
2614#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2615 tmpMeta[1] = _D_24tmpVar11;
2616#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2617 }
2618#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2619 tmpMeta[0] = mmc_mk_cons(_def, tmpMeta[1]);
2620#line 1567 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2621 _defs = tmpMeta[0];
2622#line 2622 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2623
2624#line 1568 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2625 tmpMeta[0] = mmc_mk_box10(3, &DAE_Function_FUNCTION__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
2)))))
), _defs, _ty, _vis, mmc_mk_boolean(_par)((_par) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(_impr)((_impr) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), _ity, omc_ElementSource_createElementSource(threadData, omc_NFInstNode_InstNode_info(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
3)))))
)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)), _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))), omc_SCodeUtil_getElementComment(threadData, omc_NFInstNode_InstNode_definition(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
3)))))
))));
2626#line 1568 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2627 _daeFn = tmpMeta[0];
2628#line 2628 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2629 _return: OMC_LABEL_UNUSED__attribute__((unused))
2630 return _daeFn;
2631}
2632
2633DLLExport
2634modelica_boolean omc_NFFunction_Function_isDefaultRecordConstructor(threadData_t *threadData, modelica_metatype _fn)
2635{
2636 modelica_boolean _isConstructor;
2637 modelica_boolean tmp1 = 0;
2638 MMC_SO()mmc_check_stackoverflow(threadData);
2639 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2640 // _isConstructor has no default value.
2641#line 2641 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2642 { /* match expression */
2643 modelica_metatype tmp4_1;
2644 tmp4_1 = omc_NFClass_Class_restriction(threadData, omc_NFInstNode_InstNode_getClass(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
3)))))
)));
2645 {
2646 volatile mmc_switch_type tmp4;
2647 int tmp5;
2648 tmp4 = 0;
2649 for (; tmp4 < 2; tmp4++) {
2650 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2651 case 0: {
2652 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,8,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((8 +3) & 255) << 2)))
== 0) goto tmp3_end;
2653 /* Pattern matching succeeded */
2654#line 1546 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2655 tmp1 = 1;
2656#line 2656 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2657 goto tmp3_done;
2658 }
2659 case 1: {
2660
2661 /* Pattern matching succeeded */
2662#line 1547 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2663 tmp1 = 0;
2664#line 2664 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2665 goto tmp3_done;
2666 }
2667 }
2668 goto tmp3_end;
2669 tmp3_end: ;
2670 }
2671 goto goto_2;
2672 goto_2:;
2673 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2674 goto tmp3_done;
2675 tmp3_done:;
2676 }
2677 }
2678 _isConstructor = tmp1;
2679 _return: OMC_LABEL_UNUSED__attribute__((unused))
2680 return _isConstructor;
2681}
2682modelica_metatype boxptr_NFFunction_Function_isDefaultRecordConstructor(threadData_t *threadData, modelica_metatype _fn)
2683{
2684 modelica_boolean _isConstructor;
2685 modelica_metatype out_isConstructor;
2686 _isConstructor = omc_NFFunction_Function_isDefaultRecordConstructor(threadData, _fn);
2687 out_isConstructor = mmc_mk_icon(_isConstructor);
2688 return out_isConstructor;
2689}
2690
2691DLLExport
2692modelica_metatype omc_NFFunction_Function_inlineBuiltin(threadData_t *threadData, modelica_metatype _fn)
2693{
2694 modelica_metatype _inlineType = NULL((void*)0);
2695 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2696 MMC_SO()mmc_check_stackoverflow(threadData);
2697 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2698 // _inlineType has no default value.
2699#line 2699 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2700 { /* match expression */
2701 modelica_metatype tmp3_1;
2702 tmp3_1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 9)))), 6))(*(void**)(((void*)((void**)(((void*)((char*)(((*(void**)(((void
*)((void**)(((void*)((char*)(_fn) - 3))) + (9))))))) - 3))) +
(6)))))
);
2703 {
2704 volatile mmc_switch_type tmp3;
2705 int tmp4;
2706 tmp3 = 0;
2707 for (; tmp3 < 2; tmp3++) {
2708 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2709 case 0: {
2710 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
2711 /* Pattern matching succeeded */
2712#line 1536 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2713 tmpMeta[0] = _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3));
2714#line 2714 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2715 goto tmp2_done;
2716 }
2717 case 1: {
2718
2719 /* Pattern matching succeeded */
2720#line 1537 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2721 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 9)))), 2))(*(void**)(((void*)((void**)(((void*)((char*)(((*(void**)(((void
*)((void**)(((void*)((char*)(_fn) - 3))) + (9))))))) - 3))) +
(2)))))
);
2722#line 2722 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2723 goto tmp2_done;
2724 }
2725 }
2726 goto tmp2_end;
2727 tmp2_end: ;
2728 }
2729 goto goto_1;
2730 goto_1:;
2731 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2732 goto tmp2_done;
2733 tmp2_done:;
2734 }
2735 }
2736 _inlineType = tmpMeta[0];
2737 _return: OMC_LABEL_UNUSED__attribute__((unused))
2738 return _inlineType;
2739}
2740
2741DLLExport
2742modelica_boolean omc_NFFunction_Function_isExternal(threadData_t *threadData, modelica_metatype _fn)
2743{
2744 modelica_boolean _isExternal;
2745 MMC_SO()mmc_check_stackoverflow(threadData);
2746 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2747 _isExternal = ((!omc_NFInstNode_InstNode_isEmpty(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
3)))))
))) && omc_NFClass_Class_isExternalFunction(threadData, omc_NFInstNode_InstNode_getClass(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
3)))))
))));
2748 _return: OMC_LABEL_UNUSED__attribute__((unused))
2749 return _isExternal;
2750}
2751modelica_metatype boxptr_NFFunction_Function_isExternal(threadData_t *threadData, modelica_metatype _fn)
2752{
2753 modelica_boolean _isExternal;
2754 modelica_metatype out_isExternal;
2755 _isExternal = omc_NFFunction_Function_isExternal(threadData, _fn);
2756 out_isExternal = mmc_mk_icon(_isExternal);
2757 return out_isExternal;
2758}
2759
2760DLLExport
2761modelica_metatype omc_NFFunction_Function_setFunctionPointer(threadData_t *threadData, modelica_boolean _isPointer, modelica_metatype _D_24in_fn)
2762{
2763 modelica_metatype _fn = NULL((void*)0);
2764 modelica_metatype _attr = NULL((void*)0);
2765 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2766 MMC_SO()mmc_check_stackoverflow(threadData);
2767 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2768 _fn = _D_24in_fn;
2769 _attr = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 9))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
9)))))
);
2770#line 1518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2771 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(8))((void*)((char*)(mmc_alloc_words(8)) + 3));
2772#line 1518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2773 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_attr)((void*)((char*)(_attr) - 3)), 8*sizeof(modelica_metatype));
2774#line 1518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2775 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[5] = mmc_mk_boolean(_isPointer)((_isPointer) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0)));
2776#line 1518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2777 _attr = tmpMeta[0];
2778#line 2778 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2779
2780#line 1519 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2781 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(13))((void*)((char*)(mmc_alloc_words(13)) + 3));
2782#line 1519 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2783 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_fn)((void*)((char*)(_fn) - 3)), 13*sizeof(modelica_metatype));
2784#line 1519 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2785 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[9] = _attr;
2786#line 1519 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2787 _fn = tmpMeta[0];
2788#line 2788 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2789 _return: OMC_LABEL_UNUSED__attribute__((unused))
2790 return _fn;
2791}
2792modelica_metatype boxptr_NFFunction_Function_setFunctionPointer(threadData_t *threadData, modelica_metatype _isPointer, modelica_metatype _D_24in_fn)
2793{
2794 modelica_integer tmp1;
2795 modelica_metatype _fn = NULL((void*)0);
2796 tmp1 = mmc_unbox_integer(_isPointer)(((mmc_sint_t) (_isPointer)) >> 1);
2797 _fn = omc_NFFunction_Function_setFunctionPointer(threadData, tmp1, _D_24in_fn);
2798 /* skip box _fn; NFFunction.Function */
2799 return _fn;
2800}
2801
2802DLLExport
2803modelica_boolean omc_NFFunction_Function_isFunctionPointer(threadData_t *threadData, modelica_metatype _fn)
2804{
2805 modelica_boolean _isPointer;
2806 MMC_SO()mmc_check_stackoverflow(threadData);
2807 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2808 _isPointer = mmc_unbox_boolean((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 9)))), 5))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(((*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) +
(9))))))) - 3))) + (5)))))))) >> 1)
;
2809 _return: OMC_LABEL_UNUSED__attribute__((unused))
2810 return _isPointer;
2811}
2812modelica_metatype boxptr_NFFunction_Function_isFunctionPointer(threadData_t *threadData, modelica_metatype _fn)
2813{
2814 modelica_boolean _isPointer;
2815 modelica_metatype out_isPointer;
2816 _isPointer = omc_NFFunction_Function_isFunctionPointer(threadData, _fn);
2817 out_isPointer = mmc_mk_icon(_isPointer);
2818 return out_isPointer;
2819}
2820
2821DLLExport
2822modelica_boolean omc_NFFunction_Function_isOMImpure(threadData_t *threadData, modelica_metatype _fn)
2823{
2824 modelica_boolean _isImpure;
2825 MMC_SO()mmc_check_stackoverflow(threadData);
2826 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2827 _isImpure = (!mmc_unbox_boolean((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 9)))), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(((*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) +
(9))))))) - 3))) + (3)))))))) >> 1)
);
2828 _return: OMC_LABEL_UNUSED__attribute__((unused))
2829 return _isImpure;
2830}
2831modelica_metatype boxptr_NFFunction_Function_isOMImpure(threadData_t *threadData, modelica_metatype _fn)
2832{
2833 modelica_boolean _isImpure;
2834 modelica_metatype out_isImpure;
2835 _isImpure = omc_NFFunction_Function_isOMImpure(threadData, _fn);
2836 out_isImpure = mmc_mk_icon(_isImpure);
2837 return out_isImpure;
2838}
2839
2840DLLExport
2841modelica_boolean omc_NFFunction_Function_isImpure(threadData_t *threadData, modelica_metatype _fn)
2842{
2843 modelica_boolean _isImpure;
2844 MMC_SO()mmc_check_stackoverflow(threadData);
2845 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2846 _isImpure = mmc_unbox_boolean((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 9)))), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(((*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) +
(9))))))) - 3))) + (4)))))))) >> 1)
;
2847 _return: OMC_LABEL_UNUSED__attribute__((unused))
2848 return _isImpure;
2849}
2850modelica_metatype boxptr_NFFunction_Function_isImpure(threadData_t *threadData, modelica_metatype _fn)
2851{
2852 modelica_boolean _isImpure;
2853 modelica_metatype out_isImpure;
2854 _isImpure = omc_NFFunction_Function_isImpure(threadData, _fn);
2855 out_isImpure = mmc_mk_icon(_isImpure);
2856 return out_isImpure;
2857}
2858
2859DLLExport
2860modelica_boolean omc_NFFunction_Function_isSubscriptableBuiltin(threadData_t *threadData, modelica_metatype _fn)
2861{
2862 modelica_boolean _scalarBuiltin;
2863 modelica_boolean tmp1 = 0;
2864 MMC_SO()mmc_check_stackoverflow(threadData);
2865 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2866 // _scalarBuiltin has no default value.
2867#line 1485 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2868 if((!omc_NFFunction_Function_isBuiltin(threadData, _fn)))
2869#line 1485 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2870 {
2871#line 1486 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2872 _scalarBuiltin = 0;
2873#line 2873 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2874 }
2875 else
2876 {
2877#line 2877 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2878 { /* match expression */
2879 modelica_string tmp4_1;
2880 tmp4_1 = omc_AbsynUtil_pathFirstIdent(threadData, omc_NFFunction_Function_nameConsiderBuiltin(threadData, _fn));
2881 {
2882 volatile mmc_switch_type tmp4;
2883 int tmp5;
2884 tmp4 = 0;
2885 for (; tmp4 < 4; tmp4++) {
2886 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2887 case 0: {
2888 if (6 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT48)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT48).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_end;
2889 /* Pattern matching succeeded */
2890#line 1489 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2891 tmp1 = 1;
2892#line 2892 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2893 goto tmp3_done;
2894 }
2895 case 1: {
2896 if (3 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT49)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT49).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_end;
2897 /* Pattern matching succeeded */
2898#line 1490 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2899 tmp1 = 1;
2900#line 2900 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2901 goto tmp3_done;
2902 }
2903 case 2: {
2904 if (3 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT50)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT50).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_end;
2905 /* Pattern matching succeeded */
2906#line 1491 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2907 tmp1 = 1;
2908#line 2908 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2909 goto tmp3_done;
2910 }
2911 case 3: {
2912
2913 /* Pattern matching succeeded */
2914#line 1492 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2915 tmp1 = 0;
2916#line 2916 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2917 goto tmp3_done;
2918 }
2919 }
2920 goto tmp3_end;
2921 tmp3_end: ;
2922 }
2923 goto goto_2;
2924 goto_2:;
2925 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2926 goto tmp3_done;
2927 tmp3_done:;
2928 }
2929 }
2930 _scalarBuiltin = tmp1;
2931 }
2932 _return: OMC_LABEL_UNUSED__attribute__((unused))
2933 return _scalarBuiltin;
2934}
2935modelica_metatype boxptr_NFFunction_Function_isSubscriptableBuiltin(threadData_t *threadData, modelica_metatype _fn)
2936{
2937 modelica_boolean _scalarBuiltin;
2938 modelica_metatype out_scalarBuiltin;
2939 _scalarBuiltin = omc_NFFunction_Function_isSubscriptableBuiltin(threadData, _fn);
2940 out_scalarBuiltin = mmc_mk_icon(_scalarBuiltin);
2941 return out_scalarBuiltin;
2942}
2943
2944DLLExport
2945modelica_boolean omc_NFFunction_Function_isSpecialBuiltin(threadData_t *threadData, modelica_metatype _fn)
2946{
2947 modelica_boolean _special;
2948 modelica_metatype _path = NULL((void*)0);
2949 modelica_boolean tmp1 = 0;
2950 MMC_SO()mmc_check_stackoverflow(threadData);
2951 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2952 // _special has no default value.
2953 // _path has no default value.
2954#line 1399 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2955 if((!omc_NFFunction_Function_isBuiltin(threadData, _fn)))
2956#line 1399 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2957 {
2958#line 1400 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2959 _special = 0;
2960#line 2960 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2961 }
2962 else
2963 {
2964#line 1402 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2965 _path = omc_NFFunction_Function_nameConsiderBuiltin(threadData, _fn);
2966#line 2966 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2967
2968#line 1404 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2969 if((!omc_AbsynUtil_pathIsIdent(threadData, _path)))
2970#line 1404 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2971 {
2972#line 1405 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2973 _special = 0;
2974#line 2974 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2975 }
2976 else
2977 {
2978#line 2978 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2979 { /* match expression */
2980 modelica_string tmp4_1;
2981 tmp4_1 = omc_AbsynUtil_pathFirstIdent(threadData, _path);
2982 {
2983 int tmp4;
2984 {
2985 switch (MMC_SWITCH_CAST(stringHashDjb2Mod(tmp4_1,2048))(stringHashDjb2Mod(tmp4_1,2048))) {
2986 case 1572 /* array */: {
2987 if (5 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT51)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT51).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
2988 /* Pattern matching succeeded */
2989#line 1409 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2990 tmp1 = 1;
2991#line 2991 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
2992 goto tmp3_done;
2993 }
2994 case 1515 /* actualStream */: {
2995 if (12 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT52)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT52).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
2996 /* Pattern matching succeeded */
2997#line 1410 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
2998 tmp1 = 1;
2999#line 2999 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3000 goto tmp3_done;
3001 }
3002 case 1459 /* branch */: {
3003 if (6 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT53)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT53).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3004 /* Pattern matching succeeded */
3005#line 1411 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3006 tmp1 = 1;
3007#line 3007 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3008 goto tmp3_done;
3009 }
3010 case 25 /* cardinality */: {
3011 if (11 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT54)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT54).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3012 /* Pattern matching succeeded */
3013#line 1412 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3014 tmp1 = 1;
3015#line 3015 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3016 goto tmp3_done;
3017 }
3018 case 1277 /* cat */: {
3019 if (3 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT55)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT55).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3020 /* Pattern matching succeeded */
3021#line 1413 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3022 tmp1 = 1;
3023#line 3023 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3024 goto tmp3_done;
3025 }
3026 case 459 /* change */: {
3027 if (6 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT48)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT48).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3028 /* Pattern matching succeeded */
3029#line 1416 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3030 tmp1 = 1;
3031#line 3031 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3032 goto tmp3_done;
3033 }
3034 case 448 /* der */: {
3035 if (3 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT49)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT49).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3036 /* Pattern matching succeeded */
3037#line 1417 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3038 tmp1 = 1;
3039#line 3039 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3040 goto tmp3_done;
3041 }
3042 case 1252 /* diagonal */: {
3043 if (8 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT56)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT56).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3044 /* Pattern matching succeeded */
3045#line 1418 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3046 tmp1 = 1;
3047#line 3047 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3048 goto tmp3_done;
3049 }
3050 case 218 /* edge */: {
3051 if (4 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT57)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT57).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3052 /* Pattern matching succeeded */
3053#line 1420 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3054 tmp1 = 1;
3055#line 3055 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3056 goto tmp3_done;
3057 }
3058 case 812 /* fill */: {
3059 if (4 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT58)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT58).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3060 /* Pattern matching succeeded */
3061#line 1422 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3062 tmp1 = 1;
3063#line 3063 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3064 goto tmp3_done;
3065 }
3066 case 1243 /* getInstanceName */: {
3067 if (15 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT59)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT59).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3068 /* Pattern matching succeeded */
3069#line 1423 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3070 tmp1 = 1;
3071#line 3071 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3072 goto tmp3_done;
3073 }
3074 case 559 /* initial */: {
3075 if (7 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT60)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT60).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3076 /* Pattern matching succeeded */
3077#line 1425 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3078 tmp1 = 1;
3079#line 3079 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3080 goto tmp3_done;
3081 }
3082 case 424 /* inStream */: {
3083 if (8 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT61)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT61).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3084 /* Pattern matching succeeded */
3085#line 1426 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3086 tmp1 = 1;
3087#line 3087 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3088 goto tmp3_done;
3089 }
3090 case 1733 /* isRoot */: {
3091 if (6 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT62)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT62).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3092 /* Pattern matching succeeded */
3093#line 1427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3094 tmp1 = 1;
3095#line 3095 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3096 goto tmp3_done;
3097 }
3098 case 282 /* matrix */: {
3099 if (6 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT63)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT63).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3100 /* Pattern matching succeeded */
3101#line 1431 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3102 tmp1 = 1;
3103#line 3103 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3104 goto tmp3_done;
3105 }
3106 case 1931 /* max */: {
3107 if (3 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT64)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT64).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3108 /* Pattern matching succeeded */
3109#line 1434 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3110 tmp1 = 1;
3111#line 3111 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3112 goto tmp3_done;
3113 }
3114 case 137 /* min */: {
3115 if (3 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT65)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT65).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3116 /* Pattern matching succeeded */
3117#line 1437 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3118 tmp1 = 1;
3119#line 3119 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3120 goto tmp3_done;
3121 }
3122 case 672 /* ndims */: {
3123 if (5 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT66)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT66).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3124 /* Pattern matching succeeded */
3125#line 1439 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3126 tmp1 = 1;
3127#line 3127 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3128 goto tmp3_done;
3129 }
3130 case 484 /* noEvent */: {
3131 if (7 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT67)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT67).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3132 /* Pattern matching succeeded */
3133#line 1441 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3134 tmp1 = 1;
3135#line 3135 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3136 goto tmp3_done;
3137 }
3138 case 1786 /* ones */: {
3139 if (4 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT68)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT68).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3140 /* Pattern matching succeeded */
3141#line 1443 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3142 tmp1 = 1;
3143#line 3143 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3144 goto tmp3_done;
3145 }
3146 case 1817 /* potentialRoot */: {
3147 if (13 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT69)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT69).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3148 /* Pattern matching succeeded */
3149#line 1444 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3150 tmp1 = 1;
3151#line 3151 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3152 goto tmp3_done;
3153 }
3154 case 1644 /* pre */: {
3155 if (3 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT50)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT50).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3156 /* Pattern matching succeeded */
3157#line 1447 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3158 tmp1 = 1;
3159#line 3159 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3160 goto tmp3_done;
3161 }
3162 case 1606 /* product */: {
3163 if (7 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT70)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT70).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3164 /* Pattern matching succeeded */
3165#line 1449 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3166 tmp1 = 1;
3167#line 3167 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3168 goto tmp3_done;
3169 }
3170 case 425 /* root */: {
3171 if (4 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT71)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT71).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3172 /* Pattern matching succeeded */
3173#line 1450 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3174 tmp1 = 1;
3175#line 3175 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3176 goto tmp3_done;
3177 }
3178 case 1362 /* rooted */: {
3179 if (6 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT72)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT72).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3180 /* Pattern matching succeeded */
3181#line 1451 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3182 tmp1 = 1;
3183#line 3183 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3184 goto tmp3_done;
3185 }
3186 case 27 /* scalar */: {
3187 if (6 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT73)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT73).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3188 /* Pattern matching succeeded */
3189#line 1454 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3190 tmp1 = 1;
3191#line 3191 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3192 goto tmp3_done;
3193 }
3194 case 1504 /* size */: {
3195 if (4 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT74)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT74).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3196 /* Pattern matching succeeded */
3197#line 1456 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3198 tmp1 = 1;
3199#line 3199 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3200 goto tmp3_done;
3201 }
3202 case 415 /* smooth */: {
3203 if (6 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT75)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT75).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3204 /* Pattern matching succeeded */
3205#line 1458 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3206 tmp1 = 1;
3207#line 3207 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3208 goto tmp3_done;
3209 }
3210 case 922 /* sum */: {
3211 if (3 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT76)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT76).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3212 /* Pattern matching succeeded */
3213#line 1460 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3214 tmp1 = 1;
3215#line 3215 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3216 goto tmp3_done;
3217 }
3218 case 226 /* symmetric */: {
3219 if (9 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT77)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT77).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3220 /* Pattern matching succeeded */
3221#line 1462 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3222 tmp1 = 1;
3223#line 3223 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3224 goto tmp3_done;
3225 }
3226 case 865 /* terminal */: {
3227 if (8 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT78)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT78).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3228 /* Pattern matching succeeded */
3229#line 1464 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3230 tmp1 = 1;
3231#line 3231 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3232 goto tmp3_done;
3233 }
3234 case 356 /* transpose */: {
3235 if (9 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT79)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT79).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3236 /* Pattern matching succeeded */
3237#line 1466 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3238 tmp1 = 1;
3239#line 3239 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3240 goto tmp3_done;
3241 }
3242 case 1944 /* vector */: {
3243 if (6 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT80)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT80).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3244 /* Pattern matching succeeded */
3245#line 1469 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3246 tmp1 = 1;
3247#line 3247 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3248 goto tmp3_done;
3249 }
3250 case 920 /* zeros */: {
3251 if (5 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT81)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT81).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3252 /* Pattern matching succeeded */
3253#line 1471 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3254 tmp1 = 1;
3255#line 3255 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3256 goto tmp3_done;
3257 }
3258 case 1543 /* sample */: {
3259 if (6 != MMC_STRLEN(tmp4_1)(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> (
3)) - 8))
|| strcmp(MMC_STRINGDATA(_OMC_LIT82)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT82).header) + 3))) - 3)))->data)
, MMC_STRINGDATA(tmp4_1)(((struct mmc_string*)((void*)((char*)(tmp4_1) - 3)))->data
)
) != 0) goto tmp3_default;
3260 /* Pattern matching succeeded */
3261#line 1473 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3262 tmp1 = 1;
3263#line 3263 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3264 goto tmp3_done;
3265 }
3266 default:
3267 tmp3_default: OMC_LABEL_UNUSED__attribute__((unused)); {
3268
3269 /* Pattern matching succeeded */
3270#line 1474 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3271 tmp1 = 0;
3272#line 3272 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3273 goto tmp3_done;
3274 }
3275 }
3276 goto tmp3_end;
3277 tmp3_end: ;
3278 }
3279 goto goto_2;
3280 goto_2:;
3281 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3282 goto tmp3_done;
3283 tmp3_done:;
3284 }
3285 }
3286 _special = tmp1;
3287 }
3288 }
3289 _return: OMC_LABEL_UNUSED__attribute__((unused))
3290 return _special;
3291}
3292modelica_metatype boxptr_NFFunction_Function_isSpecialBuiltin(threadData_t *threadData, modelica_metatype _fn)
3293{
3294 modelica_boolean _special;
3295 modelica_metatype out_special;
3296 _special = omc_NFFunction_Function_isSpecialBuiltin(threadData, _fn);
3297 out_special = mmc_mk_icon(_special);
3298 return out_special;
3299}
3300
3301DLLExport
3302modelica_boolean omc_NFFunction_Function_isBuiltinAttr(threadData_t *threadData, modelica_metatype _attrs)
3303{
3304 modelica_boolean _isBuiltin;
3305 modelica_boolean tmp1 = 0;
3306 MMC_SO()mmc_check_stackoverflow(threadData);
3307 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3308 // _isBuiltin has no default value.
3309#line 3309 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3310 { /* match expression */
3311 modelica_metatype tmp4_1;
3312 tmp4_1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_attrs), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_attrs) - 3))) +
(6)))))
);
3313 {
3314 volatile mmc_switch_type tmp4;
3315 int tmp5;
3316 tmp4 = 0;
3317 for (; tmp4 < 2; tmp4++) {
3318 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3319 case 0: {
3320 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3321 /* Pattern matching succeeded */
3322#line 1388 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3323 tmp1 = 0;
3324#line 3324 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3325 goto tmp3_done;
3326 }
3327 case 1: {
3328
3329 /* Pattern matching succeeded */
3330#line 1389 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3331 tmp1 = 1;
3332#line 3332 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3333 goto tmp3_done;
3334 }
3335 }
3336 goto tmp3_end;
3337 tmp3_end: ;
3338 }
3339 goto goto_2;
3340 goto_2:;
3341 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3342 goto tmp3_done;
3343 tmp3_done:;
3344 }
3345 }
3346 _isBuiltin = tmp1;
3347 _return: OMC_LABEL_UNUSED__attribute__((unused))
3348 return _isBuiltin;
3349}
3350modelica_metatype boxptr_NFFunction_Function_isBuiltinAttr(threadData_t *threadData, modelica_metatype _attrs)
3351{
3352 modelica_boolean _isBuiltin;
3353 modelica_metatype out_isBuiltin;
3354 _isBuiltin = omc_NFFunction_Function_isBuiltinAttr(threadData, _attrs);
3355 out_isBuiltin = mmc_mk_icon(_isBuiltin);
3356 return out_isBuiltin;
3357}
3358
3359DLLExport
3360modelica_boolean omc_NFFunction_Function_isBuiltin(threadData_t *threadData, modelica_metatype _fn)
3361{
3362 modelica_boolean _isBuiltin;
3363 MMC_SO()mmc_check_stackoverflow(threadData);
3364 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3365 _isBuiltin = omc_NFFunction_Function_isBuiltinAttr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 9))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
9)))))
));
3366 _return: OMC_LABEL_UNUSED__attribute__((unused))
3367 return _isBuiltin;
3368}
3369modelica_metatype boxptr_NFFunction_Function_isBuiltin(threadData_t *threadData, modelica_metatype _fn)
3370{
3371 modelica_boolean _isBuiltin;
3372 modelica_metatype out_isBuiltin;
3373 _isBuiltin = omc_NFFunction_Function_isBuiltin(threadData, _fn);
3374 out_isBuiltin = mmc_mk_icon(_isBuiltin);
3375 return out_isBuiltin;
3376}
3377
3378DLLExport
3379modelica_metatype omc_NFFunction_Function_applyPartialApplicationArg(threadData_t *threadData, modelica_string _argName, modelica_metatype _D_24in_argExp, modelica_metatype _argType, modelica_metatype _inputs, modelica_metatype _slots, modelica_metatype _fn, modelica_metatype _info, modelica_metatype *out_outInputs, modelica_metatype *out_outSlots)
3380{
3381 modelica_metatype _argExp = NULL((void*)0);
3382 modelica_metatype _outInputs = NULL((void*)0);
3383 modelica_metatype _outSlots = NULL((void*)0);
3384 modelica_metatype _i = NULL((void*)0);
3385 modelica_metatype _rest_inputs = NULL((void*)0);
3386 modelica_metatype _s = NULL((void*)0);
3387 modelica_metatype _rest_slots = NULL((void*)0);
3388 modelica_integer _mk;
3389 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
3390 MMC_SO()mmc_check_stackoverflow(threadData);
3391 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3392 _argExp = _D_24in_argExp;
3393 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3394 _outInputs = tmpMeta[0];
3395 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3396 _outSlots = tmpMeta[1];
3397 // _i has no default value.
3398 _rest_inputs = _inputs;
3399 // _s has no default value.
3400 _rest_slots = _slots;
3401 // _mk has no default value.
3402#line 1350 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3403 while(1)
3404#line 1350 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3405 {
3406#line 1350 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3407 if(!(!listEmpty(_rest_inputs)((*(mmc_uint_t*)((void*)((char*)(_rest_inputs) - 3))) == (((0
) << 10) + (((0) & 255) << 2)))
)) break;
3408#line 1351 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3409 /* Pattern-matching assignment */
3410#line 1351 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3411 tmpMeta[2] = _rest_inputs;
3412#line 1351 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3413 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3414#line 1351 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3415 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
3416#line 1351 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3417 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
3418#line 1351 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3419 _i = tmpMeta[3];
3420#line 1351 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3421 _rest_inputs = tmpMeta[4];
3422#line 3422 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3423
3424#line 1352 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3425 /* Pattern-matching assignment */
3426#line 1352 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3427 tmpMeta[2] = _rest_slots;
3428#line 1352 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3429 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3430#line 1352 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3431 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
3432#line 1352 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3433 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
3434#line 1352 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3435 _s = tmpMeta[3];
3436#line 1352 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3437 _rest_slots = tmpMeta[4];
3438#line 3438 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3439
3440#line 1354 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3441 if((stringEqual((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_s), 2))), _argName)((((((*(mmc_uint_t*)((void*)((char*)(((*(void**)(((void*)((void
**)(((void*)((char*)(_s) - 3))) + (2))))))) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_argName) - 3
)))) >> (3)) - 8)) && !mmc_stringCompare(((*(void
**)(((void*)((void**)(((void*)((char*)(_s) - 3))) + (2)))))),
_argName))
))
3442#line 1354 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3443 {
3444#line 1355 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3445 _argExp = omc_NFTypeCheck_matchTypes(threadData, _argType, omc_NFInstNode_InstNode_getType(threadData, _i), _argExp, 1 ,NULL((void*)0) ,&_mk);
3446#line 3446 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3447
3448#line 1357 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3449 if(omc_NFTypeCheck_isIncompatibleMatch(threadData, (modelica_integer)_mk))
3450#line 1357 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3451 {
3452#line 1358 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3453 tmpMeta[2] = mmc_mk_cons(omc_AbsynUtil_pathString(threadData, omc_NFFunction_Function_name(threadData, _fn), _OMC_LIT86((void*)((char*)(&(_OMC_LIT_STRUCT86).header) + 3)), 1, 0), mmc_mk_cons(_argName, mmc_mk_cons(omc_NFExpression_toString(threadData, _argExp), mmc_mk_cons(omc_NFType_toString(threadData, _argType), mmc_mk_cons(omc_NFType_toString(threadData, omc_NFInstNode_InstNode_getType(threadData, _i)), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)))))));
3454#line 1358 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3455 omc_Error_addSourceMessage(threadData, _OMC_LIT85((void*)((char*)(&(_OMC_LIT_STRUCT85).header) + 3)), tmpMeta[2], _info);
3456#line 3456 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3457
3458#line 1361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3459 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3460#line 3460 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3461 }
3462
3463#line 1364 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3464 _outInputs = listAppend(listReverseInPlace(_outInputs), _rest_inputs);
3465#line 3465 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3466
3467#line 1365 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3468 _outSlots = listAppend(listReverseInPlace(_outSlots), _rest_slots);
3469#line 3469 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3470
3471#line 1366 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3472 goto _return;
3473#line 3473 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3474 }
3475
3476#line 1369 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3477 tmpMeta[2] = mmc_mk_cons(_i, _outInputs);
3478#line 1369 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3479 _outInputs = tmpMeta[2];
3480#line 3480 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3481
3482#line 1370 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3483 tmpMeta[2] = mmc_mk_cons(_s, _outSlots);
3484#line 1370 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3485 _outSlots = tmpMeta[2];
3486#line 3486 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3487 }
3488
3489#line 1373 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3490 tmpMeta[2] = mmc_mk_cons(omc_AbsynUtil_pathString(threadData, omc_NFFunction_Function_name(threadData, _fn), _OMC_LIT86((void*)((char*)(&(_OMC_LIT_STRUCT86).header) + 3)), 1, 0), mmc_mk_cons(_argName, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
3491#line 1373 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3492 omc_Error_addSourceMessage(threadData, _OMC_LIT89((void*)((char*)(&(_OMC_LIT_STRUCT89).header) + 3)), tmpMeta[2], _info);
3493#line 3493 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3494
3495#line 1375 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3496 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3497#line 3497 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3498 _return: OMC_LABEL_UNUSED__attribute__((unused))
3499 if (out_outInputs) { *out_outInputs = _outInputs; }
3500 if (out_outSlots) { *out_outSlots = _outSlots; }
3501 return _argExp;
3502}
3503
3504DLLExport
3505modelica_metatype omc_NFFunction_Function_typePartialApplication(threadData_t *threadData, modelica_metatype _D_24in_exp, modelica_integer _origin, modelica_metatype _info, modelica_metatype *out_ty, modelica_integer *out_variability)
3506{
3507 modelica_metatype _exp = NULL((void*)0);
3508 modelica_metatype _ty = NULL((void*)0);
3509 modelica_integer _variability;
3510 modelica_metatype _fn_ref = NULL((void*)0);
3511 modelica_metatype _args = NULL((void*)0);
3512 modelica_metatype _ty_args = NULL((void*)0);
3513 modelica_metatype _arg_names = NULL((void*)0);
3514 modelica_metatype _rest_names = NULL((void*)0);
3515 modelica_string _arg_name = NULL((void*)0);
3516 modelica_metatype _arg_exp = NULL((void*)0);
3517 modelica_metatype _arg_ty = NULL((void*)0);
3518 modelica_integer _arg_var;
3519 modelica_metatype _fn = NULL((void*)0);
3520 modelica_integer _next_origin;
3521 modelica_metatype _inputs = NULL((void*)0);
3522 modelica_metatype _slots = NULL((void*)0);
3523 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
3524 MMC_SO()mmc_check_stackoverflow(threadData);
3525 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3526 _exp = _D_24in_exp;
3527 // _ty has no default value.
3528 // _variability has no default value.
3529 // _fn_ref has no default value.
3530 // _args has no default value.
3531 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3532 _ty_args = tmpMeta[0];
3533 // _arg_names has no default value.
3534 // _rest_names has no default value.
3535 // _arg_name has no default value.
3536 // _arg_exp has no default value.
3537 // _arg_ty has no default value.
3538 // _arg_var has no default value.
3539 // _fn has no default value.
3540 _next_origin = omc_NFTyping_ExpOrigin_setFlag(threadData, _origin, ((modelica_integer) 131072));
3541 // _inputs has no default value.
3542 // _slots has no default value.
3543#line 1306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3544 /* Pattern-matching assignment */
3545#line 1306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3546 tmpMeta[1] = _exp;
3547#line 1306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3548 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],30,4)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((4 +1)
<< 10) + (((30 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3549#line 1306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3550 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3551#line 1306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3552 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
3553#line 1306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3554 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
3555#line 1306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3556 _fn_ref = tmpMeta[2];
3557#line 1306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3558 _args = tmpMeta[3];
3559#line 1306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3560 _arg_names = tmpMeta[4];
3561#line 3561 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3562
3563#line 1308 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3564 /* Pattern-matching assignment */
3565#line 1308 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3566 tmpMeta[1] = omc_NFFunction_Function_typeRefCache(threadData, _fn_ref);
3567#line 1308 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3568 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3569#line 1308 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3570 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
3571#line 1308 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3572 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3573#line 1308 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3574 _fn = tmpMeta[2];
3575#line 3575 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3576
3577#line 1309 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3578 _inputs = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
4)))))
);
3579#line 3579 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3580
3581#line 1310 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3582 _slots = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 7))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
7)))))
);
3583#line 3583 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3584
3585#line 1311 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3586 _rest_names = _arg_names;
3587#line 3587 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3588
3589#line 1313 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3590 _variability = ((omc_NFFunction_Function_isImpure(threadData, _fn) || omc_NFFunction_Function_isOMImpure(threadData, _fn))?3:1);
3591#line 3591 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3592
3593#line 1316 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3594 {
3595#line 1316 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3596 modelica_metatype _arg;
3597#line 1316 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3598 for (tmpMeta[1] = _args; !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)))))
)
3599#line 1316 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3600 {
3601#line 1316 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3602 _arg = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
3603#line 1317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3604 _arg = omc_NFTyping_typeExp(threadData, _arg, _origin, _info ,&_arg_ty ,&_arg_var);
3605#line 3605 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3606
3607#line 1319 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3608 /* Pattern-matching assignment */
3609#line 1319 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3610 tmpMeta[2] = _rest_names;
3611#line 1319 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3612 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3613#line 1319 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3614 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
3615#line 1319 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3616 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
3617#line 1319 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3618 _arg_name = tmpMeta[3];
3619#line 1319 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3620 _rest_names = tmpMeta[4];
3621#line 3621 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3622
3623#line 1320 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3624 _arg = omc_NFFunction_Function_applyPartialApplicationArg(threadData, _arg_name, _arg, _arg_ty, _inputs, _slots, _fn, _info ,&_inputs ,&_slots);
3625#line 3625 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3626
3627#line 1323 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3628 tmpMeta[2] = mmc_mk_cons(omc_NFExpression_box(threadData, _arg), _ty_args);
3629#line 1323 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3630 _ty_args = tmpMeta[2];
3631#line 3631 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3632
3633#line 1324 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3634 _variability = omc_NFPrefixes_variabilityMax(threadData, (modelica_integer)_variability, (modelica_integer)_arg_var);
3635#line 3635 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3636 }
3637 }
3638
3639#line 1327 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3640 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(13))((void*)((char*)(mmc_alloc_words(13)) + 3));
3641#line 1327 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3642 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_fn)((void*)((char*)(_fn) - 3)), 13*sizeof(modelica_metatype));
3643#line 1327 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3644 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[4] = _inputs;
3645#line 1327 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3646 _fn = tmpMeta[1];
3647#line 3647 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3648
3649#line 1328 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3650 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(13))((void*)((char*)(mmc_alloc_words(13)) + 3));
3651#line 1328 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3652 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_fn)((void*)((char*)(_fn) - 3)), 13*sizeof(modelica_metatype));
3653#line 1328 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3654 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[7] = _slots;
3655#line 1328 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3656 _fn = tmpMeta[1];
3657#line 3657 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3658
3659#line 1329 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3660 tmpMeta[1] = mmc_mk_box3(15, &NFType_FUNCTION__desc, _fn, mmc_mk_integermmc_mk_icon(3));
3661#line 1329 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3662 _ty = tmpMeta[1];
3663#line 3663 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3664
3665#line 1330 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3666 tmpMeta[1] = mmc_mk_box5(33, &NFExpression_PARTIAL__FUNCTION__APPLICATION__desc, _fn_ref, listReverseInPlace(_ty_args), _arg_names, _ty);
3667#line 1330 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3668 _exp = tmpMeta[1];
3669#line 3669 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3670 _return: OMC_LABEL_UNUSED__attribute__((unused))
3671 if (out_ty) { *out_ty = _ty; }
3672 if (out_variability) { *out_variability = _variability; }
3673 return _exp;
3674}
3675modelica_metatype boxptr_NFFunction_Function_typePartialApplication(threadData_t *threadData, modelica_metatype _D_24in_exp, modelica_metatype _origin, modelica_metatype _info, modelica_metatype *out_ty, modelica_metatype *out_variability)
3676{
3677 modelica_integer tmp1;
3678 modelica_integer _variability;
3679 modelica_metatype _exp = NULL((void*)0);
3680 tmp1 = mmc_unbox_integer(_origin)(((mmc_sint_t) (_origin)) >> 1);
3681 _exp = omc_NFFunction_Function_typePartialApplication(threadData, _D_24in_exp, tmp1, _info, out_ty, &_variability);
3682 /* skip box _exp; NFExpression */
3683 /* skip box _ty; NFType */
3684 if (out_variability) { *out_variability = mmc_mk_icon(_variability); }
3685 return _exp;
3686}
3687
3688DLLExport
3689void omc_NFFunction_Function_boxFunctionParameter(threadData_t *threadData, modelica_metatype _component)
3690{
3691 modelica_metatype _comp = NULL((void*)0);
3692 MMC_SO()mmc_check_stackoverflow(threadData);
3693 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3694 // _comp has no default value.
3695#line 1282 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3696 _comp = omc_NFInstNode_InstNode_component(threadData, _component);
3697#line 3697 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3698
3699#line 1283 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3700 _comp = omc_NFComponent_Component_setType(threadData, omc_NFType_box(threadData, omc_NFComponent_Component_getType(threadData, _comp)), _comp);
3701#line 3701 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3702
3703#line 1284 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3704 omc_NFInstNode_InstNode_updateComponent(threadData, _comp, _component);
3705#line 3705 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3706 _return: OMC_LABEL_UNUSED__attribute__((unused))
3707 return;
3708}
3709
3710DLLExport
3711modelica_metatype omc_NFFunction_Function_typeFunctionBody(threadData_t *threadData, modelica_metatype _D_24in_fn)
3712{
3713 modelica_metatype _fn = NULL((void*)0);
3714 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3715 MMC_SO()mmc_check_stackoverflow(threadData);
3716 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3717 _fn = _D_24in_fn;
3718#line 1260 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3719 {
3720#line 1260 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3721 modelica_metatype _c;
3722#line 1260 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3723 for (tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
5)))))
); !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)))))
)
3724#line 1260 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3725 {
3726#line 1260 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3727 _c = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3728#line 1261 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3729 omc_NFTyping_typeComponentBinding(threadData, _c, ((modelica_integer) 1), 1);
3730#line 3730 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3731 }
3732 }
3733
3734#line 1264 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3735 {
3736#line 1264 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3737 modelica_metatype _c;
3738#line 1264 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3739 for (tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
6)))))
); !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)))))
)
3740#line 1264 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3741 {
3742#line 1264 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3743 _c = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3744#line 1265 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3745 omc_NFTyping_typeComponentBinding(threadData, _c, ((modelica_integer) 1), 1);
3746#line 3746 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3747 }
3748 }
3749
3750#line 1269 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3751 omc_NFTyping_typeFunctionSections(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
3)))))
), ((modelica_integer) 1));
3752#line 3752 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3753
3754#line 1272 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3755 {
3756#line 1272 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3757 modelica_metatype _fn_der;
3758#line 1272 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3759 for (tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 10))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
10)))))
); !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)))))
)
3760#line 1272 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3761 {
3762#line 1272 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3763 _fn_der = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3764#line 1273 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3765 omc_NFFunctionDerivative_typeDerivative(threadData, _fn_der);
3766#line 3766 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3767 }
3768 }
3769 _return: OMC_LABEL_UNUSED__attribute__((unused))
3770 return _fn;
3771}
3772
3773DLLExport
3774modelica_metatype omc_NFFunction_Function_typeFunctionSignature(threadData_t *threadData, modelica_metatype _D_24in_fn)
3775{
3776 modelica_metatype _fn = NULL((void*)0);
3777 modelica_metatype _attr = NULL((void*)0);
3778 modelica_metatype _node = NULL((void*)0);
3779 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3780 MMC_SO()mmc_check_stackoverflow(threadData);
3781 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3782 _fn = _D_24in_fn;
3783 // _attr has no default value.
3784 _node = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
3)))))
);
3785#line 1230 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3786 if((!omc_NFFunction_Function_isTyped(threadData, _fn)))
3787#line 1230 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3788 {
3789#line 1232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3790 omc_NFTyping_typeClassType(threadData, _node, _OMC_LIT92((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3)), ((modelica_integer) 1), _node);
3791#line 3791 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3792
3793#line 1233 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3794 omc_NFTyping_typeComponents(threadData, _node, ((modelica_integer) 1));
3795#line 3795 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3796
3797#line 1235 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3798 if(omc_NFInstNode_InstNode_isPartial(threadData, _node))
3799#line 1235 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3800 {
3801#line 1236 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3802 omc_NFClassTree_ClassTree_applyComponents(threadData, omc_NFClass_Class_classTree(threadData, omc_NFInstNode_InstNode_getClass(threadData, _node)), boxvar_NFFunction_Function_boxFunctionParameter((void*)((char*)(&(boxvar_lit_NFFunction_Function_boxFunctionParameter
).header) + 3))
);
3803#line 3803 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3804 }
3805
3806#line 1243 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3807 {
3808#line 1243 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3809 modelica_metatype _c;
3810#line 1243 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3811 for (tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
4)))))
); !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)))))
)
3812#line 1243 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3813 {
3814#line 1243 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3815 _c = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3816#line 1244 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3817 omc_NFTyping_typeComponentBinding(threadData, _c, ((modelica_integer) 1), 1);
3818#line 3818 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3819 }
3820 }
3821
3822#line 1248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3823 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(13))((void*)((char*)(mmc_alloc_words(13)) + 3));
3824#line 1248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3825 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_fn)((void*)((char*)(_fn) - 3)), 13*sizeof(modelica_metatype));
3826#line 1248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3827 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[7] = omc_NFFunction_Function_makeSlots(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
4)))))
));
3828#line 1248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3829 _fn = tmpMeta[0];
3830#line 3830 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3831
3832#line 1249 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3833 omc_NFFunction_Function_checkParamTypes(threadData, _fn);
3834#line 3834 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3835
3836#line 1250 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3837 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(13))((void*)((char*)(mmc_alloc_words(13)) + 3));
3838#line 1250 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3839 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_fn)((void*)((char*)(_fn) - 3)), 13*sizeof(modelica_metatype));
3840#line 1250 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3841 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[8] = omc_NFFunction_Function_makeReturnType(threadData, _fn);
3842#line 1250 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3843 _fn = tmpMeta[0];
3844#line 3844 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3845 }
3846 _return: OMC_LABEL_UNUSED__attribute__((unused))
3847 return _fn;
3848}
3849
3850DLLExport
3851modelica_metatype omc_NFFunction_Function_typeFunction(threadData_t *threadData, modelica_metatype _D_24in_fn)
3852{
3853 modelica_metatype _fn = NULL((void*)0);
3854 MMC_SO()mmc_check_stackoverflow(threadData);
3855 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3856 _fn = _D_24in_fn;
3857#line 1219 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3858 _fn = omc_NFFunction_Function_typeFunctionSignature(threadData, _fn);
3859#line 3859 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3860
3861#line 1220 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3862 _fn = omc_NFFunction_Function_typeFunctionBody(threadData, _fn);
3863#line 3863 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3864 _return: OMC_LABEL_UNUSED__attribute__((unused))
3865 return _fn;
3866}
3867
3868DLLExport
3869modelica_metatype omc_NFFunction_Function_getRefCache(threadData_t *threadData, modelica_metatype _fnRef)
3870{
3871 modelica_metatype _functions = NULL((void*)0);
3872 modelica_metatype _fn_node = NULL((void*)0);
3873 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3874 MMC_SO()mmc_check_stackoverflow(threadData);
3875 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3876 // _functions has no default value.
3877 // _fn_node has no default value.
3878#line 1212 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3879 _fn_node = omc_NFInstNode_InstNode_classScope(threadData, omc_NFComponentRef_node(threadData, _fnRef));
3880#line 3880 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3881
3882#line 1213 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3883 /* Pattern-matching assignment */
3884#line 1213 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3885 tmpMeta[0] = omc_NFInstNode_InstNode_getFuncCache(threadData, _fn_node);
3886#line 1213 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3887 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],2,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((3 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3888#line 1213 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3889 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
3890#line 1213 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3891 _functions = tmpMeta[1];
3892#line 3892 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3893 _return: OMC_LABEL_UNUSED__attribute__((unused))
3894 return _functions;
3895}
3896
3897DLLExport
3898modelica_metatype omc_NFFunction_Function_typeNodeCache(threadData_t *threadData, modelica_metatype _functionNode)
3899{
3900 modelica_metatype _functions = NULL((void*)0);
3901 modelica_metatype _fn_node = NULL((void*)0);
3902 modelica_boolean _typed;
3903 modelica_boolean _special;
3904 modelica_string _name = NULL((void*)0);
3905 modelica_integer tmp1;
3906 modelica_integer tmp2;
3907 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3908 MMC_SO()mmc_check_stackoverflow(threadData);
3909 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3910 // _functions has no default value.
3911 // _fn_node has no default value.
3912 // _typed has no default value.
3913 // _special has no default value.
3914 // _name has no default value.
3915#line 1194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3916 _fn_node = omc_NFInstNode_InstNode_classScope(threadData, _functionNode);
3917#line 3917 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3918
3919#line 1195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3920 /* Pattern-matching assignment */
3921#line 1195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3922 tmpMeta[0] = omc_NFInstNode_InstNode_getFuncCache(threadData, _fn_node);
3923#line 1195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3924 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],2,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((3 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3925#line 1195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3926 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
3927#line 1195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3928 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
3929#line 1195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3930 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
3931#line 1195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3932 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
3933#line 1195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3934 tmp2 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3935#line 1195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3936 _functions = tmpMeta[1];
3937#line 1195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3938 _typed = tmp1 /* pattern as ty=Boolean */;
3939#line 1195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3940 _special = tmp2 /* pattern as ty=Boolean */;
3941#line 3941 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
3942
3943#line 1198 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3944 if((!_typed))
3945#line 1198 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3946 {
3947#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3948 {
3949#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3950 modelica_metatype _D_24tmpVar13;
3951#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3952 modelica_metatype* tmp3;
3953#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3954 modelica_metatype _D_24tmpVar12;
3955#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3956 int tmp4;
3957#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3958 modelica_metatype _f_loopVar = 0;
3959#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3960 modelica_metatype _f;
3961#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3962 _f_loopVar = _functions;
3963#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3964 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3965#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3966 _D_24tmpVar13 = tmpMeta[1]; /* defaultValue */
3967#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3968 tmp3 = &_D_24tmpVar13;
3969#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3970 while(1) {
3971#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3972 tmp4 = 1;
3973#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3974 if (!listEmpty(_f_loopVar)((*(mmc_uint_t*)((void*)((char*)(_f_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
3975#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3976 _f = MMC_CAR(_f_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_f_loopVar) - 3
))) + (1)))))
;
3977#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3978 _f_loopVar = MMC_CDR(_f_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_f_loopVar) - 3
))) + (2)))))
;
3979#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3980 tmp4--;
3981#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3982 }
3983#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3984 if (tmp4 == 0) {
3985#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3986 _D_24tmpVar12 = omc_NFFunction_Function_typeFunctionSignature(threadData, _f);
3987#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3988 *tmp3 = mmc_mk_cons(_D_24tmpVar12,0);
3989#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3990 tmp3 = &MMC_CDR(*tmp3)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp3) - 3))) +
(2)))))
;
3991#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3992 } else if (tmp4 == 1) {
3993#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3994 break;
3995#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3996 } else {
3997#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
3998 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3999#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4000 }
4001#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4002 }
4003#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4004 *tmp3 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
4005#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4006 tmpMeta[0] = _D_24tmpVar13;
4007#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4008 }
4009#line 1199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4010 _functions = tmpMeta[0];
4011#line 4011 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4012
4013#line 1200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4014 tmpMeta[0] = mmc_mk_box4(5, &NFInstNode_CachedData_FUNCTION__desc, _functions, mmc_mk_boolean(1)((1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(_special)((_special) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
4015#line 1200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4016 omc_NFInstNode_InstNode_setFuncCache(threadData, _fn_node, tmpMeta[0]);
4017#line 4017 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4018
4019#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4020 {
4021#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4022 modelica_metatype _D_24tmpVar15;
4023#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4024 modelica_metatype* tmp5;
4025#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4026 modelica_metatype _D_24tmpVar14;
4027#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4028 int tmp6;
4029#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4030 modelica_metatype _f_loopVar = 0;
4031#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4032 modelica_metatype _f;
4033#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4034 _f_loopVar = _functions;
4035#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4036 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4037#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4038 _D_24tmpVar15 = tmpMeta[1]; /* defaultValue */
4039#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4040 tmp5 = &_D_24tmpVar15;
4041#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4042 while(1) {
4043#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4044 tmp6 = 1;
4045#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4046 if (!listEmpty(_f_loopVar)((*(mmc_uint_t*)((void*)((char*)(_f_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
4047#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4048 _f = MMC_CAR(_f_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_f_loopVar) - 3
))) + (1)))))
;
4049#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4050 _f_loopVar = MMC_CDR(_f_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_f_loopVar) - 3
))) + (2)))))
;
4051#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4052 tmp6--;
4053#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4054 }
4055#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4056 if (tmp6 == 0) {
4057#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4058 _D_24tmpVar14 = omc_NFFunction_Function_typeFunctionBody(threadData, _f);
4059#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4060 *tmp5 = mmc_mk_cons(_D_24tmpVar14,0);
4061#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4062 tmp5 = &MMC_CDR(*tmp5)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp5) - 3))) +
(2)))))
;
4063#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4064 } else if (tmp6 == 1) {
4065#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4066 break;
4067#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4068 } else {
4069#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4070 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4071#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4072 }
4073#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4074 }
4075#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4076 *tmp5 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
4077#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4078 tmpMeta[0] = _D_24tmpVar15;
4079#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4080 }
4081#line 1201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4082 _functions = tmpMeta[0];
4083#line 4083 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4084
4085#line 1202 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4086 tmpMeta[0] = mmc_mk_box4(5, &NFInstNode_CachedData_FUNCTION__desc, _functions, mmc_mk_boolean(1)((1) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_boolean(_special)((_special) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))));
4087#line 1202 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4088 omc_NFInstNode_InstNode_setFuncCache(threadData, _fn_node, tmpMeta[0]);
4089#line 4089 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4090 }
4091 _return: OMC_LABEL_UNUSED__attribute__((unused))
4092 return _functions;
4093}
4094
4095DLLExport
4096modelica_metatype omc_NFFunction_Function_typeRefCache(threadData_t *threadData, modelica_metatype _functionRef)
4097{
4098 modelica_metatype _functions = NULL((void*)0);
4099 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
4100 MMC_SO()mmc_check_stackoverflow(threadData);
4101 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4102 // _functions has no default value.
4103#line 4103 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4104 { /* match expression */
4105 modelica_metatype tmp3_1;
4106 tmp3_1 = _functionRef;
4107 {
4108 volatile mmc_switch_type tmp3;
4109 int tmp4;
4110 tmp3 = 0;
4111 for (; tmp3 < 2; tmp3++) {
4112 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4113 case 0: {
4114 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
4115
4116 /* Pattern matching succeeded */
4117#line 1175 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4118 tmpMeta[0] = omc_NFFunction_Function_typeNodeCache(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_functionRef), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_functionRef) -
3))) + (2)))))
));
4119#line 4119 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4120 goto tmp2_done;
4121 }
4122 case 1: {
4123
4124 /* Pattern matching succeeded */
4125#line 1178 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4126 omc_Error_assertion(threadData, 0, _OMC_LIT93((void*)((char*)(&(_OMC_LIT_STRUCT93).header) + 3)), _OMC_LIT94((void*)((char*)(&(_OMC_LIT_STRUCT94).header) + 3)));
4127#line 4127 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4128#line 1179 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4129 goto goto_1;
4130#line 4130 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4131 goto tmp2_done;
4132 }
4133 }
4134 goto tmp2_end;
4135 tmp2_end: ;
4136 }
4137 goto goto_1;
4138 goto_1:;
4139 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4140 goto tmp2_done;
4141 tmp2_done:;
4142 }
4143 }
4144 _functions = tmpMeta[0];
4145 _return: OMC_LABEL_UNUSED__attribute__((unused))
4146 return _functions;
4147}
4148
4149DLLExport
4150modelica_boolean omc_NFFunction_Function_isTyped(threadData_t *threadData, modelica_metatype _fn)
4151{
4152 modelica_boolean _isTyped;
4153 modelica_boolean tmp1 = 0;
4154 MMC_SO()mmc_check_stackoverflow(threadData);
4155 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4156 // _isTyped has no default value.
4157#line 4157 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4158 { /* match expression */
4159 modelica_metatype tmp4_1;
4160 tmp4_1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 8))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
8)))))
);
4161 {
4162 volatile mmc_switch_type tmp4;
4163 int tmp5;
4164 tmp4 = 0;
4165 for (; tmp4 < 2; tmp4++) {
4166 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4167 case 0: {
4168 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,10,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((10 +3) & 255) << 2)))
== 0) goto tmp3_end;
4169 /* Pattern matching succeeded */
4170#line 1163 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4171 tmp1 = 0;
4172#line 4172 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4173 goto tmp3_done;
4174 }
4175 case 1: {
4176
4177 /* Pattern matching succeeded */
4178#line 1164 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4179 tmp1 = 1;
4180#line 4180 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4181 goto tmp3_done;
4182 }
4183 }
4184 goto tmp3_end;
4185 tmp3_end: ;
4186 }
4187 goto goto_2;
4188 goto_2:;
4189 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4190 goto tmp3_done;
4191 tmp3_done:;
4192 }
4193 }
4194 _isTyped = tmp1;
4195 _return: OMC_LABEL_UNUSED__attribute__((unused))
4196 return _isTyped;
4197}
4198modelica_metatype boxptr_NFFunction_Function_isTyped(threadData_t *threadData, modelica_metatype _fn)
4199{
4200 modelica_boolean _isTyped;
4201 modelica_metatype out_isTyped;
4202 _isTyped = omc_NFFunction_Function_isTyped(threadData, _fn);
4203 out_isTyped = mmc_mk_icon(_isTyped);
4204 return out_isTyped;
4205}
4206
4207DLLExport
4208modelica_metatype omc_NFFunction_Function_matchFunctionsSilent(threadData_t *threadData, modelica_metatype _funcs, modelica_metatype _args, modelica_metatype _named_args, modelica_metatype _info, modelica_boolean _vectorize)
4209{
4210 modelica_metatype _matchedFunctions = NULL((void*)0);
4211 MMC_SO()mmc_check_stackoverflow(threadData);
4212 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4213 // _matchedFunctions has no default value.
4214#line 1153 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4215 omc_ErrorExt_setCheckpoint(threadData, _OMC_LIT95((void*)((char*)(&(_OMC_LIT_STRUCT95).header) + 3)));
4216#line 4216 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4217
4218#line 1154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4219 _matchedFunctions = omc_NFFunction_Function_matchFunctions(threadData, _funcs, _args, _named_args, _info, _vectorize);
4220#line 4220 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4221
4222#line 1155 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4223 omc_ErrorExt_rollBack(threadData, _OMC_LIT95((void*)((char*)(&(_OMC_LIT_STRUCT95).header) + 3)));
4224#line 4224 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4225 _return: OMC_LABEL_UNUSED__attribute__((unused))
4226 return _matchedFunctions;
4227}
4228modelica_metatype boxptr_NFFunction_Function_matchFunctionsSilent(threadData_t *threadData, modelica_metatype _funcs, modelica_metatype _args, modelica_metatype _named_args, modelica_metatype _info, modelica_metatype _vectorize)
4229{
4230 modelica_integer tmp1;
4231 modelica_metatype _matchedFunctions = NULL((void*)0);
4232 tmp1 = mmc_unbox_integer(_vectorize)(((mmc_sint_t) (_vectorize)) >> 1);
4233 _matchedFunctions = omc_NFFunction_Function_matchFunctionsSilent(threadData, _funcs, _args, _named_args, _info, tmp1);
4234 /* skip box _matchedFunctions; list<NFFunction.MatchedFunction> */
4235 return _matchedFunctions;
4236}
4237
4238DLLExport
4239modelica_metatype omc_NFFunction_Function_matchFunctions(threadData_t *threadData, modelica_metatype _funcs, modelica_metatype _args, modelica_metatype _named_args, modelica_metatype _info, modelica_boolean _vectorize)
4240{
4241 modelica_metatype _matchedFunctions = NULL((void*)0);
4242 modelica_metatype _m_args = NULL((void*)0);
4243 modelica_metatype _matchKind = NULL((void*)0);
4244 modelica_boolean _matched;
4245 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4246 MMC_SO()mmc_check_stackoverflow(threadData);
4247 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4248 // _matchedFunctions has no default value.
4249 // _m_args has no default value.
4250 // _matchKind has no default value.
4251 // _matched has no default value.
4252#line 1134 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4253 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4254#line 1134 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4255 _matchedFunctions = tmpMeta[0];
4256#line 4256 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4257
4258#line 1135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4259 {
4260#line 1135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4261 modelica_metatype _func;
4262#line 1135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4263 for (tmpMeta[0] = _funcs; !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)))))
)
4264#line 1135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4265 {
4266#line 1135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4267 _func = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4268#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4269 _m_args = omc_NFFunction_Function_matchFunction(threadData, _func, _args, _named_args, _info, _vectorize ,&_matchKind);
4270#line 4270 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4271
4272#line 1138 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4273 if(omc_NFFunction_FunctionMatchKind_isValid(threadData, _matchKind))
4274#line 1138 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4275 {
4276#line 1139 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4277 tmpMeta[2] = mmc_mk_box4(3, &NFFunction_MatchedFunction_MATCHED__FUNC__desc, _func, _m_args, _matchKind);
4278#line 1139 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4279 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _matchedFunctions);
4280#line 1139 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4281 _matchedFunctions = tmpMeta[1];
4282#line 4282 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4283 }
4284 }
4285 }
4286 _return: OMC_LABEL_UNUSED__attribute__((unused))
4287 return _matchedFunctions;
4288}
4289modelica_metatype boxptr_NFFunction_Function_matchFunctions(threadData_t *threadData, modelica_metatype _funcs, modelica_metatype _args, modelica_metatype _named_args, modelica_metatype _info, modelica_metatype _vectorize)
4290{
4291 modelica_integer tmp1;
4292 modelica_metatype _matchedFunctions = NULL((void*)0);
4293 tmp1 = mmc_unbox_integer(_vectorize)(((mmc_sint_t) (_vectorize)) >> 1);
4294 _matchedFunctions = omc_NFFunction_Function_matchFunctions(threadData, _funcs, _args, _named_args, _info, tmp1);
4295 /* skip box _matchedFunctions; list<NFFunction.MatchedFunction> */
4296 return _matchedFunctions;
4297}
4298
4299DLLExport
4300modelica_metatype omc_NFFunction_Function_matchFunction(threadData_t *threadData, modelica_metatype _func, modelica_metatype _args, modelica_metatype _named_args, modelica_metatype _info, modelica_boolean _vectorize, modelica_metatype *out_matchKind)
4301{
4302 modelica_metatype _out_args = NULL((void*)0);
4303 modelica_metatype _matchKind = NULL((void*)0);
4304 modelica_boolean _slot_matched;
4305 MMC_SO()mmc_check_stackoverflow(threadData);
4306 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4307 // _out_args has no default value.
4308 _matchKind = _OMC_LIT96((void*)((char*)(&(_OMC_LIT_STRUCT96).header) + 3));
4309 // _slot_matched has no default value.
4310#line 1115 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4311 _out_args = omc_NFFunction_Function_fillArgs(threadData, _args, _named_args, _func, _info ,&_slot_matched);
4312#line 4312 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4313
4314#line 1117 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4315 if(_slot_matched)
4316#line 1117 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4317 {
4318#line 1118 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4319 _out_args = omc_NFFunction_Function_matchArgs(threadData, _func, _out_args, _info, _vectorize ,&_matchKind);
4320#line 4320 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4321 }
4322 _return: OMC_LABEL_UNUSED__attribute__((unused))
4323 if (out_matchKind) { *out_matchKind = _matchKind; }
4324 return _out_args;
4325}
4326modelica_metatype boxptr_NFFunction_Function_matchFunction(threadData_t *threadData, modelica_metatype _func, modelica_metatype _args, modelica_metatype _named_args, modelica_metatype _info, modelica_metatype _vectorize, modelica_metatype *out_matchKind)
4327{
4328 modelica_integer tmp1;
4329 modelica_metatype _out_args = NULL((void*)0);
4330 tmp1 = mmc_unbox_integer(_vectorize)(((mmc_sint_t) (_vectorize)) >> 1);
4331 _out_args = omc_NFFunction_Function_matchFunction(threadData, _func, _args, _named_args, _info, tmp1, out_matchKind);
4332 /* skip box _out_args; list<tuple<NFExpression, NFType, #enumeration(CONSTANT, STRUCTURAL_PARAMETER, PARAMETER, NON_STRUCTURAL_PARAMETER, DISCRETE, IMPLICITLY_DISCRETE, CONTINUOUS)>> */
4333 /* skip box _matchKind; NFFunction.FunctionMatchKind */
4334 return _out_args;
4335}
4336
4337DLLExport
4338modelica_metatype omc_NFFunction_Function_fillUnknownVectorizedDims(threadData_t *threadData, modelica_metatype _dims, modelica_metatype _argExp)
4339{
4340 modelica_metatype _outDims = NULL((void*)0);
4341 modelica_integer _i;
4342 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
4343 MMC_SO()mmc_check_stackoverflow(threadData);
4344 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4345 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4346 _outDims = tmpMeta[0];
4347 _i = ((modelica_integer) 1);
4348#line 1092 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4349 {
4350#line 1092 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4351 modelica_metatype _dim;
4352#line 1092 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4353 for (tmpMeta[1] = _dims; !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)))))
)
4354#line 1092 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4355 {
4356#line 1092 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4357 _dim = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
4358#line 1093 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4359 if(omc_NFDimension_isUnknown(threadData, _dim))
4360#line 1093 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4361 {
4362#line 1094 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4363 tmpMeta[2] = mmc_mk_box2(3, &NFExpression_INTEGER__desc, mmc_mk_integermmc_mk_icon(_i));
4364#line 1094 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4365 tmpMeta[3] = mmc_mk_box3(16, &NFExpression_SIZE__desc, _argExp, mmc_mk_some(tmpMeta[2]));
4366#line 1094 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4367 tmpMeta[4] = mmc_mk_box3(8, &NFDimension_EXP__desc, tmpMeta[3], mmc_mk_integermmc_mk_icon(7));
4368#line 1094 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4369 _dim = tmpMeta[4];
4370#line 4370 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4371 }
4372
4373#line 1097 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4374 tmpMeta[2] = mmc_mk_cons(_dim, _outDims);
4375#line 1097 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4376 _outDims = tmpMeta[2];
4377#line 4377 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4378
4379#line 1098 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4380 _i = ((modelica_integer) 1) + _i;
4381#line 4381 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4382 }
4383 }
4384
4385#line 1101 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4386 _outDims = listReverseInPlace(_outDims);
4387#line 4387 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4388 _return: OMC_LABEL_UNUSED__attribute__((unused))
4389 return _outDims;
4390}
4391
4392DLLExport
4393modelica_metatype omc_NFFunction_Function_matchArgVectorized(threadData_t *threadData, modelica_metatype _D_24in_argExp, modelica_metatype _D_24in_argTy, modelica_metatype _inputTy, modelica_metatype _D_24in_vectArg, modelica_metatype _D_24in_vectDims, modelica_metatype _info, modelica_metatype *out_argTy, modelica_metatype *out_vectArg, modelica_metatype *out_vectDims, modelica_integer *out_matchKind)
4394{
4395 modelica_metatype _argExp = NULL((void*)0);
4396 modelica_metatype _argTy = NULL((void*)0);
4397 modelica_metatype _vectArg = NULL((void*)0);
4398 modelica_metatype _vectDims = NULL((void*)0);
4399 modelica_integer _matchKind;
4400 modelica_metatype _arg_dims = NULL((void*)0);
4401 modelica_metatype _input_dims = NULL((void*)0);
4402 modelica_metatype _vect_dims = NULL((void*)0);
4403 modelica_metatype _rest_dims = NULL((void*)0);
4404 modelica_metatype _rest_ty = NULL((void*)0);
4405 modelica_integer _mk;
4406 modelica_integer _vect_dims_count;
4407 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
4408 MMC_SO()mmc_check_stackoverflow(threadData);
4409 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4410 _argExp = _D_24in_argExp;
4411 _argTy = _D_24in_argTy;
4412 _vectArg = _D_24in_vectArg;
4413 _vectDims = _D_24in_vectDims;
4414 // _matchKind has no default value.
4415 // _arg_dims has no default value.
4416 // _input_dims has no default value.
4417 // _vect_dims has no default value.
4418 // _rest_dims has no default value.
4419 // _rest_ty has no default value.
4420 // _mk has no default value.
4421 // _vect_dims_count has no default value.
4422#line 1054 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4423 _arg_dims = omc_NFType_arrayDims(threadData, _argTy);
4424#line 4424 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4425
4426#line 1055 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4427 _input_dims = omc_NFType_arrayDims(threadData, _inputTy);
4428#line 4428 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4429
4430#line 1056 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4431 _vect_dims_count = listLength(_arg_dims) - listLength(_input_dims);
4432#line 4432 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4433
4434#line 1059 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4435 if((_vect_dims_count < ((modelica_integer) 1)))
4436#line 1059 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4437 {
4438#line 1060 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4439 _matchKind = 7;
4440#line 4440 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4441
4442#line 1061 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4443 goto _return;
4444#line 4444 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4445 }
4446
4447#line 1064 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4448 _vect_dims = omc_List_split(threadData, _arg_dims, _vect_dims_count ,&_rest_dims);
4449#line 4449 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4450
4451#line 1067 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4452 if(listEmpty(_vectDims)((*(mmc_uint_t*)((void*)((char*)(_vectDims) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
)
4453#line 1067 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4454 {
4455#line 1068 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4456 _vectDims = omc_NFFunction_Function_fillUnknownVectorizedDims(threadData, _vect_dims, _argExp);
4457#line 4457 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4458
4459#line 1069 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4460 _vectArg = _argExp;
4461#line 4461 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4462 }
4463 else
4464 {
4465 if((!omc_List_isEqualOnTrue(threadData, _vectDims, _vect_dims, boxvar_NFDimension_isEqual((void*)((char*)(&(boxvar_lit_NFDimension_isEqual).header
) + 3))
)))
4466 {
4467#line 1071 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4468 tmpMeta[0] = mmc_mk_cons(_OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)), mmc_mk_cons(omc_NFExpression_toString(threadData, _vectArg), mmc_mk_cons(_OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)), mmc_mk_cons(omc_NFExpression_toString(threadData, _argExp), mmc_mk_cons(omc_NFDimension_toStringList(threadData, _vectDims), mmc_mk_cons(omc_NFDimension_toStringList(threadData, _vect_dims), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))))))));
4469#line 1071 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4470 omc_Error_addSourceMessage(threadData, _OMC_LIT99((void*)((char*)(&(_OMC_LIT_STRUCT99).header) + 3)), tmpMeta[0], _info);
4471#line 4471 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4472 }
4473 }
4474
4475#line 1078 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4476 _rest_ty = omc_NFType_liftArrayLeftList(threadData, omc_NFType_arrayElementType(threadData, _argTy), _rest_dims);
4477#line 4477 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4478
4479#line 1079 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4480 _argExp = omc_NFTypeCheck_matchTypes(threadData, _rest_ty, _inputTy, _argExp, 0 ,&_argTy ,&_matchKind);
4481#line 4481 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4482 _return: OMC_LABEL_UNUSED__attribute__((unused))
4483 if (out_argTy) { *out_argTy = _argTy; }
4484 if (out_vectArg) { *out_vectArg = _vectArg; }
4485 if (out_vectDims) { *out_vectDims = _vectDims; }
4486 if (out_matchKind) { *out_matchKind = _matchKind; }
4487 return _argExp;
4488}
4489modelica_metatype boxptr_NFFunction_Function_matchArgVectorized(threadData_t *threadData, modelica_metatype _D_24in_argExp, modelica_metatype _D_24in_argTy, modelica_metatype _inputTy, modelica_metatype _D_24in_vectArg, modelica_metatype _D_24in_vectDims, modelica_metatype _info, modelica_metatype *out_argTy, modelica_metatype *out_vectArg, modelica_metatype *out_vectDims, modelica_metatype *out_matchKind)
4490{
4491 modelica_integer _matchKind;
4492 modelica_metatype _argExp = NULL((void*)0);
4493 _argExp = omc_NFFunction_Function_matchArgVectorized(threadData, _D_24in_argExp, _D_24in_argTy, _inputTy, _D_24in_vectArg, _D_24in_vectDims, _info, out_argTy, out_vectArg, out_vectDims, &_matchKind);
4494 /* skip box _argExp; NFExpression */
4495 /* skip box _argTy; NFType */
4496 /* skip box _vectArg; NFExpression */
4497 /* skip box _vectDims; list<NFDimension> */
4498 if (out_matchKind) { *out_matchKind = mmc_mk_icon(_matchKind); }
4499 return _argExp;
4500}
4501
4502DLLExport
4503modelica_metatype omc_NFFunction_Function_matchArgs(threadData_t *threadData, modelica_metatype _func, modelica_metatype _D_24in_args, modelica_metatype _info, modelica_boolean _vectorize, modelica_metatype *out_funcMatchKind)
4504{
4505 modelica_metatype _args = NULL((void*)0);
4506 modelica_metatype _funcMatchKind = NULL((void*)0);
4507 modelica_metatype _comp = NULL((void*)0);
4508 modelica_metatype _inputs = NULL((void*)0);
4509 modelica_metatype _input_node = NULL((void*)0);
4510 modelica_integer _arg_idx;
4511 modelica_metatype _checked_args = NULL((void*)0);
4512 modelica_metatype _arg_exp = NULL((void*)0);
4513 modelica_metatype _arg_ty = NULL((void*)0);
4514 modelica_metatype _input_ty = NULL((void*)0);
4515 modelica_metatype _ty = NULL((void*)0);
4516 modelica_integer _arg_var;
4517 modelica_integer _mk;
4518 modelica_metatype _vect_arg = NULL((void*)0);
4519 modelica_metatype _vect_dims = NULL((void*)0);
4520 modelica_boolean _matched;
4521 modelica_metatype _vectorized_args = NULL((void*)0);
4522 modelica_integer tmp1;
4523 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
4524 MMC_SO()mmc_check_stackoverflow(threadData);
4525 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4526 _args = _D_24in_args;
4527 _funcMatchKind = _OMC_LIT100((void*)((char*)(&(_OMC_LIT_STRUCT100).header) + 3));
4528 // _comp has no default value.
4529 _inputs = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(4)))))
);
4530 // _input_node has no default value.
4531 _arg_idx = ((modelica_integer) 1);
4532 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4533 _checked_args = tmpMeta[0];
4534 // _arg_exp has no default value.
4535 // _arg_ty has no default value.
4536 // _input_ty has no default value.
4537 // _ty has no default value.
4538 // _arg_var has no default value.
4539 // _mk has no default value.
4540 _vect_arg = _OMC_LIT101((void*)((char*)(&(_OMC_LIT_STRUCT101).header) + 3));
4541 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4542 _vect_dims = tmpMeta[1];
4543 // _matched has no default value.
4544 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4545 _vectorized_args = tmpMeta[2];
4546#line 983 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4547 {
4548#line 983 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4549 modelica_metatype _arg;
4550#line 983 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4551 for (tmpMeta[3] = _args; !listEmpty(tmpMeta[3])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[3]=MMC_CDR(tmpMeta[3])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
)
4552#line 983 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4553 {
4554#line 983 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4555 _arg = MMC_CAR(tmpMeta[3])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (1)))))
;
4556#line 984 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4557 /* Pattern-matching assignment */
4558#line 984 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4559 tmpMeta[4] = _arg;
4560#line 984 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4561 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
4562#line 984 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4563 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
4564#line 984 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4565 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (3)))))
;
4566#line 984 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4567 tmp1 = mmc_unbox_integer(tmpMeta[7])(((mmc_sint_t) (tmpMeta[7])) >> 1);
4568#line 984 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4569 _arg_exp = tmpMeta[5];
4570#line 984 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4571 _arg_ty = tmpMeta[6];
4572#line 984 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4573 _arg_var = tmp1 /* pattern as ty=enumeration(CONSTANT, STRUCTURAL_PARAMETER, PARAMETER, NON_STRUCTURAL_PARAMETER, DISCRETE, IMPLICITLY_DISCRETE, CONTINUOUS) */;
4574#line 4574 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4575
4576#line 986 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4577 /* Pattern-matching assignment */
4578#line 986 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4579 tmpMeta[4] = _inputs;
4580#line 986 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4581 if (listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4582#line 986 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4583 tmpMeta[5] = MMC_CAR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
4584#line 986 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4585 tmpMeta[6] = MMC_CDR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
4586#line 986 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4587 _input_node = tmpMeta[5];
4588#line 986 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4589 _inputs = tmpMeta[6];
4590#line 4590 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4591
4592#line 987 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4593 _comp = omc_NFInstNode_InstNode_component(threadData, _input_node);
4594#line 4594 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4595
4596#line 990 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4597 if(((modelica_integer)_arg_var > omc_NFComponent_Component_variability(threadData, _comp)))
4598#line 990 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4599 {
4600#line 991 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4601 tmpMeta[4] = mmc_mk_cons(omc_NFInstNode_InstNode_name(threadData, _input_node), mmc_mk_cons(omc_NFExpression_toString(threadData, _arg_exp), mmc_mk_cons(omc_AbsynUtil_pathString(threadData, omc_NFFunction_Function_name(threadData, _func), _OMC_LIT86((void*)((char*)(&(_OMC_LIT_STRUCT86).header) + 3)), 1, 0), mmc_mk_cons(omc_NFPrefixes_variabilityString(threadData, (modelica_integer)_arg_var), mmc_mk_cons(omc_NFPrefixes_variabilityString(threadData, omc_NFComponent_Component_variability(threadData, _comp)), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)))))));
4602#line 991 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4603 omc_Error_addSourceMessage(threadData, _OMC_LIT104((void*)((char*)(&(_OMC_LIT_STRUCT104).header) + 3)), tmpMeta[4], _info);
4604#line 4604 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4605
4606#line 995 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4607 _funcMatchKind = _OMC_LIT96((void*)((char*)(&(_OMC_LIT_STRUCT96).header) + 3));
4608#line 4608 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4609
4610#line 996 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4611 goto _return;
4612#line 4612 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4613 }
4614
4615#line 1000 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4616 _input_ty = omc_NFComponent_Component_getType(threadData, _comp);
4617#line 4617 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4618
4619#line 1001 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4620 _arg_exp = omc_NFTypeCheck_matchTypes(threadData, _arg_ty, _input_ty, _arg_exp, 1 ,&_ty ,&_mk);
4621#line 4621 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4622
4623#line 1002 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4624 _matched = omc_NFTypeCheck_isValidArgumentMatch(threadData, (modelica_integer)_mk);
4625#line 4625 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4626
4627#line 1004 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4628 if(((!_matched) && _vectorize))
4629#line 1004 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4630 {
4631#line 1006 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4632 _arg_exp = omc_NFFunction_Function_matchArgVectorized(threadData, _arg_exp, _arg_ty, _input_ty, _vect_arg, _vect_dims, _info ,&_ty ,&_vect_arg ,&_vect_dims ,&_mk);
4633#line 4633 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4634
4635#line 1008 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4636 tmpMeta[4] = mmc_mk_cons(mmc_mk_integermmc_mk_icon(_arg_idx), _vectorized_args);
4637#line 1008 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4638 _vectorized_args = tmpMeta[4];
4639#line 4639 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4640
4641#line 1009 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4642 _matched = omc_NFTypeCheck_isValidArgumentMatch(threadData, (modelica_integer)_mk);
4643#line 4643 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4644 }
4645
4646#line 1012 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4647 if((!_matched))
4648#line 1012 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4649 {
4650#line 1014 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4651 tmpMeta[4] = mmc_mk_cons(intString(_arg_idx), mmc_mk_cons(omc_AbsynUtil_pathString(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_func), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_func) - 3))) +
(2)))))
), _OMC_LIT86((void*)((char*)(&(_OMC_LIT_STRUCT86).header) + 3)), 1, 0), mmc_mk_cons(omc_NFInstNode_InstNode_name(threadData, _input_node), mmc_mk_cons(omc_NFExpression_toString(threadData, _arg_exp), mmc_mk_cons(omc_NFType_toString(threadData, _arg_ty), mmc_mk_cons(omc_NFType_toString(threadData, _input_ty), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))))))));
4652#line 1014 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4653 omc_Error_addSourceMessage(threadData, _OMC_LIT107((void*)((char*)(&(_OMC_LIT_STRUCT107).header) + 3)), tmpMeta[4], _info);
4654#line 4654 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4655
4656#line 1017 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4657 _funcMatchKind = _OMC_LIT96((void*)((char*)(&(_OMC_LIT_STRUCT96).header) + 3));
4658#line 4658 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4659
4660#line 1018 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4661 goto _return;
4662#line 4662 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4663 }
4664
4665#line 1023 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4666 if(omc_NFTypeCheck_isCastMatch(threadData, (modelica_integer)_mk))
4667#line 1023 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4668 {
4669#line 1024 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4670 _funcMatchKind = _OMC_LIT109((void*)((char*)(&(_OMC_LIT_STRUCT109).header) + 3));
4671#line 4671 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4672 }
4673 else
4674 {
4675 if(omc_NFTypeCheck_isGenericMatch(threadData, (modelica_integer)_mk))
4676 {
4677#line 1026 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4678 _funcMatchKind = _OMC_LIT108((void*)((char*)(&(_OMC_LIT_STRUCT108).header) + 3));
4679#line 4679 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4680 }
4681 }
4682
4683#line 1029 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4684 tmpMeta[5] = mmc_mk_box3(0, _arg_exp, _ty, mmc_mk_integermmc_mk_icon((modelica_integer)_arg_var));
4685#line 1029 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4686 tmpMeta[4] = mmc_mk_cons(tmpMeta[5], _checked_args);
4687#line 1029 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4688 _checked_args = tmpMeta[4];
4689#line 4689 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4690
4691#line 1030 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4692 _arg_idx = ((modelica_integer) 1) + _arg_idx;
4693#line 4693 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4694 }
4695 }
4696
4697#line 1033 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4698 if((!listEmpty(_vectorized_args)((*(mmc_uint_t*)((void*)((char*)(_vectorized_args) - 3))) == (
((0) << 10) + (((0) & 255) << 2)))
))
4699#line 1033 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4700 {
4701#line 1034 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4702 tmpMeta[3] = mmc_mk_box4(6, &NFFunction_FunctionMatchKind_VECTORIZED__desc, _vect_dims, listReverse(_vectorized_args), _funcMatchKind);
4703#line 1034 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4704 _funcMatchKind = tmpMeta[3];
4705#line 4705 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4706 }
4707
4708#line 1037 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4709 _args = listReverse(_checked_args);
4710#line 4710 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4711 _return: OMC_LABEL_UNUSED__attribute__((unused))
4712 if (out_funcMatchKind) { *out_funcMatchKind = _funcMatchKind; }
4713 return _args;
4714}
4715modelica_metatype boxptr_NFFunction_Function_matchArgs(threadData_t *threadData, modelica_metatype _func, modelica_metatype _D_24in_args, modelica_metatype _info, modelica_metatype _vectorize, modelica_metatype *out_funcMatchKind)
4716{
4717 modelica_integer tmp1;
4718 modelica_metatype _args = NULL((void*)0);
4719 tmp1 = mmc_unbox_integer(_vectorize)(((mmc_sint_t) (_vectorize)) >> 1);
4720 _args = omc_NFFunction_Function_matchArgs(threadData, _func, _D_24in_args, _info, tmp1, out_funcMatchKind);
4721 /* skip box _args; list<tuple<NFExpression, NFType, #enumeration(CONSTANT, STRUCTURAL_PARAMETER, PARAMETER, NON_STRUCTURAL_PARAMETER, DISCRETE, IMPLICITLY_DISCRETE, CONTINUOUS)>> */
4722 /* skip box _funcMatchKind; NFFunction.FunctionMatchKind */
4723 return _args;
4724}
4725
4726DLLExport
4727modelica_metatype omc_NFFunction_Function_lookupSlotInArray(threadData_t *threadData, modelica_string _slotName, modelica_metatype _slots)
4728{
4729 modelica_metatype _outSlot = NULL((void*)0);
4730 modelica_metatype _slot = NULL((void*)0);
4731 MMC_SO()mmc_check_stackoverflow(threadData);
4732 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4733 // _outSlot has no default value.
4734 // _slot has no default value.
4735#line 4735 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4736 { /* matchcontinue expression */
4737 {
4738 volatile mmc_switch_type tmp3;
4739 int tmp4;
4740 tmp3 = 0;
4741 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) {
4742 tmp2_top:
4743 threadData->mmc_jumper = &new_mmc_jumper;
4744 for (; tmp3 < 2; tmp3++) {
4745 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4746 case 0: {
4747 /* Pattern matching succeeded */
4748#line 955 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4749 _slot = omc_Array_getMemberOnTrue(threadData, _slotName, _slots, boxvar_NFFunction_Slot_hasName((void*)((char*)(&(boxvar_lit_NFFunction_Slot_hasName).header
) + 3))
, NULL((void*)0));
4750#line 4750 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4751
4752#line 956 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4753 _outSlot = mmc_mk_some(_slot);
4754#line 4754 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4755#line 4755 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4756 goto tmp2_done;
4757 }
4758 case 1: {
4759 /* Pattern matching succeeded */
4760#line 958 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4761 _outSlot = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
4762#line 4762 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4763#line 4763 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4764 goto tmp2_done;
4765 }
4766 }
4767 goto tmp2_end;
4768 tmp2_end: ;
4769 }
4770 goto goto_1;
4771 tmp2_done:
4772 (void)tmp3;
4773 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4774 goto tmp2_done2;
4775 goto_1:;
4776 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4777 if (++tmp3 < 2) {
4778 goto tmp2_top;
4779 }
4780 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4781 tmp2_done2:;
4782 }
4783 }
4784 ;
4785 _return: OMC_LABEL_UNUSED__attribute__((unused))
4786 return _outSlot;
4787}
4788
4789DLLExport
4790modelica_metatype omc_NFFunction_Function_evaluateSlotExp__traverser(threadData_t *threadData, modelica_metatype _exp, modelica_metatype _slots, modelica_metatype _info)
4791{
4792 modelica_metatype _outExp = NULL((void*)0);
4793 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4794 MMC_SO()mmc_check_stackoverflow(threadData);
4795 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4796 // _outExp has no default value.
4797#line 4797 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4798 { /* match expression */
4799 modelica_metatype tmp3_1;
4800 tmp3_1 = _exp;
4801 {
4802 modelica_metatype _cref = NULL((void*)0);
4803 modelica_metatype _slot = NULL((void*)0);
4804 volatile mmc_switch_type tmp3;
4805 int tmp4;
4806 // _cref has no default value.
4807 // _slot has no default value.
4808 tmp3 = 0;
4809 for (; tmp3 < 2; tmp3++) {
4810 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4811 case 0: {
4812 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,5,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
4813 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
4814 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;
4815 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
4816 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((0 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
4817 _cref = tmpMeta[1];
4818 /* Pattern matching succeeded */
4819#line 939 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4820 _slot = omc_NFFunction_Function_lookupSlotInArray(threadData, omc_NFComponentRef_firstName(threadData, _cref), _slots);
4821#line 4821 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4822#line 940 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4823 tmpMeta[0] = (isSome(_slot)(0==((((((*(mmc_uint_t*)((void*)((char*)(_slot) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(_slot) - 3)
))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(_slot
) - 3)))) >> 10)) ? 0 : 1)
?omc_Util_tuple31(threadData, omc_NFFunction_Function_fillDefaultSlot(threadData, omc_Util_getOption(threadData, _slot), _slots, _info)):_exp);
4824#line 4824 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4825 goto tmp2_done;
4826 }
4827 case 1: {
4828
4829 /* Pattern matching succeeded */
4830#line 943 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4831 tmpMeta[0] = _exp;
4832#line 4832 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4833 goto tmp2_done;
4834 }
4835 }
4836 goto tmp2_end;
4837 tmp2_end: ;
4838 }
4839 goto goto_1;
4840 goto_1:;
4841 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4842 goto tmp2_done;
4843 tmp2_done:;
4844 }
4845 }
4846 _outExp = tmpMeta[0];
4847 _return: OMC_LABEL_UNUSED__attribute__((unused))
4848 return _outExp;
4849}
4850
4851static modelica_metatype closure3_NFFunction_Function_evaluateSlotExp__traverser(threadData_t *thData, modelica_metatype closure, modelica_metatype exp)
4852{
4853 modelica_metatype slots = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
4854 modelica_metatype info = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),2))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (2)))))
;
4855 return boxptr_NFFunction_Function_evaluateSlotExp__traverseromc_NFFunction_Function_evaluateSlotExp__traverser(thData, exp, slots, info);
4856}
4857DLLExport
4858modelica_metatype omc_NFFunction_Function_evaluateSlotExp(threadData_t *threadData, modelica_metatype _exp, modelica_metatype _slots, modelica_metatype _info)
4859{
4860 modelica_metatype _outExp = NULL((void*)0);
4861 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
4862 MMC_SO()mmc_check_stackoverflow(threadData);
4863 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4864 // _outExp has no default value.
4865#line 922 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4866 tmpMeta[0] = mmc_mk_box2(0, _slots, _info);
4867#line 922 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4868 _outExp = omc_NFExpression_map(threadData, _exp, (modelica_fnptr) mmc_mk_box2(0,closure3_NFFunction_Function_evaluateSlotExp__traverser,tmpMeta[0]));
4869#line 4869 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4870 _return: OMC_LABEL_UNUSED__attribute__((unused))
4871 return _outExp;
4872}
4873
4874DLLExport
4875modelica_metatype omc_NFFunction_Function_fillDefaultSlot2(threadData_t *threadData, modelica_metatype _slot, modelica_metatype _slots, modelica_metatype _info)
4876{
4877 modelica_metatype _outArg = NULL((void*)0);
4878 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4879 MMC_SO()mmc_check_stackoverflow(threadData);
4880 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4881 // _outArg has no default value.
4882#line 4882 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4883 { /* match expression */
4884 modelica_metatype tmp3_1;
4885 tmp3_1 = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_slot), 7))(*(void**)(((void*)((void**)(((void*)((char*)(_slot) - 3))) +
(7)))))
);
4886 {
4887 modelica_metatype _exp = NULL((void*)0);
4888 volatile mmc_switch_type tmp3;
4889 int tmp4;
4890 // _exp has no default value.
4891 tmp3 = 0;
4892 for (; tmp3 < 3; tmp3++) {
4893 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4894 case 0: {
4895 modelica_integer tmp5;
4896 tmp5 = mmc_unbox_integer(tmp3_1)(((mmc_sint_t) (tmp3_1)) >> 1);
4897 if (3 != tmp5) goto tmp2_end;
4898 /* Pattern matching succeeded */
4899#line 889 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4900 tmpMeta[0] = omc_Util_getOption(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_slot), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_slot) - 3))) +
(5)))))
));
4901#line 4901 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4902 goto tmp2_done;
4903 }
4904 case 1: {
4905 modelica_integer tmp6;
4906 tmp6 = mmc_unbox_integer(tmp3_1)(((mmc_sint_t) (tmp3_1)) >> 1);
4907 if (2 != tmp6) goto tmp2_end;
4908 /* Pattern matching succeeded */
4909#line 894 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4910 tmpMeta[1] = mmc_mk_cons((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_slot), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_slot) - 3))) +
(2)))))
), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
4911#line 894 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4912 omc_Error_addSourceMessage(threadData, _OMC_LIT113((void*)((char*)(&(_OMC_LIT_STRUCT113).header) + 3)), tmpMeta[1], _info);
4913#line 4913 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4914#line 895 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4915 goto goto_1;
4916#line 4916 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4917 goto tmp2_done;
4918 }
4919 case 2: {
4920 modelica_integer tmp7;
4921 tmp7 = mmc_unbox_integer(tmp3_1)(((mmc_sint_t) (tmp3_1)) >> 1);
4922 if (1 != tmp7) goto tmp2_end;
4923 /* Pattern matching succeeded */
4924#line 901 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4925 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(8))((void*)((char*)(mmc_alloc_words(8)) + 3));
4926#line 901 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4927 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_slot)((void*)((char*)(_slot) - 3)), 8*sizeof(modelica_metatype));
4928#line 901 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4929 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[7] = mmc_mk_integermmc_mk_icon(2);
4930#line 901 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4931 _slot = tmpMeta[1];
4932#line 4932 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4933
4934#line 902 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4935 arrayUpdate(_slots, mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_slot), 6)))), _slot)boxptr_arrayUpdate(threadData,_slots,mmc_mk_icon((((mmc_sint_t
) (((*(void**)(((void*)((void**)(((void*)((char*)(_slot) - 3)
)) + (6)))))))) >> 1)),_slot)
;
4936#line 4936 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4937
4938#line 904 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4939 _exp = omc_NFFunction_Function_evaluateSlotExp(threadData, omc_Util_getOption(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_slot), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_slot) - 3))) +
(4)))))
)), _slots, _info);
4940#line 4940 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4941
4942#line 905 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4943 tmpMeta[1] = mmc_mk_box3(0, _exp, omc_NFExpression_typeOf(threadData, _exp), mmc_mk_integermmc_mk_icon(omc_NFExpression_variability(threadData, _exp)));
4944#line 905 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4945 _outArg = tmpMeta[1];
4946#line 4946 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4947
4948#line 907 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4949 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(8))((void*)((char*)(mmc_alloc_words(8)) + 3));
4950#line 907 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4951 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_slot)((void*)((char*)(_slot) - 3)), 8*sizeof(modelica_metatype));
4952#line 907 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4953 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[5] = mmc_mk_some(_outArg);
4954#line 907 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4955 _slot = tmpMeta[1];
4956#line 4956 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4957
4958#line 908 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4959 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(8))((void*)((char*)(mmc_alloc_words(8)) + 3));
4960#line 908 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4961 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_slot)((void*)((char*)(_slot) - 3)), 8*sizeof(modelica_metatype));
4962#line 908 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4963 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[7] = mmc_mk_integermmc_mk_icon(3);
4964#line 908 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4965 _slot = tmpMeta[1];
4966#line 4966 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4967
4968#line 909 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4969 arrayUpdate(_slots, mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_slot), 6)))), _slot)boxptr_arrayUpdate(threadData,_slots,mmc_mk_icon((((mmc_sint_t
) (((*(void**)(((void*)((void**)(((void*)((char*)(_slot) - 3)
)) + (6)))))))) >> 1)),_slot)
;
4970#line 4970 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4971#line 910 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
4972 tmpMeta[0] = _outArg;
4973#line 4973 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
4974 goto tmp2_done;
4975 }
4976 }
4977 goto tmp2_end;
4978 tmp2_end: ;
4979 }
4980 goto goto_1;
4981 goto_1:;
4982 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4983 goto tmp2_done;
4984 tmp2_done:;
4985 }
4986 }
4987 _outArg = tmpMeta[0];
4988 _return: OMC_LABEL_UNUSED__attribute__((unused))
4989 return _outArg;
4990}
4991
4992DLLExport
4993modelica_metatype omc_NFFunction_Function_fillDefaultSlot(threadData_t *threadData, modelica_metatype _slot, modelica_metatype _slots, modelica_metatype _info)
4994{
4995 modelica_metatype _outArg = NULL((void*)0);
4996 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4997 MMC_SO()mmc_check_stackoverflow(threadData);
4998 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4999 // _outArg has no default value.
5000#line 5000 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5001 { /* match expression */
5002 modelica_metatype tmp3_1;
5003 tmp3_1 = _slot;
5004 {
5005 volatile mmc_switch_type tmp3;
5006 int tmp4;
5007 tmp3 = 0;
5008 for (; tmp3 < 3; tmp3++) {
5009 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5010 case 0: {
5011 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,6)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((6 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5012 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
5013 if (optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
5014 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
5015
5016 _outArg = tmpMeta[2];
5017 /* Pattern matching succeeded */
5018#line 861 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5019 tmpMeta[0] = _outArg;
5020#line 5020 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5021 goto tmp2_done;
5022 }
5023 case 1: {
5024 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,6)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((6 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5025 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
5026 if (optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
5027 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
5028
5029 /* Pattern matching succeeded */
5030#line 865 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5031 tmpMeta[0] = omc_NFFunction_Function_fillDefaultSlot2(threadData, _slot, _slots, _info);
5032#line 5032 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5033 goto tmp2_done;
5034 }
5035 case 2: {
5036
5037 /* Pattern matching succeeded */
5038#line 870 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5039 tmpMeta[1] = mmc_mk_cons((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_slot), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_slot) - 3))) +
(2)))))
), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
5040#line 870 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5041 omc_Error_addSourceMessage(threadData, _OMC_LIT116((void*)((char*)(&(_OMC_LIT_STRUCT116).header) + 3)), tmpMeta[1], _info);
5042#line 5042 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5043#line 871 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5044 goto goto_1;
5045#line 5045 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5046 goto tmp2_done;
5047 }
5048 }
5049 goto tmp2_end;
5050 tmp2_end: ;
5051 }
5052 goto goto_1;
5053 goto_1:;
5054 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5055 goto tmp2_done;
5056 tmp2_done:;
5057 }
5058 }
5059 _outArg = tmpMeta[0];
5060 _return: OMC_LABEL_UNUSED__attribute__((unused))
5061 return _outArg;
5062}
5063
5064DLLExport
5065modelica_metatype omc_NFFunction_Function_collectArgs(threadData_t *threadData, modelica_metatype _slots, modelica_metatype _info, modelica_boolean *out_matching)
5066{
5067 modelica_metatype _args = NULL((void*)0);
5068 modelica_boolean _matching;
5069 modelica_metatype _default = NULL((void*)0);
5070 modelica_metatype _e = NULL((void*)0);
5071 modelica_metatype _arg = NULL((void*)0);
5072 modelica_metatype _a = NULL((void*)0);
5073 modelica_string _name = NULL((void*)0);
5074 modelica_integer tmp5;
5075 modelica_integer tmp6;
5076 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
5077 MMC_SO()mmc_check_stackoverflow(threadData);
5078 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5079 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
5080 _args = tmpMeta[0];
5081 _matching = 1;
5082 // _default has no default value.
5083 // _e has no default value.
5084 // _arg has no default value.
5085 // _a has no default value.
5086 // _name has no default value.
5087#line 832 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5088 {
5089#line 832 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5090 modelica_metatype _s;
5091#line 832 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5092 for (tmpMeta[1] = _slots, tmp6 = arrayLength(tmpMeta[1]), tmp5 = 1; tmp5 <= tmp6; tmp5++)
5093#line 832 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5094 {
5095#line 832 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5096 _s = arrayGet(tmpMeta[1],tmp5)nobox_arrayGet(threadData,tmpMeta[1],tmp5);
5097#line 833 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5098 /* Pattern-matching assignment */
5099#line 833 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5100 tmpMeta[2] = _s;
5101#line 833 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5102 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,6)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((6 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5103#line 833 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5104 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
5105#line 833 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5106 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (4)))))
;
5107#line 833 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5108 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (5)))))
;
5109#line 833 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5110 _name = tmpMeta[3];
5111#line 833 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5112 _default = tmpMeta[4];
Value stored to '_default' is never read
5113#line 833 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5114 _arg = tmpMeta[5];
5115#line 5115 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5116
5117#line 5117 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5118 { /* matchcontinue expression */
5119 volatile modelica_metatype tmp3_1;
5120 tmp3_1 = _arg;
5121 {
5122 volatile mmc_switch_type tmp3;
5123 int tmp4;
5124 tmp3 = 0;
5125 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) {
5126 tmp2_top:
5127 threadData->mmc_jumper = &new_mmc_jumper;
5128 for (; tmp3 < 3; tmp3++) {
5129 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5130 case 0: {
5131 if (optionNone(tmp3_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
5132 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
5133 _a = tmpMeta[3];
5134 /* Pattern matching succeeded */
5135#line 837 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5136 tmpMeta[3] = mmc_mk_cons(_a, _args);
5137#line 837 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5138 tmpMeta[2] = tmpMeta[3];
5139#line 5139 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5140 goto tmp2_done;
5141 }
5142 case 1: {
5143
5144 /* Pattern matching succeeded */
5145#line 840 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5146 tmpMeta[3] = mmc_mk_cons(omc_NFFunction_Function_fillDefaultSlot(threadData, _s, _slots, _info), _args);
5147#line 840 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5148 tmpMeta[2] = tmpMeta[3];
5149#line 5149 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5150 goto tmp2_done;
5151 }
5152 case 2: {
5153
5154 /* Pattern matching succeeded */
5155#line 844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5156 _matching = 0;
5157#line 5157 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5158#line 845 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5159 tmpMeta[2] = _args;
5160#line 5160 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5161 goto tmp2_done;
5162 }
5163 }
5164 goto tmp2_end;
5165 tmp2_end: ;
5166 }
5167 goto goto_1;
5168 tmp2_done:
5169 (void)tmp3;
5170 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
5171 goto tmp2_done2;
5172 goto_1:;
5173 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
5174 if (++tmp3 < 3) {
5175 goto tmp2_top;
5176 }
5177 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5178 tmp2_done2:;
5179 }
5180 }
5181 _args = tmpMeta[2];
5182 }
5183 }
5184
5185#line 850 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5186 _args = listReverse(_args);
5187#line 5187 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5188 _return: OMC_LABEL_UNUSED__attribute__((unused))
5189 if (out_matching) { *out_matching = _matching; }
5190 return _args;
5191}
5192modelica_metatype boxptr_NFFunction_Function_collectArgs(threadData_t *threadData, modelica_metatype _slots, modelica_metatype _info, modelica_metatype *out_matching)
5193{
5194 modelica_boolean _matching;
5195 modelica_metatype _args = NULL((void*)0);
5196 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
5197 _args = omc_NFFunction_Function_collectArgs(threadData, _slots, _info, &_matching);
5198 /* skip box _args; list<tuple<NFExpression, NFType, #enumeration(CONSTANT, STRUCTURAL_PARAMETER, PARAMETER, NON_STRUCTURAL_PARAMETER, DISCRETE, IMPLICITLY_DISCRETE, CONTINUOUS)>> */
5199 if (out_matching) { *out_matching = mmc_mk_icon(_matching); }
5200 return _args;
5201}
5202
5203DLLExport
5204modelica_metatype omc_NFFunction_Function_fillNamedArg(threadData_t *threadData, modelica_metatype _inArg, modelica_metatype _D_24in_slots, modelica_metatype _fn, modelica_metatype _info, modelica_boolean *out_matching)
5205{
5206 modelica_metatype _slots = NULL((void*)0);
5207 modelica_boolean _matching;
5208 modelica_metatype _s = NULL((void*)0);
5209 modelica_string _argName = NULL((void*)0);
5210 modelica_metatype _ty = NULL((void*)0);
5211 modelica_metatype _argExp = NULL((void*)0);
5212 modelica_integer _var;
5213 modelica_integer tmp1;
5214 modelica_integer tmp2;
5215 modelica_integer tmp3;
5216 modelica_integer tmp4;
5217 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
5218 MMC_SO()mmc_check_stackoverflow(threadData);
5219 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5220 _slots = _D_24in_slots;
5221 _matching = 1;
5222 // _s has no default value.
5223 // _argName has no default value.
5224 // _ty has no default value.
5225 // _argExp has no default value.
5226 // _var has no default value.
5227#line 775 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5228 tmp2 = arrayLength(_slots); tmp3 = ((modelica_integer) -1); tmp4 = ((modelica_integer) 1);
5229#line 775 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5230 if(!(((tmp3 > 0) && (tmp2 > tmp4)) || ((tmp3 < 0) && (tmp2 < tmp4))))
5231#line 775 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5232 {
5233#line 775 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5234 modelica_integer _i;
5235#line 775 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5236 for(_i = arrayLength(_slots); in_range_integer(_i, tmp2, tmp4); _i += tmp3)
5237#line 775 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5238 {
5239#line 776 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5240 _s = arrayGet(_slots,_i)nobox_arrayGet(threadData,_slots,_i) /* DAE.ASUB */;
5241#line 5241 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5242
5243#line 778 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5244 /* Pattern-matching assignment */
5245#line 778 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5246 tmpMeta[0] = _inArg;
5247#line 778 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5248 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
5249#line 778 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5250 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
5251#line 778 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5252 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
5253#line 778 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5254 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
5255#line 778 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5256 tmp1 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
5257#line 778 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5258 _argName = tmpMeta[1];
5259#line 778 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5260 _argExp = tmpMeta[2];
5261#line 778 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5262 _ty = tmpMeta[3];
5263#line 778 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5264 _var = tmp1 /* pattern as ty=enumeration(CONSTANT, STRUCTURAL_PARAMETER, PARAMETER, NON_STRUCTURAL_PARAMETER, DISCRETE, IMPLICITLY_DISCRETE, CONTINUOUS) */;
5265#line 5265 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5266
5267#line 780 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5268 if((stringEqual((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_s), 2))), _argName)((((((*(mmc_uint_t*)((void*)((char*)(((*(void**)(((void*)((void
**)(((void*)((char*)(_s) - 3))) + (2))))))) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_argName) - 3
)))) >> (3)) - 8)) && !mmc_stringCompare(((*(void
**)(((void*)((void**)(((void*)((char*)(_s) - 3))) + (2)))))),
_argName))
))
5269#line 780 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5270 {
5271#line 781 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5272 if((!omc_NFFunction_Slot_named(threadData, _s)))
5273#line 781 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5274 {
5275#line 783 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5276 _matching = 0;
5277#line 5277 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5278 }
5279 else
5280 {
5281 if(isNone((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_s), 5))))(0==((((((*(mmc_uint_t*)((void*)((char*)(((*(void**)(((void*)
((void**)(((void*)((char*)(_s) - 3))) + (5))))))) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(((*(void**)
(((void*)((void**)(((void*)((char*)(_s) - 3))) + (5))))))) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(((*
(void**)(((void*)((void**)(((void*)((char*)(_s) - 3))) + (5))
))))) - 3)))) >> 10)) ? 1 : 0)
)
5282 {
5283#line 785 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5284 tmpMeta[1] = mmc_mk_box3(0, _argExp, _ty, mmc_mk_integermmc_mk_icon((modelica_integer)_var));
5285#line 785 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5286 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(8))((void*)((char*)(mmc_alloc_words(8)) + 3));
5287#line 785 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5288 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_s)((void*)((char*)(_s) - 3)), 8*sizeof(modelica_metatype));
5289#line 785 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5290 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[5] = mmc_mk_some(tmpMeta[1]);
5291#line 785 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5292 _s = tmpMeta[0];
5293#line 5293 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5294
5295#line 786 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5296 arrayUpdate(_slots,_i,_s)boxptr_arrayUpdate(threadData,_slots,mmc_mk_icon(_i),_s);
5297#line 5297 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5298 }
5299 else
5300 {
5301#line 789 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5302 tmpMeta[0] = mmc_mk_cons(_argName, mmc_mk_cons(_OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
5303#line 789 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5304 omc_Error_addSourceMessage(threadData, _OMC_LIT119((void*)((char*)(&(_OMC_LIT_STRUCT119).header) + 3)), tmpMeta[0], _info);
5305#line 5305 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5306
5307#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5308 _matching = 0;
5309#line 5309 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5310 }
5311 }
5312
5313#line 794 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5314 goto _return;
5315#line 5315 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5316 }
5317 }
5318 }
5319
5320#line 799 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5321 _matching = 0;
5322#line 5322 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5323
5324#line 804 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5325 {
5326#line 804 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5327 modelica_metatype _s;
5328#line 804 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5329 for (tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 7))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
7)))))
); !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)))))
)
5330#line 804 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5331 {
5332#line 804 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5333 _s = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
5334#line 805 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5335 if((stringEqual(_argName, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_s), 2))))((((((*(mmc_uint_t*)((void*)((char*)(_argName) - 3)))) >>
(3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(((*(void**
)(((void*)((void**)(((void*)((char*)(_s) - 3))) + (2))))))) -
3)))) >> (3)) - 8)) && !mmc_stringCompare(_argName
,((*(void**)(((void*)((void**)(((void*)((char*)(_s) - 3))) + (
2))))))))
))
5336#line 805 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5337 {
5338#line 807 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5339 tmpMeta[1] = mmc_mk_cons(_argName, mmc_mk_cons(_OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
5340#line 807 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5341 omc_Error_addSourceMessage(threadData, _OMC_LIT119((void*)((char*)(&(_OMC_LIT_STRUCT119).header) + 3)), tmpMeta[1], _info);
5342#line 5342 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5343
5344#line 809 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5345 goto _return;
5346#line 5346 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5347 }
5348
5349#line 813 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5350 tmpMeta[1] = mmc_mk_cons(omc_NFInstNode_InstNode_name(threadData, omc_NFFunction_Function_instance(threadData, _fn)), mmc_mk_cons(_argName, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
5351#line 813 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5352 omc_Error_addSourceMessage(threadData, _OMC_LIT122((void*)((char*)(&(_OMC_LIT_STRUCT122).header) + 3)), tmpMeta[1], _info);
5353#line 5353 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5354 }
5355 }
5356 _return: OMC_LABEL_UNUSED__attribute__((unused))
5357 if (out_matching) { *out_matching = _matching; }
5358 return _slots;
5359}
5360modelica_metatype boxptr_NFFunction_Function_fillNamedArg(threadData_t *threadData, modelica_metatype _inArg, modelica_metatype _D_24in_slots, modelica_metatype _fn, modelica_metatype _info, modelica_metatype *out_matching)
5361{
5362 modelica_boolean _matching;
5363 modelica_metatype _slots = NULL((void*)0);
5364 _slots = omc_NFFunction_Function_fillNamedArg(threadData, _inArg, _D_24in_slots, _fn, _info, &_matching);
5365 /* skip box _slots; array<NFFunction.Slot> */
5366 if (out_matching) { *out_matching = mmc_mk_icon(_matching); }
5367 return _slots;
5368}
5369
5370DLLExport
5371modelica_metatype omc_NFFunction_Function_fillArgs(threadData_t *threadData, modelica_metatype _posArgs, modelica_metatype _namedArgs, modelica_metatype _fn, modelica_metatype _info, modelica_boolean *out_matching)
5372{
5373 modelica_metatype _args = NULL((void*)0);
5374 modelica_boolean _matching;
5375 modelica_metatype _slot = NULL((void*)0);
5376 modelica_metatype _slots = NULL((void*)0);
5377 modelica_metatype _remaining_slots = NULL((void*)0);
5378 modelica_metatype _filled_named_args = NULL((void*)0);
5379 modelica_metatype _slots_arr = NULL((void*)0);
5380 modelica_integer _pos_arg_count;
5381 modelica_integer _slot_count;
5382 modelica_integer _index;
5383 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
5384 MMC_SO()mmc_check_stackoverflow(threadData);
5385 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5386 _args = _posArgs;
5387 // _matching has no default value.
5388 // _slot has no default value.
5389 // _slots has no default value.
5390 // _remaining_slots has no default value.
5391 // _filled_named_args has no default value.
5392 // _slots_arr has no default value.
5393 // _pos_arg_count has no default value.
5394 // _slot_count has no default value.
5395 _index = ((modelica_integer) 1);
5396#line 715 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5397 _slots = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 7))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
7)))))
);
5398#line 5398 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5399
5400#line 716 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5401 _pos_arg_count = listLength(_posArgs);
5402#line 5402 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5403
5404#line 717 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5405 _slot_count = listLength(_slots);
5406#line 5406 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5407
5408#line 719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5409 if((_pos_arg_count > _slot_count))
5410#line 719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5411 {
5412#line 721 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5413 _matching = 0;
5414#line 5414 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5415
5416#line 722 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5417 goto _return;
5418#line 5418 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5419 }
5420 else
5421 {
5422 if(((_pos_arg_count == _slot_count) && listEmpty(_namedArgs)((*(mmc_uint_t*)((void*)((char*)(_namedArgs) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
))
5423 {
5424#line 726 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5425 _matching = 1;
5426#line 5426 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5427
5428#line 727 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5429 goto _return;
5430#line 5430 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5431 }
5432 }
5433
5434#line 730 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5435 _slots_arr = listArray(_slots);
5436#line 5436 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5437
5438#line 732 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5439 {
5440#line 732 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5441 modelica_metatype _arg;
5442#line 732 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5443 for (tmpMeta[0] = _args; !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)))))
)
5444#line 732 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5445 {
5446#line 732 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5447 _arg = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
5448#line 733 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5449 _slot = arrayGet(_slots_arr,_index)nobox_arrayGet(threadData,_slots_arr,_index) /* DAE.ASUB */;
5450#line 5450 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5451
5452#line 735 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5453 if((!omc_NFFunction_Slot_positional(threadData, _slot)))
5454#line 735 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5455 {
5456#line 737 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5457 _matching = 0;
5458#line 5458 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5459
5460#line 738 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5461 goto _return;
5462#line 5462 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5463 }
5464
5465#line 741 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5466 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(8))((void*)((char*)(mmc_alloc_words(8)) + 3));
5467#line 741 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5468 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_slot)((void*)((char*)(_slot) - 3)), 8*sizeof(modelica_metatype));
5469#line 741 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5470 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[5] = mmc_mk_some(_arg);
5471#line 741 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5472 _slot = tmpMeta[1];
5473#line 5473 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5474
5475#line 742 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5476 arrayUpdate(_slots_arr, _index, _slot)boxptr_arrayUpdate(threadData,_slots_arr,mmc_mk_icon(_index),
_slot)
;
5477#line 5477 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5478
5479#line 743 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5480 _index = ((modelica_integer) 1) + _index;
5481#line 5481 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5482 }
5483 }
5484
5485#line 746 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5486 {
5487#line 746 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5488 modelica_metatype _narg;
5489#line 746 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5490 for (tmpMeta[0] = _namedArgs; !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)))))
)
5491#line 746 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5492 {
5493#line 746 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5494 _narg = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
5495#line 747 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5496 _slots_arr = omc_NFFunction_Function_fillNamedArg(threadData, _narg, _slots_arr, _fn, _info ,&_matching);
5497#line 5497 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5498
5499#line 749 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5500 if((!_matching))
5501#line 749 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5502 {
5503#line 750 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5504 goto _return;
5505#line 5505 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5506 }
5507 }
5508 }
5509
5510#line 754 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5511 _args = omc_NFFunction_Function_collectArgs(threadData, _slots_arr, _info ,&_matching);
5512#line 5512 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5513 _return: OMC_LABEL_UNUSED__attribute__((unused))
5514 if (out_matching) { *out_matching = _matching; }
5515 return _args;
5516}
5517modelica_metatype boxptr_NFFunction_Function_fillArgs(threadData_t *threadData, modelica_metatype _posArgs, modelica_metatype _namedArgs, modelica_metatype _fn, modelica_metatype _info, modelica_metatype *out_matching)
5518{
5519 modelica_boolean _matching;
5520 modelica_metatype _args = NULL((void*)0);
5521 _args = omc_NFFunction_Function_fillArgs(threadData, _posArgs, _namedArgs, _fn, _info, &_matching);
5522 /* skip box _args; list<tuple<NFExpression, NFType, #enumeration(CONSTANT, STRUCTURAL_PARAMETER, PARAMETER, NON_STRUCTURAL_PARAMETER, DISCRETE, IMPLICITLY_DISCRETE, CONTINUOUS)>> */
5523 if (out_matching) { *out_matching = mmc_mk_icon(_matching); }
5524 return _args;
5525}
5526
5527DLLExport
5528modelica_metatype omc_NFFunction_Function_getSlots(threadData_t *threadData, modelica_metatype _fn)
5529{
5530 modelica_metatype _slots = NULL((void*)0);
5531 MMC_SO()mmc_check_stackoverflow(threadData);
5532 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5533 _slots = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 7))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
7)))))
);
5534 _return: OMC_LABEL_UNUSED__attribute__((unused))
5535 return _slots;
5536}
5537
5538DLLExport
5539modelica_metatype omc_NFFunction_Function_setReturnType(threadData_t *threadData, modelica_metatype _ty, modelica_metatype _D_24in_fn)
5540{
5541 modelica_metatype _fn = NULL((void*)0);
5542 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
5543 MMC_SO()mmc_check_stackoverflow(threadData);
5544 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5545 _fn = _D_24in_fn;
5546#line 691 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5547 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(13))((void*)((char*)(mmc_alloc_words(13)) + 3));
5548#line 691 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5549 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_fn)((void*)((char*)(_fn) - 3)), 13*sizeof(modelica_metatype));
5550#line 691 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5551 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[8] = _ty;
5552#line 691 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5553 _fn = tmpMeta[0];
5554#line 5554 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5555 _return: OMC_LABEL_UNUSED__attribute__((unused))
5556 return _fn;
5557}
5558
5559DLLExport
5560modelica_metatype omc_NFFunction_Function_returnType(threadData_t *threadData, modelica_metatype _fn)
5561{
5562 modelica_metatype _ty = NULL((void*)0);
5563 MMC_SO()mmc_check_stackoverflow(threadData);
5564 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5565 _ty = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 8))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
8)))))
);
5566 _return: OMC_LABEL_UNUSED__attribute__((unused))
5567 return _ty;
5568}
5569
5570DLLExport
5571modelica_metatype omc_NFFunction_Function_instance(threadData_t *threadData, modelica_metatype _fn)
5572{
5573 modelica_metatype _node = NULL((void*)0);
5574 MMC_SO()mmc_check_stackoverflow(threadData);
5575 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5576 _node = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
3)))))
);
5577 _return: OMC_LABEL_UNUSED__attribute__((unused))
5578 return _node;
5579}
5580
5581DLLExport
5582modelica_string omc_NFFunction_Function_paramTypeString(threadData_t *threadData, modelica_metatype _param)
5583{
5584 modelica_string _str = NULL((void*)0);
5585 MMC_SO()mmc_check_stackoverflow(threadData);
5586 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5587 _str = omc_NFType_toString(threadData, omc_NFInstNode_InstNode_getType(threadData, _param));
5588 _return: OMC_LABEL_UNUSED__attribute__((unused))
5589 return _str;
5590}
5591
5592DLLExport
5593modelica_string omc_NFFunction_Function_typeString(threadData_t *threadData, modelica_metatype _fn)
5594{
5595 modelica_string _str = NULL((void*)0);
5596 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
5597 MMC_SO()mmc_check_stackoverflow(threadData);
5598 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5599 // _str has no default value.
5600#line 667 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5601 tmpMeta[0] = stringAppend(omc_AbsynUtil_pathString(threadData, omc_NFFunction_Function_name(threadData, _fn), _OMC_LIT86((void*)((char*)(&(_OMC_LIT_STRUCT86).header) + 3)), 1, 0),_OMC_LIT123((void*)((char*)(&(_OMC_LIT_STRUCT123).header) + 3)));
5602#line 667 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5603 tmpMeta[1] = stringAppend(_OMC_LIT126((void*)((char*)(&(_OMC_LIT_STRUCT126).header) + 3)),omc_NFType_toString(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 8))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
8)))))
)));
5604#line 667 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5605 _str = omc_List_toString(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_fn), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_fn) - 3))) + (
4)))))
), boxvar_NFFunction_Function_paramTypeString((void*)((char*)(&(boxvar_lit_NFFunction_Function_paramTypeString
).header) + 3))
, tmpMeta[0], _OMC_LIT124((void*)((char*)(&(_OMC_LIT_STRUCT124).header) + 3)), _OMC_LIT125((void*)((char*)(&(_OMC_LIT_STRUCT125).header) + 3)), tmpMeta[1], 1);
5606#line 5606 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFFunction.c"
5607 _return: OMC_LABEL_UNUSED__attribute__((unused))
5608 return _str;
5609}
5610
5611DLLExport
5612modelica_string omc_NFFunction_Function_callString(threadData_t *threadData, modelica_metatype _fn, modelica_metatype _posArgs, modelica_metatype _namedArgs)
5613{
5614 modelica_string _str = NULL((void*)0);
5615 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
5616 MMC_SO()mmc_check_stackoverflow(threadData);
5617 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5618 // _str has no default value.
5619#line 650 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5620 {
5621#line 650 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5622 modelica_metatype _D_24tmpVar17;
5623#line 650 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo"
5624 modelica_metatype* tmp1;
5625#line 650 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompile