Bug Summary

File:OMCompiler/Compiler/boot/build/InnerOuter.c
Warning:line 5237, column 11
Value stored to '_env' 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/InnerOuter.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/InnerOuter.c" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "InnerOuter.h"
8#define _OMC_LIT0_data"-InstHierarchyHashTable.valueArrayClearnth failed\n" "-InstHierarchyHashTable.valueArrayClearnth failed\n"
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,50,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(50)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)50)<<(3))+((1<<(3+3))+5)), "-InstHierarchyHashTable.valueArrayClearnth failed\n"
}
;
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"-InstHierarchyHashTable.valueArraySetnth failed\n" "-InstHierarchyHashTable.valueArraySetnth failed\n"
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,48,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(48)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)48)<<(3))+((1<<(3+3))+5)), "-InstHierarchyHashTable.valueArraySetnth failed\n"
}
;
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"-InstHierarchyHashTable.valueArrayAdd failed\n" "-InstHierarchyHashTable.valueArrayAdd failed\n"
15static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,45,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(45)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)45)<<(3))+((1<<(3+3))+5)), "-InstHierarchyHashTable.valueArrayAdd failed\n"
}
;
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"-InstHierarchyHashTable.delete failed\n" "-InstHierarchyHashTable.delete failed\n"
18static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,38,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(38)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)38)<<(3))+((1<<(3+3))+5)), "-InstHierarchyHashTable.delete failed\n"
}
;
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"content:" "content:"
21static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,8,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "content:"
}
;
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"- InnerOuter.addNoUpdCheck failed\n" "- InnerOuter.addNoUpdCheck failed\n"
24static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,34,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(34)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)34)<<(3))+((1<<(3+3))+5)), "- InnerOuter.addNoUpdCheck failed\n"
}
;
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"- InnerOuter.add failed\n" "- InnerOuter.add failed\n"
27static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,24,_OMC_LIT6_data)struct { mmc_uint_t header; const char data[(24)+1]; } _OMC_LIT_STRUCT6
= { ((((mmc_uint_t)24)<<(3))+((1<<(3+3))+5)), "- InnerOuter.add failed\n"
}
;
28#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
29#define _OMC_LIT7_data"{" "{"
30static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT7,1,_OMC_LIT7_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT7
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "{"
}
;
31#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
32#define _OMC_LIT8_data" opaque InstInner for now, implement printing. " " opaque InstInner for now, implement printing. "
33static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,47,_OMC_LIT8_data)struct { mmc_uint_t header; const char data[(47)+1]; } _OMC_LIT_STRUCT8
= { ((((mmc_uint_t)47)<<(3))+((1<<(3+3))+5)), " opaque InstInner for now, implement printing. "
}
;
34#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
35#define _OMC_LIT9_data"}\n" "}\n"
36static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT9,2,_OMC_LIT9_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT9
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "}\n"
}
;
37#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
38#define _OMC_LIT10_data"InstHierarchyHashTable:\n" "InstHierarchyHashTable:\n"
39static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT10,24,_OMC_LIT10_data)struct { mmc_uint_t header; const char data[(24)+1]; } _OMC_LIT_STRUCT10
= { ((((mmc_uint_t)24)<<(3))+((1<<(3+3))+5)), "InstHierarchyHashTable:\n"
}
;
40#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
41#define _OMC_LIT11_data"\n" "\n"
42static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT11,1,_OMC_LIT11_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT11
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\n"
}
;
43#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
44#define _OMC_LIT12_data"There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: " "There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: "
45static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT12,111,_OMC_LIT12_data)struct { mmc_uint_t header; const char data[(111)+1]; } _OMC_LIT_STRUCT12
= { ((((mmc_uint_t)111)<<(3))+((1<<(3+3))+5)), "There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: "
}
;
46#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
47#define _OMC_LIT13_data"." "."
48static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT13,1,_OMC_LIT13_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT13
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "."
}
;
49#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
50#define _OMC_LIT14_data"\n " "\n "
51static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT14,5,_OMC_LIT14_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT14
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "\n "
}
;
52#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
53#define _OMC_LIT15_data"" ""
54static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT15,0,_OMC_LIT15_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT15
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
55#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
56#define _OMC_LIT16_data" Referenced by 'outer' components: {" " Referenced by 'outer' components: {"
57static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT16,36,_OMC_LIT16_data)struct { mmc_uint_t header; const char data[(36)+1]; } _OMC_LIT_STRUCT16
= { ((((mmc_uint_t)36)<<(3))+((1<<(3+3))+5)), " Referenced by 'outer' components: {"
}
;
58#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
59#define _OMC_LIT17_data", " ", "
60static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT17,2,_OMC_LIT17_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT17
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ", "
}
;
61#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
62#define _OMC_LIT18_data"}" "}"
63static 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)), "}"
}
;
64#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
65#define _OMC_LIT19_data" " " "
66static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT19,1,_OMC_LIT19_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT19
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), " "
}
;
67#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
68#define _OMC_LIT20_data"; defined in scope: " "; defined in scope: "
69static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT20,20,_OMC_LIT20_data)struct { mmc_uint_t header; const char data[(20)+1]; } _OMC_LIT_STRUCT20
= { ((((mmc_uint_t)20)<<(3))+((1<<(3+3))+5)), "; defined in scope: "
}
;
70#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
71#define _OMC_LIT21_data"failtrace" "failtrace"
72static 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)), "failtrace"
}
;
73#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
74#define _OMC_LIT22_data"Sets whether to print a failtrace or not." "Sets whether to print a failtrace or not."
75static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT22,41,_OMC_LIT22_data)struct { mmc_uint_t header; const char data[(41)+1]; } _OMC_LIT_STRUCT22
= { ((((mmc_uint_t)41)<<(3))+((1<<(3+3))+5)), "Sets whether to print a failtrace or not."
}
;
76#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
77static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT23,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT23
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))}};
78#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
79static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT24,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT24
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),_OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))}};
80#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
81#define _OMC_LIT25_data"InnerOuter.addOuterPrefix failed to add: outer cref: " "InnerOuter.addOuterPrefix failed to add: outer cref: "
82static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT25,53,_OMC_LIT25_data)struct { mmc_uint_t header; const char data[(53)+1]; } _OMC_LIT_STRUCT25
= { ((((mmc_uint_t)53)<<(3))+((1<<(3+3))+5)), "InnerOuter.addOuterPrefix failed to add: outer cref: "
}
;
83#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
84#define _OMC_LIT26_data" refers to inner cref: " " refers to inner cref: "
85static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT26,23,_OMC_LIT26_data)struct { mmc_uint_t header; const char data[(23)+1]; } _OMC_LIT_STRUCT26
= { ((((mmc_uint_t)23)<<(3))+((1<<(3+3))+5)), " refers to inner cref: "
}
;
86#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
87#define _OMC_LIT27_data" to IH" " to IH"
88static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT27,6,_OMC_LIT27_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT27
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), " to IH"
}
;
89#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
90#define _OMC_LIT28_data"instance" "instance"
91static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT28,8,_OMC_LIT28_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT28
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "instance"
}
;
92#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
93#define _OMC_LIT29_data"Prints extra failtrace from InstanceHierarchy." "Prints extra failtrace from InstanceHierarchy."
94static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,46,_OMC_LIT29_data)struct { mmc_uint_t header; const char data[(46)+1]; } _OMC_LIT_STRUCT29
= { ((((mmc_uint_t)46)<<(3))+((1<<(3+3))+5)), "Prints extra failtrace from InstanceHierarchy."
}
;
95#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
96static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT30,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT30
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))}};
97#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
98static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT31,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT31
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(17))((void*)(((((mmc_uint_t) (17)) << 1)+0))),_OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))}};
99#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
100#define _OMC_LIT32_data"InnerOuter.updateSMHierarchy failure for: " "InnerOuter.updateSMHierarchy failure for: "
101static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT32,42,_OMC_LIT32_data)struct { mmc_uint_t header; const char data[(42)+1]; } _OMC_LIT_STRUCT32
= { ((((mmc_uint_t)42)<<(3))+((1<<(3+3))+5)), "InnerOuter.updateSMHierarchy failure for: "
}
;
102#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
103static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT33,1,11)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT33
= { (((1) << 10) + (((11) & 255) << 2)),
{&DAE_Type_T__UNKNOWN__desc,}};
104#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
105#define _OMC_LIT34_data"InnerOuter.lookupInnerVar failed on component: " "InnerOuter.lookupInnerVar failed on component: "
106static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT34,47,_OMC_LIT34_data)struct { mmc_uint_t header; const char data[(47)+1]; } _OMC_LIT_STRUCT34
= { ((((mmc_uint_t)47)<<(3))+((1<<(3+3))+5)), "InnerOuter.lookupInnerVar failed on component: "
}
;
107#define _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT34)((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))
108#define _OMC_LIT35_data"/" "/"
109static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT35,1,_OMC_LIT35_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT35
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "/"
}
;
110#define _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT35)((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))
111static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT36,1,6)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT36
= { (((1) << 10) + (((6) & 255) << 2)),
{&Absyn_InnerOuter_NOT__INNER__OUTER__desc,}};
112#define _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT36)((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))
113static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT37,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT37
= { (((2) << 10) + (((4) & 255) << 2)),
{&Absyn_Path_IDENT__desc,_OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))}};
114#define _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT37)((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))
115#define _OMC_LIT38_data"$it" "$it"
116static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT38,3,_OMC_LIT38_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT38
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "$it"
}
;
117#define _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT38)((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3))
118static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT39,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT39
= { (((1) << 10) + (((4) & 255) << 2)),
{&Absyn_InnerOuter_OUTER__desc,}};
119#define _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT39)((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))
120static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT40,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT40
= { (((1) << 10) + (((5) & 255) << 2)),
{&ErrorTypes_MessageType_TRANSLATION__desc,}};
121#define _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT40)((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))
122static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT41,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT41
= { (((1) << 10) + (((5) & 255) << 2)),
{&ErrorTypes_Severity_WARNING__desc,}};
123#define _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT41)((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))
124#define _OMC_LIT42_data"Ignoring the modification on outer element: %s." "Ignoring the modification on outer element: %s."
125static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT42,47,_OMC_LIT42_data)struct { mmc_uint_t header; const char data[(47)+1]; } _OMC_LIT_STRUCT42
= { ((((mmc_uint_t)47)<<(3))+((1<<(3+3))+5)), "Ignoring the modification on outer element: %s."
}
;
126#define _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT42)((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3))
127static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT43,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT43
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3))}};
128#define _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT43)((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))
129static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT44,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT44
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(512))((void*)(((((mmc_uint_t) (512)) << 1)+0))),_OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)),_OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)),_OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))}};
130#define _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT44)((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))
131static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT45,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT45
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_Prefix_NOPRE__desc,}};
132#define _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT45)((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))
133#define _OMC_LIT46_data"checkModel" "checkModel"
134static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT46,10,_OMC_LIT46_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT46
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "checkModel"
}
;
135#define _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT46)((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))
136static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT47,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT47
= { (((1) << 10) + (((3) & 255) << 2)),
{&Flags_FlagVisibility_INTERNAL__desc,}};
137#define _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT47)((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3))
138static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT48,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT48
= { (((2) << 10) + (((4) & 255) << 2)),
{&Flags_FlagData_BOOL__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
139#define _OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT48)((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3))
140#define _OMC_LIT49_data"Set when checkModel is used to turn on specific features for checking." "Set when checkModel is used to turn on specific features for checking."
141static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT49,70,_OMC_LIT49_data)struct { mmc_uint_t header; const char data[(70)+1]; } _OMC_LIT_STRUCT49
= { ((((mmc_uint_t)70)<<(3))+((1<<(3+3))+5)), "Set when checkModel is used to turn on specific features for checking."
}
;
142#define _OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT49)((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3))
143static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT50,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT50
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3))}};
144#define _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT50)((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3))
145static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT51,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT51
= { (((8) << 10) + (((3) & 255) << 2)),
{&Flags_ConfigFlag_CONFIG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(31))((void*)(((((mmc_uint_t) (31)) << 1)+0))),_OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),_OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)),_OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),_OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3))}};
146#define _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT51)((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3))
147#define _OMC_LIT52_data"No corresponding 'inner' declaration found for component %s declared as '%s'.\n The existing 'inner' components are:\n %s\n Check if you have not misspelled the 'outer' component name.\n Please declare an 'inner' component with the same name in the top scope.\n Continuing flattening by only considering the 'outer' component declaration." "No corresponding 'inner' declaration found for component %s declared as '%s'.\n The existing 'inner' components are:\n %s\n Check if you have not misspelled the 'outer' component name.\n Please declare an 'inner' component with the same name in the top scope.\n Continuing flattening by only considering the 'outer' component declaration."
148static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT52,340,_OMC_LIT52_data)struct { mmc_uint_t header; const char data[(340)+1]; } _OMC_LIT_STRUCT52
= { ((((mmc_uint_t)340)<<(3))+((1<<(3+3))+5)), "No corresponding 'inner' declaration found for component %s declared as '%s'.\n The existing 'inner' components are:\n %s\n Check if you have not misspelled the 'outer' component name.\n Please declare an 'inner' component with the same name in the top scope.\n Continuing flattening by only considering the 'outer' component declaration."
}
;
149#define _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT52)((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))
150static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT53,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT53
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_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))
152static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT54,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT54
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(108))((void*)(((((mmc_uint_t) (108)) << 1)+0))),_OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)),_OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)),_OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3))}};
153#define _OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT54)((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3))
154#define _OMC_LIT55_data"lookupVarInnerOuterAttr" "lookupVarInnerOuterAttr"
155static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT55,23,_OMC_LIT55_data)struct { mmc_uint_t header; const char data[(23)+1]; } _OMC_LIT_STRUCT55
= { ((((mmc_uint_t)23)<<(3))+((1<<(3+3))+5)), "lookupVarInnerOuterAttr"
}
;
156#define _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT55)((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3))
157static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT56,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT56
= { (((1) << 10) + (((3) & 255) << 2)),
{&Absyn_InnerOuter_INNER__desc,}};
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,7,3)struct { mmc_uint_t header; const void *data[7]; } _OMC_LIT_STRUCT57
= { (((7) << 10) + (((3) & 255) << 2)),
{&ConnectionGraph_ConnectionGraph_GRAPH__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
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"failure in: addOuterConnectIfEmptyNOENV\n" "failure in: addOuterConnectIfEmptyNOENV\n"
162static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT58,40,_OMC_LIT58_data)struct { mmc_uint_t header; const char data[(40)+1]; } _OMC_LIT_STRUCT58
= { ((((mmc_uint_t)40)<<(3))+((1<<(3+3))+5)), "failure in: addOuterConnectIfEmptyNOENV\n"
}
;
163#define _OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT58)((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3))
164#define _OMC_LIT59_data"- InnerOuter.handleInnerOuterEquations failed!\n" "- InnerOuter.handleInnerOuterEquations failed!\n"
165static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT59,47,_OMC_LIT59_data)struct { mmc_uint_t header; const char data[(47)+1]; } _OMC_LIT_STRUCT59
= { ((((mmc_uint_t)47)<<(3))+((1<<(3+3))+5)), "- InnerOuter.handleInnerOuterEquations failed!\n"
}
;
166#define _OMC_LIT59((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT59)((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3))
167#include "util/modelica.h"
168
169#include "InnerOuter_includes.h"
170
171
172/* default, do not make protected functions static */
173#if !defined(PROTECTED_FUNCTION_STATIC)
174#define PROTECTED_FUNCTION_STATIC
175#endif
176PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_searchForInnerPrefix(threadData_t *threadData, modelica_metatype _fullCref, modelica_metatype _inOuterCref, modelica_metatype _outerPrefixes, modelica_metatype *out_innerCrefPrefix);
177static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_searchForInnerPrefix,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_searchForInnerPrefix
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_searchForInnerPrefixomc_InnerOuter_searchForInnerPrefix,0}};
178#define boxvar_InnerOuter_searchForInnerPrefix((void*)((char*)(&(boxvar_lit_InnerOuter_searchForInnerPrefix
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_searchForInnerPrefix)((void*)((char*)(&(boxvar_lit_InnerOuter_searchForInnerPrefix
).header) + 3))
179PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_changeOuterReferenceToInnerReference(threadData_t *threadData, modelica_metatype _inFullCref, modelica_metatype _inOuterCrefPrefix, modelica_metatype _inInnerCrefPrefix);
180static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_changeOuterReferenceToInnerReference,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_changeOuterReferenceToInnerReference
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_changeOuterReferenceToInnerReferenceomc_InnerOuter_changeOuterReferenceToInnerReference,0}};
181#define boxvar_InnerOuter_changeOuterReferenceToInnerReference((void*)((char*)(&(boxvar_lit_InnerOuter_changeOuterReferenceToInnerReference
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_changeOuterReferenceToInnerReference)((void*)((char*)(&(boxvar_lit_InnerOuter_changeOuterReferenceToInnerReference
).header) + 3))
182PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_switchInnerToOuterInChildrenValue(threadData_t *threadData, modelica_metatype _inNode, modelica_metatype _inCr);
183static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_switchInnerToOuterInChildrenValue,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_switchInnerToOuterInChildrenValue
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_switchInnerToOuterInChildrenValueomc_InnerOuter_switchInnerToOuterInChildrenValue,0}};
184#define boxvar_InnerOuter_switchInnerToOuterInChildrenValue((void*)((char*)(&(boxvar_lit_InnerOuter_switchInnerToOuterInChildrenValue
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_switchInnerToOuterInChildrenValue)((void*)((char*)(&(boxvar_lit_InnerOuter_switchInnerToOuterInChildrenValue
).header) + 3))
185PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_switchInnerToOuterInChild(threadData_t *threadData, modelica_string _name, modelica_metatype _cr, modelica_metatype _inRef);
186static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_switchInnerToOuterInChild,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_switchInnerToOuterInChild
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_switchInnerToOuterInChildomc_InnerOuter_switchInnerToOuterInChild,0}};
187#define boxvar_InnerOuter_switchInnerToOuterInChild((void*)((char*)(&(boxvar_lit_InnerOuter_switchInnerToOuterInChild
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_switchInnerToOuterInChild)((void*)((char*)(&(boxvar_lit_InnerOuter_switchInnerToOuterInChild
).header) + 3))
188PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_switchInnerToOuterInNode(threadData_t *threadData, modelica_metatype _inNode, modelica_metatype _inCr);
189static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_switchInnerToOuterInNode,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_switchInnerToOuterInNode
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_switchInnerToOuterInNodeomc_InnerOuter_switchInnerToOuterInNode,0}};
190#define boxvar_InnerOuter_switchInnerToOuterInNode((void*)((char*)(&(boxvar_lit_InnerOuter_switchInnerToOuterInNode
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_switchInnerToOuterInNode)((void*)((char*)(&(boxvar_lit_InnerOuter_switchInnerToOuterInNode
).header) + 3))
191PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_lookupInnerInIH(threadData_t *threadData, modelica_metatype _inTIH, modelica_metatype _inPrefix, modelica_string _inComponentIdent);
192static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_lookupInnerInIH,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_lookupInnerInIH
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_lookupInnerInIHomc_InnerOuter_lookupInnerInIH,0}};
193#define boxvar_InnerOuter_lookupInnerInIH((void*)((char*)(&(boxvar_lit_InnerOuter_lookupInnerInIH)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_lookupInnerInIH)((void*)((char*)(&(boxvar_lit_InnerOuter_lookupInnerInIH)
.header) + 3))
194PROTECTED_FUNCTION_STATIC void omc_InnerOuter_checkMissingInnerDecl2(threadData_t *threadData, modelica_metatype _outerVar, modelica_metatype _innerVars);
195static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_checkMissingInnerDecl2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_checkMissingInnerDecl2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_checkMissingInnerDecl2omc_InnerOuter_checkMissingInnerDecl2,0}};
196#define boxvar_InnerOuter_checkMissingInnerDecl2((void*)((char*)(&(boxvar_lit_InnerOuter_checkMissingInnerDecl2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_checkMissingInnerDecl2)((void*)((char*)(&(boxvar_lit_InnerOuter_checkMissingInnerDecl2
).header) + 3))
197PROTECTED_FUNCTION_STATIC void omc_InnerOuter_checkMissingInnerDecl1(threadData_t *threadData, modelica_metatype _innerVarsDae, modelica_metatype _outerVarsDae);
198static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_checkMissingInnerDecl1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_checkMissingInnerDecl1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_checkMissingInnerDecl1omc_InnerOuter_checkMissingInnerDecl1,0}};
199#define boxvar_InnerOuter_checkMissingInnerDecl1((void*)((char*)(&(boxvar_lit_InnerOuter_checkMissingInnerDecl1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_checkMissingInnerDecl1)((void*)((char*)(&(boxvar_lit_InnerOuter_checkMissingInnerDecl1
).header) + 3))
200PROTECTED_FUNCTION_STATIC modelica_boolean omc_InnerOuter_lookupVarInnerOuterAttr(threadData_t *threadData, modelica_metatype _cache, modelica_metatype _env, modelica_metatype _inIH, modelica_metatype _cr1, modelica_metatype _cr2, modelica_boolean *out_isOuter);
201PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_InnerOuter_lookupVarInnerOuterAttr(threadData_t *threadData, modelica_metatype _cache, modelica_metatype _env, modelica_metatype _inIH, modelica_metatype _cr1, modelica_metatype _cr2, modelica_metatype *out_isOuter);
202static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_lookupVarInnerOuterAttr,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_lookupVarInnerOuterAttr
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_lookupVarInnerOuterAttr,0}};
203#define boxvar_InnerOuter_lookupVarInnerOuterAttr((void*)((char*)(&(boxvar_lit_InnerOuter_lookupVarInnerOuterAttr
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_lookupVarInnerOuterAttr)((void*)((char*)(&(boxvar_lit_InnerOuter_lookupVarInnerOuterAttr
).header) + 3))
204PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_removeOuter(threadData_t *threadData, modelica_metatype _io);
205static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_removeOuter,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_removeOuter
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_removeOuteromc_InnerOuter_removeOuter,0}};
206#define boxvar_InnerOuter_removeOuter((void*)((char*)(&(boxvar_lit_InnerOuter_removeOuter).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_removeOuter)((void*)((char*)(&(boxvar_lit_InnerOuter_removeOuter).header
) + 3))
207PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_addOuterConnectIfEmptyNoEnv(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPre, modelica_metatype _inSets, modelica_boolean _added, modelica_metatype _cr1, modelica_metatype _iio1, modelica_metatype _f1, modelica_metatype _cr2, modelica_metatype _iio2, modelica_metatype _f2, modelica_metatype _info);
208PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_InnerOuter_addOuterConnectIfEmptyNoEnv(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPre, modelica_metatype _inSets, modelica_metatype _added, modelica_metatype _cr1, modelica_metatype _iio1, modelica_metatype _f1, modelica_metatype _cr2, modelica_metatype _iio2, modelica_metatype _f2, modelica_metatype _info);
209static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_addOuterConnectIfEmptyNoEnv,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_addOuterConnectIfEmptyNoEnv
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_addOuterConnectIfEmptyNoEnv,0}};
210#define boxvar_InnerOuter_addOuterConnectIfEmptyNoEnv((void*)((char*)(&(boxvar_lit_InnerOuter_addOuterConnectIfEmptyNoEnv
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_addOuterConnectIfEmptyNoEnv)((void*)((char*)(&(boxvar_lit_InnerOuter_addOuterConnectIfEmptyNoEnv
).header) + 3))
211PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_addOuterConnectIfEmpty(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _pre, modelica_metatype _inSets, modelica_boolean _added, modelica_metatype _cr1, modelica_metatype _iio1, modelica_metatype _f1, modelica_metatype _cr2, modelica_metatype _iio2, modelica_metatype _f2, modelica_metatype _info, modelica_metatype _inCGraph, modelica_metatype *out_outCGraph);
212PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_InnerOuter_addOuterConnectIfEmpty(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _pre, modelica_metatype _inSets, modelica_metatype _added, modelica_metatype _cr1, modelica_metatype _iio1, modelica_metatype _f1, modelica_metatype _cr2, modelica_metatype _iio2, modelica_metatype _f2, modelica_metatype _info, modelica_metatype _inCGraph, modelica_metatype *out_outCGraph);
213static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_addOuterConnectIfEmpty,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_addOuterConnectIfEmpty
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_addOuterConnectIfEmpty,0}};
214#define boxvar_InnerOuter_addOuterConnectIfEmpty((void*)((char*)(&(boxvar_lit_InnerOuter_addOuterConnectIfEmpty
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_addOuterConnectIfEmpty)((void*)((char*)(&(boxvar_lit_InnerOuter_addOuterConnectIfEmpty
).header) + 3))
215PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_convertInnerOuterInnerToOuter(threadData_t *threadData, modelica_metatype _io);
216static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_convertInnerOuterInnerToOuter,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_convertInnerOuterInnerToOuter
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_convertInnerOuterInnerToOuteromc_InnerOuter_convertInnerOuterInnerToOuter,0}};
217#define boxvar_InnerOuter_convertInnerOuterInnerToOuter((void*)((char*)(&(boxvar_lit_InnerOuter_convertInnerOuterInnerToOuter
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_convertInnerOuterInnerToOuter)((void*)((char*)(&(boxvar_lit_InnerOuter_convertInnerOuterInnerToOuter
).header) + 3))
218PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_retrieveOuterConnections2(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inOuterConnects, modelica_metatype _inSets, modelica_boolean _inTopCall, modelica_metatype _inCGraph, modelica_metatype *out_outSets, modelica_metatype *out_outInnerOuterConnects, modelica_metatype *out_outCGraph);
219PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_InnerOuter_retrieveOuterConnections2(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inOuterConnects, modelica_metatype _inSets, modelica_metatype _inTopCall, modelica_metatype _inCGraph, modelica_metatype *out_outSets, modelica_metatype *out_outInnerOuterConnects, modelica_metatype *out_outCGraph);
220static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_retrieveOuterConnections2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_retrieveOuterConnections2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_retrieveOuterConnections2,0}};
221#define boxvar_InnerOuter_retrieveOuterConnections2((void*)((char*)(&(boxvar_lit_InnerOuter_retrieveOuterConnections2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_retrieveOuterConnections2)((void*)((char*)(&(boxvar_lit_InnerOuter_retrieveOuterConnections2
).header) + 3))
222PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_removeInnerPrefixFromCref(threadData_t *threadData, modelica_metatype _inPrefix, modelica_metatype _inCref);
223static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_removeInnerPrefixFromCref,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_removeInnerPrefixFromCref
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_removeInnerPrefixFromCrefomc_InnerOuter_removeInnerPrefixFromCref,0}};
224#define boxvar_InnerOuter_removeInnerPrefixFromCref((void*)((char*)(&(boxvar_lit_InnerOuter_removeInnerPrefixFromCref
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_removeInnerPrefixFromCref)((void*)((char*)(&(boxvar_lit_InnerOuter_removeInnerPrefixFromCref
).header) + 3))
225PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_extractCommonPart(threadData_t *threadData, modelica_metatype _prefixedCref, modelica_metatype _innerCref);
226static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_extractCommonPart,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_extractCommonPart
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_extractCommonPartomc_InnerOuter_extractCommonPart,0}};
227#define boxvar_InnerOuter_extractCommonPart((void*)((char*)(&(boxvar_lit_InnerOuter_extractCommonPart
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_extractCommonPart)((void*)((char*)(&(boxvar_lit_InnerOuter_extractCommonPart
).header) + 3))
228PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_stripCommonCrefPart(threadData_t *threadData, modelica_metatype _outerCr, modelica_metatype _innerCr, modelica_metatype *out_outInnerCr);
229static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_stripCommonCrefPart,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_stripCommonCrefPart
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_stripCommonCrefPartomc_InnerOuter_stripCommonCrefPart,0}};
230#define boxvar_InnerOuter_stripCommonCrefPart((void*)((char*)(&(boxvar_lit_InnerOuter_stripCommonCrefPart
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_stripCommonCrefPart)((void*)((char*)(&(boxvar_lit_InnerOuter_stripCommonCrefPart
).header) + 3))
231PROTECTED_FUNCTION_STATIC modelica_boolean omc_InnerOuter_isInnerOuterMatch(threadData_t *threadData, modelica_metatype _outerCr, modelica_metatype _innerCr);
232PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_InnerOuter_isInnerOuterMatch(threadData_t *threadData, modelica_metatype _outerCr, modelica_metatype _innerCr);
233static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_isInnerOuterMatch,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_isInnerOuterMatch
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_isInnerOuterMatch,0}};
234#define boxvar_InnerOuter_isInnerOuterMatch((void*)((char*)(&(boxvar_lit_InnerOuter_isInnerOuterMatch
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_isInnerOuterMatch)((void*)((char*)(&(boxvar_lit_InnerOuter_isInnerOuterMatch
).header) + 3))
235PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_buildInnerOuterReplVar(threadData_t *threadData, modelica_metatype _innerVar, modelica_metatype _outerVars, modelica_metatype _inRepl);
236static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_buildInnerOuterReplVar,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_buildInnerOuterReplVar
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_buildInnerOuterReplVaromc_InnerOuter_buildInnerOuterReplVar,0}};
237#define boxvar_InnerOuter_buildInnerOuterReplVar((void*)((char*)(&(boxvar_lit_InnerOuter_buildInnerOuterReplVar
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_buildInnerOuterReplVar)((void*)((char*)(&(boxvar_lit_InnerOuter_buildInnerOuterReplVar
).header) + 3))
238PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_buildInnerOuterRepl(threadData_t *threadData, modelica_metatype _innerVars, modelica_metatype _outerVars, modelica_metatype _inRepl);
239static const MMC_DEFSTRUCTLIT(boxvar_lit_InnerOuter_buildInnerOuterRepl,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_InnerOuter_buildInnerOuterRepl
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_InnerOuter_buildInnerOuterReplomc_InnerOuter_buildInnerOuterRepl,0}};
240#define boxvar_InnerOuter_buildInnerOuterRepl((void*)((char*)(&(boxvar_lit_InnerOuter_buildInnerOuterRepl
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_InnerOuter_buildInnerOuterRepl)((void*)((char*)(&(boxvar_lit_InnerOuter_buildInnerOuterRepl
).header) + 3))
241
242DLLExport
243modelica_metatype omc_InnerOuter_valueArrayNth(threadData_t *threadData, modelica_metatype _valueArray, modelica_integer _pos, modelica_metatype *out_value)
244{
245 modelica_metatype _key = NULL((void*)0);
246 modelica_metatype _value = NULL((void*)0);
247 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
248 MMC_SO()mmc_check_stackoverflow(threadData);
249 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
250 // _key has no default value.
251 // _value has no default value.
252#line 2273 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
253
254#line 2273 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
255
256#line 256 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
257 { /* match expression */
258 modelica_metatype tmp4_1;
259 tmp4_1 = _valueArray;
260 {
261 modelica_metatype _k = NULL((void*)0);
262 modelica_metatype _v = NULL((void*)0);
263 modelica_integer _n;
264 modelica_metatype _arr = NULL((void*)0);
265 volatile mmc_switch_type tmp4;
266 int tmp5;
267 // _k has no default value.
268 // _v has no default value.
269 // _n has no default value.
270 // _arr has no default value.
271 tmp4 = 0;
272 for (; tmp4 < 1; tmp4++) {
273 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
274 case 0: {
275 modelica_integer tmp6;
276 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
277 tmp6 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
278 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
279 _n = tmp6 /* pattern as ty=Integer */;
280 _arr = tmpMeta[3];
281 /* Pattern matching succeeded */
282#line 2282 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
283 if((!(_pos < _n)))
284#line 2282 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
285 {
286#line 2282 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
287 goto goto_2;
288#line 288 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
289 }
290
291#line 2283 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
292 /* Pattern-matching assignment */
293#line 2283 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
294 tmpMeta[2] = arrayGet(_arr,((modelica_integer) 1) + _pos)nobox_arrayGet(threadData,_arr,((modelica_integer) 1) + _pos) /* DAE.ASUB */;
295#line 2283 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
296 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 goto_2;
297#line 2283 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
298 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
299#line 2283 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
300 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (1)))))
;
301#line 2283 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
302 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
303#line 2283 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
304 _k = tmpMeta[4];
305#line 2283 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
306 _v = tmpMeta[5];
307#line 307 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
308#line 2284 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
309 tmpMeta[0+0] = _k;
310#line 2284 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
311 tmpMeta[0+1] = _v;
312#line 312 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
313 goto tmp3_done;
314 }
315 }
316 goto tmp3_end;
317 tmp3_end: ;
318 }
319 goto goto_2;
320 goto_2:;
321 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
322 goto tmp3_done;
323 tmp3_done:;
324 }
325 }
326 _key = tmpMeta[0+0];
327 _value = tmpMeta[0+1];
328 _return: OMC_LABEL_UNUSED__attribute__((unused))
329 if (out_value) { *out_value = _value; }
330 return _key;
331}
332modelica_metatype boxptr_InnerOuter_valueArrayNth(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _pos, modelica_metatype *out_value)
333{
334 modelica_integer tmp1;
335 modelica_metatype _key = NULL((void*)0);
336 tmp1 = mmc_unbox_integer(_pos)(((mmc_sint_t) (_pos)) >> 1);
337 _key = omc_InnerOuter_valueArrayNth(threadData, _valueArray, tmp1, out_value);
338 /* skip box _key; DAE.ComponentRef */
339 /* skip box _value; InnerOuter.InstInner */
340 return _key;
341}
342
343DLLExport
344modelica_metatype omc_InnerOuter_valueArrayClearnth(threadData_t *threadData, modelica_metatype _valueArray, modelica_integer _pos)
345{
346 modelica_metatype _outValueArray = NULL((void*)0);
347 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
348 MMC_SO()mmc_check_stackoverflow(threadData);
349 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
350 // _outValueArray has no default value.
351#line 351 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
352 { /* matchcontinue expression */
353 volatile modelica_metatype tmp3_1;
354 tmp3_1 = _valueArray;
355 {
356 modelica_metatype _arr = NULL((void*)0);
357 volatile mmc_switch_type tmp3;
358 int tmp4;
359 // _arr has no default value.
360 tmp3 = 0;
361 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) {
362 tmp2_top:
363 threadData->mmc_jumper = &new_mmc_jumper;
364 for (; tmp3 < 2; tmp3++) {
365 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
366 case 0: {
367 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
368 _arr = tmpMeta[1];
369 /* Pattern matching succeeded */
370#line 2253 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
371 if((!(_pos < arrayLength(_arr))))
372#line 2253 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
373 {
374#line 2253 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
375 goto goto_1;
376#line 376 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
377 }
378
379#line 2254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
380 arrayUpdate(_arr, ((modelica_integer) 1) + _pos, mmc_mk_none())boxptr_arrayUpdate(threadData,_arr,mmc_mk_icon(((modelica_integer
) 1) + _pos),((void*)((char*)(&(mmc_none).header) + 3)))
;
381#line 381 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
382#line 2255 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
383 tmpMeta[0] = _valueArray;
384#line 384 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
385 goto tmp2_done;
386 }
387 case 1: {
388
389 /* Pattern matching succeeded */
390#line 2259 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
391 fputs(MMC_STRINGDATA(_OMC_LIT0)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT0).header) + 3))) - 3)))->data)
,stdoutstdout);
392#line 392 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
393#line 2260 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
394 goto goto_1;
395#line 395 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
396 goto tmp2_done;
397 }
398 }
399 goto tmp2_end;
400 tmp2_end: ;
401 }
402 goto goto_1;
403 tmp2_done:
404 (void)tmp3;
405 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
406 goto tmp2_done2;
407 goto_1:;
408 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
409 if (++tmp3 < 2) {
410 goto tmp2_top;
411 }
412 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
413 tmp2_done2:;
414 }
415 }
416 _outValueArray = tmpMeta[0];
417 _return: OMC_LABEL_UNUSED__attribute__((unused))
418 return _outValueArray;
419}
420modelica_metatype boxptr_InnerOuter_valueArrayClearnth(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _pos)
421{
422 modelica_integer tmp1;
423 modelica_metatype _outValueArray = NULL((void*)0);
424 tmp1 = mmc_unbox_integer(_pos)(((mmc_sint_t) (_pos)) >> 1);
425 _outValueArray = omc_InnerOuter_valueArrayClearnth(threadData, _valueArray, tmp1);
426 /* skip box _outValueArray; InnerOuter.ValueArray */
427 return _outValueArray;
428}
429
430DLLExport
431modelica_metatype omc_InnerOuter_valueArraySetnth(threadData_t *threadData, modelica_metatype _valueArray, modelica_integer _pos, modelica_metatype _entry)
432{
433 modelica_metatype _outValueArray = NULL((void*)0);
434 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
435 MMC_SO()mmc_check_stackoverflow(threadData);
436 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
437 // _outValueArray has no default value.
438#line 438 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
439 { /* matchcontinue expression */
440 volatile modelica_metatype tmp3_1;
441 tmp3_1 = _valueArray;
442 {
443 modelica_metatype _arr = NULL((void*)0);
444 volatile mmc_switch_type tmp3;
445 int tmp4;
446 // _arr has no default value.
447 tmp3 = 0;
448 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) {
449 tmp2_top:
450 threadData->mmc_jumper = &new_mmc_jumper;
451 for (; tmp3 < 2; tmp3++) {
452 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
453 case 0: {
454 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
455 _arr = tmpMeta[1];
456 /* Pattern matching succeeded */
457#line 2228 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
458 if((!(_pos < arrayLength(_arr))))
459#line 2228 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
460 {
461#line 2228 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
462 goto goto_1;
463#line 463 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
464 }
465
466#line 2229 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
467 arrayUpdate(_arr, ((modelica_integer) 1) + _pos, mmc_mk_some(_entry))boxptr_arrayUpdate(threadData,_arr,mmc_mk_icon(((modelica_integer
) 1) + _pos),mmc_mk_some(_entry))
;
468#line 468 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
469#line 2230 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
470 tmpMeta[0] = _valueArray;
471#line 471 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
472 goto tmp2_done;
473 }
474 case 1: {
475
476 /* Pattern matching succeeded */
477#line 2234 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
478 fputs(MMC_STRINGDATA(_OMC_LIT1)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT1).header) + 3))) - 3)))->data)
,stdoutstdout);
479#line 479 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
480#line 2235 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
481 goto goto_1;
482#line 482 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
483 goto tmp2_done;
484 }
485 }
486 goto tmp2_end;
487 tmp2_end: ;
488 }
489 goto goto_1;
490 tmp2_done:
491 (void)tmp3;
492 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
493 goto tmp2_done2;
494 goto_1:;
495 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
496 if (++tmp3 < 2) {
497 goto tmp2_top;
498 }
499 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
500 tmp2_done2:;
501 }
502 }
503 _outValueArray = tmpMeta[0];
504 _return: OMC_LABEL_UNUSED__attribute__((unused))
505 return _outValueArray;
506}
507modelica_metatype boxptr_InnerOuter_valueArraySetnth(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _pos, modelica_metatype _entry)
508{
509 modelica_integer tmp1;
510 modelica_metatype _outValueArray = NULL((void*)0);
511 tmp1 = mmc_unbox_integer(_pos)(((mmc_sint_t) (_pos)) >> 1);
512 _outValueArray = omc_InnerOuter_valueArraySetnth(threadData, _valueArray, tmp1, _entry);
513 /* skip box _outValueArray; InnerOuter.ValueArray */
514 return _outValueArray;
515}
516
517DLLExport
518modelica_metatype omc_InnerOuter_valueArrayAdd(threadData_t *threadData, modelica_metatype _valueArray, modelica_metatype _entry)
519{
520 modelica_metatype _outValueArray = NULL((void*)0);
521 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
522 MMC_SO()mmc_check_stackoverflow(threadData);
523 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
524 // _outValueArray has no default value.
525#line 525 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
526 { /* matchcontinue expression */
527 volatile modelica_metatype tmp3_1;
528 tmp3_1 = _valueArray;
529 {
530 modelica_integer _n_1;
531 modelica_integer _n;
532 modelica_integer _size;
533 modelica_integer _expandsize;
534 modelica_integer _expandsize_1;
535 modelica_metatype _arr_1 = NULL((void*)0);
536 modelica_metatype _arr = NULL((void*)0);
537 modelica_metatype _arr_2 = NULL((void*)0);
538 modelica_real _rsize;
539 modelica_real _rexpandsize;
540 volatile mmc_switch_type tmp3;
541 int tmp4;
542 // _n_1 has no default value.
543 // _n has no default value.
544 // _size has no default value.
545 // _expandsize has no default value.
546 // _expandsize_1 has no default value.
547 // _arr_1 has no default value.
548 // _arr has no default value.
549 // _arr_2 has no default value.
550 // _rsize has no default value.
551 // _rexpandsize has no default value.
552 tmp3 = 0;
553 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) {
554 tmp2_top:
555 threadData->mmc_jumper = &new_mmc_jumper;
556 for (; tmp3 < 3; tmp3++) {
557 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
558 case 0: {
559 modelica_integer tmp5;
560 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
561 tmp5 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
562 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
563 _n = tmp5 /* pattern as ty=Integer */;
564 _arr = tmpMeta[2];
565 /* Pattern matching succeeded */
566#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
567 if((!(_n < arrayLength(_arr))))
568#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
569 {
570#line 2187 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
571 goto goto_1;
572#line 572 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
573 }
574
575#line 2188 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
576 _n_1 = ((modelica_integer) 1) + _n;
577#line 577 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
578
579#line 2189 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
580 _arr_1 = arrayUpdate(_arr, ((modelica_integer) 1) + _n, mmc_mk_some(_entry))boxptr_arrayUpdate(threadData,_arr,mmc_mk_icon(((modelica_integer
) 1) + _n),mmc_mk_some(_entry))
;
581#line 581 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
582#line 2190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
583 tmpMeta[1] = mmc_mk_box3(3, &InnerOuter_ValueArray_VALUE__ARRAY__desc, mmc_mk_integermmc_mk_icon(_n_1), _arr_1);
584#line 2190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
585 tmpMeta[0] = tmpMeta[1];
586#line 586 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
587 goto tmp2_done;
588 }
589 case 1: {
590 modelica_integer tmp6;
591 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
592 tmp6 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
593 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
594 _n = tmp6 /* pattern as ty=Integer */;
595 _arr = tmpMeta[2];
596 /* Pattern matching succeeded */
597#line 2195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
598 _size = arrayLength(_arr);
599#line 599 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
600
601#line 2196 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
602 if((_n < _size))
603#line 2196 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
604 {
605#line 2196 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
606 goto goto_1;
607#line 607 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
608 }
609
610#line 2197 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
611 _rsize = ((modelica_real)_size);
612#line 612 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
613
614#line 2198 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
615 _rexpandsize = (0.4) * (_rsize);
616#line 616 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
617
618#line 2199 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
619 _expandsize = ((modelica_integer)floor(_rexpandsize));
620#line 620 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
621
622#line 2200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
623 _expandsize_1 = modelica_integer_max((modelica_integer)(_expandsize),(modelica_integer)(((modelica_integer) 1)));
624#line 624 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
625
626#line 2201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
627 _arr_1 = omc_Array_expand(threadData, _expandsize_1, _arr, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
628#line 628 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
629
630#line 2202 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
631 _n_1 = ((modelica_integer) 1) + _n;
632#line 632 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
633
634#line 2203 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
635 _arr_2 = arrayUpdate(_arr_1, ((modelica_integer) 1) + _n, mmc_mk_some(_entry))boxptr_arrayUpdate(threadData,_arr_1,mmc_mk_icon(((modelica_integer
) 1) + _n),mmc_mk_some(_entry))
;
636#line 636 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
637#line 2204 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
638 tmpMeta[1] = mmc_mk_box3(3, &InnerOuter_ValueArray_VALUE__ARRAY__desc, mmc_mk_integermmc_mk_icon(_n_1), _arr_2);
639#line 2204 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
640 tmpMeta[0] = tmpMeta[1];
641#line 641 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
642 goto tmp2_done;
643 }
644 case 2: {
645
646 /* Pattern matching succeeded */
647#line 2208 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
648 fputs(MMC_STRINGDATA(_OMC_LIT2)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT2).header) + 3))) - 3)))->data)
,stdoutstdout);
649#line 649 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
650#line 2209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
651 goto goto_1;
652#line 652 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
653 goto tmp2_done;
654 }
655 }
656 goto tmp2_end;
657 tmp2_end: ;
658 }
659 goto goto_1;
660 tmp2_done:
661 (void)tmp3;
662 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
663 goto tmp2_done2;
664 goto_1:;
665 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
666 if (++tmp3 < 3) {
667 goto tmp2_top;
668 }
669 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
670 tmp2_done2:;
671 }
672 }
673 _outValueArray = tmpMeta[0];
674 _return: OMC_LABEL_UNUSED__attribute__((unused))
675 return _outValueArray;
676}
677
678DLLExport
679modelica_integer omc_InnerOuter_valueArrayLength(threadData_t *threadData, modelica_metatype _valueArray)
680{
681 modelica_integer _size;
682 modelica_integer tmp1 = 0;
683 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
684 MMC_SO()mmc_check_stackoverflow(threadData);
685 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
686 // _size has no default value.
687#line 687 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
688 { /* match expression */
689 modelica_metatype tmp4_1;
690 tmp4_1 = _valueArray;
691 {
692 volatile mmc_switch_type tmp4;
693 int tmp5;
694 tmp4 = 0;
695 for (; tmp4 < 1; tmp4++) {
696 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
697 case 0: {
698 modelica_integer tmp6;
699 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
700 tmp6 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
701
702 _size = tmp6 /* pattern as ty=Integer */;
703 /* Pattern matching succeeded */
704#line 2168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
705 tmp1 = _size;
706#line 706 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
707 goto tmp3_done;
708 }
709 }
710 goto tmp3_end;
711 tmp3_end: ;
712 }
713 goto goto_2;
714 goto_2:;
715 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
716 goto tmp3_done;
717 tmp3_done:;
718 }
719 }
720 _size = tmp1;
721 _return: OMC_LABEL_UNUSED__attribute__((unused))
722 return _size;
723}
724modelica_metatype boxptr_InnerOuter_valueArrayLength(threadData_t *threadData, modelica_metatype _valueArray)
725{
726 modelica_integer _size;
727 modelica_metatype out_size;
728 _size = omc_InnerOuter_valueArrayLength(threadData, _valueArray);
729 out_size = mmc_mk_icon(_size);
730 return out_size;
731}
732
733DLLExport
734modelica_metatype omc_InnerOuter_valueArrayList2(threadData_t *threadData, modelica_metatype _inVarOptionArray1, modelica_integer _inInteger2, modelica_integer _inInteger3)
735{
736 modelica_metatype _outVarLst = NULL((void*)0);
737 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
738 MMC_SO()mmc_check_stackoverflow(threadData);
739 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
740 // _outVarLst has no default value.
741#line 741 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
742 { /* matchcontinue expression */
743 volatile modelica_metatype tmp3_1;volatile modelica_integer tmp3_2;volatile modelica_integer tmp3_3;
744 tmp3_1 = _inVarOptionArray1;
745 tmp3_2 = _inInteger2;
746 tmp3_3 = _inInteger3;
747 {
748 modelica_metatype _v = NULL((void*)0);
749 modelica_metatype _arr = NULL((void*)0);
750 modelica_integer _pos;
751 modelica_integer _lastpos;
752 modelica_integer _pos_1;
753 modelica_metatype _res = NULL((void*)0);
754 volatile mmc_switch_type tmp3;
755 int tmp4;
756 // _v has no default value.
757 // _arr has no default value.
758 // _pos has no default value.
759 // _lastpos has no default value.
760 // _pos_1 has no default value.
761 // _res has no default value.
762 tmp3 = 0;
763 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) {
764 tmp2_top:
765 threadData->mmc_jumper = &new_mmc_jumper;
766 for (; tmp3 < 3; tmp3++) {
767 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
768 case 0: {
769
770 _arr = tmp3_1;
771 _pos = tmp3_2;
772 _lastpos = tmp3_3;
773 /* Pattern matching succeeded */
774#line 2140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
775 if((!(_pos == _lastpos)))
776#line 2140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
777 {
778#line 2140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
779 goto goto_1;
780#line 780 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
781 }
782
783#line 2141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
784 /* Pattern-matching assignment */
785#line 2141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
786 tmpMeta[1] = arrayGet(_arr,((modelica_integer) 1) + _pos)nobox_arrayGet(threadData,_arr,((modelica_integer) 1) + _pos) /* DAE.ASUB */;
787#line 2141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
788 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 goto_1;
789#line 2141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
790 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
791#line 2141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
792 _v = tmpMeta[2];
793#line 793 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
794#line 2142 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
795 tmpMeta[1] = mmc_mk_cons(_v, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
796#line 2142 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
797 tmpMeta[0] = tmpMeta[1];
798#line 798 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
799 goto tmp2_done;
800 }
801 case 1: {
802
803 _arr = tmp3_1;
804 _pos = tmp3_2;
805 _lastpos = tmp3_3;
806 /* Pattern matching succeeded */
807#line 2146 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
808 _pos_1 = ((modelica_integer) 1) + _pos;
809#line 809 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
810
811#line 2147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
812 /* Pattern-matching assignment */
813#line 2147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
814 tmpMeta[1] = arrayGet(_arr,((modelica_integer) 1) + _pos)nobox_arrayGet(threadData,_arr,((modelica_integer) 1) + _pos) /* DAE.ASUB */;
815#line 2147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
816 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 goto_1;
817#line 2147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
818 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
819#line 2147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
820 _v = tmpMeta[2];
821#line 821 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
822
823#line 2148 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
824 _res = omc_InnerOuter_valueArrayList2(threadData, _arr, _pos_1, _lastpos);
825#line 825 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
826#line 2149 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
827 tmpMeta[1] = mmc_mk_cons(_v, _res);
828#line 2149 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
829 tmpMeta[0] = tmpMeta[1];
830#line 830 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
831 goto tmp2_done;
832 }
833 case 2: {
834
835 _arr = tmp3_1;
836 _pos = tmp3_2;
837 _lastpos = tmp3_3;
838 /* Pattern matching succeeded */
839#line 2153 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
840 _pos_1 = ((modelica_integer) 1) + _pos;
841#line 841 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
842
843#line 2154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
844 /* Pattern-matching assignment */
845#line 2154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
846 tmpMeta[1] = arrayGet(_arr,((modelica_integer) 1) + _pos)nobox_arrayGet(threadData,_arr,((modelica_integer) 1) + _pos) /* DAE.ASUB */;
847#line 2154 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
848 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 goto_1;
849#line 849 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
850#line 2155 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
851 tmpMeta[0] = omc_InnerOuter_valueArrayList2(threadData, _arr, _pos_1, _lastpos);
852#line 852 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
853 goto tmp2_done;
854 }
855 }
856 goto tmp2_end;
857 tmp2_end: ;
858 }
859 goto goto_1;
860 tmp2_done:
861 (void)tmp3;
862 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
863 goto tmp2_done2;
864 goto_1:;
865 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
866 if (++tmp3 < 3) {
867 goto tmp2_top;
868 }
869 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
870 tmp2_done2:;
871 }
872 }
873 _outVarLst = tmpMeta[0];
874 _return: OMC_LABEL_UNUSED__attribute__((unused))
875 return _outVarLst;
876}
877modelica_metatype boxptr_InnerOuter_valueArrayList2(threadData_t *threadData, modelica_metatype _inVarOptionArray1, modelica_metatype _inInteger2, modelica_metatype _inInteger3)
878{
879 modelica_integer tmp1;
880 modelica_integer tmp2;
881 modelica_metatype _outVarLst = NULL((void*)0);
882 tmp1 = mmc_unbox_integer(_inInteger2)(((mmc_sint_t) (_inInteger2)) >> 1);
883 tmp2 = mmc_unbox_integer(_inInteger3)(((mmc_sint_t) (_inInteger3)) >> 1);
884 _outVarLst = omc_InnerOuter_valueArrayList2(threadData, _inVarOptionArray1, tmp1, tmp2);
885 /* skip box _outVarLst; list<tuple<DAE.ComponentRef, InnerOuter.InstInner>> */
886 return _outVarLst;
887}
888
889DLLExport
890modelica_metatype omc_InnerOuter_valueArrayList(threadData_t *threadData, modelica_metatype _valueArray)
891{
892 modelica_metatype _tplLst = NULL((void*)0);
893 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
894 MMC_SO()mmc_check_stackoverflow(threadData);
895 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
896 // _tplLst has no default value.
897#line 897 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
898 { /* matchcontinue expression */
899 volatile modelica_metatype tmp3_1;
900 tmp3_1 = _valueArray;
901 {
902 modelica_metatype _arr = NULL((void*)0);
903 modelica_metatype _elt = NULL((void*)0);
904 modelica_integer _lastpos;
905 modelica_integer _n;
906 volatile mmc_switch_type tmp3;
907 int tmp4;
908 // _arr has no default value.
909 // _elt has no default value.
910 // _lastpos has no default value.
911 // _n has no default value.
912 tmp3 = 0;
913 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) {
914 tmp2_top:
915 threadData->mmc_jumper = &new_mmc_jumper;
916 for (; tmp3 < 3; tmp3++) {
917 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
918 case 0: {
919 modelica_integer tmp5;
920 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
921 tmp5 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
922 if (0 != tmp5) goto tmp2_end;
923
924 tmp3 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
925#line 2111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
926 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
927#line 2111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
928 tmpMeta[0] = tmpMeta[1];
929#line 929 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
930 goto tmp2_done;
931 }
932 case 1: {
933 modelica_integer tmp6;
934 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
935 tmp6 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
936 if (1 != tmp6) goto tmp2_end;
937 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
938 _arr = tmpMeta[2];
939 /* Pattern matching succeeded */
940#line 2114 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
941 /* Pattern-matching assignment */
942#line 2114 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
943 tmpMeta[1] = arrayGet(_arr,((modelica_integer) 1))nobox_arrayGet(threadData,_arr,((modelica_integer) 1)) /* DAE.ASUB */;
944#line 2114 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
945 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 goto_1;
946#line 2114 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
947 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
948#line 2114 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
949 _elt = tmpMeta[2];
950#line 950 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
951#line 2115 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
952 tmpMeta[1] = mmc_mk_cons(_elt, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
953#line 2115 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
954 tmpMeta[0] = tmpMeta[1];
955#line 955 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
956 goto tmp2_done;
957 }
958 case 2: {
959 modelica_integer tmp7;
960 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
961 tmp7 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
962 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
963 _n = tmp7 /* pattern as ty=Integer */;
964 _arr = tmpMeta[2];
965 /* Pattern matching succeeded */
966#line 2119 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
967 _lastpos = ((modelica_integer) -1) + _n;
968#line 968 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
969#line 2120 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
970 tmpMeta[0] = omc_InnerOuter_valueArrayList2(threadData, _arr, ((modelica_integer) 0), _lastpos);
971#line 971 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
972 goto tmp2_done;
973 }
974 }
975 goto tmp2_end;
976 tmp2_end: ;
977 }
978 goto goto_1;
979 tmp2_done:
980 (void)tmp3;
981 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
982 goto tmp2_done2;
983 goto_1:;
984 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
985 if (++tmp3 < 3) {
986 goto tmp2_top;
987 }
988 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
989 tmp2_done2:;
990 }
991 }
992 _tplLst = tmpMeta[0];
993 _return: OMC_LABEL_UNUSED__attribute__((unused))
994 return _tplLst;
995}
996
997DLLExport
998modelica_metatype omc_InnerOuter_hashTableList(threadData_t *threadData, modelica_metatype _hashTable)
999{
1000 modelica_metatype _tplLst = NULL((void*)0);
1001 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1002 MMC_SO()mmc_check_stackoverflow(threadData);
1003 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1004 // _tplLst has no default value.
1005#line 1005 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1006 { /* match expression */
1007 modelica_metatype tmp3_1;
1008 tmp3_1 = _hashTable;
1009 {
1010 modelica_metatype _varr = NULL((void*)0);
1011 volatile mmc_switch_type tmp3;
1012 int tmp4;
1013 // _varr has no default value.
1014 tmp3 = 0;
1015 for (; tmp3 < 1; tmp3++) {
1016 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1017 case 0: {
1018 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1019
1020 _varr = tmpMeta[1];
1021 /* Pattern matching succeeded */
1022#line 2094 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1023 tmpMeta[0] = omc_InnerOuter_valueArrayList(threadData, _varr);
1024#line 1024 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1025 goto tmp2_done;
1026 }
1027 }
1028 goto tmp2_end;
1029 tmp2_end: ;
1030 }
1031 goto goto_1;
1032 goto_1:;
1033 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1034 goto tmp2_done;
1035 tmp2_done:;
1036 }
1037 }
1038 _tplLst = tmpMeta[0];
1039 _return: OMC_LABEL_UNUSED__attribute__((unused))
1040 return _tplLst;
1041}
1042
1043DLLExport
1044modelica_metatype omc_InnerOuter_hashTableKeyList(threadData_t *threadData, modelica_metatype _hashTable)
1045{
1046 modelica_metatype _valLst = NULL((void*)0);
1047 MMC_SO()mmc_check_stackoverflow(threadData);
1048 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1049 // _valLst has no default value.
1050#line 2084 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1051 _valLst = omc_List_map(threadData, omc_InnerOuter_hashTableList(threadData, _hashTable), boxvar_Util_tuple21((void*)((char*)(&(boxvar_lit_Util_tuple21).header) + 3)));
1052#line 1052 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1053 _return: OMC_LABEL_UNUSED__attribute__((unused))
1054 return _valLst;
1055}
1056
1057DLLExport
1058modelica_metatype omc_InnerOuter_hashTableValueList(threadData_t *threadData, modelica_metatype _hashTable)
1059{
1060 modelica_metatype _valLst = NULL((void*)0);
1061 MMC_SO()mmc_check_stackoverflow(threadData);
1062 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1063 // _valLst has no default value.
1064#line 2077 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1065 _valLst = omc_List_map(threadData, omc_InnerOuter_hashTableList(threadData, _hashTable), boxvar_Util_tuple22((void*)((char*)(&(boxvar_lit_Util_tuple22).header) + 3)));
1066#line 1066 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1067 _return: OMC_LABEL_UNUSED__attribute__((unused))
1068 return _valLst;
1069}
1070
1071DLLExport
1072modelica_integer omc_InnerOuter_get2(threadData_t *threadData, modelica_metatype _key, modelica_metatype _keyIndices)
1073{
1074 modelica_integer _index;
1075 modelica_integer tmp1 = 0;
1076 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1077 MMC_SO()mmc_check_stackoverflow(threadData);
1078 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1079 // _index has no default value.
1080#line 1080 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1081 { /* matchcontinue expression */
1082 volatile modelica_metatype tmp4_1;
1083 tmp4_1 = _keyIndices;
1084 {
1085 modelica_metatype _key2 = NULL((void*)0);
1086 modelica_metatype _xs = NULL((void*)0);
1087 volatile mmc_switch_type tmp4;
1088 int tmp5;
1089 // _key2 has no default value.
1090 // _xs has no default value.
1091 tmp4 = 0;
1092 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) {
1093 tmp3_top:
1094 threadData->mmc_jumper = &new_mmc_jumper;
1095 for (; tmp4 < 2; tmp4++) {
1096 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1097 case 0: {
1098 modelica_integer tmp6;
1099 modelica_boolean tmp7;
1100 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1101 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
1102 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1103 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1104 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1105 tmp6 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1106 _key2 = tmpMeta[2];
1107 _index = tmp6 /* pattern as ty=Integer */;
1108 /* Pattern matching succeeded */
1109#line 2062 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1110 /* Pattern-matching assignment */
1111#line 2062 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1112 tmp7 = omc_InnerOuter_keyEqual(threadData, _key, _key2);
1113#line 2062 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1114 if (1 != tmp7) goto goto_2;
1115#line 1115 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1116#line 2063 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1117 tmp1 = _index;
1118#line 1118 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1119 goto tmp3_done;
1120 }
1121 case 1: {
1122 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1123 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
1124 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1125 _xs = tmpMeta[1];
1126 /* Pattern matching succeeded */
1127#line 2067 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1128 tmp1 = omc_InnerOuter_get2(threadData, _key, _xs);
1129#line 1129 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1130 goto tmp3_done;
1131 }
1132 }
1133 goto tmp3_end;
1134 tmp3_end: ;
1135 }
1136 goto goto_2;
1137 tmp3_done:
1138 (void)tmp4;
1139 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1140 goto tmp3_done2;
1141 goto_2:;
1142 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1143 if (++tmp4 < 2) {
1144 goto tmp3_top;
1145 }
1146 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1147 tmp3_done2:;
1148 }
1149 }
1150 _index = tmp1;
1151 _return: OMC_LABEL_UNUSED__attribute__((unused))
1152 return _index;
1153}
1154modelica_metatype boxptr_InnerOuter_get2(threadData_t *threadData, modelica_metatype _key, modelica_metatype _keyIndices)
1155{
1156 modelica_integer _index;
1157 modelica_metatype out_index;
1158 _index = omc_InnerOuter_get2(threadData, _key, _keyIndices);
1159 out_index = mmc_mk_icon(_index);
1160 return out_index;
1161}
1162
1163DLLExport
1164modelica_metatype omc_InnerOuter_get1(threadData_t *threadData, modelica_metatype _key, modelica_metatype _hashTable, modelica_integer *out_indx)
1165{
1166 modelica_metatype _value = NULL((void*)0);
1167 modelica_integer _indx;
1168 modelica_integer tmp1_c1 __attribute__((unused)) = 0;
1169 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
1170 MMC_SO()mmc_check_stackoverflow(threadData);
1171 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1172 // _value has no default value.
1173 // _indx has no default value.
1174#line 2027 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1175
1176#line 2027 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1177
1178#line 1178 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1179 { /* match expression */
1180 modelica_metatype tmp4_1;
1181 tmp4_1 = _hashTable;
1182 {
1183 modelica_integer _hval;
1184 modelica_integer _hashindx;
1185 modelica_integer _bsize;
1186 modelica_metatype _indexes = NULL((void*)0);
1187 modelica_metatype _v = NULL((void*)0);
1188 modelica_metatype _hashvec = NULL((void*)0);
1189 modelica_metatype _varr = NULL((void*)0);
1190 modelica_metatype _k = NULL((void*)0);
1191 volatile mmc_switch_type tmp4;
1192 int tmp5;
1193 // _hval has no default value.
1194 // _hashindx has no default value.
1195 // _bsize has no default value.
1196 // _indexes has no default value.
1197 // _v has no default value.
1198 // _hashvec has no default value.
1199 // _varr has no default value.
1200 // _k has no default value.
1201 tmp4 = 0;
1202 for (; tmp4 < 1; tmp4++) {
1203 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1204 case 0: {
1205 modelica_integer tmp6;
1206 modelica_boolean tmp7;
1207 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
1208 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
1209 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
1210 tmp6 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1211
1212 _hashvec = tmpMeta[2];
1213 _varr = tmpMeta[3];
1214 _bsize = tmp6 /* pattern as ty=Integer */;
1215 /* Pattern matching succeeded */
1216#line 2038 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1217 _hval = omc_InnerOuter_hashFunc(threadData, _key);
1218#line 1218 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1219
1220#line 2039 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1221 _hashindx = modelica_integer_mod(_hval, _bsize);
1222#line 1222 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1223
1224#line 2040 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1225 _indexes = arrayGet(_hashvec,((modelica_integer) 1) + _hashindx)nobox_arrayGet(threadData,_hashvec,((modelica_integer) 1) + _hashindx
)
/* DAE.ASUB */;
1226#line 1226 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1227
1228#line 2041 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1229 _indx = omc_InnerOuter_get2(threadData, _key, _indexes);
1230#line 1230 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1231
1232#line 2042 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1233 _k = omc_InnerOuter_valueArrayNth(threadData, _varr, _indx ,&_v);
1234#line 1234 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1235
1236#line 2043 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1237 /* Pattern-matching assignment */
1238#line 2043 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1239 tmp7 = omc_InnerOuter_keyEqual(threadData, _k, _key);
1240#line 2043 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1241 if (1 != tmp7) goto goto_2;
1242#line 1242 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1243#line 2044 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1244 tmpMeta[0+0] = _v;
1245#line 2044 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1246 tmp1_c1 = _indx;
1247#line 1247 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1248 goto tmp3_done;
1249 }
1250 }
1251 goto tmp3_end;
1252 tmp3_end: ;
1253 }
1254 goto goto_2;
1255 goto_2:;
1256 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1257 goto tmp3_done;
1258 tmp3_done:;
1259 }
1260 }
1261 _value = tmpMeta[0+0];
1262 _indx = tmp1_c1;
1263 _return: OMC_LABEL_UNUSED__attribute__((unused))
1264 if (out_indx) { *out_indx = _indx; }
1265 return _value;
1266}
1267modelica_metatype boxptr_InnerOuter_get1(threadData_t *threadData, modelica_metatype _key, modelica_metatype _hashTable, modelica_metatype *out_indx)
1268{
1269 modelica_integer _indx;
1270 modelica_metatype _value = NULL((void*)0);
1271 _value = omc_InnerOuter_get1(threadData, _key, _hashTable, &_indx);
1272 /* skip box _value; InnerOuter.InstInner */
1273 if (out_indx) { *out_indx = mmc_mk_icon(_indx); }
1274 return _value;
1275}
1276
1277DLLExport
1278modelica_metatype omc_InnerOuter_get(threadData_t *threadData, modelica_metatype _key, modelica_metatype _hashTable)
1279{
1280 modelica_metatype _value = NULL((void*)0);
1281 MMC_SO()mmc_check_stackoverflow(threadData);
1282 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1283 // _value has no default value.
1284#line 2018 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1285 _value = omc_InnerOuter_get1(threadData, _key, _hashTable, NULL((void*)0));
1286#line 1286 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1287 _return: OMC_LABEL_UNUSED__attribute__((unused))
1288 return _value;
1289}
1290
1291DLLExport
1292modelica_metatype omc_InnerOuter_delete(threadData_t *threadData, modelica_metatype _key, modelica_metatype _hashTable)
1293{
1294 modelica_metatype _outHashTable = NULL((void*)0);
1295 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
1296 MMC_SO()mmc_check_stackoverflow(threadData);
1297 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1298 // _outHashTable has no default value.
1299#line 1299 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1300 { /* matchcontinue expression */
1301 volatile modelica_metatype tmp3_1;
1302 tmp3_1 = _hashTable;
1303 {
1304 modelica_integer _indx;
1305 modelica_integer _n;
1306 modelica_integer _bsize;
1307 modelica_metatype _varr_1 = NULL((void*)0);
1308 modelica_metatype _varr = NULL((void*)0);
1309 modelica_metatype _hashvec = NULL((void*)0);
1310 volatile mmc_switch_type tmp3;
1311 int tmp4;
1312 // _indx has no default value.
1313 // _n has no default value.
1314 // _bsize has no default value.
1315 // _varr_1 has no default value.
1316 // _varr has no default value.
1317 // _hashvec has no default value.
1318 tmp3 = 0;
1319 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) {
1320 tmp2_top:
1321 threadData->mmc_jumper = &new_mmc_jumper;
1322 for (; tmp3 < 2; tmp3++) {
1323 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1324 case 0: {
1325 modelica_integer tmp5;
1326 modelica_integer tmp6;
1327 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1328 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1329 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1330 tmp5 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1331 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
1332 tmp6 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1333 _hashvec = tmpMeta[1];
1334 _varr = tmpMeta[2];
1335 _bsize = tmp5 /* pattern as ty=Integer */;
1336 _n = tmp6 /* pattern as ty=Integer */;
1337 /* Pattern matching succeeded */
1338#line 2000 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1339 omc_InnerOuter_get1(threadData, _key, _hashTable ,&_indx);
1340#line 1340 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1341
1342#line 2001 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1343 _varr_1 = omc_InnerOuter_valueArrayClearnth(threadData, _varr, _indx);
1344#line 1344 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1345#line 2002 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1346 tmpMeta[1] = mmc_mk_box5(3, &InnerOuter_InstHierarchyHashTable_HASHTABLE__desc, _hashvec, _varr_1, mmc_mk_integermmc_mk_icon(_bsize), mmc_mk_integermmc_mk_icon(_n));
1347#line 2002 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1348 tmpMeta[0] = tmpMeta[1];
1349#line 1349 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1350 goto tmp2_done;
1351 }
1352 case 1: {
1353
1354 /* Pattern matching succeeded */
1355#line 2005 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1356 fputs(MMC_STRINGDATA(_OMC_LIT3)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT3).header) + 3))) - 3)))->data)
,stdoutstdout);
1357#line 1357 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1358
1359#line 2006 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1360 fputs(MMC_STRINGDATA(_OMC_LIT4)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT4).header) + 3))) - 3)))->data)
,stdoutstdout);
1361#line 1361 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1362
1363#line 2006 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1364 omc_InnerOuter_dumpInstHierarchyHashTable(threadData, _hashTable);
1365#line 1365 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1366#line 2007 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1367 goto goto_1;
1368#line 1368 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1369 goto tmp2_done;
1370 }
1371 }
1372 goto tmp2_end;
1373 tmp2_end: ;
1374 }
1375 goto goto_1;
1376 tmp2_done:
1377 (void)tmp3;
1378 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1379 goto tmp2_done2;
1380 goto_1:;
1381 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1382 if (++tmp3 < 2) {
1383 goto tmp2_top;
1384 }
1385 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1386 tmp2_done2:;
1387 }
1388 }
1389 _outHashTable = tmpMeta[0];
1390 _return: OMC_LABEL_UNUSED__attribute__((unused))
1391 return _outHashTable;
1392}
1393
1394DLLExport
1395modelica_metatype omc_InnerOuter_addNoUpdCheck(threadData_t *threadData, modelica_metatype _entry, modelica_metatype _hashTable)
1396{
1397 modelica_metatype _outHashTable = NULL((void*)0);
1398 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
1399 MMC_SO()mmc_check_stackoverflow(threadData);
1400 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1401 // _outHashTable has no default value.
1402#line 1402 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1403 { /* matchcontinue expression */
1404 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
1405 tmp3_1 = _entry;
1406 tmp3_2 = _hashTable;
1407 {
1408 modelica_integer _hval;
1409 modelica_integer _indx;
1410 modelica_integer _newpos;
1411 modelica_integer _n_1;
1412 modelica_integer _bsize;
1413 modelica_metatype _varr_1 = NULL((void*)0);
1414 modelica_metatype _varr = NULL((void*)0);
1415 modelica_metatype _indexes = NULL((void*)0);
1416 modelica_metatype _hashvec_1 = NULL((void*)0);
1417 modelica_metatype _hashvec = NULL((void*)0);
1418 modelica_metatype _v = NULL((void*)0);
1419 modelica_metatype _key = NULL((void*)0);
1420 volatile mmc_switch_type tmp3;
1421 int tmp4;
1422 // _hval has no default value.
1423 // _indx has no default value.
1424 // _newpos has no default value.
1425 // _n_1 has no default value.
1426 // _bsize has no default value.
1427 // _varr_1 has no default value.
1428 // _varr has no default value.
1429 // _indexes has no default value.
1430 // _hashvec_1 has no default value.
1431 // _hashvec has no default value.
1432 // _v has no default value.
1433 // _key has no default value.
1434 tmp3 = 0;
1435 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) {
1436 tmp2_top:
1437 threadData->mmc_jumper = &new_mmc_jumper;
1438 for (; tmp3 < 2; tmp3++) {
1439 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1440 case 0: {
1441 modelica_integer tmp5;
1442 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1443 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
1444 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
1445 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(4)))))
;
1446 tmp5 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1447
1448 _v = tmp3_1;
1449 _key = tmpMeta[1];
1450 _hashvec = tmpMeta[2];
1451 _varr = tmpMeta[3];
1452 _bsize = tmp5 /* pattern as ty=Integer */;
1453 /* Pattern matching succeeded */
1454#line 1963 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1455 _hval = omc_InnerOuter_hashFunc(threadData, _key);
1456#line 1456 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1457
1458#line 1964 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1459 _indx = modelica_integer_mod(_hval, _bsize);
1460#line 1460 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1461
1462#line 1965 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1463 _newpos = omc_InnerOuter_valueArrayLength(threadData, _varr);
1464#line 1464 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1465
1466#line 1966 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1467 _varr_1 = omc_InnerOuter_valueArrayAdd(threadData, _varr, _v);
1468#line 1468 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1469
1470#line 1967 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1471 _indexes = arrayGet(_hashvec,((modelica_integer) 1) + _indx)nobox_arrayGet(threadData,_hashvec,((modelica_integer) 1) + _indx
)
/* DAE.ASUB */;
1472#line 1472 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1473
1474#line 1968 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1475 tmpMeta[2] = mmc_mk_box2(0, _key, mmc_mk_integermmc_mk_icon(_newpos));
1476#line 1968 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1477 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _indexes);
1478#line 1968 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1479 _hashvec_1 = arrayUpdate(_hashvec, ((modelica_integer) 1) + _indx, tmpMeta[1])boxptr_arrayUpdate(threadData,_hashvec,mmc_mk_icon(((modelica_integer
) 1) + _indx),tmpMeta[1])
;
1480#line 1480 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1481
1482#line 1969 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1483 _n_1 = omc_InnerOuter_valueArrayLength(threadData, _varr_1);
1484#line 1484 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1485#line 1970 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1486 tmpMeta[1] = mmc_mk_box5(3, &InnerOuter_InstHierarchyHashTable_HASHTABLE__desc, _hashvec_1, _varr_1, mmc_mk_integermmc_mk_icon(_bsize), mmc_mk_integermmc_mk_icon(_n_1));
1487#line 1970 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1488 tmpMeta[0] = tmpMeta[1];
1489#line 1489 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1490 goto tmp2_done;
1491 }
1492 case 1: {
1493
1494 /* Pattern matching succeeded */
1495#line 1973 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1496 fputs(MMC_STRINGDATA(_OMC_LIT5)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT5).header) + 3))) - 3)))->data)
,stdoutstdout);
1497#line 1497 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1498#line 1974 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1499 goto goto_1;
1500#line 1500 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1501 goto tmp2_done;
1502 }
1503 }
1504 goto tmp2_end;
1505 tmp2_end: ;
1506 }
1507 goto goto_1;
1508 tmp2_done:
1509 (void)tmp3;
1510 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1511 goto tmp2_done2;
1512 goto_1:;
1513 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1514 if (++tmp3 < 2) {
1515 goto tmp2_top;
1516 }
1517 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1518 tmp2_done2:;
1519 }
1520 }
1521 _outHashTable = tmpMeta[0];
1522 _return: OMC_LABEL_UNUSED__attribute__((unused))
1523 return _outHashTable;
1524}
1525
1526DLLExport
1527modelica_metatype omc_InnerOuter_add(threadData_t *threadData, modelica_metatype _entry, modelica_metatype _hashTable)
1528{
1529 modelica_metatype _outHashTable = NULL((void*)0);
1530 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
1531 MMC_SO()mmc_check_stackoverflow(threadData);
1532 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1533 // _outHashTable has no default value.
1534#line 1534 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1535 { /* matchcontinue expression */
1536 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
1537 tmp3_1 = _entry;
1538 tmp3_2 = _hashTable;
1539 {
1540 modelica_integer _hval;
1541 modelica_integer _indx;
1542 modelica_integer _newpos;
1543 modelica_integer _n;
1544 modelica_integer _n_1;
1545 modelica_integer _bsize;
1546 modelica_metatype _varr_1 = NULL((void*)0);
1547 modelica_metatype _varr = NULL((void*)0);
1548 modelica_metatype _indexes = NULL((void*)0);
1549 modelica_metatype _hashvec_1 = NULL((void*)0);
1550 modelica_metatype _hashvec = NULL((void*)0);
1551 modelica_metatype _v = NULL((void*)0);
1552 modelica_metatype _newv = NULL((void*)0);
1553 modelica_metatype _key = NULL((void*)0);
1554 volatile mmc_switch_type tmp3;
1555 int tmp4;
1556 // _hval has no default value.
1557 // _indx has no default value.
1558 // _newpos has no default value.
1559 // _n has no default value.
1560 // _n_1 has no default value.
1561 // _bsize has no default value.
1562 // _varr_1 has no default value.
1563 // _varr has no default value.
1564 // _indexes has no default value.
1565 // _hashvec_1 has no default value.
1566 // _hashvec has no default value.
1567 // _v has no default value.
1568 // _newv has no default value.
1569 // _key has no default value.
1570 tmp3 = 0;
1571 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) {
1572 tmp2_top:
1573 threadData->mmc_jumper = &new_mmc_jumper;
1574 for (; tmp3 < 3; tmp3++) {
1575 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1576 case 0: {
1577 modelica_integer tmp5;
1578 modelica_boolean tmp6;
1579 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1580 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
1581 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
1582 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(4)))))
;
1583 tmp5 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1584
1585 _v = tmp3_1;
1586 _key = tmpMeta[1];
1587 _hashvec = tmpMeta[2];
1588 _varr = tmpMeta[3];
1589 _bsize = tmp5 /* pattern as ty=Integer */;
1590 /* Pattern matching succeeded */
1591#line 1915 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1592 tmp6 = 0; /* begin failure */
1593#line 1915 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1594 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) {
1595#line 1915 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1596 omc_InnerOuter_get(threadData, _key, _hashTable);
1597#line 1597 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1598 tmp6 = 1;
1599 goto goto_7;
1600 goto_7:;
1601 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
1602 if (tmp6) {goto goto_1;} /* end failure */
1603
1604#line 1916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1605 _hval = omc_InnerOuter_hashFunc(threadData, _key);
1606#line 1606 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1607
1608#line 1917 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1609 _indx = modelica_integer_mod(_hval, _bsize);
1610#line 1610 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1611
1612#line 1918 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1613 _newpos = omc_InnerOuter_valueArrayLength(threadData, _varr);
1614#line 1614 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1615
1616#line 1919 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1617 _varr_1 = omc_InnerOuter_valueArrayAdd(threadData, _varr, _v);
1618#line 1618 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1619
1620#line 1920 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1621 _indexes = arrayGet(_hashvec,((modelica_integer) 1) + _indx)nobox_arrayGet(threadData,_hashvec,((modelica_integer) 1) + _indx
)
/* DAE.ASUB */;
1622#line 1622 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1623
1624#line 1921 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1625 tmpMeta[2] = mmc_mk_box2(0, _key, mmc_mk_integermmc_mk_icon(_newpos));
1626#line 1921 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1627 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _indexes);
1628#line 1921 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1629 _hashvec_1 = arrayUpdate(_hashvec, ((modelica_integer) 1) + _indx, tmpMeta[1])boxptr_arrayUpdate(threadData,_hashvec,mmc_mk_icon(((modelica_integer
) 1) + _indx),tmpMeta[1])
;
1630#line 1630 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1631
1632#line 1922 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1633 _n_1 = omc_InnerOuter_valueArrayLength(threadData, _varr_1);
1634#line 1634 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1635#line 1924 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1636 tmpMeta[1] = mmc_mk_box5(3, &InnerOuter_InstHierarchyHashTable_HASHTABLE__desc, _hashvec_1, _varr_1, mmc_mk_integermmc_mk_icon(_bsize), mmc_mk_integermmc_mk_icon(_n_1));
1637#line 1924 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1638 tmpMeta[0] = tmpMeta[1];
1639#line 1639 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1640 goto tmp2_done;
1641 }
1642 case 1: {
1643 modelica_integer tmp8;
1644 modelica_integer tmp9;
1645 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1646 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
1647 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
1648 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(4)))))
;
1649 tmp8 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1650 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(5)))))
;
1651 tmp9 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
1652 _newv = tmp3_1;
1653 _key = tmpMeta[1];
1654 _hashvec = tmpMeta[2];
1655 _varr = tmpMeta[3];
1656 _bsize = tmp8 /* pattern as ty=Integer */;
1657 _n = tmp9 /* pattern as ty=Integer */;
1658 /* Pattern matching succeeded */
1659#line 1929 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1660 omc_InnerOuter_get1(threadData, _key, _hashTable ,&_indx);
1661#line 1661 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1662
1663#line 1931 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1664 _varr_1 = omc_InnerOuter_valueArraySetnth(threadData, _varr, _indx, _newv);
1665#line 1665 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1666#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1667 tmpMeta[1] = mmc_mk_box5(3, &InnerOuter_InstHierarchyHashTable_HASHTABLE__desc, _hashvec, _varr_1, mmc_mk_integermmc_mk_icon(_bsize), mmc_mk_integermmc_mk_icon(_n));
1668#line 1933 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1669 tmpMeta[0] = tmpMeta[1];
1670#line 1670 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1671 goto tmp2_done;
1672 }
1673 case 2: {
1674
1675 /* Pattern matching succeeded */
1676#line 1936 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1677 fputs(MMC_STRINGDATA(_OMC_LIT6)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT6).header) + 3))) - 3)))->data)
,stdoutstdout);
1678#line 1678 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1679#line 1937 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1680 goto goto_1;
1681#line 1681 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1682 goto tmp2_done;
1683 }
1684 }
1685 goto tmp2_end;
1686 tmp2_end: ;
1687 }
1688 goto goto_1;
1689 tmp2_done:
1690 (void)tmp3;
1691 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1692 goto tmp2_done2;
1693 goto_1:;
1694 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1695 if (++tmp3 < 3) {
1696 goto tmp2_top;
1697 }
1698 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1699 tmp2_done2:;
1700 }
1701 }
1702 _outHashTable = tmpMeta[0];
1703 _return: OMC_LABEL_UNUSED__attribute__((unused))
1704 return _outHashTable;
1705}
1706
1707DLLExport
1708modelica_boolean omc_InnerOuter_isEmpty(threadData_t *threadData, modelica_metatype _hashTable)
1709{
1710 modelica_boolean _res;
1711 modelica_boolean tmp1 = 0;
1712 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1713 MMC_SO()mmc_check_stackoverflow(threadData);
1714 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1715 // _res has no default value.
1716#line 1716 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1717 { /* match expression */
1718 modelica_metatype tmp4_1;
1719 tmp4_1 = _hashTable;
1720 {
1721 volatile mmc_switch_type tmp4;
1722 int tmp5;
1723 tmp4 = 0;
1724 for (; tmp4 < 2; tmp4++) {
1725 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1726 case 0: {
1727 modelica_integer tmp6;
1728 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
1729 tmp6 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
1730 if (0 != tmp6) goto tmp3_end;
1731 /* Pattern matching succeeded */
1732#line 1889 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1733 tmp1 = 1;
1734#line 1734 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1735 goto tmp3_done;
1736 }
1737 case 1: {
1738
1739 /* Pattern matching succeeded */
1740#line 1890 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1741 tmp1 = 0;
1742#line 1742 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1743 goto tmp3_done;
1744 }
1745 }
1746 goto tmp3_end;
1747 tmp3_end: ;
1748 }
1749 goto goto_2;
1750 goto_2:;
1751 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1752 goto tmp3_done;
1753 tmp3_done:;
1754 }
1755 }
1756 _res = tmp1;
1757 _return: OMC_LABEL_UNUSED__attribute__((unused))
1758 return _res;
1759}
1760modelica_metatype boxptr_InnerOuter_isEmpty(threadData_t *threadData, modelica_metatype _hashTable)
1761{
1762 modelica_boolean _res;
1763 modelica_metatype out_res;
1764 _res = omc_InnerOuter_isEmpty(threadData, _hashTable);
1765 out_res = mmc_mk_icon(_res);
1766 return out_res;
1767}
1768
1769DLLExport
1770modelica_metatype omc_InnerOuter_emptyInstHierarchyHashTable(threadData_t *threadData)
1771{
1772 modelica_metatype _hashTable = NULL((void*)0);
1773 modelica_metatype _arr = NULL((void*)0);
1774 modelica_metatype _lst = NULL((void*)0);
1775 modelica_metatype _emptyarr = NULL((void*)0);
1776 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1777 MMC_SO()mmc_check_stackoverflow(threadData);
1778 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1779 // _hashTable has no default value.
1780 // _arr has no default value.
1781 // _lst has no default value.
1782 // _emptyarr has no default value.
1783#line 1879 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1784 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1785#line 1879 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1786 _arr = arrayCreate(((modelica_integer) 1000), tmpMeta[0]);
1787#line 1787 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1788
1789#line 1880 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1790 _emptyarr = arrayCreate(((modelica_integer) 100), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
1791#line 1791 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1792
1793#line 1881 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1794 tmpMeta[0] = mmc_mk_box3(3, &InnerOuter_ValueArray_VALUE__ARRAY__desc, mmc_mk_integermmc_mk_icon(((modelica_integer) 0)), _emptyarr);
1795#line 1881 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1796 tmpMeta[1] = mmc_mk_box5(3, &InnerOuter_InstHierarchyHashTable_HASHTABLE__desc, _arr, tmpMeta[0], mmc_mk_integermmc_mk_icon(((modelica_integer) 1000)), mmc_mk_integermmc_mk_icon(((modelica_integer) 0)));
1797#line 1881 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1798 _hashTable = tmpMeta[1];
1799#line 1799 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1800 _return: OMC_LABEL_UNUSED__attribute__((unused))
1801 return _hashTable;
1802}
1803
1804DLLExport
1805modelica_metatype omc_InnerOuter_cloneInstHierarchyHashTable(threadData_t *threadData, modelica_metatype _inHash)
1806{
1807 modelica_metatype _outHash = NULL((void*)0);
1808 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
1809 MMC_SO()mmc_check_stackoverflow(threadData);
1810 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1811 // _outHash has no default value.
1812#line 1812 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1813 { /* match expression */
1814 modelica_metatype tmp3_1;
1815 tmp3_1 = _inHash;
1816 {
1817 modelica_metatype _arg1 = NULL((void*)0);
1818 modelica_metatype _arg1_2 = NULL((void*)0);
1819 modelica_integer _arg3;
1820 modelica_integer _arg4;
1821 modelica_integer _arg3_2;
1822 modelica_integer _arg4_2;
1823 modelica_integer _arg21;
1824 modelica_integer _arg21_2;
1825 modelica_metatype _arg22 = NULL((void*)0);
1826 modelica_metatype _arg22_2 = NULL((void*)0);
1827 volatile mmc_switch_type tmp3;
1828 int tmp4;
1829 // _arg1 has no default value.
1830 // _arg1_2 has no default value.
1831 // _arg3 has no default value.
1832 // _arg4 has no default value.
1833 // _arg3_2 has no default value.
1834 // _arg4_2 has no default value.
1835 // _arg21 has no default value.
1836 // _arg21_2 has no default value.
1837 // _arg22 has no default value.
1838 // _arg22_2 has no default value.
1839 tmp3 = 0;
1840 for (; tmp3 < 1; tmp3++) {
1841 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1842 case 0: {
1843 modelica_integer tmp5;
1844 modelica_integer tmp6;
1845 modelica_integer tmp7;
1846 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1847 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1848 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1849 tmp5 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1850 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
1851 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1852 tmp6 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
1853 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
1854 tmp7 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
1855 _arg1 = tmpMeta[1];
1856 _arg21 = tmp5 /* pattern as ty=Integer */;
1857 _arg22 = tmpMeta[4];
1858 _arg3 = tmp6 /* pattern as ty=Integer */;
1859 _arg4 = tmp7 /* pattern as ty=Integer */;
1860 /* Pattern matching succeeded */
1861#line 1859 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1862 _arg1_2 = arrayCopy(_arg1);
1863#line 1863 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1864
1865#line 1860 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1866 _arg21_2 = _arg21;
1867#line 1867 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1868
1869#line 1861 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1870 _arg22_2 = arrayCopy(_arg22);
1871#line 1871 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1872
1873#line 1862 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1874 _arg3_2 = _arg3;
1875#line 1875 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1876
1877#line 1863 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1878 _arg4_2 = _arg4;
1879#line 1879 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1880#line 1864 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1881 tmpMeta[1] = mmc_mk_box3(3, &InnerOuter_ValueArray_VALUE__ARRAY__desc, mmc_mk_integermmc_mk_icon(_arg21_2), _arg22_2);
1882#line 1864 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1883 tmpMeta[2] = mmc_mk_box5(3, &InnerOuter_InstHierarchyHashTable_HASHTABLE__desc, _arg1_2, tmpMeta[1], mmc_mk_integermmc_mk_icon(_arg3_2), mmc_mk_integermmc_mk_icon(_arg4_2));
1884#line 1864 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1885 tmpMeta[0] = tmpMeta[2];
1886#line 1886 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1887 goto tmp2_done;
1888 }
1889 }
1890 goto tmp2_end;
1891 tmp2_end: ;
1892 }
1893 goto goto_1;
1894 goto_1:;
1895 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1896 goto tmp2_done;
1897 tmp2_done:;
1898 }
1899 }
1900 _outHash = tmpMeta[0];
1901 _return: OMC_LABEL_UNUSED__attribute__((unused))
1902 return _outHash;
1903}
1904
1905DLLExport
1906modelica_string omc_InnerOuter_dumpTuple(threadData_t *threadData, modelica_metatype _tpl)
1907{
1908 modelica_string _str = NULL((void*)0);
1909 modelica_string tmp1 = 0;
1910 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1911 MMC_SO()mmc_check_stackoverflow(threadData);
1912 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1913 // _str has no default value.
1914#line 1914 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1915 { /* match expression */
1916 modelica_metatype tmp4_1;
1917 tmp4_1 = _tpl;
1918 {
1919 modelica_metatype _k = NULL((void*)0);
1920 volatile mmc_switch_type tmp4;
1921 int tmp5;
1922 // _k has no default value.
1923 tmp4 = 0;
1924 for (; tmp4 < 1; tmp4++) {
1925 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1926 case 0: {
1927 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
1928
1929 _k = tmpMeta[0];
1930 /* Pattern matching succeeded */
1931#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1932 tmpMeta[0] = stringAppend(_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),omc_ComponentReference_crefStr(threadData, _k));
1933#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1934 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)));
1935#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1936 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)));
1937#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1938 tmp1 = tmpMeta[2];
1939#line 1939 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1940 goto tmp3_done;
1941 }
1942 }
1943 goto tmp3_end;
1944 tmp3_end: ;
1945 }
1946 goto goto_2;
1947 goto_2:;
1948 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1949 goto tmp3_done;
1950 tmp3_done:;
1951 }
1952 }
1953 _str = tmp1;
1954 _return: OMC_LABEL_UNUSED__attribute__((unused))
1955 return _str;
1956}
1957
1958DLLExport
1959void omc_InnerOuter_dumpInstHierarchyHashTable(threadData_t *threadData, modelica_metatype _t)
1960{
1961 MMC_SO()mmc_check_stackoverflow(threadData);
1962 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1963#line 1804 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1964 fputs(MMC_STRINGDATA(_OMC_LIT10)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT10).header) + 3))) - 3)))->data)
,stdoutstdout);
1965#line 1965 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1966
1967#line 1805 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1968 fputs(MMC_STRINGDATA(stringDelimitList(omc_List_map(threadData, omc_InnerOuter_hashTableList(threadData, _t), boxvar_InnerOuter_dumpTuple), _OMC_LIT11))(((struct mmc_string*)((void*)((char*)(stringDelimitList(omc_List_map
(threadData, omc_InnerOuter_hashTableList(threadData, _t), ((
void*)((char*)(&(boxvar_lit_InnerOuter_dumpTuple).header)
+ 3))), ((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3
)))) - 3)))->data)
,stdoutstdout);
1969#line 1969 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1970
1971#line 1806 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1972 fputs(MMC_STRINGDATA(_OMC_LIT11)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT11).header) + 3))) - 3)))->data)
,stdoutstdout);
1973#line 1973 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1974 _return: OMC_LABEL_UNUSED__attribute__((unused))
1975 return;
1976}
1977
1978DLLExport
1979modelica_boolean omc_InnerOuter_keyEqual(threadData_t *threadData, modelica_metatype _key1, modelica_metatype _key2)
1980{
1981 modelica_boolean _res;
1982 MMC_SO()mmc_check_stackoverflow(threadData);
1983 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1984 // _res has no default value.
1985#line 1798 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
1986 _res = omc_ComponentReference_crefEqualNoStringCompare(threadData, _key1, _key2);
1987#line 1987 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
1988 _return: OMC_LABEL_UNUSED__attribute__((unused))
1989 return _res;
1990}
1991modelica_metatype boxptr_InnerOuter_keyEqual(threadData_t *threadData, modelica_metatype _key1, modelica_metatype _key2)
1992{
1993 modelica_boolean _res;
1994 modelica_metatype out_res;
1995 _res = omc_InnerOuter_keyEqual(threadData, _key1, _key2);
1996 out_res = mmc_mk_icon(_res);
1997 return out_res;
1998}
1999
2000DLLExport
2001modelica_integer omc_InnerOuter_hashFunc(threadData_t *threadData, modelica_metatype _k)
2002{
2003 modelica_integer _res;
2004 MMC_SO()mmc_check_stackoverflow(threadData);
2005 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2006 // _res has no default value.
2007#line 1790 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2008 _res = stringHashDjb2(omc_ComponentReference_printComponentRefStr(threadData, _k));
2009#line 2009 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2010 _return: OMC_LABEL_UNUSED__attribute__((unused))
2011 return _res;
2012}
2013modelica_metatype boxptr_InnerOuter_hashFunc(threadData_t *threadData, modelica_metatype _k)
2014{
2015 modelica_integer _res;
2016 modelica_metatype out_res;
2017 _res = omc_InnerOuter_hashFunc(threadData, _k);
2018 out_res = mmc_mk_icon(_res);
2019 return out_res;
2020}
2021
2022DLLExport
2023modelica_metatype omc_InnerOuter_getValue(threadData_t *threadData, modelica_metatype _tpl)
2024{
2025 modelica_metatype _v = NULL((void*)0);
2026 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2027 MMC_SO()mmc_check_stackoverflow(threadData);
2028 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2029 // _v has no default value.
2030#line 2030 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2031 { /* match expression */
2032 modelica_metatype tmp3_1;
2033 tmp3_1 = _tpl;
2034 {
2035 volatile mmc_switch_type tmp3;
2036 int tmp4;
2037 tmp3 = 0;
2038 for (; tmp3 < 1; tmp3++) {
2039 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2040 case 0: {
2041 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2042 _v = tmpMeta[1];
2043 /* Pattern matching succeeded */
2044#line 1776 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2045 tmpMeta[0] = _v;
2046#line 2046 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2047 goto tmp2_done;
2048 }
2049 }
2050 goto tmp2_end;
2051 tmp2_end: ;
2052 }
2053 goto goto_1;
2054 goto_1:;
2055 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2056 goto tmp2_done;
2057 tmp2_done:;
2058 }
2059 }
2060 _v = tmpMeta[0];
2061 _return: OMC_LABEL_UNUSED__attribute__((unused))
2062 return _v;
2063}
2064
2065DLLExport
2066modelica_metatype omc_InnerOuter_getInnersFromInstHierarchyHashTable(threadData_t *threadData, modelica_metatype _t)
2067{
2068 modelica_metatype _inners = NULL((void*)0);
2069 MMC_SO()mmc_check_stackoverflow(threadData);
2070 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2071 // _inners has no default value.
2072#line 1768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2073 _inners = omc_List_map(threadData, omc_InnerOuter_hashTableList(threadData, _t), boxvar_InnerOuter_getValue((void*)((char*)(&(boxvar_lit_InnerOuter_getValue).header
) + 3))
);
2074#line 2074 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2075 _return: OMC_LABEL_UNUSED__attribute__((unused))
2076 return _inners;
2077}
2078
2079DLLExport
2080modelica_string omc_InnerOuter_getExistingInnerDeclarations(threadData_t *threadData, modelica_metatype _inIH, modelica_metatype _inEnv)
2081{
2082 modelica_string _innerDeclarations = NULL((void*)0);
2083 modelica_string tmp1 = 0;
2084 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
2085 MMC_SO()mmc_check_stackoverflow(threadData);
2086 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2087 // _innerDeclarations has no default value.
2088#line 2088 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2089 { /* match expression */
2090 modelica_metatype tmp4_1;
2091 tmp4_1 = _inIH;
2092 {
2093 modelica_metatype _ht = NULL((void*)0);
2094 modelica_metatype _inners = NULL((void*)0);
2095 volatile mmc_switch_type tmp4;
2096 int tmp5;
2097 // _ht has no default value.
2098 // _inners has no default value.
2099 tmp4 = 0;
2100 for (; tmp4 < 2; tmp4++) {
2101 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2102 case 0: {
2103 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2104 /* Pattern matching succeeded */
2105#line 1749 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2106 tmpMeta[0] = stringAppend(_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)),omc_FGraph_printGraphPathStr(threadData, _inEnv));
2107#line 1749 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2108 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)));
2109#line 1749 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2110 tmp1 = tmpMeta[1];
2111#line 2111 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2112 goto tmp3_done;
2113 }
2114 case 1: {
2115 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2116 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
2117 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2118 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
2119
2120 _ht = tmpMeta[2];
2121 /* Pattern matching succeeded */
2122#line 1755 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2123 _inners = omc_InnerOuter_getInnersFromInstHierarchyHashTable(threadData, _ht);
2124#line 2124 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2125#line 1756 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2126 tmp1 = stringDelimitList(omc_List_map(threadData, _inners, boxvar_InnerOuter_printInnerDefStr((void*)((char*)(&(boxvar_lit_InnerOuter_printInnerDefStr
).header) + 3))
), _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)));
2127#line 2127 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2128 goto tmp3_done;
2129 }
2130 }
2131 goto tmp3_end;
2132 tmp3_end: ;
2133 }
2134 goto goto_2;
2135 goto_2:;
2136 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2137 goto tmp3_done;
2138 tmp3_done:;
2139 }
2140 }
2141 _innerDeclarations = tmp1;
2142 _return: OMC_LABEL_UNUSED__attribute__((unused))
2143 return _innerDeclarations;
2144}
2145
2146DLLExport
2147modelica_string omc_InnerOuter_printInnerDefStr(threadData_t *threadData, modelica_metatype _inInstInner)
2148{
2149 modelica_string _outStr = NULL((void*)0);
2150 modelica_string tmp1 = 0;
2151 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
2152 MMC_SO()mmc_check_stackoverflow(threadData);
2153 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2154 // _outStr has no default value.
2155#line 2155 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2156 { /* match expression */
2157 modelica_metatype tmp4_1;
2158 tmp4_1 = _inInstInner;
2159 {
2160 modelica_string _fullName = NULL((void*)0);
2161 modelica_metatype _typePath = NULL((void*)0);
2162 modelica_string _scope = NULL((void*)0);
2163 modelica_metatype _outers = NULL((void*)0);
2164 modelica_string _strOuters = NULL((void*)0);
2165 volatile mmc_switch_type tmp4;
2166 int tmp5;
2167 // _fullName has no default value.
2168 // _typePath has no default value.
2169 // _scope has no default value.
2170 // _outers has no default value.
2171 // _strOuters has no default value.
2172 tmp4 = 0;
2173 for (; tmp4 < 1; tmp4++) {
2174 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2175 case 0: {
2176 modelica_boolean tmp6;
2177 modelica_string tmp7;
2178 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
2179 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
2180 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(7)))))
;
2181 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(9)))))
;
2182
2183 _fullName = tmpMeta[0];
2184 _typePath = tmpMeta[1];
2185 _scope = tmpMeta[2];
2186 _outers = tmpMeta[3];
2187 /* Pattern matching succeeded */
2188#line 1719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2189 _outers = omc_List_uniqueOnTrue(threadData, _outers, boxvar_ComponentReference_crefEqualNoStringCompare((void*)((char*)(&(boxvar_lit_ComponentReference_crefEqualNoStringCompare
).header) + 3))
);
2190#line 2190 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2191
2192#line 1720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2193 tmp6 = (modelica_boolean)listEmpty(_outers)((*(mmc_uint_t*)((void*)((char*)(_outers) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
;
2194#line 1720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2195 if(tmp6)
2196#line 1720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2197 {
2198#line 1720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2199 tmp7 = _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3));
2200#line 1720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2201 }
2202#line 1720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2203 else
2204#line 1720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2205 {
2206#line 1720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2207 tmpMeta[0] = stringAppend(_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)),stringDelimitList(omc_List_map(threadData, _outers, boxvar_ComponentReference_printComponentRefStr((void*)((char*)(&(boxvar_lit_ComponentReference_printComponentRefStr
).header) + 3))
), _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))));
2208#line 1720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2209 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)));
2210#line 1720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2211 tmp7 = tmpMeta[1];
2212#line 1720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2213 }
2214#line 1720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2215 _strOuters = tmp7;
2216#line 2216 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2217#line 1724 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2218 tmpMeta[0] = stringAppend(omc_AbsynUtil_pathString(threadData, _typePath, _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)), 1, 0),_OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)));
2219#line 1724 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2220 tmpMeta[1] = stringAppend(tmpMeta[0],_fullName);
2221#line 1724 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2222 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)));
2223#line 1724 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2224 tmpMeta[3] = stringAppend(tmpMeta[2],_scope);
2225#line 1724 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2226 tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)));
2227#line 1724 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2228 tmpMeta[5] = stringAppend(tmpMeta[4],_strOuters);
2229#line 1724 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2230 tmp1 = tmpMeta[5];
2231#line 2231 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2232 goto tmp3_done;
2233 }
2234 }
2235 goto tmp3_end;
2236 tmp3_end: ;
2237 }
2238 goto goto_2;
2239 goto_2:;
2240 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2241 goto tmp3_done;
2242 tmp3_done:;
2243 }
2244 }
2245 _outStr = tmp1;
2246 _return: OMC_LABEL_UNUSED__attribute__((unused))
2247 return _outStr;
2248}
2249
2250PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_searchForInnerPrefix(threadData_t *threadData, modelica_metatype _fullCref, modelica_metatype _inOuterCref, modelica_metatype _outerPrefixes, modelica_metatype *out_innerCrefPrefix)
2251{
2252 modelica_metatype _outerCrefPrefix = NULL((void*)0);
2253 modelica_metatype _innerCrefPrefix = NULL((void*)0);
2254 modelica_metatype _cr = NULL((void*)0);
2255 modelica_metatype _id = NULL((void*)0);
2256 modelica_boolean _b1;
2257 modelica_boolean _b2;
2258 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
2259 MMC_SO()mmc_check_stackoverflow(threadData);
2260 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2261 // _outerCrefPrefix has no default value.
2262 // _innerCrefPrefix has no default value.
2263 // _cr has no default value.
2264 // _id has no default value.
2265 _b1 = 0;
2266 _b2 = 0;
2267#line 1681 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2268 {
2269#line 1681 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2270 modelica_metatype _op;
2271#line 1681 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2272 for (tmpMeta[0] = _outerPrefixes; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
2273#line 1681 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2274 {
2275#line 1681 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2276 _op = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2277#line 1682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2278 /* Pattern-matching assignment */
2279#line 1682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2280 tmpMeta[1] = _op;
2281#line 1682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2282 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2283#line 1682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2284 _outerCrefPrefix = tmpMeta[2];
2285#line 2285 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2286
2287#line 1683 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2288 _b1 = omc_ComponentReference_crefPrefixOfIgnoreSubscripts(threadData, _outerCrefPrefix, _fullCref);
2289#line 2289 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2290
2291#line 1684 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2292 if((!_b1))
2293#line 1684 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2294 {
2295#line 1686 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2296 _cr = omc_ComponentReference_crefStripLastIdent(threadData, _outerCrefPrefix);
2297#line 2297 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2298
2299#line 1687 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2300 _b2 = ((stringEqual(omc_ComponentReference_crefLastIdent(threadData, _outerCrefPrefix), omc_ComponentReference_crefFirstIdent(threadData, _inOuterCref))((((((*(mmc_uint_t*)((void*)((char*)(omc_ComponentReference_crefLastIdent
(threadData, _outerCrefPrefix)) - 3)))) >> (3)) - 8)) ==
(((((*(mmc_uint_t*)((void*)((char*)(omc_ComponentReference_crefFirstIdent
(threadData, _inOuterCref)) - 3)))) >> (3)) - 8)) &&
!mmc_stringCompare(omc_ComponentReference_crefLastIdent(threadData
, _outerCrefPrefix),omc_ComponentReference_crefFirstIdent(threadData
, _inOuterCref)))
) && omc_ComponentReference_crefPrefixOfIgnoreSubscripts(threadData, _cr, _fullCref));
2301#line 2301 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2302 }
2303
2304#line 1691 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2305 if((_b1 || _b2))
2306#line 1691 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2307 {
2308#line 1693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2309 /* Pattern-matching assignment */
2310#line 1693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2311 tmpMeta[1] = _op;
2312#line 1693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2313 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
2314#line 1693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2315 _innerCrefPrefix = tmpMeta[2];
2316#line 2316 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2317
2318#line 1694 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2319 goto _return;
2320#line 2320 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2321 }
2322 }
2323 }
2324
2325#line 1698 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2326 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2327#line 2327 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2328 _return: OMC_LABEL_UNUSED__attribute__((unused))
2329 if (out_innerCrefPrefix) { *out_innerCrefPrefix = _innerCrefPrefix; }
2330 return _outerCrefPrefix;
2331}
2332
2333PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_changeOuterReferenceToInnerReference(threadData_t *threadData, modelica_metatype _inFullCref, modelica_metatype _inOuterCrefPrefix, modelica_metatype _inInnerCrefPrefix)
2334{
2335 modelica_metatype _outInnerCref = NULL((void*)0);
2336 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2337 MMC_SO()mmc_check_stackoverflow(threadData);
2338 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2339 // _outInnerCref has no default value.
2340#line 2340 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2341 { /* match expression */
2342 modelica_metatype tmp3_1;modelica_metatype tmp3_2;modelica_metatype tmp3_3;
2343 tmp3_1 = _inFullCref;
2344 tmp3_2 = _inOuterCrefPrefix;
2345 tmp3_3 = _inInnerCrefPrefix;
2346 {
2347 modelica_metatype _ifull = NULL((void*)0);
2348 modelica_metatype _ocp = NULL((void*)0);
2349 modelica_metatype _icp = NULL((void*)0);
2350 modelica_metatype _eifull = NULL((void*)0);
2351 modelica_metatype _eocp = NULL((void*)0);
2352 modelica_metatype _eicp = NULL((void*)0);
2353 modelica_metatype _epre = NULL((void*)0);
2354 modelica_metatype _erest = NULL((void*)0);
2355 modelica_metatype _esuffix = NULL((void*)0);
2356 volatile mmc_switch_type tmp3;
2357 int tmp4;
2358 // _ifull has no default value.
2359 // _ocp has no default value.
2360 // _icp has no default value.
2361 // _eifull has no default value.
2362 // _eocp has no default value.
2363 // _eicp has no default value.
2364 // _epre has no default value.
2365 // _erest has no default value.
2366 // _esuffix has no default value.
2367 tmp3 = 0;
2368 for (; tmp3 < 1; tmp3++) {
2369 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2370 case 0: {
2371
2372 _ifull = tmp3_1;
2373 _ocp = tmp3_2;
2374 _icp = tmp3_3;
2375 /* Pattern matching succeeded */
2376#line 1641 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2377 _eifull = omc_ComponentReference_explode(threadData, _ifull);
2378#line 2378 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2379
2380#line 1642 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2381 _eicp = omc_ComponentReference_explode(threadData, _icp);
2382#line 2382 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2383
2384#line 1646 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2385 _eocp = omc_List_split(threadData, _eifull, omc_ComponentReference_identifierCount(threadData, _ocp) ,&_esuffix);
2386#line 2386 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2387
2388#line 1649 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2389 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2390#line 1649 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2391 _epre = omc_List_splitEqualPrefix(threadData, _eocp, _eicp, boxvar_ComponentReference_crefFirstIdentEqual((void*)((char*)(&(boxvar_lit_ComponentReference_crefFirstIdentEqual
).header) + 3))
, tmpMeta[1] ,&_erest);
2392#line 2392 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2393
2394#line 1652 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2395 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2396#line 1652 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2397 omc_List_splitEqualPrefix(threadData, _eicp, _epre, boxvar_ComponentReference_crefFirstIdentEqual((void*)((char*)(&(boxvar_lit_ComponentReference_crefFirstIdentEqual
).header) + 3))
, tmpMeta[1] ,&_eicp);
2398#line 2398 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2399
2400#line 1655 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2401 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2402#line 1655 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2403 _erest = omc_List_splitEqualPrefix(threadData, listReverse(_erest), listReverse(_eicp), boxvar_ComponentReference_crefFirstIdentEqual((void*)((char*)(&(boxvar_lit_ComponentReference_crefFirstIdentEqual
).header) + 3))
, tmpMeta[1], NULL((void*)0));
2404#line 2404 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2405
2406#line 1658 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2407 _erest = omc_List_append__reverse(threadData, _erest, _esuffix);
2408#line 2408 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2409
2410#line 1659 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2411 _eifull = listAppend(_epre, _erest);
2412#line 2412 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2413#line 1660 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2414 tmpMeta[0] = omc_ComponentReference_implode(threadData, _eifull);
2415#line 2415 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2416 goto tmp2_done;
2417 }
2418 }
2419 goto tmp2_end;
2420 tmp2_end: ;
2421 }
2422 goto goto_1;
2423 goto_1:;
2424 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2425 goto tmp2_done;
2426 tmp2_done:;
2427 }
2428 }
2429 _outInnerCref = tmpMeta[0];
2430 _return: OMC_LABEL_UNUSED__attribute__((unused))
2431 return _outInnerCref;
2432}
2433
2434DLLExport
2435modelica_metatype omc_InnerOuter_prefixOuterCrefWithTheInnerPrefix(threadData_t *threadData, modelica_metatype _inIH, modelica_metatype _inOuterComponentRef, modelica_metatype _inPrefix)
2436{
2437 modelica_metatype _outInnerComponentRef = NULL((void*)0);
2438 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
2439 MMC_SO()mmc_check_stackoverflow(threadData);
2440 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2441 // _outInnerComponentRef has no default value.
2442#line 2442 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2443 { /* match expression */
2444 modelica_metatype tmp3_1;
2445 tmp3_1 = _inIH;
2446 {
2447 modelica_metatype _outerCrefPrefix = NULL((void*)0);
2448 modelica_metatype _fullCref = NULL((void*)0);
2449 modelica_metatype _innerCrefPrefix = NULL((void*)0);
2450 modelica_metatype _outerPrefixes = NULL((void*)0);
2451 volatile mmc_switch_type tmp3;
2452 int tmp4;
2453 // _outerCrefPrefix has no default value.
2454 // _fullCref has no default value.
2455 // _innerCrefPrefix has no default value.
2456 // _outerPrefixes has no default value.
2457 tmp3 = 0;
2458 for (; tmp3 < 2; tmp3++) {
2459 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2460 case 0: {
2461 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2462 /* Pattern matching succeeded */
2463#line 1592 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2464 goto goto_1;
2465#line 2465 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2466 goto tmp2_done;
2467 }
2468 case 1: {
2469 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2470 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2471 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2472 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
2473 if (listEmpty(tmpMeta[3])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2474 tmpMeta[4] = MMC_CAR(tmpMeta[3])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (1)))))
;
2475 tmpMeta[5] = MMC_CDR(tmpMeta[3])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
2476 if (!listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2477 _outerPrefixes = tmpMeta[3];
2478 /* Pattern matching succeeded */
2479#line 1598 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2480 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2481#line 1598 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2482 omc_PrefixUtil_prefixCref(threadData, omc_FCore_emptyCache(threadData), omc_FGraph_empty(threadData), tmpMeta[1], _inPrefix, _inOuterComponentRef ,&_fullCref);
2483#line 2483 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2484
2485#line 1601 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2486 _outerCrefPrefix = omc_InnerOuter_searchForInnerPrefix(threadData, _fullCref, _inOuterComponentRef, _outerPrefixes ,&_innerCrefPrefix);
2487#line 2487 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2488#line 1603 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2489 tmpMeta[0] = omc_InnerOuter_changeOuterReferenceToInnerReference(threadData, _fullCref, _outerCrefPrefix, _innerCrefPrefix);
2490#line 2490 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2491 goto tmp2_done;
2492 }
2493 }
2494 goto tmp2_end;
2495 tmp2_end: ;
2496 }
2497 goto goto_1;
2498 goto_1:;
2499 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2500 goto tmp2_done;
2501 tmp2_done:;
2502 }
2503 }
2504 _outInnerComponentRef = tmpMeta[0];
2505 _return: OMC_LABEL_UNUSED__attribute__((unused))
2506 return _outInnerComponentRef;
2507}
2508
2509DLLExport
2510modelica_metatype omc_InnerOuter_addOuterPrefixToIH(threadData_t *threadData, modelica_metatype _inIH, modelica_metatype _inOuterComponentRef, modelica_metatype _inInnerComponentRef)
2511{
2512 modelica_metatype _outIH = NULL((void*)0);
2513 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
2514 MMC_SO()mmc_check_stackoverflow(threadData);
2515 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2516 // _outIH has no default value.
2517#line 2517 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2518 { /* matchcontinue expression */
2519 volatile modelica_metatype tmp3_1;
2520 tmp3_1 = _inIH;
2521 {
2522 modelica_metatype _tih = NULL((void*)0);
2523 modelica_metatype _restIH = NULL((void*)0);
2524 modelica_metatype _ht = NULL((void*)0);
2525 modelica_metatype _pathOpt = NULL((void*)0);
2526 modelica_metatype _outerPrefixes = NULL((void*)0);
2527 modelica_metatype _sm = NULL((void*)0);
2528 volatile mmc_switch_type tmp3;
2529 int tmp4;
2530 // _tih has no default value.
2531 // _restIH has no default value.
2532 // _ht has no default value.
2533 // _pathOpt has no default value.
2534 // _outerPrefixes has no default value.
2535 // _sm has no default value.
2536 tmp3 = 0;
2537 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) {
2538 tmp2_top:
2539 threadData->mmc_jumper = &new_mmc_jumper;
2540 for (; tmp3 < 3; tmp3++) {
2541 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2542 case 0: {
2543 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2544 tmp3 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
2545#line 1548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2546 _ht = omc_InnerOuter_emptyInstHierarchyHashTable(threadData);
2547#line 2547 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2548
2549#line 1549 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2550 _sm = omc_HashSet_emptyHashSet(threadData);
2551#line 2551 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2552
2553#line 1550 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2554 tmpMeta[2] = mmc_mk_box3(3, &InnerOuter_OuterPrefix_OUTER__desc, omc_ComponentReference_crefStripSubs(threadData, _inOuterComponentRef), _inInnerComponentRef);
2555#line 1550 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2556 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2557#line 1550 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2558 tmpMeta[3] = mmc_mk_box5(3, &InnerOuter_TopInstance_TOP__INSTANCE__desc, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), _ht, tmpMeta[1], _sm);
2559#line 1550 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2560 _tih = tmpMeta[3];
2561#line 2561 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2562#line 1551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2563 tmpMeta[1] = mmc_mk_cons(_tih, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2564#line 1551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2565 tmpMeta[0] = tmpMeta[1];
2566#line 2566 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2567 goto tmp2_done;
2568 }
2569 case 1: {
2570 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2571 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2572 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2573 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2574 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
2575 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
2576 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
2577 _pathOpt = tmpMeta[3];
2578 _ht = tmpMeta[4];
2579 _outerPrefixes = tmpMeta[5];
2580 _sm = tmpMeta[6];
2581 _restIH = tmpMeta[2];
2582 /* Pattern matching succeeded */
2583#line 1561 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2584 tmpMeta[1] = mmc_mk_box3(3, &InnerOuter_OuterPrefix_OUTER__desc, omc_ComponentReference_crefStripSubs(threadData, _inOuterComponentRef), _inInnerComponentRef);
2585#line 1561 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2586 _outerPrefixes = omc_List_unionElt(threadData, tmpMeta[1], _outerPrefixes);
2587#line 2587 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2588#line 1562 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2589 tmpMeta[2] = mmc_mk_box5(3, &InnerOuter_TopInstance_TOP__INSTANCE__desc, _pathOpt, _ht, _outerPrefixes, _sm);
2590#line 1562 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2591 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _restIH);
2592#line 1562 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2593 tmpMeta[0] = tmpMeta[1];
2594#line 2594 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2595 goto tmp2_done;
2596 }
2597 case 2: {
2598 modelica_boolean tmp5;
2599
2600 /* Pattern matching succeeded */
2601#line 1568 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2602 /* Pattern-matching assignment */
2603#line 1568 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2604 tmp5 = omc_Flags_isSet(threadData, _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)));
2605#line 1568 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2606 if (1 != tmp5) goto goto_1;
2607#line 2607 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2608
2609#line 1569 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2610 tmpMeta[1] = stringAppend(_OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)),omc_ComponentReference_printComponentRefStr(threadData, _inOuterComponentRef));
2611#line 1569 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2612 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)));
2613#line 1569 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2614 tmpMeta[3] = stringAppend(tmpMeta[2],omc_ComponentReference_printComponentRefStr(threadData, _inInnerComponentRef));
2615#line 1569 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2616 tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)));
2617#line 1569 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2618 omc_Debug_traceln(threadData, tmpMeta[4]);
2619#line 2619 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2620#line 1572 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2621 goto goto_1;
2622#line 2622 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2623 goto tmp2_done;
2624 }
2625 }
2626 goto tmp2_end;
2627 tmp2_end: ;
2628 }
2629 goto goto_1;
2630 tmp2_done:
2631 (void)tmp3;
2632 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2633 goto tmp2_done2;
2634 goto_1:;
2635 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2636 if (++tmp3 < 3) {
2637 goto tmp2_top;
2638 }
2639 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2640 tmp2_done2:;
2641 }
2642 }
2643 _outIH = tmpMeta[0];
2644 _return: OMC_LABEL_UNUSED__attribute__((unused))
2645 return _outIH;
2646}
2647
2648DLLExport
2649modelica_metatype omc_InnerOuter_addClassIfInner(threadData_t *threadData, modelica_metatype _inClass, modelica_metatype _inPrefix, modelica_metatype _inScope, modelica_metatype _inIH)
2650{
2651 modelica_metatype _outIH = NULL((void*)0);
2652 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2653 MMC_SO()mmc_check_stackoverflow(threadData);
2654 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2655 // _outIH has no default value.
2656#line 2656 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2657 { /* matchcontinue expression */
2658 volatile modelica_metatype tmp3_1;
2659 tmp3_1 = _inClass;
2660 {
2661 modelica_string _name = NULL((void*)0);
2662 modelica_string _scopeName = NULL((void*)0);
2663 modelica_metatype _io = NULL((void*)0);
2664 volatile mmc_switch_type tmp3;
2665 int tmp4;
2666 // _name has no default value.
2667 // _scopeName has no default value.
2668 // _io has no default value.
2669 tmp3 = 0;
2670 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) {
2671 tmp2_top:
2672 threadData->mmc_jumper = &new_mmc_jumper;
2673 for (; tmp3 < 2; tmp3++) {
2674 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2675 case 0: {
2676 modelica_boolean tmp5;
2677 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
2678 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2679 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2680 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (5)))))
;
2681
2682 _name = tmpMeta[1];
2683 _io = tmpMeta[3];
2684 /* Pattern matching succeeded */
2685#line 1504 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2686 /* Pattern-matching assignment */
2687#line 1504 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2688 tmp5 = omc_AbsynUtil_isInner(threadData, _io);
2689#line 1504 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2690 if (1 != tmp5) goto goto_1;
2691#line 2691 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2692
2693#line 1505 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2694 _scopeName = omc_FGraph_getGraphNameStr(threadData, _inScope);
2695#line 2695 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2696#line 1507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2697 tmpMeta[1] = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _name);
2698#line 1507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2699 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2700#line 1507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2701 tmpMeta[3] = mmc_mk_box10(3, &InnerOuter_InstInner_INST__INNER__desc, _inPrefix, _name, _io, _name, tmpMeta[1], _scopeName, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), tmpMeta[2], mmc_mk_some(_inClass));
2702#line 1507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2703 tmpMeta[0] = omc_InnerOuter_updateInstHierarchy(threadData, _inIH, _inPrefix, _io, tmpMeta[3]);
2704#line 2704 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2705 goto tmp2_done;
2706 }
2707 case 1: {
2708
2709 /* Pattern matching succeeded */
2710#line 1522 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2711 tmpMeta[0] = _inIH;
2712#line 2712 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2713 goto tmp2_done;
2714 }
2715 }
2716 goto tmp2_end;
2717 tmp2_end: ;
2718 }
2719 goto goto_1;
2720 tmp2_done:
2721 (void)tmp3;
2722 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2723 goto tmp2_done2;
2724 goto_1:;
2725 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2726 if (++tmp3 < 2) {
2727 goto tmp2_top;
2728 }
2729 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2730 tmp2_done2:;
2731 }
2732 }
2733 _outIH = tmpMeta[0];
2734 _return: OMC_LABEL_UNUSED__attribute__((unused))
2735 return _outIH;
2736}
2737
2738DLLExport
2739modelica_metatype omc_InnerOuter_updateSMHierarchy(threadData_t *threadData, modelica_metatype _smState, modelica_metatype _inIH)
2740{
2741 modelica_metatype _outIH = NULL((void*)0);
2742 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
2743 MMC_SO()mmc_check_stackoverflow(threadData);
2744 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2745 // _outIH has no default value.
2746#line 2746 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2747 { /* match expression */
2748 modelica_metatype tmp3_1;modelica_metatype tmp3_2;
2749 tmp3_1 = _smState;
2750 tmp3_2 = _inIH;
2751 {
2752 modelica_metatype _tih = NULL((void*)0);
2753 modelica_metatype _restIH = NULL((void*)0);
2754 modelica_metatype _cref = NULL((void*)0);
2755 modelica_string _name = NULL((void*)0);
2756 modelica_metatype _ht = NULL((void*)0);
2757 modelica_metatype _pathOpt = NULL((void*)0);
2758 modelica_metatype _outerPrefixes = NULL((void*)0);
2759 modelica_metatype _sm = NULL((void*)0);
2760 modelica_metatype _sm2 = NULL((void*)0);
2761 volatile mmc_switch_type tmp3;
2762 int tmp4;
2763 // _tih has no default value.
2764 // _restIH has no default value.
2765 // _cref has no default value.
2766 // _name has no default value.
2767 // _ht has no default value.
2768 // _pathOpt has no default value.
2769 // _outerPrefixes has no default value.
2770 // _sm has no default value.
2771 // _sm2 has no default value.
2772 tmp3 = 0;
2773 for (; tmp3 < 3; tmp3++) {
2774 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2775 case 0: {
2776 if (!listEmpty(tmp3_2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2777
2778 /* Pattern matching succeeded */
2779#line 1459 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2780 _ht = omc_InnerOuter_emptyInstHierarchyHashTable(threadData);
2781#line 2781 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2782
2783#line 1460 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2784 _sm = omc_HashSet_emptyHashSet(threadData);
2785#line 2785 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2786
2787#line 1462 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2788 _sm2 = omc_BaseHashSet_add(threadData, _smState, _sm);
2789#line 2789 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2790
2791#line 1464 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2792 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2793#line 1464 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2794 tmpMeta[2] = mmc_mk_box5(3, &InnerOuter_TopInstance_TOP__INSTANCE__desc, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), _ht, tmpMeta[1], _sm2);
2795#line 1464 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2796 _tih = tmpMeta[2];
2797#line 2797 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2798#line 1466 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2799 tmpMeta[1] = mmc_mk_cons(_tih, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2800#line 1466 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2801 tmpMeta[0] = tmpMeta[1];
2802#line 2802 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2803 goto tmp2_done;
2804 }
2805 case 1: {
2806 if (listEmpty(tmp3_2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2807 tmpMeta[1] = MMC_CAR(tmp3_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
2808 tmpMeta[2] = MMC_CDR(tmp3_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
2809 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2810 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
2811 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
2812 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
2813
2814 _pathOpt = tmpMeta[3];
2815 _ht = tmpMeta[4];
2816 _outerPrefixes = tmpMeta[5];
2817 _sm = tmpMeta[6];
2818 _restIH = tmpMeta[2];
2819 _cref = tmp3_1;
2820 /* Pattern matching succeeded */
2821#line 1474 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2822 _sm = omc_BaseHashSet_add(threadData, _cref, _sm);
2823#line 2823 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2824#line 1475 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2825 tmpMeta[2] = mmc_mk_box5(3, &InnerOuter_TopInstance_TOP__INSTANCE__desc, _pathOpt, _ht, _outerPrefixes, _sm);
2826#line 1475 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2827 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _restIH);
2828#line 1475 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2829 tmpMeta[0] = tmpMeta[1];
2830#line 2830 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2831 goto tmp2_done;
2832 }
2833 case 2: {
2834 modelica_boolean tmp5;
2835 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((3 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
2836 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2837
2838 _name = tmpMeta[1];
2839 /* Pattern matching succeeded */
2840#line 1481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2841 /* Pattern-matching assignment */
2842#line 1481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2843 tmp5 = omc_Flags_isSet(threadData, _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)));
2844#line 1481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2845 if (1 != tmp5) goto goto_1;
2846#line 2846 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2847
2848#line 1482 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2849 tmpMeta[1] = stringAppend(_OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)),_name);
2850#line 1482 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2851 omc_Debug_traceln(threadData, tmpMeta[1]);
2852#line 2852 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2853#line 1483 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2854 goto goto_1;
2855#line 2855 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2856 goto tmp2_done;
2857 }
2858 }
2859 goto tmp2_end;
2860 tmp2_end: ;
2861 }
2862 goto goto_1;
2863 goto_1:;
2864 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2865 goto tmp2_done;
2866 tmp2_done:;
2867 }
2868 }
2869 _outIH = tmpMeta[0];
2870 _return: OMC_LABEL_UNUSED__attribute__((unused))
2871 return _outIH;
2872}
2873
2874DLLExport
2875modelica_metatype omc_InnerOuter_updateInstHierarchy(threadData_t *threadData, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inInnerOuter, modelica_metatype _inInstInner)
2876{
2877 modelica_metatype _outIH = NULL((void*)0);
2878 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
2879 MMC_SO()mmc_check_stackoverflow(threadData);
2880 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2881 // _outIH has no default value.
2882#line 2882 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2883 { /* match expression */
2884 modelica_metatype tmp3_1;modelica_metatype tmp3_2;
2885 tmp3_1 = _inIH;
2886 tmp3_2 = _inInstInner;
2887 {
2888 modelica_metatype _tih = NULL((void*)0);
2889 modelica_metatype _restIH = NULL((void*)0);
2890 modelica_metatype _cref = NULL((void*)0);
2891 modelica_string _name = NULL((void*)0);
2892 modelica_metatype _ht = NULL((void*)0);
2893 modelica_metatype _pathOpt = NULL((void*)0);
2894 modelica_metatype _outerPrefixes = NULL((void*)0);
2895 modelica_metatype _cref_ = NULL((void*)0);
2896 modelica_metatype _sm = NULL((void*)0);
2897 volatile mmc_switch_type tmp3;
2898 int tmp4;
2899 // _tih has no default value.
2900 // _restIH has no default value.
2901 // _cref has no default value.
2902 // _name has no default value.
2903 // _ht has no default value.
2904 // _pathOpt has no default value.
2905 // _outerPrefixes has no default value.
2906 // _cref_ has no default value.
2907 // _sm has no default value.
2908 tmp3 = 0;
2909 for (; tmp3 < 2; tmp3++) {
2910 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2911 case 0: {
2912 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2913
2914 /* Pattern matching succeeded */
2915#line 1405 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2916 _ht = omc_InnerOuter_emptyInstHierarchyHashTable(threadData);
2917#line 2917 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2918
2919#line 1406 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2920 _sm = omc_HashSet_emptyHashSet(threadData);
2921#line 2921 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2922
2923#line 1407 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2924 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2925#line 1407 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2926 tmpMeta[2] = mmc_mk_box5(3, &InnerOuter_TopInstance_TOP__INSTANCE__desc, mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), _ht, tmpMeta[1], _sm);
2927#line 1407 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2928 _tih = tmpMeta[2];
2929#line 2929 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2930#line 1408 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2931 tmpMeta[1] = mmc_mk_cons(_tih, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2932#line 1408 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2933 /* Tail recursive call */
2934#line 1408 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2935 _inIH = tmpMeta[1];
2936#line 1408 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2937 goto _tailrecursive;
2938#line 1408 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2939 /* TODO: Make sure any eventual dead code below is never generated */
2940#line 2940 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2941 goto tmp2_done;
2942 }
2943 case 1: {
2944 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2945 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2946 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2947 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2948 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
2949 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
2950 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
2951 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
2952
2953 _pathOpt = tmpMeta[3];
2954 _ht = tmpMeta[4];
2955 _outerPrefixes = tmpMeta[5];
2956 _sm = tmpMeta[6];
2957 _restIH = tmpMeta[2];
2958 _name = tmpMeta[7];
2959 /* Pattern matching succeeded */
2960#line 1417 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2961 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2962#line 1417 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2963 _cref_ = omc_ComponentReference_makeCrefIdent(threadData, _name, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)), tmpMeta[1]);
2964#line 2964 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2965
2966#line 1418 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2967 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2968#line 1418 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2969 omc_PrefixUtil_prefixCref(threadData, omc_FCore_emptyCache(threadData), omc_FGraph_empty(threadData), tmpMeta[1], _inPrefix, _cref_ ,&_cref);
2970#line 2970 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2971
2972#line 1421 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2973 tmpMeta[1] = mmc_mk_box2(0, _cref, _inInstInner);
2974#line 1421 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2975 _ht = omc_InnerOuter_add(threadData, tmpMeta[1], _ht);
2976#line 2976 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2977#line 1422 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2978 tmpMeta[2] = mmc_mk_box5(3, &InnerOuter_TopInstance_TOP__INSTANCE__desc, _pathOpt, _ht, _outerPrefixes, _sm);
2979#line 1422 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2980 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _restIH);
2981#line 1422 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
2982 tmpMeta[0] = tmpMeta[1];
2983#line 2983 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
2984 goto tmp2_done;
2985 }
2986 }
2987 goto tmp2_end;
2988 tmp2_end: ;
2989 }
2990 goto goto_1;
2991 goto_1:;
2992 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2993 goto tmp2_done;
2994 tmp2_done:;
2995 }
2996 }
2997 _outIH = tmpMeta[0];
2998 _return: OMC_LABEL_UNUSED__attribute__((unused))
2999 return _outIH;
3000}
3001
3002DLLExport
3003modelica_metatype omc_InnerOuter_lookupInnerVar(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_string _inIdent, modelica_metatype _io)
3004{
3005 modelica_metatype _outInstInner = NULL((void*)0);
3006 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3007 MMC_SO()mmc_check_stackoverflow(threadData);
3008 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3009 // _outInstInner has no default value.
3010#line 3010 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3011 { /* matchcontinue expression */
3012 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;volatile modelica_string tmp3_3;
3013 tmp3_1 = _inIH;
3014 tmp3_2 = _inPrefix;
3015 tmp3_3 = _inIdent;
3016 {
3017 modelica_string _n = NULL((void*)0);
3018 modelica_metatype _pre = NULL((void*)0);
3019 modelica_metatype _tih = NULL((void*)0);
3020 volatile mmc_switch_type tmp3;
3021 int tmp4;
3022 // _n has no default value.
3023 // _pre has no default value.
3024 // _tih has no default value.
3025 tmp3 = 0;
3026 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) {
3027 tmp2_top:
3028 threadData->mmc_jumper = &new_mmc_jumper;
3029 for (; tmp3 < 2; tmp3++) {
3030 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3031 case 0: {
3032 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3033 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3034 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3035
3036 _tih = tmpMeta[1];
3037 _pre = tmp3_2;
3038 _n = tmp3_3;
3039 /* Pattern matching succeeded */
3040#line 1354 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3041 tmpMeta[0] = omc_InnerOuter_lookupInnerInIH(threadData, _tih, _pre, _n);
3042#line 3042 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3043 goto tmp2_done;
3044 }
3045 case 1: {
3046 modelica_boolean tmp5;
3047
3048 _pre = tmp3_2;
3049 _n = tmp3_3;
3050 /* Pattern matching succeeded */
3051#line 1361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3052 /* Pattern-matching assignment */
3053#line 1361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3054 tmp5 = omc_Flags_isSet(threadData, _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)));
3055#line 1361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3056 if (1 != tmp5) goto goto_1;
3057#line 3057 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3058
3059#line 1362 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3060 tmpMeta[1] = stringAppend(_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)),omc_PrefixUtil_printPrefixStr(threadData, _pre));
3061#line 1362 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3062 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
3063#line 1362 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3064 tmpMeta[3] = stringAppend(tmpMeta[2],_n);
3065#line 1362 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3066 omc_Debug_traceln(threadData, tmpMeta[3]);
3067#line 3067 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3068#line 1363 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3069 goto goto_1;
3070#line 3070 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3071 goto tmp2_done;
3072 }
3073 }
3074 goto tmp2_end;
3075 tmp2_end: ;
3076 }
3077 goto goto_1;
3078 tmp2_done:
3079 (void)tmp3;
3080 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3081 goto tmp2_done2;
3082 goto_1:;
3083 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3084 if (++tmp3 < 2) {
3085 goto tmp2_top;
3086 }
3087 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3088 tmp2_done2:;
3089 }
3090 }
3091 _outInstInner = tmpMeta[0];
3092 _return: OMC_LABEL_UNUSED__attribute__((unused))
3093 return _outInstInner;
3094}
3095
3096DLLExport
3097modelica_metatype omc_InnerOuter_emptyInstInner(threadData_t *threadData, modelica_metatype _innerPrefix, modelica_string _name)
3098{
3099 modelica_metatype _outInstInner = NULL((void*)0);
3100 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3101 MMC_SO()mmc_check_stackoverflow(threadData);
3102 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3103 // _outInstInner has no default value.
3104#line 1321 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3105 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3106#line 1321 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3107 tmpMeta[1] = mmc_mk_box10(3, &InnerOuter_InstInner_INST__INNER__desc, _innerPrefix, _name, _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)), _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)), _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)), _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), tmpMeta[0], mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
3108#line 1321 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3109 _outInstInner = tmpMeta[1];
3110#line 3110 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3111 _return: OMC_LABEL_UNUSED__attribute__((unused))
3112 return _outInstInner;
3113}
3114
3115PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_switchInnerToOuterInChildrenValue(threadData_t *threadData, modelica_metatype _inNode, modelica_metatype _inCr)
3116{
3117 modelica_metatype _outNode = NULL((void*)0);
3118 modelica_metatype tmpMeta[9] __attribute__((unused)) = {0};
3119 MMC_SO()mmc_check_stackoverflow(threadData);
3120 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3121 // _outNode has no default value.
3122#line 3122 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3123 { /* matchcontinue expression */
3124 volatile modelica_metatype tmp3_1;
3125 tmp3_1 = _inNode;
3126 {
3127 modelica_metatype _r = NULL((void*)0);
3128 modelica_metatype _node = NULL((void*)0);
3129 modelica_string _name = NULL((void*)0);
3130 modelica_metatype _attributes = NULL((void*)0);
3131 modelica_metatype _visibility = NULL((void*)0);
3132 modelica_metatype _ty = NULL((void*)0);
3133 modelica_metatype _binding = NULL((void*)0);
3134 modelica_boolean _bndsrc;
3135 modelica_metatype _ct = NULL((void*)0);
3136 modelica_metatype _parallelism = NULL((void*)0);
3137 modelica_metatype _variability = NULL((void*)0);
3138 modelica_metatype _direction = NULL((void*)0);
3139 modelica_metatype _cnstForRange = NULL((void*)0);
3140 volatile mmc_switch_type tmp3;
3141 int tmp4;
3142 // _r has no default value.
3143 // _node has no default value.
3144 // _name has no default value.
3145 // _attributes has no default value.
3146 // _visibility has no default value.
3147 // _ty has no default value.
3148 // _binding has no default value.
3149 // _bndsrc has no default value.
3150 // _ct has no default value.
3151 // _parallelism has no default value.
3152 // _variability has no default value.
3153 // _direction has no default value.
3154 // _cnstForRange has no default value.
3155 tmp3 = 0;
3156 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) {
3157 tmp2_top:
3158 threadData->mmc_jumper = &new_mmc_jumper;
3159 for (; tmp3 < 3; tmp3++) {
3160 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3161 case 0: {
3162 modelica_integer tmp5;
3163
3164 _node = tmp3_1;
3165 /* Pattern matching succeeded */
3166#line 1278 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3167 _r = omc_FNode_childFromNode(threadData, _node, _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)));
3168#line 3168 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3169
3170#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3171 /* Pattern-matching assignment */
3172#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3173 tmpMeta[1] = omc_FNode_refData(threadData, _r);
3174#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3175 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 goto_1;
3176#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3177 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3178#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3179 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
3180#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3181 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
3182#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3183 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (4)))))
;
3184#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3185 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (5)))))
;
3186#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3187 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (6)))))
;
3188#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3189 tmp5 = mmc_unbox_integer(tmpMeta[7])(((mmc_sint_t) (tmpMeta[7])) >> 1);
3190#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3191 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (7)))))
;
3192#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3193 _name = tmpMeta[3];
3194#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3195 _attributes = tmpMeta[4];
3196#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3197 _ty = tmpMeta[5];
3198#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3199 _binding = tmpMeta[6];
3200#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3201 _bndsrc = tmp5 /* pattern as ty=Boolean */;
3202#line 1279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3203 _cnstForRange = tmpMeta[8];
3204#line 3204 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3205
3206#line 1280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3207 /* Pattern-matching assignment */
3208#line 1280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3209 tmpMeta[1] = _attributes;
3210#line 1280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3211 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3212#line 1280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3213 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
3214#line 1280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3215 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
3216#line 1280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3217 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
3218#line 1280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3219 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
3220#line 1280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3221 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[6],0,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3)))==(((0 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) goto goto_1;
3222#line 1280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3223 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (7)))))
;
3224#line 1280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3225 _ct = tmpMeta[2];
3226#line 1280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3227 _parallelism = tmpMeta[3];
3228#line 1280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3229 _variability = tmpMeta[4];
3230#line 1280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3231 _direction = tmpMeta[5];
3232#line 1280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3233 _visibility = tmpMeta[7];
3234#line 3234 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3235
3236#line 1281 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3237 tmpMeta[1] = mmc_mk_box7(3, &DAE_Attributes_ATTR__desc, _ct, _parallelism, _variability, _direction, _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)), _visibility);
3238#line 1281 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3239 _attributes = tmpMeta[1];
3240#line 3240 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3241
3242#line 1283 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3243 tmpMeta[1] = mmc_mk_box7(3, &DAE_Var_TYPES__VAR__desc, _name, _attributes, _ty, _binding, mmc_mk_boolean(_bndsrc)((_bndsrc) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), _cnstForRange);
3244#line 1283 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3245 tmpMeta[2] = mmc_mk_box2(4, &FCore_Data_IT__desc, tmpMeta[1]);
3246#line 1283 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3247 _r = omc_FNode_updateRef(threadData, _r, omc_FNode_setData(threadData, omc_FNode_fromRef(threadData, _r), tmpMeta[2]));
3248#line 3248 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3249#line 1285 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3250 tmpMeta[0] = _node;
3251#line 3251 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3252 goto tmp2_done;
3253 }
3254 case 1: {
3255 modelica_integer tmp6;
3256
3257 _node = tmp3_1;
3258 /* Pattern matching succeeded */
3259#line 1292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3260 _r = omc_FNode_childFromNode(threadData, _node, _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)));
3261#line 3261 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3262
3263#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3264 /* Pattern-matching assignment */
3265#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3266 tmpMeta[1] = omc_FNode_refData(threadData, _r);
3267#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3268 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 goto_1;
3269#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3270 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3271#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3272 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
3273#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3274 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
3275#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3276 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (4)))))
;
3277#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3278 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (5)))))
;
3279#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3280 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (6)))))
;
3281#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3282 tmp6 = mmc_unbox_integer(tmpMeta[7])(((mmc_sint_t) (tmpMeta[7])) >> 1);
3283#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3284 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (7)))))
;
3285#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3286 _name = tmpMeta[3];
3287#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3288 _attributes = tmpMeta[4];
3289#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3290 _ty = tmpMeta[5];
3291#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3292 _binding = tmpMeta[6];
3293#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3294 _bndsrc = tmp6 /* pattern as ty=Boolean */;
3295#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3296 _cnstForRange = tmpMeta[8];
3297#line 3297 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3298
3299#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3300 /* Pattern-matching assignment */
3301#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3302 tmpMeta[1] = _attributes;
3303#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3304 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3305#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3306 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
3307#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3308 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
3309#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3310 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
3311#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3312 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
3313#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3314 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[6],2,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3)))==(((0 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto goto_1;
3315#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3316 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (7)))))
;
3317#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3318 _ct = tmpMeta[2];
3319#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3320 _parallelism = tmpMeta[3];
3321#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3322 _variability = tmpMeta[4];
3323#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3324 _direction = tmpMeta[5];
3325#line 1294 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3326 _visibility = tmpMeta[7];
3327#line 3327 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3328
3329#line 1295 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3330 tmpMeta[1] = mmc_mk_box7(3, &DAE_Attributes_ATTR__desc, _ct, _parallelism, _variability, _direction, _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)), _visibility);
3331#line 1295 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3332 _attributes = tmpMeta[1];
3333#line 3333 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3334
3335#line 1297 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3336 tmpMeta[1] = mmc_mk_box7(3, &DAE_Var_TYPES__VAR__desc, _name, _attributes, _ty, _binding, mmc_mk_boolean(_bndsrc)((_bndsrc) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), _cnstForRange);
3337#line 1297 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3338 tmpMeta[2] = mmc_mk_box2(4, &FCore_Data_IT__desc, tmpMeta[1]);
3339#line 1297 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3340 _r = omc_FNode_updateRef(threadData, _r, omc_FNode_setData(threadData, omc_FNode_fromRef(threadData, _r), tmpMeta[2]));
3341#line 3341 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3342#line 1299 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3343 tmpMeta[0] = _node;
3344#line 3344 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3345 goto tmp2_done;
3346 }
3347 case 2: {
3348
3349 /* Pattern matching succeeded */
3350#line 1303 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3351 tmpMeta[0] = _inNode;
3352#line 3352 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3353 goto tmp2_done;
3354 }
3355 }
3356 goto tmp2_end;
3357 tmp2_end: ;
3358 }
3359 goto goto_1;
3360 tmp2_done:
3361 (void)tmp3;
3362 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3363 goto tmp2_done2;
3364 goto_1:;
3365 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3366 if (++tmp3 < 3) {
3367 goto tmp2_top;
3368 }
3369 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3370 tmp2_done2:;
3371 }
3372 }
3373 _outNode = tmpMeta[0];
3374 _return: OMC_LABEL_UNUSED__attribute__((unused))
3375 return _outNode;
3376}
3377
3378PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_switchInnerToOuterInChild(threadData_t *threadData, modelica_string _name, modelica_metatype _cr, modelica_metatype _inRef)
3379{
3380 modelica_metatype _ref = NULL((void*)0);
3381 modelica_metatype _n = NULL((void*)0);
3382 MMC_SO()mmc_check_stackoverflow(threadData);
3383 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3384 // _ref has no default value.
3385 // _n has no default value.
3386#line 1243 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3387 _n = omc_FNode_fromRef(threadData, _inRef);
3388#line 3388 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3389
3390#line 1244 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3391 _n = omc_InnerOuter_switchInnerToOuterInChildrenValue(threadData, _n, _cr);
3392#line 3392 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3393
3394#line 1245 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3395 _ref = omc_FNode_updateRef(threadData, _inRef, _n);
3396#line 3396 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3397 _return: OMC_LABEL_UNUSED__attribute__((unused))
3398 return _ref;
3399}
3400
3401static modelica_metatype closure0_InnerOuter_switchInnerToOuterInChild(threadData_t *thData, modelica_metatype closure, modelica_string name, modelica_metatype inRef)
3402{
3403 modelica_metatype cr = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
3404 return boxptr_InnerOuter_switchInnerToOuterInChildomc_InnerOuter_switchInnerToOuterInChild(thData, name, cr, inRef);
3405}
3406PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_switchInnerToOuterInNode(threadData_t *threadData, modelica_metatype _inNode, modelica_metatype _inCr)
3407{
3408 modelica_metatype _outNode = NULL((void*)0);
3409 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3410 MMC_SO()mmc_check_stackoverflow(threadData);
3411 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3412 _outNode = _inNode;
3413#line 3413 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3414 { /* match expression */
3415 modelica_metatype tmp3_1;
3416 tmp3_1 = _outNode;
3417 {
3418 volatile mmc_switch_type tmp3;
3419 int tmp4;
3420 tmp3 = 0;
3421 for (; tmp3 < 2; tmp3++) {
3422 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3423 case 0: {
3424
3425 /* Pattern matching succeeded */
3426#line 1226 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3427 tmpMeta[1] = mmc_mk_box1(0, _inCr);
3428#line 1226 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3429 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
3430#line 1226 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3431 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_outNode)((void*)((char*)(_outNode) - 3)), 7*sizeof(modelica_metatype));
3432#line 1226 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3433 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[5] = omc_FCore_RefTree_map(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outNode), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_outNode) - 3))
) + (5)))))
), (modelica_fnptr) mmc_mk_box2(0,closure0_InnerOuter_switchInnerToOuterInChild,tmpMeta[1]));
3434#line 1226 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3435 _outNode = tmpMeta[0];
3436#line 3436 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3437#line 3437 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3438 goto tmp2_done;
3439 }
3440 case 1: {
3441
3442 /* Pattern matching succeeded */
3443#line 3443 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3444 goto tmp2_done;
3445 }
3446 }
3447 goto tmp2_end;
3448 tmp2_end: ;
3449 }
3450 goto goto_1;
3451 goto_1:;
3452 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3453 goto tmp2_done;
3454 tmp2_done:;
3455 }
3456 }
3457 ;
3458 _return: OMC_LABEL_UNUSED__attribute__((unused))
3459 return _outNode;
3460}
3461
3462DLLExport
3463modelica_metatype omc_InnerOuter_switchInnerToOuterInGraph(threadData_t *threadData, modelica_metatype _inEnv, modelica_metatype _inCr)
3464{
3465 modelica_metatype _outEnv = NULL((void*)0);
3466 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3467 MMC_SO()mmc_check_stackoverflow(threadData);
3468 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3469 // _outEnv has no default value.
3470#line 3470 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3471 { /* match expression */
3472 modelica_metatype tmp3_1;modelica_metatype tmp3_2;
3473 tmp3_1 = _inEnv;
3474 tmp3_2 = _inCr;
3475 {
3476 modelica_metatype _cr = NULL((void*)0);
3477 modelica_metatype _r = NULL((void*)0);
3478 modelica_metatype _n = NULL((void*)0);
3479 volatile mmc_switch_type tmp3;
3480 int tmp4;
3481 // _cr has no default value.
3482 // _r has no default value.
3483 // _n has no default value.
3484 tmp3 = 0;
3485 for (; tmp3 < 3; tmp3++) {
3486 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3487 case 0: {
3488 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
3489
3490 /* Pattern matching succeeded */
3491#line 1202 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3492 tmpMeta[0] = _inEnv;
3493#line 3493 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3494 goto tmp2_done;
3495 }
3496 case 1: {
3497 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3498 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3499 if (!listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3500
3501 /* Pattern matching succeeded */
3502#line 1203 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3503 tmpMeta[0] = _inEnv;
3504#line 3504 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3505 goto tmp2_done;
3506 }
3507 case 2: {
3508
3509 _cr = tmp3_2;
3510 /* Pattern matching succeeded */
3511#line 1207 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3512 _r = omc_FGraph_lastScopeRef(threadData, _inEnv);
3513#line 3513 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3514
3515#line 1208 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3516 _n = omc_FNode_fromRef(threadData, _r);
3517#line 3517 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3518
3519#line 1209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3520 _n = omc_InnerOuter_switchInnerToOuterInNode(threadData, _n, _cr);
3521#line 3521 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3522
3523#line 1210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3524 _r = omc_FNode_updateRef(threadData, _r, _n);
3525#line 3525 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3526#line 1211 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3527 tmpMeta[0] = _inEnv;
3528#line 3528 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3529 goto tmp2_done;
3530 }
3531 }
3532 goto tmp2_end;
3533 tmp2_end: ;
3534 }
3535 goto goto_1;
3536 goto_1:;
3537 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3538 goto tmp2_done;
3539 tmp2_done:;
3540 }
3541 }
3542 _outEnv = tmpMeta[0];
3543 _return: OMC_LABEL_UNUSED__attribute__((unused))
3544 return _outEnv;
3545}
3546
3547DLLExport
3548modelica_metatype omc_InnerOuter_prefixOuterDaeVars(threadData_t *threadData, modelica_metatype _inDae, modelica_metatype _crefPrefix)
3549{
3550 modelica_metatype _outDae = NULL((void*)0);
3551 modelica_metatype tmpMeta[16] __attribute__((unused)) = {0};
3552 MMC_SO()mmc_check_stackoverflow(threadData);
3553 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3554 // _outDae has no default value.
3555#line 3555 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3556 { /* matchcontinue expression */
3557 volatile modelica_metatype tmp3_1;
3558 tmp3_1 = _inDae;
3559 {
3560 modelica_metatype _lst = NULL((void*)0);
3561 modelica_metatype _r_1 = NULL((void*)0);
3562 modelica_metatype _r = NULL((void*)0);
3563 modelica_metatype _lst_1 = NULL((void*)0);
3564 modelica_metatype _cr = NULL((void*)0);
3565 modelica_metatype _vk = NULL((void*)0);
3566 modelica_metatype _t = NULL((void*)0);
3567 modelica_metatype _e = NULL((void*)0);
3568 modelica_metatype _id = NULL((void*)0);
3569 modelica_metatype _ct = NULL((void*)0);
3570 modelica_metatype _dae_var_attr = NULL((void*)0);
3571 modelica_metatype _comment = NULL((void*)0);
3572 modelica_metatype _dir = NULL((void*)0);
3573 modelica_metatype _prl = NULL((void*)0);
3574 modelica_metatype _x = NULL((void*)0);
3575 modelica_metatype _io = NULL((void*)0);
3576 modelica_metatype _prot = NULL((void*)0);
3577 modelica_string _idName = NULL((void*)0);
3578 modelica_metatype _source = NULL((void*)0);
3579 volatile mmc_switch_type tmp3;
3580 int tmp4;
3581 // _lst has no default value.
3582 // _r_1 has no default value.
3583 // _r has no default value.
3584 // _lst_1 has no default value.
3585 // _cr has no default value.
3586 // _vk has no default value.
3587 // _t has no default value.
3588 // _e has no default value.
3589 // _id has no default value.
3590 // _ct has no default value.
3591 // _dae_var_attr has no default value.
3592 // _comment has no default value.
3593 // _dir has no default value.
3594 // _prl has no default value.
3595 // _x has no default value.
3596 // _io has no default value.
3597 // _prot has no default value.
3598 // _idName has no default value.
3599 // _source has no default value.
3600 tmp3 = 0;
3601 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) {
3602 tmp2_top:
3603 threadData->mmc_jumper = &new_mmc_jumper;
3604 for (; tmp3 < 4; tmp3++) {
3605 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3606 case 0: {
3607 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3608 tmp3 += 3; /* Pattern matching succeeded; we may skip some cases if we fail */
3609#line 1150 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3610 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3611#line 1150 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3612 tmpMeta[0] = tmpMeta[1];
3613#line 3613 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3614 goto tmp2_done;
3615 }
3616 case 1: {
3617 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3618 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3619 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3620 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,13)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((13 +1
) << 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3621 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3622 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
3623 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
3624 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
3625 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
3626 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (7)))))
;
3627 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (8)))))
;
3628 tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (9)))))
;
3629 tmpMeta[11] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 10))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (10)))))
;
3630 tmpMeta[12] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 11))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (11)))))
;
3631 tmpMeta[13] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 12))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (12)))))
;
3632 tmpMeta[14] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 13))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (13)))))
;
3633 tmpMeta[15] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 14))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (14)))))
;
3634 _cr = tmpMeta[3];
3635 _vk = tmpMeta[4];
3636 _dir = tmpMeta[5];
3637 _prl = tmpMeta[6];
3638 _prot = tmpMeta[7];
3639 _t = tmpMeta[8];
3640 _e = tmpMeta[9];
3641 _id = tmpMeta[10];
3642 _ct = tmpMeta[11];
3643 _source = tmpMeta[12];
3644 _dae_var_attr = tmpMeta[13];
3645 _comment = tmpMeta[14];
3646 _io = tmpMeta[15];
3647 _r = tmpMeta[2];
3648 tmp3 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
3649#line 1167 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3650 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3651#line 1167 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3652 omc_PrefixUtil_prefixCref(threadData, omc_FCore_emptyCache(threadData), omc_FGraph_empty(threadData), tmpMeta[1], _crefPrefix, _cr ,&_cr);
3653#line 3653 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3654
3655#line 1168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3656 _r_1 = omc_InnerOuter_prefixOuterDaeVars(threadData, _r, _crefPrefix);
3657#line 3657 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3658#line 1169 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3659 tmpMeta[2] = mmc_mk_box14(3, &DAE_Element_VAR__desc, _cr, _vk, _dir, _prl, _prot, _t, _e, _id, _ct, _source, _dae_var_attr, _comment, _io);
3660#line 1169 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3661 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _r_1);
3662#line 1169 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3663 tmpMeta[0] = tmpMeta[1];
3664#line 3664 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3665 goto tmp2_done;
3666 }
3667 case 2: {
3668 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3669 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3670 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3671 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],17,4)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((4 +1)
<< 10) + (((17 +3) & 255) << 2)))
== 0) goto tmp2_end;
3672 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3673 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
3674 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
3675 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
3676 _idName = tmpMeta[3];
3677 _lst = tmpMeta[4];
3678 _source = tmpMeta[5];
3679 _comment = tmpMeta[6];
3680 _r = tmpMeta[2];
3681 /* Pattern matching succeeded */
3682#line 1175 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3683 _lst_1 = omc_InnerOuter_prefixOuterDaeVars(threadData, _lst, _crefPrefix);
3684#line 3684 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3685
3686#line 1176 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3687 _r_1 = omc_InnerOuter_prefixOuterDaeVars(threadData, _r, _crefPrefix);
3688#line 3688 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3689#line 1177 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3690 tmpMeta[2] = mmc_mk_box5(20, &DAE_Element_COMP__desc, _idName, _lst_1, _source, _comment);
3691#line 1177 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3692 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _r_1);
3693#line 1177 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3694 tmpMeta[0] = tmpMeta[1];
3695#line 3695 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3696 goto tmp2_done;
3697 }
3698 case 3: {
3699 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3700 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3701 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3702 _x = tmpMeta[1];
3703 _r = tmpMeta[2];
3704 /* Pattern matching succeeded */
3705#line 1182 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3706 _r_1 = omc_InnerOuter_prefixOuterDaeVars(threadData, _r, _crefPrefix);
3707#line 3707 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3708#line 1183 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3709 tmpMeta[1] = mmc_mk_cons(_x, _r_1);
3710#line 1183 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3711 tmpMeta[0] = tmpMeta[1];
3712#line 3712 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3713 goto tmp2_done;
3714 }
3715 }
3716 goto tmp2_end;
3717 tmp2_end: ;
3718 }
3719 goto goto_1;
3720 tmp2_done:
3721 (void)tmp3;
3722 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3723 goto tmp2_done2;
3724 goto_1:;
3725 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3726 if (++tmp3 < 4) {
3727 goto tmp2_top;
3728 }
3729 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3730 tmp2_done2:;
3731 }
3732 }
3733 _outDae = tmpMeta[0];
3734 _return: OMC_LABEL_UNUSED__attribute__((unused))
3735 return _outDae;
3736}
3737
3738DLLExport
3739modelica_metatype omc_InnerOuter_switchInnerToOuterAndPrefix(threadData_t *threadData, modelica_metatype _inDae, modelica_metatype _io, modelica_metatype _pre)
3740{
3741 modelica_metatype _outDae = NULL((void*)0);
3742 modelica_metatype tmpMeta[16] __attribute__((unused)) = {0};
3743 MMC_SO()mmc_check_stackoverflow(threadData);
3744 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3745 // _outDae has no default value.
3746#line 3746 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3747 { /* matchcontinue expression */
3748 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
3749 tmp3_1 = _inDae;
3750 tmp3_2 = _io;
3751 {
3752 modelica_metatype _lst = NULL((void*)0);
3753 modelica_metatype _r_1 = NULL((void*)0);
3754 modelica_metatype _r = NULL((void*)0);
3755 modelica_metatype _lst_1 = NULL((void*)0);
3756 modelica_metatype _v = NULL((void*)0);
3757 modelica_metatype _cr = NULL((void*)0);
3758 modelica_metatype _vk = NULL((void*)0);
3759 modelica_metatype _t = NULL((void*)0);
3760 modelica_metatype _e = NULL((void*)0);
3761 modelica_metatype _id = NULL((void*)0);
3762 modelica_metatype _ct = NULL((void*)0);
3763 modelica_metatype _dae_var_attr = NULL((void*)0);
3764 modelica_metatype _comment = NULL((void*)0);
3765 modelica_metatype _dir = NULL((void*)0);
3766 modelica_metatype _prl = NULL((void*)0);
3767 modelica_metatype _x = NULL((void*)0);
3768 modelica_metatype _prot = NULL((void*)0);
3769 modelica_string _idName = NULL((void*)0);
3770 modelica_metatype _source = NULL((void*)0);
3771 volatile mmc_switch_type tmp3;
3772 int tmp4;
3773 // _lst has no default value.
3774 // _r_1 has no default value.
3775 // _r has no default value.
3776 // _lst_1 has no default value.
3777 // _v has no default value.
3778 // _cr has no default value.
3779 // _vk has no default value.
3780 // _t has no default value.
3781 // _e has no default value.
3782 // _id has no default value.
3783 // _ct has no default value.
3784 // _dae_var_attr has no default value.
3785 // _comment has no default value.
3786 // _dir has no default value.
3787 // _prl has no default value.
3788 // _x has no default value.
3789 // _prot has no default value.
3790 // _idName has no default value.
3791 // _source has no default value.
3792 tmp3 = 0;
3793 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) {
3794 tmp2_top:
3795 threadData->mmc_jumper = &new_mmc_jumper;
3796 for (; tmp3 < 6; tmp3++) {
3797 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3798 case 0: {
3799 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,3,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((0 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
3800
3801 _lst = tmp3_1;
3802 /* Pattern matching succeeded */
3803#line 1075 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3804 tmpMeta[0] = _lst;
3805#line 3805 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3806 goto tmp2_done;
3807 }
3808 case 1: {
3809 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3810
3811 tmp3 += 4; /* Pattern matching succeeded; we may skip some cases if we fail */
3812#line 1077 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3813 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3814#line 1077 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3815 tmpMeta[0] = tmpMeta[1];
3816#line 3816 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3817 goto tmp2_done;
3818 }
3819 case 2: {
3820 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3821 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3822 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3823 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,13)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((13 +1
) << 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3824 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3825 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
3826 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
3827 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
3828 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
3829 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (7)))))
;
3830 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (8)))))
;
3831 tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (9)))))
;
3832 tmpMeta[11] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 10))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (10)))))
;
3833 tmpMeta[12] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 11))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (11)))))
;
3834 tmpMeta[13] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 12))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (12)))))
;
3835 tmpMeta[14] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 13))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (13)))))
;
3836 tmpMeta[15] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 14))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (14)))))
;
3837 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[15],0,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[15]) - 3)))==(((0 +1
) << 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3838
3839 _cr = tmpMeta[3];
3840 _vk = tmpMeta[4];
3841 _dir = tmpMeta[5];
3842 _prl = tmpMeta[6];
3843 _prot = tmpMeta[7];
3844 _t = tmpMeta[8];
3845 _e = tmpMeta[9];
3846 _id = tmpMeta[10];
3847 _ct = tmpMeta[11];
3848 _source = tmpMeta[12];
3849 _dae_var_attr = tmpMeta[13];
3850 _comment = tmpMeta[14];
3851 _r = tmpMeta[2];
3852 /* Pattern matching succeeded */
3853#line 1094 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3854 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3855#line 1094 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3856 omc_PrefixUtil_prefixCref(threadData, omc_FCore_emptyCache(threadData), omc_FGraph_empty(threadData), tmpMeta[1], _pre, _cr ,&_cr);
3857#line 3857 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3858
3859#line 1095 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3860 _r_1 = omc_InnerOuter_switchInnerToOuterAndPrefix(threadData, _r, _io, _pre);
3861#line 3861 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3862#line 1096 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3863 tmpMeta[2] = mmc_mk_box14(3, &DAE_Element_VAR__desc, _cr, _vk, _dir, _prl, _prot, _t, _e, _id, _ct, _source, _dae_var_attr, _comment, _io);
3864#line 1096 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3865 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _r_1);
3866#line 1096 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3867 tmpMeta[0] = tmpMeta[1];
3868#line 3868 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3869 goto tmp2_done;
3870 }
3871 case 3: {
3872 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3873 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3874 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3875 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],0,13)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((13 +1
) << 10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
3876
3877 _v = tmpMeta[1];
3878 _r = tmpMeta[2];
3879 tmp3 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
3880#line 1102 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3881 _r_1 = omc_InnerOuter_switchInnerToOuterAndPrefix(threadData, _r, _io, _pre);
3882#line 3882 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3883#line 1103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3884 tmpMeta[1] = mmc_mk_cons(_v, _r_1);
3885#line 1103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3886 tmpMeta[0] = tmpMeta[1];
3887#line 3887 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3888 goto tmp2_done;
3889 }
3890 case 4: {
3891 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3892 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3893 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3894 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],17,4)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((4 +1)
<< 10) + (((17 +3) & 255) << 2)))
== 0) goto tmp2_end;
3895 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3896 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
3897 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
3898 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
3899
3900 _idName = tmpMeta[3];
3901 _lst = tmpMeta[4];
3902 _source = tmpMeta[5];
3903 _comment = tmpMeta[6];
3904 _r = tmpMeta[2];
3905 /* Pattern matching succeeded */
3906#line 1109 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3907 _lst_1 = omc_InnerOuter_switchInnerToOuterAndPrefix(threadData, _lst, _io, _pre);
3908#line 3908 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3909
3910#line 1110 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3911 _r_1 = omc_InnerOuter_switchInnerToOuterAndPrefix(threadData, _r, _io, _pre);
3912#line 3912 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3913#line 1111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3914 tmpMeta[2] = mmc_mk_box5(20, &DAE_Element_COMP__desc, _idName, _lst_1, _source, _comment);
3915#line 1111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3916 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _r_1);
3917#line 1111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3918 tmpMeta[0] = tmpMeta[1];
3919#line 3919 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3920 goto tmp2_done;
3921 }
3922 case 5: {
3923 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3924 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3925 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3926
3927 _x = tmpMeta[1];
3928 _r = tmpMeta[2];
3929 /* Pattern matching succeeded */
3930#line 1116 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3931 _r_1 = omc_InnerOuter_switchInnerToOuterAndPrefix(threadData, _r, _io, _pre);
3932#line 3932 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3933#line 1117 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3934 tmpMeta[1] = mmc_mk_cons(_x, _r_1);
3935#line 1117 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3936 tmpMeta[0] = tmpMeta[1];
3937#line 3937 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3938 goto tmp2_done;
3939 }
3940 }
3941 goto tmp2_end;
3942 tmp2_end: ;
3943 }
3944 goto goto_1;
3945 tmp2_done:
3946 (void)tmp3;
3947 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3948 goto tmp2_done2;
3949 goto_1:;
3950 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3951 if (++tmp3 < 6) {
3952 goto tmp2_top;
3953 }
3954 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3955 tmp2_done2:;
3956 }
3957 }
3958 _outDae = tmpMeta[0];
3959 _return: OMC_LABEL_UNUSED__attribute__((unused))
3960 return _outDae;
3961}
3962
3963DLLExport
3964modelica_boolean omc_InnerOuter_modificationOnOuter(threadData_t *threadData, modelica_metatype _cache, modelica_metatype _env, modelica_metatype _ih, modelica_metatype _prefix, modelica_string _componentName, modelica_metatype _cr, modelica_metatype _inMod, modelica_metatype _io, modelica_boolean _impl, modelica_metatype _inInfo)
3965{
3966 modelica_boolean _modd;
3967 modelica_boolean tmp1 = 0;
3968 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3969 MMC_SO()mmc_check_stackoverflow(threadData);
3970 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3971 // _modd has no default value.
3972#line 3972 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3973 { /* matchcontinue expression */
3974 volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
3975 tmp4_1 = _inMod;
3976 tmp4_2 = _io;
3977 {
3978 modelica_string _s1 = NULL((void*)0);
3979 modelica_string _s2 = NULL((void*)0);
3980 modelica_string _s = NULL((void*)0);
3981 volatile mmc_switch_type tmp4;
3982 int tmp5;
3983 // _s1 has no default value.
3984 // _s2 has no default value.
3985 // _s has no default value.
3986 tmp4 = 0;
3987 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) {
3988 tmp3_top:
3989 threadData->mmc_jumper = &new_mmc_jumper;
3990 for (; tmp4 < 2; tmp4++) {
3991 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3992 case 0: {
3993 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;
3994 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((0 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3995 /* Pattern matching succeeded */
3996#line 1035 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
3997 _s1 = omc_ComponentReference_printComponentRefStr(threadData, _cr);
3998#line 3998 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
3999
4000#line 1036 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4001 _s2 = omc_Mod_prettyPrintMod(threadData, _inMod, ((modelica_integer) 0));
4002#line 4002 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4003
4004#line 1037 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4005 tmpMeta[0] = stringAppend(_s1,_OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)));
4006#line 1037 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4007 tmpMeta[1] = stringAppend(tmpMeta[0],_s2);
4008#line 1037 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4009 _s = tmpMeta[1];
4010#line 4010 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4011
4012#line 1038 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4013 tmpMeta[0] = mmc_mk_cons(_s, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
4014#line 1038 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4015 omc_Error_addSourceMessage(threadData, _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)), tmpMeta[0], _inInfo);
4016#line 4016 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4017#line 1039 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4018 tmp1 = 1;
4019#line 4019 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4020 goto tmp3_done;
4021 }
4022 case 1: {
4023
4024 /* Pattern matching succeeded */
4025#line 1042 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4026 tmp1 = 0;
4027#line 4027 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4028 goto tmp3_done;
4029 }
4030 }
4031 goto tmp3_end;
4032 tmp3_end: ;
4033 }
4034 goto goto_2;
4035 tmp3_done:
4036 (void)tmp4;
4037 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4038 goto tmp3_done2;
4039 goto_2:;
4040 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4041 if (++tmp4 < 2) {
4042 goto tmp3_top;
4043 }
4044 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4045 tmp3_done2:;
4046 }
4047 }
4048 _modd = tmp1;
4049 _return: OMC_LABEL_UNUSED__attribute__((unused))
4050 return _modd;
4051}
4052modelica_metatype boxptr_InnerOuter_modificationOnOuter(threadData_t *threadData, modelica_metatype _cache, modelica_metatype _env, modelica_metatype _ih, modelica_metatype _prefix, modelica_metatype _componentName, modelica_metatype _cr, modelica_metatype _inMod, modelica_metatype _io, modelica_metatype _impl, modelica_metatype _inInfo)
4053{
4054 modelica_integer tmp1;
4055 modelica_boolean _modd;
4056 modelica_metatype out_modd;
4057 tmp1 = mmc_unbox_integer(_impl)(((mmc_sint_t) (_impl)) >> 1);
4058 _modd = omc_InnerOuter_modificationOnOuter(threadData, _cache, _env, _ih, _prefix, _componentName, _cr, _inMod, _io, tmp1, _inInfo);
4059 out_modd = mmc_mk_icon(_modd);
4060 return out_modd;
4061}
4062
4063PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_lookupInnerInIH(threadData_t *threadData, modelica_metatype _inTIH, modelica_metatype _inPrefix, modelica_string _inComponentIdent)
4064{
4065 modelica_metatype _outInstInner = NULL((void*)0);
4066 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4067 MMC_SO()mmc_check_stackoverflow(threadData);
4068 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4069 // _outInstInner has no default value.
4070#line 4070 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4071 { /* matchcontinue expression */
4072 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;volatile modelica_string tmp3_3;
4073 tmp3_1 = _inTIH;
4074 tmp3_2 = _inPrefix;
4075 tmp3_3 = _inComponentIdent;
4076 {
4077 modelica_string _name = NULL((void*)0);
4078 modelica_metatype _prefix = NULL((void*)0);
4079 modelica_metatype _ht = NULL((void*)0);
4080 modelica_metatype _cref = NULL((void*)0);
4081 volatile mmc_switch_type tmp3;
4082 int tmp4;
4083 // _name has no default value.
4084 // _prefix has no default value.
4085 // _ht has no default value.
4086 // _cref has no default value.
4087 tmp3 = 0;
4088 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) {
4089 tmp2_top:
4090 threadData->mmc_jumper = &new_mmc_jumper;
4091 for (; tmp3 < 5; tmp3++) {
4092 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4093 case 0: {
4094 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
4095 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
4096 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 tmp2_end;
4097
4098 tmp3 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
4099#line 944 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4100 tmpMeta[0] = omc_InnerOuter_lookupInnerInIH(threadData, _inTIH, _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)), _inComponentIdent);
4101#line 4101 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4102 goto tmp2_done;
4103 }
4104 case 1: {
4105 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,0,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((0 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
4106
4107 _name = tmp3_3;
4108 /* Pattern matching succeeded */
4109#line 954 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4110 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4111#line 954 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4112 tmpMeta[2] = mmc_mk_box10(3, &InnerOuter_InstInner_INST__INNER__desc, _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)), _name, _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)), _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)), _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)), _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), tmpMeta[1], mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
4113#line 954 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4114 tmpMeta[0] = tmpMeta[2];
4115#line 4115 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4116 goto tmp2_done;
4117 }
4118 case 2: {
4119 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
4120
4121 _ht = tmpMeta[1];
4122 _name = tmp3_3;
4123 /* Pattern matching succeeded */
4124#line 963 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4125 _prefix = omc_PrefixUtil_prefixStripLast(threadData, _inPrefix);
4126#line 4126 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4127
4128#line 968 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4129 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4130#line 968 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4131 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4132#line 968 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4133 omc_PrefixUtil_prefixCref(threadData, omc_FCore_emptyCache(threadData), omc_FGraph_empty(threadData), tmpMeta[1], _prefix, omc_ComponentReference_makeCrefIdent(threadData, _name, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)), tmpMeta[2]) ,&_cref);
4134#line 4134 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4135#line 971 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4136 tmpMeta[0] = omc_InnerOuter_get(threadData, _cref, _ht);
4137#line 4137 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4138 goto tmp2_done;
4139 }
4140 case 3: {
4141 modelica_boolean tmp5;
4142 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
4143
4144 _ht = tmpMeta[1];
4145 _name = tmp3_3;
4146 /* Pattern matching succeeded */
4147#line 987 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4148 _prefix = omc_PrefixUtil_prefixStripLast(threadData, _inPrefix);
4149#line 4149 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4150
4151#line 992 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4152 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4153#line 992 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4154 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4155#line 992 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4156 omc_PrefixUtil_prefixCref(threadData, omc_FCore_emptyCache(threadData), omc_FGraph_empty(threadData), tmpMeta[1], _prefix, omc_ComponentReference_makeCrefIdent(threadData, _name, _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)), tmpMeta[2]) ,&_cref);
4157#line 4157 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4158
4159#line 995 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4160 tmp5 = 0; /* begin failure */
4161#line 995 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4162 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) {
4163#line 995 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4164 omc_InnerOuter_get(threadData, _cref, _ht);
4165#line 4165 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4166 tmp5 = 1;
4167 goto goto_6;
4168 goto_6:;
4169 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
4170 if (tmp5) {goto goto_1;} /* end failure */
4171#line 1000 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4172 tmpMeta[0] = omc_InnerOuter_lookupInnerInIH(threadData, _inTIH, _prefix, _name);
4173#line 4173 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4174 goto tmp2_done;
4175 }
4176 case 4: {
4177
4178 _prefix = tmp3_2;
4179 _name = tmp3_3;
4180 /* Pattern matching succeeded */
4181#line 1009 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4182 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4183#line 1009 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4184 tmpMeta[2] = mmc_mk_box10(3, &InnerOuter_InstInner_INST__INNER__desc, _prefix, _name, _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)), _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)), _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)), _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), tmpMeta[1], mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)));
4185#line 1009 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4186 tmpMeta[0] = tmpMeta[2];
4187#line 4187 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4188 goto tmp2_done;
4189 }
4190 }
4191 goto tmp2_end;
4192 tmp2_end: ;
4193 }
4194 goto goto_1;
4195 tmp2_done:
4196 (void)tmp3;
4197 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4198 goto tmp2_done2;
4199 goto_1:;
4200 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4201 if (++tmp3 < 5) {
4202 goto tmp2_top;
4203 }
4204 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4205 tmp2_done2:;
4206 }
4207 }
4208 _outInstInner = tmpMeta[0];
4209 _return: OMC_LABEL_UNUSED__attribute__((unused))
4210 return _outInstInner;
4211}
4212
4213DLLExport
4214modelica_boolean omc_InnerOuter_outerConnection(threadData_t *threadData, modelica_metatype _io1, modelica_metatype _io2)
4215{
4216 modelica_boolean _isOuter;
4217 modelica_boolean tmp1 = 0;
4218 MMC_SO()mmc_check_stackoverflow(threadData);
4219 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4220 // _isOuter has no default value.
4221#line 4221 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4222 { /* match expression */
4223 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
4224 tmp4_1 = _io1;
4225 tmp4_2 = _io2;
4226 {
4227 volatile mmc_switch_type tmp4;
4228 int tmp5;
4229 tmp4 = 0;
4230 for (; tmp4 < 5; tmp4++) {
4231 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4232 case 0: {
4233 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4234
4235 /* Pattern matching succeeded */
4236#line 914 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4237 tmp1 = 1;
4238#line 4238 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4239 goto tmp3_done;
4240 }
4241 case 1: {
4242 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((0 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4243
4244 /* Pattern matching succeeded */
4245#line 915 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4246 tmp1 = 1;
4247#line 4247 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4248 goto tmp3_done;
4249 }
4250 case 2: {
4251 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;
4252
4253 /* Pattern matching succeeded */
4254#line 916 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4255 tmp1 = 1;
4256#line 4256 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4257 goto tmp3_done;
4258 }
4259 case 3: {
4260 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;
4261
4262 /* Pattern matching succeeded */
4263#line 917 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4264 tmp1 = 1;
4265#line 4265 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4266 goto tmp3_done;
4267 }
4268 case 4: {
4269
4270 /* Pattern matching succeeded */
4271#line 918 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4272 tmp1 = 0;
4273#line 4273 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4274 goto tmp3_done;
4275 }
4276 }
4277 goto tmp3_end;
4278 tmp3_end: ;
4279 }
4280 goto goto_2;
4281 goto_2:;
4282 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4283 goto tmp3_done;
4284 tmp3_done:;
4285 }
4286 }
4287 _isOuter = tmp1;
4288 _return: OMC_LABEL_UNUSED__attribute__((unused))
4289 return _isOuter;
4290}
4291modelica_metatype boxptr_InnerOuter_outerConnection(threadData_t *threadData, modelica_metatype _io1, modelica_metatype _io2)
4292{
4293 modelica_boolean _isOuter;
4294 modelica_metatype out_isOuter;
4295 _isOuter = omc_InnerOuter_outerConnection(threadData, _io1, _io2);
4296 out_isOuter = mmc_mk_icon(_isOuter);
4297 return out_isOuter;
4298}
4299
4300DLLExport
4301modelica_boolean omc_InnerOuter_referOuter(threadData_t *threadData, modelica_metatype _io1, modelica_metatype _io2, modelica_boolean *out_prefix2)
4302{
4303 modelica_boolean _prefix1;
4304 modelica_boolean _prefix2;
4305 modelica_boolean tmp1_c0 __attribute__((unused)) = 0;
4306 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
4307 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4308 MMC_SO()mmc_check_stackoverflow(threadData);
4309 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4310 // _prefix1 has no default value.
4311 // _prefix2 has no default value.
4312#line 895 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4313
4314#line 895 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4315
4316#line 4316 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4317 { /* match expression */
4318 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
4319 tmp4_1 = _io1;
4320 tmp4_2 = _io2;
4321 {
4322 modelica_boolean _b1;
4323 modelica_boolean _b2;
4324 volatile mmc_switch_type tmp4;
4325 int tmp5;
4326 // _b1 has no default value.
4327 // _b2 has no default value.
4328 tmp4 = 0;
4329 for (; tmp4 < 3; tmp4++) {
4330 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4331 case 0: {
4332 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;
4333 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,3,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((0 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
4334 /* Pattern matching succeeded */
4335#line 897 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4336 tmp1_c0 = 1;
4337#line 897 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4338 tmp1_c1 = 0;
4339#line 4339 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4340 goto tmp3_done;
4341 }
4342 case 1: {
4343 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;
4344 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((0 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4345 /* Pattern matching succeeded */
4346#line 898 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4347 tmp1_c0 = 0;
4348#line 898 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4349 tmp1_c1 = 1;
4350#line 4350 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4351 goto tmp3_done;
4352 }
4353 case 2: {
4354
4355 /* Pattern matching succeeded */
4356#line 901 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4357 omc_InnerOuter_innerOuterBooleans(threadData, _io1 ,&_b1);
4358#line 4358 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4359
4360#line 902 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4361 omc_InnerOuter_innerOuterBooleans(threadData, _io2 ,&_b2);
4362#line 4362 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4363#line 903 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4364 tmp1_c0 = _b1;
4365#line 903 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4366 tmp1_c1 = _b2;
4367#line 4367 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4368 goto tmp3_done;
4369 }
4370 }
4371 goto tmp3_end;
4372 tmp3_end: ;
4373 }
4374 goto goto_2;
4375 goto_2:;
4376 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4377 goto tmp3_done;
4378 tmp3_done:;
4379 }
4380 }
4381 _prefix1 = tmp1_c0;
4382 _prefix2 = tmp1_c1;
4383 _return: OMC_LABEL_UNUSED__attribute__((unused))
4384 if (out_prefix2) { *out_prefix2 = _prefix2; }
4385 return _prefix1;
4386}
4387modelica_metatype boxptr_InnerOuter_referOuter(threadData_t *threadData, modelica_metatype _io1, modelica_metatype _io2, modelica_metatype *out_prefix2)
4388{
4389 modelica_boolean _prefix2;
4390 modelica_boolean _prefix1;
4391 modelica_metatype out_prefix1;
4392 _prefix1 = omc_InnerOuter_referOuter(threadData, _io1, _io2, &_prefix2);
4393 out_prefix1 = mmc_mk_icon(_prefix1);
4394 if (out_prefix2) { *out_prefix2 = mmc_mk_icon(_prefix2); }
4395 return out_prefix1;
4396}
4397
4398DLLExport
4399modelica_boolean omc_InnerOuter_innerOuterBooleans(threadData_t *threadData, modelica_metatype _io, modelica_boolean *out_outer1)
4400{
4401 modelica_boolean _inner1;
4402 modelica_boolean _outer1;
4403 modelica_boolean tmp1_c0 __attribute__((unused)) = 0;
4404 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
4405 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
4406 MMC_SO()mmc_check_stackoverflow(threadData);
4407 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4408 // _inner1 has no default value.
4409 // _outer1 has no default value.
4410#line 873 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4411
4412#line 873 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4413
4414#line 4414 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4415 { /* match expression */
4416 modelica_metatype tmp4_1;
4417 tmp4_1 = _io;
4418 {
4419 int tmp4;
4420 {
4421 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
4422 case 3: {
4423
4424 /* Pattern matching succeeded */
4425#line 874 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4426 tmp1_c0 = 1;
4427#line 874 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4428 tmp1_c1 = 0;
4429#line 4429 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4430 goto tmp3_done;
4431 }
4432 case 4: {
4433
4434 /* Pattern matching succeeded */
4435#line 875 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4436 tmp1_c0 = 0;
4437#line 875 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4438 tmp1_c1 = 1;
4439#line 4439 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4440 goto tmp3_done;
4441 }
4442 case 5: {
4443
4444 /* Pattern matching succeeded */
4445#line 876 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4446 tmp1_c0 = 1;
4447#line 876 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4448 tmp1_c1 = 1;
4449#line 4449 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4450 goto tmp3_done;
4451 }
4452 case 6: {
4453
4454 /* Pattern matching succeeded */
4455#line 877 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4456 tmp1_c0 = 0;
4457#line 877 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4458 tmp1_c1 = 0;
4459#line 4459 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4460 goto tmp3_done;
4461 }
4462 }
4463 goto tmp3_end;
4464 tmp3_end: ;
4465 }
4466 goto goto_2;
4467 goto_2:;
4468 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4469 goto tmp3_done;
4470 tmp3_done:;
4471 }
4472 }
4473 _inner1 = tmp1_c0;
4474 _outer1 = tmp1_c1;
4475 _return: OMC_LABEL_UNUSED__attribute__((unused))
4476 if (out_outer1) { *out_outer1 = _outer1; }
4477 return _inner1;
4478}
4479modelica_metatype boxptr_InnerOuter_innerOuterBooleans(threadData_t *threadData, modelica_metatype _io, modelica_metatype *out_outer1)
4480{
4481 modelica_boolean _outer1;
4482 modelica_boolean _inner1;
4483 modelica_metatype out_inner1;
4484 _inner1 = omc_InnerOuter_innerOuterBooleans(threadData, _io, &_outer1);
4485 out_inner1 = mmc_mk_icon(_inner1);
4486 if (out_outer1) { *out_outer1 = mmc_mk_icon(_outer1); }
4487 return out_inner1;
4488}
4489
4490DLLExport
4491void omc_InnerOuter_failExceptForCheck(threadData_t *threadData)
4492{
4493 MMC_SO()mmc_check_stackoverflow(threadData);
4494 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4495#line 4495 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4496 { /* match expression */
4497 {
4498 volatile mmc_switch_type tmp3;
4499 int tmp4;
4500 tmp3 = 0;
4501 for (; tmp3 < 1; tmp3++) {
4502 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4503 case 0: {
4504 modelica_boolean tmp5;
4505 /* Pattern matching succeeded */
4506#line 862 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4507 /* Pattern-matching assignment */
4508#line 862 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4509 tmp5 = omc_Flags_getConfigBool(threadData, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)));
4510#line 862 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4511 if (1 != tmp5) goto goto_1;
4512#line 4512 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4513#line 4513 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4514 goto tmp2_done;
4515 }
4516 }
4517 goto tmp2_end;
4518 tmp2_end: ;
4519 }
4520 goto goto_1;
4521 goto_1:;
4522 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4523 goto tmp2_done;
4524 tmp2_done:;
4525 }
4526 }
4527 ;
4528 _return: OMC_LABEL_UNUSED__attribute__((unused))
4529 return;
4530}
4531
4532PROTECTED_FUNCTION_STATIC void omc_InnerOuter_checkMissingInnerDecl2(threadData_t *threadData, modelica_metatype _outerVar, modelica_metatype _innerVars)
4533{
4534 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4535 MMC_SO()mmc_check_stackoverflow(threadData);
4536 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4537#line 4537 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4538 { /* match expression */
4539 modelica_metatype tmp3_1;
4540 tmp3_1 = _outerVar;
4541 {
4542 modelica_string _str = NULL((void*)0);
4543 modelica_string _str2 = NULL((void*)0);
4544 modelica_metatype _cr = NULL((void*)0);
4545 modelica_metatype _crs = NULL((void*)0);
4546 modelica_metatype _res = NULL((void*)0);
4547 modelica_metatype _io = NULL((void*)0);
4548 modelica_metatype _source = NULL((void*)0);
4549 modelica_metatype _info = NULL((void*)0);
4550 volatile mmc_switch_type tmp3;
4551 int tmp4;
4552 // _str has no default value.
4553 // _str2 has no default value.
4554 // _cr has no default value.
4555 // _crs has no default value.
4556 // _res has no default value.
4557 // _io has no default value.
4558 // _source has no default value.
4559 // _info has no default value.
4560 tmp3 = 0;
4561 for (; tmp3 < 1; tmp3++) {
4562 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4563 case 0: {
4564 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,13)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((13 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
4565 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
4566 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 11))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(11)))))
;
4567 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 14))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(14)))))
;
4568 _cr = tmpMeta[0];
4569 _source = tmpMeta[1];
4570 _io = tmpMeta[2];
4571 /* Pattern matching succeeded */
4572#line 837 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4573 _crs = omc_List_map(threadData, _innerVars, boxvar_DAEUtil_varCref((void*)((char*)(&(boxvar_lit_DAEUtil_varCref).header) + 3
))
);
4574#line 4574 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4575
4576#line 838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4577 _res = omc_List_select1(threadData, _crs, boxvar_InnerOuter_isInnerOuterMatch((void*)((char*)(&(boxvar_lit_InnerOuter_isInnerOuterMatch
).header) + 3))
, _cr);
4578#line 4578 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4579
4580#line 839 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4581 if(listEmpty(_res)((*(mmc_uint_t*)((void*)((char*)(_res) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
)
4582#line 839 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4583 {
4584#line 841 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4585 if((!omc_Flags_getConfigBool(threadData, _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)))))
4586#line 841 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4587 {
4588#line 843 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4589 _str2 = omc_Dump_unparseInnerouterStr(threadData, _io);
4590#line 4590 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4591
4592#line 844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4593 _str = omc_ComponentReference_printComponentRefStr(threadData, _cr);
4594#line 4594 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4595
4596#line 845 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4597 _info = omc_ElementSource_getElementSourceFileInfo(threadData, _source);
4598#line 4598 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4599
4600#line 846 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4601 tmpMeta[0] = mmc_mk_cons(_str, mmc_mk_cons(_str2, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
4602#line 846 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4603 omc_Error_addSourceMessage(threadData, _OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)), tmpMeta[0], _info);
4604#line 4604 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4605
4606#line 847 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4607 goto goto_1;
4608#line 4608 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4609 }
4610 }
4611#line 4611 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4612 goto tmp2_done;
4613 }
4614 }
4615 goto tmp2_end;
4616 tmp2_end: ;
4617 }
4618 goto goto_1;
4619 goto_1:;
4620 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4621 goto tmp2_done;
4622 tmp2_done:;
4623 }
4624 }
4625 ;
4626 _return: OMC_LABEL_UNUSED__attribute__((unused))
4627 return;
4628}
4629
4630PROTECTED_FUNCTION_STATIC void omc_InnerOuter_checkMissingInnerDecl1(threadData_t *threadData, modelica_metatype _innerVarsDae, modelica_metatype _outerVarsDae)
4631{
4632 MMC_SO()mmc_check_stackoverflow(threadData);
4633 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4634#line 819 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4635 omc_List_map1__0(threadData, omc_DAEUtil_daeElements(threadData, _outerVarsDae), boxvar_InnerOuter_checkMissingInnerDecl2((void*)((char*)(&(boxvar_lit_InnerOuter_checkMissingInnerDecl2
).header) + 3))
, omc_DAEUtil_daeElements(threadData, _innerVarsDae));
4636#line 4636 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4637 _return: OMC_LABEL_UNUSED__attribute__((unused))
4638 return;
4639}
4640
4641DLLExport
4642void omc_InnerOuter_checkMissingInnerDecl(threadData_t *threadData, modelica_metatype _inDae, modelica_boolean _callScope)
4643{
4644 modelica_metatype _innerVars = NULL((void*)0);
4645 modelica_metatype _outerVars = NULL((void*)0);
4646 modelica_metatype _allVars = NULL((void*)0);
4647 modelica_metatype _repl = NULL((void*)0);
4648 modelica_metatype _srcs = NULL((void*)0);
4649 modelica_metatype _targets = NULL((void*)0);
4650 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
4651 MMC_SO()mmc_check_stackoverflow(threadData);
4652 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4653 // _innerVars has no default value.
4654 // _outerVars has no default value.
4655 // _allVars has no default value.
4656 // _repl has no default value.
4657 // _srcs has no default value.
4658 // _targets has no default value.
4659#line 4659 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4660 { /* matchcontinue expression */
4661 volatile modelica_boolean tmp3_1;
4662 tmp3_1 = _callScope;
4663 {
4664 volatile mmc_switch_type tmp3;
4665 int tmp4;
4666 tmp3 = 0;
4667 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) {
4668 tmp2_top:
4669 threadData->mmc_jumper = &new_mmc_jumper;
4670 for (; tmp3 < 3; tmp3++) {
4671 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4672 case 0: {
4673 modelica_boolean tmp5;
4674
4675 /* Pattern matching succeeded */
4676#line 798 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4677 /* Pattern-matching assignment */
4678#line 798 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4679 tmp5 = omc_System_getHasInnerOuterDefinitions(threadData);
4680#line 798 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4681 if (0 != tmp5) goto goto_1;
4682#line 4682 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4683#line 4683 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4684 goto tmp2_done;
4685 }
4686 case 1: {
4687 if (1 != tmp3_1) goto tmp2_end;
4688 tmp3 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
4689#line 804 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4690 /* Pattern-matching tuple assignment */
4691#line 804 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4692 tmpMeta[2] = omc_DAEUtil_findAllMatchingElements(threadData, _inDae, boxvar_DAEUtil_isInnerVar((void*)((char*)(&(boxvar_lit_DAEUtil_isInnerVar).header)
+ 3))
, boxvar_DAEUtil_isOuterVar((void*)((char*)(&(boxvar_lit_DAEUtil_isOuterVar).header)
+ 3))
, &tmpMeta[0]);
4693#line 804 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4694 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4695#line 804 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4696 _innerVars = tmpMeta[3];
4697#line 804 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4698 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4699#line 804 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4700 _outerVars = tmpMeta[1];
4701#line 4701 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4702
4703#line 805 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4704 tmpMeta[0] = mmc_mk_box2(3, &DAE_DAElist_DAE__desc, _innerVars);
4705#line 805 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4706 tmpMeta[1] = mmc_mk_box2(3, &DAE_DAElist_DAE__desc, _outerVars);
4707#line 805 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4708 omc_InnerOuter_checkMissingInnerDecl1(threadData, tmpMeta[0], tmpMeta[1]);
4709#line 4709 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4710#line 4710 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4711 goto tmp2_done;
4712 }
4713 case 2: {
4714 if (0 != tmp3_1) goto tmp2_end;
4715 /* Pattern matching succeeded */
4716#line 4716 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4717 goto tmp2_done;
4718 }
4719 }
4720 goto tmp2_end;
4721 tmp2_end: ;
4722 }
4723 goto goto_1;
4724 tmp2_done:
4725 (void)tmp3;
4726 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4727 goto tmp2_done2;
4728 goto_1:;
4729 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4730 if (++tmp3 < 3) {
4731 goto tmp2_top;
4732 }
4733 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4734 tmp2_done2:;
4735 }
4736 }
4737 ;
4738 _return: OMC_LABEL_UNUSED__attribute__((unused))
4739 return;
4740}
4741void boxptr_InnerOuter_checkMissingInnerDecl(threadData_t *threadData, modelica_metatype _inDae, modelica_metatype _callScope)
4742{
4743 modelica_integer tmp1;
4744 tmp1 = mmc_unbox_integer(_callScope)(((mmc_sint_t) (_callScope)) >> 1);
4745 omc_InnerOuter_checkMissingInnerDecl(threadData, _inDae, tmp1);
4746 return;
4747}
4748
4749PROTECTED_FUNCTION_STATIC modelica_boolean omc_InnerOuter_lookupVarInnerOuterAttr(threadData_t *threadData, modelica_metatype _cache, modelica_metatype _env, modelica_metatype _inIH, modelica_metatype _cr1, modelica_metatype _cr2, modelica_boolean *out_isOuter)
4750{
4751 modelica_boolean _isInner;
4752 modelica_boolean _isOuter;
4753 modelica_boolean tmp1_c0 __attribute__((unused)) = 0;
4754 modelica_boolean tmp1_c1 __attribute__((unused)) = 0;
4755 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
4756 MMC_SO()mmc_check_stackoverflow(threadData);
4757 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4758 // _isInner has no default value.
4759 // _isOuter has no default value.
4760#line 742 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4761
4762#line 742 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4763
4764#line 4764 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4765 { /* matchcontinue expression */
4766 {
4767 modelica_metatype _io = NULL((void*)0);
4768 modelica_metatype _io1 = NULL((void*)0);
4769 modelica_metatype _io2 = NULL((void*)0);
4770 modelica_boolean _isInner1;
4771 modelica_boolean _isInner2;
4772 modelica_boolean _isOuter1;
4773 modelica_boolean _isOuter2;
4774 volatile mmc_switch_type tmp4;
4775 int tmp5;
4776 // _io has no default value.
4777 // _io1 has no default value.
4778 // _io2 has no default value.
4779 // _isInner1 has no default value.
4780 // _isInner2 has no default value.
4781 // _isOuter1 has no default value.
4782 // _isOuter2 has no default value.
4783 tmp4 = 0;
4784 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) {
4785 tmp3_top:
4786 threadData->mmc_jumper = &new_mmc_jumper;
4787 for (; tmp4 < 4; tmp4++) {
4788 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4789 case 0: {
4790 /* Pattern matching succeeded */
4791#line 750 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4792 omc_ErrorExt_setCheckpoint(threadData, _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)));
4793#line 4793 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4794
4795#line 751 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4796 /* Pattern-matching tuple assignment, wild first pattern */
4797#line 751 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4798 omc_Lookup_lookupVar(threadData, _cache, _env, _cr1, &tmpMeta[2], NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0));
4799#line 751 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4800 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (6)))))
;
4801#line 751 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4802 _io1 = tmpMeta[3];
4803#line 4803 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4804
4805#line 752 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4806 /* Pattern-matching tuple assignment, wild first pattern */
4807#line 752 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4808 omc_Lookup_lookupVar(threadData, _cache, _env, _cr2, &tmpMeta[2], NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0));
4809#line 752 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4810 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (6)))))
;
4811#line 752 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4812 _io2 = tmpMeta[3];
4813#line 4813 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4814
4815#line 753 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4816 _isInner1 = omc_InnerOuter_innerOuterBooleans(threadData, _io1 ,&_isOuter1);
4817#line 4817 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4818
4819#line 754 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4820 _isInner2 = omc_InnerOuter_innerOuterBooleans(threadData, _io2 ,&_isOuter2);
4821#line 4821 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4822
4823#line 755 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4824 _isInner = (_isInner1 || _isInner2);
4825#line 4825 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4826
4827#line 756 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4828 _isOuter = (_isOuter1 || _isOuter2);
4829#line 4829 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4830
4831#line 757 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4832 omc_ErrorExt_rollBack(threadData, _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)));
4833#line 4833 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4834#line 758 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4835 tmp1_c0 = _isInner;
4836#line 758 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4837 tmp1_c1 = _isOuter;
4838#line 4838 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4839 goto tmp3_done;
4840 }
4841 case 1: {
4842 /* Pattern matching succeeded */
4843#line 763 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4844 /* Pattern-matching tuple assignment, wild first pattern */
4845#line 763 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4846 omc_Lookup_lookupVar(threadData, _cache, _env, _cr1, &tmpMeta[2], NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0));
4847#line 763 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4848 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (6)))))
;
4849#line 763 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4850 _io = tmpMeta[3];
4851#line 4851 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4852
4853#line 764 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4854 _isInner = omc_InnerOuter_innerOuterBooleans(threadData, _io ,&_isOuter);
4855#line 4855 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4856
4857#line 765 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4858 omc_ErrorExt_rollBack(threadData, _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)));
4859#line 4859 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4860#line 766 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4861 tmp1_c0 = _isInner;
4862#line 766 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4863 tmp1_c1 = _isOuter;
4864#line 4864 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4865 goto tmp3_done;
4866 }
4867 case 2: {
4868 /* Pattern matching succeeded */
4869#line 771 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4870 /* Pattern-matching tuple assignment, wild first pattern */
4871#line 771 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4872 omc_Lookup_lookupVar(threadData, _cache, _env, _cr2, &tmpMeta[2], NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0));
4873#line 771 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4874 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (6)))))
;
4875#line 771 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4876 _io = tmpMeta[3];
4877#line 4877 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4878
4879#line 772 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4880 _isInner = omc_InnerOuter_innerOuterBooleans(threadData, _io ,&_isOuter);
4881#line 4881 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4882
4883#line 773 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4884 omc_ErrorExt_rollBack(threadData, _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)));
4885#line 4885 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4886#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4887 tmp1_c0 = _isInner;
4888#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4889 tmp1_c1 = _isOuter;
4890#line 4890 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4891 goto tmp3_done;
4892 }
4893 case 3: {
4894 /* Pattern matching succeeded */
4895#line 778 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4896 omc_ErrorExt_rollBack(threadData, _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)));
4897#line 4897 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4898#line 779 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4899 goto goto_2;
4900#line 4900 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4901 goto tmp3_done;
4902 }
4903 }
4904 goto tmp3_end;
4905 tmp3_end: ;
4906 }
4907 goto goto_2;
4908 tmp3_done:
4909 (void)tmp4;
4910 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4911 goto tmp3_done2;
4912 goto_2:;
4913 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4914 if (++tmp4 < 4) {
4915 goto tmp3_top;
4916 }
4917 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4918 tmp3_done2:;
4919 }
4920 }
4921 _isInner = tmp1_c0;
4922 _isOuter = tmp1_c1;
4923 _return: OMC_LABEL_UNUSED__attribute__((unused))
4924 if (out_isOuter) { *out_isOuter = _isOuter; }
4925 return _isInner;
4926}
4927PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_InnerOuter_lookupVarInnerOuterAttr(threadData_t *threadData, modelica_metatype _cache, modelica_metatype _env, modelica_metatype _inIH, modelica_metatype _cr1, modelica_metatype _cr2, modelica_metatype *out_isOuter)
4928{
4929 modelica_boolean _isOuter;
4930 modelica_boolean _isInner;
4931 modelica_metatype out_isInner;
4932 _isInner = omc_InnerOuter_lookupVarInnerOuterAttr(threadData, _cache, _env, _inIH, _cr1, _cr2, &_isOuter);
4933 out_isInner = mmc_mk_icon(_isInner);
4934 if (out_isOuter) { *out_isOuter = mmc_mk_icon(_isOuter); }
4935 return out_isInner;
4936}
4937
4938PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_removeOuter(threadData_t *threadData, modelica_metatype _io)
4939{
4940 modelica_metatype _outIo = NULL((void*)0);
4941 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
4942 MMC_SO()mmc_check_stackoverflow(threadData);
4943 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4944 // _outIo has no default value.
4945#line 4945 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4946 { /* match expression */
4947 modelica_metatype tmp3_1;
4948 tmp3_1 = _io;
4949 {
4950 int tmp3;
4951 {
4952 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
4953 case 4: {
4954
4955 /* Pattern matching succeeded */
4956#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4957 tmpMeta[0] = _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3));
4958#line 4958 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4959 goto tmp2_done;
4960 }
4961 case 3: {
4962
4963 /* Pattern matching succeeded */
4964#line 724 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4965 tmpMeta[0] = _OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3));
4966#line 4966 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4967 goto tmp2_done;
4968 }
4969 case 5: {
4970
4971 /* Pattern matching succeeded */
4972#line 725 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4973 tmpMeta[0] = _OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3));
4974#line 4974 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4975 goto tmp2_done;
4976 }
4977 case 6: {
4978
4979 /* Pattern matching succeeded */
4980#line 726 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
4981 tmpMeta[0] = _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3));
4982#line 4982 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
4983 goto tmp2_done;
4984 }
4985 }
4986 goto tmp2_end;
4987 tmp2_end: ;
4988 }
4989 goto goto_1;
4990 goto_1:;
4991 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4992 goto tmp2_done;
4993 tmp2_done:;
4994 }
4995 }
4996 _outIo = tmpMeta[0];
4997 _return: OMC_LABEL_UNUSED__attribute__((unused))
4998 return _outIo;
4999}
5000
5001PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_addOuterConnectIfEmptyNoEnv(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPre, modelica_metatype _inSets, modelica_boolean _added, modelica_metatype _cr1, modelica_metatype _iio1, modelica_metatype _f1, modelica_metatype _cr2, modelica_metatype _iio2, modelica_metatype _f2, modelica_metatype _info)
5002{
5003 modelica_metatype _outSets = NULL((void*)0);
5004 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
5005 MMC_SO()mmc_check_stackoverflow(threadData);
5006 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5007 // _outSets has no default value.
5008#line 5008 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5009 { /* matchcontinue expression */
5010 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;volatile modelica_metatype tmp3_3;volatile modelica_metatype tmp3_4;volatile modelica_boolean tmp3_5;volatile modelica_metatype tmp3_6;volatile modelica_metatype tmp3_7;
5011 tmp3_1 = _inCache;
5012 tmp3_2 = _inEnv;
5013 tmp3_3 = _inIH;
5014 tmp3_4 = _inSets;
5015 tmp3_5 = _added;
5016 tmp3_6 = _iio1;
5017 tmp3_7 = _iio2;
5018 {
5019 modelica_metatype _vt1 = NULL((void*)0);
5020 modelica_metatype _vt2 = NULL((void*)0);
5021 modelica_metatype _t1 = NULL((void*)0);
5022 modelica_metatype _t2 = NULL((void*)0);
5023 modelica_metatype _ct = NULL((void*)0);
5024 modelica_metatype _ih = NULL((void*)0);
5025 modelica_metatype _sets = NULL((void*)0);
5026 modelica_integer _sc;
5027 modelica_metatype _cl = NULL((void*)0);
5028 modelica_metatype _oc = NULL((void*)0);
5029 modelica_metatype _cache = NULL((void*)0);
5030 modelica_metatype _env = NULL((void*)0);
5031 modelica_metatype _io1 = NULL((void*)0);
5032 modelica_metatype _io2 = NULL((void*)0);
5033 modelica_metatype _pre = NULL((void*)0);
5034 volatile mmc_switch_type tmp3;
5035 int tmp4;
5036 // _vt1 has no default value.
5037 // _vt2 has no default value.
5038 // _t1 has no default value.
5039 // _t2 has no default value.
5040 // _ct has no default value.
5041 // _ih has no default value.
5042 // _sets has no default value.
5043 // _sc has no default value.
5044 // _cl has no default value.
5045 // _oc has no default value.
5046 // _cache has no default value.
5047 // _env has no default value.
5048 // _io1 has no default value.
5049 // _io2 has no default value.
5050 // _pre has no default value.
5051 tmp3 = 0;
5052 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) {
5053 tmp2_top:
5054 threadData->mmc_jumper = &new_mmc_jumper;
5055 for (; tmp3 < 4; tmp3++) {
5056 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5057 case 0: {
5058 if (1 != tmp3_5) goto tmp2_end;
5059
5060 tmp3 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
5061#line 671 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5062 tmpMeta[0] = _inSets;
5063#line 5063 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5064 goto tmp2_done;
5065 }
5066 case 1: {
5067 modelica_integer tmp5;
5068 modelica_integer tmp6;
5069 if (0 != tmp3_5) goto tmp2_end;
5070 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_4), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_4) - 3))) +
(2)))))
;
5071 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_4), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_4) - 3))) +
(3)))))
;
5072 tmp5 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
5073 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_4), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_4) - 3))) +
(4)))))
;
5074 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_4), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_4) - 3))) +
(5)))))
;
5075
5076 _cache = tmp3_1;
5077 _env = tmp3_2;
5078 _ih = tmp3_3;
5079 _sets = tmpMeta[1];
5080 _sc = tmp5 /* pattern as ty=Integer */;
5081 _cl = tmpMeta[3];
5082 _oc = tmpMeta[4];
5083 _io1 = tmp3_6;
5084 _io2 = tmp3_7;
5085 /* Pattern matching succeeded */
5086#line 676 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5087 /* Pattern-matching tuple assignment */
5088#line 676 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5089 tmpMeta[5] = omc_Lookup_lookupVar(threadData, _cache, _env, _cr1, &tmpMeta[1], &tmpMeta[4], NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0));
5090#line 676 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5091 _cache = tmpMeta[5];
5092#line 676 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5093 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
5094#line 676 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5095 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
5096#line 676 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5097 _ct = tmpMeta[2];
5098#line 676 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5099 _vt1 = tmpMeta[3];
5100#line 676 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5101 _t1 = tmpMeta[4];
5102#line 5102 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5103
5104#line 677 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5105 _pre = _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3));
5106#line 5106 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5107
5108#line 678 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5109 _t2 = _t1;
5110#line 5110 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5111
5112#line 679 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5113 _vt2 = _vt1;
5114#line 5114 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5115
5116#line 680 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5117 _io1 = omc_InnerOuter_removeOuter(threadData, _io1);
5118#line 5118 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5119
5120#line 681 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5121 _io2 = omc_InnerOuter_removeOuter(threadData, _io2);
5122#line 5122 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5123
5124#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5125 /* Pattern-matching tuple assignment */
5126#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5127 tmpMeta[7] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
5128#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5129 tmpMeta[8] = mmc_mk_box5(3, &DAE_Connect_Sets_SETS__desc, _sets, mmc_mk_integermmc_mk_icon(_sc), _cl, tmpMeta[7]);
5130#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5131 tmpMeta[9] = omc_InstSection_connectComponents(threadData, _cache, _env, _ih, tmpMeta[8], _pre, _cr1, _f1, _t1, _vt1, _cr2, _f2, _t2, _vt2, _ct, _io1, _io2, _OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3)), _info, &tmpMeta[1], &tmpMeta[2], &tmpMeta[3], NULL((void*)0), NULL((void*)0));
5132#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5133 _cache = tmpMeta[9];
5134#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5135 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
5136#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5137 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
5138#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5139 tmp6 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
5140#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5141 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (4)))))
;
5142#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5143 _env = tmpMeta[1];
5144#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5145 _ih = tmpMeta[2];
5146#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5147 _sets = tmpMeta[4];
5148#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5149 _sc = tmp6 /* pattern as ty=Integer */;
5150#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5151 _cl = tmpMeta[6];
5152#line 5152 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5153#line 688 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5154 tmpMeta[1] = mmc_mk_box5(3, &DAE_Connect_Sets_SETS__desc, _sets, mmc_mk_integermmc_mk_icon(_sc), _cl, _oc);
5155#line 688 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5156 tmpMeta[0] = tmpMeta[1];
5157#line 5157 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5158 goto tmp2_done;
5159 }
5160 case 2: {
5161 modelica_integer tmp7;
5162 modelica_integer tmp8;
5163 if (0 != tmp3_5) goto tmp2_end;
5164 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_4), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_4) - 3))) +
(2)))))
;
5165 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_4), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_4) - 3))) +
(3)))))
;
5166 tmp7 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
5167 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_4), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_4) - 3))) +
(4)))))
;
5168 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_4), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_4) - 3))) +
(5)))))
;
5169
5170 _cache = tmp3_1;
5171 _env = tmp3_2;
5172 _ih = tmp3_3;
5173 _sets = tmpMeta[1];
5174 _sc = tmp7 /* pattern as ty=Integer */;
5175 _cl = tmpMeta[3];
5176 _oc = tmpMeta[4];
5177 _io1 = tmp3_6;
5178 _io2 = tmp3_7;
5179 /* Pattern matching succeeded */
5180#line 694 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5181 _pre = _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3));
5182#line 5182 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5183
5184#line 695 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5185 /* Pattern-matching tuple assignment */
5186#line 695 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5187 tmpMeta[5] = omc_Lookup_lookupVar(threadData, _cache, _env, _cr2, &tmpMeta[1], &tmpMeta[4], NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0));
5188#line 695 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5189 _cache = tmpMeta[5];
5190#line 695 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5191 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
5192#line 695 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5193 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
5194#line 695 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5195 _ct = tmpMeta[2];
5196#line 695 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5197 _vt2 = tmpMeta[3];
5198#line 695 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5199 _t2 = tmpMeta[4];
5200#line 5200 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5201
5202#line 696 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5203 _t1 = _t2;
5204#line 5204 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5205
5206#line 697 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5207 _vt1 = _vt2;
5208#line 5208 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5209
5210#line 698 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5211 _io1 = omc_InnerOuter_removeOuter(threadData, _io1);
5212#line 5212 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5213
5214#line 699 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5215 _io2 = omc_InnerOuter_removeOuter(threadData, _io2);
5216#line 5216 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5217
5218#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5219 /* Pattern-matching tuple assignment */
5220#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5221 tmpMeta[7] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
5222#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5223 tmpMeta[8] = mmc_mk_box5(3, &DAE_Connect_Sets_SETS__desc, _sets, mmc_mk_integermmc_mk_icon(_sc), _cl, tmpMeta[7]);
5224#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5225 tmpMeta[9] = omc_InstSection_connectComponents(threadData, _cache, _env, _ih, tmpMeta[8], _pre, _cr1, _f1, _t1, _vt1, _cr2, _f2, _t2, _vt2, _ct, _io1, _io2, _OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3)), _info, &tmpMeta[1], &tmpMeta[2], &tmpMeta[3], NULL((void*)0), NULL((void*)0));
5226#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5227 _cache = tmpMeta[9];
5228#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5229 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
5230#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5231 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
5232#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5233 tmp8 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
5234#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5235 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (4)))))
;
5236#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5237 _env = tmpMeta[1];
Value stored to '_env' is never read
5238#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5239 _ih = tmpMeta[2];
5240#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5241 _sets = tmpMeta[4];
5242#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5243 _sc = tmp8 /* pattern as ty=Integer */;
5244#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5245 _cl = tmpMeta[6];
5246#line 5246 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5247#line 707 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5248 tmpMeta[1] = mmc_mk_box5(3, &DAE_Connect_Sets_SETS__desc, _sets, mmc_mk_integermmc_mk_icon(_sc), _cl, _oc);
5249#line 707 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5250 tmpMeta[0] = tmpMeta[1];
5251#line 5251 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5252 goto tmp2_done;
5253 }
5254 case 3: {
5255
5256 /* Pattern matching succeeded */
5257#line 712 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5258 fputs(MMC_STRINGDATA(_OMC_LIT58)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT58).header) + 3))) - 3)))->data)
,stdoutstdout);
5259#line 5259 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5260#line 713 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5261 goto goto_1;
5262#line 5262 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5263 goto tmp2_done;
5264 }
5265 }
5266 goto tmp2_end;
5267 tmp2_end: ;
5268 }
5269 goto goto_1;
5270 tmp2_done:
5271 (void)tmp3;
5272 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
5273 goto tmp2_done2;
5274 goto_1:;
5275 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
5276 if (++tmp3 < 4) {
5277 goto tmp2_top;
5278 }
5279 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5280 tmp2_done2:;
5281 }
5282 }
5283 _outSets = tmpMeta[0];
5284 _return: OMC_LABEL_UNUSED__attribute__((unused))
5285 return _outSets;
5286}
5287PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_InnerOuter_addOuterConnectIfEmptyNoEnv(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPre, modelica_metatype _inSets, modelica_metatype _added, modelica_metatype _cr1, modelica_metatype _iio1, modelica_metatype _f1, modelica_metatype _cr2, modelica_metatype _iio2, modelica_metatype _f2, modelica_metatype _info)
5288{
5289 modelica_integer tmp1;
5290 modelica_metatype _outSets = NULL((void*)0);
5291 tmp1 = mmc_unbox_integer(_added)(((mmc_sint_t) (_added)) >> 1);
5292 _outSets = omc_InnerOuter_addOuterConnectIfEmptyNoEnv(threadData, _inCache, _inEnv, _inIH, _inPre, _inSets, tmp1, _cr1, _iio1, _f1, _cr2, _iio2, _f2, _info);
5293 /* skip box _outSets; DAE.Connect.Sets */
5294 return _outSets;
5295}
5296
5297PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_addOuterConnectIfEmpty(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _pre, modelica_metatype _inSets, modelica_boolean _added, modelica_metatype _cr1, modelica_metatype _iio1, modelica_metatype _f1, modelica_metatype _cr2, modelica_metatype _iio2, modelica_metatype _f2, modelica_metatype _info, modelica_metatype _inCGraph, modelica_metatype *out_outCGraph)
5298{
5299 modelica_metatype _outSets = NULL((void*)0);
5300 modelica_metatype _outCGraph = NULL((void*)0);
5301 modelica_metatype tmpMeta[12] __attribute__((unused)) = {0};
5302 MMC_SO()mmc_check_stackoverflow(threadData);
5303 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5304 // _outSets has no default value.
5305 // _outCGraph has no default value.
5306#line 581 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5307
5308#line 581 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5309
5310#line 5310 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5311 { /* match expression */
5312 modelica_metatype tmp4_1;modelica_metatype tmp4_2;modelica_metatype tmp4_3;modelica_metatype tmp4_4;modelica_boolean tmp4_5;modelica_metatype tmp4_6;modelica_metatype tmp4_7;modelica_metatype tmp4_8;
5313 tmp4_1 = _inCache;
5314 tmp4_2 = _inEnv;
5315 tmp4_3 = _inIH;
5316 tmp4_4 = _inSets;
5317 tmp4_5 = _added;
5318 tmp4_6 = _iio1;
5319 tmp4_7 = _iio2;
5320 tmp4_8 = _inCGraph;
5321 {
5322 modelica_metatype _vt1 = NULL((void*)0);
5323 modelica_metatype _vt2 = NULL((void*)0);
5324 modelica_metatype _t1 = NULL((void*)0);
5325 modelica_metatype _t2 = NULL((void*)0);
5326 modelica_metatype _ct = NULL((void*)0);
5327 modelica_metatype _ih = NULL((void*)0);
5328 modelica_metatype _sets = NULL((void*)0);
5329 modelica_integer _sc;
5330 modelica_metatype _cl = NULL((void*)0);
5331 modelica_metatype _oc = NULL((void*)0);
5332 modelica_metatype _cache = NULL((void*)0);
5333 modelica_metatype _env = NULL((void*)0);
5334 modelica_metatype _io1 = NULL((void*)0);
5335 modelica_metatype _io2 = NULL((void*)0);
5336 modelica_metatype _graph = NULL((void*)0);
5337 volatile mmc_switch_type tmp4;
5338 int tmp5;
5339 // _vt1 has no default value.
5340 // _vt2 has no default value.
5341 // _t1 has no default value.
5342 // _t2 has no default value.
5343 // _ct has no default value.
5344 // _ih has no default value.
5345 // _sets has no default value.
5346 // _sc has no default value.
5347 // _cl has no default value.
5348 // _oc has no default value.
5349 // _cache has no default value.
5350 // _env has no default value.
5351 // _io1 has no default value.
5352 // _io2 has no default value.
5353 // _graph has no default value.
5354 tmp4 = 0;
5355 for (; tmp4 < 2; tmp4++) {
5356 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
5357 case 0: {
5358 if (1 != tmp4_5) goto tmp3_end;
5359
5360 /* Pattern matching succeeded */
5361#line 599 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5362 tmpMeta[0+0] = _inSets;
5363#line 599 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5364 tmpMeta[0+1] = _inCGraph;
5365#line 5365 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5366 goto tmp3_done;
5367 }
5368 case 1: {
5369 modelica_integer tmp6;
5370 modelica_integer tmp7;
5371 if (0 != tmp4_5) goto tmp3_end;
5372 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_4), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_4) - 3))) +
(2)))))
;
5373 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_4), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_4) - 3))) +
(3)))))
;
5374 tmp6 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
5375 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_4), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_4) - 3))) +
(4)))))
;
5376 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_4), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_4) - 3))) +
(5)))))
;
5377
5378 _cache = tmp4_1;
5379 _env = tmp4_2;
5380 _ih = tmp4_3;
5381 _sets = tmpMeta[2];
5382 _sc = tmp6 /* pattern as ty=Integer */;
5383 _cl = tmpMeta[4];
5384 _oc = tmpMeta[5];
5385 _io1 = tmp4_6;
5386 _io2 = tmp4_7;
5387 _graph = tmp4_8;
5388 /* Pattern matching succeeded */
5389#line 604 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5390 /* Pattern-matching tuple assignment */
5391#line 604 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5392 tmpMeta[6] = omc_Lookup_lookupVar(threadData, _cache, _env, _cr1, &tmpMeta[2], &tmpMeta[5], NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0));
5393#line 604 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5394 _cache = tmpMeta[6];
5395#line 604 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5396 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
5397#line 604 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5398 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (4)))))
;
5399#line 604 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5400 _ct = tmpMeta[3];
5401#line 604 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5402 _vt1 = tmpMeta[4];
5403#line 604 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5404 _t1 = tmpMeta[5];
5405#line 5405 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5406
5407#line 605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5408 /* Pattern-matching tuple assignment */
5409#line 605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5410 tmpMeta[5] = omc_Lookup_lookupVar(threadData, _cache, _env, _cr2, &tmpMeta[2], &tmpMeta[4], NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0), NULL((void*)0));
5411#line 605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5412 _cache = tmpMeta[5];
5413#line 605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5414 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (4)))))
;
5415#line 605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5416 _vt2 = tmpMeta[3];
5417#line 605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5418 _t2 = tmpMeta[4];
5419#line 5419 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5420
5421#line 606 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5422 _io1 = omc_InnerOuter_removeOuter(threadData, _io1);
5423#line 5423 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5424
5425#line 607 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5426 _io2 = omc_InnerOuter_removeOuter(threadData, _io2);
5427#line 5427 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5428
5429#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5430 /* Pattern-matching tuple assignment */
5431#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5432 tmpMeta[9] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
5433#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5434 tmpMeta[10] = mmc_mk_box5(3, &DAE_Connect_Sets_SETS__desc, _sets, mmc_mk_integermmc_mk_icon(_sc), _cl, tmpMeta[9]);
5435#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5436 tmpMeta[11] = omc_InstSection_connectComponents(threadData, _cache, _env, _ih, tmpMeta[10], _pre, _cr1, _f1, _t1, _vt1, _cr2, _f2, _t2, _vt2, _ct, _io1, _io2, _graph, _info, &tmpMeta[2], &tmpMeta[3], &tmpMeta[4], NULL((void*)0), &tmpMeta[8]);
5437#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5438 _cache = tmpMeta[11];
5439#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5440 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
5441#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5442 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (3)))))
;
5443#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5444 tmp7 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
5445#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5446 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (4)))))
;
5447#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5448 _env = tmpMeta[2];
5449#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5450 _ih = tmpMeta[3];
5451#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5452 _sets = tmpMeta[5];
5453#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5454 _sc = tmp7 /* pattern as ty=Integer */;
5455#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5456 _cl = tmpMeta[7];
5457#line 608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5458 _graph = tmpMeta[8];
5459#line 5459 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5460#line 615 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5461 tmpMeta[2] = mmc_mk_box5(3, &DAE_Connect_Sets_SETS__desc, _sets, mmc_mk_integermmc_mk_icon(_sc), _cl, _oc);
5462#line 615 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5463 tmpMeta[0+0] = tmpMeta[2];
5464#line 615 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5465 tmpMeta[0+1] = _graph;
5466#line 5466 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5467 goto tmp3_done;
5468 }
5469 }
5470 goto tmp3_end;
5471 tmp3_end: ;
5472 }
5473 goto goto_2;
5474 goto_2:;
5475 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5476 goto tmp3_done;
5477 tmp3_done:;
5478 }
5479 }
5480 _outSets = tmpMeta[0+0];
5481 _outCGraph = tmpMeta[0+1];
5482 _return: OMC_LABEL_UNUSED__attribute__((unused))
5483 if (out_outCGraph) { *out_outCGraph = _outCGraph; }
5484 return _outSets;
5485}
5486PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_InnerOuter_addOuterConnectIfEmpty(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _pre, modelica_metatype _inSets, modelica_metatype _added, modelica_metatype _cr1, modelica_metatype _iio1, modelica_metatype _f1, modelica_metatype _cr2, modelica_metatype _iio2, modelica_metatype _f2, modelica_metatype _info, modelica_metatype _inCGraph, modelica_metatype *out_outCGraph)
5487{
5488 modelica_integer tmp1;
5489 modelica_metatype _outSets = NULL((void*)0);
5490 tmp1 = mmc_unbox_integer(_added)(((mmc_sint_t) (_added)) >> 1);
5491 _outSets = omc_InnerOuter_addOuterConnectIfEmpty(threadData, _inCache, _inEnv, _inIH, _pre, _inSets, tmp1, _cr1, _iio1, _f1, _cr2, _iio2, _f2, _info, _inCGraph, out_outCGraph);
5492 /* skip box _outSets; DAE.Connect.Sets */
5493 /* skip box _outCGraph; ConnectionGraph.ConnectionGraph */
5494 return _outSets;
5495}
5496
5497PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_convertInnerOuterInnerToOuter(threadData_t *threadData, modelica_metatype _io)
5498{
5499 modelica_metatype _oio = NULL((void*)0);
5500 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
5501 MMC_SO()mmc_check_stackoverflow(threadData);
5502 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5503 // _oio has no default value.
5504#line 5504 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5505 { /* match expression */
5506 modelica_metatype tmp3_1;
5507 tmp3_1 = _io;
5508 {
5509 volatile mmc_switch_type tmp3;
5510 int tmp4;
5511 tmp3 = 0;
5512 for (; tmp3 < 2; tmp3++) {
5513 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5514 case 0: {
5515 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((0 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5516 /* Pattern matching succeeded */
5517#line 551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5518 tmpMeta[0] = _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3));
5519#line 5519 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5520 goto tmp2_done;
5521 }
5522 case 1: {
5523
5524 /* Pattern matching succeeded */
5525#line 552 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5526 tmpMeta[0] = _io;
5527#line 5527 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5528 goto tmp2_done;
5529 }
5530 }
5531 goto tmp2_end;
5532 tmp2_end: ;
5533 }
5534 goto goto_1;
5535 goto_1:;
5536 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5537 goto tmp2_done;
5538 tmp2_done:;
5539 }
5540 }
5541 _oio = tmpMeta[0];
5542 _return: OMC_LABEL_UNUSED__attribute__((unused))
5543 return _oio;
5544}
5545
5546PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_retrieveOuterConnections2(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inOuterConnects, modelica_metatype _inSets, modelica_boolean _inTopCall, modelica_metatype _inCGraph, modelica_metatype *out_outSets, modelica_metatype *out_outInnerOuterConnects, modelica_metatype *out_outCGraph)
5547{
5548 modelica_metatype _outOuterConnects = NULL((void*)0);
5549 modelica_metatype _outSets = NULL((void*)0);
5550 modelica_metatype _outInnerOuterConnects = NULL((void*)0);
5551 modelica_metatype _outCGraph = NULL((void*)0);
5552 modelica_metatype tmpMeta[15] __attribute__((unused)) = {0};
5553 MMC_SO()mmc_check_stackoverflow(threadData);
5554 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5555 // _outOuterConnects has no default value.
5556 // _outSets has no default value.
5557 // _outInnerOuterConnects has no default value.
5558 // _outCGraph has no default value.
5559#line 466 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5560
5561#line 466 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5562
5563#line 466 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5564
5565#line 466 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5566
5567#line 5567 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5568 { /* matchcontinue expression */
5569 volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;volatile modelica_boolean tmp4_3;volatile modelica_metatype tmp4_4;
5570 tmp4_1 = _inOuterConnects;
5571 tmp4_2 = _inSets;
5572 tmp4_3 = _inTopCall;
5573 tmp4_4 = _inCGraph;
5574 {
5575 modelica_metatype _cr1 = NULL((void*)0);
5576 modelica_metatype _cr2 = NULL((void*)0);
5577 modelica_metatype _io1 = NULL((void*)0);
5578 modelica_metatype _io2 = NULL((void*)0);
5579 modelica_metatype _f1 = NULL((void*)0);
5580 modelica_metatype _f2 = NULL((void*)0);
5581 modelica_metatype _oc = NULL((void*)0);
5582 modelica_metatype _rest_oc = NULL((void*)0);
5583 modelica_metatype _ioc = NULL((void*)0);
5584 modelica_boolean _inner1;
5585 modelica_boolean _inner2;
5586 modelica_boolean _outer1;
5587 modelica_boolean _outer2;
5588 modelica_boolean _added;
5589 modelica_metatype _scope = NULL((void*)0);
5590 modelica_metatype _source = NULL((void*)0);
5591 modelica_metatype _info = NULL((void*)0);
5592 modelica_metatype _sets = NULL((void*)0);
5593 modelica_metatype _graph = NULL((void*)0);
5594 volatile mmc_switch_type tmp4;
5595 int tmp5;
5596 // _cr1 has no default value.
5597 // _cr2 has no default value.
5598 // _io1 has no default value.
5599 // _io2 has no default value.
5600 // _f1 has no default value.
5601 // _f2 has no default value.
5602 // _oc has no default value.
5603 // _rest_oc has no default value.
5604 // _ioc has no default value.
5605 // _inner1 has no default value.
5606 // _inner2 has no default value.
5607 // _outer1 has no default value.
5608 // _outer2 has no default value.
5609 // _added has no default value.
5610 // _scope has no default value.
5611 // _source has no default value.
5612 // _info has no default value.
5613 // _sets has no default value.
5614 // _graph has no default value.
5615 tmp4 = 0;
5616 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) {
5617 tmp3_top:
5618 threadData->mmc_jumper = &new_mmc_jumper;
5619 for (; tmp4 < 4; tmp4++) {
5620 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
5621 case 0: {
5622 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
5623
5624 tmp4 += 3; /* Pattern matching succeeded; we may skip some cases if we fail */
5625#line 482 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5626 tmpMeta[4] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
5627#line 482 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5628 tmpMeta[0+0] = _inOuterConnects;
5629#line 482 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5630 tmpMeta[0+1] = _inSets;
5631#line 482 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5632 tmpMeta[0+2] = tmpMeta[4];
5633#line 482 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5634 tmpMeta[0+3] = _inCGraph;
5635#line 5635 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5636 goto tmp3_done;
5637 }
5638 case 1: {
5639 modelica_boolean tmp6;
5640 modelica_boolean tmp7;
5641 modelica_boolean tmp8;
5642 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
5643 tmpMeta[4] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
5644 tmpMeta[5] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
5645 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
5646 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (3)))))
;
5647 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (4)))))
;
5648 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (5)))))
;
5649 tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (6)))))
;
5650 tmpMeta[11] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (7)))))
;
5651 tmpMeta[12] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (8)))))
;
5652 tmpMeta[13] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (9)))))
;
5653 tmpMeta[14] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[13]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[13]) - 3
))) + (2)))))
;
5654
5655 _scope = tmpMeta[6];
5656 _cr1 = tmpMeta[7];
5657 _io1 = tmpMeta[8];
5658 _f1 = tmpMeta[9];
5659 _cr2 = tmpMeta[10];
5660 _io2 = tmpMeta[11];
5661 _f2 = tmpMeta[12];
5662 _source = tmpMeta[13];
5663 _info = tmpMeta[14];
5664 _rest_oc = tmpMeta[5];
5665 _sets = tmp4_2;
5666 _graph = tmp4_4;
5667 /* Pattern matching succeeded */
5668#line 488 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5669 _inner1 = omc_InnerOuter_lookupVarInnerOuterAttr(threadData, _inCache, _inEnv, _inIH, _cr1, _cr2 ,&_outer1);
5670#line 5670 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5671
5672#line 490 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5673 /* Pattern-matching assignment */
5674#line 490 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5675 tmp6 = _inner1;
5676#line 490 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5677 if (1 != tmp6) goto goto_2;
5678#line 5678 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5679
5680#line 491 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5681 /* Pattern-matching assignment */
5682#line 491 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5683 tmp7 = _outer1;
5684#line 491 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5685 if (0 != tmp7) goto goto_2;
5686#line 5686 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5687
5688#line 494 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5689 _cr1 = omc_InnerOuter_removeInnerPrefixFromCref(threadData, _inPrefix, _cr1);
5690#line 5690 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5691
5692#line 495 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5693 _cr2 = omc_InnerOuter_removeInnerPrefixFromCref(threadData, _inPrefix, _cr2);
5694#line 5694 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5695
5696#line 497 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5697 _sets = omc_ConnectUtil_addOuterConnectToSets(threadData, _cr1, _cr2, _io1, _io2, _f1, _f2, _sets, _info ,&_added);
5698#line 5698 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5699
5700#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5701 _sets = omc_InnerOuter_addOuterConnectIfEmpty(threadData, _inCache, _inEnv, _inIH, _inPrefix, _sets, _added, _cr1, _io1, _f1, _cr2, _io2, _f2, _info, _graph ,&_graph);
5702#line 5702 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5703
5704#line 503 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5705 _rest_oc = omc_InnerOuter_retrieveOuterConnections2(threadData, _inCache, _inEnv, _inIH, _inPrefix, _rest_oc, _sets, _inTopCall, _graph ,&_sets ,&_ioc ,&_graph);
5706#line 5706 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5707
5708#line 507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5709 tmp8 = (modelica_boolean)_outer1;
5710#line 507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5711 if(tmp8)
5712#line 507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5713 {
5714#line 507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5715 tmpMeta[5] = mmc_mk_box9(3, &DAE_Connect_OuterConnect_OUTERCONNECT__desc, _scope, _cr1, _io1, _f1, _cr2, _io2, _f2, _source);
5716#line 507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5717 tmpMeta[4] = mmc_mk_cons(tmpMeta[5], _rest_oc);
5718#line 507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5719 tmpMeta[6] = tmpMeta[4];
5720#line 507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5721 }
5722#line 507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5723 else
5724#line 507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5725 {
5726#line 507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5727 tmpMeta[6] = _rest_oc;
5728#line 507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5729 }
5730#line 507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5731 _rest_oc = tmpMeta[6];
5732#line 5732 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5733#line 508 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5734 tmpMeta[0+0] = _rest_oc;
5735#line 508 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5736 tmpMeta[0+1] = _sets;
5737#line 508 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5738 tmpMeta[0+2] = _ioc;
5739#line 508 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5740 tmpMeta[0+3] = _graph;
5741#line 5741 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5742 goto tmp3_done;
5743 }
5744 case 2: {
5745 modelica_boolean tmp9;
5746 modelica_boolean tmp10;
5747 if (1 != tmp4_3) goto tmp3_end;
5748 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
5749 tmpMeta[4] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
5750 tmpMeta[5] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
5751 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (3)))))
;
5752 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (4)))))
;
5753 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (5)))))
;
5754 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (6)))))
;
5755 tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (7)))))
;
5756 tmpMeta[11] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (8)))))
;
5757 tmpMeta[12] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[4]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (9)))))
;
5758 tmpMeta[13] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[12]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[12]) - 3
))) + (2)))))
;
5759
5760 _cr1 = tmpMeta[6];
5761 _io1 = tmpMeta[7];
5762 _f1 = tmpMeta[8];
5763 _cr2 = tmpMeta[9];
5764 _io2 = tmpMeta[10];
5765 _f2 = tmpMeta[11];
5766 _info = tmpMeta[13];
5767 _rest_oc = tmpMeta[5];
5768 _sets = tmp4_2;
5769 _graph = tmp4_4;
5770 /* Pattern matching succeeded */
5771#line 515 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5772 _inner1 = omc_InnerOuter_innerOuterBooleans(threadData, _io1 ,&_outer1);
5773#line 5773 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5774
5775#line 516 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5776 _inner2 = omc_InnerOuter_innerOuterBooleans(threadData, _io2 ,&_outer2);
5777#line 5777 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5778
5779#line 517 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5780 /* Pattern-matching assignment */
5781#line 517 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5782 tmp9 = (_inner1 || _inner2);
5783#line 517 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5784 if (1 != tmp9) goto goto_2;
5785#line 5785 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5786
5787#line 518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5788 /* Pattern-matching assignment */
5789#line 518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5790 tmp10 = (_outer1 || _outer2);
5791#line 518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5792 if (0 != tmp10) goto goto_2;
5793#line 5793 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5794
5795#line 520 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5796 _io1 = omc_InnerOuter_convertInnerOuterInnerToOuter(threadData, _io1);
5797#line 5797 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5798
5799#line 521 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5800 _io2 = omc_InnerOuter_convertInnerOuterInnerToOuter(threadData, _io2);
5801#line 5801 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5802
5803#line 523 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5804 _sets = omc_ConnectUtil_addOuterConnectToSets(threadData, _cr1, _cr2, _io1, _io2, _f1, _f2, _sets, _info ,&_added);
5805#line 5805 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5806
5807#line 525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5808 _sets = omc_InnerOuter_addOuterConnectIfEmpty(threadData, _inCache, _inEnv, _inIH, _inPrefix, _sets, _added, _cr1, _io1, _f1, _cr2, _io2, _f2, _info, _graph ,&_graph);
5809#line 5809 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5810#line 527 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5811 tmpMeta[0+0] = omc_InnerOuter_retrieveOuterConnections2(threadData, _inCache, _inEnv, _inIH, _inPrefix, _rest_oc, _sets, 1, _graph, &tmpMeta[0+1], &tmpMeta[0+2], &tmpMeta[0+3]);
5812#line 5812 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5813 goto tmp3_done;
5814 }
5815 case 3: {
5816 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
5817 tmpMeta[4] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
5818 tmpMeta[5] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
5819
5820 _oc = tmpMeta[4];
5821 _rest_oc = tmpMeta[5];
5822 _sets = tmp4_2;
5823 _graph = tmp4_4;
5824 /* Pattern matching succeeded */
5825#line 535 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5826 _rest_oc = omc_InnerOuter_retrieveOuterConnections2(threadData, _inCache, _inEnv, _inIH, _inPrefix, _rest_oc, _sets, _inTopCall, _graph ,&_sets ,&_ioc ,&_graph);
5827#line 5827 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5828#line 537 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5829 tmpMeta[4] = mmc_mk_cons(_oc, _rest_oc);
5830#line 537 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5831 tmpMeta[0+0] = tmpMeta[4];
5832#line 537 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5833 tmpMeta[0+1] = _sets;
5834#line 537 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5835 tmpMeta[0+2] = _ioc;
5836#line 537 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5837 tmpMeta[0+3] = _graph;
5838#line 5838 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5839 goto tmp3_done;
5840 }
5841 }
5842 goto tmp3_end;
5843 tmp3_end: ;
5844 }
5845 goto goto_2;
5846 tmp3_done:
5847 (void)tmp4;
5848 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
5849 goto tmp3_done2;
5850 goto_2:;
5851 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
5852 if (++tmp4 < 4) {
5853 goto tmp3_top;
5854 }
5855 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5856 tmp3_done2:;
5857 }
5858 }
5859 _outOuterConnects = tmpMeta[0+0];
5860 _outSets = tmpMeta[0+1];
5861 _outInnerOuterConnects = tmpMeta[0+2];
5862 _outCGraph = tmpMeta[0+3];
5863 _return: OMC_LABEL_UNUSED__attribute__((unused))
5864 if (out_outSets) { *out_outSets = _outSets; }
5865 if (out_outInnerOuterConnects) { *out_outInnerOuterConnects = _outInnerOuterConnects; }
5866 if (out_outCGraph) { *out_outCGraph = _outCGraph; }
5867 return _outOuterConnects;
5868}
5869PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_InnerOuter_retrieveOuterConnections2(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inOuterConnects, modelica_metatype _inSets, modelica_metatype _inTopCall, modelica_metatype _inCGraph, modelica_metatype *out_outSets, modelica_metatype *out_outInnerOuterConnects, modelica_metatype *out_outCGraph)
5870{
5871 modelica_integer tmp1;
5872 modelica_metatype _outOuterConnects = NULL((void*)0);
5873 tmp1 = mmc_unbox_integer(_inTopCall)(((mmc_sint_t) (_inTopCall)) >> 1);
5874 _outOuterConnects = omc_InnerOuter_retrieveOuterConnections2(threadData, _inCache, _inEnv, _inIH, _inPrefix, _inOuterConnects, _inSets, tmp1, _inCGraph, out_outSets, out_outInnerOuterConnects, out_outCGraph);
5875 /* skip box _outOuterConnects; list<DAE.Connect.OuterConnect> */
5876 /* skip box _outSets; DAE.Connect.Sets */
5877 /* skip box _outInnerOuterConnects; list<DAE.Connect.OuterConnect> */
5878 /* skip box _outCGraph; ConnectionGraph.ConnectionGraph */
5879 return _outOuterConnects;
5880}
5881
5882PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_removeInnerPrefixFromCref(threadData_t *threadData, modelica_metatype _inPrefix, modelica_metatype _inCref)
5883{
5884 modelica_metatype _outCref = NULL((void*)0);
5885 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
5886 MMC_SO()mmc_check_stackoverflow(threadData);
5887 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5888 // _outCref has no default value.
5889#line 5889 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5890 { /* matchcontinue expression */
5891 volatile modelica_metatype tmp3_1;
5892 tmp3_1 = _inPrefix;
5893 {
5894 modelica_metatype _crefPrefix = NULL((void*)0);
5895 volatile mmc_switch_type tmp3;
5896 int tmp4;
5897 // _crefPrefix has no default value.
5898 tmp3 = 0;
5899 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) {
5900 tmp2_top:
5901 threadData->mmc_jumper = &new_mmc_jumper;
5902 for (; tmp3 < 3; tmp3++) {
5903 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5904 case 0: {
5905 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((0 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
5906 /* Pattern matching succeeded */
5907#line 428 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5908 tmpMeta[0] = _inCref;
5909#line 5909 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5910 goto tmp2_done;
5911 }
5912 case 1: {
5913
5914 /* Pattern matching succeeded */
5915#line 434 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5916 _crefPrefix = omc_PrefixUtil_prefixToCref(threadData, _inPrefix);
5917#line 5917 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5918#line 436 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5919 tmpMeta[0] = omc_ComponentReference_crefStripPrefix(threadData, _inCref, _crefPrefix);
5920#line 5920 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5921 goto tmp2_done;
5922 }
5923 case 2: {
5924
5925 /* Pattern matching succeeded */
5926#line 446 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5927 tmpMeta[0] = _inCref;
5928#line 5928 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5929 goto tmp2_done;
5930 }
5931 }
5932 goto tmp2_end;
5933 tmp2_end: ;
5934 }
5935 goto goto_1;
5936 tmp2_done:
5937 (void)tmp3;
5938 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
5939 goto tmp2_done2;
5940 goto_1:;
5941 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
5942 if (++tmp3 < 3) {
5943 goto tmp2_top;
5944 }
5945 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5946 tmp2_done2:;
5947 }
5948 }
5949 _outCref = tmpMeta[0];
5950 _return: OMC_LABEL_UNUSED__attribute__((unused))
5951 return _outCref;
5952}
5953
5954DLLExport
5955modelica_metatype omc_InnerOuter_retrieveOuterConnections(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inSets, modelica_boolean _inTopCall, modelica_metatype _inCGraph, modelica_metatype *out_outInnerOuterConnects, modelica_metatype *out_outCGraph)
5956{
5957 modelica_metatype _outSets = NULL((void*)0);
5958 modelica_metatype _outInnerOuterConnects = NULL((void*)0);
5959 modelica_metatype _outCGraph = NULL((void*)0);
5960 modelica_metatype _oc = NULL((void*)0);
5961 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
5962 MMC_SO()mmc_check_stackoverflow(threadData);
5963 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5964 // _outSets has no default value.
5965 // _outInnerOuterConnects has no default value.
5966 // _outCGraph has no default value.
5967 // _oc has no default value.
5968#line 410 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5969 /* Pattern-matching assignment */
5970#line 410 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5971 tmpMeta[0] = _inSets;
5972#line 410 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5973 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
5974#line 410 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5975 _oc = tmpMeta[1];
5976#line 5976 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5977
5978#line 411 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5979 _oc = omc_InnerOuter_retrieveOuterConnections2(threadData, _inCache, _inEnv, _inIH, _inPrefix, _oc, _inSets, _inTopCall, _inCGraph ,&_outSets ,&_outInnerOuterConnects ,&_outCGraph);
5980#line 5980 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5981
5982#line 413 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5983 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(6))((void*)((char*)(mmc_alloc_words(6)) + 3));
5984#line 413 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5985 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_outSets)((void*)((char*)(_outSets) - 3)), 6*sizeof(modelica_metatype));
5986#line 413 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5987 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[5] = _oc;
5988#line 413 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
5989 _outSets = tmpMeta[0];
5990#line 5990 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
5991 _return: OMC_LABEL_UNUSED__attribute__((unused))
5992 if (out_outInnerOuterConnects) { *out_outInnerOuterConnects = _outInnerOuterConnects; }
5993 if (out_outCGraph) { *out_outCGraph = _outCGraph; }
5994 return _outSets;
5995}
5996modelica_metatype boxptr_InnerOuter_retrieveOuterConnections(threadData_t *threadData, modelica_metatype _inCache, modelica_metatype _inEnv, modelica_metatype _inIH, modelica_metatype _inPrefix, modelica_metatype _inSets, modelica_metatype _inTopCall, modelica_metatype _inCGraph, modelica_metatype *out_outInnerOuterConnects, modelica_metatype *out_outCGraph)
5997{
5998 modelica_integer tmp1;
5999 modelica_metatype _outSets = NULL((void*)0);
6000 tmp1 = mmc_unbox_integer(_inTopCall)(((mmc_sint_t) (_inTopCall)) >> 1);
6001 _outSets = omc_InnerOuter_retrieveOuterConnections(threadData, _inCache, _inEnv, _inIH, _inPrefix, _inSets, tmp1, _inCGraph, out_outInnerOuterConnects, out_outCGraph);
6002 /* skip box _outSets; DAE.Connect.Sets */
6003 /* skip box _outInnerOuterConnects; list<DAE.Connect.OuterConnect> */
6004 /* skip box _outCGraph; ConnectionGraph.ConnectionGraph */
6005 return _outSets;
6006}
6007
6008DLLExport
6009modelica_metatype omc_InnerOuter_renameUniqueVarsInTopScope(threadData_t *threadData, modelica_boolean _isTopScope, modelica_metatype _dae)
6010{
6011 modelica_metatype _odae = NULL((void*)0);
6012 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
6013 MMC_SO()mmc_check_stackoverflow(threadData);
6014 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
6015 // _odae has no default value.
6016#line 6016 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
6017 { /* matchcontinue expression */
6018 volatile modelica_boolean tmp3_1;
6019 tmp3_1 = _isTopScope;
6020 {
6021 volatile mmc_switch_type tmp3;
6022 int tmp4;
6023 tmp3 = 0;
6024 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) {
6025 tmp2_top:
6026 threadData->mmc_jumper = &new_mmc_jumper;
6027 for (; tmp3 < 3; tmp3++) {
6028 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
6029 case 0: {
6030 modelica_boolean tmp5;
6031
6032 /* Pattern matching succeeded */
6033#line 380 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6034 /* Pattern-matching assignment */
6035#line 380 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6036 tmp5 = omc_System_getHasInnerOuterDefinitions(threadData);
6037#line 380 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6038 if (0 != tmp5) goto goto_1;
6039#line 6039 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
6040#line 381 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6041 tmpMeta[0] = _dae;
6042#line 6042 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
6043 goto tmp2_done;
6044 }
6045 case 1: {
6046 if (1 != tmp3_1) goto tmp2_end;
6047 tmp3 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
6048#line 384 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6049 tmpMeta[0] = omc_DAEUtil_renameUniqueOuterVars(threadData, _dae);
6050#line 6050 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
6051 goto tmp2_done;
6052 }
6053 case 2: {
6054 if (0 != tmp3_1) goto tmp2_end;
6055 /* Pattern matching succeeded */
6056#line 386 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6057 tmpMeta[0] = _dae;
6058#line 6058 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
6059 goto tmp2_done;
6060 }
6061 }
6062 goto tmp2_end;
6063 tmp2_end: ;
6064 }
6065 goto goto_1;
6066 tmp2_done:
6067 (void)tmp3;
6068 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
6069 goto tmp2_done2;
6070 goto_1:;
6071 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
6072 if (++tmp3 < 3) {
6073 goto tmp2_top;
6074 }
6075 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
6076 tmp2_done2:;
6077 }
6078 }
6079 _odae = tmpMeta[0];
6080 _return: OMC_LABEL_UNUSED__attribute__((unused))
6081 return _odae;
6082}
6083modelica_metatype boxptr_InnerOuter_renameUniqueVarsInTopScope(threadData_t *threadData, modelica_metatype _isTopScope, modelica_metatype _dae)
6084{
6085 modelica_integer tmp1;
6086 modelica_metatype _odae = NULL((void*)0);
6087 tmp1 = mmc_unbox_integer(_isTopScope)(((mmc_sint_t) (_isTopScope)) >> 1);
6088 _odae = omc_InnerOuter_renameUniqueVarsInTopScope(threadData, tmp1, _dae);
6089 /* skip box _odae; DAE.DAElist */
6090 return _odae;
6091}
6092
6093PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_extractCommonPart(threadData_t *threadData, modelica_metatype _prefixedCref, modelica_metatype _innerCref)
6094{
6095 modelica_metatype _cr3 = NULL((void*)0);
6096 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
6097 MMC_SO()mmc_check_stackoverflow(threadData);
6098 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
6099 // _cr3 has no default value.
6100#line 6100 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
6101 { /* matchcontinue expression */
6102 {
6103 modelica_metatype _c1 = NULL((void*)0);
6104 modelica_metatype _c2 = NULL((void*)0);
6105 volatile mmc_switch_type tmp3;
6106 int tmp4;
6107 // _c1 has no default value.
6108 // _c2 has no default value.
6109 tmp3 = 0;
6110 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) {
6111 tmp2_top:
6112 threadData->mmc_jumper = &new_mmc_jumper;
6113 for (; tmp3 < 2; tmp3++) {
6114 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
6115 case 0: {
6116 modelica_boolean tmp5;
6117 /* Pattern matching succeeded */
6118#line 351 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6119 _c1 = omc_ComponentReference_crefLastCref(threadData, _prefixedCref);
6120#line 6120 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
6121
6122#line 352 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6123 _c2 = omc_ComponentReference_crefLastCref(threadData, _innerCref);
6124#line 6124 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
6125
6126#line 353 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6127 /* Pattern-matching assignment */
6128#line 353 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6129 tmp5 = omc_ComponentReference_crefEqual(threadData, _c1, _c2);
6130#line 353 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6131 if (1 != tmp5) goto goto_1;
6132#line 6132 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
6133#line 354 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6134 tmpMeta[0] = omc_ComponentReference_crefSetLastType(threadData, _innerCref, omc_ComponentReference_crefLastType(threadData, _prefixedCref));
6135#line 6135 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
6136 goto tmp2_done;
6137 }
6138 case 1: {
6139 /* Pattern matching succeeded */
6140#line 360 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6141 _c2 = omc_ComponentReference_crefStripLastIdent(threadData, _innerCref);
6142#line 6142 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
6143#line 361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6144 tmpMeta[0] = omc_InnerOuter_extractCommonPart(threadData, _prefixedCref, _c2);
6145#line 6145 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
6146 goto tmp2_done;
6147 }
6148 }
6149 goto tmp2_end;
6150 tmp2_end: ;
6151 }
6152 goto goto_1;
6153 tmp2_done:
6154 (void)tmp3;
6155 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
6156 goto tmp2_done2;
6157 goto_1:;
6158 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
6159 if (++tmp3 < 2) {
6160 goto tmp2_top;
6161 }
6162 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
6163 tmp2_done2:;
6164 }
6165 }
6166 _cr3 = tmpMeta[0];
6167 _return: OMC_LABEL_UNUSED__attribute__((unused))
6168 return _cr3;
6169}
6170
6171PROTECTED_FUNCTION_STATIC modelica_metatype omc_InnerOuter_stripCommonCrefPart(threadData_t *threadData, modelica_metatype _outerCr, modelica_metatype _innerCr, modelica_metatype *out_outInnerCr)
6172{
6173 modelica_metatype _outOuterCr = NULL((void*)0);
6174 modelica_metatype _outInnerCr = NULL((void*)0);
6175 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
6176 MMC_SO()mmc_check_stackoverflow(threadData);
6177 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
6178 // _outOuterCr has no default value.
6179 // _outInnerCr has no default value.
6180#line 318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6181
6182#line 318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/InnerOuter.mo"
6183
6184#line 6184 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/InnerOuter.c"
6185 { /* matchcontinue expression */
6186 volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
6187 tmp4_1 = _outerCr;
6188 tmp4_2 = _innerCr;
6189 {
6190 modelica_string _id1 = NULL((void*)0);
6191 modelica_string _id2 = NULL((void*)0);
6192 modelica_metatype _cr1 = NULL((void*)0);
6193 modelica_metatype _cr2 = NULL((void*)0);
6194 volatile mmc_switch_type tmp4;
6195 int tmp5;
6196 // _id1 has no default value.
6197 // _id2 has no default value.
6198 // _cr1 has no default value.
6199 // _cr2 has no default value.
6200 tmp4 = 0;
6201 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) {
6202 tmp3_top:
6203 threadData->mmc_jumper = &new_mmc_jumper;
6204 for (; tmp4 < 2; tmp4++) {
6205 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
6206 case 0: {
6207 modelica_boolean tmp6;
6208 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,4)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((4 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
6209 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
6210 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
6211 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,0,4)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((4 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
6212 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
6213 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(5)))))
;
6214 _id1 = tmpMeta[2];
6215 _cr1 = tmpMeta[3];
6216 _id2 = tmpMeta[4];
6217 _cr2 = tmpMeta[5];
6218 /* Pattern matching succeeded */
6219#line 326 "/var/lib/jenk