Bug Summary

File:OMCompiler/Compiler/boot/build/GraphML.c
Warning:line 1173, column 3
Value stored to '_edgeCount' 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/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c" "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "GraphML.h"
8#define _OMC_LIT0_data" | " " | "
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,3,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), " | "
}
;
10#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
11#define _OMC_LIT1_data"node: " "node: "
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,6,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "node: "
}
;
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" desc: " " desc: "
15static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,7,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), " desc: "
}
;
16#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
17#define _OMC_LIT3_data"\n atts: " "\n atts: "
18static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,8,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "\n atts: "
}
;
19#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
20#define _OMC_LIT4_data"\n" "\n"
21static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,1,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\n"
}
;
22#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
23#define _OMC_LIT5_data"nodeCount: " "nodeCount: "
24static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,11,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "nodeCount: "
}
;
25#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
26#define _OMC_LIT6_data"graphCount: " "graphCount: "
27static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,12,_OMC_LIT6_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT6
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "graphCount: "
}
;
28#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
29#define _OMC_LIT7_data"g" "g"
30static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT7,1,_OMC_LIT7_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT7
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "g"
}
;
31#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
32#define _OMC_LIT8_data"gi1" "gi1"
33static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,3,_OMC_LIT8_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT8
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "gi1"
}
;
34#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
35#define _OMC_LIT9_data"gi2" "gi2"
36static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT9,3,_OMC_LIT9_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT9
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "gi2"
}
;
37#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
38static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT10,10,3)struct { mmc_uint_t header; const void *data[10]; } _OMC_LIT_STRUCT10
= { (((10) << 10) + (((3) & 255) << 2)),
{&GraphML_GraphInfo_GRAPHINFO__desc,MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)),_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))}};
39#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
40#include "util/modelica.h"
41
42#include "GraphML_includes.h"
43
44
45/* default, do not make protected functions static */
46#if !defined(PROTECTED_FUNCTION_STATIC)
47#define PROTECTED_FUNCTION_STATIC
48#endif
49PROTECTED_FUNCTION_STATIC void omc_GraphML_printNode(threadData_t *threadData, modelica_metatype _node);
50static const MMC_DEFSTRUCTLIT(boxvar_lit_GraphML_printNode,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_GraphML_printNode
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_GraphML_printNodeomc_GraphML_printNode,0}};
51#define boxvar_GraphML_printNode((void*)((char*)(&(boxvar_lit_GraphML_printNode).header) +
3))
MMC_REFSTRUCTLIT(boxvar_lit_GraphML_printNode)((void*)((char*)(&(boxvar_lit_GraphML_printNode).header) +
3))
52PROTECTED_FUNCTION_STATIC modelica_metatype omc_GraphML_convertToGraphInfoArr(threadData_t *threadData, modelica_metatype _iGraphInfo);
53static const MMC_DEFSTRUCTLIT(boxvar_lit_GraphML_convertToGraphInfoArr,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_GraphML_convertToGraphInfoArr
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_GraphML_convertToGraphInfoArromc_GraphML_convertToGraphInfoArr,0}};
54#define boxvar_GraphML_convertToGraphInfoArr((void*)((char*)(&(boxvar_lit_GraphML_convertToGraphInfoArr
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_GraphML_convertToGraphInfoArr)((void*)((char*)(&(boxvar_lit_GraphML_convertToGraphInfoArr
).header) + 3))
55PROTECTED_FUNCTION_STATIC modelica_integer omc_GraphML_compareAttributeTarget0(threadData_t *threadData, modelica_metatype _iTarget);
56PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_GraphML_compareAttributeTarget0(threadData_t *threadData, modelica_metatype _iTarget);
57static const MMC_DEFSTRUCTLIT(boxvar_lit_GraphML_compareAttributeTarget0,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_GraphML_compareAttributeTarget0
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_GraphML_compareAttributeTarget0,0}};
58#define boxvar_GraphML_compareAttributeTarget0((void*)((char*)(&(boxvar_lit_GraphML_compareAttributeTarget0
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_GraphML_compareAttributeTarget0)((void*)((char*)(&(boxvar_lit_GraphML_compareAttributeTarget0
).header) + 3))
59PROTECTED_FUNCTION_STATIC modelica_boolean omc_GraphML_compareAttributeTargets(threadData_t *threadData, modelica_metatype _iTarget1, modelica_metatype _iTarget2);
60PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_GraphML_compareAttributeTargets(threadData_t *threadData, modelica_metatype _iTarget1, modelica_metatype _iTarget2);
61static const MMC_DEFSTRUCTLIT(boxvar_lit_GraphML_compareAttributeTargets,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_GraphML_compareAttributeTargets
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_GraphML_compareAttributeTargets,0}};
62#define boxvar_GraphML_compareAttributeTargets((void*)((char*)(&(boxvar_lit_GraphML_compareAttributeTargets
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_GraphML_compareAttributeTargets)((void*)((char*)(&(boxvar_lit_GraphML_compareAttributeTargets
).header) + 3))
63PROTECTED_FUNCTION_STATIC modelica_metatype omc_GraphML_getAttributeByNameAndTargetTail(threadData_t *threadData, modelica_metatype _iList, modelica_string _iAttributeName, modelica_metatype _iAttributeTarget);
64static const MMC_DEFSTRUCTLIT(boxvar_lit_GraphML_getAttributeByNameAndTargetTail,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_GraphML_getAttributeByNameAndTargetTail
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_GraphML_getAttributeByNameAndTargetTailomc_GraphML_getAttributeByNameAndTargetTail,0}};
65#define boxvar_GraphML_getAttributeByNameAndTargetTail((void*)((char*)(&(boxvar_lit_GraphML_getAttributeByNameAndTargetTail
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_GraphML_getAttributeByNameAndTargetTail)((void*)((char*)(&(boxvar_lit_GraphML_getAttributeByNameAndTargetTail
).header) + 3))
66
67PROTECTED_FUNCTION_STATIC void omc_GraphML_printNode(threadData_t *threadData, modelica_metatype _node)
68{
69 modelica_string _id = NULL((void*)0);
70 modelica_string _atts = NULL((void*)0);
71 modelica_string _color = NULL((void*)0);
72 modelica_metatype _nodeLabels = NULL((void*)0);
73 modelica_metatype _shapeType = NULL((void*)0);
74 modelica_metatype _optDesc = NULL((void*)0);
75 modelica_metatype _attValues = NULL((void*)0);
76 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
77 MMC_SO()mmc_check_stackoverflow(threadData);
78 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
79 // _id has no default value.
80 // _atts has no default value.
81 // _color has no default value.
82 // _nodeLabels has no default value.
83 // _shapeType has no default value.
84 // _optDesc has no default value.
85 // _attValues has no default value.
86#line 636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
87 /* Pattern-matching assignment */
88#line 636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
89 tmpMeta[0] = _node;
90#line 636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
91 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,7)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((7 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
92#line 636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
93 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
94#line 636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
95 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
96#line 636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
97 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
98#line 636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
99 _id = tmpMeta[1];
100#line 636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
101 _optDesc = tmpMeta[2];
102#line 636 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
103 _attValues = tmpMeta[3];
104#line 104 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
105
106#line 637 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
107 _atts = stringDelimitList(omc_List_map(threadData, _attValues, boxvar_Util_tuple22((void*)((char*)(&(boxvar_lit_Util_tuple22).header) + 3))), _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)));
108#line 108 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
109
110#line 638 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
111 tmpMeta[0] = stringAppend(_OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)),_id);
112#line 638 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
113 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)));
114#line 638 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
115 tmpMeta[2] = stringAppend(tmpMeta[1],omc_Util_getOption(threadData, _optDesc));
116#line 638 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
117 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
118#line 638 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
119 tmpMeta[4] = stringAppend(tmpMeta[3],_atts);
120#line 638 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
121 tmpMeta[5] = stringAppend(tmpMeta[4],_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)));
122#line 638 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
123 fputs(MMC_STRINGDATA(tmpMeta[5])(((struct mmc_string*)((void*)((char*)(tmpMeta[5]) - 3)))->
data)
,stdoutstdout);
124#line 124 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
125 _return: OMC_LABEL_UNUSED__attribute__((unused))
126 return;
127}
128
129DLLExport
130void omc_GraphML_printGraphInfo(threadData_t *threadData, modelica_metatype _iGraphInfo)
131{
132 modelica_metatype _graphs = NULL((void*)0);
133 modelica_integer _graphCount;
134 modelica_metatype _nodes = NULL((void*)0);
135 modelica_integer _nodeCount;
136 modelica_metatype _edges = NULL((void*)0);
137 modelica_integer _edgeCount;
138 modelica_metatype _attributes = NULL((void*)0);
139 modelica_string _graphNodeKey = NULL((void*)0);
140 modelica_string _graphEdgeKey = NULL((void*)0);
141 modelica_integer tmp1;
142 modelica_integer tmp2;
143 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
144 MMC_SO()mmc_check_stackoverflow(threadData);
145 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
146 // _graphs has no default value.
147 // _graphCount has no default value.
148 // _nodes has no default value.
149 // _nodeCount has no default value.
150 // _edges has no default value.
151 // _edgeCount has no default value.
152 // _attributes has no default value.
153 // _graphNodeKey has no default value.
154 // _graphEdgeKey has no default value.
155#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
156 /* Pattern-matching assignment */
157#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
158 tmpMeta[0] = _iGraphInfo;
159#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
160 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,9)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((9 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
161#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
162 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
163#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
164 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
165#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
166 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
167#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
168 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
169#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
170 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
171#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
172 tmp2 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
173#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
174 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
175#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
176 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (9)))))
;
177#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
178 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 10))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (10)))))
;
179#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
180 _graphs = tmpMeta[1];
181#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
182 _graphCount = tmp1 /* pattern as ty=Integer */;
183#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
184 _nodes = tmpMeta[3];
185#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
186 _nodeCount = tmp2 /* pattern as ty=Integer */;
187#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
188 _attributes = tmpMeta[5];
189#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
190 _graphNodeKey = tmpMeta[6];
191#line 620 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
192 _graphEdgeKey = tmpMeta[7];
193#line 193 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
194
195#line 621 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
196 omc_List_map__0(threadData, _nodes, boxvar_GraphML_printNode((void*)((char*)(&(boxvar_lit_GraphML_printNode).header) +
3))
);
197#line 197 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
198
199#line 622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
200 tmpMeta[0] = stringAppend(_OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)),intString(_nodeCount));
201#line 622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
202 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)));
203#line 622 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
204 fputs(MMC_STRINGDATA(tmpMeta[1])(((struct mmc_string*)((void*)((char*)(tmpMeta[1]) - 3)))->
data)
,stdoutstdout);
205#line 205 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
206
207#line 623 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
208 tmpMeta[0] = stringAppend(_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)),intString(_graphCount));
209#line 623 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
210 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)));
211#line 623 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
212 fputs(MMC_STRINGDATA(tmpMeta[1])(((struct mmc_string*)((void*)((char*)(tmpMeta[1]) - 3)))->
data)
,stdoutstdout);
213#line 213 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
214 _return: OMC_LABEL_UNUSED__attribute__((unused))
215 return;
216}
217
218PROTECTED_FUNCTION_STATIC modelica_metatype omc_GraphML_convertToGraphInfoArr(threadData_t *threadData, modelica_metatype _iGraphInfo)
219{
220 modelica_metatype _oGraphInfo = NULL((void*)0);
221 modelica_metatype _graphs = NULL((void*)0);
222 modelica_metatype _graphsArr = NULL((void*)0);
223 modelica_integer _graphCount;
224 modelica_metatype _nodes = NULL((void*)0);
225 modelica_metatype _nodesArr = NULL((void*)0);
226 modelica_integer _nodeCount;
227 modelica_metatype _edges = NULL((void*)0);
228 modelica_integer _edgeCount;
229 modelica_metatype _attributes = NULL((void*)0);
230 modelica_metatype _attributesArr = NULL((void*)0);
231 modelica_string _graphNodeKey = NULL((void*)0);
232 modelica_string _graphEdgeKey = NULL((void*)0);
233 modelica_integer tmp1;
234 modelica_integer tmp2;
235 modelica_integer tmp3;
236 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
237 MMC_SO()mmc_check_stackoverflow(threadData);
238 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
239 // _oGraphInfo has no default value.
240 // _graphs has no default value.
241 // _graphsArr has no default value.
242 // _graphCount has no default value.
243 // _nodes has no default value.
244 // _nodesArr has no default value.
245 // _nodeCount has no default value.
246 // _edges has no default value.
247 // _edgeCount has no default value.
248 // _attributes has no default value.
249 // _attributesArr has no default value.
250 // _graphNodeKey has no default value.
251 // _graphEdgeKey has no default value.
252#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
253 /* Pattern-matching assignment */
254#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
255 tmpMeta[0] = _iGraphInfo;
256#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
257 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,9)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((9 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
258#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
259 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
260#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
261 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
262#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
263 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
264#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
265 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
266#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
267 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
268#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
269 tmp2 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
270#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
271 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
272#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
273 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
274#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
275 tmp3 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
276#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
277 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
278#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
279 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (9)))))
;
280#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
281 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 10))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (10)))))
;
282#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
283 _graphs = tmpMeta[1];
284#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
285 _graphCount = tmp1 /* pattern as ty=Integer */;
286#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
287 _nodes = tmpMeta[3];
288#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
289 _nodeCount = tmp2 /* pattern as ty=Integer */;
290#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
291 _edges = tmpMeta[5];
292#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
293 _edgeCount = tmp3 /* pattern as ty=Integer */;
294#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
295 _attributes = tmpMeta[7];
296#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
297 _graphNodeKey = tmpMeta[8];
298#line 597 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
299 _graphEdgeKey = tmpMeta[9];
300#line 300 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
301
302#line 598 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
303 _graphsArr = listArray(_graphs);
304#line 304 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
305
306#line 599 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
307 _nodesArr = listArray(_nodes);
308#line 308 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
309
310#line 600 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
311 _attributesArr = omc_List_listArrayReverse(threadData, _attributes);
312#line 312 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
313
314#line 601 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
315 tmpMeta[0] = mmc_mk_box7(4, &GraphML_GraphInfo_GRAPHINFOARR__desc, _graphsArr, _nodesArr, _edges, _attributesArr, _graphNodeKey, _graphEdgeKey);
316#line 601 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
317 _oGraphInfo = tmpMeta[0];
318#line 318 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
319 _return: OMC_LABEL_UNUSED__attribute__((unused))
320 return _oGraphInfo;
321}
322
323DLLExport
324void omc_GraphML_dumpGraph(threadData_t *threadData, modelica_metatype _iGraphInfo, modelica_string _iFileName)
325{
326 modelica_metatype _iGraphInfoArr = NULL((void*)0);
327 MMC_SO()mmc_check_stackoverflow(threadData);
328 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
329 // _iGraphInfoArr has no default value.
330#line 574 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
331 _iGraphInfoArr = omc_GraphML_convertToGraphInfoArr(threadData, _iGraphInfo);
332#line 332 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
333
334#line 575 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
335 omc_Tpl_tplNoret2(threadData, boxvar_GraphMLDumpTpl_dumpGraphInfo((void*)((char*)(&(boxvar_lit_GraphMLDumpTpl_dumpGraphInfo
).header) + 3))
, _iGraphInfoArr, _iFileName);
336#line 336 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
337 _return: OMC_LABEL_UNUSED__attribute__((unused))
338 return;
339}
340
341PROTECTED_FUNCTION_STATIC modelica_integer omc_GraphML_compareAttributeTarget0(threadData_t *threadData, modelica_metatype _iTarget)
342{
343 modelica_integer _oCodec;
344 modelica_integer tmp1 = 0;
345 MMC_SO()mmc_check_stackoverflow(threadData);
346 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
347 // _oCodec has no default value.
348#line 348 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
349 { /* match expression */
350 modelica_metatype tmp4_1;
351 tmp4_1 = _iTarget;
352 {
353 int tmp4;
354 {
355 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
356 case 3: {
357
358 /* Pattern matching succeeded */
359#line 556 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
360 tmp1 = ((modelica_integer) 0);
361#line 361 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
362 goto tmp3_done;
363 }
364 case 4: {
365
366 /* Pattern matching succeeded */
367#line 557 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
368 tmp1 = ((modelica_integer) 1);
369#line 369 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
370 goto tmp3_done;
371 }
372 case 5: {
373
374 /* Pattern matching succeeded */
375#line 558 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
376 tmp1 = ((modelica_integer) 1);
377#line 377 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
378 goto tmp3_done;
379 }
380 }
381 goto tmp3_end;
382 tmp3_end: ;
383 }
384 goto goto_2;
385 goto_2:;
386 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
387 goto tmp3_done;
388 tmp3_done:;
389 }
390 }
391 _oCodec = tmp1;
392 _return: OMC_LABEL_UNUSED__attribute__((unused))
393 return _oCodec;
394}
395PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_GraphML_compareAttributeTarget0(threadData_t *threadData, modelica_metatype _iTarget)
396{
397 modelica_integer _oCodec;
398 modelica_metatype out_oCodec;
399 _oCodec = omc_GraphML_compareAttributeTarget0(threadData, _iTarget);
400 out_oCodec = mmc_mk_icon(_oCodec);
401 return out_oCodec;
402}
403
404PROTECTED_FUNCTION_STATIC modelica_boolean omc_GraphML_compareAttributeTargets(threadData_t *threadData, modelica_metatype _iTarget1, modelica_metatype _iTarget2)
405{
406 modelica_boolean _oEqual;
407 modelica_integer _tarInt1;
408 modelica_integer _tarInt2;
409 MMC_SO()mmc_check_stackoverflow(threadData);
410 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
411 // _oEqual has no default value.
412 // _tarInt1 has no default value.
413 // _tarInt2 has no default value.
414#line 546 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
415 _tarInt1 = omc_GraphML_compareAttributeTarget0(threadData, _iTarget1);
416#line 416 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
417
418#line 547 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
419 _tarInt2 = omc_GraphML_compareAttributeTarget0(threadData, _iTarget2);
420#line 420 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
421
422#line 548 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
423 _oEqual = (_tarInt1 == _tarInt2);
424#line 424 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
425 _return: OMC_LABEL_UNUSED__attribute__((unused))
426 return _oEqual;
427}
428PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_GraphML_compareAttributeTargets(threadData_t *threadData, modelica_metatype _iTarget1, modelica_metatype _iTarget2)
429{
430 modelica_boolean _oEqual;
431 modelica_metatype out_oEqual;
432 _oEqual = omc_GraphML_compareAttributeTargets(threadData, _iTarget1, _iTarget2);
433 out_oEqual = mmc_mk_icon(_oEqual);
434 return out_oEqual;
435}
436
437PROTECTED_FUNCTION_STATIC modelica_metatype omc_GraphML_getAttributeByNameAndTargetTail(threadData_t *threadData, modelica_metatype _iList, modelica_string _iAttributeName, modelica_metatype _iAttributeTarget)
438{
439 modelica_metatype _oAttribute = NULL((void*)0);
440 modelica_metatype _rest = NULL((void*)0);
441 modelica_integer _attIdx;
442 modelica_string _name = NULL((void*)0);
443 modelica_metatype _head = NULL((void*)0);
444 modelica_metatype _attTarget = NULL((void*)0);
445 modelica_metatype _tmpAttribute = NULL((void*)0);
446 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
447 MMC_SO()mmc_check_stackoverflow(threadData);
448 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
449 // _oAttribute has no default value.
450 // _rest has no default value.
451 // _attIdx has no default value.
452 // _name has no default value.
453 // _head has no default value.
454 // _attTarget has no default value.
455 // _tmpAttribute has no default value.
456#line 456 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
457 { /* matchcontinue expression */
458 volatile modelica_metatype tmp3_1;
459 tmp3_1 = _iList;
460 {
461 volatile mmc_switch_type tmp3;
462 int tmp4;
463 tmp3 = 0;
464 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) {
465 tmp2_top:
466 threadData->mmc_jumper = &new_mmc_jumper;
467 for (; tmp3 < 3; tmp3++) {
468 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
469 case 0: {
470 modelica_integer tmp5;
471 modelica_boolean tmp6;
472 modelica_boolean tmp7;
473 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
474 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
475 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
476 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
477 tmp5 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
478 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
479 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (6)))))
;
480 _head = tmpMeta[1];
481 _attIdx = tmp5 /* pattern as ty=Integer */;
482 _name = tmpMeta[4];
483 _attTarget = tmpMeta[5];
484 _rest = tmpMeta[2];
485 /* Pattern matching succeeded */
486#line 527 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
487 /* Pattern-matching assignment */
488#line 527 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
489 tmp6 = (stringEqual(_name, _iAttributeName)((((((*(mmc_uint_t*)((void*)((char*)(_name) - 3)))) >> (
3)) - 8)) == (((((*(mmc_uint_t*)((void*)((char*)(_iAttributeName
) - 3)))) >> (3)) - 8)) && !mmc_stringCompare(_name
,_iAttributeName))
);
490#line 527 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
491 if (1 != tmp6) goto goto_1;
492#line 492 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
493
494#line 528 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
495 /* Pattern-matching assignment */
496#line 528 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
497 tmp7 = omc_GraphML_compareAttributeTargets(threadData, _iAttributeTarget, _attTarget);
498#line 528 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
499 if (1 != tmp7) goto goto_1;
500#line 500 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
501#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
502 tmpMeta[1] = mmc_mk_box2(0, _head, mmc_mk_integermmc_mk_icon(_attIdx));
503#line 529 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
504 tmpMeta[0] = mmc_mk_some(tmpMeta[1]);
505#line 505 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
506 goto tmp2_done;
507 }
508 case 1: {
509 if (listEmpty(tmp3_1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp2_end;
510 tmpMeta[1] = MMC_CAR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
511 tmpMeta[2] = MMC_CDR(tmp3_1)(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
512 _head = tmpMeta[1];
513 _rest = tmpMeta[2];
514 /* Pattern matching succeeded */
515#line 532 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
516 tmpMeta[0] = omc_GraphML_getAttributeByNameAndTargetTail(threadData, _rest, _iAttributeName, _iAttributeTarget);
517#line 517 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
518 goto tmp2_done;
519 }
520 case 2: {
521
522 /* Pattern matching succeeded */
523#line 535 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
524 tmpMeta[0] = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
525#line 525 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
526 goto tmp2_done;
527 }
528 }
529 goto tmp2_end;
530 tmp2_end: ;
531 }
532 goto goto_1;
533 tmp2_done:
534 (void)tmp3;
535 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
536 goto tmp2_done2;
537 goto_1:;
538 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
539 if (++tmp3 < 3) {
540 goto tmp2_top;
541 }
542 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
543 tmp2_done2:;
544 }
545 }
546 _oAttribute = tmpMeta[0];
547 _return: OMC_LABEL_UNUSED__attribute__((unused))
548 return _oAttribute;
549}
550
551DLLExport
552modelica_metatype omc_GraphML_getAttributeByNameAndTarget(threadData_t *threadData, modelica_string _iAttributeName, modelica_metatype _iAttributeTarget, modelica_metatype _iGraphInfo)
553{
554 modelica_metatype _oAttribute = NULL((void*)0);
555 modelica_metatype _attributes = NULL((void*)0);
556 modelica_metatype _tmpRes = NULL((void*)0);
557 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
558 MMC_SO()mmc_check_stackoverflow(threadData);
559 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
560 // _oAttribute has no default value.
561 // _attributes has no default value.
562 // _tmpRes has no default value.
563#line 563 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
564 { /* match expression */
565 modelica_metatype tmp3_1;
566 tmp3_1 = _iGraphInfo;
567 {
568 volatile mmc_switch_type tmp3;
569 int tmp4;
570 tmp3 = 0;
571 for (; tmp3 < 2; tmp3++) {
572 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
573 case 0: {
574 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,9)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((9 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
575 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(8)))))
;
576
577 _attributes = tmpMeta[1];
578 /* Pattern matching succeeded */
579#line 502 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
580 tmpMeta[0] = omc_GraphML_getAttributeByNameAndTargetTail(threadData, _attributes, _iAttributeName, _iAttributeTarget);
581#line 581 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
582 goto tmp2_done;
583 }
584 case 1: {
585 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,9)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((9 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
586 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(8)))))
;
587
588 _attributes = tmpMeta[1];
589 /* Pattern matching succeeded */
590#line 506 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
591 tmpMeta[0] = omc_GraphML_getAttributeByNameAndTargetTail(threadData, _attributes, _iAttributeName, _iAttributeTarget);
592#line 592 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
593 goto tmp2_done;
594 }
595 }
596 goto tmp2_end;
597 tmp2_end: ;
598 }
599 goto goto_1;
600 goto_1:;
601 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
602 goto tmp2_done;
603 tmp2_done:;
604 }
605 }
606 _oAttribute = tmpMeta[0];
607 _return: OMC_LABEL_UNUSED__attribute__((unused))
608 return _oAttribute;
609}
610
611DLLExport
612modelica_metatype omc_GraphML_getMainGraph(threadData_t *threadData, modelica_metatype _iGraphInfo)
613{
614 modelica_metatype _oGraph = NULL((void*)0);
615 modelica_metatype _graphs = NULL((void*)0);
616 modelica_metatype _firstGraph = NULL((void*)0);
617 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
618 MMC_SO()mmc_check_stackoverflow(threadData);
619 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
620 // _oGraph has no default value.
621 // _graphs has no default value.
622 // _firstGraph has no default value.
623#line 623 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
624 { /* match expression */
625 modelica_metatype tmp3_1;
626 tmp3_1 = _iGraphInfo;
627 {
628 volatile mmc_switch_type tmp3;
629 int tmp4;
630 tmp3 = 0;
631 for (; tmp3 < 2; tmp3++) {
632 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
633 case 0: {
634 modelica_integer tmp5;
635 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,9)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((9 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
636 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
637 tmp5 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
638 if (0 != tmp5) goto tmp2_end;
639
640 /* Pattern matching succeeded */
641#line 482 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
642 tmpMeta[0] = mmc_mk_none()((void*)((char*)(&(mmc_none).header) + 3));
643#line 643 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
644 goto tmp2_done;
645 }
646 case 1: {
647 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,9)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((9 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
648 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
649
650 _graphs = tmpMeta[1];
651 /* Pattern matching succeeded */
652#line 485 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
653 _firstGraph = listHead(_graphs)boxptr_listHead(threadData,_graphs);
654#line 654 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
655#line 486 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
656 tmpMeta[1] = mmc_mk_box2(0, mmc_mk_integermmc_mk_icon(((modelica_integer) 1)), _firstGraph);
657#line 486 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
658 tmpMeta[0] = mmc_mk_some(tmpMeta[1]);
659#line 659 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
660 goto tmp2_done;
661 }
662 }
663 goto tmp2_end;
664 tmp2_end: ;
665 }
666 goto goto_1;
667 goto_1:;
668 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
669 goto tmp2_done;
670 tmp2_done:;
671 }
672 }
673 _oGraph = tmpMeta[0];
674 _return: OMC_LABEL_UNUSED__attribute__((unused))
675 return _oGraph;
676}
677
678DLLExport
679modelica_metatype omc_GraphML_addGraphAttributeValue(threadData_t *threadData, modelica_metatype _iValue, modelica_integer _iGraphIdx, modelica_metatype _iGraphInfo)
680{
681 modelica_metatype _oGraphInfo = NULL((void*)0);
682 modelica_metatype _graphs = NULL((void*)0);
683 modelica_integer _graphCount;
684 modelica_metatype _nodes = NULL((void*)0);
685 modelica_integer _nodeCount;
686 modelica_metatype _edges = NULL((void*)0);
687 modelica_integer _edgeCount;
688 modelica_metatype _attributes = NULL((void*)0);
689 modelica_string _graphNodeKey = NULL((void*)0);
690 modelica_string _graphEdgeKey = NULL((void*)0);
691 modelica_metatype _iGraph = NULL((void*)0);
692 modelica_string _gid = NULL((void*)0);
693 modelica_boolean _directed;
694 modelica_integer _newGraphIdx;
695 modelica_metatype _nodeIdc = NULL((void*)0);
696 modelica_metatype _attValues = NULL((void*)0);
697 modelica_integer tmp1;
698 modelica_integer tmp2;
699 modelica_integer tmp3;
700 modelica_integer tmp4;
701 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
702 MMC_SO()mmc_check_stackoverflow(threadData);
703 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
704 // _oGraphInfo has no default value.
705 // _graphs has no default value.
706 // _graphCount has no default value.
707 // _nodes has no default value.
708 // _nodeCount has no default value.
709 // _edges has no default value.
710 // _edgeCount has no default value.
711 // _attributes has no default value.
712 // _graphNodeKey has no default value.
713 // _graphEdgeKey has no default value.
714 // _iGraph has no default value.
715 // _gid has no default value.
716 // _directed has no default value.
717 // _newGraphIdx has no default value.
718 // _nodeIdc has no default value.
719 // _attValues has no default value.
720#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
721 /* Pattern-matching assignment */
722#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
723 tmpMeta[0] = _iGraphInfo;
724#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
725 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,9)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((9 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
726#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
727 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
728#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
729 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
730#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
731 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
732#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
733 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
734#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
735 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
736#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
737 tmp2 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
738#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
739 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
740#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
741 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
742#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
743 tmp3 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
744#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
745 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
746#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
747 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (9)))))
;
748#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
749 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 10))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (10)))))
;
750#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
751 _graphs = tmpMeta[1];
752#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
753 _graphCount = tmp1 /* pattern as ty=Integer */;
754#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
755 _nodes = tmpMeta[3];
756#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
757 _nodeCount = tmp2 /* pattern as ty=Integer */;
758#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
759 _edges = tmpMeta[5];
760#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
761 _edgeCount = tmp3 /* pattern as ty=Integer */;
762#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
763 _attributes = tmpMeta[7];
764#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
765 _graphNodeKey = tmpMeta[8];
766#line 456 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
767 _graphEdgeKey = tmpMeta[9];
768#line 768 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
769
770#line 457 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
771 _iGraph = listGet(_graphs, ((modelica_integer) 1) + _graphCount - _iGraphIdx)boxptr_listGet(threadData,_graphs,mmc_mk_icon(((modelica_integer
) 1) + _graphCount - _iGraphIdx))
;
772#line 772 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
773
774#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
775 /* Pattern-matching assignment */
776#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
777 tmpMeta[0] = _iGraph;
778#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
779 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
780#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
781 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
782#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
783 tmp4 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
784#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
785 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
786#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
787 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
788#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
789 _gid = tmpMeta[1];
790#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
791 _directed = tmp4 /* pattern as ty=Boolean */;
792#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
793 _nodeIdc = tmpMeta[3];
794#line 458 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
795 _attValues = tmpMeta[4];
796#line 796 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
797
798#line 461 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
799 tmpMeta[0] = mmc_mk_cons(_iValue, _attValues);
800#line 461 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
801 _attValues = tmpMeta[0];
802#line 802 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
803
804#line 463 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
805 tmpMeta[0] = mmc_mk_box5(3, &GraphML_Graph_GRAPH__desc, _gid, mmc_mk_boolean(_directed)((_directed) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), _nodeIdc, _attValues);
806#line 463 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
807 _iGraph = tmpMeta[0];
808#line 808 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
809
810#line 464 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
811 _graphs = omc_List_set(threadData, _graphs, ((modelica_integer) 1) + _graphCount - _iGraphIdx, _iGraph);
812#line 812 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
813
814#line 465 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
815 tmpMeta[0] = mmc_mk_box10(3, &GraphML_GraphInfo_GRAPHINFO__desc, _graphs, mmc_mk_integermmc_mk_icon(_graphCount), _nodes, mmc_mk_integermmc_mk_icon(_nodeCount), _edges, mmc_mk_integermmc_mk_icon(_edgeCount), _attributes, _graphNodeKey, _graphEdgeKey);
816#line 465 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
817 _oGraphInfo = tmpMeta[0];
818#line 818 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
819 _return: OMC_LABEL_UNUSED__attribute__((unused))
820 return _oGraphInfo;
821}
822modelica_metatype boxptr_GraphML_addGraphAttributeValue(threadData_t *threadData, modelica_metatype _iValue, modelica_metatype _iGraphIdx, modelica_metatype _iGraphInfo)
823{
824 modelica_integer tmp1;
825 modelica_metatype _oGraphInfo = NULL((void*)0);
826 tmp1 = mmc_unbox_integer(_iGraphIdx)(((mmc_sint_t) (_iGraphIdx)) >> 1);
827 _oGraphInfo = omc_GraphML_addGraphAttributeValue(threadData, _iValue, tmp1, _iGraphInfo);
828 /* skip box _oGraphInfo; GraphML.GraphInfo */
829 return _oGraphInfo;
830}
831
832DLLExport
833modelica_metatype omc_GraphML_addAttribute(threadData_t *threadData, modelica_string _defaultValue, modelica_string _name, modelica_metatype _attType, modelica_metatype _attTarget, modelica_metatype _iGraphInfo, modelica_metatype *out_oAttribute)
834{
835 modelica_metatype _oGraphInfo = NULL((void*)0);
836 modelica_metatype _oAttribute = NULL((void*)0);
837 modelica_metatype _tmpAttribute = NULL((void*)0);
838 modelica_integer _attIdx;
839 modelica_metatype _graphs = NULL((void*)0);
840 modelica_integer _graphCount;
841 modelica_metatype _nodes = NULL((void*)0);
842 modelica_integer _nodeCount;
843 modelica_metatype _edges = NULL((void*)0);
844 modelica_integer _edgeCount;
845 modelica_metatype _attributes = NULL((void*)0);
846 modelica_string _graphNodeKey = NULL((void*)0);
847 modelica_string _graphEdgeKey = NULL((void*)0);
848 modelica_integer tmp1;
849 modelica_integer tmp2;
850 modelica_integer tmp3;
851 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
852 MMC_SO()mmc_check_stackoverflow(threadData);
853 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
854 // _oGraphInfo has no default value.
855 // _oAttribute has no default value.
856 // _tmpAttribute has no default value.
857 // _attIdx has no default value.
858 // _graphs has no default value.
859 // _graphCount has no default value.
860 // _nodes has no default value.
861 // _nodeCount has no default value.
862 // _edges has no default value.
863 // _edgeCount has no default value.
864 // _attributes has no default value.
865 // _graphNodeKey has no default value.
866 // _graphEdgeKey has no default value.
867#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
868 /* Pattern-matching assignment */
869#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
870 tmpMeta[0] = _iGraphInfo;
871#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
872 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,9)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((9 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
873#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
874 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
875#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
876 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
877#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
878 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
879#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
880 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
881#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
882 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
883#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
884 tmp2 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
885#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
886 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
887#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
888 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
889#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
890 tmp3 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
891#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
892 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
893#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
894 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (9)))))
;
895#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
896 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 10))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (10)))))
;
897#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
898 _graphs = tmpMeta[1];
899#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
900 _graphCount = tmp1 /* pattern as ty=Integer */;
901#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
902 _nodes = tmpMeta[3];
903#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
904 _nodeCount = tmp2 /* pattern as ty=Integer */;
905#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
906 _edges = tmpMeta[5];
907#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
908 _edgeCount = tmp3 /* pattern as ty=Integer */;
909#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
910 _attributes = tmpMeta[7];
911#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
912 _graphNodeKey = tmpMeta[8];
913#line 423 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
914 _graphEdgeKey = tmpMeta[9];
915#line 915 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
916
917#line 424 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
918 _attIdx = ((modelica_integer) 1) + listLength(_attributes);
919#line 919 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
920
921#line 425 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
922 tmpMeta[0] = mmc_mk_box6(3, &GraphML_Attribute_ATTRIBUTE__desc, mmc_mk_integermmc_mk_icon(_attIdx), _defaultValue, _name, _attType, _attTarget);
923#line 425 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
924 _tmpAttribute = tmpMeta[0];
925#line 925 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
926
927#line 426 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
928 tmpMeta[0] = mmc_mk_cons(_tmpAttribute, _attributes);
929#line 426 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
930 _attributes = tmpMeta[0];
931#line 931 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
932
933#line 427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
934 tmpMeta[0] = mmc_mk_box10(3, &GraphML_GraphInfo_GRAPHINFO__desc, _graphs, mmc_mk_integermmc_mk_icon(_graphCount), _nodes, mmc_mk_integermmc_mk_icon(_nodeCount), _edges, mmc_mk_integermmc_mk_icon(_edgeCount), _attributes, _graphNodeKey, _graphEdgeKey);
935#line 427 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
936 _oGraphInfo = tmpMeta[0];
937#line 937 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
938
939#line 428 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
940 tmpMeta[0] = mmc_mk_box2(0, _tmpAttribute, mmc_mk_integermmc_mk_icon(_attIdx));
941#line 428 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
942 _oAttribute = tmpMeta[0];
943#line 943 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
944 _return: OMC_LABEL_UNUSED__attribute__((unused))
945 if (out_oAttribute) { *out_oAttribute = _oAttribute; }
946 return _oGraphInfo;
947}
948
949DLLExport
950modelica_metatype omc_GraphML_addEdge(threadData_t *threadData, modelica_string _id, modelica_string _target, modelica_string _source, modelica_string _color, modelica_metatype _lineType, modelica_real _lineWidth, modelica_boolean _smooth, modelica_metatype _labels, modelica_metatype _arrows, modelica_metatype _attValues, modelica_metatype _iGraphInfo, modelica_metatype *out_oEdge)
951{
952 modelica_metatype _oGraphInfo = NULL((void*)0);
953 modelica_metatype _oEdge = NULL((void*)0);
954 modelica_metatype _tmpEdge = NULL((void*)0);
955 modelica_metatype _graphs = NULL((void*)0);
956 modelica_integer _graphCount;
957 modelica_metatype _nodes = NULL((void*)0);
958 modelica_integer _nodeCount;
959 modelica_metatype _edges = NULL((void*)0);
960 modelica_integer _edgeCount;
961 modelica_metatype _attributes = NULL((void*)0);
962 modelica_string _graphNodeKey = NULL((void*)0);
963 modelica_string _graphEdgeKey = NULL((void*)0);
964 modelica_integer tmp1;
965 modelica_integer tmp2;
966 modelica_integer tmp3;
967 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
968 MMC_SO()mmc_check_stackoverflow(threadData);
969 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
970 // _oGraphInfo has no default value.
971 // _oEdge has no default value.
972 // _tmpEdge has no default value.
973 // _graphs has no default value.
974 // _graphCount has no default value.
975 // _nodes has no default value.
976 // _nodeCount has no default value.
977 // _edges has no default value.
978 // _edgeCount has no default value.
979 // _attributes has no default value.
980 // _graphNodeKey has no default value.
981 // _graphEdgeKey has no default value.
982#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
983 /* Pattern-matching assignment */
984#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
985 tmpMeta[0] = _iGraphInfo;
986#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
987 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,9)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((9 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
988#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
989 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
990#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
991 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
992#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
993 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
994#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
995 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
996#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
997 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
998#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
999 tmp2 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1000#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1001 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1002#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1003 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
1004#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1005 tmp3 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
1006#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1007 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
1008#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1009 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (9)))))
;
1010#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1011 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 10))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (10)))))
;
1012#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1013 _graphs = tmpMeta[1];
1014#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1015 _graphCount = tmp1 /* pattern as ty=Integer */;
1016#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1017 _nodes = tmpMeta[3];
1018#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1019 _nodeCount = tmp2 /* pattern as ty=Integer */;
1020#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1021 _edges = tmpMeta[5];
1022#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1023 _edgeCount = tmp3 /* pattern as ty=Integer */;
1024#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1025 _attributes = tmpMeta[7];
1026#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1027 _graphNodeKey = tmpMeta[8];
1028#line 390 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1029 _graphEdgeKey = tmpMeta[9];
1030#line 1030 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1031
1032#line 391 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1033 _edgeCount = ((modelica_integer) 1) + _edgeCount;
1034#line 1034 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1035
1036#line 392 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1037 tmpMeta[0] = mmc_mk_box11(3, &GraphML_Edge_EDGE__desc, _id, _target, _source, _color, _lineType, mmc_mk_realmmc_mk_rcon(_lineWidth), mmc_mk_boolean(_smooth)((_smooth) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), _labels, _arrows, _attValues);
1038#line 392 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1039 _tmpEdge = tmpMeta[0];
1040#line 1040 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1041
1042#line 393 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1043 tmpMeta[0] = mmc_mk_cons(_tmpEdge, _edges);
1044#line 393 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1045 _edges = tmpMeta[0];
1046#line 1046 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1047
1048#line 394 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1049 tmpMeta[0] = mmc_mk_box10(3, &GraphML_GraphInfo_GRAPHINFO__desc, _graphs, mmc_mk_integermmc_mk_icon(_graphCount), _nodes, mmc_mk_integermmc_mk_icon(_nodeCount), _edges, mmc_mk_integermmc_mk_icon(_edgeCount), _attributes, _graphNodeKey, _graphEdgeKey);
1050#line 394 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1051 _oGraphInfo = tmpMeta[0];
1052#line 1052 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1053
1054#line 395 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1055 tmpMeta[0] = mmc_mk_box2(0, _tmpEdge, mmc_mk_integermmc_mk_icon(_edgeCount));
1056#line 395 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1057 _oEdge = tmpMeta[0];
1058#line 1058 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1059 _return: OMC_LABEL_UNUSED__attribute__((unused))
1060 if (out_oEdge) { *out_oEdge = _oEdge; }
1061 return _oGraphInfo;
1062}
1063modelica_metatype boxptr_GraphML_addEdge(threadData_t *threadData, modelica_metatype _id, modelica_metatype _target, modelica_metatype _source, modelica_metatype _color, modelica_metatype _lineType, modelica_metatype _lineWidth, modelica_metatype _smooth, modelica_metatype _labels, modelica_metatype _arrows, modelica_metatype _attValues, modelica_metatype _iGraphInfo, modelica_metatype *out_oEdge)
1064{
1065 modelica_real tmp1;
1066 modelica_integer tmp2;
1067 modelica_metatype _oGraphInfo = NULL((void*)0);
1068 tmp1 = mmc_unbox_real(_lineWidth)mmc_prim_get_real(_lineWidth);
1069 tmp2 = mmc_unbox_integer(_smooth)(((mmc_sint_t) (_smooth)) >> 1);
1070 _oGraphInfo = omc_GraphML_addEdge(threadData, _id, _target, _source, _color, _lineType, tmp1, tmp2, _labels, _arrows, _attValues, _iGraphInfo, out_oEdge);
1071 /* skip box _oGraphInfo; GraphML.GraphInfo */
1072 /* skip box _oEdge; tuple<GraphML.Edge, #Integer> */
1073 return _oGraphInfo;
1074}
1075
1076DLLExport
1077modelica_metatype omc_GraphML_addGroupNode(threadData_t *threadData, modelica_string _id, modelica_integer _iGraphIdx, modelica_boolean _isFolded, modelica_string _iHeader, modelica_metatype _iGraphInfo, modelica_metatype *out_oNode, modelica_metatype *out_oGraph)
1078{
1079 modelica_metatype _oGraphInfo = NULL((void*)0);
1080 modelica_metatype _oNode = NULL((void*)0);
1081 modelica_metatype _oGraph = NULL((void*)0);
1082 modelica_metatype _tmpGraphInfo = NULL((void*)0);
1083 modelica_metatype _tmpNode = NULL((void*)0);
1084 modelica_metatype _graphs = NULL((void*)0);
1085 modelica_integer _graphCount;
1086 modelica_metatype _nodes = NULL((void*)0);
1087 modelica_integer _nodeCount;
1088 modelica_metatype _edges = NULL((void*)0);
1089 modelica_integer _edgeCount;
1090 modelica_metatype _attributes = NULL((void*)0);
1091 modelica_string _graphNodeKey = NULL((void*)0);
1092 modelica_string _graphEdgeKey = NULL((void*)0);
1093 modelica_metatype _iGraph = NULL((void*)0);
1094 modelica_metatype _newGraph = NULL((void*)0);
1095 modelica_string _gid = NULL((void*)0);
1096 modelica_boolean _directed;
1097 modelica_integer _newGraphIdx;
1098 modelica_metatype _nodeIdc = NULL((void*)0);
1099 modelica_metatype _attValues = NULL((void*)0);
1100 modelica_integer tmp1;
1101 modelica_integer tmp2;
1102 modelica_integer tmp3;
1103 modelica_integer tmp4;
1104 modelica_integer tmp5;
1105 modelica_integer tmp6;
1106 modelica_integer tmp7;
1107 modelica_integer tmp8;
1108 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
1109 MMC_SO()mmc_check_stackoverflow(threadData);
1110 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1111 // _oGraphInfo has no default value.
1112 // _oNode has no default value.
1113 // _oGraph has no default value.
1114 // _tmpGraphInfo has no default value.
1115 // _tmpNode has no default value.
1116 // _graphs has no default value.
1117 // _graphCount has no default value.
1118 // _nodes has no default value.
1119 // _nodeCount has no default value.
1120 // _edges has no default value.
1121 // _edgeCount has no default value.
1122 // _attributes has no default value.
1123 // _graphNodeKey has no default value.
1124 // _graphEdgeKey has no default value.
1125 // _iGraph has no default value.
1126 // _newGraph has no default value.
1127 // _gid has no default value.
1128 // _directed has no default value.
1129 // _newGraphIdx has no default value.
1130 // _nodeIdc has no default value.
1131 // _attValues has no default value.
1132#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1133 /* Pattern-matching assignment */
1134#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1135 tmpMeta[0] = _iGraphInfo;
1136#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1137 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,9)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((9 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1138#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1139 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1140#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1141 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1142#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1143 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1144#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1145 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1146#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1147 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1148#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1149 tmp2 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1150#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1151 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1152#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1153 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
1154#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1155 tmp3 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
1156#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1157 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
1158#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1159 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (9)))))
;
1160#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1161 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 10))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (10)))))
;
1162#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1163 _graphs = tmpMeta[1];
1164#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1165 _graphCount = tmp1 /* pattern as ty=Integer */;
1166#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1167 _nodes = tmpMeta[3];
1168#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1169 _nodeCount = tmp2 /* pattern as ty=Integer */;
1170#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1171 _edges = tmpMeta[5];
1172#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1173 _edgeCount = tmp3 /* pattern as ty=Integer */;
Value stored to '_edgeCount' is never read
1174#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1175 _attributes = tmpMeta[7];
1176#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1177 _graphNodeKey = tmpMeta[8];
1178#line 341 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1179 _graphEdgeKey = tmpMeta[9];
1180#line 1180 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1181
1182#line 342 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1183 _iGraph = listGet(_graphs, ((modelica_integer) 1) + _graphCount - _iGraphIdx)boxptr_listGet(threadData,_graphs,mmc_mk_icon(((modelica_integer
) 1) + _graphCount - _iGraphIdx))
;
1184#line 1184 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1185
1186#line 343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1187 /* Pattern-matching assignment */
1188#line 343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1189 tmpMeta[0] = _iGraph;
1190#line 343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1191 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1192#line 343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1193 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1194#line 343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1195 tmp4 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1196#line 343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1197 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1198#line 343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1199 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1200#line 343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1201 _gid = tmpMeta[1];
1202#line 343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1203 _directed = tmp4 /* pattern as ty=Boolean */;
1204#line 343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1205 _nodeIdc = tmpMeta[3];
1206#line 343 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1207 _attValues = tmpMeta[4];
1208#line 1208 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1209
1210#line 345 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1211 /* Pattern-matching tuple assignment */
1212#line 345 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1213 tmpMeta[3] = stringAppend(_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_id);
1214#line 345 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1215 tmpMeta[4] = omc_GraphML_addGraph(threadData, tmpMeta[3], _directed, _iGraphInfo, &tmpMeta[0]);
1216#line 345 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1217 _tmpGraphInfo = tmpMeta[4];
1218#line 345 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1219 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1220#line 345 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1221 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1222#line 345 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1223 tmp5 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1224#line 345 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1225 _newGraph = tmpMeta[1];
1226#line 345 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1227 _newGraphIdx = tmp5 /* pattern as ty=Integer */;
1228#line 1228 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1229
1230#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1231 /* Pattern-matching assignment */
1232#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1233 tmpMeta[0] = _tmpGraphInfo;
1234#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1235 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,9)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((9 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1236#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1237 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1238#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1239 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1240#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1241 tmp6 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1242#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1243 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1244#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1245 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1246#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1247 tmp7 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1248#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1249 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1250#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1251 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
1252#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1253 tmp8 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
1254#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1255 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
1256#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1257 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (9)))))
;
1258#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1259 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 10))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (10)))))
;
1260#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1261 _graphs = tmpMeta[1];
1262#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1263 _graphCount = tmp6 /* pattern as ty=Integer */;
1264#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1265 _nodes = tmpMeta[3];
1266#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1267 _nodeCount = tmp7 /* pattern as ty=Integer */;
1268#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1269 _edges = tmpMeta[5];
1270#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1271 _edgeCount = tmp8 /* pattern as ty=Integer */;
1272#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1273 _attributes = tmpMeta[7];
1274#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1275 _graphNodeKey = tmpMeta[8];
1276#line 346 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1277 _graphEdgeKey = tmpMeta[9];
1278#line 1278 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1279
1280#line 348 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1281 _nodeCount = ((modelica_integer) 1) + _nodeCount;
1282#line 1282 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1283
1284#line 349 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1285 tmpMeta[0] = mmc_mk_box5(4, &GraphML_Node_GROUPNODE__desc, _id, mmc_mk_integermmc_mk_icon(_newGraphIdx), mmc_mk_boolean(_isFolded)((_isFolded) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), _iHeader);
1286#line 349 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1287 _tmpNode = tmpMeta[0];
1288#line 1288 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1289
1290#line 350 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1291 tmpMeta[0] = mmc_mk_cons(_tmpNode, _nodes);
1292#line 350 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1293 _nodes = tmpMeta[0];
1294#line 1294 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1295
1296#line 351 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1297 tmpMeta[0] = mmc_mk_cons(mmc_mk_integermmc_mk_icon(_nodeCount), _nodeIdc);
1298#line 351 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1299 _nodeIdc = tmpMeta[0];
1300#line 1300 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1301
1302#line 353 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1303 tmpMeta[0] = mmc_mk_box5(3, &GraphML_Graph_GRAPH__desc, _gid, mmc_mk_boolean(_directed)((_directed) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), _nodeIdc, _attValues);
1304#line 353 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1305 _iGraph = tmpMeta[0];
1306#line 1306 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1307
1308#line 354 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1309 _graphs = omc_List_set(threadData, _graphs, ((modelica_integer) 1) + _graphCount - _iGraphIdx, _iGraph);
1310#line 1310 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1311
1312#line 355 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1313 tmpMeta[0] = mmc_mk_box10(3, &GraphML_GraphInfo_GRAPHINFO__desc, _graphs, mmc_mk_integermmc_mk_icon(_graphCount), _nodes, mmc_mk_integermmc_mk_icon(_nodeCount), _edges, mmc_mk_integermmc_mk_icon(_edgeCount), _attributes, _graphNodeKey, _graphEdgeKey);
1314#line 355 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1315 _oGraphInfo = tmpMeta[0];
1316#line 1316 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1317
1318#line 356 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1319 tmpMeta[0] = mmc_mk_box2(0, _tmpNode, mmc_mk_integermmc_mk_icon(_nodeCount));
1320#line 356 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1321 _oNode = tmpMeta[0];
1322#line 1322 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1323
1324#line 357 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1325 tmpMeta[0] = mmc_mk_box2(0, _newGraph, mmc_mk_integermmc_mk_icon(_newGraphIdx));
1326#line 357 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1327 _oGraph = tmpMeta[0];
1328#line 1328 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1329 _return: OMC_LABEL_UNUSED__attribute__((unused))
1330 if (out_oNode) { *out_oNode = _oNode; }
1331 if (out_oGraph) { *out_oGraph = _oGraph; }
1332 return _oGraphInfo;
1333}
1334modelica_metatype boxptr_GraphML_addGroupNode(threadData_t *threadData, modelica_metatype _id, modelica_metatype _iGraphIdx, modelica_metatype _isFolded, modelica_metatype _iHeader, modelica_metatype _iGraphInfo, modelica_metatype *out_oNode, modelica_metatype *out_oGraph)
1335{
1336 modelica_integer tmp1;
1337 modelica_integer tmp2;
1338 modelica_metatype _oGraphInfo = NULL((void*)0);
1339 tmp1 = mmc_unbox_integer(_iGraphIdx)(((mmc_sint_t) (_iGraphIdx)) >> 1);
1340 tmp2 = mmc_unbox_integer(_isFolded)(((mmc_sint_t) (_isFolded)) >> 1);
1341 _oGraphInfo = omc_GraphML_addGroupNode(threadData, _id, tmp1, tmp2, _iHeader, _iGraphInfo, out_oNode, out_oGraph);
1342 /* skip box _oGraphInfo; GraphML.GraphInfo */
1343 /* skip box _oNode; tuple<GraphML.Node, #Integer> */
1344 /* skip box _oGraph; tuple<GraphML.Graph, #Integer> */
1345 return _oGraphInfo;
1346}
1347
1348DLLExport
1349modelica_metatype omc_GraphML_addNode(threadData_t *threadData, modelica_string _id, modelica_string _backgroundColor, modelica_real _borderWidth, modelica_metatype _nodeLabels, modelica_metatype _shapeType, modelica_metatype _optDesc, modelica_metatype _attValues, modelica_integer _iGraphIdx, modelica_metatype _iGraphInfo, modelica_metatype *out_oNode)
1350{
1351 modelica_metatype _oGraphInfo = NULL((void*)0);
1352 modelica_metatype _oNode = NULL((void*)0);
1353 modelica_metatype _tmpNode = NULL((void*)0);
1354 modelica_metatype _graphs = NULL((void*)0);
1355 modelica_integer _graphCount;
1356 modelica_metatype _nodes = NULL((void*)0);
1357 modelica_integer _nodeCount;
1358 modelica_metatype _edges = NULL((void*)0);
1359 modelica_integer _edgeCount;
1360 modelica_metatype _attributes = NULL((void*)0);
1361 modelica_string _graphNodeKey = NULL((void*)0);
1362 modelica_string _graphEdgeKey = NULL((void*)0);
1363 modelica_metatype _iGraph = NULL((void*)0);
1364 modelica_string _gid = NULL((void*)0);
1365 modelica_boolean _directed;
1366 modelica_metatype _nodeIdc = NULL((void*)0);
1367 modelica_metatype _gAttValues = NULL((void*)0);
1368 modelica_integer tmp1;
1369 modelica_integer tmp2;
1370 modelica_integer tmp3;
1371 modelica_integer tmp4;
1372 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
1373 MMC_SO()mmc_check_stackoverflow(threadData);
1374 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1375 // _oGraphInfo has no default value.
1376 // _oNode has no default value.
1377 // _tmpNode has no default value.
1378 // _graphs has no default value.
1379 // _graphCount has no default value.
1380 // _nodes has no default value.
1381 // _nodeCount has no default value.
1382 // _edges has no default value.
1383 // _edgeCount has no default value.
1384 // _attributes has no default value.
1385 // _graphNodeKey has no default value.
1386 // _graphEdgeKey has no default value.
1387 // _iGraph has no default value.
1388 // _gid has no default value.
1389 // _directed has no default value.
1390 // _nodeIdc has no default value.
1391 // _gAttValues has no default value.
1392#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1393 /* Pattern-matching assignment */
1394#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1395 tmpMeta[0] = _iGraphInfo;
1396#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1397 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,9)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((9 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1398#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1399 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1400#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1401 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1402#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1403 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1404#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1405 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1406#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1407 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1408#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1409 tmp2 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1410#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1411 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1412#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1413 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
1414#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1415 tmp3 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
1416#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1417 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
1418#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1419 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (9)))))
;
1420#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1421 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 10))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (10)))))
;
1422#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1423 _graphs = tmpMeta[1];
1424#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1425 _graphCount = tmp1 /* pattern as ty=Integer */;
1426#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1427 _nodes = tmpMeta[3];
1428#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1429 _nodeCount = tmp2 /* pattern as ty=Integer */;
1430#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1431 _edges = tmpMeta[5];
1432#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1433 _edgeCount = tmp3 /* pattern as ty=Integer */;
1434#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1435 _attributes = tmpMeta[7];
1436#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1437 _graphNodeKey = tmpMeta[8];
1438#line 296 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1439 _graphEdgeKey = tmpMeta[9];
1440#line 1440 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1441
1442#line 297 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1443 _iGraph = listGet(_graphs, ((modelica_integer) 1) + _graphCount - _iGraphIdx)boxptr_listGet(threadData,_graphs,mmc_mk_icon(((modelica_integer
) 1) + _graphCount - _iGraphIdx))
;
1444#line 1444 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1445
1446#line 298 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1447 /* Pattern-matching assignment */
1448#line 298 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1449 tmpMeta[0] = _iGraph;
1450#line 298 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1451 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1452#line 298 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1453 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1454#line 298 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1455 tmp4 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1456#line 298 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1457 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1458#line 298 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1459 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1460#line 298 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1461 _gid = tmpMeta[1];
1462#line 298 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1463 _directed = tmp4 /* pattern as ty=Boolean */;
1464#line 298 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1465 _nodeIdc = tmpMeta[3];
1466#line 298 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1467 _gAttValues = tmpMeta[4];
1468#line 1468 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1469
1470#line 299 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1471 _nodeCount = ((modelica_integer) 1) + _nodeCount;
1472#line 1472 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1473
1474#line 300 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1475 tmpMeta[0] = mmc_mk_box8(3, &GraphML_Node_NODE__desc, _id, _backgroundColor, mmc_mk_realmmc_mk_rcon(_borderWidth), _nodeLabels, _shapeType, _optDesc, _attValues);
1476#line 300 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1477 _tmpNode = tmpMeta[0];
1478#line 1478 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1479
1480#line 301 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1481 tmpMeta[0] = mmc_mk_cons(_tmpNode, _nodes);
1482#line 301 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1483 _nodes = tmpMeta[0];
1484#line 1484 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1485
1486#line 302 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1487 tmpMeta[0] = mmc_mk_cons(mmc_mk_integermmc_mk_icon(_nodeCount), _nodeIdc);
1488#line 302 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1489 _nodeIdc = tmpMeta[0];
1490#line 1490 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1491
1492#line 303 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1493 tmpMeta[0] = mmc_mk_box5(3, &GraphML_Graph_GRAPH__desc, _gid, mmc_mk_boolean(_directed)((_directed) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), _nodeIdc, _gAttValues);
1494#line 303 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1495 _iGraph = tmpMeta[0];
1496#line 1496 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1497
1498#line 304 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1499 _graphs = omc_List_set(threadData, _graphs, ((modelica_integer) 1) + _graphCount - _iGraphIdx, _iGraph);
1500#line 1500 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1501
1502#line 305 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1503 tmpMeta[0] = mmc_mk_box10(3, &GraphML_GraphInfo_GRAPHINFO__desc, _graphs, mmc_mk_integermmc_mk_icon(_graphCount), _nodes, mmc_mk_integermmc_mk_icon(_nodeCount), _edges, mmc_mk_integermmc_mk_icon(_edgeCount), _attributes, _graphNodeKey, _graphEdgeKey);
1504#line 305 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1505 _oGraphInfo = tmpMeta[0];
1506#line 1506 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1507
1508#line 306 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1509 tmpMeta[0] = mmc_mk_box2(0, _tmpNode, mmc_mk_integermmc_mk_icon(_nodeCount));
1510#line 306 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1511 _oNode = tmpMeta[0];
1512#line 1512 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1513 _return: OMC_LABEL_UNUSED__attribute__((unused))
1514 if (out_oNode) { *out_oNode = _oNode; }
1515 return _oGraphInfo;
1516}
1517modelica_metatype boxptr_GraphML_addNode(threadData_t *threadData, modelica_metatype _id, modelica_metatype _backgroundColor, modelica_metatype _borderWidth, modelica_metatype _nodeLabels, modelica_metatype _shapeType, modelica_metatype _optDesc, modelica_metatype _attValues, modelica_metatype _iGraphIdx, modelica_metatype _iGraphInfo, modelica_metatype *out_oNode)
1518{
1519 modelica_real tmp1;
1520 modelica_integer tmp2;
1521 modelica_metatype _oGraphInfo = NULL((void*)0);
1522 tmp1 = mmc_unbox_real(_borderWidth)mmc_prim_get_real(_borderWidth);
1523 tmp2 = mmc_unbox_integer(_iGraphIdx)(((mmc_sint_t) (_iGraphIdx)) >> 1);
1524 _oGraphInfo = omc_GraphML_addNode(threadData, _id, _backgroundColor, tmp1, _nodeLabels, _shapeType, _optDesc, _attValues, tmp2, _iGraphInfo, out_oNode);
1525 /* skip box _oGraphInfo; GraphML.GraphInfo */
1526 /* skip box _oNode; tuple<GraphML.Node, #Integer> */
1527 return _oGraphInfo;
1528}
1529
1530DLLExport
1531modelica_metatype omc_GraphML_addGraph(threadData_t *threadData, modelica_string _id, modelica_boolean _directed, modelica_metatype _iGraphInfo, modelica_metatype *out_oGraph)
1532{
1533 modelica_metatype _oGraphInfo = NULL((void*)0);
1534 modelica_metatype _oGraph = NULL((void*)0);
1535 modelica_metatype _tmpGraph = NULL((void*)0);
1536 modelica_metatype _graphs = NULL((void*)0);
1537 modelica_integer _graphCount;
1538 modelica_metatype _nodes = NULL((void*)0);
1539 modelica_integer _nodeCount;
1540 modelica_metatype _edges = NULL((void*)0);
1541 modelica_integer _edgeCount;
1542 modelica_metatype _attributes = NULL((void*)0);
1543 modelica_string _graphNodeKey = NULL((void*)0);
1544 modelica_string _graphEdgeKey = NULL((void*)0);
1545 modelica_integer tmp1;
1546 modelica_integer tmp2;
1547 modelica_integer tmp3;
1548 modelica_metatype tmpMeta[10] __attribute__((unused)) = {0};
1549 MMC_SO()mmc_check_stackoverflow(threadData);
1550 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1551 // _oGraphInfo has no default value.
1552 // _oGraph has no default value.
1553 // _tmpGraph has no default value.
1554 // _graphs has no default value.
1555 // _graphCount has no default value.
1556 // _nodes has no default value.
1557 // _nodeCount has no default value.
1558 // _edges has no default value.
1559 // _edgeCount has no default value.
1560 // _attributes has no default value.
1561 // _graphNodeKey has no default value.
1562 // _graphEdgeKey has no default value.
1563#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1564 /* Pattern-matching assignment */
1565#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1566 tmpMeta[0] = _iGraphInfo;
1567#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1568 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],0,9)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((9 +1)
<< 10) + (((0 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1569#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1570 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1571#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1572 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
1573#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1574 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1575#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1576 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
1577#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1578 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
1579#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1580 tmp2 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
1581#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1582 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
1583#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1584 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
1585#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1586 tmp3 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
1587#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1588 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
1589#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1590 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (9)))))
;
1591#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1592 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 10))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (10)))))
;
1593#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1594 _graphs = tmpMeta[1];
1595#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1596 _graphCount = tmp1 /* pattern as ty=Integer */;
1597#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1598 _nodes = tmpMeta[3];
1599#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1600 _nodeCount = tmp2 /* pattern as ty=Integer */;
1601#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1602 _edges = tmpMeta[5];
1603#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1604 _edgeCount = tmp3 /* pattern as ty=Integer */;
1605#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1606 _attributes = tmpMeta[7];
1607#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1608 _graphNodeKey = tmpMeta[8];
1609#line 254 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1610 _graphEdgeKey = tmpMeta[9];
1611#line 1611 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1612
1613#line 255 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1614 _graphCount = ((modelica_integer) 1) + _graphCount;
1615#line 1615 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1616
1617#line 256 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1618 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1619#line 256 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1620 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1621#line 256 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1622 tmpMeta[2] = mmc_mk_box5(3, &GraphML_Graph_GRAPH__desc, _id, mmc_mk_boolean(_directed)((_directed) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), tmpMeta[0], tmpMeta[1]);
1623#line 256 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1624 _tmpGraph = tmpMeta[2];
1625#line 1625 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1626
1627#line 257 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1628 tmpMeta[0] = mmc_mk_cons(_tmpGraph, _graphs);
1629#line 257 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1630 _graphs = tmpMeta[0];
1631#line 1631 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1632
1633#line 258 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1634 tmpMeta[0] = mmc_mk_box10(3, &GraphML_GraphInfo_GRAPHINFO__desc, _graphs, mmc_mk_integermmc_mk_icon(_graphCount), _nodes, mmc_mk_integermmc_mk_icon(_nodeCount), _edges, mmc_mk_integermmc_mk_icon(_edgeCount), _attributes, _graphNodeKey, _graphEdgeKey);
1635#line 258 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1636 _oGraphInfo = tmpMeta[0];
1637#line 1637 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1638
1639#line 259 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1640 tmpMeta[0] = mmc_mk_box2(0, _tmpGraph, mmc_mk_integermmc_mk_icon(_graphCount));
1641#line 259 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1642 _oGraph = tmpMeta[0];
1643#line 1643 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1644 _return: OMC_LABEL_UNUSED__attribute__((unused))
1645 if (out_oGraph) { *out_oGraph = _oGraph; }
1646 return _oGraphInfo;
1647}
1648modelica_metatype boxptr_GraphML_addGraph(threadData_t *threadData, modelica_metatype _id, modelica_metatype _directed, modelica_metatype _iGraphInfo, modelica_metatype *out_oGraph)
1649{
1650 modelica_integer tmp1;
1651 modelica_metatype _oGraphInfo = NULL((void*)0);
1652 tmp1 = mmc_unbox_integer(_directed)(((mmc_sint_t) (_directed)) >> 1);
1653 _oGraphInfo = omc_GraphML_addGraph(threadData, _id, tmp1, _iGraphInfo, out_oGraph);
1654 /* skip box _oGraphInfo; GraphML.GraphInfo */
1655 /* skip box _oGraph; tuple<GraphML.Graph, #Integer> */
1656 return _oGraphInfo;
1657}
1658
1659DLLExport
1660modelica_metatype omc_GraphML_createGraphInfo(threadData_t *threadData)
1661{
1662 modelica_metatype _oGraphInfo = NULL((void*)0);
1663 MMC_SO()mmc_check_stackoverflow(threadData);
1664 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1665 // _oGraphInfo has no default value.
1666#line 232 "/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/Util/GraphML.mo"
1667 _oGraphInfo = _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3));
1668#line 1668 OMC_FILE"/var/lib/jenkins1/ws/iodic_Jenkins.slow_omlib-staging/OMCompiler/Compiler/boot/build/tmp/GraphML.c"
1669 _return: OMC_LABEL_UNUSED__attribute__((unused))
1670 return _oGraphInfo;
1671}
1672