Bug Summary

File:OMCompiler/Compiler/boot/build/FGraph.c
Warning:line 5216, column 11
Value stored to '_r' 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/FGraph.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/FGraph.c" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "FGraph.h"
8#define _OMC_LIT0_data"$status" "$status"
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,7,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "$status"
}
;
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"FGraph.setStatus failed on: " "FGraph.setStatus failed on: "
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,28,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(28)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)28)<<(3))+((1<<(3+3))+5)), "FGraph.setStatus failed on: "
}
;
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" element: " " element: "
15static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,10,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), " element: "
}
;
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"\n" "\n"
18static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,1,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\n"
}
;
19#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
20static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT4,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT4
= { (((1) << 10) + (((3) & 255) << 2)),
{&DAE_Prefix_NOPRE__desc,}};
21#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
22static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT5,1,6)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT5
= { (((1) << 10) + (((6) & 255) << 2)),
{&SCode_Variability_CONST__desc,}};
23#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
24#define _OMC_LIT6_data"" ""
25static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,0,_OMC_LIT6_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT6
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
26#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
27static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT7,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT7
= { (((2) << 10) + (((4) & 255) << 2)),
{&Absyn_Path_IDENT__desc,_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))}};
28#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
29static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT8,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT8
= { (((2) << 10) + (((3) & 255) << 2)),
{&ClassInf_State_UNKNOWN__desc,_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))}};
30#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
31static const MMC_DEFREALLIT(_OMC_LIT_STRUCT9,0.0)struct mmc_real_lit _OMC_LIT_STRUCT9 = {0,(((8/8) << 10
) + 9),0.0}
;
32#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
33static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT10,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT10
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))}};
34#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
35#define _OMC_LIT11_data"$" "$"
36static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT11,1,_OMC_LIT11_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT11
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "$"
}
;
37#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
38#define _OMC_LIT12_data"OpenModelica" "OpenModelica"
39static 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)), "OpenModelica"
}
;
40#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
41#define _OMC_LIT13_data"FGraph.mkVersionNode: failed to create version node:\nInstance: CL(" "FGraph.mkVersionNode: failed to create version node:\nInstance: CL("
42static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT13,66,_OMC_LIT13_data)struct { mmc_uint_t header; const char data[(66)+1]; } _OMC_LIT_STRUCT13
= { ((((mmc_uint_t)66)<<(3))+((1<<(3+3))+5)), "FGraph.mkVersionNode: failed to create version node:\nInstance: CL("
}
;
43#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
44#define _OMC_LIT14_data").CO(" ").CO("
45static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT14,5,_OMC_LIT14_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT14
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), ").CO("
}
;
46#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
47#define _OMC_LIT15_data").CL(" ").CL("
48static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT15,5,_OMC_LIT15_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT15
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), ").CL("
}
;
49#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
50#define _OMC_LIT16_data"." "."
51static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT16,1,_OMC_LIT16_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT16
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "."
}
;
52#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
53static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT17,10,3)struct { mmc_uint_t header; const void *data[10]; } _OMC_LIT_STRUCT17
= { (((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)))}};
54#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
55#define _OMC_LIT18_data")\n " ")\n "
56static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT18,3,_OMC_LIT18_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT18
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), ")\n "
}
;
57#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
58static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT19,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT19
= { (((1) << 10) + (((3) & 255) << 2)),
{&FCore_ScopeType_FUNCTION__SCOPE__desc,}};
59#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
60static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT20,1,1)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT20
= { (((1) << 10) + (((1) & 255) << 2)),
{_OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))}};
61#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
62static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT21,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT21
= { (((1) << 10) + (((5) & 255) << 2)),
{&FCore_ScopeType_PARALLEL__SCOPE__desc,}};
63#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
64static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT22,1,1)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT22
= { (((1) << 10) + (((1) & 255) << 2)),
{_OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))}};
65#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
66#define _OMC_LIT23_data"NOT IMPLEMENTED YET" "NOT IMPLEMENTED YET"
67static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,19,_OMC_LIT23_data)struct { mmc_uint_t header; const char data[(19)+1]; } _OMC_LIT_STRUCT23
= { ((((mmc_uint_t)19)<<(3))+((1<<(3+3))+5)), "NOT IMPLEMENTED YET"
}
;
68#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
69static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT24,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT24
= { (((1) << 10) + (((4) & 255) << 2)),
{&FCore_ScopeType_CLASS__SCOPE__desc,}};
70#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
71static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT25,1,1)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT25
= { (((1) << 10) + (((1) & 255) << 2)),
{_OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))}};
72#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
73static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT26,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT26
= { (((1) << 10) + (((3) & 255) << 2)),
{&FCore_Kind_USERDEFINED__desc,}};
74#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
75#define _OMC_LIT27_data"FGraph.mkComponentNode: The component name: " "FGraph.mkComponentNode: The component name: "
76static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT27,44,_OMC_LIT27_data)struct { mmc_uint_t header; const char data[(44)+1]; } _OMC_LIT_STRUCT27
= { ((((mmc_uint_t)44)<<(3))+((1<<(3+3))+5)), "FGraph.mkComponentNode: The component name: "
}
;
77#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
78#define _OMC_LIT28_data" is not the same as its DAE.TYPES_VAR: " " is not the same as its DAE.TYPES_VAR: "
79static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT28,39,_OMC_LIT28_data)struct { mmc_uint_t header; const char data[(39)+1]; } _OMC_LIT_STRUCT28
= { ((((mmc_uint_t)39)<<(3))+((1<<(3+3))+5)), " is not the same as its DAE.TYPES_VAR: "
}
;
80#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
81#define _OMC_LIT29_data"stripPrefix" "stripPrefix"
82static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT29,11,_OMC_LIT29_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT29
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "stripPrefix"
}
;
83#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
84#define _OMC_LIT30_data"Strips the environment prefix from path/crefs. Defaults to true." "Strips the environment prefix from path/crefs. Defaults to true."
85static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT30,64,_OMC_LIT30_data)struct { mmc_uint_t header; const char data[(64)+1]; } _OMC_LIT_STRUCT30
= { ((((mmc_uint_t)64)<<(3))+((1<<(3+3))+5)), "Strips the environment prefix from path/crefs. Defaults to true."
}
;
86#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
87static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT31,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT31
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))}};
88#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
89static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT32,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT32
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(110))((void*)(((((mmc_uint_t) (110)) << 1)+0))),_OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),_OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))}};
90#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
91static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT33,1,7)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT33
= { (((1) << 10) + (((7) & 255) << 2)),
{&SCode_FunctionRestriction_FR__PARALLEL__FUNCTION__desc,}};
92#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
93static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT34,2,12)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT34
= { (((2) << 10) + (((12) & 255) << 2)),
{&SCode_Restriction_R__FUNCTION__desc,_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))}};
94#define _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT34)((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))
95static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT35,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT35
= { (((2) << 10) + (((3) & 255) << 2)),
{&SCode_FunctionRestriction_FR__NORMAL__FUNCTION__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
96#define _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT35)((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))
97static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT36,2,12)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT36
= { (((2) << 10) + (((12) & 255) << 2)),
{&SCode_Restriction_R__FUNCTION__desc,_OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))}};
98#define _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT36)((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))
99static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT37,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT37
= { (((1) << 10) + (((3) & 255) << 2)),
{&SCode_Restriction_R__CLASS__desc,}};
100#define _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT37)((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))
101#define _OMC_LIT38_data"$foriter loop scope$" "$foriter loop scope$"
102static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT38,20,_OMC_LIT38_data)struct { mmc_uint_t header; const char data[(20)+1]; } _OMC_LIT_STRUCT38
= { ((((mmc_uint_t)20)<<(3))+((1<<(3+3))+5)), "$foriter loop scope$"
}
;
103#define _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT38)((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3))
104#define _OMC_LIT39_data"$parforiter loop scope$" "$parforiter loop scope$"
105static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT39,23,_OMC_LIT39_data)struct { mmc_uint_t header; const char data[(23)+1]; } _OMC_LIT_STRUCT39
= { ((((mmc_uint_t)23)<<(3))+((1<<(3+3))+5)), "$parforiter loop scope$"
}
;
106#define _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT39)((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))
107#define _OMC_LIT40_data"$for loop scope$" "$for loop scope$"
108static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT40,16,_OMC_LIT40_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT40
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "$for loop scope$"
}
;
109#define _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT40)((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))
110#define _OMC_LIT41_data"FGraph.openScope: failed to open new scope in scope: " "FGraph.openScope: failed to open new scope in scope: "
111static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT41,53,_OMC_LIT41_data)struct { mmc_uint_t header; const char data[(53)+1]; } _OMC_LIT_STRUCT41
= { ((((mmc_uint_t)53)<<(3))+((1<<(3+3))+5)), "FGraph.openScope: failed to open new scope in scope: "
}
;
112#define _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT41)((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))
113#define _OMC_LIT42_data" name: " " name: "
114static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT42,7,_OMC_LIT42_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT42
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), " name: "
}
;
115#define _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT42)((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3))
116#define _OMC_LIT43_data"FGraph.openNewScope: failed to open new scope in scope: " "FGraph.openNewScope: failed to open new scope in scope: "
117static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT43,56,_OMC_LIT43_data)struct { mmc_uint_t header; const char data[(56)+1]; } _OMC_LIT_STRUCT43
= { ((((mmc_uint_t)56)<<(3))+((1<<(3+3))+5)), "FGraph.openNewScope: failed to open new scope in scope: "
}
;
118#define _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT43)((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))
119#define _OMC_LIT44_data"<global scope>" "<global scope>"
120static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT44,14,_OMC_LIT44_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT44
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), "<global scope>"
}
;
121#define _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT44)((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))
122static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT45,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT45
= { (((1) << 10) + (((3) & 255) << 2)),
{&SCode_Visibility_PUBLIC__desc,}};
123#define _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT45)((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))
124static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT46,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT46
= { (((1) << 10) + (((4) & 255) << 2)),
{&SCode_Redeclare_NOT__REDECLARE__desc,}};
125#define _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT46)((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))
126static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT47,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT47
= { (((1) << 10) + (((4) & 255) << 2)),
{&SCode_Final_NOT__FINAL__desc,}};
127#define _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT47)((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3))
128static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT48,1,6)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT48
= { (((1) << 10) + (((6) & 255) << 2)),
{&Absyn_InnerOuter_NOT__INNER__OUTER__desc,}};
129#define _OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT48)((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3))
130static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT49,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT49
= { (((1) << 10) + (((4) & 255) << 2)),
{&SCode_Replaceable_NOT__REPLACEABLE__desc,}};
131#define _OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT49)((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3))
132static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT50,6,3)struct { mmc_uint_t header; const void *data[6]; } _OMC_LIT_STRUCT50
= { (((6) << 10) + (((3) & 255) << 2)),
{&SCode_Prefixes_PREFIXES__desc,_OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)),_OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)),_OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)),_OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)),_OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3))}};
133#define _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT50)((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3))
134static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT51,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT51
= { (((1) << 10) + (((3) & 255) << 2)),
{&SCode_ConnectorType_POTENTIAL__desc,}};
135#define _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT51)((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3))
136static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT52,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT52
= { (((1) << 10) + (((5) & 255) << 2)),
{&SCode_Parallelism_NON__PARALLEL__desc,}};
137#define _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT52)((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))
138static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT53,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT53
= { (((1) << 10) + (((5) & 255) << 2)),
{&Absyn_Direction_BIDIR__desc,}};
139#define _OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT53)((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3))
140static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT54,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT54
= { (((1) << 10) + (((3) & 255) << 2)),
{&Absyn_IsField_NONFIELD__desc,}};
141#define _OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT54)((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3))
142static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT55,7,3)struct { mmc_uint_t header; const void *data[7]; } _OMC_LIT_STRUCT55
= { (((7) << 10) + (((3) & 255) << 2)),
{&SCode_Attributes_ATTR__desc,MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)),_OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)),_OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)),_OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3)),_OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3))}};
143#define _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT55)((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3))
144static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT56,3,3)struct { mmc_uint_t header; const void *data[3]; } _OMC_LIT_STRUCT56
= { (((3) << 10) + (((3) & 255) << 2)),
{&Absyn_TypeSpec_TPATH__desc,_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3))}};
145#define _OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT56)((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3))
146static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT57,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT57
= { (((1) << 10) + (((5) & 255) << 2)),
{&SCode_Mod_NOMOD__desc,}};
147#define _OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT57)((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3))
148static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT58,3,3)struct { mmc_uint_t header; const void *data[3]; } _OMC_LIT_STRUCT58
= { (((3) << 10) + (((3) & 255) << 2)),
{&SCode_Comment_COMMENT__desc,MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3))}};
149#define _OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT58)((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3))
150static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT59,1,6)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT59
= { (((1) << 10) + (((6) & 255) << 2)),
{&DAE_ConnectorType_NON__CONNECTOR__desc,}};
151#define _OMC_LIT59((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT59)((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3))
152static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT60,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT60
= { (((1) << 10) + (((4) & 255) << 2)),
{&FCore_Kind_BUILTIN__desc,}};
153#define _OMC_LIT60((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT60)((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3))
154static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT61,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT61
= { (((1) << 10) + (((5) & 255) << 2)),
{&DAE_Mod_NOMOD__desc,}};
155#define _OMC_LIT61((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT61)((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3))
156static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT62,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT62
= { (((1) << 10) + (((3) & 255) << 2)),
{&FCore_Status_VAR__UNTYPED__desc,}};
157#define _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT62)((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3))
158#define _OMC_LIT63_data"FGraph.updateInstance failed for node: " "FGraph.updateInstance failed for node: "
159static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT63,39,_OMC_LIT63_data)struct { mmc_uint_t header; const char data[(39)+1]; } _OMC_LIT_STRUCT63
= { ((((mmc_uint_t)39)<<(3))+((1<<(3+3))+5)), "FGraph.updateInstance failed for node: "
}
;
160#define _OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT63)((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3))
161#define _OMC_LIT64_data" variable:" " variable:"
162static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT64,10,_OMC_LIT64_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT64
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), " variable:"
}
;
163#define _OMC_LIT64((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT64)((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3))
164#define _OMC_LIT65_data"FNode.updateSourceTargetScope: node does not yet have a reference child: " "FNode.updateSourceTargetScope: node does not yet have a reference child: "
165static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT65,73,_OMC_LIT65_data)struct { mmc_uint_t header; const char data[(73)+1]; } _OMC_LIT_STRUCT65
= { ((((mmc_uint_t)73)<<(3))+((1<<(3+3))+5)), "FNode.updateSourceTargetScope: node does not yet have a reference child: "
}
;
166#define _OMC_LIT65((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT65)((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3))
167#define _OMC_LIT66_data" target scope: " " target scope: "
168static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT66,15,_OMC_LIT66_data)struct { mmc_uint_t header; const char data[(15)+1]; } _OMC_LIT_STRUCT66
= { ((((mmc_uint_t)15)<<(3))+((1<<(3+3))+5)), " target scope: "
}
;
169#define _OMC_LIT66((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT66)((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3))
170#define _OMC_LIT67_data"empty" "empty"
171static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT67,5,_OMC_LIT67_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT67
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), "empty"
}
;
172#define _OMC_LIT67((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT67)((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3))
173static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT68,2,4)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT68
= { (((2) << 10) + (((4) & 255) << 2)),
{&FCore_Graph_EG__desc,_OMC_LIT67((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3))}};
174#define _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT68)((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3))
175#define _OMC_LIT69_data"$top" "$top"
176static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT69,4,_OMC_LIT69_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT69
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "$top"
}
;
177#define _OMC_LIT69((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT69)((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3))
178static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT70,1,3)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT70
= { (((1) << 10) + (((3) & 255) << 2)),
{&FCore_Data_TOP__desc,}};
179#define _OMC_LIT70((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT70)((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3))
180#include "util/modelica.h"
181
182#include "FGraph_includes.h"
183
184
185/* default, do not make protected functions static */
186#if !defined(PROTECTED_FUNCTION_STATIC)
187#define PROTECTED_FUNCTION_STATIC
188#endif
189PROTECTED_FUNCTION_STATIC modelica_metatype omc_FGraph_getGraphPathNoImplicitScope__dispatch(threadData_t *threadData, modelica_metatype _inScope);
190static const MMC_DEFSTRUCTLIT(boxvar_lit_FGraph_getGraphPathNoImplicitScope__dispatch,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_FGraph_getGraphPathNoImplicitScope__dispatch
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_FGraph_getGraphPathNoImplicitScope__dispatchomc_FGraph_getGraphPathNoImplicitScope__dispatch,0}};
191#define boxvar_FGraph_getGraphPathNoImplicitScope__dispatch((void*)((char*)(&(boxvar_lit_FGraph_getGraphPathNoImplicitScope__dispatch
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_FGraph_getGraphPathNoImplicitScope__dispatch)((void*)((char*)(&(boxvar_lit_FGraph_getGraphPathNoImplicitScope__dispatch
).header) + 3))
192PROTECTED_FUNCTION_STATIC modelica_metatype omc_FGraph_pathStripGraphScopePrefix2(threadData_t *threadData, modelica_metatype _inPath, modelica_metatype _inEnvPath, modelica_boolean _stripPartial);
193PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_FGraph_pathStripGraphScopePrefix2(threadData_t *threadData, modelica_metatype _inPath, modelica_metatype _inEnvPath, modelica_metatype _stripPartial);
194static const MMC_DEFSTRUCTLIT(boxvar_lit_FGraph_pathStripGraphScopePrefix2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_FGraph_pathStripGraphScopePrefix2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_FGraph_pathStripGraphScopePrefix2,0}};
195#define boxvar_FGraph_pathStripGraphScopePrefix2((void*)((char*)(&(boxvar_lit_FGraph_pathStripGraphScopePrefix2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_FGraph_pathStripGraphScopePrefix2)((void*)((char*)(&(boxvar_lit_FGraph_pathStripGraphScopePrefix2
).header) + 3))
196PROTECTED_FUNCTION_STATIC modelica_metatype omc_FGraph_crefStripGraphScopePrefix2(threadData_t *threadData, modelica_metatype _inCref, modelica_metatype _inEnvPath, modelica_boolean _stripPartial);
197PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_FGraph_crefStripGraphScopePrefix2(threadData_t *threadData, modelica_metatype _inCref, modelica_metatype _inEnvPath, modelica_metatype _stripPartial);
198static const MMC_DEFSTRUCTLIT(boxvar_lit_FGraph_crefStripGraphScopePrefix2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_FGraph_crefStripGraphScopePrefix2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_FGraph_crefStripGraphScopePrefix2,0}};
199#define boxvar_FGraph_crefStripGraphScopePrefix2((void*)((char*)(&(boxvar_lit_FGraph_crefStripGraphScopePrefix2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_FGraph_crefStripGraphScopePrefix2)((void*)((char*)(&(boxvar_lit_FGraph_crefStripGraphScopePrefix2
).header) + 3))
200PROTECTED_FUNCTION_STATIC modelica_metatype omc_FGraph_updateVarAndMod(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _inVar, modelica_metatype _inMod, modelica_metatype _instStatus, modelica_metatype _inTargetGraph);
201static const MMC_DEFSTRUCTLIT(boxvar_lit_FGraph_updateVarAndMod,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_FGraph_updateVarAndMod
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_FGraph_updateVarAndModomc_FGraph_updateVarAndMod,0}};
202#define boxvar_FGraph_updateVarAndMod((void*)((char*)(&(boxvar_lit_FGraph_updateVarAndMod).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_FGraph_updateVarAndMod)((void*)((char*)(&(boxvar_lit_FGraph_updateVarAndMod).header
) + 3))
203
204DLLExport
205modelica_boolean omc_FGraph_isPartialScope(threadData_t *threadData, modelica_metatype _inEnv)
206{
207 modelica_boolean _outIsPartial;
208 modelica_metatype _el = NULL((void*)0);
209 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
210 MMC_SO()mmc_check_stackoverflow(threadData);
211 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
212 // _outIsPartial has no default value.
213 // _el has no default value.
214#line 214 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
215 { /* matchcontinue expression */
216 {
217 volatile mmc_switch_type tmp3;
218 int tmp4;
219 tmp3 = 0;
220 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) {
221 tmp2_top:
222 threadData->mmc_jumper = &new_mmc_jumper;
223 for (; tmp3 < 2; tmp3++) {
224 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
225 case 0: {
226 /* Pattern matching succeeded */
227#line 1987 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
228 /* Pattern-matching assignment */
229#line 1987 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
230 tmpMeta[0] = omc_FNode_fromRef(threadData, omc_FGraph_lastScopeRef(threadData, _inEnv));
231#line 1987 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
232 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
233#line 1987 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
234 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto goto_1;
235#line 1987 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
236 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
237#line 1987 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
238 _el = tmpMeta[2];
239#line 239 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
240
241#line 1988 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
242 _outIsPartial = omc_SCodeUtil_isPartial(threadData, _el);
243#line 243 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
244#line 244 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
245 goto tmp2_done;
246 }
247 case 1: {
248 /* Pattern matching succeeded */
249#line 1990 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
250 _outIsPartial = 0;
251#line 251 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
252#line 252 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
253 goto tmp2_done;
254 }
255 }
256 goto tmp2_end;
257 tmp2_end: ;
258 }
259 goto goto_1;
260 tmp2_done:
261 (void)tmp3;
262 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
263 goto tmp2_done2;
264 goto_1:;
265 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
266 if (++tmp3 < 2) {
267 goto tmp2_top;
268 }
269 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
270 tmp2_done2:;
271 }
272 }
273 ;
274 _return: OMC_LABEL_UNUSED__attribute__((unused))
275 return _outIsPartial;
276}
277modelica_metatype boxptr_FGraph_isPartialScope(threadData_t *threadData, modelica_metatype _inEnv)
278{
279 modelica_boolean _outIsPartial;
280 modelica_metatype out_outIsPartial;
281 _outIsPartial = omc_FGraph_isPartialScope(threadData, _inEnv);
282 out_outIsPartial = mmc_mk_icon(_outIsPartial);
283 return out_outIsPartial;
284}
285
286DLLExport
287modelica_metatype omc_FGraph_makeScopePartial(threadData_t *threadData, modelica_metatype _inEnv)
288{
289 modelica_metatype _outEnv = NULL((void*)0);
290 modelica_metatype _node = NULL((void*)0);
291 modelica_metatype _data = NULL((void*)0);
292 modelica_metatype _el = NULL((void*)0);
293 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
294 MMC_SO()mmc_check_stackoverflow(threadData);
295 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
296 _outEnv = _inEnv;
297 // _node has no default value.
298 // _data has no default value.
299 // _el has no default value.
300#line 300 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
301 { /* matchcontinue expression */
302 {
303 volatile mmc_switch_type tmp3;
304 int tmp4;
305 tmp3 = 0;
306 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) {
307 tmp2_top:
308 threadData->mmc_jumper = &new_mmc_jumper;
309 for (; tmp3 < 2; tmp3++) {
310 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
311 case 0: {
312 /* Pattern matching succeeded */
313#line 1963 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
314 _node = omc_FNode_fromRef(threadData, omc_FGraph_lastScopeRef(threadData, _inEnv));
315#line 315 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
316
317#line 317 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
318 { /* match expression */
319 modelica_metatype tmp7_1;
320 tmp7_1 = _node;
321 {
322 volatile mmc_switch_type tmp7;
323 int tmp8;
324 tmp7 = 0;
325 for (; tmp7 < 2; tmp7++) {
326 switch (MMC_SWITCH_CAST(tmp7)(tmp7)) {
327 case 0: {
328 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp7_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp7_1) - 3))) +
(6)))))
;
329 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto tmp6_end;
330 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
331
332 _data = tmpMeta[1];
333 _el = tmpMeta[2];
334 /* Pattern matching succeeded */
335#line 1967 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
336 _el = omc_SCodeUtil_makeClassPartial(threadData, _el);
337#line 337 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
338
339#line 1968 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
340 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
341#line 1968 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
342 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_data)((void*)((char*)(_data) - 3)), 7*sizeof(modelica_metatype));
343#line 1968 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
344 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[2] = _el;
345#line 1968 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
346 _data = tmpMeta[1];
347#line 347 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
348
349#line 1969 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
350 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(7))((void*)((char*)(mmc_alloc_words(7)) + 3));
351#line 1969 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
352 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_node)((void*)((char*)(_node) - 3)), 7*sizeof(modelica_metatype));
353#line 1969 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
354 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[6] = _data;
355#line 1969 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
356 _node = tmpMeta[1];
357#line 357 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
358#line 1970 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
359 tmpMeta[0] = _node;
360#line 360 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
361 goto tmp6_done;
362 }
363 case 1: {
364
365 /* Pattern matching succeeded */
366#line 1973 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
367 tmpMeta[0] = _node;
368#line 368 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
369 goto tmp6_done;
370 }
371 }
372 goto tmp6_end;
373 tmp6_end: ;
374 }
375 goto goto_5;
376 goto_5:;
377 goto goto_1;
378 goto tmp6_done;
379 tmp6_done:;
380 }
381 }
382 _node = tmpMeta[0];
383
384#line 1975 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
385 _outEnv = omc_FGraph_setLastScopeRef(threadData, omc_FNode_toRef(threadData, _node), _outEnv);
386#line 386 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
387#line 387 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
388 goto tmp2_done;
389 }
390 case 1: {
391 /* Pattern matching succeeded */
392#line 392 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
393 goto tmp2_done;
394 }
395 }
396 goto tmp2_end;
397 tmp2_end: ;
398 }
399 goto goto_1;
400 tmp2_done:
401 (void)tmp3;
402 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
403 goto tmp2_done2;
404 goto_1:;
405 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
406 if (++tmp3 < 2) {
407 goto tmp2_top;
408 }
409 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
410 tmp2_done2:;
411 }
412 }
413 ;
414 _return: OMC_LABEL_UNUSED__attribute__((unused))
415 return _outEnv;
416}
417
418DLLExport
419modelica_metatype omc_FGraph_selectScope(threadData_t *threadData, modelica_metatype _inEnv, modelica_metatype _inPath)
420{
421 modelica_metatype _outEnv = NULL((void*)0);
422 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
423 MMC_SO()mmc_check_stackoverflow(threadData);
424 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
425 // _outEnv has no default value.
426#line 426 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
427 { /* match expression */
428 {
429 modelica_metatype _pl = NULL((void*)0);
430 modelica_integer _lp;
431 modelica_integer _le;
432 modelica_integer _diff;
433 modelica_metatype _cs = NULL((void*)0);
434 modelica_metatype _p = NULL((void*)0);
435 volatile mmc_switch_type tmp3;
436 int tmp4;
437 // _pl has no default value.
438 // _lp has no default value.
439 // _le has no default value.
440 // _diff has no default value.
441 // _cs has no default value.
442 // _p has no default value.
443 tmp3 = 0;
444 for (; tmp3 < 1; tmp3++) {
445 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
446 case 0: {
447 modelica_boolean tmp5;
448 /* Pattern matching succeeded */
449#line 1938 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
450 _p = omc_AbsynUtil_stripLast(threadData, _inPath);
451#line 451 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
452
453#line 1939 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
454 /* Pattern-matching assignment */
455#line 1939 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
456 tmp5 = omc_AbsynUtil_pathPrefixOf(threadData, _p, omc_FGraph_getGraphName(threadData, _inEnv));
457#line 1939 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
458 if (1 != tmp5) goto goto_1;
459#line 459 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
460
461#line 1940 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
462 _pl = omc_AbsynUtil_pathToStringList(threadData, _p);
463#line 463 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
464
465#line 1941 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
466 _lp = listLength(_pl);
467#line 467 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
468
469#line 1942 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
470 _cs = omc_FGraph_currentScope(threadData, _inEnv);
471#line 471 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
472
473#line 1943 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
474 _le = ((modelica_integer) -1) + listLength(_cs);
475#line 475 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
476
477#line 1944 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
478 _diff = _le - _lp;
479#line 479 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
480
481#line 1945 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
482 _cs = omc_List_stripN(threadData, _cs, _diff);
483#line 483 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
484#line 1946 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
485 tmpMeta[0] = omc_FGraph_setScope(threadData, _inEnv, _cs);
486#line 486 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
487 goto tmp2_done;
488 }
489 }
490 goto tmp2_end;
491 tmp2_end: ;
492 }
493 goto goto_1;
494 goto_1:;
495 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
496 goto tmp2_done;
497 tmp2_done:;
498 }
499 }
500 _outEnv = tmpMeta[0];
501 _return: OMC_LABEL_UNUSED__attribute__((unused))
502 return _outEnv;
503}
504
505DLLExport
506modelica_metatype omc_FGraph_getStatus(threadData_t *threadData, modelica_metatype _inEnv, modelica_string _inName)
507{
508 modelica_metatype _outStatus = NULL((void*)0);
509 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
510 MMC_SO()mmc_check_stackoverflow(threadData);
511 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
512 // _outStatus has no default value.
513#line 513 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
514 { /* match expression */
515 modelica_metatype tmp3_1;
516 tmp3_1 = _inEnv;
517 {
518 modelica_metatype _g = NULL((void*)0);
519 modelica_metatype _ref = NULL((void*)0);
520 modelica_metatype _refParent = NULL((void*)0);
521 volatile mmc_switch_type tmp3;
522 int tmp4;
523 // _g has no default value.
524 // _ref has no default value.
525 // _refParent has no default value.
526 tmp3 = 0;
527 for (; tmp3 < 1; tmp3++) {
528 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
529 case 0: {
530 modelica_boolean tmp5;
531 modelica_boolean tmp6;
532
533 _g = tmp3_1;
534 /* Pattern matching succeeded */
535#line 1903 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
536 _refParent = omc_FGraph_lastScopeRef(threadData, _g);
537#line 537 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
538
539#line 1904 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
540 /* Pattern-matching assignment */
541#line 1904 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
542 tmp5 = omc_FNode_refHasChild(threadData, _refParent, _inName);
543#line 1904 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
544 if (1 != tmp5) goto goto_1;
545#line 545 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
546
547#line 1905 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
548 _ref = omc_FNode_child(threadData, _refParent, _inName);
549#line 549 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
550
551#line 1906 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
552 /* Pattern-matching assignment */
553#line 1906 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
554 tmp6 = omc_FNode_refHasChild(threadData, _ref, _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)));
555#line 1906 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
556 if (1 != tmp6) goto goto_1;
557#line 557 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
558
559#line 1907 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
560 _ref = omc_FNode_child(threadData, _ref, _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)));
561#line 561 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
562#line 1908 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
563 tmpMeta[0] = omc_FNode_refData(threadData, _ref);
564#line 564 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
565 goto tmp2_done;
566 }
567 }
568 goto tmp2_end;
569 tmp2_end: ;
570 }
571 goto goto_1;
572 goto_1:;
573 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
574 goto tmp2_done;
575 tmp2_done:;
576 }
577 }
578 _outStatus = tmpMeta[0];
579 _return: OMC_LABEL_UNUSED__attribute__((unused))
580 return _outStatus;
581}
582
583DLLExport
584modelica_metatype omc_FGraph_setStatus(threadData_t *threadData, modelica_metatype _inEnv, modelica_string _inName, modelica_metatype _inStatus)
585{
586 modelica_metatype _outEnv = NULL((void*)0);
587 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
588 MMC_SO()mmc_check_stackoverflow(threadData);
589 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
590 // _outEnv has no default value.
591#line 591 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
592 { /* matchcontinue expression */
593 volatile modelica_metatype tmp3_1;
594 tmp3_1 = _inEnv;
595 {
596 modelica_metatype _g = NULL((void*)0);
597 modelica_metatype _n = NULL((void*)0);
598 modelica_metatype _ref = NULL((void*)0);
599 modelica_metatype _refParent = NULL((void*)0);
600 volatile mmc_switch_type tmp3;
601 int tmp4;
602 // _g has no default value.
603 // _n has no default value.
604 // _ref has no default value.
605 // _refParent has no default value.
606 tmp3 = 0;
607 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) {
608 tmp2_top:
609 threadData->mmc_jumper = &new_mmc_jumper;
610 for (; tmp3 < 2; tmp3++) {
611 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
612 case 0: {
613
614 _g = tmp3_1;
615 /* Pattern matching succeeded */
616#line 1860 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
617 _refParent = omc_FGraph_lastScopeRef(threadData, _g);
618#line 618 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
619
620#line 1861 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
621 if(omc_FNode_refHasChild(threadData, _refParent, _inName))
622#line 1861 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
623 {
624#line 1862 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
625 _ref = omc_FNode_child(threadData, _refParent, _inName);
626#line 626 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
627
628#line 1863 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
629 if(omc_FNode_refHasChild(threadData, _ref, _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))))
630#line 1863 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
631 {
632#line 1865 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
633 _ref = omc_FNode_child(threadData, _ref, _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)));
634#line 634 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
635
636#line 1866 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
637 _n = omc_FNode_setData(threadData, omc_FNode_fromRef(threadData, _ref), _inStatus);
638#line 638 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
639
640#line 1867 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
641 _ref = omc_FNode_updateRef(threadData, _ref, _n);
642#line 642 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
643 }
644 else
645 {
646#line 1870 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
647 tmpMeta[1] = mmc_mk_cons(_ref, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
648#line 1870 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
649 _g = omc_FGraph_node(threadData, _g, _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)), tmpMeta[1], _inStatus ,&_n);
650#line 650 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
651
652#line 1871 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
653 omc_FNode_addChildRef(threadData, _ref, _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)), omc_FNode_toRef(threadData, _n), 0);
654#line 654 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
655 }
656 }
657#line 1875 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
658 tmpMeta[0] = _g;
659#line 659 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
660 goto tmp2_done;
661 }
662 case 1: {
663
664 _g = tmp3_1;
665 /* Pattern matching succeeded */
666#line 1881 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
667 tmpMeta[1] = stringAppend(_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),omc_FGraph_getGraphNameStr(threadData, _g));
668#line 1881 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
669 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)));
670#line 1881 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
671 tmpMeta[3] = stringAppend(tmpMeta[2],_inName);
672#line 1881 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
673 tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
674#line 1881 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
675 fputs(MMC_STRINGDATA(tmpMeta[4])(((struct mmc_string*)((void*)((char*)(tmpMeta[4]) - 3)))->
data)
,stdoutstdout);
676#line 676 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
677#line 1882 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
678 tmpMeta[0] = _g;
679#line 679 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
680 goto tmp2_done;
681 }
682 }
683 goto tmp2_end;
684 tmp2_end: ;
685 }
686 goto goto_1;
687 tmp2_done:
688 (void)tmp3;
689 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
690 goto tmp2_done2;
691 goto_1:;
692 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
693 if (++tmp3 < 2) {
694 goto tmp2_top;
695 }
696 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
697 tmp2_done2:;
698 }
699 }
700 _outEnv = tmpMeta[0];
701 _return: OMC_LABEL_UNUSED__attribute__((unused))
702 return _outEnv;
703}
704
705DLLExport
706modelica_boolean omc_FGraph_graphPrefixOf2(threadData_t *threadData, modelica_metatype _inPrefixEnv, modelica_metatype _inEnv)
707{
708 modelica_boolean _outIsPrefix;
709 modelica_boolean tmp1 = 0;
710 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
711 MMC_SO()mmc_check_stackoverflow(threadData);
712 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
713 // _outIsPrefix has no default value.
714#line 714 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
715 { /* match expression */
716 modelica_metatype tmp4_1;modelica_metatype tmp4_2;
717 tmp4_1 = _inPrefixEnv;
718 tmp4_2 = _inEnv;
719 {
720 modelica_metatype _rest1 = NULL((void*)0);
721 modelica_metatype _rest2 = NULL((void*)0);
722 modelica_metatype _r1 = NULL((void*)0);
723 modelica_metatype _r2 = NULL((void*)0);
724 volatile mmc_switch_type tmp4;
725 int tmp5;
726 // _rest1 has no default value.
727 // _rest2 has no default value.
728 // _r1 has no default value.
729 // _r2 has no default value.
730 tmp4 = 0;
731 for (; tmp4 < 3; tmp4++) {
732 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
733 case 0: {
734 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
735 if (listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
736 tmpMeta[0] = MMC_CAR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
737 tmpMeta[1] = MMC_CDR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
738 /* Pattern matching succeeded */
739#line 1835 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
740 tmp1 = 1;
741#line 741 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
742 goto tmp3_done;
743 }
744 case 1: {
745 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
746 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
747 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
748 if (listEmpty(tmp4_2)((*(mmc_uint_t*)((void*)((char*)(tmp4_2) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
749 tmpMeta[2] = MMC_CAR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(1)))))
;
750 tmpMeta[3] = MMC_CDR(tmp4_2)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_2) - 3))) +
(2)))))
;
751 _r1 = tmpMeta[0];
752 _rest1 = tmpMeta[1];
753 _r2 = tmpMeta[2];
754 _rest2 = tmpMeta[3];
755 /* Pattern matching succeeded */
756 /* Check guard condition after assignments */
757 if (!(stringEqual(omc_FNode_refName(threadData, _r1), omc_FNode_refName(threadData, _r2))((((((*(mmc_uint_t*)((void*)((char*)(omc_FNode_refName(threadData
, _r1)) - 3)))) >> (3)) - 8)) == (((((*(mmc_uint_t*)((void
*)((char*)(omc_FNode_refName(threadData, _r2)) - 3)))) >>
(3)) - 8)) && !mmc_stringCompare(omc_FNode_refName(threadData
, _r1),omc_FNode_refName(threadData, _r2)))
)) goto tmp3_end;
758#line 1838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
759 /* Tail recursive call */
760#line 1838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
761 _inPrefixEnv = _rest1;
762#line 1838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
763 _inEnv = _rest2;
764#line 1838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
765 goto _tailrecursive;
766#line 1838 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
767 /* TODO: Make sure any eventual dead code below is never generated */
768#line 768 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
769 goto tmp3_done;
770 }
771 case 2: {
772
773 /* Pattern matching succeeded */
774#line 1841 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
775 tmp1 = 0;
776#line 776 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
777 goto tmp3_done;
778 }
779 }
780 goto tmp3_end;
781 tmp3_end: ;
782 }
783 goto goto_2;
784 goto_2:;
785 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
786 goto tmp3_done;
787 tmp3_done:;
788 }
789 }
790 _outIsPrefix = tmp1;
791 _return: OMC_LABEL_UNUSED__attribute__((unused))
792 return _outIsPrefix;
793}
794modelica_metatype boxptr_FGraph_graphPrefixOf2(threadData_t *threadData, modelica_metatype _inPrefixEnv, modelica_metatype _inEnv)
795{
796 modelica_boolean _outIsPrefix;
797 modelica_metatype out_outIsPrefix;
798 _outIsPrefix = omc_FGraph_graphPrefixOf2(threadData, _inPrefixEnv, _inEnv);
799 out_outIsPrefix = mmc_mk_icon(_outIsPrefix);
800 return out_outIsPrefix;
801}
802
803DLLExport
804modelica_boolean omc_FGraph_graphPrefixOf(threadData_t *threadData, modelica_metatype _inPrefixEnv, modelica_metatype _inEnv)
805{
806 modelica_boolean _outIsPrefix;
807 MMC_SO()mmc_check_stackoverflow(threadData);
808 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
809 // _outIsPrefix has no default value.
810#line 1818 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
811 _outIsPrefix = omc_FGraph_graphPrefixOf2(threadData, listReverse(omc_FGraph_currentScope(threadData, _inPrefixEnv)), listReverse(omc_FGraph_currentScope(threadData, _inEnv)));
812#line 812 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
813 _return: OMC_LABEL_UNUSED__attribute__((unused))
814 return _outIsPrefix;
815}
816modelica_metatype boxptr_FGraph_graphPrefixOf(threadData_t *threadData, modelica_metatype _inPrefixEnv, modelica_metatype _inEnv)
817{
818 modelica_boolean _outIsPrefix;
819 modelica_metatype out_outIsPrefix;
820 _outIsPrefix = omc_FGraph_graphPrefixOf(threadData, _inPrefixEnv, _inEnv);
821 out_outIsPrefix = mmc_mk_icon(_outIsPrefix);
822 return out_outIsPrefix;
823}
824
825DLLExport
826modelica_string omc_FGraph_getInstanceOriginalName(threadData_t *threadData, modelica_metatype _inEnv, modelica_string _inName)
827{
828 modelica_string _outName = NULL((void*)0);
829 modelica_string tmp1 = 0;
830 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
831 MMC_SO()mmc_check_stackoverflow(threadData);
832 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
833 // _outName has no default value.
834#line 834 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
835 { /* matchcontinue expression */
836 {
837 volatile mmc_switch_type tmp4;
838 int tmp5;
839 tmp4 = 0;
840 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) {
841 tmp3_top:
842 threadData->mmc_jumper = &new_mmc_jumper;
843 for (; tmp4 < 2; tmp4++) {
844 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
845 case 0: {
846 /* Pattern matching succeeded */
847#line 1802 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
848 /* Pattern-matching assignment */
849#line 1802 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
850 tmpMeta[0] = omc_FNode_refData(threadData, omc_FNode_child(threadData, omc_FGraph_lastScopeRef(threadData, _inEnv), _inName));
851#line 1802 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
852 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],3,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((5 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto goto_2;
853#line 1802 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
854 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
855#line 1802 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
856 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],7,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((7 +3) & 255) << 2)))
== 0) goto goto_2;
857#line 1802 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
858 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
859#line 1802 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
860 _outName = tmpMeta[2];
861#line 861 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
862#line 1803 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
863 tmp1 = _outName;
864#line 864 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
865 goto tmp3_done;
866 }
867 case 1: {
868 /* Pattern matching succeeded */
869#line 1806 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
870 tmp1 = _inName;
871#line 871 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
872 goto tmp3_done;
873 }
874 }
875 goto tmp3_end;
876 tmp3_end: ;
877 }
878 goto goto_2;
879 tmp3_done:
880 (void)tmp4;
881 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
882 goto tmp3_done2;
883 goto_2:;
884 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
885 if (++tmp4 < 2) {
886 goto tmp3_top;
887 }
888 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
889 tmp3_done2:;
890 }
891 }
892 _outName = tmp1;
893 _return: OMC_LABEL_UNUSED__attribute__((unused))
894 return _outName;
895}
896
897DLLExport
898modelica_boolean omc_FGraph_isInstance(threadData_t *threadData, modelica_metatype _inEnv, modelica_string _inName)
899{
900 modelica_boolean _yes;
901 modelica_boolean tmp1 = 0;
902 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
903 MMC_SO()mmc_check_stackoverflow(threadData);
904 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
905 // _yes has no default value.
906#line 906 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
907 { /* matchcontinue expression */
908 {
909 volatile mmc_switch_type tmp4;
910 int tmp5;
911 tmp4 = 0;
912 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) {
913 tmp3_top:
914 threadData->mmc_jumper = &new_mmc_jumper;
915 for (; tmp4 < 2; tmp4++) {
916 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
917 case 0: {
918 /* Pattern matching succeeded */
919#line 1784 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
920 /* Pattern-matching assignment */
921#line 1784 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
922 tmpMeta[0] = omc_FNode_refData(threadData, omc_FNode_child(threadData, omc_FGraph_lastScopeRef(threadData, _inEnv), _inName));
923#line 1784 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
924 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],3,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((5 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto goto_2;
925#line 1784 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
926 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
927#line 1784 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
928 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],7,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((7 +3) & 255) << 2)))
== 0) goto goto_2;
929#line 1784 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
930
931#line 931 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
932#line 1785 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
933 tmp1 = 1;
934#line 934 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
935 goto tmp3_done;
936 }
937 case 1: {
938 /* Pattern matching succeeded */
939#line 1788 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
940 tmp1 = 0;
941#line 941 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
942 goto tmp3_done;
943 }
944 }
945 goto tmp3_end;
946 tmp3_end: ;
947 }
948 goto goto_2;
949 tmp3_done:
950 (void)tmp4;
951 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
952 goto tmp3_done2;
953 goto_2:;
954 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
955 if (++tmp4 < 2) {
956 goto tmp3_top;
957 }
958 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
959 tmp3_done2:;
960 }
961 }
962 _yes = tmp1;
963 _return: OMC_LABEL_UNUSED__attribute__((unused))
964 return _yes;
965}
966modelica_metatype boxptr_FGraph_isInstance(threadData_t *threadData, modelica_metatype _inEnv, modelica_metatype _inName)
967{
968 modelica_boolean _yes;
969 modelica_metatype out_yes;
970 _yes = omc_FGraph_isInstance(threadData, _inEnv, _inName);
971 out_yes = mmc_mk_icon(_yes);
972 return out_yes;
973}
974
975DLLExport
976modelica_metatype omc_FGraph_getClassPrefix(threadData_t *threadData, modelica_metatype _inEnv, modelica_string _inClassName)
977{
978 modelica_metatype _outPrefix = NULL((void*)0);
979 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
980 MMC_SO()mmc_check_stackoverflow(threadData);
981 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
982 // _outPrefix has no default value.
983#line 983 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
984 { /* matchcontinue expression */
985 {
986 modelica_metatype _p = NULL((void*)0);
987 modelica_metatype _r = NULL((void*)0);
988 volatile mmc_switch_type tmp3;
989 int tmp4;
990 // _p has no default value.
991 // _r has no default value.
992 tmp3 = 0;
993 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) {
994 tmp2_top:
995 threadData->mmc_jumper = &new_mmc_jumper;
996 for (; tmp3 < 2; tmp3++) {
997 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
998 case 0: {
999 /* Pattern matching succeeded */
1000#line 1765 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1001 _r = omc_FNode_child(threadData, omc_FGraph_lastScopeRef(threadData, _inEnv), _inClassName);
1002#line 1002 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1003
1004#line 1766 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1005 /* Pattern-matching assignment */
1006#line 1766 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1007 tmpMeta[1] = omc_FNode_refData(threadData, _r);
1008#line 1766 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1009 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto goto_1;
1010#line 1766 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1011 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
1012#line 1766 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1013 _p = tmpMeta[2];
1014#line 1014 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1015#line 1767 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1016 tmpMeta[0] = _p;
1017#line 1017 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1018 goto tmp2_done;
1019 }
1020 case 1: {
1021 /* Pattern matching succeeded */
1022#line 1770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1023 tmpMeta[0] = _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3));
1024#line 1024 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1025 goto tmp2_done;
1026 }
1027 }
1028 goto tmp2_end;
1029 tmp2_end: ;
1030 }
1031 goto goto_1;
1032 tmp2_done:
1033 (void)tmp3;
1034 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1035 goto tmp2_done2;
1036 goto_1:;
1037 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1038 if (++tmp3 < 2) {
1039 goto tmp2_top;
1040 }
1041 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1042 tmp2_done2:;
1043 }
1044 }
1045 _outPrefix = tmpMeta[0];
1046 _return: OMC_LABEL_UNUSED__attribute__((unused))
1047 return _outPrefix;
1048}
1049
1050DLLExport
1051modelica_string omc_FGraph_mkVersionName(threadData_t *threadData, modelica_metatype _inSourceEnv, modelica_string _inSourceName, modelica_metatype _inPrefix, modelica_metatype _inMod, modelica_metatype _inTargetClassEnv, modelica_string _inTargetClassName, modelica_metatype *out_outCrefPrefix)
1052{
1053 modelica_string _outName = NULL((void*)0);
1054 modelica_metatype _outCrefPrefix = NULL((void*)0);
1055 modelica_string tmp1_c0 __attribute__((unused)) = 0;
1056 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1057 MMC_SO()mmc_check_stackoverflow(threadData);
1058 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1059 // _outName has no default value.
1060 // _outCrefPrefix has no default value.
1061#line 1725 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1062
1063#line 1725 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1064
1065#line 1065 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1066 { /* match expression */
1067 {
1068 modelica_metatype _crefPrefix = NULL((void*)0);
1069 modelica_string _name = NULL((void*)0);
1070 volatile mmc_switch_type tmp4;
1071 int tmp5;
1072 // _crefPrefix has no default value.
1073 // _name has no default value.
1074 tmp4 = 0;
1075 for (; tmp4 < 1; tmp4++) {
1076 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1077 case 0: {
1078 /* Pattern matching succeeded */
1079#line 1737 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1080 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1081#line 1737 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1082 tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1083#line 1737 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1084 _crefPrefix = omc_PrefixUtil_prefixAdd(threadData, _inSourceName, tmpMeta[2], tmpMeta[3], _inPrefix, _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)), _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)), _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
1085#line 1085 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1086
1087#line 1740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1088 tmpMeta[2] = stringAppend(_inTargetClassName,_OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)));
1089#line 1740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1090 tmpMeta[3] = stringAppend(tmpMeta[2],omc_AbsynUtil_pathString(threadData, omc_AbsynUtil_stringListPath(threadData, listReverse(omc_AbsynUtil_pathToStringList(threadData, omc_PrefixUtil_prefixToPath(threadData, _crefPrefix)))), _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)), 0, 0));
1091#line 1740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1092 _name = tmpMeta[3];
1093#line 1093 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1094#line 1747 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1095 tmp1_c0 = _name;
1096#line 1747 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1097 tmpMeta[0+1] = _crefPrefix;
1098#line 1098 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1099 goto tmp3_done;
1100 }
1101 }
1102 goto tmp3_end;
1103 tmp3_end: ;
1104 }
1105 goto goto_2;
1106 goto_2:;
1107 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1108 goto tmp3_done;
1109 tmp3_done:;
1110 }
1111 }
1112 _outName = tmp1_c0;
1113 _outCrefPrefix = tmpMeta[0+1];
1114 _return: OMC_LABEL_UNUSED__attribute__((unused))
1115 if (out_outCrefPrefix) { *out_outCrefPrefix = _outCrefPrefix; }
1116 return _outName;
1117}
1118
1119DLLExport
1120modelica_boolean omc_FGraph_isTargetClassBuiltin(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _inClass)
1121{
1122 modelica_boolean _yes;
1123 modelica_boolean tmp1 = 0;
1124 MMC_SO()mmc_check_stackoverflow(threadData);
1125 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1126 // _yes has no default value.
1127#line 1127 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1128 { /* matchcontinue expression */
1129 {
1130 modelica_metatype _r = NULL((void*)0);
1131 volatile mmc_switch_type tmp4;
1132 int tmp5;
1133 // _r has no default value.
1134 tmp4 = 0;
1135 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
1136 tmp3_top:
1137 threadData->mmc_jumper = &new_mmc_jumper;
1138 for (; tmp4 < 2; tmp4++) {
1139 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1140 case 0: {
1141 /* Pattern matching succeeded */
1142#line 1706 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1143 _r = omc_FNode_child(threadData, omc_FGraph_lastScopeRef(threadData, _inGraph), omc_SCodeUtil_elementName(threadData, _inClass));
1144#line 1144 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1145#line 1707 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1146 tmp1 = (omc_FNode_isRefBasicType(threadData, _r) || omc_FNode_isRefBuiltin(threadData, _r));
1147#line 1147 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1148 goto tmp3_done;
1149 }
1150 case 1: {
1151 /* Pattern matching succeeded */
1152#line 1711 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1153 tmp1 = 0;
1154#line 1154 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1155 goto tmp3_done;
1156 }
1157 }
1158 goto tmp3_end;
1159 tmp3_end: ;
1160 }
1161 goto goto_2;
1162 tmp3_done:
1163 (void)tmp4;
1164 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1165 goto tmp3_done2;
1166 goto_2:;
1167 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1168 if (++tmp4 < 2) {
1169 goto tmp3_top;
1170 }
1171 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1172 tmp3_done2:;
1173 }
1174 }
1175 _yes = tmp1;
1176 _return: OMC_LABEL_UNUSED__attribute__((unused))
1177 return _yes;
1178}
1179modelica_metatype boxptr_FGraph_isTargetClassBuiltin(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _inClass)
1180{
1181 modelica_boolean _yes;
1182 modelica_metatype out_yes;
1183 _yes = omc_FGraph_isTargetClassBuiltin(threadData, _inGraph, _inClass);
1184 out_yes = mmc_mk_icon(_yes);
1185 return out_yes;
1186}
1187
1188DLLExport
1189modelica_metatype omc_FGraph_createVersionScope(threadData_t *threadData, modelica_metatype _inSourceEnv, modelica_string _inSourceName, modelica_metatype _inPrefix, modelica_metatype _inMod, modelica_metatype _inTargetClassEnv, modelica_metatype _inTargetClass, modelica_metatype _inIH, modelica_metatype *out_outVersionedTargetClass, modelica_metatype *out_outIH)
1190{
1191 modelica_metatype _outVersionedTargetClassEnv = NULL((void*)0);
1192 modelica_metatype _outVersionedTargetClass = NULL((void*)0);
1193 modelica_metatype _outIH = NULL((void*)0);
1194 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1195 MMC_SO()mmc_check_stackoverflow(threadData);
1196 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1197 // _outVersionedTargetClassEnv has no default value.
1198 // _outVersionedTargetClass has no default value.
1199 // _outIH has no default value.
1200#line 1651 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1201
1202#line 1651 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1203
1204#line 1651 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1205
1206#line 1206 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1207 { /* matchcontinue expression */
1208 volatile modelica_metatype tmp4_1;
1209 tmp4_1 = _inMod;
1210 {
1211 volatile mmc_switch_type tmp4;
1212 int tmp5;
1213 tmp4 = 0;
1214 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) {
1215 tmp3_top:
1216 threadData->mmc_jumper = &new_mmc_jumper;
1217 for (; tmp4 < 5; tmp4++) {
1218 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1219 case 0: {
1220 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,2,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp3_end;
1221 tmp4 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
1222#line 1667 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1223 tmpMeta[0+0] = _inTargetClassEnv;
1224#line 1667 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1225 tmpMeta[0+1] = _inTargetClass;
1226#line 1667 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1227 tmpMeta[0+2] = _inIH;
1228#line 1228 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1229 goto tmp3_done;
1230 }
1231 case 1: {
1232 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1233 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(4)))))
;
1234 if (!listEmpty(tmpMeta[3])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1235
1236 /* Pattern matching succeeded */
1237#line 1668 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1238 tmpMeta[0+0] = _inTargetClassEnv;
1239#line 1668 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1240 tmpMeta[0+1] = _inTargetClass;
1241#line 1668 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1242 tmpMeta[0+2] = _inIH;
1243#line 1243 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1244 goto tmp3_done;
1245 }
1246 case 2: {
1247 modelica_boolean tmp6;
1248
1249 /* Pattern matching succeeded */
1250#line 1673 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1251 /* Pattern-matching assignment */
1252#line 1673 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1253 tmp6 = (((omc_Config_acceptMetaModelicaGrammar(threadData) || omc_FGraph_isTargetClassBuiltin(threadData, _inTargetClassEnv, _inTargetClass)) || omc_FGraph_inFunctionScope(threadData, _inSourceEnv)) || omc_SCodeUtil_isOperatorRecord(threadData, _inTargetClass));
1254#line 1673 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1255 if (1 != tmp6) goto goto_2;
1256#line 1256 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1257#line 1677 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1258 tmpMeta[0+0] = _inTargetClassEnv;
1259#line 1677 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1260 tmpMeta[0+1] = _inTargetClass;
1261#line 1677 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1262 tmpMeta[0+2] = _inIH;
1263#line 1263 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1264 goto tmp3_done;
1265 }
1266 case 3: {
1267 modelica_boolean tmp7;
1268
1269 /* Pattern matching succeeded */
1270#line 1683 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1271 /* Pattern-matching assignment */
1272#line 1683 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1273 tmp7 = (stringEqual(omc_AbsynUtil_pathFirstIdent(threadData, omc_FGraph_getGraphName(threadData, _inTargetClassEnv)), _OMC_LIT12)((((((*(mmc_uint_t*)((void*)((char*)(omc_AbsynUtil_pathFirstIdent
(threadData, omc_FGraph_getGraphName(threadData, _inTargetClassEnv
))) - 3)))) >> (3)) - 8)) == (((((*(mmc_uint_t*)((void*
)((char*)(((void*)((char*)(&(_OMC_LIT_STRUCT12).header) +
3))) - 3)))) >> (3)) - 8)) && !mmc_stringCompare
(omc_AbsynUtil_pathFirstIdent(threadData, omc_FGraph_getGraphName
(threadData, _inTargetClassEnv)),((void*)((char*)(&(_OMC_LIT_STRUCT12
).header) + 3))))
);
1274#line 1683 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1275 if (1 != tmp7) goto goto_2;
1276#line 1276 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1277#line 1684 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1278 tmpMeta[0+0] = _inTargetClassEnv;
1279#line 1684 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1280 tmpMeta[0+1] = _inTargetClass;
1281#line 1684 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1282 tmpMeta[0+2] = _inIH;
1283#line 1283 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1284 goto tmp3_done;
1285 }
1286 case 4: {
1287
1288 /* Pattern matching succeeded */
1289#line 1690 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1290 tmpMeta[0+0] = omc_FGraph_mkVersionNode(threadData, _inSourceEnv, _inSourceName, _inPrefix, _inMod, _inTargetClassEnv, _inTargetClass, _inIH, &tmpMeta[0+1], &tmpMeta[0+2]);
1291#line 1291 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1292 goto tmp3_done;
1293 }
1294 }
1295 goto tmp3_end;
1296 tmp3_end: ;
1297 }
1298 goto goto_2;
1299 tmp3_done:
1300 (void)tmp4;
1301 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1302 goto tmp3_done2;
1303 goto_2:;
1304 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1305 if (++tmp4 < 5) {
1306 goto tmp3_top;
1307 }
1308 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1309 tmp3_done2:;
1310 }
1311 }
1312 _outVersionedTargetClassEnv = tmpMeta[0+0];
1313 _outVersionedTargetClass = tmpMeta[0+1];
1314 _outIH = tmpMeta[0+2];
1315 _return: OMC_LABEL_UNUSED__attribute__((unused))
1316 if (out_outVersionedTargetClass) { *out_outVersionedTargetClass = _outVersionedTargetClass; }
1317 if (out_outIH) { *out_outIH = _outIH; }
1318 return _outVersionedTargetClassEnv;
1319}
1320
1321DLLExport
1322modelica_metatype omc_FGraph_mkVersionNode(threadData_t *threadData, modelica_metatype _inSourceEnv, modelica_string _inSourceName, modelica_metatype _inPrefix, modelica_metatype _inMod, modelica_metatype _inTargetClassEnv, modelica_metatype _inTargetClass, modelica_metatype _inIH, modelica_metatype *out_outVersionedTargetClass, modelica_metatype *out_outIH)
1323{
1324 modelica_metatype _outVersionedTargetClassEnv = NULL((void*)0);
1325 modelica_metatype _outVersionedTargetClass = NULL((void*)0);
1326 modelica_metatype _outIH = NULL((void*)0);
1327 modelica_metatype tmpMeta[14] __attribute__((unused)) = {0};
1328 MMC_SO()mmc_check_stackoverflow(threadData);
1329 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1330 // _outVersionedTargetClassEnv has no default value.
1331 // _outVersionedTargetClass has no default value.
1332 // _outIH has no default value.
1333#line 1551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1334
1335#line 1551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1336
1337#line 1551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1338
1339#line 1339 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1340 { /* matchcontinue expression */
1341 {
1342 modelica_metatype _gclass = NULL((void*)0);
1343 modelica_metatype _classRef = NULL((void*)0);
1344 modelica_metatype _sourceRef = NULL((void*)0);
1345 modelica_metatype _targetClassParentRef = NULL((void*)0);
1346 modelica_metatype _crefPrefix = NULL((void*)0);
1347 modelica_metatype _c = NULL((void*)0);
1348 modelica_string _targetClassName = NULL((void*)0);
1349 modelica_string _newTargetClassName = NULL((void*)0);
1350 modelica_metatype _ih = NULL((void*)0);
1351 volatile mmc_switch_type tmp4;
1352 int tmp5;
1353 // _gclass has no default value.
1354 // _classRef has no default value.
1355 // _sourceRef has no default value.
1356 // _targetClassParentRef has no default value.
1357 // _crefPrefix has no default value.
1358 // _c has no default value.
1359 // _targetClassName has no default value.
1360 // _newTargetClassName has no default value.
1361 // _ih has no default value.
1362 tmp4 = 0;
1363 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) {
1364 tmp3_top:
1365 threadData->mmc_jumper = &new_mmc_jumper;
1366 for (; tmp4 < 2; tmp4++) {
1367 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1368 case 0: {
1369 /* Pattern matching succeeded */
1370#line 1581 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1371 _c = _inTargetClass;
1372#line 1372 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1373
1374#line 1582 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1375 _gclass = _inTargetClassEnv;
1376#line 1376 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1377
1378#line 1583 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1379 _targetClassName = omc_SCodeUtil_elementName(threadData, _c);
1380#line 1380 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1381
1382#line 1585 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1383 _newTargetClassName = omc_FGraph_mkVersionName(threadData, _inSourceEnv, _inSourceName, _inPrefix, _inMod, _inTargetClassEnv, _targetClassName ,&_crefPrefix);
1384#line 1384 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1385
1386#line 1588 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1387 _sourceRef = omc_FNode_child(threadData, omc_FGraph_lastScopeRef(threadData, _inSourceEnv), _inSourceName);
1388#line 1388 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1389
1390#line 1589 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1391 tmpMeta[3] = mmc_mk_cons(_sourceRef, omc_FGraph_currentScope(threadData, _inSourceEnv));
1392#line 1589 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1393 tmpMeta[3];
1394#line 1394 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1395
1396#line 1592 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1397 _targetClassParentRef = omc_FGraph_lastScopeRef(threadData, _inTargetClassEnv);
1398#line 1398 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1399
1400#line 1594 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1401 _classRef = omc_FNode_child(threadData, _targetClassParentRef, _targetClassName);
1402#line 1402 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1403
1404#line 1596 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1405 _classRef = omc_FNode_copyRefNoUpdate(threadData, _classRef);
1406#line 1406 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1407
1408#line 1602 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1409 /* Pattern-matching assignment */
1410#line 1602 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1411 tmpMeta[3] = omc_FNode_refData(threadData, _classRef);
1412#line 1602 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1413 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[3],3,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))==(((5 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto goto_2;
1414#line 1602 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1415 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
1416#line 1602 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1417 _c = tmpMeta[4];
1418#line 1418 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1419
1420#line 1603 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1421 _c = omc_SCodeUtil_setClassName(threadData, _newTargetClassName, _c);
1422#line 1422 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1423
1424#line 1604 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1425 tmpMeta[3] = mmc_mk_box2(10, &FCore_Status_CLS__INSTANCE__desc, _targetClassName);
1426#line 1604 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1427 _classRef = omc_FGraph_updateClassElement(threadData, _classRef, _c, _crefPrefix, _inMod, tmpMeta[3], omc_FGraph_empty(threadData));
1428#line 1428 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1429
1430#line 1606 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1431 omc_FNode_addChildRef(threadData, _targetClassParentRef, _newTargetClassName, _classRef, 0);
1432#line 1432 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1433
1434#line 1608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1435 tmpMeta[3] = mmc_mk_cons(_classRef, omc_FGraph_currentScope(threadData, _gclass));
1436#line 1608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1437 _sourceRef = omc_FGraph_updateSourceTargetScope(threadData, _sourceRef, tmpMeta[3]);
1438#line 1438 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1439
1440#line 1611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1441 _ih = _inIH;
1442#line 1442 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1443#line 1618 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1444 tmpMeta[0+0] = _gclass;
1445#line 1618 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1446 tmpMeta[0+1] = _c;
1447#line 1618 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1448 tmpMeta[0+2] = _ih;
1449#line 1449 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1450 goto tmp3_done;
1451 }
1452 case 1: {
1453 /* Pattern matching succeeded */
1454#line 1623 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1455 _c = _inTargetClass;
1456#line 1456 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1457
1458#line 1624 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1459 _targetClassName = omc_SCodeUtil_elementName(threadData, _c);
1460#line 1460 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1461
1462#line 1625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1463 _newTargetClassName = omc_FGraph_mkVersionName(threadData, _inSourceEnv, _inSourceName, _inPrefix, _inMod, _inTargetClassEnv, _targetClassName, NULL((void*)0));
1464#line 1464 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1465
1466#line 1627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1467 tmpMeta[3] = stringAppend(_OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)),omc_FGraph_getGraphNameStr(threadData, _inSourceEnv));
1468#line 1627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1469 tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)));
1470#line 1627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1471 tmpMeta[5] = stringAppend(tmpMeta[4],_inSourceName);
1472#line 1627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1473 tmpMeta[6] = stringAppend(tmpMeta[5],_OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)));
1474#line 1627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1475 tmpMeta[7] = stringAppend(tmpMeta[6],omc_FGraph_getGraphNameStr(threadData, _inTargetClassEnv));
1476#line 1627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1477 tmpMeta[8] = stringAppend(tmpMeta[7],_OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)));
1478#line 1627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1479 tmpMeta[9] = stringAppend(tmpMeta[8],_targetClassName);
1480#line 1627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1481 tmpMeta[10] = stringAppend(tmpMeta[9],omc_SCodeDump_printModStr(threadData, omc_Mod_unelabMod(threadData, _inMod), _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))));
1482#line 1627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1483 tmpMeta[11] = stringAppend(tmpMeta[10],_OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)));
1484#line 1627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1485 tmpMeta[12] = stringAppend(tmpMeta[11],_newTargetClassName);
1486#line 1627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1487 tmpMeta[13] = stringAppend(tmpMeta[12],_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
1488#line 1627 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1489 omc_Error_addCompilerWarning(threadData, tmpMeta[13]);
1490#line 1490 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1491#line 1633 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1492 tmpMeta[0+0] = _inTargetClassEnv;
1493#line 1633 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1494 tmpMeta[0+1] = _inTargetClass;
1495#line 1633 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1496 tmpMeta[0+2] = _inIH;
1497#line 1497 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1498 goto tmp3_done;
1499 }
1500 }
1501 goto tmp3_end;
1502 tmp3_end: ;
1503 }
1504 goto goto_2;
1505 tmp3_done:
1506 (void)tmp4;
1507 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1508 goto tmp3_done2;
1509 goto_2:;
1510 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1511 if (++tmp4 < 2) {
1512 goto tmp3_top;
1513 }
1514 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1515 tmp3_done2:;
1516 }
1517 }
1518 _outVersionedTargetClassEnv = tmpMeta[0+0];
1519 _outVersionedTargetClass = tmpMeta[0+1];
1520 _outIH = tmpMeta[0+2];
1521 _return: OMC_LABEL_UNUSED__attribute__((unused))
1522 if (out_outVersionedTargetClass) { *out_outVersionedTargetClass = _outVersionedTargetClass; }
1523 if (out_outIH) { *out_outIH = _outIH; }
1524 return _outVersionedTargetClassEnv;
1525}
1526
1527DLLExport
1528modelica_metatype omc_FGraph_updateScope(threadData_t *threadData, modelica_metatype _inGraph)
1529{
1530 modelica_metatype _outGraph = NULL((void*)0);
1531 MMC_SO()mmc_check_stackoverflow(threadData);
1532 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1533 // _outGraph has no default value.
1534#line 1520 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1535 _outGraph = _inGraph;
1536#line 1536 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1537 _return: OMC_LABEL_UNUSED__attribute__((unused))
1538 return _outGraph;
1539}
1540
1541DLLExport
1542modelica_metatype omc_FGraph_cloneLastScopeRef(threadData_t *threadData, modelica_metatype _inGraph)
1543{
1544 modelica_metatype _outGraph = NULL((void*)0);
1545 modelica_metatype _r = NULL((void*)0);
1546 MMC_SO()mmc_check_stackoverflow(threadData);
1547 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1548 // _outGraph has no default value.
1549 // _r has no default value.
1550#line 1511 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1551 _outGraph = omc_FGraph_stripLastScopeRef(threadData, _inGraph ,&_r);
1552#line 1552 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1553
1554#line 1512 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1555 _r = omc_FNode_copyRefNoUpdate(threadData, _r);
1556#line 1556 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1557
1558#line 1513 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1559 _outGraph = omc_FGraph_pushScopeRef(threadData, _outGraph, _r);
1560#line 1560 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1561 _return: OMC_LABEL_UNUSED__attribute__((unused))
1562 return _outGraph;
1563}
1564
1565DLLExport
1566modelica_metatype omc_FGraph_removeComponentsFromScope(threadData_t *threadData, modelica_metatype _inGraph)
1567{
1568 modelica_metatype _outGraph = NULL((void*)0);
1569 modelica_metatype _r = NULL((void*)0);
1570 modelica_metatype _n = NULL((void*)0);
1571 MMC_SO()mmc_check_stackoverflow(threadData);
1572 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1573 // _outGraph has no default value.
1574 // _r has no default value.
1575 // _n has no default value.
1576#line 1496 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1577 _r = omc_FGraph_lastScopeRef(threadData, _inGraph);
1578#line 1578 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1579
1580#line 1497 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1581 _r = omc_FNode_copyRefNoUpdate(threadData, _r);
1582#line 1582 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1583
1584#line 1498 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1585 _n = omc_FNode_fromRef(threadData, _r);
1586#line 1586 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1587
1588#line 1499 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1589 _n = omc_FNode_setChildren(threadData, _n, omc_FCore_RefTree_new(threadData));
1590#line 1590 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1591
1592#line 1500 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1593 _r = omc_FNode_updateRef(threadData, _r, _n);
1594#line 1594 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1595
1596#line 1501 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1597 _outGraph = omc_FGraph_stripLastScopeRef(threadData, _inGraph, NULL((void*)0));
1598#line 1598 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1599
1600#line 1502 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1601 _outGraph = omc_FGraph_pushScopeRef(threadData, _outGraph, _r);
1602#line 1602 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1603 _return: OMC_LABEL_UNUSED__attribute__((unused))
1604 return _outGraph;
1605}
1606
1607DLLExport
1608modelica_metatype omc_FGraph_getVariablesFromGraphScope(threadData_t *threadData, modelica_metatype _inGraph)
1609{
1610 modelica_metatype _variables = NULL((void*)0);
1611 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1612 MMC_SO()mmc_check_stackoverflow(threadData);
1613 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1614 // _variables has no default value.
1615#line 1615 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1616 { /* match expression */
1617 modelica_metatype tmp3_1;
1618 tmp3_1 = _inGraph;
1619 {
1620 modelica_metatype _r = NULL((void*)0);
1621 volatile mmc_switch_type tmp3;
1622 int tmp4;
1623 // _r has no default value.
1624 tmp3 = 0;
1625 for (; tmp3 < 3; tmp3++) {
1626 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1627 case 0: {
1628 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;
1629
1630 /* Pattern matching succeeded */
1631#line 1472 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1632 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1633#line 1472 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1634 tmpMeta[0] = tmpMeta[1];
1635#line 1635 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1636 goto tmp2_done;
1637 }
1638 case 1: {
1639 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;
1640 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1641 if (!listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1642 /* Pattern matching succeeded */
1643#line 1475 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1644 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1645#line 1475 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1646 tmpMeta[0] = tmpMeta[1];
1647#line 1647 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1648 goto tmp2_done;
1649 }
1650 case 2: {
1651 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;
1652 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1653 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1654 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1655 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1656 _r = tmpMeta[2];
1657 /* Pattern matching succeeded */
1658#line 1480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1659 tmpMeta[0] = omc_List_map(threadData, omc_FNode_filter(threadData, _r, boxvar_FNode_isRefComponent((void*)((char*)(&(boxvar_lit_FNode_isRefComponent).header
) + 3))
), boxvar_FNode_refName((void*)((char*)(&(boxvar_lit_FNode_refName).header) + 3)
)
);
1660#line 1660 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1661 goto tmp2_done;
1662 }
1663 }
1664 goto tmp2_end;
1665 tmp2_end: ;
1666 }
1667 goto goto_1;
1668 goto_1:;
1669 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1670 goto tmp2_done;
1671 tmp2_done:;
1672 }
1673 }
1674 _variables = tmpMeta[0];
1675 _return: OMC_LABEL_UNUSED__attribute__((unused))
1676 return _variables;
1677}
1678
1679DLLExport
1680modelica_metatype omc_FGraph_splitGraphScope__dispatch(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _inAcc, modelica_metatype *out_outForScope)
1681{
1682 modelica_metatype _outRealGraph = NULL((void*)0);
1683 modelica_metatype _outForScope = NULL((void*)0);
1684 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
1685 MMC_SO()mmc_check_stackoverflow(threadData);
1686 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1687 // _outRealGraph has no default value.
1688 // _outForScope has no default value.
1689#line 1437 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1690
1691#line 1437 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1692
1693#line 1693 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1694 { /* match expression */
1695 modelica_metatype tmp4_1;
1696 tmp4_1 = _inGraph;
1697 {
1698 modelica_metatype _g = NULL((void*)0);
1699 modelica_metatype _r = NULL((void*)0);
1700 modelica_metatype _s = NULL((void*)0);
1701 volatile mmc_switch_type tmp4;
1702 int tmp5;
1703 // _g has no default value.
1704 // _r has no default value.
1705 // _s has no default value.
1706 tmp4 = 0;
1707 for (; tmp4 < 2; tmp4++) {
1708 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
1709 case 0: {
1710 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
1711
1712 /* Pattern matching succeeded */
1713#line 1443 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1714 tmpMeta[0+0] = _inGraph;
1715#line 1443 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1716 tmpMeta[0+1] = listReverse(_inAcc);
1717#line 1717 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1718 goto tmp3_done;
1719 }
1720 case 1: {
1721 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
1722 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
1723 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
1724 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
1725 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1726 _r = tmpMeta[3];
1727 /* Pattern matching succeeded */
1728#line 1447 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1729 if(omc_FNode_isImplicitRefName(threadData, _r))
1730#line 1447 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1731 {
1732#line 1448 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1733 _g = omc_FGraph_stripLastScopeRef(threadData, _inGraph, NULL((void*)0));
1734#line 1734 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1735
1736#line 1449 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1737 tmpMeta[2] = mmc_mk_cons(_r, _inAcc);
1738#line 1449 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1739 _g = omc_FGraph_splitGraphScope__dispatch(threadData, _g, tmpMeta[2] ,&_s);
1740#line 1740 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1741 }
1742 else
1743 {
1744#line 1451 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1745 _g = _inGraph;
1746#line 1746 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1747
1748#line 1452 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1749 _s = listReverse(_inAcc);
1750#line 1750 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1751 }
1752#line 1454 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1753 tmpMeta[0+0] = _g;
1754#line 1454 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1755 tmpMeta[0+1] = _s;
1756#line 1756 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1757 goto tmp3_done;
1758 }
1759 }
1760 goto tmp3_end;
1761 tmp3_end: ;
1762 }
1763 goto goto_2;
1764 goto_2:;
1765 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1766 goto tmp3_done;
1767 tmp3_done:;
1768 }
1769 }
1770 _outRealGraph = tmpMeta[0+0];
1771 _outForScope = tmpMeta[0+1];
1772 _return: OMC_LABEL_UNUSED__attribute__((unused))
1773 if (out_outForScope) { *out_outForScope = _outForScope; }
1774 return _outRealGraph;
1775}
1776
1777DLLExport
1778modelica_metatype omc_FGraph_splitGraphScope(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype *out_outForScope)
1779{
1780 modelica_metatype _outRealGraph = NULL((void*)0);
1781 modelica_metatype _outForScope = NULL((void*)0);
1782 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1783 MMC_SO()mmc_check_stackoverflow(threadData);
1784 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1785 // _outRealGraph has no default value.
1786 // _outForScope has no default value.
1787#line 1427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1788 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1789#line 1427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1790 _outRealGraph = omc_FGraph_splitGraphScope__dispatch(threadData, _inGraph, tmpMeta[0] ,&_outForScope);
1791#line 1791 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1792 _return: OMC_LABEL_UNUSED__attribute__((unused))
1793 if (out_outForScope) { *out_outForScope = _outForScope; }
1794 return _outRealGraph;
1795}
1796
1797DLLExport
1798modelica_metatype omc_FGraph_joinScopePath(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _inPath)
1799{
1800 modelica_metatype _outPath = NULL((void*)0);
1801 modelica_metatype _opath = NULL((void*)0);
1802 modelica_metatype _envPath = NULL((void*)0);
1803 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1804 MMC_SO()mmc_check_stackoverflow(threadData);
1805 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1806 // _outPath has no default value.
1807 // _opath has no default value.
1808 // _envPath has no default value.
1809#line 1412 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1810 _opath = omc_FGraph_getScopePath(threadData, _inGraph);
1811#line 1811 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1812
1813#line 1413 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1814 if(isSome(_opath)(0==((((((*(mmc_uint_t*)((void*)((char*)(_opath) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(_opath) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(_opath
) - 3)))) >> 10)) ? 0 : 1)
)
1815#line 1413 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1816 {
1817#line 1414 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1818 /* Pattern-matching assignment */
1819#line 1414 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1820 tmpMeta[0] = _opath;
1821#line 1414 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1822 if (optionNone(tmpMeta[0])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[0]) - 3)))) >> 10)) ? 1 : 0)
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1823#line 1414 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1824 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1825#line 1414 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1826 _envPath = tmpMeta[1];
1827#line 1827 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1828
1829#line 1415 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1830 _outPath = omc_AbsynUtil_joinPaths(threadData, _envPath, _inPath);
1831#line 1831 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1832 }
1833 else
1834 {
1835#line 1417 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1836 _outPath = _inPath;
1837#line 1837 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1838 }
1839 _return: OMC_LABEL_UNUSED__attribute__((unused))
1840 return _outPath;
1841}
1842
1843DLLExport
1844modelica_boolean omc_FGraph_isImplicitScope(threadData_t *threadData, modelica_string _inName)
1845{
1846 modelica_boolean _isImplicit;
1847 MMC_SO()mmc_check_stackoverflow(threadData);
1848 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1849 // _isImplicit has no default value.
1850#line 1401 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1851 _isImplicit = omc_FCore_isImplicitScope(threadData, _inName);
1852#line 1852 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1853 _return: OMC_LABEL_UNUSED__attribute__((unused))
1854 return _isImplicit;
1855}
1856modelica_metatype boxptr_FGraph_isImplicitScope(threadData_t *threadData, modelica_metatype _inName)
1857{
1858 modelica_boolean _isImplicit;
1859 modelica_metatype out_isImplicit;
1860 _isImplicit = omc_FGraph_isImplicitScope(threadData, _inName);
1861 out_isImplicit = mmc_mk_icon(_isImplicit);
1862 return out_isImplicit;
1863}
1864
1865PROTECTED_FUNCTION_STATIC modelica_metatype omc_FGraph_getGraphPathNoImplicitScope__dispatch(threadData_t *threadData, modelica_metatype _inScope)
1866{
1867 modelica_metatype _outAbsynPathOption = NULL((void*)0);
1868 modelica_metatype _opath = NULL((void*)0);
1869 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1870 MMC_SO()mmc_check_stackoverflow(threadData);
1871 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1872 // _outAbsynPathOption has no default value.
1873 // _opath has no default value.
1874#line 1874 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1875 { /* matchcontinue expression */
1876 volatile modelica_metatype tmp3_1;
1877 tmp3_1 = _inScope;
1878 {
1879 modelica_string _id = NULL((void*)0);
1880 modelica_metatype _path = NULL((void*)0);
1881 modelica_metatype _path_1 = NULL((void*)0);
1882 modelica_metatype _rest = NULL((void*)0);
1883 modelica_metatype _ref = NULL((void*)0);
1884 volatile mmc_switch_type tmp3;
1885 int tmp4;
1886 // _id has no default value.
1887 // _path has no default value.
1888 // _path_1 has no default value.
1889 // _rest has no default value.
1890 // _ref has no default value.
1891 tmp3 = 0;
1892 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) {
1893 tmp2_top:
1894 threadData->mmc_jumper = &new_mmc_jumper;
1895 for (; tmp3 < 2; tmp3++) {
1896 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1897 case 0: {
1898 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
1899 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
1900 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1901 _ref = tmpMeta[1];
1902 _rest = tmpMeta[2];
1903 /* Pattern matching succeeded */
1904 /* Check guard condition after assignments */
1905 if (!(!omc_FNode_isRefTop(threadData, _ref))) goto tmp2_end;
1906#line 1376 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1907 _id = omc_FNode_refName(threadData, _ref);
1908#line 1908 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1909
1910#line 1377 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1911 if(omc_FGraph_isImplicitScope(threadData, _id))
1912#line 1377 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1913 {
1914#line 1378 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1915 _opath = omc_FGraph_getGraphPathNoImplicitScope__dispatch(threadData, _rest);
1916#line 1916 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1917 }
1918 else
1919 {
1920#line 1380 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1921 _opath = omc_FGraph_getGraphPathNoImplicitScope__dispatch(threadData, _rest);
1922#line 1922 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1923
1924#line 1381 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1925 if(isSome(_opath)(0==((((((*(mmc_uint_t*)((void*)((char*)(_opath) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(_opath) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(_opath
) - 3)))) >> 10)) ? 0 : 1)
)
1926#line 1381 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1927 {
1928#line 1382 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1929 /* Pattern-matching assignment */
1930#line 1382 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1931 tmpMeta[1] = _opath;
1932#line 1382 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1933 if (optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) goto goto_1;
1934#line 1382 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1935 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1936#line 1382 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1937 _path = tmpMeta[2];
1938#line 1938 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1939
1940#line 1383 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1941 tmpMeta[1] = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _id);
1942#line 1383 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1943 _path_1 = omc_AbsynUtil_joinPaths(threadData, _path, tmpMeta[1]);
1944#line 1944 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1945
1946#line 1384 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1947 _opath = mmc_mk_some(_path_1);
1948#line 1948 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1949 }
1950 else
1951 {
1952#line 1386 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1953 tmpMeta[1] = mmc_mk_box2(4, &Absyn_Path_IDENT__desc, _id);
1954#line 1386 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1955 _opath = mmc_mk_some(tmpMeta[1]);
1956#line 1956 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1957 }
1958 }
1959#line 1389 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1960 tmpMeta[0] = _opath;
1961#line 1961 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1962 goto tmp2_done;
1963 }
1964 case 1: {
1965
1966 /* Pattern matching succeeded */
1967#line 1392 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
1968 tmpMeta[0] = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
1969#line 1969 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
1970 goto tmp2_done;
1971 }
1972 }
1973 goto tmp2_end;
1974 tmp2_end: ;
1975 }
1976 goto goto_1;
1977 tmp2_done:
1978 (void)tmp3;
1979 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
1980 goto tmp2_done2;
1981 goto_1:;
1982 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
1983 if (++tmp3 < 2) {
1984 goto tmp2_top;
1985 }
1986 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1987 tmp2_done2:;
1988 }
1989 }
1990 _outAbsynPathOption = tmpMeta[0];
1991 _return: OMC_LABEL_UNUSED__attribute__((unused))
1992 return _outAbsynPathOption;
1993}
1994
1995DLLExport
1996modelica_metatype omc_FGraph_getGraphPathNoImplicitScope(threadData_t *threadData, modelica_metatype _inGraph)
1997{
1998 modelica_metatype _outAbsynPathOption = NULL((void*)0);
1999 MMC_SO()mmc_check_stackoverflow(threadData);
2000 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2001 // _outAbsynPathOption has no default value.
2002#line 1352 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2003 _outAbsynPathOption = omc_FGraph_getGraphPathNoImplicitScope__dispatch(threadData, omc_FGraph_currentScope(threadData, _inGraph));
2004#line 2004 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2005 _return: OMC_LABEL_UNUSED__attribute__((unused))
2006 return _outAbsynPathOption;
2007}
2008
2009DLLExport
2010modelica_metatype omc_FGraph_getScopeRestriction(threadData_t *threadData, modelica_metatype _inScope)
2011{
2012 modelica_metatype _outRestriction = NULL((void*)0);
2013 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
2014 MMC_SO()mmc_check_stackoverflow(threadData);
2015 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2016 // _outRestriction has no default value.
2017#line 2017 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2018 { /* matchcontinue expression */
2019 volatile modelica_metatype tmp3_1;
2020 tmp3_1 = _inScope;
2021 {
2022 modelica_metatype _r = NULL((void*)0);
2023 modelica_metatype _st = NULL((void*)0);
2024 volatile mmc_switch_type tmp3;
2025 int tmp4;
2026 // _r has no default value.
2027 // _st has no default value.
2028 tmp3 = 0;
2029 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) {
2030 tmp2_top:
2031 threadData->mmc_jumper = &new_mmc_jumper;
2032 for (; tmp3 < 3; tmp3++) {
2033 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2034 case 0: {
2035 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2036 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2037 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2038 _r = tmpMeta[1];
2039 /* Pattern matching succeeded */
2040 /* Check guard condition after assignments */
2041 if (!omc_FNode_isRefClass(threadData, _r)) goto tmp2_end;
2042#line 1331 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2043 tmpMeta[0] = omc_SCodeUtil_getClassRestriction(threadData, omc_FNode_getElement(threadData, omc_FNode_fromRef(threadData, _r)));
2044#line 2044 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2045 goto tmp2_done;
2046 }
2047 case 1: {
2048 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
2049 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
2050 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2051 _r = tmpMeta[1];
2052 /* Pattern matching succeeded */
2053#line 1335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2054 /* Pattern-matching assignment */
2055#line 1335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2056 tmpMeta[1] = omc_FNode_fromRef(threadData, _r);
2057#line 1335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2058 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
2059#line 1335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2060 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],21,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((21 +3) & 255) << 2)))
== 0) goto goto_1;
2061#line 1335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2062 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
2063#line 1335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2064 if (optionNone(tmpMeta[3])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[3]) - 3)))) >> 10)) ? 1 : 0)
) goto goto_1;
2065#line 1335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2066 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (1)))))
;
2067#line 1335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2068 _st = tmpMeta[4];
2069#line 2069 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2070#line 1336 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2071 tmpMeta[0] = omc_FGraph_scopeTypeToRestriction(threadData, _st);
2072#line 2072 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2073 goto tmp2_done;
2074 }
2075 case 2: {
2076
2077 /* Pattern matching succeeded */
2078#line 1339 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2079 tmpMeta[0] = omc_FGraph_getScopeRestriction(threadData, listRest(_inScope)boxptr_listRest(threadData,_inScope));
2080#line 2080 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2081 goto tmp2_done;
2082 }
2083 }
2084 goto tmp2_end;
2085 tmp2_end: ;
2086 }
2087 goto goto_1;
2088 tmp2_done:
2089 (void)tmp3;
2090 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2091 goto tmp2_done2;
2092 goto_1:;
2093 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2094 if (++tmp3 < 3) {
2095 goto tmp2_top;
2096 }
2097 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2098 tmp2_done2:;
2099 }
2100 }
2101 _outRestriction = tmpMeta[0];
2102 _return: OMC_LABEL_UNUSED__attribute__((unused))
2103 return _outRestriction;
2104}
2105
2106DLLExport
2107modelica_metatype omc_FGraph_lastScopeRestriction(threadData_t *threadData, modelica_metatype _inGraph)
2108{
2109 modelica_metatype _outRestriction = NULL((void*)0);
2110 modelica_metatype _s = NULL((void*)0);
2111 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2112 MMC_SO()mmc_check_stackoverflow(threadData);
2113 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2114 // _outRestriction has no default value.
2115 // _s has no default value.
2116#line 1317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2117 /* Pattern-matching assignment */
2118#line 1317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2119 tmpMeta[0] = _inGraph;
2120#line 1317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2121 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2122#line 1317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2123 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
2124#line 1317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2125 _s = tmpMeta[1];
2126#line 2126 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2127
2128#line 1318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2129 _outRestriction = omc_FGraph_getScopeRestriction(threadData, _s);
2130#line 2130 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2131 _return: OMC_LABEL_UNUSED__attribute__((unused))
2132 return _outRestriction;
2133}
2134
2135DLLExport
2136modelica_boolean omc_FGraph_checkScopeType(threadData_t *threadData, modelica_metatype _inScope, modelica_metatype _inScopeType)
2137{
2138 modelica_boolean _yes;
2139 modelica_boolean tmp1 = 0;
2140 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
2141 MMC_SO()mmc_check_stackoverflow(threadData);
2142 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2143 // _yes has no default value.
2144#line 2144 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2145 { /* matchcontinue expression */
2146 volatile modelica_metatype tmp4_1;
2147 tmp4_1 = _inScope;
2148 {
2149 modelica_metatype _r = NULL((void*)0);
2150 modelica_metatype _rest = NULL((void*)0);
2151 modelica_metatype _restr = NULL((void*)0);
2152 modelica_metatype _st = NULL((void*)0);
2153 volatile mmc_switch_type tmp4;
2154 int tmp5;
2155 // _r has no default value.
2156 // _rest has no default value.
2157 // _restr has no default value.
2158 // _st has no default value.
2159 tmp4 = 0;
2160 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) {
2161 tmp3_top:
2162 threadData->mmc_jumper = &new_mmc_jumper;
2163 for (; tmp4 < 4; tmp4++) {
2164 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2165 case 0: {
2166 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2167 tmp4 += 3; /* Pattern matching succeeded; we may skip some cases if we fail */
2168#line 1285 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2169 tmp1 = 0;
2170#line 2170 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2171 goto tmp3_done;
2172 }
2173 case 1: {
2174 modelica_boolean tmp6;
2175 modelica_boolean tmp7;
2176 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2177 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
2178 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2179 _r = tmpMeta[0];
2180 /* Pattern matching succeeded */
2181#line 1290 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2182 /* Pattern-matching assignment */
2183#line 1290 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2184 tmp6 = omc_FNode_isRefClass(threadData, _r);
2185#line 1290 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2186 if (1 != tmp6) goto goto_2;
2187#line 2187 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2188
2189#line 1291 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2190 _restr = omc_SCodeUtil_getClassRestriction(threadData, omc_FNode_getElement(threadData, omc_FNode_fromRef(threadData, _r)));
2191#line 2191 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2192
2193#line 1292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2194 /* Pattern-matching assignment */
2195#line 1292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2196 tmp7 = valueEq(omc_FGraph_restrictionToScopeType(threadData, _restr), _inScopeType);
2197#line 1292 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2198 if (1 != tmp7) goto goto_2;
2199#line 2199 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2200#line 1293 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2201 tmp1 = 1;
2202#line 2202 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2203 goto tmp3_done;
2204 }
2205 case 2: {
2206 modelica_boolean tmp8;
2207 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2208 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
2209 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2210 _r = tmpMeta[0];
2211 /* Pattern matching succeeded */
2212#line 1299 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2213 /* Pattern-matching assignment */
2214#line 1299 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2215 tmpMeta[0] = omc_FNode_fromRef(threadData, _r);
2216#line 1299 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2217 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
2218#line 1299 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2219 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],21,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((1 +1)
<< 10) + (((21 +3) & 255) << 2)))
== 0) goto goto_2;
2220#line 1299 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2221 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2222#line 1299 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2223 _st = tmpMeta[2];
2224#line 2224 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2225
2226#line 1300 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2227 /* Pattern-matching assignment */
2228#line 1300 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2229 tmp8 = valueEq(_st, _inScopeType);
2230#line 1300 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2231 if (1 != tmp8) goto goto_2;
2232#line 2232 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2233#line 1301 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2234 tmp1 = 1;
2235#line 2235 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2236 goto tmp3_done;
2237 }
2238 case 3: {
2239 if (listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
2240 tmpMeta[0] = MMC_CAR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(1)))))
;
2241 tmpMeta[1] = MMC_CDR(tmp4_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
2242 _rest = tmpMeta[1];
2243 /* Pattern matching succeeded */
2244#line 1305 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2245 tmp1 = omc_FGraph_checkScopeType(threadData, _rest, _inScopeType);
2246#line 2246 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2247 goto tmp3_done;
2248 }
2249 }
2250 goto tmp3_end;
2251 tmp3_end: ;
2252 }
2253 goto goto_2;
2254 tmp3_done:
2255 (void)tmp4;
2256 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2257 goto tmp3_done2;
2258 goto_2:;
2259 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2260 if (++tmp4 < 4) {
2261 goto tmp3_top;
2262 }
2263 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2264 tmp3_done2:;
2265 }
2266 }
2267 _yes = tmp1;
2268 _return: OMC_LABEL_UNUSED__attribute__((unused))
2269 return _yes;
2270}
2271modelica_metatype boxptr_FGraph_checkScopeType(threadData_t *threadData, modelica_metatype _inScope, modelica_metatype _inScopeType)
2272{
2273 modelica_boolean _yes;
2274 modelica_metatype out_yes;
2275 _yes = omc_FGraph_checkScopeType(threadData, _inScope, _inScopeType);
2276 out_yes = mmc_mk_icon(_yes);
2277 return out_yes;
2278}
2279
2280DLLExport
2281modelica_string omc_FGraph_getScopeName(threadData_t *threadData, modelica_metatype _inGraph)
2282{
2283 modelica_string _name = NULL((void*)0);
2284 modelica_string tmp1 = 0;
2285 MMC_SO()mmc_check_stackoverflow(threadData);
2286 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2287 // _name has no default value.
2288#line 2288 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2289 { /* match expression */
2290 {
2291 modelica_metatype _r = NULL((void*)0);
2292 volatile mmc_switch_type tmp4;
2293 int tmp5;
2294 // _r has no default value.
2295 tmp4 = 0;
2296 for (; tmp4 < 1; tmp4++) {
2297 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2298 case 0: {
2299 modelica_boolean tmp6;
2300 /* Pattern matching succeeded */
2301#line 1264 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2302 _r = omc_FGraph_lastScopeRef(threadData, _inGraph);
2303#line 2303 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2304
2305#line 1266 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2306 /* Pattern-matching assignment */
2307#line 1266 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2308 tmp6 = omc_FNode_isRefTop(threadData, _r);
2309#line 1266 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2310 if (0 != tmp6) goto goto_2;
2311#line 2311 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2312#line 1267 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2313 tmp1 = omc_FNode_refName(threadData, _r);
2314#line 2314 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2315 goto tmp3_done;
2316 }
2317 }
2318 goto tmp3_end;
2319 tmp3_end: ;
2320 }
2321 goto goto_2;
2322 goto_2:;
2323 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2324 goto tmp3_done;
2325 tmp3_done:;
2326 }
2327 }
2328 _name = tmp1;
2329 _return: OMC_LABEL_UNUSED__attribute__((unused))
2330 return _name;
2331}
2332
2333DLLExport
2334modelica_boolean omc_FGraph_inFunctionScope(threadData_t *threadData, modelica_metatype _inGraph)
2335{
2336 modelica_boolean _inFunction;
2337 modelica_boolean tmp1 = 0;
2338 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2339 MMC_SO()mmc_check_stackoverflow(threadData);
2340 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2341 // _inFunction has no default value.
2342#line 2342 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2343 { /* match expression */
2344 modelica_metatype tmp4_1;
2345 tmp4_1 = _inGraph;
2346 {
2347 modelica_metatype _s = NULL((void*)0);
2348 volatile mmc_switch_type tmp4;
2349 int tmp5;
2350 // _s has no default value.
2351 tmp4 = 0;
2352 for (; tmp4 < 2; tmp4++) {
2353 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2354 case 0: {
2355 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
2356 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2357 _s = tmpMeta[0];
2358 /* Pattern matching succeeded */
2359 /* Check guard condition after assignments */
2360 if (!(omc_FGraph_checkScopeType(threadData, _s, _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))) || omc_FGraph_checkScopeType(threadData, _s, _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))))) goto tmp3_end;
2361#line 1248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2362 tmp1 = 1;
2363#line 2363 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2364 goto tmp3_done;
2365 }
2366 case 1: {
2367
2368 /* Pattern matching succeeded */
2369#line 1251 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2370 tmp1 = 0;
2371#line 2371 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2372 goto tmp3_done;
2373 }
2374 }
2375 goto tmp3_end;
2376 tmp3_end: ;
2377 }
2378 goto goto_2;
2379 goto_2:;
2380 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2381 goto tmp3_done;
2382 tmp3_done:;
2383 }
2384 }
2385 _inFunction = tmp1;
2386 _return: OMC_LABEL_UNUSED__attribute__((unused))
2387 return _inFunction;
2388}
2389modelica_metatype boxptr_FGraph_inFunctionScope(threadData_t *threadData, modelica_metatype _inGraph)
2390{
2391 modelica_boolean _inFunction;
2392 modelica_metatype out_inFunction;
2393 _inFunction = omc_FGraph_inFunctionScope(threadData, _inGraph);
2394 out_inFunction = mmc_mk_icon(_inFunction);
2395 return out_inFunction;
2396}
2397
2398DLLExport
2399modelica_string omc_FGraph_printGraphStr(threadData_t *threadData, modelica_metatype _inGraph)
2400{
2401 modelica_string _s = NULL((void*)0);
2402 MMC_SO()mmc_check_stackoverflow(threadData);
2403 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2404 // _s has no default value.
2405#line 1234 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2406 _s = _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3));
2407#line 2407 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2408 _return: OMC_LABEL_UNUSED__attribute__((unused))
2409 return _s;
2410}
2411
2412DLLExport
2413modelica_boolean omc_FGraph_isEmptyScope(threadData_t *threadData, modelica_metatype _graph)
2414{
2415 modelica_boolean _isEmpty;
2416 MMC_SO()mmc_check_stackoverflow(threadData);
2417 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2418 // _isEmpty has no default value.
2419#line 2419 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2420 { /* matchcontinue expression */
2421 {
2422 volatile mmc_switch_type tmp3;
2423 int tmp4;
2424 tmp3 = 0;
2425 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) {
2426 tmp2_top:
2427 threadData->mmc_jumper = &new_mmc_jumper;
2428 for (; tmp3 < 2; tmp3++) {
2429 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2430 case 0: {
2431 /* Pattern matching succeeded */
2432#line 1223 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2433 _isEmpty = omc_FCore_RefTree_isEmpty(threadData, omc_FNode_children(threadData, omc_FNode_fromRef(threadData, omc_FGraph_lastScopeRef(threadData, _graph))));
2434#line 2434 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2435#line 2435 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2436 goto tmp2_done;
2437 }
2438 case 1: {
2439 /* Pattern matching succeeded */
2440#line 1225 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2441 _isEmpty = 1;
2442#line 2442 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2443#line 2443 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2444 goto tmp2_done;
2445 }
2446 }
2447 goto tmp2_end;
2448 tmp2_end: ;
2449 }
2450 goto goto_1;
2451 tmp2_done:
2452 (void)tmp3;
2453 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2454 goto tmp2_done2;
2455 goto_1:;
2456 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2457 if (++tmp3 < 2) {
2458 goto tmp2_top;
2459 }
2460 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2461 tmp2_done2:;
2462 }
2463 }
2464 ;
2465 _return: OMC_LABEL_UNUSED__attribute__((unused))
2466 return _isEmpty;
2467}
2468modelica_metatype boxptr_FGraph_isEmptyScope(threadData_t *threadData, modelica_metatype _graph)
2469{
2470 modelica_boolean _isEmpty;
2471 modelica_metatype out_isEmpty;
2472 _isEmpty = omc_FGraph_isEmptyScope(threadData, _graph);
2473 out_isEmpty = mmc_mk_icon(_isEmpty);
2474 return out_isEmpty;
2475}
2476
2477DLLExport
2478modelica_boolean omc_FGraph_isNotEmpty(threadData_t *threadData, modelica_metatype _inGraph)
2479{
2480 modelica_boolean _b;
2481 MMC_SO()mmc_check_stackoverflow(threadData);
2482 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2483 // _b has no default value.
2484#line 1215 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2485 _b = (!omc_FGraph_isEmpty(threadData, _inGraph));
2486#line 2486 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2487 _return: OMC_LABEL_UNUSED__attribute__((unused))
2488 return _b;
2489}
2490modelica_metatype boxptr_FGraph_isNotEmpty(threadData_t *threadData, modelica_metatype _inGraph)
2491{
2492 modelica_boolean _b;
2493 modelica_metatype out_b;
2494 _b = omc_FGraph_isNotEmpty(threadData, _inGraph);
2495 out_b = mmc_mk_icon(_b);
2496 return out_b;
2497}
2498
2499DLLExport
2500modelica_boolean omc_FGraph_isEmpty(threadData_t *threadData, modelica_metatype _inGraph)
2501{
2502 modelica_boolean _b;
2503 modelica_boolean tmp1 = 0;
2504 MMC_SO()mmc_check_stackoverflow(threadData);
2505 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2506 // _b has no default value.
2507#line 2507 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2508 { /* match expression */
2509 modelica_metatype tmp4_1;
2510 tmp4_1 = _inGraph;
2511 {
2512 volatile mmc_switch_type tmp4;
2513 int tmp5;
2514 tmp4 = 0;
2515 for (; tmp4 < 2; tmp4++) {
2516 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2517 case 0: {
2518 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2519
2520 /* Pattern matching succeeded */
2521#line 1205 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2522 tmp1 = 1;
2523#line 2523 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2524 goto tmp3_done;
2525 }
2526 case 1: {
2527
2528 /* Pattern matching succeeded */
2529#line 1206 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2530 tmp1 = 0;
2531#line 2531 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2532 goto tmp3_done;
2533 }
2534 }
2535 goto tmp3_end;
2536 tmp3_end: ;
2537 }
2538 goto goto_2;
2539 goto_2:;
2540 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2541 goto tmp3_done;
2542 tmp3_done:;
2543 }
2544 }
2545 _b = tmp1;
2546 _return: OMC_LABEL_UNUSED__attribute__((unused))
2547 return _b;
2548}
2549modelica_metatype boxptr_FGraph_isEmpty(threadData_t *threadData, modelica_metatype _inGraph)
2550{
2551 modelica_boolean _b;
2552 modelica_metatype out_b;
2553 _b = omc_FGraph_isEmpty(threadData, _inGraph);
2554 out_b = mmc_mk_icon(_b);
2555 return out_b;
2556}
2557
2558DLLExport
2559modelica_metatype omc_FGraph_classInfToScopeType(threadData_t *threadData, modelica_metatype _inState)
2560{
2561 modelica_metatype _outType = NULL((void*)0);
2562 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2563 MMC_SO()mmc_check_stackoverflow(threadData);
2564 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2565 // _outType has no default value.
2566#line 2566 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2567 { /* match expression */
2568 modelica_metatype tmp3_1;
2569 tmp3_1 = _inState;
2570 {
2571 volatile mmc_switch_type tmp3;
2572 int tmp4;
2573 tmp3 = 0;
2574 for (; tmp3 < 2; tmp3++) {
2575 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2576 case 0: {
2577 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,8,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((8 +3) & 255) << 2)))
== 0) goto tmp2_end;
2578
2579 /* Pattern matching succeeded */
2580#line 1194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2581 tmpMeta[0] = _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3));
2582#line 2582 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2583 goto tmp2_done;
2584 }
2585 case 1: {
2586
2587 /* Pattern matching succeeded */
2588#line 1195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2589 tmpMeta[0] = _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3));
2590#line 2590 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2591 goto tmp2_done;
2592 }
2593 }
2594 goto tmp2_end;
2595 tmp2_end: ;
2596 }
2597 goto goto_1;
2598 goto_1:;
2599 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2600 goto tmp2_done;
2601 tmp2_done:;
2602 }
2603 }
2604 _outType = tmpMeta[0];
2605 _return: OMC_LABEL_UNUSED__attribute__((unused))
2606 return _outType;
2607}
2608
2609DLLExport
2610modelica_metatype omc_FGraph_mkDefunitNode(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _inDu)
2611{
2612 modelica_metatype _outGraph = NULL((void*)0);
2613 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2614 MMC_SO()mmc_check_stackoverflow(threadData);
2615 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2616 // _outGraph has no default value.
2617#line 2617 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2618 { /* match expression */
2619 modelica_metatype tmp3_1;
2620 tmp3_1 = _inGraph;
2621 {
2622 modelica_metatype _g = NULL((void*)0);
2623 modelica_metatype _r = NULL((void*)0);
2624 volatile mmc_switch_type tmp3;
2625 int tmp4;
2626 // _g has no default value.
2627 // _r has no default value.
2628 tmp3 = 0;
2629 for (; tmp3 < 1; tmp3++) {
2630 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2631 case 0: {
2632
2633 _g = tmp3_1;
2634 /* Pattern matching succeeded */
2635#line 1181 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2636 _r = omc_FGraph_lastScopeRef(threadData, _g);
2637#line 2637 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2638#line 1182 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2639 tmpMeta[0] = omc_FGraphBuildEnv_mkElementNode(threadData, _inDu, _r, _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)), _g);
2640#line 2640 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2641 goto tmp2_done;
2642 }
2643 }
2644 goto tmp2_end;
2645 tmp2_end: ;
2646 }
2647 goto goto_1;
2648 goto_1:;
2649 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2650 goto tmp2_done;
2651 tmp2_done:;
2652 }
2653 }
2654 _outGraph = tmpMeta[0];
2655 _return: OMC_LABEL_UNUSED__attribute__((unused))
2656 return _outGraph;
2657}
2658
2659DLLExport
2660modelica_metatype omc_FGraph_mkImportNode(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _inImport)
2661{
2662 modelica_metatype _outGraph = NULL((void*)0);
2663 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2664 MMC_SO()mmc_check_stackoverflow(threadData);
2665 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2666 // _outGraph has no default value.
2667#line 2667 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2668 { /* match expression */
2669 modelica_metatype tmp3_1;
2670 tmp3_1 = _inGraph;
2671 {
2672 modelica_metatype _g = NULL((void*)0);
2673 modelica_metatype _r = NULL((void*)0);
2674 volatile mmc_switch_type tmp3;
2675 int tmp4;
2676 // _g has no default value.
2677 // _r has no default value.
2678 tmp3 = 0;
2679 for (; tmp3 < 1; tmp3++) {
2680 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2681 case 0: {
2682
2683 _g = tmp3_1;
2684 /* Pattern matching succeeded */
2685#line 1158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2686 _r = omc_FGraph_lastScopeRef(threadData, _g);
2687#line 2687 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2688#line 1159 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2689 tmpMeta[0] = omc_FGraphBuildEnv_mkElementNode(threadData, _inImport, _r, _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)), _g);
2690#line 2690 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2691 goto tmp2_done;
2692 }
2693 }
2694 goto tmp2_end;
2695 tmp2_end: ;
2696 }
2697 goto goto_1;
2698 goto_1:;
2699 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2700 goto tmp2_done;
2701 tmp2_done:;
2702 }
2703 }
2704 _outGraph = tmpMeta[0];
2705 _return: OMC_LABEL_UNUSED__attribute__((unused))
2706 return _outGraph;
2707}
2708
2709DLLExport
2710modelica_metatype omc_FGraph_mkTypeNode(threadData_t *threadData, modelica_metatype _inGraph, modelica_string _inName, modelica_metatype _inType)
2711{
2712 modelica_metatype _outGraph = NULL((void*)0);
2713 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
2714 MMC_SO()mmc_check_stackoverflow(threadData);
2715 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2716 // _outGraph has no default value.
2717#line 2717 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2718 { /* match expression */
2719 modelica_metatype tmp3_1;
2720 tmp3_1 = _inGraph;
2721 {
2722 modelica_metatype _g = NULL((void*)0);
2723 modelica_metatype _r = NULL((void*)0);
2724 volatile mmc_switch_type tmp3;
2725 int tmp4;
2726 // _g has no default value.
2727 // _r has no default value.
2728 tmp3 = 0;
2729 for (; tmp3 < 1; tmp3++) {
2730 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2731 case 0: {
2732
2733 _g = tmp3_1;
2734 /* Pattern matching succeeded */
2735#line 1135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2736 _r = omc_FGraph_lastScopeRef(threadData, _g);
2737#line 2737 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2738#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2739 tmpMeta[1] = mmc_mk_cons(_inType, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
2740#line 1136 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2741 tmpMeta[0] = omc_FGraphBuildEnv_mkTypeNode(threadData, tmpMeta[1], _r, _inName, _g);
2742#line 2742 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2743 goto tmp2_done;
2744 }
2745 }
2746 goto tmp2_end;
2747 tmp2_end: ;
2748 }
2749 goto goto_1;
2750 goto_1:;
2751 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2752 goto tmp2_done;
2753 tmp2_done:;
2754 }
2755 }
2756 _outGraph = tmpMeta[0];
2757 _return: OMC_LABEL_UNUSED__attribute__((unused))
2758 return _outGraph;
2759}
2760
2761DLLExport
2762modelica_metatype omc_FGraph_mkClassNode(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _inClass, modelica_metatype _inPrefix, modelica_metatype _inMod, modelica_boolean _checkDuplicate)
2763{
2764 modelica_metatype _outGraph = NULL((void*)0);
2765 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
2766 MMC_SO()mmc_check_stackoverflow(threadData);
2767 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2768 // _outGraph has no default value.
2769#line 2769 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2770 { /* matchcontinue expression */
2771 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
2772 tmp3_1 = _inGraph;
2773 tmp3_2 = _inClass;
2774 {
2775 modelica_string _n = NULL((void*)0);
2776 modelica_metatype _g = NULL((void*)0);
2777 modelica_metatype _r = NULL((void*)0);
2778 volatile mmc_switch_type tmp3;
2779 int tmp4;
2780 // _n has no default value.
2781 // _g has no default value.
2782 // _r has no default value.
2783 tmp3 = 0;
2784 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) {
2785 tmp2_top:
2786 threadData->mmc_jumper = &new_mmc_jumper;
2787 for (; tmp3 < 2; tmp3++) {
2788 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2789 case 0: {
2790 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
2791 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
2792
2793 _n = tmpMeta[1];
2794 _g = tmp3_1;
2795 /* Pattern matching succeeded */
2796#line 1102 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2797 _r = omc_FGraph_lastScopeRef(threadData, _g);
2798#line 2798 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2799
2800#line 1103 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2801 _r = omc_FNode_child(threadData, _r, _n);
2802#line 2802 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2803
2804#line 1104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2805 /* Pattern-matching assignment */
2806#line 1104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2807 tmpMeta[1] = omc_FNode_refData(threadData, _r);
2808#line 1104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2809 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto goto_1;
2810#line 1104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2811 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
2812#line 1104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2813 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],7,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((7 +3) & 255) << 2)))
== 0) goto goto_1;
2814#line 1104 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2815
2816#line 2816 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2817#line 1105 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2818 tmpMeta[0] = _g;
2819#line 2819 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2820 goto tmp2_done;
2821 }
2822 case 1: {
2823 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
2824
2825 _g = tmp3_1;
2826 /* Pattern matching succeeded */
2827#line 1110 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2828 _r = omc_FGraph_lastScopeRef(threadData, _g);
2829#line 2829 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2830#line 1111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2831 tmpMeta[0] = omc_FGraphBuildEnv_mkClassNode(threadData, _inClass, _inPrefix, _inMod, _r, _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)), _g, _checkDuplicate);
2832#line 2832 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2833 goto tmp2_done;
2834 }
2835 }
2836 goto tmp2_end;
2837 tmp2_end: ;
2838 }
2839 goto goto_1;
2840 tmp2_done:
2841 (void)tmp3;
2842 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2843 goto tmp2_done2;
2844 goto_1:;
2845 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2846 if (++tmp3 < 2) {
2847 goto tmp2_top;
2848 }
2849 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2850 tmp2_done2:;
2851 }
2852 }
2853 _outGraph = tmpMeta[0];
2854 _return: OMC_LABEL_UNUSED__attribute__((unused))
2855 return _outGraph;
2856}
2857modelica_metatype boxptr_FGraph_mkClassNode(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _inClass, modelica_metatype _inPrefix, modelica_metatype _inMod, modelica_metatype _checkDuplicate)
2858{
2859 modelica_integer tmp1;
2860 modelica_metatype _outGraph = NULL((void*)0);
2861 tmp1 = mmc_unbox_integer(_checkDuplicate)(((mmc_sint_t) (_checkDuplicate)) >> 1);
2862 _outGraph = omc_FGraph_mkClassNode(threadData, _inGraph, _inClass, _inPrefix, _inMod, tmp1);
2863 /* skip box _outGraph; FCore.Graph */
2864 return _outGraph;
2865}
2866
2867DLLExport
2868modelica_metatype omc_FGraph_mkComponentNode(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _inVar, modelica_metatype _inVarEl, modelica_metatype _inMod, modelica_metatype _instStatus, modelica_metatype _inCompGraph)
2869{
2870 modelica_metatype _outGraph = NULL((void*)0);
2871 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
2872 MMC_SO()mmc_check_stackoverflow(threadData);
2873 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2874 // _outGraph has no default value.
2875#line 2875 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2876 { /* matchcontinue expression */
2877 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;volatile modelica_metatype tmp3_3;volatile modelica_metatype tmp3_4;volatile modelica_metatype tmp3_5;volatile modelica_metatype tmp3_6;
2878 tmp3_1 = _inGraph;
2879 tmp3_2 = _inVar;
2880 tmp3_3 = _inVarEl;
2881 tmp3_4 = _inMod;
2882 tmp3_5 = _instStatus;
2883 tmp3_6 = _inCompGraph;
2884 {
2885 modelica_metatype _v = NULL((void*)0);
2886 modelica_string _n = NULL((void*)0);
2887 modelica_metatype _c = NULL((void*)0);
2888 modelica_metatype _g = NULL((void*)0);
2889 modelica_metatype _cg = NULL((void*)0);
2890 modelica_metatype _m = NULL((void*)0);
2891 modelica_metatype _r = NULL((void*)0);
2892 modelica_metatype _i = NULL((void*)0);
2893 volatile mmc_switch_type tmp3;
2894 int tmp4;
2895 // _v has no default value.
2896 // _n has no default value.
2897 // _c has no default value.
2898 // _g has no default value.
2899 // _cg has no default value.
2900 // _m has no default value.
2901 // _r has no default value.
2902 // _i has no default value.
2903 tmp3 = 0;
2904 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) {
2905 tmp2_top:
2906 threadData->mmc_jumper = &new_mmc_jumper;
2907 for (; tmp3 < 2; tmp3++) {
2908 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2909 case 0: {
2910 modelica_boolean tmp5;
2911 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
2912
2913 _n = tmpMeta[1];
2914 _c = tmp3_3;
2915 /* Pattern matching succeeded */
2916#line 1063 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2917 /* Pattern-matching assignment */
2918#line 1063 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2919 tmp5 = (stringEqual(_n, omc_SCodeUtil_elementName(threadData, _c))((((((*(mmc_uint_t*)((void*)((char*)(_n) - 3)))) >> (3)
) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(omc_SCodeUtil_elementName
(threadData, _c)) - 3)))) >> (3)) - 8)) && !mmc_stringCompare
(_n,omc_SCodeUtil_elementName(threadData, _c)))
);
2920#line 1063 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2921 if (0 != tmp5) goto goto_1;
2922#line 2922 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2923
2924#line 1064 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2925 tmpMeta[1] = stringAppend(_OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)),omc_SCodeUtil_elementName(threadData, _c));
2926#line 1064 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2927 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)));
2928#line 1064 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2929 tmpMeta[3] = stringAppend(tmpMeta[2],_n);
2930#line 1064 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2931 tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
2932#line 1064 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2933 omc_Error_addCompilerError(threadData, tmpMeta[4]);
2934#line 2934 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2935#line 1065 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2936 goto goto_1;
2937#line 2937 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2938 goto tmp2_done;
2939 }
2940 case 1: {
2941 modelica_boolean tmp6;
2942 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
2943
2944 _g = tmp3_1;
2945 _v = tmp3_2;
2946 _n = tmpMeta[1];
2947 _c = tmp3_3;
2948 _m = tmp3_4;
2949 _i = tmp3_5;
2950 _cg = tmp3_6;
2951 /* Pattern matching succeeded */
2952#line 1072 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2953 /* Pattern-matching assignment */
2954#line 1072 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2955 tmp6 = (stringEqual(_n, omc_SCodeUtil_elementName(threadData, _c))((((((*(mmc_uint_t*)((void*)((char*)(_n) - 3)))) >> (3)
) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(omc_SCodeUtil_elementName
(threadData, _c)) - 3)))) >> (3)) - 8)) && !mmc_stringCompare
(_n,omc_SCodeUtil_elementName(threadData, _c)))
);
2956#line 1072 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2957 if (1 != tmp6) goto goto_1;
2958#line 2958 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2959
2960#line 1073 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2961 _r = omc_FGraph_lastScopeRef(threadData, _g);
2962#line 2962 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2963
2964#line 1074 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2965 _g = omc_FGraphBuildEnv_mkCompNode(threadData, _c, _r, _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)), _g);
2966#line 2966 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2967#line 1076 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
2968 tmpMeta[0] = omc_FGraph_updateVarAndMod(threadData, _g, _v, _m, _i, _cg);
2969#line 2969 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
2970 goto tmp2_done;
2971 }
2972 }
2973 goto tmp2_end;
2974 tmp2_end: ;
2975 }
2976 goto goto_1;
2977 tmp2_done:
2978 (void)tmp3;
2979 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2980 goto tmp2_done2;
2981 goto_1:;
2982 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2983 if (++tmp3 < 2) {
2984 goto tmp2_top;
2985 }
2986 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2987 tmp2_done2:;
2988 }
2989 }
2990 _outGraph = tmpMeta[0];
2991 _return: OMC_LABEL_UNUSED__attribute__((unused))
2992 return _outGraph;
2993}
2994
2995PROTECTED_FUNCTION_STATIC modelica_metatype omc_FGraph_pathStripGraphScopePrefix2(threadData_t *threadData, modelica_metatype _inPath, modelica_metatype _inEnvPath, modelica_boolean _stripPartial)
2996{
2997 modelica_metatype _outPath = NULL((void*)0);
2998 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
2999 MMC_SO()mmc_check_stackoverflow(threadData);
3000 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3001 // _outPath has no default value.
3002#line 3002 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3003 { /* match expression */
3004 modelica_metatype tmp3_1;modelica_metatype tmp3_2;modelica_boolean tmp3_3;
3005 tmp3_1 = _inPath;
3006 tmp3_2 = _inEnvPath;
3007 tmp3_3 = _stripPartial;
3008 {
3009 modelica_string _id1 = NULL((void*)0);
3010 modelica_string _id2 = NULL((void*)0);
3011 modelica_metatype _path = NULL((void*)0);
3012 modelica_metatype _env_path = NULL((void*)0);
3013 volatile mmc_switch_type tmp3;
3014 int tmp4;
3015 // _id1 has no default value.
3016 // _id2 has no default value.
3017 // _path has no default value.
3018 // _env_path has no default value.
3019 tmp3 = 0;
3020 for (; tmp3 < 3; tmp3++) {
3021 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3022 case 0: {
3023 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;
3024 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3025 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3026 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;
3027 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
3028 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
3029
3030 _id1 = tmpMeta[1];
3031 _path = tmpMeta[2];
3032 _id2 = tmpMeta[3];
3033 _env_path = tmpMeta[4];
3034 /* Pattern matching succeeded */
3035 /* Check guard condition after assignments */
3036 if (!(stringEqual(_id1, _id2)((((((*(mmc_uint_t*)((void*)((char*)(_id1) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_id2) - 3)))
) >> (3)) - 8)) && !mmc_stringCompare(_id1,_id2
))
)) goto tmp2_end;
3037#line 1022 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3038 /* Tail recursive call */
3039#line 1022 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3040 _inPath = _path;
3041#line 1022 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3042 _inEnvPath = _env_path;
3043#line 1022 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3044 goto _tailrecursive;
3045#line 1022 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3046 /* TODO: Make sure any eventual dead code below is never generated */
3047#line 3047 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3048 goto tmp2_done;
3049 }
3050 case 1: {
3051 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;
3052 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3053 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3054 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
3055 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
3056
3057 _id1 = tmpMeta[1];
3058 _path = tmpMeta[2];
3059 _id2 = tmpMeta[3];
3060 /* Pattern matching succeeded */
3061 /* Check guard condition after assignments */
3062 if (!(stringEqual(_id1, _id2)((((((*(mmc_uint_t*)((void*)((char*)(_id1) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_id2) - 3)))
) >> (3)) - 8)) && !mmc_stringCompare(_id1,_id2
))
)) goto tmp2_end;
3063#line 1027 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3064 tmpMeta[0] = _path;
3065#line 3065 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3066 goto tmp2_done;
3067 }
3068 case 2: {
3069 if (1 != tmp3_3) goto tmp2_end;
3070 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;
3071 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3072
3073 _id1 = tmpMeta[1];
3074 _env_path = tmp3_2;
3075 /* Pattern matching succeeded */
3076 /* Check guard condition after assignments */
3077 if (!(!(stringEqual(_id1, omc_AbsynUtil_pathFirstIdent(threadData, _env_path))((((((*(mmc_uint_t*)((void*)((char*)(_id1) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(omc_AbsynUtil_pathFirstIdent
(threadData, _env_path)) - 3)))) >> (3)) - 8)) &&
!mmc_stringCompare(_id1,omc_AbsynUtil_pathFirstIdent(threadData
, _env_path)))
))) goto tmp2_end;
3078#line 1032 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3079 tmpMeta[0] = _inPath;
3080#line 3080 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3081 goto tmp2_done;
3082 }
3083 }
3084 goto tmp2_end;
3085 tmp2_end: ;
3086 }
3087 goto goto_1;
3088 goto_1:;
3089 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3090 goto tmp2_done;
3091 tmp2_done:;
3092 }
3093 }
3094 _outPath = tmpMeta[0];
3095 _return: OMC_LABEL_UNUSED__attribute__((unused))
3096 return _outPath;
3097}
3098PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_FGraph_pathStripGraphScopePrefix2(threadData_t *threadData, modelica_metatype _inPath, modelica_metatype _inEnvPath, modelica_metatype _stripPartial)
3099{
3100 modelica_integer tmp1;
3101 modelica_metatype _outPath = NULL((void*)0);
3102 tmp1 = mmc_unbox_integer(_stripPartial)(((mmc_sint_t) (_stripPartial)) >> 1);
3103 _outPath = omc_FGraph_pathStripGraphScopePrefix2(threadData, _inPath, _inEnvPath, tmp1);
3104 /* skip box _outPath; Absyn.Path */
3105 return _outPath;
3106}
3107
3108DLLExport
3109modelica_metatype omc_FGraph_pathStripGraphScopePrefix(threadData_t *threadData, modelica_metatype _inPath, modelica_metatype _inEnv, modelica_boolean _stripPartial)
3110{
3111 modelica_metatype _outPath = NULL((void*)0);
3112 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3113 MMC_SO()mmc_check_stackoverflow(threadData);
3114 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3115 // _outPath has no default value.
3116#line 3116 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3117 { /* matchcontinue expression */
3118 {
3119 modelica_metatype _env_path = NULL((void*)0);
3120 modelica_metatype _path1 = NULL((void*)0);
3121 modelica_metatype _path2 = NULL((void*)0);
3122 volatile mmc_switch_type tmp3;
3123 int tmp4;
3124 // _env_path has no default value.
3125 // _path1 has no default value.
3126 // _path2 has no default value.
3127 tmp3 = 0;
3128 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) {
3129 tmp2_top:
3130 threadData->mmc_jumper = &new_mmc_jumper;
3131 for (; tmp3 < 3; tmp3++) {
3132 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3133 case 0: {
3134 modelica_boolean tmp5;
3135 /* Pattern matching succeeded */
3136#line 989 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3137 /* Pattern-matching assignment */
3138#line 989 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3139 tmp5 = omc_Flags_isSet(threadData, _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)));
3140#line 989 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3141 if (0 != tmp5) goto goto_1;
3142#line 3142 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3143#line 990 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3144 tmpMeta[0] = _inPath;
3145#line 3145 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3146 goto tmp2_done;
3147 }
3148 case 1: {
3149 modelica_boolean tmp6;
3150 /* Pattern matching succeeded */
3151#line 994 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3152 /* Pattern-matching assignment */
3153#line 994 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3154 tmpMeta[1] = omc_FGraph_getScopePath(threadData, _inEnv);
3155#line 994 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3156 if (optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) goto goto_1;
3157#line 994 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3158 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
3159#line 994 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3160 _env_path = tmpMeta[2];
3161#line 3161 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3162
3163#line 995 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3164 _path1 = omc_AbsynUtil_makeNotFullyQualified(threadData, _inPath);
3165#line 3165 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3166
3167#line 996 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3168 _env_path = omc_AbsynUtil_makeNotFullyQualified(threadData, _env_path);
3169#line 3169 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3170
3171#line 998 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3172 _path2 = omc_FGraph_pathStripGraphScopePrefix2(threadData, _path1, _env_path, _stripPartial);
3173#line 3173 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3174
3175#line 1000 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3176 /* Pattern-matching assignment */
3177#line 1000 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3178 tmp6 = omc_AbsynUtil_pathEqual(threadData, _path1, _path2);
3179#line 1000 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3180 if (0 != tmp6) goto goto_1;
3181#line 3181 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3182#line 1001 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3183 tmpMeta[0] = _path2;
3184#line 3184 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3185 goto tmp2_done;
3186 }
3187 case 2: {
3188 /* Pattern matching succeeded */
3189#line 1004 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3190 tmpMeta[0] = _inPath;
3191#line 3191 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3192 goto tmp2_done;
3193 }
3194 }
3195 goto tmp2_end;
3196 tmp2_end: ;
3197 }
3198 goto goto_1;
3199 tmp2_done:
3200 (void)tmp3;
3201 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3202 goto tmp2_done2;
3203 goto_1:;
3204 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3205 if (++tmp3 < 3) {
3206 goto tmp2_top;
3207 }
3208 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3209 tmp2_done2:;
3210 }
3211 }
3212 _outPath = tmpMeta[0];
3213 _return: OMC_LABEL_UNUSED__attribute__((unused))
3214 return _outPath;
3215}
3216modelica_metatype boxptr_FGraph_pathStripGraphScopePrefix(threadData_t *threadData, modelica_metatype _inPath, modelica_metatype _inEnv, modelica_metatype _stripPartial)
3217{
3218 modelica_integer tmp1;
3219 modelica_metatype _outPath = NULL((void*)0);
3220 tmp1 = mmc_unbox_integer(_stripPartial)(((mmc_sint_t) (_stripPartial)) >> 1);
3221 _outPath = omc_FGraph_pathStripGraphScopePrefix(threadData, _inPath, _inEnv, tmp1);
3222 /* skip box _outPath; Absyn.Path */
3223 return _outPath;
3224}
3225
3226PROTECTED_FUNCTION_STATIC modelica_metatype omc_FGraph_crefStripGraphScopePrefix2(threadData_t *threadData, modelica_metatype _inCref, modelica_metatype _inEnvPath, modelica_boolean _stripPartial)
3227{
3228 modelica_metatype _outCref = NULL((void*)0);
3229 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
3230 MMC_SO()mmc_check_stackoverflow(threadData);
3231 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3232 // _outCref has no default value.
3233#line 3233 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3234 { /* matchcontinue expression */
3235 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;volatile modelica_boolean tmp3_3;
3236 tmp3_1 = _inCref;
3237 tmp3_2 = _inEnvPath;
3238 tmp3_3 = _stripPartial;
3239 {
3240 modelica_string _id1 = NULL((void*)0);
3241 modelica_string _id2 = NULL((void*)0);
3242 modelica_metatype _cref = NULL((void*)0);
3243 modelica_metatype _env_path = NULL((void*)0);
3244 volatile mmc_switch_type tmp3;
3245 int tmp4;
3246 // _id1 has no default value.
3247 // _id2 has no default value.
3248 // _cref has no default value.
3249 // _env_path has no default value.
3250 tmp3 = 0;
3251 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) {
3252 tmp2_top:
3253 threadData->mmc_jumper = &new_mmc_jumper;
3254 for (; tmp3 < 3; tmp3++) {
3255 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3256 case 0: {
3257 modelica_boolean tmp5;
3258 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;
3259 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
3260 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
3261 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;
3262 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3263 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3264 if (!listEmpty(tmpMeta[4])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[4]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3265 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
3266
3267 _id2 = tmpMeta[1];
3268 _env_path = tmpMeta[2];
3269 _id1 = tmpMeta[3];
3270 _cref = tmpMeta[5];
3271 tmp3 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
3272#line 954 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3273 /* Pattern-matching assignment */
3274#line 954 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3275 tmp5 = (stringEqual(_id1, _id2)((((((*(mmc_uint_t*)((void*)((char*)(_id1) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_id2) - 3)))
) >> (3)) - 8)) && !mmc_stringCompare(_id1,_id2
))
);
3276#line 954 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3277 if (1 != tmp5) goto goto_1;
3278#line 3278 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3279#line 955 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3280 tmpMeta[0] = omc_FGraph_crefStripGraphScopePrefix2(threadData, _cref, _env_path, _stripPartial);
3281#line 3281 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3282 goto tmp2_done;
3283 }
3284 case 1: {
3285 modelica_boolean tmp6;
3286 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,1,1)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((1 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
3287 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
3288 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;
3289 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3290 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3291 if (!listEmpty(tmpMeta[3])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3292 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
3293
3294 _id2 = tmpMeta[1];
3295 _id1 = tmpMeta[2];
3296 _cref = tmpMeta[4];
3297 /* Pattern matching succeeded */
3298#line 961 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3299 /* Pattern-matching assignment */
3300#line 961 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3301 tmp6 = (stringEqual(_id1, _id2)((((((*(mmc_uint_t*)((void*)((char*)(_id1) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_id2) - 3)))
) >> (3)) - 8)) && !mmc_stringCompare(_id1,_id2
))
);
3302#line 961 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3303 if (1 != tmp6) goto goto_1;
3304#line 3304 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3305#line 962 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3306 tmpMeta[0] = _cref;
3307#line 3307 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3308 goto tmp2_done;
3309 }
3310 case 2: {
3311 modelica_boolean tmp7;
3312 if (1 != tmp3_3) goto tmp2_end;
3313 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;
3314 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3315 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3316 if (!listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
3317
3318 _id1 = tmpMeta[1];
3319 _env_path = tmp3_2;
3320 /* Pattern matching succeeded */
3321#line 969 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3322 /* Pattern-matching assignment */
3323#line 969 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3324 tmp7 = (stringEqual(_id1, omc_AbsynUtil_pathFirstIdent(threadData, _env_path))((((((*(mmc_uint_t*)((void*)((char*)(_id1) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(omc_AbsynUtil_pathFirstIdent
(threadData, _env_path)) - 3)))) >> (3)) - 8)) &&
!mmc_stringCompare(_id1,omc_AbsynUtil_pathFirstIdent(threadData
, _env_path)))
);
3325#line 969 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3326 if (0 != tmp7) goto goto_1;
3327#line 3327 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3328#line 970 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3329 tmpMeta[0] = _inCref;
3330#line 3330 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3331 goto tmp2_done;
3332 }
3333 }
3334 goto tmp2_end;
3335 tmp2_end: ;
3336 }
3337 goto goto_1;
3338 tmp2_done:
3339 (void)tmp3;
3340 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3341 goto tmp2_done2;
3342 goto_1:;
3343 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3344 if (++tmp3 < 3) {
3345 goto tmp2_top;
3346 }
3347 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3348 tmp2_done2:;
3349 }
3350 }
3351 _outCref = tmpMeta[0];
3352 _return: OMC_LABEL_UNUSED__attribute__((unused))
3353 return _outCref;
3354}
3355PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_FGraph_crefStripGraphScopePrefix2(threadData_t *threadData, modelica_metatype _inCref, modelica_metatype _inEnvPath, modelica_metatype _stripPartial)
3356{
3357 modelica_integer tmp1;
3358 modelica_metatype _outCref = NULL((void*)0);
3359 tmp1 = mmc_unbox_integer(_stripPartial)(((mmc_sint_t) (_stripPartial)) >> 1);
3360 _outCref = omc_FGraph_crefStripGraphScopePrefix2(threadData, _inCref, _inEnvPath, tmp1);
3361 /* skip box _outCref; Absyn.ComponentRef */
3362 return _outCref;
3363}
3364
3365DLLExport
3366modelica_metatype omc_FGraph_crefStripGraphScopePrefix(threadData_t *threadData, modelica_metatype _inCref, modelica_metatype _inEnv, modelica_boolean _stripPartial)
3367{
3368 modelica_metatype _outCref = NULL((void*)0);
3369 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3370 MMC_SO()mmc_check_stackoverflow(threadData);
3371 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3372 // _outCref has no default value.
3373#line 3373 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3374 { /* matchcontinue expression */
3375 {
3376 modelica_metatype _env_path = NULL((void*)0);
3377 modelica_metatype _cref1 = NULL((void*)0);
3378 modelica_metatype _cref2 = NULL((void*)0);
3379 volatile mmc_switch_type tmp3;
3380 int tmp4;
3381 // _env_path has no default value.
3382 // _cref1 has no default value.
3383 // _cref2 has no default value.
3384 tmp3 = 0;
3385 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) {
3386 tmp2_top:
3387 threadData->mmc_jumper = &new_mmc_jumper;
3388 for (; tmp3 < 3; tmp3++) {
3389 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3390 case 0: {
3391 modelica_boolean tmp5;
3392 /* Pattern matching succeeded */
3393#line 919 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3394 /* Pattern-matching assignment */
3395#line 919 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3396 tmp5 = omc_Flags_isSet(threadData, _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)));
3397#line 919 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3398 if (0 != tmp5) goto goto_1;
3399#line 3399 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3400#line 920 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3401 tmpMeta[0] = _inCref;
3402#line 3402 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3403 goto tmp2_done;
3404 }
3405 case 1: {
3406 modelica_boolean tmp6;
3407 /* Pattern matching succeeded */
3408#line 925 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3409 /* Pattern-matching assignment */
3410#line 925 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3411 tmpMeta[1] = omc_FGraph_getScopePath(threadData, _inEnv);
3412#line 925 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3413 if (optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) goto goto_1;
3414#line 925 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3415 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
3416#line 925 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3417 _env_path = tmpMeta[2];
3418#line 3418 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3419
3420#line 926 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3421 _cref1 = omc_AbsynUtil_unqualifyCref(threadData, _inCref);
3422#line 3422 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3423
3424#line 927 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3425 _env_path = omc_AbsynUtil_makeNotFullyQualified(threadData, _env_path);
3426#line 3426 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3427
3428#line 929 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3429 _cref2 = omc_FGraph_crefStripGraphScopePrefix2(threadData, _cref1, _env_path, _stripPartial);
3430#line 3430 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3431
3432#line 931 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3433 /* Pattern-matching assignment */
3434#line 931 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3435 tmp6 = omc_AbsynUtil_crefEqual(threadData, _cref1, _cref2);
3436#line 931 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3437 if (0 != tmp6) goto goto_1;
3438#line 3438 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3439#line 932 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3440 tmpMeta[0] = _cref2;
3441#line 3441 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3442 goto tmp2_done;
3443 }
3444 case 2: {
3445 /* Pattern matching succeeded */
3446#line 935 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3447 tmpMeta[0] = _inCref;
3448#line 3448 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3449 goto tmp2_done;
3450 }
3451 }
3452 goto tmp2_end;
3453 tmp2_end: ;
3454 }
3455 goto goto_1;
3456 tmp2_done:
3457 (void)tmp3;
3458 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3459 goto tmp2_done2;
3460 goto_1:;
3461 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3462 if (++tmp3 < 3) {
3463 goto tmp2_top;
3464 }
3465 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3466 tmp2_done2:;
3467 }
3468 }
3469 _outCref = tmpMeta[0];
3470 _return: OMC_LABEL_UNUSED__attribute__((unused))
3471 return _outCref;
3472}
3473modelica_metatype boxptr_FGraph_crefStripGraphScopePrefix(threadData_t *threadData, modelica_metatype _inCref, modelica_metatype _inEnv, modelica_metatype _stripPartial)
3474{
3475 modelica_integer tmp1;
3476 modelica_metatype _outCref = NULL((void*)0);
3477 tmp1 = mmc_unbox_integer(_stripPartial)(((mmc_sint_t) (_stripPartial)) >> 1);
3478 _outCref = omc_FGraph_crefStripGraphScopePrefix(threadData, _inCref, _inEnv, tmp1);
3479 /* skip box _outCref; Absyn.ComponentRef */
3480 return _outCref;
3481}
3482
3483DLLExport
3484modelica_boolean omc_FGraph_isTopScope(threadData_t *threadData, modelica_metatype _graph)
3485{
3486 modelica_boolean _isTop;
3487 modelica_boolean tmp1 = 0;
3488 MMC_SO()mmc_check_stackoverflow(threadData);
3489 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3490 // _isTop has no default value.
3491#line 3491 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3492 { /* matchcontinue expression */
3493 {
3494 volatile mmc_switch_type tmp4;
3495 int tmp5;
3496 tmp4 = 0;
3497 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) {
3498 tmp3_top:
3499 threadData->mmc_jumper = &new_mmc_jumper;
3500 for (; tmp4 < 2; tmp4++) {
3501 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3502 case 0: {
3503 modelica_boolean tmp6;
3504 /* Pattern matching succeeded */
3505#line 870 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3506 /* Pattern-matching assignment */
3507#line 870 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3508 tmp6 = omc_FNode_isRefTop(threadData, omc_FGraph_lastScopeRef(threadData, _graph));
3509#line 870 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3510 if (1 != tmp6) goto goto_2;
3511#line 3511 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3512#line 871 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3513 tmp1 = 1;
3514#line 3514 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3515 goto tmp3_done;
3516 }
3517 case 1: {
3518 /* Pattern matching succeeded */
3519#line 874 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3520 tmp1 = 0;
3521#line 3521 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3522 goto tmp3_done;
3523 }
3524 }
3525 goto tmp3_end;
3526 tmp3_end: ;
3527 }
3528 goto goto_2;
3529 tmp3_done:
3530 (void)tmp4;
3531 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3532 goto tmp3_done2;
3533 goto_2:;
3534 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3535 if (++tmp4 < 2) {
3536 goto tmp3_top;
3537 }
3538 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3539 tmp3_done2:;
3540 }
3541 }
3542 _isTop = tmp1;
3543 _return: OMC_LABEL_UNUSED__attribute__((unused))
3544 return _isTop;
3545}
3546modelica_metatype boxptr_FGraph_isTopScope(threadData_t *threadData, modelica_metatype _graph)
3547{
3548 modelica_boolean _isTop;
3549 modelica_metatype out_isTop;
3550 _isTop = omc_FGraph_isTopScope(threadData, _graph);
3551 out_isTop = mmc_mk_icon(_isTop);
3552 return out_isTop;
3553}
3554
3555DLLExport
3556modelica_metatype omc_FGraph_scopeTypeToRestriction(threadData_t *threadData, modelica_metatype _inScopeType)
3557{
3558 modelica_metatype _outRestriction = NULL((void*)0);
3559 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3560 MMC_SO()mmc_check_stackoverflow(threadData);
3561 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3562 // _outRestriction has no default value.
3563#line 3563 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3564 { /* match expression */
3565 modelica_metatype tmp3_1;
3566 tmp3_1 = _inScopeType;
3567 {
3568 int tmp3;
3569 {
3570 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
3571 case 5: {
3572
3573 /* Pattern matching succeeded */
3574#line 856 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3575 tmpMeta[0] = _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3));
3576#line 3576 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3577 goto tmp2_done;
3578 }
3579 case 3: {
3580
3581 /* Pattern matching succeeded */
3582#line 857 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3583 tmpMeta[0] = _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3));
3584#line 3584 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3585 goto tmp2_done;
3586 }
3587 default:
3588 tmp2_default: OMC_LABEL_UNUSED__attribute__((unused)); {
3589
3590 /* Pattern matching succeeded */
3591#line 858 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3592 tmpMeta[0] = _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3));
3593#line 3593 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3594 goto tmp2_done;
3595 }
3596 }
3597 goto tmp2_end;
3598 tmp2_end: ;
3599 }
3600 goto goto_1;
3601 goto_1:;
3602 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3603 goto tmp2_done;
3604 tmp2_done:;
3605 }
3606 }
3607 _outRestriction = tmpMeta[0];
3608 _return: OMC_LABEL_UNUSED__attribute__((unused))
3609 return _outRestriction;
3610}
3611
3612DLLExport
3613modelica_metatype omc_FGraph_restrictionToScopeType(threadData_t *threadData, modelica_metatype _inRestriction)
3614{
3615 modelica_metatype _outType = NULL((void*)0);
3616 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3617 MMC_SO()mmc_check_stackoverflow(threadData);
3618 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3619 // _outType has no default value.
3620#line 3620 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3621 { /* match expression */
3622 modelica_metatype tmp3_1;
3623 tmp3_1 = _inRestriction;
3624 {
3625 volatile mmc_switch_type tmp3;
3626 int tmp4;
3627 tmp3 = 0;
3628 for (; tmp3 < 4; tmp3++) {
3629 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3630 case 0: {
3631 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,9,1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((1 +1) <<
10) + (((9 +3) & 255) << 2)))
== 0) goto tmp2_end;
3632 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3633 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],4,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((0 +1)
<< 10) + (((4 +3) & 255) << 2)))
== 0) goto tmp2_end;
3634 /* Pattern matching succeeded */
3635#line 841 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3636 tmpMeta[0] = _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3));
3637#line 3637 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3638 goto tmp2_done;
3639 }
3640 case 1: {
3641 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,9,1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((1 +1) <<
10) + (((9 +3) & 255) << 2)))
== 0) goto tmp2_end;
3642 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3643 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],5,0)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((0 +1)
<< 10) + (((5 +3) & 255) << 2)))
== 0) goto tmp2_end;
3644 /* Pattern matching succeeded */
3645#line 842 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3646 tmpMeta[0] = _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3));
3647#line 3647 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3648 goto tmp2_done;
3649 }
3650 case 2: {
3651 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,9,1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((1 +1) <<
10) + (((9 +3) & 255) << 2)))
== 0) goto tmp2_end;
3652
3653 /* Pattern matching succeeded */
3654#line 843 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3655 tmpMeta[0] = _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3));
3656#line 3656 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3657 goto tmp2_done;
3658 }
3659 case 3: {
3660
3661 /* Pattern matching succeeded */
3662#line 844 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3663 tmpMeta[0] = _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3));
3664#line 3664 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3665 goto tmp2_done;
3666 }
3667 }
3668 goto tmp2_end;
3669 tmp2_end: ;
3670 }
3671 goto goto_1;
3672 goto_1:;
3673 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3674 goto tmp2_done;
3675 tmp2_done:;
3676 }
3677 }
3678 _outType = tmpMeta[0];
3679 _return: OMC_LABEL_UNUSED__attribute__((unused))
3680 return _outType;
3681}
3682
3683DLLExport
3684modelica_metatype omc_FGraph_setScope(threadData_t *threadData, modelica_metatype _D_24in_graph, modelica_metatype _inScope)
3685{
3686 modelica_metatype _graph = NULL((void*)0);
3687 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3688 MMC_SO()mmc_check_stackoverflow(threadData);
3689 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3690 _graph = _D_24in_graph;
3691#line 3691 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3692 { /* match expression */
3693 modelica_metatype tmp3_1;
3694 tmp3_1 = _graph;
3695 {
3696 volatile mmc_switch_type tmp3;
3697 int tmp4;
3698 tmp3 = 0;
3699 for (; tmp3 < 1; tmp3++) {
3700 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3701 case 0: {
3702 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;
3703
3704 /* Pattern matching succeeded */
3705#line 831 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3706 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(4))((void*)((char*)(mmc_alloc_words(4)) + 3));
3707#line 831 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3708 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_graph)((void*)((char*)(_graph) - 3)), 4*sizeof(modelica_metatype));
3709#line 831 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3710 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[3] = _inScope;
3711#line 831 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3712 _graph = tmpMeta[0];
3713#line 3713 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3714#line 3714 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3715 goto tmp2_done;
3716 }
3717 }
3718 goto tmp2_end;
3719 tmp2_end: ;
3720 }
3721 goto goto_1;
3722 goto_1:;
3723 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3724 goto tmp2_done;
3725 tmp2_done:;
3726 }
3727 }
3728 ;
3729 _return: OMC_LABEL_UNUSED__attribute__((unused))
3730 return _graph;
3731}
3732
3733DLLExport
3734modelica_metatype omc_FGraph_pushScope(threadData_t *threadData, modelica_metatype _D_24in_graph, modelica_metatype _inScope)
3735{
3736 modelica_metatype _graph = NULL((void*)0);
3737 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3738 MMC_SO()mmc_check_stackoverflow(threadData);
3739 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3740 _graph = _D_24in_graph;
3741#line 3741 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3742 { /* match expression */
3743 modelica_metatype tmp3_1;
3744 tmp3_1 = _graph;
3745 {
3746 volatile mmc_switch_type tmp3;
3747 int tmp4;
3748 tmp3 = 0;
3749 for (; tmp3 < 1; tmp3++) {
3750 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3751 case 0: {
3752 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;
3753
3754 /* Pattern matching succeeded */
3755#line 817 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3756 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(4))((void*)((char*)(mmc_alloc_words(4)) + 3));
3757#line 817 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3758 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_graph)((void*)((char*)(_graph) - 3)), 4*sizeof(modelica_metatype));
3759#line 817 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3760 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[3] = listAppend(_inScope, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_graph), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_graph) - 3))) +
(3)))))
));
3761#line 817 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3762 _graph = tmpMeta[0];
3763#line 3763 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3764#line 3764 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3765 goto tmp2_done;
3766 }
3767 }
3768 goto tmp2_end;
3769 tmp2_end: ;
3770 }
3771 goto goto_1;
3772 goto_1:;
3773 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3774 goto tmp2_done;
3775 tmp2_done:;
3776 }
3777 }
3778 ;
3779 _return: OMC_LABEL_UNUSED__attribute__((unused))
3780 return _graph;
3781}
3782
3783DLLExport
3784modelica_metatype omc_FGraph_pushScopeRef(threadData_t *threadData, modelica_metatype _D_24in_graph, modelica_metatype _inRef)
3785{
3786 modelica_metatype _graph = NULL((void*)0);
3787 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
3788 MMC_SO()mmc_check_stackoverflow(threadData);
3789 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3790 _graph = _D_24in_graph;
3791#line 3791 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3792 { /* match expression */
3793 modelica_metatype tmp3_1;
3794 tmp3_1 = _graph;
3795 {
3796 volatile mmc_switch_type tmp3;
3797 int tmp4;
3798 tmp3 = 0;
3799 for (; tmp3 < 1; tmp3++) {
3800 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3801 case 0: {
3802 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;
3803
3804 /* Pattern matching succeeded */
3805#line 803 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3806 tmpMeta[1] = mmc_mk_cons(_inRef, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_graph), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_graph) - 3))) +
(3)))))
));
3807#line 803 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3808 tmpMeta[0] = MMC_TAGPTR(mmc_alloc_words(4))((void*)((char*)(mmc_alloc_words(4)) + 3));
3809#line 803 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3810 memcpy(MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)), MMC_UNTAGPTR(_graph)((void*)((char*)(_graph) - 3)), 4*sizeof(modelica_metatype));
3811#line 803 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3812 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[0])((void*)((char*)(tmpMeta[0]) - 3)))[3] = tmpMeta[1];
3813#line 803 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3814 _graph = tmpMeta[0];
3815#line 3815 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3816#line 3816 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3817 goto tmp2_done;
3818 }
3819 }
3820 goto tmp2_end;
3821 tmp2_end: ;
3822 }
3823 goto goto_1;
3824 goto_1:;
3825 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3826 goto tmp2_done;
3827 tmp2_done:;
3828 }
3829 }
3830 ;
3831 _return: OMC_LABEL_UNUSED__attribute__((unused))
3832 return _graph;
3833}
3834
3835DLLExport
3836modelica_metatype omc_FGraph_getGraphNameNoImplicitScopes(threadData_t *threadData, modelica_metatype _inGraph)
3837{
3838 modelica_metatype _outPath = NULL((void*)0);
3839 modelica_metatype _p = NULL((void*)0);
3840 modelica_metatype _s = NULL((void*)0);
3841 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
3842 MMC_SO()mmc_check_stackoverflow(threadData);
3843 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3844 // _outPath has no default value.
3845 // _p has no default value.
3846 // _s has no default value.
3847#line 790 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3848 /* Pattern-matching assignment */
3849#line 790 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3850 tmpMeta[0] = listReverse(omc_FGraph_currentScope(threadData, _inGraph));
3851#line 790 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3852 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);};
3853#line 790 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3854 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3855#line 790 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3856 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
3857#line 790 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3858 _s = tmpMeta[2];
3859#line 3859 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3860
3861#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3862 {
3863#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3864 modelica_metatype _D_24tmpVar3;
3865#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3866 modelica_metatype* tmp1;
3867#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3868 modelica_string _D_24tmpVar2;
3869#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3870 int tmp2;
3871#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3872 modelica_metatype _str_loopVar = 0;
3873#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3874 modelica_metatype _str;
3875#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3876 {
3877#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3878 modelica_metatype _D_24tmpVar1;
3879#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3880 modelica_metatype* tmp3;
3881#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3882 modelica_string _D_24tmpVar0;
3883#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3884 int tmp4;
3885#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3886 modelica_metatype _n_loopVar = 0;
3887#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3888 modelica_metatype _n;
3889#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3890 _n_loopVar = _s;
3891#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3892 tmpMeta[3] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3893#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3894 _D_24tmpVar1 = tmpMeta[3]; /* defaultValue */
3895#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3896 tmp3 = &_D_24tmpVar1;
3897#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3898 while(1) {
3899#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3900 tmp4 = 1;
3901#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3902 if (!listEmpty(_n_loopVar)((*(mmc_uint_t*)((void*)((char*)(_n_loopVar) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) {
3903#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3904 _n = MMC_CAR(_n_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_n_loopVar) - 3
))) + (1)))))
;
3905#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3906 _n_loopVar = MMC_CDR(_n_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_n_loopVar) - 3
))) + (2)))))
;
3907#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3908 tmp4--;
3909#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3910 }
3911#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3912 if (tmp4 == 0) {
3913#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3914 _D_24tmpVar0 = omc_FNode_refName(threadData, _n);
3915#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3916 *tmp3 = mmc_mk_cons(_D_24tmpVar0,0);
3917#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3918 tmp3 = &MMC_CDR(*tmp3)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp3) - 3))) +
(2)))))
;
3919#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3920 } else if (tmp4 == 1) {
3921#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3922 break;
3923#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3924 } else {
3925#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3926 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3927#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3928 }
3929#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3930 }
3931#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3932 *tmp3 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
3933#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3934 tmpMeta[2] = _D_24tmpVar1;
3935#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3936 }
3937#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3938 _str_loopVar = tmpMeta[2];
3939#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3940 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
3941#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3942 _D_24tmpVar3 = tmpMeta[1]; /* defaultValue */
3943#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3944 tmp1 = &_D_24tmpVar3;
3945#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3946 while(1) {
3947#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3948 tmp2 = 1;
3949#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3950 while (!listEmpty(_str_loopVar)((*(mmc_uint_t*)((void*)((char*)(_str_loopVar) - 3))) == (((0
) << 10) + (((0) & 255) << 2)))
) {
3951#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3952 _str = MMC_CAR(_str_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_str_loopVar) -
3))) + (1)))))
;
3953#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3954 _str_loopVar = MMC_CDR(_str_loopVar)(*(void**)(((void*)((void**)(((void*)((char*)(_str_loopVar) -
3))) + (2)))))
;
3955#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3956 if ((stringGet(_str, ((modelica_integer) 1))nobox_stringGet(threadData,_str,((modelica_integer) 1)) != ((modelica_integer) 36))) {
3957#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3958 tmp2--;
3959#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3960 break;
3961#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3962 }
3963#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3964 }
3965#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3966 if (tmp2 == 0) {
3967#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3968 _D_24tmpVar2 = _str;
3969#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3970 *tmp1 = mmc_mk_cons(_D_24tmpVar2,0);
3971#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3972 tmp1 = &MMC_CDR(*tmp1)(*(void**)(((void*)((void**)(((void*)((char*)(*tmp1) - 3))) +
(2)))))
;
3973#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3974 } else if (tmp2 == 1) {
3975#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3976 break;
3977#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3978 } else {
3979#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3980 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3981#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3982 }
3983#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3984 }
3985#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3986 *tmp1 = mmc_mk_nil()((void*)((char*)(&(mmc_nil).header) + 3));
3987#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3988 tmpMeta[0] = _D_24tmpVar3;
3989#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3990 }
3991#line 791 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
3992 _outPath = omc_AbsynUtil_stringListPath(threadData, tmpMeta[0]);
3993#line 3993 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
3994 _return: OMC_LABEL_UNUSED__attribute__((unused))
3995 return _outPath;
3996}
3997
3998DLLExport
3999modelica_metatype omc_FGraph_getGraphName(threadData_t *threadData, modelica_metatype _inGraph)
4000{
4001 modelica_metatype _outPath = NULL((void*)0);
4002 modelica_metatype _p = NULL((void*)0);
4003 modelica_metatype _s = NULL((void*)0);
4004 modelica_metatype _r = NULL((void*)0);
4005 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4006 MMC_SO()mmc_check_stackoverflow(threadData);
4007 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4008 // _outPath has no default value.
4009 // _p has no default value.
4010 // _s has no default value.
4011 // _r has no default value.
4012#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4013 /* Pattern-matching assignment */
4014#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4015 tmpMeta[0] = omc_FGraph_currentScope(threadData, _inGraph);
4016#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4017 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);};
4018#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4019 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4020#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4021 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4022#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4023 _r = tmpMeta[1];
4024#line 774 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4025 _s = tmpMeta[2];
4026#line 4026 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4027
4028#line 775 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4029 _p = omc_AbsynUtil_makeIdentPathFromString(threadData, omc_FNode_refName(threadData, _r));
4030#line 4030 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4031
4032#line 776 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4033 {
4034#line 776 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4035 modelica_metatype _r;
4036#line 776 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4037 for (tmpMeta[0] = _s; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
4038#line 776 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4039 {
4040#line 776 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4041 _r = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4042#line 777 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4043 tmpMeta[1] = mmc_mk_box3(3, &Absyn_Path_QUALIFIED__desc, omc_FNode_refName(threadData, _r), _p);
4044#line 777 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4045 _p = tmpMeta[1];
4046#line 4046 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4047 }
4048 }
4049
4050#line 779 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4051 /* Pattern-matching assignment */
4052#line 779 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4053 tmpMeta[0] = _p;
4054#line 779 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4055 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4056#line 779 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4057 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
4058#line 779 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4059 _outPath = tmpMeta[1];
4060#line 4060 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4061 _return: OMC_LABEL_UNUSED__attribute__((unused))
4062 return _outPath;
4063}
4064
4065DLLExport
4066modelica_string omc_FGraph_getGraphNameStr(threadData_t *threadData, modelica_metatype _inGraph)
4067{
4068 modelica_string _outString = NULL((void*)0);
4069 modelica_string tmp1 = 0;
4070 MMC_SO()mmc_check_stackoverflow(threadData);
4071 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4072 // _outString has no default value.
4073#line 4073 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4074 { /* matchcontinue expression */
4075 {
4076 volatile mmc_switch_type tmp4;
4077 int tmp5;
4078 tmp4 = 0;
4079 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) {
4080 tmp3_top:
4081 threadData->mmc_jumper = &new_mmc_jumper;
4082 for (; tmp4 < 2; tmp4++) {
4083 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4084 case 0: {
4085 /* Pattern matching succeeded */
4086#line 759 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4087 tmp1 = omc_AbsynUtil_pathString(threadData, omc_FGraph_getGraphName(threadData, _inGraph), _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)), 1, 0);
4088#line 4088 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4089 goto tmp3_done;
4090 }
4091 case 1: {
4092 /* Pattern matching succeeded */
4093#line 761 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4094 tmp1 = _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3));
4095#line 4095 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4096 goto tmp3_done;
4097 }
4098 }
4099 goto tmp3_end;
4100 tmp3_end: ;
4101 }
4102 goto goto_2;
4103 tmp3_done:
4104 (void)tmp4;
4105 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4106 goto tmp3_done2;
4107 goto_2:;
4108 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4109 if (++tmp4 < 2) {
4110 goto tmp3_top;
4111 }
4112 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4113 tmp3_done2:;
4114 }
4115 }
4116 _outString = tmp1;
4117 _return: OMC_LABEL_UNUSED__attribute__((unused))
4118 return _outString;
4119}
4120
4121DLLExport
4122modelica_metatype omc_FGraph_getScopePath(threadData_t *threadData, modelica_metatype _inGraph)
4123{
4124 modelica_metatype _outPath = NULL((void*)0);
4125 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
4126 MMC_SO()mmc_check_stackoverflow(threadData);
4127 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4128 // _outPath has no default value.
4129#line 4129 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4130 { /* matchcontinue expression */
4131 {
4132 modelica_metatype _p = NULL((void*)0);
4133 modelica_metatype _r = NULL((void*)0);
4134 volatile mmc_switch_type tmp3;
4135 int tmp4;
4136 // _p has no default value.
4137 // _r has no default value.
4138 tmp3 = 0;
4139 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) {
4140 tmp2_top:
4141 threadData->mmc_jumper = &new_mmc_jumper;
4142 for (; tmp3 < 2; tmp3++) {
4143 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4144 case 0: {
4145 modelica_boolean tmp5;
4146 /* Pattern matching succeeded */
4147#line 738 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4148 /* Pattern-matching assignment */
4149#line 738 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4150 tmpMeta[1] = omc_FGraph_currentScope(threadData, _inGraph);
4151#line 738 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4152 if (listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_1;
4153#line 738 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4154 tmpMeta[2] = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
4155#line 738 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4156 tmpMeta[3] = MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
4157#line 738 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4158 if (!listEmpty(tmpMeta[3])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[3]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_1;
4159#line 738 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4160 _r = tmpMeta[2];
4161#line 4161 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4162
4163#line 739 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4164 /* Pattern-matching assignment */
4165#line 739 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4166 tmp5 = omc_FNode_isRefTop(threadData, _r);
4167#line 739 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4168 if (1 != tmp5) goto goto_1;
4169#line 4169 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4170#line 740 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4171 tmpMeta[0] = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
4172#line 4172 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4173 goto tmp2_done;
4174 }
4175 case 1: {
4176 /* Pattern matching succeeded */
4177#line 745 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4178 _p = omc_FGraph_getGraphName(threadData, _inGraph);
4179#line 4179 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4180#line 746 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4181 tmpMeta[0] = mmc_mk_some(_p);
4182#line 4182 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4183 goto tmp2_done;
4184 }
4185 }
4186 goto tmp2_end;
4187 tmp2_end: ;
4188 }
4189 goto goto_1;
4190 tmp2_done:
4191 (void)tmp3;
4192 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4193 goto tmp2_done2;
4194 goto_1:;
4195 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4196 if (++tmp3 < 2) {
4197 goto tmp2_top;
4198 }
4199 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4200 tmp2_done2:;
4201 }
4202 }
4203 _outPath = tmpMeta[0];
4204 _return: OMC_LABEL_UNUSED__attribute__((unused))
4205 return _outPath;
4206}
4207
4208DLLExport
4209modelica_boolean omc_FGraph_inForOrParforIterLoopScope(threadData_t *threadData, modelica_metatype _inGraph)
4210{
4211 modelica_boolean _res;
4212 modelica_boolean tmp1 = 0;
4213 MMC_SO()mmc_check_stackoverflow(threadData);
4214 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4215 // _res has no default value.
4216#line 4216 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4217 { /* matchcontinue expression */
4218 {
4219 modelica_string _name = NULL((void*)0);
4220 volatile mmc_switch_type tmp4;
4221 int tmp5;
4222 // _name has no default value.
4223 tmp4 = 0;
4224 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) {
4225 tmp3_top:
4226 threadData->mmc_jumper = &new_mmc_jumper;
4227 for (; tmp4 < 2; tmp4++) {
4228 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4229 case 0: {
4230 modelica_boolean tmp6;
4231 /* Pattern matching succeeded */
4232#line 718 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4233 _name = omc_FNode_refName(threadData, listHead(omc_FGraph_currentScope(threadData, _inGraph))boxptr_listHead(threadData,omc_FGraph_currentScope(threadData
, _inGraph))
);
4234#line 4234 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4235
4236#line 719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4237 /* Pattern-matching assignment */
4238#line 719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4239 tmp6 = ((stringEqual(_name, _OMC_LIT38)((((((*(mmc_uint_t*)((void*)((char*)(_name) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(((void*)((char
*)(&(_OMC_LIT_STRUCT38).header) + 3))) - 3)))) >> (
3)) - 8)) && !mmc_stringCompare(_name,((void*)((char*
)(&(_OMC_LIT_STRUCT38).header) + 3))))
) || (stringEqual(_name, _OMC_LIT39)((((((*(mmc_uint_t*)((void*)((char*)(_name) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(((void*)((char
*)(&(_OMC_LIT_STRUCT39).header) + 3))) - 3)))) >> (
3)) - 8)) && !mmc_stringCompare(_name,((void*)((char*
)(&(_OMC_LIT_STRUCT39).header) + 3))))
));
4240#line 719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4241 if (1 != tmp6) goto goto_2;
4242#line 4242 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4243#line 720 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4244 tmp1 = 1;
4245#line 4245 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4246 goto tmp3_done;
4247 }
4248 case 1: {
4249 /* Pattern matching succeeded */
4250#line 722 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4251 tmp1 = 0;
4252#line 4252 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4253 goto tmp3_done;
4254 }
4255 }
4256 goto tmp3_end;
4257 tmp3_end: ;
4258 }
4259 goto goto_2;
4260 tmp3_done:
4261 (void)tmp4;
4262 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4263 goto tmp3_done2;
4264 goto_2:;
4265 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4266 if (++tmp4 < 2) {
4267 goto tmp3_top;
4268 }
4269 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4270 tmp3_done2:;
4271 }
4272 }
4273 _res = tmp1;
4274 _return: OMC_LABEL_UNUSED__attribute__((unused))
4275 return _res;
4276}
4277modelica_metatype boxptr_FGraph_inForOrParforIterLoopScope(threadData_t *threadData, modelica_metatype _inGraph)
4278{
4279 modelica_boolean _res;
4280 modelica_metatype out_res;
4281 _res = omc_FGraph_inForOrParforIterLoopScope(threadData, _inGraph);
4282 out_res = mmc_mk_icon(_res);
4283 return out_res;
4284}
4285
4286DLLExport
4287modelica_boolean omc_FGraph_inForLoopScope(threadData_t *threadData, modelica_metatype _inGraph)
4288{
4289 modelica_boolean _res;
4290 modelica_boolean tmp1 = 0;
4291 MMC_SO()mmc_check_stackoverflow(threadData);
4292 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4293 // _res has no default value.
4294#line 4294 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4295 { /* matchcontinue expression */
4296 {
4297 modelica_string _name = NULL((void*)0);
4298 volatile mmc_switch_type tmp4;
4299 int tmp5;
4300 // _name has no default value.
4301 tmp4 = 0;
4302 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) {
4303 tmp3_top:
4304 threadData->mmc_jumper = &new_mmc_jumper;
4305 for (; tmp4 < 2; tmp4++) {
4306 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4307 case 0: {
4308 modelica_boolean tmp6;
4309 /* Pattern matching succeeded */
4310#line 700 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4311 _name = omc_FNode_refName(threadData, listHead(omc_FGraph_currentScope(threadData, _inGraph))boxptr_listHead(threadData,omc_FGraph_currentScope(threadData
, _inGraph))
);
4312#line 4312 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4313
4314#line 701 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4315 /* Pattern-matching assignment */
4316#line 701 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4317 tmp6 = (stringEqual(_name, _OMC_LIT40)((((((*(mmc_uint_t*)((void*)((char*)(_name) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(((void*)((char
*)(&(_OMC_LIT_STRUCT40).header) + 3))) - 3)))) >> (
3)) - 8)) && !mmc_stringCompare(_name,((void*)((char*
)(&(_OMC_LIT_STRUCT40).header) + 3))))
);
4318#line 701 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4319 if (1 != tmp6) goto goto_2;
4320#line 4320 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4321#line 702 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4322 tmp1 = 1;
4323#line 4323 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4324 goto tmp3_done;
4325 }
4326 case 1: {
4327 /* Pattern matching succeeded */
4328#line 704 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4329 tmp1 = 0;
4330#line 4330 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4331 goto tmp3_done;
4332 }
4333 }
4334 goto tmp3_end;
4335 tmp3_end: ;
4336 }
4337 goto goto_2;
4338 tmp3_done:
4339 (void)tmp4;
4340 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4341 goto tmp3_done2;
4342 goto_2:;
4343 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4344 if (++tmp4 < 2) {
4345 goto tmp3_top;
4346 }
4347 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4348 tmp3_done2:;
4349 }
4350 }
4351 _res = tmp1;
4352 _return: OMC_LABEL_UNUSED__attribute__((unused))
4353 return _res;
4354}
4355modelica_metatype boxptr_FGraph_inForLoopScope(threadData_t *threadData, modelica_metatype _inGraph)
4356{
4357 modelica_boolean _res;
4358 modelica_metatype out_res;
4359 _res = omc_FGraph_inForLoopScope(threadData, _inGraph);
4360 out_res = mmc_mk_icon(_res);
4361 return out_res;
4362}
4363
4364DLLExport
4365modelica_metatype omc_FGraph_openScope(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _encapsulatedPrefix, modelica_string _inName, modelica_metatype _inScopeType)
4366{
4367 modelica_metatype _outGraph = NULL((void*)0);
4368 modelica_metatype _p = NULL((void*)0);
4369 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
4370 MMC_SO()mmc_check_stackoverflow(threadData);
4371 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4372 // _outGraph has no default value.
4373 // _p has no default value.
4374#line 642 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4375 _p = omc_FGraph_lastScopeRef(threadData, _inGraph);
4376#line 4376 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4377
4378#line 4378 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4379 { /* matchcontinue expression */
4380 volatile modelica_metatype tmp3_1;volatile modelica_string tmp3_2;
4381 tmp3_1 = _inGraph;
4382 tmp3_2 = _inName;
4383 {
4384 modelica_metatype _g = NULL((void*)0);
4385 modelica_string _n = NULL((void*)0);
4386 modelica_metatype _no = NULL((void*)0);
4387 modelica_metatype _r = NULL((void*)0);
4388 volatile mmc_switch_type tmp3;
4389 int tmp4;
4390 // _g has no default value.
4391 // _n has no default value.
4392 // _no has no default value.
4393 // _r has no default value.
4394 tmp3 = 0;
4395 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) {
4396 tmp2_top:
4397 threadData->mmc_jumper = &new_mmc_jumper;
4398 for (; tmp3 < 4; tmp3++) {
4399 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4400 case 0: {
4401
4402 _g = tmp3_1;
4403 _n = tmp3_2;
4404 /* Pattern matching succeeded */
4405#line 654 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4406 _r = omc_FNode_child(threadData, _p, _n);
4407#line 4407 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4408
4409#line 655 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4410 /* Pattern-matching assignment */
4411#line 655 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4412 tmpMeta[1] = omc_FNode_refData(threadData, _r);
4413#line 655 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4414 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((5 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto goto_1;
4415#line 655 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4416 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
4417#line 655 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4418 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],7,1)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((1 +1)
<< 10) + (((7 +3) & 255) << 2)))
== 0) goto goto_1;
4419#line 655 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4420
4421#line 4421 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4422
4423#line 656 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4424 omc_FNode_addChildRef(threadData, _p, _n, _r, 0);
4425#line 4425 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4426#line 657 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4427 tmpMeta[0] = omc_FGraph_pushScopeRef(threadData, _g, _r);
4428#line 4428 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4429 goto tmp2_done;
4430 }
4431 case 1: {
4432
4433 _g = tmp3_1;
4434 _n = tmp3_2;
4435 /* Pattern matching succeeded */
4436#line 664 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4437 _r = omc_FNode_child(threadData, _p, _n);
4438#line 4438 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4439
4440#line 665 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4441 _r = omc_FNode_copyRefNoUpdate(threadData, _r);
4442#line 4442 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4443#line 667 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4444 tmpMeta[0] = omc_FGraph_pushScopeRef(threadData, _g, _r);
4445#line 4445 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4446 goto tmp2_done;
4447 }
4448 case 2: {
4449
4450 _g = tmp3_1;
4451 _n = tmp3_2;
4452 /* Pattern matching succeeded */
4453#line 674 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4454 tmpMeta[1] = mmc_mk_cons(_p, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
4455#line 674 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4456 tmpMeta[2] = mmc_mk_box2(24, &FCore_Data_ND__desc, _inScopeType);
4457#line 674 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4458 _g = omc_FGraph_node(threadData, _g, _n, tmpMeta[1], tmpMeta[2] ,&_no);
4459#line 4459 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4460
4461#line 675 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4462 _r = omc_FNode_toRef(threadData, _no);
4463#line 4463 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4464#line 677 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4465 tmpMeta[0] = omc_FGraph_pushScopeRef(threadData, _g, _r);
4466#line 4466 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4467 goto tmp2_done;
4468 }
4469 case 3: {
4470
4471 /* Pattern matching succeeded */
4472#line 683 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4473 tmpMeta[1] = stringAppend(_OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)),omc_FGraph_getGraphNameStr(threadData, _inGraph));
4474#line 683 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4475 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)));
4476#line 683 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4477 tmpMeta[3] = stringAppend(tmpMeta[2],_inName);
4478#line 683 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4479 tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
4480#line 683 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4481 omc_Error_addCompilerError(threadData, tmpMeta[4]);
4482#line 4482 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4483#line 684 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4484 goto goto_1;
4485#line 4485 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4486 goto tmp2_done;
4487 }
4488 }
4489 goto tmp2_end;
4490 tmp2_end: ;
4491 }
4492 goto goto_1;
4493 tmp2_done:
4494 (void)tmp3;
4495 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4496 goto tmp2_done2;
4497 goto_1:;
4498 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4499 if (++tmp3 < 4) {
4500 goto tmp2_top;
4501 }
4502 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4503 tmp2_done2:;
4504 }
4505 }
4506 _outGraph = tmpMeta[0];
4507 _return: OMC_LABEL_UNUSED__attribute__((unused))
4508 return _outGraph;
4509}
4510
4511DLLExport
4512modelica_metatype omc_FGraph_openNewScope(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _encapsulatedPrefix, modelica_metatype _inName, modelica_metatype _inScopeType)
4513{
4514 modelica_metatype _outGraph = NULL((void*)0);
4515 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
4516 MMC_SO()mmc_check_stackoverflow(threadData);
4517 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4518 // _outGraph has no default value.
4519#line 4519 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4520 { /* matchcontinue expression */
4521 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
4522 tmp3_1 = _inGraph;
4523 tmp3_2 = _inName;
4524 {
4525 modelica_metatype _g = NULL((void*)0);
4526 modelica_string _n = NULL((void*)0);
4527 modelica_metatype _no = NULL((void*)0);
4528 modelica_metatype _r = NULL((void*)0);
4529 modelica_metatype _p = NULL((void*)0);
4530 volatile mmc_switch_type tmp3;
4531 int tmp4;
4532 // _g has no default value.
4533 // _n has no default value.
4534 // _no has no default value.
4535 // _r has no default value.
4536 // _p has no default value.
4537 tmp3 = 0;
4538 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) {
4539 tmp2_top:
4540 threadData->mmc_jumper = &new_mmc_jumper;
4541 for (; tmp3 < 2; tmp3++) {
4542 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4543 case 0: {
4544 if (optionNone(tmp3_2)(0==((((((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3
)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)(tmp3_2
) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
4545 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(1)))))
;
4546
4547 _n = tmpMeta[1];
4548 _g = tmp3_1;
4549 /* Pattern matching succeeded */
4550#line 615 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4551 _p = omc_FGraph_lastScopeRef(threadData, _g);
4552#line 4552 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4553
4554#line 616 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4555 tmpMeta[1] = mmc_mk_cons(_p, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
4556#line 616 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4557 tmpMeta[2] = mmc_mk_box2(24, &FCore_Data_ND__desc, _inScopeType);
4558#line 616 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4559 _g = omc_FGraph_node(threadData, _g, _n, tmpMeta[1], tmpMeta[2] ,&_no);
4560#line 4560 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4561
4562#line 617 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4563 _r = omc_FNode_toRef(threadData, _no);
4564#line 4564 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4565#line 619 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4566 tmpMeta[0] = omc_FGraph_pushScopeRef(threadData, _g, _r);
4567#line 4567 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4568 goto tmp2_done;
4569 }
4570 case 1: {
4571
4572 /* Pattern matching succeeded */
4573#line 625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4574 tmpMeta[1] = stringAppend(_OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)),omc_FGraph_getGraphNameStr(threadData, _inGraph));
4575#line 625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4576 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)));
4577#line 625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4578 tmpMeta[3] = stringAppend(tmpMeta[2],omc_Util_stringOption(threadData, _inName));
4579#line 625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4580 tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
4581#line 625 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4582 omc_Error_addCompilerError(threadData, tmpMeta[4]);
4583#line 4583 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4584#line 626 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4585 goto goto_1;
4586#line 4586 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4587 goto tmp2_done;
4588 }
4589 }
4590 goto tmp2_end;
4591 tmp2_end: ;
4592 }
4593 goto goto_1;
4594 tmp2_done:
4595 (void)tmp3;
4596 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4597 goto tmp2_done2;
4598 goto_1:;
4599 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4600 if (++tmp3 < 2) {
4601 goto tmp2_top;
4602 }
4603 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4604 tmp2_done2:;
4605 }
4606 }
4607 _outGraph = tmpMeta[0];
4608 _return: OMC_LABEL_UNUSED__attribute__((unused))
4609 return _outGraph;
4610}
4611
4612DLLExport
4613modelica_string omc_FGraph_printGraphPathStr(threadData_t *threadData, modelica_metatype _inGraph)
4614{
4615 modelica_string _outString = NULL((void*)0);
4616 modelica_string tmp1 = 0;
4617 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
4618 MMC_SO()mmc_check_stackoverflow(threadData);
4619 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4620 // _outString has no default value.
4621#line 4621 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4622 { /* matchcontinue expression */
4623 volatile modelica_metatype tmp4_1;
4624 tmp4_1 = _inGraph;
4625 {
4626 modelica_metatype _s = NULL((void*)0);
4627 volatile mmc_switch_type tmp4;
4628 int tmp5;
4629 // _s has no default value.
4630 tmp4 = 0;
4631 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) {
4632 tmp3_top:
4633 threadData->mmc_jumper = &new_mmc_jumper;
4634 for (; tmp4 < 2; tmp4++) {
4635 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4636 case 0: {
4637 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
4638 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
4639 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4640 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4641 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4642 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4643 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
4644 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
4645 _s = tmpMeta[0];
4646 /* Pattern matching succeeded */
4647#line 587 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4648 /* Pattern-matching assignment */
4649#line 587 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4650 tmpMeta[0] = listReverse(_s);
4651#line 587 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4652 if (listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto goto_2;
4653#line 587 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4654 tmpMeta[1] = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
4655#line 587 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4656 tmpMeta[2] = MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4657#line 587 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4658 _s = tmpMeta[2];
4659#line 4659 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4660#line 588 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4661 tmp1 = stringDelimitList(omc_List_map(threadData, _s, boxvar_FNode_refName((void*)((char*)(&(boxvar_lit_FNode_refName).header) + 3)
)
), _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)));
4662#line 4662 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4663 goto tmp3_done;
4664 }
4665 case 1: {
4666
4667 /* Pattern matching succeeded */
4668#line 592 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4669 tmp1 = _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3));
4670#line 4670 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4671 goto tmp3_done;
4672 }
4673 }
4674 goto tmp3_end;
4675 tmp3_end: ;
4676 }
4677 goto goto_2;
4678 tmp3_done:
4679 (void)tmp4;
4680 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4681 goto tmp3_done2;
4682 goto_2:;
4683 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4684 if (++tmp4 < 2) {
4685 goto tmp3_top;
4686 }
4687 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4688 tmp3_done2:;
4689 }
4690 }
4691 _outString = tmp1;
4692 _return: OMC_LABEL_UNUSED__attribute__((unused))
4693 return _outString;
4694}
4695
4696DLLExport
4697modelica_metatype omc_FGraph_addForIterator(threadData_t *threadData, modelica_metatype _inGraph, modelica_string _name, modelica_metatype _ty, modelica_metatype _binding, modelica_metatype _variability, modelica_metatype _constOfForIteratorRange)
4698{
4699 modelica_metatype _outGraph = NULL((void*)0);
4700 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4701 MMC_SO()mmc_check_stackoverflow(threadData);
4702 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4703 // _outGraph has no default value.
4704#line 4704 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4705 { /* match expression */
4706 modelica_metatype tmp3_1;
4707 tmp3_1 = _inGraph;
4708 {
4709 modelica_metatype _g = NULL((void*)0);
4710 modelica_metatype _r = NULL((void*)0);
4711 modelica_metatype _c = NULL((void*)0);
4712 modelica_metatype _v = NULL((void*)0);
4713 volatile mmc_switch_type tmp3;
4714 int tmp4;
4715 // _g has no default value.
4716 // _r has no default value.
4717 // _c has no default value.
4718 // _v has no default value.
4719 tmp3 = 0;
4720 for (; tmp3 < 1; tmp3++) {
4721 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4722 case 0: {
4723
4724 _g = tmp3_1;
4725 /* Pattern matching succeeded */
4726#line 552 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4727 tmpMeta[1] = mmc_mk_box9(6, &SCode_Element_COMPONENT__desc, _name, _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)), _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)), _OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)), _OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3)), _OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)), mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3)), _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
4728#line 552 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4729 _c = tmpMeta[1];
4730#line 4730 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4731
4732#line 558 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4733 tmpMeta[1] = mmc_mk_box7(3, &DAE_Attributes_ATTR__desc, _OMC_LIT59((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3)), _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)), _variability, _OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3)), _OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)), _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)));
4734#line 558 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4735 tmpMeta[2] = mmc_mk_box7(3, &DAE_Var_TYPES__VAR__desc, _name, tmpMeta[1], _ty, _binding, mmc_mk_boolean(0)((0) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), _constOfForIteratorRange);
4736#line 558 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4737 _v = tmpMeta[2];
4738#line 4738 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4739
4740#line 565 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4741 _r = omc_FGraph_lastScopeRef(threadData, _g);
4742#line 4742 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4743
4744#line 566 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4745 _g = omc_FGraphBuildEnv_mkCompNode(threadData, _c, _r, _OMC_LIT60((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3)), _g);
4746#line 4746 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4747#line 568 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4748 tmpMeta[0] = omc_FGraph_updateVarAndMod(threadData, _g, _v, _OMC_LIT61((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3)), _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3)), omc_FGraph_empty(threadData));
4749#line 4749 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4750 goto tmp2_done;
4751 }
4752 }
4753 goto tmp2_end;
4754 tmp2_end: ;
4755 }
4756 goto goto_1;
4757 goto_1:;
4758 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4759 goto tmp2_done;
4760 tmp2_done:;
4761 }
4762 }
4763 _outGraph = tmpMeta[0];
4764 _return: OMC_LABEL_UNUSED__attribute__((unused))
4765 return _outGraph;
4766}
4767
4768DLLExport
4769modelica_metatype omc_FGraph_updateClassElement(threadData_t *threadData, modelica_metatype _inRef, modelica_metatype _inElement, modelica_metatype _inPrefix, modelica_metatype _inMod, modelica_metatype _instStatus, modelica_metatype _inTargetGraph)
4770{
4771 modelica_metatype _outRef = NULL((void*)0);
4772 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
4773 MMC_SO()mmc_check_stackoverflow(threadData);
4774 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4775 // _outRef has no default value.
4776#line 4776 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4777 { /* match expression */
4778 modelica_metatype tmp3_1;modelica_metatype tmp3_2;
4779 tmp3_1 = _inRef;
4780 tmp3_2 = _inElement;
4781 {
4782 modelica_metatype _r = NULL((void*)0);
4783 modelica_string _n = NULL((void*)0);
4784 modelica_integer _id;
4785 modelica_metatype _p = NULL((void*)0);
4786 modelica_metatype _c = NULL((void*)0);
4787 modelica_metatype _e = NULL((void*)0);
4788 modelica_metatype _k = NULL((void*)0);
4789 volatile mmc_switch_type tmp3;
4790 int tmp4;
4791 // _r has no default value.
4792 // _n has no default value.
4793 // _id has no default value.
4794 // _p has no default value.
4795 // _c has no default value.
4796 // _e has no default value.
4797 // _k has no default value.
4798 tmp3 = 0;
4799 for (; tmp3 < 1; tmp3++) {
4800 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4801 case 0: {
4802 modelica_integer tmp5;
4803 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
4804 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
4805
4806 _e = tmp3_2;
4807 _n = tmpMeta[1];
4808 _r = tmp3_1;
4809 /* Pattern matching succeeded */
4810#line 525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4811 /* Pattern-matching assignment */
4812#line 525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4813 tmpMeta[1] = omc_FNode_fromRef(threadData, _r);
4814#line 525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4815 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
4816#line 525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4817 tmp5 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
4818#line 525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4819 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
4820#line 525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4821 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
4822#line 525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4823 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
4824#line 525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4825 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[5],3,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[5]) - 3)))==(((5 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto goto_1;
4826#line 525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4827 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[5]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[5]) - 3
))) + (5)))))
;
4828#line 525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4829 _id = tmp5 /* pattern as ty=Integer */;
4830#line 525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4831 _p = tmpMeta[3];
4832#line 525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4833 _c = tmpMeta[4];
4834#line 525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4835 _k = tmpMeta[6];
4836#line 4836 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4837#line 526 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4838 tmpMeta[1] = mmc_mk_box6(6, &FCore_Data_CL__desc, _e, _inPrefix, _inMod, _k, _instStatus);
4839#line 526 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4840 tmpMeta[2] = mmc_mk_box6(3, &FCore_Node_N__desc, _n, mmc_mk_integermmc_mk_icon(_id), _p, _c, tmpMeta[1]);
4841#line 526 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4842 tmpMeta[0] = omc_FNode_updateRef(threadData, _r, tmpMeta[2]);
4843#line 4843 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4844 goto tmp2_done;
4845 }
4846 }
4847 goto tmp2_end;
4848 tmp2_end: ;
4849 }
4850 goto goto_1;
4851 goto_1:;
4852 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4853 goto tmp2_done;
4854 tmp2_done:;
4855 }
4856 }
4857 _outRef = tmpMeta[0];
4858 _return: OMC_LABEL_UNUSED__attribute__((unused))
4859 return _outRef;
4860}
4861
4862DLLExport
4863modelica_metatype omc_FGraph_updateClass(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _inElement, modelica_metatype _inPrefix, modelica_metatype _inMod, modelica_metatype _instStatus, modelica_metatype _inTargetGraph)
4864{
4865 modelica_metatype _outGraph = NULL((void*)0);
4866 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
4867 MMC_SO()mmc_check_stackoverflow(threadData);
4868 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4869 // _outGraph has no default value.
4870#line 4870 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4871 { /* matchcontinue expression */
4872 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
4873 tmp3_1 = _inGraph;
4874 tmp3_2 = _inElement;
4875 {
4876 modelica_metatype _pr = NULL((void*)0);
4877 modelica_metatype _r = NULL((void*)0);
4878 modelica_string _n = NULL((void*)0);
4879 modelica_integer _id;
4880 modelica_metatype _p = NULL((void*)0);
4881 modelica_metatype _c = NULL((void*)0);
4882 modelica_metatype _e = NULL((void*)0);
4883 modelica_metatype _k = NULL((void*)0);
4884 modelica_metatype _g = NULL((void*)0);
4885 volatile mmc_switch_type tmp3;
4886 int tmp4;
4887 // _pr has no default value.
4888 // _r has no default value.
4889 // _n has no default value.
4890 // _id has no default value.
4891 // _p has no default value.
4892 // _c has no default value.
4893 // _e has no default value.
4894 // _k has no default value.
4895 // _g has no default value.
4896 tmp3 = 0;
4897 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) {
4898 tmp2_top:
4899 threadData->mmc_jumper = &new_mmc_jumper;
4900 for (; tmp3 < 2; tmp3++) {
4901 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4902 case 0: {
4903 modelica_integer tmp5;
4904 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,2,8)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((8 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
4905 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
4906
4907 _e = tmp3_2;
4908 _n = tmpMeta[1];
4909 _g = tmp3_1;
4910 /* Pattern matching succeeded */
4911#line 478 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4912 _pr = omc_FGraph_lastScopeRef(threadData, _g);
4913#line 4913 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4914
4915#line 479 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4916 _r = omc_FNode_child(threadData, _pr, _n);
4917#line 4917 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4918
4919#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4920 /* Pattern-matching assignment */
4921#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4922 tmpMeta[1] = omc_FNode_fromRef(threadData, _r);
4923#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4924 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
4925#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4926 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
4927#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4928 tmp5 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
4929#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4930 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
4931#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4932 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
4933#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4934 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
4935#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4936 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[6],3,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3)))==(((5 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) goto goto_1;
4937#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4938 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (5)))))
;
4939#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4940 _n = tmpMeta[2];
4941#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4942 _id = tmp5 /* pattern as ty=Integer */;
4943#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4944 _p = tmpMeta[4];
4945#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4946 _c = tmpMeta[5];
4947#line 480 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4948 _k = tmpMeta[7];
4949#line 4949 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4950
4951#line 481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4952 tmpMeta[1] = mmc_mk_box6(6, &FCore_Data_CL__desc, _e, _inPrefix, _inMod, _k, _instStatus);
4953#line 481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4954 tmpMeta[2] = mmc_mk_box6(3, &FCore_Node_N__desc, _n, mmc_mk_integermmc_mk_icon(_id), _p, _c, tmpMeta[1]);
4955#line 481 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4956 _r = omc_FNode_updateRef(threadData, _r, tmpMeta[2]);
4957#line 4957 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4958#line 483 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4959 tmpMeta[0] = _g;
4960#line 4960 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4961 goto tmp2_done;
4962 }
4963 case 1: {
4964 modelica_boolean tmp6;
4965
4966 _g = tmp3_1;
4967 _e = tmp3_2;
4968 /* Pattern matching succeeded */
4969#line 489 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4970 _pr = omc_FGraph_lastScopeRef(threadData, _g);
4971#line 4971 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4972
4973#line 490 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4974 /* Pattern-matching assignment */
4975#line 490 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4976 tmp6 = omc_FNode_isImplicitRefName(threadData, _pr);
4977#line 490 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4978 if (1 != tmp6) goto goto_1;
4979#line 4979 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4980
4981#line 491 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4982 _g = omc_FGraph_stripLastScopeRef(threadData, _g, NULL((void*)0));
4983#line 4983 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4984#line 492 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
4985 tmpMeta[0] = omc_FGraph_updateClass(threadData, _g, _e, _inPrefix, _inMod, _instStatus, _inTargetGraph);
4986#line 4986 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
4987 goto tmp2_done;
4988 }
4989 }
4990 goto tmp2_end;
4991 tmp2_end: ;
4992 }
4993 goto goto_1;
4994 tmp2_done:
4995 (void)tmp3;
4996 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4997 goto tmp2_done2;
4998 goto_1:;
4999 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
5000 if (++tmp3 < 2) {
5001 goto tmp2_top;
5002 }
5003 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5004 tmp2_done2:;
5005 }
5006 }
5007 _outGraph = tmpMeta[0];
5008 _return: OMC_LABEL_UNUSED__attribute__((unused))
5009 return _outGraph;
5010}
5011
5012PROTECTED_FUNCTION_STATIC modelica_metatype omc_FGraph_updateVarAndMod(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _inVar, modelica_metatype _inMod, modelica_metatype _instStatus, modelica_metatype _inTargetGraph)
5013{
5014 modelica_metatype _outGraph = NULL((void*)0);
5015 modelica_metatype tmpMeta[9] __attribute__((unused)) = {0};
5016 MMC_SO()mmc_check_stackoverflow(threadData);
5017 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5018 // _outGraph has no default value.
5019#line 5019 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5020 { /* matchcontinue expression */
5021 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
5022 tmp3_1 = _inGraph;
5023 tmp3_2 = _inVar;
5024 {
5025 modelica_metatype _pr = NULL((void*)0);
5026 modelica_metatype _r = NULL((void*)0);
5027 modelica_string _n = NULL((void*)0);
5028 modelica_integer _id;
5029 modelica_metatype _p = NULL((void*)0);
5030 modelica_metatype _c = NULL((void*)0);
5031 modelica_metatype _e = NULL((void*)0);
5032 modelica_metatype _v = NULL((void*)0);
5033 modelica_metatype _k = NULL((void*)0);
5034 modelica_metatype _g = NULL((void*)0);
5035 volatile mmc_switch_type tmp3;
5036 int tmp4;
5037 // _pr has no default value.
5038 // _r has no default value.
5039 // _n has no default value.
5040 // _id has no default value.
5041 // _p has no default value.
5042 // _c has no default value.
5043 // _e has no default value.
5044 // _v has no default value.
5045 // _k has no default value.
5046 // _g has no default value.
5047 tmp3 = 0;
5048 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) {
5049 tmp2_top:
5050 threadData->mmc_jumper = &new_mmc_jumper;
5051 for (; tmp3 < 3; tmp3++) {
5052 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5053 case 0: {
5054 modelica_integer tmp5;
5055 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
5056
5057 _g = tmp3_1;
5058 _v = tmp3_2;
5059 _n = tmpMeta[1];
5060 /* Pattern matching succeeded */
5061#line 425 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5062 _pr = omc_FGraph_lastScopeRef(threadData, _g);
5063#line 5063 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5064
5065#line 426 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5066 _r = omc_FNode_child(threadData, _pr, _n);
5067#line 5067 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5068
5069#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5070 /* Pattern-matching assignment */
5071#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5072 tmpMeta[1] = omc_FNode_fromRef(threadData, _r);
5073#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5074 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
5075#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5076 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
5077#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5078 tmp5 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
5079#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5080 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
5081#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5082 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
5083#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5084 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
5085#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5086 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[6],4,4)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3)))==(((4 +1)
<< 10) + (((4 +3) & 255) << 2)))
== 0) goto goto_1;
5087#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5088 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (2)))))
;
5089#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5090 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (4)))))
;
5091#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5092 _n = tmpMeta[2];
5093#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5094 _id = tmp5 /* pattern as ty=Integer */;
5095#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5096 _p = tmpMeta[4];
5097#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5098 _c = tmpMeta[5];
5099#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5100 _e = tmpMeta[7];
5101#line 427 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5102 _k = tmpMeta[8];
5103#line 5103 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5104
5105#line 428 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5106 tmpMeta[1] = mmc_mk_box5(7, &FCore_Data_CO__desc, _e, _inMod, _k, _instStatus);
5107#line 428 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5108 tmpMeta[2] = mmc_mk_box6(3, &FCore_Node_N__desc, _n, mmc_mk_integermmc_mk_icon(_id), _p, _c, tmpMeta[1]);
5109#line 428 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5110 _r = omc_FNode_updateRef(threadData, _r, tmpMeta[2]);
5111#line 5111 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5112
5113#line 429 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5114 _r = omc_FGraph_updateSourceTargetScope(threadData, _r, omc_FGraph_currentScope(threadData, _inTargetGraph));
5115#line 5115 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5116
5117#line 430 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5118 _r = omc_FGraph_updateInstance(threadData, _r, _v);
5119#line 5119 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5120#line 431 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5121 tmpMeta[0] = _g;
5122#line 5122 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5123 goto tmp2_done;
5124 }
5125 case 1: {
5126 modelica_boolean tmp6;
5127
5128 _g = tmp3_1;
5129 _v = tmp3_2;
5130 /* Pattern matching succeeded */
5131#line 437 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5132 _pr = omc_FGraph_lastScopeRef(threadData, _g);
5133#line 5133 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5134
5135#line 438 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5136 /* Pattern-matching assignment */
5137#line 438 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5138 tmp6 = omc_FNode_isImplicitRefName(threadData, _pr);
5139#line 438 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5140 if (1 != tmp6) goto goto_1;
5141#line 5141 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5142
5143#line 439 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5144 _g = omc_FGraph_stripLastScopeRef(threadData, _g, NULL((void*)0));
5145#line 5145 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5146#line 440 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5147 tmpMeta[0] = omc_FGraph_updateVarAndMod(threadData, _g, _v, _inMod, _instStatus, _inTargetGraph);
5148#line 5148 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5149 goto tmp2_done;
5150 }
5151 case 2: {
5152
5153 /* Pattern matching succeeded */
5154#line 445 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5155 tmpMeta[0] = _inGraph;
5156#line 5156 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5157 goto tmp2_done;
5158 }
5159 }
5160 goto tmp2_end;
5161 tmp2_end: ;
5162 }
5163 goto goto_1;
5164 tmp2_done:
5165 (void)tmp3;
5166 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
5167 goto tmp2_done2;
5168 goto_1:;
5169 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
5170 if (++tmp3 < 3) {
5171 goto tmp2_top;
5172 }
5173 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5174 tmp2_done2:;
5175 }
5176 }
5177 _outGraph = tmpMeta[0];
5178 _return: OMC_LABEL_UNUSED__attribute__((unused))
5179 return _outGraph;
5180}
5181
5182DLLExport
5183modelica_metatype omc_FGraph_updateInstance(threadData_t *threadData, modelica_metatype _inRef, modelica_metatype _inVar)
5184{
5185 modelica_metatype _outRef = NULL((void*)0);
5186 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
5187 MMC_SO()mmc_check_stackoverflow(threadData);
5188 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5189 // _outRef has no default value.
5190#line 5190 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5191 { /* matchcontinue expression */
5192 volatile modelica_metatype tmp3_1;
5193 tmp3_1 = _inRef;
5194 {
5195 modelica_metatype _r = NULL((void*)0);
5196 volatile mmc_switch_type tmp3;
5197 int tmp4;
5198 // _r has no default value.
5199 tmp3 = 0;
5200 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) {
5201 tmp2_top:
5202 threadData->mmc_jumper = &new_mmc_jumper;
5203 for (; tmp3 < 2; tmp3++) {
5204 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5205 case 0: {
5206
5207 _r = tmp3_1;
5208 /* Pattern matching succeeded */
5209#line 384 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5210 _r = omc_FNode_refInstance(threadData, _r);
5211#line 5211 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5212
5213#line 385 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5214 tmpMeta[1] = mmc_mk_box2(4, &FCore_Data_IT__desc, _inVar);
5215#line 385 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5216 _r = omc_FNode_updateRef(threadData, _r, omc_FNode_setData(threadData, omc_FNode_fromRef(threadData, _r), tmpMeta[1]));
Value stored to '_r' is never read
5217#line 5217 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5218#line 386 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5219 tmpMeta[0] = _inRef;
5220#line 5220 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5221 goto tmp2_done;
5222 }
5223 case 1: {
5224
5225 /* Pattern matching succeeded */
5226#line 391 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5227 tmpMeta[1] = stringAppend(_OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)),omc_FNode_toPathStr(threadData, omc_FNode_fromRef(threadData, _inRef)));
5228#line 391 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5229 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT64((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3)));
5230#line 391 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5231 tmpMeta[3] = stringAppend(tmpMeta[2],omc_Types_printVarStr(threadData, _inVar));
5232#line 391 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5233 omc_Error_addCompilerError(threadData, tmpMeta[3]);
5234#line 5234 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5235#line 392 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5236 goto goto_1;
5237#line 5237 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5238 goto tmp2_done;
5239 }
5240 }
5241 goto tmp2_end;
5242 tmp2_end: ;
5243 }
5244 goto goto_1;
5245 tmp2_done:
5246 (void)tmp3;
5247 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
5248 goto tmp2_done2;
5249 goto_1:;
5250 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
5251 if (++tmp3 < 2) {
5252 goto tmp2_top;
5253 }
5254 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5255 tmp2_done2:;
5256 }
5257 }
5258 _outRef = tmpMeta[0];
5259 _return: OMC_LABEL_UNUSED__attribute__((unused))
5260 return _outRef;
5261}
5262
5263DLLExport
5264modelica_metatype omc_FGraph_updateSourceTargetScope(threadData_t *threadData, modelica_metatype _inRef, modelica_metatype _inTargetScope)
5265{
5266 modelica_metatype _outRef = NULL((void*)0);
5267 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
5268 MMC_SO()mmc_check_stackoverflow(threadData);
5269 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5270 // _outRef has no default value.
5271#line 5271 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5272 { /* matchcontinue expression */
5273 volatile modelica_metatype tmp3_1;
5274 tmp3_1 = _inRef;
5275 {
5276 modelica_metatype _r = NULL((void*)0);
5277 volatile mmc_switch_type tmp3;
5278 int tmp4;
5279 // _r has no default value.
5280 tmp3 = 0;
5281 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) {
5282 tmp2_top:
5283 threadData->mmc_jumper = &new_mmc_jumper;
5284 for (; tmp3 < 2; tmp3++) {
5285 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5286 case 0: {
5287
5288 _r = tmp3_1;
5289 /* Pattern matching succeeded */
5290#line 353 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5291 _r = omc_FNode_refRef(threadData, _r);
5292#line 5292 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5293
5294#line 354 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5295 tmpMeta[1] = mmc_mk_box2(23, &FCore_Data_REF__desc, _inTargetScope);
5296#line 354 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5297 _r = omc_FNode_updateRef(threadData, _r, omc_FNode_setData(threadData, omc_FNode_fromRef(threadData, _r), tmpMeta[1]));
5298#line 5298 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5299#line 355 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5300 tmpMeta[0] = _inRef;
5301#line 5301 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5302 goto tmp2_done;
5303 }
5304 case 1: {
5305
5306 _r = tmp3_1;
5307 /* Pattern matching succeeded */
5308#line 361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5309 tmpMeta[1] = stringAppend(_OMC_LIT65((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3)),omc_FNode_toPathStr(threadData, omc_FNode_fromRef(threadData, _r)));
5310#line 361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5311 tmpMeta[2] = stringAppend(tmpMeta[1],_OMC_LIT66((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3)));
5312#line 361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5313 tmpMeta[3] = stringAppend(tmpMeta[2],omc_FNode_scopeStr(threadData, _inTargetScope));
5314#line 361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5315 tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
5316#line 361 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5317 omc_Error_addCompilerWarning(threadData, tmpMeta[4]);
5318#line 5318 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5319#line 363 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5320 tmpMeta[0] = _inRef;
5321#line 5321 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5322 goto tmp2_done;
5323 }
5324 }
5325 goto tmp2_end;
5326 tmp2_end: ;
5327 }
5328 goto goto_1;
5329 tmp2_done:
5330 (void)tmp3;
5331 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
5332 goto tmp2_done2;
5333 goto_1:;
5334 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
5335 if (++tmp3 < 2) {
5336 goto tmp2_top;
5337 }
5338 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5339 tmp2_done2:;
5340 }
5341 }
5342 _outRef = tmpMeta[0];
5343 _return: OMC_LABEL_UNUSED__attribute__((unused))
5344 return _outRef;
5345}
5346
5347DLLExport
5348modelica_metatype omc_FGraph_updateComp(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype _inVar, modelica_metatype _instStatus, modelica_metatype _inTargetGraph)
5349{
5350 modelica_metatype _outGraph = NULL((void*)0);
5351 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
5352 MMC_SO()mmc_check_stackoverflow(threadData);
5353 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5354 // _outGraph has no default value.
5355#line 5355 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5356 { /* matchcontinue expression */
5357 volatile modelica_metatype tmp3_1;volatile modelica_metatype tmp3_2;
5358 tmp3_1 = _inGraph;
5359 tmp3_2 = _inVar;
5360 {
5361 modelica_metatype _pr = NULL((void*)0);
5362 modelica_metatype _r = NULL((void*)0);
5363 modelica_string _n = NULL((void*)0);
5364 modelica_integer _id;
5365 modelica_metatype _p = NULL((void*)0);
5366 modelica_metatype _c = NULL((void*)0);
5367 modelica_metatype _e = NULL((void*)0);
5368 modelica_metatype _v = NULL((void*)0);
5369 modelica_metatype _m = NULL((void*)0);
5370 modelica_metatype _k = NULL((void*)0);
5371 modelica_metatype _g = NULL((void*)0);
5372 volatile mmc_switch_type tmp3;
5373 int tmp4;
5374 // _pr has no default value.
5375 // _r has no default value.
5376 // _n has no default value.
5377 // _id has no default value.
5378 // _p has no default value.
5379 // _c has no default value.
5380 // _e has no default value.
5381 // _v has no default value.
5382 // _m has no default value.
5383 // _k has no default value.
5384 // _g has no default value.
5385 tmp3 = 0;
5386 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) {
5387 tmp2_top:
5388 threadData->mmc_jumper = &new_mmc_jumper;
5389 for (; tmp3 < 3; tmp3++) {
5390 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5391 case 0: {
5392 modelica_integer tmp5;
5393 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
5394
5395 _g = tmp3_1;
5396 _v = tmp3_2;
5397 _n = tmpMeta[1];
5398 /* Pattern matching succeeded */
5399#line 312 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5400 _pr = omc_FGraph_lastScopeRef(threadData, _g);
5401#line 5401 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5402
5403#line 313 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5404 _r = omc_FNode_child(threadData, _pr, _n);
5405#line 5405 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5406
5407#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5408 /* Pattern-matching assignment */
5409#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5410 tmpMeta[1] = omc_FNode_fromRef(threadData, _r);
5411#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5412 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
5413#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5414 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
5415#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5416 tmp5 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
5417#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5418 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
5419#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5420 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
5421#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5422 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
5423#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5424 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[6],4,4)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[6]) - 3)))==(((4 +1)
<< 10) + (((4 +3) & 255) << 2)))
== 0) goto goto_1;
5425#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5426 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (2)))))
;
5427#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5428 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (3)))))
;
5429#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5430 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (4)))))
;
5431#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5432 _n = tmpMeta[2];
5433#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5434 _id = tmp5 /* pattern as ty=Integer */;
5435#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5436 _p = tmpMeta[4];
5437#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5438 _c = tmpMeta[5];
5439#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5440 _e = tmpMeta[7];
5441#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5442 _m = tmpMeta[8];
5443#line 314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5444 _k = tmpMeta[9];
5445#line 5445 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5446
5447#line 315 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5448 tmpMeta[1] = mmc_mk_box5(7, &FCore_Data_CO__desc, _e, _m, _k, _instStatus);
5449#line 315 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5450 tmpMeta[2] = mmc_mk_box6(3, &FCore_Node_N__desc, _n, mmc_mk_integermmc_mk_icon(_id), _p, _c, tmpMeta[1]);
5451#line 315 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5452 _r = omc_FNode_updateRef(threadData, _r, tmpMeta[2]);
5453#line 5453 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5454
5455#line 317 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5456 _r = omc_FGraph_updateSourceTargetScope(threadData, _r, omc_FGraph_currentScope(threadData, _inTargetGraph));
5457#line 5457 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5458
5459#line 318 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5460 _r = omc_FGraph_updateInstance(threadData, _r, _v);
5461#line 5461 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5462#line 319 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5463 tmpMeta[0] = _g;
5464#line 5464 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5465 goto tmp2_done;
5466 }
5467 case 1: {
5468 modelica_boolean tmp6;
5469
5470 _g = tmp3_1;
5471 _v = tmp3_2;
5472 /* Pattern matching succeeded */
5473#line 325 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5474 _pr = omc_FGraph_lastScopeRef(threadData, _g);
5475#line 5475 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5476
5477#line 326 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5478 /* Pattern-matching assignment */
5479#line 326 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5480 tmp6 = omc_FNode_isImplicitRefName(threadData, _pr);
5481#line 326 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5482 if (1 != tmp6) goto goto_1;
5483#line 5483 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5484
5485#line 327 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5486 _g = omc_FGraph_stripLastScopeRef(threadData, _g, NULL((void*)0));
5487#line 5487 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5488#line 328 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5489 tmpMeta[0] = omc_FGraph_updateComp(threadData, _g, _v, _instStatus, _inTargetGraph);
5490#line 5490 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5491 goto tmp2_done;
5492 }
5493 case 2: {
5494
5495 /* Pattern matching succeeded */
5496#line 333 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5497 tmpMeta[0] = _inGraph;
5498#line 5498 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5499 goto tmp2_done;
5500 }
5501 }
5502 goto tmp2_end;
5503 tmp2_end: ;
5504 }
5505 goto goto_1;
5506 tmp2_done:
5507 (void)tmp3;
5508 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
5509 goto tmp2_done2;
5510 goto_1:;
5511 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
5512 if (++tmp3 < 3) {
5513 goto tmp2_top;
5514 }
5515 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5516 tmp2_done2:;
5517 }
5518 }
5519 _outGraph = tmpMeta[0];
5520 _return: OMC_LABEL_UNUSED__attribute__((unused))
5521 return _outGraph;
5522}
5523
5524DLLExport
5525modelica_metatype omc_FGraph_clone(threadData_t *threadData, modelica_metatype _inGraph)
5526{
5527 modelica_metatype _outGraph = NULL((void*)0);
5528 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
5529 MMC_SO()mmc_check_stackoverflow(threadData);
5530 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5531 // _outGraph has no default value.
5532#line 5532 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5533 { /* match expression */
5534 modelica_metatype tmp3_1;
5535 tmp3_1 = _inGraph;
5536 {
5537 modelica_metatype _g = NULL((void*)0);
5538 modelica_metatype _t = NULL((void*)0);
5539 modelica_metatype _nt = NULL((void*)0);
5540 modelica_metatype _s = NULL((void*)0);
5541 modelica_metatype _ag = NULL((void*)0);
5542 volatile mmc_switch_type tmp3;
5543 int tmp4;
5544 // _g has no default value.
5545 // _t has no default value.
5546 // _nt has no default value.
5547 // _s has no default value.
5548 // _ag has no default value.
5549 tmp3 = 0;
5550 for (; tmp3 < 1; tmp3++) {
5551 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5552 case 0: {
5553 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;
5554 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
5555 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
5556 _t = tmpMeta[1];
5557 _s = tmpMeta[2];
5558 /* Pattern matching succeeded */
5559#line 268 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5560 _nt = omc_FNode_toRef(threadData, omc_FNode_fromRef(threadData, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_t), 4))(*(void**)(((void*)((void**)(((void*)((char*)(_t) - 3))) + (4
)))))
)));
5561#line 5561 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5562
5563#line 272 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5564 _g = omc_FNode_copyRef(threadData, _nt, _inGraph ,&_nt);
5565#line 5565 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5566
5567#line 274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5568 _s = omc_List_map1r(threadData, _s, boxvar_FNode_lookupRefFromRef((void*)((char*)(&(boxvar_lit_FNode_lookupRefFromRef).header
) + 3))
, _nt);
5569#line 5569 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5570
5571#line 275 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5572 _ag = arrayCreate(((modelica_integer) 1), _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)));
5573#line 5573 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5574
5575#line 276 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5576 tmpMeta[1] = mmc_mk_box5(3, &FCore_Top_GTOP__desc, _ag, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_t), 3))(*(void**)(((void*)((void**)(((void*)((char*)(_t) - 3))) + (3
)))))
), _nt, (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_t), 5))(*(void**)(((void*)((void**)(((void*)((char*)(_t) - 3))) + (5
)))))
));
5577#line 276 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5578 _t = tmpMeta[1];
5579#line 5579 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5580
5581#line 277 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5582 tmpMeta[1] = mmc_mk_box3(3, &FCore_Graph_G__desc, _t, _s);
5583#line 277 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5584 _g = tmpMeta[1];
5585#line 5585 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5586
5587#line 278 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5588 arrayUpdate(_ag, ((modelica_integer) 1), _g)boxptr_arrayUpdate(threadData,_ag,mmc_mk_icon(((modelica_integer
) 1)),_g)
;
5589#line 5589 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5590#line 279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5591 tmpMeta[0] = _g;
5592#line 5592 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5593 goto tmp2_done;
5594 }
5595 }
5596 goto tmp2_end;
5597 tmp2_end: ;
5598 }
5599 goto goto_1;
5600 goto_1:;
5601 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5602 goto tmp2_done;
5603 tmp2_done:;
5604 }
5605 }
5606 _outGraph = tmpMeta[0];
5607 _return: OMC_LABEL_UNUSED__attribute__((unused))
5608 return _outGraph;
5609}
5610
5611DLLExport
5612modelica_metatype omc_FGraph_node(threadData_t *threadData, modelica_metatype _inGraph, modelica_string _inName, modelica_metatype _inParents, modelica_metatype _inData, modelica_metatype *out_outNode)
5613{
5614 modelica_metatype _outGraph = NULL((void*)0);
5615 modelica_metatype _outNode = NULL((void*)0);
5616 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
5617 MMC_SO()mmc_check_stackoverflow(threadData);
5618 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5619 // _outGraph has no default value.
5620 // _outNode has no default value.
5621#line 222 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5622
5623#line 222 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5624
5625#line 5625 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5626 { /* match expression */
5627 modelica_metatype tmp4_1;
5628 tmp4_1 = _inGraph;
5629 {
5630 modelica_integer _i;
5631 modelica_metatype _g = NULL((void*)0);
5632 modelica_metatype _n = NULL((void*)0);
5633 volatile mmc_switch_type tmp4;
5634 int tmp5;
5635 // _i has no default value.
5636 // _g has no default value.
5637 // _n has no default value.
5638 tmp4 = 0;
5639 for (; tmp4 < 1; tmp4++) {
5640 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
5641 case 0: {
5642
5643 _g = tmp4_1;
5644 /* Pattern matching succeeded */
5645#line 232 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5646 _i = omc_System_tmpTickIndex(threadData, ((modelica_integer) 22));
5647#line 5647 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5648
5649#line 233 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5650 _n = omc_FNode_new(threadData, _inName, _i, _inParents, _inData);
5651#line 5651 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5652
5653#line 234 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5654 omc_FGraphStream_node(threadData, _n);
5655#line 5655 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5656#line 241 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5657 tmpMeta[0+0] = _g;
5658#line 241 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5659 tmpMeta[0+1] = _n;
5660#line 5660 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5661 goto tmp3_done;
5662 }
5663 }
5664 goto tmp3_end;
5665 tmp3_end: ;
5666 }
5667 goto goto_2;
5668 goto_2:;
5669 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5670 goto tmp3_done;
5671 tmp3_done:;
5672 }
5673 }
5674 _outGraph = tmpMeta[0+0];
5675 _outNode = tmpMeta[0+1];
5676 _return: OMC_LABEL_UNUSED__attribute__((unused))
5677 if (out_outNode) { *out_outNode = _outNode; }
5678 return _outGraph;
5679}
5680
5681DLLExport
5682modelica_metatype omc_FGraph_new(threadData_t *threadData, modelica_string _inGraphName, modelica_metatype _inPath)
5683{
5684 modelica_metatype _outGraph = NULL((void*)0);
5685 modelica_metatype _n = NULL((void*)0);
5686 modelica_metatype _s = NULL((void*)0);
5687 modelica_metatype _v = NULL((void*)0);
5688 modelica_metatype _nr = NULL((void*)0);
5689 modelica_integer _next;
5690 modelica_integer _id;
5691 modelica_metatype _ag = NULL((void*)0);
5692 modelica_metatype _top = NULL((void*)0);
5693 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
5694 MMC_SO()mmc_check_stackoverflow(threadData);
5695 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5696 // _outGraph has no default value.
5697 // _n has no default value.
5698 // _s has no default value.
5699 // _v has no default value.
5700 // _nr has no default value.
5701 // _next has no default value.
5702 // _id has no default value.
5703 // _ag has no default value.
5704 // _top has no default value.
5705#line 201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5706 _id = omc_System_tmpTickIndex(threadData, ((modelica_integer) 22));
5707#line 5707 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5708
5709#line 202 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5710 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
5711#line 202 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5712 _n = omc_FNode_new(threadData, _OMC_LIT69((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3)), _id, tmpMeta[0], _OMC_LIT70((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3)));
5713#line 5713 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5714
5715#line 203 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5716 _nr = omc_FNode_toRef(threadData, _n);
5717#line 5717 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5718
5719#line 204 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5720 tmpMeta[0] = mmc_mk_cons(_nr, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
5721#line 204 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5722 _s = tmpMeta[0];
5723#line 5723 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5724
5725#line 205 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5726 _ag = arrayCreateNoInit(((modelica_integer) 1), _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)));
5727#line 5727 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5728
5729#line 206 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5730 tmpMeta[0] = mmc_mk_box2(3, &FCore_Extra_EXTRA__desc, _inPath);
5731#line 206 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5732 tmpMeta[1] = mmc_mk_box5(3, &FCore_Top_GTOP__desc, _ag, _inGraphName, _nr, tmpMeta[0]);
5733#line 206 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5734 _top = tmpMeta[1];
5735#line 5735 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5736
5737#line 207 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5738 tmpMeta[0] = mmc_mk_box3(3, &FCore_Graph_G__desc, _top, _s);
5739#line 207 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5740 _outGraph = tmpMeta[0];
5741#line 5741 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5742
5743#line 209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5744 tmpMeta[0] = mmc_mk_cons(_nr, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
5745#line 209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5746 tmpMeta[1] = mmc_mk_box3(3, &FCore_Graph_G__desc, _top, tmpMeta[0]);
5747#line 209 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5748 arrayUpdate(_ag, ((modelica_integer) 1), tmpMeta[1])boxptr_arrayUpdate(threadData,_ag,mmc_mk_icon(((modelica_integer
) 1)),tmpMeta[1])
;
5749#line 5749 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5750
5751#line 210 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5752 omc_FGraphStream_node(threadData, _n);
5753#line 5753 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5754 _return: OMC_LABEL_UNUSED__attribute__((unused))
5755 return _outGraph;
5756}
5757
5758DLLExport
5759modelica_metatype omc_FGraph_empty(threadData_t *threadData)
5760{
5761 modelica_metatype _outGraph = NULL((void*)0);
5762 MMC_SO()mmc_check_stackoverflow(threadData);
5763 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5764 // _outGraph has no default value.
5765#line 183 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5766 _outGraph = _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3));
5767#line 5767 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5768 _return: OMC_LABEL_UNUSED__attribute__((unused))
5769 return _outGraph;
5770}
5771
5772DLLExport
5773modelica_metatype omc_FGraph_topScope(threadData_t *threadData, modelica_metatype _inGraph)
5774{
5775 modelica_metatype _outGraph = NULL((void*)0);
5776 modelica_metatype _t = NULL((void*)0);
5777 modelica_metatype _r = NULL((void*)0);
5778 modelica_metatype _s = NULL((void*)0);
5779 modelica_string _gn = NULL((void*)0);
5780 modelica_metatype _v = NULL((void*)0);
5781 modelica_metatype _e = NULL((void*)0);
5782 modelica_integer _next;
5783 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
5784 MMC_SO()mmc_check_stackoverflow(threadData);
5785 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5786 // _outGraph has no default value.
5787 // _t has no default value.
5788 // _r has no default value.
5789 // _s has no default value.
5790 // _gn has no default value.
5791 // _v has no default value.
5792 // _e has no default value.
5793 // _next has no default value.
5794#line 5794 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5795 { /* match expression */
5796 modelica_metatype tmp3_1;
5797 tmp3_1 = _inGraph;
5798 {
5799 volatile mmc_switch_type tmp3;
5800 int tmp4;
5801 tmp3 = 0;
5802 for (; tmp3 < 1; tmp3++) {
5803 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5804 case 0: {
5805 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;
5806
5807 /* Pattern matching succeeded */
5808#line 175 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5809 tmpMeta[0] = arrayGet((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inGraph), 2)))), 2))), ((modelica_integer) 1))nobox_arrayGet(threadData,((*(void**)(((void*)((void**)(((void
*)((char*)(((*(void**)(((void*)((void**)(((void*)((char*)(_inGraph
) - 3))) + (2))))))) - 3))) + (2)))))),((modelica_integer) 1)
)
;
5810#line 5810 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5811 goto tmp2_done;
5812 }
5813 }
5814 goto tmp2_end;
5815 tmp2_end: ;
5816 }
5817 goto goto_1;
5818 goto_1:;
5819 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5820 goto tmp2_done;
5821 tmp2_done:;
5822 }
5823 }
5824 _outGraph = tmpMeta[0];
5825 _return: OMC_LABEL_UNUSED__attribute__((unused))
5826 return _outGraph;
5827}
5828
5829DLLExport
5830modelica_metatype omc_FGraph_stripLastScopeRef(threadData_t *threadData, modelica_metatype _inGraph, modelica_metatype *out_outRef)
5831{
5832 modelica_metatype _outGraph = NULL((void*)0);
5833 modelica_metatype _outRef = NULL((void*)0);
5834 modelica_metatype _t = NULL((void*)0);
5835 modelica_metatype _s = NULL((void*)0);
5836 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
5837 MMC_SO()mmc_check_stackoverflow(threadData);
5838 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5839 // _outGraph has no default value.
5840 // _outRef has no default value.
5841 // _t has no default value.
5842 // _s has no default value.
5843#line 156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5844 /* Pattern-matching assignment */
5845#line 156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5846 tmpMeta[0] = _inGraph;
5847#line 156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5848 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,2)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((2 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5849#line 156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5850 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
5851#line 156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5852 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
5853#line 156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5854 if (listEmpty(tmpMeta[2])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5855#line 156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5856 tmpMeta[3] = MMC_CAR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
5857#line 156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5858 tmpMeta[4] = MMC_CDR(tmpMeta[2])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
5859#line 156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5860 _t = tmpMeta[1];
5861#line 156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5862 _outRef = tmpMeta[3];
5863#line 156 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5864 _s = tmpMeta[4];
5865#line 5865 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5866
5867#line 158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5868 tmpMeta[0] = mmc_mk_box3(3, &FCore_Graph_G__desc, _t, _s);
5869#line 158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5870 _outGraph = tmpMeta[0];
5871#line 5871 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5872 _return: OMC_LABEL_UNUSED__attribute__((unused))
5873 if (out_outRef) { *out_outRef = _outRef; }
5874 return _outGraph;
5875}
5876
5877DLLExport
5878modelica_metatype omc_FGraph_setLastScopeRef(threadData_t *threadData, modelica_metatype _inRef, modelica_metatype _inGraph)
5879{
5880 modelica_metatype _outGraph = NULL((void*)0);
5881 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
5882 MMC_SO()mmc_check_stackoverflow(threadData);
5883 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5884 _outGraph = _inGraph;
5885#line 5885 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5886 { /* match expression */
5887 modelica_metatype tmp3_1;
5888 tmp3_1 = _outGraph;
5889 {
5890 volatile mmc_switch_type tmp3;
5891 int tmp4;
5892 tmp3 = 0;
5893 for (; tmp3 < 2; tmp3++) {
5894 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5895 case 0: {
5896 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;
5897
5898 /* Pattern matching succeeded */
5899#line 139 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5900 tmpMeta[2] = mmc_mk_cons(_inRef, listRest((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_outGraph), 3))))boxptr_listRest(threadData,((*(void**)(((void*)((void**)(((void
*)((char*)(_outGraph) - 3))) + (3)))))))
);
5901#line 139 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5902 tmpMeta[1] = MMC_TAGPTR(mmc_alloc_words(4))((void*)((char*)(mmc_alloc_words(4)) + 3));
5903#line 139 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5904 memcpy(MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)), MMC_UNTAGPTR(_outGraph)((void*)((char*)(_outGraph) - 3)), 4*sizeof(modelica_metatype));
5905#line 139 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5906 ((modelica_metatype*)MMC_UNTAGPTR(tmpMeta[1])((void*)((char*)(tmpMeta[1]) - 3)))[3] = tmpMeta[2];
5907#line 139 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5908 _outGraph = tmpMeta[1];
5909#line 5909 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5910#line 140 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5911 tmpMeta[0] = _outGraph;
5912#line 5912 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5913 goto tmp2_done;
5914 }
5915 case 1: {
5916
5917 /* Pattern matching succeeded */
5918#line 143 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5919 tmpMeta[0] = _outGraph;
5920#line 5920 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5921 goto tmp2_done;
5922 }
5923 }
5924 goto tmp2_end;
5925 tmp2_end: ;
5926 }
5927 goto goto_1;
5928 goto_1:;
5929 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5930 goto tmp2_done;
5931 tmp2_done:;
5932 }
5933 }
5934 _outGraph = tmpMeta[0];
5935 _return: OMC_LABEL_UNUSED__attribute__((unused))
5936 return _outGraph;
5937}
5938
5939DLLExport
5940modelica_metatype omc_FGraph_lastScopeRef(threadData_t *threadData, modelica_metatype _inGraph)
5941{
5942 modelica_metatype _outRef = NULL((void*)0);
5943 MMC_SO()mmc_check_stackoverflow(threadData);
5944 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5945 // _outRef has no default value.
5946#line 128 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5947 _outRef = listHead(omc_FGraph_currentScope(threadData, _inGraph))boxptr_listHead(threadData,omc_FGraph_currentScope(threadData
, _inGraph))
;
5948#line 5948 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5949 _return: OMC_LABEL_UNUSED__attribute__((unused))
5950 return _outRef;
5951}
5952
5953DLLExport
5954modelica_metatype omc_FGraph_currentScope(threadData_t *threadData, modelica_metatype _inGraph)
5955{
5956 modelica_metatype _outScope = NULL((void*)0);
5957 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
5958 MMC_SO()mmc_check_stackoverflow(threadData);
5959 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
5960 // _outScope has no default value.
5961#line 5961 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5962 { /* match expression */
5963 modelica_metatype tmp3_1;
5964 tmp3_1 = _inGraph;
5965 {
5966 volatile mmc_switch_type tmp3;
5967 int tmp4;
5968 tmp3 = 0;
5969 for (; tmp3 < 2; tmp3++) {
5970 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
5971 case 0: {
5972 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;
5973 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
5974 _outScope = tmpMeta[1];
5975 /* Pattern matching succeeded */
5976#line 118 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5977 tmpMeta[0] = _outScope;
5978#line 5978 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5979 goto tmp2_done;
5980 }
5981 case 1: {
5982 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;
5983
5984 /* Pattern matching succeeded */
5985#line 119 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5986 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
5987#line 119 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
5988 tmpMeta[0] = tmpMeta[1];
5989#line 5989 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
5990 goto tmp2_done;
5991 }
5992 }
5993 goto tmp2_end;
5994 tmp2_end: ;
5995 }
5996 goto goto_1;
5997 goto_1:;
5998 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
5999 goto tmp2_done;
6000 tmp2_done:;
6001 }
6002 }
6003 _outScope = tmpMeta[0];
6004 _return: OMC_LABEL_UNUSED__attribute__((unused))
6005 return _outScope;
6006}
6007
6008DLLExport
6009modelica_metatype omc_FGraph_extra(threadData_t *threadData, modelica_metatype _inGraph)
6010{
6011 modelica_metatype _outExtra = NULL((void*)0);
6012 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
6013 MMC_SO()mmc_check_stackoverflow(threadData);
6014 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
6015 // _outExtra has no default value.
6016#line 6016 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
6017 { /* match expression */
6018 modelica_metatype tmp3_1;
6019 tmp3_1 = _inGraph;
6020 {
6021 volatile mmc_switch_type tmp3;
6022 int tmp4;
6023 tmp3 = 0;
6024 for (; tmp3 < 1; tmp3++) {
6025 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
6026 case 0: {
6027 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;
6028
6029 /* Pattern matching succeeded */
6030#line 108 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
6031 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inGraph), 2)))), 5))(*(void**)(((void*)((void**)(((void*)((char*)(((*(void**)(((void
*)((void**)(((void*)((char*)(_inGraph) - 3))) + (2))))))) - 3
))) + (5)))))
);
6032#line 6032 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
6033 goto tmp2_done;
6034 }
6035 }
6036 goto tmp2_end;
6037 tmp2_end: ;
6038 }
6039 goto goto_1;
6040 goto_1:;
6041 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
6042 goto tmp2_done;
6043 tmp2_done:;
6044 }
6045 }
6046 _outExtra = tmpMeta[0];
6047 _return: OMC_LABEL_UNUSED__attribute__((unused))
6048 return _outExtra;
6049}
6050
6051DLLExport
6052modelica_metatype omc_FGraph_top(threadData_t *threadData, modelica_metatype _inGraph)
6053{
6054 modelica_metatype _outRef = NULL((void*)0);
6055 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
6056 MMC_SO()mmc_check_stackoverflow(threadData);
6057 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
6058 // _outRef has no default value.
6059#line 6059 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
6060 { /* match expression */
6061 modelica_metatype tmp3_1;
6062 tmp3_1 = _inGraph;
6063 {
6064 volatile mmc_switch_type tmp3;
6065 int tmp4;
6066 tmp3 = 0;
6067 for (; tmp3 < 1; tmp3++) {
6068 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
6069 case 0: {
6070 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;
6071
6072 /* Pattern matching succeeded */
6073#line 98 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/FFrontEnd/FGraph.mo"
6074 tmpMeta[0] = (MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_inGraph), 2)))), 4))(*(void**)(((void*)((void**)(((void*)((char*)(((*(void**)(((void
*)((void**)(((void*)((char*)(_inGraph) - 3))) + (2))))))) - 3
))) + (4)))))
);
6075#line 6075 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/FGraph.c"
6076 goto tmp2_done;
6077 }
6078 }
6079 goto tmp2_end;
6080 tmp2_end: ;
6081 }
6082 goto goto_1;
6083 goto_1:;
6084 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
6085 goto tmp2_done;
6086 tmp2_done:;
6087 }
6088 }
6089 _outRef = tmpMeta[0];
6090 _return: OMC_LABEL_UNUSED__attribute__((unused))
6091 return _outRef;
6092}
6093