Bug Summary

File:OMCompiler/Compiler/boot/build/NFSCodeFlattenRedeclare.c
Warning:line 945, column 3
Value stored to '_vis1' 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/NFSCodeFlattenRedeclare.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/NFSCodeFlattenRedeclare.c" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "NFSCodeFlattenRedeclare.h"
8#define _OMC_LIT0_data"pushing: " "pushing: "
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,9,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "pushing: "
}
;
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" redeclare: " " redeclare: "
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,12,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), " redeclare: "
}
;
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"\n " "\n "
15static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,2,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "\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"into baseclases: " "into baseclases: "
18static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,17,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), "into baseclases: "
}
;
19#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
20#define _OMC_LIT4_data"." "."
21static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,1,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "."
}
;
22#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
23#define _OMC_LIT5_data", " ", "
24static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,2,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ", "
}
;
25#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
26#define _OMC_LIT6_data"called from env: " "called from env: "
27static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,17,_OMC_LIT6_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT6
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), "called from env: "
}
;
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"\n" "\n"
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)), "\n"
}
;
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"-----------------\n" "-----------------\n"
33static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,18,_OMC_LIT8_data)struct { mmc_uint_t header; const char data[(18)+1]; } _OMC_LIT_STRUCT8
= { ((((mmc_uint_t)18)<<(3))+((1<<(3+3))+5)), "-----------------\n"
}
;
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"tracePushRedeclareIntoExtends failed on element: " "tracePushRedeclareIntoExtends failed on element: "
36static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT9,49,_OMC_LIT9_data)struct { mmc_uint_t header; const char data[(49)+1]; } _OMC_LIT_STRUCT9
= { ((((mmc_uint_t)49)<<(3))+((1<<(3+3))+5)), "tracePushRedeclareIntoExtends failed on element: "
}
;
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"replacing element: " "replacing element: "
39static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT10,19,_OMC_LIT10_data)struct { mmc_uint_t header; const char data[(19)+1]; } _OMC_LIT_STRUCT10
= { ((((mmc_uint_t)19)<<(3))+((1<<(3+3))+5)), "replacing element: "
}
;
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" env: " " env: "
42static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT11,6,_OMC_LIT11_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT11
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), " env: "
}
;
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"Old Element:" "Old Element:"
45static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT12,12,_OMC_LIT12_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT12
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "Old Element:"
}
;
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"New Element:" "New Element:"
48static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT13,12,_OMC_LIT13_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT13
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "New Element:"
}
;
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" "\n===============\n"
51static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT14,17,_OMC_LIT14_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT14
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), "\n===============\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"traceReplaceElementInScope failed on element: " "traceReplaceElementInScope failed on element: "
54static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT15,46,_OMC_LIT15_data)struct { mmc_uint_t header; const char data[(46)+1]; } _OMC_LIT_STRUCT15
= { ((((mmc_uint_t)46)<<(3))+((1<<(3+3))+5)), "traceReplaceElementInScope failed on element: "
}
;
55#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
56static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT16,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT16
= { (((1) << 10) + (((5) & 255) << 2)),
{&ErrorTypes_MessageType_TRANSLATION__desc,}};
57#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
58static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT17,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT17
= { (((1) << 10) + (((4) & 255) << 2)),
{&ErrorTypes_Severity_ERROR__desc,}};
59#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
60#define _OMC_LIT18_data"Internal error %s" "Internal error %s"
61static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT18,17,_OMC_LIT18_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT18
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), "Internal error %s"
}
;
62#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
63static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT19,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT19
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))}};
64#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
65static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT20,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT20
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(63))((void*)(((((mmc_uint_t) (63)) << 1)+0))),_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)),_OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)),_OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))}};
66#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
67#define _OMC_LIT21_data"NFSCodeFlattenRedeclare.propagateAttributes failed on unknown item." "NFSCodeFlattenRedeclare.propagateAttributes failed on unknown item."
68static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT21,67,_OMC_LIT21_data)struct { mmc_uint_t header; const char data[(67)+1]; } _OMC_LIT_STRUCT21
= { ((((mmc_uint_t)67)<<(3))+((1<<(3+3))+5)), "NFSCodeFlattenRedeclare.propagateAttributes failed on unknown item."
}
;
69#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
70static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT22,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT22
= { (((2) << 10) + (((1) & 255) << 2)),
{_OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
71#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
72#define _OMC_LIT23_data"NFSCodeFlattenRedeclare.pushRedeclareIntoExtends2 couldn't find the base classes {" "NFSCodeFlattenRedeclare.pushRedeclareIntoExtends2 couldn't find the base classes {"
73static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,82,_OMC_LIT23_data)struct { mmc_uint_t header; const char data[(82)+1]; } _OMC_LIT_STRUCT23
= { ((((mmc_uint_t)82)<<(3))+((1<<(3+3))+5)), "NFSCodeFlattenRedeclare.pushRedeclareIntoExtends2 couldn't find the base classes {"
}
;
74#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
75#define _OMC_LIT24_data"} for " "} for "
76static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT24,6,_OMC_LIT24_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT24
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "} for "
}
;
77#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
78#define _OMC_LIT25_data"Modified element %s not found in class %s." "Modified element %s not found in class %s."
79static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT25,42,_OMC_LIT25_data)struct { mmc_uint_t header; const char data[(42)+1]; } _OMC_LIT_STRUCT25
= { ((((mmc_uint_t)42)<<(3))+((1<<(3+3))+5)), "Modified element %s not found in class %s."
}
;
80#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
81static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT26,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT26
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))}};
82#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
83static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT27,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT27
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(214))((void*)(((((mmc_uint_t) (214)) << 1)+0))),_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)),_OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)),_OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))}};
84#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
85#define _OMC_LIT28_data"failtrace" "failtrace"
86static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT28,9,_OMC_LIT28_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT28
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "failtrace"
}
;
87#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
88#define _OMC_LIT29_data"Sets whether to print a failtrace or not." "Sets whether to print a failtrace or not."
89static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,41,_OMC_LIT29_data)struct { mmc_uint_t header; const char data[(41)+1]; } _OMC_LIT_STRUCT29
= { ((((mmc_uint_t)41)<<(3))+((1<<(3+3))+5)), "Sets whether to print a failtrace or not."
}
;
90#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
91static 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))}};
92#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
93static 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(1))((void*)(((((mmc_uint_t) (1)) << 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))}};
94#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
95#define _OMC_LIT32_data"- NFSCodeFlattenRedeclare.replaceRedeclaredElementsInEnv failed for:\n " "- NFSCodeFlattenRedeclare.replaceRedeclaredElementsInEnv failed for:\n "
96static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT32,70,_OMC_LIT32_data)struct { mmc_uint_t header; const char data[(70)+1]; } _OMC_LIT_STRUCT32
= { ((((mmc_uint_t)70)<<(3))+((1<<(3+3))+5)), "- NFSCodeFlattenRedeclare.replaceRedeclaredElementsInEnv failed for:\n "
}
;
97#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
98#define _OMC_LIT33_data"redeclares: " "redeclares: "
99static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT33,12,_OMC_LIT33_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT33
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "redeclares: "
}
;
100#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
101#define _OMC_LIT34_data"\n---------\n" "\n---------\n"
102static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT34,11,_OMC_LIT34_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT34
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "\n---------\n"
}
;
103#define _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT34)((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))
104#define _OMC_LIT35_data"\n item: " "\n item: "
105static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT35,8,_OMC_LIT35_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT35
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "\n item: "
}
;
106#define _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT35)((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))
107#define _OMC_LIT36_data"\n in scope:" "\n in scope:"
108static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT36,11,_OMC_LIT36_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT36
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "\n in scope:"
}
;
109#define _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT36)((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))
110static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT37,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT37
= { (((2) << 10) + (((3) & 255) << 2)),
{&NFInstPrefix_Prefix_EMPTY__PREFIX__desc,MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3))}};
111#define _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT37)((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))
112static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT38,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT38
= { (((1) << 10) + (((3) & 255) << 2)),
{&NFSCodeEnv_ClassType_USERDEFINED__desc,}};
113#define _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT38)((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3))
114#define _OMC_LIT39_data"- NFSCodeFlattenRedeclare.processRedeclare failed on " "- NFSCodeFlattenRedeclare.processRedeclare failed on "
115static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT39,53,_OMC_LIT39_data)struct { mmc_uint_t header; const char data[(53)+1]; } _OMC_LIT_STRUCT39
= { ((((mmc_uint_t)53)<<(3))+((1<<(3+3))+5)), "- NFSCodeFlattenRedeclare.processRedeclare failed on "
}
;
116#define _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT39)((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))
117static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT40,10,3)struct { mmc_uint_t header; const void *data[10]; } _OMC_LIT_STRUCT40
= { (((10) << 10) + (((3) & 255) << 2)),
{&SCodeDump_SCodeDumpOptions_OPTIONS__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
118#define _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT40)((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))
119#define _OMC_LIT41_data" in " " in "
120static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT41,4,_OMC_LIT41_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT41
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), " in "
}
;
121#define _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT41)((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))
122#define _OMC_LIT42_data"Illegal redeclare of element %s, no inherited element with that name exists." "Illegal redeclare of element %s, no inherited element with that name exists."
123static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT42,76,_OMC_LIT42_data)struct { mmc_uint_t header; const char data[(76)+1]; } _OMC_LIT_STRUCT42
= { ((((mmc_uint_t)76)<<(3))+((1<<(3+3))+5)), "Illegal redeclare of element %s, no inherited element with that name exists."
}
;
124#define _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT42)((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3))
125static 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))}};
126#define _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT43)((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))
127static 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(228))((void*)(((((mmc_uint_t) (228)) << 1)+0))),_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)),_OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)),_OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))}};
128#define _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT44)((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))
129#define _OMC_LIT45_data"- NFSCodeFlattenRedeclare.addElementRedeclarationsToEnv failed for " "- NFSCodeFlattenRedeclare.addElementRedeclarationsToEnv failed for "
130static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT45,67,_OMC_LIT45_data)struct { mmc_uint_t header; const char data[(67)+1]; } _OMC_LIT_STRUCT45
= { ((((mmc_uint_t)67)<<(3))+((1<<(3+3))+5)), "- NFSCodeFlattenRedeclare.addElementRedeclarationsToEnv failed for "
}
;
131#define _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT45)((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))
132#include "util/modelica.h"
133
134#include "NFSCodeFlattenRedeclare_includes.h"
135
136
137/* default, do not make protected functions static */
138#if !defined(PROTECTED_FUNCTION_STATIC)
139#define PROTECTED_FUNCTION_STATIC
140#endif
141PROTECTED_FUNCTION_STATIC void omc_NFSCodeFlattenRedeclare_tracePushRedeclareIntoExtends(threadData_t *threadData, modelica_string _inName, modelica_metatype _inRedeclare, modelica_metatype _inBaseClasses, modelica_metatype _inEnv, modelica_metatype _inEtNew, modelica_metatype _inEtOld);
142static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_tracePushRedeclareIntoExtends,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_tracePushRedeclareIntoExtends
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_tracePushRedeclareIntoExtendsomc_NFSCodeFlattenRedeclare_tracePushRedeclareIntoExtends,0}};
143#define boxvar_NFSCodeFlattenRedeclare_tracePushRedeclareIntoExtends((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_tracePushRedeclareIntoExtends
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_tracePushRedeclareIntoExtends)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_tracePushRedeclareIntoExtends
).header) + 3))
144PROTECTED_FUNCTION_STATIC void omc_NFSCodeFlattenRedeclare_traceReplaceElementInScope(threadData_t *threadData, modelica_string _inElementName, modelica_metatype _inOldItem, modelica_metatype _inNewItem, modelica_metatype _inEnv);
145static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_traceReplaceElementInScope,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_traceReplaceElementInScope
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_traceReplaceElementInScopeomc_NFSCodeFlattenRedeclare_traceReplaceElementInScope,0}};
146#define boxvar_NFSCodeFlattenRedeclare_traceReplaceElementInScope((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_traceReplaceElementInScope
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_traceReplaceElementInScope)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_traceReplaceElementInScope
).header) + 3))
147PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateIsField(threadData_t *threadData, modelica_metatype _inOriginalIsField, modelica_metatype _inNewIsField);
148static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateIsField,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_propagateIsField
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_propagateIsFieldomc_NFSCodeFlattenRedeclare_propagateIsField,0}};
149#define boxvar_NFSCodeFlattenRedeclare_propagateIsField((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateIsField
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateIsField)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateIsField
).header) + 3))
150PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateDirection(threadData_t *threadData, modelica_metatype _inOriginalDirection, modelica_metatype _inNewDirection);
151static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateDirection,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_propagateDirection
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_propagateDirectionomc_NFSCodeFlattenRedeclare_propagateDirection,0}};
152#define boxvar_NFSCodeFlattenRedeclare_propagateDirection((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateDirection
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateDirection)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateDirection
).header) + 3))
153PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateVariability(threadData_t *threadData, modelica_metatype _inOriginalVariability, modelica_metatype _inNewVariability);
154static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateVariability,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_propagateVariability
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_propagateVariabilityomc_NFSCodeFlattenRedeclare_propagateVariability,0}};
155#define boxvar_NFSCodeFlattenRedeclare_propagateVariability((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateVariability
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateVariability)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateVariability
).header) + 3))
156PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateParallelism(threadData_t *threadData, modelica_metatype _inOriginalParallelism, modelica_metatype _inNewParallelism);
157static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateParallelism,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_propagateParallelism
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_propagateParallelismomc_NFSCodeFlattenRedeclare_propagateParallelism,0}};
158#define boxvar_NFSCodeFlattenRedeclare_propagateParallelism((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateParallelism
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateParallelism)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateParallelism
).header) + 3))
159PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateConnectorType(threadData_t *threadData, modelica_metatype _inOriginalConnectorType, modelica_metatype _inNewConnectorType);
160static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateConnectorType,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_propagateConnectorType
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_propagateConnectorTypeomc_NFSCodeFlattenRedeclare_propagateConnectorType,0}};
161#define boxvar_NFSCodeFlattenRedeclare_propagateConnectorType((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateConnectorType
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateConnectorType)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateConnectorType
).header) + 3))
162PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateArrayDimensions(threadData_t *threadData, modelica_metatype _inOriginalDims, modelica_metatype _inNewDims);
163static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateArrayDimensions,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_propagateArrayDimensions
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_propagateArrayDimensionsomc_NFSCodeFlattenRedeclare_propagateArrayDimensions,0}};
164#define boxvar_NFSCodeFlattenRedeclare_propagateArrayDimensions((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateArrayDimensions
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateArrayDimensions)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateArrayDimensions
).header) + 3))
165PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateAttributes(threadData_t *threadData, modelica_metatype _inOriginalAttributes, modelica_metatype _inNewAttributes);
166static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateAttributes,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_propagateAttributes
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_propagateAttributesomc_NFSCodeFlattenRedeclare_propagateAttributes,0}};
167#define boxvar_NFSCodeFlattenRedeclare_propagateAttributes((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateAttributes
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateAttributes)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateAttributes
).header) + 3))
168PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagatePrefixInnerOuter(threadData_t *threadData, modelica_metatype _inOriginalIO, modelica_metatype _inIO);
169static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagatePrefixInnerOuter,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_propagatePrefixInnerOuter
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_propagatePrefixInnerOuteromc_NFSCodeFlattenRedeclare_propagatePrefixInnerOuter,0}};
170#define boxvar_NFSCodeFlattenRedeclare_propagatePrefixInnerOuter((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagatePrefixInnerOuter
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagatePrefixInnerOuter)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagatePrefixInnerOuter
).header) + 3))
171PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagatePrefixes(threadData_t *threadData, modelica_metatype _inOriginalPrefixes, modelica_metatype _inNewPrefixes);
172static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagatePrefixes,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_propagatePrefixes
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_propagatePrefixesomc_NFSCodeFlattenRedeclare_propagatePrefixes,0}};
173#define boxvar_NFSCodeFlattenRedeclare_propagatePrefixes((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagatePrefixes
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagatePrefixes)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagatePrefixes
).header) + 3))
174PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateItemPrefixes(threadData_t *threadData, modelica_metatype _inOriginalItem, modelica_metatype _inNewItem);
175static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateItemPrefixes,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_propagateItemPrefixes
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_propagateItemPrefixesomc_NFSCodeFlattenRedeclare_propagateItemPrefixes,0}};
176#define boxvar_NFSCodeFlattenRedeclare_propagateItemPrefixes((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateItemPrefixes
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_propagateItemPrefixes)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_propagateItemPrefixes
).header) + 3))
177PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends3(threadData_t *threadData, modelica_metatype _inRedeclare, modelica_string _inName, modelica_metatype _inRedeclares, modelica_metatype _inOutRedeclares);
178static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends3,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends3
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends3omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends3,0}};
179#define boxvar_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends3((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends3
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends3)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends3
).header) + 3))
180PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends2(threadData_t *threadData, modelica_string _inName, modelica_metatype _inRedeclare, modelica_metatype _inBaseClasses, modelica_metatype _inExtends);
181static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends2omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends2,0}};
182#define boxvar_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends2((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends2)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends2
).header) + 3))
183PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends(threadData_t *threadData, modelica_string _inName, modelica_metatype _inRedeclare, modelica_metatype _inBaseClasses, modelica_metatype _inEnv);
184static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_pushRedeclareIntoExtendsomc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends,0}};
185#define boxvar_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends
).header) + 3))
186PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtendsNoFail(threadData_t *threadData, modelica_string _inName, modelica_metatype _inRedeclare, modelica_metatype _inEnv);
187static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtendsNoFail,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtendsNoFail
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_pushRedeclareIntoExtendsNoFailomc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtendsNoFail,0}};
188#define boxvar_NFSCodeFlattenRedeclare_pushRedeclareIntoExtendsNoFail((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtendsNoFail
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtendsNoFail)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_pushRedeclareIntoExtendsNoFail
).header) + 3))
189PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_replaceRedeclaredElementInEnv(threadData_t *threadData, modelica_metatype _inRedeclare, modelica_metatype _inEnv);
190static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_replaceRedeclaredElementInEnv,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_replaceRedeclaredElementInEnv
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_replaceRedeclaredElementInEnvomc_NFSCodeFlattenRedeclare_replaceRedeclaredElementInEnv,0}};
191#define boxvar_NFSCodeFlattenRedeclare_replaceRedeclaredElementInEnv((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_replaceRedeclaredElementInEnv
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_replaceRedeclaredElementInEnv)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_replaceRedeclaredElementInEnv
).header) + 3))
192PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_extractRedeclareFromSubMod(threadData_t *threadData, modelica_metatype _inMod, modelica_metatype _inRedeclares);
193static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_extractRedeclareFromSubMod,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_extractRedeclareFromSubMod
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_extractRedeclareFromSubModomc_NFSCodeFlattenRedeclare_extractRedeclareFromSubMod,0}};
194#define boxvar_NFSCodeFlattenRedeclare_extractRedeclareFromSubMod((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_extractRedeclareFromSubMod
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_extractRedeclareFromSubMod)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_extractRedeclareFromSubMod
).header) + 3))
195PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable2(threadData_t *threadData, modelica_metatype _inRedeclaredElement, modelica_metatype _inBaseClasses, modelica_metatype _inExtends);
196static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable2omc_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable2,0}};
197#define boxvar_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable2((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable2)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable2
).header) + 3))
198PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable(threadData_t *threadData, modelica_metatype _inRedeclaredElement, modelica_metatype _inBaseClasses, modelica_metatype _inEnv, modelica_metatype _inInfo);
199static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTableomc_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable,0}};
200#define boxvar_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable
).header) + 3))
201PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_lookupElementRedeclaration(threadData_t *threadData, modelica_string _inName, modelica_metatype _inEnv, modelica_metatype _inInfo);
202static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_lookupElementRedeclaration,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_lookupElementRedeclaration
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_lookupElementRedeclarationomc_NFSCodeFlattenRedeclare_lookupElementRedeclaration,0}};
203#define boxvar_NFSCodeFlattenRedeclare_lookupElementRedeclaration((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_lookupElementRedeclaration
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_lookupElementRedeclaration)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_lookupElementRedeclaration
).header) + 3))
204PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_addElementRedeclarationsToEnv2(threadData_t *threadData, modelica_metatype _inRedeclare, modelica_metatype _inEnv);
205static const MMC_DEFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_addElementRedeclarationsToEnv2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_NFSCodeFlattenRedeclare_addElementRedeclarationsToEnv2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_NFSCodeFlattenRedeclare_addElementRedeclarationsToEnv2omc_NFSCodeFlattenRedeclare_addElementRedeclarationsToEnv2,0}};
206#define boxvar_NFSCodeFlattenRedeclare_addElementRedeclarationsToEnv2((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_addElementRedeclarationsToEnv2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_NFSCodeFlattenRedeclare_addElementRedeclarationsToEnv2)((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_addElementRedeclarationsToEnv2
).header) + 3))
207
208PROTECTED_FUNCTION_STATIC void omc_NFSCodeFlattenRedeclare_tracePushRedeclareIntoExtends(threadData_t *threadData, modelica_string _inName, modelica_metatype _inRedeclare, modelica_metatype _inBaseClasses, modelica_metatype _inEnv, modelica_metatype _inEtNew, modelica_metatype _inEtOld)
209{
210 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
211 MMC_SO()mmc_check_stackoverflow(threadData);
212 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
213#line 213 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
214 { /* matchcontinue expression */
215 {
216 volatile mmc_switch_type tmp3;
217 int tmp4;
218 tmp3 = 0;
219 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) {
220 tmp2_top:
221 threadData->mmc_jumper = &new_mmc_jumper;
222 for (; tmp3 < 2; tmp3++) {
223 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
224 case 0: {
225 /* Pattern matching succeeded */
226#line 886 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
227 tmpMeta[0] = stringAppend(_OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)),_inName);
228#line 886 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
229 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
230#line 886 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
231 tmpMeta[2] = stringAppend(tmpMeta[1],omc_NFSCodeEnv_itemStr(threadData, _inRedeclare));
232#line 886 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
233 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)));
234#line 886 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
235 fputs(MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
,stdoutstdout);
236#line 236 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
237
238#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
239 {
240#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
241 modelica_metatype _D_24tmpVar1;
242#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
243 modelica_metatype* tmp5;
244#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
245 modelica_string _D_24tmpVar0;
246#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
247 int tmp6;
248#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
249 modelica_metatype _p_loopVar = 0;
250#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
251 modelica_metatype _p;
252#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
253 _p_loopVar = _inBaseClasses;
254#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
255 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
256#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
257 _D_24tmpVar1 = tmpMeta[1]; /* defaultValue */
258#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
259 tmp5 = &_D_24tmpVar1;
260#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
261 while(1) {
262#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
263 tmp6 = 1;
264#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
265 if (!listEmpty(_p_loopVar)((*(mmc_uint_t*)((void*)((char*)(_p_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
266#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
267 _p = MMC_CAR(_p_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_p_loopVar) - 3
))) + (1)))))
;
268#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
269 _p_loopVar = MMC_CDR(_p_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_p_loopVar) - 3
))) + (2)))))
;
270#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
271 tmp6--;
272#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
273 }
274#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
275 if (tmp6 == 0) {
276#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
277 _D_24tmpVar0 = omc_AbsynUtil_pathString(threadData, _p, _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)), 1, 0);
278#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
279 *tmp5 = mmc_mk_cons(_D_24tmpVar0,0);
280#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
281 tmp5 = &MMC_CDR(*tmp5)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp5) - 3))) +
(2)))))
;
282#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
283 } else if (tmp6 == 1) {
284#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
285 break;
286#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
287 } else {
288#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
289 goto goto_1;
290#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
291 }
292#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
293 }
294#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
295 *tmp5 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
296#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
297 tmpMeta[0] = _D_24tmpVar1;
298#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
299 }
300#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
301 tmpMeta[2] = stringAppend(_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)),stringDelimitList(tmpMeta[0], _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))));
302#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
303 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)));
304#line 887 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
305 fputs(MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
,stdoutstdout);
306#line 306 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
307
308#line 888 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
309 tmpMeta[0] = stringAppend(_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),omc_NFSCodeEnv_getEnvName(threadData, _inEnv));
310#line 888 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
311 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
312#line 888 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
313 fputs(MMC_STRINGDATA(tmpMeta[1])(((struct mmc_string*)((void*)((char*)(tmpMeta[1]) - 3)))->
data)
,stdoutstdout);
314#line 314 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
315
316#line 889 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
317 fputs(MMC_STRINGDATA(_OMC_LIT8)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT8).header) + 3))) - 3)))->data)
,stdoutstdout);
318#line 318 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
319#line 319 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
320 goto tmp2_done;
321 }
322 case 1: {
323 /* Pattern matching succeeded */
324#line 894 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
325 tmpMeta[0] = stringAppend(_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)),_inName);
326#line 894 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
327 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
328#line 894 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
329 fputs(MMC_STRINGDATA(tmpMeta[1])(((struct mmc_string*)((void*)((char*)(tmpMeta[1]) - 3)))->
data)
,stdoutstdout);
330#line 330 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
331#line 331 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
332 goto tmp2_done;
333 }
334 }
335 goto tmp2_end;
336 tmp2_end: ;
337 }
338 goto goto_1;
339 tmp2_done:
340 (void)tmp3;
341 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
342 goto tmp2_done2;
343 goto_1:;
344 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
345 if (++tmp3 < 2) {
346 goto tmp2_top;
347 }
348 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
349 tmp2_done2:;
350 }
351 }
352 ;
353 _return: OMC_LABEL_UNUSED__attribute__((unused))
354 return;
355}
356
357PROTECTED_FUNCTION_STATIC void omc_NFSCodeFlattenRedeclare_traceReplaceElementInScope(threadData_t *threadData, modelica_string _inElementName, modelica_metatype _inOldItem, modelica_metatype _inNewItem, modelica_metatype _inEnv)
358{
359 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
360 MMC_SO()mmc_check_stackoverflow(threadData);
361 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
362#line 362 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
363 { /* matchcontinue expression */
364 {
365 volatile mmc_switch_type tmp3;
366 int tmp4;
367 tmp3 = 0;
368 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) {
369 tmp2_top:
370 threadData->mmc_jumper = &new_mmc_jumper;
371 for (; tmp3 < 2; tmp3++) {
372 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
373 case 0: {
374 /* Pattern matching succeeded */
375#line 857 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
376 tmpMeta[0] = stringAppend(_OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)),_inElementName);
377#line 857 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
378 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)));
379#line 857 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
380 tmpMeta[2] = stringAppend(tmpMeta[1],omc_NFSCodeEnv_getEnvName(threadData, _inEnv));
381#line 857 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
382 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)));
383#line 857 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
384 fputs(MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
,stdoutstdout);
385#line 385 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
386
387#line 858 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
388 tmpMeta[0] = stringAppend(_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)),omc_NFSCodeEnv_itemStr(threadData, _inOldItem));
389#line 858 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
390 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)));
391#line 858 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
392 tmpMeta[2] = stringAppend(tmpMeta[1],omc_NFSCodeEnv_getEnvName(threadData, omc_NFSCodeEnv_getItemEnvNoFail(threadData, _inOldItem)));
393#line 858 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
394 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)));
395#line 858 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
396 fputs(MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
,stdoutstdout);
397#line 397 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
398
399#line 860 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
400 tmpMeta[0] = stringAppend(_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)),omc_NFSCodeEnv_itemStr(threadData, _inNewItem));
401#line 860 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
402 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)));
403#line 860 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
404 tmpMeta[2] = stringAppend(tmpMeta[1],omc_NFSCodeEnv_getEnvName(threadData, omc_NFSCodeEnv_getItemEnvNoFail(threadData, _inNewItem)));
405#line 860 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
406 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)));
407#line 860 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
408 fputs(MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
,stdoutstdout);
409#line 409 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
410#line 410 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
411 goto tmp2_done;
412 }
413 case 1: {
414 /* Pattern matching succeeded */
415#line 867 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
416 tmpMeta[0] = stringAppend(_OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)),_inElementName);
417#line 867 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
418 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
419#line 867 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
420 fputs(MMC_STRINGDATA(tmpMeta[1])(((struct mmc_string*)((void*)((char*)(tmpMeta[1]) - 3)))->
data)
,stdoutstdout);
421#line 421 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
422#line 422 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
423 goto tmp2_done;
424 }
425 }
426 goto tmp2_end;
427 tmp2_end: ;
428 }
429 goto goto_1;
430 tmp2_done:
431 (void)tmp3;
432 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
433 goto tmp2_done2;
434 goto_1:;
435 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
436 if (++tmp3 < 2) {
437 goto tmp2_top;
438 }
439 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
440 tmp2_done2:;
441 }
442 }
443 ;
444 _return: OMC_LABEL_UNUSED__attribute__((unused))
445 return;
446}
447
448PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateIsField(threadData_t *threadData, modelica_metatype _inOriginalIsField, modelica_metatype _inNewIsField)
449{
450 modelica_metatype _outNewIsField = NULL((void*)0);
451 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
452 MMC_SO()mmc_check_stackoverflow(threadData);
453 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
454 // _outNewIsField has no default value.
455#line 455 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
456 { /* match expression */
457 modelica_metatype tmp3_1;
458 tmp3_1 = _inNewIsField;
459 {
460 volatile mmc_switch_type tmp3;
461 int tmp4;
462 tmp3 = 0;
463 for (; tmp3 < 2; tmp3++) {
464 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
465 case 0: {
466 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;
467 /* Pattern matching succeeded */
468#line 840 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
469 tmpMeta[0] = _inOriginalIsField;
470#line 470 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
471 goto tmp2_done;
472 }
473 case 1: {
474
475 /* Pattern matching succeeded */
476#line 841 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
477 tmpMeta[0] = _inNewIsField;
478#line 478 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
479 goto tmp2_done;
480 }
481 }
482 goto tmp2_end;
483 tmp2_end: ;
484 }
485 goto goto_1;
486 goto_1:;
487 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
488 goto tmp2_done;
489 tmp2_done:;
490 }
491 }
492 _outNewIsField = tmpMeta[0];
493 _return: OMC_LABEL_UNUSED__attribute__((unused))
494 return _outNewIsField;
495}
496
497PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateDirection(threadData_t *threadData, modelica_metatype _inOriginalDirection, modelica_metatype _inNewDirection)
498{
499 modelica_metatype _outNewDirection = NULL((void*)0);
500 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
501 MMC_SO()mmc_check_stackoverflow(threadData);
502 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
503 // _outNewDirection has no default value.
504#line 504 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
505 { /* match expression */
506 modelica_metatype tmp3_1;
507 tmp3_1 = _inNewDirection;
508 {
509 volatile mmc_switch_type tmp3;
510 int tmp4;
511 tmp3 = 0;
512 for (; tmp3 < 2; tmp3++) {
513 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
514 case 0: {
515 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
516 /* Pattern matching succeeded */
517#line 829 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
518 tmpMeta[0] = _inOriginalDirection;
519#line 519 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
520 goto tmp2_done;
521 }
522 case 1: {
523
524 /* Pattern matching succeeded */
525#line 830 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
526 tmpMeta[0] = _inNewDirection;
527#line 527 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
528 goto tmp2_done;
529 }
530 }
531 goto tmp2_end;
532 tmp2_end: ;
533 }
534 goto goto_1;
535 goto_1:;
536 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
537 goto tmp2_done;
538 tmp2_done:;
539 }
540 }
541 _outNewDirection = tmpMeta[0];
542 _return: OMC_LABEL_UNUSED__attribute__((unused))
543 return _outNewDirection;
544}
545
546PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateVariability(threadData_t *threadData, modelica_metatype _inOriginalVariability, modelica_metatype _inNewVariability)
547{
548 modelica_metatype _outNewVariability = NULL((void*)0);
549 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
550 MMC_SO()mmc_check_stackoverflow(threadData);
551 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
552 // _outNewVariability has no default value.
553#line 553 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
554 { /* match expression */
555 modelica_metatype tmp3_1;
556 tmp3_1 = _inNewVariability;
557 {
558 volatile mmc_switch_type tmp3;
559 int tmp4;
560 tmp3 = 0;
561 for (; tmp3 < 2; tmp3++) {
562 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
563 case 0: {
564 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;
565 /* Pattern matching succeeded */
566#line 818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
567 tmpMeta[0] = _inOriginalVariability;
568#line 568 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
569 goto tmp2_done;
570 }
571 case 1: {
572
573 /* Pattern matching succeeded */
574#line 819 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
575 tmpMeta[0] = _inNewVariability;
576#line 576 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
577 goto tmp2_done;
578 }
579 }
580 goto tmp2_end;
581 tmp2_end: ;
582 }
583 goto goto_1;
584 goto_1:;
585 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
586 goto tmp2_done;
587 tmp2_done:;
588 }
589 }
590 _outNewVariability = tmpMeta[0];
591 _return: OMC_LABEL_UNUSED__attribute__((unused))
592 return _outNewVariability;
593}
594
595PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateParallelism(threadData_t *threadData, modelica_metatype _inOriginalParallelism, modelica_metatype _inNewParallelism)
596{
597 modelica_metatype _outNewParallelism = NULL((void*)0);
598 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
599 MMC_SO()mmc_check_stackoverflow(threadData);
600 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
601 // _outNewParallelism has no default value.
602#line 602 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
603 { /* match expression */
604 modelica_metatype tmp3_1;
605 tmp3_1 = _inNewParallelism;
606 {
607 volatile mmc_switch_type tmp3;
608 int tmp4;
609 tmp3 = 0;
610 for (; tmp3 < 2; tmp3++) {
611 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
612 case 0: {
613 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
614 /* Pattern matching succeeded */
615#line 807 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
616 tmpMeta[0] = _inOriginalParallelism;
617#line 617 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
618 goto tmp2_done;
619 }
620 case 1: {
621
622 /* Pattern matching succeeded */
623#line 808 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
624 tmpMeta[0] = _inNewParallelism;
625#line 625 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
626 goto tmp2_done;
627 }
628 }
629 goto tmp2_end;
630 tmp2_end: ;
631 }
632 goto goto_1;
633 goto_1:;
634 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
635 goto tmp2_done;
636 tmp2_done:;
637 }
638 }
639 _outNewParallelism = tmpMeta[0];
640 _return: OMC_LABEL_UNUSED__attribute__((unused))
641 return _outNewParallelism;
642}
643
644PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateConnectorType(threadData_t *threadData, modelica_metatype _inOriginalConnectorType, modelica_metatype _inNewConnectorType)
645{
646 modelica_metatype _outNewConnectorType = NULL((void*)0);
647 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
648 MMC_SO()mmc_check_stackoverflow(threadData);
649 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
650 // _outNewConnectorType has no default value.
651#line 651 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
652 { /* match expression */
653 modelica_metatype tmp3_1;
654 tmp3_1 = _inNewConnectorType;
655 {
656 volatile mmc_switch_type tmp3;
657 int tmp4;
658 tmp3 = 0;
659 for (; tmp3 < 2; tmp3++) {
660 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
661 case 0: {
662 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;
663 /* Pattern matching succeeded */
664#line 796 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
665 tmpMeta[0] = _inOriginalConnectorType;
666#line 666 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
667 goto tmp2_done;
668 }
669 case 1: {
670
671 /* Pattern matching succeeded */
672#line 797 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
673 tmpMeta[0] = _inNewConnectorType;
674#line 674 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
675 goto tmp2_done;
676 }
677 }
678 goto tmp2_end;
679 tmp2_end: ;
680 }
681 goto goto_1;
682 goto_1:;
683 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
684 goto tmp2_done;
685 tmp2_done:;
686 }
687 }
688 _outNewConnectorType = tmpMeta[0];
689 _return: OMC_LABEL_UNUSED__attribute__((unused))
690 return _outNewConnectorType;
691}
692
693PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateArrayDimensions(threadData_t *threadData, modelica_metatype _inOriginalDims, modelica_metatype _inNewDims)
694{
695 modelica_metatype _outNewDims = NULL((void*)0);
696 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
697 MMC_SO()mmc_check_stackoverflow(threadData);
698 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
699 // _outNewDims has no default value.
700#line 700 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
701 { /* match expression */
702 modelica_metatype tmp3_1;
703 tmp3_1 = _inNewDims;
704 {
705 volatile mmc_switch_type tmp3;
706 int tmp4;
707 tmp3 = 0;
708 for (; tmp3 < 2; tmp3++) {
709 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
710 case 0: {
711 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
712 /* Pattern matching succeeded */
713#line 785 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
714 tmpMeta[0] = _inOriginalDims;
715#line 715 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
716 goto tmp2_done;
717 }
718 case 1: {
719
720 /* Pattern matching succeeded */
721#line 786 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
722 tmpMeta[0] = _inNewDims;
723#line 723 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
724 goto tmp2_done;
725 }
726 }
727 goto tmp2_end;
728 tmp2_end: ;
729 }
730 goto goto_1;
731 goto_1:;
732 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
733 goto tmp2_done;
734 tmp2_done:;
735 }
736 }
737 _outNewDims = tmpMeta[0];
738 _return: OMC_LABEL_UNUSED__attribute__((unused))
739 return _outNewDims;
740}
741
742PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateAttributes(threadData_t *threadData, modelica_metatype _inOriginalAttributes, modelica_metatype _inNewAttributes)
743{
744 modelica_metatype _outNewAttributes = NULL((void*)0);
745 modelica_metatype _dims1 = NULL((void*)0);
746 modelica_metatype _dims2 = NULL((void*)0);
747 modelica_metatype _ct1 = NULL((void*)0);
748 modelica_metatype _ct2 = NULL((void*)0);
749 modelica_metatype _prl1 = NULL((void*)0);
750 modelica_metatype _prl2 = NULL((void*)0);
751 modelica_metatype _var1 = NULL((void*)0);
752 modelica_metatype _var2 = NULL((void*)0);
753 modelica_metatype _dir1 = NULL((void*)0);
754 modelica_metatype _dir2 = NULL((void*)0);
755 modelica_metatype _isf1 = NULL((void*)0);
756 modelica_metatype _isf2 = NULL((void*)0);
757 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
758 MMC_SO()mmc_check_stackoverflow(threadData);
759 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
760 // _outNewAttributes has no default value.
761 // _dims1 has no default value.
762 // _dims2 has no default value.
763 // _ct1 has no default value.
764 // _ct2 has no default value.
765 // _prl1 has no default value.
766 // _prl2 has no default value.
767 // _var1 has no default value.
768 // _var2 has no default value.
769 // _dir1 has no default value.
770 // _dir2 has no default value.
771 // _isf1 has no default value.
772 // _isf2 has no default value.
773#line 768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
774 /* Pattern-matching assignment */
775#line 768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
776 tmpMeta[0] = _inOriginalAttributes;
777#line 768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
778 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
779#line 768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
780 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
781#line 768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
782 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
783#line 768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
784 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
785#line 768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
786 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
787#line 768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
788 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
789#line 768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
790 _dims1 = tmpMeta[1];
791#line 768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
792 _ct1 = tmpMeta[2];
793#line 768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
794 _prl1 = tmpMeta[3];
795#line 768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
796 _var1 = tmpMeta[4];
797#line 768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
798 _dir1 = tmpMeta[5];
799#line 768 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
800 _isf1 = tmpMeta[6];
801#line 801 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
802
803#line 769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
804 /* Pattern-matching assignment */
805#line 769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
806 tmpMeta[0] = _inNewAttributes;
807#line 769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
808 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
809#line 769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
810 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
811#line 769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
812 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
813#line 769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
814 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
815#line 769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
816 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
817#line 769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
818 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
819#line 769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
820 _dims2 = tmpMeta[1];
821#line 769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
822 _ct2 = tmpMeta[2];
823#line 769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
824 _prl2 = tmpMeta[3];
825#line 769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
826 _var2 = tmpMeta[4];
827#line 769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
828 _dir2 = tmpMeta[5];
829#line 769 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
830 _isf2 = tmpMeta[6];
831#line 831 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
832
833#line 770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
834 _dims2 = omc_NFSCodeFlattenRedeclare_propagateArrayDimensions(threadData, _dims1, _dims2);
835#line 835 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
836
837#line 771 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
838 _ct2 = omc_NFSCodeFlattenRedeclare_propagateConnectorType(threadData, _ct1, _ct2);
839#line 839 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
840
841#line 772 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
842 _prl2 = omc_NFSCodeFlattenRedeclare_propagateParallelism(threadData, _prl1, _prl2);
843#line 843 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
844
845#line 773 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
846 _var2 = omc_NFSCodeFlattenRedeclare_propagateVariability(threadData, _var1, _var2);
847#line 847 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
848
849#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
850 _dir2 = omc_NFSCodeFlattenRedeclare_propagateDirection(threadData, _dir1, _dir2);
851#line 851 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
852
853#line 775 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
854 _isf2 = omc_NFSCodeFlattenRedeclare_propagateIsField(threadData, _isf1, _isf2);
855#line 855 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
856
857#line 776 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
858 tmpMeta[0] = mmc_mk_box7(3, &SCode_Attributes_ATTR__desc, _dims2, _ct2, _prl2, _var2, _dir2, _isf2);
859#line 776 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
860 _outNewAttributes = tmpMeta[0];
861#line 861 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
862 _return: OMC_LABEL_UNUSED__attribute__((unused))
863 return _outNewAttributes;
864}
865
866PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagatePrefixInnerOuter(threadData_t *threadData, modelica_metatype _inOriginalIO, modelica_metatype _inIO)
867{
868 modelica_metatype _outIO = NULL((void*)0);
869 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
870 MMC_SO()mmc_check_stackoverflow(threadData);
871 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
872 // _outIO has no default value.
873#line 873 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
874 { /* match expression */
875 modelica_metatype tmp3_1;
876 tmp3_1 = _inIO;
877 {
878 volatile mmc_switch_type tmp3;
879 int tmp4;
880 tmp3 = 0;
881 for (; tmp3 < 2; tmp3++) {
882 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
883 case 0: {
884 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,3,0)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((0 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
885 /* Pattern matching succeeded */
886#line 751 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
887 tmpMeta[0] = _inOriginalIO;
888#line 888 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
889 goto tmp2_done;
890 }
891 case 1: {
892
893 /* Pattern matching succeeded */
894#line 752 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
895 tmpMeta[0] = _inIO;
896#line 896 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
897 goto tmp2_done;
898 }
899 }
900 goto tmp2_end;
901 tmp2_end: ;
902 }
903 goto goto_1;
904 goto_1:;
905 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
906 goto tmp2_done;
907 tmp2_done:;
908 }
909 }
910 _outIO = tmpMeta[0];
911 _return: OMC_LABEL_UNUSED__attribute__((unused))
912 return _outIO;
913}
914
915PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagatePrefixes(threadData_t *threadData, modelica_metatype _inOriginalPrefixes, modelica_metatype _inNewPrefixes)
916{
917 modelica_metatype _outNewPrefixes = NULL((void*)0);
918 modelica_metatype _vis1 = NULL((void*)0);
919 modelica_metatype _vis2 = NULL((void*)0);
920 modelica_metatype _io1 = NULL((void*)0);
921 modelica_metatype _io2 = NULL((void*)0);
922 modelica_metatype _rdp = NULL((void*)0);
923 modelica_metatype _fp = NULL((void*)0);
924 modelica_metatype _rpp = NULL((void*)0);
925 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
926 MMC_SO()mmc_check_stackoverflow(threadData);
927 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
928 // _outNewPrefixes has no default value.
929 // _vis1 has no default value.
930 // _vis2 has no default value.
931 // _io1 has no default value.
932 // _io2 has no default value.
933 // _rdp has no default value.
934 // _fp has no default value.
935 // _rpp has no default value.
936#line 739 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
937 /* Pattern-matching assignment */
938#line 739 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
939 tmpMeta[0] = _inOriginalPrefixes;
940#line 739 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
941 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
942#line 739 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
943 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
944#line 739 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
945 _vis1 = tmpMeta[1];
Value stored to '_vis1' is never read
946#line 739 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
947 _io1 = tmpMeta[2];
948#line 948 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
949
950#line 740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
951 /* Pattern-matching assignment */
952#line 740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
953 tmpMeta[0] = _inNewPrefixes;
954#line 740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
955 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
956#line 740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
957 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
958#line 740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
959 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
960#line 740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
961 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
962#line 740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
963 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
964#line 740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
965 _vis2 = tmpMeta[1];
966#line 740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
967 _rdp = tmpMeta[2];
968#line 740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
969 _fp = tmpMeta[3];
970#line 740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
971 _io2 = tmpMeta[4];
972#line 740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
973 _rpp = tmpMeta[5];
974#line 974 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
975
976#line 741 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
977 _io2 = omc_NFSCodeFlattenRedeclare_propagatePrefixInnerOuter(threadData, _io1, _io2);
978#line 978 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
979
980#line 742 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
981 tmpMeta[0] = mmc_mk_box6(3, &SCode_Prefixes_PREFIXES__desc, _vis2, _rdp, _fp, _io2, _rpp);
982#line 742 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
983 _outNewPrefixes = tmpMeta[0];
984#line 984 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
985 _return: OMC_LABEL_UNUSED__attribute__((unused))
986 return _outNewPrefixes;
987}
988
989DLLExport
990modelica_metatype omc_NFSCodeFlattenRedeclare_propagateAttributesClass(threadData_t *threadData, modelica_metatype _inOriginalClass, modelica_metatype _inNewClass)
991{
992 modelica_metatype _outNewClass = NULL((void*)0);
993 modelica_string _name = NULL((void*)0);
994 modelica_metatype _pref1 = NULL((void*)0);
995 modelica_metatype _pref2 = NULL((void*)0);
996 modelica_metatype _ep = NULL((void*)0);
997 modelica_metatype _pp = NULL((void*)0);
998 modelica_metatype _res = NULL((void*)0);
999 modelica_metatype _cdef = NULL((void*)0);
1000 modelica_metatype _info = NULL((void*)0);
1001 modelica_metatype _cmt = NULL((void*)0);
1002 modelica_metatype tmpMeta[9] __attribute__((unused)) = {0};
1003 MMC_SO()mmc_check_stackoverflow(threadData);
1004 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1005 // _outNewClass has no default value.
1006 // _name has no default value.
1007 // _pref1 has no default value.
1008 // _pref2 has no default value.
1009 // _ep has no default value.
1010 // _pp has no default value.
1011 // _res has no default value.
1012 // _cdef has no default value.
1013 // _info has no default value.
1014 // _cmt has no default value.
1015#line 722 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1016 /* Pattern-matching assignment */
1017#line 722 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1018 tmpMeta[0] = _inOriginalClass;
1019#line 722 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1020 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],2,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1021#line 722 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1022 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1023#line 722 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1024 _pref1 = tmpMeta[1];
1025#line 1025 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1026
1027#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1028 /* Pattern-matching assignment */
1029#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1030 tmpMeta[0] = _inNewClass;
1031#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1032 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],2,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1033#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1034 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1035#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1036 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1037#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1038 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1039#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1040 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1041#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1042 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1043#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1044 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
1045#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1046 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
1047#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1048 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (9)))))
;
1049#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1050 _name = tmpMeta[1];
1051#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1052 _pref2 = tmpMeta[2];
1053#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1054 _ep = tmpMeta[3];
1055#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1056 _pp = tmpMeta[4];
1057#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1058 _res = tmpMeta[5];
1059#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1060 _cdef = tmpMeta[6];
1061#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1062 _cmt = tmpMeta[7];
1063#line 723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1064 _info = tmpMeta[8];
1065#line 1065 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1066
1067#line 724 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1068 _pref2 = omc_NFSCodeFlattenRedeclare_propagatePrefixes(threadData, _pref1, _pref2);
1069#line 1069 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1070
1071#line 725 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1072 tmpMeta[0] = mmc_mk_box9(5, &SCode_Element_CLASS__desc, _name, _pref2, _ep, _pp, _res, _cdef, _cmt, _info);
1073#line 725 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1074 _outNewClass = tmpMeta[0];
1075#line 1075 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1076 _return: OMC_LABEL_UNUSED__attribute__((unused))
1077 return _outNewClass;
1078}
1079
1080DLLExport
1081modelica_metatype omc_NFSCodeFlattenRedeclare_propagateAttributesVar(threadData_t *threadData, modelica_metatype _inOriginalVar, modelica_metatype _inNewVar)
1082{
1083 modelica_metatype _outNewVar = NULL((void*)0);
1084 modelica_string _name = NULL((void*)0);
1085 modelica_metatype _pref1 = NULL((void*)0);
1086 modelica_metatype _pref2 = NULL((void*)0);
1087 modelica_metatype _attr1 = NULL((void*)0);
1088 modelica_metatype _attr2 = NULL((void*)0);
1089 modelica_metatype _ty = NULL((void*)0);
1090 modelica_metatype _mod = NULL((void*)0);
1091 modelica_metatype _cmt = NULL((void*)0);
1092 modelica_metatype _cond = NULL((void*)0);
1093 modelica_metatype _info = NULL((void*)0);
1094 modelica_metatype tmpMeta[9] __attribute__((unused)) = {0};
1095 MMC_SO()mmc_check_stackoverflow(threadData);
1096 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1097 // _outNewVar has no default value.
1098 // _name has no default value.
1099 // _pref1 has no default value.
1100 // _pref2 has no default value.
1101 // _attr1 has no default value.
1102 // _attr2 has no default value.
1103 // _ty has no default value.
1104 // _mod has no default value.
1105 // _cmt has no default value.
1106 // _cond has no default value.
1107 // _info has no default value.
1108#line 701 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1109 /* Pattern-matching assignment */
1110#line 701 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1111 tmpMeta[0] = _inOriginalVar;
1112#line 701 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1113 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],3,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1114#line 701 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1115 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1116#line 701 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1117 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1118#line 701 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1119 _pref1 = tmpMeta[1];
1120#line 701 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1121 _attr1 = tmpMeta[2];
1122#line 1122 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1123
1124#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1125 /* Pattern-matching assignment */
1126#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1127 tmpMeta[0] = _inNewVar;
1128#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1129 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],3,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((8 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1130#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1131 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1132#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1133 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1134#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1135 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1136#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1137 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1138#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1139 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1140#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1141 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
1142#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1143 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
1144#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1145 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (9)))))
;
1146#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1147 _name = tmpMeta[1];
1148#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1149 _pref2 = tmpMeta[2];
1150#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1151 _attr2 = tmpMeta[3];
1152#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1153 _ty = tmpMeta[4];
1154#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1155 _mod = tmpMeta[5];
1156#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1157 _cmt = tmpMeta[6];
1158#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1159 _cond = tmpMeta[7];
1160#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1161 _info = tmpMeta[8];
1162#line 1162 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1163
1164#line 703 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1165 _pref2 = omc_NFSCodeFlattenRedeclare_propagatePrefixes(threadData, _pref1, _pref2);
1166#line 1166 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1167
1168#line 704 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1169 _attr2 = omc_NFSCodeFlattenRedeclare_propagateAttributes(threadData, _attr1, _attr2);
1170#line 1170 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1171
1172#line 705 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1173 tmpMeta[0] = mmc_mk_box9(6, &SCode_Element_COMPONENT__desc, _name, _pref2, _attr2, _ty, _mod, _cmt, _cond, _info);
1174#line 705 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1175 _outNewVar = tmpMeta[0];
1176#line 1176 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1177 _return: OMC_LABEL_UNUSED__attribute__((unused))
1178 return _outNewVar;
1179}
1180
1181PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_propagateItemPrefixes(threadData_t *threadData, modelica_metatype _inOriginalItem, modelica_metatype _inNewItem)
1182{
1183 modelica_metatype _outNewItem = NULL((void*)0);
1184 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
1185 MMC_SO()mmc_check_stackoverflow(threadData);
1186 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1187 // _outNewItem has no default value.
1188#line 1188 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1189 { /* match expression */
1190 modelica_metatype tmp3_1;modelica_metatype tmp3_2;
1191 tmp3_1 = _inOriginalItem;
1192 tmp3_2 = _inNewItem;
1193 {
1194 modelica_metatype _el1 = NULL((void*)0);
1195 modelica_metatype _el2 = NULL((void*)0);
1196 modelica_metatype _iu2 = NULL((void*)0);
1197 modelica_metatype _env1 = NULL((void*)0);
1198 modelica_metatype _env2 = NULL((void*)0);
1199 modelica_metatype _ty2 = NULL((void*)0);
1200 modelica_metatype _item = NULL((void*)0);
1201 volatile mmc_switch_type tmp3;
1202 int tmp4;
1203 // _el1 has no default value.
1204 // _el2 has no default value.
1205 // _iu2 has no default value.
1206 // _env1 has no default value.
1207 // _env2 has no default value.
1208 // _ty2 has no default value.
1209 // _item has no default value.
1210 tmp3 = 0;
1211 for (; tmp3 < 7; tmp3++) {
1212 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1213 case 0: {
1214 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;
1215 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1216 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
1217 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
1218 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
1219 _el1 = tmpMeta[1];
1220 _el2 = tmpMeta[2];
1221 _iu2 = tmpMeta[3];
1222 /* Pattern matching succeeded */
1223#line 649 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1224 _el2 = omc_NFSCodeFlattenRedeclare_propagateAttributesVar(threadData, _el1, _el2);
1225#line 1225 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1226#line 650 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1227 tmpMeta[1] = mmc_mk_box3(3, &NFSCodeEnv_Item_VAR__desc, _el2, _iu2);
1228#line 650 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1229 tmpMeta[0] = tmpMeta[1];
1230#line 1230 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1231 goto tmp2_done;
1232 }
1233 case 1: {
1234 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;
1235 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1236 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,1,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((3 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
1237 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
1238 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
1239 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(4)))))
;
1240 _el1 = tmpMeta[1];
1241 _el2 = tmpMeta[2];
1242 _env2 = tmpMeta[3];
1243 _ty2 = tmpMeta[4];
1244 /* Pattern matching succeeded */
1245#line 656 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1246 _el2 = omc_NFSCodeFlattenRedeclare_propagateAttributesClass(threadData, _el1, _el2);
1247#line 1247 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1248#line 657 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1249 tmpMeta[1] = mmc_mk_box4(4, &NFSCodeEnv_Item_CLASS__desc, _el2, _env2, _ty2);
1250#line 657 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1251 tmpMeta[0] = tmpMeta[1];
1252#line 1252 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1253 goto tmp2_done;
1254 }
1255 case 2: {
1256 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((3 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
1257
1258 /* Pattern matching succeeded */
1259#line 666 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1260 tmpMeta[0] = _inNewItem;
1261#line 1261 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1262 goto tmp2_done;
1263 }
1264 case 3: {
1265 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,2,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((3 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
1266
1267 /* Pattern matching succeeded */
1268#line 667 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1269 tmpMeta[0] = _inNewItem;
1270#line 1270 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1271 goto tmp2_done;
1272 }
1273 case 4: {
1274 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,3,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
1275 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1276
1277 _item = tmpMeta[1];
1278 /* Pattern matching succeeded */
1279#line 670 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1280 /* Tail recursive call */
1281#line 670 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1282 _inOriginalItem = _item;
1283#line 670 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1284 goto _tailrecursive;
1285#line 670 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1286 /* TODO: Make sure any eventual dead code below is never generated */
1287#line 1287 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1288 goto tmp2_done;
1289 }
1290 case 5: {
1291 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,3,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((2 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
1292 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
1293 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
1294
1295 _item = tmpMeta[1];
1296 _env1 = tmpMeta[2];
1297 /* Pattern matching succeeded */
1298#line 674 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1299 _item = omc_NFSCodeFlattenRedeclare_propagateItemPrefixes(threadData, _inOriginalItem, _item);
1300#line 1300 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1301#line 675 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1302 tmpMeta[1] = mmc_mk_box3(6, &NFSCodeEnv_Item_REDECLARED__ITEM__desc, _item, _env1);
1303#line 675 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1304 tmpMeta[0] = tmpMeta[1];
1305#line 1305 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1306 goto tmp2_done;
1307 }
1308 case 6: {
1309
1310 /* Pattern matching succeeded */
1311#line 680 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1312 omc_Error_addMessage(threadData, _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)), _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)));
1313#line 1313 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1314#line 682 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1315 goto goto_1;
1316#line 1316 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1317 goto tmp2_done;
1318 }
1319 }
1320 goto tmp2_end;
1321 tmp2_end: ;
1322 }
1323 goto goto_1;
1324 goto_1:;
1325 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1326 goto tmp2_done;
1327 tmp2_done:;
1328 }
1329 }
1330 _outNewItem = tmpMeta[0];
1331 _return: OMC_LABEL_UNUSED__attribute__((unused))
1332 return _outNewItem;
1333}
1334
1335DLLExport
1336modelica_metatype omc_NFSCodeFlattenRedeclare_replaceElementInScope(threadData_t *threadData, modelica_string _inElementName, modelica_metatype _inElement, modelica_metatype _inEnv)
1337{
1338 modelica_metatype _outEnv = NULL((void*)0);
1339 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
1340 MMC_SO()mmc_check_stackoverflow(threadData);
1341 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1342 // _outEnv has no default value.
1343#line 1343 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1344 { /* match expression */
1345 modelica_metatype tmp3_1;
1346 tmp3_1 = _inEnv;
1347 {
1348 modelica_metatype _tree = NULL((void*)0);
1349 modelica_metatype _old_item = NULL((void*)0);
1350 modelica_metatype _new_item = NULL((void*)0);
1351 modelica_metatype _env = NULL((void*)0);
1352 modelica_metatype _repl = NULL((void*)0);
1353 volatile mmc_switch_type tmp3;
1354 int tmp4;
1355 // _tree has no default value.
1356 // _old_item has no default value.
1357 // _new_item has no default value.
1358 // _env has no default value.
1359 // _repl has no default value.
1360 tmp3 = 0;
1361 for (; tmp3 < 1; tmp3++) {
1362 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1363 case 0: {
1364 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1365 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1366 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1367 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1368 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (4)))))
;
1369 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1370 _env = tmpMeta[1];
1371 _tree = tmpMeta[4];
1372 _repl = tmpMeta[5];
1373 /* Pattern matching succeeded */
1374#line 617 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1375 _old_item = omc_NFSCodeEnv_EnvTree_get(threadData, _tree, _inElementName);
1376#line 1376 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1377
1378#line 621 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1379 _new_item = omc_NFSCodeFlattenRedeclare_propagateItemPrefixes(threadData, _old_item, _inElement);
1380#line 1380 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1381
1382#line 622 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1383 _new_item = omc_NFSCodeEnv_linkItemUsage(threadData, _old_item, _new_item);
1384#line 1384 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1385
1386#line 623 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1387 _tree = omc_NFSCodeEnv_EnvTree_add(threadData, _tree, _inElementName, _new_item, boxvar_NFSCodeEnv_EnvTree_addConflictReplace((void*)((char*)(&(boxvar_lit_NFSCodeEnv_EnvTree_addConflictReplace
).header) + 3))
);
1388#line 1388 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1389
1390#line 624 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1391 _env = omc_NFSCodeEnv_setEnvClsAndVars(threadData, _tree, _env);
1392#line 1392 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1393
1394#line 625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1395 tmpMeta[2] = mmc_mk_box5(3, &NFSCodeFlattenRedeclare_Replacement_REPLACED__desc, _inElementName, _old_item, _new_item, _env);
1396#line 625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1397 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _repl);
1398#line 625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1399 _repl = tmpMeta[1];
1400#line 1400 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1401#line 627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1402 tmpMeta[1] = mmc_mk_box2(0, _env, _repl);
1403#line 627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1404 tmpMeta[0] = tmpMeta[1];
1405#line 1405 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1406 goto tmp2_done;
1407 }
1408 }
1409 goto tmp2_end;
1410 tmp2_end: ;
1411 }
1412 goto goto_1;
1413 goto_1:;
1414 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1415 goto tmp2_done;
1416 tmp2_done:;
1417 }
1418 }
1419 _outEnv = tmpMeta[0];
1420 _return: OMC_LABEL_UNUSED__attribute__((unused))
1421 return _outEnv;
1422}
1423
1424PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends3(threadData_t *threadData, modelica_metatype _inRedeclare, modelica_string _inName, modelica_metatype _inRedeclares, modelica_metatype _inOutRedeclares)
1425{
1426 modelica_metatype _outRedeclares = NULL((void*)0);
1427 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1428 MMC_SO()mmc_check_stackoverflow(threadData);
1429 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1430 // _outRedeclares has no default value.
1431#line 1431 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1432 { /* match expression */
1433 modelica_metatype tmp3_1;
1434 tmp3_1 = _inRedeclares;
1435 {
1436 modelica_metatype _item = NULL((void*)0);
1437 modelica_metatype _redecl = NULL((void*)0);
1438 modelica_metatype _rest_redecls = NULL((void*)0);
1439 volatile mmc_switch_type tmp3;
1440 int tmp4;
1441 // _item has no default value.
1442 // _redecl has no default value.
1443 // _rest_redecls has no default value.
1444 tmp3 = 0;
1445 for (; tmp3 < 3; tmp3++) {
1446 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1447 case 0: {
1448 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1449 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1450 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1451 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 tmp2_end;
1452 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1453 _item = tmpMeta[3];
1454 _rest_redecls = tmpMeta[2];
1455 /* Pattern matching succeeded */
1456 /* Check guard condition after assignments */
1457 if (!(stringEqual(omc_NFSCodeEnv_getItemName(threadData, _item), _inName)((((((*(mmc_uint_t*)((void*)((char*)(omc_NFSCodeEnv_getItemName
(threadData, _item)) - 3)))) >> (3)) - 8)) == (((((*(mmc_uint_t
*)((void*)((char*)(_inName) - 3)))) >> (3)) - 8)) &&
!mmc_stringCompare(omc_NFSCodeEnv_getItemName(threadData, _item
),_inName))
)) goto tmp2_end;
1458#line 589 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1459 tmpMeta[2] = mmc_mk_box2(4, &NFSCodeEnv_Redeclaration_PROCESSED__MODIFIER__desc, _inRedeclare);
1460#line 589 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1461 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _rest_redecls);
1462#line 589 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1463 tmpMeta[0] = omc_List_append__reverse(threadData, _inOutRedeclares, tmpMeta[1]);
1464#line 1464 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1465 goto tmp2_done;
1466 }
1467 case 1: {
1468 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1469 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1470 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1471 _redecl = tmpMeta[1];
1472 _rest_redecls = tmpMeta[2];
1473 /* Pattern matching succeeded */
1474#line 593 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1475 tmpMeta[1] = mmc_mk_cons(_redecl, _inOutRedeclares);
1476#line 593 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1477 /* Tail recursive call */
1478#line 593 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1479 _inRedeclares = _rest_redecls;
1480#line 593 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1481 _inOutRedeclares = tmpMeta[1];
1482#line 593 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1483 goto _tailrecursive;
1484#line 593 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1485 /* TODO: Make sure any eventual dead code below is never generated */
1486#line 1486 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1487 goto tmp2_done;
1488 }
1489 case 2: {
1490 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1491 /* Pattern matching succeeded */
1492#line 596 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1493 tmpMeta[2] = mmc_mk_box2(4, &NFSCodeEnv_Redeclaration_PROCESSED__MODIFIER__desc, _inRedeclare);
1494#line 596 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1495 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _inOutRedeclares);
1496#line 596 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1497 tmpMeta[0] = listReverse(tmpMeta[1]);
1498#line 1498 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1499 goto tmp2_done;
1500 }
1501 }
1502 goto tmp2_end;
1503 tmp2_end: ;
1504 }
1505 goto goto_1;
1506 goto_1:;
1507 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1508 goto tmp2_done;
1509 tmp2_done:;
1510 }
1511 }
1512 _outRedeclares = tmpMeta[0];
1513 _return: OMC_LABEL_UNUSED__attribute__((unused))
1514 return _outRedeclares;
1515}
1516
1517PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends2(threadData_t *threadData, modelica_string _inName, modelica_metatype _inRedeclare, modelica_metatype _inBaseClasses, modelica_metatype _inExtends)
1518{
1519 modelica_metatype _outExtends = NULL((void*)0);
1520 modelica_metatype tmpMeta[9] __attribute__((unused)) = {0};
1521 MMC_SO()mmc_check_stackoverflow(threadData);
1522 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1523 // _outExtends has no default value.
1524#line 1524 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1525 { /* match expression */
1526 modelica_metatype tmp3_1;modelica_metatype tmp3_2;
1527 tmp3_1 = _inBaseClasses;
1528 tmp3_2 = _inExtends;
1529 {
1530 modelica_metatype _bc1 = NULL((void*)0);
1531 modelica_metatype _bc2 = NULL((void*)0);
1532 modelica_metatype _rest_bc = NULL((void*)0);
1533 modelica_metatype _ext = NULL((void*)0);
1534 modelica_metatype _rest_exts = NULL((void*)0);
1535 modelica_metatype _redecls = NULL((void*)0);
1536 modelica_integer _index;
1537 modelica_metatype _info = NULL((void*)0);
1538 modelica_metatype _bc_strl = NULL((void*)0);
1539 modelica_string _bcl_str = NULL((void*)0);
1540 modelica_string _err_msg = NULL((void*)0);
1541 volatile mmc_switch_type tmp3;
1542 int tmp4;
1543 // _bc1 has no default value.
1544 // _bc2 has no default value.
1545 // _rest_bc has no default value.
1546 // _ext has no default value.
1547 // _rest_exts has no default value.
1548 // _redecls has no default value.
1549 // _index has no default value.
1550 // _info has no default value.
1551 // _bc_strl has no default value.
1552 // _bcl_str has no default value.
1553 // _err_msg has no default value.
1554 tmp3 = 0;
1555 for (; tmp3 < 4; tmp3++) {
1556 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1557 case 0: {
1558 modelica_integer tmp5;
1559 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1560 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1561 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1562 if (listEmpty(tmp3_2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1563 tmpMeta[3] = MMC_CAR(tmp3_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
1564 tmpMeta[4] = MMC_CDR(tmp3_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
1565 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
1566 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
1567 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (4)))))
;
1568 tmp5 = mmc_unbox_integer(tmpMeta[7])(((mmc_sint_t) (tmpMeta[7])) >> 1);
1569 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (5)))))
;
1570 _bc1 = tmpMeta[1];
1571 _rest_bc = tmpMeta[2];
1572 _bc2 = tmpMeta[5];
1573 _redecls = tmpMeta[6];
1574 _index = tmp5 /* pattern as ty=Integer */;
1575 _info = tmpMeta[8];
1576 _rest_exts = tmpMeta[4];
1577 /* Pattern matching succeeded */
1578 /* Check guard condition after assignments */
1579 if (!omc_AbsynUtil_pathEqual(threadData, _bc1, _bc2)) goto tmp2_end;
1580#line 540 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1581 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1582#line 540 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1583 _redecls = omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends3(threadData, _inRedeclare, _inName, _redecls, tmpMeta[1]);
1584#line 1584 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1585
1586#line 541 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1587 _rest_exts = omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends2(threadData, _inName, _inRedeclare, _rest_bc, _rest_exts);
1588#line 1588 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1589#line 542 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1590 tmpMeta[2] = mmc_mk_box5(3, &NFSCodeEnv_Extends_EXTENDS__desc, _bc2, _redecls, mmc_mk_integermmc_mk_icon(_index), _info);
1591#line 542 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1592 tmpMeta[1] = mmc_mk_cons(tmpMeta[2], _rest_exts);
1593#line 542 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1594 tmpMeta[0] = tmpMeta[1];
1595#line 1595 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1596 goto tmp2_done;
1597 }
1598 case 1: {
1599 if (listEmpty(tmp3_2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1600 tmpMeta[1] = MMC_CAR(tmp3_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
1601 tmpMeta[2] = MMC_CDR(tmp3_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
1602
1603 _ext = tmpMeta[1];
1604 _rest_exts = tmpMeta[2];
1605 _rest_bc = tmp3_1;
1606 /* Pattern matching succeeded */
1607#line 548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1608 _rest_exts = omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends2(threadData, _inName, _inRedeclare, _rest_bc, _rest_exts);
1609#line 1609 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1610#line 549 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1611 tmpMeta[1] = mmc_mk_cons(_ext, _rest_exts);
1612#line 549 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1613 tmpMeta[0] = tmpMeta[1];
1614#line 1614 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1615 goto tmp2_done;
1616 }
1617 case 2: {
1618 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1619
1620 /* Pattern matching succeeded */
1621#line 553 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1622 tmpMeta[0] = _inExtends;
1623#line 1623 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1624 goto tmp2_done;
1625 }
1626 case 3: {
1627 if (!listEmpty(tmp3_2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1628
1629 /* Pattern matching succeeded */
1630#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1631 {
1632#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1633 modelica_metatype _D_24tmpVar3;
1634#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1635 modelica_metatype* tmp6;
1636#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1637 modelica_string _D_24tmpVar2;
1638#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1639 int tmp7;
1640#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1641 modelica_metatype _p_loopVar = 0;
1642#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1643 modelica_metatype _p;
1644#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1645 _p_loopVar = _inBaseClasses;
1646#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1647 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1648#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1649 _D_24tmpVar3 = tmpMeta[2]; /* defaultValue */
1650#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1651 tmp6 = &_D_24tmpVar3;
1652#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1653 while(1) {
1654#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1655 tmp7 = 1;
1656#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1657 if (!listEmpty(_p_loopVar)((*(mmc_uint_t*)((void*)((char*)(_p_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
1658#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1659 _p = MMC_CAR(_p_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_p_loopVar) - 3
))) + (1)))))
;
1660#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1661 _p_loopVar = MMC_CDR(_p_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_p_loopVar) - 3
))) + (2)))))
;
1662#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1663 tmp7--;
1664#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1665 }
1666#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1667 if (tmp7 == 0) {
1668#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1669 _D_24tmpVar2 = omc_AbsynUtil_pathString(threadData, _p, _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)), 1, 0);
1670#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1671 *tmp6 = mmc_mk_cons(_D_24tmpVar2,0);
1672#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1673 tmp6 = &MMC_CDR(*tmp6)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp6) - 3))) +
(2)))))
;
1674#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1675 } else if (tmp7 == 1) {
1676#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1677 break;
1678#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1679 } else {
1680#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1681 goto goto_1;
1682#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1683 }
1684#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1685 }
1686#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1687 *tmp6 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
1688#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1689 tmpMeta[1] = _D_24tmpVar3;
1690#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1691 }
1692#line 559 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1693 _bc_strl = tmpMeta[1];
1694#line 1694 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1695
1696#line 560 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1697 _bcl_str = stringDelimitList(_bc_strl, _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)));
1698#line 1698 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1699
1700#line 561 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1701 tmpMeta[1] = stringAppend(_OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)),_bcl_str);
1702#line 561 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1703 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)));
1704#line 561 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1705 tmpMeta[3] = stringAppend(tmpMeta[2],_inName);
1706#line 561 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1707 _err_msg = tmpMeta[3];
1708#line 1708 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1709
1710#line 563 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1711 tmpMeta[1] = mmc_mk_cons(_err_msg, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
1712#line 563 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1713 omc_Error_addMessage(threadData, _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)), tmpMeta[1]);
1714#line 1714 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1715#line 564 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1716 goto goto_1;
1717#line 1717 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1718 goto tmp2_done;
1719 }
1720 }
1721 goto tmp2_end;
1722 tmp2_end: ;
1723 }
1724 goto goto_1;
1725 goto_1:;
1726 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1727 goto tmp2_done;
1728 tmp2_done:;
1729 }
1730 }
1731 _outExtends = tmpMeta[0];
1732 _return: OMC_LABEL_UNUSED__attribute__((unused))
1733 return _outExtends;
1734}
1735
1736PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends(threadData_t *threadData, modelica_string _inName, modelica_metatype _inRedeclare, modelica_metatype _inBaseClasses, modelica_metatype _inEnv)
1737{
1738 modelica_metatype _outEnv = NULL((void*)0);
1739 modelica_metatype _exts = NULL((void*)0);
1740 modelica_metatype _re = NULL((void*)0);
1741 modelica_metatype _cei = NULL((void*)0);
1742 modelica_metatype _etNew = NULL((void*)0);
1743 modelica_metatype _etOld = NULL((void*)0);
1744 modelica_string _name = NULL((void*)0);
1745 modelica_metatype _env = NULL((void*)0);
1746 modelica_metatype _repl = NULL((void*)0);
1747 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
1748 MMC_SO()mmc_check_stackoverflow(threadData);
1749 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1750 // _outEnv has no default value.
1751 // _exts has no default value.
1752 // _re has no default value.
1753 // _cei has no default value.
1754 // _etNew has no default value.
1755 // _etOld has no default value.
1756 // _name has no default value.
1757 // _env has no default value.
1758 // _repl has no default value.
1759#line 498 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1760 /* Pattern-matching assignment */
1761#line 498 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1762 tmpMeta[0] = _inEnv;
1763#line 498 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1764 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1765#line 498 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1766 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1767#line 498 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1768 _env = tmpMeta[1];
1769#line 498 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1770 _repl = tmpMeta[2];
1771#line 1771 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1772
1773#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1774 /* Pattern-matching assignment */
1775#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1776 tmpMeta[0] = _env;
1777#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1778 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1779#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1780 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1781#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1782 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1783#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1784 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
1785#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1786 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
1787#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1788 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
1789#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1790 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (4)))))
;
1791#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1792 _etOld = tmpMeta[3];
1793#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1794 _exts = tmpMeta[4];
1795#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1796 _re = tmpMeta[5];
1797#line 500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1798 _cei = tmpMeta[6];
1799#line 1799 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1800
1801#line 501 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1802 _exts = omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends2(threadData, _inName, _inRedeclare, _inBaseClasses, _exts);
1803#line 1803 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1804
1805#line 502 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1806 tmpMeta[0] = mmc_mk_box4(3, &NFSCodeEnv_ExtendsTable_EXTENDS__TABLE__desc, _exts, _re, _cei);
1807#line 502 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1808 _etNew = tmpMeta[0];
1809#line 1809 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1810
1811#line 504 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1812 _env = omc_NFSCodeEnv_setEnvExtendsTable(threadData, _etNew, _env);
1813#line 1813 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1814
1815#line 505 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1816 tmpMeta[1] = mmc_mk_box7(4, &NFSCodeFlattenRedeclare_Replacement_PUSHED__desc, _inName, _inRedeclare, _inBaseClasses, _etOld, _etNew, _env);
1817#line 505 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1818 tmpMeta[0] = mmc_mk_cons(tmpMeta[1], _repl);
1819#line 505 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1820 _repl = tmpMeta[0];
1821#line 1821 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1822
1823#line 507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1824 tmpMeta[0] = mmc_mk_box2(0, _env, _repl);
1825#line 507 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1826 _outEnv = tmpMeta[0];
1827#line 1827 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1828 _return: OMC_LABEL_UNUSED__attribute__((unused))
1829 return _outEnv;
1830}
1831
1832PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtendsNoFail(threadData_t *threadData, modelica_string _inName, modelica_metatype _inRedeclare, modelica_metatype _inEnv)
1833{
1834 modelica_metatype _outEnv = NULL((void*)0);
1835 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1836 MMC_SO()mmc_check_stackoverflow(threadData);
1837 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1838 // _outEnv has no default value.
1839#line 1839 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1840 { /* matchcontinue expression */
1841 {
1842 modelica_metatype _bcl = NULL((void*)0);
1843 volatile mmc_switch_type tmp3;
1844 int tmp4;
1845 // _bcl has no default value.
1846 tmp3 = 0;
1847 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) {
1848 tmp2_top:
1849 threadData->mmc_jumper = &new_mmc_jumper;
1850 for (; tmp3 < 2; tmp3++) {
1851 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1852 case 0: {
1853 /* Pattern matching succeeded */
1854#line 473 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1855 _bcl = omc_NFSCodeLookup_lookupBaseClasses(threadData, _inName, omc_Util_tuple21(threadData, _inEnv));
1856#line 1856 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1857#line 474 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1858 tmpMeta[0] = omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends(threadData, _inName, _inRedeclare, _bcl, _inEnv);
1859#line 1859 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1860 goto tmp2_done;
1861 }
1862 case 1: {
1863 /* Pattern matching succeeded */
1864#line 478 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1865 tmpMeta[0] = _inEnv;
1866#line 1866 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1867 goto tmp2_done;
1868 }
1869 }
1870 goto tmp2_end;
1871 tmp2_end: ;
1872 }
1873 goto goto_1;
1874 tmp2_done:
1875 (void)tmp3;
1876 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1877 goto tmp2_done2;
1878 goto_1:;
1879 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1880 if (++tmp3 < 2) {
1881 goto tmp2_top;
1882 }
1883 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1884 tmp2_done2:;
1885 }
1886 }
1887 _outEnv = tmpMeta[0];
1888 _return: OMC_LABEL_UNUSED__attribute__((unused))
1889 return _outEnv;
1890}
1891
1892PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_replaceRedeclaredElementInEnv(threadData_t *threadData, modelica_metatype _inRedeclare, modelica_metatype _inEnv)
1893{
1894 modelica_metatype _outEnv = NULL((void*)0);
1895 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1896 MMC_SO()mmc_check_stackoverflow(threadData);
1897 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1898 // _outEnv has no default value.
1899#line 1899 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1900 { /* matchcontinue expression */
1901 volatile modelica_metatype tmp3_1;
1902 tmp3_1 = _inRedeclare;
1903 {
1904 modelica_string _name = NULL((void*)0);
1905 modelica_string _scope_name = NULL((void*)0);
1906 modelica_metatype _item = NULL((void*)0);
1907 modelica_metatype _info = NULL((void*)0);
1908 modelica_metatype _bcl = NULL((void*)0);
1909 modelica_metatype _envRpl = NULL((void*)0);
1910 volatile mmc_switch_type tmp3;
1911 int tmp4;
1912 // _name has no default value.
1913 // _scope_name has no default value.
1914 // _item has no default value.
1915 // _info has no default value.
1916 // _bcl has no default value.
1917 // _envRpl has no default value.
1918 tmp3 = 0;
1919 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) {
1920 tmp2_top:
1921 threadData->mmc_jumper = &new_mmc_jumper;
1922 for (; tmp3 < 3; tmp3++) {
1923 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1924 case 0: {
1925 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;
1926 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1927 _item = tmpMeta[1];
1928 /* Pattern matching succeeded */
1929#line 425 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1930 _name = omc_NFSCodeEnv_getItemName(threadData, _item);
1931#line 1931 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1932
1933#line 429 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1934 _envRpl = omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtendsNoFail(threadData, _name, _item, _inEnv);
1935#line 1935 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1936#line 430 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1937 tmpMeta[0] = omc_NFSCodeFlattenRedeclare_replaceElementInScope(threadData, _name, _item, _envRpl);
1938#line 1938 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1939 goto tmp2_done;
1940 }
1941 case 1: {
1942 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;
1943 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1944 _item = tmpMeta[1];
1945 /* Pattern matching succeeded */
1946#line 439 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1947 _name = omc_NFSCodeEnv_getItemName(threadData, _item);
1948#line 1948 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1949
1950#line 440 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1951 _bcl = omc_NFSCodeLookup_lookupBaseClasses(threadData, _name, omc_Util_tuple21(threadData, _inEnv));
1952#line 1952 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1953#line 441 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1954 tmpMeta[0] = omc_NFSCodeFlattenRedeclare_pushRedeclareIntoExtends(threadData, _name, _item, _bcl, _inEnv);
1955#line 1955 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1956 goto tmp2_done;
1957 }
1958 case 2: {
1959 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;
1960 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1961 _item = tmpMeta[1];
1962 /* Pattern matching succeeded */
1963#line 447 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1964 _scope_name = omc_NFSCodeEnv_getScopeName(threadData, omc_Util_tuple21(threadData, _inEnv));
1965#line 1965 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1966
1967#line 448 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1968 _name = omc_NFSCodeEnv_getItemName(threadData, _item);
1969#line 1969 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1970
1971#line 449 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1972 _info = omc_NFSCodeEnv_getItemInfo(threadData, _item);
1973#line 1973 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1974
1975#line 450 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1976 tmpMeta[1] = mmc_mk_cons(_name, mmc_mk_cons(_scope_name, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))));
1977#line 450 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1978 omc_Error_addSourceMessage(threadData, _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)), tmpMeta[1], _info);
1979#line 1979 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1980#line 452 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
1981 goto goto_1;
1982#line 1982 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
1983 goto tmp2_done;
1984 }
1985 }
1986 goto tmp2_end;
1987 tmp2_end: ;
1988 }
1989 goto goto_1;
1990 tmp2_done:
1991 (void)tmp3;
1992 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1993 goto tmp2_done2;
1994 goto_1:;
1995 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1996 if (++tmp3 < 3) {
1997 goto tmp2_top;
1998 }
1999 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2000 tmp2_done2:;
2001 }
2002 }
2003 _outEnv = tmpMeta[0];
2004 _return: OMC_LABEL_UNUSED__attribute__((unused))
2005 return _outEnv;
2006}
2007
2008PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_extractRedeclareFromSubMod(threadData_t *threadData, modelica_metatype _inMod, modelica_metatype _inRedeclares)
2009{
2010 modelica_metatype _outRedeclares = NULL((void*)0);
2011 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
2012 MMC_SO()mmc_check_stackoverflow(threadData);
2013 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2014 // _outRedeclares has no default value.
2015#line 2015 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2016 { /* match expression */
2017 modelica_metatype tmp3_1;
2018 tmp3_1 = _inMod;
2019 {
2020 modelica_metatype _el = NULL((void*)0);
2021 modelica_metatype _redecl = NULL((void*)0);
2022 volatile mmc_switch_type tmp3;
2023 int tmp4;
2024 // _el has no default value.
2025 // _redecl has no default value.
2026 tmp3 = 0;
2027 for (; tmp3 < 2; tmp3++) {
2028 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2029 case 0: {
2030 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2031 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((3 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
2032 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
2033 _el = tmpMeta[2];
2034 /* Pattern matching succeeded */
2035#line 398 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2036 tmpMeta[1] = mmc_mk_box2(3, &NFSCodeEnv_Redeclaration_RAW__MODIFIER__desc, _el);
2037#line 398 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2038 _redecl = tmpMeta[1];
2039#line 2039 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2040
2041#line 399 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2042 omc_NFSCodeCheck_checkDuplicateRedeclarations(threadData, _redecl, _inRedeclares);
2043#line 2043 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2044#line 400 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2045 tmpMeta[1] = mmc_mk_cons(_redecl, _inRedeclares);
2046#line 400 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2047 tmpMeta[0] = tmpMeta[1];
2048#line 2048 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2049 goto tmp2_done;
2050 }
2051 case 1: {
2052
2053 /* Pattern matching succeeded */
2054#line 404 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2055 tmpMeta[0] = _inRedeclares;
2056#line 2056 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2057 goto tmp2_done;
2058 }
2059 }
2060 goto tmp2_end;
2061 tmp2_end: ;
2062 }
2063 goto goto_1;
2064 goto_1:;
2065 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2066 goto tmp2_done;
2067 tmp2_done:;
2068 }
2069 }
2070 _outRedeclares = tmpMeta[0];
2071 _return: OMC_LABEL_UNUSED__attribute__((unused))
2072 return _outRedeclares;
2073}
2074
2075DLLExport
2076modelica_metatype omc_NFSCodeFlattenRedeclare_extractRedeclaresFromModifier(threadData_t *threadData, modelica_metatype _inMod)
2077{
2078 modelica_metatype _outRedeclares = NULL((void*)0);
2079 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2080 MMC_SO()mmc_check_stackoverflow(threadData);
2081 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2082 // _outRedeclares has no default value.
2083#line 2083 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2084 { /* match expression */
2085 modelica_metatype tmp3_1;
2086 tmp3_1 = _inMod;
2087 {
2088 modelica_metatype _sub_mods = NULL((void*)0);
2089 volatile mmc_switch_type tmp3;
2090 int tmp4;
2091 // _sub_mods has no default value.
2092 tmp3 = 0;
2093 for (; tmp3 < 2; tmp3++) {
2094 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2095 case 0: {
2096 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2097 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
2098
2099 _sub_mods = tmpMeta[1];
2100 /* Pattern matching succeeded */
2101#line 376 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2102 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2103#line 376 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2104 tmpMeta[0] = omc_List_fold(threadData, _sub_mods, boxvar_NFSCodeFlattenRedeclare_extractRedeclareFromSubMod((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_extractRedeclareFromSubMod
).header) + 3))
, tmpMeta[1]);
2105#line 2105 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2106 goto tmp2_done;
2107 }
2108 case 1: {
2109
2110 /* Pattern matching succeeded */
2111#line 380 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2112 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2113#line 380 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2114 tmpMeta[0] = tmpMeta[1];
2115#line 2115 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2116 goto tmp2_done;
2117 }
2118 }
2119 goto tmp2_end;
2120 tmp2_end: ;
2121 }
2122 goto goto_1;
2123 goto_1:;
2124 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2125 goto tmp2_done;
2126 tmp2_done:;
2127 }
2128 }
2129 _outRedeclares = tmpMeta[0];
2130 _return: OMC_LABEL_UNUSED__attribute__((unused))
2131 return _outRedeclares;
2132}
2133
2134DLLExport
2135modelica_metatype omc_NFSCodeFlattenRedeclare_replaceRedeclaredElementsInEnv(threadData_t *threadData, modelica_metatype _inRedeclares, modelica_metatype _inItem, modelica_metatype _inTypeEnv, modelica_metatype _inElementEnv, modelica_metatype _inPrefix, modelica_metatype *out_outEnv, modelica_metatype *out_outReplacements)
2136{
2137 modelica_metatype _outItem = NULL((void*)0);
2138 modelica_metatype _outEnv = NULL((void*)0);
2139 modelica_metatype _outReplacements = NULL((void*)0);
2140 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
2141 MMC_SO()mmc_check_stackoverflow(threadData);
2142 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2143 // _outItem has no default value.
2144 // _outEnv has no default value.
2145 // _outReplacements has no default value.
2146#line 328 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2147
2148#line 328 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2149
2150#line 328 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2151
2152#line 2152 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2153 { /* matchcontinue expression */
2154 volatile modelica_metatype tmp4_1;volatile modelica_metatype tmp4_2;
2155 tmp4_1 = _inRedeclares;
2156 tmp4_2 = _inItem;
2157 {
2158 modelica_metatype _cls = NULL((void*)0);
2159 modelica_metatype _env = NULL((void*)0);
2160 modelica_metatype _item_env = NULL((void*)0);
2161 modelica_metatype _cls_ty = NULL((void*)0);
2162 modelica_metatype _redecls = NULL((void*)0);
2163 modelica_metatype _repl = NULL((void*)0);
2164 volatile mmc_switch_type tmp4;
2165 int tmp5;
2166 // _cls has no default value.
2167 // _env has no default value.
2168 // _item_env has no default value.
2169 // _cls_ty has no default value.
2170 // _redecls has no default value.
2171 // _repl has no default value.
2172 tmp4 = 0;
2173 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) {
2174 tmp3_top:
2175 threadData->mmc_jumper = &new_mmc_jumper;
2176 for (; tmp4 < 3; tmp4++) {
2177 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2178 case 0: {
2179 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2180
2181 /* Pattern matching succeeded */
2182#line 339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2183 tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2184#line 339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2185 tmpMeta[0+0] = _inItem;
2186#line 339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2187 tmpMeta[0+1] = _inTypeEnv;
2188#line 339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2189 tmpMeta[0+2] = tmpMeta[3];
2190#line 2190 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2191 goto tmp3_done;
2192 }
2193 case 1: {
2194 if (mmc__uniontype__metarecord__typedef__equal(tmp4_2,1,3)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3)))==(((3 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2195 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
2196 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(3)))))
;
2197 if (listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2198 tmpMeta[5] = MMC_CAR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (1)))))
;
2199 tmpMeta[6] = MMC_CDR(tmpMeta[4])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[4]) - 3
))) + (2)))))
;
2200 if (!listEmpty(tmpMeta[6])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2201 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_2), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(4)))))
;
2202
2203 _cls = tmpMeta[3];
2204 _item_env = tmpMeta[5];
2205 _cls_ty = tmpMeta[7];
2206 /* Pattern matching succeeded */
2207#line 345 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2208 _env = omc_NFSCodeEnv_enterFrame(threadData, _item_env, _inTypeEnv);
2209#line 2209 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2210
2211#line 346 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2212 _redecls = omc_List_map2(threadData, _inRedeclares, boxvar_NFSCodeFlattenRedeclare_processRedeclare((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_processRedeclare
).header) + 3))
, _inElementEnv, _inPrefix);
2213#line 2213 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2214
2215#line 347 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2216 /* Pattern-matching assignment */
2217#line 347 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2218 tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2219#line 347 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2220 tmpMeta[4] = mmc_mk_box2(0, _env, tmpMeta[3]);
2221#line 347 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2222 tmpMeta[5] = omc_List_fold(threadData, _redecls, boxvar_NFSCodeFlattenRedeclare_replaceRedeclaredElementInEnv((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_replaceRedeclaredElementInEnv
).header) + 3))
, tmpMeta[4]);
2223#line 347 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2224 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (1)))))
;
2225#line 347 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2226 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (2)))))
;
2227#line 347 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2228 _env = tmpMeta[6];
2229#line 347 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2230 _repl = tmpMeta[7];
2231#line 2231 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2232
2233#line 348 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2234 /* Pattern-matching assignment */
2235#line 348 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2236 tmpMeta[3] = _env;
2237#line 348 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2238 if (listEmpty(tmpMeta[3])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_2;
2239#line 348 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2240 tmpMeta[4] = MMC_CAR(tmpMeta[3])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (1)))))
;
2241#line 348 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2242 tmpMeta[5] = MMC_CDR(tmpMeta[3])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
2243#line 348 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2244 _item_env = tmpMeta[4];
2245#line 348 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2246 _env = tmpMeta[5];
2247#line 2247 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2248#line 349 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2249 tmpMeta[3] = mmc_mk_cons(_item_env, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2250#line 349 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2251 tmpMeta[4] = mmc_mk_box4(4, &NFSCodeEnv_Item_CLASS__desc, _cls, tmpMeta[3], _cls_ty);
2252#line 349 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2253 tmpMeta[0+0] = tmpMeta[4];
2254#line 349 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2255 tmpMeta[0+1] = _env;
2256#line 349 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2257 tmpMeta[0+2] = _repl;
2258#line 2258 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2259 goto tmp3_done;
2260 }
2261 case 2: {
2262 modelica_boolean tmp6;
2263
2264 /* Pattern matching succeeded */
2265#line 354 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2266 /* Pattern-matching assignment */
2267#line 354 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2268 tmp6 = omc_Flags_isSet(threadData, _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)));
2269#line 354 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2270 if (1 != tmp6) goto goto_2;
2271#line 2271 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2272
2273#line 355 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2274 omc_Debug_trace(threadData, _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)));
2275#line 2275 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2276
2277#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2278 tmpMeta[3] = stringAppend(_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)),stringDelimitList(omc_List_map(threadData, _inRedeclares, boxvar_NFSCodeEnv_printRedeclarationStr((void*)((char*)(&(boxvar_lit_NFSCodeEnv_printRedeclarationStr
).header) + 3))
), _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))));
2279#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2280 tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)));
2281#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2282 tmpMeta[5] = stringAppend(tmpMeta[4],omc_NFSCodeEnv_itemStr(threadData, _inItem));
2283#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2284 tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)));
2285#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2286 tmpMeta[7] = stringAppend(tmpMeta[6],omc_NFSCodeEnv_getEnvName(threadData, _inElementEnv));
2287#line 356 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2288 omc_Debug_traceln(threadData, tmpMeta[7]);
2289#line 2289 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2290#line 359 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2291 goto goto_2;
2292#line 2292 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2293 goto tmp3_done;
2294 }
2295 }
2296 goto tmp3_end;
2297 tmp3_end: ;
2298 }
2299 goto goto_2;
2300 tmp3_done:
2301 (void)tmp4;
2302 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2303 goto tmp3_done2;
2304 goto_2:;
2305 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2306 if (++tmp4 < 3) {
2307 goto tmp3_top;
2308 }
2309 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2310 tmp3_done2:;
2311 }
2312 }
2313 _outItem = tmpMeta[0+0];
2314 _outEnv = tmpMeta[0+1];
2315 _outReplacements = tmpMeta[0+2];
2316 _return: OMC_LABEL_UNUSED__attribute__((unused))
2317 if (out_outEnv) { *out_outEnv = _outEnv; }
2318 if (out_outReplacements) { *out_outReplacements = _outReplacements; }
2319 return _outItem;
2320}
2321
2322DLLExport
2323modelica_metatype omc_NFSCodeFlattenRedeclare_replaceRedeclares(threadData_t *threadData, modelica_metatype _inRedeclares, modelica_metatype _inClassItem, modelica_metatype _inClassEnv, modelica_metatype _inElementEnv, modelica_metatype _inReplaceRedeclares, modelica_metatype *out_outEnv)
2324{
2325 modelica_metatype _outItem = NULL((void*)0);
2326 modelica_metatype _outEnv = NULL((void*)0);
2327 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2328 MMC_SO()mmc_check_stackoverflow(threadData);
2329 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2330 // _outItem has no default value.
2331 // _outEnv has no default value.
2332#line 293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2333
2334#line 293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2335
2336#line 2336 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2337 { /* matchcontinue expression */
2338 volatile modelica_metatype tmp4_1;
2339 tmp4_1 = _inReplaceRedeclares;
2340 {
2341 modelica_metatype _item = NULL((void*)0);
2342 modelica_metatype _env = NULL((void*)0);
2343 volatile mmc_switch_type tmp4;
2344 int tmp5;
2345 // _item has no default value.
2346 // _env has no default value.
2347 tmp4 = 0;
2348 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) {
2349 tmp3_top:
2350 threadData->mmc_jumper = &new_mmc_jumper;
2351 for (; tmp4 < 3; tmp4++) {
2352 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2353 case 0: {
2354 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;
2355 tmp4 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
2356#line 300 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2357 tmpMeta[0+0] = mmc_mk_some(_inClassItem);
2358#line 300 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2359 tmpMeta[0+1] = mmc_mk_some(_inClassEnv);
2360#line 2360 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2361 goto tmp3_done;
2362 }
2363 case 1: {
2364 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2365 /* Pattern matching succeeded */
2366#line 304 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2367 _item = omc_NFSCodeFlattenRedeclare_replaceRedeclaredElementsInEnv(threadData, _inRedeclares, _inClassItem, _inClassEnv, _inElementEnv, _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)) ,&_env ,NULL((void*)0));
2368#line 2368 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2369#line 306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2370 tmpMeta[0+0] = mmc_mk_some(_item);
2371#line 306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2372 tmpMeta[0+1] = mmc_mk_some(_env);
2373#line 2373 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2374 goto tmp3_done;
2375 }
2376 case 2: {
2377
2378 /* Pattern matching succeeded */
2379#line 309 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2380 tmpMeta[0+0] = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
2381#line 309 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2382 tmpMeta[0+1] = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
2383#line 2383 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2384 goto tmp3_done;
2385 }
2386 }
2387 goto tmp3_end;
2388 tmp3_end: ;
2389 }
2390 goto goto_2;
2391 tmp3_done:
2392 (void)tmp4;
2393 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2394 goto tmp3_done2;
2395 goto_2:;
2396 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2397 if (++tmp4 < 3) {
2398 goto tmp3_top;
2399 }
2400 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2401 tmp3_done2:;
2402 }
2403 }
2404 _outItem = tmpMeta[0+0];
2405 _outEnv = tmpMeta[0+1];
2406 _return: OMC_LABEL_UNUSED__attribute__((unused))
2407 if (out_outEnv) { *out_outEnv = _outEnv; }
2408 return _outItem;
2409}
2410
2411DLLExport
2412modelica_metatype omc_NFSCodeFlattenRedeclare_processRedeclare(threadData_t *threadData, modelica_metatype _inRedeclare, modelica_metatype _inEnv, modelica_metatype _inPrefix)
2413{
2414 modelica_metatype _outRedeclare = NULL((void*)0);
2415 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2416 MMC_SO()mmc_check_stackoverflow(threadData);
2417 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2418 // _outRedeclare has no default value.
2419#line 2419 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2420 { /* matchcontinue expression */
2421 volatile modelica_metatype tmp3_1;
2422 tmp3_1 = _inRedeclare;
2423 {
2424 modelica_metatype _el_item = NULL((void*)0);
2425 modelica_metatype _redecl_item = NULL((void*)0);
2426 modelica_metatype _el = NULL((void*)0);
2427 modelica_metatype _cls_env = NULL((void*)0);
2428 volatile mmc_switch_type tmp3;
2429 int tmp4;
2430 // _el_item has no default value.
2431 // _redecl_item has no default value.
2432 // _el has no default value.
2433 // _cls_env has no default value.
2434 tmp3 = 0;
2435 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) {
2436 tmp2_top:
2437 threadData->mmc_jumper = &new_mmc_jumper;
2438 for (; tmp3 < 4; tmp3++) {
2439 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2440 case 0: {
2441 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((1 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2442 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2443 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((8 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
2444
2445 _el = tmpMeta[1];
2446 tmp3 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
2447#line 252 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2448 _cls_env = omc_NFSCodeEnv_makeClassEnvironment(threadData, _el, 1);
2449#line 2449 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2450
2451#line 253 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2452 _el_item = omc_NFSCodeEnv_newClassItem(threadData, _el, _cls_env, _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)));
2453#line 2453 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2454
2455#line 254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2456 tmpMeta[1] = mmc_mk_box3(6, &NFSCodeEnv_Item_REDECLARED__ITEM__desc, _el_item, _inEnv);
2457#line 254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2458 _redecl_item = tmpMeta[1];
2459#line 2459 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2460#line 255 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2461 tmpMeta[1] = mmc_mk_box2(4, &NFSCodeEnv_Redeclaration_PROCESSED__MODIFIER__desc, _redecl_item);
2462#line 255 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2463 tmpMeta[0] = tmpMeta[1];
2464#line 2464 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2465 goto tmp2_done;
2466 }
2467 case 1: {
2468 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((1 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2469 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2470 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,8)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((8 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
2471
2472 _el = tmpMeta[1];
2473 tmp3 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
2474#line 260 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2475 _el_item = omc_NFSCodeEnv_newVarItem(threadData, _el, 1);
2476#line 2476 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2477
2478#line 261 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2479 tmpMeta[1] = mmc_mk_box3(6, &NFSCodeEnv_Item_REDECLARED__ITEM__desc, _el_item, _inEnv);
2480#line 261 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2481 _redecl_item = tmpMeta[1];
2482#line 2482 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2483#line 262 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2484 tmpMeta[1] = mmc_mk_box2(4, &NFSCodeEnv_Redeclaration_PROCESSED__MODIFIER__desc, _redecl_item);
2485#line 262 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2486 tmpMeta[0] = tmpMeta[1];
2487#line 2487 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2488 goto tmp2_done;
2489 }
2490 case 2: {
2491 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;
2492
2493 /* Pattern matching succeeded */
2494#line 265 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2495 tmpMeta[0] = _inRedeclare;
2496#line 2496 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2497 goto tmp2_done;
2498 }
2499 case 3: {
2500 modelica_boolean tmp5;
2501
2502 /* Pattern matching succeeded */
2503#line 269 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2504 /* Pattern-matching assignment */
2505#line 269 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2506 tmp5 = omc_Flags_isSet(threadData, _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)));
2507#line 269 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2508 if (1 != tmp5) goto goto_1;
2509#line 2509 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2510
2511#line 270 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2512 tmpMeta[1] = stringAppend(_OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)),omc_SCodeDump_unparseElementStr(threadData, omc_NFSCodeEnv_getRedeclarationElement(threadData, _inRedeclare), _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))));
2513#line 270 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2514 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)));
2515#line 270 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2516 tmpMeta[3] = stringAppend(tmpMeta[2],omc_AbsynUtil_pathString(threadData, omc_NFSCodeEnv_getEnvPath(threadData, _inEnv), _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)), 1, 0));
2517#line 270 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2518 omc_Debug_traceln(threadData, tmpMeta[3]);
2519#line 2519 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2520#line 273 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2521 goto goto_1;
2522#line 2522 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2523 goto tmp2_done;
2524 }
2525 }
2526 goto tmp2_end;
2527 tmp2_end: ;
2528 }
2529 goto goto_1;
2530 tmp2_done:
2531 (void)tmp3;
2532 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2533 goto tmp2_done2;
2534 goto_1:;
2535 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2536 if (++tmp3 < 4) {
2537 goto tmp2_top;
2538 }
2539 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2540 tmp2_done2:;
2541 }
2542 }
2543 _outRedeclare = tmpMeta[0];
2544 _return: OMC_LABEL_UNUSED__attribute__((unused))
2545 return _outRedeclare;
2546}
2547
2548PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable2(threadData_t *threadData, modelica_metatype _inRedeclaredElement, modelica_metatype _inBaseClasses, modelica_metatype _inExtends)
2549{
2550 modelica_metatype _outExtends = NULL((void*)0);
2551 modelica_metatype tmpMeta[9] __attribute__((unused)) = {0};
2552 MMC_SO()mmc_check_stackoverflow(threadData);
2553 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2554 // _outExtends has no default value.
2555#line 2555 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2556 { /* matchcontinue expression */
2557 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
2558 tmp3_1 = _inBaseClasses;
2559 tmp3_2 = _inExtends;
2560 {
2561 modelica_metatype _ex = NULL((void*)0);
2562 modelica_metatype _exl = NULL((void*)0);
2563 modelica_metatype _bc1 = NULL((void*)0);
2564 modelica_metatype _bc2 = NULL((void*)0);
2565 modelica_metatype _rest_bc = NULL((void*)0);
2566 modelica_metatype _el = NULL((void*)0);
2567 modelica_integer _index;
2568 modelica_metatype _info = NULL((void*)0);
2569 modelica_metatype _redecl = NULL((void*)0);
2570 volatile mmc_switch_type tmp3;
2571 int tmp4;
2572 // _ex has no default value.
2573 // _exl has no default value.
2574 // _bc1 has no default value.
2575 // _bc2 has no default value.
2576 // _rest_bc has no default value.
2577 // _el has no default value.
2578 // _index has no default value.
2579 // _info has no default value.
2580 // _redecl has no default value.
2581 tmp3 = 0;
2582 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) {
2583 tmp2_top:
2584 threadData->mmc_jumper = &new_mmc_jumper;
2585 for (; tmp3 < 3; tmp3++) {
2586 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2587 case 0: {
2588 modelica_integer tmp5;
2589 modelica_boolean tmp6;
2590 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2591 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2592 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2593 if (listEmpty(tmp3_2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2594 tmpMeta[3] = MMC_CAR(tmp3_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
2595 tmpMeta[4] = MMC_CDR(tmp3_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
2596 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
2597 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (3)))))
;
2598 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (4)))))
;
2599 tmp5 = mmc_unbox_integer(tmpMeta[7])(((mmc_sint_t) (tmpMeta[7])) >> 1);
2600 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (5)))))
;
2601 _bc1 = tmpMeta[1];
2602 _rest_bc = tmpMeta[2];
2603 _bc2 = tmpMeta[5];
2604 _el = tmpMeta[6];
2605 _index = tmp5 /* pattern as ty=Integer */;
2606 _info = tmpMeta[8];
2607 _exl = tmpMeta[4];
2608 tmp3 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
2609#line 217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2610 /* Pattern-matching assignment */
2611#line 217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2612 tmp6 = omc_AbsynUtil_pathEqual(threadData, _bc1, _bc2);
2613#line 217 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2614 if (1 != tmp6) goto goto_1;
2615#line 2615 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2616
2617#line 218 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2618 tmpMeta[1] = mmc_mk_box2(4, &NFSCodeEnv_Redeclaration_PROCESSED__MODIFIER__desc, _inRedeclaredElement);
2619#line 218 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2620 _redecl = tmpMeta[1];
2621#line 2621 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2622
2623#line 219 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2624 omc_NFSCodeCheck_checkDuplicateRedeclarations(threadData, _redecl, _el);
2625#line 2625 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2626
2627#line 220 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2628 tmpMeta[1] = mmc_mk_cons(_redecl, _el);
2629#line 220 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2630 tmpMeta[2] = mmc_mk_box5(3, &NFSCodeEnv_Extends_EXTENDS__desc, _bc2, tmpMeta[1], mmc_mk_integermmc_mk_icon(_index), _info);
2631#line 220 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2632 _ex = tmpMeta[2];
2633#line 2633 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2634
2635#line 221 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2636 _exl = omc_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable2(threadData, _inRedeclaredElement, _rest_bc, _exl);
2637#line 2637 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2638#line 222 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2639 tmpMeta[1] = mmc_mk_cons(_ex, _exl);
2640#line 222 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2641 tmpMeta[0] = tmpMeta[1];
2642#line 2642 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2643 goto tmp2_done;
2644 }
2645 case 1: {
2646 if (!listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2647
2648 /* Pattern matching succeeded */
2649#line 225 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2650 tmpMeta[0] = _inExtends;
2651#line 2651 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2652 goto tmp2_done;
2653 }
2654 case 2: {
2655 if (listEmpty(tmp3_2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2656 tmpMeta[1] = MMC_CAR(tmp3_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
2657 tmpMeta[2] = MMC_CDR(tmp3_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
2658
2659 _ex = tmpMeta[1];
2660 _exl = tmpMeta[2];
2661 /* Pattern matching succeeded */
2662#line 229 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2663 _exl = omc_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable2(threadData, _inRedeclaredElement, _inBaseClasses, _exl);
2664#line 2664 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2665#line 230 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2666 tmpMeta[1] = mmc_mk_cons(_ex, _exl);
2667#line 230 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2668 tmpMeta[0] = tmpMeta[1];
2669#line 2669 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2670 goto tmp2_done;
2671 }
2672 }
2673 goto tmp2_end;
2674 tmp2_end: ;
2675 }
2676 goto goto_1;
2677 tmp2_done:
2678 (void)tmp3;
2679 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2680 goto tmp2_done2;
2681 goto_1:;
2682 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2683 if (++tmp3 < 3) {
2684 goto tmp2_top;
2685 }
2686 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2687 tmp2_done2:;
2688 }
2689 }
2690 _outExtends = tmpMeta[0];
2691 _return: OMC_LABEL_UNUSED__attribute__((unused))
2692 return _outExtends;
2693}
2694
2695PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable(threadData_t *threadData, modelica_metatype _inRedeclaredElement, modelica_metatype _inBaseClasses, modelica_metatype _inEnv, modelica_metatype _inInfo)
2696{
2697 modelica_metatype _outEnv = NULL((void*)0);
2698 modelica_metatype _bcl = NULL((void*)0);
2699 modelica_metatype _re = NULL((void*)0);
2700 modelica_metatype _cei = NULL((void*)0);
2701 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2702 MMC_SO()mmc_check_stackoverflow(threadData);
2703 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2704 // _outEnv has no default value.
2705 // _bcl has no default value.
2706 // _re has no default value.
2707 // _cei has no default value.
2708#line 193 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2709 /* Pattern-matching assignment */
2710#line 193 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2711 tmpMeta[0] = omc_NFSCodeEnv_getEnvExtendsTable(threadData, _inEnv);
2712#line 193 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2713 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
2714#line 193 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2715 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
2716#line 193 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2717 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
2718#line 193 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2719 _bcl = tmpMeta[1];
2720#line 193 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2721 _re = tmpMeta[2];
2722#line 193 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2723 _cei = tmpMeta[3];
2724#line 2724 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2725
2726#line 194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2727 _bcl = omc_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable2(threadData, _inRedeclaredElement, _inBaseClasses, _bcl);
2728#line 2728 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2729
2730#line 195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2731 tmpMeta[0] = mmc_mk_box4(3, &NFSCodeEnv_ExtendsTable_EXTENDS__TABLE__desc, _bcl, _re, _cei);
2732#line 195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2733 _outEnv = omc_NFSCodeEnv_setEnvExtendsTable(threadData, tmpMeta[0], _inEnv);
2734#line 2734 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2735 _return: OMC_LABEL_UNUSED__attribute__((unused))
2736 return _outEnv;
2737}
2738
2739PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_lookupElementRedeclaration(threadData_t *threadData, modelica_string _inName, modelica_metatype _inEnv, modelica_metatype _inInfo)
2740{
2741 modelica_metatype _outPaths = NULL((void*)0);
2742 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2743 MMC_SO()mmc_check_stackoverflow(threadData);
2744 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2745 // _outPaths has no default value.
2746#line 2746 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2747 { /* matchcontinue expression */
2748 {
2749 volatile mmc_switch_type tmp3;
2750 int tmp4;
2751 tmp3 = 0;
2752 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) {
2753 tmp2_top:
2754 threadData->mmc_jumper = &new_mmc_jumper;
2755 for (; tmp3 < 2; tmp3++) {
2756 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2757 case 0: {
2758 /* Pattern matching succeeded */
2759#line 168 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2760 tmpMeta[0] = omc_NFSCodeLookup_lookupBaseClasses(threadData, _inName, _inEnv);
2761#line 2761 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2762 goto tmp2_done;
2763 }
2764 case 1: {
2765 /* Pattern matching succeeded */
2766#line 174 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2767 tmpMeta[1] = mmc_mk_cons(_inName, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2768#line 174 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2769 omc_Error_addSourceMessage(threadData, _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)), tmpMeta[1], _inInfo);
2770#line 2770 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2771#line 176 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2772 goto goto_1;
2773#line 2773 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2774 goto tmp2_done;
2775 }
2776 }
2777 goto tmp2_end;
2778 tmp2_end: ;
2779 }
2780 goto goto_1;
2781 tmp2_done:
2782 (void)tmp3;
2783 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2784 goto tmp2_done2;
2785 goto_1:;
2786 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2787 if (++tmp3 < 2) {
2788 goto tmp2_top;
2789 }
2790 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2791 tmp2_done2:;
2792 }
2793 }
2794 _outPaths = tmpMeta[0];
2795 _return: OMC_LABEL_UNUSED__attribute__((unused))
2796 return _outPaths;
2797}
2798
2799PROTECTED_FUNCTION_STATIC modelica_metatype omc_NFSCodeFlattenRedeclare_addElementRedeclarationsToEnv2(threadData_t *threadData, modelica_metatype _inRedeclare, modelica_metatype _inEnv)
2800{
2801 modelica_metatype _outEnv = NULL((void*)0);
2802 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
2803 MMC_SO()mmc_check_stackoverflow(threadData);
2804 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2805 // _outEnv has no default value.
2806#line 2806 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2807 { /* matchcontinue expression */
2808 {
2809 modelica_string _name = NULL((void*)0);
2810 modelica_metatype _info = NULL((void*)0);
2811 modelica_metatype _env_path = NULL((void*)0);
2812 modelica_metatype _ext_pathl = NULL((void*)0);
2813 modelica_metatype _item = NULL((void*)0);
2814 volatile mmc_switch_type tmp3;
2815 int tmp4;
2816 // _name has no default value.
2817 // _info has no default value.
2818 // _env_path has no default value.
2819 // _ext_pathl has no default value.
2820 // _item has no default value.
2821 tmp3 = 0;
2822 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) {
2823 tmp2_top:
2824 threadData->mmc_jumper = &new_mmc_jumper;
2825 for (; tmp3 < 2; tmp3++) {
2826 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2827 case 0: {
2828 /* Pattern matching succeeded */
2829#line 136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2830 _name = omc_SCodeUtil_elementName(threadData, _inRedeclare);
2831#line 2831 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2832
2833#line 137 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2834 _info = omc_SCodeUtil_elementInfo(threadData, _inRedeclare);
2835#line 2835 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2836
2837#line 138 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2838 _ext_pathl = omc_NFSCodeFlattenRedeclare_lookupElementRedeclaration(threadData, _name, _inEnv, _info);
2839#line 2839 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2840
2841#line 139 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2842 _env_path = omc_NFSCodeEnv_getEnvPath(threadData, _inEnv);
2843#line 2843 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2844
2845#line 140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2846 tmpMeta[1] = mmc_mk_box4(5, &NFSCodeEnv_Item_ALIAS__desc, _name, mmc_mk_some(_env_path), _info);
2847#line 140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2848 _item = tmpMeta[1];
2849#line 2849 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2850#line 141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2851 tmpMeta[0] = omc_NFSCodeFlattenRedeclare_addRedeclareToEnvExtendsTable(threadData, _item, _ext_pathl, _inEnv, _info);
2852#line 2852 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2853 goto tmp2_done;
2854 }
2855 case 1: {
2856 modelica_boolean tmp5;
2857 /* Pattern matching succeeded */
2858#line 147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2859 /* Pattern-matching assignment */
2860#line 147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2861 tmp5 = omc_Flags_isSet(threadData, _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)));
2862#line 147 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2863 if (1 != tmp5) goto goto_1;
2864#line 2864 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2865
2866#line 148 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2867 tmpMeta[1] = stringAppend(_OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)),omc_SCodeUtil_elementName(threadData, _inRedeclare));
2868#line 148 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2869 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)));
2870#line 148 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2871 tmpMeta[3] = stringAppend(tmpMeta[2],omc_NFSCodeEnv_getEnvName(threadData, _inEnv));
2872#line 148 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2873 tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
2874#line 148 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2875 omc_Debug_traceln(threadData, tmpMeta[4]);
2876#line 2876 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2877#line 151 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2878 goto goto_1;
2879#line 2879 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2880 goto tmp2_done;
2881 }
2882 }
2883 goto tmp2_end;
2884 tmp2_end: ;
2885 }
2886 goto goto_1;
2887 tmp2_done:
2888 (void)tmp3;
2889 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2890 goto tmp2_done2;
2891 goto_1:;
2892 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2893 if (++tmp3 < 2) {
2894 goto tmp2_top;
2895 }
2896 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2897 tmp2_done2:;
2898 }
2899 }
2900 _outEnv = tmpMeta[0];
2901 _return: OMC_LABEL_UNUSED__attribute__((unused))
2902 return _outEnv;
2903}
2904
2905DLLExport
2906modelica_metatype omc_NFSCodeFlattenRedeclare_addElementRedeclarationsToEnv(threadData_t *threadData, modelica_metatype _inRedeclares, modelica_metatype _inEnv)
2907{
2908 modelica_metatype _outEnv = NULL((void*)0);
2909 MMC_SO()mmc_check_stackoverflow(threadData);
2910 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2911 // _outEnv has no default value.
2912#line 117 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FrontEnd/NFSCodeFlattenRedeclare.mo"
2913 _outEnv = omc_List_fold(threadData, _inRedeclares, boxvar_NFSCodeFlattenRedeclare_addElementRedeclarationsToEnv2((void*)((char*)(&(boxvar_lit_NFSCodeFlattenRedeclare_addElementRedeclarationsToEnv2
).header) + 3))
, _inEnv);
2914#line 2914 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/NFSCodeFlattenRedeclare.c"
2915 _return: OMC_LABEL_UNUSED__attribute__((unused))
2916 return _outEnv;
2917}
2918