Bug Summary

File:OMCompiler/Compiler/boot/build/Mod.c
Warning:line 530, column 5
Value stored to 'tmp4_1' is never read

Annotated Source Code

[?] Use j/k keys for keyboard navigation

1#ifdef OMC_BASE_FILE
2 #define OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.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/Mod.c" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "Mod.h"
8#define _OMC_LIT0_data"" ""
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,0,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
10#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
11#define _OMC_LIT1_data" = " " = "
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,3,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), " = "
}
;
13#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
14#define _OMC_LIT2_data"final " "final "
15static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,6,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "final "
}
;
16#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
17#define _OMC_LIT3_data"each " "each "
18static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,5,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "each "
}
;
19#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
20#define _OMC_LIT4_data"(" "("
21static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,1,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "("
}
;
22#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
23#define _OMC_LIT5_data", " ", "
24static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,2,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ", "
}
;
25#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
26#define _OMC_LIT6_data")" ")"
27static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,1,_OMC_LIT6_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT6
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), ")"
}
;
28#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
29static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT7,10,3)struct { mmc_uint_t header; const void *data[10]; } _OMC_LIT_STRUCT7
= { (((10) << 10) + (((3) & 255) << 2)),
{&SCodeDump_SCodeDumpOptions_OPTIONS__desc,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(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
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"redeclare " "redeclare "
32static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,10,_OMC_LIT8_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT8
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "redeclare "
}
;
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,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT9
= { (((1) << 10) + (((5) & 255) << 2)),
{&DAE_Mod_NOMOD__desc,}};
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_DEFREALLIT(_OMC_LIT_STRUCT10,0.0)struct mmc_real_lit _OMC_LIT_STRUCT10 = {0,(((8/8) << 10
) + 9),0.0}
;
37#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
38static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT11,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT11
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).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_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))}};
39#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
40static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT12,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT12
= { (((1) << 10) + (((3) & 255) << 2)),
{&SCode_Each_EACH__desc,}};
41#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
42#define _OMC_LIT13_data"Mod.addEachOneLevel failed on: " "Mod.addEachOneLevel failed on: "
43static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT13,31,_OMC_LIT13_data)struct { mmc_uint_t header; const char data[(31)+1]; } _OMC_LIT_STRUCT13
= { ((((mmc_uint_t)31)<<(3))+((1<<(3+3))+5)), "Mod.addEachOneLevel failed on: "
}
;
44#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
45#define _OMC_LIT14_data"\n" "\n"
46static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT14,1,_OMC_LIT14_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT14
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\n"
}
;
47#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
48#define _OMC_LIT15_data"Mod.addEachIfNeeded failed on: " "Mod.addEachIfNeeded failed on: "
49static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT15,31,_OMC_LIT15_data)struct { mmc_uint_t header; const char data[(31)+1]; } _OMC_LIT_STRUCT15
= { ((((mmc_uint_t)31)<<(3))+((1<<(3+3))+5)), "Mod.addEachIfNeeded failed on: "
}
;
50#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
51#define _OMC_LIT16_data": " ": "
52static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT16,2,_OMC_LIT16_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT16
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ": "
}
;
53#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
54static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT17,1,11)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT17
= { (((1) << 10) + (((11) & 255) << 2)),
{&DAE_Type_T__UNKNOWN__desc,}};
55#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
56#define _OMC_LIT18_data"." "."
57static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT18,1,_OMC_LIT18_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT18
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "."
}
;
58#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
59#define _OMC_LIT19_data" = (typed)" " = (typed)"
60static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT19,10,_OMC_LIT19_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT19
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), " = (typed)"
}
;
61#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
62#define _OMC_LIT20_data" " " "
63static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT20,1,_OMC_LIT20_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT20
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), " "
}
;
64#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
65#define _OMC_LIT21_data", value: " ", value: "
66static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT21,9,_OMC_LIT21_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT21
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), ", value: "
}
;
67#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
68#define _OMC_LIT22_data", type:\n" ", type:\n"
69static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT22,8,_OMC_LIT22_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT22
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), ", type:\n"
}
;
70#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
71#define _OMC_LIT23_data" =(untyped) " " =(untyped) "
72static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,12,_OMC_LIT23_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT23
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), " =(untyped) "
}
;
73#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
74#define _OMC_LIT24_data"---Mod.printEqmodStr FAILED---" "---Mod.printEqmodStr FAILED---"
75static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT24,30,_OMC_LIT24_data)struct { mmc_uint_t header; const char data[(30)+1]; } _OMC_LIT_STRUCT24
= { ((((mmc_uint_t)30)<<(3))+((1<<(3+3))+5)), "---Mod.printEqmodStr FAILED---"
}
;
76#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
77#define _OMC_LIT25_data"(redeclare " "(redeclare "
78static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT25,11,_OMC_LIT25_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT25
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "(redeclare "
}
;
79#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
80#define _OMC_LIT26_data" redeclare(" " redeclare("
81static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT26,11,_OMC_LIT26_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT26
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), " redeclare("
}
;
82#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
83#define _OMC_LIT27_data"), class or component " "), class or component "
84static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT27,22,_OMC_LIT27_data)struct { mmc_uint_t header; const char data[(22)+1]; } _OMC_LIT_STRUCT27
= { ((((mmc_uint_t)22)<<(3))+((1<<(3+3))+5)), "), class or component "
}
;
85#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
86#define _OMC_LIT28_data" failed prettyPrintMod\n" " failed prettyPrintMod\n"
87static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT28,23,_OMC_LIT28_data)struct { mmc_uint_t header; const char data[(23)+1]; } _OMC_LIT_STRUCT28
= { ((((mmc_uint_t)23)<<(3))+((1<<(3+3))+5)), " failed prettyPrintMod\n"
}
;
88#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
89#define _OMC_LIT29_data"()" "()"
90static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,2,_OMC_LIT29_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT29
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "()"
}
;
91#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
92#define _OMC_LIT30_data" {" " {"
93static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT30,2,_OMC_LIT30_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT30
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), " {"
}
;
94#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
95#define _OMC_LIT31_data"} " "} "
96static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT31,2,_OMC_LIT31_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT31
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "} "
}
;
97#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
98#define _OMC_LIT32_data" failure in printModStr \n" " failure in printModStr \n"
99static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT32,25,_OMC_LIT32_data)struct { mmc_uint_t header; const char data[(25)+1]; } _OMC_LIT_STRUCT32
= { ((((mmc_uint_t)25)<<(3))+((1<<(3+3))+5)), " failure in printModStr \n"
}
;
100#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
101static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT33,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT33
= { (((1) << 10) + (((5) & 255) << 2)),
{&ErrorTypes_MessageType_TRANSLATION__desc,}};
102#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
103static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT34,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT34
= { (((1) << 10) + (((4) & 255) << 2)),
{&ErrorTypes_Severity_ERROR__desc,}};
104#define _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT34)((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))
105#define _OMC_LIT35_data"Trying to override final element %s with modifier '%s'." "Trying to override final element %s with modifier '%s'."
106static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT35,55,_OMC_LIT35_data)struct { mmc_uint_t header; const char data[(55)+1]; } _OMC_LIT_STRUCT35
= { ((((mmc_uint_t)55)<<(3))+((1<<(3+3))+5)), "Trying to override final element %s with modifier '%s'."
}
;
107#define _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT35)((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))
108static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT36,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT36
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))}};
109#define _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT36)((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))
110static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT37,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT37
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(222))((void*)(((((mmc_uint_t) (222)) << 1)+0))),_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)),_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)),_OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))}};
111#define _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT37)((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))
112static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT38,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT38
= { (((1) << 10) + (((5) & 255) << 2)),
{&ErrorTypes_Severity_WARNING__desc,}};
113#define _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT38)((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3))
114#define _OMC_LIT39_data"Non-array modification '%s' for array component, possibly due to missing 'each'." "Non-array modification '%s' for array component, possibly due to missing 'each'."
115static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT39,80,_OMC_LIT39_data)struct { mmc_uint_t header; const char data[(80)+1]; } _OMC_LIT_STRUCT39
= { ((((mmc_uint_t)80)<<(3))+((1<<(3+3))+5)), "Non-array modification '%s' for array component, possibly due to missing 'each'."
}
;
116#define _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT39)((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))
117static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT40,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT40
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))}};
118#define _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT40)((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))
119static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT41,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT41
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(122))((void*)(((((mmc_uint_t) (122)) << 1)+0))),_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)),_OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)),_OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))}};
120#define _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT41)((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))
121#define _OMC_LIT42_data"failtrace" "failtrace"
122static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT42,9,_OMC_LIT42_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT42
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "failtrace"
}
;
123#define _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT42)((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3))
124#define _OMC_LIT43_data"Sets whether to print a failtrace or not." "Sets whether to print a failtrace or not."
125static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT43,41,_OMC_LIT43_data)struct { mmc_uint_t header; const char data[(41)+1]; } _OMC_LIT_STRUCT43
= { ((((mmc_uint_t)41)<<(3))+((1<<(3+3))+5)), "Sets whether to print a failtrace or not."
}
;
126#define _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT43)((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))
127static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT44,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT44
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))}};
128#define _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT44)((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))
129static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT45,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT45
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),_OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))}};
130#define _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT45)((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))
131#define _OMC_LIT46_data"- Mod.indexEqmod failed for mod:\n " "- Mod.indexEqmod failed for mod:\n "
132static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT46,34,_OMC_LIT46_data)struct { mmc_uint_t header; const char data[(34)+1]; } _OMC_LIT_STRUCT46
= { ((((mmc_uint_t)34)<<(3))+((1<<(3+3))+5)), "- Mod.indexEqmod failed for mod:\n "
}
;
133#define _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT46)((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))
134#define _OMC_LIT47_data"\n indices: " "\n indices: "
135static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT47,11,_OMC_LIT47_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT47
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "\n indices: "
}
;
136#define _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT47)((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3))
137static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT48,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT48
= { (((1) << 10) + (((4) & 255) << 2)),
{&SCode_Final_NOT__FINAL__desc,}};
138#define _OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT48)((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3))
139#define _OMC_LIT49_data"- Mod.lookupIdxModification(" "- Mod.lookupIdxModification("
140static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT49,28,_OMC_LIT49_data)struct { mmc_uint_t header; const char data[(28)+1]; } _OMC_LIT_STRUCT49
= { ((((mmc_uint_t)28)<<(3))+((1<<(3+3))+5)), "- Mod.lookupIdxModification("
}
;
141#define _OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT49)((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3))
142#define _OMC_LIT50_data") failed" ") failed"
143static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT50,8,_OMC_LIT50_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT50
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), ") failed"
}
;
144#define _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT50)((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3))
145#define _OMC_LIT51_data"Multiple modifiers in same scope for element %s." "Multiple modifiers in same scope for element %s."
146static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT51,48,_OMC_LIT51_data)struct { mmc_uint_t header; const char data[(48)+1]; } _OMC_LIT_STRUCT51
= { ((((mmc_uint_t)48)<<(3))+((1<<(3+3))+5)), "Multiple modifiers in same scope for element %s."
}
;
147#define _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT51)((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3))
148static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT52,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT52
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3))}};
149#define _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT52)((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))
150static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT53,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT53
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(516))((void*)(((((mmc_uint_t) (516)) << 1)+0))),_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)),_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)),_OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))}};
151#define _OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT53)((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3))
152#define _OMC_LIT54_data"Duplicate modification of element %s on %s." "Duplicate modification of element %s on %s."
153static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT54,43,_OMC_LIT54_data)struct { mmc_uint_t header; const char data[(43)+1]; } _OMC_LIT_STRUCT54
= { ((((mmc_uint_t)43)<<(3))+((1<<(3+3))+5)), "Duplicate modification of element %s on %s."
}
;
154#define _OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT54)((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3))
155static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT55,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT55
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3))}};
156#define _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT55)((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3))
157static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT56,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT56
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(103))((void*)(((((mmc_uint_t) (103)) << 1)+0))),_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)),_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)),_OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3))}};
158#define _OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT56)((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3))
159static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT57,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT57
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_Const_C__CONST__desc,}};
160#define _OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT57)((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3))
161#define _OMC_LIT58_data"- Mod.lookupModificationP failed\n" "- Mod.lookupModificationP failed\n"
162static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT58,33,_OMC_LIT58_data)struct { mmc_uint_t header; const char data[(33)+1]; } _OMC_LIT_STRUCT58
= { ((((mmc_uint_t)33)<<(3))+((1<<(3+3))+5)), "- Mod.lookupModificationP failed\n"
}
;
163#define _OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT58)((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3))
164static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT59,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT59
= { (((2) << 10) + (((3) & 255) << 2)),
{&Mod_ModScope_COMPONENT__desc,_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))}};
165#define _OMC_LIT59((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT59)((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3))
166#define _OMC_LIT60_data"component " "component "
167static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT60,10,_OMC_LIT60_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT60
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "component "
}
;
168#define _OMC_LIT60((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT60)((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3))
169#define _OMC_LIT61_data"extends " "extends "
170static 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)), "extends "
}
;
171#define _OMC_LIT61((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT61)((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3))
172#define _OMC_LIT62_data"inherited class " "inherited class "
173static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT62,16,_OMC_LIT62_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT62
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "inherited class "
}
;
174#define _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT62)((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3))
175#define _OMC_LIT63_data"- elab_untyped_mod " "- elab_untyped_mod "
176static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT63,19,_OMC_LIT63_data)struct { mmc_uint_t header; const char data[(19)+1]; } _OMC_LIT_STRUCT63
= { ((((mmc_uint_t)19)<<(3))+((1<<(3+3))+5)), "- elab_untyped_mod "
}
;
177#define _OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT63)((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3))
178#define _OMC_LIT64_data" failed\n" " failed\n"
179static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT64,8,_OMC_LIT64_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT64
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), " failed\n"
}
;
180#define _OMC_LIT64((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT64)((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3))
181#define _OMC_LIT65_data"Updated mod: " "Updated mod: "
182static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT65,13,_OMC_LIT65_data)struct { mmc_uint_t header; const char data[(13)+1]; } _OMC_LIT_STRUCT65
= { ((((mmc_uint_t)13)<<(3))+((1<<(3+3))+5)), "Updated mod: "
}
;
183#define _OMC_LIT65((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT65)((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3))
184#define _OMC_LIT66_data"updmod" "updmod"
185static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT66,6,_OMC_LIT66_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT66
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "updmod"
}
;
186#define _OMC_LIT66((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT66)((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3))
187#define _OMC_LIT67_data"Prints information about modification updates." "Prints information about modification updates."
188static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT67,46,_OMC_LIT67_data)struct { mmc_uint_t header; const char data[(46)+1]; } _OMC_LIT_STRUCT67
= { ((((mmc_uint_t)46)<<(3))+((1<<(3+3))+5)), "Prints information about modification updates."
}
;
189#define _OMC_LIT67((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT67)((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3))
190static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT68,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT68
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT67((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3))}};
191#define _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT68)((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3))
192static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT69,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT69
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(64))((void*)(((((mmc_uint_t) (64)) << 1)+0))),_OMC_LIT66((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3))}};
193#define _OMC_LIT69((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT69)((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3))
194#define _OMC_LIT70_data"- Mod.updateMod failed mod: " "- Mod.updateMod failed mod: "
195static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT70,28,_OMC_LIT70_data)struct { mmc_uint_t header; const char data[(28)+1]; } _OMC_LIT_STRUCT70
= { ((((mmc_uint_t)28)<<(3))+((1<<(3+3))+5)), "- Mod.updateMod failed mod: "
}
;
196#define _OMC_LIT70((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT70)((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3))
197static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT71,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT71
= { (((1) << 10) + (((5) & 255) << 2)),
{&SCode_Mod_NOMOD__desc,}};
198#define _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT71)((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3))
199#define _OMC_LIT72_data"Mod.elabUntypedMod failed: " "Mod.elabUntypedMod failed: "
200static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT72,27,_OMC_LIT72_data)struct { mmc_uint_t header; const char data[(27)+1]; } _OMC_LIT_STRUCT72
= { ((((mmc_uint_t)27)<<(3))+((1<<(3+3))+5)), "Mod.elabUntypedMod failed: "
}
;
201#define _OMC_LIT72((void*)((char*)(&(_OMC_LIT_STRUCT72).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT72)((void*)((char*)(&(_OMC_LIT_STRUCT72).header) + 3))
202#define _OMC_LIT73_data"Internal error %s" "Internal error %s"
203static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT73,17,_OMC_LIT73_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT73
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), "Internal error %s"
}
;
204#define _OMC_LIT73((void*)((char*)(&(_OMC_LIT_STRUCT73).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT73)((void*)((char*)(&(_OMC_LIT_STRUCT73).header) + 3))
205static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT74,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT74
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT73((void*)((char*)(&(_OMC_LIT_STRUCT73).header) + 3))}};
206#define _OMC_LIT74((void*)((char*)(&(_OMC_LIT_STRUCT74).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT74)((void*)((char*)(&(_OMC_LIT_STRUCT74).header) + 3))
207static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT75,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT75
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(63))((void*)(((((mmc_uint_t) (63)) << 1)+0))),_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)),_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)),_OMC_LIT74((void*)((char*)(&(_OMC_LIT_STRUCT74).header) + 3))}};
208#define _OMC_LIT75((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT75)((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3))
209#define _OMC_LIT76_data"Unhandled element redeclare (we keep it as it is!): " "Unhandled element redeclare (we keep it as it is!): "
210static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT76,52,_OMC_LIT76_data)struct { mmc_uint_t header; const char data[(52)+1]; } _OMC_LIT_STRUCT76
= { ((((mmc_uint_t)52)<<(3))+((1<<(3+3))+5)), "Unhandled element redeclare (we keep it as it is!): "
}
;
211#define _OMC_LIT76((void*)((char*)(&(_OMC_LIT_STRUCT76).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT76)((void*)((char*)(&(_OMC_LIT_STRUCT76).header) + 3))
212#include "util/modelica.h"
213
214#include "Mod_includes.h"
215
216
217/* default, do not make protected functions static */
218#if !defined(PROTECTED_FUNCTION_STATIC)
219#define PROTECTED_FUNCTION_STATIC
220#endif
221PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_unparseBindingStr(threadData_t *threadData, modelica_metatype _inBinding);
222static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_unparseBindingStr,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_unparseBindingStr
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_unparseBindingStromc_Mod_unparseBindingStr,0}};
223#define boxvar_Mod_unparseBindingStr((void*)((char*)(&(boxvar_lit_Mod_unparseBindingStr).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_unparseBindingStr)((void*)((char*)(&(boxvar_lit_Mod_unparseBindingStr).header
) + 3))
224PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_unparseSubModStr(threadData_t *threadData, modelica_metatype _inSubMod);
225static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_unparseSubModStr,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_unparseSubModStr
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_unparseSubModStromc_Mod_unparseSubModStr,0}};
226#define boxvar_Mod_unparseSubModStr((void*)((char*)(&(boxvar_lit_Mod_unparseSubModStr).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_unparseSubModStr)((void*)((char*)(&(boxvar_lit_Mod_unparseSubModStr).header
) + 3))
227PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_filterRedeclaresSubMods(threadData_t *threadData, modelica_metatype _inSubMods);
228static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_filterRedeclaresSubMods,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_filterRedeclaresSubMods
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_filterRedeclaresSubModsomc_Mod_filterRedeclaresSubMods,0}};
229#define boxvar_Mod_filterRedeclaresSubMods((void*)((char*)(&(boxvar_lit_Mod_filterRedeclaresSubMods
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_filterRedeclaresSubMods)((void*)((char*)(&(boxvar_lit_Mod_filterRedeclaresSubMods
).header) + 3))
230PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_stripSubModBindings(threadData_t *threadData, modelica_metatype _inSubMods);
231static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_stripSubModBindings,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_stripSubModBindings
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_stripSubModBindingsomc_Mod_stripSubModBindings,0}};
232#define boxvar_Mod_stripSubModBindings((void*)((char*)(&(boxvar_lit_Mod_stripSubModBindings).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_stripSubModBindings)((void*)((char*)(&(boxvar_lit_Mod_stripSubModBindings).header
) + 3))
233PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_setEqMod(threadData_t *threadData, modelica_metatype _inEqMod, modelica_metatype _inMod);
234static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_setEqMod,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_setEqMod
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_setEqModomc_Mod_setEqMod,0}};
235#define boxvar_Mod_setEqMod((void*)((char*)(&(boxvar_lit_Mod_setEqMod).header) + 3)) MMC_REFSTRUCTLIT(boxvar_lit_Mod_setEqMod)((void*)((char*)(&(boxvar_lit_Mod_setEqMod).header) + 3))
236PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_subModInfo(threadData_t *threadData, modelica_metatype _inSubMod);
237static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_subModInfo,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_subModInfo
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_subModInfoomc_Mod_subModInfo,0}};
238#define boxvar_Mod_subModInfo((void*)((char*)(&(boxvar_lit_Mod_subModInfo).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_subModInfo)((void*)((char*)(&(boxvar_lit_Mod_subModInfo).header) + 3
))
239PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_subModIsNamed(threadData_t *threadData, modelica_string _inName, modelica_metatype _inSubMod);
240PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_subModIsNamed(threadData_t *threadData, modelica_metatype _inName, modelica_metatype _inSubMod);
241static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_subModIsNamed,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_subModIsNamed
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_subModIsNamed,0}};
242#define boxvar_Mod_subModIsNamed((void*)((char*)(&(boxvar_lit_Mod_subModIsNamed).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_subModIsNamed)((void*)((char*)(&(boxvar_lit_Mod_subModIsNamed).header) +
3))
243PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_subModName(threadData_t *threadData, modelica_metatype _inSubMod);
244static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_subModName,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_subModName
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_subModNameomc_Mod_subModName,0}};
245#define boxvar_Mod_subModName((void*)((char*)(&(boxvar_lit_Mod_subModName).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_subModName)((void*)((char*)(&(boxvar_lit_Mod_subModName).header) + 3
))
246PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_subModValue(threadData_t *threadData, modelica_metatype _inSubMod);
247static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_subModValue,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_subModValue
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_subModValueomc_Mod_subModValue,0}};
248#define boxvar_Mod_subModValue((void*)((char*)(&(boxvar_lit_Mod_subModValue).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_subModValue)((void*)((char*)(&(boxvar_lit_Mod_subModValue).header) + 3
))
249PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_removeModInSubs(threadData_t *threadData, modelica_metatype _inSubs, modelica_string _componentName);
250static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_removeModInSubs,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_removeModInSubs
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_removeModInSubsomc_Mod_removeModInSubs,0}};
251#define boxvar_Mod_removeModInSubs((void*)((char*)(&(boxvar_lit_Mod_removeModInSubs).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_removeModInSubs)((void*)((char*)(&(boxvar_lit_Mod_removeModInSubs).header
) + 3))
252PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_removeRedecl(threadData_t *threadData, modelica_metatype _isubs);
253static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_removeRedecl,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_removeRedecl
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_removeRedeclomc_Mod_removeRedecl,0}};
254#define boxvar_Mod_removeRedecl((void*)((char*)(&(boxvar_lit_Mod_removeRedecl).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_removeRedecl)((void*)((char*)(&(boxvar_lit_Mod_removeRedecl).header) +
3))
255PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_getUntypedCrefFromSubMod(threadData_t *threadData, modelica_metatype _inSubMod, modelica_metatype _inCrefs);
256static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_getUntypedCrefFromSubMod,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_getUntypedCrefFromSubMod
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_getUntypedCrefFromSubModomc_Mod_getUntypedCrefFromSubMod,0}};
257#define boxvar_Mod_getUntypedCrefFromSubMod((void*)((char*)(&(boxvar_lit_Mod_getUntypedCrefFromSubMod
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_getUntypedCrefFromSubMod)((void*)((char*)(&(boxvar_lit_Mod_getUntypedCrefFromSubMod
).header) + 3))
258PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_isUntypedSubMod(threadData_t *threadData, modelica_metatype _inSubMod);
259PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_isUntypedSubMod(threadData_t *threadData, modelica_metatype _inSubMod);
260static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_isUntypedSubMod,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_isUntypedSubMod
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_isUntypedSubMod,0}};
261#define boxvar_Mod_isUntypedSubMod((void*)((char*)(&(boxvar_lit_Mod_isUntypedSubMod).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_isUntypedSubMod)((void*)((char*)(&(boxvar_lit_Mod_isUntypedSubMod).header
) + 3))
262PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_getUnelabedSubMod2(threadData_t *threadData, modelica_metatype _inSubMods, modelica_string _inIdent);
263static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_getUnelabedSubMod2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_getUnelabedSubMod2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_getUnelabedSubMod2omc_Mod_getUnelabedSubMod2,0}};
264#define boxvar_Mod_getUnelabedSubMod2((void*)((char*)(&(boxvar_lit_Mod_getUnelabedSubMod2).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_getUnelabedSubMod2)((void*)((char*)(&(boxvar_lit_Mod_getUnelabedSubMod2).header
) + 3))
265PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_prettyPrintFullMod(threadData_t *threadData, modelica_metatype _inFullMod, modelica_integer _inDepth);
266PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_prettyPrintFullMod(threadData_t *threadData, modelica_metatype _inFullMod, modelica_metatype _inDepth);
267static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_prettyPrintFullMod,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_prettyPrintFullMod
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_prettyPrintFullMod,0}};
268#define boxvar_Mod_prettyPrintFullMod((void*)((char*)(&(boxvar_lit_Mod_prettyPrintFullMod).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_prettyPrintFullMod)((void*)((char*)(&(boxvar_lit_Mod_prettyPrintFullMod).header
) + 3))
269PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_fullModCrefsEqual(threadData_t *threadData, modelica_metatype _inFullMod1, modelica_metatype _inFullMod2);
270PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_fullModCrefsEqual(threadData_t *threadData, modelica_metatype _inFullMod1, modelica_metatype _inFullMod2);
271static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_fullModCrefsEqual,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_fullModCrefsEqual
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_fullModCrefsEqual,0}};
272#define boxvar_Mod_fullModCrefsEqual((void*)((char*)(&(boxvar_lit_Mod_fullModCrefsEqual).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_fullModCrefsEqual)((void*)((char*)(&(boxvar_lit_Mod_fullModCrefsEqual).header
) + 3))
273PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_getFullModsFromSubMods(threadData_t *threadData, modelica_metatype _inTopCref, modelica_metatype _inSubMods);
274static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_getFullModsFromSubMods,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_getFullModsFromSubMods
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_getFullModsFromSubModsomc_Mod_getFullModsFromSubMods,0}};
275#define boxvar_Mod_getFullModsFromSubMods((void*)((char*)(&(boxvar_lit_Mod_getFullModsFromSubMods)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_getFullModsFromSubMods)((void*)((char*)(&(boxvar_lit_Mod_getFullModsFromSubMods)
.header) + 3))
276PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_getFullModFromModRedeclare(threadData_t *threadData, modelica_metatype _inTopCref, modelica_metatype _inRedeclare);
277static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_getFullModFromModRedeclare,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_getFullModFromModRedeclare
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_getFullModFromModRedeclareomc_Mod_getFullModFromModRedeclare,0}};
278#define boxvar_Mod_getFullModFromModRedeclare((void*)((char*)(&(boxvar_lit_Mod_getFullModFromModRedeclare
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_getFullModFromModRedeclare)((void*)((char*)(&(boxvar_lit_Mod_getFullModFromModRedeclare
).header) + 3))
279PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_getFullModsFromMod(threadData_t *threadData, modelica_metatype _inTopCref, modelica_metatype _inMod);
280static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_getFullModsFromMod,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_getFullModsFromMod
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_getFullModsFromModomc_Mod_getFullModsFromMod,0}};
281#define boxvar_Mod_getFullModsFromMod((void*)((char*)(&(boxvar_lit_Mod_getFullModsFromMod).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_getFullModsFromMod)((void*)((char*)(&(boxvar_lit_Mod_getFullModsFromMod).header
) + 3))
282PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_isPrefixOf(threadData_t *threadData, modelica_metatype _indexSubMod, modelica_string _idx);
283PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_isPrefixOf(threadData_t *threadData, modelica_metatype _indexSubMod, modelica_metatype _idx);
284static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_isPrefixOf,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_isPrefixOf
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_isPrefixOf,0}};
285#define boxvar_Mod_isPrefixOf((void*)((char*)(&(boxvar_lit_Mod_isPrefixOf).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_isPrefixOf)((void*)((char*)(&(boxvar_lit_Mod_isPrefixOf).header) + 3
))
286PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_intStringDot(threadData_t *threadData, modelica_integer _i);
287PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_intStringDot(threadData_t *threadData, modelica_metatype _i);
288static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_intStringDot,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_intStringDot
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_intStringDot,0}};
289#define boxvar_Mod_intStringDot((void*)((char*)(&(boxvar_lit_Mod_intStringDot).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_intStringDot)((void*)((char*)(&(boxvar_lit_Mod_intStringDot).header) +
3))
290PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_printEqmodStr(threadData_t *threadData, modelica_metatype _inTypesEqModOption);
291static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_printEqmodStr,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_printEqmodStr
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_printEqmodStromc_Mod_printEqmodStr,0}};
292#define boxvar_Mod_printEqmodStr((void*)((char*)(&(boxvar_lit_Mod_printEqmodStr).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_printEqmodStr)((void*)((char*)(&(boxvar_lit_Mod_printEqmodStr).header) +
3))
293PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_printSubStr(threadData_t *threadData, modelica_metatype _inSubMod);
294static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_printSubStr,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_printSubStr
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_printSubStromc_Mod_printSubStr,0}};
295#define boxvar_Mod_printSubStr((void*)((char*)(&(boxvar_lit_Mod_printSubStr).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_printSubStr)((void*)((char*)(&(boxvar_lit_Mod_printSubStr).header) + 3
))
296PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_prettyPrintSubs(threadData_t *threadData, modelica_metatype _inSubs, modelica_integer _depth);
297PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_prettyPrintSubs(threadData_t *threadData, modelica_metatype _inSubs, modelica_metatype _depth);
298static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_prettyPrintSubs,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_prettyPrintSubs
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_prettyPrintSubs,0}};
299#define boxvar_Mod_prettyPrintSubs((void*)((char*)(&(boxvar_lit_Mod_prettyPrintSubs).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_prettyPrintSubs)((void*)((char*)(&(boxvar_lit_Mod_prettyPrintSubs).header
) + 3))
300PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_eqModEqual(threadData_t *threadData, modelica_metatype _eqMod1, modelica_metatype _eqMod2);
301PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_eqModEqual(threadData_t *threadData, modelica_metatype _eqMod1, modelica_metatype _eqMod2);
302static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_eqModEqual,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_eqModEqual
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_eqModEqual,0}};
303#define boxvar_Mod_eqModEqual((void*)((char*)(&(boxvar_lit_Mod_eqModEqual).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_eqModEqual)((void*)((char*)(&(boxvar_lit_Mod_eqModEqual).header) + 3
))
304PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_valEqual(threadData_t *threadData, modelica_metatype _inV1, modelica_metatype _inV2, modelica_boolean _equal);
305PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_valEqual(threadData_t *threadData, modelica_metatype _inV1, modelica_metatype _inV2, modelica_metatype _equal);
306static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_valEqual,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_valEqual
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_valEqual,0}};
307#define boxvar_Mod_valEqual((void*)((char*)(&(boxvar_lit_Mod_valEqual).header) + 3)) MMC_REFSTRUCTLIT(boxvar_lit_Mod_valEqual)((void*)((char*)(&(boxvar_lit_Mod_valEqual).header) + 3))
308PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_subModsEqual(threadData_t *threadData, modelica_metatype _inSubModLst1, modelica_metatype _inSubModLst2);
309PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_subModsEqual(threadData_t *threadData, modelica_metatype _inSubModLst1, modelica_metatype _inSubModLst2);
310static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_subModsEqual,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_subModsEqual
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_subModsEqual,0}};
311#define boxvar_Mod_subModsEqual((void*)((char*)(&(boxvar_lit_Mod_subModsEqual).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_subModsEqual)((void*)((char*)(&(boxvar_lit_Mod_subModsEqual).header) +
3))
312PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_subModsSubsetOrEqual(threadData_t *threadData, modelica_metatype _subModLst1, modelica_metatype _subModLst2);
313PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_subModsSubsetOrEqual(threadData_t *threadData, modelica_metatype _subModLst1, modelica_metatype _subModLst2);
314static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_subModsSubsetOrEqual,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_subModsSubsetOrEqual
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_subModsSubsetOrEqual,0}};
315#define boxvar_Mod_subModsSubsetOrEqual((void*)((char*)(&(boxvar_lit_Mod_subModsSubsetOrEqual).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_subModsSubsetOrEqual)((void*)((char*)(&(boxvar_lit_Mod_subModsSubsetOrEqual).header
) + 3))
316PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_eqModSubsetOrEqual(threadData_t *threadData, modelica_metatype _eqMod1, modelica_metatype _eqMod2);
317PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_eqModSubsetOrEqual(threadData_t *threadData, modelica_metatype _eqMod1, modelica_metatype _eqMod2);
318static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_eqModSubsetOrEqual,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_eqModSubsetOrEqual
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_eqModSubsetOrEqual,0}};
319#define boxvar_Mod_eqModSubsetOrEqual((void*)((char*)(&(boxvar_lit_Mod_eqModSubsetOrEqual).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_eqModSubsetOrEqual)((void*)((char*)(&(boxvar_lit_Mod_eqModSubsetOrEqual).header
) + 3))
320PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_modSubsetOrEqualOrNonOverlap(threadData_t *threadData, modelica_metatype _mod1, modelica_metatype _mod2);
321PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_modSubsetOrEqualOrNonOverlap(threadData_t *threadData, modelica_metatype _mod1, modelica_metatype _mod2);
322static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_modSubsetOrEqualOrNonOverlap,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_modSubsetOrEqualOrNonOverlap
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_modSubsetOrEqualOrNonOverlap,0}};
323#define boxvar_Mod_modSubsetOrEqualOrNonOverlap((void*)((char*)(&(boxvar_lit_Mod_modSubsetOrEqualOrNonOverlap
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_modSubsetOrEqualOrNonOverlap)((void*)((char*)(&(boxvar_lit_Mod_modSubsetOrEqualOrNonOverlap
).header) + 3))
324PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_mergeEq(threadData_t *threadData, modelica_metatype _inOuterEq, modelica_metatype _inInnerEq);
325static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_mergeEq,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_mergeEq
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_mergeEqomc_Mod_mergeEq,0}};
326#define boxvar_Mod_mergeEq((void*)((char*)(&(boxvar_lit_Mod_mergeEq).header) + 3)) MMC_REFSTRUCTLIT(boxvar_lit_Mod_mergeEq)((void*)((char*)(&(boxvar_lit_Mod_mergeEq).header) + 3))
327PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_mergeSubs(threadData_t *threadData, modelica_metatype _inSubMods1, modelica_metatype _inSubMods2, modelica_boolean _inCheckFinal);
328PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_mergeSubs(threadData_t *threadData, modelica_metatype _inSubMods1, modelica_metatype _inSubMods2, modelica_metatype _inCheckFinal);
329static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_mergeSubs,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_mergeSubs
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_mergeSubs,0}};
330#define boxvar_Mod_mergeSubs((void*)((char*)(&(boxvar_lit_Mod_mergeSubs).header) + 3)
)
MMC_REFSTRUCTLIT(boxvar_lit_Mod_mergeSubs)((void*)((char*)(&(boxvar_lit_Mod_mergeSubs).header) + 3)
)
331PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_doMerge(threadData_t *threadData, modelica_metatype _inModOuter, modelica_metatype _inModInner, modelica_boolean _inCheckFinal);
332PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_doMerge(threadData_t *threadData, modelica_metatype _inModOuter, modelica_metatype _inModInner, modelica_metatype _inCheckFinal);
333static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_doMerge,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_doMerge
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_doMerge,0}};
334#define boxvar_Mod_doMerge((void*)((char*)(&(boxvar_lit_Mod_doMerge).header) + 3)) MMC_REFSTRUCTLIT(boxvar_lit_Mod_doMerge)((void*)((char*)(&(boxvar_lit_Mod_doMerge).header) + 3))
335PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_merge__isEqual(threadData_t *threadData, modelica_metatype _inMod1, modelica_metatype _inMod2);
336PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_merge__isEqual(threadData_t *threadData, modelica_metatype _inMod1, modelica_metatype _inMod2);
337static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_merge__isEqual,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_merge__isEqual
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_merge__isEqual,0}};
338#define boxvar_Mod_merge__isEqual((void*)((char*)(&(boxvar_lit_Mod_merge__isEqual).header)
+ 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_merge__isEqual)((void*)((char*)(&(boxvar_lit_Mod_merge__isEqual).header)
+ 3))
339PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_indexEqmod(threadData_t *threadData, modelica_metatype _inBinding, modelica_metatype _inIndices, modelica_metatype _inInfo);
340static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_indexEqmod,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_indexEqmod
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_indexEqmodomc_Mod_indexEqmod,0}};
341#define boxvar_Mod_indexEqmod((void*)((char*)(&(boxvar_lit_Mod_indexEqmod).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_indexEqmod)((void*)((char*)(&(boxvar_lit_Mod_indexEqmod).header) + 3
))
342PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_lookupIdxModification3(threadData_t *threadData, modelica_metatype _inMod, modelica_metatype _inIndex);
343static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_lookupIdxModification3,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_lookupIdxModification3
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_lookupIdxModification3omc_Mod_lookupIdxModification3,0}};
344#define boxvar_Mod_lookupIdxModification3((void*)((char*)(&(boxvar_lit_Mod_lookupIdxModification3)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_lookupIdxModification3)((void*)((char*)(&(boxvar_lit_Mod_lookupIdxModification3)
.header) + 3))
345PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_lookupIdxModification2(threadData_t *threadData, modelica_metatype _inSubMods, modelica_metatype _inIndex, modelica_metatype *out_outSubMods);
346static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_lookupIdxModification2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_lookupIdxModification2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_lookupIdxModification2omc_Mod_lookupIdxModification2,0}};
347#define boxvar_Mod_lookupIdxModification2((void*)((char*)(&(boxvar_lit_Mod_lookupIdxModification2)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_lookupIdxModification2)((void*)((char*)(&(boxvar_lit_Mod_lookupIdxModification2)
.header) + 3))
348PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_lookupCompModification2(threadData_t *threadData, modelica_metatype _inSubModLst, modelica_string _inIdent);
349static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_lookupCompModification2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_lookupCompModification2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_lookupCompModification2omc_Mod_lookupCompModification2,0}};
350#define boxvar_Mod_lookupCompModification2((void*)((char*)(&(boxvar_lit_Mod_lookupCompModification2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_lookupCompModification2)((void*)((char*)(&(boxvar_lit_Mod_lookupCompModification2
).header) + 3))
351PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_isSubModNamed(threadData_t *threadData, modelica_string _inIdent, modelica_metatype _inSubMod);
352PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_isSubModNamed(threadData_t *threadData, modelica_metatype _inIdent, modelica_metatype _inSubMod);
353static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_isSubModNamed,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_isSubModNamed
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_isSubModNamed,0}};
354#define boxvar_Mod_isSubModNamed((void*)((char*)(&(boxvar_lit_Mod_isSubModNamed).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_isSubModNamed)((void*)((char*)(&(boxvar_lit_Mod_isSubModNamed).header) +
3))
355PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_lookupNamedSubMod(threadData_t *threadData, modelica_metatype _inSubMods, modelica_string _inIdent);
356static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_lookupNamedSubMod,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_lookupNamedSubMod
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_lookupNamedSubModomc_Mod_lookupNamedSubMod,0}};
357#define boxvar_Mod_lookupNamedSubMod((void*)((char*)(&(boxvar_lit_Mod_lookupNamedSubMod).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_lookupNamedSubMod)((void*)((char*)(&(boxvar_lit_Mod_lookupNamedSubMod).header
) + 3))
358PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_modEqualNoPrefix(threadData_t *threadData, modelica_metatype _mod1, modelica_metatype _mod2, modelica_boolean *out_equal);
359PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_modEqualNoPrefix(threadData_t *threadData, modelica_metatype _mod1, modelica_metatype _mod2, modelica_metatype *out_equal);
360static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_modEqualNoPrefix,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_modEqualNoPrefix
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_modEqualNoPrefix,0}};
361#define boxvar_Mod_modEqualNoPrefix((void*)((char*)(&(boxvar_lit_Mod_modEqualNoPrefix).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_modEqualNoPrefix)((void*)((char*)(&(boxvar_lit_Mod_modEqualNoPrefix).header
) + 3))
362PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_mergeRedeclareWithBinding(threadData_t *threadData, modelica_metatype _inRedeclare, modelica_metatype _inBinding);
363static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_mergeRedeclareWithBinding,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_mergeRedeclareWithBinding
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_mergeRedeclareWithBindingomc_Mod_mergeRedeclareWithBinding,0}};
364#define boxvar_Mod_mergeRedeclareWithBinding((void*)((char*)(&(boxvar_lit_Mod_mergeRedeclareWithBinding
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_mergeRedeclareWithBinding)((void*)((char*)(&(boxvar_lit_Mod_mergeRedeclareWithBinding
).header) + 3))
365PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_checkDuplicateModifications2(threadData_t *threadData, modelica_metatype _inSubMods1, modelica_metatype _inSubMods2, modelica_string _inName);
366static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_checkDuplicateModifications2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_checkDuplicateModifications2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_checkDuplicateModifications2omc_Mod_checkDuplicateModifications2,0}};
367#define boxvar_Mod_checkDuplicateModifications2((void*)((char*)(&(boxvar_lit_Mod_checkDuplicateModifications2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_checkDuplicateModifications2)((void*)((char*)(&(boxvar_lit_Mod_checkDuplicateModifications2
).header) + 3))
368PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_checkDuplicateModifications(threadData_t *threadData, modelica_metatype _mod1, modelica_metatype _mod2, modelica_string _n);
369static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_checkDuplicateModifications,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_checkDuplicateModifications
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_checkDuplicateModificationsomc_Mod_checkDuplicateModifications,0}};
370#define boxvar_Mod_checkDuplicateModifications((void*)((char*)(&(boxvar_lit_Mod_checkDuplicateModifications
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_checkDuplicateModifications)((void*)((char*)(&(boxvar_lit_Mod_checkDuplicateModifications
).header) + 3))
371PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_lookupComplexCompModification(threadData_t *threadData, modelica_metatype _inEqMod, modelica_string _inName, modelica_metatype _inFinal, modelica_metatype _inEach, modelica_metatype _inInfo);
372static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_lookupComplexCompModification,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_lookupComplexCompModification
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_lookupComplexCompModificationomc_Mod_lookupComplexCompModification,0}};
373#define boxvar_Mod_lookupComplexCompModification((void*)((char*)(&(boxvar_lit_Mod_lookupComplexCompModification
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_lookupComplexCompModification)((void*)((char*)(&(boxvar_lit_Mod_lookupComplexCompModification
).header) + 3))
374PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_selectEqMod(threadData_t *threadData, modelica_metatype _subMod, modelica_metatype _eqMod, modelica_string _n);
375static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_selectEqMod,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_selectEqMod
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_selectEqModomc_Mod_selectEqMod,0}};
376#define boxvar_Mod_selectEqMod((void*)((char*)(&(boxvar_lit_Mod_selectEqMod).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_selectEqMod)((void*)((char*)(&(boxvar_lit_Mod_selectEqMod).header) + 3
))
377PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_mergeSubMods(threadData_t *threadData, modelica_metatype _inMods, modelica_metatype _inMod, modelica_metatype _f, modelica_metatype _e, modelica_metatype _inSMods);
378static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_mergeSubMods,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_mergeSubMods
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_mergeSubModsomc_Mod_mergeSubMods,0}};
379#define boxvar_Mod_mergeSubMods((void*)((char*)(&(boxvar_lit_Mod_mergeSubMods).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_mergeSubMods)((void*)((char*)(&(boxvar_lit_Mod_mergeSubMods).header) +
3))
380PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_mergeModifiers(threadData_t *threadData, modelica_metatype _inMods, modelica_metatype _inMod, modelica_metatype _inSMod);
381static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_mergeModifiers,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_mergeModifiers
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_mergeModifiersomc_Mod_mergeModifiers,0}};
382#define boxvar_Mod_mergeModifiers((void*)((char*)(&(boxvar_lit_Mod_mergeModifiers).header)
+ 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_mergeModifiers)((void*)((char*)(&(boxvar_lit_Mod_mergeModifiers).header)
+ 3))
383PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_elabUntypedSubmod(threadData_t *threadData, modelica_metatype _inSubMod);
384static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_elabUntypedSubmod,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_elabUntypedSubmod
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_elabUntypedSubmodomc_Mod_elabUntypedSubmod,0}};
385#define boxvar_Mod_elabUntypedSubmod((void*)((char*)(&(boxvar_lit_Mod_elabUntypedSubmod).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_elabUntypedSubmod)((void*)((char*)(&(boxvar_lit_Mod_elabUntypedSubmod).header
) + 3))
386PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_elabUntypedSubmods(threadData_t *threadData, modelica_metatype _inSubMods, modelica_metatype _inModScope);
387static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_elabUntypedSubmods,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_elabUntypedSubmods
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_elabUntypedSubmodsomc_Mod_elabUntypedSubmods,0}};
388#define boxvar_Mod_elabUntypedSubmods((void*)((char*)(&(boxvar_lit_Mod_elabUntypedSubmods).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_elabUntypedSubmods)((void*)((char*)(&(boxvar_lit_Mod_elabUntypedSubmods).header
) + 3))
389PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_elabSubmod(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inSubMod, modelica_boolean _inBoolean, modelica_metatype _info, modelica_metatype *out_outSubMod);
390PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_elabSubmod(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inSubMod, modelica_metatype _inBoolean, modelica_metatype _info, modelica_metatype *out_outSubMod);
391static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_elabSubmod,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_elabSubmod
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_elabSubmod,0}};
392#define boxvar_Mod_elabSubmod((void*)((char*)(&(boxvar_lit_Mod_elabSubmod).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_elabSubmod)((void*)((char*)(&(boxvar_lit_Mod_elabSubmod).header) + 3
))
393PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_printModScope(threadData_t *threadData, modelica_metatype _inModScope);
394static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_printModScope,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_printModScope
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_printModScopeomc_Mod_printModScope,0}};
395#define boxvar_Mod_printModScope((void*)((char*)(&(boxvar_lit_Mod_printModScope).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_printModScope)((void*)((char*)(&(boxvar_lit_Mod_printModScope).header) +
3))
396PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_mergeSubModsInSameScope(threadData_t *threadData, modelica_metatype _inMod1, modelica_metatype _inMod2, modelica_metatype _inElementName, modelica_metatype _inModScope);
397static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_mergeSubModsInSameScope,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_mergeSubModsInSameScope
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_mergeSubModsInSameScopeomc_Mod_mergeSubModsInSameScope,0}};
398#define boxvar_Mod_mergeSubModsInSameScope((void*)((char*)(&(boxvar_lit_Mod_mergeSubModsInSameScope
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_mergeSubModsInSameScope)((void*)((char*)(&(boxvar_lit_Mod_mergeSubModsInSameScope
).header) + 3))
399PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_compactSubMod2(threadData_t *threadData, modelica_metatype _inExistingMod, modelica_metatype _inNewMod, modelica_metatype _inModScope, modelica_metatype _inName, modelica_boolean *out_outFound);
400PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_compactSubMod2(threadData_t *threadData, modelica_metatype _inExistingMod, modelica_metatype _inNewMod, modelica_metatype _inModScope, modelica_metatype _inName, modelica_metatype *out_outFound);
401static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_compactSubMod2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_compactSubMod2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_compactSubMod2,0}};
402#define boxvar_Mod_compactSubMod2((void*)((char*)(&(boxvar_lit_Mod_compactSubMod2).header)
+ 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_compactSubMod2)((void*)((char*)(&(boxvar_lit_Mod_compactSubMod2).header)
+ 3))
403PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_compactSubMod(threadData_t *threadData, modelica_metatype _inSubMod, modelica_metatype _inModScope, modelica_metatype _inName, modelica_metatype _inAccumMods);
404static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_compactSubMod,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_compactSubMod
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_compactSubModomc_Mod_compactSubMod,0}};
405#define boxvar_Mod_compactSubMod((void*)((char*)(&(boxvar_lit_Mod_compactSubMod).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_compactSubMod)((void*)((char*)(&(boxvar_lit_Mod_compactSubMod).header) +
3))
406PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_compactSubMods(threadData_t *threadData, modelica_metatype _inSubMods, modelica_metatype _inModScope);
407static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_compactSubMods,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_compactSubMods
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_compactSubModsomc_Mod_compactSubMods,0}};
408#define boxvar_Mod_compactSubMods((void*)((char*)(&(boxvar_lit_Mod_compactSubMods).header)
+ 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_compactSubMods)((void*)((char*)(&(boxvar_lit_Mod_compactSubMods).header)
+ 3))
409PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_elabSubmods2(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inSubMods, modelica_boolean _inImpl, modelica_metatype _inInfo, modelica_metatype _inAccumMods, modelica_metatype *out_outSubMods);
410PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_elabSubmods2(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inSubMods, modelica_metatype _inImpl, modelica_metatype _inInfo, modelica_metatype _inAccumMods, modelica_metatype *out_outSubMods);
411static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_elabSubmods2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_elabSubmods2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_elabSubmods2,0}};
412#define boxvar_Mod_elabSubmods2((void*)((char*)(&(boxvar_lit_Mod_elabSubmods2).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_elabSubmods2)((void*)((char*)(&(boxvar_lit_Mod_elabSubmods2).header) +
3))
413PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_elabSubmods(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inSCodeSubModLst, modelica_boolean _inBoolean, modelica_metatype _inModScope, modelica_metatype _info, modelica_metatype *out_outTypesSubModLst);
414PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_elabSubmods(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inSCodeSubModLst, modelica_metatype _inBoolean, modelica_metatype _inModScope, modelica_metatype _info, modelica_metatype *out_outTypesSubModLst);
415static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_elabSubmods,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_elabSubmods
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_elabSubmods,0}};
416#define boxvar_Mod_elabSubmods((void*)((char*)(&(boxvar_lit_Mod_elabSubmods).header) + 3
))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_elabSubmods)((void*)((char*)(&(boxvar_lit_Mod_elabSubmods).header) + 3
))
417PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_updateSubmods(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inTypesSubModLst, modelica_boolean _inBoolean, modelica_metatype _info, modelica_metatype *out_outTypesSubModLst);
418PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_updateSubmods(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inTypesSubModLst, modelica_metatype _inBoolean, modelica_metatype _info, modelica_metatype *out_outTypesSubModLst);
419static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_updateSubmods,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_updateSubmods
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_updateSubmods,0}};
420#define boxvar_Mod_updateSubmods((void*)((char*)(&(boxvar_lit_Mod_updateSubmods).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_updateSubmods)((void*)((char*)(&(boxvar_lit_Mod_updateSubmods).header) +
3))
421PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_unelabSubscript(threadData_t *threadData, modelica_metatype _inIntegerLst);
422static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_unelabSubscript,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_unelabSubscript
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_unelabSubscriptomc_Mod_unelabSubscript,0}};
423#define boxvar_Mod_unelabSubscript((void*)((char*)(&(boxvar_lit_Mod_unelabSubscript).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_unelabSubscript)((void*)((char*)(&(boxvar_lit_Mod_unelabSubscript).header
) + 3))
424PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_unelabSubmods(threadData_t *threadData, modelica_metatype _inTypesSubModLst);
425static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_unelabSubmods,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_unelabSubmods
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_unelabSubmodsomc_Mod_unelabSubmods,0}};
426#define boxvar_Mod_unelabSubmods((void*)((char*)(&(boxvar_lit_Mod_unelabSubmods).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_unelabSubmods)((void*)((char*)(&(boxvar_lit_Mod_unelabSubmods).header) +
3))
427PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_elabModValue(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _inProp, modelica_boolean _inImpl, modelica_metatype _inInfo, modelica_metatype *out_outCache);
428PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_elabModValue(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inExp, modelica_metatype _inProp, modelica_metatype _inImpl, modelica_metatype _inInfo, modelica_metatype *out_outCache);
429static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_elabModValue,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_elabModValue
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_elabModValue,0}};
430#define boxvar_Mod_elabModValue((void*)((char*)(&(boxvar_lit_Mod_elabModValue).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_elabModValue)((void*)((char*)(&(boxvar_lit_Mod_elabModValue).header) +
3))
431PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_elabModQualifyTypespec(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_boolean _impl, modelica_metatype _info, modelica_string _name, modelica_metatype _tp, modelica_metatype *out_outTp);
432PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_elabModQualifyTypespec(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _impl, modelica_metatype _info, modelica_metatype _name, modelica_metatype _tp, modelica_metatype *out_outTp);
433static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_elabModQualifyTypespec,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_elabModQualifyTypespec
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_elabModQualifyTypespec,0}};
434#define boxvar_Mod_elabModQualifyTypespec((void*)((char*)(&(boxvar_lit_Mod_elabModQualifyTypespec)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_elabModQualifyTypespec)((void*)((char*)(&(boxvar_lit_Mod_elabModQualifyTypespec)
.header) + 3))
435PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_elabModRedeclareElement(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _finalPrefix, modelica_metatype _inElt, modelica_boolean _impl, modelica_metatype _inModScope, modelica_metatype _info, modelica_metatype *out_outMod);
436PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_elabModRedeclareElement(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _finalPrefix, modelica_metatype _inElt, modelica_metatype _impl, modelica_metatype _inModScope, modelica_metatype _info, modelica_metatype *out_outMod);
437static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_elabModRedeclareElement,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_elabModRedeclareElement
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_elabModRedeclareElement,0}};
438#define boxvar_Mod_elabModRedeclareElement((void*)((char*)(&(boxvar_lit_Mod_elabModRedeclareElement
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_elabModRedeclareElement)((void*)((char*)(&(boxvar_lit_Mod_elabModRedeclareElement
).header) + 3))
439PROTECTED_FUNCTION_STATIC void omc_Mod_checkIfSubmodsAreBasicTypeMods(threadData_t *threadData, modelica_metatype _inSubs);
440static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_checkIfSubmodsAreBasicTypeMods,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_checkIfSubmodsAreBasicTypeMods
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_checkIfSubmodsAreBasicTypeModsomc_Mod_checkIfSubmodsAreBasicTypeMods,0}};
441#define boxvar_Mod_checkIfSubmodsAreBasicTypeMods((void*)((char*)(&(boxvar_lit_Mod_checkIfSubmodsAreBasicTypeMods
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_checkIfSubmodsAreBasicTypeMods)((void*)((char*)(&(boxvar_lit_Mod_checkIfSubmodsAreBasicTypeMods
).header) + 3))
442PROTECTED_FUNCTION_STATIC void omc_Mod_checkIfModsAreBasicTypeMods(threadData_t *threadData, modelica_metatype _mod);
443static const MMC_DEFSTRUCTLIT(boxvar_lit_Mod_checkIfModsAreBasicTypeMods,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_Mod_checkIfModsAreBasicTypeMods
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_Mod_checkIfModsAreBasicTypeModsomc_Mod_checkIfModsAreBasicTypeMods,0}};
444#define boxvar_Mod_checkIfModsAreBasicTypeMods((void*)((char*)(&(boxvar_lit_Mod_checkIfModsAreBasicTypeMods
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_Mod_checkIfModsAreBasicTypeMods)((void*)((char*)(&(boxvar_lit_Mod_checkIfModsAreBasicTypeMods
).header) + 3))
445
446PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_unparseBindingStr(threadData_t *threadData, modelica_metatype _inBinding)
447{
448 modelica_string _outString = NULL((void*)0);
449 modelica_string tmp1 = 0;
450 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
451 MMC_SO()mmc_check_stackoverflow(threadData);
452 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
453 // _outString has no default value.
454#line 454 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
455 { /* match expression */
456 modelica_metatype tmp4_1;
457 tmp4_1 = _inBinding;
458 {
459 modelica_metatype _exp = NULL((void*)0);
460 volatile mmc_switch_type tmp4;
461 int tmp5;
462 // _exp has no default value.
463 tmp4 = 0;
464 for (; tmp4 < 3; tmp4++) {
465 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
466 case 0: {
467 if (!optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
468 /* Pattern matching succeeded */
469#line 3199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
470 tmp1 = _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3));
471#line 471 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
472 goto tmp3_done;
473 }
474 case 1: {
475 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
476 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
477 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
478 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
479
480 _exp = tmpMeta[1];
481 /* Pattern matching succeeded */
482#line 3200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
483 tmpMeta[0] = stringAppend(_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),omc_Dump_printExpStr(threadData, _exp));
484#line 3200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
485 tmp1 = tmpMeta[0];
486#line 486 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
487 goto tmp3_done;
488 }
489 case 2: {
490 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
491 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
492 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
493 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
494 _exp = tmpMeta[1];
495 /* Pattern matching succeeded */
496#line 3201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
497 tmpMeta[0] = stringAppend(_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),omc_Dump_printExpStr(threadData, _exp));
498#line 3201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
499 tmp1 = tmpMeta[0];
500#line 500 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
501 goto tmp3_done;
502 }
503 }
504 goto tmp3_end;
505 tmp3_end: ;
506 }
507 goto goto_2;
508 goto_2:;
509 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
510 goto tmp3_done;
511 tmp3_done:;
512 }
513 }
514 _outString = tmp1;
515 _return: OMC_LABEL_UNUSED__attribute__((unused))
516 return _outString;
517}
518
519PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_unparseSubModStr(threadData_t *threadData, modelica_metatype _inSubMod)
520{
521 modelica_string _outString = NULL((void*)0);
522 modelica_string tmp1 = 0;
523 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
524 MMC_SO()mmc_check_stackoverflow(threadData);
525 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
526 // _outString has no default value.
527#line 527 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
528 { /* match expression */
529 modelica_metatype tmp4_1;
530 tmp4_1 = _inSubMod;
Value stored to 'tmp4_1' is never read
531 {
532 volatile mmc_switch_type tmp4;
533 int tmp5;
534 tmp4 = 0;
535 for (; tmp4 < 1; tmp4++) {
536 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
537 case 0: {
538
539 /* Pattern matching succeeded */
540#line 3187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
541 tmpMeta[0] = stringAppend((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inSubMod), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inSubMod) - 3)
)) + (2)))))
),_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
542#line 3187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
543 tmpMeta[1] = stringAppend(tmpMeta[0],omc_Mod_unparseModStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inSubMod), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_inSubMod) - 3)
)) + (3)))))
)));
544#line 3187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
545 tmp1 = tmpMeta[1];
546#line 546 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
547 goto tmp3_done;
548 }
549 }
550 goto tmp3_end;
551 tmp3_end: ;
552 }
553 goto goto_2;
554 goto_2:;
555 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
556 goto tmp3_done;
557 tmp3_done:;
558 }
559 }
560 _outString = tmp1;
561 _return: OMC_LABEL_UNUSED__attribute__((unused))
562 return _outString;
563}
564
565DLLExport
566modelica_string omc_Mod_unparseModStr(threadData_t *threadData, modelica_metatype _inMod)
567{
568 modelica_string _outString = NULL((void*)0);
569 modelica_string tmp1 = 0;
570 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
571 MMC_SO()mmc_check_stackoverflow(threadData);
572 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
573 // _outString has no default value.
574#line 574 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
575 { /* match expression */
576 modelica_metatype tmp4_1;
577 tmp4_1 = _inMod;
578 {
579 modelica_string _final_str = NULL((void*)0);
580 modelica_string _each_str = NULL((void*)0);
581 modelica_string _sub_str = NULL((void*)0);
582 modelica_string _binding_str = NULL((void*)0);
583 modelica_string _el_str = NULL((void*)0);
584 int tmp4;
585 // _final_str has no default value.
586 // _each_str has no default value.
587 // _sub_str has no default value.
588 // _binding_str has no default value.
589 // _el_str has no default value.
590 {
591 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
592 case 5: {
593
594 /* Pattern matching succeeded */
595#line 3160 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
596 tmp1 = _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3));
597#line 597 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
598 goto tmp3_done;
599 }
600 case 3: {
601
602 /* Pattern matching succeeded */
603#line 3164 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
604 _final_str = (omc_SCodeUtil_finalBool(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inMod), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inMod) - 3))) +
(2)))))
))?_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)):_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)));
605#line 605 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
606
607#line 3165 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
608 _each_str = (omc_SCodeUtil_eachBool(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inMod), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_inMod) - 3))) +
(3)))))
))?_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)):_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)));
609#line 609 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
610
611#line 3166 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
612 _sub_str = omc_List_toString(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inMod), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_inMod) - 3))) +
(4)))))
), boxvar_Mod_unparseSubModStr((void*)((char*)(&(boxvar_lit_Mod_unparseSubModStr).header
) + 3))
, _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)), _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)), _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)), _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)), 0);
613#line 613 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
614
615#line 3167 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
616 _binding_str = omc_Mod_unparseBindingStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inMod), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_inMod) - 3))) +
(5)))))
));
617#line 617 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
618#line 3168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
619 tmpMeta[0] = stringAppend(_final_str,_each_str);
620#line 3168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
621 tmpMeta[1] = stringAppend(tmpMeta[0],_sub_str);
622#line 3168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
623 tmpMeta[2] = stringAppend(tmpMeta[1],_binding_str);
624#line 3168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
625 tmp1 = tmpMeta[2];
626#line 626 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
627 goto tmp3_done;
628 }
629 case 4: {
630
631 /* Pattern matching succeeded */
632#line 3173 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
633 _final_str = (omc_SCodeUtil_finalBool(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inMod), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_inMod) - 3))) +
(2)))))
))?_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)):_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)));
634#line 634 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
635
636#line 3174 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
637 _each_str = (omc_SCodeUtil_eachBool(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inMod), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_inMod) - 3))) +
(3)))))
))?_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)):_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)));
638#line 638 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
639
640#line 3175 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
641 _el_str = omc_SCodeDump_unparseElementStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inMod), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_inMod) - 3))) +
(4)))))
), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
642#line 642 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
643#line 3176 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
644 tmpMeta[0] = stringAppend(_final_str,_each_str);
645#line 3176 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
646 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)));
647#line 3176 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
648 tmpMeta[2] = stringAppend(tmpMeta[1],_el_str);
649#line 3176 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
650 tmp1 = tmpMeta[2];
651#line 651 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
652 goto tmp3_done;
653 }
654 }
655 goto tmp3_end;
656 tmp3_end: ;
657 }
658 goto goto_2;
659 goto_2:;
660 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
661 goto tmp3_done;
662 tmp3_done:;
663 }
664 }
665 _outString = tmp1;
666 _return: OMC_LABEL_UNUSED__attribute__((unused))
667 return _outString;
668}
669
670PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_filterRedeclaresSubMods(threadData_t *threadData, modelica_metatype _inSubMods)
671{
672 modelica_metatype _outSubMods = NULL((void*)0);
673 modelica_string _id = NULL((void*)0);
674 modelica_metatype _mod = NULL((void*)0);
675 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
676 MMC_SO()mmc_check_stackoverflow(threadData);
677 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
678 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
679 _outSubMods = tmpMeta[0];
680 // _id has no default value.
681 // _mod has no default value.
682#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
683 {
684#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
685 modelica_metatype _submod;
686#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
687 for (tmpMeta[1] = _inSubMods; !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)))))
)
688#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
689 {
690#line 3140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
691 _submod = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
692#line 3141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
693 /* Pattern-matching assignment */
694#line 3141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
695 tmpMeta[2] = _submod;
696#line 3141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
697 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
698#line 3141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
699 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
700#line 3141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
701 _id = tmpMeta[3];
702#line 3141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
703 _mod = tmpMeta[4];
704#line 704 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
705
706#line 3142 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
707 _mod = omc_Mod_filterRedeclares(threadData, _mod);
708#line 708 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
709
710#line 3144 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
711 if(omc_Mod_isRedeclareMod(threadData, _mod))
712#line 3144 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
713 {
714#line 3145 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
715 tmpMeta[3] = mmc_mk_box3(3, &DAE_SubMod_NAMEMOD__desc, _id, _mod);
716#line 3145 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
717 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], _outSubMods);
718#line 3145 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
719 _outSubMods = tmpMeta[2];
720#line 720 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
721 }
722 }
723 }
724
725#line 3149 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
726 _outSubMods = listReverse(_outSubMods);
727#line 727 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
728 _return: OMC_LABEL_UNUSED__attribute__((unused))
729 return _outSubMods;
730}
731
732DLLExport
733modelica_metatype omc_Mod_filterRedeclares(threadData_t *threadData, modelica_metatype _inMod)
734{
735 modelica_metatype _outMod = NULL((void*)0);
736 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
737 MMC_SO()mmc_check_stackoverflow(threadData);
738 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
739 _outMod = _inMod;
740#line 740 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
741 { /* match expression */
742 modelica_metatype tmp3_1;
743 tmp3_1 = _outMod;
744 {
745 volatile mmc_switch_type tmp3;
746 int tmp4;
747 tmp3 = 0;
748 for (; tmp3 < 2; tmp3++) {
749 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
750 case 0: {
751 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;
752
753 /* Pattern matching succeeded */
754#line 3124 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
755 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
756#line 3124 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
757 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outMod)((void*)((char*)(_outMod) - 3)), 7*sizeof(modelica_metatype));
758#line 3124 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
759 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[4] = omc_Mod_filterRedeclaresSubMods(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outMod), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_outMod) - 3)))
+ (4)))))
));
760#line 3124 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
761 _outMod = tmpMeta[1];
762#line 762 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
763
764#line 3125 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
765 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
766#line 3125 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
767 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outMod)((void*)((char*)(_outMod) - 3)), 7*sizeof(modelica_metatype));
768#line 3125 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
769 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[5] = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
770#line 3125 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
771 _outMod = tmpMeta[1];
772#line 772 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
773#line 3126 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
774 tmpMeta[0] = (listEmpty((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outMod), 4))))((*(mmc_uint_t*)((void*)((char*)(((*(void**)(((void*)((void**
)(((void*)((char*)(_outMod) - 3))) + (4))))))) - 3))) == (((0
) << 10) + (((0) & 255) << 2)))
?_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)):_outMod);
775#line 775 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
776 goto tmp2_done;
777 }
778 case 1: {
779
780 /* Pattern matching succeeded */
781#line 3129 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
782 tmpMeta[0] = _outMod;
783#line 783 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
784 goto tmp2_done;
785 }
786 }
787 goto tmp2_end;
788 tmp2_end: ;
789 }
790 goto goto_1;
791 goto_1:;
792 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
793 goto tmp2_done;
794 tmp2_done:;
795 }
796 }
797 _outMod = tmpMeta[0];
798 _return: OMC_LABEL_UNUSED__attribute__((unused))
799 return _outMod;
800}
801
802PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_stripSubModBindings(threadData_t *threadData, modelica_metatype _inSubMods)
803{
804 modelica_metatype _outSubMods = NULL((void*)0);
805 modelica_string _id = NULL((void*)0);
806 modelica_metatype _mod = NULL((void*)0);
807 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
808 MMC_SO()mmc_check_stackoverflow(threadData);
809 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
810 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
811 _outSubMods = tmpMeta[0];
812 // _id has no default value.
813 // _mod has no default value.
814#line 3105 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
815 {
816#line 3105 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
817 modelica_metatype _submod;
818#line 3105 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
819 for (tmpMeta[1] = _inSubMods; !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)))))
)
820#line 3105 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
821 {
822#line 3105 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
823 _submod = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
824#line 3106 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
825 /* Pattern-matching assignment */
826#line 3106 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
827 tmpMeta[2] = _submod;
828#line 3106 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
829 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
830#line 3106 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
831 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
832#line 3106 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
833 _id = tmpMeta[3];
834#line 3106 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
835 _mod = tmpMeta[4];
836#line 836 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
837
838#line 3107 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
839 _mod = omc_Mod_setEqMod(threadData, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), _mod);
840#line 840 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
841
842#line 3109 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
843 if((!omc_Mod_isEmptyMod(threadData, _mod)))
844#line 3109 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
845 {
846#line 3110 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
847 tmpMeta[3] = mmc_mk_box3(3, &DAE_SubMod_NAMEMOD__desc, _id, _mod);
848#line 3110 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
849 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], _outSubMods);
850#line 3110 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
851 _outSubMods = tmpMeta[2];
852#line 852 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
853 }
854 }
855 }
856
857#line 3114 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
858 _outSubMods = listReverse(_outSubMods);
859#line 859 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
860 _return: OMC_LABEL_UNUSED__attribute__((unused))
861 return _outSubMods;
862}
863
864PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_setEqMod(threadData_t *threadData, modelica_metatype _inEqMod, modelica_metatype _inMod)
865{
866 modelica_metatype _outMod = NULL((void*)0);
867 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
868 MMC_SO()mmc_check_stackoverflow(threadData);
869 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
870 _outMod = _inMod;
871#line 871 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
872 { /* match expression */
873 modelica_metatype tmp3_1;
874 tmp3_1 = _outMod;
875 {
876 volatile mmc_switch_type tmp3;
877 int tmp4;
878 tmp3 = 0;
879 for (; tmp3 < 2; tmp3++) {
880 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
881 case 0: {
882 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;
883
884 /* Pattern matching succeeded */
885#line 3090 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
886 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
887#line 3090 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
888 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outMod)((void*)((char*)(_outMod) - 3)), 7*sizeof(modelica_metatype));
889#line 3090 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
890 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[5] = _inEqMod;
891#line 3090 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
892 _outMod = tmpMeta[1];
893#line 893 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
894#line 3091 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
895 tmpMeta[0] = _outMod;
896#line 896 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
897 goto tmp2_done;
898 }
899 case 1: {
900
901 /* Pattern matching succeeded */
902#line 3094 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
903 tmpMeta[0] = _outMod;
904#line 904 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
905 goto tmp2_done;
906 }
907 }
908 goto tmp2_end;
909 tmp2_end: ;
910 }
911 goto goto_1;
912 goto_1:;
913 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
914 goto tmp2_done;
915 tmp2_done:;
916 }
917 }
918 _outMod = tmpMeta[0];
919 _return: OMC_LABEL_UNUSED__attribute__((unused))
920 return _outMod;
921}
922
923PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_subModInfo(threadData_t *threadData, modelica_metatype _inSubMod)
924{
925 modelica_metatype _outInfo = NULL((void*)0);
926 modelica_metatype _mod = NULL((void*)0);
927 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
928 MMC_SO()mmc_check_stackoverflow(threadData);
929 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
930 // _outInfo has no default value.
931 // _mod has no default value.
932#line 3078 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
933 /* Pattern-matching assignment */
934#line 3078 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
935 tmpMeta[0] = _inSubMod;
936#line 3078 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
937 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
938#line 3078 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
939 _mod = tmpMeta[1];
940#line 940 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
941
942#line 3079 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
943 _outInfo = omc_Mod_getModInfo(threadData, _mod);
944#line 944 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
945 _return: OMC_LABEL_UNUSED__attribute__((unused))
946 return _outInfo;
947}
948
949PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_subModIsNamed(threadData_t *threadData, modelica_string _inName, modelica_metatype _inSubMod)
950{
951 modelica_boolean _outNameEq;
952 MMC_SO()mmc_check_stackoverflow(threadData);
953 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
954 // _outNameEq has no default value.
955#line 3069 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
956 _outNameEq = (stringEqual(_inName, omc_Mod_subModName(threadData, _inSubMod))((((((*(mmc_uint_t*)((void*)((char*)(_inName) - 3)))) >>
(3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(omc_Mod_subModName
(threadData, _inSubMod)) - 3)))) >> (3)) - 8)) &&
!mmc_stringCompare(_inName,omc_Mod_subModName(threadData, _inSubMod
)))
);
957#line 957 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
958 _return: OMC_LABEL_UNUSED__attribute__((unused))
959 return _outNameEq;
960}
961PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_subModIsNamed(threadData_t *threadData, modelica_metatype _inName, modelica_metatype _inSubMod)
962{
963 modelica_boolean _outNameEq;
964 modelica_metatype out_outNameEq;
965 _outNameEq = omc_Mod_subModIsNamed(threadData, _inName, _inSubMod);
966 out_outNameEq = mmc_mk_icon(_outNameEq);
967 return out_outNameEq;
968}
969
970PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_subModName(threadData_t *threadData, modelica_metatype _inSubMod)
971{
972 modelica_string _outName = NULL((void*)0);
973 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
974 MMC_SO()mmc_check_stackoverflow(threadData);
975 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
976 // _outName has no default value.
977#line 3061 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
978 /* Pattern-matching assignment */
979#line 3061 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
980 tmpMeta[0] = _inSubMod;
981#line 3061 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
982 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
983#line 3061 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
984 _outName = tmpMeta[1];
985#line 985 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
986 _return: OMC_LABEL_UNUSED__attribute__((unused))
987 return _outName;
988}
989
990PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_subModValue(threadData_t *threadData, modelica_metatype _inSubMod)
991{
992 modelica_metatype _outValue = NULL((void*)0);
993 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
994 MMC_SO()mmc_check_stackoverflow(threadData);
995 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
996 // _outValue has no default value.
997#line 3053 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
998 /* Pattern-matching assignment */
999#line 3053 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1000 tmpMeta[0] = _inSubMod;
1001#line 3053 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1002 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1003#line 3053 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1004 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1005#line 3053 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1006 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
1007#line 3053 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1008 if (optionNone(tmpMeta[2])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[2]) - 3)))) >> 10)) ? 1 : 0)
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1009#line 3053 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1010 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
1011#line 3053 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1012 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1013#line 3053 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1014 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
1015#line 3053 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1016 if (optionNone(tmpMeta[4])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[4]) - 3)))) >> 10)) ? 1 : 0)
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1017#line 3053 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1018 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
1019#line 3053 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1020 _outValue = tmpMeta[5];
1021#line 1021 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1022 _return: OMC_LABEL_UNUSED__attribute__((unused))
1023 return _outValue;
1024}
1025
1026DLLExport
1027modelica_metatype omc_Mod_getClassModifier(threadData_t *threadData, modelica_metatype _inEnv, modelica_string _inName)
1028{
1029 modelica_metatype _outMod = NULL((void*)0);
1030 modelica_metatype _n = NULL((void*)0);
1031 modelica_metatype _mod = NULL((void*)0);
1032 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1033 MMC_SO()mmc_check_stackoverflow(threadData);
1034 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1035 // _outMod has no default value.
1036 // _n has no default value.
1037 // _mod has no default value.
1038#line 1038 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1039 { /* matchcontinue expression */
1040 {
1041 volatile mmc_switch_type tmp3;
1042 int tmp4;
1043 tmp3 = 0;
1044 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) {
1045 tmp2_top:
1046 threadData->mmc_jumper = &new_mmc_jumper;
1047 for (; tmp3 < 2; tmp3++) {
1048 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1049 case 0: {
1050 /* Pattern matching succeeded */
1051#line 3029 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1052 _n = omc_FNode_fromRef(threadData, omc_FNode_child(threadData, omc_FGraph_lastScopeRef(threadData, _inEnv), _inName));
1053#line 1053 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1054
1055#line 3030 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1056 if((!omc_FNode_isInstance(threadData, omc_FNode_fromRef(threadData, omc_FGraph_lastScopeRef(threadData, _inEnv)))))
1057#line 3030 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1058 {
1059#line 3031 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1060 /* Pattern-matching assignment */
1061#line 3031 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1062 tmpMeta[1] = _n;
1063#line 3031 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1064 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
1065#line 3031 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1066 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],3,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((5 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto goto_1;
1067#line 3031 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1068 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (4)))))
;
1069#line 3031 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1070 _mod = tmpMeta[3];
1071#line 1071 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1072
1073#line 3032 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1074 _mod = omc_Mod_removeMod(threadData, _mod, _inName);
1075#line 1075 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1076 }
1077 else
1078 {
1079#line 3040 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1080 _mod = _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3));
1081#line 1081 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1082 }
1083#line 3042 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1084 tmpMeta[0] = _mod;
1085#line 1085 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1086 goto tmp2_done;
1087 }
1088 case 1: {
1089 /* Pattern matching succeeded */
1090#line 3044 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1091 tmpMeta[0] = _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3));
1092#line 1092 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1093 goto tmp2_done;
1094 }
1095 }
1096 goto tmp2_end;
1097 tmp2_end: ;
1098 }
1099 goto goto_1;
1100 tmp2_done:
1101 (void)tmp3;
1102 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1103 goto tmp2_done2;
1104 goto_1:;
1105 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1106 if (++tmp3 < 2) {
1107 goto tmp2_top;
1108 }
1109 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1110 tmp2_done2:;
1111 }
1112 }
1113 _outMod = tmpMeta[0];
1114 _return: OMC_LABEL_UNUSED__attribute__((unused))
1115 return _outMod;
1116}
1117
1118DLLExport
1119modelica_boolean omc_Mod_isRedeclareMod(threadData_t *threadData, modelica_metatype _inMod)
1120{
1121 modelica_boolean _yes;
1122 modelica_boolean tmp1 = 0;
1123 MMC_SO()mmc_check_stackoverflow(threadData);
1124 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1125 // _yes has no default value.
1126#line 1126 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1127 { /* match expression */
1128 modelica_metatype tmp4_1;
1129 tmp4_1 = _inMod;
1130 {
1131 volatile mmc_switch_type tmp4;
1132 int tmp5;
1133 tmp4 = 0;
1134 for (; tmp4 < 2; tmp4++) {
1135 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1136 case 0: {
1137 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1138
1139 /* Pattern matching succeeded */
1140#line 3010 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1141 tmp1 = 1;
1142#line 1142 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1143 goto tmp3_done;
1144 }
1145 case 1: {
1146
1147 /* Pattern matching succeeded */
1148#line 3011 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1149 tmp1 = 0;
1150#line 1150 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1151 goto tmp3_done;
1152 }
1153 }
1154 goto tmp3_end;
1155 tmp3_end: ;
1156 }
1157 goto goto_2;
1158 goto_2:;
1159 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1160 goto tmp3_done;
1161 tmp3_done:;
1162 }
1163 }
1164 _yes = tmp1;
1165 _return: OMC_LABEL_UNUSED__attribute__((unused))
1166 return _yes;
1167}
1168modelica_metatype boxptr_Mod_isRedeclareMod(threadData_t *threadData, modelica_metatype _inMod)
1169{
1170 modelica_boolean _yes;
1171 modelica_metatype out_yes;
1172 _yes = omc_Mod_isRedeclareMod(threadData, _inMod);
1173 out_yes = mmc_mk_icon(_yes);
1174 return out_yes;
1175}
1176
1177DLLExport
1178modelica_metatype omc_Mod_getModInfo(threadData_t *threadData, modelica_metatype _inMod)
1179{
1180 modelica_metatype _outInfo = NULL((void*)0);
1181 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1182 MMC_SO()mmc_check_stackoverflow(threadData);
1183 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1184 // _outInfo has no default value.
1185#line 1185 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1186 { /* match expression */
1187 modelica_metatype tmp3_1;
1188 tmp3_1 = _inMod;
1189 {
1190 modelica_metatype _info = NULL((void*)0);
1191 int tmp3;
1192 // _info has no default value.
1193 {
1194 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
1195 case 3: {
1196
1197 /* Pattern matching succeeded */
1198#line 2999 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1199 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inMod), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_inMod) - 3))) +
(6)))))
);
1200#line 1200 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1201 goto tmp2_done;
1202 }
1203 case 4: {
1204
1205 /* Pattern matching succeeded */
1206#line 3000 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1207 tmpMeta[0] = omc_SCodeUtil_elementInfo(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inMod), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_inMod) - 3))) +
(4)))))
));
1208#line 1208 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1209 goto tmp2_done;
1210 }
1211 default:
1212 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
1213
1214 /* Pattern matching succeeded */
1215#line 3001 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1216 tmpMeta[0] = _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3));
1217#line 1217 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1218 goto tmp2_done;
1219 }
1220 }
1221 goto tmp2_end;
1222 tmp2_end: ;
1223 }
1224 goto goto_1;
1225 goto_1:;
1226 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1227 goto tmp2_done;
1228 tmp2_done:;
1229 }
1230 }
1231 _outInfo = tmpMeta[0];
1232 _return: OMC_LABEL_UNUSED__attribute__((unused))
1233 return _outInfo;
1234}
1235
1236DLLExport
1237modelica_boolean omc_Mod_isNoMod(threadData_t *threadData, modelica_metatype _inMod)
1238{
1239 modelica_boolean _outIsNoMod;
1240 modelica_boolean tmp1 = 0;
1241 MMC_SO()mmc_check_stackoverflow(threadData);
1242 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1243 // _outIsNoMod has no default value.
1244#line 1244 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1245 { /* match expression */
1246 modelica_metatype tmp4_1;
1247 tmp4_1 = _inMod;
1248 {
1249 volatile mmc_switch_type tmp4;
1250 int tmp5;
1251 tmp4 = 0;
1252 for (; tmp4 < 2; tmp4++) {
1253 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1254 case 0: {
1255 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1256 /* Pattern matching succeeded */
1257#line 2985 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1258 tmp1 = 1;
1259#line 1259 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1260 goto tmp3_done;
1261 }
1262 case 1: {
1263
1264 /* Pattern matching succeeded */
1265#line 2986 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1266 tmp1 = 0;
1267#line 1267 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1268 goto tmp3_done;
1269 }
1270 }
1271 goto tmp3_end;
1272 tmp3_end: ;
1273 }
1274 goto goto_2;
1275 goto_2:;
1276 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1277 goto tmp3_done;
1278 tmp3_done:;
1279 }
1280 }
1281 _outIsNoMod = tmp1;
1282 _return: OMC_LABEL_UNUSED__attribute__((unused))
1283 return _outIsNoMod;
1284}
1285modelica_metatype boxptr_Mod_isNoMod(threadData_t *threadData, modelica_metatype _inMod)
1286{
1287 modelica_boolean _outIsNoMod;
1288 modelica_metatype out_outIsNoMod;
1289 _outIsNoMod = omc_Mod_isNoMod(threadData, _inMod);
1290 out_outIsNoMod = mmc_mk_icon(_outIsNoMod);
1291 return out_outIsNoMod;
1292}
1293
1294DLLExport
1295modelica_boolean omc_Mod_isEmptyMod(threadData_t *threadData, modelica_metatype _inMod)
1296{
1297 modelica_boolean _isEmpty;
1298 modelica_boolean tmp1 = 0;
1299 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1300 MMC_SO()mmc_check_stackoverflow(threadData);
1301 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1302 // _isEmpty has no default value.
1303#line 1303 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1304 { /* match expression */
1305 modelica_metatype tmp4_1;
1306 tmp4_1 = _inMod;
1307 {
1308 volatile mmc_switch_type tmp4;
1309 int tmp5;
1310 tmp4 = 0;
1311 for (; tmp4 < 3; tmp4++) {
1312 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1313 case 0: {
1314 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1315 /* Pattern matching succeeded */
1316#line 2973 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1317 tmp1 = 1;
1318#line 1318 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1319 goto tmp3_done;
1320 }
1321 case 1: {
1322 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1323 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
1324 if (!listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1325 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
1326 if (!optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
1327
1328 /* Pattern matching succeeded */
1329#line 2975 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1330 tmp1 = 1;
1331#line 1331 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1332 goto tmp3_done;
1333 }
1334 case 2: {
1335
1336 /* Pattern matching succeeded */
1337#line 2976 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1338 tmp1 = 0;
1339#line 1339 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1340 goto tmp3_done;
1341 }
1342 }
1343 goto tmp3_end;
1344 tmp3_end: ;
1345 }
1346 goto goto_2;
1347 goto_2:;
1348 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1349 goto tmp3_done;
1350 tmp3_done:;
1351 }
1352 }
1353 _isEmpty = tmp1;
1354 _return: OMC_LABEL_UNUSED__attribute__((unused))
1355 return _isEmpty;
1356}
1357modelica_metatype boxptr_Mod_isEmptyMod(threadData_t *threadData, modelica_metatype _inMod)
1358{
1359 modelica_boolean _isEmpty;
1360 modelica_metatype out_isEmpty;
1361 _isEmpty = omc_Mod_isEmptyMod(threadData, _inMod);
1362 out_isEmpty = mmc_mk_icon(_isEmpty);
1363 return out_isEmpty;
1364}
1365
1366DLLExport
1367modelica_metatype omc_Mod_addEachToSubsIfNeeded(threadData_t *threadData, modelica_metatype _inSubMods, modelica_metatype _inDimensions)
1368{
1369 modelica_metatype _outSubMods = NULL((void*)0);
1370 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
1371 MMC_SO()mmc_check_stackoverflow(threadData);
1372 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1373 // _outSubMods has no default value.
1374#line 1374 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1375 { /* match expression */
1376 modelica_metatype tmp3_1;modelica_metatype tmp3_2;
1377 tmp3_1 = _inSubMods;
1378 tmp3_2 = _inDimensions;
1379 {
1380 modelica_metatype _rest = NULL((void*)0);
1381 modelica_metatype _m = NULL((void*)0);
1382 modelica_string _id = NULL((void*)0);
1383 volatile mmc_switch_type tmp3;
1384 int tmp4;
1385 // _rest has no default value.
1386 // _m has no default value.
1387 // _id has no default value.
1388 tmp3 = 0;
1389 for (; tmp3 < 3; tmp3++) {
1390 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1391 case 0: {
1392 if (!listEmpty(tmp3_2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1393
1394 /* Pattern matching succeeded */
1395#line 2952 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1396 tmpMeta[0] = _inSubMods;
1397#line 1397 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1398 goto tmp2_done;
1399 }
1400 case 1: {
1401 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1402
1403 /* Pattern matching succeeded */
1404#line 2954 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1405 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1406#line 2954 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1407 tmpMeta[0] = tmpMeta[1];
1408#line 1408 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1409 goto tmp2_done;
1410 }
1411 case 2: {
1412 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1413 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1414 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1415 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1416 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
1417
1418 _id = tmpMeta[3];
1419 _m = tmpMeta[4];
1420 _rest = tmpMeta[2];
1421 /* Pattern matching succeeded */
1422#line 2958 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1423 _m = omc_Mod_addEachOneLevel(threadData, _m);
1424#line 1424 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1425
1426#line 2959 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1427 _rest = omc_Mod_addEachToSubsIfNeeded(threadData, _rest, _inDimensions);
1428#line 1428 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1429#line 2960 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1430 tmpMeta[2] = mmc_mk_box3(3, &DAE_SubMod_NAMEMOD__desc, _id, _m);
1431#line 2960 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1432 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _rest);
1433#line 2960 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1434 tmpMeta[0] = tmpMeta[1];
1435#line 1435 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1436 goto tmp2_done;
1437 }
1438 }
1439 goto tmp2_end;
1440 tmp2_end: ;
1441 }
1442 goto goto_1;
1443 goto_1:;
1444 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1445 goto tmp2_done;
1446 tmp2_done:;
1447 }
1448 }
1449 _outSubMods = tmpMeta[0];
1450 _return: OMC_LABEL_UNUSED__attribute__((unused))
1451 return _outSubMods;
1452}
1453
1454DLLExport
1455modelica_metatype omc_Mod_addEachOneLevel(threadData_t *threadData, modelica_metatype _inMod)
1456{
1457 modelica_metatype _outMod = NULL((void*)0);
1458 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
1459 MMC_SO()mmc_check_stackoverflow(threadData);
1460 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1461 // _outMod has no default value.
1462#line 1462 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1463 { /* matchcontinue expression */
1464 volatile modelica_metatype tmp3_1;
1465 tmp3_1 = _inMod;
1466 {
1467 modelica_metatype _finalPrefix = NULL((void*)0);
1468 modelica_metatype _el = NULL((void*)0);
1469 modelica_metatype _mod = NULL((void*)0);
1470 modelica_metatype _subs = NULL((void*)0);
1471 modelica_metatype _eq = NULL((void*)0);
1472 modelica_metatype _info = NULL((void*)0);
1473 volatile mmc_switch_type tmp3;
1474 int tmp4;
1475 // _finalPrefix has no default value.
1476 // _el has no default value.
1477 // _mod has no default value.
1478 // _subs has no default value.
1479 // _eq has no default value.
1480 // _info has no default value.
1481 tmp3 = 0;
1482 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) {
1483 tmp2_top:
1484 threadData->mmc_jumper = &new_mmc_jumper;
1485 for (; tmp3 < 4; tmp3++) {
1486 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1487 case 0: {
1488 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;
1489 tmp3 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
1490#line 2921 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1491 tmpMeta[0] = _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3));
1492#line 1492 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1493 goto tmp2_done;
1494 }
1495 case 1: {
1496 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
1497 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1498 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1499 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
1500 _finalPrefix = tmpMeta[1];
1501 _el = tmpMeta[2];
1502 _mod = tmpMeta[3];
1503 tmp3 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
1504#line 2924 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1505 tmpMeta[1] = mmc_mk_box5(4, &DAE_Mod_REDECL__desc, _finalPrefix, _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)), _el, _mod);
1506#line 2924 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1507 tmpMeta[0] = tmpMeta[1];
1508#line 1508 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1509 goto tmp2_done;
1510 }
1511 case 2: {
1512 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;
1513 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1514 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1515 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
1516 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
1517 _finalPrefix = tmpMeta[1];
1518 _subs = tmpMeta[2];
1519 _eq = tmpMeta[3];
1520 _info = tmpMeta[4];
1521 /* Pattern matching succeeded */
1522#line 2928 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1523 tmpMeta[1] = mmc_mk_box6(3, &DAE_Mod_MOD__desc, _finalPrefix, _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)), _subs, _eq, _info);
1524#line 2928 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1525 tmpMeta[0] = tmpMeta[1];
1526#line 1526 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1527 goto tmp2_done;
1528 }
1529 case 3: {
1530
1531 /* Pattern matching succeeded */
1532#line 2933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1533 tmpMeta[1] = stringAppend(_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)),omc_Mod_printModStr(threadData, _inMod));
1534#line 2933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1535 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)));
1536#line 2933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1537 fputs(MMC_STRINGDATA(tmpMeta[2])(((struct mmc_string*)((void*)((char*)(tmpMeta[2]) - 3)))->
data)
,stdoutstdout);
1538#line 1538 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1539#line 2934 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1540 goto goto_1;
1541#line 1541 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1542 goto tmp2_done;
1543 }
1544 }
1545 goto tmp2_end;
1546 tmp2_end: ;
1547 }
1548 goto goto_1;
1549 tmp2_done:
1550 (void)tmp3;
1551 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1552 goto tmp2_done2;
1553 goto_1:;
1554 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1555 if (++tmp3 < 4) {
1556 goto tmp2_top;
1557 }
1558 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1559 tmp2_done2:;
1560 }
1561 }
1562 _outMod = tmpMeta[0];
1563 _return: OMC_LABEL_UNUSED__attribute__((unused))
1564 return _outMod;
1565}
1566
1567DLLExport
1568modelica_metatype omc_Mod_addEachIfNeeded(threadData_t *threadData, modelica_metatype _inMod, modelica_metatype _inDimensions)
1569{
1570 modelica_metatype _outMod = NULL((void*)0);
1571 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
1572 MMC_SO()mmc_check_stackoverflow(threadData);
1573 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1574 // _outMod has no default value.
1575#line 1575 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1576 { /* matchcontinue expression */
1577 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
1578 tmp3_1 = _inMod;
1579 tmp3_2 = _inDimensions;
1580 {
1581 modelica_metatype _finalPrefix = NULL((void*)0);
1582 modelica_metatype _el = NULL((void*)0);
1583 modelica_metatype _mod = NULL((void*)0);
1584 modelica_metatype _eachPrefix = NULL((void*)0);
1585 modelica_metatype _subs = NULL((void*)0);
1586 modelica_metatype _eq = NULL((void*)0);
1587 modelica_metatype _info = NULL((void*)0);
1588 volatile mmc_switch_type tmp3;
1589 int tmp4;
1590 // _finalPrefix has no default value.
1591 // _el has no default value.
1592 // _mod has no default value.
1593 // _eachPrefix has no default value.
1594 // _subs has no default value.
1595 // _eq has no default value.
1596 // _info has no default value.
1597 tmp3 = 0;
1598 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) {
1599 tmp2_top:
1600 threadData->mmc_jumper = &new_mmc_jumper;
1601 for (; tmp3 < 6; tmp3++) {
1602 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1603 case 0: {
1604 if (!listEmpty(tmp3_2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1605
1606 /* Pattern matching succeeded */
1607#line 2878 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1608 tmpMeta[0] = _inMod;
1609#line 1609 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1610 goto tmp2_done;
1611 }
1612 case 1: {
1613 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;
1614
1615 tmp3 += 3; /* Pattern matching succeeded; we may skip some cases if we fail */
1616#line 2879 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1617 tmpMeta[0] = _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3));
1618#line 1618 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1619 goto tmp2_done;
1620 }
1621 case 2: {
1622 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
1623 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1624 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1625 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
1626
1627 _finalPrefix = tmpMeta[1];
1628 _el = tmpMeta[2];
1629 _mod = tmpMeta[3];
1630 tmp3 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
1631#line 2882 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1632 tmpMeta[1] = mmc_mk_box5(4, &DAE_Mod_REDECL__desc, _finalPrefix, _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)), _el, _mod);
1633#line 2882 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1634 tmpMeta[0] = tmpMeta[1];
1635#line 1635 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1636 goto tmp2_done;
1637 }
1638 case 3: {
1639 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;
1640 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1641 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1642 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((0 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
1643 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1644 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
1645 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
1646
1647 _finalPrefix = tmpMeta[1];
1648 _subs = tmpMeta[3];
1649 _eq = tmpMeta[4];
1650 _info = tmpMeta[5];
1651 /* Pattern matching succeeded */
1652#line 2887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1653 tmpMeta[1] = mmc_mk_box6(3, &DAE_Mod_MOD__desc, _finalPrefix, _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)), _subs, _eq, _info);
1654#line 2887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1655 tmpMeta[0] = tmpMeta[1];
1656#line 1656 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1657 goto tmp2_done;
1658 }
1659 case 4: {
1660 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;
1661 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1662 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1663 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1664 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
1665 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
1666
1667 _finalPrefix = tmpMeta[1];
1668 _eachPrefix = tmpMeta[2];
1669 _subs = tmpMeta[3];
1670 _eq = tmpMeta[4];
1671 _info = tmpMeta[5];
1672 /* Pattern matching succeeded */
1673#line 2892 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1674 _subs = omc_Mod_addEachToSubsIfNeeded(threadData, _subs, _inDimensions);
1675#line 1675 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1676#line 2893 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1677 tmpMeta[1] = mmc_mk_box6(3, &DAE_Mod_MOD__desc, _finalPrefix, _eachPrefix, _subs, _eq, _info);
1678#line 2893 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1679 tmpMeta[0] = tmpMeta[1];
1680#line 1680 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1681 goto tmp2_done;
1682 }
1683 case 5: {
1684
1685 /* Pattern matching succeeded */
1686#line 2898 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1687 tmpMeta[1] = stringAppend(_OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)),omc_Mod_printModStr(threadData, _inMod));
1688#line 2898 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1689 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)));
1690#line 2898 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1691 fputs(MMC_STRINGDATA(tmpMeta[2])(((struct mmc_string*)((void*)((char*)(tmpMeta[2]) - 3)))->
data)
,stdoutstdout);
1692#line 1692 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1693#line 2899 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1694 goto goto_1;
1695#line 1695 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1696 goto tmp2_done;
1697 }
1698 }
1699 goto tmp2_end;
1700 tmp2_end: ;
1701 }
1702 goto goto_1;
1703 tmp2_done:
1704 (void)tmp3;
1705 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1706 goto tmp2_done2;
1707 goto_1:;
1708 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1709 if (++tmp3 < 6) {
1710 goto tmp2_top;
1711 }
1712 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1713 tmp2_done2:;
1714 }
1715 }
1716 _outMod = tmpMeta[0];
1717 _return: OMC_LABEL_UNUSED__attribute__((unused))
1718 return _outMod;
1719}
1720
1721PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_removeModInSubs(threadData_t *threadData, modelica_metatype _inSubs, modelica_string _componentName)
1722{
1723 modelica_metatype _outsubs = NULL((void*)0);
1724 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
1725 MMC_SO()mmc_check_stackoverflow(threadData);
1726 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1727 // _outsubs has no default value.
1728#line 1728 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1729 { /* match expression */
1730 modelica_metatype tmp3_1;
1731 tmp3_1 = _inSubs;
1732 {
1733 modelica_metatype _m1 = NULL((void*)0);
1734 modelica_metatype _subs1 = NULL((void*)0);
1735 modelica_metatype _subs2 = NULL((void*)0);
1736 modelica_metatype _subs = NULL((void*)0);
1737 modelica_string _s1 = NULL((void*)0);
1738 volatile mmc_switch_type tmp3;
1739 int tmp4;
1740 // _m1 has no default value.
1741 // _subs1 has no default value.
1742 // _subs2 has no default value.
1743 // _subs has no default value.
1744 // _s1 has no default value.
1745 tmp3 = 0;
1746 for (; tmp3 < 2; tmp3++) {
1747 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1748 case 0: {
1749 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1750 /* Pattern matching succeeded */
1751#line 2850 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1752 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1753#line 2850 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1754 tmpMeta[0] = tmpMeta[1];
1755#line 1755 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1756 goto tmp2_done;
1757 }
1758 case 1: {
1759 modelica_boolean tmp5;
1760 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1761 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1762 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1763 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1764 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
1765 _s1 = tmpMeta[3];
1766 _m1 = tmpMeta[4];
1767 _subs = tmpMeta[2];
1768 /* Pattern matching succeeded */
1769#line 2853 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1770 tmp5 = (modelica_boolean)(stringEqual(_s1, _componentName)((((((*(mmc_uint_t*)((void*)((char*)(_s1) - 3)))) >> (3
)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_componentName
) - 3)))) >> (3)) - 8)) && !mmc_stringCompare(_s1
,_componentName))
);
1771#line 2853 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1772 if(tmp5)
1773#line 2853 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1774 {
1775#line 2853 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1776 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1777#line 2853 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1778 tmpMeta[4] = tmpMeta[1];
1779#line 2853 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1780 }
1781#line 2853 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1782 else
1783#line 2853 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1784 {
1785#line 2853 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1786 tmpMeta[3] = mmc_mk_box3(3, &DAE_SubMod_NAMEMOD__desc, _s1, _m1);
1787#line 2853 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1788 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
1789#line 2853 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1790 tmpMeta[4] = tmpMeta[2];
1791#line 2853 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1792 }
1793#line 2853 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1794 _subs1 = tmpMeta[4];
1795#line 1795 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1796
1797#line 2854 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1798 _subs2 = omc_Mod_removeModInSubs(threadData, _subs, _componentName);
1799#line 1799 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1800#line 2855 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1801 tmpMeta[0] = listAppend(_subs1, _subs2);
1802#line 1802 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1803 goto tmp2_done;
1804 }
1805 }
1806 goto tmp2_end;
1807 tmp2_end: ;
1808 }
1809 goto goto_1;
1810 goto_1:;
1811 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1812 goto tmp2_done;
1813 tmp2_done:;
1814 }
1815 }
1816 _outsubs = tmpMeta[0];
1817 _return: OMC_LABEL_UNUSED__attribute__((unused))
1818 return _outsubs;
1819}
1820
1821DLLExport
1822modelica_metatype omc_Mod_removeMod(threadData_t *threadData, modelica_metatype _inMod, modelica_string _componentModified)
1823{
1824 modelica_metatype _outMod = NULL((void*)0);
1825 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
1826 MMC_SO()mmc_check_stackoverflow(threadData);
1827 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1828 // _outMod has no default value.
1829#line 1829 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1830 { /* match expression */
1831 modelica_metatype tmp3_1;
1832 tmp3_1 = _inMod;
1833 {
1834 modelica_metatype _f = NULL((void*)0);
1835 modelica_metatype _e = NULL((void*)0);
1836 modelica_metatype _subs = NULL((void*)0);
1837 modelica_metatype _oem = NULL((void*)0);
1838 modelica_metatype _info = NULL((void*)0);
1839 int tmp3;
1840 // _f has no default value.
1841 // _e has no default value.
1842 // _subs has no default value.
1843 // _oem has no default value.
1844 // _info has no default value.
1845 {
1846 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
1847 case 5: {
1848
1849 /* Pattern matching succeeded */
1850#line 2819 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1851 tmpMeta[0] = _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3));
1852#line 1852 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1853 goto tmp2_done;
1854 }
1855 case 4: {
1856
1857 /* Pattern matching succeeded */
1858#line 2822 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1859 tmpMeta[0] = ((stringEqual(omc_SCodeUtil_elementName(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inMod), 4)))), _componentModified)((((((*(mmc_uint_t*)((void*)((char*)(omc_SCodeUtil_elementName
(threadData, ((*(void**)(((void*)((void**)(((void*)((char*)(_inMod
) - 3))) + (4)))))))) - 3)))) >> (3)) - 8)) == (((((*(mmc_uint_t
*)((void*)((char*)(_componentModified) - 3)))) >> (3)) -
8)) && !mmc_stringCompare(omc_SCodeUtil_elementName(
threadData, ((*(void**)(((void*)((void**)(((void*)((char*)(_inMod
) - 3))) + (4))))))),_componentModified))
)?_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)):_inMod);
1860#line 1860 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1861 goto tmp2_done;
1862 }
1863 case 3: {
1864 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;
1865 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1866 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1867 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1868 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
1869 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
1870 _f = tmpMeta[1];
1871 _e = tmpMeta[2];
1872 _subs = tmpMeta[3];
1873 _oem = tmpMeta[4];
1874 _info = tmpMeta[5];
1875 /* Pattern matching succeeded */
1876#line 2827 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1877 _subs = omc_Mod_removeModInSubs(threadData, _subs, _componentModified);
1878#line 1878 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1879#line 2828 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1880 tmpMeta[1] = mmc_mk_box6(3, &DAE_Mod_MOD__desc, _f, _e, _subs, _oem, _info);
1881#line 2828 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1882 tmpMeta[0] = tmpMeta[1];
1883#line 1883 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1884 goto tmp2_done;
1885 }
1886 }
1887 goto tmp2_end;
1888 tmp2_end: ;
1889 }
1890 goto goto_1;
1891 goto_1:;
1892 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1893 goto tmp2_done;
1894 tmp2_done:;
1895 }
1896 }
1897 _outMod = tmpMeta[0];
1898 _return: OMC_LABEL_UNUSED__attribute__((unused))
1899 return _outMod;
1900}
1901
1902DLLExport
1903modelica_metatype omc_Mod_removeModList(threadData_t *threadData, modelica_metatype _inMod, modelica_metatype _remStrings)
1904{
1905 modelica_metatype _outMod = NULL((void*)0);
1906 modelica_string _s = NULL((void*)0);
1907 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1908 MMC_SO()mmc_check_stackoverflow(threadData);
1909 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1910 // _outMod has no default value.
1911 // _s has no default value.
1912#line 1912 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1913 { /* match expression */
1914 modelica_metatype tmp3_1;
1915 tmp3_1 = _remStrings;
1916 {
1917 volatile mmc_switch_type tmp3;
1918 int tmp4;
1919 tmp3 = 0;
1920 for (; tmp3 < 2; tmp3++) {
1921 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1922 case 0: {
1923 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1924 /* Pattern matching succeeded */
1925#line 2798 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1926 tmpMeta[0] = _inMod;
1927#line 1927 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1928 goto tmp2_done;
1929 }
1930 case 1: {
1931 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1932 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1933 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1934 _s = tmpMeta[1];
1935 /* Pattern matching succeeded */
1936#line 2800 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1937 /* Tail recursive call */
1938#line 2800 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1939 _inMod = omc_Mod_removeMod(threadData, _inMod, _s);
1940#line 2800 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1941 goto _tailrecursive;
1942#line 2800 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1943 /* TODO: Make sure any eventual dead code below is never generated */
1944#line 1944 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1945 goto tmp2_done;
1946 }
1947 }
1948 goto tmp2_end;
1949 tmp2_end: ;
1950 }
1951 goto goto_1;
1952 goto_1:;
1953 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1954 goto tmp2_done;
1955 tmp2_done:;
1956 }
1957 }
1958 _outMod = tmpMeta[0];
1959 _return: OMC_LABEL_UNUSED__attribute__((unused))
1960 return _outMod;
1961}
1962
1963PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_removeRedecl(threadData_t *threadData, modelica_metatype _isubs)
1964{
1965 modelica_metatype _osubs = NULL((void*)0);
1966 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1967 MMC_SO()mmc_check_stackoverflow(threadData);
1968 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1969 // _osubs has no default value.
1970#line 1970 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1971 { /* match expression */
1972 modelica_metatype tmp3_1;
1973 tmp3_1 = _isubs;
1974 {
1975 modelica_metatype _sm = NULL((void*)0);
1976 modelica_metatype _subs = NULL((void*)0);
1977 volatile mmc_switch_type tmp3;
1978 int tmp4;
1979 // _sm has no default value.
1980 // _subs has no default value.
1981 tmp3 = 0;
1982 for (; tmp3 < 3; tmp3++) {
1983 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1984 case 0: {
1985 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1986 /* Pattern matching succeeded */
1987#line 2776 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1988 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1989#line 2776 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
1990 tmpMeta[0] = tmpMeta[1];
1991#line 1991 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
1992 goto tmp2_done;
1993 }
1994 case 1: {
1995 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1996 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1997 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1998 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
1999 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],1,4)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((4 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
2000
2001 _subs = tmpMeta[2];
2002 /* Pattern matching succeeded */
2003#line 2777 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2004 /* Tail recursive call */
2005#line 2777 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2006 _isubs = _subs;
2007#line 2777 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2008 goto _tailrecursive;
2009#line 2777 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2010 /* TODO: Make sure any eventual dead code below is never generated */
2011#line 2011 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2012 goto tmp2_done;
2013 }
2014 case 2: {
2015 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2016 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2017 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2018 _sm = tmpMeta[1];
2019 _subs = tmpMeta[2];
2020 /* Pattern matching succeeded */
2021#line 2780 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2022 _osubs = omc_Mod_removeRedecl(threadData, _subs);
2023#line 2023 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2024#line 2781 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2025 tmpMeta[1] = mmc_mk_cons(_sm, _osubs);
2026#line 2781 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2027 tmpMeta[0] = tmpMeta[1];
2028#line 2028 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2029 goto tmp2_done;
2030 }
2031 }
2032 goto tmp2_end;
2033 tmp2_end: ;
2034 }
2035 goto goto_1;
2036 goto_1:;
2037 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2038 goto tmp2_done;
2039 tmp2_done:;
2040 }
2041 }
2042 _osubs = tmpMeta[0];
2043 _return: OMC_LABEL_UNUSED__attribute__((unused))
2044 return _osubs;
2045}
2046
2047DLLExport
2048modelica_metatype omc_Mod_removeFirstSubsRedecl(threadData_t *threadData, modelica_metatype _inMod)
2049{
2050 modelica_metatype _outMod = NULL((void*)0);
2051 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
2052 MMC_SO()mmc_check_stackoverflow(threadData);
2053 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2054 // _outMod has no default value.
2055#line 2055 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2056 { /* matchcontinue expression */
2057 volatile modelica_metatype tmp3_1;
2058 tmp3_1 = _inMod;
2059 {
2060 modelica_metatype _f = NULL((void*)0);
2061 modelica_metatype _each_ = NULL((void*)0);
2062 modelica_metatype _subs = NULL((void*)0);
2063 modelica_metatype _eq = NULL((void*)0);
2064 modelica_metatype _m = NULL((void*)0);
2065 modelica_metatype _info = NULL((void*)0);
2066 volatile mmc_switch_type tmp3;
2067 int tmp4;
2068 // _f has no default value.
2069 // _each_ has no default value.
2070 // _subs has no default value.
2071 // _eq has no default value.
2072 // _m has no default value.
2073 // _info has no default value.
2074 tmp3 = 0;
2075 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) {
2076 tmp2_top:
2077 threadData->mmc_jumper = &new_mmc_jumper;
2078 for (; tmp3 < 4; tmp3++) {
2079 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2080 case 0: {
2081 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;
2082 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2083 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2084 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
2085 if (!listEmpty(tmpMeta[3])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2086 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
2087 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
2088 _f = tmpMeta[1];
2089 _each_ = tmpMeta[2];
2090 _eq = tmpMeta[4];
2091 _info = tmpMeta[5];
2092 /* Pattern matching succeeded */
2093#line 2749 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2094 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2095#line 2749 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2096 tmpMeta[2] = mmc_mk_box6(3, &DAE_Mod_MOD__desc, _f, _each_, tmpMeta[1], _eq, _info);
2097#line 2749 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2098 tmpMeta[0] = tmpMeta[2];
2099#line 2099 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2100 goto tmp2_done;
2101 }
2102 case 1: {
2103 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;
2104 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
2105 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
2106 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;
2107
2108 _subs = tmpMeta[1];
2109 /* Pattern matching succeeded */
2110#line 2752 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2111 /* Pattern-matching assignment */
2112#line 2752 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2113 tmpMeta[1] = omc_Mod_removeRedecl(threadData, _subs);
2114#line 2752 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2115 if (!listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_1;
2116#line 2116 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2117#line 2753 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2118 tmpMeta[0] = _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3));
2119#line 2119 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2120 goto tmp2_done;
2121 }
2122 case 2: {
2123 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;
2124 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2125 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2126 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
2127 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
2128 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
2129 _f = tmpMeta[1];
2130 _each_ = tmpMeta[2];
2131 _subs = tmpMeta[3];
2132 _eq = tmpMeta[4];
2133 _info = tmpMeta[5];
2134 /* Pattern matching succeeded */
2135#line 2757 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2136 _subs = omc_Mod_removeRedecl(threadData, _subs);
2137#line 2137 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2138#line 2758 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2139 tmpMeta[1] = mmc_mk_box6(3, &DAE_Mod_MOD__desc, _f, _each_, _subs, _eq, _info);
2140#line 2758 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2141 tmpMeta[0] = tmpMeta[1];
2142#line 2142 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2143 goto tmp2_done;
2144 }
2145 case 3: {
2146
2147 _m = tmp3_1;
2148 /* Pattern matching succeeded */
2149#line 2760 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2150 tmpMeta[0] = _m;
2151#line 2151 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2152 goto tmp2_done;
2153 }
2154 }
2155 goto tmp2_end;
2156 tmp2_end: ;
2157 }
2158 goto goto_1;
2159 tmp2_done:
2160 (void)tmp3;
2161 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2162 goto tmp2_done2;
2163 goto_1:;
2164 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2165 if (++tmp3 < 4) {
2166 goto tmp2_top;
2167 }
2168 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2169 tmp2_done2:;
2170 }
2171 }
2172 _outMod = tmpMeta[0];
2173 _return: OMC_LABEL_UNUSED__attribute__((unused))
2174 return _outMod;
2175}
2176
2177DLLExport
2178modelica_metatype omc_Mod_stripSubmod(threadData_t *threadData, modelica_metatype _inMod)
2179{
2180 modelica_metatype _outMod = NULL((void*)0);
2181 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
2182 MMC_SO()mmc_check_stackoverflow(threadData);
2183 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2184 _outMod = _inMod;
2185#line 2185 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2186 { /* match expression */
2187 modelica_metatype tmp3_1;
2188 tmp3_1 = _outMod;
2189 {
2190 volatile mmc_switch_type tmp3;
2191 int tmp4;
2192 tmp3 = 0;
2193 for (; tmp3 < 2; tmp3++) {
2194 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2195 case 0: {
2196 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;
2197
2198 /* Pattern matching succeeded */
2199#line 2725 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2200 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2201#line 2725 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2202 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
2203#line 2725 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2204 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outMod)((void*)((char*)(_outMod) - 3)), 7*sizeof(modelica_metatype));
2205#line 2725 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2206 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[4] = tmpMeta[2];
2207#line 2725 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2208 _outMod = tmpMeta[1];
2209#line 2209 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2210#line 2726 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2211 tmpMeta[0] = _outMod;
2212#line 2212 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2213 goto tmp2_done;
2214 }
2215 case 1: {
2216
2217 /* Pattern matching succeeded */
2218#line 2729 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2219 tmpMeta[0] = _outMod;
2220#line 2220 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2221 goto tmp2_done;
2222 }
2223 }
2224 goto tmp2_end;
2225 tmp2_end: ;
2226 }
2227 goto goto_1;
2228 goto_1:;
2229 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2230 goto tmp2_done;
2231 tmp2_done:;
2232 }
2233 }
2234 _outMod = tmpMeta[0];
2235 _return: OMC_LABEL_UNUSED__attribute__((unused))
2236 return _outMod;
2237}
2238
2239PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_getUntypedCrefFromSubMod(threadData_t *threadData, modelica_metatype _inSubMod, modelica_metatype _inCrefs)
2240{
2241 modelica_metatype _outCrefs = NULL((void*)0);
2242 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2243 MMC_SO()mmc_check_stackoverflow(threadData);
2244 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2245 // _outCrefs has no default value.
2246#line 2246 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2247 { /* match expression */
2248 modelica_metatype tmp3_1;
2249 tmp3_1 = _inSubMod;
2250 {
2251 modelica_metatype _mod = NULL((void*)0);
2252 modelica_metatype _crefs = NULL((void*)0);
2253 volatile mmc_switch_type tmp3;
2254 int tmp4;
2255 // _mod has no default value.
2256 // _crefs has no default value.
2257 tmp3 = 0;
2258 for (; tmp3 < 1; tmp3++) {
2259 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2260 case 0: {
2261 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2262 _mod = tmpMeta[1];
2263 /* Pattern matching succeeded */
2264#line 2708 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2265 _crefs = omc_Mod_getUntypedCrefs(threadData, _mod);
2266#line 2266 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2267#line 2709 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2268 tmpMeta[0] = listAppend(_crefs, _inCrefs);
2269#line 2269 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2270 goto tmp2_done;
2271 }
2272 }
2273 goto tmp2_end;
2274 tmp2_end: ;
2275 }
2276 goto goto_1;
2277 goto_1:;
2278 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2279 goto tmp2_done;
2280 tmp2_done:;
2281 }
2282 }
2283 _outCrefs = tmpMeta[0];
2284 _return: OMC_LABEL_UNUSED__attribute__((unused))
2285 return _outCrefs;
2286}
2287
2288DLLExport
2289modelica_metatype omc_Mod_getUntypedCrefs(threadData_t *threadData, modelica_metatype _inMod)
2290{
2291 modelica_metatype _outCrefs = NULL((void*)0);
2292 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2293 MMC_SO()mmc_check_stackoverflow(threadData);
2294 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2295 // _outCrefs has no default value.
2296#line 2296 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2297 { /* matchcontinue expression */
2298 volatile modelica_metatype tmp3_1;
2299 tmp3_1 = _inMod;
2300 {
2301 modelica_metatype _exp = NULL((void*)0);
2302 modelica_metatype _submods = NULL((void*)0);
2303 volatile mmc_switch_type tmp3;
2304 int tmp4;
2305 // _exp has no default value.
2306 // _submods has no default value.
2307 tmp3 = 0;
2308 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) {
2309 tmp2_top:
2310 threadData->mmc_jumper = &new_mmc_jumper;
2311 for (; tmp3 < 3; tmp3++) {
2312 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2313 case 0: {
2314 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;
2315 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
2316 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;
2317 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
2318 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
2319 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
2320
2321 _exp = tmpMeta[3];
2322 /* Pattern matching succeeded */
2323#line 2682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2324 tmpMeta[0] = omc_AbsynUtil_getCrefFromExp(threadData, _exp, 1, 1);
2325#line 2325 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2326 goto tmp2_done;
2327 }
2328 case 1: {
2329 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;
2330 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
2331
2332 _submods = tmpMeta[1];
2333 /* Pattern matching succeeded */
2334#line 2688 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2335 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2336#line 2688 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2337 tmpMeta[0] = omc_List_fold(threadData, _submods, boxvar_Mod_getUntypedCrefFromSubMod((void*)((char*)(&(boxvar_lit_Mod_getUntypedCrefFromSubMod
).header) + 3))
, tmpMeta[1]);
2338#line 2338 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2339 goto tmp2_done;
2340 }
2341 case 2: {
2342
2343 /* Pattern matching succeeded */
2344#line 2692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2345 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2346#line 2692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2347 tmpMeta[0] = tmpMeta[1];
2348#line 2348 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2349 goto tmp2_done;
2350 }
2351 }
2352 goto tmp2_end;
2353 tmp2_end: ;
2354 }
2355 goto goto_1;
2356 tmp2_done:
2357 (void)tmp3;
2358 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2359 goto tmp2_done2;
2360 goto_1:;
2361 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2362 if (++tmp3 < 3) {
2363 goto tmp2_top;
2364 }
2365 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2366 tmp2_done2:;
2367 }
2368 }
2369 _outCrefs = tmpMeta[0];
2370 _return: OMC_LABEL_UNUSED__attribute__((unused))
2371 return _outCrefs;
2372}
2373
2374PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_isUntypedSubMod(threadData_t *threadData, modelica_metatype _inSubMod)
2375{
2376 modelica_boolean _outIsUntyped;
2377 modelica_metatype _mod = NULL((void*)0);
2378 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2379 MMC_SO()mmc_check_stackoverflow(threadData);
2380 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2381 // _outIsUntyped has no default value.
2382 // _mod has no default value.
2383#line 2666 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2384 /* Pattern-matching assignment */
2385#line 2666 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2386 tmpMeta[0] = _inSubMod;
2387#line 2666 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2388 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
2389#line 2666 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2390 _mod = tmpMeta[1];
2391#line 2391 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2392
2393#line 2667 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2394 _outIsUntyped = omc_Mod_isUntypedMod(threadData, _mod);
2395#line 2395 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2396 _return: OMC_LABEL_UNUSED__attribute__((unused))
2397 return _outIsUntyped;
2398}
2399PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_isUntypedSubMod(threadData_t *threadData, modelica_metatype _inSubMod)
2400{
2401 modelica_boolean _outIsUntyped;
2402 modelica_metatype out_outIsUntyped;
2403 _outIsUntyped = omc_Mod_isUntypedSubMod(threadData, _inSubMod);
2404 out_outIsUntyped = mmc_mk_icon(_outIsUntyped);
2405 return out_outIsUntyped;
2406}
2407
2408DLLExport
2409modelica_boolean omc_Mod_isUntypedMod(threadData_t *threadData, modelica_metatype _inMod)
2410{
2411 modelica_boolean _outIsUntyped;
2412 modelica_boolean tmp1 = 0;
2413 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2414 MMC_SO()mmc_check_stackoverflow(threadData);
2415 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2416 // _outIsUntyped has no default value.
2417#line 2417 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2418 { /* matchcontinue expression */
2419 volatile modelica_metatype tmp4_1;
2420 tmp4_1 = _inMod;
2421 {
2422 modelica_metatype _submods = NULL((void*)0);
2423 volatile mmc_switch_type tmp4;
2424 int tmp5;
2425 // _submods has no default value.
2426 tmp4 = 0;
2427 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) {
2428 tmp3_top:
2429 threadData->mmc_jumper = &new_mmc_jumper;
2430 for (; tmp4 < 3; tmp4++) {
2431 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2432 case 0: {
2433 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2434 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
2435 if (optionNone(tmpMeta[0])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[0]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
2436 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2437 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2438
2439 /* Pattern matching succeeded */
2440#line 2647 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2441 tmp1 = 1;
2442#line 2442 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2443 goto tmp3_done;
2444 }
2445 case 1: {
2446 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2447 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
2448
2449 _submods = tmpMeta[0];
2450 /* Pattern matching succeeded */
2451#line 2651 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2452 omc_List_find(threadData, _submods, boxvar_Mod_isUntypedSubMod((void*)((char*)(&(boxvar_lit_Mod_isUntypedSubMod).header
) + 3))
);
2453#line 2453 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2454#line 2652 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2455 tmp1 = 1;
2456#line 2456 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2457 goto tmp3_done;
2458 }
2459 case 2: {
2460
2461 /* Pattern matching succeeded */
2462#line 2655 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2463 tmp1 = 0;
2464#line 2464 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2465 goto tmp3_done;
2466 }
2467 }
2468 goto tmp3_end;
2469 tmp3_end: ;
2470 }
2471 goto goto_2;
2472 tmp3_done:
2473 (void)tmp4;
2474 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2475 goto tmp3_done2;
2476 goto_2:;
2477 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2478 if (++tmp4 < 3) {
2479 goto tmp3_top;
2480 }
2481 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2482 tmp3_done2:;
2483 }
2484 }
2485 _outIsUntyped = tmp1;
2486 _return: OMC_LABEL_UNUSED__attribute__((unused))
2487 return _outIsUntyped;
2488}
2489modelica_metatype boxptr_Mod_isUntypedMod(threadData_t *threadData, modelica_metatype _inMod)
2490{
2491 modelica_boolean _outIsUntyped;
2492 modelica_metatype out_outIsUntyped;
2493 _outIsUntyped = omc_Mod_isUntypedMod(threadData, _inMod);
2494 out_outIsUntyped = mmc_mk_icon(_outIsUntyped);
2495 return out_outIsUntyped;
2496}
2497
2498PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_getUnelabedSubMod2(threadData_t *threadData, modelica_metatype _inSubMods, modelica_string _inIdent)
2499{
2500 modelica_metatype _outMod = NULL((void*)0);
2501 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
2502 MMC_SO()mmc_check_stackoverflow(threadData);
2503 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2504 // _outMod has no default value.
2505#line 2505 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2506 { /* matchcontinue expression */
2507 volatile modelica_metatype tmp3_1;
2508 tmp3_1 = _inSubMods;
2509 {
2510 modelica_string _id = NULL((void*)0);
2511 modelica_metatype _m = NULL((void*)0);
2512 modelica_metatype _rest_mods = NULL((void*)0);
2513 volatile mmc_switch_type tmp3;
2514 int tmp4;
2515 // _id has no default value.
2516 // _m has no default value.
2517 // _rest_mods has no default value.
2518 tmp3 = 0;
2519 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) {
2520 tmp2_top:
2521 threadData->mmc_jumper = &new_mmc_jumper;
2522 for (; tmp3 < 2; tmp3++) {
2523 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2524 case 0: {
2525 modelica_boolean tmp5;
2526 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2527 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2528 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2529 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2530 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
2531 _id = tmpMeta[3];
2532 _m = tmpMeta[4];
2533 /* Pattern matching succeeded */
2534#line 2628 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2535 /* Pattern-matching assignment */
2536#line 2628 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2537 tmp5 = (stringEqual(_id, _inIdent)((((((*(mmc_uint_t*)((void*)((char*)(_id) - 3)))) >> (3
)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_inIdent) - 3
)))) >> (3)) - 8)) && !mmc_stringCompare(_id,_inIdent
))
);
2538#line 2628 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2539 if (1 != tmp5) goto goto_1;
2540#line 2540 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2541#line 2629 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2542 tmpMeta[0] = _m;
2543#line 2543 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2544 goto tmp2_done;
2545 }
2546 case 1: {
2547 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2548 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2549 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2550 _rest_mods = tmpMeta[2];
2551 /* Pattern matching succeeded */
2552#line 2633 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2553 tmpMeta[0] = omc_Mod_getUnelabedSubMod2(threadData, _rest_mods, _inIdent);
2554#line 2554 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2555 goto tmp2_done;
2556 }
2557 }
2558 goto tmp2_end;
2559 tmp2_end: ;
2560 }
2561 goto goto_1;
2562 tmp2_done:
2563 (void)tmp3;
2564 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2565 goto tmp2_done2;
2566 goto_1:;
2567 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2568 if (++tmp3 < 2) {
2569 goto tmp2_top;
2570 }
2571 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2572 tmp2_done2:;
2573 }
2574 }
2575 _outMod = tmpMeta[0];
2576 _return: OMC_LABEL_UNUSED__attribute__((unused))
2577 return _outMod;
2578}
2579
2580DLLExport
2581modelica_metatype omc_Mod_getUnelabedSubMod(threadData_t *threadData, modelica_metatype _inMod, modelica_string _inIdent)
2582{
2583 modelica_metatype _outSubMod = NULL((void*)0);
2584 modelica_metatype _submods = NULL((void*)0);
2585 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2586 MMC_SO()mmc_check_stackoverflow(threadData);
2587 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2588 // _outSubMod has no default value.
2589 // _submods has no default value.
2590#line 2611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2591 /* Pattern-matching assignment */
2592#line 2611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2593 tmpMeta[0] = _inMod;
2594#line 2611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2595 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2596#line 2611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2597 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
2598#line 2611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2599 _submods = tmpMeta[1];
2600#line 2600 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2601
2602#line 2612 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2603 _outSubMod = omc_Mod_getUnelabedSubMod2(threadData, _submods, _inIdent);
2604#line 2604 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2605 _return: OMC_LABEL_UNUSED__attribute__((unused))
2606 return _outSubMod;
2607}
2608
2609PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_prettyPrintFullMod(threadData_t *threadData, modelica_metatype _inFullMod, modelica_integer _inDepth)
2610{
2611 modelica_string _outStr = NULL((void*)0);
2612 modelica_string tmp1 = 0;
2613 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2614 MMC_SO()mmc_check_stackoverflow(threadData);
2615 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2616 // _outStr has no default value.
2617#line 2617 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2618 { /* match expression */
2619 modelica_metatype tmp4_1;
2620 tmp4_1 = _inFullMod;
2621 {
2622 modelica_metatype _mod = NULL((void*)0);
2623 modelica_metatype _subMod = NULL((void*)0);
2624 modelica_metatype _cr = NULL((void*)0);
2625 volatile mmc_switch_type tmp4;
2626 int tmp5;
2627 // _mod has no default value.
2628 // _subMod has no default value.
2629 // _cr has no default value.
2630 tmp4 = 0;
2631 for (; tmp4 < 2; tmp4++) {
2632 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2633 case 0: {
2634 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2635 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2636 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2637 _cr = tmpMeta[0];
2638 _mod = tmpMeta[1];
2639 /* Pattern matching succeeded */
2640#line 2591 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2641 tmpMeta[0] = stringAppend(omc_ComponentReference_printComponentRefStr(threadData, _cr),_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)));
2642#line 2591 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2643 tmpMeta[1] = stringAppend(tmpMeta[0],omc_Mod_prettyPrintMod(threadData, _mod, _inDepth));
2644#line 2591 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2645 tmp1 = tmpMeta[1];
2646#line 2646 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2647 goto tmp3_done;
2648 }
2649 case 1: {
2650 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2651 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2652 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2653 _cr = tmpMeta[0];
2654 _subMod = tmpMeta[1];
2655 /* Pattern matching succeeded */
2656#line 2597 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2657 tmpMeta[0] = stringAppend(omc_ComponentReference_printComponentRefStr(threadData, _cr),_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)));
2658#line 2597 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2659 tmpMeta[1] = stringAppend(tmpMeta[0],omc_Mod_prettyPrintSubmod(threadData, _subMod));
2660#line 2597 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2661 tmp1 = tmpMeta[1];
2662#line 2662 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2663 goto tmp3_done;
2664 }
2665 }
2666 goto tmp3_end;
2667 tmp3_end: ;
2668 }
2669 goto goto_2;
2670 goto_2:;
2671 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2672 goto tmp3_done;
2673 tmp3_done:;
2674 }
2675 }
2676 _outStr = tmp1;
2677 _return: OMC_LABEL_UNUSED__attribute__((unused))
2678 return _outStr;
2679}
2680PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_prettyPrintFullMod(threadData_t *threadData, modelica_metatype _inFullMod, modelica_metatype _inDepth)
2681{
2682 modelica_integer tmp1;
2683 modelica_string _outStr = NULL((void*)0);
2684 tmp1 = mmc_unbox_integer(_inDepth)(((mmc_sint_t) (_inDepth)) >> 1);
2685 _outStr = omc_Mod_prettyPrintFullMod(threadData, _inFullMod, tmp1);
2686 /* skip box _outStr; String */
2687 return _outStr;
2688}
2689
2690PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_fullModCrefsEqual(threadData_t *threadData, modelica_metatype _inFullMod1, modelica_metatype _inFullMod2)
2691{
2692 modelica_boolean _isEqual;
2693 modelica_boolean tmp1 = 0;
2694 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2695 MMC_SO()mmc_check_stackoverflow(threadData);
2696 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2697 // _isEqual has no default value.
2698#line 2698 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2699 { /* match expression */
2700 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
2701 tmp4_1 = _inFullMod1;
2702 tmp4_2 = _inFullMod2;
2703 {
2704 modelica_metatype _cr1 = NULL((void*)0);
2705 modelica_metatype _cr2 = NULL((void*)0);
2706 volatile mmc_switch_type tmp4;
2707 int tmp5;
2708 // _cr1 has no default value.
2709 // _cr2 has no default value.
2710 tmp4 = 0;
2711 for (; tmp4 < 4; tmp4++) {
2712 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2713 case 0: {
2714 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2715 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2716 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2717 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
2718
2719 _cr1 = tmpMeta[0];
2720 _cr2 = tmpMeta[1];
2721 /* Pattern matching succeeded */
2722#line 2568 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2723 tmp1 = omc_ComponentReference_crefEqualNoStringCompare(threadData, _cr1, _cr2);
2724#line 2724 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2725 goto tmp3_done;
2726 }
2727 case 1: {
2728 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2729 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2730 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2731 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
2732
2733 _cr1 = tmpMeta[0];
2734 _cr2 = tmpMeta[1];
2735 /* Pattern matching succeeded */
2736#line 2569 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2737 tmp1 = omc_ComponentReference_crefEqualNoStringCompare(threadData, _cr1, _cr2);
2738#line 2738 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2739 goto tmp3_done;
2740 }
2741 case 2: {
2742 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2743 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2744 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2745 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
2746
2747 _cr1 = tmpMeta[0];
2748 _cr2 = tmpMeta[1];
2749 /* Pattern matching succeeded */
2750#line 2570 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2751 tmp1 = omc_ComponentReference_crefEqualNoStringCompare(threadData, _cr1, _cr2);
2752#line 2752 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2753 goto tmp3_done;
2754 }
2755 case 3: {
2756 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2757 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2758 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2759 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
2760
2761 _cr1 = tmpMeta[0];
2762 _cr2 = tmpMeta[1];
2763 /* Pattern matching succeeded */
2764#line 2571 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2765 tmp1 = omc_ComponentReference_crefEqualNoStringCompare(threadData, _cr1, _cr2);
2766#line 2766 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2767 goto tmp3_done;
2768 }
2769 }
2770 goto tmp3_end;
2771 tmp3_end: ;
2772 }
2773 goto goto_2;
2774 goto_2:;
2775 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2776 goto tmp3_done;
2777 tmp3_done:;
2778 }
2779 }
2780 _isEqual = tmp1;
2781 _return: OMC_LABEL_UNUSED__attribute__((unused))
2782 return _isEqual;
2783}
2784PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_fullModCrefsEqual(threadData_t *threadData, modelica_metatype _inFullMod1, modelica_metatype _inFullMod2)
2785{
2786 modelica_boolean _isEqual;
2787 modelica_metatype out_isEqual;
2788 _isEqual = omc_Mod_fullModCrefsEqual(threadData, _inFullMod1, _inFullMod2);
2789 out_isEqual = mmc_mk_icon(_isEqual);
2790 return out_isEqual;
2791}
2792
2793PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_getFullModsFromSubMods(threadData_t *threadData, modelica_metatype _inTopCref, modelica_metatype _inSubMods)
2794{
2795 modelica_metatype _outFullMods = NULL((void*)0);
2796 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
2797 MMC_SO()mmc_check_stackoverflow(threadData);
2798 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2799 // _outFullMods has no default value.
2800#line 2800 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2801 { /* match expression */
2802 modelica_metatype tmp3_1;
2803 tmp3_1 = _inSubMods;
2804 {
2805 modelica_metatype _fullMods1 = NULL((void*)0);
2806 modelica_metatype _fullMods2 = NULL((void*)0);
2807 modelica_metatype _rest = NULL((void*)0);
2808 modelica_metatype _subMod = NULL((void*)0);
2809 modelica_string _id = NULL((void*)0);
2810 modelica_metatype _mod = NULL((void*)0);
2811 modelica_metatype _cref = NULL((void*)0);
2812 volatile mmc_switch_type tmp3;
2813 int tmp4;
2814 // _fullMods1 has no default value.
2815 // _fullMods2 has no default value.
2816 // _rest has no default value.
2817 // _subMod has no default value.
2818 // _id has no default value.
2819 // _mod has no default value.
2820 // _cref has no default value.
2821 tmp3 = 0;
2822 for (; tmp3 < 2; tmp3++) {
2823 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2824 case 0: {
2825 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2826 /* Pattern matching succeeded */
2827#line 2537 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2828 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2829#line 2537 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2830 tmpMeta[0] = tmpMeta[1];
2831#line 2831 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2832 goto tmp2_done;
2833 }
2834 case 1: {
2835 modelica_boolean tmp5;
2836 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2837 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2838 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2839 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2840 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
2841 _subMod = tmpMeta[1];
2842 _id = tmpMeta[3];
2843 _mod = tmpMeta[4];
2844 _rest = tmpMeta[2];
2845 /* Pattern matching succeeded */
2846#line 2542 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2847 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2848#line 2542 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2849 _cref = omc_ComponentReference_joinCrefs(threadData, _inTopCref, omc_ComponentReference_makeCrefIdent(threadData, _id, _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)), tmpMeta[1]));
2850#line 2850 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2851
2852#line 2546 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2853 _fullMods1 = omc_Mod_getFullModsFromMod(threadData, _cref, _mod);
2854#line 2854 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2855
2856#line 2547 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2857 _fullMods2 = omc_Mod_getFullModsFromSubMods(threadData, _inTopCref, _rest);
2858#line 2858 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2859#line 2548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2860 tmp5 = (modelica_boolean)listEmpty(_fullMods1)((*(mmc_uint_t*)((void*)((char*)(_fullMods1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
;
2861#line 2548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2862 if(tmp5)
2863#line 2548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2864 {
2865#line 2548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2866 tmpMeta[2] = mmc_mk_box3(4, &Mod_FullMod_SUB__MOD__desc, _cref, _subMod);
2867#line 2548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2868 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _fullMods1);
2869#line 2548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2870 tmpMeta[3] = tmpMeta[1];
2871#line 2548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2872 }
2873#line 2548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2874 else
2875#line 2548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2876 {
2877#line 2548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2878 tmpMeta[3] = _fullMods1;
2879#line 2548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2880 }
2881#line 2548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2882 tmpMeta[0] = listAppend(tmpMeta[3], _fullMods2);
2883#line 2883 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2884 goto tmp2_done;
2885 }
2886 }
2887 goto tmp2_end;
2888 tmp2_end: ;
2889 }
2890 goto goto_1;
2891 goto_1:;
2892 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2893 goto tmp2_done;
2894 tmp2_done:;
2895 }
2896 }
2897 _outFullMods = tmpMeta[0];
2898 _return: OMC_LABEL_UNUSED__attribute__((unused))
2899 return _outFullMods;
2900}
2901
2902PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_getFullModFromModRedeclare(threadData_t *threadData, modelica_metatype _inTopCref, modelica_metatype _inRedeclare)
2903{
2904 modelica_metatype _outFullMod = NULL((void*)0);
2905 modelica_metatype _el = NULL((void*)0);
2906 modelica_string _id = NULL((void*)0);
2907 modelica_metatype _cref = NULL((void*)0);
2908 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2909 MMC_SO()mmc_check_stackoverflow(threadData);
2910 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2911 // _outFullMod has no default value.
2912 // _el has no default value.
2913 // _id has no default value.
2914 // _cref has no default value.
2915#line 2507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2916 /* Pattern-matching assignment */
2917#line 2507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2918 tmpMeta[0] = _inRedeclare;
2919#line 2507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2920 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,4)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((4 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2921#line 2507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2922 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
2923#line 2507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2924 _el = tmpMeta[1];
2925#line 2925 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2926
2927#line 2508 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2928 _id = omc_SCodeUtil_elementName(threadData, _el);
2929#line 2929 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2930
2931#line 2509 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2932 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2933#line 2509 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2934 _cref = omc_ComponentReference_makeCrefIdent(threadData, _id, _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)), tmpMeta[0]);
2935#line 2935 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2936
2937#line 2510 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2938 _cref = omc_ComponentReference_joinCrefs(threadData, _inTopCref, _cref);
2939#line 2939 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2940
2941#line 2511 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2942 tmpMeta[0] = mmc_mk_box3(3, &Mod_FullMod_MOD__desc, _cref, _inRedeclare);
2943#line 2511 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2944 _outFullMod = tmpMeta[0];
2945#line 2945 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2946 _return: OMC_LABEL_UNUSED__attribute__((unused))
2947 return _outFullMod;
2948}
2949
2950PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_getFullModsFromMod(threadData_t *threadData, modelica_metatype _inTopCref, modelica_metatype _inMod)
2951{
2952 modelica_metatype _outFullMods = NULL((void*)0);
2953 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2954 MMC_SO()mmc_check_stackoverflow(threadData);
2955 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2956 // _outFullMods has no default value.
2957#line 2957 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2958 { /* match expression */
2959 modelica_metatype tmp3_1;
2960 tmp3_1 = _inMod;
2961 {
2962 int tmp3;
2963 {
2964 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
2965 case 5: {
2966
2967 /* Pattern matching succeeded */
2968#line 2479 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2969 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2970#line 2479 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2971 tmpMeta[0] = tmpMeta[1];
2972#line 2972 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2973 goto tmp2_done;
2974 }
2975 case 3: {
2976
2977 /* Pattern matching succeeded */
2978#line 2483 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2979 tmpMeta[0] = omc_Mod_getFullModsFromSubMods(threadData, _inTopCref, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inMod), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_inMod) - 3))) +
(4)))))
));
2980#line 2980 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2981 goto tmp2_done;
2982 }
2983 case 4: {
2984
2985 /* Pattern matching succeeded */
2986#line 2487 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2987 tmpMeta[1] = mmc_mk_cons(omc_Mod_getFullModFromModRedeclare(threadData, _inTopCref, _inMod), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2988#line 2487 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
2989 tmpMeta[0] = tmpMeta[1];
2990#line 2990 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
2991 goto tmp2_done;
2992 }
2993 }
2994 goto tmp2_end;
2995 tmp2_end: ;
2996 }
2997 goto goto_1;
2998 goto_1:;
2999 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3000 goto tmp2_done;
3001 tmp2_done:;
3002 }
3003 }
3004 _outFullMods = tmpMeta[0];
3005 _return: OMC_LABEL_UNUSED__attribute__((unused))
3006 return _outFullMods;
3007}
3008
3009PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_isPrefixOf(threadData_t *threadData, modelica_metatype _indexSubMod, modelica_string _idx)
3010{
3011 modelica_boolean _isPrefix;
3012 modelica_boolean tmp1 = 0;
3013 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3014 MMC_SO()mmc_check_stackoverflow(threadData);
3015 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3016 // _isPrefix has no default value.
3017#line 3017 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3018 { /* matchcontinue expression */
3019 volatile modelica_metatype tmp4_1;
3020 tmp4_1 = _indexSubMod;
3021 {
3022 modelica_string _i = NULL((void*)0);
3023 modelica_integer _len1;
3024 modelica_integer _len2;
3025 volatile mmc_switch_type tmp4;
3026 int tmp5;
3027 // _i has no default value.
3028 // _len1 has no default value.
3029 // _len2 has no default value.
3030 tmp4 = 0;
3031 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) {
3032 tmp3_top:
3033 threadData->mmc_jumper = &new_mmc_jumper;
3034 for (; tmp4 < 2; tmp4++) {
3035 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3036 case 0: {
3037 modelica_boolean tmp6;
3038 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
3039
3040 _i = tmpMeta[0];
3041 /* Pattern matching succeeded */
3042#line 2456 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3043 _len1 = stringLength(_i)(((((*(mmc_uint_t*)((void*)((char*)(_i) - 3)))) >> (3))
- 8))
;
3044#line 3044 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3045
3046#line 2457 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3047 _len2 = stringLength(_idx)(((((*(mmc_uint_t*)((void*)((char*)(_idx) - 3)))) >> (3
)) - 8))
;
3048#line 3048 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3049
3050#line 2459 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3051 /* Pattern-matching assignment */
3052#line 2459 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3053 tmp6 = ((((modelica_integer) 0) == omc_System_strncmp(threadData, _i, _idx, _len1)) || (((modelica_integer) 0) == omc_System_strncmp(threadData, _idx, _i, _len2)));
3054#line 2459 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3055 if (1 != tmp6) goto goto_2;
3056#line 3056 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3057#line 2460 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3058 tmp1 = 1;
3059#line 3059 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3060 goto tmp3_done;
3061 }
3062 case 1: {
3063
3064 /* Pattern matching succeeded */
3065#line 2461 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3066 tmp1 = 0;
3067#line 3067 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3068 goto tmp3_done;
3069 }
3070 }
3071 goto tmp3_end;
3072 tmp3_end: ;
3073 }
3074 goto goto_2;
3075 tmp3_done:
3076 (void)tmp4;
3077 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3078 goto tmp3_done2;
3079 goto_2:;
3080 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3081 if (++tmp4 < 2) {
3082 goto tmp3_top;
3083 }
3084 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3085 tmp3_done2:;
3086 }
3087 }
3088 _isPrefix = tmp1;
3089 _return: OMC_LABEL_UNUSED__attribute__((unused))
3090 return _isPrefix;
3091}
3092PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_isPrefixOf(threadData_t *threadData, modelica_metatype _indexSubMod, modelica_metatype _idx)
3093{
3094 modelica_boolean _isPrefix;
3095 modelica_metatype out_isPrefix;
3096 _isPrefix = omc_Mod_isPrefixOf(threadData, _indexSubMod, _idx);
3097 out_isPrefix = mmc_mk_icon(_isPrefix);
3098 return out_isPrefix;
3099}
3100
3101PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_intStringDot(threadData_t *threadData, modelica_integer _i)
3102{
3103 modelica_string _str = NULL((void*)0);
3104 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3105 MMC_SO()mmc_check_stackoverflow(threadData);
3106 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3107 // _str has no default value.
3108#line 2441 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3109 tmpMeta[0] = stringAppend(intString(_i),_OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)));
3110#line 2441 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3111 _str = tmpMeta[0];
3112#line 3112 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3113 _return: OMC_LABEL_UNUSED__attribute__((unused))
3114 return _str;
3115}
3116PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_intStringDot(threadData_t *threadData, modelica_metatype _i)
3117{
3118 modelica_integer tmp1;
3119 modelica_string _str = NULL((void*)0);
3120 tmp1 = mmc_unbox_integer(_i)(((mmc_sint_t) (_i)) >> 1);
3121 _str = omc_Mod_intStringDot(threadData, tmp1);
3122 /* skip box _str; String */
3123 return _str;
3124}
3125
3126DLLExport
3127modelica_boolean omc_Mod_emptyModOrEquality(threadData_t *threadData, modelica_metatype _mod)
3128{
3129 modelica_boolean _b;
3130 modelica_boolean tmp1 = 0;
3131 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3132 MMC_SO()mmc_check_stackoverflow(threadData);
3133 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3134 // _b has no default value.
3135#line 3135 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3136 { /* match expression */
3137 modelica_metatype tmp4_1;
3138 tmp4_1 = _mod;
3139 {
3140 volatile mmc_switch_type tmp4;
3141 int tmp5;
3142 tmp4 = 0;
3143 for (; tmp4 < 3; tmp4++) {
3144 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3145 case 0: {
3146 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
3147 /* Pattern matching succeeded */
3148#line 2431 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3149 tmp1 = 1;
3150#line 3150 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3151 goto tmp3_done;
3152 }
3153 case 1: {
3154 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3155 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
3156 if (!listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3157
3158 /* Pattern matching succeeded */
3159#line 2432 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3160 tmp1 = 1;
3161#line 3161 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3162 goto tmp3_done;
3163 }
3164 case 2: {
3165
3166 /* Pattern matching succeeded */
3167#line 2433 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3168 tmp1 = 0;
3169#line 3169 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3170 goto tmp3_done;
3171 }
3172 }
3173 goto tmp3_end;
3174 tmp3_end: ;
3175 }
3176 goto goto_2;
3177 goto_2:;
3178 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3179 goto tmp3_done;
3180 tmp3_done:;
3181 }
3182 }
3183 _b = tmp1;
3184 _return: OMC_LABEL_UNUSED__attribute__((unused))
3185 return _b;
3186}
3187modelica_metatype boxptr_Mod_emptyModOrEquality(threadData_t *threadData, modelica_metatype _mod)
3188{
3189 modelica_boolean _b;
3190 modelica_metatype out_b;
3191 _b = omc_Mod_emptyModOrEquality(threadData, _mod);
3192 out_b = mmc_mk_icon(_b);
3193 return out_b;
3194}
3195
3196DLLExport
3197modelica_metatype omc_Mod_renameNamedSubMod(threadData_t *threadData, modelica_metatype _submod, modelica_string _oldIdent, modelica_string _newIdent)
3198{
3199 modelica_metatype _outMod = NULL((void*)0);
3200 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3201 MMC_SO()mmc_check_stackoverflow(threadData);
3202 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3203 // _outMod has no default value.
3204#line 3204 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3205 { /* match expression */
3206 modelica_metatype tmp3_1;
3207 tmp3_1 = _submod;
3208 {
3209 modelica_metatype _mod = NULL((void*)0);
3210 modelica_string _id = NULL((void*)0);
3211 volatile mmc_switch_type tmp3;
3212 int tmp4;
3213 // _mod has no default value.
3214 // _id has no default value.
3215 tmp3 = 0;
3216 for (; tmp3 < 2; tmp3++) {
3217 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3218 case 0: {
3219 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3220 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3221 _id = tmpMeta[1];
3222 _mod = tmpMeta[2];
3223 /* Pattern matching succeeded */
3224 /* Check guard condition after assignments */
3225 if (!(stringEqual(_id, _oldIdent)((((((*(mmc_uint_t*)((void*)((char*)(_id) - 3)))) >> (3
)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_oldIdent) - 3
)))) >> (3)) - 8)) && !mmc_stringCompare(_id,_oldIdent
))
)) goto tmp2_end;
3226#line 2421 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3227 tmpMeta[1] = mmc_mk_box3(3, &DAE_SubMod_NAMEMOD__desc, _newIdent, _mod);
3228#line 2421 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3229 tmpMeta[0] = tmpMeta[1];
3230#line 3230 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3231 goto tmp2_done;
3232 }
3233 case 1: {
3234
3235 /* Pattern matching succeeded */
3236#line 2422 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3237 tmpMeta[0] = _submod;
3238#line 3238 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3239 goto tmp2_done;
3240 }
3241 }
3242 goto tmp2_end;
3243 tmp2_end: ;
3244 }
3245 goto goto_1;
3246 goto_1:;
3247 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3248 goto tmp2_done;
3249 tmp2_done:;
3250 }
3251 }
3252 _outMod = tmpMeta[0];
3253 _return: OMC_LABEL_UNUSED__attribute__((unused))
3254 return _outMod;
3255}
3256
3257DLLExport
3258modelica_metatype omc_Mod_renameTopLevelNamedSubMod(threadData_t *threadData, modelica_metatype _mod, modelica_string _oldIdent, modelica_string _newIdent)
3259{
3260 modelica_metatype _outMod = NULL((void*)0);
3261 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3262 MMC_SO()mmc_check_stackoverflow(threadData);
3263 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3264 _outMod = _mod;
3265#line 3265 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3266 { /* match expression */
3267 modelica_metatype tmp3_1;
3268 tmp3_1 = _outMod;
3269 {
3270 volatile mmc_switch_type tmp3;
3271 int tmp4;
3272 tmp3 = 0;
3273 for (; tmp3 < 2; tmp3++) {
3274 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3275 case 0: {
3276 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;
3277
3278 /* Pattern matching succeeded */
3279#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3280 {
3281#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3282 modelica_metatype _D_24tmpVar1;
3283#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3284 modelica_metatype* tmp5;
3285#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3286 modelica_metatype _D_24tmpVar0;
3287#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3288 int tmp6;
3289#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3290 modelica_metatype _s_loopVar = 0;
3291#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3292 modelica_metatype _s;
3293#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3294 _s_loopVar = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outMod), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_outMod) - 3)))
+ (4)))))
);
3295#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3296 tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3297#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3298 _D_24tmpVar1 = tmpMeta[3]; /* defaultValue */
3299#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3300 tmp5 = &_D_24tmpVar1;
3301#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3302 while(1) {
3303#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3304 tmp6 = 1;
3305#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3306 if (!listEmpty(_s_loopVar)((*(mmc_uint_t*)((void*)((char*)(_s_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
3307#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3308 _s = MMC_CAR(_s_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_s_loopVar) - 3
))) + (1)))))
;
3309#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3310 _s_loopVar = MMC_CDR(_s_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_s_loopVar) - 3
))) + (2)))))
;
3311#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3312 tmp6--;
3313#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3314 }
3315#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3316 if (tmp6 == 0) {
3317#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3318 _D_24tmpVar0 = omc_Mod_renameNamedSubMod(threadData, _s, _oldIdent, _newIdent);
3319#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3320 *tmp5 = mmc_mk_cons(_D_24tmpVar0,0);
3321#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3322 tmp5 = &MMC_CDR(*tmp5)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp5) - 3))) +
(2)))))
;
3323#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3324 } else if (tmp6 == 1) {
3325#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3326 break;
3327#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3328 } else {
3329#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3330 goto goto_1;
3331#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3332 }
3333#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3334 }
3335#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3336 *tmp5 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
3337#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3338 tmpMeta[2] = _D_24tmpVar1;
3339#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3340 }
3341#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3342 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
3343#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3344 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outMod)((void*)((char*)(_outMod) - 3)), 7*sizeof(modelica_metatype));
3345#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3346 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[4] = tmpMeta[2];
3347#line 2401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3348 _outMod = tmpMeta[1];
3349#line 3349 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3350#line 2402 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3351 tmpMeta[0] = _outMod;
3352#line 3352 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3353 goto tmp2_done;
3354 }
3355 case 1: {
3356
3357 /* Pattern matching succeeded */
3358#line 2405 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3359 tmpMeta[0] = _mod;
3360#line 3360 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3361 goto tmp2_done;
3362 }
3363 }
3364 goto tmp2_end;
3365 tmp2_end: ;
3366 }
3367 goto goto_1;
3368 goto_1:;
3369 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3370 goto tmp2_done;
3371 tmp2_done:;
3372 }
3373 }
3374 _outMod = tmpMeta[0];
3375 _return: OMC_LABEL_UNUSED__attribute__((unused))
3376 return _outMod;
3377}
3378
3379PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_printEqmodStr(threadData_t *threadData, modelica_metatype _inTypesEqModOption)
3380{
3381 modelica_string _outString = NULL((void*)0);
3382 modelica_string tmp1 = 0;
3383 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
3384 MMC_SO()mmc_check_stackoverflow(threadData);
3385 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3386 // _outString has no default value.
3387#line 3387 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3388 { /* matchcontinue expression */
3389 volatile modelica_metatype tmp4_1;
3390 tmp4_1 = _inTypesEqModOption;
3391 {
3392 modelica_string _str = NULL((void*)0);
3393 modelica_string _str2 = NULL((void*)0);
3394 modelica_string _e_val_str = NULL((void*)0);
3395 modelica_metatype _e = NULL((void*)0);
3396 modelica_metatype _e_val = NULL((void*)0);
3397 modelica_metatype _prop = NULL((void*)0);
3398 modelica_metatype _ae = NULL((void*)0);
3399 volatile mmc_switch_type tmp4;
3400 int tmp5;
3401 // _str has no default value.
3402 // _str2 has no default value.
3403 // _e_val_str has no default value.
3404 // _e has no default value.
3405 // _e_val has no default value.
3406 // _prop has no default value.
3407 // _ae has no default value.
3408 tmp4 = 0;
3409 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) {
3410 tmp3_top:
3411 threadData->mmc_jumper = &new_mmc_jumper;
3412 for (; tmp4 < 5; tmp4++) {
3413 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3414 case 0: {
3415 if (!optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
3416 tmp4 += 3; /* Pattern matching succeeded; we may skip some cases if we fail */
3417#line 2358 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3418 tmp1 = _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3));
3419#line 3419 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3420 goto tmp3_done;
3421 }
3422 case 1: {
3423 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
3424 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
3425 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3426 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
3427 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
3428 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 tmp3_end;
3429 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
3430 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
3431
3432 _e = tmpMeta[1];
3433 _e_val = tmpMeta[3];
3434 _prop = tmpMeta[4];
3435 tmp4 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
3436#line 2362 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3437 _str = omc_ExpressionDump_printExpStr(threadData, _e);
3438#line 3438 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3439
3440#line 2363 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3441 _str2 = omc_Types_printPropStr(threadData, _prop);
3442#line 3442 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3443
3444#line 2364 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3445 _e_val_str = omc_ValuesUtil_valString(threadData, _e_val);
3446#line 3446 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3447#line 2365 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3448 tmpMeta[0] = mmc_mk_cons(_OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)), mmc_mk_cons(_str, mmc_mk_cons(_OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)), mmc_mk_cons(_str2, mmc_mk_cons(_OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)), mmc_mk_cons(_e_val_str, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))))))));
3449#line 2365 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3450 tmp1 = stringAppendList(tmpMeta[0]);
3451#line 3451 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3452 goto tmp3_done;
3453 }
3454 case 2: {
3455 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
3456 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
3457 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3458 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
3459 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
3460 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 tmp3_end;
3461 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
3462
3463 _e = tmpMeta[1];
3464 _prop = tmpMeta[3];
3465 tmp4 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
3466#line 2371 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3467 _str = omc_ExpressionDump_printExpStr(threadData, _e);
3468#line 3468 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3469
3470#line 2372 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3471 _str2 = omc_Types_printPropStr(threadData, _prop);
3472#line 3472 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3473#line 2373 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3474 tmpMeta[0] = mmc_mk_cons(_OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)), mmc_mk_cons(_str, mmc_mk_cons(_OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)), mmc_mk_cons(_str2, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))))));
3475#line 2373 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3476 tmp1 = stringAppendList(tmpMeta[0]);
3477#line 3477 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3478 goto tmp3_done;
3479 }
3480 case 3: {
3481 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
3482 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
3483 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3484 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
3485 _ae = tmpMeta[1];
3486 /* Pattern matching succeeded */
3487#line 2379 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3488 _str = omc_Dump_printExpStr(threadData, _ae);
3489#line 3489 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3490#line 2380 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3491 tmpMeta[0] = stringAppend(_OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)),_str);
3492#line 2380 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3493 tmp1 = tmpMeta[0];
3494#line 3494 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3495 goto tmp3_done;
3496 }
3497 case 4: {
3498
3499 /* Pattern matching succeeded */
3500#line 2386 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3501 tmp1 = _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3));
3502#line 3502 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3503 goto tmp3_done;
3504 }
3505 }
3506 goto tmp3_end;
3507 tmp3_end: ;
3508 }
3509 goto goto_2;
3510 tmp3_done:
3511 (void)tmp4;
3512 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3513 goto tmp3_done2;
3514 goto_2:;
3515 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3516 if (++tmp4 < 5) {
3517 goto tmp3_top;
3518 }
3519 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3520 tmp3_done2:;
3521 }
3522 }
3523 _outString = tmp1;
3524 _return: OMC_LABEL_UNUSED__attribute__((unused))
3525 return _outString;
3526}
3527
3528PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_printSubStr(threadData_t *threadData, modelica_metatype _inSubMod)
3529{
3530 modelica_string _outString = NULL((void*)0);
3531 modelica_string tmp1 = 0;
3532 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3533 MMC_SO()mmc_check_stackoverflow(threadData);
3534 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3535 // _outString has no default value.
3536#line 3536 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3537 { /* match expression */
3538 modelica_metatype tmp4_1;
3539 tmp4_1 = _inSubMod;
3540 {
3541 modelica_string _mod_str = NULL((void*)0);
3542 modelica_string _n = NULL((void*)0);
3543 modelica_metatype _mod = NULL((void*)0);
3544 volatile mmc_switch_type tmp4;
3545 int tmp5;
3546 // _mod_str has no default value.
3547 // _n has no default value.
3548 // _mod has no default value.
3549 tmp4 = 0;
3550 for (; tmp4 < 1; tmp4++) {
3551 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3552 case 0: {
3553 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3554 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
3555 _n = tmpMeta[0];
3556 _mod = tmpMeta[1];
3557 /* Pattern matching succeeded */
3558#line 2338 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3559 _mod_str = omc_Mod_printModStr(threadData, _mod);
3560#line 3560 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3561#line 2339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3562 tmpMeta[0] = stringAppend(_n,_OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)));
3563#line 2339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3564 tmpMeta[1] = stringAppend(tmpMeta[0],_mod_str);
3565#line 2339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3566 tmp1 = tmpMeta[1];
3567#line 3567 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3568 goto tmp3_done;
3569 }
3570 }
3571 goto tmp3_end;
3572 tmp3_end: ;
3573 }
3574 goto goto_2;
3575 goto_2:;
3576 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3577 goto tmp3_done;
3578 tmp3_done:;
3579 }
3580 }
3581 _outString = tmp1;
3582 _return: OMC_LABEL_UNUSED__attribute__((unused))
3583 return _outString;
3584}
3585
3586DLLExport
3587modelica_metatype omc_Mod_printSubs1Str(threadData_t *threadData, modelica_metatype _inTypesSubModLst)
3588{
3589 modelica_metatype _outStringLst = NULL((void*)0);
3590 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3591 MMC_SO()mmc_check_stackoverflow(threadData);
3592 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3593 // _outStringLst has no default value.
3594#line 3594 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3595 { /* match expression */
3596 modelica_metatype tmp3_1;
3597 tmp3_1 = _inTypesSubModLst;
3598 {
3599 modelica_string _s1 = NULL((void*)0);
3600 modelica_metatype _res = NULL((void*)0);
3601 modelica_metatype _x = NULL((void*)0);
3602 modelica_metatype _xs = NULL((void*)0);
3603 volatile mmc_switch_type tmp3;
3604 int tmp4;
3605 // _s1 has no default value.
3606 // _res has no default value.
3607 // _x has no default value.
3608 // _xs has no default value.
3609 tmp3 = 0;
3610 for (; tmp3 < 2; tmp3++) {
3611 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3612 case 0: {
3613 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3614 /* Pattern matching succeeded */
3615#line 2317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3616 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3617#line 2317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3618 tmpMeta[0] = tmpMeta[1];
3619#line 3619 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3620 goto tmp2_done;
3621 }
3622 case 1: {
3623 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3624 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3625 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3626 _x = tmpMeta[1];
3627 _xs = tmpMeta[2];
3628 /* Pattern matching succeeded */
3629#line 2320 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3630 _s1 = omc_Mod_printSubStr(threadData, _x);
3631#line 3631 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3632
3633#line 2321 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3634 _res = omc_Mod_printSubs1Str(threadData, _xs);
3635#line 3635 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3636#line 2322 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3637 tmpMeta[1] = mmc_mk_cons(_s1, _res);
3638#line 2322 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3639 tmpMeta[0] = tmpMeta[1];
3640#line 3640 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3641 goto tmp2_done;
3642 }
3643 }
3644 goto tmp2_end;
3645 tmp2_end: ;
3646 }
3647 goto goto_1;
3648 goto_1:;
3649 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3650 goto tmp2_done;
3651 tmp2_done:;
3652 }
3653 }
3654 _outStringLst = tmpMeta[0];
3655 _return: OMC_LABEL_UNUSED__attribute__((unused))
3656 return _outStringLst;
3657}
3658
3659DLLExport
3660modelica_string omc_Mod_prettyPrintSubmod(threadData_t *threadData, modelica_metatype _inSub)
3661{
3662 modelica_string _str = NULL((void*)0);
3663 modelica_string tmp1 = 0;
3664 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
3665 MMC_SO()mmc_check_stackoverflow(threadData);
3666 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3667 // _str has no default value.
3668#line 3668 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3669 { /* match expression */
3670 modelica_metatype tmp4_1;
3671 tmp4_1 = _inSub;
3672 {
3673 modelica_string _s1 = NULL((void*)0);
3674 modelica_string _s2 = NULL((void*)0);
3675 modelica_string _id = NULL((void*)0);
3676 modelica_metatype _m = NULL((void*)0);
3677 volatile mmc_switch_type tmp4;
3678 int tmp5;
3679 // _s1 has no default value.
3680 // _s2 has no default value.
3681 // _id has no default value.
3682 // _m has no default value.
3683 tmp4 = 0;
3684 for (; tmp4 < 2; tmp4++) {
3685 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3686 case 0: {
3687 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3688 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
3689 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,4)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((4 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3690
3691 _id = tmpMeta[0];
3692 _m = tmpMeta[1];
3693 /* Pattern matching succeeded */
3694#line 2289 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3695 _s1 = omc_SCodeDump_unparseElementStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_m), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_m) - 3))) + (4
)))))
), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3696#line 3696 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3697#line 2290 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3698 tmpMeta[0] = stringAppend(_id,_OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)));
3699#line 2290 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3700 tmpMeta[1] = stringAppend(tmpMeta[0],(omc_SCodeUtil_eachBool(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_m), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_m) - 3))) + (3
)))))
))?_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)):_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))));
3701#line 2290 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3702 tmpMeta[2] = stringAppend(tmpMeta[1],(omc_SCodeUtil_finalBool(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_m), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_m) - 3))) + (2
)))))
))?_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)):_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))));
3703#line 2290 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3704 tmpMeta[3] = stringAppend(tmpMeta[2],_s1);
3705#line 2290 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3706 tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)));
3707#line 2290 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3708 tmp1 = tmpMeta[4];
3709#line 3709 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3710 goto tmp3_done;
3711 }
3712 case 1: {
3713 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3714 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
3715 _id = tmpMeta[0];
3716 _m = tmpMeta[1];
3717 /* Pattern matching succeeded */
3718#line 2298 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3719 _s2 = omc_Mod_prettyPrintMod(threadData, _m, ((modelica_integer) 0));
3720#line 3720 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3721#line 2299 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3722 tmpMeta[0] = stringAppend(_id,_s2);
3723#line 2299 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3724 tmp1 = tmpMeta[0];
3725#line 3725 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3726 goto tmp3_done;
3727 }
3728 }
3729 goto tmp3_end;
3730 tmp3_end: ;
3731 }
3732 goto goto_2;
3733 goto_2:;
3734 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3735 goto tmp3_done;
3736 tmp3_done:;
3737 }
3738 }
3739 _str = tmp1;
3740 _return: OMC_LABEL_UNUSED__attribute__((unused))
3741 return _str;
3742}
3743
3744PROTECTED_FUNCTION_STATIC modelica_string omc_Mod_prettyPrintSubs(threadData_t *threadData, modelica_metatype _inSubs, modelica_integer _depth)
3745{
3746 modelica_string _str = NULL((void*)0);
3747 modelica_string tmp1 = 0;
3748 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3749 MMC_SO()mmc_check_stackoverflow(threadData);
3750 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3751 // _str has no default value.
3752#line 3752 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3753 { /* match expression */
3754 modelica_metatype tmp4_1;
3755 tmp4_1 = _inSubs;
3756 {
3757 modelica_string _s2 = NULL((void*)0);
3758 modelica_string _id = NULL((void*)0);
3759 modelica_metatype _m = NULL((void*)0);
3760 volatile mmc_switch_type tmp4;
3761 int tmp5;
3762 // _s2 has no default value.
3763 // _id has no default value.
3764 // _m has no default value.
3765 tmp4 = 0;
3766 for (; tmp4 < 3; tmp4++) {
3767 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3768 case 0: {
3769 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3770 /* Pattern matching succeeded */
3771#line 2258 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3772 tmp1 = _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3));
3773#line 3773 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3774 goto tmp3_done;
3775 }
3776 case 1: {
3777 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3778 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
3779 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3780 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
3781 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
3782 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],1,4)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((4 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3783
3784 _id = tmpMeta[2];
3785 /* Pattern matching succeeded */
3786#line 2261 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3787 tmpMeta[0] = stringAppend(_OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)),_id);
3788#line 2261 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3789 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)));
3790#line 2261 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3791 tmpMeta[2] = stringAppend(tmpMeta[1],_id);
3792#line 2261 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3793 tmp1 = tmpMeta[2];
3794#line 3794 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3795 goto tmp3_done;
3796 }
3797 case 2: {
3798 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
3799 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
3800 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3801 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
3802 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
3803 _id = tmpMeta[2];
3804 _m = tmpMeta[3];
3805 /* Pattern matching succeeded */
3806#line 2266 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3807 _s2 = omc_Mod_prettyPrintMod(threadData, _m, ((modelica_integer) 1) + _depth);
3808#line 3808 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3809#line 2267 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3810 tmpMeta[0] = stringAppend(_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)),_id);
3811#line 2267 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3812 tmpMeta[1] = stringAppend(tmpMeta[0],_s2);
3813#line 2267 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3814 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)));
3815#line 2267 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3816 tmpMeta[3] = stringAppend(tmpMeta[2],_id);
3817#line 2267 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3818 tmp1 = tmpMeta[3];
3819#line 3819 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3820 goto tmp3_done;
3821 }
3822 }
3823 goto tmp3_end;
3824 tmp3_end: ;
3825 }
3826 goto goto_2;
3827 goto_2:;
3828 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3829 goto tmp3_done;
3830 tmp3_done:;
3831 }
3832 }
3833 _str = tmp1;
3834 _return: OMC_LABEL_UNUSED__attribute__((unused))
3835 return _str;
3836}
3837PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_prettyPrintSubs(threadData_t *threadData, modelica_metatype _inSubs, modelica_metatype _depth)
3838{
3839 modelica_integer tmp1;
3840 modelica_string _str = NULL((void*)0);
3841 tmp1 = mmc_unbox_integer(_depth)(((mmc_sint_t) (_depth)) >> 1);
3842 _str = omc_Mod_prettyPrintSubs(threadData, _inSubs, tmp1);
3843 /* skip box _str; String */
3844 return _str;
3845}
3846
3847DLLExport
3848modelica_string omc_Mod_prettyPrintMod(threadData_t *threadData, modelica_metatype _m, modelica_integer _depth)
3849{
3850 modelica_string _str = NULL((void*)0);
3851 modelica_string tmp1 = 0;
3852 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3853 MMC_SO()mmc_check_stackoverflow(threadData);
3854 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3855 // _str has no default value.
3856#line 3856 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3857 { /* matchcontinue expression */
3858 volatile modelica_metatype tmp4_1;
3859 tmp4_1 = _m;
3860 {
3861 modelica_metatype _subs = NULL((void*)0);
3862 modelica_metatype _fp = NULL((void*)0);
3863 modelica_metatype _eq = NULL((void*)0);
3864 volatile mmc_switch_type tmp4;
3865 int tmp5;
3866 // _subs has no default value.
3867 // _fp has no default value.
3868 // _eq has no default value.
3869 tmp4 = 0;
3870 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) {
3871 tmp3_top:
3872 threadData->mmc_jumper = &new_mmc_jumper;
3873 for (; tmp4 < 5; tmp4++) {
3874 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3875 case 0: {
3876 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3877 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
3878 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
3879 if (!optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
3880
3881 _subs = tmpMeta[0];
3882 tmp4 += 3; /* Pattern matching succeeded; we may skip some cases if we fail */
3883#line 2224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3884 tmp1 = omc_Mod_prettyPrintSubs(threadData, _subs, _depth);
3885#line 3885 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3886 goto tmp3_done;
3887 }
3888 case 1: {
3889 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
3890 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
3891 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
3892 if (optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
3893 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
3894
3895 _fp = tmpMeta[0];
3896 _eq = tmpMeta[2];
3897 tmp4 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
3898#line 2227 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3899 tmpMeta[0] = stringAppend((omc_SCodeUtil_finalBool(threadData, _fp)?_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)):_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))),_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
3900#line 2227 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3901 tmpMeta[1] = stringAppend(tmpMeta[0],omc_Types_unparseEqMod(threadData, _eq));
3902#line 2227 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3903 tmp1 = tmpMeta[1];
3904#line 3904 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3905 goto tmp3_done;
3906 }
3907 case 2: {
3908 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3909
3910 tmp4 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
3911#line 2230 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3912 tmp1 = omc_SCodeDump_unparseElementStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_m), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_m) - 3))) + (4
)))))
), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
3913#line 3913 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3914 goto tmp3_done;
3915 }
3916 case 3: {
3917 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
3918 /* Pattern matching succeeded */
3919#line 2232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3920 tmp1 = _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3));
3921#line 3921 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3922 goto tmp3_done;
3923 }
3924 case 4: {
3925
3926 /* Pattern matching succeeded */
3927#line 2236 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3928 fputs(MMC_STRINGDATA(_OMC_LIT28)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT28).header) + 3))) - 3)))->data)
,stdoutstdout);
3929#line 3929 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3930#line 2237 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3931 goto goto_2;
3932#line 3932 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3933 goto tmp3_done;
3934 }
3935 }
3936 goto tmp3_end;
3937 tmp3_end: ;
3938 }
3939 goto goto_2;
3940 tmp3_done:
3941 (void)tmp4;
3942 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3943 goto tmp3_done2;
3944 goto_2:;
3945 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3946 if (++tmp4 < 5) {
3947 goto tmp3_top;
3948 }
3949 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3950 tmp3_done2:;
3951 }
3952 }
3953 _str = tmp1;
3954 _return: OMC_LABEL_UNUSED__attribute__((unused))
3955 return _str;
3956}
3957modelica_metatype boxptr_Mod_prettyPrintMod(threadData_t *threadData, modelica_metatype _m, modelica_metatype _depth)
3958{
3959 modelica_integer tmp1;
3960 modelica_string _str = NULL((void*)0);
3961 tmp1 = mmc_unbox_integer(_depth)(((mmc_sint_t) (_depth)) >> 1);
3962 _str = omc_Mod_prettyPrintMod(threadData, _m, tmp1);
3963 /* skip box _str; String */
3964 return _str;
3965}
3966
3967DLLExport
3968void omc_Mod_printMod(threadData_t *threadData, modelica_metatype _m)
3969{
3970 modelica_string _str = NULL((void*)0);
3971 MMC_SO()mmc_check_stackoverflow(threadData);
3972 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3973 // _str has no default value.
3974#line 2206 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3975 _str = omc_Mod_printModStr(threadData, _m);
3976#line 3976 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3977
3978#line 2207 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
3979 omc_Print_printBuf(threadData, _str);
3980#line 3980 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3981 _return: OMC_LABEL_UNUSED__attribute__((unused))
3982 return;
3983}
3984
3985DLLExport
3986modelica_string omc_Mod_printModStr(threadData_t *threadData, modelica_metatype _inMod)
3987{
3988 modelica_string _outString = NULL((void*)0);
3989 modelica_string tmp1 = 0;
3990 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3991 MMC_SO()mmc_check_stackoverflow(threadData);
3992 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3993 // _outString has no default value.
3994#line 3994 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
3995 { /* matchcontinue expression */
3996 volatile modelica_metatype tmp4_1;
3997 tmp4_1 = _inMod;
3998 {
3999 modelica_string _prefix = NULL((void*)0);
4000 modelica_string _str = NULL((void*)0);
4001 modelica_string _s1_1 = NULL((void*)0);
4002 modelica_string _s2 = NULL((void*)0);
4003 modelica_metatype _s1 = NULL((void*)0);
4004 modelica_metatype _finalPrefix = NULL((void*)0);
4005 modelica_metatype _eachPrefix = NULL((void*)0);
4006 modelica_metatype _subs = NULL((void*)0);
4007 modelica_metatype _eq = NULL((void*)0);
4008 volatile mmc_switch_type tmp4;
4009 int tmp5;
4010 // _prefix has no default value.
4011 // _str has no default value.
4012 // _s1_1 has no default value.
4013 // _s2 has no default value.
4014 // _s1 has no default value.
4015 // _finalPrefix has no default value.
4016 // _eachPrefix has no default value.
4017 // _subs has no default value.
4018 // _eq has no default value.
4019 tmp4 = 0;
4020 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) {
4021 tmp3_top:
4022 threadData->mmc_jumper = &new_mmc_jumper;
4023 for (; tmp4 < 4; tmp4++) {
4024 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4025 case 0: {
4026 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
4027 tmp4 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
4028#line 2174 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4029 tmp1 = _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3));
4030#line 4030 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4031 goto tmp3_done;
4032 }
4033 case 1: {
4034 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4035 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4036 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
4037
4038 _finalPrefix = tmpMeta[0];
4039 _eachPrefix = tmpMeta[1];
4040 tmp4 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
4041#line 2178 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4042 tmpMeta[0] = stringAppend(omc_SCodeDump_finalStr(threadData, _finalPrefix),omc_SCodeDump_eachStr(threadData, _eachPrefix));
4043#line 2178 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4044 _prefix = tmpMeta[0];
4045#line 4045 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4046
4047#line 2179 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4048 _str = omc_SCodeDump_unparseElementStr(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inMod), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_inMod) - 3))) +
(4)))))
), _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
4049#line 4049 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4050#line 2180 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4051 tmpMeta[0] = mmc_mk_cons(_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)), mmc_mk_cons(_prefix, mmc_mk_cons(_str, mmc_mk_cons(_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)), MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))))));
4052#line 2180 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4053 tmp1 = stringAppendList(tmpMeta[0]);
4054#line 4054 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4055 goto tmp3_done;
4056 }
4057 case 2: {
4058 modelica_boolean tmp6;
4059 modelica_string tmp7;
4060 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
4061 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4062 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
4063 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
4064 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
4065
4066 _finalPrefix = tmpMeta[0];
4067 _eachPrefix = tmpMeta[1];
4068 _subs = tmpMeta[2];
4069 _eq = tmpMeta[3];
4070 /* Pattern matching succeeded */
4071#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4072 tmpMeta[0] = stringAppend(omc_SCodeDump_finalStr(threadData, _finalPrefix),omc_SCodeDump_eachStr(threadData, _eachPrefix));
4073#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4074 _prefix = tmpMeta[0];
4075#line 4075 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4076
4077#line 2188 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4078 _s1 = omc_Mod_printSubs1Str(threadData, _subs);
4079#line 4079 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4080
4081#line 2189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4082 _s1_1 = stringDelimitList(_s1, _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)));
4083#line 4083 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4084
4085#line 2190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4086 tmp6 = (modelica_boolean)(!listEmpty(_subs)((*(mmc_uint_t*)((void*)((char*)(_subs) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
);
4087#line 2190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4088 if(tmp6)
4089#line 2190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4090 {
4091#line 2190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4092 tmpMeta[0] = stringAppend(_OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)),_s1_1);
4093#line 2190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4094 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)));
4095#line 2190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4096 tmp7 = tmpMeta[1];
4097#line 2190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4098 }
4099#line 2190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4100 else
4101#line 2190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4102 {
4103#line 2190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4104 tmp7 = _s1_1;
4105#line 2190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4106 }
4107#line 2190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4108 _s1_1 = tmp7;
4109#line 4109 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4110
4111#line 2191 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4112 _s2 = omc_Mod_printEqmodStr(threadData, _eq);
4113#line 4113 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4114#line 2192 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4115 tmpMeta[0] = mmc_mk_cons(_prefix, mmc_mk_cons(_s1_1, mmc_mk_cons(_s2, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)))));
4116#line 2192 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4117 tmp1 = stringAppendList(tmpMeta[0]);
4118#line 4118 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4119 goto tmp3_done;
4120 }
4121 case 3: {
4122
4123 /* Pattern matching succeeded */
4124#line 2196 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4125 fputs(MMC_STRINGDATA(_OMC_LIT32)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT32).header) + 3))) - 3)))->data)
,stdoutstdout);
4126#line 4126 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4127#line 2196 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4128 goto goto_2;
4129#line 4129 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4130 goto tmp3_done;
4131 }
4132 }
4133 goto tmp3_end;
4134 tmp3_end: ;
4135 }
4136 goto goto_2;
4137 tmp3_done:
4138 (void)tmp4;
4139 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4140 goto tmp3_done2;
4141 goto_2:;
4142 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4143 if (++tmp4 < 4) {
4144 goto tmp3_top;
4145 }
4146 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4147 tmp3_done2:;
4148 }
4149 }
4150 _outString = tmp1;
4151 _return: OMC_LABEL_UNUSED__attribute__((unused))
4152 return _outString;
4153}
4154
4155PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_eqModEqual(threadData_t *threadData, modelica_metatype _eqMod1, modelica_metatype _eqMod2)
4156{
4157 modelica_boolean _equal;
4158 modelica_boolean tmp1 = 0;
4159 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
4160 MMC_SO()mmc_check_stackoverflow(threadData);
4161 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4162 // _equal has no default value.
4163#line 4163 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4164 { /* matchcontinue expression */
4165 volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
4166 tmp4_1 = _eqMod1;
4167 tmp4_2 = _eqMod2;
4168 {
4169 modelica_metatype _aexp1 = NULL((void*)0);
4170 modelica_metatype _aexp2 = NULL((void*)0);
4171 modelica_metatype _exp1 = NULL((void*)0);
4172 modelica_metatype _exp2 = NULL((void*)0);
4173 modelica_metatype _v1 = NULL((void*)0);
4174 modelica_metatype _v2 = NULL((void*)0);
4175 volatile mmc_switch_type tmp4;
4176 int tmp5;
4177 // _aexp1 has no default value.
4178 // _aexp2 has no default value.
4179 // _exp1 has no default value.
4180 // _exp2 has no default value.
4181 // _v1 has no default value.
4182 // _v2 has no default value.
4183 tmp4 = 0;
4184 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) {
4185 tmp3_top:
4186 threadData->mmc_jumper = &new_mmc_jumper;
4187 for (; tmp4 < 6; tmp4++) {
4188 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4189 case 0: {
4190 if (!optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4191 if (!optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4192 tmp4 += 4; /* Pattern matching succeeded; we may skip some cases if we fail */
4193#line 2120 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4194 tmp1 = 1;
4195#line 4195 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4196 goto tmp3_done;
4197 }
4198 case 1: {
4199 modelica_boolean tmp6;
4200 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4201 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4202 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
4203 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4204 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
4205 if (optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4206 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4207 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
4208 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
4209 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
4210
4211 _exp1 = tmpMeta[1];
4212 _v1 = tmpMeta[2];
4213 _exp2 = tmpMeta[4];
4214 _v2 = tmpMeta[5];
4215 tmp4 += 3; /* Pattern matching succeeded; we may skip some cases if we fail */
4216#line 2126 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4217 _equal = omc_Expression_expEqual(threadData, _exp1, _exp2);
4218#line 4218 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4219
4220#line 2128 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4221 /* Pattern-matching assignment */
4222#line 2128 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4223 tmp6 = omc_Mod_valEqual(threadData, _v1, _v2, _equal);
4224#line 2128 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4225 if (1 != tmp6) goto goto_2;
4226#line 4226 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4227#line 2129 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4228 tmp1 = 1;
4229#line 4229 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4230 goto tmp3_done;
4231 }
4232 case 2: {
4233 modelica_boolean tmp7;
4234 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4235 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4236 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
4237 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
4238 if (optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4239 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4240 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4241 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4242 _aexp1 = tmpMeta[1];
4243 _aexp2 = tmpMeta[3];
4244 tmp4 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
4245#line 2135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4246 /* Pattern-matching assignment */
4247#line 2135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4248 tmp7 = omc_AbsynUtil_expEqual(threadData, _aexp1, _aexp2);
4249#line 2135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4250 if (1 != tmp7) goto goto_2;
4251#line 4251 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4252#line 2136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4253 tmp1 = 1;
4254#line 4254 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4255 goto tmp3_done;
4256 }
4257 case 3: {
4258 modelica_boolean tmp8;
4259 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4260 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4261 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4262 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4263 if (optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4264 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4265 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
4266 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (5)))))
;
4267
4268 _aexp1 = tmpMeta[1];
4269 _aexp2 = tmpMeta[3];
4270 tmp4 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
4271#line 2142 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4272 /* Pattern-matching assignment */
4273#line 2142 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4274 tmp8 = omc_AbsynUtil_expEqual(threadData, _aexp1, _aexp2);
4275#line 2142 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4276 if (1 != tmp8) goto goto_2;
4277#line 4277 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4278#line 2143 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4279 tmp1 = 1;
4280#line 4280 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4281 goto tmp3_done;
4282 }
4283 case 4: {
4284 modelica_boolean tmp9;
4285 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4286 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4287 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4288 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4289 if (optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4290 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4291 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4292 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4293 _aexp1 = tmpMeta[1];
4294 _aexp2 = tmpMeta[3];
4295 /* Pattern matching succeeded */
4296#line 2149 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4297 /* Pattern-matching assignment */
4298#line 2149 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4299 tmp9 = omc_AbsynUtil_expEqual(threadData, _aexp1, _aexp2);
4300#line 2149 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4301 if (1 != tmp9) goto goto_2;
4302#line 4302 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4303#line 2150 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4304 tmp1 = 1;
4305#line 4305 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4306 goto tmp3_done;
4307 }
4308 case 5: {
4309
4310 /* Pattern matching succeeded */
4311#line 2154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4312 tmp1 = 0;
4313#line 4313 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4314 goto tmp3_done;
4315 }
4316 }
4317 goto tmp3_end;
4318 tmp3_end: ;
4319 }
4320 goto goto_2;
4321 tmp3_done:
4322 (void)tmp4;
4323 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4324 goto tmp3_done2;
4325 goto_2:;
4326 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4327 if (++tmp4 < 6) {
4328 goto tmp3_top;
4329 }
4330 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4331 tmp3_done2:;
4332 }
4333 }
4334 _equal = tmp1;
4335 _return: OMC_LABEL_UNUSED__attribute__((unused))
4336 return _equal;
4337}
4338PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_eqModEqual(threadData_t *threadData, modelica_metatype _eqMod1, modelica_metatype _eqMod2)
4339{
4340 modelica_boolean _equal;
4341 modelica_metatype out_equal;
4342 _equal = omc_Mod_eqModEqual(threadData, _eqMod1, _eqMod2);
4343 out_equal = mmc_mk_icon(_equal);
4344 return out_equal;
4345}
4346
4347PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_valEqual(threadData_t *threadData, modelica_metatype _inV1, modelica_metatype _inV2, modelica_boolean _equal)
4348{
4349 modelica_boolean _bEq;
4350 modelica_boolean tmp1 = 0;
4351 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4352 MMC_SO()mmc_check_stackoverflow(threadData);
4353 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4354 // _bEq has no default value.
4355#line 4355 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4356 { /* match expression */
4357 modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_boolean tmp4_3;
4358 tmp4_1 = _inV1;
4359 tmp4_2 = _inV2;
4360 tmp4_3 = _equal;
4361 {
4362 modelica_metatype _v1 = NULL((void*)0);
4363 modelica_metatype _v2 = NULL((void*)0);
4364 volatile mmc_switch_type tmp4;
4365 int tmp5;
4366 // _v1 has no default value.
4367 // _v2 has no default value.
4368 tmp4 = 0;
4369 for (; tmp4 < 3; tmp4++) {
4370 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4371 case 0: {
4372 if (1 != tmp4_3) goto tmp3_end;
4373
4374 /* Pattern matching succeeded */
4375#line 2096 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4376 tmp1 = 1;
4377#line 4377 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4378 goto tmp3_done;
4379 }
4380 case 1: {
4381 if (!optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4382 if (!optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4383
4384 /* Pattern matching succeeded */
4385#line 2097 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4386 tmp1 = _equal;
4387#line 4387 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4388 goto tmp3_done;
4389 }
4390 case 2: {
4391 if (0 != tmp4_3) goto tmp3_end;
4392 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4393 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4394 if (optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4395 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4396 _v1 = tmpMeta[0];
4397 _v2 = tmpMeta[1];
4398 /* Pattern matching succeeded */
4399#line 2100 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4400 tmp1 = omc_Expression_expEqual(threadData, omc_ValuesUtil_valueExp(threadData, _v1, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3))), omc_ValuesUtil_valueExp(threadData, _v2, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3))));
4401#line 4401 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4402 goto tmp3_done;
4403 }
4404 }
4405 goto tmp3_end;
4406 tmp3_end: ;
4407 }
4408 goto goto_2;
4409 goto_2:;
4410 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4411 goto tmp3_done;
4412 tmp3_done:;
4413 }
4414 }
4415 _bEq = tmp1;
4416 _return: OMC_LABEL_UNUSED__attribute__((unused))
4417 return _bEq;
4418}
4419PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_valEqual(threadData_t *threadData, modelica_metatype _inV1, modelica_metatype _inV2, modelica_metatype _equal)
4420{
4421 modelica_integer tmp1;
4422 modelica_boolean _bEq;
4423 modelica_metatype out_bEq;
4424 tmp1 = mmc_unbox_integer(_equal)(((mmc_sint_t) (_equal)) >> 1);
4425 _bEq = omc_Mod_valEqual(threadData, _inV1, _inV2, tmp1);
4426 out_bEq = mmc_mk_icon(_bEq);
4427 return out_bEq;
4428}
4429
4430DLLExport
4431modelica_boolean omc_Mod_subModEqual(threadData_t *threadData, modelica_metatype _subMod1, modelica_metatype _subMod2)
4432{
4433 modelica_boolean _equal;
4434 modelica_boolean tmp1 = 0;
4435 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
4436 MMC_SO()mmc_check_stackoverflow(threadData);
4437 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4438 // _equal has no default value.
4439#line 4439 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4440 { /* match expression */
4441 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
4442 tmp4_1 = _subMod1;
4443 tmp4_2 = _subMod2;
4444 {
4445 modelica_string _id1 = NULL((void*)0);
4446 modelica_string _id2 = NULL((void*)0);
4447 modelica_metatype _mod1 = NULL((void*)0);
4448 modelica_metatype _mod2 = NULL((void*)0);
4449 volatile mmc_switch_type tmp4;
4450 int tmp5;
4451 // _id1 has no default value.
4452 // _id2 has no default value.
4453 // _mod1 has no default value.
4454 // _mod2 has no default value.
4455 tmp4 = 0;
4456 for (; tmp4 < 2; tmp4++) {
4457 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4458 case 0: {
4459 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4460 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
4461 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
4462 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(3)))))
;
4463 _id1 = tmpMeta[0];
4464 _mod1 = tmpMeta[1];
4465 _id2 = tmpMeta[2];
4466 _mod2 = tmpMeta[3];
4467 /* Pattern matching succeeded */
4468 /* Check guard condition after assignments */
4469 if (!((stringEqual(_id1, _id2)((((((*(mmc_uint_t*)((void*)((char*)(_id1) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_id2) - 3)))
) >> (3)) - 8)) && !mmc_stringCompare(_id1,_id2
))
) && omc_Mod_modEqual(threadData, _mod1, _mod2))) goto tmp3_end;
4470#line 2080 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4471 tmp1 = 1;
4472#line 4472 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4473 goto tmp3_done;
4474 }
4475 case 1: {
4476
4477 /* Pattern matching succeeded */
4478#line 2084 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4479 tmp1 = 0;
4480#line 4480 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4481 goto tmp3_done;
4482 }
4483 }
4484 goto tmp3_end;
4485 tmp3_end: ;
4486 }
4487 goto goto_2;
4488 goto_2:;
4489 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4490 goto tmp3_done;
4491 tmp3_done:;
4492 }
4493 }
4494 _equal = tmp1;
4495 _return: OMC_LABEL_UNUSED__attribute__((unused))
4496 return _equal;
4497}
4498modelica_metatype boxptr_Mod_subModEqual(threadData_t *threadData, modelica_metatype _subMod1, modelica_metatype _subMod2)
4499{
4500 modelica_boolean _equal;
4501 modelica_metatype out_equal;
4502 _equal = omc_Mod_subModEqual(threadData, _subMod1, _subMod2);
4503 out_equal = mmc_mk_icon(_equal);
4504 return out_equal;
4505}
4506
4507PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_subModsEqual(threadData_t *threadData, modelica_metatype _inSubModLst1, modelica_metatype _inSubModLst2)
4508{
4509 modelica_boolean _equal;
4510 modelica_boolean tmp1 = 0;
4511 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
4512 MMC_SO()mmc_check_stackoverflow(threadData);
4513 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4514 // _equal has no default value.
4515#line 4515 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4516 { /* matchcontinue expression */
4517 volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
4518 tmp4_1 = _inSubModLst1;
4519 tmp4_2 = _inSubModLst2;
4520 {
4521 modelica_string _id1 = NULL((void*)0);
4522 modelica_string _id2 = NULL((void*)0);
4523 modelica_metatype _mod1 = NULL((void*)0);
4524 modelica_metatype _mod2 = NULL((void*)0);
4525 modelica_metatype _subModLst1 = NULL((void*)0);
4526 modelica_metatype _subModLst2 = NULL((void*)0);
4527 volatile mmc_switch_type tmp4;
4528 int tmp5;
4529 // _id1 has no default value.
4530 // _id2 has no default value.
4531 // _mod1 has no default value.
4532 // _mod2 has no default value.
4533 // _subModLst1 has no default value.
4534 // _subModLst2 has no default value.
4535 tmp4 = 0;
4536 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) {
4537 tmp3_top:
4538 threadData->mmc_jumper = &new_mmc_jumper;
4539 for (; tmp4 < 3; tmp4++) {
4540 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4541 case 0: {
4542 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4543 if (!listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4544 tmp4 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
4545#line 2050 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4546 tmp1 = 1;
4547#line 4547 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4548 goto tmp3_done;
4549 }
4550 case 1: {
4551 modelica_boolean tmp6;
4552 modelica_boolean tmp7;
4553 modelica_boolean tmp8;
4554 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4555 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4556 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4557 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4558 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
4559 if (listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4560 tmpMeta[4] = MMC_CAR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4561 tmpMeta[5] = MMC_CDR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
4562 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
4563 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (3)))))
;
4564 _id1 = tmpMeta[2];
4565 _mod1 = tmpMeta[3];
4566 _subModLst1 = tmpMeta[1];
4567 _id2 = tmpMeta[6];
4568 _mod2 = tmpMeta[7];
4569 _subModLst2 = tmpMeta[5];
4570 /* Pattern matching succeeded */
4571#line 2054 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4572 /* Pattern-matching assignment */
4573#line 2054 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4574 tmp6 = (stringEqual(_id1, _id2)((((((*(mmc_uint_t*)((void*)((char*)(_id1) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_id2) - 3)))
) >> (3)) - 8)) && !mmc_stringCompare(_id1,_id2
))
);
4575#line 2054 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4576 if (1 != tmp6) goto goto_2;
4577#line 4577 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4578
4579#line 2055 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4580 /* Pattern-matching assignment */
4581#line 2055 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4582 tmp7 = omc_Mod_modEqual(threadData, _mod1, _mod2);
4583#line 2055 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4584 if (1 != tmp7) goto goto_2;
4585#line 4585 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4586
4587#line 2056 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4588 /* Pattern-matching assignment */
4589#line 2056 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4590 tmp8 = omc_Mod_subModsEqual(threadData, _subModLst1, _subModLst2);
4591#line 2056 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4592 if (1 != tmp8) goto goto_2;
4593#line 4593 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4594#line 2057 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4595 tmp1 = 1;
4596#line 4596 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4597 goto tmp3_done;
4598 }
4599 case 2: {
4600
4601 /* Pattern matching succeeded */
4602#line 2061 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4603 tmp1 = 0;
4604#line 4604 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4605 goto tmp3_done;
4606 }
4607 }
4608 goto tmp3_end;
4609 tmp3_end: ;
4610 }
4611 goto goto_2;
4612 tmp3_done:
4613 (void)tmp4;
4614 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4615 goto tmp3_done2;
4616 goto_2:;
4617 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4618 if (++tmp4 < 3) {
4619 goto tmp3_top;
4620 }
4621 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4622 tmp3_done2:;
4623 }
4624 }
4625 _equal = tmp1;
4626 _return: OMC_LABEL_UNUSED__attribute__((unused))
4627 return _equal;
4628}
4629PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_subModsEqual(threadData_t *threadData, modelica_metatype _inSubModLst1, modelica_metatype _inSubModLst2)
4630{
4631 modelica_boolean _equal;
4632 modelica_metatype out_equal;
4633 _equal = omc_Mod_subModsEqual(threadData, _inSubModLst1, _inSubModLst2);
4634 out_equal = mmc_mk_icon(_equal);
4635 return out_equal;
4636}
4637
4638DLLExport
4639modelica_boolean omc_Mod_modEqual(threadData_t *threadData, modelica_metatype _mod1, modelica_metatype _mod2)
4640{
4641 modelica_boolean _equal;
4642 modelica_boolean tmp1 = 0;
4643 MMC_SO()mmc_check_stackoverflow(threadData);
4644 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4645 // _equal has no default value.
4646#line 4646 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4647 { /* match expression */
4648 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
4649 tmp4_1 = _mod1;
4650 tmp4_2 = _mod2;
4651 {
4652 volatile mmc_switch_type tmp4;
4653 int tmp5;
4654 tmp4 = 0;
4655 for (; tmp4 < 4; tmp4++) {
4656 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4657 case 0: {
4658 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
4659 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
4660
4661 /* Pattern matching succeeded */
4662#line 2022 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4663 tmp1 = (((omc_SCodeUtil_finalEqual(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_mod1) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_mod2) - 3))) +
(2)))))
)) && omc_SCodeUtil_eachEqual(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_mod1) - 3))) +
(3)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_mod2) - 3))) +
(3)))))
))) && omc_List_isEqualOnTrue(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_mod1) - 3))) +
(4)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_mod2) - 3))) +
(4)))))
), boxvar_Mod_subModEqual((void*)((char*)(&(boxvar_lit_Mod_subModEqual).header) + 3
))
)) && omc_Mod_eqModEqual(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_mod1) - 3))) +
(5)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod2), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_mod2) - 3))) +
(5)))))
)));
4664#line 4664 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4665 goto tmp3_done;
4666 }
4667 case 1: {
4668 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4669 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4670
4671 /* Pattern matching succeeded */
4672#line 2028 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4673 tmp1 = ((omc_SCodeUtil_finalEqual(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_mod1) - 3))) +
(2)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_mod2) - 3))) +
(2)))))
)) && omc_SCodeUtil_eachEqual(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_mod1) - 3))) +
(3)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_mod2) - 3))) +
(3)))))
))) && omc_SCodeUtil_elementEqual(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_mod1) - 3))) +
(4)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_mod2) - 3))) +
(4)))))
)));
4674#line 4674 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4675 goto tmp3_done;
4676 }
4677 case 2: {
4678 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
4679 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
4680 /* Pattern matching succeeded */
4681#line 2032 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4682 tmp1 = 1;
4683#line 4683 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4684 goto tmp3_done;
4685 }
4686 case 3: {
4687
4688 /* Pattern matching succeeded */
4689#line 2033 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4690 tmp1 = 0;
4691#line 4691 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4692 goto tmp3_done;
4693 }
4694 }
4695 goto tmp3_end;
4696 tmp3_end: ;
4697 }
4698 goto goto_2;
4699 goto_2:;
4700 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4701 goto tmp3_done;
4702 tmp3_done:;
4703 }
4704 }
4705 _equal = tmp1;
4706 _return: OMC_LABEL_UNUSED__attribute__((unused))
4707 return _equal;
4708}
4709modelica_metatype boxptr_Mod_modEqual(threadData_t *threadData, modelica_metatype _mod1, modelica_metatype _mod2)
4710{
4711 modelica_boolean _equal;
4712 modelica_metatype out_equal;
4713 _equal = omc_Mod_modEqual(threadData, _mod1, _mod2);
4714 out_equal = mmc_mk_icon(_equal);
4715 return out_equal;
4716}
4717
4718PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_subModsSubsetOrEqual(threadData_t *threadData, modelica_metatype _subModLst1, modelica_metatype _subModLst2)
4719{
4720 modelica_boolean _equal;
4721 modelica_boolean tmp1 = 0;
4722 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
4723 MMC_SO()mmc_check_stackoverflow(threadData);
4724 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4725 // _equal has no default value.
4726#line 4726 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4727 { /* matchcontinue expression */
4728 volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
4729 tmp4_1 = _subModLst1;
4730 tmp4_2 = _subModLst2;
4731 {
4732 modelica_string _id1 = NULL((void*)0);
4733 modelica_string _id2 = NULL((void*)0);
4734 modelica_metatype _mod1 = NULL((void*)0);
4735 modelica_metatype _mod2 = NULL((void*)0);
4736 modelica_metatype _rest1 = NULL((void*)0);
4737 modelica_metatype _rest2 = NULL((void*)0);
4738 volatile mmc_switch_type tmp4;
4739 int tmp5;
4740 // _id1 has no default value.
4741 // _id2 has no default value.
4742 // _mod1 has no default value.
4743 // _mod2 has no default value.
4744 // _rest1 has no default value.
4745 // _rest2 has no default value.
4746 tmp4 = 0;
4747 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) {
4748 tmp3_top:
4749 threadData->mmc_jumper = &new_mmc_jumper;
4750 for (; tmp4 < 3; tmp4++) {
4751 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4752 case 0: {
4753 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4754 if (!listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4755 tmp4 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
4756#line 1999 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4757 tmp1 = 1;
4758#line 4758 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4759 goto tmp3_done;
4760 }
4761 case 1: {
4762 modelica_boolean tmp6;
4763 modelica_boolean tmp7;
4764 modelica_boolean tmp8;
4765 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4766 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4767 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4768 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4769 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
4770 if (listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4771 tmpMeta[4] = MMC_CAR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4772 tmpMeta[5] = MMC_CDR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
4773 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
4774 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (3)))))
;
4775 _id1 = tmpMeta[2];
4776 _mod1 = tmpMeta[3];
4777 _rest1 = tmpMeta[1];
4778 _id2 = tmpMeta[6];
4779 _mod2 = tmpMeta[7];
4780 _rest2 = tmpMeta[5];
4781 /* Pattern matching succeeded */
4782#line 2003 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4783 /* Pattern-matching assignment */
4784#line 2003 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4785 tmp6 = (stringEqual(_id1, _id2)((((((*(mmc_uint_t*)((void*)((char*)(_id1) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_id2) - 3)))
) >> (3)) - 8)) && !mmc_stringCompare(_id1,_id2
))
);
4786#line 2003 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4787 if (1 != tmp6) goto goto_2;
4788#line 4788 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4789
4790#line 2004 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4791 /* Pattern-matching assignment */
4792#line 2004 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4793 tmp7 = omc_Mod_modEqual(threadData, _mod1, _mod2);
4794#line 2004 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4795 if (1 != tmp7) goto goto_2;
4796#line 4796 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4797
4798#line 2005 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4799 /* Pattern-matching assignment */
4800#line 2005 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4801 tmp8 = omc_Mod_subModsEqual(threadData, _rest1, _rest2);
4802#line 2005 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4803 if (1 != tmp8) goto goto_2;
4804#line 4804 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4805#line 2006 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4806 tmp1 = 1;
4807#line 4807 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4808 goto tmp3_done;
4809 }
4810 case 2: {
4811
4812 /* Pattern matching succeeded */
4813#line 2010 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4814 tmp1 = 0;
4815#line 4815 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4816 goto tmp3_done;
4817 }
4818 }
4819 goto tmp3_end;
4820 tmp3_end: ;
4821 }
4822 goto goto_2;
4823 tmp3_done:
4824 (void)tmp4;
4825 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4826 goto tmp3_done2;
4827 goto_2:;
4828 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4829 if (++tmp4 < 3) {
4830 goto tmp3_top;
4831 }
4832 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4833 tmp3_done2:;
4834 }
4835 }
4836 _equal = tmp1;
4837 _return: OMC_LABEL_UNUSED__attribute__((unused))
4838 return _equal;
4839}
4840PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_subModsSubsetOrEqual(threadData_t *threadData, modelica_metatype _subModLst1, modelica_metatype _subModLst2)
4841{
4842 modelica_boolean _equal;
4843 modelica_metatype out_equal;
4844 _equal = omc_Mod_subModsSubsetOrEqual(threadData, _subModLst1, _subModLst2);
4845 out_equal = mmc_mk_icon(_equal);
4846 return out_equal;
4847}
4848
4849PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_eqModSubsetOrEqual(threadData_t *threadData, modelica_metatype _eqMod1, modelica_metatype _eqMod2)
4850{
4851 modelica_boolean _equal;
4852 modelica_boolean tmp1 = 0;
4853 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
4854 MMC_SO()mmc_check_stackoverflow(threadData);
4855 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4856 // _equal has no default value.
4857#line 4857 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4858 { /* matchcontinue expression */
4859 volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
4860 tmp4_1 = _eqMod1;
4861 tmp4_2 = _eqMod2;
4862 {
4863 modelica_metatype _aexp1 = NULL((void*)0);
4864 modelica_metatype _aexp2 = NULL((void*)0);
4865 volatile mmc_switch_type tmp4;
4866 int tmp5;
4867 // _aexp1 has no default value.
4868 // _aexp2 has no default value.
4869 tmp4 = 0;
4870 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) {
4871 tmp3_top:
4872 threadData->mmc_jumper = &new_mmc_jumper;
4873 for (; tmp4 < 7; tmp4++) {
4874 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4875 case 0: {
4876 if (!optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4877 if (!optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4878 tmp4 += 5; /* Pattern matching succeeded; we may skip some cases if we fail */
4879#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4880 tmp1 = 1;
4881#line 4881 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4882 goto tmp3_done;
4883 }
4884 case 1: {
4885 if (!optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4886 if (optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4887 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4888 tmp4 += 4; /* Pattern matching succeeded; we may skip some cases if we fail */
4889#line 1949 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4890 tmp1 = 1;
4891#line 4891 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4892 goto tmp3_done;
4893 }
4894 case 2: {
4895 modelica_boolean tmp6;
4896 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4897 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4898 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
4899 if (optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4900 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4901 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 tmp3_end;
4902
4903 tmp4 += 3; /* Pattern matching succeeded; we may skip some cases if we fail */
4904#line 1954 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4905 /* Pattern-matching assignment */
4906#line 1954 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4907 tmp6 = omc_Mod_eqModEqual(threadData, _eqMod1, _eqMod2);
4908#line 1954 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4909 if (1 != tmp6) goto goto_2;
4910#line 4910 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4911#line 1955 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4912 tmp1 = 1;
4913#line 4913 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4914 goto tmp3_done;
4915 }
4916 case 3: {
4917 modelica_boolean tmp7;
4918 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4919 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4920 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
4921 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
4922 if (optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4923 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4924 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4925 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4926 _aexp1 = tmpMeta[1];
4927 _aexp2 = tmpMeta[3];
4928 tmp4 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
4929#line 1961 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4930 /* Pattern-matching assignment */
4931#line 1961 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4932 tmp7 = omc_AbsynUtil_expEqual(threadData, _aexp1, _aexp2);
4933#line 1961 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4934 if (1 != tmp7) goto goto_2;
4935#line 4935 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4936#line 1962 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4937 tmp1 = 1;
4938#line 4938 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4939 goto tmp3_done;
4940 }
4941 case 4: {
4942 modelica_boolean tmp8;
4943 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4944 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4945 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4946 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4947 if (optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4948 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4949 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],0,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((5 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
4950 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (5)))))
;
4951
4952 _aexp1 = tmpMeta[1];
4953 _aexp2 = tmpMeta[3];
4954 tmp4 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
4955#line 1968 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4956 /* Pattern-matching assignment */
4957#line 1968 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4958 tmp8 = omc_AbsynUtil_expEqual(threadData, _aexp1, _aexp2);
4959#line 1968 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4960 if (1 != tmp8) goto goto_2;
4961#line 4961 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4962#line 1969 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4963 tmp1 = 1;
4964#line 4964 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4965 goto tmp3_done;
4966 }
4967 case 5: {
4968 modelica_boolean tmp9;
4969 if (optionNone(tmp4_1)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_1
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4970 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
4971 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4972 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4973 if (optionNone(tmp4_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp4_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
4974 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
4975 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4976 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4977 _aexp1 = tmpMeta[1];
4978 _aexp2 = tmpMeta[3];
4979 /* Pattern matching succeeded */
4980#line 1975 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4981 /* Pattern-matching assignment */
4982#line 1975 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4983 tmp9 = omc_AbsynUtil_expEqual(threadData, _aexp1, _aexp2);
4984#line 1975 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4985 if (1 != tmp9) goto goto_2;
4986#line 4986 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4987#line 1976 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4988 tmp1 = 1;
4989#line 4989 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4990 goto tmp3_done;
4991 }
4992 case 6: {
4993
4994 /* Pattern matching succeeded */
4995#line 1980 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
4996 tmp1 = 0;
4997#line 4997 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
4998 goto tmp3_done;
4999 }
5000 }
5001 goto tmp3_end;
5002 tmp3_end: ;
5003 }
5004 goto goto_2;
5005 tmp3_done:
5006 (void)tmp4;
5007 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
5008 goto tmp3_done2;
5009 goto_2:;
5010 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
5011 if (++tmp4 < 7) {
5012 goto tmp3_top;
5013 }
5014 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5015 tmp3_done2:;
5016 }
5017 }
5018 _equal = tmp1;
5019 _return: OMC_LABEL_UNUSED__attribute__((unused))
5020 return _equal;
5021}
5022PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_eqModSubsetOrEqual(threadData_t *threadData, modelica_metatype _eqMod1, modelica_metatype _eqMod2)
5023{
5024 modelica_boolean _equal;
5025 modelica_metatype out_equal;
5026 _equal = omc_Mod_eqModSubsetOrEqual(threadData, _eqMod1, _eqMod2);
5027 out_equal = mmc_mk_icon(_equal);
5028 return out_equal;
5029}
5030
5031PROTECTED_FUNCTION_STATIC modelica_boolean omc_Mod_modSubsetOrEqualOrNonOverlap(threadData_t *threadData, modelica_metatype _mod1, modelica_metatype _mod2)
5032{
5033 modelica_boolean _equal;
5034 modelica_boolean tmp1 = 0;
5035 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
5036 MMC_SO()mmc_check_stackoverflow(threadData);
5037 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5038 // _equal has no default value.
5039#line 5039 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5040 { /* matchcontinue expression */
5041 volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
5042 tmp4_1 = _mod1;
5043 tmp4_2 = _mod2;
5044 {
5045 modelica_metatype _f1 = NULL((void*)0);
5046 modelica_metatype _f2 = NULL((void*)0);
5047 modelica_metatype _each1 = NULL((void*)0);
5048 modelica_metatype _each2 = NULL((void*)0);
5049 modelica_metatype _submods1 = NULL((void*)0);
5050 modelica_metatype _submods2 = NULL((void*)0);
5051 modelica_metatype _eqmod1 = NULL((void*)0);
5052 modelica_metatype _eqmod2 = NULL((void*)0);
5053 volatile mmc_switch_type tmp4;
5054 int tmp5;
5055 // _f1 has no default value.
5056 // _f2 has no default value.
5057 // _each1 has no default value.
5058 // _each2 has no default value.
5059 // _submods1 has no default value.
5060 // _submods2 has no default value.
5061 // _eqmod1 has no default value.
5062 // _eqmod2 has no default value.
5063 tmp4 = 0;
5064 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) {
5065 tmp3_top:
5066 threadData->mmc_jumper = &new_mmc_jumper;
5067 for (; tmp4 < 6; tmp4++) {
5068 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
5069 case 0: {
5070 modelica_boolean tmp6;
5071 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
5072 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
5073 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
5074 if (!optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
5075 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
5076 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
5077 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(3)))))
;
5078 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],1,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((0 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
5079 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(4)))))
;
5080 if (!listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
5081 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(5)))))
;
5082 if (optionNone(tmpMeta[5])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[5]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp3_end;
5083 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (1)))))
;
5084
5085 _f1 = tmpMeta[0];
5086 _f2 = tmpMeta[2];
5087 /* Pattern matching succeeded */
5088#line 1898 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5089 /* Pattern-matching assignment */
5090#line 1898 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5091 tmp6 = omc_SCodeUtil_finalEqual(threadData, _f1, _f2);
5092#line 1898 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5093 if (1 != tmp6) goto goto_2;
5094#line 5094 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5095#line 1899 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5096 tmp1 = 1;
5097#line 5097 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5098 goto tmp3_done;
5099 }
5100 case 1: {
5101 modelica_boolean tmp7;
5102 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
5103 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
5104 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
5105 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(3)))))
;
5106 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((0 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
5107 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(4)))))
;
5108 if (!listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
5109 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(5)))))
;
5110
5111 _eqmod1 = tmpMeta[0];
5112 _eqmod2 = tmpMeta[3];
5113 /* Pattern matching succeeded */
5114#line 1904 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5115 /* Pattern-matching assignment */
5116#line 1904 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5117 tmp7 = omc_Mod_eqModSubsetOrEqual(threadData, _eqmod1, _eqmod2);
5118#line 1904 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5119 if (1 != tmp7) goto goto_2;
5120#line 5120 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5121#line 1905 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5122 tmp1 = 1;
5123#line 5123 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5124 goto tmp3_done;
5125 }
5126 case 2: {
5127 modelica_boolean tmp8;
5128 modelica_boolean tmp9;
5129 modelica_boolean tmp10;
5130 modelica_boolean tmp11;
5131 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
5132 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
5133 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
5134 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
5135 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
5136 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
5137 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
5138 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(3)))))
;
5139 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(4)))))
;
5140 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(5)))))
;
5141
5142 _f1 = tmpMeta[0];
5143 _each1 = tmpMeta[1];
5144 _submods1 = tmpMeta[2];
5145 _eqmod1 = tmpMeta[3];
5146 _f2 = tmpMeta[4];
5147 _each2 = tmpMeta[5];
5148 _submods2 = tmpMeta[6];
5149 _eqmod2 = tmpMeta[7];
5150 tmp4 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
5151#line 1911 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5152 /* Pattern-matching assignment */
5153#line 1911 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5154 tmp8 = omc_SCodeUtil_finalEqual(threadData, _f1, _f2);
5155#line 1911 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5156 if (1 != tmp8) goto goto_2;
5157#line 5157 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5158
5159#line 1912 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5160 /* Pattern-matching assignment */
5161#line 1912 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5162 tmp9 = omc_SCodeUtil_eachEqual(threadData, _each1, _each2);
5163#line 1912 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5164 if (1 != tmp9) goto goto_2;
5165#line 5165 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5166
5167#line 1913 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5168 /* Pattern-matching assignment */
5169#line 1913 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5170 tmp10 = omc_Mod_subModsEqual(threadData, _submods1, _submods2);
5171#line 1913 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5172 if (1 != tmp10) goto goto_2;
5173#line 5173 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5174
5175#line 1914 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5176 /* Pattern-matching assignment */
5177#line 1914 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5178 tmp11 = omc_Mod_eqModSubsetOrEqual(threadData, _eqmod1, _eqmod2);
5179#line 1914 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5180 if (1 != tmp11) goto goto_2;
5181#line 5181 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5182#line 1915 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5183 tmp1 = 1;
5184#line 5184 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5185 goto tmp3_done;
5186 }
5187 case 3: {
5188 modelica_boolean tmp12;
5189 modelica_boolean tmp13;
5190 modelica_boolean tmp14;
5191 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
5192 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
5193 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
5194 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
5195 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
5196 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(3)))))
;
5197
5198 _f1 = tmpMeta[0];
5199 _each1 = tmpMeta[1];
5200 _f2 = tmpMeta[2];
5201 _each2 = tmpMeta[3];
5202 tmp4 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
5203#line 1921 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5204 /* Pattern-matching assignment */
5205#line 1921 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5206 tmp12 = omc_SCodeUtil_finalEqual(threadData, _f1, _f2);
5207#line 1921 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5208 if (1 != tmp12) goto goto_2;
5209#line 5209 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5210
5211#line 1922 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5212 /* Pattern-matching assignment */
5213#line 1922 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5214 tmp13 = omc_SCodeUtil_eachEqual(threadData, _each1, _each2);
5215#line 1922 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5216 if (1 != tmp13) goto goto_2;
5217#line 5217 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5218
5219#line 1923 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5220 /* Pattern-matching assignment */
5221#line 1923 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5222 tmp14 = omc_SCodeUtil_elementEqual(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_mod1) - 3))) +
(4)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_mod2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_mod2) - 3))) +
(4)))))
));
5223#line 1923 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5224 if (1 != tmp14) goto goto_2;
5225#line 5225 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5226#line 1924 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5227 tmp1 = 1;
5228#line 5228 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5229 goto tmp3_done;
5230 }
5231 case 4: {
5232 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
5233 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
5234 /* Pattern matching succeeded */
5235#line 1927 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5236 tmp1 = 1;
5237#line 5237 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5238 goto tmp3_done;
5239 }
5240 case 5: {
5241
5242 /* Pattern matching succeeded */
5243#line 1929 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5244 tmp1 = 0;
5245#line 5245 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5246 goto tmp3_done;
5247 }
5248 }
5249 goto tmp3_end;
5250 tmp3_end: ;
5251 }
5252 goto goto_2;
5253 tmp3_done:
5254 (void)tmp4;
5255 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
5256 goto tmp3_done2;
5257 goto_2:;
5258 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
5259 if (++tmp4 < 6) {
5260 goto tmp3_top;
5261 }
5262 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5263 tmp3_done2:;
5264 }
5265 }
5266 _equal = tmp1;
5267 _return: OMC_LABEL_UNUSED__attribute__((unused))
5268 return _equal;
5269}
5270PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_modSubsetOrEqualOrNonOverlap(threadData_t *threadData, modelica_metatype _mod1, modelica_metatype _mod2)
5271{
5272 modelica_boolean _equal;
5273 modelica_metatype out_equal;
5274 _equal = omc_Mod_modSubsetOrEqualOrNonOverlap(threadData, _mod1, _mod2);
5275 out_equal = mmc_mk_icon(_equal);
5276 return out_equal;
5277}
5278
5279DLLExport
5280modelica_metatype omc_Mod_modEquation(threadData_t *threadData, modelica_metatype _inMod)
5281{
5282 modelica_metatype _outEqMod = NULL((void*)0);
5283 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
5284 MMC_SO()mmc_check_stackoverflow(threadData);
5285 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5286 // _outEqMod has no default value.
5287#line 5287 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5288 { /* match expression */
5289 modelica_metatype tmp3_1;
5290 tmp3_1 = _inMod;
5291 {
5292 int tmp3;
5293 {
5294 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
5295 case 5: {
5296
5297 /* Pattern matching succeeded */
5298#line 1870 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5299 tmpMeta[0] = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
5300#line 5300 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5301 goto tmp2_done;
5302 }
5303 case 4: {
5304
5305 /* Pattern matching succeeded */
5306#line 1871 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5307 tmpMeta[0] = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
5308#line 5308 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5309 goto tmp2_done;
5310 }
5311 case 3: {
5312
5313 /* Pattern matching succeeded */
5314#line 1872 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5315 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inMod), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_inMod) - 3))) +
(5)))))
);
5316#line 5316 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5317 goto tmp2_done;
5318 }
5319 }
5320 goto tmp2_end;
5321 tmp2_end: ;
5322 }
5323 goto goto_1;
5324 goto_1:;
5325 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5326 goto tmp2_done;
5327 tmp2_done:;
5328 }
5329 }
5330 _outEqMod = tmpMeta[0];
5331 _return: OMC_LABEL_UNUSED__attribute__((unused))
5332 return _outEqMod;
5333}
5334
5335PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_mergeEq(threadData_t *threadData, modelica_metatype _inOuterEq, modelica_metatype _inInnerEq)
5336{
5337 modelica_metatype _outEqMod = NULL((void*)0);
5338 MMC_SO()mmc_check_stackoverflow(threadData);
5339 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5340 _outEqMod = (isSome(_inOuterEq)(0==((((((*(mmc_uint_t*)((void*)((char*)(_inOuterEq) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(_inOuterEq)
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(_inOuterEq) - 3)))) >> 10)) ? 0 : 1)
?_inOuterEq:_inInnerEq);
5341 _return: OMC_LABEL_UNUSED__attribute__((unused))
5342 return _outEqMod;
5343}
5344
5345PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_mergeSubs(threadData_t *threadData, modelica_metatype _inSubMods1, modelica_metatype _inSubMods2, modelica_boolean _inCheckFinal)
5346{
5347 modelica_metatype _outSubMods = NULL((void*)0);
5348 modelica_metatype _submods2 = NULL((void*)0);
5349 modelica_string _name = NULL((void*)0);
5350 modelica_metatype _m1 = NULL((void*)0);
5351 modelica_metatype _m2 = NULL((void*)0);
5352 modelica_metatype _osm2 = NULL((void*)0);
5353 modelica_metatype _sm2 = NULL((void*)0);
5354 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
5355 MMC_SO()mmc_check_stackoverflow(threadData);
5356 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5357 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
5358 _outSubMods = tmpMeta[0];
5359 // _submods2 has no default value.
5360 // _name has no default value.
5361 // _m1 has no default value.
5362 // _m2 has no default value.
5363 // _osm2 has no default value.
5364 // _sm2 has no default value.
5365#line 1832 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5366 if(listEmpty(_inSubMods1)((*(mmc_uint_t*)((void*)((char*)(_inSubMods1) - 3))) == (((0)
<< 10) + (((0) & 255) << 2)))
)
5367#line 1832 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5368 {
5369#line 1833 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5370 _outSubMods = _inSubMods2;
5371#line 5371 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5372 }
5373 else
5374 {
5375 if(listEmpty(_inSubMods2)((*(mmc_uint_t*)((void*)((char*)(_inSubMods2) - 3))) == (((0)
<< 10) + (((0) & 255) << 2)))
)
5376 {
5377#line 1835 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5378 _outSubMods = _inSubMods1;
5379#line 5379 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5380 }
5381 else
5382 {
5383#line 1837 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5384 _submods2 = _inSubMods2;
5385#line 5385 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5386
5387#line 1838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5388 {
5389#line 1838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5390 modelica_metatype _sm1;
5391#line 1838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5392 for (tmpMeta[1] = _inSubMods1; !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)))))
)
5393#line 1838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5394 {
5395#line 1838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5396 _sm1 = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
5397#line 1839 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5398 _submods2 = omc_List_deleteMemberOnTrue(threadData, omc_Mod_subModName(threadData, _sm1), _submods2, boxvar_Mod_subModIsNamed((void*)((char*)(&(boxvar_lit_Mod_subModIsNamed).header) +
3))
,&_osm2);
5399#line 5399 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5400
5401#line 1842 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5402 if(isSome(_osm2)(0==((((((*(mmc_uint_t*)((void*)((char*)(_osm2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(_osm2) - 3)
))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(_osm2
) - 3)))) >> 10)) ? 0 : 1)
)
5403#line 1842 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5404 {
5405#line 1843 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5406 /* Pattern-matching assignment */
5407#line 1843 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5408 tmpMeta[2] = _osm2;
5409#line 1843 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5410 if (optionNone(tmpMeta[2])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[2]) - 3)))) >> 10)) ? 1 : 0)
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5411#line 1843 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5412 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
5413#line 1843 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5414 _sm2 = tmpMeta[3];
5415#line 5415 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5416
5417#line 1844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5418 /* Pattern-matching assignment */
5419#line 1844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5420 tmpMeta[2] = _sm1;
5421#line 1844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5422 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
5423#line 1844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5424 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
5425#line 1844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5426 _name = tmpMeta[3];
5427#line 1844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5428 _m1 = tmpMeta[4];
5429#line 5429 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5430
5431#line 1845 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5432 /* Pattern-matching assignment */
5433#line 1845 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5434 tmpMeta[2] = _sm2;
5435#line 1845 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5436 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
5437#line 1845 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5438 _m2 = tmpMeta[3];
5439#line 5439 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5440
5441#line 1846 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5442 _m1 = omc_Mod_merge(threadData, _m1, _m2, _name, _inCheckFinal);
5443#line 5443 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5444
5445#line 1847 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5446 tmpMeta[2] = mmc_mk_box3(3, &DAE_SubMod_NAMEMOD__desc, _name, _m1);
5447#line 1847 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5448 _sm1 = tmpMeta[2];
5449#line 5449 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5450 }
5451
5452#line 1850 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5453 tmpMeta[2] = mmc_mk_cons(_sm1, _outSubMods);
5454#line 1850 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5455 _outSubMods = tmpMeta[2];
5456#line 5456 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5457 }
5458 }
5459
5460#line 1853 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5461 _outSubMods = omc_List_append__reverse(threadData, _outSubMods, _submods2);
5462#line 5462 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5463 }
5464 }
5465 _return: OMC_LABEL_UNUSED__attribute__((unused))
5466 return _outSubMods;
5467}
5468PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_Mod_mergeSubs(threadData_t *threadData, modelica_metatype _inSubMods1, modelica_metatype _inSubMods2, modelica_metatype _inCheckFinal)
5469{
5470 modelica_integer tmp1;
5471 modelica_metatype _outSubMods = NULL((void*)0);
5472 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
5473 tmp1 = mmc_unbox_integer(_inCheckFinal)(((mmc_sint_t) (_inCheckFinal)) >> 1);
5474 _outSubMods = omc_Mod_mergeSubs(threadData, _inSubMods1, _inSubMods2, tmp1);
5475 /* skip box _outSubMods; list<DAE.SubMod> */
5476 return _outSubMods;
5477}
5478
5479PROTECTED_FUNCTION_STATIC modelica_metatype omc_Mod_doMerge(threadData_t *threadData, modelica_metatype _inModOuter, modelica_metatype _inModInner, modelica_boolean _inCheckFinal)
5480{
5481 modelica_metatype _outMod = NULL((void*)0);
5482 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
5483 MMC_SO()mmc_check_stackoverflow(threadData);
5484 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5485 _outMod = _inModOuter;
5486#line 5486 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5487 { /* match expression */
5488 modelica_metatype tmp3_1;modelica_metatype tmp3_2;
5489 tmp3_1 = _outMod;
5490 tmp3_2 = _inModInner;
5491 {
5492 modelica_metatype _el1 = NULL((void*)0);
5493 modelica_metatype _el2 = NULL((void*)0);
5494 modelica_metatype _smod1 = NULL((void*)0);
5495 modelica_metatype _smod2 = NULL((void*)0);
5496 modelica_metatype _emod1 = NULL((void*)0);
5497 modelica_metatype _emod2 = NULL((void*)0);
5498 modelica_metatype _emod = NULL((void*)0);
5499 modelica_metatype _dmod1 = NULL((void*)0);
5500 modelica_metatype _dmod2 = NULL((void*)0);
5501 modelica_metatype _dmod = NULL((void*)0);
5502 modelica_metatype _res = NULL((void*)0);
5503 modelica_metatype _info = NULL((void*)0);
5504 modelica_metatype _eqmod = NULL((void*)0);
5505 modelica_metatype _vals = NULL((void*)0);
5506 modelica_metatype _val = NULL((void*)0);
5507 modelica_metatype _names = NULL((void*)0);
5508 modelica_string _name = NULL((void*)0);
5509 modelica_metatype _submods = NULL((void*)0);
5510 modelica_metatype _submod = NULL((void*)0);
5511 volatile mmc_switch_type tmp3;
5512 int tmp4;
5513 // _el1 has no default value.
5514 // _el2 has no default value.
5515 // _smod1 has no default value.
5516 // _smod2 has no default value.
5517 // _emod1 has no default value.
5518 // _emod2 has no default value.
5519 // _emod has no default value.
5520 // _dmod1 has no default value.
5521 // _dmod2 has no default value.
5522 // _dmod has no default value.
5523 // _res has no default value.
5524 // _info has no default value.
5525 // _eqmod has no default value.
5526 // _vals has no default value.
5527 // _val has no default value.
5528 // _names has no default value.
5529 // _name has no default value.
5530 // _submods has no default value.
5531 // _submod has no default value.
5532 tmp3 = 0;
5533 for (; tmp3 < 9; tmp3++) {
5534 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5535 case 0: {
5536 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
5537 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
5538 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((8 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
5539 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
5540 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(4)))))
;
5541 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],3,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((8 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
5542 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
5543 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (6)))))
;
5544 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],0,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))==(((1 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5545 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
5546 if (!optionNone(tmpMeta[5])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[5]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
5547
5548 /* Pattern matching succeeded */
5549#line 1674 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5550 tmpMeta[0] = _inModOuter;
5551#line 5551 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5552 goto tmp2_done;
5553 }
5554 case 1: {
5555 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
5556 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
5557 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((8 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
5558 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
5559 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
5560 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(4)))))
;
5561 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],3,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((8 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
5562 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(5)))))
;
5563 _el1 = tmpMeta[1];
5564 _emod1 = tmpMeta[2];
5565 _el2 = tmpMeta[3];
5566 _emod2 = tmpMeta[4];
5567 /* Pattern matching succeeded */
5568#line 1680 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5569 _smod1 = omc_SCodeUtil_getConstrainedByModifiers(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_el1) - 3))) + (
3)))))
));
5570#line 5570 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5571
5572#line 1681 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5573 _smod1 = omc_SCodeUtil_mergeModifiers(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_el1) - 3))) + (
6)))))
), _smod1);
5574#line 5574 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5575
5576#line 1682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5577 tmpMeta[1] = mmc_mk_box2(3, &Mod_ModScope_COMPONENT__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_el1) - 3))) + (
2)))))
));
5578#line 1682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5579 _dmod1 = omc_Mod_elabUntypedMod(threadData, _smod1, tmpMeta[1]);
5580#line 5580 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5581
5582#line 1684 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5583 _smod2 = omc_SCodeUtil_getConstrainedByModifiers(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_el2) - 3))) + (
3)))))
));
5584#line 5584 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5585
5586#line 1685 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5587 _smod2 = omc_SCodeUtil_mergeModifiers(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el2), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_el2) - 3))) + (
6)))))
), _smod2);
5588#line 5588 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5589
5590#line 1686 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5591 tmpMeta[1] = mmc_mk_box2(3, &Mod_ModScope_COMPONENT__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_el2) - 3))) + (
2)))))
));
5592#line 1686 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5593 _dmod2 = omc_Mod_elabUntypedMod(threadData, _smod2, tmpMeta[1]);
5594#line 5594 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5595
5596#line 1688 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5597 _dmod = omc_Mod_merge(threadData, _dmod1, _dmod2, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_el1) - 3))) + (
2)))))
), _inCheckFinal);
5598#line 5598 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5599
5600#line 1689 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5601 _emod = omc_Mod_merge(threadData, _emod1, _emod2, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_el1) - 3))) + (
2)))))
), _inCheckFinal);
5602#line 5602 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5603
5604#line 1691 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5605 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
5606#line 1691 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5607 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_el1)((void*)((char*)(_el1) - 3)), 10*sizeof(modelica_metatype));
5608#line 1691 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5609 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[6] = omc_Mod_unelabMod(threadData, _dmod);
5610#line 1691 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5611 _el1 = tmpMeta[1];
5612#line 5612 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5613
5614#line 1693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5615 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
5616#line 1693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5617 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_el1)((void*)((char*)(_el1) - 3)), 10*sizeof(modelica_metatype));
5618#line 1693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5619 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[3] = omc_SCodeUtil_propagatePrefixes(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_el2) - 3))) + (
3)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_el1) - 3))) + (
3)))))
));
5620#line 1693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5621 _el1 = tmpMeta[1];
5622#line 5622 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5623
5624#line 1694 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5625 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
5626#line 1694 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5627 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_el1)((void*)((char*)(_el1) - 3)), 10*sizeof(modelica_metatype));
5628#line 1694 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5629 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[4] = omc_SCodeUtil_propagateAttributes(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_el2) - 3))) + (
4)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_el1) - 3))) + (
4)))))
), 0);
5630#line 1694 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5631 _el1 = tmpMeta[1];
5632#line 5632 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5633
5634#line 1695 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5635 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(6))((void*)((char*)(mmc_alloc_words(6)) + 3));
5636#line 1695 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5637 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outMod)((void*)((char*)(_outMod) - 3)), 6*sizeof(modelica_metatype));
5638#line 1695 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5639 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[4] = _el1;
5640#line 1695 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5641 _outMod = tmpMeta[1];
5642#line 5642 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5643
5644#line 1696 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5645 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(6))((void*)((char*)(mmc_alloc_words(6)) + 3));
5646#line 1696 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5647 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outMod)((void*)((char*)(_outMod) - 3)), 6*sizeof(modelica_metatype));
5648#line 1696 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5649 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[5] = _emod;
5650#line 1696 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5651 _outMod = tmpMeta[1];
5652#line 5652 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5653#line 1697 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5654 tmpMeta[0] = _outMod;
5655#line 5655 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5656 goto tmp2_done;
5657 }
5658 case 2: {
5659 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
5660 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
5661 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((8 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
5662 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
5663 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(4)))))
;
5664 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],2,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((8 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
5665 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
5666 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (6)))))
;
5667 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[4],0,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3)))==(((1 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5668 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
5669 if (!optionNone(tmpMeta[5])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[5]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
5670
5671 /* Pattern matching succeeded */
5672#line 1704 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5673 tmpMeta[0] = _inModOuter;
5674#line 5674 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5675 goto tmp2_done;
5676 }
5677 case 3: {
5678 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
5679 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
5680 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((8 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
5681 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
5682 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
5683 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(4)))))
;
5684 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],2,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((8 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
5685 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(5)))))
;
5686 _el1 = tmpMeta[1];
5687 _emod1 = tmpMeta[2];
5688 _el2 = tmpMeta[3];
5689 _emod2 = tmpMeta[4];
5690 /* Pattern matching succeeded */
5691#line 1710 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5692 _smod1 = omc_SCodeUtil_getConstrainedByModifiers(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_el1) - 3))) + (
3)))))
));
5693#line 5693 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5694
5695#line 1711 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5696 tmpMeta[1] = mmc_mk_box2(3, &Mod_ModScope_COMPONENT__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_el1) - 3))) + (
2)))))
));
5697#line 1711 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5698 _dmod1 = omc_Mod_elabUntypedMod(threadData, _smod1, tmpMeta[1]);
5699#line 5699 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5700
5701#line 1712 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5702 _emod1 = omc_Mod_merge(threadData, _emod1, _dmod1, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_el1) - 3))) + (
2)))))
), _inCheckFinal);
5703#line 5703 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5704
5705#line 1714 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5706 _smod2 = omc_SCodeUtil_getConstrainedByModifiers(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_el2) - 3))) + (
3)))))
));
5707#line 5707 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5708
5709#line 1715 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5710 tmpMeta[1] = mmc_mk_box2(3, &Mod_ModScope_COMPONENT__desc, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_el2) - 3))) + (
2)))))
));
5711#line 1715 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5712 _dmod2 = omc_Mod_elabUntypedMod(threadData, _smod2, tmpMeta[1]);
5713#line 5713 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5714
5715#line 1716 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5716 _emod2 = omc_Mod_merge(threadData, _emod2, _dmod2, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_el1) - 3))) + (
2)))))
), _inCheckFinal);
5717#line 5717 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5718
5719#line 1718 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5720 _emod = omc_Mod_merge(threadData, _emod1, _emod2, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(_el1) - 3))) + (
2)))))
), _inCheckFinal);
5721#line 5721 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5722
5723#line 1719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5724 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
5725#line 1719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5726 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_el1)((void*)((char*)(_el1) - 3)), 10*sizeof(modelica_metatype));
5727#line 1719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5728 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[3] = omc_SCodeUtil_propagatePrefixes(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_el2) - 3))) + (
3)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_el2) - 3))) + (
3)))))
));
5729#line 1719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5730 _el1 = tmpMeta[1];
5731#line 5731 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5732
5733#line 1720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5734 _res = omc_SCodeUtil_checkSameRestriction(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_el1) - 3))) + (
6)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el2), 6))(*(void**)(((void*)((void**)(((void*)((char*)(_el2) - 3))) + (
6)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el1), 9))(*(void**)(((void*)((void**)(((void*)((char*)(_el1) - 3))) + (
9)))))
), (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_el2), 9))(*(void**)(((void*)((void**)(((void*)((char*)(_el2) - 3))) + (
9)))))
) ,&_info);
5735#line 5735 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5736
5737#line 1722 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5738 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
5739#line 1722 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5740 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_el1)((void*)((char*)(_el1) - 3)), 10*sizeof(modelica_metatype));
5741#line 1722 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5742 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[6] = _res;
5743#line 1722 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5744 _el1 = tmpMeta[1];
5745#line 5745 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5746
5747#line 1723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5748 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(10))((void*)((char*)(mmc_alloc_words(10)) + 3));
5749#line 1723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5750 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_el1)((void*)((char*)(_el1) - 3)), 10*sizeof(modelica_metatype));
5751#line 1723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5752 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[9] = _info;
5753#line 1723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5754 _el1 = tmpMeta[1];
5755#line 5755 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5756
5757#line 1725 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5758 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(6))((void*)((char*)(mmc_alloc_words(6)) + 3));
5759#line 1725 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5760 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outMod)((void*)((char*)(_outMod) - 3)), 6*sizeof(modelica_metatype));
5761#line 1725 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5762 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[4] = _el1;
5763#line 1725 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5764 _outMod = tmpMeta[1];
5765#line 5765 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5766
5767#line 1726 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5768 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(6))((void*)((char*)(mmc_alloc_words(6)) + 3));
5769#line 1726 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5770 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outMod)((void*)((char*)(_outMod) - 3)), 6*sizeof(modelica_metatype));
5771#line 1726 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5772 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[5] = _emod;
5773#line 1726 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5774 _outMod = tmpMeta[1];
5775#line 5775 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5776#line 1727 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5777 tmpMeta[0] = _outMod;
5778#line 5778 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5779 goto tmp2_done;
5780 }
5781 case 4: {
5782 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
5783 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
5784 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
5785 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5786
5787 _el1 = tmpMeta[1];
5788 _emod = tmpMeta[2];
5789 /* Pattern matching succeeded */
5790#line 1733 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5791 _emod = omc_Mod_merge(threadData, _emod, _inModInner, _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)), _inCheckFinal);
5792#line 5792 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5793
5794#line 1734 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5795 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(6))((void*)((char*)(mmc_alloc_words(6)) + 3));
5796#line 1734 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5797 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outMod)((void*)((char*)(_outMod) - 3)), 6*sizeof(modelica_metatype));
5798#line 1734 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5799 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[4] = _el1;
5800#line 1734 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5801 _outMod = tmpMeta[1];
5802#line 5802 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5803
5804#line 1735 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5805 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(6))((void*)((char*)(mmc_alloc_words(6)) + 3));
5806#line 1735 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5807 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outMod)((void*)((char*)(_outMod) - 3)), 6*sizeof(modelica_metatype));
5808#line 1735 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5809 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[5] = _emod;
5810#line 1735 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5811 _outMod = tmpMeta[1];
5812#line 5812 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"
5813#line 1736 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/Mod.mo"
5814 tmpMeta[0] = _outMod;
5815#line 5815 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/Mod.c"