Bug Summary

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